@emqx/shared-ui-utils 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,67 +1,60 @@
1
- (function(Oe,qt){typeof exports=="object"&&typeof module<"u"?qt(exports):typeof define=="function"&&define.amd?define(["exports"],qt):(Oe=typeof globalThis<"u"?globalThis:Oe||self,qt(Oe["@emqx/shared-ui-utils"]={}))})(this,function(Oe){"use strict";const qt=(e,t=[],n={})=>{if(typeof e=="object"&&!Array.isArray(e)&&e!==null)for(const r of Object.keys(e))qt(e[r],t.concat(r),n);else n[t.join(".")]=e;return n},Ka=e=>{if(Object(e)!==e&&!Array.isArray(e))return e;const t=/\.?([^.[\]]+)|\[(\d+)\]/g,n={};try{for(const r in e){let i=n,s="",a;for(;a=t.exec(r);)i=i[s]||(i[s]=a[2]?[]:{}),s=a[2]||a[1];i[s]=e[r]}}catch(r){console.error(r)}return n[""]||n},Ya=e=>Object.keys(e).length===0;var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}},cs={exports:{}},us={exports:{}};(function(e){(function(t){var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",u=1e14,p=14,O=9007199254740991,g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,I=1e9;function H(L){var P,_,h,T=W.prototype={constructor:W,toString:null,valueOf:null},j=new W(1),q=20,K=4,oe=-7,pe=21,me=-1e7,ee=1e7,ce=!1,z=1,_e=0,re={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Z="0123456789abcdefghijklmnopqrstuvwxyz",X=!0;function W(c,d){var E,A,m,v,D,y,b,R,l=this;if(!(l instanceof W))return new W(c,d);if(d==null){if(c&&c._isBigNumber===!0){l.s=c.s,!c.c||c.e>ee?l.c=l.e=null:c.e<me?l.c=[l.e=0]:(l.e=c.e,l.c=c.c.slice());return}if((y=typeof c=="number")&&c*0==0){if(l.s=1/c<0?(c=-c,-1):1,c===~~c){for(v=0,D=c;D>=10;D/=10,v++);v>ee?l.c=l.e=null:(l.e=v,l.c=[c]);return}R=String(c)}else{if(!r.test(R=String(c)))return h(l,R,y);l.s=R.charCodeAt(0)==45?(R=R.slice(1),-1):1}(v=R.indexOf("."))>-1&&(R=R.replace(".","")),(D=R.search(/e/i))>0?(v<0&&(v=D),v+=+R.slice(D+1),R=R.substring(0,D)):v<0&&(v=R.length)}else{if(V(d,2,Z.length,"Base"),d==10&&X)return l=new W(c),te(l,q+l.e+1,K);if(R=String(c),y=typeof c=="number"){if(c*0!=0)return h(l,R,y,d);if(l.s=1/c<0?(R=R.slice(1),-1):1,W.DEBUG&&R.replace(/^0\.0*|\./,"").length>15)throw Error(o+c)}else l.s=R.charCodeAt(0)===45?(R=R.slice(1),-1):1;for(E=Z.slice(0,d),v=D=0,b=R.length;D<b;D++)if(E.indexOf(A=R.charAt(D))<0){if(A=="."){if(D>v){v=b;continue}}else if(!m&&(R==R.toUpperCase()&&(R=R.toLowerCase())||R==R.toLowerCase()&&(R=R.toUpperCase()))){m=!0,D=-1,v=0;continue}return h(l,String(c),y,d)}y=!1,R=_(R,d,10,l.s),(v=R.indexOf("."))>-1?R=R.replace(".",""):v=R.length}for(D=0;R.charCodeAt(D)===48;D++);for(b=R.length;R.charCodeAt(--b)===48;);if(R=R.slice(D,++b)){if(b-=D,y&&W.DEBUG&&b>15&&(c>O||c!==s(c)))throw Error(o+l.s*c);if((v=v-D-1)>ee)l.c=l.e=null;else if(v<me)l.c=[l.e=0];else{if(l.e=v,l.c=[],D=(v+1)%p,v<0&&(D+=p),D<b){for(D&&l.c.push(+R.slice(0,D)),b-=p;D<b;)l.c.push(+R.slice(D,D+=p));D=p-(R=R.slice(D)).length}else D-=b;for(;D--;R+="0");l.c.push(+R)}}else l.c=[l.e=0]}W.clone=H,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(c){var d,E;if(c!=null)if(typeof c=="object"){if(c.hasOwnProperty(d="DECIMAL_PLACES")&&(E=c[d],V(E,0,I,d),q=E),c.hasOwnProperty(d="ROUNDING_MODE")&&(E=c[d],V(E,0,8,d),K=E),c.hasOwnProperty(d="EXPONENTIAL_AT")&&(E=c[d],E&&E.pop?(V(E[0],-I,0,d),V(E[1],0,I,d),oe=E[0],pe=E[1]):(V(E,-I,I,d),oe=-(pe=E<0?-E:E))),c.hasOwnProperty(d="RANGE"))if(E=c[d],E&&E.pop)V(E[0],-I,-1,d),V(E[1],1,I,d),me=E[0],ee=E[1];else if(V(E,-I,I,d),E)me=-(ee=E<0?-E:E);else throw Error(a+d+" cannot be zero: "+E);if(c.hasOwnProperty(d="CRYPTO"))if(E=c[d],E===!!E)if(E)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))ce=E;else throw ce=!E,Error(a+"crypto unavailable");else ce=E;else throw Error(a+d+" not true or false: "+E);if(c.hasOwnProperty(d="MODULO_MODE")&&(E=c[d],V(E,0,9,d),z=E),c.hasOwnProperty(d="POW_PRECISION")&&(E=c[d],V(E,0,I,d),_e=E),c.hasOwnProperty(d="FORMAT"))if(E=c[d],typeof E=="object")re=E;else throw Error(a+d+" not an object: "+E);if(c.hasOwnProperty(d="ALPHABET"))if(E=c[d],typeof E=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(E))X=E.slice(0,10)=="0123456789",Z=E;else throw Error(a+d+" invalid: "+E)}else throw Error(a+"Object expected: "+c);return{DECIMAL_PLACES:q,ROUNDING_MODE:K,EXPONENTIAL_AT:[oe,pe],RANGE:[me,ee],CRYPTO:ce,MODULO_MODE:z,POW_PRECISION:_e,FORMAT:re,ALPHABET:Z}},W.isBigNumber=function(c){if(!c||c._isBigNumber!==!0)return!1;if(!W.DEBUG)return!0;var d,E,A=c.c,m=c.e,v=c.s;e:if({}.toString.call(A)=="[object Array]"){if((v===1||v===-1)&&m>=-I&&m<=I&&m===s(m)){if(A[0]===0){if(m===0&&A.length===1)return!0;break e}if(d=(m+1)%p,d<1&&(d+=p),String(A[0]).length==d){for(d=0;d<A.length;d++)if(E=A[d],E<0||E>=u||E!==s(E))break e;if(E!==0)return!0}}}else if(A===null&&m===null&&(v===null||v===1||v===-1))return!0;throw Error(a+"Invalid BigNumber: "+c)},W.maximum=W.max=function(){return ye(arguments,-1)},W.minimum=W.min=function(){return ye(arguments,1)},W.random=function(){var c=9007199254740992,d=Math.random()*c&2097151?function(){return s(Math.random()*c)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(E){var A,m,v,D,y,b=0,R=[],l=new W(j);if(E==null?E=q:V(E,0,I),D=i(E/p),ce)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(D*=2));b<D;)y=A[b]*131072+(A[b+1]>>>11),y>=9e15?(m=crypto.getRandomValues(new Uint32Array(2)),A[b]=m[0],A[b+1]=m[1]):(R.push(y%1e14),b+=2);b=D/2}else if(crypto.randomBytes){for(A=crypto.randomBytes(D*=7);b<D;)y=(A[b]&31)*281474976710656+A[b+1]*1099511627776+A[b+2]*4294967296+A[b+3]*16777216+(A[b+4]<<16)+(A[b+5]<<8)+A[b+6],y>=9e15?crypto.randomBytes(7).copy(A,b):(R.push(y%1e14),b+=7);b=D/7}else throw ce=!1,Error(a+"crypto unavailable");if(!ce)for(;b<D;)y=d(),y<9e15&&(R[b++]=y%1e14);for(D=R[--b],E%=p,D&&E&&(y=g[p-E],R[b]=s(D/y)*y);R[b]===0;R.pop(),b--);if(b<0)R=[v=0];else{for(v=-1;R[0]===0;R.splice(0,1),v-=p);for(b=1,y=R[0];y>=10;y/=10,b++);b<p&&(v-=p-b)}return l.e=v,l.c=R,l}}(),W.sum=function(){for(var c=1,d=arguments,E=new W(d[0]);c<d.length;)E=E.plus(d[c++]);return E},_=function(){var c="0123456789";function d(E,A,m,v){for(var D,y=[0],b,R=0,l=E.length;R<l;){for(b=y.length;b--;y[b]*=A);for(y[0]+=v.indexOf(E.charAt(R++)),D=0;D<y.length;D++)y[D]>m-1&&(y[D+1]==null&&(y[D+1]=0),y[D+1]+=y[D]/m|0,y[D]%=m)}return y.reverse()}return function(E,A,m,v,D){var y,b,R,l,f,C,B,Y,J=E.indexOf("."),Q=q,w=K;for(J>=0&&(l=_e,_e=0,E=E.replace(".",""),Y=new W(A),C=Y.pow(E.length-J),_e=l,Y.c=d(F(x(C.c),C.e,"0"),10,m,c),Y.e=Y.c.length),B=d(E,A,m,D?(y=Z,c):(y=c,Z)),R=l=B.length;B[--l]==0;B.pop());if(!B[0])return y.charAt(0);if(J<0?--R:(C.c=B,C.e=R,C.s=v,C=P(C,Y,Q,w,m),B=C.c,f=C.r,R=C.e),b=R+Q+1,J=B[b],l=m/2,f=f||b<0||B[b+1]!=null,f=w<4?(J!=null||f)&&(w==0||w==(C.s<0?3:2)):J>l||J==l&&(w==4||f||w==6&&B[b-1]&1||w==(C.s<0?8:7)),b<1||!B[0])E=f?F(y.charAt(1),-Q,y.charAt(0)):y.charAt(0);else{if(B.length=b,f)for(--m;++B[--b]>m;)B[b]=0,b||(++R,B=[1].concat(B));for(l=B.length;!B[--l];);for(J=0,E="";J<=l;E+=y.charAt(B[J++]));E=F(E,R,y.charAt(0))}return E}}(),P=function(){function c(A,m,v){var D,y,b,R,l=0,f=A.length,C=m%N,B=m/N|0;for(A=A.slice();f--;)b=A[f]%N,R=A[f]/N|0,D=B*b+R*C,y=C*b+D%N*N+l,l=(y/v|0)+(D/N|0)+B*R,A[f]=y%v;return l&&(A=[l].concat(A)),A}function d(A,m,v,D){var y,b;if(v!=D)b=v>D?1:-1;else for(y=b=0;y<v;y++)if(A[y]!=m[y]){b=A[y]>m[y]?1:-1;break}return b}function E(A,m,v,D){for(var y=0;v--;)A[v]-=y,y=A[v]<m[v]?1:0,A[v]=y*D+A[v]-m[v];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(A,m,v,D,y){var b,R,l,f,C,B,Y,J,Q,w,U,ne,Ee,Fe,Me,Le,We,tt=A.s==m.s?1:-1,Ue=A.c,we=m.c;if(!Ue||!Ue[0]||!we||!we[0])return new W(!A.s||!m.s||(Ue?we&&Ue[0]==we[0]:!we)?NaN:Ue&&Ue[0]==0||!we?tt*0:tt/0);for(J=new W(tt),Q=J.c=[],R=A.e-m.e,tt=v+R+1,y||(y=u,R=M(A.e/p)-M(m.e/p),tt=tt/p|0),l=0;we[l]==(Ue[l]||0);l++);if(we[l]>(Ue[l]||0)&&R--,tt<0)Q.push(1),f=!0;else{for(Fe=Ue.length,Le=we.length,l=0,tt+=2,C=s(y/(we[0]+1)),C>1&&(we=c(we,C,y),Ue=c(Ue,C,y),Le=we.length,Fe=Ue.length),Ee=Le,w=Ue.slice(0,Le),U=w.length;U<Le;w[U++]=0);We=we.slice(),We=[0].concat(We),Me=we[0],we[1]>=y/2&&Me++;do{if(C=0,b=d(we,w,Le,U),b<0){if(ne=w[0],Le!=U&&(ne=ne*y+(w[1]||0)),C=s(ne/Me),C>1)for(C>=y&&(C=y-1),B=c(we,C,y),Y=B.length,U=w.length;d(B,w,Y,U)==1;)C--,E(B,Le<Y?We:we,Y,y),Y=B.length,b=1;else C==0&&(b=C=1),B=we.slice(),Y=B.length;if(Y<U&&(B=[0].concat(B)),E(w,B,U,y),U=w.length,b==-1)for(;d(we,w,Le,U)<1;)C++,E(w,Le<U?We:we,U,y),U=w.length}else b===0&&(C++,w=[0]);Q[l++]=C,w[0]?w[U++]=Ue[Ee]||0:(w=[Ue[Ee]],U=1)}while((Ee++<Fe||w[0]!=null)&&tt--);f=w[0]!=null,Q[0]||Q.splice(0,1)}if(y==u){for(l=1,tt=Q[0];tt>=10;tt/=10,l++);te(J,v+(J.e=l+R*p-1)+1,D,f)}else J.e=R,J.r=+f;return J}}();function ge(c,d,E,A){var m,v,D,y,b;if(E==null?E=K:V(E,0,8),!c.c)return c.toString();if(m=c.c[0],D=c.e,d==null)b=x(c.c),b=A==1||A==2&&(D<=oe||D>=pe)?k(b,D):F(b,D,"0");else if(c=te(new W(c),d,E),v=c.e,b=x(c.c),y=b.length,A==1||A==2&&(d<=v||v<=oe)){for(;y<d;b+="0",y++);b=k(b,v)}else if(d-=D,b=F(b,v,"0"),v+1>y){if(--d>0)for(b+=".";d--;b+="0");}else if(d+=v-y,d>0)for(v+1==y&&(b+=".");d--;b+="0");return c.s<0&&m?"-"+b:b}function ye(c,d){for(var E,A,m=1,v=new W(c[0]);m<c.length;m++)A=new W(c[m]),(!A.s||(E=$(v,A))===d||E===0&&v.s===d)&&(v=A);return v}function De(c,d,E){for(var A=1,m=d.length;!d[--m];d.pop());for(m=d[0];m>=10;m/=10,A++);return(E=A+E*p-1)>ee?c.c=c.e=null:E<me?c.c=[c.e=0]:(c.e=E,c.c=d),c}h=function(){var c=/^(-?)0([xbo])(?=\w[\w.]*$)/i,d=/^([^.]+)\.$/,E=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,m=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(v,D,y,b){var R,l=y?D:D.replace(m,"");if(A.test(l))v.s=isNaN(l)?null:l<0?-1:1;else{if(!y&&(l=l.replace(c,function(f,C,B){return R=(B=B.toLowerCase())=="x"?16:B=="b"?2:8,!b||b==R?C:f}),b&&(R=b,l=l.replace(d,"$1").replace(E,"0.$1")),D!=l))return new W(l,R);if(W.DEBUG)throw Error(a+"Not a"+(b?" base "+b:"")+" number: "+D);v.s=null}v.c=v.e=null}}();function te(c,d,E,A){var m,v,D,y,b,R,l,f=c.c,C=g;if(f){e:{for(m=1,y=f[0];y>=10;y/=10,m++);if(v=d-m,v<0)v+=p,D=d,b=f[R=0],l=s(b/C[m-D-1]%10);else if(R=i((v+1)/p),R>=f.length)if(A){for(;f.length<=R;f.push(0));b=l=0,m=1,v%=p,D=v-p+1}else break e;else{for(b=y=f[R],m=1;y>=10;y/=10,m++);v%=p,D=v-p+m,l=D<0?0:s(b/C[m-D-1]%10)}if(A=A||d<0||f[R+1]!=null||(D<0?b:b%C[m-D-1]),A=E<4?(l||A)&&(E==0||E==(c.s<0?3:2)):l>5||l==5&&(E==4||A||E==6&&(v>0?D>0?b/C[m-D]:0:f[R-1])%10&1||E==(c.s<0?8:7)),d<1||!f[0])return f.length=0,A?(d-=c.e+1,f[0]=C[(p-d%p)%p],c.e=-d||0):f[0]=c.e=0,c;if(v==0?(f.length=R,y=1,R--):(f.length=R+1,y=C[p-v],f[R]=D>0?s(b/C[m-D]%C[D])*y:0),A)for(;;)if(R==0){for(v=1,D=f[0];D>=10;D/=10,v++);for(D=f[0]+=y,y=1;D>=10;D/=10,y++);v!=y&&(c.e++,f[0]==u&&(f[0]=1));break}else{if(f[R]+=y,f[R]!=u)break;f[R--]=0,y=1}for(v=f.length;f[--v]===0;f.pop());}c.e>ee?c.c=c.e=null:c.e<me&&(c.c=[c.e=0])}return c}function ie(c){var d,E=c.e;return E===null?c.toString():(d=x(c.c),d=E<=oe||E>=pe?k(d,E):F(d,E,"0"),c.s<0?"-"+d:d)}return T.absoluteValue=T.abs=function(){var c=new W(this);return c.s<0&&(c.s=1),c},T.comparedTo=function(c,d){return $(this,new W(c,d))},T.decimalPlaces=T.dp=function(c,d){var E,A,m,v=this;if(c!=null)return V(c,0,I),d==null?d=K:V(d,0,8),te(new W(v),c+v.e+1,d);if(!(E=v.c))return null;if(A=((m=E.length-1)-M(this.e/p))*p,m=E[m])for(;m%10==0;m/=10,A--);return A<0&&(A=0),A},T.dividedBy=T.div=function(c,d){return P(this,new W(c,d),q,K)},T.dividedToIntegerBy=T.idiv=function(c,d){return P(this,new W(c,d),0,1)},T.exponentiatedBy=T.pow=function(c,d){var E,A,m,v,D,y,b,R,l,f=this;if(c=new W(c),c.c&&!c.isInteger())throw Error(a+"Exponent not an integer: "+ie(c));if(d!=null&&(d=new W(d)),y=c.e>14,!f.c||!f.c[0]||f.c[0]==1&&!f.e&&f.c.length==1||!c.c||!c.c[0])return l=new W(Math.pow(+ie(f),y?c.s*(2-S(c)):+ie(c))),d?l.mod(d):l;if(b=c.s<0,d){if(d.c?!d.c[0]:!d.s)return new W(NaN);A=!b&&f.isInteger()&&d.isInteger(),A&&(f=f.mod(d))}else{if(c.e>9&&(f.e>0||f.e<-1||(f.e==0?f.c[0]>1||y&&f.c[1]>=24e7:f.c[0]<8e13||y&&f.c[0]<=9999975e7)))return v=f.s<0&&S(c)?-0:0,f.e>-1&&(v=1/v),new W(b?1/v:v);_e&&(v=i(_e/p+2))}for(y?(E=new W(.5),b&&(c.s=1),R=S(c)):(m=Math.abs(+ie(c)),R=m%2),l=new W(j);;){if(R){if(l=l.times(f),!l.c)break;v?l.c.length>v&&(l.c.length=v):A&&(l=l.mod(d))}if(m){if(m=s(m/2),m===0)break;R=m%2}else if(c=c.times(E),te(c,c.e+1,1),c.e>14)R=S(c);else{if(m=+ie(c),m===0)break;R=m%2}f=f.times(f),v?f.c&&f.c.length>v&&(f.c.length=v):A&&(f=f.mod(d))}return A?l:(b&&(l=j.div(l)),d?l.mod(d):v?te(l,_e,K,D):l)},T.integerValue=function(c){var d=new W(this);return c==null?c=K:V(c,0,8),te(d,d.e+1,c)},T.isEqualTo=T.eq=function(c,d){return $(this,new W(c,d))===0},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(c,d){return $(this,new W(c,d))>0},T.isGreaterThanOrEqualTo=T.gte=function(c,d){return(d=$(this,new W(c,d)))===1||d===0},T.isInteger=function(){return!!this.c&&M(this.e/p)>this.c.length-2},T.isLessThan=T.lt=function(c,d){return $(this,new W(c,d))<0},T.isLessThanOrEqualTo=T.lte=function(c,d){return(d=$(this,new W(c,d)))===-1||d===0},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&this.c[0]==0},T.minus=function(c,d){var E,A,m,v,D=this,y=D.s;if(c=new W(c,d),d=c.s,!y||!d)return new W(NaN);if(y!=d)return c.s=-d,D.plus(c);var b=D.e/p,R=c.e/p,l=D.c,f=c.c;if(!b||!R){if(!l||!f)return l?(c.s=-d,c):new W(f?D:NaN);if(!l[0]||!f[0])return f[0]?(c.s=-d,c):new W(l[0]?D:K==3?-0:0)}if(b=M(b),R=M(R),l=l.slice(),y=b-R){for((v=y<0)?(y=-y,m=l):(R=b,m=f),m.reverse(),d=y;d--;m.push(0));m.reverse()}else for(A=(v=(y=l.length)<(d=f.length))?y:d,y=d=0;d<A;d++)if(l[d]!=f[d]){v=l[d]<f[d];break}if(v&&(m=l,l=f,f=m,c.s=-c.s),d=(A=f.length)-(E=l.length),d>0)for(;d--;l[E++]=0);for(d=u-1;A>y;){if(l[--A]<f[A]){for(E=A;E&&!l[--E];l[E]=d);--l[E],l[A]+=u}l[A]-=f[A]}for(;l[0]==0;l.splice(0,1),--R);return l[0]?De(c,l,R):(c.s=K==3?-1:1,c.c=[c.e=0],c)},T.modulo=T.mod=function(c,d){var E,A,m=this;return c=new W(c,d),!m.c||!c.s||c.c&&!c.c[0]?new W(NaN):!c.c||m.c&&!m.c[0]?new W(m):(z==9?(A=c.s,c.s=1,E=P(m,c,0,3),c.s=A,E.s*=A):E=P(m,c,0,z),c=m.minus(E.times(c)),!c.c[0]&&z==1&&(c.s=m.s),c)},T.multipliedBy=T.times=function(c,d){var E,A,m,v,D,y,b,R,l,f,C,B,Y,J,Q,w=this,U=w.c,ne=(c=new W(c,d)).c;if(!U||!ne||!U[0]||!ne[0])return!w.s||!c.s||U&&!U[0]&&!ne||ne&&!ne[0]&&!U?c.c=c.e=c.s=null:(c.s*=w.s,!U||!ne?c.c=c.e=null:(c.c=[0],c.e=0)),c;for(A=M(w.e/p)+M(c.e/p),c.s*=w.s,b=U.length,f=ne.length,b<f&&(Y=U,U=ne,ne=Y,m=b,b=f,f=m),m=b+f,Y=[];m--;Y.push(0));for(J=u,Q=N,m=f;--m>=0;){for(E=0,C=ne[m]%Q,B=ne[m]/Q|0,D=b,v=m+D;v>m;)R=U[--D]%Q,l=U[D]/Q|0,y=B*R+l*C,R=C*R+y%Q*Q+Y[v]+E,E=(R/J|0)+(y/Q|0)+B*l,Y[v--]=R%J;Y[v]=E}return E?++A:Y.splice(0,1),De(c,Y,A)},T.negated=function(){var c=new W(this);return c.s=-c.s||null,c},T.plus=function(c,d){var E,A=this,m=A.s;if(c=new W(c,d),d=c.s,!m||!d)return new W(NaN);if(m!=d)return c.s=-d,A.minus(c);var v=A.e/p,D=c.e/p,y=A.c,b=c.c;if(!v||!D){if(!y||!b)return new W(m/0);if(!y[0]||!b[0])return b[0]?c:new W(y[0]?A:m*0)}if(v=M(v),D=M(D),y=y.slice(),m=v-D){for(m>0?(D=v,E=b):(m=-m,E=y),E.reverse();m--;E.push(0));E.reverse()}for(m=y.length,d=b.length,m-d<0&&(E=b,b=y,y=E,d=m),m=0;d;)m=(y[--d]=y[d]+b[d]+m)/u|0,y[d]=u===y[d]?0:y[d]%u;return m&&(y=[m].concat(y),++D),De(c,y,D)},T.precision=T.sd=function(c,d){var E,A,m,v=this;if(c!=null&&c!==!!c)return V(c,1,I),d==null?d=K:V(d,0,8),te(new W(v),c,d);if(!(E=v.c))return null;if(m=E.length-1,A=m*p+1,m=E[m]){for(;m%10==0;m/=10,A--);for(m=E[0];m>=10;m/=10,A++);}return c&&v.e+1>A&&(A=v.e+1),A},T.shiftedBy=function(c){return V(c,-O,O),this.times("1e"+c)},T.squareRoot=T.sqrt=function(){var c,d,E,A,m,v=this,D=v.c,y=v.s,b=v.e,R=q+4,l=new W("0.5");if(y!==1||!D||!D[0])return new W(!y||y<0&&(!D||D[0])?NaN:D?v:1/0);if(y=Math.sqrt(+ie(v)),y==0||y==1/0?(d=x(D),(d.length+b)%2==0&&(d+="0"),y=Math.sqrt(+d),b=M((b+1)/2)-(b<0||b%2),y==1/0?d="5e"+b:(d=y.toExponential(),d=d.slice(0,d.indexOf("e")+1)+b),E=new W(d)):E=new W(y+""),E.c[0]){for(b=E.e,y=b+R,y<3&&(y=0);;)if(m=E,E=l.times(m.plus(P(v,m,R,1))),x(m.c).slice(0,y)===(d=x(E.c)).slice(0,y))if(E.e<b&&--y,d=d.slice(y-3,y+1),d=="9999"||!A&&d=="4999"){if(!A&&(te(m,m.e+q+2,0),m.times(m).eq(v))){E=m;break}R+=4,y+=4,A=1}else{(!+d||!+d.slice(1)&&d.charAt(0)=="5")&&(te(E,E.e+q+2,1),c=!E.times(E).eq(v));break}}return te(E,E.e+q+1,K,c)},T.toExponential=function(c,d){return c!=null&&(V(c,0,I),c++),ge(this,c,d,1)},T.toFixed=function(c,d){return c!=null&&(V(c,0,I),c=c+this.e+1),ge(this,c,d)},T.toFormat=function(c,d,E){var A,m=this;if(E==null)c!=null&&d&&typeof d=="object"?(E=d,d=null):c&&typeof c=="object"?(E=c,c=d=null):E=re;else if(typeof E!="object")throw Error(a+"Argument not an object: "+E);if(A=m.toFixed(c,d),m.c){var v,D=A.split("."),y=+E.groupSize,b=+E.secondaryGroupSize,R=E.groupSeparator||"",l=D[0],f=D[1],C=m.s<0,B=C?l.slice(1):l,Y=B.length;if(b&&(v=y,y=b,b=v,Y-=v),y>0&&Y>0){for(v=Y%y||y,l=B.substr(0,v);v<Y;v+=y)l+=R+B.substr(v,y);b>0&&(l+=R+B.slice(v)),C&&(l="-"+l)}A=f?l+(E.decimalSeparator||"")+((b=+E.fractionGroupSize)?f.replace(new RegExp("\\d{"+b+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):f):l}return(E.prefix||"")+A+(E.suffix||"")},T.toFraction=function(c){var d,E,A,m,v,D,y,b,R,l,f,C,B=this,Y=B.c;if(c!=null&&(y=new W(c),!y.isInteger()&&(y.c||y.s!==1)||y.lt(j)))throw Error(a+"Argument "+(y.isInteger()?"out of range: ":"not an integer: ")+ie(y));if(!Y)return new W(B);for(d=new W(j),R=E=new W(j),A=b=new W(j),C=x(Y),v=d.e=C.length-B.e-1,d.c[0]=g[(D=v%p)<0?p+D:D],c=!c||y.comparedTo(d)>0?v>0?d:R:y,D=ee,ee=1/0,y=new W(C),b.c[0]=0;l=P(y,d,0,1),m=E.plus(l.times(A)),m.comparedTo(c)!=1;)E=A,A=m,R=b.plus(l.times(m=R)),b=m,d=y.minus(l.times(m=d)),y=m;return m=P(c.minus(E),A,0,1),b=b.plus(m.times(R)),E=E.plus(m.times(A)),b.s=R.s=B.s,v=v*2,f=P(R,A,v,K).minus(B).abs().comparedTo(P(b,E,v,K).minus(B).abs())<1?[R,A]:[b,E],ee=D,f},T.toNumber=function(){return+ie(this)},T.toPrecision=function(c,d){return c!=null&&V(c,1,I),ge(this,c,d,2)},T.toString=function(c){var d,E=this,A=E.s,m=E.e;return m===null?A?(d="Infinity",A<0&&(d="-"+d)):d="NaN":(c==null?d=m<=oe||m>=pe?k(x(E.c),m):F(x(E.c),m,"0"):c===10&&X?(E=te(new W(E),q+m+1,K),d=F(x(E.c),E.e,"0")):(V(c,2,Z.length,"Base"),d=_(F(x(E.c),m,"0"),10,c,A,!0)),A<0&&E.c[0]&&(d="-"+d)),d},T.valueOf=T.toJSON=function(){return ie(this)},T._isBigNumber=!0,L!=null&&W.set(L),W}function M(L){var P=L|0;return L>0||L===P?P:P-1}function x(L){for(var P,_,h=1,T=L.length,j=L[0]+"";h<T;){for(P=L[h++]+"",_=p-P.length;_--;P="0"+P);j+=P}for(T=j.length;j.charCodeAt(--T)===48;);return j.slice(0,T+1||1)}function $(L,P){var _,h,T=L.c,j=P.c,q=L.s,K=P.s,oe=L.e,pe=P.e;if(!q||!K)return null;if(_=T&&!T[0],h=j&&!j[0],_||h)return _?h?0:-K:q;if(q!=K)return q;if(_=q<0,h=oe==pe,!T||!j)return h?0:!T^_?1:-1;if(!h)return oe>pe^_?1:-1;for(K=(oe=T.length)<(pe=j.length)?oe:pe,q=0;q<K;q++)if(T[q]!=j[q])return T[q]>j[q]^_?1:-1;return oe==pe?0:oe>pe^_?1:-1}function V(L,P,_,h){if(L<P||L>_||L!==s(L))throw Error(a+(h||"Argument")+(typeof L=="number"?L<P||L>_?" out of range: ":" not an integer: ":" not a primitive number: ")+String(L))}function S(L){var P=L.c.length-1;return M(L.e/p)==P&&L.c[P]%2!=0}function k(L,P){return(L.length>1?L.charAt(0)+"."+L.slice(1):L)+(P<0?"e":"e+")+P}function F(L,P,_){var h,T;if(P<0){for(T=_+".";++P;T+=_);L=T+L}else if(h=L.length,++P>h){for(T=_,P-=h;--P;T+=_);L+=T}else P<h&&(L=L.slice(0,P)+"."+L.slice(P));return L}n=H(),n.default=n.BigNumber=n,e.exports?e.exports=n:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=n)})(os)})(us);var fs=us.exports;(function(e){var t=fs,n=e.exports;(function(){var r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,s,a={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},o;function u(O){return r.lastIndex=0,r.test(O)?'"'+O.replace(r,function(g){var N=a[g];return typeof N=="string"?N:"\\u"+("0000"+g.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+O+'"'}function p(O,g){var N,I,H,M,x=i,$,V=g[O],S=V!=null&&(V instanceof t||t.isBigNumber(V));switch(V&&typeof V=="object"&&typeof V.toJSON=="function"&&(V=V.toJSON(O)),typeof o=="function"&&(V=o.call(g,O,V)),typeof V){case"string":return S?V:u(V);case"number":return isFinite(V)?String(V):"null";case"boolean":case"null":case"bigint":return String(V);case"object":if(!V)return"null";if(i+=s,$=[],Object.prototype.toString.apply(V)==="[object Array]"){for(M=V.length,N=0;N<M;N+=1)$[N]=p(N,V)||"null";return H=$.length===0?"[]":i?`[
2
- `+i+$.join(`,
3
- `+i)+`
4
- `+x+"]":"["+$.join(",")+"]",i=x,H}if(o&&typeof o=="object")for(M=o.length,N=0;N<M;N+=1)typeof o[N]=="string"&&(I=o[N],H=p(I,V),H&&$.push(u(I)+(i?": ":":")+H));else Object.keys(V).forEach(function(k){var F=p(k,V);F&&$.push(u(k)+(i?": ":":")+F)});return H=$.length===0?"{}":i?`{
5
- `+i+$.join(`,
6
- `+i)+`
7
- `+x+"}":"{"+$.join(",")+"}",i=x,H}}typeof n.stringify!="function"&&(n.stringify=function(O,g,N){var I;if(i="",s="",typeof N=="number")for(I=0;I<N;I+=1)s+=" ";else typeof N=="string"&&(s=N);if(o=g,g&&typeof g!="function"&&(typeof g!="object"||typeof g.length!="number"))throw new Error("JSON.stringify");return p("",{"":O})})})()})(cs);var Qa=cs.exports,Tn=null;const Xa=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,Ja=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var za=function(e){var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(e!=null){if(e.strict===!0&&(t.strict=!0),e.storeAsString===!0&&(t.storeAsString=!0),t.alwaysParseAsBig=e.alwaysParseAsBig===!0?e.alwaysParseAsBig:!1,t.useNativeBigInt=e.useNativeBigInt===!0?e.useNativeBigInt:!1,typeof e.constructorAction<"u")if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve")t.constructorAction=e.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`);if(typeof e.protoAction<"u")if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve")t.protoAction=e.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}var n,r,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
8
- `,r:"\r",t:" "},s,a=function(M){throw{name:"SyntaxError",message:M,at:n,text:s}},o=function(M){return M&&M!==r&&a("Expected '"+M+"' instead of '"+r+"'"),r=s.charAt(n),n+=1,r},u=function(){var M,x="";for(r==="-"&&(x="-",o("-"));r>="0"&&r<="9";)x+=r,o();if(r===".")for(x+=".";o()&&r>="0"&&r<="9";)x+=r;if(r==="e"||r==="E")for(x+=r,o(),(r==="-"||r==="+")&&(x+=r,o());r>="0"&&r<="9";)x+=r,o();if(M=+x,!isFinite(M))a("Bad number");else return Tn==null&&(Tn=fs),x.length>15?t.storeAsString?x:t.useNativeBigInt?BigInt(x):new Tn(x):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(M):new Tn(M):M},p=function(){var M,x,$="",V;if(r==='"')for(var S=n;o();){if(r==='"')return n-1>S&&($+=s.substring(S,n-1)),o(),$;if(r==="\\"){if(n-1>S&&($+=s.substring(S,n-1)),o(),r==="u"){for(V=0,x=0;x<4&&(M=parseInt(o(),16),!!isFinite(M));x+=1)V=V*16+M;$+=String.fromCharCode(V)}else if(typeof i[r]=="string")$+=i[r];else break;S=n}}a("Bad string")},O=function(){for(;r&&r<=" ";)o()},g=function(){switch(r){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}a("Unexpected '"+r+"'")},N,I=function(){var M=[];if(r==="["){if(o("["),O(),r==="]")return o("]"),M;for(;r;){if(M.push(N()),O(),r==="]")return o("]"),M;o(","),O()}}a("Bad array")},H=function(){var M,x=Object.create(null);if(r==="{"){if(o("{"),O(),r==="}")return o("}"),x;for(;r;){if(M=p(),O(),o(":"),t.strict===!0&&Object.hasOwnProperty.call(x,M)&&a('Duplicate key "'+M+'"'),Xa.test(M)===!0?t.protoAction==="error"?a("Object contains forbidden prototype property"):t.protoAction==="ignore"?N():x[M]=N():Ja.test(M)===!0?t.constructorAction==="error"?a("Object contains forbidden constructor property"):t.constructorAction==="ignore"?N():x[M]=N():x[M]=N(),O(),r==="}")return o("}"),x;o(","),O()}}a("Bad object")};return N=function(){switch(O(),r){case"{":return H();case"[":return I();case'"':return p();case"-":return u();default:return r>="0"&&r<="9"?u():g()}},function(M,x){var $;return s=M+"",n=0,r=" ",$=N(),O(),r&&a("Syntax error"),typeof x=="function"?function V(S,k){var F,L=S[k];return L&&typeof L=="object"&&Object.keys(L).forEach(function(P){F=V(L,P),F!==void 0?L[P]=F:delete L[P]}),x.call(S,k,L)}({"":$},""):$}},Za=za,ds=Qa.stringify,ps=Za;On.exports=function(e){return{parse:ps(e),stringify:ds}},On.exports.parse=ps(),On.exports.stringify=ds;var eo=On.exports;const ms=ls(eo),to=e=>{try{return JSON.parse(e)}catch{console.error("An error occurred while parsing the JSON string")}},no=(e,t)=>{try{return typeof e=="string"?e:JSON.stringify(e,null,t)}catch(n){return console.error(n),"stringify error"}},ro=e=>{if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}},_s=ms,hs=ms({useNativeBigInt:!0}),so=(e,t)=>{try{return hs.parse(e,t)}catch{try{return _s.parse(e,t)}catch{return JSON.parse(e,t)}}},io=(e,t,n)=>{try{return hs.stringify(e,t,n)}catch{return _s.stringify(e,t,n)}},ao=e=>{if(typeof e!="number"||isNaN(e)||e<0)throw new Error("Invalid input: input should be a non-negative number");if(e===0)return"0 Bytes";const t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(1)} ${t[n]}`};var Zn=(e=>(e[e.ms=1]="ms",e[e.s=1e3]="s",e[e.m=6e4]="m",e[e.h=36e5]="h",e[e.d=864e5]="d",e[e.B=1]="B",e[e.KB=1024]="KB",e[e.MB=1048576]="MB",e[e.GB=1073741824]="GB",e))(Zn||{});const oo=(e,t)=>{if(!(t in Zn))throw new Error(`Invalid unit: ${t}`);return e*Zn[t]},gs=(e,t)=>{const n=document.createElement("a");n.style.display="none",n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},Es=(e,t)=>{const n=window.URL.createObjectURL(new Blob([e]));gs(n,t),window.URL.revokeObjectURL(n)};var Ns={exports:{}};/* @license
9
- Papa Parse
10
- v5.5.3
11
- https://github.com/mholt/PapaParse
12
- License: MIT
13
- */(function(e,t){((n,r)=>{e.exports=r()})(os,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,s=!r.document&&!!r.postMessage,a=r.IS_PAPA_WORKER||!1,o={},u=0,p={};function O(_){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(h){var T=F(h);T.chunkSize=parseInt(T.chunkSize),h.step||h.chunk||(T.chunkSize=null),this._handle=new M(T),(this._handle.streamer=this)._config=T}).call(this,_),this.parseChunk=function(h,T){var j=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<j){let K=this._config.newline;K||(q=this._config.quoteChar||'"',K=this._handle.guessLineEndings(h,q)),h=[...h.split(K).slice(j)].join(K)}this.isFirstChunk&&P(this._config.beforeFirstChunk)&&(q=this._config.beforeFirstChunk(h))!==void 0&&(h=q),this.isFirstChunk=!1,this._halted=!1;var j=this._partialLine+h,q=(this._partialLine="",this._handle.parse(j,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(h=q.meta.cursor,j=(this._finished||(this._partialLine=j.substring(h-this._baseIndex),this._baseIndex=h),q&&q.data&&(this._rowCount+=q.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),a)r.postMessage({results:q,workerId:p.WORKER_ID,finished:j});else if(P(this._config.chunk)&&!T){if(this._config.chunk(q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=q=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(q.data),this._completeResults.errors=this._completeResults.errors.concat(q.errors),this._completeResults.meta=q.meta),this._completed||!j||!P(this._config.complete)||q&&q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),j||q&&q.meta.paused||this._nextChunk(),q}this._halted=!0},this._sendError=function(h){P(this._config.error)?this._config.error(h):a&&this._config.error&&r.postMessage({workerId:p.WORKER_ID,error:h,finished:!1})}}function g(_){var h;(_=_||{}).chunkSize||(_.chunkSize=p.RemoteChunkSize),O.call(this,_),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(T){this._input=T,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(h=new XMLHttpRequest,this._config.withCredentials&&(h.withCredentials=this._config.withCredentials),s||(h.onload=L(this._chunkLoaded,this),h.onerror=L(this._chunkError,this)),h.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var T,j=this._config.downloadRequestHeaders;for(T in j)h.setRequestHeader(T,j[T])}var q;this._config.chunkSize&&(q=this._start+this._config.chunkSize-1,h.setRequestHeader("Range","bytes="+this._start+"-"+q));try{h.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}s&&h.status===0&&this._chunkError()}},this._chunkLoaded=function(){h.readyState===4&&(h.status<200||400<=h.status?this._chunkError():(this._start+=this._config.chunkSize||h.responseText.length,this._finished=!this._config.chunkSize||this._start>=(T=>(T=T.getResponseHeader("Content-Range"))!==null?parseInt(T.substring(T.lastIndexOf("/")+1)):-1)(h),this.parseChunk(h.responseText)))},this._chunkError=function(T){T=h.statusText||T,this._sendError(new Error(T))}}function N(_){(_=_||{}).chunkSize||(_.chunkSize=p.LocalChunkSize),O.call(this,_);var h,T,j=typeof FileReader<"u";this.stream=function(q){this._input=q,T=q.slice||q.webkitSlice||q.mozSlice,j?((h=new FileReader).onload=L(this._chunkLoaded,this),h.onerror=L(this._chunkError,this)):h=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var q=this._input,K=(this._config.chunkSize&&(K=Math.min(this._start+this._config.chunkSize,this._input.size),q=T.call(q,this._start,K)),h.readAsText(q,this._config.encoding));j||this._chunkLoaded({target:{result:K}})},this._chunkLoaded=function(q){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(q.target.result)},this._chunkError=function(){this._sendError(h.error)}}function I(_){var h;O.call(this,_=_||{}),this.stream=function(T){return h=T,this._nextChunk()},this._nextChunk=function(){var T,j;if(!this._finished)return T=this._config.chunkSize,h=T?(j=h.substring(0,T),h.substring(T)):(j=h,""),this._finished=!h,this.parseChunk(j)}}function H(_){O.call(this,_=_||{});var h=[],T=!0,j=!1;this.pause=function(){O.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){O.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(q){this._input=q,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){j&&h.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),h.length?this.parseChunk(h.shift()):T=!0},this._streamData=L(function(q){try{h.push(typeof q=="string"?q:q.toString(this._config.encoding)),T&&(T=!1,this._checkIsFinished(),this.parseChunk(h.shift()))}catch(K){this._streamError(K)}},this),this._streamError=L(function(q){this._streamCleanUp(),this._sendError(q)},this),this._streamEnd=L(function(){this._streamCleanUp(),j=!0,this._streamData("")},this),this._streamCleanUp=L(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function M(_){var h,T,j,q,K=Math.pow(2,53),oe=-K,pe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,me=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,ee=this,ce=0,z=0,_e=!1,re=!1,Z=[],X={data:[],errors:[],meta:{}};function W(te){return _.skipEmptyLines==="greedy"?te.join("").trim()==="":te.length===1&&te[0].length===0}function ge(){if(X&&j&&(De("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),j=!1),_.skipEmptyLines&&(X.data=X.data.filter(function(d){return!W(d)})),ye()){let d=function(E,A){P(_.transformHeader)&&(E=_.transformHeader(E,A)),Z.push(E)};if(X)if(Array.isArray(X.data[0])){for(var te=0;ye()&&te<X.data.length;te++)X.data[te].forEach(d);X.data.splice(0,1)}else X.data.forEach(d)}function ie(d,E){for(var A=_.header?{}:[],m=0;m<d.length;m++){var v=m,D=d[m],D=((y,b)=>(R=>(_.dynamicTypingFunction&&_.dynamicTyping[R]===void 0&&(_.dynamicTyping[R]=_.dynamicTypingFunction(R)),(_.dynamicTyping[R]||_.dynamicTyping)===!0))(y)?b==="true"||b==="TRUE"||b!=="false"&&b!=="FALSE"&&((R=>{if(pe.test(R)&&(R=parseFloat(R),oe<R&&R<K))return 1})(b)?parseFloat(b):me.test(b)?new Date(b):b===""?null:b):b)(v=_.header?m>=Z.length?"__parsed_extra":Z[m]:v,D=_.transform?_.transform(D,v):D);v==="__parsed_extra"?(A[v]=A[v]||[],A[v].push(D)):A[v]=D}return _.header&&(m>Z.length?De("FieldMismatch","TooManyFields","Too many fields: expected "+Z.length+" fields but parsed "+m,z+E):m<Z.length&&De("FieldMismatch","TooFewFields","Too few fields: expected "+Z.length+" fields but parsed "+m,z+E)),A}var c;X&&(_.header||_.dynamicTyping||_.transform)&&(c=1,!X.data.length||Array.isArray(X.data[0])?(X.data=X.data.map(ie),c=X.data.length):X.data=ie(X.data,0),_.header&&X.meta&&(X.meta.fields=Z),z+=c)}function ye(){return _.header&&Z.length===0}function De(te,ie,c,d){te={type:te,code:ie,message:c},d!==void 0&&(te.row=d),X.errors.push(te)}P(_.step)&&(q=_.step,_.step=function(te){X=te,ye()?ge():(ge(),X.data.length!==0&&(ce+=te.data.length,_.preview&&ce>_.preview?T.abort():(X.data=X.data[0],q(X,ee))))}),this.parse=function(te,ie,c){var d=_.quoteChar||'"',d=(_.newline||(_.newline=this.guessLineEndings(te,d)),j=!1,_.delimiter?P(_.delimiter)&&(_.delimiter=_.delimiter(te),X.meta.delimiter=_.delimiter):((d=((E,A,m,v,D)=>{var y,b,R,l;D=D||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var f=0;f<D.length;f++){for(var C,B=D[f],Y=0,J=0,Q=0,w=(R=void 0,new $({comments:v,delimiter:B,newline:A,preview:10}).parse(E)),U=0;U<w.data.length;U++)m&&W(w.data[U])?Q++:(C=w.data[U].length,J+=C,R===void 0?R=C:0<C&&(Y+=Math.abs(C-R),R=C));0<w.data.length&&(J/=w.data.length-Q),(b===void 0||Y<=b)&&(l===void 0||l<J)&&1.99<J&&(b=Y,y=B,l=J)}return{successful:!!(_.delimiter=y),bestDelimiter:y}})(te,_.newline,_.skipEmptyLines,_.comments,_.delimitersToGuess)).successful?_.delimiter=d.bestDelimiter:(j=!0,_.delimiter=p.DefaultDelimiter),X.meta.delimiter=_.delimiter),F(_));return _.preview&&_.header&&d.preview++,h=te,T=new $(d),X=T.parse(h,ie,c),ge(),_e?{meta:{paused:!0}}:X||{meta:{paused:!1}}},this.paused=function(){return _e},this.pause=function(){_e=!0,T.abort(),h=P(_.chunk)?"":h.substring(T.getCharIndex())},this.resume=function(){ee.streamer._halted?(_e=!1,ee.streamer.parseChunk(h,!0)):setTimeout(ee.resume,3)},this.aborted=function(){return re},this.abort=function(){re=!0,T.abort(),X.meta.aborted=!0,P(_.complete)&&_.complete(X),h=""},this.guessLineEndings=function(E,d){E=E.substring(0,1048576);var d=new RegExp(x(d)+"([^]*?)"+x(d),"gm"),c=(E=E.replace(d,"")).split("\r"),d=E.split(`
14
- `),E=1<d.length&&d[0].length<c[0].length;if(c.length===1||E)return`
15
- `;for(var A=0,m=0;m<c.length;m++)c[m][0]===`
16
- `&&A++;return A>=c.length/2?`\r
17
- `:"\r"}}function x(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $(_){var h=(_=_||{}).delimiter,T=_.newline,j=_.comments,q=_.step,K=_.preview,oe=_.fastMode,pe=null,me=!1,ee=_.quoteChar==null?'"':_.quoteChar,ce=ee;if(_.escapeChar!==void 0&&(ce=_.escapeChar),(typeof h!="string"||-1<p.BAD_DELIMITERS.indexOf(h))&&(h=","),j===h)throw new Error("Comment character same as delimiter");j===!0?j="#":(typeof j!="string"||-1<p.BAD_DELIMITERS.indexOf(j))&&(j=!1),T!==`
18
- `&&T!=="\r"&&T!==`\r
19
- `&&(T=`
20
- `);var z=0,_e=!1;this.parse=function(re,Z,X){if(typeof re!="string")throw new Error("Input must be a string");var W=re.length,ge=h.length,ye=T.length,De=j.length,te=P(q),ie=[],c=[],d=[],E=z=0;if(!re)return Y();if(oe||oe!==!1&&re.indexOf(ee)===-1){for(var A=re.split(T),m=0;m<A.length;m++){if(d=A[m],z+=d.length,m!==A.length-1)z+=T.length;else if(X)return Y();if(!j||d.substring(0,De)!==j){if(te){if(ie=[],l(d.split(h)),J(),_e)return Y()}else l(d.split(h));if(K&&K<=m)return ie=ie.slice(0,K),Y(!0)}}return Y()}for(var v=re.indexOf(h,z),D=re.indexOf(T,z),y=new RegExp(x(ce)+x(ee),"g"),b=re.indexOf(ee,z);;)if(re[z]===ee)for(b=z,z++;;){if((b=re.indexOf(ee,b+1))===-1)return X||c.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:z}),C();if(b===W-1)return C(re.substring(z,b).replace(y,ee));if(ee===ce&&re[b+1]===ce)b++;else if(ee===ce||b===0||re[b-1]!==ce){v!==-1&&v<b+1&&(v=re.indexOf(h,b+1));var R=f((D=D!==-1&&D<b+1?re.indexOf(T,b+1):D)===-1?v:Math.min(v,D));if(re.substr(b+1+R,ge)===h){d.push(re.substring(z,b).replace(y,ee)),re[z=b+1+R+ge]!==ee&&(b=re.indexOf(ee,z)),v=re.indexOf(h,z),D=re.indexOf(T,z);break}if(R=f(D),re.substring(b+1+R,b+1+R+ye)===T){if(d.push(re.substring(z,b).replace(y,ee)),B(b+1+R+ye),v=re.indexOf(h,z),b=re.indexOf(ee,z),te&&(J(),_e))return Y();if(K&&ie.length>=K)return Y(!0);break}c.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:z}),b++}}else if(j&&d.length===0&&re.substring(z,z+De)===j){if(D===-1)return Y();z=D+ye,D=re.indexOf(T,z),v=re.indexOf(h,z)}else if(v!==-1&&(v<D||D===-1))d.push(re.substring(z,v)),z=v+ge,v=re.indexOf(h,z);else{if(D===-1)break;if(d.push(re.substring(z,D)),B(D+ye),te&&(J(),_e))return Y();if(K&&ie.length>=K)return Y(!0)}return C();function l(Q){ie.push(Q),E=z}function f(Q){var w=0;return w=Q!==-1&&(Q=re.substring(b+1,Q))&&Q.trim()===""?Q.length:w}function C(Q){return X||(Q===void 0&&(Q=re.substring(z)),d.push(Q),z=W,l(d),te&&J()),Y()}function B(Q){z=Q,l(d),d=[],D=re.indexOf(T,z)}function Y(Q){if(_.header&&!Z&&ie.length&&!me){var w=ie[0],U=Object.create(null),ne=new Set(w);let Ee=!1;for(let Fe=0;Fe<w.length;Fe++){let Me=w[Fe];if(U[Me=P(_.transformHeader)?_.transformHeader(Me,Fe):Me]){let Le,We=U[Me];for(;Le=Me+"_"+We,We++,ne.has(Le););ne.add(Le),w[Fe]=Le,U[Me]++,Ee=!0,(pe=pe===null?{}:pe)[Le]=Me}else U[Me]=1,w[Fe]=Me;ne.add(Me)}Ee&&console.warn("Duplicate headers found and renamed."),me=!0}return{data:ie,errors:c,meta:{delimiter:h,linebreak:T,aborted:_e,truncated:!!Q,cursor:E+(Z||0),renamedHeaders:pe}}}function J(){q(Y()),ie=[],c=[]}},this.abort=function(){_e=!0},this.getCharIndex=function(){return z}}function V(_){var h=_.data,T=o[h.workerId],j=!1;if(h.error)T.userError(h.error,h.file);else if(h.results&&h.results.data){var q={abort:function(){j=!0,S(h.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:k,resume:k};if(P(T.userStep)){for(var K=0;K<h.results.data.length&&(T.userStep({data:h.results.data[K],errors:h.results.errors,meta:h.results.meta},q),!j);K++);delete h.results}else P(T.userChunk)&&(T.userChunk(h.results,q,h.file),delete h.results)}h.finished&&!j&&S(h.workerId,h.results)}function S(_,h){var T=o[_];P(T.userComplete)&&T.userComplete(h),T.terminate(),delete o[_]}function k(){throw new Error("Not implemented.")}function F(_){if(typeof _!="object"||_===null)return _;var h,T=Array.isArray(_)?[]:{};for(h in _)T[h]=F(_[h]);return T}function L(_,h){return function(){_.apply(h,arguments)}}function P(_){return typeof _=="function"}return p.parse=function(_,h){var T=(h=h||{}).dynamicTyping||!1;if(P(T)&&(h.dynamicTypingFunction=T,T={}),h.dynamicTyping=T,h.transform=!!P(h.transform)&&h.transform,!h.worker||!p.WORKERS_SUPPORTED)return T=null,p.NODE_STREAM_INPUT,typeof _=="string"?(_=(j=>j.charCodeAt(0)!==65279?j:j.slice(1))(_),T=new(h.download?g:I)(h)):_.readable===!0&&P(_.read)&&P(_.on)?T=new H(h):(r.File&&_ instanceof File||_ instanceof Object)&&(T=new N(h)),T.stream(_);(T=(()=>{var j;return!!p.WORKERS_SUPPORTED&&(j=(()=>{var q=r.URL||r.webkitURL||null,K=n.toString();return p.BLOB_URL||(p.BLOB_URL=q.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",K,")();"],{type:"text/javascript"})))})(),(j=new r.Worker(j)).onmessage=V,j.id=u++,o[j.id]=j)})()).userStep=h.step,T.userChunk=h.chunk,T.userComplete=h.complete,T.userError=h.error,h.step=P(h.step),h.chunk=P(h.chunk),h.complete=P(h.complete),h.error=P(h.error),delete h.worker,T.postMessage({input:_,config:h,workerId:T.id})},p.unparse=function(_,h){var T=!1,j=!0,q=",",K=`\r
21
- `,oe='"',pe=oe+oe,me=!1,ee=null,ce=!1,z=((()=>{if(typeof h=="object"){if(typeof h.delimiter!="string"||p.BAD_DELIMITERS.filter(function(Z){return h.delimiter.indexOf(Z)!==-1}).length||(q=h.delimiter),typeof h.quotes!="boolean"&&typeof h.quotes!="function"&&!Array.isArray(h.quotes)||(T=h.quotes),typeof h.skipEmptyLines!="boolean"&&typeof h.skipEmptyLines!="string"||(me=h.skipEmptyLines),typeof h.newline=="string"&&(K=h.newline),typeof h.quoteChar=="string"&&(oe=h.quoteChar),typeof h.header=="boolean"&&(j=h.header),Array.isArray(h.columns)){if(h.columns.length===0)throw new Error("Option columns is empty");ee=h.columns}h.escapeChar!==void 0&&(pe=h.escapeChar+oe),h.escapeFormulae instanceof RegExp?ce=h.escapeFormulae:typeof h.escapeFormulae=="boolean"&&h.escapeFormulae&&(ce=/^[=+\-@\t\r].*$/)}})(),new RegExp(x(oe),"g"));if(typeof _=="string"&&(_=JSON.parse(_)),Array.isArray(_)){if(!_.length||Array.isArray(_[0]))return _e(null,_,me);if(typeof _[0]=="object")return _e(ee||Object.keys(_[0]),_,me)}else if(typeof _=="object")return typeof _.data=="string"&&(_.data=JSON.parse(_.data)),Array.isArray(_.data)&&(_.fields||(_.fields=_.meta&&_.meta.fields||ee),_.fields||(_.fields=Array.isArray(_.data[0])?_.fields:typeof _.data[0]=="object"?Object.keys(_.data[0]):[]),Array.isArray(_.data[0])||typeof _.data[0]=="object"||(_.data=[_.data])),_e(_.fields||[],_.data||[],me);throw new Error("Unable to serialize unrecognized input");function _e(Z,X,W){var ge="",ye=(typeof Z=="string"&&(Z=JSON.parse(Z)),typeof X=="string"&&(X=JSON.parse(X)),Array.isArray(Z)&&0<Z.length),De=!Array.isArray(X[0]);if(ye&&j){for(var te=0;te<Z.length;te++)0<te&&(ge+=q),ge+=re(Z[te],te);0<X.length&&(ge+=K)}for(var ie=0;ie<X.length;ie++){var c=(ye?Z:X[ie]).length,d=!1,E=ye?Object.keys(X[ie]).length===0:X[ie].length===0;if(W&&!ye&&(d=W==="greedy"?X[ie].join("").trim()==="":X[ie].length===1&&X[ie][0].length===0),W==="greedy"&&ye){for(var A=[],m=0;m<c;m++){var v=De?Z[m]:m;A.push(X[ie][v])}d=A.join("").trim()===""}if(!d){for(var D=0;D<c;D++){0<D&&!E&&(ge+=q);var y=ye&&De?Z[D]:D;ge+=re(X[ie][y],D)}ie<X.length-1&&(!W||0<c&&!E)&&(ge+=K)}}return ge}function re(Z,X){var W,ge;return Z==null?"":Z.constructor===Date?JSON.stringify(Z).slice(1,25):(ge=!1,ce&&typeof Z=="string"&&ce.test(Z)&&(Z="'"+Z,ge=!0),W=Z.toString().replace(z,pe),(ge=ge||T===!0||typeof T=="function"&&T(Z,X)||Array.isArray(T)&&T[X]||((ye,De)=>{for(var te=0;te<De.length;te++)if(-1<ye.indexOf(De[te]))return!0;return!1})(W,p.BAD_DELIMITERS)||-1<W.indexOf(q)||W.charAt(0)===" "||W.charAt(W.length-1)===" ")?oe+W+oe:W)}},p.RECORD_SEP=String.fromCharCode(30),p.UNIT_SEP=String.fromCharCode(31),p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
22
- `,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!s&&!!r.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=$,p.ParserHandle=M,p.NetworkStreamer=g,p.FileStreamer=N,p.StringStreamer=I,p.ReadableStreamStreamer=H,r.jQuery&&((i=r.jQuery).fn.parse=function(_){var h=_.config||{},T=[];return this.each(function(K){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var oe=0;oe<this.files.length;oe++)T.push({file:this.files[oe],inputElem:this,instanceConfig:i.extend({},h)})}),j(),this;function j(){if(T.length===0)P(_.complete)&&_.complete();else{var K,oe,pe,me,ee=T[0];if(P(_.before)){var ce=_.before(ee.file,ee.inputElem);if(typeof ce=="object"){if(ce.action==="abort")return K="AbortError",oe=ee.file,pe=ee.inputElem,me=ce.reason,void(P(_.error)&&_.error({name:K},oe,pe,me));if(ce.action==="skip")return void q();typeof ce.config=="object"&&(ee.instanceConfig=i.extend(ee.instanceConfig,ce.config))}else if(ce==="skip")return void q()}var z=ee.instanceConfig.complete;ee.instanceConfig.complete=function(_e){P(z)&&z(_e,ee.file,ee.inputElem),q()},p.parse(ee.file,ee.instanceConfig)}}function q(){T.splice(0,1),j()}}),a&&(r.onmessage=function(_){_=_.data,p.WORKER_ID===void 0&&_&&(p.WORKER_ID=_.workerId),typeof _.input=="string"?r.postMessage({workerId:p.WORKER_ID,results:p.parse(_.input,_.config),finished:!0}):(r.File&&_.input instanceof File||_.input instanceof Object)&&(_=p.parse(_.input,_.config))&&r.postMessage({workerId:p.WORKER_ID,results:_,finished:!0})}),(g.prototype=Object.create(O.prototype)).constructor=g,(N.prototype=Object.create(O.prototype)).constructor=N,(I.prototype=Object.create(I.prototype)).constructor=I,(H.prototype=Object.create(O.prototype)).constructor=H,p})})(Ns);var lo=Ns.exports;const co=ls(lo);/*!
23
- * shared v9.14.4
24
- * (c) 2025 kazuya kawaguchi
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["@emqx/shared-ui-utils"]={}))})(this,function(exports){"use strict";var i=(e=>(e.All="ALL",e.Read="READ",e.Write="WRITE",e.Describe="DESCRIBE",e.Create="CREATE",e.Delete="DELETE",e.Alter="ALTER",e))(i||{}),m$1=(e=>(e.Allow="ALLOW",e.Deny="DENY",e))(m$1||{}),o=(e=>(e.Topic="TOPIC",e.Group="GROUP",e.Cluster="CLUSTER",e))(o||{}),r=(e=>(e.Webhook="http",e.MQTT="mqtt",e.InfluxDB="influxdb",e.MySQL="mysql",e.KafkaProducer="kafka_producer",e.KafkaConsumer="kafka_consumer",e.Redis="redis",e.GCPProducer="gcp_pubsub_producer",e.GCPConsumer="gcp_pubsub_consumer",e.MongoDB="mongodb",e.PgSQL="pgsql",e.TimescaleDB="timescale",e.MatrixDB="matrix",e.TDengine="tdengine",e.ClickHouse="clickhouse",e.DynamoDB="dynamo",e.Cassandra="cassandra",e.MicrosoftSQLServer="sqlserver",e.RocketMQ="rocketmq",e.IoTDB="iotdb",e.OpenTSDB="opents",e.OracleDatabase="oracle",e.RabbitMQ="rabbitmq",e.Pulsar="pulsar",e.HStream="hstreamdb",e.AzureEventHubs="azure_event_hub_producer",e.AmazonKinesis="kinesis",e.GreptimeDB="greptimedb",e.Confluent="confluent_producer",e.SysKeeperProxy="syskeeper_proxy",e.SysKeeperForwarder="syskeeper_forwarder",e.Elasticsearch="elasticsearch",e.S3="s3",e.AzureBlobStorage="azure_blob_storage",e.Couchbase="couchbase",e.Datalayers="datalayers",e.Snowflake="snowflake",e.Tablestore="tablestore",e.DiskLog="disk_log",e.S3Tables="s3tables",e.Doris="doris",e))(r||{}),a=(e=>(e.Message="message",e.Event="event",e))(a||{});const v$1="$bridges/",E="ai_completion";r.MQTT,r.RabbitMQ,a.Event,a.Message;const O=new RegExp(`${E}\\('(?<name>.+)'\\,\\s*(?<input>.+)\\)\\s+AS\\s+(?<alias>.+)`,"i"),N=/^FOREACH/i,waitAMoment=(e=100)=>new Promise(t=>{window.setTimeout(()=>{t(!0)},e)}),ZERO_ASCII=48,LOWER_A_ASCII=97,charLib=String.fromCharCode(...new Array(10).fill(ZERO_ASCII).map((e,t)=>e+t).concat(new Array(26).fill(LOWER_A_ASCII).map((e,t)=>e+t))),createRandomString=(e=8)=>{const t=charLib.length;return new Array(e).fill("").reduce(n=>{const s=Math.floor(Math.random()*t);return n+charLib.substring(s,s+1)},"")},trimSpacesAndLFs=e=>e==null?void 0:e.replace(/(^\s+)|(\s+$)/g,"").replace(/(^\n+)|(\n+$)/g,""),splitOnSymbol=(e,t)=>{const n=[];let s=!1,c=!1;const l=[""];for(let C=0;C<e.length;C++){const A=e[C];if(A==="(")n.push(A);else if(A===")")n.length>0&&n.pop();else if(A==="'")s=!s;else if(A==='"')c=!c;else if(A===t&&n.length===0&&!s&&!c){l.push("");continue}l[l.length-1]+=A}return l},splitOnComma=e=>e?splitOnSymbol(e,","):[],ruleSelectionAliasPartReg=/\sas\s(\S+)/,ruleSelectionAliasReg=new RegExp(`.+${ruleSelectionAliasPartReg.source}`),getRuleSelectionAlias=e=>{if(ruleSelectionAliasReg.test(e)){const[,n=""]=e.match(ruleSelectionAliasReg)||[];return n}},ruleSelectionWithFunc=/^\w+\((.|\n)+\)$/,judgeRuleSelectionWithFunc=e=>ruleSelectionWithFunc.test(e),numToFixed=(e,t=3)=>parseFloat(e.toFixed(t)),removeFromArr=(e,t)=>(e.splice(t,1),e),titleCase=e=>e.replace(/(^[a-z])|(\s[a-z])/g,t=>t.toUpperCase()),keyReg=/^(?<type>\w+):(?<name>.+)$/,getTypeAndNameFromKey=e=>{const t=e.match(keyReg);if(!t)throw new Error("invalid key");const{type:n,name:s}=t.groups||{};return{type:n,name:s}},getBridgeIdFromInput=e=>e.replace(v$1,""),getBridgeTypeFromId=e=>getTypeAndNameFromKey(e).type,getBridgeNameFromId=e=>getTypeAndNameFromKey(e).name,notInQuoteReg=/(?:[^"']|"[^"]*"|'[^']*')/,normalSQLReg=new RegExp(`^SELECT(?<select>${notInQuoteReg.source}+?)[\\s\\n]FROM(?<from>${notInQuoteReg.source}+)`,"i"),withConditionSQLReg=new RegExp(`${normalSQLReg.source}([\\s\\n]WHERE(?<where>${notInQuoteReg.source}+))`,"i"),getKeyPartsFromSQL=e=>{const t=e.trim();let n,s,c,l=null;if(N.test(t)?l=t.match(/(?<foreach>(.|\n)+)FROM(?<from>(.|\n)+)/):l=t.match(withConditionSQLReg)||t.match(normalSQLReg),l){const{groups:C}=l,{foreach:A="",select:L="",from:W="",where:Y=""}=C||{};n=A||L.trim(),s=W.trim(),Y&&(c=Y.trim())}return{fieldStr:n,fromStr:s,whereStr:c}},isContainsAIExpression=e=>O.test(e),getBridgeKey=({type:e,name:t})=>`${e}:${t}`,checkNeedRequestAPI=e=>e||e===void 0,d={title:"Streaming (beta)",streams:"Streams",streamName:"Stream Name",partitionNum:"Number of Partitions",mqttTopic:"MQTT Topic Filter",mqttTopicTip:"MQTT messages matching this topic filter are saved to the corresponding default type Stream. The free type Stream is not associated with an MQTT topic filter.",streamNameTip:"The Kafka topic for a Kafka client is the same as the Stream name.",retention:"Retention Period",consumerGroups:"Consumer Groups",groupID:"Group ID",streamNum:"Number of Streams",consumerNum:"Number of Consumers",protocol:"Protocol",consumers:"Consumers",consumerID:"Consumer ID",partition:"Partition",startOffset:"Start Offset",endOffset:"End Offset",partitions:"Partitions",newStream:"New Stream",streamNameFormatTip:"Start with a letter or number and can include letters, numbers, _, . and -, up to 64 characters",maxStreamsTip:"Up to {num} streams can be created",summary:"EMQX Streaming is an innovative feature of EMQX Platform that allows users to persistently store MQTT messages as data streams and consume them directly using Kafka clients.",enableStreaming:"Enable Streaming (beta)",usingStreaming:"With EMQX Streaming, you can:",streamingBenefits:["Reliably store large amounts of MQTT message data","Directly use Kafka clients for historical data replay and real-time subscription","Seamlessly integrate with existing backend applications and big data systems","Directly interface with stream processors like Flink for data processing"],betaTip:"This feature is in beta.",needVPCTip:"Streaming requires intranet access, please create a {vpc} first.",mqttTopicFormatTip:"Can contain letters, numbers, special characters (_, -, /, +, #, $, %, {'@'}, &, :, {'{'}{'}'} and .) and mid-string spaces (no leading/trailing spaces), up to 128 characters",streamType:"Stream Type",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"The default type Stream is associated with an MQTT topic filter, and MQTT messages matching the topic filter are saved to the Stream. The free type Stream is not associated with an MQTT topic filter.",authType:"Authentication Mechanism",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"Resource Type",aclResourceName:"Resource Selector",aclOperation:"Operation",prefixed:"Prefix",consumerGroupType:"Consumer Group",clusterType:"Cluster",literal:"Literal",matchAll:"All",allow:"Allow",deny:"Deny",aclOperationLabelDic:{ALL:"All",READ:"Read",WRITE:"Write",DESCRIBE:"Describe",CREATE:"Create",DELETE:"Delete",ALTER:"Alter"},usernameRule:"Can contain letters, numbers and some special characters (_, -, /, +, #, $, %, {'@'}, & and .), up to 128 characters",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
2
+ The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"Streams",partition_count:"Partitions",group_count:"Consumer Groups",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},m={title:"Streaming (beta)",streams:"Streams",streamName:"Stream 名称",partitionNum:"分区数量",mqttTopic:"MQTT 主题过滤器",mqttTopicTip:"匹配主题过滤器的 MQTT 消息会被保存到对应的 Default 类型的 Stream 中。Free 类型的 Stream 不与 MQTT 主题过滤器关联。",streamNameTip:"Kafka 客户端看到的 Kafka Topic 的名称和 Stream 名称相同。",retention:"保留天数",consumerGroups:"消费者组",groupID:"组 ID",streamNum:"Stream 数量",consumerNum:"消费者数量",protocol:"协议",consumers:"消费者列表",consumerID:"消费者 ID",partition:"分区",startOffset:"起始偏移量",endOffset:"结束偏移量",partitions:"分区列表",newStream:"新建 Stream",streamNameFormatTip:"以字母或数字开头,可包含字母、数字、下划线(_)、连字符(-)和点号(.),最长 64 个字符",maxStreamsTip:"最多可创建 {num} 个 Stream",summary:"EMQX Streaming 是 EMQX Platform 的一项创新特性,它允许用户将 MQTT 消息持久化存储为数据流,并直接使用 Kafka 客户端进行消费。",enableStreaming:"开通 Streaming (beta)",usingStreaming:"使用 EMQX Streaming,您可以:",streamingBenefits:["可靠地存储大量的 MQTT 消息数据","直接使用 Kafka 客户端进行历史数据回放和实时订阅","无缝集成现有的后端应用程序和大数据系统","直接与 Flink 等流处理器对接进行实时数据处理"],betaTip:"此功能目前处于公测阶段。",needVPCTip:"Streaming 功能需要内网访问,在开通前请先创建 {vpc}。",mqttTopicFormatTip:"可包含字母、数字、部分特殊字符(_、-、/、+、#、$、%、{'@'}、&、:、{'{'}{'}'} 和 .)及中间空格(无首尾空格),最长 128 个字符",streamType:"Stream 类型",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"Default 类型的 Stream 关联 MQTT 主题过滤器,且匹配主题过滤器的 MQTT 消息会被保存到 Stream 中。Free 类型的 Stream 不关联 MQTT 主题过滤器。",authType:"认证方式",host:"Host",hostTip:"填写 Host IP 地址或者使用 <code>*</code> 匹配所有 Host。<br/>如果您选择了 <code>精确匹配</code> 模式,则应提供一个 Host IP 地址。",aclResourceType:"资源类型",aclResourceName:"目标值",aclOperation:"操作类型",prefixed:"前缀匹配",consumerGroupType:"消费者组",clusterType:"集群",literal:"精确匹配",matchAll:"匹配所有",allow:"允许",deny:"不允许",aclOperationLabelDic:{ALL:"全部操作",READ:"读",WRITE:"写",DESCRIBE:"查看详情",CREATE:"创建",DELETE:"删除",ALTER:"更改"},usernameRule:"可包含字母、数字和部分特殊字符(_、-、/、+、#、$、%、{'@'}、& 和 .),最长 128 个字符",aclDescription:"是指对 Kafka 客户端所能操作的资源,包括主题、消费者组和集群等的权限控制。采用白名单模式,即只有在白名单中的条目才能通过,未在白名单中的则默认被拒绝。",networkType:"网络类型",securityProtocol:"安全协议",metricTitleDic:{stream_count:"Stream 数",partition_count:"分区数",group_count:"消费者组数",total_messages_in_rate:"消息流入速率",total_messages_out_rate:"消息流出速率"}},u={title:"ストリーミング(ベータ)",streams:"ストリーム",streamName:"ストリーム名",partitionNum:"パーティション数",mqttTopic:"MQTT トピックフィルタ",mqttTopicTip:"このトピックフィルターに一致する MQTT メッセージは、対応する「Default」タイプのストリームに保存されます。「Free」タイプのストリームは MQTT トピックフィルターと関連付けられていません。",streamNameTip:"Kafka クライアントで使用する Kafka トピックは、ストリーム名と同じです。",retention:"保持期間",consumerGroups:"コンシューマーグループ",groupID:"グループ ID",streamNum:"ストリーム数",consumerNum:"コンシューマー数",protocol:"プロトコル",consumers:"コンシューマー",consumerID:"コンシューマー ID",partition:"パーティション",startOffset:"開始オフセット",endOffset:"終了オフセット",partitions:"パーティション",newStream:"新規ストリーム",streamNameFormatTip:"文字または数字で始まり、文字、数字、「_」、「.」、「-」を含む最大 64 文字",maxStreamsTip:"最大 {num} 個のストリームを作成できます",summary:"「EMQX Streaming」は、EMQX プラットフォームの革新的な機能で、MQTT メッセージをデータストリームとして永続的に保存し、Kafka クライアントから直接コンシュームできます。",enableStreaming:"ストリーミングを有効にする(ベータ)",usingStreaming:"「EMQX Streaming」を使用すると、以下のことが可能です:",streamingBenefits:["大量の MQTT メッセージデータを確実に保存","Kafka クライアントを直接使用して履歴データの再生とリアルタイムサブスクリプション","既存のバックエンドアプリケーションやビッグデータシステムとのシームレスな統合","Flink などのストリームプロセッサとの直接インターフェース"],betaTip:"この機能はベータ版です。",needVPCTip:"ストリーミングを利用するには内部ネットワークへのアクセスが必要です。まず{vpc}を作成してください。",mqttTopicFormatTip:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」、「:」、「{'{'}{'}'}」、中間の空白、および「.」のみ使え、最長 128 文字です",streamType:"ストリームタイプ",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"「Default」タイプのストリームは MQTT トピックフィルターと関連付けられており、そのフィルターに一致する MQTT メッセージがストリームに保存されます。Kafka クライアントからの「Free」タイプのストリームのは MQTT トピックフィルターと関連付けられていません。",authType:"認証方式",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"リソースタイプ",aclResourceName:"リソース値",aclOperation:"操作",prefixed:"プレフィックス",consumerGroupType:"コンシューマーグループ",clusterType:"クラスタ",literal:"リテラル",matchAll:"すべて",allow:"許可",deny:"拒否",aclOperationLabelDic:{ALL:"すべて",READ:"読み取り",WRITE:"書き込み",DESCRIBE:"説明",CREATE:"作成",DELETE:"削除",ALTER:"変更する"},usernameRule:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」および「.」のみ使え、最長 128 文字です",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
3
+ The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"ストリーム数",partition_count:"パーティション数",group_count:"コンシューマーグループ数",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},p={access:"Permission",topic:"Topic",username:"Username",password:"Password",cancel:"Cancel",back:"Back",generate:"Generate",field:"Field",pleaseChoose:"Required",pleaseEnter:"Required",add:"Add",actions:"Actions",transform:"Transform",alias:"Alias",name:"Name",colon:": "},h$1={access:"是否允许",topic:"主题",username:"用户名",password:"密码",cancel:"取消",back:"返回",generate:"生成",field:"字段",pleaseChoose:"请选择",pleaseEnter:"请输入",add:"添加",actions:"操作",transform:"转换",alias:"别名",name:"名称",colon:":"},_={access:"許可/拒否",topic:"トピック",username:"ユーザー名",password:"パスワード",cancel:"キャンセル",back:"戻り",generate:"生成",field:"フィールド",pleaseChoose:"選択してください",pleaseEnter:"入力してください",add:"追加",actions:"操作",transform:"変換",alias:"エイリアス",name:"名称",colon:":"},f={mathFunc:"Mathematical Functions",dataTypeJudgmentFunc:"Data Type Judgment Functions",dataTypeConversionFunc:"Data Type Conversion Functions",stringFunc:"String Functions",mapFunc:"Map Functions",arrFunc:"Array Functions",hashFunc:"Hash Functions",compressesAndUncompressesFunc:"Compression and Decompression Functions",bitFunc:"Bit Functions",decodingAndEncodingFunc:"Decoding and Encoding Functions",timeAndDateFunc:"Time and Date Functions",schemaRegistry:"Schema Registry",Value:"Value",Base:"Base",Exponent:"Exponent",Numer:"Numer",Denom:"Denom",Precision:"Precision",String:"String",StartPosition:"Start Position",Separator:"Separator",Direction:"Direction",String1:"String1",String2:"String2",PreserveCRLF:"Preserve CRLF",TotalLength:"Total Length",PaddingDirection:"Padding Direction",PaddingString:"Padding String",OldSubStr:"Old Sub Str",Replacement:"Replacement",ReplaceCount:"Replace Count",Pattern:"Pattern",Character:"Character",SubstringToBeFound:"Substring To Be Found",DirectionToFind:"Direction To Find",Key:"Key",Map:"Map",DefaultValue:"Default Value",Index:"Index",Array:"Array",StartIndex:"Start Index",Length:"Length",UnixTimestamp:"Unix Timestamp",TimeUnit:"Time Unit",RFC3339String:"RFC3339 Time String",TimeOffset:"Time Offset",DateFormat:"Date Format",Timestamp:"Timestamp",BinaryData:"Binary Data",BinaryStartIndex:"Start Index",DataType:"Data Type",Signedness:"Signedness",Endian:"Endian",SchemaName:"Schema",Data:"Data",Type:"Message Type",aliasDesc:"If the alias contains characters other than letters, numbers, and underscores, or starts with a number, or is a SQL keyword, please add double quotes to the alias",inputFieldRequiredError:"{name} is required",unusedField:"Unused field",aliasRequired:"Need to specify an alias",aliasFormatError:"Invalid alias format"},b={mathFunc:"数学函数",dataTypeJudgmentFunc:"数据类型判断函数",dataTypeConversionFunc:"数据类型转换函数",stringFunc:"字符串函数",mapFunc:"Map 函数",arrFunc:"数组函数",hashFunc:"哈希函数",compressesAndUncompressesFunc:"压缩解压缩函数",bitFunc:"比特操作函数",decodingAndEncodingFunc:"编解码函数",timeAndDateFunc:"时间与日期函数",schemaRegistry:"编解码",Value:"值",Base:"基数",Exponent:"指数",Numer:"分子",Denom:"分母",Precision:"精度",String:"字符串",StartPosition:"起始位置",Separator:"分割符",Direction:"方向",String1:"左字符串",String2:"右字符串",PreserveCRLF:"是否保留换行符",TotalLength:"字符总长度",PaddingDirection:"补足方向",PaddingString:"补足字符",OldSubStr:"需要替换的字符串",Replacement:"替换值",ReplaceCount:"替换位置",Pattern:"正则表达式",Character:"字符",SubstringToBeFound:"要查找的子串",DirectionToFind:"查找方向",Key:"键",Map:"Map",DefaultValue:"默认值",Index:"索引",Array:"数组",StartIndex:"起始索引",Length:"截取长度",UnixTimestamp:"Unix 时间戳",TimeUnit:"时间单位",RFC3339String:"RFC 3339 时间字符串",TimeOffset:"时区偏移",DateFormat:"日期格式",Timestamp:"时间戳",BinaryData:"二进制数据",BinaryStartIndex:"起始位置的下标",DataType:"数据类型",Signedness:"符号性",Endian:"字节序",SchemaName:"Schema",Data:"数据",Type:"消息类型",aliasDesc:"别名如包含除字母、数字和下划线以外的字符,或以数字开头,或为 SQL 关键字时,请为别名加上双引号",inputFieldRequiredError:"请输入{name}",unusedField:"未被使用的字段",aliasRequired:"需指定一个别名",aliasFormatError:"格式错误的别名"},g={mathFunc:"数学関数",dataTypeJudgmentFunc:"データ型判定関数",dataTypeConversionFunc:"データ型変換関数",stringFunc:"文字列関数",mapFunc:"マップ関数",arrFunc:"配列関数",hashFunc:"ハッシュ関数",compressesAndUncompressesFunc:"圧縮・展開関数",bitFunc:"ビット関数",decodingAndEncodingFunc:"デコード・エンコード関数",timeAndDateFunc:"日時関数",schemaRegistry:"スキーマレジストリ",Value:"値",Base:"基数",Exponent:"指数",Numer:"分子",Denom:"分母",Precision:"精度",String:"文字列",StartPosition:"開始位置",Separator:"区切り文字",Direction:"方向",String1:"文字列 1",String2:"文字列 2",PreserveCRLF:"改行保持(CRLF)",TotalLength:"全体の長さ",PaddingDirection:"パディング方向",PaddingString:"パディング文字",OldSubStr:"元の部分文字列",Replacement:"置換後の文字列",ReplaceCount:"置換回数",Pattern:"パターン",Character:"文字",SubstringToBeFound:"検索対象の部分文字列",DirectionToFind:"検索方向",Key:"キー",Map:"マップ",DefaultValue:"デフォルト値",Index:"インデックス",Array:"配列",StartIndex:"開始インデックス",Length:"長さ",UnixTimestamp:"Unix タイムスタンプ",TimeUnit:"時間単位",RFC3339String:"RFC3339 形式の時間文字列",TimeOffset:"時間オフセット",DateFormat:"日付形式",Timestamp:"タイムスタンプ",BinaryData:"バイナリデータ",BinaryStartIndex:"開始インデックス",DataType:"データ型",Signedness:"符号の有無",Endian:"エンディアン",SchemaName:"スキーマ",Data:"データ",Type:"メッセージタイプ",aliasDesc:"エイリアスに英数字とアンダースコア以外の文字が含まれる場合、数字で始まる場合、または SQL キーワードの場合は、エイリアスを二重引用符で囲んでください",inputFieldRequiredError:"{name} は必須項目です",unusedField:"未使用のフィールド",aliasRequired:"エイリアスを指定する必要があります",aliasFormatError:"エイリアスの形式が正しくありません"},y={generateSQLByAIBtn:"SQL Generator",generateSQLWithAI:"Generate SQL with AI",taskDescPlaceholder:'Enter a natural language task description, e.g., "Select all fields from t/#"',taskDesc:"Task Description",relatedTopics:"Related Topics",relatedTopicsDesc:'Supports a single topic, or multiple topics (comma-separated, with +/# support), e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'Please enter related topics, e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"Input Example (JSON)",sqlExampleInputDesc:"Provide an example JSON for the input message",sqlExampleOutput:"Output Example (JSON)",sqlExampleOutputDesc:"Provide an example JSON for the output result",applySQL:"Apply SQL",generatedSQLOutputTitle:"Generated SQL",generatedSQLOutputDesc:"Please review the AI-generated SQL. You can apply it directly, or return to modify the description and regenerate."},v={generateSQLByAIBtn:"SQL 生成器",generateSQLWithAI:"使用 AI 生成 SQL",taskDescPlaceholder:'请输入自然语言的任务描述,例如:"从 t/# 主题选择所有字段"',taskDesc:"任务描述",relatedTopics:"相关主题",relatedTopicsDesc:'支持单个主题,或多个主题(请使用逗号分隔,支持 +/#),例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'请输入相关主题,例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"输入示例(JSON)",sqlExampleInputDesc:"提供一个输入消息的 JSON 示例",sqlExampleOutput:"输出示例(JSON)",sqlExampleOutputDesc:"提供一个输出结果的 JSON 示例",applySQL:"应用 SQL",generatedSQLOutputTitle:"生成的 SQL",generatedSQLOutputDesc:"请检查 AI 生成的 SQL。可直接应用,或返回修改描述并重新生成。"},k={generateSQLByAIBtn:"SQL ジェネレーター",generateSQLWithAI:"AI で SQL を生成",taskDescPlaceholder:"自然言語でタスク説明を入力してください。例:「t/# からすべてのフィールドを選択」",taskDesc:"タスク説明",relatedTopics:"関連トピック",relatedTopicsDesc:"単一トピックまたは複数トピック(カンマ区切り、+/# をサポート)を指定できます。例:「t/a」または「t/a, t/b/#, t/c/+/d」",relatedTopicsPlaceholder:"関連トピックを入力してください。例:「t/a」または「t/a, t/b/#, t/c/+/d」",sqlExampleInput:"入力例(JSON)",sqlExampleInputDesc:"入力メッセージのサンプル JSON を指定してください",sqlExampleOutput:"出力例(JSON)",sqlExampleOutputDesc:"出力結果のサンプル JSON を指定してください",applySQL:"SQL を適用",generatedSQLOutputTitle:"生成された SQL",generatedSQLOutputDesc:"AI が生成した SQL を確認してください。直接適用することも、説明を修正して再生成することもできます。"},T={systemTitle:"Log Analysis AI Assistant",noMCPServers:"No MCP server is available, please configure the MCP server gateway.",configMCPServerGateway:"Configure MCP Server Gateway",mcpServerGatewayConfigs:"MCP Server Gateway Configurations",cancel:"Cancel",save:"Save",mqttHost:"MQTT Host",mqttPort:"MQTT Port",mqttUsername:"MQTT Username",mqttPassword:"MQTT Password",mqttClientId:"MQTT Client ID",mqttAppId:"MQTT App ID",saveSuccess:"Saved successfully",parseUserIntention:"Parse User Intention",loadLogEntries:"Load Log Entries",generalConversation:"General Conversation",extractAndExplainLogEntries:"Extract and Explain Log Entries",queryEmqxContext:"Query EMQX Context",genAnalysisReport:"Generate Analysis Report",completeReport:"Complete Report",funcCall:"Function Call",analysisResultTip:"The following is the report content:",responseConfirm:"Please confirm the result is ok?",yes:"Yes",no:"No",refreshConfirm:"There is a conversation in progress, confirm to clear the conversation and start a new one?",confirm:"Confirm",guidanceText:"Welcome to the Log Analysis AI Assistant. I will leverage technologies such as LLM and RAG,as well as utilize the MCP tool to query system status, to help you analyze EMQX-related logs and quickly identify and resolve issues. Here are some example questions you can ask,",querySample1:"Query the error/warning log messages from the past 5 minutes.",querySample2:"Query the latest 5 error/warning log messages.",querySample3:"Analyze log: ",noConfigStatus:"MCP server gateway not configured. Please configure the server gateway and connect to the server before proceeding with the analysis of server logs.",disconnectedStatus:"Cannot connect to your MCP servers, please check your settings or network.",selectServerRequired:"Please select the MCP server to connect.",funcName:"Function Name",funcArgs:"Function Arguments",funcOutput:"Function Output",permissionRequest:'Tool "{tool}" requires permission to access system resources.',deny:"Deny",allowOnce:"Allow Once",allowAlways:"Allow Always",reportGenerationCompleted:"Report generation completed.",userCancelled:"User cancelled the operation."},S={systemTitle:"日志分析 AI 助手",noMCPServers:"暂无可用 MCP 服务器,请先配置 MCP 服务器网关。",configMCPServerGateway:"配置 MCP 服务器网关",mcpServerGatewayConfigs:"MCP 服务器网关配置",cancel:"取消",save:"保存",mqttHost:"MQTT 主机",mqttPort:"MQTT 端口",mqttUsername:"MQTT 用户名",mqttPassword:"MQTT 密码",mqttClientId:"MQTT 客户端 ID",mqttAppId:"MQTT 应用 ID",saveSuccess:"保存成功",parseUserIntention:"分析用户意图",loadLogEntries:"加载日志条目",generalConversation:"通用对话",extractAndExplainLogEntries:"查找并解释日志数据",queryEmqxContext:"查询 EMQX 上下文",genAnalysisReport:"生成分析报告",completeReport:"完成报告",funcCall:"函数调用",analysisResultTip:"以下是报告内容:",responseConfirm:"请确认结果是否正确?",yes:"正确",no:"不正确",refreshConfirm:"当前页面有正在进行的对话,是否确认清空记录并开始新的对话?",confirm:"确认",guidanceText:"欢迎使用日志分析 AI 助手。我将利用 LLM 和 RAG 等技术,以及 MCP 工具查询系统状态,帮助您分析 EMQX 相关日志并快速识别和解决问题。以下是一些您可以询问的问题:",querySample1:"查询过去 5 分钟内的错误/警告日志消息。",querySample2:"查询最新的 5 条错误/警告日志消息。",querySample3:"分析日志:",noConfigStatus:"未配置 MCP 服务器网关,如需分析服务器日志,请先配置服务器网关,并连接服务器后再进行操作。",disconnectedStatus:"无法连接到 MCP 服务器,请检查您的设置或网络。",selectServerRequired:"请选择需要连接的 MCP 服务器。",funcName:"函数名称",funcArgs:"函数参数",funcOutput:"函数输出",permissionRequest:'工具 "{tool}" 需要权限访问系统资源。',deny:"拒绝",allowOnce:"允许一次",allowAlways:"始终允许",reportGenerationCompleted:"报告生成完成。",userCancelled:"用户取消操作。"},w={guideSourceNodeLabel:"Source",guideSourceNodeDesc:"拖拽多个节点以选择消息与事件输入",guideProcessingNodeLabel:"Processing(可选)",guideProcessingNodeDesc:"拖拽节点以处理和过滤数据",guideSinkNodeLabel:"Sink",guideSinkNodeDesc:"拖拽多个节点以输出数据到外部数据集成",guideFallbackNodeLabel:"Fallback(可选)",guideFallbackNodeDesc:"拖拽节点以作为备选动作",actionAvailable:"可用",actionUnavailable:"不可用",connecting:"连接中",inconsistent:"集群中各节点不一致",disconnected:"已断开",message:"消息",event:"事件",dataProcessing:"数据处理",filter:"过滤器",consoleOutput:"控制台输出",republish:"消息重发布",condition:"个条件",systemPrompt:"系统消息",consoleFallbackWrong:"Console 不可作为备选动作",incorrectConnection:"错误的连线",filterFunctionsWrongOrder:"函数节点必须放置在过滤器节点之前,请调整节点位置。",flowEmptyError:"无法保存,Flow 中需要有至少一个 Sink 节点和一个 Source 节点",flowIntegrityError:"无法保存,Flow 中需要有至少一个 {missing} 节点",isolatedNodeError:"Flow 中有未连接的节点,请先连接或将其删除|Flow 中有未连接的节点,请先连接或将其删除",multipleFlowError:"每次仅允许创建一个 Flow",multipleFallbackWrong:"Flow 暂不支持编辑多层级备选动作",incorrectInputOutputConnection:"请确认所有 Source 节点均正确连接到同一数据处理节点",incorrectOutputNodeConnection:"请确认所有 Sink 节点均由同一数据处理节点输出",incorrectDefaultNodeConnection:"请确认所有数据处理节点均按照顺序首尾相连"},P={guideSourceNodeLabel:"Source",guideSourceNodeDesc:"Drag in multiple nodes to select message and event inputs",guideProcessingNodeLabel:"Processing (optional)",guideProcessingNodeDesc:"Drag nodes to transform and filter data",guideSinkNodeLabel:"Sink",guideSinkNodeDesc:"Drag in multiple nodes to output data to external integrations",guideFallbackNodeLabel:"Fallback (optional)",guideFallbackNodeDesc:"Drag nodes as fallback actions",actionAvailable:"Available",actionUnavailable:"Unavailable",connecting:"Connecting",inconsistent:"Inconsistent for nodes in the cluster",disconnected:"Disconnected",message:"Message",event:"Event",dataProcessing:"Data Processing",filter:"Filter",consoleOutput:"Console Output",republish:"Republish",condition:"condition | conditions",systemPrompt:"System Message",consoleFallbackWrong:"Console cannot be used as a fallback action",incorrectConnection:"Incorrect connection",filterFunctionsWrongOrder:"Function nodes must be placed before filter nodes. Please adjust node positions.",flowEmptyError:"Unable to save, there must be at least one Sink node and one Source node in the Flow",flowIntegrityError:"Unable to save, at least one {missing} node is required in the Flow",isolatedNodeError:"There are unconnected node in the flow. Please connect or delete them.|There are unconnected nodes in the flow. Please connect or delete them.",multipleFlowError:"Only one flow can be created at a time",multipleFallbackWrong:"Flow does not support editing multi-level fallback actions",incorrectInputOutputConnection:"Please confirm that all source nodes are correctly connected to the same data processing node",incorrectOutputNodeConnection:"Please confirm that all sink nodes are output from the same data processing node",incorrectDefaultNodeConnection:"Please confirm that all data processing nodes are connected in sequence from start to end"},x={guideSourceNodeLabel:"ソース",guideSourceNodeDesc:"複数のノードをドラッグしてメッセージとイベント入力を選択",guideProcessingNodeLabel:"処理(任意)",guideProcessingNodeDesc:"ノードをドラッグしてデータを変換・フィルター",guideSinkNodeLabel:"シンク",guideSinkNodeDesc:"複数のノードをドラッグして外部連携にデータを出力",guideFallbackNodeLabel:"フォールバック(任意)",guideFallbackNodeDesc:"ノードをドラッグしてフォールバックアクションとして設定します",actionAvailable:"利用可能",actionUnavailable:"利用不可",connecting:"接続中",inconsistent:"クラスタ内のノードで不一致",disconnected:"切断",message:"メッセージ",event:"イベント",dataProcessing:"データ処理",filter:"フィルター",consoleOutput:"Console Output",republish:"再パブリッシュ(Republish)",condition:"条件",systemPrompt:"システムメッセージ",consoleFallbackWrong:"Console cannot be used as a fallback action",incorrectConnection:"不正な接続",filterFunctionsWrongOrder:"関数ノードはフィルターノードより前に配置する必要があります。ノードの位置を調整してください。",flowEmptyError:"保存できません。フローには少なくとも1つのシンクノードと1つのソースノードが必要です。",flowIntegrityError:"保存できません。フローには少なくとも 1 つの{missing}ノードが必要です。",isolatedNodeError:"フローに未接続のノードがあります。接続するか削除してください。",multipleFlowError:"一度に作成できるフローは1つだけです。",multipleFallbackWrong:"フローは多段階のフォールバックアクションの編集をサポートしていません",incorrectInputOutputConnection:"すべてのソースノードが同じデータ処理ノードに正しく接続されていることを確認してください",incorrectOutputNodeConnection:"すべてのシンクノードが同じデータ処理ノードから出力されていることを確認してください",incorrectDefaultNodeConnection:"すべてのデータ処理ノードが開始から終了まで順に接続されていることを確認してください"};/*!
4
+ * shared v9.10.2
5
+ * (c) 2024 kazuya kawaguchi
25
6
  * Released under the MIT License.
26
- */const ot=typeof window<"u";let nt,At;if(process.env.NODE_ENV!=="production"){const e=ot&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(nt=t=>{e.mark(t)},At=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const uo=/\{([0-9a-zA-Z]+)\}/g;function er(e,...t){return t.length===1&&ue(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(uo,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const dt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),fo=(e,t,n)=>po({l:e,k:t,s:n}),po=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ae=e=>typeof e=="number"&&isFinite(e),mo=e=>Os(e)==="[object Date]",yt=e=>Os(e)==="[object RegExp]",In=e=>ae(e)&&Object.keys(e).length===0,$e=Object.assign,_o=Object.create,Ne=(e=null)=>_o(e);let vs;const ht=()=>vs||(vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ne());function bs(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const ho=Object.prototype.hasOwnProperty;function lt(e,t){return ho.call(e,t)}const be=Array.isArray,ve=e=>typeof e=="function",G=e=>typeof e=="string",le=e=>typeof e=="boolean",ue=e=>e!==null&&typeof e=="object",go=e=>ue(e)&&ve(e.then)&&ve(e.catch),ys=Object.prototype.toString,Os=e=>ys.call(e),ae=e=>{if(!ue(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Eo=e=>e==null?"":be(e)||ae(e)&&e.toString===ys?JSON.stringify(e,null,2):String(e);function No(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const Ts=2;function vo(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const s=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+1,i>=t){for(let o=a-Ts;o<=a+Ts||n>i;o++){if(o<0||o>=r.length)continue;const u=o+1;s.push(`${u}${" ".repeat(3-String(u).length)}| ${r[o]}`);const p=r[o].length;if(o===a){const O=t-(i-p)+1,g=Math.max(1,n>i?p-O:n-t);s.push(" | "+" ".repeat(O)+"^".repeat(g))}else if(o>a){if(n>i){const O=Math.max(Math.min(n-i,p),1);s.push(" | "+"^".repeat(O))}i+=p+1}}break}return s.join(`
27
- `)}function Sn(e){let t=e;return()=>++t}function Pe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Is={};function Ss(e){Is[e]||(Is[e]=!0,Pe(e))}function tr(){const e=new Map;return{events:e,on(n,r){const i=e.get(n);i&&i.push(r)||e.set(n,[r])},off(n,r){const i=e.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(i=>i(r)),(e.get("*")||[]).slice().map(i=>i(n,r))}}}const Ln=e=>!ue(e)||be(e);function Dn(e,t){if(Ln(e)||Ln(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(ue(r[s])&&!ue(i[s])&&(i[s]=Array.isArray(r[s])?[]:Ne()),Ln(i[s])||Ln(r[s])?i[s]=r[s]:n.push({src:r[s],des:i[s]}))})}}/*!
28
- * message-compiler v9.14.4
29
- * (c) 2025 kazuya kawaguchi
7
+ */const inBrowser=typeof window<"u";let mark,measure;if(process.env.NODE_ENV!=="production"){const e=inBrowser&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(mark=t=>{e.mark(t)},measure=(t,n,s)=>{e.measure(t,n,s),e.clearMarks(n),e.clearMarks(s)})}const RE_ARGS$1=/\{([0-9a-zA-Z]+)\}/g;function format$2(e,...t){return t.length===1&&isObject$2(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS$1,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,n)=>friendlyJSONstringify({l:e,k:t,s:n}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>typeof e=="number"&&isFinite(e),isDate=e=>toTypeString$1(e)==="[object Date]",isRegExp=e=>toTypeString$1(e)==="[object RegExp]",isEmptyObject=e=>isPlainObject$1(e)&&Object.keys(e).length===0,assign$1=Object.assign;let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty$2=Object.prototype.hasOwnProperty;function hasOwn$1(e,t){return hasOwnProperty$2.call(e,t)}const isArray$1=Array.isArray,isFunction$1=e=>typeof e=="function",isString$2=e=>typeof e=="string",isBoolean=e=>typeof e=="boolean",isObject$2=e=>e!==null&&typeof e=="object",isPromise$1=e=>isObject$2(e)&&isFunction$1(e.then)&&isFunction$1(e.catch),objectToString$1=Object.prototype.toString,toTypeString$1=e=>objectToString$1.call(e),isPlainObject$1=e=>{if(!isObject$2(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},toDisplayString=e=>e==null?"":isArray$1(e)||isPlainObject$1(e)&&e.toString===objectToString$1?JSON.stringify(e,null,2):String(e);function join$1(e,t=""){return e.reduce((n,s,c)=>c===0?n+s:n+t+s,"")}const RANGE=2;function generateCodeFrame(e,t=0,n=e.length){const s=e.split(/\r?\n/);let c=0;const l=[];for(let C=0;C<s.length;C++)if(c+=s[C].length+1,c>=t){for(let A=C-RANGE;A<=C+RANGE||n>c;A++){if(A<0||A>=s.length)continue;const L=A+1;l.push(`${L}${" ".repeat(3-String(L).length)}| ${s[A]}`);const W=s[A].length;if(A===C){const Y=t-(c-W)+1,U=Math.max(1,n>c?W-Y:n-t);l.push(" | "+" ".repeat(Y)+"^".repeat(U))}else if(A>C){if(n>c){const Y=Math.max(Math.min(n-c,W),1);l.push(" | "+"^".repeat(Y))}c+=W+1}}break}return l.join(`
8
+ `)}function incrementer(e){let t=e;return()=>++t}function warn$2(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const hasWarned={};function warnOnce(e){hasWarned[e]||(hasWarned[e]=!0,warn$2(e))}function createEmitter(){const e=new Map;return{events:e,on(n,s){const c=e.get(n);c&&c.push(s)||e.set(n,[s])},off(n,s){const c=e.get(n);c&&c.splice(c.indexOf(s)>>>0,1)},emit(n,s){(e.get(n)||[]).slice().map(c=>c(s)),(e.get("*")||[]).slice().map(c=>c(n,s))}}}const isNotObjectOrIsArray=e=>!isObject$2(e)||isArray$1(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:c}=n.pop();Object.keys(s).forEach(l=>{isNotObjectOrIsArray(s[l])||isNotObjectOrIsArray(c[l])?c[l]=s[l]:n.push({src:s[l],des:c[l]})})}}/*!
9
+ * message-compiler v9.10.2
10
+ * (c) 2024 kazuya kawaguchi
30
11
  * Released under the MIT License.
31
- */function bo(e,t,n){return{line:e,column:t,offset:n}}function wn(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const yo=/\{([0-9a-zA-Z]+)\}/g;function Ls(e,...t){return t.length===1&&Oo(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(yo,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Ds=Object.assign,ws=e=>typeof e=="string",Oo=e=>e!==null&&typeof e=="object";function As(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const An={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},To={[An.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Io(e,t,...n){const r=Ls(To[e]||"",...n||[]),i={message:String(r),code:e};return t&&(i.location=t),i}const se={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,__EXTEND_POINT__:17},So={[se.EXPECTED_TOKEN]:"Expected token: '{0}'",[se.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[se.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[se.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[se.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[se.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[se.EMPTY_PLACEHOLDER]:"Empty placeholder",[se.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[se.INVALID_LINKED_FORMAT]:"Invalid linked format",[se.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[se.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[se.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[se.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[se.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[se.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Bt(e,t,n={}){const{domain:r,messages:i,args:s}=n,a=Ls((i||So)[e]||"",...s||[]),o=new SyntaxError(String(a));return o.code=e,t&&(o.location=t),o.domain=r,o}function Lo(e){throw e}const Do=/<\/?[\w\s="/.':;#-\/]+>/,wo=e=>Do.test(e),gt=" ",Ao="\r",He=`
32
- `,Ro=String.fromCharCode(8232),Co=String.fromCharCode(8233);function Po(e){const t=e;let n=0,r=1,i=1,s=0;const a=P=>t[P]===Ao&&t[P+1]===He,o=P=>t[P]===He,u=P=>t[P]===Co,p=P=>t[P]===Ro,O=P=>a(P)||o(P)||u(P)||p(P),g=()=>n,N=()=>r,I=()=>i,H=()=>s,M=P=>a(P)||u(P)||p(P)?He:t[P],x=()=>M(n),$=()=>M(n+s);function V(){return s=0,O(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){return a(n+s)&&s++,s++,t[n+s]}function k(){n=0,r=1,i=1,s=0}function F(P=0){s=P}function L(){const P=n+s;for(;P!==n;)V();s=0}return{index:g,line:N,column:I,peekOffset:H,charAt:M,currentChar:x,currentPeek:$,next:V,peek:S,reset:k,resetPeek:F,skipToPeek:L}}const Ot=void 0,ko=".",Rs="'",Fo="tokenizer";function Mo(e,t={}){const n=t.location!==!1,r=Po(e),i=()=>r.index(),s=()=>bo(r.line(),r.column(),r.index()),a=s(),o=i(),u={currentType:14,offset:o,startLoc:a,endLoc:a,lastType:14,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},p=()=>u,{onError:O}=t;function g(l,f,C,...B){const Y=p();if(f.column+=C,f.offset+=C,O){const J=n?wn(Y.startLoc,f):null,Q=Bt(l,J,{domain:Fo,args:B});O(Q)}}function N(l,f,C){l.endLoc=s(),l.currentType=f;const B={type:f};return n&&(B.loc=wn(l.startLoc,l.endLoc)),C!=null&&(B.value=C),B}const I=l=>N(l,14);function H(l,f){return l.currentChar()===f?(l.next(),f):(g(se.EXPECTED_TOKEN,s(),0,f),"")}function M(l){let f="";for(;l.currentPeek()===gt||l.currentPeek()===He;)f+=l.currentPeek(),l.peek();return f}function x(l){const f=M(l);return l.skipToPeek(),f}function $(l){if(l===Ot)return!1;const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function V(l){if(l===Ot)return!1;const f=l.charCodeAt(0);return f>=48&&f<=57}function S(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=$(l.currentPeek());return l.resetPeek(),B}function k(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=l.currentPeek()==="-"?l.peek():l.currentPeek(),Y=V(B);return l.resetPeek(),Y}function F(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=l.currentPeek()===Rs;return l.resetPeek(),B}function L(l,f){const{currentType:C}=f;if(C!==8)return!1;M(l);const B=l.currentPeek()===".";return l.resetPeek(),B}function P(l,f){const{currentType:C}=f;if(C!==9)return!1;M(l);const B=$(l.currentPeek());return l.resetPeek(),B}function _(l,f){const{currentType:C}=f;if(!(C===8||C===12))return!1;M(l);const B=l.currentPeek()===":";return l.resetPeek(),B}function h(l,f){const{currentType:C}=f;if(C!==10)return!1;const B=()=>{const J=l.currentPeek();return J==="{"?$(l.peek()):J==="@"||J==="%"||J==="|"||J===":"||J==="."||J===gt||!J?!1:J===He?(l.peek(),B()):q(l,!1)},Y=B();return l.resetPeek(),Y}function T(l){M(l);const f=l.currentPeek()==="|";return l.resetPeek(),f}function j(l){const f=M(l),C=l.currentPeek()==="%"&&l.peek()==="{";return l.resetPeek(),{isModulo:C,hasSpace:f.length>0}}function q(l,f=!0){const C=(Y=!1,J="",Q=!1)=>{const w=l.currentPeek();return w==="{"?J==="%"?!1:Y:w==="@"||!w?J==="%"?!0:Y:w==="%"?(l.peek(),C(Y,"%",!0)):w==="|"?J==="%"||Q?!0:!(J===gt||J===He):w===gt?(l.peek(),C(!0,gt,Q)):w===He?(l.peek(),C(!0,He,Q)):!0},B=C();return f&&l.resetPeek(),B}function K(l,f){const C=l.currentChar();return C===Ot?Ot:f(C)?(l.next(),C):null}function oe(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function pe(l){return K(l,oe)}function me(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function ee(l){return K(l,me)}function ce(l){const f=l.charCodeAt(0);return f>=48&&f<=57}function z(l){return K(l,ce)}function _e(l){const f=l.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function re(l){return K(l,_e)}function Z(l){let f="",C="";for(;f=z(l);)C+=f;return C}function X(l){x(l);const f=l.currentChar();return f!=="%"&&g(se.EXPECTED_TOKEN,s(),0,f),l.next(),"%"}function W(l){let f="";for(;;){const C=l.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C==="%")if(q(l))f+=C,l.next();else break;else if(C===gt||C===He)if(q(l))f+=C,l.next();else{if(T(l))break;f+=C,l.next()}else f+=C,l.next()}return f}function ge(l){x(l);let f="",C="";for(;f=ee(l);)C+=f;return l.currentChar()===Ot&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C}function ye(l){x(l);let f="";return l.currentChar()==="-"?(l.next(),f+=`-${Z(l)}`):f+=Z(l),l.currentChar()===Ot&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f}function De(l){return l!==Rs&&l!==He}function te(l){x(l),H(l,"'");let f="",C="";for(;f=K(l,De);)f==="\\"?C+=ie(l):C+=f;const B=l.currentChar();return B===He||B===Ot?(g(se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),B===He&&(l.next(),H(l,"'")),C):(H(l,"'"),C)}function ie(l){const f=l.currentChar();switch(f){case"\\":case"'":return l.next(),`\\${f}`;case"u":return c(l,f,4);case"U":return c(l,f,6);default:return g(se.UNKNOWN_ESCAPE_SEQUENCE,s(),0,f),""}}function c(l,f,C){H(l,f);let B="";for(let Y=0;Y<C;Y++){const J=re(l);if(!J){g(se.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${f}${B}${l.currentChar()}`);break}B+=J}return`\\${f}${B}`}function d(l){return l!=="{"&&l!=="}"&&l!==gt&&l!==He}function E(l){x(l);let f="",C="";for(;f=K(l,d);)C+=f;return C}function A(l){let f="",C="";for(;f=pe(l);)C+=f;return C}function m(l){const f=C=>{const B=l.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===gt?C:(C+=B,l.next(),f(C))};return f("")}function v(l){x(l);const f=H(l,"|");return x(l),f}function D(l,f){let C=null;switch(l.currentChar()){case"{":return f.braceNest>=1&&g(se.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),C=N(f,2,"{"),x(l),f.braceNest++,C;case"}":return f.braceNest>0&&f.currentType===2&&g(se.EMPTY_PLACEHOLDER,s(),0),l.next(),C=N(f,3,"}"),f.braceNest--,f.braceNest>0&&x(l),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),C;case"@":return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=y(l,f)||I(f),f.braceNest=0,C;default:{let Y=!0,J=!0,Q=!0;if(T(l))return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f.braceNest=0,b(l,f);if(Y=S(l,f))return C=N(f,5,ge(l)),x(l),C;if(J=k(l,f))return C=N(f,6,ye(l)),x(l),C;if(Q=F(l,f))return C=N(f,7,te(l)),x(l),C;if(!Y&&!J&&!Q)return C=N(f,13,E(l)),g(se.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,C.value),x(l),C;break}}return C}function y(l,f){const{currentType:C}=f;let B=null;const Y=l.currentChar();switch((C===8||C===9||C===12||C===10)&&(Y===He||Y===gt)&&g(se.INVALID_LINKED_FORMAT,s(),0),Y){case"@":return l.next(),B=N(f,8,"@"),f.inLinked=!0,B;case".":return x(l),l.next(),N(f,9,".");case":":return x(l),l.next(),N(f,10,":");default:return T(l)?(B=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,B):L(l,f)||_(l,f)?(x(l),y(l,f)):P(l,f)?(x(l),N(f,12,A(l))):h(l,f)?(x(l),Y==="{"?D(l,f)||B:N(f,11,m(l))):(C===8&&g(se.INVALID_LINKED_FORMAT,s(),0),f.braceNest=0,f.inLinked=!1,b(l,f))}}function b(l,f){let C={type:14};if(f.braceNest>0)return D(l,f)||I(f);if(f.inLinked)return y(l,f)||I(f);switch(l.currentChar()){case"{":return D(l,f)||I(f);case"}":return g(se.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(f,3,"}");case"@":return y(l,f)||I(f);default:{if(T(l))return C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;const{isModulo:Y,hasSpace:J}=j(l);if(Y)return J?N(f,0,W(l)):N(f,4,X(l));if(q(l))return N(f,0,W(l));break}}return C}function R(){const{currentType:l,offset:f,startLoc:C,endLoc:B}=u;return u.lastType=l,u.lastOffset=f,u.lastStartLoc=C,u.lastEndLoc=B,u.offset=i(),u.startLoc=s(),r.currentChar()===Ot?N(u,14):b(r,u)}return{nextToken:R,currentOffset:i,currentPosition:s,context:p}}const Vo="parser",xo=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Uo(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function $o(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,n){const h=t?wn(F,_):null,T=Bt(k,h,{domain:Vo,args:P});n(T)}}function s(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,r){const h=t?wn(F,_):null;r(Io(k,h,P))}}function a(S,k,F){const L={type:S};return t&&(L.start=k,L.end=k,L.loc={start:F,end:F}),L}function o(S,k,F,L){L&&(S.type=L),t&&(S.end=k,S.loc&&(S.loc.end=F))}function u(S,k){const F=S.context(),L=a(3,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function p(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(5,L,P);return _.index=parseInt(k,10),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function O(S,k,F){const L=S.context(),{lastOffset:P,lastStartLoc:_}=L,h=a(4,P,_);return h.key=k,F===!0&&(h.modulo=!0),S.nextToken(),o(h,S.currentOffset(),S.currentPosition()),h}function g(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(9,L,P);return _.value=k.replace(xo,Uo),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function N(S){const k=S.nextToken(),F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(8,L,P);return k.type!==12?(i(S,se.UNEXPECTED_EMPTY_LINKED_MODIFIER,F.lastStartLoc,0),_.value="",o(_,L,P),{nextConsumeToken:k,node:_}):(k.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,ct(k)),_.value=k.value||"",o(_,S.currentOffset(),S.currentPosition()),{node:_})}function I(S,k){const F=S.context(),L=a(7,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function H(S){const k=S.context(),F=a(6,k.offset,k.startLoc);let L=S.nextToken();if(L.type===9){const P=N(S);F.modifier=P.node,L=P.nextConsumeToken||S.nextToken()}switch(L.type!==10&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),L=S.nextToken(),L.type===2&&(L=S.nextToken()),L.type){case 11:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=I(S,L.value||"");break;case 5:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=O(S,L.value||"");break;case 6:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=p(S,L.value||"");break;case 7:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=g(S,L.value||"");break;default:{i(S,se.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const P=S.context(),_=a(7,P.offset,P.startLoc);return _.value="",o(_,P.offset,P.startLoc),F.key=_,o(F,P.offset,P.startLoc),{nextConsumeToken:L,node:F}}}return o(F,S.currentOffset(),S.currentPosition()),{node:F}}function M(S){const k=S.context(),F=k.currentType===1?S.currentOffset():k.offset,L=k.currentType===1?k.endLoc:k.startLoc,P=a(2,F,L);P.items=[];let _=null,h=null;do{const q=_||S.nextToken();switch(_=null,q.type){case 0:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(u(S,q.value||""));break;case 6:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(p(S,q.value||""));break;case 4:h=!0;break;case 5:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(O(S,q.value||"",!!h)),h&&(s(S,An.USE_MODULO_SYNTAX,k.lastStartLoc,0,ct(q)),h=null);break;case 7:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(g(S,q.value||""));break;case 8:{const K=H(S);P.items.push(K.node),_=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const T=k.currentType===1?k.lastOffset:S.currentOffset(),j=k.currentType===1?k.lastEndLoc:S.currentPosition();return o(P,T,j),P}function x(S,k,F,L){const P=S.context();let _=L.items.length===0;const h=a(1,k,F);h.cases=[],h.cases.push(L);do{const T=M(S);_||(_=T.items.length===0),h.cases.push(T)}while(P.currentType!==14);return _&&i(S,se.MUST_HAVE_MESSAGES_IN_PLURAL,F,0),o(h,S.currentOffset(),S.currentPosition()),h}function $(S){const k=S.context(),{offset:F,startLoc:L}=k,P=M(S);return k.currentType===14?P:x(S,F,L,P)}function V(S){const k=Mo(S,Ds({},e)),F=k.context(),L=a(0,F.offset,F.startLoc);return t&&L.loc&&(L.loc.source=S),L.body=$(k),e.onCacheKey&&(L.cacheKey=e.onCacheKey(S)),F.currentType!==14&&i(k,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,S[F.offset]||""),o(L,k.currentOffset(),k.currentPosition()),L}return{parse:V}}function ct(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 qo(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Cs(e,t){for(let n=0;n<e.length;n++)nr(e[n],t)}function nr(e,t){switch(e.type){case 1:Cs(e.cases,t),t.helper("plural");break;case 2:Cs(e.items,t);break;case 6:{nr(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 Bo(e,t={}){const n=qo(e);n.helper("normalize"),e.body&&nr(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Wo(e){const t=e.body;return t.type===2?Ps(t):t.cases.forEach(n=>Ps(n)),e}function Ps(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 n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=As(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ho="minifier";function Wt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Wt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Wt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Wt(n[r]);t.i=n,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;Wt(t.key),t.k=t.key,delete t.key,t.modifier&&(Wt(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:throw Bt(se.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ho,args:[e.type]})}delete e.type}const jo="parser";function Go(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,a=t.location!==!1,o={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const u=()=>o;function p(x,$){o.code+=x}function O(x,$=!0){const V=$?i:"";p(s?V+" ".repeat(x):V)}function g(x=!0){const $=++o.indentLevel;x&&O($)}function N(x=!0){const $=--o.indentLevel;x&&O($)}function I(){O(o.indentLevel)}return{context:u,push:p,indent:g,deindent:N,newline:I,helper:x=>`_${x}`,needIndent:()=>o.needIndent}}function Ko(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ht(e,t.key),t.modifier?(e.push(", "),Ht(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Yo(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Ht(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Qo(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Ht(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Xo(e,t){t.body?Ht(e,t.body):e.push("null")}function Ht(e,t){const{helper:n}=e;switch(t.type){case 0:Xo(e,t);break;case 1:Qo(e,t);break;case 2:Yo(e,t);break;case 6:Ko(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(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("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:throw Bt(se.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:jo,args:[t.type]})}}const Jo=(e,t={})=>{const n=ws(t.mode)?t.mode:"normal",r=ws(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
33
- `,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],u=Go(e,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:a});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(a),o.length>0&&(u.push(`const { ${As(o.map(g=>`${g}: _${g}`),", ")} } = ctx`),u.newline()),u.push("return "),Ht(u,e),u.deindent(a),u.push("}"),delete e.helpers;const{code:p,map:O}=u.context();return{ast:e,code:p,map:O?O.toJSON():void 0}};function zo(e,t={}){const n=Ds({},t),r=!!n.jit,i=!!n.minify,s=n.optimize==null?!0:n.optimize,o=$o(n).parse(e);return r?(s&&Wo(o),i&&Wt(o),{ast:o,code:""}):(Bo(o,n),Jo(o,n))}/*!
34
- * core-base v9.14.4
35
- * (c) 2025 kazuya kawaguchi
12
+ */function createPosition(e,t,n){return{line:e,column:t,offset:n}}function createLocation(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$1(e,...t){return t.length===1&&isObject$1(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const assign=Object.assign,isString$1=e=>typeof e=="string",isObject$1=e=>e!==null&&typeof e=="object";function join(e,t=""){return e.reduce((n,s,c)=>c===0?n+s:n+t+s,"")}const CompileErrorCodes={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,__EXTEND_POINT__:17},errorMessages$2={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(e,t,n={}){const{domain:s,messages:c,args:l}=n,C=format$1((c||errorMessages$2)[e]||"",...l||[]),A=new SyntaxError(String(C));return A.code=e,t&&(A.location=t),A.domain=s,A}function defaultOnError(e){throw e}const RE_HTML_TAG=/<\/?[\w\s="/.':;#-\/]+>/,detectHtmlTag=e=>RE_HTML_TAG.test(e),CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
13
+ `,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let n=0,s=1,c=1,l=0;const C=ie=>t[ie]===CHAR_CR&&t[ie+1]===CHAR_LF,A=ie=>t[ie]===CHAR_LF,L=ie=>t[ie]===CHAR_PS,W=ie=>t[ie]===CHAR_LS,Y=ie=>C(ie)||A(ie)||L(ie)||W(ie),U=()=>n,V=()=>s,J=()=>c,ce=()=>l,se=ie=>C(ie)||L(ie)||W(ie)?CHAR_LF:t[ie],re=()=>se(n),q=()=>se(n+l);function Q(){return l=0,Y(n)&&(s++,c=0),C(n)&&n++,n++,c++,t[n]}function ae(){return C(n+l)&&l++,l++,t[n+l]}function te(){n=0,s=1,c=1,l=0}function oe(ie=0){l=ie}function ne(){const ie=n+l;for(;ie!==n;)Q();l=0}return{index:U,line:V,column:J,peekOffset:ce,charAt:se,currentChar:re,currentPeek:q,next:Q,peek:ae,reset:te,resetPeek:oe,skipToPeek:ne}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(e,t={}){const n=t.location!==!1,s=createScanner(e),c=()=>s.index(),l=()=>createPosition(s.line(),s.column(),s.index()),C=l(),A=c(),L={currentType:14,offset:A,startLoc:C,endLoc:C,lastType:14,lastOffset:A,lastStartLoc:C,lastEndLoc:C,braceNest:0,inLinked:!1,text:""},W=()=>L,{onError:Y}=t;function U(R,I,F,...H){const j=W();if(I.column+=F,I.offset+=F,Y){const K=n?createLocation(j.startLoc,I):null,Z=createCompileError(R,K,{domain:ERROR_DOMAIN$3,args:H});Y(Z)}}function V(R,I,F){R.endLoc=l(),R.currentType=I;const H={type:I};return n&&(H.loc=createLocation(R.startLoc,R.endLoc)),F!=null&&(H.value=F),H}const J=R=>V(R,14);function ce(R,I){return R.currentChar()===I?(R.next(),I):(U(CompileErrorCodes.EXPECTED_TOKEN,l(),0,I),"")}function se(R){let I="";for(;R.currentPeek()===CHAR_SP||R.currentPeek()===CHAR_LF;)I+=R.currentPeek(),R.peek();return I}function re(R){const I=se(R);return R.skipToPeek(),I}function q(R){if(R===EOF)return!1;const I=R.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function Q(R){if(R===EOF)return!1;const I=R.charCodeAt(0);return I>=48&&I<=57}function ae(R,I){const{currentType:F}=I;if(F!==2)return!1;se(R);const H=q(R.currentPeek());return R.resetPeek(),H}function te(R,I){const{currentType:F}=I;if(F!==2)return!1;se(R);const H=R.currentPeek()==="-"?R.peek():R.currentPeek(),j=Q(H);return R.resetPeek(),j}function oe(R,I){const{currentType:F}=I;if(F!==2)return!1;se(R);const H=R.currentPeek()===LITERAL_DELIMITER;return R.resetPeek(),H}function ne(R,I){const{currentType:F}=I;if(F!==8)return!1;se(R);const H=R.currentPeek()===".";return R.resetPeek(),H}function ie(R,I){const{currentType:F}=I;if(F!==9)return!1;se(R);const H=q(R.currentPeek());return R.resetPeek(),H}function G(R,I){const{currentType:F}=I;if(!(F===8||F===12))return!1;se(R);const H=R.currentPeek()===":";return R.resetPeek(),H}function $(R,I){const{currentType:F}=I;if(F!==10)return!1;const H=()=>{const K=R.currentPeek();return K==="{"?q(R.peek()):K==="@"||K==="%"||K==="|"||K===":"||K==="."||K===CHAR_SP||!K?!1:K===CHAR_LF?(R.peek(),H()):q(K)},j=H();return R.resetPeek(),j}function X(R){se(R);const I=R.currentPeek()==="|";return R.resetPeek(),I}function pe(R){const I=se(R),F=R.currentPeek()==="%"&&R.peek()==="{";return R.resetPeek(),{isModulo:F,hasSpace:I.length>0}}function de(R,I=!0){const F=(j=!1,K="",Z=!1)=>{const z=R.currentPeek();return z==="{"?K==="%"?!1:j:z==="@"||!z?K==="%"?!0:j:z==="%"?(R.peek(),F(j,"%",!0)):z==="|"?K==="%"||Z?!0:!(K===CHAR_SP||K===CHAR_LF):z===CHAR_SP?(R.peek(),F(!0,CHAR_SP,Z)):z===CHAR_LF?(R.peek(),F(!0,CHAR_LF,Z)):!0},H=F();return I&&R.resetPeek(),H}function ge(R,I){const F=R.currentChar();return F===EOF?EOF:I(F)?(R.next(),F):null}function ve(R){return ge(R,F=>{const H=F.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36})}function Ae(R){return ge(R,F=>{const H=F.charCodeAt(0);return H>=48&&H<=57})}function Ce(R){return ge(R,F=>{const H=F.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102})}function Ee(R){let I="",F="";for(;I=Ae(R);)F+=I;return F}function Re(R){re(R);const I=R.currentChar();return I!=="%"&&U(CompileErrorCodes.EXPECTED_TOKEN,l(),0,I),R.next(),"%"}function Oe(R){let I="";for(;;){const F=R.currentChar();if(F==="{"||F==="}"||F==="@"||F==="|"||!F)break;if(F==="%")if(de(R))I+=F,R.next();else break;else if(F===CHAR_SP||F===CHAR_LF)if(de(R))I+=F,R.next();else{if(X(R))break;I+=F,R.next()}else I+=F,R.next()}return I}function Fe(R){re(R);let I="",F="";for(;I=ve(R);)F+=I;return R.currentChar()===EOF&&U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),F}function Me(R){re(R);let I="";return R.currentChar()==="-"?(R.next(),I+=`-${Ee(R)}`):I+=Ee(R),R.currentChar()===EOF&&U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),I}function he(R){re(R),ce(R,"'");let I="",F="";const H=K=>K!==LITERAL_DELIMITER&&K!==CHAR_LF;for(;I=ge(R,H);)I==="\\"?F+=Le(R):F+=I;const j=R.currentChar();return j===CHAR_LF||j===EOF?(U(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),j===CHAR_LF&&(R.next(),ce(R,"'")),F):(ce(R,"'"),F)}function Le(R){const I=R.currentChar();switch(I){case"\\":case"'":return R.next(),`\\${I}`;case"u":return fe(R,I,4);case"U":return fe(R,I,6);default:return U(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,l(),0,I),""}}function fe(R,I,F){ce(R,I);let H="";for(let j=0;j<F;j++){const K=Ce(R);if(!K){U(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${I}${H}${R.currentChar()}`);break}H+=K}return`\\${I}${H}`}function Pe(R){re(R);let I="",F="";const H=j=>j!=="{"&&j!=="}"&&j!==CHAR_SP&&j!==CHAR_LF;for(;I=ge(R,H);)F+=I;return F}function ke(R){let I="",F="";for(;I=ve(R);)F+=I;return F}function De(R){const I=(F=!1,H)=>{const j=R.currentChar();return j==="{"||j==="%"||j==="@"||j==="|"||j==="("||j===")"||!j||j===CHAR_SP?H:j===CHAR_LF||j===DOT?(H+=j,R.next(),I(F,H)):(H+=j,R.next(),I(!0,H))};return I(!1,"")}function Ie(R){re(R);const I=ce(R,"|");return re(R),I}function be(R,I){let F=null;switch(R.currentChar()){case"{":return I.braceNest>=1&&U(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),R.next(),F=V(I,2,"{"),re(R),I.braceNest++,F;case"}":return I.braceNest>0&&I.currentType===2&&U(CompileErrorCodes.EMPTY_PLACEHOLDER,l(),0),R.next(),F=V(I,3,"}"),I.braceNest--,I.braceNest>0&&re(R),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),F;case"@":return I.braceNest>0&&U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),F=D(R,I)||J(I),I.braceNest=0,F;default:{let j=!0,K=!0,Z=!0;if(X(R))return I.braceNest>0&&U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),F=V(I,1,Ie(R)),I.braceNest=0,I.inLinked=!1,F;if(I.braceNest>0&&(I.currentType===5||I.currentType===6||I.currentType===7))return U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),I.braceNest=0,M(R,I);if(j=ae(R,I))return F=V(I,5,Fe(R)),re(R),F;if(K=te(R,I))return F=V(I,6,Me(R)),re(R),F;if(Z=oe(R,I))return F=V(I,7,he(R)),re(R),F;if(!j&&!K&&!Z)return F=V(I,13,Pe(R)),U(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,F.value),re(R),F;break}}return F}function D(R,I){const{currentType:F}=I;let H=null;const j=R.currentChar();switch((F===8||F===9||F===12||F===10)&&(j===CHAR_LF||j===CHAR_SP)&&U(CompileErrorCodes.INVALID_LINKED_FORMAT,l(),0),j){case"@":return R.next(),H=V(I,8,"@"),I.inLinked=!0,H;case".":return re(R),R.next(),V(I,9,".");case":":return re(R),R.next(),V(I,10,":");default:return X(R)?(H=V(I,1,Ie(R)),I.braceNest=0,I.inLinked=!1,H):ne(R,I)||G(R,I)?(re(R),D(R,I)):ie(R,I)?(re(R),V(I,12,ke(R))):$(R,I)?(re(R),j==="{"?be(R,I)||H:V(I,11,De(R))):(F===8&&U(CompileErrorCodes.INVALID_LINKED_FORMAT,l(),0),I.braceNest=0,I.inLinked=!1,M(R,I))}}function M(R,I){let F={type:14};if(I.braceNest>0)return be(R,I)||J(I);if(I.inLinked)return D(R,I)||J(I);switch(R.currentChar()){case"{":return be(R,I)||J(I);case"}":return U(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,l(),0),R.next(),V(I,3,"}");case"@":return D(R,I)||J(I);default:{if(X(R))return F=V(I,1,Ie(R)),I.braceNest=0,I.inLinked=!1,F;const{isModulo:j,hasSpace:K}=pe(R);if(j)return K?V(I,0,Oe(R)):V(I,4,Re(R));if(de(R))return V(I,0,Oe(R));break}}return F}function B(){const{currentType:R,offset:I,startLoc:F,endLoc:H}=L;return L.lastType=R,L.lastOffset=I,L.lastStartLoc=F,L.lastEndLoc=H,L.offset=c(),L.startLoc=l(),s.currentChar()===EOF?V(L,14):M(s,L)}return{nextToken:B,currentOffset:c,currentPosition:l,context:W}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function createParser(e={}){const t=e.location!==!1,{onError:n}=e;function s(q,Q,ae,te,...oe){const ne=q.currentPosition();if(ne.offset+=te,ne.column+=te,n){const ie=t?createLocation(ae,ne):null,G=createCompileError(Q,ie,{domain:ERROR_DOMAIN$2,args:oe});n(G)}}function c(q,Q,ae){const te={type:q};return t&&(te.start=Q,te.end=Q,te.loc={start:ae,end:ae}),te}function l(q,Q,ae,te){te&&(q.type=te),t&&(q.end=Q,q.loc&&(q.loc.end=ae))}function C(q,Q){const ae=q.context(),te=c(3,ae.offset,ae.startLoc);return te.value=Q,l(te,q.currentOffset(),q.currentPosition()),te}function A(q,Q){const ae=q.context(),{lastOffset:te,lastStartLoc:oe}=ae,ne=c(5,te,oe);return ne.index=parseInt(Q,10),q.nextToken(),l(ne,q.currentOffset(),q.currentPosition()),ne}function L(q,Q){const ae=q.context(),{lastOffset:te,lastStartLoc:oe}=ae,ne=c(4,te,oe);return ne.key=Q,q.nextToken(),l(ne,q.currentOffset(),q.currentPosition()),ne}function W(q,Q){const ae=q.context(),{lastOffset:te,lastStartLoc:oe}=ae,ne=c(9,te,oe);return ne.value=Q.replace(KNOWN_ESCAPES,fromEscapeSequence),q.nextToken(),l(ne,q.currentOffset(),q.currentPosition()),ne}function Y(q){const Q=q.nextToken(),ae=q.context(),{lastOffset:te,lastStartLoc:oe}=ae,ne=c(8,te,oe);return Q.type!==12?(s(q,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,ae.lastStartLoc,0),ne.value="",l(ne,te,oe),{nextConsumeToken:Q,node:ne}):(Q.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ae.lastStartLoc,0,getTokenCaption(Q)),ne.value=Q.value||"",l(ne,q.currentOffset(),q.currentPosition()),{node:ne})}function U(q,Q){const ae=q.context(),te=c(7,ae.offset,ae.startLoc);return te.value=Q,l(te,q.currentOffset(),q.currentPosition()),te}function V(q){const Q=q.context(),ae=c(6,Q.offset,Q.startLoc);let te=q.nextToken();if(te.type===9){const oe=Y(q);ae.modifier=oe.node,te=oe.nextConsumeToken||q.nextToken()}switch(te.type!==10&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption(te)),te=q.nextToken(),te.type===2&&(te=q.nextToken()),te.type){case 11:te.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption(te)),ae.key=U(q,te.value||"");break;case 5:te.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption(te)),ae.key=L(q,te.value||"");break;case 6:te.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption(te)),ae.key=A(q,te.value||"");break;case 7:te.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption(te)),ae.key=W(q,te.value||"");break;default:{s(q,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,Q.lastStartLoc,0);const oe=q.context(),ne=c(7,oe.offset,oe.startLoc);return ne.value="",l(ne,oe.offset,oe.startLoc),ae.key=ne,l(ae,oe.offset,oe.startLoc),{nextConsumeToken:te,node:ae}}}return l(ae,q.currentOffset(),q.currentPosition()),{node:ae}}function J(q){const Q=q.context(),ae=Q.currentType===1?q.currentOffset():Q.offset,te=Q.currentType===1?Q.endLoc:Q.startLoc,oe=c(2,ae,te);oe.items=[];let ne=null;do{const $=ne||q.nextToken();switch(ne=null,$.type){case 0:$.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption($)),oe.items.push(C(q,$.value||""));break;case 6:$.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption($)),oe.items.push(A(q,$.value||""));break;case 5:$.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption($)),oe.items.push(L(q,$.value||""));break;case 7:$.value==null&&s(q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Q.lastStartLoc,0,getTokenCaption($)),oe.items.push(W(q,$.value||""));break;case 8:{const X=V(q);oe.items.push(X.node),ne=X.nextConsumeToken||null;break}}}while(Q.currentType!==14&&Q.currentType!==1);const ie=Q.currentType===1?Q.lastOffset:q.currentOffset(),G=Q.currentType===1?Q.lastEndLoc:q.currentPosition();return l(oe,ie,G),oe}function ce(q,Q,ae,te){const oe=q.context();let ne=te.items.length===0;const ie=c(1,Q,ae);ie.cases=[],ie.cases.push(te);do{const G=J(q);ne||(ne=G.items.length===0),ie.cases.push(G)}while(oe.currentType!==14);return ne&&s(q,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,ae,0),l(ie,q.currentOffset(),q.currentPosition()),ie}function se(q){const Q=q.context(),{offset:ae,startLoc:te}=Q,oe=J(q);return Q.currentType===14?oe:ce(q,ae,te,oe)}function re(q){const Q=createTokenizer(q,assign({},e)),ae=Q.context(),te=c(0,ae.offset,ae.startLoc);return t&&te.loc&&(te.loc.source=q),te.body=se(Q),e.onCacheKey&&(te.cacheKey=e.onCacheKey(q)),ae.currentType!==14&&s(Q,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ae.lastStartLoc,0,q[ae.offset]||""),l(te,Q.currentOffset(),Q.currentPosition()),te}return{parse:re}}function getTokenCaption(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 createTransformer(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:l=>(n.helpers.add(l),l)}}function traverseNodes(e,t){for(let n=0;n<e.length;n++)traverseNode(e[n],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:{traverseNode(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 transform(e,t={}){const n=createTransformer(e);n.helper("normalize"),e.body&&traverseNode(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function optimize(e){const t=e.body;return t.type===2?optimizeMessageNode(t):t.cases.forEach(n=>optimizeMessageNode(n)),e}function optimizeMessageNode(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 n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=join(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const ERROR_DOMAIN$1="minifier";function minify(e){switch(e.t=e.type,e.type){case 0:{const t=e;minify(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)minify(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)minify(n[s]);t.i=n,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;minify(t.key),t.k=t.key,delete t.key,t.modifier&&(minify(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:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[e.type]})}delete e.type}const ERROR_DOMAIN="parser";function createCodeGenerator(e,t){const{sourceMap:n,filename:s,breakLineCode:c,needIndent:l}=t,C=t.location!==!1,A={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:c,needIndent:l,indentLevel:0};C&&e.loc&&(A.source=e.loc.source);const L=()=>A;function W(re,q){A.code+=re}function Y(re,q=!0){const Q=q?c:"";W(l?Q+" ".repeat(re):Q)}function U(re=!0){const q=++A.indentLevel;re&&Y(q)}function V(re=!0){const q=--A.indentLevel;re&&Y(q)}function J(){Y(A.indentLevel)}return{context:L,push:W,indent:U,deindent:V,newline:J,helper:re=>`_${re}`,needIndent:()=>A.needIndent}}function generateLinkedNode(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const c=t.items.length;for(let l=0;l<c&&(generateNode(e,t.items[l]),l!==c-1);l++)e.push(", ");e.deindent(s()),e.push("])")}function generatePluralNode(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const c=t.cases.length;for(let l=0;l<c&&(generateNode(e,t.cases[l]),l!==c-1);l++)e.push(", ");e.deindent(s()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:n}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(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(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("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:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[t.type]})}}const generate=(e,t={})=>{const n=isString$1(t.mode)?t.mode:"normal",s=isString$1(t.filename)?t.filename:"message.intl",c=!!t.sourceMap,l=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
14
+ `,C=t.needIndent?t.needIndent:n!=="arrow",A=e.helpers||[],L=createCodeGenerator(e,{mode:n,filename:s,sourceMap:c,breakLineCode:l,needIndent:C});L.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),L.indent(C),A.length>0&&(L.push(`const { ${join(A.map(U=>`${U}: _${U}`),", ")} } = ctx`),L.newline()),L.push("return "),generateNode(L,e),L.deindent(C),L.push("}"),delete e.helpers;const{code:W,map:Y}=L.context();return{ast:e,code:W,map:Y?Y.toJSON():void 0}};function baseCompile$1(e,t={}){const n=assign({},t),s=!!n.jit,c=!!n.minify,l=n.optimize==null?!0:n.optimize,A=createParser(n).parse(e);return s?(l&&optimize(A),c&&minify(A),{ast:A,code:""}):(transform(A,n),generate(A,n))}/*!
15
+ * core-base v9.10.2
16
+ * (c) 2024 kazuya kawaguchi
36
17
  * Released under the MIT License.
37
- */function Zo(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function rt(e){return ue(e)&&rr(e)===0&&(lt(e,"b")||lt(e,"body"))}const ks=["b","body"];function el(e){return Tt(e,ks)}const Fs=["c","cases"];function tl(e){return Tt(e,Fs,[])}const Ms=["s","static"];function nl(e){return Tt(e,Ms)}const Vs=["i","items"];function rl(e){return Tt(e,Vs,[])}const xs=["t","type"];function rr(e){return Tt(e,xs)}const Us=["v","value"];function Rn(e,t){const n=Tt(e,Us);if(n!=null)return n;throw on(t)}const $s=["m","modifier"];function sl(e){return Tt(e,$s)}const qs=["k","key"];function il(e){const t=Tt(e,qs);if(t)return t;throw on(6)}function Tt(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(lt(e,i)&&e[i]!=null)return e[i]}return n}const Bs=[...ks,...Fs,...Ms,...Vs,...qs,...$s,...Us,...xs];function on(e){return new Error(`unhandled node type: ${e}`)}const It=[];It[0]={w:[0],i:[3,0],"[":[4],o:[7]},It[1]={w:[1],".":[2],"[":[4],o:[7]},It[2]={w:[2],i:[3,0],0:[3,0]},It[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},It[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},It[5]={"'":[4,0],o:8,l:[5,0]},It[6]={'"':[4,0],o:8,l:[6,0]};const al=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ol(e){return al.test(e)}function ll(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function cl(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 ul(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ol(t)?ll(t):"*"+t}function fl(e){const t=[];let n=-1,r=0,i=0,s,a,o,u,p,O,g;const N=[];N[0]=()=>{a===void 0?a=o:a+=o},N[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},N[2]=()=>{N[0](),i++},N[3]=()=>{if(i>0)i--,r=4,N[0]();else{if(i=0,a===void 0||(a=ul(a),a===!1))return!1;N[1]()}};function I(){const H=e[n+1];if(r===5&&H==="'"||r===6&&H==='"')return n++,o="\\"+H,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&I())){if(u=cl(s),g=It[r],p=g[u]||g.l||8,p===8||(r=p[0],p[1]!==void 0&&(O=N[p[1]],O&&(o=s,O()===!1))))return;if(r===7)return t}}const Ws=new Map;function dl(e,t){return ue(e)?e[t]:null}function pl(e,t){if(!ue(e))return null;let n=Ws.get(t);if(n||(n=fl(t),n&&Ws.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const a=n[s];if(Bs.includes(a)&&rt(i))return null;const o=i[a];if(o===void 0||ve(i))return null;i=o,s++}return i}const ml=e=>e,_l=e=>"",hl="text",gl=e=>e.length===0?"":No(e),El=Eo;function Hs(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Nl(e){const t=Ae(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ae(e.named.count)||Ae(e.named.n))?Ae(e.named.count)?e.named.count:Ae(e.named.n)?e.named.n:t:t}function vl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function bl(e={}){const t=e.locale,n=Nl(e),r=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?e.pluralRules[t]:Hs,i=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?Hs:void 0,s=$=>$[r(n,$.length,i)],a=e.list||[],o=$=>a[$],u=e.named||Ne();Ae(e.pluralIndex)&&vl(n,u);const p=$=>u[$];function O($){const V=ve(e.messages)?e.messages($):ue(e.messages)?e.messages[$]:!1;return V||(e.parent?e.parent.message($):_l)}const g=$=>e.modifiers?e.modifiers[$]:ml,N=ae(e.processor)&&ve(e.processor.normalize)?e.processor.normalize:gl,I=ae(e.processor)&&ve(e.processor.interpolate)?e.processor.interpolate:El,H=ae(e.processor)&&G(e.processor.type)?e.processor.type:hl,x={list:o,named:p,plural:s,linked:($,...V)=>{const[S,k]=V;let F="text",L="";V.length===1?ue(S)?(L=S.modifier||L,F=S.type||F):G(S)&&(L=S||L):V.length===2&&(G(S)&&(L=S||L),G(k)&&(F=k||F));const P=O($)(x),_=F==="vnode"&&be(P)&&L?P[0]:P;return L?g(L)(_,F):_},message:O,type:H,interpolate:I,normalize:N,values:$e(Ne(),a,u)};return x}let ln=null;function yl(e){ln=e}function Ol(e,t,n){ln&&ln.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Tl=Il("function:translate");function Il(e){return t=>ln&&ln.emit(e,t)}const js=An.__EXTEND_POINT__,Rt=Sn(js),je={NOT_FOUND_KEY:js,FALLBACK_TO_TRANSLATE:Rt(),CANNOT_FORMAT_NUMBER:Rt(),FALLBACK_TO_NUMBER_FORMAT:Rt(),CANNOT_FORMAT_DATE:Rt(),FALLBACK_TO_DATE_FORMAT:Rt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rt(),__EXTEND_POINT__:Rt()},Sl={[je.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[je.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[je.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[je.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[je.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 Ct(e,...t){return er(Sl[e],...t)}const Gs=se.__EXTEND_POINT__,Pt=Sn(Gs),Ve={INVALID_ARGUMENT:Gs,INVALID_DATE_ARGUMENT:Pt(),INVALID_ISO_DATE_ARGUMENT:Pt(),NOT_SUPPORT_NON_STRING_MESSAGE:Pt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Pt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Pt(),NOT_SUPPORT_LOCALE_TYPE:Pt(),__EXTEND_POINT__:Pt()};function pt(e){return Bt(e,null,process.env.NODE_ENV!=="production"?{messages:Ll}:void 0)}const Ll={[Ve.INVALID_ARGUMENT]:"Invalid arguments",[Ve.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ve.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Ve.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Ve.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function sr(e,t){return t.locale!=null?Ks(t.locale):Ks(e.locale)}let ir;function Ks(e){if(G(e))return e;if(ve(e)){if(e.resolvedOnce&&ir!=null)return ir;if(e.constructor.name==="Function"){const t=e();if(go(t))throw pt(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ir=t}else throw pt(Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw pt(Ve.NOT_SUPPORT_LOCALE_TYPE)}function Dl(e,t,n){return[...new Set([n,...be(t)?t:ue(t)?Object.keys(t):G(t)?[t]:[n]])]}function Ys(e,t,n){const r=G(n)?n:jt,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let a=[n];for(;be(a);)a=Qs(s,a,t);const o=be(t)||!ae(t)?t:t.default?t.default:null;a=G(o)?[o]:o,be(a)&&Qs(s,a,!1),i.__localeChainCache.set(r,s)}return s}function Qs(e,t,n){let r=!0;for(let i=0;i<t.length&&le(r);i++){const s=t[i];G(s)&&(r=wl(e,t[i],n))}return r}function wl(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=Al(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Al(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(be(n)||ae(n))&&n[i]&&(r=n[i])}return r}const Rl="9.14.4",Cn=-1,jt="en-US",Pn="",Xs=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Cl(){return{upper:(e,t)=>t==="text"&&G(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&G(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&G(e)?Xs(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?Xs(e.children):e}}let Js;function zs(e){Js=e}let Zs;function Pl(e){Zs=e}let ei;function kl(e){ei=e}let ti=null;const Fl=e=>{ti=e},Ml=()=>ti;let ni=null;const ri=e=>{ni=e},Vl=()=>ni;let si=0;function xl(e={}){const t=ve(e.onWarn)?e.onWarn:Pe,n=G(e.version)?e.version:Rl,r=G(e.locale)||ve(e.locale)?e.locale:jt,i=ve(r)?jt:r,s=be(e.fallbackLocale)||ae(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=ae(e.messages)?e.messages:ar(i),o=ae(e.datetimeFormats)?e.datetimeFormats:ar(i),u=ae(e.numberFormats)?e.numberFormats:ar(i),p=$e(Ne(),e.modifiers,Cl()),O=e.pluralRules||Ne(),g=ve(e.missing)?e.missing:null,N=le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,I=le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,H=!!e.fallbackFormat,M=!!e.unresolving,x=ve(e.postTranslation)?e.postTranslation:null,$=ae(e.processor)?e.processor:null,V=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,k=ve(e.messageCompiler)?e.messageCompiler:Js;process.env.NODE_ENV!=="production"&&ve(e.messageCompiler)&&Ss(Ct(je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const F=ve(e.messageResolver)?e.messageResolver:Zs||dl,L=ve(e.localeFallbacker)?e.localeFallbacker:ei||Dl,P=ue(e.fallbackContext)?e.fallbackContext:void 0,_=e,h=ue(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,T=ue(_.__numberFormatters)?_.__numberFormatters:new Map,j=ue(_.__meta)?_.__meta:{};si++;const q={version:n,cid:si,locale:r,fallbackLocale:s,messages:a,modifiers:p,pluralRules:O,missing:g,missingWarn:N,fallbackWarn:I,fallbackFormat:H,unresolving:M,postTranslation:x,processor:$,warnHtmlMessage:V,escapeParameter:S,messageCompiler:k,messageResolver:F,localeFallbacker:L,fallbackContext:P,onWarn:t,__meta:j};return q.datetimeFormats=o,q.numberFormats=u,q.__datetimeFormatters=h,q.__numberFormatters=T,process.env.NODE_ENV!=="production"&&(q.__v_emitter=_.__v_emitter!=null?_.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ol(q,n,j),q}const ar=e=>({[e]:Ne()});function kn(e,t){return e instanceof RegExp?e.test(t):e}function ii(e,t){return e instanceof RegExp?e.test(t):e}function or(e,t,n,r,i){const{missing:s,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const o=e.__v_emitter;o&&o.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(s!==null){const o=s(e,n,t,i);return G(o)?o:t}else return process.env.NODE_ENV!=="production"&&ii(r,t)&&a(Ct(je.NOT_FOUND_KEY,{key:t,locale:n})),t}function cn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ai(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ul(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ai(e,t[r]))return!0;return!1}function lr(e){return n=>$l(n,e)}function $l(e,t){const n=el(t);if(n==null)throw on(0);if(rr(n)===1){const s=tl(n);return e.plural(s.reduce((a,o)=>[...a,oi(e,o)],[]))}else return oi(e,n)}function oi(e,t){const n=nl(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=rl(t).reduce((i,s)=>[...i,cr(e,s)],[]);return e.normalize(r)}}function cr(e,t){const n=rr(t);switch(n){case 3:return Rn(t,n);case 9:return Rn(t,n);case 4:{const r=t;if(lt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(lt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw on(n)}case 5:{const r=t;if(lt(r,"i")&&Ae(r.i))return e.interpolate(e.list(r.i));if(lt(r,"index")&&Ae(r.index))return e.interpolate(e.list(r.index));throw on(n)}case 6:{const r=t,i=sl(r),s=il(r);return e.linked(cr(e,s),i?cr(e,i):void 0,e.type)}case 7:return Rn(t,n);case 8:return Rn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ql="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function li(e,t){t&&wo(e)&&Pe(er(ql,{source:e}))}const ci=e=>e;let Gt=Ne();function ui(e){e.code===An.USE_MODULO_SYNTAX&&Pe(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
38
- reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
39
- (message compiler warning message: ${e.message})`)}function fi(e,t={}){let n=!1;const r=t.onError||Lo;return t.onError=i=>{n=!0,r(i)},{...zo(e,t),detectError:n}}const Bl=(e,t)=>{if(!G(e))throw pt(Ve.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=ui);{const n=le(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&li(e,n);const i=(t.onCacheKey||ci)(e),s=Gt[i];if(s)return s;const{code:a,detectError:o}=fi(e,t),u=new Function(`return ${a}`)();return o?u:Gt[i]=u}};function Wl(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=ui),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&G(e)){const n=le(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&li(e,n);const i=(t.onCacheKey||ci)(e),s=Gt[i];if(s)return s;const{ast:a,detectError:o}=fi(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=lr(a);return o?u:Gt[i]=u}else{if(process.env.NODE_ENV!=="production"&&!rt(e))return Pe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Gt[n];return r||(Gt[n]=lr(e))}else return lr(e)}}const di=()=>"",st=e=>ve(e);function pi(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:a,messages:o}=e,[u,p]=ur(...t),O=le(p.missingWarn)?p.missingWarn:e.missingWarn,g=le(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,N=le(p.escapeParameter)?p.escapeParameter:e.escapeParameter,I=!!p.resolvedMessage,H=G(p.default)||le(p.default)?le(p.default)?s?u:()=>u:p.default:n?s?u:()=>u:"",M=n||H!=="",x=sr(e,p);N&&Hl(p);let[$,V,S]=I?[u,x,o[x]||Ne()]:mi(e,u,x,a,g,O),k=$,F=u;if(!I&&!(G(k)||rt(k)||st(k))&&M&&(k=H,F=k),!I&&(!(G(k)||rt(k)||st(k))||!G(V)))return i?Cn:u;if(process.env.NODE_ENV!=="production"&&G(k)&&e.messageCompiler==null)return Pe(`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 '${u}'.`),u;let L=!1;const P=()=>{L=!0},_=st(k)?k:_i(e,u,V,k,F,P);if(L)return k;const h=Yl(e,V,S,p),T=bl(h),j=jl(e,_,T),q=r?r(j,u):j;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const K={timestamp:Date.now(),key:G(u)?u:st(k)?k.key:"",locale:V||(st(k)?k.locale:""),format:G(k)?k:st(k)?k.source:"",message:q};K.meta=$e({},e.__meta,Ml()||{}),Tl(K)}return q}function Hl(e){be(e.list)?e.list=e.list.map(t=>G(t)?bs(t):t):ue(e.named)&&Object.keys(e.named).forEach(t=>{G(e.named[t])&&(e.named[t]=bs(e.named[t]))})}function mi(e,t,n,r,i,s){const{messages:a,onWarn:o,messageResolver:u,localeFallbacker:p}=e,O=p(e,r,n);let g=Ne(),N,I=null,H=n,M=null;const x="translate";for(let $=0;$<O.length;$++){if(N=M=O[$],process.env.NODE_ENV!=="production"&&n!==N&&!ai(n,N)&&kn(i,t)&&o(Ct(je.FALLBACK_TO_TRANSLATE,{key:t,target:N})),process.env.NODE_ENV!=="production"&&n!==N){const F=e.__v_emitter;F&&F.emit("fallback",{type:x,key:t,from:H,to:M,groupId:`${x}:${t}`})}g=a[N]||Ne();let V=null,S,k;if(process.env.NODE_ENV!=="production"&&ot&&(V=window.performance.now(),S="intlify-message-resolve-start",k="intlify-message-resolve-end",nt&&nt(S)),(I=u(g,t))===null&&(I=g[t]),process.env.NODE_ENV!=="production"&&ot){const F=window.performance.now(),L=e.__v_emitter;L&&V&&I&&L.emit("message-resolve",{type:"message-resolve",key:t,message:I,time:F-V,groupId:`${x}:${t}`}),S&&k&&nt&&At&&(nt(k),At("intlify message resolve",S,k))}if(G(I)||rt(I)||st(I))break;if(!Ul(N,O)){const F=or(e,t,N,s,x);F!==t&&(I=F)}H=M}return[I,N,g]}function _i(e,t,n,r,i,s){const{messageCompiler:a,warnHtmlMessage:o}=e;if(st(r)){const N=r;return N.locale=N.locale||n,N.key=N.key||t,N}if(a==null){const N=()=>r;return N.locale=n,N.key=t,N}let u=null,p,O;process.env.NODE_ENV!=="production"&&ot&&(u=window.performance.now(),p="intlify-message-compilation-start",O="intlify-message-compilation-end",nt&&nt(p));const g=a(r,Gl(e,n,i,r,o,s));if(process.env.NODE_ENV!=="production"&&ot){const N=window.performance.now(),I=e.__v_emitter;I&&u&&I.emit("message-compilation",{type:"message-compilation",message:r,time:N-u,groupId:`translate:${t}`}),p&&O&&nt&&At&&(nt(O),At("intlify message compilation",p,O))}return g.locale=n,g.key=t,g.source=r,g}function jl(e,t,n){let r=null,i,s;process.env.NODE_ENV!=="production"&&ot&&(r=window.performance.now(),i="intlify-message-evaluation-start",s="intlify-message-evaluation-end",nt&&nt(i));const a=t(n);if(process.env.NODE_ENV!=="production"&&ot){const o=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:a,time:o-r,groupId:`translate:${t.key}`}),i&&s&&nt&&At&&(nt(s),At("intlify message evaluation",i,s))}return a}function ur(...e){const[t,n,r]=e,i=Ne();if(!G(t)&&!Ae(t)&&!st(t)&&!rt(t))throw pt(Ve.INVALID_ARGUMENT);const s=Ae(t)?String(t):(st(t),t);return Ae(n)?i.plural=n:G(n)?i.default=n:ae(n)&&!In(n)?i.named=n:be(n)&&(i.list=n),Ae(r)?i.plural=r:G(r)?i.default=r:ae(r)&&$e(i,r),[s,i]}function Gl(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{if(s&&s(a),process.env.NODE_ENV!=="production"){const o=Kl(r),u=`Message compilation error: ${a.message}`,p=a.location&&o&&vo(o,a.location.start.offset,a.location.end.offset),O=e.__v_emitter;O&&o&&O.emit("compile-error",{message:o,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${n}`}),console.error(p?`${u}
40
- ${p}`:u)}else throw a},onCacheKey:a=>fo(t,n,a)}}function Kl(e){if(G(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Yl(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:a,fallbackLocale:o,fallbackWarn:u,missingWarn:p,fallbackContext:O}=e,N={locale:t,modifiers:i,pluralRules:s,messages:I=>{let H=a(n,I);if(H==null&&O){const[,,M]=mi(O,I,t,o,u,p);H=a(M,I)}if(G(H)||rt(H)){let M=!1;const $=_i(e,I,t,H,I,()=>{M=!0});return M?di:$}else return st(H)?H:di}};return e.processor&&(N.processor=e.processor),r.list&&(N.list=r.list),r.named&&(N.named=r.named),Ae(r.plural)&&(N.pluralIndex=r.plural),N}const hi=typeof Intl<"u",gi={dateTimeFormat:hi&&typeof Intl.DateTimeFormat<"u",numberFormat:hi&&typeof Intl.NumberFormat<"u"};function Ei(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:a}=e,{__datetimeFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!gi.dateTimeFormat)return s(Ct(je.CANNOT_FORMAT_DATE)),Pn;const[u,p,O,g]=fr(...t),N=le(O.missingWarn)?O.missingWarn:e.missingWarn,I=le(O.fallbackWarn)?O.fallbackWarn:e.fallbackWarn,H=!!O.part,M=sr(e,O),x=a(e,i,M);if(!G(u)||u==="")return new Intl.DateTimeFormat(M,g).format(p);let $={},V,S=null,k=M,F=null;const L="datetime format";for(let h=0;h<x.length;h++){if(V=F=x[h],process.env.NODE_ENV!=="production"&&M!==V&&kn(I,u)&&s(Ct(je.FALLBACK_TO_DATE_FORMAT,{key:u,target:V})),process.env.NODE_ENV!=="production"&&M!==V){const T=e.__v_emitter;T&&T.emit("fallback",{type:L,key:u,from:k,to:F,groupId:`${L}:${u}`})}if($=n[V]||{},S=$[u],ae(S))break;or(e,u,V,N,L),k=F}if(!ae(S)||!G(V))return r?Cn:u;let P=`${V}__${u}`;In(g)||(P=`${P}__${JSON.stringify(g)}`);let _=o.get(P);return _||(_=new Intl.DateTimeFormat(V,$e({},S,g)),o.set(P,_)),H?_.formatToParts(p):_.format(p)}const Ni=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fr(...e){const[t,n,r,i]=e,s=Ne();let a=Ne(),o;if(G(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw pt(Ve.INVALID_ISO_DATE_ARGUMENT);const p=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();o=new Date(p);try{o.toISOString()}catch{throw pt(Ve.INVALID_ISO_DATE_ARGUMENT)}}else if(mo(t)){if(isNaN(t.getTime()))throw pt(Ve.INVALID_DATE_ARGUMENT);o=t}else if(Ae(t))o=t;else throw pt(Ve.INVALID_ARGUMENT);return G(n)?s.key=n:ae(n)&&Object.keys(n).forEach(u=>{Ni.includes(u)?a[u]=n[u]:s[u]=n[u]}),G(r)?s.locale=r:ae(r)&&(a=r),ae(i)&&(a=i),[s.key||"",o,s,a]}function vi(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function bi(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:a}=e,{__numberFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!gi.numberFormat)return s(Ct(je.CANNOT_FORMAT_NUMBER)),Pn;const[u,p,O,g]=dr(...t),N=le(O.missingWarn)?O.missingWarn:e.missingWarn,I=le(O.fallbackWarn)?O.fallbackWarn:e.fallbackWarn,H=!!O.part,M=sr(e,O),x=a(e,i,M);if(!G(u)||u==="")return new Intl.NumberFormat(M,g).format(p);let $={},V,S=null,k=M,F=null;const L="number format";for(let h=0;h<x.length;h++){if(V=F=x[h],process.env.NODE_ENV!=="production"&&M!==V&&kn(I,u)&&s(Ct(je.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:V})),process.env.NODE_ENV!=="production"&&M!==V){const T=e.__v_emitter;T&&T.emit("fallback",{type:L,key:u,from:k,to:F,groupId:`${L}:${u}`})}if($=n[V]||{},S=$[u],ae(S))break;or(e,u,V,N,L),k=F}if(!ae(S)||!G(V))return r?Cn:u;let P=`${V}__${u}`;In(g)||(P=`${P}__${JSON.stringify(g)}`);let _=o.get(P);return _||(_=new Intl.NumberFormat(V,$e({},S,g)),o.set(P,_)),H?_.formatToParts(p):_.format(p)}const yi=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dr(...e){const[t,n,r,i]=e,s=Ne();let a=Ne();if(!Ae(t))throw pt(Ve.INVALID_ARGUMENT);const o=t;return G(n)?s.key=n:ae(n)&&Object.keys(n).forEach(u=>{yi.includes(u)?a[u]=n[u]:s[u]=n[u]}),G(r)?s.locale=r:ae(r)&&(a=r),ae(i)&&(a=i),[s.key||"",o,s,a]}function Oi(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}Zo();/**
41
- * @vue/shared v3.5.17
18
+ */function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis$1().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis$1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis$1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function getPathCharType(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 formatSubPath(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:isLiteral(t)?stripQuotes(t):"*"+t}function parse$1(e){const t=[];let n=-1,s=0,c=0,l,C,A,L,W,Y,U;const V=[];V[0]=()=>{C===void 0?C=A:C+=A},V[1]=()=>{C!==void 0&&(t.push(C),C=void 0)},V[2]=()=>{V[0](),c++},V[3]=()=>{if(c>0)c--,s=4,V[0]();else{if(c=0,C===void 0||(C=formatSubPath(C),C===!1))return!1;V[1]()}};function J(){const ce=e[n+1];if(s===5&&ce==="'"||s===6&&ce==='"')return n++,A="\\"+ce,V[0](),!0}for(;s!==null;)if(n++,l=e[n],!(l==="\\"&&J())){if(L=getPathCharType(l),U=pathStateMachine[s],W=U[L]||U.l||8,W===8||(s=W[0],W[1]!==void 0&&(Y=V[W[1]],Y&&(A=l,Y()===!1))))return;if(s===7)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject$2(e)?e[t]:null}function resolveValue(e,t){if(!isObject$2(e))return null;let n=cache.get(t);if(n||(n=parse$1(t),n&&cache.set(t,n)),!n)return null;const s=n.length;let c=e,l=0;for(;l<s;){const C=c[n[l]];if(C===void 0||isFunction$1(c))return null;c=C,l++}return c}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>e.length===0?"":join$1(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,n=getPluralIndex(e),s=isObject$2(e.pluralRules)&&isString$2(t)&&isFunction$1(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,c=isObject$2(e.pluralRules)&&isString$2(t)&&isFunction$1(e.pluralRules[t])?pluralDefault:void 0,l=q=>q[s(n,q.length,c)],C=e.list||[],A=q=>C[q],L=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(n,L);const W=q=>L[q];function Y(q){const Q=isFunction$1(e.messages)?e.messages(q):isObject$2(e.messages)?e.messages[q]:!1;return Q||(e.parent?e.parent.message(q):DEFAULT_MESSAGE)}const U=q=>e.modifiers?e.modifiers[q]:DEFAULT_MODIFIER,V=isPlainObject$1(e.processor)&&isFunction$1(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,J=isPlainObject$1(e.processor)&&isFunction$1(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,ce=isPlainObject$1(e.processor)&&isString$2(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,re={list:A,named:W,plural:l,linked:(q,...Q)=>{const[ae,te]=Q;let oe="text",ne="";Q.length===1?isObject$2(ae)?(ne=ae.modifier||ne,oe=ae.type||oe):isString$2(ae)&&(ne=ae||ne):Q.length===2&&(isString$2(ae)&&(ne=ae||ne),isString$2(te)&&(oe=te||oe));const ie=Y(q)(re),G=oe==="vnode"&&isArray$1(ie)&&ne?ie[0]:ie;return ne?U(ne)(G,oe):G},message:Y,type:ce,interpolate:J,normalize:V,values:assign$1({},C,L)};return re}let devtools=null;function setDevToolsHook(e){devtools=e}function initI18nDevTools(e,t,n){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(e){return t=>devtools&&devtools.emit(e,t)}const CoreWarnCodes={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,__EXTEND_POINT__:8},warnMessages$1={[CoreWarnCodes.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[CoreWarnCodes.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[CoreWarnCodes.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 getWarnMessage$1(e,...t){return format$2(warnMessages$1[e],...t)}const code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$2(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$2(),NOT_SUPPORT_LOCALE_TYPE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(e){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages$1}:void 0)}const errorMessages$1={[CoreErrorCodes.INVALID_ARGUMENT]:"Invalid arguments",[CoreErrorCodes.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function getLocale(e,t){return t.locale!=null?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString$2(e))return e;if(isFunction$1(e)){if(e.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(e.constructor.name==="Function"){const t=e();if(isPromise$1(t))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,n){return[...new Set([n,...isArray$1(t)?t:isObject$2(t)?Object.keys(t):isString$2(t)?[t]:[n]])]}function fallbackWithLocaleChain(e,t,n){const s=isString$2(n)?n:DEFAULT_LOCALE,c=e;c.__localeChainCache||(c.__localeChainCache=new Map);let l=c.__localeChainCache.get(s);if(!l){l=[];let C=[n];for(;isArray$1(C);)C=appendBlockToChain(l,C,t);const A=isArray$1(t)||!isPlainObject$1(t)?t:t.default?t.default:null;C=isString$2(A)?[A]:A,isArray$1(C)&&appendBlockToChain(l,C,!1),c.__localeChainCache.set(s,l)}return l}function appendBlockToChain(e,t,n){let s=!0;for(let c=0;c<t.length&&isBoolean(s);c++){const l=t[c];isString$2(l)&&(s=appendLocaleToChain(e,t[c],n))}return s}function appendLocaleToChain(e,t,n){let s;const c=t.split("-");do{const l=c.join("-");s=appendItemToChain(e,l,n),c.splice(-1,1)}while(c.length&&s===!0);return s}function appendItemToChain(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const c=t.replace(/!/g,"");e.push(c),(isArray$1(n)||isPlainObject$1(n))&&n[c]&&(s=n[c])}return s}const VERSION$1="9.10.2",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize$1=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>t==="text"&&isString$2(e)?e.toUpperCase():t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&isString$2(e)?e.toLowerCase():t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&isString$2(e)?capitalize$1(e):t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?capitalize$1(e.children):e}}let _compiler;function registerMessageCompiler(e){_compiler=e}let _resolver;function registerMessageResolver(e){_resolver=e}let _fallbacker;function registerLocaleFallbacker(e){_fallbacker=e}let _additionalMeta=null;const setAdditionalMeta=e=>{_additionalMeta=e},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction$1(e.onWarn)?e.onWarn:warn$2,n=isString$2(e.version)?e.version:VERSION$1,s=isString$2(e.locale)||isFunction$1(e.locale)?e.locale:DEFAULT_LOCALE,c=isFunction$1(s)?DEFAULT_LOCALE:s,l=isArray$1(e.fallbackLocale)||isPlainObject$1(e.fallbackLocale)||isString$2(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c,C=isPlainObject$1(e.messages)?e.messages:{[c]:{}},A=isPlainObject$1(e.datetimeFormats)?e.datetimeFormats:{[c]:{}},L=isPlainObject$1(e.numberFormats)?e.numberFormats:{[c]:{}},W=assign$1({},e.modifiers||{},getDefaultLinkedModifiers()),Y=e.pluralRules||{},U=isFunction$1(e.missing)?e.missing:null,V=isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,J=isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,ce=!!e.fallbackFormat,se=!!e.unresolving,re=isFunction$1(e.postTranslation)?e.postTranslation:null,q=isPlainObject$1(e.processor)?e.processor:null,Q=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,ae=!!e.escapeParameter,te=isFunction$1(e.messageCompiler)?e.messageCompiler:_compiler;process.env.NODE_ENV!=="production"&&isFunction$1(e.messageCompiler)&&warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const oe=isFunction$1(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,ne=isFunction$1(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,ie=isObject$2(e.fallbackContext)?e.fallbackContext:void 0,G=e,$=isObject$2(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,X=isObject$2(G.__numberFormatters)?G.__numberFormatters:new Map,pe=isObject$2(G.__meta)?G.__meta:{};_cid++;const de={version:n,cid:_cid,locale:s,fallbackLocale:l,messages:C,modifiers:W,pluralRules:Y,missing:U,missingWarn:V,fallbackWarn:J,fallbackFormat:ce,unresolving:se,postTranslation:re,processor:q,warnHtmlMessage:Q,escapeParameter:ae,messageCompiler:te,messageResolver:oe,localeFallbacker:ne,fallbackContext:ie,onWarn:t,__meta:pe};return de.datetimeFormats=A,de.numberFormats=L,de.__datetimeFormatters=$,de.__numberFormatters=X,process.env.NODE_ENV!=="production"&&(de.__v_emitter=G.__v_emitter!=null?G.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&initI18nDevTools(de,n,pe),de}function isTranslateFallbackWarn(e,t){return e instanceof RegExp?e.test(t):e}function isTranslateMissingWarn(e,t){return e instanceof RegExp?e.test(t):e}function handleMissing(e,t,n,s,c){const{missing:l,onWarn:C}=e;if(process.env.NODE_ENV!=="production"){const A=e.__v_emitter;A&&A.emit("missing",{locale:n,key:t,type:c,groupId:`${c}:${t}`})}if(l!==null){const A=l(e,n,t,c);return isString$2(A)?A:t}else return process.env.NODE_ENV!=="production"&&isTranslateMissingWarn(s,t)&&C(getWarnMessage$1(CoreWarnCodes.NOT_FOUND_KEY,{key:t,locale:n})),t}function updateFallbackLocale(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function format(e){return n=>formatParts(n,e)}function formatParts(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,c=s.c||s.cases;return e.plural(c.reduce((l,C)=>[...l,formatMessageParts(e,C)],[]))}else return formatMessageParts(e,n)}function formatMessageParts(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((c,l)=>[...c,formatMessagePart(e,l)],[]);return e.normalize(s)}}function formatMessagePart(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,c=s.m||s.modifier;return e.linked(formatMessagePart(e,s.k||s.key),c?formatMessagePart(e,c):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const WARN_MESSAGE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function checkHtmlMessage(e,t){t&&detectHtmlTag(e)&&warn$2(format$2(WARN_MESSAGE,{source:e}))}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject$2(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function baseCompile(e,t={}){let n=!1;const s=t.onError||defaultOnError;return t.onError=c=>{n=!0,s(c)},{...baseCompile$1(e,t),detectError:n}}const compileToFunction=(e,t)=>{if(!isString$2(e))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,n);const c=(t.onCacheKey||defaultOnCacheKey)(e),l=compileCache[c];if(l)return l;const{code:C,detectError:A}=baseCompile(e,t),L=new Function(`return ${C}`)();return A?L:compileCache[c]=L}};function compile(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$2(e)){const n=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,n);const c=(t.onCacheKey||defaultOnCacheKey)(e),l=compileCache[c];if(l)return l;const{ast:C,detectError:A}=baseCompile(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),L=format(C);return A?L:compileCache[c]=L}else{if(process.env.NODE_ENV!=="production"&&!isMessageAST(e))return warn$2(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const s=compileCache[n];return s||(compileCache[n]=format(e))}else return format(e)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction$1(e);function translate(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:c,messageCompiler:l,fallbackLocale:C,messages:A}=e,[L,W]=parseTranslateArgs(...t),Y=isBoolean(W.missingWarn)?W.missingWarn:e.missingWarn,U=isBoolean(W.fallbackWarn)?W.fallbackWarn:e.fallbackWarn,V=isBoolean(W.escapeParameter)?W.escapeParameter:e.escapeParameter,J=!!W.resolvedMessage,ce=isString$2(W.default)||isBoolean(W.default)?isBoolean(W.default)?l?L:()=>L:W.default:n?l?L:()=>L:"",se=n||ce!=="",re=getLocale(e,W);V&&escapeParams(W);let[q,Q,ae]=J?[L,re,A[re]||{}]:resolveMessageFormat(e,L,re,C,U,Y),te=q,oe=L;if(!J&&!(isString$2(te)||isMessageAST(te)||isMessageFunction(te))&&se&&(te=ce,oe=te),!J&&(!(isString$2(te)||isMessageAST(te)||isMessageFunction(te))||!isString$2(Q)))return c?NOT_REOSLVED:L;if(process.env.NODE_ENV!=="production"&&isString$2(te)&&e.messageCompiler==null)return warn$2(`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 '${L}'.`),L;let ne=!1;const ie=()=>{ne=!0},G=isMessageFunction(te)?te:compileMessageFormat(e,L,Q,te,oe,ie);if(ne)return te;const $=getMessageContextOptions(e,Q,ae,W),X=createMessageContext($),pe=evaluateMessage(e,G,X),de=s?s(pe,L):pe;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ge={timestamp:Date.now(),key:isString$2(L)?L:isMessageFunction(te)?te.key:"",locale:Q||(isMessageFunction(te)?te.locale:""),format:isString$2(te)?te:isMessageFunction(te)?te.source:"",message:de};ge.meta=assign$1({},e.__meta,getAdditionalMeta()||{}),translateDevTools(ge)}return de}function escapeParams(e){isArray$1(e.list)?e.list=e.list.map(t=>isString$2(t)?escapeHtml(t):t):isObject$2(e.named)&&Object.keys(e.named).forEach(t=>{isString$2(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))})}function resolveMessageFormat(e,t,n,s,c,l){const{messages:C,onWarn:A,messageResolver:L,localeFallbacker:W}=e,Y=W(e,s,n);let U={},V,J=null,ce=n,se=null;const re="translate";for(let q=0;q<Y.length;q++){if(V=se=Y[q],process.env.NODE_ENV!=="production"&&n!==V&&isTranslateFallbackWarn(c,t)&&A(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE,{key:t,target:V})),process.env.NODE_ENV!=="production"&&n!==V){const ne=e.__v_emitter;ne&&ne.emit("fallback",{type:re,key:t,from:ce,to:se,groupId:`${re}:${t}`})}U=C[V]||{};let Q=null,ae,te;if(process.env.NODE_ENV!=="production"&&inBrowser&&(Q=window.performance.now(),ae="intlify-message-resolve-start",te="intlify-message-resolve-end",mark&&mark(ae)),(J=L(U,t))===null&&(J=U[t]),process.env.NODE_ENV!=="production"&&inBrowser){const ne=window.performance.now(),ie=e.__v_emitter;ie&&Q&&J&&ie.emit("message-resolve",{type:"message-resolve",key:t,message:J,time:ne-Q,groupId:`${re}:${t}`}),ae&&te&&mark&&measure&&(mark(te),measure("intlify message resolve",ae,te))}if(isString$2(J)||isMessageAST(J)||isMessageFunction(J))break;const oe=handleMissing(e,t,V,l,re);oe!==t&&(J=oe),ce=se}return[J,V,U]}function compileMessageFormat(e,t,n,s,c,l){const{messageCompiler:C,warnHtmlMessage:A}=e;if(isMessageFunction(s)){const V=s;return V.locale=V.locale||n,V.key=V.key||t,V}if(C==null){const V=()=>s;return V.locale=n,V.key=t,V}let L=null,W,Y;process.env.NODE_ENV!=="production"&&inBrowser&&(L=window.performance.now(),W="intlify-message-compilation-start",Y="intlify-message-compilation-end",mark&&mark(W));const U=C(s,getCompileContext(e,n,c,s,A,l));if(process.env.NODE_ENV!=="production"&&inBrowser){const V=window.performance.now(),J=e.__v_emitter;J&&L&&J.emit("message-compilation",{type:"message-compilation",message:s,time:V-L,groupId:`translate:${t}`}),W&&Y&&mark&&measure&&(mark(Y),measure("intlify message compilation",W,Y))}return U.locale=n,U.key=t,U.source=s,U}function evaluateMessage(e,t,n){let s=null,c,l;process.env.NODE_ENV!=="production"&&inBrowser&&(s=window.performance.now(),c="intlify-message-evaluation-start",l="intlify-message-evaluation-end",mark&&mark(c));const C=t(n);if(process.env.NODE_ENV!=="production"&&inBrowser){const A=window.performance.now(),L=e.__v_emitter;L&&s&&L.emit("message-evaluation",{type:"message-evaluation",value:C,time:A-s,groupId:`translate:${t.key}`}),c&&l&&mark&&measure&&(mark(l),measure("intlify message evaluation",c,l))}return C}function parseTranslateArgs(...e){const[t,n,s]=e,c={};if(!isString$2(t)&&!isNumber(t)&&!isMessageFunction(t)&&!isMessageAST(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const l=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(n)?c.plural=n:isString$2(n)?c.default=n:isPlainObject$1(n)&&!isEmptyObject(n)?c.named=n:isArray$1(n)&&(c.list=n),isNumber(s)?c.plural=s:isString$2(s)?c.default=s:isPlainObject$1(s)&&assign$1(c,s),[l,c]}function getCompileContext(e,t,n,s,c,l){return{locale:t,key:n,warnHtmlMessage:c,onError:C=>{if(l&&l(C),process.env.NODE_ENV!=="production"){const A=getSourceForCodeFrame(s),L=`Message compilation error: ${C.message}`,W=C.location&&A&&generateCodeFrame(A,C.location.start.offset,C.location.end.offset),Y=e.__v_emitter;Y&&A&&Y.emit("compile-error",{message:A,error:C.message,start:C.location&&C.location.start.offset,end:C.location&&C.location.end.offset,groupId:`translate:${n}`}),console.error(W?`${L}
19
+ ${W}`:L)}else throw C},onCacheKey:C=>generateFormatCacheKey(t,n,C)}}function getSourceForCodeFrame(e){if(isString$2(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function getMessageContextOptions(e,t,n,s){const{modifiers:c,pluralRules:l,messageResolver:C,fallbackLocale:A,fallbackWarn:L,missingWarn:W,fallbackContext:Y}=e,V={locale:t,modifiers:c,pluralRules:l,messages:J=>{let ce=C(n,J);if(ce==null&&Y){const[,,se]=resolveMessageFormat(Y,J,t,A,L,W);ce=C(se,J)}if(isString$2(ce)||isMessageAST(ce)){let se=!1;const q=compileMessageFormat(e,J,t,ce,J,()=>{se=!0});return se?NOOP_MESSAGE_FUNCTION:q}else return isMessageFunction(ce)?ce:NOOP_MESSAGE_FUNCTION}};return e.processor&&(V.processor=e.processor),s.list&&(V.list=s.list),s.named&&(V.named=s.named),isNumber(s.plural)&&(V.pluralIndex=s.plural),V}const intlDefined=typeof Intl<"u",Availabilities={dateTimeFormat:intlDefined&&typeof Intl.DateTimeFormat<"u",numberFormat:intlDefined&&typeof Intl.NumberFormat<"u"};function datetime(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:c,onWarn:l,localeFallbacker:C}=e,{__datetimeFormatters:A}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.dateTimeFormat)return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)),MISSING_RESOLVE_VALUE;const[L,W,Y,U]=parseDateTimeArgs(...t),V=isBoolean(Y.missingWarn)?Y.missingWarn:e.missingWarn,J=isBoolean(Y.fallbackWarn)?Y.fallbackWarn:e.fallbackWarn,ce=!!Y.part,se=getLocale(e,Y),re=C(e,c,se);if(!isString$2(L)||L==="")return new Intl.DateTimeFormat(se,U).format(W);let q={},Q,ae=null,te=se,oe=null;const ne="datetime format";for(let $=0;$<re.length;$++){if(Q=oe=re[$],process.env.NODE_ENV!=="production"&&se!==Q&&isTranslateFallbackWarn(J,L)&&l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT,{key:L,target:Q})),process.env.NODE_ENV!=="production"&&se!==Q){const X=e.__v_emitter;X&&X.emit("fallback",{type:ne,key:L,from:te,to:oe,groupId:`${ne}:${L}`})}if(q=n[Q]||{},ae=q[L],isPlainObject$1(ae))break;handleMissing(e,L,Q,V,ne),te=oe}if(!isPlainObject$1(ae)||!isString$2(Q))return s?NOT_REOSLVED:L;let ie=`${Q}__${L}`;isEmptyObject(U)||(ie=`${ie}__${JSON.stringify(U)}`);let G=A.get(ie);return G||(G=new Intl.DateTimeFormat(Q,assign$1({},ae,U)),A.set(ie,G)),ce?G.formatToParts(W):G.format(W)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,n,s,c]=e,l={};let C={},A;if(isString$2(t)){const L=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!L)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const W=L[3]?L[3].trim().startsWith("T")?`${L[1].trim()}${L[3].trim()}`:`${L[1].trim()}T${L[3].trim()}`:L[1].trim();A=new Date(W);try{A.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);A=t}else if(isNumber(t))A=t;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$2(n)?l.key=n:isPlainObject$1(n)&&Object.keys(n).forEach(L=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(L)?C[L]=n[L]:l[L]=n[L]}),isString$2(s)?l.locale=s:isPlainObject$1(s)&&(C=s),isPlainObject$1(c)&&(C=c),[l.key||"",A,l,C]}function clearDateTimeFormat(e,t,n){const s=e;for(const c in n){const l=`${t}__${c}`;s.__datetimeFormatters.has(l)&&s.__datetimeFormatters.delete(l)}}function number(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:c,onWarn:l,localeFallbacker:C}=e,{__numberFormatters:A}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.numberFormat)return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)),MISSING_RESOLVE_VALUE;const[L,W,Y,U]=parseNumberArgs(...t),V=isBoolean(Y.missingWarn)?Y.missingWarn:e.missingWarn,J=isBoolean(Y.fallbackWarn)?Y.fallbackWarn:e.fallbackWarn,ce=!!Y.part,se=getLocale(e,Y),re=C(e,c,se);if(!isString$2(L)||L==="")return new Intl.NumberFormat(se,U).format(W);let q={},Q,ae=null,te=se,oe=null;const ne="number format";for(let $=0;$<re.length;$++){if(Q=oe=re[$],process.env.NODE_ENV!=="production"&&se!==Q&&isTranslateFallbackWarn(J,L)&&l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT,{key:L,target:Q})),process.env.NODE_ENV!=="production"&&se!==Q){const X=e.__v_emitter;X&&X.emit("fallback",{type:ne,key:L,from:te,to:oe,groupId:`${ne}:${L}`})}if(q=n[Q]||{},ae=q[L],isPlainObject$1(ae))break;handleMissing(e,L,Q,V,ne),te=oe}if(!isPlainObject$1(ae)||!isString$2(Q))return s?NOT_REOSLVED:L;let ie=`${Q}__${L}`;isEmptyObject(U)||(ie=`${ie}__${JSON.stringify(U)}`);let G=A.get(ie);return G||(G=new Intl.NumberFormat(Q,assign$1({},ae,U)),A.set(ie,G)),ce?G.formatToParts(W):G.format(W)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,n,s,c]=e,l={};let C={};if(!isNumber(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const A=t;return isString$2(n)?l.key=n:isPlainObject$1(n)&&Object.keys(n).forEach(L=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(L)?C[L]=n[L]:l[L]=n[L]}),isString$2(s)?l.locale=s:isPlainObject$1(s)&&(C=s),isPlainObject$1(c)&&(C=c),[l.key||"",A,l,C]}function clearNumberFormat(e,t,n){const s=e;for(const c in n){const l=`${t}__${c}`;s.__numberFormatters.has(l)&&s.__numberFormatters.delete(l)}}initFeatureFlags$1();/**
20
+ * @vue/shared v3.5.13
42
21
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
43
22
  * @license MIT
44
- **//*! #__NO_SIDE_EFFECTS__ */function Ql(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const it=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const kt=()=>{},Xl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xe=Object.assign,Jl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zl=Object.prototype.hasOwnProperty,Re=(e,t)=>zl.call(e,t),Te=Array.isArray,Kt=e=>Fn(e)==="[object Map]",Zl=e=>Fn(e)==="[object Set]",Ce=e=>typeof e=="function",ut=e=>typeof e=="string",un=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",ec=e=>(Ge(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),tc=Object.prototype.toString,Fn=e=>tc.call(e),Ti=e=>Fn(e).slice(8,-1),nc=e=>Fn(e)==="[object Object]",pr=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ii=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Si=Ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),rc=Ii(e=>e?`on${Si(e)}`:""),St=(e,t)=>!Object.is(e,t),sc=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};let Li;const Mn=()=>Li||(Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mr(e){if(Te(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ut(r)?lc(r):mr(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ut(e)||Ge(e))return e}const ic=/;(?![^(]*\))/g,ac=/:([^]+)/,oc=/\/\*[^]*?\*\//g;function lc(e){const t={};return e.replace(oc,"").split(ic).forEach(n=>{if(n){const r=n.split(ac);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _r(e){let t="";if(ut(e))t=e;else if(Te(e))for(let n=0;n<e.length;n++){const r=_r(e[n]);r&&(t+=r+" ")}else if(Ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}/**
45
- * @vue/reactivity v3.5.17
23
+ **//*! #__NO_SIDE_EFFECTS__ */function makeMap(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const EMPTY_OBJ=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const NOOP=()=>{},isOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),extend=Object.assign,remove=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$1.call(e,t),isArray=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isSet=e=>toTypeString(e)==="[object Set]",isFunction=e=>typeof e=="function",isString=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject=e=>e!==null&&typeof e=="object",isPromise=e=>(isObject(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cacheStringFunction=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),def=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(e){if(isArray(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],c=isString(s)?parseStringStyle(s):normalizeStyle(s);if(c)for(const l in c)t[l]=c[l]}return t}else if(isString(e)||isObject(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const s=n.split(propertyDelimiterRE);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function normalizeClass(e){let t="";if(isString(e))t=e;else if(isArray(e))for(let n=0;n<e.length;n++){const s=normalizeClass(e[n]);s&&(t+=s+" ")}else if(isObject(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}/**
24
+ * @vue/reactivity v3.5.13
46
25
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
47
26
  * @license MIT
48
- **/function mt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Je;class cc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Je,!t&&Je&&(this.index=(Je.scopes||(Je.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Je;try{return Je=this,t()}finally{Je=n}}else process.env.NODE_ENV!=="production"&&mt("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Je,Je=this)}off(){this._on>0&&--this._on===0&&(Je=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function uc(e){return new cc(e)}function fc(){return Je}let he;const hr=new WeakSet;class dc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Je&&Je.active&&Je.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,hr.has(this)&&(hr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ki(this),Ai(this);const t=he,n=ft;he=this,ft=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&he!==this&&mt("Active effect was not restored correctly - this is likely a Vue internal bug."),Ri(this),he=t,ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vr(t);this.deps=this.depsTail=void 0,ki(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?hr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let Di=0,fn,dn;function wi(e,t=!1){if(e.flags|=8,t){e.next=dn,dn=e;return}e.next=fn,fn=e}function gr(){Di++}function Er(){if(--Di>0)return;if(dn){let t=dn;for(dn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fn;){let t=fn;for(fn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ai(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ri(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),vr(r),pc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Nr(e))))return;e.flags|=2;const t=e.dep,n=he,r=ft;he=e,ft=!0;try{Ai(e);const i=e.fn(e._value);(t.version===0||St(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{he=n,ft=r,Ri(e),e.flags&=-3}}function vr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)vr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const Pi=[];function Yt(){Pi.push(ft),ft=!1}function Qt(){const e=Pi.pop();ft=e===void 0?!0:e}function ki(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let pn=0;class mc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class br{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!he||!ft||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new mc(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,Fi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return process.env.NODE_ENV!=="production"&&he.onTrack&&he.onTrack(Xe({effect:he},t)),n}trigger(t){this.version++,pn++,this.notify(t)}notify(t){gr();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Xe({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Er()}}}function Fi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Fi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const yr=new WeakMap,Ft=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Or=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),mn=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function xe(e,t,n){if(ft&&he){let r=yr.get(e);r||yr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new br),i.map=r,i.key=n),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:n}):i.track()}}function Lt(e,t,n,r,i,s){const a=yr.get(e);if(!a){pn++;return}const o=u=>{u&&(process.env.NODE_ENV!=="production"?u.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s}):u.trigger())};if(gr(),t==="clear")a.forEach(o);else{const u=Te(e),p=u&&pr(n);if(u&&n==="length"){const O=Number(r);a.forEach((g,N)=>{(N==="length"||N===mn||!un(N)&&N>=O)&&o(g)})}else switch((n!==void 0||a.has(void 0))&&o(a.get(n)),p&&o(a.get(mn)),t){case"add":u?p&&o(a.get("length")):(o(a.get(Ft)),Kt(e)&&o(a.get(Or)));break;case"delete":u||(o(a.get(Ft)),Kt(e)&&o(a.get(Or)));break;case"set":Kt(e)&&o(a.get(Ft));break}}Er()}function Xt(e){const t=fe(e);return t===e?t:(xe(t,"iterate",mn),ze(e)?t:t.map(Ke))}function Tr(e){return xe(e=fe(e),"iterate",mn),e}const _c={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,Ke)},concat(...e){return Xt(this).concat(...e.map(t=>Te(t)?Xt(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=Ke(e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(Ke),arguments)},find(e,t){return Et(this,"find",e,t,Ke,arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,Ke,arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sr(this,"includes",e)},indexOf(...e){return Sr(this,"indexOf",e)},join(e){return Xt(this).join(e)},lastIndexOf(...e){return Sr(this,"lastIndexOf",e)},map(e,t){return Et(this,"map",e,t,void 0,arguments)},pop(){return _n(this,"pop")},push(...e){return _n(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return _n(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return _n(this,"splice",e)},toReversed(){return Xt(this).toReversed()},toSorted(e){return Xt(this).toSorted(e)},toSpliced(...e){return Xt(this).toSpliced(...e)},unshift(...e){return _n(this,"unshift",e)},values(){return Ir(this,"values",Ke)}};function Ir(e,t,n){const r=Tr(e),i=r[t]();return r!==e&&!ze(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const hc=Array.prototype;function Et(e,t,n,r,i,s){const a=Tr(e),o=a!==e&&!ze(e),u=a[t];if(u!==hc[t]){const g=u.apply(e,s);return o?Ke(g):g}let p=n;a!==e&&(o?p=function(g,N){return n.call(this,Ke(g),N,e)}:n.length>2&&(p=function(g,N){return n.call(this,g,N,e)}));const O=u.call(a,p,r);return o&&i?i(O):O}function Mi(e,t,n,r){const i=Tr(e);let s=n;return i!==e&&(ze(e)?n.length>3&&(s=function(a,o,u){return n.call(this,a,o,u,e)}):s=function(a,o,u){return n.call(this,a,Ke(o),u,e)}),i[t](s,...r)}function Sr(e,t,n){const r=fe(e);xe(r,"iterate",mn);const i=r[t](...n);return(i===-1||i===!1)&&$n(n[0])?(n[0]=fe(n[0]),r[t](...n)):i}function _n(e,t,n=[]){Yt(),gr();const r=fe(e)[t].apply(e,n);return Er(),Qt(),r}const gc=Ql("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un));function Ec(e){un(e)||(e=String(e));const t=fe(this);return xe(t,"has",e),t.hasOwnProperty(e)}class xi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Wi:Bi:s?Dc:qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Te(t);if(!i){let u;if(a&&(u=_c[n]))return u;if(n==="hasOwnProperty")return Ec}const o=Reflect.get(t,n,qe(t)?t:r);return(un(n)?Vi.has(n):gc(n))||(i||xe(t,"get",n),s)?o:qe(o)?a&&pr(n)?o:o.value:Ge(o)?i?ji(o):Hi(o):o}}class Nc extends xi{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const u=Nt(s);if(!ze(r)&&!Nt(r)&&(s=fe(s),r=fe(r)),!Te(t)&&qe(s)&&!qe(r))return u?!1:(s.value=r,!0)}const a=Te(t)&&pr(n)?Number(n)<t.length:Re(t,n),o=Reflect.set(t,n,r,qe(t)?t:i);return t===fe(i)&&(a?St(r,s)&&Lt(t,"set",n,r,s):Lt(t,"add",n,r)),o}deleteProperty(t,n){const r=Re(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Lt(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!un(n)||!Vi.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",Te(t)?"length":Ft),Reflect.ownKeys(t)}}class Ui extends xi{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&mt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&mt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const vc=new Nc,bc=new Ui,yc=new Ui(!0),Lr=e=>e,Vn=e=>Reflect.getPrototypeOf(e);function Oc(e,t,n){return function(...r){const i=this.__v_raw,s=fe(i),a=Kt(s),o=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,p=i[e](...r),O=n?Lr:t?Ar:Ke;return!t&&xe(s,"iterate",u?Or:Ft),{next(){const{value:g,done:N}=p.next();return N?{value:g,done:N}:{value:o?[O(g[0]),O(g[1])]:O(g),done:N}},[Symbol.iterator](){return this}}}}function xn(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";mt(`${Si(e)} operation ${n}failed: target is readonly.`,fe(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Tc(e,t){const n={get(i){const s=this.__v_raw,a=fe(s),o=fe(i);e||(St(i,o)&&xe(a,"get",i),xe(a,"get",o));const{has:u}=Vn(a),p=t?Lr:e?Ar:Ke;if(u.call(a,i))return p(s.get(i));if(u.call(a,o))return p(s.get(o));s!==a&&s.get(i)},get size(){const i=this.__v_raw;return!e&&xe(fe(i),"iterate",Ft),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,a=fe(s),o=fe(i);return e||(St(i,o)&&xe(a,"has",i),xe(a,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const a=this,o=a.__v_raw,u=fe(o),p=t?Lr:e?Ar:Ke;return!e&&xe(u,"iterate",Ft),o.forEach((O,g)=>i.call(s,p(O),p(g),a))}};return Xe(n,e?{add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear")}:{add(i){!t&&!ze(i)&&!Nt(i)&&(i=fe(i));const s=fe(this);return Vn(s).has.call(s,i)||(s.add(i),Lt(s,"add",i,i)),this},set(i,s){!t&&!ze(s)&&!Nt(s)&&(s=fe(s));const a=fe(this),{has:o,get:u}=Vn(a);let p=o.call(a,i);p?process.env.NODE_ENV!=="production"&&$i(a,o,i):(i=fe(i),p=o.call(a,i));const O=u.call(a,i);return a.set(i,s),p?St(s,O)&&Lt(a,"set",i,s,O):Lt(a,"add",i,s),this},delete(i){const s=fe(this),{has:a,get:o}=Vn(s);let u=a.call(s,i);u?process.env.NODE_ENV!=="production"&&$i(s,a,i):(i=fe(i),u=a.call(s,i));const p=o?o.call(s,i):void 0,O=s.delete(i);return u&&Lt(s,"delete",i,void 0,p),O},clear(){const i=fe(this),s=i.size!==0,a=process.env.NODE_ENV!=="production"?Kt(i)?new Map(i):new Set(i):void 0,o=i.clear();return s&&Lt(i,"clear",void 0,void 0,a),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Oc(i,e,t)}),n}function Dr(e,t){const n=Tc(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Re(n,i)&&i in r?n:r,i,s)}const Ic={get:Dr(!1,!1)},Sc={get:Dr(!0,!1)},Lc={get:Dr(!0,!0)};function $i(e,t,n){const r=fe(n);if(r!==n&&t.call(e,r)){const i=Ti(e);mt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const qi=new WeakMap,Dc=new WeakMap,Bi=new WeakMap,Wi=new WeakMap;function wc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ac(e){return e.__v_skip||!Object.isExtensible(e)?0:wc(Ti(e))}function Hi(e){return Nt(e)?e:wr(e,!1,vc,Ic,qi)}function ji(e){return wr(e,!0,bc,Sc,Bi)}function Un(e){return wr(e,!0,yc,Lc,Wi)}function wr(e,t,n,r,i){if(!Ge(e))return process.env.NODE_ENV!=="production"&&mt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Ac(e);if(s===0)return e;const a=i.get(e);if(a)return a;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function Jt(e){return Nt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function $n(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function Rc(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&sc(e,"__v_skip",!0),e}const Ke=e=>Ge(e)?Hi(e):e,Ar=e=>Ge(e)?ji(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function zt(e){return Ki(e,!1)}function Gi(e){return Ki(e,!0)}function Ki(e,t){return qe(e)?e:new Cc(e,t)}class Cc{constructor(t,n){this.dep=new br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:fe(t),this._value=n?t:Ke(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ze(t)||Nt(t);t=r?t:fe(t),St(t,n)&&(this._rawValue=t,this._value=r?t:Ke(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function Pc(e){return qe(e)?e.value:e}const kc={get:(e,t,n)=>t==="__v_raw"?e:Pc(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return qe(i)&&!qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fc(e){return Jt(e)?e:new Proxy(e,kc)}class Mc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return wi(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Ci(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&mt("Write operation failed: computed value is readonly")}}function Vc(e,t,n=!1){let r,i;Ce(e)?r=e:(r=e.get,i=e.set);const s=new Mc(r,i,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const qn={},Bn=new WeakMap;let Mt;function xc(e,t=!1,n=Mt){if(n){let r=Bn.get(n);r||Bn.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&mt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Uc(e,t,n=it){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:o,call:u}=n,p=F=>{(n.onWarn||mt)("Invalid watch source: ",F,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},O=F=>i?F:ze(F)||i===!1||i===0?Dt(F,1):Dt(F);let g,N,I,H,M=!1,x=!1;if(qe(e)?(N=()=>e.value,M=ze(e)):Jt(e)?(N=()=>O(e),M=!0):Te(e)?(x=!0,M=e.some(F=>Jt(F)||ze(F)),N=()=>e.map(F=>{if(qe(F))return F.value;if(Jt(F))return O(F);if(Ce(F))return u?u(F,2):F();process.env.NODE_ENV!=="production"&&p(F)})):Ce(e)?t?N=u?()=>u(e,2):e:N=()=>{if(I){Yt();try{I()}finally{Qt()}}const F=Mt;Mt=g;try{return u?u(e,3,[H]):e(H)}finally{Mt=F}}:(N=kt,process.env.NODE_ENV!=="production"&&p(e)),t&&i){const F=N,L=i===!0?1/0:i;N=()=>Dt(F(),L)}const $=fc(),V=()=>{g.stop(),$&&$.active&&Jl($.effects,g)};if(s&&t){const F=t;t=(...L)=>{F(...L),V()}}let S=x?new Array(e.length).fill(qn):qn;const k=F=>{if(!(!(g.flags&1)||!g.dirty&&!F))if(t){const L=g.run();if(i||M||(x?L.some((P,_)=>St(P,S[_])):St(L,S))){I&&I();const P=Mt;Mt=g;try{const _=[L,S===qn?void 0:x&&S[0]===qn?[]:S,H];S=L,u?u(t,3,_):t(..._)}finally{Mt=P}}}else g.run()};return o&&o(k),g=new dc(N),g.scheduler=a?()=>a(k,!1):k,H=F=>xc(F,!1,g),I=g.onStop=()=>{const F=Bn.get(g);if(F){if(u)u(F,4);else for(const L of F)L();Bn.delete(g)}},process.env.NODE_ENV!=="production"&&(g.onTrack=n.onTrack,g.onTrigger=n.onTrigger),t?r?k(!0):S=g.run():a?a(k.bind(null,!0),!0):g.run(),V.pause=g.pause.bind(g),V.resume=g.resume.bind(g),V.stop=V,V}function Dt(e,t=1/0,n){if(t<=0||!Ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))Dt(e.value,t,n);else if(Te(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n);else if(Zl(e)||Kt(e))e.forEach(r=>{Dt(r,t,n)});else if(nc(e)){for(const r in e)Dt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Dt(e[r],t,n)}return e}/**
49
- * @vue/runtime-core v3.5.17
27
+ **/function warn(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let activeEffectScope;class EffectScope{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,t()}finally{activeEffectScope=n}}else process.env.NODE_ENV!=="production"&&warn("cannot run an inactive effect scope.")}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const c=this.parent.scopes.pop();c&&c!==this&&(this.parent.scopes[this.index]=c,c.index=this.index)}this.parent=void 0}}}function effectScope(e){return new EffectScope(e)}function getCurrentScope(){return activeEffectScope}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const t=activeSub,n=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&activeSub!==this&&warn("Active effect was not restored correctly - this is likely a Vue internal bug."),cleanupDeps(this),activeSub=t,shouldTrack=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)removeSub(t);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub,batchedComputed;function batch(e,t=!1){if(e.flags|=8,t){e.next=batchedComputed,batchedComputed=e;return}e.next=batchedSub,batchedSub=e}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let t=batchedComputed;for(batchedComputed=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;batchedSub;){let t=batchedSub;for(batchedSub=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function prepareDeps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cleanupDeps(e){let t,n=e.depsTail,s=n;for(;s;){const c=s.prevDep;s.version===-1?(s===n&&(n=c),removeSub(s),removeDep(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=c}e.deps=t,e.depsTail=n}function isDirty(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(refreshComputed(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function refreshComputed(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===globalVersion))return;e.globalVersion=globalVersion;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!isDirty(e)){e.flags&=-3;return}const n=activeSub,s=shouldTrack;activeSub=e,shouldTrack=!0;try{prepareDeps(e);const c=e.fn(e._value);(t.version===0||hasChanged(c,e._value))&&(e._value=c,t.version++)}catch(c){throw t.version++,c}finally{activeSub=n,shouldTrack=s,cleanupDeps(e),e.flags&=-3}}function removeSub(e,t=!1){const{dep:n,prevSub:s,nextSub:c}=e;if(s&&(s.nextSub=c,e.prevSub=void 0),c&&(c.prevSub=s,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=c),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)removeSub(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function removeDep(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function cleanupEffect(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=activeSub;activeSub=void 0;try{t()}finally{activeSub=n}}}let globalVersion=0;class Link{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==activeSub)n=this.activeLink=new Link(activeSub,this),activeSub.deps?(n.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=n,activeSub.depsTail=n):activeSub.deps=activeSub.depsTail=n,addSub(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=activeSub.depsTail,n.nextDep=void 0,activeSub.depsTail.nextDep=n,activeSub.depsTail=n,activeSub.deps===n&&(activeSub.deps=s)}return process.env.NODE_ENV!=="production"&&activeSub.onTrack&&activeSub.onTrack(extend({effect:activeSub},t)),n}trigger(t){this.version++,globalVersion++,this.notify(t)}notify(t){startBatch();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(extend({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{endBatch()}}}function addSub(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)addSub(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),MAP_KEY_ITERATE_KEY=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),ARRAY_ITERATE_KEY=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function track(e,t,n){if(shouldTrack&&activeSub){let s=targetMap.get(e);s||targetMap.set(e,s=new Map);let c=s.get(n);c||(s.set(n,c=new Dep),c.map=s,c.key=n),process.env.NODE_ENV!=="production"?c.track({target:e,type:t,key:n}):c.track()}}function trigger(e,t,n,s,c,l){const C=targetMap.get(e);if(!C){globalVersion++;return}const A=L=>{L&&(process.env.NODE_ENV!=="production"?L.trigger({target:e,type:t,key:n,newValue:s,oldValue:c,oldTarget:l}):L.trigger())};if(startBatch(),t==="clear")C.forEach(A);else{const L=isArray(e),W=L&&isIntegerKey(n);if(L&&n==="length"){const Y=Number(s);C.forEach((U,V)=>{(V==="length"||V===ARRAY_ITERATE_KEY||!isSymbol(V)&&V>=Y)&&A(U)})}else switch((n!==void 0||C.has(void 0))&&A(C.get(n)),W&&A(C.get(ARRAY_ITERATE_KEY)),t){case"add":L?W&&A(C.get("length")):(A(C.get(ITERATE_KEY)),isMap(e)&&A(C.get(MAP_KEY_ITERATE_KEY)));break;case"delete":L||(A(C.get(ITERATE_KEY)),isMap(e)&&A(C.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&A(C.get(ITERATE_KEY));break}}endBatch()}function reactiveReadArray(e){const t=toRaw(e);return t===e?t:(track(t,"iterate",ARRAY_ITERATE_KEY),isShallow(e)?t:t.map(toReactive))}function shallowReadArray(e){return track(e=toRaw(e),"iterate",ARRAY_ITERATE_KEY),e}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...e){return reactiveReadArray(this).concat(...e.map(t=>isArray(t)?reactiveReadArray(t):t))},entries(){return iterator(this,"entries",e=>(e[1]=toReactive(e[1]),e))},every(e,t){return apply$1(this,"every",e,t,void 0,arguments)},filter(e,t){return apply$1(this,"filter",e,t,n=>n.map(toReactive),arguments)},find(e,t){return apply$1(this,"find",e,t,toReactive,arguments)},findIndex(e,t){return apply$1(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return apply$1(this,"findLast",e,t,toReactive,arguments)},findLastIndex(e,t){return apply$1(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return apply$1(this,"forEach",e,t,void 0,arguments)},includes(...e){return searchProxy(this,"includes",e)},indexOf(...e){return searchProxy(this,"indexOf",e)},join(e){return reactiveReadArray(this).join(e)},lastIndexOf(...e){return searchProxy(this,"lastIndexOf",e)},map(e,t){return apply$1(this,"map",e,t,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...e){return noTracking(this,"push",e)},reduce(e,...t){return reduce(this,"reduce",e,t)},reduceRight(e,...t){return reduce(this,"reduceRight",e,t)},shift(){return noTracking(this,"shift")},some(e,t){return apply$1(this,"some",e,t,void 0,arguments)},splice(...e){return noTracking(this,"splice",e)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(e){return reactiveReadArray(this).toSorted(e)},toSpliced(...e){return reactiveReadArray(this).toSpliced(...e)},unshift(...e){return noTracking(this,"unshift",e)},values(){return iterator(this,"values",toReactive)}};function iterator(e,t,n){const s=shallowReadArray(e),c=s[t]();return s!==e&&!isShallow(e)&&(c._next=c.next,c.next=()=>{const l=c._next();return l.value&&(l.value=n(l.value)),l}),c}const arrayProto=Array.prototype;function apply$1(e,t,n,s,c,l){const C=shallowReadArray(e),A=C!==e&&!isShallow(e),L=C[t];if(L!==arrayProto[t]){const U=L.apply(e,l);return A?toReactive(U):U}let W=n;C!==e&&(A?W=function(U,V){return n.call(this,toReactive(U),V,e)}:n.length>2&&(W=function(U,V){return n.call(this,U,V,e)}));const Y=L.call(C,W,s);return A&&c?c(Y):Y}function reduce(e,t,n,s){const c=shallowReadArray(e);let l=n;return c!==e&&(isShallow(e)?n.length>3&&(l=function(C,A,L){return n.call(this,C,A,L,e)}):l=function(C,A,L){return n.call(this,C,toReactive(A),L,e)}),c[t](l,...s)}function searchProxy(e,t,n){const s=toRaw(e);track(s,"iterate",ARRAY_ITERATE_KEY);const c=s[t](...n);return(c===-1||c===!1)&&isProxy(n[0])?(n[0]=toRaw(n[0]),s[t](...n)):c}function noTracking(e,t,n=[]){pauseTracking(),startBatch();const s=toRaw(e)[t].apply(e,n);return endBatch(),resetTracking(),s}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(isSymbol));function hasOwnProperty(e){isSymbol(e)||(e=String(e));const t=toRaw(this);return track(t,"has",e),t.hasOwnProperty(e)}class BaseReactiveHandler{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const c=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!c;if(n==="__v_isReadonly")return c;if(n==="__v_isShallow")return l;if(n==="__v_raw")return s===(c?l?shallowReadonlyMap:readonlyMap:l?shallowReactiveMap:reactiveMap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const C=isArray(t);if(!c){let L;if(C&&(L=arrayInstrumentations[n]))return L;if(n==="hasOwnProperty")return hasOwnProperty}const A=Reflect.get(t,n,isRef(t)?t:s);return(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(c||track(t,"get",n),l)?A:isRef(A)?C&&isIntegerKey(n)?A:A.value:isObject(A)?c?readonly(A):reactive(A):A}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!1,t)}set(t,n,s,c){let l=t[n];if(!this._isShallow){const L=isReadonly(l);if(!isShallow(s)&&!isReadonly(s)&&(l=toRaw(l),s=toRaw(s)),!isArray(t)&&isRef(l)&&!isRef(s))return L?!1:(l.value=s,!0)}const C=isArray(t)&&isIntegerKey(n)?Number(n)<t.length:hasOwn(t,n),A=Reflect.set(t,n,s,isRef(t)?t:c);return t===toRaw(c)&&(C?hasChanged(s,l)&&trigger(t,"set",n,s,l):trigger(t,"add",n,s)),A}deleteProperty(t,n){const s=hasOwn(t,n),c=t[n],l=Reflect.deleteProperty(t,n);return l&&s&&trigger(t,"delete",n,void 0,c),l}has(t,n){const s=Reflect.has(t,n);return(!isSymbol(n)||!builtInSymbols.has(n))&&track(t,"has",n),s}ownKeys(t){return track(t,"iterate",isArray(t)?"length":ITERATE_KEY),Reflect.ownKeys(t)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&warn(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&warn(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function createIterableMethod(e,t,n){return function(...s){const c=this.__v_raw,l=toRaw(c),C=isMap(l),A=e==="entries"||e===Symbol.iterator&&C,L=e==="keys"&&C,W=c[e](...s),Y=n?toShallow:t?toReadonly:toReactive;return!t&&track(l,"iterate",L?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:U,done:V}=W.next();return V?{value:U,done:V}:{value:A?[Y(U[0]),Y(U[1])]:Y(U),done:V}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";warn(`${capitalize(e)} operation ${n}failed: target is readonly.`,toRaw(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function createInstrumentations(e,t){const n={get(c){const l=this.__v_raw,C=toRaw(l),A=toRaw(c);e||(hasChanged(c,A)&&track(C,"get",c),track(C,"get",A));const{has:L}=getProto(C),W=t?toShallow:e?toReadonly:toReactive;if(L.call(C,c))return W(l.get(c));if(L.call(C,A))return W(l.get(A));l!==C&&l.get(c)},get size(){const c=this.__v_raw;return!e&&track(toRaw(c),"iterate",ITERATE_KEY),Reflect.get(c,"size",c)},has(c){const l=this.__v_raw,C=toRaw(l),A=toRaw(c);return e||(hasChanged(c,A)&&track(C,"has",c),track(C,"has",A)),c===A?l.has(c):l.has(c)||l.has(A)},forEach(c,l){const C=this,A=C.__v_raw,L=toRaw(A),W=t?toShallow:e?toReadonly:toReactive;return!e&&track(L,"iterate",ITERATE_KEY),A.forEach((Y,U)=>c.call(l,W(Y),W(U),C))}};return extend(n,e?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(c){!t&&!isShallow(c)&&!isReadonly(c)&&(c=toRaw(c));const l=toRaw(this);return getProto(l).has.call(l,c)||(l.add(c),trigger(l,"add",c,c)),this},set(c,l){!t&&!isShallow(l)&&!isReadonly(l)&&(l=toRaw(l));const C=toRaw(this),{has:A,get:L}=getProto(C);let W=A.call(C,c);W?process.env.NODE_ENV!=="production"&&checkIdentityKeys(C,A,c):(c=toRaw(c),W=A.call(C,c));const Y=L.call(C,c);return C.set(c,l),W?hasChanged(l,Y)&&trigger(C,"set",c,l,Y):trigger(C,"add",c,l),this},delete(c){const l=toRaw(this),{has:C,get:A}=getProto(l);let L=C.call(l,c);L?process.env.NODE_ENV!=="production"&&checkIdentityKeys(l,C,c):(c=toRaw(c),L=C.call(l,c));const W=A?A.call(l,c):void 0,Y=l.delete(c);return L&&trigger(l,"delete",c,void 0,W),Y},clear(){const c=toRaw(this),l=c.size!==0,C=process.env.NODE_ENV!=="production"?isMap(c)?new Map(c):new Set(c):void 0,A=c.clear();return l&&trigger(c,"clear",void 0,void 0,C),A}}),["keys","values","entries",Symbol.iterator].forEach(c=>{n[c]=createIterableMethod(c,e,t)}),n}function createInstrumentationGetter(e,t){const n=createInstrumentations(e,t);return(s,c,l)=>c==="__v_isReactive"?!e:c==="__v_isReadonly"?e:c==="__v_raw"?s:Reflect.get(hasOwn(n,c)&&c in s?n:s,c,l)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)};function checkIdentityKeys(e,t,n){const s=toRaw(n);if(s!==n&&t.call(e,s)){const c=toRawType(e);warn(`Reactive ${c} contains both the raw and reactive versions of the same object${c==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,t,n,s,c){if(!isObject(e))return process.env.NODE_ENV!=="production"&&warn(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=c.get(e);if(l)return l;const C=getTargetType(e);if(C===0)return e;const A=new Proxy(e,C===2?s:n);return c.set(e,A),A}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return e?!!e.__v_raw:!1}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return!hasOwn(e,"__v_skip")&&Object.isExtensible(e)&&def(e,"__v_skip",!0),e}const toReactive=e=>isObject(e)?reactive(e):e,toReadonly=e=>isObject(e)?readonly(e):e;function isRef(e){return e?e.__v_isRef===!0:!1}function ref(e){return createRef(e,!1)}function shallowRef(e){return createRef(e,!0)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}class RefImpl{constructor(t,n){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:toRaw(t),this._value=n?t:toReactive(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||isShallow(t)||isReadonly(t);t=s?t:toRaw(t),hasChanged(t,n)&&(this._rawValue=t,this._value=s?t:toReactive(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,n)=>t==="__v_raw"?e:unref(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const c=e[t];return isRef(c)&&!isRef(n)?(c.value=n,!0):Reflect.set(e,t,n,s)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}class ComputedRefImpl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return refreshComputed(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&warn("Write operation failed: computed value is readonly")}}function computed$1(e,t,n=!1){let s,c;isFunction(e)?s=e:(s=e.get,c=e.set);const l=new ComputedRefImpl(s,c,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(l.onTrack=t.onTrack,l.onTrigger=t.onTrigger),l}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(e,t=!1,n=activeWatcher){if(n){let s=cleanupMap.get(n);s||cleanupMap.set(n,s=[]),s.push(e)}else process.env.NODE_ENV!=="production"&&!t&&warn("onWatcherCleanup() was called when there was no active watcher to associate with.")}function watch$1(e,t,n=EMPTY_OBJ){const{immediate:s,deep:c,once:l,scheduler:C,augmentJob:A,call:L}=n,W=oe=>{(n.onWarn||warn)("Invalid watch source: ",oe,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},Y=oe=>c?oe:isShallow(oe)||c===!1||c===0?traverse(oe,1):traverse(oe);let U,V,J,ce,se=!1,re=!1;if(isRef(e)?(V=()=>e.value,se=isShallow(e)):isReactive(e)?(V=()=>Y(e),se=!0):isArray(e)?(re=!0,se=e.some(oe=>isReactive(oe)||isShallow(oe)),V=()=>e.map(oe=>{if(isRef(oe))return oe.value;if(isReactive(oe))return Y(oe);if(isFunction(oe))return L?L(oe,2):oe();process.env.NODE_ENV!=="production"&&W(oe)})):isFunction(e)?t?V=L?()=>L(e,2):e:V=()=>{if(J){pauseTracking();try{J()}finally{resetTracking()}}const oe=activeWatcher;activeWatcher=U;try{return L?L(e,3,[ce]):e(ce)}finally{activeWatcher=oe}}:(V=NOOP,process.env.NODE_ENV!=="production"&&W(e)),t&&c){const oe=V,ne=c===!0?1/0:c;V=()=>traverse(oe(),ne)}const q=getCurrentScope(),Q=()=>{U.stop(),q&&q.active&&remove(q.effects,U)};if(l&&t){const oe=t;t=(...ne)=>{oe(...ne),Q()}}let ae=re?new Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const te=oe=>{if(!(!(U.flags&1)||!U.dirty&&!oe))if(t){const ne=U.run();if(c||se||(re?ne.some((ie,G)=>hasChanged(ie,ae[G])):hasChanged(ne,ae))){J&&J();const ie=activeWatcher;activeWatcher=U;try{const G=[ne,ae===INITIAL_WATCHER_VALUE?void 0:re&&ae[0]===INITIAL_WATCHER_VALUE?[]:ae,ce];L?L(t,3,G):t(...G),ae=ne}finally{activeWatcher=ie}}}else U.run()};return A&&A(te),U=new ReactiveEffect(V),U.scheduler=C?()=>C(te,!1):te,ce=oe=>onWatcherCleanup(oe,!1,U),J=U.onStop=()=>{const oe=cleanupMap.get(U);if(oe){if(L)L(oe,4);else for(const ne of oe)ne();cleanupMap.delete(U)}},process.env.NODE_ENV!=="production"&&(U.onTrack=n.onTrack,U.onTrigger=n.onTrigger),t?s?te(!0):ae=U.run():C?C(te.bind(null,!0),!0):U.run(),Q.pause=U.pause.bind(U),Q.resume=U.resume.bind(U),Q.stop=Q,Q}function traverse(e,t=1/0,n){if(t<=0||!isObject(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,isRef(e))traverse(e.value,t,n);else if(isArray(e))for(let s=0;s<e.length;s++)traverse(e[s],t,n);else if(isSet(e)||isMap(e))e.forEach(s=>{traverse(s,t,n)});else if(isPlainObject(e)){for(const s in e)traverse(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&traverse(e[s],t,n)}return e}/**
28
+ * @vue/runtime-core v3.5.13
50
29
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
51
30
  * @license MIT
52
- **/const Vt=[];function $c(e){Vt.push(e)}function qc(){Vt.pop()}let Rr=!1;function Ie(e,...t){if(Rr)return;Rr=!0,Yt();const n=Vt.length?Vt[Vt.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=Bc();if(r)Wn(r,n,11,[e+t.map(s=>{var a,o;return(o=(a=s.toString)==null?void 0:a.call(s))!=null?o:JSON.stringify(s)}).join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${ha(n,s.type)}>`).join(`
53
- `),i]);else{const s=[`[Vue warn]: ${e}`,...t];i.length&&s.push(`
54
- `,...Wc(i)),console.warn(...s)}Qt(),Rr=!1}function Bc(){let e=Vt[Vt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Wc(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
55
- `],...Hc(n))}),t}function Hc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${ha(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...jc(e.props),s]:[i+s]}function jc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Yi(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Yi(e,t,n){return ut(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qe(t)?(t=Yi(e,fe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=fe(t),n?t:[`${e}=`,t])}const Cr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Wn(e,t,n,r){try{return r?e(...r):e()}catch(i){kr(i,t,n)}}function Pr(e,t,n,r){if(Ce(e)){const i=Wn(e,t,n,r);return i&&ec(i)&&i.catch(s=>{kr(s,t,n)}),i}if(Te(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Pr(e[s],t,n,r));return i}else process.env.NODE_ENV!=="production"&&Ie(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function kr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||it;if(t){let o=t.parent;const u=t.proxy,p=process.env.NODE_ENV!=="production"?Cr[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const O=o.ec;if(O){for(let g=0;g<O.length;g++)if(O[g](e,u,p)===!1)return}o=o.parent}if(s){Yt(),Wn(s,null,10,[e,u,p]),Qt();return}}Gc(e,n,i,r,a)}function Gc(e,t,n,r=!0,i=!1){if(process.env.NODE_ENV!=="production"){const s=Cr[t];if(n&&$c(n),Ie(`Unhandled error${s?` during execution of ${s}`:""}`),n&&qc(),r)throw e;console.error(e)}else{if(i)throw e;console.error(e)}}const at=[];let vt=-1;const Zt=[];let wt=null,en=0;const Qi=Promise.resolve();let Hn=null;const Kc=100;function Yc(e){const t=Hn||Qi;return e?t.then(this?e.bind(this):e):t}function Qc(e){let t=vt+1,n=at.length;for(;t<n;){const r=t+n>>>1,i=at[r],s=hn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Fr(e){if(!(e.flags&1)){const t=hn(e),n=at[at.length-1];!n||!(e.flags&2)&&t>=hn(n)?at.push(e):at.splice(Qc(t),0,e),e.flags|=1,Xi()}}function Xi(){Hn||(Hn=Qi.then(zi))}function Ji(e){Te(e)?Zt.push(...e):wt&&e.id===-1?wt.splice(en+1,0,e):e.flags&1||(Zt.push(e),e.flags|=1),Xi()}function Xc(e){if(Zt.length){const t=[...new Set(Zt)].sort((n,r)=>hn(n)-hn(r));if(Zt.length=0,wt){wt.push(...t);return}for(wt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),en=0;en<wt.length;en++){const n=wt[en];process.env.NODE_ENV!=="production"&&Zi(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}wt=null,en=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zi(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>Zi(e,n):kt;try{for(vt=0;vt<at.length;vt++){const n=at[vt];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Wn(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;vt<at.length;vt++){const n=at[vt];n&&(n.flags&=-2)}vt=-1,at.length=0,Xc(e),Hn=null,(at.length||Zt.length)&&zi(e)}}function Zi(e,t){const n=e.get(t)||0;if(n>Kc){const r=t.i,i=r&&_a(r.type);return kr(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const Mr=new Map;process.env.NODE_ENV!=="production"&&(Mn().__VUE_HMR_RUNTIME__={createRecord:Vr(Jc),rerender:Vr(zc),reload:Vr(Zc)});const jn=new Map;function Jc(e,t){return jn.has(e)?!1:(jn.set(e,{initialDef:Gn(t),instances:new Set}),!0)}function Gn(e){return ga(e)?e.__vccOpts:e}function zc(e,t){const n=jn.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Gn(r.type).render=t),r.renderCache=[],r.update()}))}function Zc(e,t){const n=jn.get(e);if(!n)return;t=Gn(t),ea(n.initialDef,t);const r=[...n.instances];for(let i=0;i<r.length;i++){const s=r[i],a=Gn(s.type);let o=Mr.get(a);o||(a!==n.initialDef&&ea(a,t),Mr.set(a,o=new Set)),o.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(o.add(s),s.ceReload(t.styles),o.delete(s)):s.parent?Fr(()=>{s.parent.update(),o.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(a)}Ji(()=>{Mr.clear()})}function ea(e,t){Xe(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Vr(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let tn,Kn=[];function ta(e,t){var n,r;tn=e,tn?(tn.enabled=!0,Kn.forEach(({event:i,args:s})=>tn.emit(i,...s)),Kn=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{ta(s,t)}),setTimeout(()=>{tn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Kn=[])},3e3)):Kn=[]}let _t=null,eu=null;const tu=e=>e.__isTeleport;function na(e,t){e.shapeFlag&6&&e.component?(e.transition=t,na(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function xr(e,t){return Ce(e)?(()=>Xe({name:e.name},t,{setup:e}))():e}Mn().requestIdleCallback,Mn().cancelIdleCallback;function nu(e,t,n=xt,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{Yt();const o=ma(n),u=Pr(t,n,e,a);return o(),Qt(),u});return r?i.unshift(s):i.push(s),s}else if(process.env.NODE_ENV!=="production"){const i=rc(Cr[e].replace(/ hook$/,""));Ie(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ur=e=>(t,n=xt)=>{(!Nn||e==="sp")&&nu(e,(...r)=>t(...r),n)},ru=Ur("bm"),su=Ur("m"),iu=Ur("um"),au=Symbol.for("v-ndc"),$r=e=>e?wu(e)?Au(e):$r(e.parent):null,gn=Xe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Un(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Un(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Un(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Un(e.refs):e.refs,$parent:e=>$r(e.parent),$root:e=>$r(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?uu(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Fr(e.update)}),$nextTick:e=>e.n||(e.n=Yc.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Nu.bind(e):kt}),ou=e=>e==="_"||e==="$",qr=(e,t)=>e!==it&&!e.__isScriptSetup&&Re(e,t),lu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:o,appContext:u}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let p;if(t[0]!=="$"){const I=a[t];if(I!==void 0)switch(I){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(qr(r,t))return a[t]=1,r[t];if(i!==it&&Re(i,t))return a[t]=2,i[t];if((p=e.propsOptions[0])&&Re(p,t))return a[t]=3,s[t];if(n!==it&&Re(n,t))return a[t]=4,n[t];(!__VUE_OPTIONS_API__||cu)&&(a[t]=0)}}const O=gn[t];let g,N;if(O)return t==="$attrs"?(xe(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&xe(e,"get",t),O(e);if((g=o.__cssModules)&&(g=g[t]))return g;if(n!==it&&Re(n,t))return a[t]=4,n[t];if(N=u.config.globalProperties,Re(N,t))return N[t];process.env.NODE_ENV!=="production"&&_t&&(!ut(t)||t.indexOf("__v")!==0)&&(i!==it&&ou(t[0])&&Re(i,t)?Ie(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===_t&&Ie(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return qr(i,t)?(i[t]=n,!0):process.env.NODE_ENV!=="production"&&i.__isScriptSetup&&Re(i,t)?(Ie(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==it&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let o;return!!n[a]||e!==it&&Re(e,a)||qr(t,a)||(o=s[0])&&Re(o,a)||Re(r,a)||Re(gn,a)||Re(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(lu.ownKeys=e=>(Ie("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function ra(e){return Te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cu=!0;function uu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let u;return o?u=o:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(p=>Yn(u,p,a,!0)),Yn(u,t,a)),Ge(t)&&s.set(t,u),u}function Yn(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Yn(e,s,n,!0),i&&i.forEach(a=>Yn(e,a,n,!0));for(const a in t)if(r&&a==="expose")process.env.NODE_ENV!=="production"&&Ie('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=fu[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const fu={data:sa,props:aa,emits:aa,methods:En,computed:En,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:En,directives:En,watch:pu,provide:sa,inject:du};function sa(e,t){return t?e?function(){return Xe(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function du(e,t){return En(ia(e),ia(t))}function ia(e){if(Te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?Xe(Object.create(null),e,t):t}function aa(e,t){return e?Te(e)&&Te(t)?[...new Set([...e,...t])]:Xe(Object.create(null),ra(e),ra(t??{})):t}function pu(e,t){if(!e)return t;if(!t)return e;const n=Xe(Object.create(null),e);for(const r in t)n[r]=Ye(e[r],t[r]);return n}let mu=null;function oa(e,t,n=!1){const r=xt||_t;if(r||mu){let i=r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ce(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&Ie(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&Ie("inject() can only be used inside setup() or functional components.")}const _u={},la=e=>Object.getPrototypeOf(e)===_u,hu=yu,gu=Symbol.for("v-scx"),Eu=()=>{{const e=oa(gu);return e||process.env.NODE_ENV!=="production"&&Ie("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Br(e,t,n){return process.env.NODE_ENV!=="production"&&!Ce(t)&&Ie("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),ca(e,t,n)}function ca(e,t,n=it){const{immediate:r,deep:i,flush:s,once:a}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&Ie('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Ie('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&Ie('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const o=Xe({},n);process.env.NODE_ENV!=="production"&&(o.onWarn=Ie);const u=t&&r||!t&&s!=="post";let p;if(Nn){if(s==="sync"){const I=Eu();p=I.__watcherHandles||(I.__watcherHandles=[])}else if(!u){const I=()=>{};return I.stop=kt,I.resume=kt,I.pause=kt,I}}const O=xt;o.call=(I,H,M)=>Pr(I,O,H,M);let g=!1;s==="post"?o.scheduler=I=>{hu(I,O&&O.suspense)}:s!=="sync"&&(g=!0,o.scheduler=(I,H)=>{H?I():Fr(I)}),o.augmentJob=I=>{t&&(I.flags|=4),g&&(I.flags|=2,O&&(I.id=O.uid,I.i=O))};const N=Uc(e,t,o);return Nn&&(p?p.push(N):u&&N()),N}function Nu(e,t,n){const r=this.proxy,i=ut(e)?e.includes(".")?vu(r,e):()=>r[e]:e.bind(r,r);let s;Ce(t)?s=t:(s=t.handler,n=t);const a=ma(this),o=ca(i,s.bind(r),n);return a(),o}function vu(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function qf(){}const bu=e=>e.__isSuspense;function yu(e,t){t&&t.pendingBranch?Te(e)?t.effects.push(...e):t.effects.push(e):Ji(e)}const Qn=Symbol.for("v-fgt"),ua=Symbol.for("v-txt"),Ou=Symbol.for("v-cmt");let nn=null;function Wr(e){return e?e.__v_isVNode===!0:!1}const Tu=(...e)=>da(...e),fa=({key:e})=>e??null,Xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||qe(e)||Ce(e)?{i:_t,r:e,k:t,f:!!n}:e:null);function Iu(e,t=null,n=null,r=0,i=null,s=e===Qn?0:1,a=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fa(t),ref:t&&Xn(t),scopeId:eu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_t};return o?(Hr(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=ut(n)?8:16),process.env.NODE_ENV!=="production"&&u.key!==u.key&&Ie("VNode created with invalid key (NaN). VNode type:",u.type),!a&&nn&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&nn.push(u),u}const rn=process.env.NODE_ENV!=="production"?Tu:da;function da(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===au)&&(process.env.NODE_ENV!=="production"&&!e&&Ie(`Invalid vnode type when creating vnode: ${e}.`),e=Ou),Wr(e)){const o=Jn(e,t,!0);return n&&Hr(o,n),!s&&nn&&(o.shapeFlag&6?nn[nn.indexOf(e)]=o:nn.push(o)),o.patchFlag=-2,o}if(ga(e)&&(e=e.__vccOpts),t){t=Su(t);let{class:o,style:u}=t;o&&!ut(o)&&(t.class=_r(o)),Ge(u)&&($n(u)&&!Te(u)&&(u=Xe({},u)),t.style=mr(u))}const a=ut(e)?1:bu(e)?128:tu(e)?64:Ge(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&$n(e)&&(e=fe(e),Ie("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
56
- Component that was made reactive: `,e)),Iu(e,t,n,r,i,a,s,!0)}function Su(e){return e?$n(e)||la(e)?Xe({},e):e:null}function Jn(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:a,children:o,transition:u}=e,p=t?Du(i||{},t):i,O={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&fa(p),ref:t&&t.ref?n&&s?Te(s)?s.concat(Xn(t)):[s,Xn(t)]:Xn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&a===-1&&Te(o)?o.map(pa):o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qn?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jn(e.ssContent),ssFallback:e.ssFallback&&Jn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&r&&na(O,u.clone(O)),O}function pa(e){const t=Jn(e);return Te(e.children)&&(t.children=e.children.map(pa)),t}function Lu(e=" ",t=0){return rn(ua,null,e,t)}function Hr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Te(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Hr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!la(t)?t._ctx=_t:i===3&&_t&&(_t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:_t},n=32):(t=String(t),r&64?(n=16,t=[Lu(t)]):n=8);e.children=t,e.shapeFlag|=n}function Du(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=_r([t.class,r.class]));else if(i==="style")t.style=mr([t.style,r.style]);else if(Xl(i)){const s=t[i],a=r[i];a&&s!==a&&!(Te(s)&&s.includes(a))&&(t[i]=s?[].concat(s,a):a)}else i!==""&&(t[i]=r[i])}return t}let xt=null;const sn=()=>xt||_t;let jr;{const e=Mn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(a=>a(s)):i[0](s)}};jr=t("__VUE_INSTANCE_SETTERS__",n=>xt=n),t("__VUE_SSR_SETTERS__",n=>Nn=n)}const ma=e=>{const t=xt;return jr(e),e.scope.on(),()=>{e.scope.off(),jr(t)}};function wu(e){return e.vnode.shapeFlag&4}let Nn=!1;process.env.NODE_ENV;function Au(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fc(Rc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}const Ru=/(?:^|[-_])(\w)/g,Cu=e=>e.replace(Ru,t=>t.toUpperCase()).replace(/[-_]/g,"");function _a(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function ha(e,t,n=!1){let r=_a(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=s=>{for(const a in s)if(s[a]===t)return a};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Cu(r):n?"App":"Anonymous"}function ga(e){return Ce(e)&&"__vccOpts"in e}const Qe=(e,t)=>{const n=Vc(e,t,Nn);if(process.env.NODE_ENV!=="production"){const r=sn();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ea(e,t,n){const r=arguments.length;return r===2?Ge(t)&&!Te(t)?Wr(t)?rn(e,null,[t]):rn(e,t):rn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wr(n)&&(n=[n]),rn(e,t,n))}function Pu(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},i={__vue_custom_formatter:!0,header(g){if(!Ge(g))return null;if(g.__isVue)return["div",e,"VueInstance"];if(qe(g)){Yt();const N=g.value;return Qt(),["div",{},["span",e,O(g)],"<",o(N),">"]}else{if(Jt(g))return["div",{},["span",e,ze(g)?"ShallowReactive":"Reactive"],"<",o(g),`>${Nt(g)?" (readonly)":""}`];if(Nt(g))return["div",{},["span",e,ze(g)?"ShallowReadonly":"Readonly"],"<",o(g),">"]}return null},hasBody(g){return g&&g.__isVue},body(g){if(g&&g.__isVue)return["div",{},...s(g.$)]}};function s(g){const N=[];g.type.props&&g.props&&N.push(a("props",fe(g.props))),g.setupState!==it&&N.push(a("setup",g.setupState)),g.data!==it&&N.push(a("data",fe(g.data)));const I=u(g,"computed");I&&N.push(a("computed",I));const H=u(g,"inject");return H&&N.push(a("injected",H)),N.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:g}]]),N}function a(g,N){return N=Xe({},N),Object.keys(N).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},g],["div",{style:"padding-left:1.25em"},...Object.keys(N).map(I=>["div",{},["span",r,I+": "],o(N[I],!1)])]]:["span",{}]}function o(g,N=!0){return typeof g=="number"?["span",t,g]:typeof g=="string"?["span",n,JSON.stringify(g)]:typeof g=="boolean"?["span",r,g]:Ge(g)?["object",{object:N?fe(g):g}]:["span",n,String(g)]}function u(g,N){const I=g.type;if(Ce(I))return;const H={};for(const M in g.ctx)p(I,M,N)&&(H[M]=g.ctx[M]);return H}function p(g,N,I){const H=g[I];if(Te(H)&&H.includes(N)||Ge(H)&&N in H||g.extends&&p(g.extends,N,I)||g.mixins&&g.mixins.some(M=>p(M,N,I)))return!0}function O(g){return ze(g)?"ShallowRef":g.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
57
- * vue v3.5.17
31
+ **/const stack=[];function pushWarningContext(e){stack.push(e)}function popWarningContext(){stack.pop()}let isWarning=!1;function warn$1(e,...t){if(isWarning)return;isWarning=!0,pauseTracking();const n=stack.length?stack[stack.length-1].component:null,s=n&&n.appContext.config.warnHandler,c=getComponentTrace();if(s)callWithErrorHandling(s,n,11,[e+t.map(l=>{var C,A;return(A=(C=l.toString)==null?void 0:C.call(l))!=null?A:JSON.stringify(l)}).join(""),n&&n.proxy,c.map(({vnode:l})=>`at <${formatComponentName(n,l.type)}>`).join(`
32
+ `),c]);else{const l=[`[Vue warn]: ${e}`,...t];c.length&&l.push(`
33
+ `,...formatTrace(c)),console.warn(...l)}resetTracking(),isWarning=!1}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function formatTrace(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
34
+ `],...formatTraceEntry(n))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,c=` at <${formatComponentName(e.component,e.type,s)}`,l=">"+n;return e.props?[c,...formatProps(e.props),l]:[c+l]}function formatProps(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...formatProp(s,e[s]))}),n.length>3&&t.push(" ..."),t}function formatProp(e,t,n){return isString(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):isFunction(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),n?t:[`${e}=`,t])}const ErrorTypeStrings$1={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function callWithErrorHandling(e,t,n,s){try{return s?e(...s):e()}catch(c){handleError(c,t,n)}}function callWithAsyncErrorHandling(e,t,n,s){if(isFunction(e)){const c=callWithErrorHandling(e,t,n,s);return c&&isPromise(c)&&c.catch(l=>{handleError(l,t,n)}),c}if(isArray(e)){const c=[];for(let l=0;l<e.length;l++)c.push(callWithAsyncErrorHandling(e[l],t,n,s));return c}else process.env.NODE_ENV!=="production"&&warn$1(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function handleError(e,t,n,s=!0){const c=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:C}=t&&t.appContext.config||EMPTY_OBJ;if(t){let A=t.parent;const L=t.proxy,W=process.env.NODE_ENV!=="production"?ErrorTypeStrings$1[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;A;){const Y=A.ec;if(Y){for(let U=0;U<Y.length;U++)if(Y[U](e,L,W)===!1)return}A=A.parent}if(l){pauseTracking(),callWithErrorHandling(l,null,10,[e,L,W]),resetTracking();return}}logError(e,n,c,s,C)}function logError(e,t,n,s=!0,c=!1){if(process.env.NODE_ENV!=="production"){const l=ErrorTypeStrings$1[t];if(n&&pushWarningContext(n),warn$1(`Unhandled error${l?` during execution of ${l}`:""}`),n&&popWarningContext(),s)throw e;console.error(e)}else{if(c)throw e;console.error(e)}}const queue=[];let flushIndex=-1;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;const RECURSION_LIMIT=100;function nextTick(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,n=queue.length;for(;t<n;){const s=t+n>>>1,c=queue[s],l=getId(c);l<e||l===e&&c.flags&2?t=s+1:n=s}return t}function queueJob(e){if(!(e.flags&1)){const t=getId(e),n=queue[queue.length-1];!n||!(e.flags&2)&&t>=getId(n)?queue.push(e):queue.splice(findInsertionIndex(t),0,e),e.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(e){isArray(e)?pendingPostFlushCbs.push(...e):activePostFlushCbs&&e.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,e):e.flags&1||(pendingPostFlushCbs.push(e),e.flags|=1),queueFlush()}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const t=[...new Set(pendingPostFlushCbs)].sort((n,s)=>getId(n)-getId(s));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const n=activePostFlushCbs[postFlushIndex];process.env.NODE_ENV!=="production"&&checkRecursiveUpdates(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>e.id==null?e.flags&2?-1:1/0:e.id;function flushJobs(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>checkRecursiveUpdates(e,n):NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),callWithErrorHandling(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];n&&(n.flags&=-2)}flushIndex=-1,queue.length=0,flushPostFlushCbs(e),currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs(e)}}function checkRecursiveUpdates(e,t){const n=e.get(t)||0;if(n>RECURSION_LIMIT){const s=t.i,c=s&&getComponentName(s.type);return handleError(`Maximum recursive updates exceeded${c?` in component <${c}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const hmrDirtyComponents=new Map;process.env.NODE_ENV!=="production"&&(getGlobalThis().__VUE_HMR_RUNTIME__={createRecord:tryWrap(createRecord),rerender:tryWrap(rerender),reload:tryWrap(reload)});const map=new Map;function createRecord(e,t){return map.has(e)?!1:(map.set(e,{initialDef:normalizeClassComponent(t),instances:new Set}),!0)}function normalizeClassComponent(e){return isClassComponent(e)?e.__vccOpts:e}function rerender(e,t){const n=map.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,normalizeClassComponent(s.type).render=t),s.renderCache=[],s.update()}))}function reload(e,t){const n=map.get(e);if(!n)return;t=normalizeClassComponent(t),updateComponentDef(n.initialDef,t);const s=[...n.instances];for(let c=0;c<s.length;c++){const l=s[c],C=normalizeClassComponent(l.type);let A=hmrDirtyComponents.get(C);A||(C!==n.initialDef&&updateComponentDef(C,t),hmrDirtyComponents.set(C,A=new Set)),A.add(l),l.appContext.propsCache.delete(l.type),l.appContext.emitsCache.delete(l.type),l.appContext.optionsCache.delete(l.type),l.ceReload?(A.add(l),l.ceReload(t.styles),A.delete(l)):l.parent?queueJob(()=>{l.parent.update(),A.delete(l)}):l.appContext.reload?l.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),l.root.ce&&l!==l.root&&l.root.ce._removeChildStyle(C)}queuePostFlushCb(()=>{hmrDirtyComponents.clear()})}function updateComponentDef(e,t){extend(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function tryWrap(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let devtools$1,buffer=[];function setDevtoolsHook$1(e,t){var n,s;devtools$1=e,devtools$1?(devtools$1.enabled=!0,buffer.forEach(({event:c,args:l})=>devtools$1.emit(c,...l)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{setDevtoolsHook$1(l,t)}),setTimeout(()=>{devtools$1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}let currentRenderingInstance=null,currentScopeId=null;const isTeleport=e=>e.__isTeleport;function setTransitionHooks(e,t){e.shapeFlag&6&&e.component?(e.transition=t,setTransitionHooks(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function defineComponent(e,t){return isFunction(e)?(()=>extend({name:e.name},t,{setup:e}))():e}getGlobalThis().requestIdleCallback,getGlobalThis().cancelIdleCallback;function injectHook(e,t,n=currentInstance,s=!1){if(n){const c=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...C)=>{pauseTracking();const A=setCurrentInstance(n),L=callWithAsyncErrorHandling(t,n,e,C);return A(),resetTracking(),L});return s?c.unshift(l):c.push(l),l}else if(process.env.NODE_ENV!=="production"){const c=toHandlerKey(ErrorTypeStrings$1[e].replace(/ hook$/,""));warn$1(`${c} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const createHook=e=>(t,n=currentInstance)=>{(!isInSSRComponentSetup||e==="sp")&&injectHook(e,(...s)=>t(...s),n)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onUnmounted=createHook("um"),NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc"),getPublicInstance=e=>e?isStatefulComponent(e)?getComponentPublicInstance(e):getPublicInstance(e.parent):null,publicPropertiesMap=extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.refs):e.refs,$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?resolveMergedOptions(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{queueJob(e.update)}),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?instanceWatch.bind(e):NOOP}),isReservedPrefix=e=>e==="_"||e==="$",hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn(e,t),PublicInstanceProxyHandlers={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:c,props:l,accessCache:C,type:A,appContext:L}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let W;if(t[0]!=="$"){const J=C[t];if(J!==void 0)switch(J){case 1:return s[t];case 2:return c[t];case 4:return n[t];case 3:return l[t]}else{if(hasSetupBinding(s,t))return C[t]=1,s[t];if(c!==EMPTY_OBJ&&hasOwn(c,t))return C[t]=2,c[t];if((W=e.propsOptions[0])&&hasOwn(W,t))return C[t]=3,l[t];if(n!==EMPTY_OBJ&&hasOwn(n,t))return C[t]=4,n[t];(!__VUE_OPTIONS_API__||shouldCacheAccess)&&(C[t]=0)}}const Y=publicPropertiesMap[t];let U,V;if(Y)return t==="$attrs"?(track(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&track(e,"get",t),Y(e);if((U=A.__cssModules)&&(U=U[t]))return U;if(n!==EMPTY_OBJ&&hasOwn(n,t))return C[t]=4,n[t];if(V=L.config.globalProperties,hasOwn(V,t))return V[t];process.env.NODE_ENV!=="production"&&currentRenderingInstance&&(!isString(t)||t.indexOf("__v")!==0)&&(c!==EMPTY_OBJ&&isReservedPrefix(t[0])&&hasOwn(c,t)?warn$1(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===currentRenderingInstance&&warn$1(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:c,ctx:l}=e;return hasSetupBinding(c,t)?(c[t]=n,!0):process.env.NODE_ENV!=="production"&&c.__isScriptSetup&&hasOwn(c,t)?(warn$1(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==EMPTY_OBJ&&hasOwn(s,t)?(s[t]=n,!0):hasOwn(e.props,t)?(process.env.NODE_ENV!=="production"&&warn$1(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&warn$1(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(l,t,{enumerable:!0,configurable:!0,value:n}):l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:c,propsOptions:l}},C){let A;return!!n[C]||e!==EMPTY_OBJ&&hasOwn(e,C)||hasSetupBinding(t,C)||(A=l[0])&&hasOwn(A,C)||hasOwn(s,C)||hasOwn(publicPropertiesMap,C)||hasOwn(c.config.globalProperties,C)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:hasOwn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(PublicInstanceProxyHandlers.ownKeys=e=>(warn$1("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function normalizePropsOrEmits(e){return isArray(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let shouldCacheAccess=!0;function resolveMergedOptions(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:c,optionsCache:l,config:{optionMergeStrategies:C}}=e.appContext,A=l.get(t);let L;return A?L=A:!c.length&&!n&&!s?L=t:(L={},c.length&&c.forEach(W=>mergeOptions(L,W,C,!0)),mergeOptions(L,t,C)),isObject(t)&&l.set(t,L),L}function mergeOptions(e,t,n,s=!1){const{mixins:c,extends:l}=t;l&&mergeOptions(e,l,n,!0),c&&c.forEach(C=>mergeOptions(e,C,n,!0));for(const C in t)if(s&&C==="expose")process.env.NODE_ENV!=="production"&&warn$1('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const A=internalOptionMergeStrats[C]||n&&n[C];e[C]=A?A(e[C],t[C]):t[C]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend(Object.create(null),e,t):t}function mergeEmitsOrPropsOptions(e,t){return e?isArray(e)&&isArray(t)?[...new Set([...e,...t])]:extend(Object.create(null),normalizePropsOrEmits(e),normalizePropsOrEmits(t??{})):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;const n=extend(Object.create(null),e);for(const s in t)n[s]=mergeAsArray(e[s],t[s]);return n}let currentApp=null;function inject(e,t,n=!1){const s=currentInstance||currentRenderingInstance;if(s||currentApp){const c=currentApp?currentApp._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(c&&e in c)return c[e];if(arguments.length>1)return n&&isFunction(t)?t.call(s&&s.proxy):t;process.env.NODE_ENV!=="production"&&warn$1(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&warn$1("inject() can only be used inside setup() or functional components.")}const internalObjectProto={},isInternalObject=e=>Object.getPrototypeOf(e)===internalObjectProto,queuePostRenderEffect=queueEffectWithSuspense,ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>{{const e=inject(ssrContextKey);return e||process.env.NODE_ENV!=="production"&&warn$1("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function watch(e,t,n){return process.env.NODE_ENV!=="production"&&!isFunction(t)&&warn$1("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),doWatch(e,t,n)}function doWatch(e,t,n=EMPTY_OBJ){const{immediate:s,deep:c,flush:l,once:C}=n;process.env.NODE_ENV!=="production"&&!t&&(s!==void 0&&warn$1('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),c!==void 0&&warn$1('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),C!==void 0&&warn$1('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const A=extend({},n);process.env.NODE_ENV!=="production"&&(A.onWarn=warn$1);const L=t&&s||!t&&l!=="post";let W;if(isInSSRComponentSetup){if(l==="sync"){const J=useSSRContext();W=J.__watcherHandles||(J.__watcherHandles=[])}else if(!L){const J=()=>{};return J.stop=NOOP,J.resume=NOOP,J.pause=NOOP,J}}const Y=currentInstance;A.call=(J,ce,se)=>callWithAsyncErrorHandling(J,Y,ce,se);let U=!1;l==="post"?A.scheduler=J=>{queuePostRenderEffect(J,Y&&Y.suspense)}:l!=="sync"&&(U=!0,A.scheduler=(J,ce)=>{ce?J():queueJob(J)}),A.augmentJob=J=>{t&&(J.flags|=4),U&&(J.flags|=2,Y&&(J.id=Y.uid,J.i=Y))};const V=watch$1(e,t,A);return isInSSRComponentSetup&&(W?W.push(V):L&&V()),V}function instanceWatch(e,t,n){const s=this.proxy,c=isString(e)?e.includes(".")?createPathGetter(s,e):()=>s[e]:e.bind(s,s);let l;isFunction(t)?l=t:(l=t.handler,n=t);const C=setCurrentInstance(this),A=doWatch(c,l.bind(s),n);return C(),A}function createPathGetter(e,t){const n=t.split(".");return()=>{let s=e;for(let c=0;c<n.length&&s;c++)s=s[n[c]];return s}}function markAttrsAccessed(){}const isSuspense=e=>e.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt");let currentBlock=null;function isVNode$1(e){return e?e.__v_isVNode===!0:!1}const createVNodeWithArgsTransform=(...e)=>_createVNode(...e),normalizeKey=({key:e})=>e??null,normalizeRef=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?isString(e)||isRef(e)||isFunction(e)?{i:currentRenderingInstance,r:e,k:t,f:!!n}:e:null);function createBaseVNode(e,t=null,n=null,s=0,c=null,l=e===Fragment?0:1,C=!1,A=!1){const L={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:c,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return A?(normalizeChildren(L,n),l&128&&e.normalize(L)):n&&(L.shapeFlag|=isString(n)?8:16),process.env.NODE_ENV!=="production"&&L.key!==L.key&&warn$1("VNode created with invalid key (NaN). VNode type:",L.type),!C&&currentBlock&&(L.patchFlag>0||l&6)&&L.patchFlag!==32&&currentBlock.push(L),L}const createVNode=process.env.NODE_ENV!=="production"?createVNodeWithArgsTransform:_createVNode;function _createVNode(e,t=null,n=null,s=0,c=null,l=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(process.env.NODE_ENV!=="production"&&!e&&warn$1(`Invalid vnode type when creating vnode: ${e}.`),e=Comment),isVNode$1(e)){const A=cloneVNode(e,t,!0);return n&&normalizeChildren(A,n),!l&&currentBlock&&(A.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=A:currentBlock.push(A)),A.patchFlag=-2,A}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:A,style:L}=t;A&&!isString(A)&&(t.class=normalizeClass(A)),isObject(L)&&(isProxy(L)&&!isArray(L)&&(L=extend({},L)),t.style=normalizeStyle(L))}const C=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject(e)?4:isFunction(e)?2:0;return process.env.NODE_ENV!=="production"&&C&4&&isProxy(e)&&(e=toRaw(e),warn$1("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
35
+ Component that was made reactive: `,e)),createBaseVNode(e,t,n,s,c,C,l,!0)}function guardReactiveProps(e){return e?isProxy(e)||isInternalObject(e)?extend({},e):e:null}function cloneVNode(e,t,n=!1,s=!1){const{props:c,ref:l,patchFlag:C,children:A,transition:L}=e,W=t?mergeProps(c||{},t):c,Y={__v_isVNode:!0,__v_skip:!0,type:e.type,props:W,key:W&&normalizeKey(W),ref:t&&t.ref?n&&l?isArray(l)?l.concat(normalizeRef(t)):[l,normalizeRef(t)]:normalizeRef(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&C===-1&&isArray(A)?A.map(deepCloneVNode):A,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?C===-1?16:C|16:C,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:L,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return L&&s&&setTransitionHooks(Y,L.clone(Y)),Y}function deepCloneVNode(e){const t=cloneVNode(e);return isArray(e.children)&&(t.children=e.children.map(deepCloneVNode)),t}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function normalizeChildren(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(isArray(t))n=16;else if(typeof t=="object")if(s&65){const c=t.default;c&&(c._c&&(c._d=!1),normalizeChildren(e,c()),c._c&&(c._d=!0));return}else{n=32;const c=t._;!c&&!isInternalObject(t)?t._ctx=currentRenderingInstance:c===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},n=32):(t=String(t),s&64?(n=16,t=[createTextVNode(t)]):n=8);e.children=t,e.shapeFlag|=n}function mergeProps(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const c in s)if(c==="class")t.class!==s.class&&(t.class=normalizeClass([t.class,s.class]));else if(c==="style")t.style=normalizeStyle([t.style,s.style]);else if(isOn(c)){const l=t[c],C=s[c];C&&l!==C&&!(isArray(l)&&l.includes(C))&&(t[c]=l?[].concat(l,C):C)}else c!==""&&(t[c]=s[c])}return t}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance;{const e=getGlobalThis(),t=(n,s)=>{let c;return(c=e[n])||(c=e[n]=[]),c.push(s),l=>{c.length>1?c.forEach(C=>C(l)):c[0](l)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",n=>currentInstance=n),t("__VUE_SSR_SETTERS__",n=>isInSSRComponentSetup=n)}const setCurrentInstance=e=>{const t=currentInstance;return internalSetCurrentInstance(e),e.scope.on(),()=>{e.scope.off(),internalSetCurrentInstance(t)}};function isStatefulComponent(e){return e.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;process.env.NODE_ENV;function getComponentPublicInstance(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](e)},has(t,n){return n in t||n in publicPropertiesMap}})):e.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e,t=!0){return isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function formatComponentName(e,t,n=!1){let s=getComponentName(t);if(!s&&t.__file){const c=t.__file.match(/([^/\\]+)\.\w+$/);c&&(s=c[1])}if(!s&&e&&e.parent){const c=l=>{for(const C in l)if(l[C]===t)return C};s=c(e.components||e.parent.type.components)||c(e.appContext.components)}return s?classify(s):n?"App":"Anonymous"}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}const computed=(e,t)=>{const n=computed$1(e,t,isInSSRComponentSetup);if(process.env.NODE_ENV!=="production"){const s=getCurrentInstance();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function h(e,t,n){const s=arguments.length;return s===2?isObject(t)&&!isArray(t)?isVNode$1(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&isVNode$1(n)&&(n=[n]),createVNode(e,t,n))}function initCustomFormatter(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},c={__vue_custom_formatter:!0,header(U){return isObject(U)?U.__isVue?["div",e,"VueInstance"]:isRef(U)?["div",{},["span",e,Y(U)],"<",A("_value"in U?U._value:U),">"]:isReactive(U)?["div",{},["span",e,isShallow(U)?"ShallowReactive":"Reactive"],"<",A(U),`>${isReadonly(U)?" (readonly)":""}`]:isReadonly(U)?["div",{},["span",e,isShallow(U)?"ShallowReadonly":"Readonly"],"<",A(U),">"]:null:null},hasBody(U){return U&&U.__isVue},body(U){if(U&&U.__isVue)return["div",{},...l(U.$)]}};function l(U){const V=[];U.type.props&&U.props&&V.push(C("props",toRaw(U.props))),U.setupState!==EMPTY_OBJ&&V.push(C("setup",U.setupState)),U.data!==EMPTY_OBJ&&V.push(C("data",toRaw(U.data)));const J=L(U,"computed");J&&V.push(C("computed",J));const ce=L(U,"inject");return ce&&V.push(C("injected",ce)),V.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:U}]]),V}function C(U,V){return V=extend({},V),Object.keys(V).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},U],["div",{style:"padding-left:1.25em"},...Object.keys(V).map(J=>["div",{},["span",s,J+": "],A(V[J],!1)])]]:["span",{}]}function A(U,V=!0){return typeof U=="number"?["span",t,U]:typeof U=="string"?["span",n,JSON.stringify(U)]:typeof U=="boolean"?["span",s,U]:isObject(U)?["object",{object:V?toRaw(U):U}]:["span",n,String(U)]}function L(U,V){const J=U.type;if(isFunction(J))return;const ce={};for(const se in U.ctx)W(J,se,V)&&(ce[se]=U.ctx[se]);return ce}function W(U,V,J){const ce=U[J];if(isArray(ce)&&ce.includes(V)||isObject(ce)&&V in ce||U.extends&&W(U.extends,V,J)||U.mixins&&U.mixins.some(se=>W(se,V,J)))return!0}function Y(U){return isShallow(U)?"ShallowRef":U.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(c):window.devtoolsFormatters=[c]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
36
+ * vue v3.5.13
58
37
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
59
38
  * @license MIT
60
- **/function ku(){Pu()}process.env.NODE_ENV!=="production"&&ku();function Fu(){return Na().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Na(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Mu=typeof Proxy=="function",Vu="devtools-plugin:setup",xu="plugin:settings:set";let an,Gr;function Uu(){var e;return an!==void 0||(typeof window<"u"&&window.performance?(an=!0,Gr=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(an=!0,Gr=globalThis.perf_hooks.performance):an=!1),an}function $u(){return Uu()?Gr.now():Date.now()}class qu{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const o=t.settings[a];r[a]=o.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const a=localStorage.getItem(i),o=JSON.parse(a);Object.assign(s,o)}catch{}this.fallbacks={getSettings(){return s},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}s=a},now(){return $u()}},n&&n.on(xu,(a,o)=>{a===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(a,o)=>this.target?this.target.on[o]:(...u)=>{this.onQueue.push({method:o,args:u})}}),this.proxiedTarget=new Proxy({},{get:(a,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...u)=>(this.targetQueue.push({method:o,args:u,resolve:()=>{}}),this.fallbacks[o](...u)):(...u)=>new Promise(p=>{this.targetQueue.push({method:o,args:u,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Bu(e,t){const n=e,r=Na(),i=Fu(),s=Mu&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(Vu,e,t);else{const a=s?new qu(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
61
- * vue-i18n v9.14.4
62
- * (c) 2025 kazuya kawaguchi
39
+ **/function initDev(){initCustomFormatter()}process.env.NODE_ENV!=="production"&&initDev();function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const isProxyAvailable=typeof Proxy=="function",HOOK_SETUP="devtools-plugin:setup",HOOK_PLUGIN_SETTINGS_SET="plugin:settings:set";let supported,perf;function isPerformanceSupported(){var e;return supported!==void 0||(typeof window<"u"&&window.performance?(supported=!0,perf=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(supported=!0,perf=globalThis.perf_hooks.performance):supported=!1),supported}function now(){return isPerformanceSupported()?perf.now():Date.now()}class ApiProxy{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const C in t.settings){const A=t.settings[C];s[C]=A.defaultValue}const c=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},s);try{const C=localStorage.getItem(c),A=JSON.parse(C);Object.assign(l,A)}catch{}this.fallbacks={getSettings(){return l},setSettings(C){try{localStorage.setItem(c,JSON.stringify(C))}catch{}l=C},now(){return now()}},n&&n.on(HOOK_PLUGIN_SETTINGS_SET,(C,A)=>{C===this.plugin.id&&this.fallbacks.setSettings(A)}),this.proxiedOn=new Proxy({},{get:(C,A)=>this.target?this.target.on[A]:(...L)=>{this.onQueue.push({method:A,args:L})}}),this.proxiedTarget=new Proxy({},{get:(C,A)=>this.target?this.target[A]:A==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(A)?(...L)=>(this.targetQueue.push({method:A,args:L,resolve:()=>{}}),this.fallbacks[A](...L)):(...L)=>new Promise(W=>{this.targetQueue.push({method:A,args:L,resolve:W})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function setupDevtoolsPlugin(e,t){const n=e,s=getTarget(),c=getDevtoolsGlobalHook(),l=isProxyAvailable&&n.enableEarlyProxy;if(c&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))c.emit(HOOK_SETUP,e,t);else{const C=l?new ApiProxy(n,c):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:C}),C&&t(C.proxiedTarget)}}/*!
40
+ * vue-i18n v9.10.2
41
+ * (c) 2024 kazuya kawaguchi
63
42
  * Released under the MIT License.
64
- */const Wu="9.14.4";function Hu(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const va=je.__EXTEND_POINT__,bt=Sn(va),Se={FALLBACK_TO_ROOT:va,NOT_SUPPORTED_PRESERVE:bt(),NOT_SUPPORTED_FORMATTER:bt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:bt(),NOT_SUPPORTED_GET_CHOICE_INDEX:bt(),COMPONENT_NAME_LEGACY_COMPATIBLE:bt(),NOT_FOUND_PARENT_SCOPE:bt(),IGNORE_OBJ_FLATTEN:bt(),NOTICE_DROP_ALLOW_COMPOSITION:bt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:bt()},ju={[Se.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Se.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Se.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Se.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Se.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Se.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Se.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Se.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ze(e,...t){return er(ju[e],...t)}const ba=Ve.__EXTEND_POINT__,et=Sn(ba),de={UNEXPECTED_RETURN_TYPE:ba,INVALID_ARGUMENT:et(),MUST_BE_CALL_SETUP_TOP:et(),NOT_INSTALLED:et(),NOT_AVAILABLE_IN_LEGACY_MODE:et(),REQUIRED_VALUE:et(),INVALID_VALUE:et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:et(),NOT_INSTALLED_WITH_PROVIDE:et(),UNEXPECTED_ERROR:et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:et(),BRIDGE_SUPPORT_VUE_2_ONLY:et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:et(),__EXTEND_POINT__:et()};function ke(e,...t){return Bt(e,null,process.env.NODE_ENV!=="production"?{messages:Gu,args:t}:void 0)}const Gu={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Kr=dt("__translateVNode"),Yr=dt("__datetimeParts"),Qr=dt("__numberParts"),Ut=dt("__enableEmitter"),vn=dt("__disableEmitter"),ya=dt("__setPluralRules"),Oa=dt("__injectWithOption"),Xr=dt("__dispose");function bn(e){if(!ue(e)||rt(e))return e;for(const t in e)if(lt(e,t))if(!t.includes("."))ue(e[t])&&bn(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in i||(i[n[a]]=Ne()),!ue(i[n[a]])){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.IGNORE_OBJ_FLATTEN,{key:n[a]})),s=!0;break}i=i[n[a]]}if(s||(rt(i)?Bs.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!rt(i)){const a=i[n[r]];ue(a)&&bn(a)}}return e}function zn(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,a=ae(n)?n:be(r)?Ne():{[e]:Ne()};if(be(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:u,resource:p}=o;u?(a[u]=a[u]||Ne(),Dn(p,a[u])):Dn(p,a)}else G(o)&&Dn(JSON.parse(o),a)}),i==null&&s)for(const o in a)lt(a,o)&&bn(a[o]);return a}function Ta(e){return e.type}function Ia(e,t,n){let r=ue(t.messages)?t.messages:Ne();"__i18nGlobal"in n&&(r=zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ue(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ue(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Sa(e){return rn(ua,null,e,0)}const La="__INTLIFY_META__",Da=()=>[],Ku=()=>!1;let wa=0;function Aa(e){return(t,n,r,i)=>e(n,r,sn()||void 0,i)}const Yu=()=>{const e=sn();let t=null;return e&&(t=Ta(e)[La])?{[La]:t}:null};function Jr(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,a=ot?zt:Gi,o=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&o&&Ss(Ze(Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=le(e.inheritLocale)?e.inheritLocale:!0;const p=a(n&&u?n.locale.value:G(e.locale)?e.locale:jt),O=a(n&&u?n.fallbackLocale.value:G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:p.value),g=a(zn(p.value,e)),N=a(ae(e.datetimeFormats)?e.datetimeFormats:{[p.value]:{}}),I=a(ae(e.numberFormats)?e.numberFormats:{[p.value]:{}});let H=n?n.missingWarn:le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,M=n?n.fallbackWarn:le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,x=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,$=!!e.fallbackFormat,V=ve(e.missing)?e.missing:null,S=ve(e.missing)?Aa(e.missing):null,k=ve(e.postTranslation)?e.postTranslation:null,F=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const P=n?n.modifiers:ae(e.modifiers)?e.modifiers:{};let _=e.pluralRules||n&&n.pluralRules,h;h=(()=>{i&&ri(null);const w={version:Wu,locale:p.value,fallbackLocale:O.value,messages:g.value,modifiers:P,pluralRules:_,missing:S===null?void 0:S,missingWarn:H,fallbackWarn:M,fallbackFormat:$,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:F,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};w.datetimeFormats=N.value,w.numberFormats=I.value,w.__datetimeFormatters=ae(h)?h.__datetimeFormatters:void 0,w.__numberFormatters=ae(h)?h.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(w.__v_emitter=ae(h)?h.__v_emitter:void 0);const U=xl(w);return i&&ri(U),U})(),cn(h,p.value,O.value);function j(){return[p.value,O.value,g.value,N.value,I.value]}const q=Qe({get:()=>p.value,set:w=>{p.value=w,h.locale=p.value}}),K=Qe({get:()=>O.value,set:w=>{O.value=w,h.fallbackLocale=O.value,cn(h,p.value,w)}}),oe=Qe(()=>g.value),pe=Qe(()=>N.value),me=Qe(()=>I.value);function ee(){return ve(k)?k:null}function ce(w){k=w,h.postTranslation=w}function z(){return V}function _e(w){w!==null&&(S=Aa(w)),V=w,h.missing=S}function re(w,U){return w!=="translate"||!U.resolvedMessage}const Z=(w,U,ne,Ee,Fe,Me)=>{j();let Le;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=n?Vl():void 0),Le=w(h)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=void 0)}if(ne!=="translate exists"&&Ae(Le)&&Le===Cn||ne==="translate exists"&&!Le){const[We,tt]=U();if(process.env.NODE_ENV!=="production"&&n&&G(We)&&re(ne,tt)&&(x&&(kn(M,We)||ii(H,We))&&Pe(Ze(Se.FALLBACK_TO_ROOT,{key:We,type:ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ue}=h;Ue&&x&&Ue.emit("fallback",{type:ne,key:We,to:"global",groupId:`${ne}:${We}`})}return n&&x?Ee(n):Fe(We)}else{if(Me(Le))return Le;throw ke(de.UNEXPECTED_RETURN_TYPE)}};function X(...w){return Z(U=>Reflect.apply(pi,null,[U,...w]),()=>ur(...w),"translate",U=>Reflect.apply(U.t,U,[...w]),U=>U,U=>G(U))}function W(...w){const[U,ne,Ee]=w;if(Ee&&!ue(Ee))throw ke(de.INVALID_ARGUMENT);return X(U,ne,$e({resolvedMessage:!0},Ee||{}))}function ge(...w){return Z(U=>Reflect.apply(Ei,null,[U,...w]),()=>fr(...w),"datetime format",U=>Reflect.apply(U.d,U,[...w]),()=>Pn,U=>G(U))}function ye(...w){return Z(U=>Reflect.apply(bi,null,[U,...w]),()=>dr(...w),"number format",U=>Reflect.apply(U.n,U,[...w]),()=>Pn,U=>G(U))}function De(w){return w.map(U=>G(U)||Ae(U)||le(U)?Sa(String(U)):U)}const ie={normalize:De,interpolate:w=>w,type:"vnode"};function c(...w){return Z(U=>{let ne;const Ee=U;try{Ee.processor=ie,ne=Reflect.apply(pi,null,[Ee,...w])}finally{Ee.processor=null}return ne},()=>ur(...w),"translate",U=>U[Kr](...w),U=>[Sa(U)],U=>be(U))}function d(...w){return Z(U=>Reflect.apply(bi,null,[U,...w]),()=>dr(...w),"number format",U=>U[Qr](...w),Da,U=>G(U)||be(U))}function E(...w){return Z(U=>Reflect.apply(Ei,null,[U,...w]),()=>fr(...w),"datetime format",U=>U[Yr](...w),Da,U=>G(U)||be(U))}function A(w){_=w,h.pluralRules=_}function m(w,U){return Z(()=>{if(!w)return!1;const ne=G(U)?U:p.value,Ee=y(ne),Fe=h.messageResolver(Ee,w);return o?Fe!=null:rt(Fe)||st(Fe)||G(Fe)},()=>[w],"translate exists",ne=>Reflect.apply(ne.te,ne,[w,U]),Ku,ne=>le(ne))}function v(w){let U=null;const ne=Ys(h,O.value,p.value);for(let Ee=0;Ee<ne.length;Ee++){const Fe=g.value[ne[Ee]]||{},Me=h.messageResolver(Fe,w);if(Me!=null){U=Me;break}}return U}function D(w){const U=v(w);return U??(n?n.tm(w)||{}:{})}function y(w){return g.value[w]||{}}function b(w,U){if(s){const ne={[w]:U};for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[w]}g.value[w]=U,h.messages=g.value}function R(w,U){g.value[w]=g.value[w]||{};const ne={[w]:U};if(s)for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[w],Dn(U,g.value[w]),h.messages=g.value}function l(w){return N.value[w]||{}}function f(w,U){N.value[w]=U,h.datetimeFormats=N.value,vi(h,w,U)}function C(w,U){N.value[w]=$e(N.value[w]||{},U),h.datetimeFormats=N.value,vi(h,w,U)}function B(w){return I.value[w]||{}}function Y(w,U){I.value[w]=U,h.numberFormats=I.value,Oi(h,w,U)}function J(w,U){I.value[w]=$e(I.value[w]||{},U),h.numberFormats=I.value,Oi(h,w,U)}wa++,n&&ot&&(Br(n.locale,w=>{u&&(p.value=w,h.locale=w,cn(h,p.value,O.value))}),Br(n.fallbackLocale,w=>{u&&(O.value=w,h.fallbackLocale=w,cn(h,p.value,O.value))}));const Q={id:wa,locale:q,fallbackLocale:K,get inheritLocale(){return u},set inheritLocale(w){u=w,w&&n&&(p.value=n.locale.value,O.value=n.fallbackLocale.value,cn(h,p.value,O.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:oe,get modifiers(){return P},get pluralRules(){return _||{}},get isGlobal(){return i},get missingWarn(){return H},set missingWarn(w){H=w,h.missingWarn=H},get fallbackWarn(){return M},set fallbackWarn(w){M=w,h.fallbackWarn=M},get fallbackRoot(){return x},set fallbackRoot(w){x=w},get fallbackFormat(){return $},set fallbackFormat(w){$=w,h.fallbackFormat=$},get warnHtmlMessage(){return F},set warnHtmlMessage(w){F=w,h.warnHtmlMessage=w},get escapeParameter(){return L},set escapeParameter(w){L=w,h.escapeParameter=w},t:X,getLocaleMessage:y,setLocaleMessage:b,mergeLocaleMessage:R,getPostTranslationHandler:ee,setPostTranslationHandler:ce,getMissingHandler:z,setMissingHandler:_e,[ya]:A};return Q.datetimeFormats=pe,Q.numberFormats=me,Q.rt=W,Q.te=m,Q.tm=D,Q.d=ge,Q.n=ye,Q.getDateTimeFormat=l,Q.setDateTimeFormat=f,Q.mergeDateTimeFormat=C,Q.getNumberFormat=B,Q.setNumberFormat=Y,Q.mergeNumberFormat=J,Q[Oa]=r,Q[Kr]=c,Q[Yr]=E,Q[Qr]=d,process.env.NODE_ENV!=="production"&&(Q[Ut]=w=>{h.__v_emitter=w},Q[vn]=()=>{h.__v_emitter=void 0}),Q}function Qu(e){const t=G(e.locale)?e.locale:jt,n=G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ve(e.missing)?e.missing:void 0,i=le(e.silentTranslationWarn)||yt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=le(e.silentFallbackWarn)||yt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=le(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,u=ae(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,O=ve(e.postTranslation)?e.postTranslation:void 0,g=G(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,N=!!e.escapeParameterHtml,I=le(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let H=e.messages;if(ae(e.sharedMessages)){const L=e.sharedMessages;H=Object.keys(L).reduce((_,h)=>{const T=_[h]||(_[h]={});return $e(T,L[h]),_},H||{})}const{__i18n:M,__root:x,__injectWithOption:$}=e,V=e.datetimeFormats,S=e.numberFormats,k=e.flatJson,F=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:H,flatJson:k,datetimeFormats:V,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:a,fallbackFormat:o,modifiers:u,pluralRules:p,postTranslation:O,warnHtmlMessage:g,escapeParameter:N,messageResolver:e.messageResolver,inheritLocale:I,translateExistCompatible:F,__i18n:M,__root:x,__injectWithOption:$}}function zr(e={},t){{const n=Jr(Qu(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return le(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=le(s)?!s:s},get silentFallbackWarn(){return le(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=le(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[a,o,u]=s,p={};let O=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:be(o)?O=o:ae(o)&&(g=o),be(u)?O=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,O||g||{},p])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[a,o,u]=s,p={plural:1};let O=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:Ae(o)?p.plural=o:be(o)?O=o:ae(o)&&(g=o),G(u)?p.locale=u:be(u)?O=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,O||g||{},p])},te(s,a){return n.te(s,a)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,a){n.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){n.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,a){n.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){n.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,a){n.setNumberFormat(s,a)},mergeNumberFormat(s,a){n.mergeNumberFormat(s,a)},getChoiceIndex(s,a){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=s=>{const a=n;a[Ut]&&a[Ut](s)},i.__disableEmitter=()=>{const s=n;s[vn]&&s[vn]()}),i}}const Zr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Xu({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Qn?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Ne())}function Ra(e){return Qn}const es=xr({name:"i18n-t",props:$e({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ae(e)||!isNaN(e)}},Zr),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||ss({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(g=>g!=="_"),a=Ne();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=G(e.plural)?+e.plural:e.plural);const o=Xu(t,s),u=i[Kr](e.keypath,o,a),p=$e(Ne(),r),O=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(O,p,u)}}});function Ju(e){return be(e)&&!G(e[0])}function Ca(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const a={part:!0};let o=Ne();e.locale&&(a.locale=e.locale),G(e.format)?a.key=e.format:ue(e.format)&&(G(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((N,I)=>n.includes(I)?$e(Ne(),N,{[I]:e.format[I]}):N,Ne()));const u=r(e.value,a,o);let p=[a.key];be(u)?p=u.map((N,I)=>{const H=i[N.type],M=H?H({[N.type]:N.value,index:I,parts:u}):[N.value];return Ju(M)&&(M[0].key=`${N.type}-${I}`),M}):G(u)&&(p=[u]);const O=$e(Ne(),s),g=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(g,O,p)}}const Pa=xr({name:"i18n-n",props:$e({value:{type:Number,required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,yi,(...r)=>n[Qr](...r))}}),ka=xr({name:"i18n-d",props:$e({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,Ni,(...r)=>n[Yr](...r))}});function zu(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Zu(e){const t=a=>{const{instance:o,modifiers:u,value:p}=a;if(!o||!o.$)throw ke(de.UNEXPECTED_ERROR);const O=zu(e,o.$);process.env.NODE_ENV!=="production"&&u.preserve&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE));const g=Fa(p);return[Reflect.apply(O.t,O,[...Ma(g)]),O]};return{created:(a,o)=>{const[u,p]=t(o);ot&&e.global===p&&(a.__i18nWatcher=Br(p.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=p,a.textContent=u},unmounted:a=>{ot&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const u=a.__composer,p=Fa(o);a.textContent=Reflect.apply(u.t,u,[...Ma(p)])}},getSSRProps:a=>{const[o]=t(a);return{textContent:o}}}}function Fa(e){if(G(e))return{path:e};if(ae(e)){if(!("path"in e))throw ke(de.REQUIRED_VALUE,"path");return e}else throw ke(de.INVALID_VALUE)}function Ma(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,a={},o=r||{};return G(n)&&(a.locale=n),Ae(i)&&(a.plural=i),Ae(s)&&(a.plural=s),[t,o,a]}function ef(e,t,...n){const r=ae(n[0])?n[0]:{},i=!!r.useI18nComponentName,s=le(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&i&&Pe(Ze(Se.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:es.name})),s&&([i?"i18n":es.name,"I18nT"].forEach(a=>e.component(a,es)),[Pa.name,"I18nN"].forEach(a=>e.component(a,Pa)),[ka.name,"I18nD"].forEach(a=>e.component(a,ka))),e.directive("t",Zu(t))}const ts={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},tf={"vue-i18n-resource-inspector":"Search for scopes ..."},nf={"vue-i18n-timeline":16764185},Va="vue-i18n: composer properties";let ns;async function rf(e,t){return new Promise((n,r)=>{try{Bu({id:"vue-devtools-plugin-vue-i18n",label:ts["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Va],app:e},i=>{ns=i,i.on.visitComponentTree(({componentInstance:a,treeNode:o})=>{sf(a,o,t)}),i.on.inspectComponent(({componentInstance:a,instanceData:o})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&Ua(o,a.vnode.el.__VUE_I18N__):Ua(o,a.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:ts["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:tf["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&uf(a,t)});const s=new Map;i.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),df(a,t),a.nodeId==="global"){if(!s.has(a.app)){const[o]=await i.getComponentInstances(a.app);s.set(a.app,o)}i.highlightElement(s.get(a.app))}else{const o=ff(a.nodeId,t);o&&i.highlightElement(o)}}),i.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&mf(a,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:ts["vue-i18n-timeline"],color:nf["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function xa(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function sf(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${xa(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function Ua(e,t){const n=Va;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:rs(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function rs(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ve(r)&&"source"in r?t[n]=cf(r):rt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:ue(r)?t[n]=rs(r):t[n]=r}),t}const af={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function of(e){return e.replace(/[<>"&]/g,lf)}function lf(e){return af[e]||e}function cf(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${of(e.source)}")`:"(?)"}`}}}function uf(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const s=t.mode==="composition"?i:i.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${xa(r)} Scope`})}}function ff(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function $a(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function df(e,t){const n=$a(e.nodeId,t);return n&&(e.state=pf(n)),null}function pf(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",s=[{type:i,key:"messages",editable:!1,value:rs(e.messages.value)}];t[i]=s;{const a="Datetime formats info",o=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=o;const u="Datetime formats info",p=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=p}return t}function yn(e,t){if(ns){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),ns.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function mf(e,t){const n=$a(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&G(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(G(e.state.value)||be(e.state.value)||ue(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&le(e.state.value)&&(n.inheritLocale=e.state.value)}}function _f(e,t,n){return{beforeCreate(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=qa(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=zr(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=qa(e,i);else{this.$i18n=zr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ia(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=tr();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",yn)}},unmounted(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",yn),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function qa(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[ya](t.pluralizationRules||e.pluralizationRules);const n=zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const hf=dt("global-vue-i18n");function Ba(e={},t){const n=__VUE_I18N_LEGACY_API__&&le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=le(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[a,o]=gf(e,n),u=dt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&Pe(Ze(Se.NOTICE_DROP_ALLOW_COMPOSITION));function p(N){return s.get(N)||null}function O(N,I){s.set(N,I)}function g(N){s.delete(N)}{const N={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(I,...H){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(I.__VUE_I18N__=N),I.__VUE_I18N_SYMBOL__=u,I.provide(I.__VUE_I18N_SYMBOL__,N),ae(H[0])){const $=H[0];N.__composerExtend=$.__composerExtend,N.__vueI18nExtend=$.__vueI18nExtend}let M=null;!n&&r&&(M=Sf(I,N.global)),__VUE_I18N_FULL_INSTALL__&&ef(I,N,...H),__VUE_I18N_LEGACY_API__&&n&&I.mixin(_f(o,o.__composer,N));const x=I.unmount;if(I.unmount=()=>{M&&M(),N.dispose(),x()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!await rf(I,N))throw ke(de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const V=tr();if(n){const S=o;S.__enableEmitter&&S.__enableEmitter(V)}else{const S=o;S[Ut]&&S[Ut](V)}V.on("*",yn)}},get global(){return o},dispose(){a.stop()},__instances:s,__getInstance:p,__setInstance:O,__deleteInstance:g};return N}}function ss(e={}){const t=sn();if(t==null)throw ke(de.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ke(de.NOT_INSTALLED);const n=Ef(t),r=vf(n),i=Ta(t),s=Nf(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ke(de.NOT_AVAILABLE_IN_LEGACY_MODE);return Tf(t,s,r,e)}if(s==="global")return Ia(r,e,i),r;if(s==="parent"){let u=bf(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_FOUND_PARENT_SCOPE)),u=r),u}const a=n;let o=a.__getInstance(t);if(o==null){const u=$e({},e);"__i18n"in i&&(u.__i18n=i.__i18n),r&&(u.__root=r),o=Jr(u),a.__composerExtend&&(o[Xr]=a.__composerExtend(o)),Of(a,t,o),a.__setInstance(t,o)}return o}function gf(e,t,n){const r=uc();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>zr(e)):r.run(()=>Jr(e));if(i==null)throw ke(de.UNEXPECTED_ERROR);return[r,i]}}function Ef(e){{const t=oa(e.isCE?hf:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ke(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return t}}function Nf(e,t){return In(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vf(e){return e.mode==="composition"?e.global:e.global.__composer}function bf(e,t,n=!1){let r=null;const i=t.root;let s=yf(t,n);for(;s!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const o=a.__getInstance(s);o!=null&&(r=o.__composer,n&&r&&!r[Oa]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function yf(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Of(e,t,n){let r=null;su(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=tr();const i=n;i[Ut]&&i[Ut](r),r.on("*",yn)}},t),iu(()=>{const i=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",yn),i[vn]&&i[vn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=i[Xr];s&&(s(),delete i[Xr])},t)}function Tf(e,t,n,r={}){const i=t==="local",s=Gi(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ke(de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=le(r.inheritLocale)?r.inheritLocale:!G(r.locale),o=zt(!i||a?n.locale.value:G(r.locale)?r.locale:jt),u=zt(!i||a?n.fallbackLocale.value:G(r.fallbackLocale)||be(r.fallbackLocale)||ae(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o.value),p=zt(zn(o.value,r)),O=zt(ae(r.datetimeFormats)?r.datetimeFormats:{[o.value]:{}}),g=zt(ae(r.numberFormats)?r.numberFormats:{[o.value]:{}}),N=i?n.missingWarn:le(r.missingWarn)||yt(r.missingWarn)?r.missingWarn:!0,I=i?n.fallbackWarn:le(r.fallbackWarn)||yt(r.fallbackWarn)?r.fallbackWarn:!0,H=i?n.fallbackRoot:le(r.fallbackRoot)?r.fallbackRoot:!0,M=!!r.fallbackFormat,x=ve(r.missing)?r.missing:null,$=ve(r.postTranslation)?r.postTranslation:null,V=i?n.warnHtmlMessage:le(r.warnHtmlMessage)?r.warnHtmlMessage:!0,S=!!r.escapeParameter,k=i?n.modifiers:ae(r.modifiers)?r.modifiers:{},F=r.pluralRules||i&&n.pluralRules;function L(){return[o.value,u.value,p.value,O.value,g.value]}const P=Qe({get:()=>s.value?s.value.locale.value:o.value,set:m=>{s.value&&(s.value.locale.value=m),o.value=m}}),_=Qe({get:()=>s.value?s.value.fallbackLocale.value:u.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),u.value=m}}),h=Qe(()=>s.value?s.value.messages.value:p.value),T=Qe(()=>O.value),j=Qe(()=>g.value);function q(){return s.value?s.value.getPostTranslationHandler():$}function K(m){s.value&&s.value.setPostTranslationHandler(m)}function oe(){return s.value?s.value.getMissingHandler():x}function pe(m){s.value&&s.value.setMissingHandler(m)}function me(m){return L(),m()}function ee(...m){return s.value?me(()=>Reflect.apply(s.value.t,null,[...m])):me(()=>"")}function ce(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function z(...m){return s.value?me(()=>Reflect.apply(s.value.d,null,[...m])):me(()=>"")}function _e(...m){return s.value?me(()=>Reflect.apply(s.value.n,null,[...m])):me(()=>"")}function re(m){return s.value?s.value.tm(m):{}}function Z(m,v){return s.value?s.value.te(m,v):!1}function X(m){return s.value?s.value.getLocaleMessage(m):{}}function W(m,v){s.value&&(s.value.setLocaleMessage(m,v),p.value[m]=v)}function ge(m,v){s.value&&s.value.mergeLocaleMessage(m,v)}function ye(m){return s.value?s.value.getDateTimeFormat(m):{}}function De(m,v){s.value&&(s.value.setDateTimeFormat(m,v),O.value[m]=v)}function te(m,v){s.value&&s.value.mergeDateTimeFormat(m,v)}function ie(m){return s.value?s.value.getNumberFormat(m):{}}function c(m,v){s.value&&(s.value.setNumberFormat(m,v),g.value[m]=v)}function d(m,v){s.value&&s.value.mergeNumberFormat(m,v)}const E={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:_,messages:h,datetimeFormats:T,numberFormats:j,get inheritLocale(){return s.value?s.value.inheritLocale:a},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(p.value)},get modifiers(){return s.value?s.value.modifiers:k},get pluralRules(){return s.value?s.value.pluralRules:F},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:N},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:I},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:H},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:M},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:V},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:S},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:ee,getPostTranslationHandler:q,setPostTranslationHandler:K,getMissingHandler:oe,setMissingHandler:pe,rt:ce,d:z,n:_e,tm:re,te:Z,getLocaleMessage:X,setLocaleMessage:W,mergeLocaleMessage:ge,getDateTimeFormat:ye,setDateTimeFormat:De,mergeDateTimeFormat:te,getNumberFormat:ie,setNumberFormat:c,mergeNumberFormat:d};function A(m){m.locale.value=o.value,m.fallbackLocale.value=u.value,Object.keys(p.value).forEach(v=>{m.mergeLocaleMessage(v,p.value[v])}),Object.keys(O.value).forEach(v=>{m.mergeDateTimeFormat(v,O.value[v])}),Object.keys(g.value).forEach(v=>{m.mergeNumberFormat(v,g.value[v])}),m.escapeParameter=S,m.fallbackFormat=M,m.fallbackRoot=H,m.fallbackWarn=I,m.missingWarn=N,m.warnHtmlMessage=V}return ru(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ke(de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(o.value=m.locale.value,u.value=m.fallbackLocale.value,p.value=m.messages.value,O.value=m.datetimeFormats.value,g.value=m.numberFormats.value):i&&A(m)}),E}const If=["locale","fallbackLocale","availableLocales"],Wa=["t","rt","d","n","tm","te"];function Sf(e,t){const n=Object.create(null);return If.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw ke(de.UNEXPECTED_ERROR);const a=qe(s.value)?{get(){return s.value.value},set(o){s.value.value=o}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,Wa.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw ke(de.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Wa.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Hu(),__INTLIFY_JIT_COMPILATION__?zs(Wl):zs(Bl),Pl(pl),kl(Ys),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,yl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Lf=(e="en")=>{const t=Ba({locale:e,messages:{en:{iotdbTemplateRemark:"Measurement, Value, and Data Type are required fields. The Data Type can have the optional values boolean, int32, int64, float, double, text.",invalidIsCharFlag:"Invalid Char Value field: {isChar}",uploadMaxRowsError:"The number of rows in the CSV file exceeds the limit. Up to {max} rows of data are supported except for the header",influxdbTemplateRemark:"Append an i to the field value to tell InfluxDB to store the number as an integer.",datalayersTemplateRemark:"Append an i to the field value to tell Datalayers to store the number as an integer."},zh:{iotdbTemplateRemark:"字段、值、数据类型是必填选项,数据类型可选的值为 boolean、int32、int64、float、double、text",invalidIsCharFlag:"无效的字符标识符值:{isChar}",uploadMaxRowsError:"CSV 文件行数超过限制,除表头外,最多支持 {max} 行数据",influxdbTemplateRemark:"在字段值后追加 i,InfluxDB 则将该数值存储为整数类型。",datalayersTemplateRemark:"在字段值后追加 i,Datalayers 则将该数值存储为整数类型。"}}}),{t:n}=t.global,r={influxdb:"InfluxDB",tdengine:"TDengine",iotdb:"IoTDB",datalayers:"Datalayers"},i={tdengine:`Field,Value,Char Value,Remarks (Optional)
43
+ */const VERSION="9.10.2";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis$1().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis$1().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis$1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis$1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis$1().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function getWarnMessage(e,...t){return format$2(warnMessages[e],...t)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:t}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject$2(e))return e;for(const t in e)if(hasOwn$1(e,t))if(!t.includes("."))isObject$2(e[t])&&handleFlatJson(e[t]);else{const n=t.split("."),s=n.length-1;let c=e,l=!1;for(let C=0;C<s;C++){if(n[C]in c||(c[n[C]]={}),!isObject$2(c[n[C]])){process.env.NODE_ENV!=="production"&&warn$2(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:n[C]})),l=!0;break}c=c[n[C]]}l||(c[n[s]]=e[t],delete e[t]),isObject$2(c[n[s]])&&handleFlatJson(c[n[s]])}return e}function getLocaleMessages(e,t){const{messages:n,__i18n:s,messageResolver:c,flatJson:l}=t,C=isPlainObject$1(n)?n:isArray$1(s)?{}:{[e]:{}};if(isArray$1(s)&&s.forEach(A=>{if("locale"in A&&"resource"in A){const{locale:L,resource:W}=A;L?(C[L]=C[L]||{},deepCopy(W,C[L])):deepCopy(W,C)}else isString$2(A)&&deepCopy(JSON.parse(A),C)}),c==null&&l)for(const A in C)hasOwn$1(C,A)&&handleFlatJson(C[A]);return C}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let s=isObject$2(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=getLocaleMessages(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const c=Object.keys(s);c.length&&c.forEach(l=>{e.mergeLocaleMessage(l,s[l])});{if(isObject$2(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(C=>{e.mergeDateTimeFormat(C,t.datetimeFormats[C])})}if(isObject$2(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(C=>{e.mergeNumberFormat(C,t.numberFormats[C])})}}}function createTextNode(e){return createVNode(Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,s,c)=>e(n,s,getCurrentInstance()||void 0,c)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:n,__injectWithOption:s}=e,c=n===void 0,l=e.flatJson,C=inBrowser?ref:shallowRef,A=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&A&&warnOnce(getWarnMessage(I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let L=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const W=C(n&&L?n.locale.value:isString$2(e.locale)?e.locale:DEFAULT_LOCALE),Y=C(n&&L?n.fallbackLocale.value:isString$2(e.fallbackLocale)||isArray$1(e.fallbackLocale)||isPlainObject$1(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:W.value),U=C(getLocaleMessages(W.value,e)),V=C(isPlainObject$1(e.datetimeFormats)?e.datetimeFormats:{[W.value]:{}}),J=C(isPlainObject$1(e.numberFormats)?e.numberFormats:{[W.value]:{}});let ce=n?n.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,se=n?n.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,re=n?n.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,q=!!e.fallbackFormat,Q=isFunction$1(e.missing)?e.missing:null,ae=isFunction$1(e.missing)?defineCoreMissingHandler(e.missing):null,te=isFunction$1(e.postTranslation)?e.postTranslation:null,oe=n?n.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,ne=!!e.escapeParameter;const ie=n?n.modifiers:isPlainObject$1(e.modifiers)?e.modifiers:{};let G=e.pluralRules||n&&n.pluralRules,$;$=(()=>{c&&setFallbackContext(null);const ee={version:VERSION,locale:W.value,fallbackLocale:Y.value,messages:U.value,modifiers:ie,pluralRules:G,missing:ae===null?void 0:ae,missingWarn:ce,fallbackWarn:se,fallbackFormat:q,unresolving:!0,postTranslation:te===null?void 0:te,warnHtmlMessage:oe,escapeParameter:ne,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ee.datetimeFormats=V.value,ee.numberFormats=J.value,ee.__datetimeFormatters=isPlainObject$1($)?$.__datetimeFormatters:void 0,ee.__numberFormatters=isPlainObject$1($)?$.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ee.__v_emitter=isPlainObject$1($)?$.__v_emitter:void 0);const le=createCoreContext(ee);return c&&setFallbackContext(le),le})(),updateFallbackLocale($,W.value,Y.value);function pe(){return[W.value,Y.value,U.value,V.value,J.value]}const de=computed({get:()=>W.value,set:ee=>{W.value=ee,$.locale=W.value}}),ge=computed({get:()=>Y.value,set:ee=>{Y.value=ee,$.fallbackLocale=Y.value,updateFallbackLocale($,W.value,ee)}}),ve=computed(()=>U.value),Ae=computed(()=>V.value),Ce=computed(()=>J.value);function Ee(){return isFunction$1(te)?te:null}function Re(ee){te=ee,$.postTranslation=ee}function Oe(){return Q}function Fe(ee){ee!==null&&(ae=defineCoreMissingHandler(ee)),Q=ee,$.missing=ae}function Me(ee,le){return ee!=="translate"||!le.resolvedMessage}const he=(ee,le,Te,we,je,Be)=>{pe();let xe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,c||($.fallbackContext=n?getFallbackContext():void 0),xe=ee($)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,c||($.fallbackContext=void 0)}if(Te!=="translate exists"&&isNumber(xe)&&xe===NOT_REOSLVED||Te==="translate exists"&&!xe){const[$e,We]=le();if(process.env.NODE_ENV!=="production"&&n&&isString$2($e)&&Me(Te,We)&&(re&&(isTranslateFallbackWarn(se,$e)||isTranslateMissingWarn(ce,$e))&&warn$2(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:$e,type:Te})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ve}=$;Ve&&re&&Ve.emit("fallback",{type:Te,key:$e,to:"global",groupId:`${Te}:${$e}`})}return n&&re?we(n):je($e)}else{if(Be(xe))return xe;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Le(...ee){return he(le=>Reflect.apply(translate,null,[le,...ee]),()=>parseTranslateArgs(...ee),"translate",le=>Reflect.apply(le.t,le,[...ee]),le=>le,le=>isString$2(le))}function fe(...ee){const[le,Te,we]=ee;if(we&&!isObject$2(we))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Le(le,Te,assign$1({resolvedMessage:!0},we||{}))}function Pe(...ee){return he(le=>Reflect.apply(datetime,null,[le,...ee]),()=>parseDateTimeArgs(...ee),"datetime format",le=>Reflect.apply(le.d,le,[...ee]),()=>MISSING_RESOLVE_VALUE,le=>isString$2(le))}function ke(...ee){return he(le=>Reflect.apply(number,null,[le,...ee]),()=>parseNumberArgs(...ee),"number format",le=>Reflect.apply(le.n,le,[...ee]),()=>MISSING_RESOLVE_VALUE,le=>isString$2(le))}function De(ee){return ee.map(le=>isString$2(le)||isNumber(le)||isBoolean(le)?createTextNode(String(le)):le)}const be={normalize:De,interpolate:ee=>ee,type:"vnode"};function D(...ee){return he(le=>{let Te;const we=le;try{we.processor=be,Te=Reflect.apply(translate,null,[we,...ee])}finally{we.processor=null}return Te},()=>parseTranslateArgs(...ee),"translate",le=>le[TranslateVNodeSymbol](...ee),le=>[createTextNode(le)],le=>isArray$1(le))}function M(...ee){return he(le=>Reflect.apply(number,null,[le,...ee]),()=>parseNumberArgs(...ee),"number format",le=>le[NumberPartsSymbol](...ee),NOOP_RETURN_ARRAY,le=>isString$2(le)||isArray$1(le))}function B(...ee){return he(le=>Reflect.apply(datetime,null,[le,...ee]),()=>parseDateTimeArgs(...ee),"datetime format",le=>le[DatetimePartsSymbol](...ee),NOOP_RETURN_ARRAY,le=>isString$2(le)||isArray$1(le))}function R(ee){G=ee,$.pluralRules=G}function I(ee,le){return he(()=>{if(!ee)return!1;const Te=isString$2(le)?le:W.value,we=j(Te),je=$.messageResolver(we,ee);return A?je!=null:isMessageAST(je)||isMessageFunction(je)||isString$2(je)},()=>[ee],"translate exists",Te=>Reflect.apply(Te.te,Te,[ee,le]),NOOP_RETURN_FALSE,Te=>isBoolean(Te))}function F(ee){let le=null;const Te=fallbackWithLocaleChain($,Y.value,W.value);for(let we=0;we<Te.length;we++){const je=U.value[Te[we]]||{},Be=$.messageResolver(je,ee);if(Be!=null){le=Be;break}}return le}function H(ee){const le=F(ee);return le??(n?n.tm(ee)||{}:{})}function j(ee){return U.value[ee]||{}}function K(ee,le){if(l){const Te={[ee]:le};for(const we in Te)hasOwn$1(Te,we)&&handleFlatJson(Te[we]);le=Te[ee]}U.value[ee]=le,$.messages=U.value}function Z(ee,le){U.value[ee]=U.value[ee]||{};const Te={[ee]:le};if(l)for(const we in Te)hasOwn$1(Te,we)&&handleFlatJson(Te[we]);le=Te[ee],deepCopy(le,U.value[ee]),$.messages=U.value}function z(ee){return V.value[ee]||{}}function ue(ee,le){V.value[ee]=le,$.datetimeFormats=V.value,clearDateTimeFormat($,ee,le)}function me(ee,le){V.value[ee]=assign$1(V.value[ee]||{},le),$.datetimeFormats=V.value,clearDateTimeFormat($,ee,le)}function _e(ee){return J.value[ee]||{}}function ye(ee,le){J.value[ee]=le,$.numberFormats=J.value,clearNumberFormat($,ee,le)}function Se(ee,le){J.value[ee]=assign$1(J.value[ee]||{},le),$.numberFormats=J.value,clearNumberFormat($,ee,le)}composerID++,n&&inBrowser&&(watch(n.locale,ee=>{L&&(W.value=ee,$.locale=ee,updateFallbackLocale($,W.value,Y.value))}),watch(n.fallbackLocale,ee=>{L&&(Y.value=ee,$.fallbackLocale=ee,updateFallbackLocale($,W.value,Y.value))}));const Ne={id:composerID,locale:de,fallbackLocale:ge,get inheritLocale(){return L},set inheritLocale(ee){L=ee,ee&&n&&(W.value=n.locale.value,Y.value=n.fallbackLocale.value,updateFallbackLocale($,W.value,Y.value))},get availableLocales(){return Object.keys(U.value).sort()},messages:ve,get modifiers(){return ie},get pluralRules(){return G||{}},get isGlobal(){return c},get missingWarn(){return ce},set missingWarn(ee){ce=ee,$.missingWarn=ce},get fallbackWarn(){return se},set fallbackWarn(ee){se=ee,$.fallbackWarn=se},get fallbackRoot(){return re},set fallbackRoot(ee){re=ee},get fallbackFormat(){return q},set fallbackFormat(ee){q=ee,$.fallbackFormat=q},get warnHtmlMessage(){return oe},set warnHtmlMessage(ee){oe=ee,$.warnHtmlMessage=ee},get escapeParameter(){return ne},set escapeParameter(ee){ne=ee,$.escapeParameter=ee},t:Le,getLocaleMessage:j,setLocaleMessage:K,mergeLocaleMessage:Z,getPostTranslationHandler:Ee,setPostTranslationHandler:Re,getMissingHandler:Oe,setMissingHandler:Fe,[SetPluralRulesSymbol]:R};return Ne.datetimeFormats=Ae,Ne.numberFormats=Ce,Ne.rt=fe,Ne.te=I,Ne.tm=H,Ne.d=Pe,Ne.n=ke,Ne.getDateTimeFormat=z,Ne.setDateTimeFormat=ue,Ne.mergeDateTimeFormat=me,Ne.getNumberFormat=_e,Ne.setNumberFormat=ye,Ne.mergeNumberFormat=Se,Ne[InejctWithOptionSymbol]=s,Ne[TranslateVNodeSymbol]=D,Ne[DatetimePartsSymbol]=B,Ne[NumberPartsSymbol]=M,process.env.NODE_ENV!=="production"&&(Ne[EnableEmitter]=ee=>{$.__v_emitter=ee},Ne[DisableEmitter]=()=>{$.__v_emitter=void 0}),Ne}function convertComposerOptions(e){const t=isString$2(e.locale)?e.locale:DEFAULT_LOCALE,n=isString$2(e.fallbackLocale)||isArray$1(e.fallbackLocale)||isPlainObject$1(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=isFunction$1(e.missing)?e.missing:void 0,c=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,C=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.formatFallbackMessages,L=isPlainObject$1(e.modifiers)?e.modifiers:{},W=e.pluralizationRules,Y=isFunction$1(e.postTranslation)?e.postTranslation:void 0,U=isString$2(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,V=!!e.escapeParameterHtml,J=isBoolean(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let ce=e.messages;if(isPlainObject$1(e.sharedMessages)){const ne=e.sharedMessages;ce=Object.keys(ne).reduce((G,$)=>{const X=G[$]||(G[$]={});return assign$1(X,ne[$]),G},ce||{})}const{__i18n:se,__root:re,__injectWithOption:q}=e,Q=e.datetimeFormats,ae=e.numberFormats,te=e.flatJson,oe=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:ce,flatJson:te,datetimeFormats:Q,numberFormats:ae,missing:s,missingWarn:c,fallbackWarn:l,fallbackRoot:C,fallbackFormat:A,modifiers:L,pluralRules:W,postTranslation:Y,warnHtmlMessage:U,escapeParameter:V,messageResolver:e.messageResolver,inheritLocale:J,translateExistCompatible:oe,__i18n:se,__root:re,__injectWithOption:q}}function createVueI18n(e={},t){{const n=createComposer(convertComposerOptions(e)),{__extender:s}=e,c={id:n.id,get locale(){return n.locale.value},set locale(l){n.locale.value=l},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(l){n.fallbackLocale.value=l},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(l){process.env.NODE_ENV!=="production"&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(l){n.setMissingHandler(l)},get silentTranslationWarn(){return isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(l){n.missingWarn=isBoolean(l)?!l:l},get silentFallbackWarn(){return isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(l){n.fallbackWarn=isBoolean(l)?!l:l},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(l){n.fallbackFormat=l},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(l){n.setPostTranslationHandler(l)},get sync(){return n.inheritLocale},set sync(l){n.inheritLocale=l},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(l){n.warnHtmlMessage=l!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(l){n.escapeParameter=l},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(l){process.env.NODE_ENV!=="production"&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...l){const[C,A,L]=l,W={};let Y=null,U=null;if(!isString$2(C))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const V=C;return isString$2(A)?W.locale=A:isArray$1(A)?Y=A:isPlainObject$1(A)&&(U=A),isArray$1(L)?Y=L:isPlainObject$1(L)&&(U=L),Reflect.apply(n.t,n,[V,Y||U||{},W])},rt(...l){return Reflect.apply(n.rt,n,[...l])},tc(...l){const[C,A,L]=l,W={plural:1};let Y=null,U=null;if(!isString$2(C))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const V=C;return isString$2(A)?W.locale=A:isNumber(A)?W.plural=A:isArray$1(A)?Y=A:isPlainObject$1(A)&&(U=A),isString$2(L)?W.locale=L:isArray$1(L)?Y=L:isPlainObject$1(L)&&(U=L),Reflect.apply(n.t,n,[V,Y||U||{},W])},te(l,C){return n.te(l,C)},tm(l){return n.tm(l)},getLocaleMessage(l){return n.getLocaleMessage(l)},setLocaleMessage(l,C){n.setLocaleMessage(l,C)},mergeLocaleMessage(l,C){n.mergeLocaleMessage(l,C)},d(...l){return Reflect.apply(n.d,n,[...l])},getDateTimeFormat(l){return n.getDateTimeFormat(l)},setDateTimeFormat(l,C){n.setDateTimeFormat(l,C)},mergeDateTimeFormat(l,C){n.mergeDateTimeFormat(l,C)},n(...l){return Reflect.apply(n.n,n,[...l])},getNumberFormat(l){return n.getNumberFormat(l)},setNumberFormat(l,C){n.setNumberFormat(l,C)},mergeNumberFormat(l,C){n.mergeNumberFormat(l,C)},getChoiceIndex(l,C){return process.env.NODE_ENV!=="production"&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return c.__extender=s,process.env.NODE_ENV!=="production"&&(c.__enableEmitter=l=>{const C=n;C[EnableEmitter]&&C[EnableEmitter](l)},c.__disableEmitter=()=>{const l=n;l[DisableEmitter]&&l[DisableEmitter]()}),c}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,c)=>[...s,...c.type===Fragment?c.children:[c]],[]):t.reduce((n,s)=>{const c=e[s];return c&&(n[s]=c()),n},{})}function getFragmentableTag(e){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign$1({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:s}=t,c=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(n).filter(U=>U!=="_"),C={};e.locale&&(C.locale=e.locale),e.plural!==void 0&&(C.plural=isString$2(e.plural)?+e.plural:e.plural);const A=getInterpolateArg(t,l),L=c[TranslateVNodeSymbol](e.keypath,A,C),W=assign$1({},s),Y=isString$2(e.tag)||isObject$2(e.tag)?e.tag:getFragmentableTag();return h(Y,W,L)}}}),Translation=TranslationImpl;function isVNode(e){return isArray$1(e)&&!isString$2(e[0])}function renderFormatter(e,t,n,s){const{slots:c,attrs:l}=t;return()=>{const C={part:!0};let A={};e.locale&&(C.locale=e.locale),isString$2(e.format)?C.key=e.format:isObject$2(e.format)&&(isString$2(e.format.key)&&(C.key=e.format.key),A=Object.keys(e.format).reduce((V,J)=>n.includes(J)?assign$1({},V,{[J]:e.format[J]}):V,{}));const L=s(e.value,C,A);let W=[C.key];isArray$1(L)?W=L.map((V,J)=>{const ce=c[V.type],se=ce?ce({[V.type]:V.value,index:J,parts:L}):[V.value];return isVNode(se)&&(se[0].key=`${V.type}-${J}`),se}):isString$2(L)&&(W=[L]);const Y=assign$1({},l),U=isString$2(e.tag)||isObject$2(e.tag)?e.tag:getFragmentableTag();return h(U,Y,W)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign$1({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,(...s)=>n[NumberPartsSymbol](...s))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign$1({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,(...s)=>n[DatetimePartsSymbol](...s))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function vTDirective(e){const t=C=>{const{instance:A,modifiers:L,value:W}=C;if(!A||!A.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const Y=getComposer$2(e,A.$);process.env.NODE_ENV!=="production"&&L.preserve&&warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const U=parseValue(W);return[Reflect.apply(Y.t,Y,[...makeParams(U)]),Y]};return{created:(C,A)=>{const[L,W]=t(A);inBrowser&&e.global===W&&(C.__i18nWatcher=watch(W.locale,()=>{A.instance&&A.instance.$forceUpdate()})),C.__composer=W,C.textContent=L},unmounted:C=>{inBrowser&&C.__i18nWatcher&&(C.__i18nWatcher(),C.__i18nWatcher=void 0,delete C.__i18nWatcher),C.__composer&&(C.__composer=void 0,delete C.__composer)},beforeUpdate:(C,{value:A})=>{if(C.__composer){const L=C.__composer,W=parseValue(A);C.textContent=Reflect.apply(L.t,L,[...makeParams(W)])}},getSSRProps:C=>{const[A]=t(C);return{textContent:A}}}}function parseValue(e){if(isString$2(e))return{path:e};if(isPlainObject$1(e)){if(!("path"in e))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return e}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:s,choice:c,plural:l}=e,C={},A=s||{};return isString$2(n)&&(C.locale=n),isNumber(c)&&(C.plural=c),isNumber(l)&&(C.plural=l),[t,A,C]}function apply(e,t,...n){const s=isPlainObject$1(n[0])?n[0]:{},c=!!s.useI18nComponentName,l=isBoolean(s.globalInstall)?s.globalInstall:!0;process.env.NODE_ENV!=="production"&&l&&c&&warn$2(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),l&&([c?"i18n":Translation.name,"I18nT"].forEach(C=>e.component(C,Translation)),[NumberFormat.name,"I18nN"].forEach(C=>e.component(C,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(C=>e.component(C,DatetimeFormat))),e.directive("t",vTDirective(t))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(e,t){return new Promise((n,s)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:e},c=>{devtoolsApi=c,c.on.visitComponentTree(({componentInstance:C,treeNode:A})=>{updateComponentTreeTags(C,A,t)}),c.on.inspectComponent(({componentInstance:C,instanceData:A})=>{C.vnode.el&&C.vnode.el.__VUE_I18N__&&A&&(t.mode==="legacy"?C.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(A,C.vnode.el.__VUE_I18N__):inspectComposer(A,C.vnode.el.__VUE_I18N__))}),c.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),c.on.getInspectorTree(C=>{C.app===e&&C.inspectorId==="vue-i18n-resource-inspector"&&registerScope(C,t)});const l=new Map;c.on.getInspectorState(async C=>{if(C.app===e&&C.inspectorId==="vue-i18n-resource-inspector")if(c.unhighlightElement(),inspectScope(C,t),C.nodeId==="global"){if(!l.has(C.app)){const[A]=await c.getComponentInstances(C.app);l.set(C.app,A)}c.highlightElement(l.get(C.app))}else{const A=getComponentInstance(C.nodeId,t);A&&c.highlightElement(A)}}),c.on.editInspectorState(C=>{C.app===e&&C.inspectorId==="vue-i18n-resource-inspector"&&editScope(C,t)}),c.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),n(!0)})}catch(c){console.error(c),s(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,n){const s=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==s){const c={label:`i18n (${getI18nScopeLable(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(c)}}function inspectComposer(e,t){const n=VUE_I18N_COMPONENT_TYPES;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function getLocaleMessageValue(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];isFunction$1(s)&&"source"in s?t[n]=getMessageFunctionDetails(s):isMessageAST(s)&&s.loc&&s.loc.source?t[n]=s.loc.source:isObject$2(s)?t[n]=getLocaleMessageValue(s):t[n]=s}),t}const ESC={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function escape(e){return e.replace(/[<>"&]/g,escapeChar)}function escapeChar(e){return ESC[e]||e}function getMessageFunctionDetails(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${escape(e.source)}")`:"(?)"}`}}}function registerScope(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[s,c]of t.__instances){const l=t.mode==="composition"?c:c.__composer;n!==l&&e.rootNodes.push({id:l.id.toString(),label:`${getI18nScopeLable(s)} Scope`})}}function getComponentInstance(e,t){let n=null;if(e!=="global"){for(const[s,c]of t.__instances.entries())if(c.id.toString()===e){n=s;break}}return n}function getComposer$1(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(s=>s.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function inspectScope(e,t){const n=getComposer$1(e.nodeId,t);return n&&(e.state=makeScopeInspectState(n)),null}function makeScopeInspectState(e){const t={},n="Locale related info",s=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=s;const c="Locale messages info",l=[{type:c,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[c]=l;{const C="Datetime formats info",A=[{type:C,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[C]=A;const L="Datetime formats info",W=[{type:L,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[L]=W}return t}function addTimelineEvent(e,t){if(devtoolsApi){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function editScope(e,t){const n=getComposer$1(e.nodeId,t);if(n){const[s]=e.path;s==="locale"&&isString$2(e.state.value)?n.locale.value=e.state.value:s==="fallbackLocale"&&(isString$2(e.state.value)||isArray$1(e.state.value)||isObject$2(e.state.value))?n.fallbackLocale.value=e.state.value:s==="inheritLocale"&&isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}function defineMixin(e,t,n){return{beforeCreate(){const s=getCurrentInstance();if(!s)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const c=this.$options;if(c.i18n){const l=c.i18n;if(c.__i18n&&(l.__i18n=c.__i18n),l.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,l);else{l.__injectWithOption=!0,l.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(l);const C=this.$i18n;C.__extender&&(C.__disposer=C.__extender(this.$i18n))}}else if(c.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,c);else{this.$i18n=createVueI18n({__i18n:c.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;c.__i18nGlobal&&adjustI18nResources(t,c,c),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,C)=>this.$i18n.te(l,C),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),n.__setInstance(s,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$i18n){const s=this.$i18n;this.$el.__VUE_I18N__=s.__composer;const c=this.__v_emitter=createEmitter();s.__enableEmitter&&s.__enableEmitter(c),c.on("*",addTimelineEvent)}},unmounted(){const s=getCurrentInstance();if(!s)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const c=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(c.__disableEmitter&&c.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,c.__disposer&&(c.__disposer(),delete c.__disposer,delete c.__extender),n.__deleteInstance(s),delete this.$i18n}}}function mergeToGlobal(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=__VUE_I18N_LEGACY_API__&&isBoolean(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=isBoolean(e.globalInjection)?e.globalInjection:!0,c=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,l=new Map,[C,A]=createGlobal(e,n),L=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&c&&warn$2(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function W(V){return l.get(V)||null}function Y(V,J){l.set(V,J)}function U(V){l.delete(V)}{const V={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return c},async install(J,...ce){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(J.__VUE_I18N__=V),J.__VUE_I18N_SYMBOL__=L,J.provide(J.__VUE_I18N_SYMBOL__,V),isPlainObject$1(ce[0])){const q=ce[0];V.__composerExtend=q.__composerExtend,V.__vueI18nExtend=q.__vueI18nExtend}let se=null;!n&&s&&(se=injectGlobalFields(J,V.global)),__VUE_I18N_FULL_INSTALL__&&apply(J,V,...ce),__VUE_I18N_LEGACY_API__&&n&&J.mixin(defineMixin(A,A.__composer,V));const re=J.unmount;if(J.unmount=()=>{se&&se(),V.dispose(),re()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!await enableDevTools(J,V))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const Q=createEmitter();if(n){const ae=A;ae.__enableEmitter&&ae.__enableEmitter(Q)}else{const ae=A;ae[EnableEmitter]&&ae[EnableEmitter](Q)}Q.on("*",addTimelineEvent)}},get global(){return A},dispose(){C.stop()},__instances:l,__getInstance:W,__setInstance:Y,__deleteInstance:U};return V}}function useI18n(e={}){const t=getCurrentInstance();if(t==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),s=getGlobalComposer(n),c=getComponentOptions(t),l=getScope(e,c);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,l,s,e)}if(l==="global")return adjustI18nResources(s,e,c),s;if(l==="parent"){let L=getComposer(n,t,e.__useComponent);return L==null&&(process.env.NODE_ENV!=="production"&&warn$2(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),L=s),L}const C=n;let A=C.__getInstance(t);if(A==null){const L=assign$1({},e);"__i18n"in c&&(L.__i18n=c.__i18n),s&&(L.__root=s),A=createComposer(L),C.__composerExtend&&(A[DisposeSymbol]=C.__composerExtend(A)),setupLifeCycle(C,t,A),C.__setInstance(t,A)}return A}function createGlobal(e,t,n){const s=effectScope();{const c=__VUE_I18N_LEGACY_API__&&t?s.run(()=>createVueI18n(e)):s.run(()=>createComposer(e));if(c==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[s,c]}}function getI18nInstance(e){{const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.mode==="composition"?e.global:e.global.__composer}function getComposer(e,t,n=!1){let s=null;const c=t.root;let l=getParentComponentInstance(t,n);for(;l!=null;){const C=e;if(e.mode==="composition")s=C.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const A=C.__getInstance(l);A!=null&&(s=A.__composer,n&&s&&!s[InejctWithOptionSymbol]&&(s=null))}if(s!=null||c===l)break;l=l.parent}return s}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){let s=null;onMounted(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=createEmitter();const c=n;c[EnableEmitter]&&c[EnableEmitter](s),s.on("*",addTimelineEvent)}},t),onUnmounted(()=>{const c=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(s&&s.off("*",addTimelineEvent),c[DisableEmitter]&&c[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const l=c[DisposeSymbol];l&&(l(),delete c[DisposeSymbol])},t)}function useI18nForLegacy(e,t,n,s={}){const c=t==="local",l=shallowRef(null);if(c&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const C=isBoolean(s.inheritLocale)?s.inheritLocale:!isString$2(s.locale),A=ref(!c||C?n.locale.value:isString$2(s.locale)?s.locale:DEFAULT_LOCALE),L=ref(!c||C?n.fallbackLocale.value:isString$2(s.fallbackLocale)||isArray$1(s.fallbackLocale)||isPlainObject$1(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:A.value),W=ref(getLocaleMessages(A.value,s)),Y=ref(isPlainObject$1(s.datetimeFormats)?s.datetimeFormats:{[A.value]:{}}),U=ref(isPlainObject$1(s.numberFormats)?s.numberFormats:{[A.value]:{}}),V=c?n.missingWarn:isBoolean(s.missingWarn)||isRegExp(s.missingWarn)?s.missingWarn:!0,J=c?n.fallbackWarn:isBoolean(s.fallbackWarn)||isRegExp(s.fallbackWarn)?s.fallbackWarn:!0,ce=c?n.fallbackRoot:isBoolean(s.fallbackRoot)?s.fallbackRoot:!0,se=!!s.fallbackFormat,re=isFunction$1(s.missing)?s.missing:null,q=isFunction$1(s.postTranslation)?s.postTranslation:null,Q=c?n.warnHtmlMessage:isBoolean(s.warnHtmlMessage)?s.warnHtmlMessage:!0,ae=!!s.escapeParameter,te=c?n.modifiers:isPlainObject$1(s.modifiers)?s.modifiers:{},oe=s.pluralRules||c&&n.pluralRules;function ne(){return[A.value,L.value,W.value,Y.value,U.value]}const ie=computed({get:()=>l.value?l.value.locale.value:A.value,set:I=>{l.value&&(l.value.locale.value=I),A.value=I}}),G=computed({get:()=>l.value?l.value.fallbackLocale.value:L.value,set:I=>{l.value&&(l.value.fallbackLocale.value=I),L.value=I}}),$=computed(()=>l.value?l.value.messages.value:W.value),X=computed(()=>Y.value),pe=computed(()=>U.value);function de(){return l.value?l.value.getPostTranslationHandler():q}function ge(I){l.value&&l.value.setPostTranslationHandler(I)}function ve(){return l.value?l.value.getMissingHandler():re}function Ae(I){l.value&&l.value.setMissingHandler(I)}function Ce(I){return ne(),I()}function Ee(...I){return l.value?Ce(()=>Reflect.apply(l.value.t,null,[...I])):Ce(()=>"")}function Re(...I){return l.value?Reflect.apply(l.value.rt,null,[...I]):""}function Oe(...I){return l.value?Ce(()=>Reflect.apply(l.value.d,null,[...I])):Ce(()=>"")}function Fe(...I){return l.value?Ce(()=>Reflect.apply(l.value.n,null,[...I])):Ce(()=>"")}function Me(I){return l.value?l.value.tm(I):{}}function he(I,F){return l.value?l.value.te(I,F):!1}function Le(I){return l.value?l.value.getLocaleMessage(I):{}}function fe(I,F){l.value&&(l.value.setLocaleMessage(I,F),W.value[I]=F)}function Pe(I,F){l.value&&l.value.mergeLocaleMessage(I,F)}function ke(I){return l.value?l.value.getDateTimeFormat(I):{}}function De(I,F){l.value&&(l.value.setDateTimeFormat(I,F),Y.value[I]=F)}function Ie(I,F){l.value&&l.value.mergeDateTimeFormat(I,F)}function be(I){return l.value?l.value.getNumberFormat(I):{}}function D(I,F){l.value&&(l.value.setNumberFormat(I,F),U.value[I]=F)}function M(I,F){l.value&&l.value.mergeNumberFormat(I,F)}const B={get id(){return l.value?l.value.id:-1},locale:ie,fallbackLocale:G,messages:$,datetimeFormats:X,numberFormats:pe,get inheritLocale(){return l.value?l.value.inheritLocale:C},set inheritLocale(I){l.value&&(l.value.inheritLocale=I)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(W.value)},get modifiers(){return l.value?l.value.modifiers:te},get pluralRules(){return l.value?l.value.pluralRules:oe},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:V},set missingWarn(I){l.value&&(l.value.missingWarn=I)},get fallbackWarn(){return l.value?l.value.fallbackWarn:J},set fallbackWarn(I){l.value&&(l.value.missingWarn=I)},get fallbackRoot(){return l.value?l.value.fallbackRoot:ce},set fallbackRoot(I){l.value&&(l.value.fallbackRoot=I)},get fallbackFormat(){return l.value?l.value.fallbackFormat:se},set fallbackFormat(I){l.value&&(l.value.fallbackFormat=I)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:Q},set warnHtmlMessage(I){l.value&&(l.value.warnHtmlMessage=I)},get escapeParameter(){return l.value?l.value.escapeParameter:ae},set escapeParameter(I){l.value&&(l.value.escapeParameter=I)},t:Ee,getPostTranslationHandler:de,setPostTranslationHandler:ge,getMissingHandler:ve,setMissingHandler:Ae,rt:Re,d:Oe,n:Fe,tm:Me,te:he,getLocaleMessage:Le,setLocaleMessage:fe,mergeLocaleMessage:Pe,getDateTimeFormat:ke,setDateTimeFormat:De,mergeDateTimeFormat:Ie,getNumberFormat:be,setNumberFormat:D,mergeNumberFormat:M};function R(I){I.locale.value=A.value,I.fallbackLocale.value=L.value,Object.keys(W.value).forEach(F=>{I.mergeLocaleMessage(F,W.value[F])}),Object.keys(Y.value).forEach(F=>{I.mergeDateTimeFormat(F,Y.value[F])}),Object.keys(U.value).forEach(F=>{I.mergeNumberFormat(F,U.value[F])}),I.escapeParameter=ae,I.fallbackFormat=se,I.fallbackRoot=ce,I.fallbackWarn=J,I.missingWarn=V,I.warnHtmlMessage=Q}return onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=l.value=e.proxy.$i18n.__composer;t==="global"?(A.value=I.locale.value,L.value=I.fallbackLocale.value,W.value=I.messages.value,Y.value=I.datetimeFormats.value,U.value=I.numberFormats.value):c&&R(I)}),B}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);return globalExportProps.forEach(c=>{const l=Object.getOwnPropertyDescriptor(t,c);if(!l)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const C=isRef(l.value)?{get(){return l.value.value},set(A){l.value.value=A}}:{get(){return l.get&&l.get()}};Object.defineProperty(n,c,C)}),e.config.globalProperties.$i18n=n,globalExportMethods.forEach(c=>{const l=Object.getOwnPropertyDescriptor(t,c);if(!l||!l.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${c}`,l)}),()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach(c=>{delete e.config.globalProperties[`$${c}`]})}}if(initFeatureFlags(),__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis$1();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const useLocale=e=>{const{t,te:n}=createI18n({mode:"composition",locale:e,messages:{en:{streaming:d,common:p,ruleSQL:y,aiLog:T,ruleFunction:f,flow:P},zh:{streaming:m,common:h$1,ruleSQL:v,aiLog:S,ruleFunction:b,flow:w},ja:{streaming:u,common:_,ruleSQL:k,aiLog:T,ruleFunction:g,flow:x}}}).global;return{t,te:n}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var papaparse_min={exports:{}};/* @license
44
+ Papa Parse
45
+ v5.4.1
46
+ https://github.com/mholt/PapaParse
47
+ License: MIT
48
+ */(function(e,t){(function(n,s){e.exports=s()})(commonjsGlobal,function n(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},c=!s.document&&!!s.postMessage,l=s.IS_PAPA_WORKER||!1,C={},A=0,L={parse:function(G,$){var X=($=$||{}).dynamicTyping||!1;if(ie(X)&&($.dynamicTypingFunction=X,X={}),$.dynamicTyping=X,$.transform=!!ie($.transform)&&$.transform,$.worker&&L.WORKERS_SUPPORTED){var pe=function(){if(!L.WORKERS_SUPPORTED)return!1;var ge=(Ae=s.URL||s.webkitURL||null,Ce=n.toString(),L.BLOB_URL||(L.BLOB_URL=Ae.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Ce,")();"],{type:"text/javascript"})))),ve=new s.Worker(ge),Ae,Ce;return ve.onmessage=Q,ve.id=A++,C[ve.id]=ve}();return pe.userStep=$.step,pe.userChunk=$.chunk,pe.userComplete=$.complete,pe.userError=$.error,$.step=ie($.step),$.chunk=ie($.chunk),$.complete=ie($.complete),$.error=ie($.error),delete $.worker,void pe.postMessage({input:G,config:$,workerId:pe.id})}var de=null;return L.NODE_STREAM_INPUT,typeof G=="string"?(G=function(ge){return ge.charCodeAt(0)===65279?ge.slice(1):ge}(G),de=$.download?new U($):new J($)):G.readable===!0&&ie(G.read)&&ie(G.on)?de=new ce($):(s.File&&G instanceof File||G instanceof Object)&&(de=new V($)),de.stream(G)},unparse:function(G,$){var X=!1,pe=!0,de=",",ge=`\r
49
+ `,ve='"',Ae=ve+ve,Ce=!1,Ee=null,Re=!1;(function(){if(typeof $=="object"){if(typeof $.delimiter!="string"||L.BAD_DELIMITERS.filter(function(he){return $.delimiter.indexOf(he)!==-1}).length||(de=$.delimiter),(typeof $.quotes=="boolean"||typeof $.quotes=="function"||Array.isArray($.quotes))&&(X=$.quotes),typeof $.skipEmptyLines!="boolean"&&typeof $.skipEmptyLines!="string"||(Ce=$.skipEmptyLines),typeof $.newline=="string"&&(ge=$.newline),typeof $.quoteChar=="string"&&(ve=$.quoteChar),typeof $.header=="boolean"&&(pe=$.header),Array.isArray($.columns)){if($.columns.length===0)throw new Error("Option columns is empty");Ee=$.columns}$.escapeChar!==void 0&&(Ae=$.escapeChar+ve),(typeof $.escapeFormulae=="boolean"||$.escapeFormulae instanceof RegExp)&&(Re=$.escapeFormulae instanceof RegExp?$.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var Oe=new RegExp(re(ve),"g");if(typeof G=="string"&&(G=JSON.parse(G)),Array.isArray(G)){if(!G.length||Array.isArray(G[0]))return Fe(null,G,Ce);if(typeof G[0]=="object")return Fe(Ee||Object.keys(G[0]),G,Ce)}else if(typeof G=="object")return typeof G.data=="string"&&(G.data=JSON.parse(G.data)),Array.isArray(G.data)&&(G.fields||(G.fields=G.meta&&G.meta.fields||Ee),G.fields||(G.fields=Array.isArray(G.data[0])?G.fields:typeof G.data[0]=="object"?Object.keys(G.data[0]):[]),Array.isArray(G.data[0])||typeof G.data[0]=="object"||(G.data=[G.data])),Fe(G.fields||[],G.data||[],Ce);throw new Error("Unable to serialize unrecognized input");function Fe(he,Le,fe){var Pe="";typeof he=="string"&&(he=JSON.parse(he)),typeof Le=="string"&&(Le=JSON.parse(Le));var ke=Array.isArray(he)&&0<he.length,De=!Array.isArray(Le[0]);if(ke&&pe){for(var Ie=0;Ie<he.length;Ie++)0<Ie&&(Pe+=de),Pe+=Me(he[Ie],Ie);0<Le.length&&(Pe+=ge)}for(var be=0;be<Le.length;be++){var D=ke?he.length:Le[be].length,M=!1,B=ke?Object.keys(Le[be]).length===0:Le[be].length===0;if(fe&&!ke&&(M=fe==="greedy"?Le[be].join("").trim()==="":Le[be].length===1&&Le[be][0].length===0),fe==="greedy"&&ke){for(var R=[],I=0;I<D;I++){var F=De?he[I]:I;R.push(Le[be][F])}M=R.join("").trim()===""}if(!M){for(var H=0;H<D;H++){0<H&&!B&&(Pe+=de);var j=ke&&De?he[H]:H;Pe+=Me(Le[be][j],H)}be<Le.length-1&&(!fe||0<D&&!B)&&(Pe+=ge)}}return Pe}function Me(he,Le){if(he==null)return"";if(he.constructor===Date)return JSON.stringify(he).slice(1,25);var fe=!1;Re&&typeof he=="string"&&Re.test(he)&&(he="'"+he,fe=!0);var Pe=he.toString().replace(Oe,Ae);return(fe=fe||X===!0||typeof X=="function"&&X(he,Le)||Array.isArray(X)&&X[Le]||function(ke,De){for(var Ie=0;Ie<De.length;Ie++)if(-1<ke.indexOf(De[Ie]))return!0;return!1}(Pe,L.BAD_DELIMITERS)||-1<Pe.indexOf(de)||Pe.charAt(0)===" "||Pe.charAt(Pe.length-1)===" ")?ve+Pe+ve:Pe}}};if(L.RECORD_SEP=String.fromCharCode(30),L.UNIT_SEP=String.fromCharCode(31),L.BYTE_ORDER_MARK="\uFEFF",L.BAD_DELIMITERS=["\r",`
50
+ `,'"',L.BYTE_ORDER_MARK],L.WORKERS_SUPPORTED=!c&&!!s.Worker,L.NODE_STREAM_INPUT=1,L.LocalChunkSize=10485760,L.RemoteChunkSize=5242880,L.DefaultDelimiter=",",L.Parser=q,L.ParserHandle=se,L.NetworkStreamer=U,L.FileStreamer=V,L.StringStreamer=J,L.ReadableStreamStreamer=ce,s.jQuery){var W=s.jQuery;W.fn.parse=function(G){var $=G.config||{},X=[];return this.each(function(ge){if(!(W(this).prop("tagName").toUpperCase()==="INPUT"&&W(this).attr("type").toLowerCase()==="file"&&s.FileReader)||!this.files||this.files.length===0)return!0;for(var ve=0;ve<this.files.length;ve++)X.push({file:this.files[ve],inputElem:this,instanceConfig:W.extend({},$)})}),pe(),this;function pe(){if(X.length!==0){var ge,ve,Ae,Ce,Ee=X[0];if(ie(G.before)){var Re=G.before(Ee.file,Ee.inputElem);if(typeof Re=="object"){if(Re.action==="abort")return ge="AbortError",ve=Ee.file,Ae=Ee.inputElem,Ce=Re.reason,void(ie(G.error)&&G.error({name:ge},ve,Ae,Ce));if(Re.action==="skip")return void de();typeof Re.config=="object"&&(Ee.instanceConfig=W.extend(Ee.instanceConfig,Re.config))}else if(Re==="skip")return void de()}var Oe=Ee.instanceConfig.complete;Ee.instanceConfig.complete=function(Fe){ie(Oe)&&Oe(Fe,Ee.file,Ee.inputElem),de()},L.parse(Ee.file,Ee.instanceConfig)}else ie(G.complete)&&G.complete()}function de(){X.splice(0,1),pe()}}}function Y(G){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function($){var X=oe($);X.chunkSize=parseInt(X.chunkSize),$.step||$.chunk||(X.chunkSize=null),this._handle=new se(X),(this._handle.streamer=this)._config=X}).call(this,G),this.parseChunk=function($,X){if(this.isFirstChunk&&ie(this._config.beforeFirstChunk)){var pe=this._config.beforeFirstChunk($);pe!==void 0&&($=pe)}this.isFirstChunk=!1,this._halted=!1;var de=this._partialLine+$;this._partialLine="";var ge=this._handle.parse(de,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var ve=ge.meta.cursor;this._finished||(this._partialLine=de.substring(ve-this._baseIndex),this._baseIndex=ve),ge&&ge.data&&(this._rowCount+=ge.data.length);var Ae=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(l)s.postMessage({results:ge,workerId:L.WORKER_ID,finished:Ae});else if(ie(this._config.chunk)&&!X){if(this._config.chunk(ge,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);ge=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(ge.data),this._completeResults.errors=this._completeResults.errors.concat(ge.errors),this._completeResults.meta=ge.meta),this._completed||!Ae||!ie(this._config.complete)||ge&&ge.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Ae||ge&&ge.meta.paused||this._nextChunk(),ge}this._halted=!0},this._sendError=function($){ie(this._config.error)?this._config.error($):l&&this._config.error&&s.postMessage({workerId:L.WORKER_ID,error:$,finished:!1})}}function U(G){var $;(G=G||{}).chunkSize||(G.chunkSize=L.RemoteChunkSize),Y.call(this,G),this._nextChunk=c?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(X){this._input=X,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if($=new XMLHttpRequest,this._config.withCredentials&&($.withCredentials=this._config.withCredentials),c||($.onload=ne(this._chunkLoaded,this),$.onerror=ne(this._chunkError,this)),$.open(this._config.downloadRequestBody?"POST":"GET",this._input,!c),this._config.downloadRequestHeaders){var X=this._config.downloadRequestHeaders;for(var pe in X)$.setRequestHeader(pe,X[pe])}if(this._config.chunkSize){var de=this._start+this._config.chunkSize-1;$.setRequestHeader("Range","bytes="+this._start+"-"+de)}try{$.send(this._config.downloadRequestBody)}catch(ge){this._chunkError(ge.message)}c&&$.status===0&&this._chunkError()}},this._chunkLoaded=function(){$.readyState===4&&($.status<200||400<=$.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:$.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(X){var pe=X.getResponseHeader("Content-Range");return pe===null?-1:parseInt(pe.substring(pe.lastIndexOf("/")+1))}($),this.parseChunk($.responseText)))},this._chunkError=function(X){var pe=$.statusText||X;this._sendError(new Error(pe))}}function V(G){var $,X;(G=G||{}).chunkSize||(G.chunkSize=L.LocalChunkSize),Y.call(this,G);var pe=typeof FileReader<"u";this.stream=function(de){this._input=de,X=de.slice||de.webkitSlice||de.mozSlice,pe?(($=new FileReader).onload=ne(this._chunkLoaded,this),$.onerror=ne(this._chunkError,this)):$=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var de=this._input;if(this._config.chunkSize){var ge=Math.min(this._start+this._config.chunkSize,this._input.size);de=X.call(de,this._start,ge)}var ve=$.readAsText(de,this._config.encoding);pe||this._chunkLoaded({target:{result:ve}})},this._chunkLoaded=function(de){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(de.target.result)},this._chunkError=function(){this._sendError($.error)}}function J(G){var $;Y.call(this,G=G||{}),this.stream=function(X){return $=X,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var X,pe=this._config.chunkSize;return pe?(X=$.substring(0,pe),$=$.substring(pe)):(X=$,$=""),this._finished=!$,this.parseChunk(X)}}}function ce(G){Y.call(this,G=G||{});var $=[],X=!0,pe=!1;this.pause=function(){Y.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Y.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(de){this._input=de,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){pe&&$.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),$.length?this.parseChunk($.shift()):X=!0},this._streamData=ne(function(de){try{$.push(typeof de=="string"?de:de.toString(this._config.encoding)),X&&(X=!1,this._checkIsFinished(),this.parseChunk($.shift()))}catch(ge){this._streamError(ge)}},this),this._streamError=ne(function(de){this._streamCleanUp(),this._sendError(de)},this),this._streamEnd=ne(function(){this._streamCleanUp(),pe=!0,this._streamData("")},this),this._streamCleanUp=ne(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function se(G){var $,X,pe,de=Math.pow(2,53),ge=-de,ve=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Ae=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Ce=this,Ee=0,Re=0,Oe=!1,Fe=!1,Me=[],he={data:[],errors:[],meta:{}};if(ie(G.step)){var Le=G.step;G.step=function(be){if(he=be,ke())Pe();else{if(Pe(),he.data.length===0)return;Ee+=be.data.length,G.preview&&Ee>G.preview?X.abort():(he.data=he.data[0],Le(he,Ce))}}}function fe(be){return G.skipEmptyLines==="greedy"?be.join("").trim()==="":be.length===1&&be[0].length===0}function Pe(){return he&&pe&&(Ie("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+L.DefaultDelimiter+"'"),pe=!1),G.skipEmptyLines&&(he.data=he.data.filter(function(be){return!fe(be)})),ke()&&function(){if(!he)return;function be(M,B){ie(G.transformHeader)&&(M=G.transformHeader(M,B)),Me.push(M)}if(Array.isArray(he.data[0])){for(var D=0;ke()&&D<he.data.length;D++)he.data[D].forEach(be);he.data.splice(0,1)}else he.data.forEach(be)}(),function(){if(!he||!G.header&&!G.dynamicTyping&&!G.transform)return he;function be(M,B){var R,I=G.header?{}:[];for(R=0;R<M.length;R++){var F=R,H=M[R];G.header&&(F=R>=Me.length?"__parsed_extra":Me[R]),G.transform&&(H=G.transform(H,F)),H=De(F,H),F==="__parsed_extra"?(I[F]=I[F]||[],I[F].push(H)):I[F]=H}return G.header&&(R>Me.length?Ie("FieldMismatch","TooManyFields","Too many fields: expected "+Me.length+" fields but parsed "+R,Re+B):R<Me.length&&Ie("FieldMismatch","TooFewFields","Too few fields: expected "+Me.length+" fields but parsed "+R,Re+B)),I}var D=1;return!he.data.length||Array.isArray(he.data[0])?(he.data=he.data.map(be),D=he.data.length):he.data=be(he.data,0),G.header&&he.meta&&(he.meta.fields=Me),Re+=D,he}()}function ke(){return G.header&&Me.length===0}function De(be,D){return M=be,G.dynamicTypingFunction&&G.dynamicTyping[M]===void 0&&(G.dynamicTyping[M]=G.dynamicTypingFunction(M)),(G.dynamicTyping[M]||G.dynamicTyping)===!0?D==="true"||D==="TRUE"||D!=="false"&&D!=="FALSE"&&(function(B){if(ve.test(B)){var R=parseFloat(B);if(ge<R&&R<de)return!0}return!1}(D)?parseFloat(D):Ae.test(D)?new Date(D):D===""?null:D):D;var M}function Ie(be,D,M,B){var R={type:be,code:D,message:M};B!==void 0&&(R.row=B),he.errors.push(R)}this.parse=function(be,D,M){var B=G.quoteChar||'"';if(G.newline||(G.newline=function(F,H){F=F.substring(0,1048576);var j=new RegExp(re(H)+"([^]*?)"+re(H),"gm"),K=(F=F.replace(j,"")).split("\r"),Z=F.split(`
51
+ `),z=1<Z.length&&Z[0].length<K[0].length;if(K.length===1||z)return`
52
+ `;for(var ue=0,me=0;me<K.length;me++)K[me][0]===`
53
+ `&&ue++;return ue>=K.length/2?`\r
54
+ `:"\r"}(be,B)),pe=!1,G.delimiter)ie(G.delimiter)&&(G.delimiter=G.delimiter(be),he.meta.delimiter=G.delimiter);else{var R=function(F,H,j,K,Z){var z,ue,me,_e;Z=Z||[","," ","|",";",L.RECORD_SEP,L.UNIT_SEP];for(var ye=0;ye<Z.length;ye++){var Se=Z[ye],Ne=0,ee=0,le=0;me=void 0;for(var Te=new q({comments:K,delimiter:Se,newline:H,preview:10}).parse(F),we=0;we<Te.data.length;we++)if(j&&fe(Te.data[we]))le++;else{var je=Te.data[we].length;ee+=je,me!==void 0?0<je&&(Ne+=Math.abs(je-me),me=je):me=je}0<Te.data.length&&(ee/=Te.data.length-le),(ue===void 0||Ne<=ue)&&(_e===void 0||_e<ee)&&1.99<ee&&(ue=Ne,z=Se,_e=ee)}return{successful:!!(G.delimiter=z),bestDelimiter:z}}(be,G.newline,G.skipEmptyLines,G.comments,G.delimitersToGuess);R.successful?G.delimiter=R.bestDelimiter:(pe=!0,G.delimiter=L.DefaultDelimiter),he.meta.delimiter=G.delimiter}var I=oe(G);return G.preview&&G.header&&I.preview++,$=be,X=new q(I),he=X.parse($,D,M),Pe(),Oe?{meta:{paused:!0}}:he||{meta:{paused:!1}}},this.paused=function(){return Oe},this.pause=function(){Oe=!0,X.abort(),$=ie(G.chunk)?"":$.substring(X.getCharIndex())},this.resume=function(){Ce.streamer._halted?(Oe=!1,Ce.streamer.parseChunk($,!0)):setTimeout(Ce.resume,3)},this.aborted=function(){return Fe},this.abort=function(){Fe=!0,X.abort(),he.meta.aborted=!0,ie(G.complete)&&G.complete(he),$=""}}function re(G){return G.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q(G){var $,X=(G=G||{}).delimiter,pe=G.newline,de=G.comments,ge=G.step,ve=G.preview,Ae=G.fastMode,Ce=$=G.quoteChar===void 0||G.quoteChar===null?'"':G.quoteChar;if(G.escapeChar!==void 0&&(Ce=G.escapeChar),(typeof X!="string"||-1<L.BAD_DELIMITERS.indexOf(X))&&(X=","),de===X)throw new Error("Comment character same as delimiter");de===!0?de="#":(typeof de!="string"||-1<L.BAD_DELIMITERS.indexOf(de))&&(de=!1),pe!==`
55
+ `&&pe!=="\r"&&pe!==`\r
56
+ `&&(pe=`
57
+ `);var Ee=0,Re=!1;this.parse=function(Oe,Fe,Me){if(typeof Oe!="string")throw new Error("Input must be a string");var he=Oe.length,Le=X.length,fe=pe.length,Pe=de.length,ke=ie(ge),De=[],Ie=[],be=[],D=Ee=0;if(!Oe)return Be();if(G.header&&!Fe){var M=Oe.split(pe)[0].split(X),B=[],R={},I=!1;for(var F in M){var H=M[F];ie(G.transformHeader)&&(H=G.transformHeader(H,F));var j=H,K=R[H]||0;for(0<K&&(I=!0,j=H+"_"+K),R[H]=K+1;B.includes(j);)j=j+"_"+K;B.push(j)}if(I){var Z=Oe.split(pe);Z[0]=B.join(X),Oe=Z.join(pe)}}if(Ae||Ae!==!1&&Oe.indexOf($)===-1){for(var z=Oe.split(pe),ue=0;ue<z.length;ue++){if(be=z[ue],Ee+=be.length,ue!==z.length-1)Ee+=pe.length;else if(Me)return Be();if(!de||be.substring(0,Pe)!==de){if(ke){if(De=[],le(be.split(X)),xe(),Re)return Be()}else le(be.split(X));if(ve&&ve<=ue)return De=De.slice(0,ve),Be(!0)}}return Be()}for(var me=Oe.indexOf(X,Ee),_e=Oe.indexOf(pe,Ee),ye=new RegExp(re(Ce)+re($),"g"),Se=Oe.indexOf($,Ee);;)if(Oe[Ee]!==$)if(de&&be.length===0&&Oe.substring(Ee,Ee+Pe)===de){if(_e===-1)return Be();Ee=_e+fe,_e=Oe.indexOf(pe,Ee),me=Oe.indexOf(X,Ee)}else if(me!==-1&&(me<_e||_e===-1))be.push(Oe.substring(Ee,me)),Ee=me+Le,me=Oe.indexOf(X,Ee);else{if(_e===-1)break;if(be.push(Oe.substring(Ee,_e)),je(_e+fe),ke&&(xe(),Re))return Be();if(ve&&De.length>=ve)return Be(!0)}else for(Se=Ee,Ee++;;){if((Se=Oe.indexOf($,Se+1))===-1)return Me||Ie.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:De.length,index:Ee}),we();if(Se===he-1)return we(Oe.substring(Ee,Se).replace(ye,$));if($!==Ce||Oe[Se+1]!==Ce){if($===Ce||Se===0||Oe[Se-1]!==Ce){me!==-1&&me<Se+1&&(me=Oe.indexOf(X,Se+1)),_e!==-1&&_e<Se+1&&(_e=Oe.indexOf(pe,Se+1));var Ne=Te(_e===-1?me:Math.min(me,_e));if(Oe.substr(Se+1+Ne,Le)===X){be.push(Oe.substring(Ee,Se).replace(ye,$)),Oe[Ee=Se+1+Ne+Le]!==$&&(Se=Oe.indexOf($,Ee)),me=Oe.indexOf(X,Ee),_e=Oe.indexOf(pe,Ee);break}var ee=Te(_e);if(Oe.substring(Se+1+ee,Se+1+ee+fe)===pe){if(be.push(Oe.substring(Ee,Se).replace(ye,$)),je(Se+1+ee+fe),me=Oe.indexOf(X,Ee),Se=Oe.indexOf($,Ee),ke&&(xe(),Re))return Be();if(ve&&De.length>=ve)return Be(!0);break}Ie.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:De.length,index:Ee}),Se++}}else Se++}return we();function le($e){De.push($e),D=Ee}function Te($e){var We=0;if($e!==-1){var Ve=Oe.substring(Se+1,$e);Ve&&Ve.trim()===""&&(We=Ve.length)}return We}function we($e){return Me||($e===void 0&&($e=Oe.substring(Ee)),be.push($e),Ee=he,le(be),ke&&xe()),Be()}function je($e){Ee=$e,le(be),be=[],_e=Oe.indexOf(pe,Ee)}function Be($e){return{data:De,errors:Ie,meta:{delimiter:X,linebreak:pe,aborted:Re,truncated:!!$e,cursor:D+(Fe||0)}}}function xe(){ge(Be()),De=[],Ie=[]}},this.abort=function(){Re=!0},this.getCharIndex=function(){return Ee}}function Q(G){var $=G.data,X=C[$.workerId],pe=!1;if($.error)X.userError($.error,$.file);else if($.results&&$.results.data){var de={abort:function(){pe=!0,ae($.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:te,resume:te};if(ie(X.userStep)){for(var ge=0;ge<$.results.data.length&&(X.userStep({data:$.results.data[ge],errors:$.results.errors,meta:$.results.meta},de),!pe);ge++);delete $.results}else ie(X.userChunk)&&(X.userChunk($.results,de,$.file),delete $.results)}$.finished&&!pe&&ae($.workerId,$.results)}function ae(G,$){var X=C[G];ie(X.userComplete)&&X.userComplete($),X.terminate(),delete C[G]}function te(){throw new Error("Not implemented.")}function oe(G){if(typeof G!="object"||G===null)return G;var $=Array.isArray(G)?[]:{};for(var X in G)$[X]=oe(G[X]);return $}function ne(G,$){return function(){G.apply($,arguments)}}function ie(G){return typeof G=="function"}return l&&(s.onmessage=function(G){var $=G.data;if(L.WORKER_ID===void 0&&$&&(L.WORKER_ID=$.workerId),typeof $.input=="string")s.postMessage({workerId:L.WORKER_ID,results:L.parse($.input,$.config),finished:!0});else if(s.File&&$.input instanceof File||$.input instanceof Object){var X=L.parse($.input,$.config);X&&s.postMessage({workerId:L.WORKER_ID,results:X,finished:!0})}}),(U.prototype=Object.create(Y.prototype)).constructor=U,(V.prototype=Object.create(Y.prototype)).constructor=V,(J.prototype=Object.create(J.prototype)).constructor=J,(ce.prototype=Object.create(Y.prototype)).constructor=ce,L})})(papaparse_min);var papaparse_minExports=papaparse_min.exports;const Papa=getDefaultExportFromCjs(papaparse_minExports),downloadFile=(e,t)=>{const n=document.createElement("a");n.style.display="none",n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},createDownloadBlobLink=(e,t)=>{const n=window.URL.createObjectURL(new Blob([e]));downloadFile(n,t),window.URL.revokeObjectURL(n)},useBatchSettings=(e="en")=>{const t=createI18n({locale:e,messages:{en:{iotdbTemplateRemark:"Measurement, Value, and Data Type are required fields. The Data Type can have the optional values boolean, int32, int64, float, double, text.",invalidIsCharFlag:"Invalid Char Value field: {isChar}",uploadMaxRowsError:"The number of rows in the CSV file exceeds the limit. Up to {max} rows of data are supported except for the header",influxdbTemplateRemark:"Append an i to the field value to tell InfluxDB to store the number as an integer.",datalayersTemplateRemark:"Append an i to the field value to tell Datalayers to store the number as an integer."},zh:{iotdbTemplateRemark:"字段、值、数据类型是必填选项,数据类型可选的值为 boolean、int32、int64、float、double、text",invalidIsCharFlag:"无效的字符标识符值:{isChar}",uploadMaxRowsError:"CSV 文件行数超过限制,除表头外,最多支持 {max} 行数据",influxdbTemplateRemark:"在字段值后追加 i,InfluxDB 则将该数值存储为整数类型。",datalayersTemplateRemark:"在字段值后追加 i,Datalayers 则将该数值存储为整数类型。"}}}),{t:n}=t.global,s={influxdb:"InfluxDB",tdengine:"TDengine",iotdb:"IoTDB",datalayers:"Datalayers"},c={tdengine:`Field,Value,Char Value,Remarks (Optional)
65
58
  ts,now,FALSE,Example Remark
66
59
  msgid,\${id},TRUE,
67
60
  mqtt_topic,\${topic},TRUE,
@@ -82,6 +75,19 @@ precip,\${payload.precip}i,"${n("influxdbTemplateRemark")}"
82
75
  temp,\${payload.temp},
83
76
  hum,\${payload.hum},
84
77
  precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
85
- `};return{filenameMap:r,templateContentMap:i,handleDownloadTemp:(O,g)=>{if(O){const N=new Blob([O],{type:"text/csv"});Es(N,`${g}_template.csv`)}else console.error("Template is empty")},readFileAndParse:async(O,g)=>new Promise((N,I)=>{const H=new FileReader;H.onload=M=>{if(!M.target)return I(new Error("FileReader event target is null"));const x=M.target.result,$=co.parse(x,{skipEmptyLines:"greedy"});$.errors.length>0&&I(new Error("Failed to parse CSV data: "+$.errors[0].message)),$.data.length>g+1?I(new Error(n("uploadMaxRowsError",{max:g}))):N($.data)},H.onerror=()=>{I(new Error("An error occurred while reading the file"))},H.onabort=()=>{I(new Error("File reading was aborted"))},H.readAsText(O)}),processIoTDBData:O=>new Promise((g,N)=>{try{const I=["boolean","int32","int64","float","double","text"],H=O.slice(1).filter(M=>M.length>=4&&M.slice(0,4).every(x=>x&&x.trim()!=="")).map(M=>{const[x,$,V,S]=M;if(!I.includes(V))throw new Error(`Invalid data type: ${V}`);return{timestamp:x,measurement:$,data_type:V,value:S}});g(H)}catch(I){N(I)}}),processTDengineData:O=>new Promise((g,N)=>{try{const I="<table>",H=[],M=[];for(let $=1;$<O.length;$++){const[V,S,k]=O[$];if(!V||!S)continue;H.push(V);const F=["true","TRUE","1","",void 0].includes(k==null?void 0:k.trim()),L=["false","FALSE","0"].includes(k==null?void 0:k.trim());if(F)M.push(`'${S}'`);else if(L)M.push(S);else throw new Error(n("invalidIsCharFlag",{isChar:k}))}const x=`insert into ${I}(${H.join(", ")}) values (${M.join(", ")})`;g(x)}catch(I){N(I)}}),processInfluxDBData:O=>new Promise((g,N)=>{try{const I=[];for(let H=1;H<O.length;H++){const[M,x]=O[H];!M||!x||I.push({key:M,value:x})}g(I)}catch(I){N(I)}})}},Df={title:"Streaming (beta)",streams:"Streams",streamName:"Stream Name",partitionNum:"Number of Partitions",mqttTopic:"MQTT Topic Filter",mqttTopicTip:"MQTT messages matching this topic filter are saved to the corresponding default type Stream. The free type Stream is not associated with an MQTT topic filter.",streamNameTip:"The Kafka topic for a Kafka client is the same as the Stream name.",retention:"Retention Period",consumerGroups:"Consumer Groups",groupID:"Group ID",streamNum:"Number of Streams",consumerNum:"Number of Consumers",protocol:"Protocol",consumers:"Consumers",consumerID:"Consumer ID",partition:"Partition",startOffset:"Start Offset",endOffset:"End Offset",partitions:"Partitions",newStream:"New Stream",streamNameFormatTip:"Start with a letter or number and can include letters, numbers, _, . and -, up to 64 characters",maxStreamsTip:"Up to {num} streams can be created",summary:"EMQX Streaming is an innovative feature of EMQX Platform that allows users to persistently store MQTT messages as data streams and consume them directly using Kafka clients.",enableStreaming:"Enable Streaming (beta)",usingStreaming:"With EMQX Streaming, you can:",streamingBenefits:["Reliably store large amounts of MQTT message data","Directly use Kafka clients for historical data replay and real-time subscription","Seamlessly integrate with existing backend applications and big data systems","Directly interface with stream processors like Flink for data processing"],betaTip:"This feature is in beta.",needVPCTip:"Streaming requires intranet access, please create a {vpc} first.",mqttTopicFormatTip:"Can contain letters, numbers, special characters (_, -, /, +, #, $, %, {'@'}, &, :, {'{'}{'}'} and .) and mid-string spaces (no leading/trailing spaces), up to 128 characters",streamType:"Stream Type",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"The default type Stream is associated with an MQTT topic filter, and MQTT messages matching the topic filter are saved to the Stream. The free type Stream is not associated with an MQTT topic filter.",authType:"Authentication Mechanism",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"Resource Type",aclResourceName:"Resource Selector",aclOperation:"Operation",prefixed:"Prefix",consumerGroupType:"Consumer Group",clusterType:"Cluster",literal:"Literal",matchAll:"All",allow:"Allow",deny:"Deny",aclOperationLabelDic:{ALL:"All",READ:"Read",WRITE:"Write",DESCRIBE:"Describe",CREATE:"Create",DELETE:"Delete",ALTER:"Alter"},usernameRule:"Can contain letters, numbers and some special characters (_, -, /, +, #, $, %, {'@'}, & and .), up to 128 characters",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
86
- The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"Streams",partition_count:"Partitions",group_count:"Consumer Groups",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},wf={title:"Streaming (beta)",streams:"Streams",streamName:"Stream 名称",partitionNum:"分区数量",mqttTopic:"MQTT 主题过滤器",mqttTopicTip:"匹配主题过滤器的 MQTT 消息会被保存到对应的 Default 类型的 Stream 中。Free 类型的 Stream 不与 MQTT 主题过滤器关联。",streamNameTip:"Kafka 客户端看到的 Kafka Topic 的名称和 Stream 名称相同。",retention:"保留天数",consumerGroups:"消费者组",groupID:"组 ID",streamNum:"Stream 数量",consumerNum:"消费者数量",protocol:"协议",consumers:"消费者列表",consumerID:"消费者 ID",partition:"分区",startOffset:"起始偏移量",endOffset:"结束偏移量",partitions:"分区列表",newStream:"新建 Stream",streamNameFormatTip:"以字母或数字开头,可包含字母、数字、下划线(_)、连字符(-)和点号(.),最长 64 个字符",maxStreamsTip:"最多可创建 {num} 个 Stream",summary:"EMQX Streaming 是 EMQX Platform 的一项创新特性,它允许用户将 MQTT 消息持久化存储为数据流,并直接使用 Kafka 客户端进行消费。",enableStreaming:"开通 Streaming (beta)",usingStreaming:"使用 EMQX Streaming,您可以:",streamingBenefits:["可靠地存储大量的 MQTT 消息数据","直接使用 Kafka 客户端进行历史数据回放和实时订阅","无缝集成现有的后端应用程序和大数据系统","直接与 Flink 等流处理器对接进行实时数据处理"],betaTip:"此功能目前处于公测阶段。",needVPCTip:"Streaming 功能需要内网访问,在开通前请先创建 {vpc}。",mqttTopicFormatTip:"可包含字母、数字、部分特殊字符(_、-、/、+、#、$、%、{'@'}、&、:、{'{'}{'}'} 和 .)及中间空格(无首尾空格),最长 128 个字符",streamType:"Stream 类型",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"Default 类型的 Stream 关联 MQTT 主题过滤器,且匹配主题过滤器的 MQTT 消息会被保存到 Stream 中。Free 类型的 Stream 不关联 MQTT 主题过滤器。",authType:"认证方式",host:"Host",hostTip:"填写 Host IP 地址或者使用 <code>*</code> 匹配所有 Host。<br/>如果您选择了 <code>精确匹配</code> 模式,则应提供一个 Host IP 地址。",aclResourceType:"资源类型",aclResourceName:"目标值",aclOperation:"操作类型",prefixed:"前缀匹配",consumerGroupType:"消费者组",clusterType:"集群",literal:"精确匹配",matchAll:"匹配所有",allow:"允许",deny:"不允许",aclOperationLabelDic:{ALL:"全部操作",READ:"读",WRITE:"写",DESCRIBE:"查看详情",CREATE:"创建",DELETE:"删除",ALTER:"更改"},usernameRule:"可包含字母、数字和部分特殊字符(_、-、/、+、#、$、%、{'@'}、& 和 .),最长 128 个字符",aclDescription:"是指对 Kafka 客户端所能操作的资源,包括主题、消费者组和集群等的权限控制。采用白名单模式,即只有在白名单中的条目才能通过,未在白名单中的则默认被拒绝。",networkType:"网络类型",securityProtocol:"安全协议",metricTitleDic:{stream_count:"Stream 数",partition_count:"分区数",group_count:"消费者组数",total_messages_in_rate:"消息流入速率",total_messages_out_rate:"消息流出速率"}},Af={title:"ストリーミング(ベータ)",streams:"ストリーム",streamName:"ストリーム名",partitionNum:"パーティション数",mqttTopic:"MQTT トピックフィルタ",mqttTopicTip:"このトピックフィルターに一致する MQTT メッセージは、対応する「Default」タイプのストリームに保存されます。「Free」タイプのストリームは MQTT トピックフィルターと関連付けられていません。",streamNameTip:"Kafka クライアントで使用する Kafka トピックは、ストリーム名と同じです。",retention:"保持期間",consumerGroups:"コンシューマーグループ",groupID:"グループ ID",streamNum:"ストリーム数",consumerNum:"コンシューマー数",protocol:"プロトコル",consumers:"コンシューマー",consumerID:"コンシューマー ID",partition:"パーティション",startOffset:"開始オフセット",endOffset:"終了オフセット",partitions:"パーティション",newStream:"新規ストリーム",streamNameFormatTip:"文字または数字で始まり、文字、数字、「_」、「.」、「-」を含む最大 64 文字",maxStreamsTip:"最大 {num} 個のストリームを作成できます",summary:"「EMQX Streaming」は、EMQX プラットフォームの革新的な機能で、MQTT メッセージをデータストリームとして永続的に保存し、Kafka クライアントから直接コンシュームできます。",enableStreaming:"ストリーミングを有効にする(ベータ)",usingStreaming:"「EMQX Streaming」を使用すると、以下のことが可能です:",streamingBenefits:["大量の MQTT メッセージデータを確実に保存","Kafka クライアントを直接使用して履歴データの再生とリアルタイムサブスクリプション","既存のバックエンドアプリケーションやビッグデータシステムとのシームレスな統合","Flink などのストリームプロセッサとの直接インターフェース"],betaTip:"この機能はベータ版です。",needVPCTip:"ストリーミングを利用するには内部ネットワークへのアクセスが必要です。まず{vpc}を作成してください。",mqttTopicFormatTip:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」、「:」、「{'{'}{'}'}」、中間の空白、および「.」のみ使え、最長 128 文字です",streamType:"ストリームタイプ",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"「Default」タイプのストリームは MQTT トピックフィルターと関連付けられており、そのフィルターに一致する MQTT メッセージがストリームに保存されます。Kafka クライアントからの「Free」タイプのストリームのは MQTT トピックフィルターと関連付けられていません。",authType:"認証方式",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"リソースタイプ",aclResourceName:"リソース値",aclOperation:"操作",prefixed:"プレフィックス",consumerGroupType:"コンシューマーグループ",clusterType:"クラスタ",literal:"リテラル",matchAll:"すべて",allow:"許可",deny:"拒否",aclOperationLabelDic:{ALL:"すべて",READ:"読み取り",WRITE:"書き込み",DESCRIBE:"説明",CREATE:"作成",DELETE:"削除",ALTER:"変更する"},usernameRule:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」および「.」のみ使え、最長 128 文字です",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
87
- The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"ストリーム数",partition_count:"パーティション数",group_count:"コンシューマーグループ数",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},Rf={access:"Permission",topic:"Topic",username:"Username",password:"Password",cancel:"Cancel",back:"Back",generate:"Generate"},Cf={access:"是否允许",topic:"主题",username:"用户名",password:"密码",cancel:"取消",back:"返回",generate:"生成"},Pf={access:"許可/拒否",topic:"トピック",username:"ユーザー名",password:"パスワード",cancel:"キャンセル",back:"戻り",generate:"生成"},kf={generateSQLByAIBtn:"SQL Generator",generateSQLWithAI:"Generate SQL with AI",taskDescPlaceholder:'Enter a natural language task description, e.g., "Select all fields from t/#"',taskDesc:"Task Description",relatedTopics:"Related Topics",relatedTopicsDesc:'Supports a single topic, or multiple topics (comma-separated, with +/# support), e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'Please enter related topics, e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"Input Example (JSON)",sqlExampleInputDesc:"Provide an example JSON for the input message",sqlExampleOutput:"Output Example (JSON)",sqlExampleOutputDesc:"Provide an example JSON for the output result",applySQL:"Apply SQL",generatedSQLOutputTitle:"Generated SQL",generatedSQLOutputDesc:"Please review the AI-generated SQL. You can apply it directly, or return to modify the description and regenerate."},Ff={generateSQLByAIBtn:"SQL 生成器",generateSQLWithAI:"使用 AI 生成 SQL",taskDescPlaceholder:'请输入自然语言的任务描述,例如:"从 t/# 主题选择所有字段"',taskDesc:"任务描述",relatedTopics:"相关主题",relatedTopicsDesc:'支持单个主题,或多个主题(请使用逗号分隔,支持 +/#),例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'请输入相关主题,例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"输入示例(JSON)",sqlExampleInputDesc:"提供一个输入消息的 JSON 示例",sqlExampleOutput:"输出示例(JSON)",sqlExampleOutputDesc:"提供一个输出结果的 JSON 示例",applySQL:"应用 SQL",generatedSQLOutputTitle:"生成的 SQL",generatedSQLOutputDesc:"请检查 AI 生成的 SQL。可直接应用,或返回修改描述并重新生成。"},Mf={generateSQLByAIBtn:"SQL ジェネレーター",generateSQLWithAI:"AI で SQL を生成",taskDescPlaceholder:"自然言語でタスク説明を入力してください。例:「t/# からすべてのフィールドを選択」",taskDesc:"タスク説明",relatedTopics:"関連トピック",relatedTopicsDesc:"単一トピックまたは複数トピック(カンマ区切り、+/# をサポート)を指定できます。例:「t/a」または「t/a, t/b/#, t/c/+/d」",relatedTopicsPlaceholder:"関連トピックを入力してください。例:「t/a」または「t/a, t/b/#, t/c/+/d」",sqlExampleInput:"入力例(JSON)",sqlExampleInputDesc:"入力メッセージのサンプル JSON を指定してください",sqlExampleOutput:"出力例(JSON)",sqlExampleOutputDesc:"出力結果のサンプル JSON を指定してください",applySQL:"SQL を適用",generatedSQLOutputTitle:"生成された SQL",generatedSQLOutputDesc:"AI が生成した SQL を確認してください。直接適用することも、説明を修正して再生成することもできます。"},is=e=>{const{t}=Ba({mode:"composition",locale:e,messages:{en:{streaming:Df,common:Rf,ruleSQL:kf},zh:{streaming:wf,common:Cf,ruleSQL:Ff},ja:{streaming:Af,common:Pf,ruleSQL:Mf}}}).global;return{t}};var Be=(e=>(e.All="ALL",e.Read="READ",e.Write="WRITE",e.Describe="DESCRIBE",e.Create="CREATE",e.Delete="DELETE",e.Alter="ALTER",e))(Be||{}),as=(e=>(e.Allow="ALLOW",e.Deny="DENY",e))(as||{}),$t=(e=>(e.Topic="TOPIC",e.Group="GROUP",e.Cluster="CLUSTER",e))($t||{});const Vf=e=>{const{t}=is(e),n=[{label:t("streaming.allow"),value:as.Allow},{label:t("streaming.deny"),value:as.Deny}],r=[{label:t("common.topic"),value:$t.Topic},{label:t("streaming.consumerGroupType"),value:$t.Group},{label:t("streaming.clusterType"),value:$t.Cluster}],i=Object.values(Be).map(o=>({label:t(`streaming.aclOperationLabelDic.${o}`),value:o})),s={[$t.Topic]:[Be.All,Be.Read,Be.Write,Be.Describe,Be.Create,Be.Delete],[$t.Group]:[Be.All,Be.Read,Be.Describe,Be.Delete],[$t.Cluster]:[Be.All,Be.Read,Be.Describe,Be.Alter]};return{permissionOptions:n,resourceTypeOptions:r,operationOptions:i,getValidOperations:o=>(s[o]||[]).map(p=>({label:t(`streaming.aclOperationLabelDic.${p}`),value:p}))}},Ha=[{groupLabel:"mathFunc",list:[{name:"abs",args:[{name:"Value",type:"number",required:!0}]},{name:"cos",args:[{name:"Value",type:"number",required:!0}]},{name:"cosh",args:[{name:"Value",type:"number",required:!0}]},{name:"acos",args:[{name:"Value",type:"number",required:!0}]},{name:"acosh",args:[{name:"Value",type:"number",required:!0}]},{name:"sin",args:[{name:"Value",type:"number",required:!0}]},{name:"sinh",args:[{name:"Value",type:"number",required:!0}]},{name:"asin",args:[{name:"Value",type:"number",required:!0}]},{name:"asinh",args:[{name:"Value",type:"number",required:!0}]},{name:"tan",args:[{name:"Value",type:"number",required:!0}]},{name:"tanh",args:[{name:"Value",type:"number",required:!0}]},{name:"atan",args:[{name:"Value",type:"number",required:!0}]},{name:"atanh",args:[{name:"Value",type:"number",required:!0}]},{name:"ceil",args:[{name:"Value",type:"number",required:!0}]},{name:"floor",args:[{name:"Value",type:"number",required:!0}]},{name:"round",args:[{name:"Value",type:"number",required:!0}]},{name:"exp",args:[{name:"Value",type:"number",required:!0}]},{name:"power",args:[{name:"Base",type:"number",required:!0},{name:"Exponent",type:"number",required:!0}]},{name:"sqrt",args:[{name:"Value",type:"number",required:!0}]},{name:"fmod",args:[{name:"Numer",type:"number",required:!0},{name:"Denom",type:"number",required:!0}]},{name:"log",args:[{name:"Value",type:"number",required:!0}]},{name:"log10",args:[{name:"Value",type:"number",required:!0}]},{name:"log2",args:[{name:"Value",type:"number",required:!0}]}]},{groupLabel:"dataTypeJudgmentFunc",list:[{name:"is_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_not_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_str",args:[{name:"Value",type:"any",required:!0}]},{name:"is_bool",args:[{name:"Value",type:"any",required:!0}]},{name:"is_int",args:[{name:"Value",type:"any",required:!0}]},{name:"is_float",args:[{name:"Value",type:"any",required:!0}]},{name:"is_num",args:[{name:"Value",type:"any",required:!0}]},{name:"is_map",args:[{name:"Value",type:"any",required:!0}]},{name:"is_array",args:[{name:"Value",type:"any",required:!0}]},{name:"is_empty",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"dataTypeConversionFunc",list:[{name:"str",args:[{name:"Value",type:"any",required:!0}]},{name:"str_utf8",args:[{name:"Value",type:"any",required:!0}]},{name:"bool",args:[{name:"Value",type:"any",required:!0}]},{name:"int",args:[{name:"Value",type:"any",required:!0}]},{name:"float",args:[{name:"Value",type:"any",required:!0}]},{name:"float2str",args:[{name:"Value",type:"float",required:!0},{name:"Precision",type:"integer",default:2,range:[0,32],required:!0}]},{name:"map",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"stringFunc",list:[{name:"lower",args:[{name:"String",type:"string",required:!0}]},{name:"upper",args:[{name:"String",type:"string",required:!0}]},{name:"trim",args:[{name:"String",type:"string",required:!0}]},{name:"ltrim",args:[{name:"String",type:"string",required:!0}]},{name:"rtrim",args:[{name:"String",type:"string",required:!0}]},{name:"reverse",args:[{name:"String",type:"string",required:!0}]},{name:"strlen",args:[{name:"String",type:"string",required:!0}]},{name:"substr",args:[{name:"String",type:"string",required:!0},{name:"StartPosition",type:"number",required:!0},{name:"Length",type:"number",required:!1}]},{name:"split",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"Direction",required:!1,type:"enum",optionalValues:["leading","trailing"]}]},{name:"concat",args:[{name:"String1",type:"string",required:!0},{name:"String2",type:"string",required:!0}]},{name:"tokens",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"PreserveCRLF",type:"enum",optionalValues:["nocrlf"],required:!1}]},{name:"sprintf",args:[]},{name:"pad",args:[{name:"String",type:"string",required:!0},{name:"TotalLength",type:"integer",required:!0},{name:"PaddingDirection",type:"enum",optionalValues:["both","leading","trailing"],required:!1},{name:"PaddingString",type:"string",required:!1}]},{name:"replace",args:[{name:"String",type:"string",required:!0},{name:"OldSubStr",type:"string",required:!0},{name:"Replacement",type:"string",required:!0},{name:"ReplaceCount",type:"enum",optionalValues:["all","trailing","leading"],required:!1}]},{name:"regex_match",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0}]},{name:"regex_replace",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0},{name:"Replacement",type:"string",required:!0}]},{name:"ascii",args:[{name:"Character",type:"string",required:!0}]},{name:"find",args:[{name:"String",type:"string",required:!0},{name:"SubstringToBeFound",type:"string",required:!0},{name:"DirectionToFind",type:"enum",optionalValues:["leading","trailing"],required:!1}]}]},{groupLabel:"mapFunc",list:[{name:"map_get",args:[{name:"Key",type:"string",required:!0},{name:"Map",type:"object",required:!0},{name:"DefaultValue",type:"any",required:!1}]},{name:"map_put",args:[{name:"Key",type:"string",required:!0},{name:"Value",type:"any",required:!0},{name:"Map",type:"object",required:!0}]},{name:"map_size",args:[{name:"Map",type:"object",required:!0}]}]},{groupLabel:"arrFunc",list:[{name:"nth",args:[{name:"Index",type:"integer",range:[1,null],required:!0},{name:"Array",type:"array",required:!0}]},{name:"length",args:[{name:"Array",type:"array",required:!0}]},{name:"sublist",args:[{name:"StartIndex",type:"integer",range:[1,null],required:!1},{name:"Length",type:"integer",required:!0},{name:"Array",type:"array",required:!0}]},{name:"first",args:[{name:"Array",type:"array",required:!0}]},{name:"last",args:[{name:"Array",type:"array",required:!0}]},{name:"contains",args:[{name:"Value",type:"any",required:!0},{name:"Array",type:"array",required:!0}]}]},{groupLabel:"hashFunc",list:[{name:"md5",args:[{name:"Value",type:"string",required:!0}]},{name:"sha",args:[{name:"Value",type:"string",required:!0}]},{name:"sha256",args:[{name:"Value",type:"string",required:!0}]}]},{groupLabel:"compressesAndUncompressesFunc",list:[{name:"gzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"gunzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip",args:[{name:"Value",type:"binary",required:!0}]},{name:"unzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_compress",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_uncompress",args:[{name:"Value",type:"binary",required:!0}]}]},{groupLabel:"bitFunc",list:[{name:"subbits",args:[{name:"BinaryData",type:"binary",required:!0},{name:"BinaryStartIndex",type:"integer",required:!1},{name:"Length",type:"integer",required:!0},{name:"DataType",type:"enum",optionalValues:["integer","float","bits"],required:!1},{name:"Signedness",type:"enum",optionalValues:["unsigned","signed"],required:!1},{name:"Endian",type:"enum",optionalValues:["big","little"],required:!1}]}]},{groupLabel:"decodingAndEncodingFunc",list:[{name:"base64_encode",args:[{name:"Value",type:"binary",required:!0}]},{name:"base64_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_encode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"bin2hexstr",args:[{name:"Value",type:"binary",required:!0}]},{name:"hexstr2bin",args:[{name:"Value",type:"string",required:!0}]},{name:"str_utf16_le",args:[{name:"Data",type:"string",required:!0}]},{name:"sqlserver_bin2hexstr",args:[{name:"Data",type:"string",required:!0}]}]},{groupLabel:"timeAndDateFunc",list:[{name:"now_timestamp",args:[]},{name:"now_rfc3339",args:[]},{name:"unix_ts_to_rfc3339",args:[{name:"UnixTimestamp",type:"integer",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"rfc3339_to_unix_ts",args:[{name:"RFC3339String",type:"string",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"format_date",args:[{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!0},{name:"TimeOffset",type:"string",required:!0},{name:"DateFormat",type:"string",required:!0},{name:"Timestamp",type:"number",required:!1}]},{name:"date_to_unix_ts",args:[]}]},{groupLabel:"schemaRegistry",list:[{name:"schema_decode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Bin",type:"binary",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_encode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_check",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0}]}]}];var ja=(e=>(e.Number="number",e.Any="any",e.Float="float",e.Integer="integer",e.String="string",e.Enum="enum",e.Object="object",e.Array="array",e.Binary="binary",e))(ja||{});const xf=e=>{const{t}=is(e),n=Ha.map(({groupLabel:o,list:u})=>({groupLabel:o,name:t(`ruleFunction.${o}`),value:o,list:u.filter(p=>p.args.length)})),r=o=>{for(const{list:u}of n)for(const p of u)if(p.name===o)return p;return null},i=o=>{for(const{groupLabel:u,list:p}of n)for(const O of p)if(O.name===o)return u;return null},s={stringFunc:"string",mapFunc:"object",arrFunc:"array"};return{funcOptList:n,getFuncItemByName:r,getFuncGroupByName:i,getArgIndex:(o,u)=>{var N;const p=s[u];let O=-1;const g=(N=o.args)==null?void 0:N.findIndex(({isReference:I})=>I);return p?O=o.args.findIndex(I=>I.type===p):/time/i.test(u)?O=o.args.findIndex(I=>/timestamp/i.test(I.name)):g>-1&&(O=g),O=O>-1?O:0,O}}},Ga=["number","float","integer"],Uf=(e,t,n)=>{const{funcOptList:r,getFuncItemByName:i,getFuncGroupByName:s,getArgIndex:a}=xf(n),o=Qe({get(){return e.modelValue},set($){t("update:modelValue",$)}}),u=($,{groupLabel:V,func:S})=>{const k=a(S,V);return S.args.map((F,L)=>L===k?$:"")},p=Qe(()=>{var V,S;const $=(S=(V=o.value)==null?void 0:V.func)==null?void 0:S.name;return $?i($):null}),O=Qe(()=>p.value?p.value.args:[]),g=Qe(()=>!(O.value.length===0||O.value.length===1&&O.value[0].required)),N=$=>{if(!$){o.value.func.args=[];return}const V=s($);!V||!p.value||(g.value?o.value.func.args=u(o.value.field,{groupLabel:V,func:p.value}):o.value.func.args=[o.value.field])},I=Qe(()=>e.availableFields.map($=>({value:$})));return{record:o,getFieldList:($,V)=>{$||V(I.value);const S=I.value.filter(({value:k})=>k.includes($));V(S)},handleFieldChanged:$=>{O.value.length&&!g.value&&(o.value.func.args=[$])},funcOptList:r,args:O,handleSelectFunc:N,handleArgChanged:($,V,S)=>{Ga.includes(S)&&$!==""&&!Number.isNaN(Number($))&&(o.value.func.args[V]=Number($))}}},$f=["connection_accepted","unacceptable_protocol_version","client_identifier_not_valid","server_unavailable","malformed_username_or_password","unauthorized_client","success","unspecified_error","malformed_packet","protocol_error","implementation_specific_error","unsupported_protocol_version","bad_username_or_password","not_authorized","server_unavailable","server_busy","banned","bad_authentication_method","topic_name_invalid","packet_too_large","quota_exceeded","retain_not_supported","qos_not_supported","use_another_server","server_moved","connection_rate_exceeded","is_cache"];Oe.ArgumentType=ja,Oe.RuleField=$f,Oe.RuleFunc=Ha,Oe.createDownloadBlobLink=Es,Oe.downloadFile=gs,Oe.flattenObject=qt,Oe.formatSizeUnit=ao,Oe.formatValueToMinUnit=oo,Oe.isEmptyObj=Ya,Oe.isJSONString=ro,Oe.jsonBigIntParse=so,Oe.jsonBigIntStringify=io,Oe.numberArgTypes=Ga,Oe.parseJSONSafely=to,Oe.stringifyObjSafely=no,Oe.unflattenObject=Ka,Oe.useBatchSettings=Lf,Oe.useFunctionItemData=Uf,Oe.useLocale=is,Oe.useStreamingAuth=Vf,Object.defineProperty(Oe,Symbol.toStringTag,{value:"Module"})});
78
+ `};return{filenameMap:s,templateContentMap:c,handleDownloadTemp:(Y,U)=>{if(Y){const V=new Blob([Y],{type:"text/csv"});createDownloadBlobLink(V,`${U}_template.csv`)}else console.error("Template is empty")},readFileAndParse:async(Y,U)=>new Promise((V,J)=>{const ce=new FileReader;ce.onload=se=>{if(!se.target)return J(new Error("FileReader event target is null"));const re=se.target.result,q=Papa.parse(re,{skipEmptyLines:"greedy"});q.errors.length>0&&J(new Error("Failed to parse CSV data: "+q.errors[0].message)),q.data.length>U+1?J(new Error(n("uploadMaxRowsError",{max:U}))):V(q.data)},ce.onerror=()=>{J(new Error("An error occurred while reading the file"))},ce.onabort=()=>{J(new Error("File reading was aborted"))},ce.readAsText(Y)}),processIoTDBData:Y=>new Promise((U,V)=>{try{const J=["boolean","int32","int64","float","double","text"],ce=Y.slice(1).filter(se=>se.length>=4&&se.slice(0,4).every(re=>re&&re.trim()!=="")).map(se=>{const[re,q,Q,ae]=se;if(!J.includes(Q))throw new Error(`Invalid data type: ${Q}`);return{timestamp:re,measurement:q,data_type:Q,value:ae}});U(ce)}catch(J){V(J)}}),processTDengineData:Y=>new Promise((U,V)=>{try{const J="<table>",ce=[],se=[];for(let q=1;q<Y.length;q++){const[Q,ae,te]=Y[q];if(!Q||!ae)continue;ce.push(Q);const oe=["true","TRUE","1","",void 0].includes(te==null?void 0:te.trim()),ne=["false","FALSE","0"].includes(te==null?void 0:te.trim());if(oe)se.push(`'${ae}'`);else if(ne)se.push(ae);else throw new Error(n("invalidIsCharFlag",{isChar:te}))}const re=`insert into ${J}(${ce.join(", ")}) values (${se.join(", ")})`;U(re)}catch(J){V(J)}}),processInfluxDBData:Y=>new Promise((U,V)=>{try{const J=[];for(let ce=1;ce<Y.length;ce++){const[se,re]=Y[ce];!se||!re||J.push({key:se,value:re})}U(J)}catch(J){V(J)}})}},useStreamingAuth=e=>{const{t}=useLocale(e),n=[{label:t("streaming.allow"),value:m$1.Allow},{label:t("streaming.deny"),value:m$1.Deny}],s=[{label:t("common.topic"),value:o.Topic},{label:t("streaming.consumerGroupType"),value:o.Group},{label:t("streaming.clusterType"),value:o.Cluster}],c=Object.values(i).map(A=>({label:t(`streaming.aclOperationLabelDic.${A}`),value:A})),l={[o.Topic]:[i.All,i.Read,i.Write,i.Describe,i.Create,i.Delete],[o.Group]:[i.All,i.Read,i.Describe,i.Delete],[o.Cluster]:[i.All,i.Read,i.Describe,i.Alter]};return{permissionOptions:n,resourceTypeOptions:s,operationOptions:c,getValidOperations:A=>(l[A]||[]).map(W=>({label:t(`streaming.aclOperationLabelDic.${W}`),value:W}))}};var jsonBigint={exports:{}},stringify={exports:{}},bignumber={exports:{}};(function(e){(function(t){var n,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,c=Math.ceil,l=Math.floor,C="[BigNumber Error] ",A=C+"Number primitive has more than 15 significant digits: ",L=1e14,W=14,Y=9007199254740991,U=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],V=1e7,J=1e9;function ce(ne){var ie,G,$,X=fe.prototype={constructor:fe,toString:null,valueOf:null},pe=new fe(1),de=20,ge=4,ve=-7,Ae=21,Ce=-1e7,Ee=1e7,Re=!1,Oe=1,Fe=0,Me={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},he="0123456789abcdefghijklmnopqrstuvwxyz",Le=!0;function fe(D,M){var B,R,I,F,H,j,K,Z,z=this;if(!(z instanceof fe))return new fe(D,M);if(M==null){if(D&&D._isBigNumber===!0){z.s=D.s,!D.c||D.e>Ee?z.c=z.e=null:D.e<Ce?z.c=[z.e=0]:(z.e=D.e,z.c=D.c.slice());return}if((j=typeof D=="number")&&D*0==0){if(z.s=1/D<0?(D=-D,-1):1,D===~~D){for(F=0,H=D;H>=10;H/=10,F++);F>Ee?z.c=z.e=null:(z.e=F,z.c=[D]);return}Z=String(D)}else{if(!s.test(Z=String(D)))return $(z,Z,j);z.s=Z.charCodeAt(0)==45?(Z=Z.slice(1),-1):1}(F=Z.indexOf("."))>-1&&(Z=Z.replace(".","")),(H=Z.search(/e/i))>0?(F<0&&(F=H),F+=+Z.slice(H+1),Z=Z.substring(0,H)):F<0&&(F=Z.length)}else{if(Q(M,2,he.length,"Base"),M==10&&Le)return z=new fe(D),Ie(z,de+z.e+1,ge);if(Z=String(D),j=typeof D=="number"){if(D*0!=0)return $(z,Z,j,M);if(z.s=1/D<0?(Z=Z.slice(1),-1):1,fe.DEBUG&&Z.replace(/^0\.0*|\./,"").length>15)throw Error(A+D)}else z.s=Z.charCodeAt(0)===45?(Z=Z.slice(1),-1):1;for(B=he.slice(0,M),F=H=0,K=Z.length;H<K;H++)if(B.indexOf(R=Z.charAt(H))<0){if(R=="."){if(H>F){F=K;continue}}else if(!I&&(Z==Z.toUpperCase()&&(Z=Z.toLowerCase())||Z==Z.toLowerCase()&&(Z=Z.toUpperCase()))){I=!0,H=-1,F=0;continue}return $(z,String(D),j,M)}j=!1,Z=G(Z,M,10,z.s),(F=Z.indexOf("."))>-1?Z=Z.replace(".",""):F=Z.length}for(H=0;Z.charCodeAt(H)===48;H++);for(K=Z.length;Z.charCodeAt(--K)===48;);if(Z=Z.slice(H,++K)){if(K-=H,j&&fe.DEBUG&&K>15&&(D>Y||D!==l(D)))throw Error(A+z.s*D);if((F=F-H-1)>Ee)z.c=z.e=null;else if(F<Ce)z.c=[z.e=0];else{if(z.e=F,z.c=[],H=(F+1)%W,F<0&&(H+=W),H<K){for(H&&z.c.push(+Z.slice(0,H)),K-=W;H<K;)z.c.push(+Z.slice(H,H+=W));H=W-(Z=Z.slice(H)).length}else H-=K;for(;H--;Z+="0");z.c.push(+Z)}}else z.c=[z.e=0]}fe.clone=ce,fe.ROUND_UP=0,fe.ROUND_DOWN=1,fe.ROUND_CEIL=2,fe.ROUND_FLOOR=3,fe.ROUND_HALF_UP=4,fe.ROUND_HALF_DOWN=5,fe.ROUND_HALF_EVEN=6,fe.ROUND_HALF_CEIL=7,fe.ROUND_HALF_FLOOR=8,fe.EUCLID=9,fe.config=fe.set=function(D){var M,B;if(D!=null)if(typeof D=="object"){if(D.hasOwnProperty(M="DECIMAL_PLACES")&&(B=D[M],Q(B,0,J,M),de=B),D.hasOwnProperty(M="ROUNDING_MODE")&&(B=D[M],Q(B,0,8,M),ge=B),D.hasOwnProperty(M="EXPONENTIAL_AT")&&(B=D[M],B&&B.pop?(Q(B[0],-J,0,M),Q(B[1],0,J,M),ve=B[0],Ae=B[1]):(Q(B,-J,J,M),ve=-(Ae=B<0?-B:B))),D.hasOwnProperty(M="RANGE"))if(B=D[M],B&&B.pop)Q(B[0],-J,-1,M),Q(B[1],1,J,M),Ce=B[0],Ee=B[1];else if(Q(B,-J,J,M),B)Ce=-(Ee=B<0?-B:B);else throw Error(C+M+" cannot be zero: "+B);if(D.hasOwnProperty(M="CRYPTO"))if(B=D[M],B===!!B)if(B)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Re=B;else throw Re=!B,Error(C+"crypto unavailable");else Re=B;else throw Error(C+M+" not true or false: "+B);if(D.hasOwnProperty(M="MODULO_MODE")&&(B=D[M],Q(B,0,9,M),Oe=B),D.hasOwnProperty(M="POW_PRECISION")&&(B=D[M],Q(B,0,J,M),Fe=B),D.hasOwnProperty(M="FORMAT"))if(B=D[M],typeof B=="object")Me=B;else throw Error(C+M+" not an object: "+B);if(D.hasOwnProperty(M="ALPHABET"))if(B=D[M],typeof B=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(B))Le=B.slice(0,10)=="0123456789",he=B;else throw Error(C+M+" invalid: "+B)}else throw Error(C+"Object expected: "+D);return{DECIMAL_PLACES:de,ROUNDING_MODE:ge,EXPONENTIAL_AT:[ve,Ae],RANGE:[Ce,Ee],CRYPTO:Re,MODULO_MODE:Oe,POW_PRECISION:Fe,FORMAT:Me,ALPHABET:he}},fe.isBigNumber=function(D){if(!D||D._isBigNumber!==!0)return!1;if(!fe.DEBUG)return!0;var M,B,R=D.c,I=D.e,F=D.s;e:if({}.toString.call(R)=="[object Array]"){if((F===1||F===-1)&&I>=-J&&I<=J&&I===l(I)){if(R[0]===0){if(I===0&&R.length===1)return!0;break e}if(M=(I+1)%W,M<1&&(M+=W),String(R[0]).length==M){for(M=0;M<R.length;M++)if(B=R[M],B<0||B>=L||B!==l(B))break e;if(B!==0)return!0}}}else if(R===null&&I===null&&(F===null||F===1||F===-1))return!0;throw Error(C+"Invalid BigNumber: "+D)},fe.maximum=fe.max=function(){return ke(arguments,-1)},fe.minimum=fe.min=function(){return ke(arguments,1)},fe.random=function(){var D=9007199254740992,M=Math.random()*D&2097151?function(){return l(Math.random()*D)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(B){var R,I,F,H,j,K=0,Z=[],z=new fe(pe);if(B==null?B=de:Q(B,0,J),H=c(B/W),Re)if(crypto.getRandomValues){for(R=crypto.getRandomValues(new Uint32Array(H*=2));K<H;)j=R[K]*131072+(R[K+1]>>>11),j>=9e15?(I=crypto.getRandomValues(new Uint32Array(2)),R[K]=I[0],R[K+1]=I[1]):(Z.push(j%1e14),K+=2);K=H/2}else if(crypto.randomBytes){for(R=crypto.randomBytes(H*=7);K<H;)j=(R[K]&31)*281474976710656+R[K+1]*1099511627776+R[K+2]*4294967296+R[K+3]*16777216+(R[K+4]<<16)+(R[K+5]<<8)+R[K+6],j>=9e15?crypto.randomBytes(7).copy(R,K):(Z.push(j%1e14),K+=7);K=H/7}else throw Re=!1,Error(C+"crypto unavailable");if(!Re)for(;K<H;)j=M(),j<9e15&&(Z[K++]=j%1e14);for(H=Z[--K],B%=W,H&&B&&(j=U[W-B],Z[K]=l(H/j)*j);Z[K]===0;Z.pop(),K--);if(K<0)Z=[F=0];else{for(F=-1;Z[0]===0;Z.splice(0,1),F-=W);for(K=1,j=Z[0];j>=10;j/=10,K++);K<W&&(F-=W-K)}return z.e=F,z.c=Z,z}}(),fe.sum=function(){for(var D=1,M=arguments,B=new fe(M[0]);D<M.length;)B=B.plus(M[D++]);return B},G=function(){var D="0123456789";function M(B,R,I,F){for(var H,j=[0],K,Z=0,z=B.length;Z<z;){for(K=j.length;K--;j[K]*=R);for(j[0]+=F.indexOf(B.charAt(Z++)),H=0;H<j.length;H++)j[H]>I-1&&(j[H+1]==null&&(j[H+1]=0),j[H+1]+=j[H]/I|0,j[H]%=I)}return j.reverse()}return function(B,R,I,F,H){var j,K,Z,z,ue,me,_e,ye,Se=B.indexOf("."),Ne=de,ee=ge;for(Se>=0&&(z=Fe,Fe=0,B=B.replace(".",""),ye=new fe(R),me=ye.pow(B.length-Se),Fe=z,ye.c=M(oe(re(me.c),me.e,"0"),10,I,D),ye.e=ye.c.length),_e=M(B,R,I,H?(j=he,D):(j=D,he)),Z=z=_e.length;_e[--z]==0;_e.pop());if(!_e[0])return j.charAt(0);if(Se<0?--Z:(me.c=_e,me.e=Z,me.s=F,me=ie(me,ye,Ne,ee,I),_e=me.c,ue=me.r,Z=me.e),K=Z+Ne+1,Se=_e[K],z=I/2,ue=ue||K<0||_e[K+1]!=null,ue=ee<4?(Se!=null||ue)&&(ee==0||ee==(me.s<0?3:2)):Se>z||Se==z&&(ee==4||ue||ee==6&&_e[K-1]&1||ee==(me.s<0?8:7)),K<1||!_e[0])B=ue?oe(j.charAt(1),-Ne,j.charAt(0)):j.charAt(0);else{if(_e.length=K,ue)for(--I;++_e[--K]>I;)_e[K]=0,K||(++Z,_e=[1].concat(_e));for(z=_e.length;!_e[--z];);for(Se=0,B="";Se<=z;B+=j.charAt(_e[Se++]));B=oe(B,Z,j.charAt(0))}return B}}(),ie=function(){function D(R,I,F){var H,j,K,Z,z=0,ue=R.length,me=I%V,_e=I/V|0;for(R=R.slice();ue--;)K=R[ue]%V,Z=R[ue]/V|0,H=_e*K+Z*me,j=me*K+H%V*V+z,z=(j/F|0)+(H/V|0)+_e*Z,R[ue]=j%F;return z&&(R=[z].concat(R)),R}function M(R,I,F,H){var j,K;if(F!=H)K=F>H?1:-1;else for(j=K=0;j<F;j++)if(R[j]!=I[j]){K=R[j]>I[j]?1:-1;break}return K}function B(R,I,F,H){for(var j=0;F--;)R[F]-=j,j=R[F]<I[F]?1:0,R[F]=j*H+R[F]-I[F];for(;!R[0]&&R.length>1;R.splice(0,1));}return function(R,I,F,H,j){var K,Z,z,ue,me,_e,ye,Se,Ne,ee,le,Te,we,je,Be,xe,$e,We=R.s==I.s?1:-1,Ve=R.c,Ue=I.c;if(!Ve||!Ve[0]||!Ue||!Ue[0])return new fe(!R.s||!I.s||(Ve?Ue&&Ve[0]==Ue[0]:!Ue)?NaN:Ve&&Ve[0]==0||!Ue?We*0:We/0);for(Se=new fe(We),Ne=Se.c=[],Z=R.e-I.e,We=F+Z+1,j||(j=L,Z=se(R.e/W)-se(I.e/W),We=We/W|0),z=0;Ue[z]==(Ve[z]||0);z++);if(Ue[z]>(Ve[z]||0)&&Z--,We<0)Ne.push(1),ue=!0;else{for(je=Ve.length,xe=Ue.length,z=0,We+=2,me=l(j/(Ue[0]+1)),me>1&&(Ue=D(Ue,me,j),Ve=D(Ve,me,j),xe=Ue.length,je=Ve.length),we=xe,ee=Ve.slice(0,xe),le=ee.length;le<xe;ee[le++]=0);$e=Ue.slice(),$e=[0].concat($e),Be=Ue[0],Ue[1]>=j/2&&Be++;do{if(me=0,K=M(Ue,ee,xe,le),K<0){if(Te=ee[0],xe!=le&&(Te=Te*j+(ee[1]||0)),me=l(Te/Be),me>1)for(me>=j&&(me=j-1),_e=D(Ue,me,j),ye=_e.length,le=ee.length;M(_e,ee,ye,le)==1;)me--,B(_e,xe<ye?$e:Ue,ye,j),ye=_e.length,K=1;else me==0&&(K=me=1),_e=Ue.slice(),ye=_e.length;if(ye<le&&(_e=[0].concat(_e)),B(ee,_e,le,j),le=ee.length,K==-1)for(;M(Ue,ee,xe,le)<1;)me++,B(ee,xe<le?$e:Ue,le,j),le=ee.length}else K===0&&(me++,ee=[0]);Ne[z++]=me,ee[0]?ee[le++]=Ve[we]||0:(ee=[Ve[we]],le=1)}while((we++<je||ee[0]!=null)&&We--);ue=ee[0]!=null,Ne[0]||Ne.splice(0,1)}if(j==L){for(z=1,We=Ne[0];We>=10;We/=10,z++);Ie(Se,F+(Se.e=z+Z*W-1)+1,H,ue)}else Se.e=Z,Se.r=+ue;return Se}}();function Pe(D,M,B,R){var I,F,H,j,K;if(B==null?B=ge:Q(B,0,8),!D.c)return D.toString();if(I=D.c[0],H=D.e,M==null)K=re(D.c),K=R==1||R==2&&(H<=ve||H>=Ae)?te(K,H):oe(K,H,"0");else if(D=Ie(new fe(D),M,B),F=D.e,K=re(D.c),j=K.length,R==1||R==2&&(M<=F||F<=ve)){for(;j<M;K+="0",j++);K=te(K,F)}else if(M-=H,K=oe(K,F,"0"),F+1>j){if(--M>0)for(K+=".";M--;K+="0");}else if(M+=F-j,M>0)for(F+1==j&&(K+=".");M--;K+="0");return D.s<0&&I?"-"+K:K}function ke(D,M){for(var B,R,I=1,F=new fe(D[0]);I<D.length;I++)R=new fe(D[I]),(!R.s||(B=q(F,R))===M||B===0&&F.s===M)&&(F=R);return F}function De(D,M,B){for(var R=1,I=M.length;!M[--I];M.pop());for(I=M[0];I>=10;I/=10,R++);return(B=R+B*W-1)>Ee?D.c=D.e=null:B<Ce?D.c=[D.e=0]:(D.e=B,D.c=M),D}$=function(){var D=/^(-?)0([xbo])(?=\w[\w.]*$)/i,M=/^([^.]+)\.$/,B=/^\.([^.]+)$/,R=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(F,H,j,K){var Z,z=j?H:H.replace(I,"");if(R.test(z))F.s=isNaN(z)?null:z<0?-1:1;else{if(!j&&(z=z.replace(D,function(ue,me,_e){return Z=(_e=_e.toLowerCase())=="x"?16:_e=="b"?2:8,!K||K==Z?me:ue}),K&&(Z=K,z=z.replace(M,"$1").replace(B,"0.$1")),H!=z))return new fe(z,Z);if(fe.DEBUG)throw Error(C+"Not a"+(K?" base "+K:"")+" number: "+H);F.s=null}F.c=F.e=null}}();function Ie(D,M,B,R){var I,F,H,j,K,Z,z,ue=D.c,me=U;if(ue){e:{for(I=1,j=ue[0];j>=10;j/=10,I++);if(F=M-I,F<0)F+=W,H=M,K=ue[Z=0],z=l(K/me[I-H-1]%10);else if(Z=c((F+1)/W),Z>=ue.length)if(R){for(;ue.length<=Z;ue.push(0));K=z=0,I=1,F%=W,H=F-W+1}else break e;else{for(K=j=ue[Z],I=1;j>=10;j/=10,I++);F%=W,H=F-W+I,z=H<0?0:l(K/me[I-H-1]%10)}if(R=R||M<0||ue[Z+1]!=null||(H<0?K:K%me[I-H-1]),R=B<4?(z||R)&&(B==0||B==(D.s<0?3:2)):z>5||z==5&&(B==4||R||B==6&&(F>0?H>0?K/me[I-H]:0:ue[Z-1])%10&1||B==(D.s<0?8:7)),M<1||!ue[0])return ue.length=0,R?(M-=D.e+1,ue[0]=me[(W-M%W)%W],D.e=-M||0):ue[0]=D.e=0,D;if(F==0?(ue.length=Z,j=1,Z--):(ue.length=Z+1,j=me[W-F],ue[Z]=H>0?l(K/me[I-H]%me[H])*j:0),R)for(;;)if(Z==0){for(F=1,H=ue[0];H>=10;H/=10,F++);for(H=ue[0]+=j,j=1;H>=10;H/=10,j++);F!=j&&(D.e++,ue[0]==L&&(ue[0]=1));break}else{if(ue[Z]+=j,ue[Z]!=L)break;ue[Z--]=0,j=1}for(F=ue.length;ue[--F]===0;ue.pop());}D.e>Ee?D.c=D.e=null:D.e<Ce&&(D.c=[D.e=0])}return D}function be(D){var M,B=D.e;return B===null?D.toString():(M=re(D.c),M=B<=ve||B>=Ae?te(M,B):oe(M,B,"0"),D.s<0?"-"+M:M)}return X.absoluteValue=X.abs=function(){var D=new fe(this);return D.s<0&&(D.s=1),D},X.comparedTo=function(D,M){return q(this,new fe(D,M))},X.decimalPlaces=X.dp=function(D,M){var B,R,I,F=this;if(D!=null)return Q(D,0,J),M==null?M=ge:Q(M,0,8),Ie(new fe(F),D+F.e+1,M);if(!(B=F.c))return null;if(R=((I=B.length-1)-se(this.e/W))*W,I=B[I])for(;I%10==0;I/=10,R--);return R<0&&(R=0),R},X.dividedBy=X.div=function(D,M){return ie(this,new fe(D,M),de,ge)},X.dividedToIntegerBy=X.idiv=function(D,M){return ie(this,new fe(D,M),0,1)},X.exponentiatedBy=X.pow=function(D,M){var B,R,I,F,H,j,K,Z,z,ue=this;if(D=new fe(D),D.c&&!D.isInteger())throw Error(C+"Exponent not an integer: "+be(D));if(M!=null&&(M=new fe(M)),j=D.e>14,!ue.c||!ue.c[0]||ue.c[0]==1&&!ue.e&&ue.c.length==1||!D.c||!D.c[0])return z=new fe(Math.pow(+be(ue),j?D.s*(2-ae(D)):+be(D))),M?z.mod(M):z;if(K=D.s<0,M){if(M.c?!M.c[0]:!M.s)return new fe(NaN);R=!K&&ue.isInteger()&&M.isInteger(),R&&(ue=ue.mod(M))}else{if(D.e>9&&(ue.e>0||ue.e<-1||(ue.e==0?ue.c[0]>1||j&&ue.c[1]>=24e7:ue.c[0]<8e13||j&&ue.c[0]<=9999975e7)))return F=ue.s<0&&ae(D)?-0:0,ue.e>-1&&(F=1/F),new fe(K?1/F:F);Fe&&(F=c(Fe/W+2))}for(j?(B=new fe(.5),K&&(D.s=1),Z=ae(D)):(I=Math.abs(+be(D)),Z=I%2),z=new fe(pe);;){if(Z){if(z=z.times(ue),!z.c)break;F?z.c.length>F&&(z.c.length=F):R&&(z=z.mod(M))}if(I){if(I=l(I/2),I===0)break;Z=I%2}else if(D=D.times(B),Ie(D,D.e+1,1),D.e>14)Z=ae(D);else{if(I=+be(D),I===0)break;Z=I%2}ue=ue.times(ue),F?ue.c&&ue.c.length>F&&(ue.c.length=F):R&&(ue=ue.mod(M))}return R?z:(K&&(z=pe.div(z)),M?z.mod(M):F?Ie(z,Fe,ge,H):z)},X.integerValue=function(D){var M=new fe(this);return D==null?D=ge:Q(D,0,8),Ie(M,M.e+1,D)},X.isEqualTo=X.eq=function(D,M){return q(this,new fe(D,M))===0},X.isFinite=function(){return!!this.c},X.isGreaterThan=X.gt=function(D,M){return q(this,new fe(D,M))>0},X.isGreaterThanOrEqualTo=X.gte=function(D,M){return(M=q(this,new fe(D,M)))===1||M===0},X.isInteger=function(){return!!this.c&&se(this.e/W)>this.c.length-2},X.isLessThan=X.lt=function(D,M){return q(this,new fe(D,M))<0},X.isLessThanOrEqualTo=X.lte=function(D,M){return(M=q(this,new fe(D,M)))===-1||M===0},X.isNaN=function(){return!this.s},X.isNegative=function(){return this.s<0},X.isPositive=function(){return this.s>0},X.isZero=function(){return!!this.c&&this.c[0]==0},X.minus=function(D,M){var B,R,I,F,H=this,j=H.s;if(D=new fe(D,M),M=D.s,!j||!M)return new fe(NaN);if(j!=M)return D.s=-M,H.plus(D);var K=H.e/W,Z=D.e/W,z=H.c,ue=D.c;if(!K||!Z){if(!z||!ue)return z?(D.s=-M,D):new fe(ue?H:NaN);if(!z[0]||!ue[0])return ue[0]?(D.s=-M,D):new fe(z[0]?H:ge==3?-0:0)}if(K=se(K),Z=se(Z),z=z.slice(),j=K-Z){for((F=j<0)?(j=-j,I=z):(Z=K,I=ue),I.reverse(),M=j;M--;I.push(0));I.reverse()}else for(R=(F=(j=z.length)<(M=ue.length))?j:M,j=M=0;M<R;M++)if(z[M]!=ue[M]){F=z[M]<ue[M];break}if(F&&(I=z,z=ue,ue=I,D.s=-D.s),M=(R=ue.length)-(B=z.length),M>0)for(;M--;z[B++]=0);for(M=L-1;R>j;){if(z[--R]<ue[R]){for(B=R;B&&!z[--B];z[B]=M);--z[B],z[R]+=L}z[R]-=ue[R]}for(;z[0]==0;z.splice(0,1),--Z);return z[0]?De(D,z,Z):(D.s=ge==3?-1:1,D.c=[D.e=0],D)},X.modulo=X.mod=function(D,M){var B,R,I=this;return D=new fe(D,M),!I.c||!D.s||D.c&&!D.c[0]?new fe(NaN):!D.c||I.c&&!I.c[0]?new fe(I):(Oe==9?(R=D.s,D.s=1,B=ie(I,D,0,3),D.s=R,B.s*=R):B=ie(I,D,0,Oe),D=I.minus(B.times(D)),!D.c[0]&&Oe==1&&(D.s=I.s),D)},X.multipliedBy=X.times=function(D,M){var B,R,I,F,H,j,K,Z,z,ue,me,_e,ye,Se,Ne,ee=this,le=ee.c,Te=(D=new fe(D,M)).c;if(!le||!Te||!le[0]||!Te[0])return!ee.s||!D.s||le&&!le[0]&&!Te||Te&&!Te[0]&&!le?D.c=D.e=D.s=null:(D.s*=ee.s,!le||!Te?D.c=D.e=null:(D.c=[0],D.e=0)),D;for(R=se(ee.e/W)+se(D.e/W),D.s*=ee.s,K=le.length,ue=Te.length,K<ue&&(ye=le,le=Te,Te=ye,I=K,K=ue,ue=I),I=K+ue,ye=[];I--;ye.push(0));for(Se=L,Ne=V,I=ue;--I>=0;){for(B=0,me=Te[I]%Ne,_e=Te[I]/Ne|0,H=K,F=I+H;F>I;)Z=le[--H]%Ne,z=le[H]/Ne|0,j=_e*Z+z*me,Z=me*Z+j%Ne*Ne+ye[F]+B,B=(Z/Se|0)+(j/Ne|0)+_e*z,ye[F--]=Z%Se;ye[F]=B}return B?++R:ye.splice(0,1),De(D,ye,R)},X.negated=function(){var D=new fe(this);return D.s=-D.s||null,D},X.plus=function(D,M){var B,R=this,I=R.s;if(D=new fe(D,M),M=D.s,!I||!M)return new fe(NaN);if(I!=M)return D.s=-M,R.minus(D);var F=R.e/W,H=D.e/W,j=R.c,K=D.c;if(!F||!H){if(!j||!K)return new fe(I/0);if(!j[0]||!K[0])return K[0]?D:new fe(j[0]?R:I*0)}if(F=se(F),H=se(H),j=j.slice(),I=F-H){for(I>0?(H=F,B=K):(I=-I,B=j),B.reverse();I--;B.push(0));B.reverse()}for(I=j.length,M=K.length,I-M<0&&(B=K,K=j,j=B,M=I),I=0;M;)I=(j[--M]=j[M]+K[M]+I)/L|0,j[M]=L===j[M]?0:j[M]%L;return I&&(j=[I].concat(j),++H),De(D,j,H)},X.precision=X.sd=function(D,M){var B,R,I,F=this;if(D!=null&&D!==!!D)return Q(D,1,J),M==null?M=ge:Q(M,0,8),Ie(new fe(F),D,M);if(!(B=F.c))return null;if(I=B.length-1,R=I*W+1,I=B[I]){for(;I%10==0;I/=10,R--);for(I=B[0];I>=10;I/=10,R++);}return D&&F.e+1>R&&(R=F.e+1),R},X.shiftedBy=function(D){return Q(D,-Y,Y),this.times("1e"+D)},X.squareRoot=X.sqrt=function(){var D,M,B,R,I,F=this,H=F.c,j=F.s,K=F.e,Z=de+4,z=new fe("0.5");if(j!==1||!H||!H[0])return new fe(!j||j<0&&(!H||H[0])?NaN:H?F:1/0);if(j=Math.sqrt(+be(F)),j==0||j==1/0?(M=re(H),(M.length+K)%2==0&&(M+="0"),j=Math.sqrt(+M),K=se((K+1)/2)-(K<0||K%2),j==1/0?M="5e"+K:(M=j.toExponential(),M=M.slice(0,M.indexOf("e")+1)+K),B=new fe(M)):B=new fe(j+""),B.c[0]){for(K=B.e,j=K+Z,j<3&&(j=0);;)if(I=B,B=z.times(I.plus(ie(F,I,Z,1))),re(I.c).slice(0,j)===(M=re(B.c)).slice(0,j))if(B.e<K&&--j,M=M.slice(j-3,j+1),M=="9999"||!R&&M=="4999"){if(!R&&(Ie(I,I.e+de+2,0),I.times(I).eq(F))){B=I;break}Z+=4,j+=4,R=1}else{(!+M||!+M.slice(1)&&M.charAt(0)=="5")&&(Ie(B,B.e+de+2,1),D=!B.times(B).eq(F));break}}return Ie(B,B.e+de+1,ge,D)},X.toExponential=function(D,M){return D!=null&&(Q(D,0,J),D++),Pe(this,D,M,1)},X.toFixed=function(D,M){return D!=null&&(Q(D,0,J),D=D+this.e+1),Pe(this,D,M)},X.toFormat=function(D,M,B){var R,I=this;if(B==null)D!=null&&M&&typeof M=="object"?(B=M,M=null):D&&typeof D=="object"?(B=D,D=M=null):B=Me;else if(typeof B!="object")throw Error(C+"Argument not an object: "+B);if(R=I.toFixed(D,M),I.c){var F,H=R.split("."),j=+B.groupSize,K=+B.secondaryGroupSize,Z=B.groupSeparator||"",z=H[0],ue=H[1],me=I.s<0,_e=me?z.slice(1):z,ye=_e.length;if(K&&(F=j,j=K,K=F,ye-=F),j>0&&ye>0){for(F=ye%j||j,z=_e.substr(0,F);F<ye;F+=j)z+=Z+_e.substr(F,j);K>0&&(z+=Z+_e.slice(F)),me&&(z="-"+z)}R=ue?z+(B.decimalSeparator||"")+((K=+B.fractionGroupSize)?ue.replace(new RegExp("\\d{"+K+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):ue):z}return(B.prefix||"")+R+(B.suffix||"")},X.toFraction=function(D){var M,B,R,I,F,H,j,K,Z,z,ue,me,_e=this,ye=_e.c;if(D!=null&&(j=new fe(D),!j.isInteger()&&(j.c||j.s!==1)||j.lt(pe)))throw Error(C+"Argument "+(j.isInteger()?"out of range: ":"not an integer: ")+be(j));if(!ye)return new fe(_e);for(M=new fe(pe),Z=B=new fe(pe),R=K=new fe(pe),me=re(ye),F=M.e=me.length-_e.e-1,M.c[0]=U[(H=F%W)<0?W+H:H],D=!D||j.comparedTo(M)>0?F>0?M:Z:j,H=Ee,Ee=1/0,j=new fe(me),K.c[0]=0;z=ie(j,M,0,1),I=B.plus(z.times(R)),I.comparedTo(D)!=1;)B=R,R=I,Z=K.plus(z.times(I=Z)),K=I,M=j.minus(z.times(I=M)),j=I;return I=ie(D.minus(B),R,0,1),K=K.plus(I.times(Z)),B=B.plus(I.times(R)),K.s=Z.s=_e.s,F=F*2,ue=ie(Z,R,F,ge).minus(_e).abs().comparedTo(ie(K,B,F,ge).minus(_e).abs())<1?[Z,R]:[K,B],Ee=H,ue},X.toNumber=function(){return+be(this)},X.toPrecision=function(D,M){return D!=null&&Q(D,1,J),Pe(this,D,M,2)},X.toString=function(D){var M,B=this,R=B.s,I=B.e;return I===null?R?(M="Infinity",R<0&&(M="-"+M)):M="NaN":(D==null?M=I<=ve||I>=Ae?te(re(B.c),I):oe(re(B.c),I,"0"):D===10&&Le?(B=Ie(new fe(B),de+I+1,ge),M=oe(re(B.c),B.e,"0")):(Q(D,2,he.length,"Base"),M=G(oe(re(B.c),I,"0"),10,D,R,!0)),R<0&&B.c[0]&&(M="-"+M)),M},X.valueOf=X.toJSON=function(){return be(this)},X._isBigNumber=!0,ne!=null&&fe.set(ne),fe}function se(ne){var ie=ne|0;return ne>0||ne===ie?ie:ie-1}function re(ne){for(var ie,G,$=1,X=ne.length,pe=ne[0]+"";$<X;){for(ie=ne[$++]+"",G=W-ie.length;G--;ie="0"+ie);pe+=ie}for(X=pe.length;pe.charCodeAt(--X)===48;);return pe.slice(0,X+1||1)}function q(ne,ie){var G,$,X=ne.c,pe=ie.c,de=ne.s,ge=ie.s,ve=ne.e,Ae=ie.e;if(!de||!ge)return null;if(G=X&&!X[0],$=pe&&!pe[0],G||$)return G?$?0:-ge:de;if(de!=ge)return de;if(G=de<0,$=ve==Ae,!X||!pe)return $?0:!X^G?1:-1;if(!$)return ve>Ae^G?1:-1;for(ge=(ve=X.length)<(Ae=pe.length)?ve:Ae,de=0;de<ge;de++)if(X[de]!=pe[de])return X[de]>pe[de]^G?1:-1;return ve==Ae?0:ve>Ae^G?1:-1}function Q(ne,ie,G,$){if(ne<ie||ne>G||ne!==l(ne))throw Error(C+($||"Argument")+(typeof ne=="number"?ne<ie||ne>G?" out of range: ":" not an integer: ":" not a primitive number: ")+String(ne))}function ae(ne){var ie=ne.c.length-1;return se(ne.e/W)==ie&&ne.c[ie]%2!=0}function te(ne,ie){return(ne.length>1?ne.charAt(0)+"."+ne.slice(1):ne)+(ie<0?"e":"e+")+ie}function oe(ne,ie,G){var $,X;if(ie<0){for(X=G+".";++ie;X+=G);ne=X+ne}else if($=ne.length,++ie>$){for(X=G,ie-=$;--ie;X+=G);ne+=X}else ie<$&&(ne=ne.slice(0,ie)+"."+ne.slice(ie));return ne}n=ce(),n.default=n.BigNumber=n,e.exports?e.exports=n:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=n)})(commonjsGlobal)})(bignumber);var bignumberExports=bignumber.exports;(function(e){var t=bignumberExports,n=e.exports;(function(){var s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,l,C={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},A;function L(Y){return s.lastIndex=0,s.test(Y)?'"'+Y.replace(s,function(U){var V=C[U];return typeof V=="string"?V:"\\u"+("0000"+U.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Y+'"'}function W(Y,U){var V,J,ce,se,re=c,q,Q=U[Y],ae=Q!=null&&(Q instanceof t||t.isBigNumber(Q));switch(Q&&typeof Q=="object"&&typeof Q.toJSON=="function"&&(Q=Q.toJSON(Y)),typeof A=="function"&&(Q=A.call(U,Y,Q)),typeof Q){case"string":return ae?Q:L(Q);case"number":return isFinite(Q)?String(Q):"null";case"boolean":case"null":case"bigint":return String(Q);case"object":if(!Q)return"null";if(c+=l,q=[],Object.prototype.toString.apply(Q)==="[object Array]"){for(se=Q.length,V=0;V<se;V+=1)q[V]=W(V,Q)||"null";return ce=q.length===0?"[]":c?`[
79
+ `+c+q.join(`,
80
+ `+c)+`
81
+ `+re+"]":"["+q.join(",")+"]",c=re,ce}if(A&&typeof A=="object")for(se=A.length,V=0;V<se;V+=1)typeof A[V]=="string"&&(J=A[V],ce=W(J,Q),ce&&q.push(L(J)+(c?": ":":")+ce));else Object.keys(Q).forEach(function(te){var oe=W(te,Q);oe&&q.push(L(te)+(c?": ":":")+oe)});return ce=q.length===0?"{}":c?`{
82
+ `+c+q.join(`,
83
+ `+c)+`
84
+ `+re+"}":"{"+q.join(",")+"}",c=re,ce}}typeof n.stringify!="function"&&(n.stringify=function(Y,U,V){var J;if(c="",l="",typeof V=="number")for(J=0;J<V;J+=1)l+=" ";else typeof V=="string"&&(l=V);if(A=U,U&&typeof U!="function"&&(typeof U!="object"||typeof U.length!="number"))throw new Error("JSON.stringify");return W("",{"":Y})})})()})(stringify);var stringifyExports=stringify.exports,BigNumber=null;const suspectProtoRx=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,suspectConstructorRx=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var json_parse$1=function(e){var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(e!=null){if(e.strict===!0&&(t.strict=!0),e.storeAsString===!0&&(t.storeAsString=!0),t.alwaysParseAsBig=e.alwaysParseAsBig===!0?e.alwaysParseAsBig:!1,t.useNativeBigInt=e.useNativeBigInt===!0?e.useNativeBigInt:!1,typeof e.constructorAction<"u")if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve")t.constructorAction=e.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`);if(typeof e.protoAction<"u")if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve")t.protoAction=e.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}var n,s,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
85
+ `,r:"\r",t:" "},l,C=function(se){throw{name:"SyntaxError",message:se,at:n,text:l}},A=function(se){return se&&se!==s&&C("Expected '"+se+"' instead of '"+s+"'"),s=l.charAt(n),n+=1,s},L=function(){var se,re="";for(s==="-"&&(re="-",A("-"));s>="0"&&s<="9";)re+=s,A();if(s===".")for(re+=".";A()&&s>="0"&&s<="9";)re+=s;if(s==="e"||s==="E")for(re+=s,A(),(s==="-"||s==="+")&&(re+=s,A());s>="0"&&s<="9";)re+=s,A();if(se=+re,!isFinite(se))C("Bad number");else return BigNumber==null&&(BigNumber=bignumberExports),re.length>15?t.storeAsString?re:t.useNativeBigInt?BigInt(re):new BigNumber(re):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(se):new BigNumber(se):se},W=function(){var se,re,q="",Q;if(s==='"')for(var ae=n;A();){if(s==='"')return n-1>ae&&(q+=l.substring(ae,n-1)),A(),q;if(s==="\\"){if(n-1>ae&&(q+=l.substring(ae,n-1)),A(),s==="u"){for(Q=0,re=0;re<4&&(se=parseInt(A(),16),!!isFinite(se));re+=1)Q=Q*16+se;q+=String.fromCharCode(Q)}else if(typeof c[s]=="string")q+=c[s];else break;ae=n}}C("Bad string")},Y=function(){for(;s&&s<=" ";)A()},U=function(){switch(s){case"t":return A("t"),A("r"),A("u"),A("e"),!0;case"f":return A("f"),A("a"),A("l"),A("s"),A("e"),!1;case"n":return A("n"),A("u"),A("l"),A("l"),null}C("Unexpected '"+s+"'")},V,J=function(){var se=[];if(s==="["){if(A("["),Y(),s==="]")return A("]"),se;for(;s;){if(se.push(V()),Y(),s==="]")return A("]"),se;A(","),Y()}}C("Bad array")},ce=function(){var se,re=Object.create(null);if(s==="{"){if(A("{"),Y(),s==="}")return A("}"),re;for(;s;){if(se=W(),Y(),A(":"),t.strict===!0&&Object.hasOwnProperty.call(re,se)&&C('Duplicate key "'+se+'"'),suspectProtoRx.test(se)===!0?t.protoAction==="error"?C("Object contains forbidden prototype property"):t.protoAction==="ignore"?V():re[se]=V():suspectConstructorRx.test(se)===!0?t.constructorAction==="error"?C("Object contains forbidden constructor property"):t.constructorAction==="ignore"?V():re[se]=V():re[se]=V(),Y(),s==="}")return A("}"),re;A(","),Y()}}C("Bad object")};return V=function(){switch(Y(),s){case"{":return ce();case"[":return J();case'"':return W();case"-":return L();default:return s>="0"&&s<="9"?L():U()}},function(se,re){var q;return l=se+"",n=0,s=" ",q=V(),Y(),s&&C("Syntax error"),typeof re=="function"?function Q(ae,te){var oe,ne=ae[te];return ne&&typeof ne=="object"&&Object.keys(ne).forEach(function(ie){oe=Q(ne,ie),oe!==void 0?ne[ie]=oe:delete ne[ie]}),re.call(ae,te,ne)}({"":q},""):q}},parse=json_parse$1,json_stringify=stringifyExports.stringify,json_parse=parse;jsonBigint.exports=function(e){return{parse:json_parse(e),stringify:json_stringify}},jsonBigint.exports.parse=json_parse(),jsonBigint.exports.stringify=json_stringify;var jsonBigintExports=jsonBigint.exports;const JSONBig=getDefaultExportFromCjs(jsonBigintExports),parseJSONSafely=e=>{try{return JSON.parse(e)}catch{console.error("An error occurred while parsing the JSON string")}},stringifyObjSafely=(e,t)=>{try{return typeof e=="string"?e:JSON.stringify(e,null,t)}catch(n){return console.error(n),"stringify error"}},isJSONString=e=>{if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}},jsonBigNumber=JSONBig,jsonBigInt=JSONBig({useNativeBigInt:!0}),jsonBigIntParse=(e,t)=>{try{return jsonBigInt.parse(e,t)}catch{try{return jsonBigNumber.parse(e,t)}catch{return JSON.parse(e,t)}}},jsonBigIntStringify=(e,t,n)=>{try{return jsonBigInt.stringify(e,t,n)}catch{return jsonBigNumber.stringify(e,t,n)}},formatSizeUnit=e=>{if(typeof e!="number"||isNaN(e)||e<0)throw new Error("Invalid input: input should be a non-negative number");if(e===0)return"0 Bytes";const t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(1)} ${t[n]}`};var SizeOrTimeUnit=(e=>(e[e.ms=1]="ms",e[e.s=1e3]="s",e[e.m=6e4]="m",e[e.h=36e5]="h",e[e.d=864e5]="d",e[e.B=1]="B",e[e.KB=1024]="KB",e[e.MB=1048576]="MB",e[e.GB=1073741824]="GB",e))(SizeOrTimeUnit||{});const formatValueToMinUnit=(e,t)=>{if(!(t in SizeOrTimeUnit))throw new Error(`Invalid unit: ${t}`);return e*SizeOrTimeUnit[t]},flattenObject=(e,t=[],n={})=>{if(typeof e=="object"&&!Array.isArray(e)&&e!==null)for(const s of Object.keys(e))flattenObject(e[s],t.concat(s),n);else n[t.join(".")]=e;return n},unflattenObject=e=>{if(Object(e)!==e&&!Array.isArray(e))return e;const t=/\.?([^.[\]]+)|\[(\d+)\]/g,n={};try{for(const s in e){let c=n,l="",C;for(;C=t.exec(s);)c=c[l]||(c[l]=C[2]?[]:{}),l=C[2]||C[1];c[l]=e[s]}}catch(s){console.error(s)}return n[""]||n},isEmptyObj=e=>Object.keys(e).length===0;var hoconParser={exports:{}};(function(module){(function(e,t){module.exports?module.exports=t():e.parseHocon=t()})(commonjsGlobal,function(){function parseHocon(text){var index=0,result=readHocon(text);return handleSubtitutions(result);function readHocon(e){for(var t=!1,n="",s=!1,c=!1,l=!1,C=!1,A=!1,L=!1,W=!1,Y=!1,U="",V="",J={};index<e.length;){var ce=e[index];if(index++,L&&!Y){(ce==="\r"||ce===`
86
+ `)&&(L=!1);continue}if(!s&&ce==='"'&&index+1<e.length&&e[index]==='"'&&e[index+1]==='"'){if(Y){re(),Y=!1,t=!1,C=!1,index+=2;continue}Y=!0,t=!0,C=!0,index+=2;continue}if(!s&&!Y&&(ce==="'"||ce==='"')){if(t&&n===ce){C?re():C=!0,t=!1;continue}t=!0,n=ce;continue}if(Y&&se(ce)){V+=ce;continue}if(t&&ce==="\\"){s=!0;continue}if(s=!1,!t)switch(ce){case" ":{if(U!==""&&!C){U+=ce;continue}if(V==="")continue;if(l&&C){V+=ce;continue}}case" ":case"\r":case`
87
+ `:{if(l&&C){if(V==="")continue;re();continue}if(!U)continue;if(!C){C=!0;continue}if(C&&V){re();continue}continue}case"{":{if(c||l||U){index--,U=U.trim(),V=readHocon(e),re();continue}c=!0;continue}case"}":{if(!c)throw"What";if(V)re();else if(U)return U;return J}case":":case"=":{if(A)throw"Already met seperator";C=!0,A=!0,U=U.trim();continue}case",":{C&&V&&re();continue}case"[":{if(c||l||U){index--,V=readHocon(e),re();continue}C=!0,l=!0,J=[];continue}case"]":{if(!l)throw"not in an array";return V&&(V=V.trim(),re()),J}case"$":{if(!V){V="${"+readHocon(e)+"}",re();continue}break}case"#":{L=!0;continue}case"/":{if(W){L=!0,W=!1;continue}W=!0;continue}}C?V+=ce:U+=ce}if(c)throw"Expected closing curly bracket";if(l)throw"Expected closing square bracket";return C&&re(),J;function se(q){return['"',"\\"].indexOf(q)!==-1}function re(ae,te){var ae=ae||U,te=te||J,oe=ae.indexOf(".");if(!l&&oe>0){var ne=ae.substring(0,oe);te[ne]=te[ne]||{},re(ae.substring(oe+1),te[ne]);return}!t&&typeof V=="string"&&(/^\d+$/.test(V)?V=parseInt(V):/^\d+\.\d+$/.test(V)?V=parseFloat(V):V==="true"?V=!0:V==="false"?V=!1:V==="null"&&(V=null)),l?te.push(V):(typeof te[ae]=="object"&&typeof V=="object"?extend(te[ae],V):te[ae]=V,C=!1),A=!1,U="",V=""}}function handleSubtitutions(mainObj,intermidiateObj,loops){if(loops=loops||0,loops>8)return null;if(intermidiateObj=typeof intermidiateObj>"u"?mainObj:intermidiateObj,intermidiateObj==null)return intermidiateObj;if(Array.isArray(intermidiateObj))intermidiateObj.forEach(function(e,t){intermidiateObj[t]=handleSubtitutions(mainObj,e)});else if(typeof intermidiateObj=="string"){var match=/^\$\{(.+?)\}$/.exec(intermidiateObj);if(match&&match.length==2){var val=eval("mainObj."+match[1]);return typeof val>"u"?null:handleSubtitutions(mainObj,val,loops+1)}}else typeof intermidiateObj=="object"&&Object.keys(intermidiateObj).forEach(function(e,t){intermidiateObj[e]=handleSubtitutions(mainObj,intermidiateObj[e])});return intermidiateObj}function extend(){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])arguments[e].hasOwnProperty(t)&&(typeof arguments[0][t]=="object"&&typeof arguments[e][t]=="object"?extend(arguments[0][t],arguments[e][t]):arguments[0][t]=arguments[e][t]);return arguments[0]}}return parseHocon})})(hoconParser);var hoconParserExports=hoconParser.exports;const parseHoconToObject=getDefaultExportFromCjs(hoconParserExports),formatKey=e=>/^[a-zA-Z0-9_-]+$/.test(e)&&!["true","false","null"].includes(e)?e:`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,objectToHocon=e=>{if(isEmptyObj(e))return"{}";const t=(c,l)=>typeof c=="string"?`"${c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n")}"`:c==null?"null":Array.isArray(c)?c.length===0?"[]":`[
88
+ ${c.map(A=>`${" ".repeat(l+1)}${t(A,l+1)}`).join(`,
89
+ `)}
90
+ ${" ".repeat(l)}]`:typeof c=="object"?objectToHocon(c):String(c);return`{
91
+ ${Object.keys(e).map(c=>{const l=e[c];return` ${formatKey(c)} = ${t(l,1)}`}).join(`
92
+ `)}
93
+ }`},hoconToObject=e=>{if(e.trim()==="")return{};try{return parseHoconToObject(e)}catch(t){throw t}};exports.checkNeedRequestAPI=checkNeedRequestAPI,exports.createDownloadBlobLink=createDownloadBlobLink,exports.createRandomString=createRandomString,exports.downloadFile=downloadFile,exports.flattenObject=flattenObject,exports.formatSizeUnit=formatSizeUnit,exports.formatValueToMinUnit=formatValueToMinUnit,exports.getBridgeIdFromInput=getBridgeIdFromInput,exports.getBridgeKey=getBridgeKey,exports.getBridgeNameFromId=getBridgeNameFromId,exports.getBridgeTypeFromId=getBridgeTypeFromId,exports.getKeyPartsFromSQL=getKeyPartsFromSQL,exports.getRuleSelectionAlias=getRuleSelectionAlias,exports.getTypeAndNameFromKey=getTypeAndNameFromKey,exports.hoconToObject=hoconToObject,exports.isContainsAIExpression=isContainsAIExpression,exports.isEmptyObj=isEmptyObj,exports.isJSONString=isJSONString,exports.jsonBigIntParse=jsonBigIntParse,exports.jsonBigIntStringify=jsonBigIntStringify,exports.judgeRuleSelectionWithFunc=judgeRuleSelectionWithFunc,exports.numToFixed=numToFixed,exports.objectToHocon=objectToHocon,exports.parseJSONSafely=parseJSONSafely,exports.removeFromArr=removeFromArr,exports.ruleSelectionAliasPartReg=ruleSelectionAliasPartReg,exports.splitOnComma=splitOnComma,exports.splitOnSymbol=splitOnSymbol,exports.stringifyObjSafely=stringifyObjSafely,exports.titleCase=titleCase,exports.trimSpacesAndLFs=trimSpacesAndLFs,exports.unflattenObject=unflattenObject,exports.useBatchSettings=useBatchSettings,exports.useLocale=useLocale,exports.useStreamingAuth=useStreamingAuth,exports.waitAMoment=waitAMoment,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});