vue-data-ui 2.3.2 → 2.3.3

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.
@@ -232,7 +232,7 @@ endobj\r
232
232
  * http://opensource.org/licenses/mit-license
233
233
  */function oa(t,o){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!o,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function rf(t){function o(b){if(!b)throw Error("assert :P")}function a(b,T,Y){for(var $=0;4>$;$++)if(b[T+$]!=Y.charCodeAt($))return!0;return!1}function n(b,T,Y,$,S){for(var W=0;W<S;W++)b[T+W]=Y[$+W]}function r(b,T,Y,$){for(var S=0;S<$;S++)b[T+S]=Y}function l(b){return new Int32Array(b)}function s(b,T){for(var Y=[],$=0;$<b;$++)Y.push(new T);return Y}function u(b,T){var Y=[];return function $(S,W,oe){for(var te=oe[W],he=0;he<te&&(S.push(oe.length>W+1?[]:new T),!(oe.length<W+1));he++)$(S[he],W+1,oe)}(Y,0,b),Y}var h=function(){var b=this;function T(p,k){for(var L=1<<k-1>>>0;p&L;)L>>>=1;return L?(p&L-1)+L:p}function Y(p,k,L,R,ue){o(!(R%L));do p[k+(R-=L)]=ue;while(0<R)}function $(p,k,L,R,ue){if(o(2328>=ue),512>=ue)var pe=l(512);else if((pe=l(ue))==null)return 0;return function(ye,me,be,we,Ne,Ie){var $e,Le,He=me,Qe=1<<be,_e=l(16),Se=l(16);for(o(Ne!=0),o(we!=null),o(ye!=null),o(0<be),Le=0;Le<Ne;++Le){if(15<we[Le])return 0;++_e[we[Le]]}if(_e[0]==Ne)return 0;for(Se[1]=0,$e=1;15>$e;++$e){if(_e[$e]>1<<$e)return 0;Se[$e+1]=Se[$e]+_e[$e]}for(Le=0;Le<Ne;++Le)$e=we[Le],0<we[Le]&&(Ie[Se[$e]++]=Le);if(Se[15]==1)return(we=new S).g=0,we.value=Ie[0],Y(ye,He,1,Qe,we),Qe;var De,Re=-1,Pe=Qe-1,lt=0,Ze=1,gt=1,et=1<<be;for(Le=0,$e=1,Ne=2;$e<=be;++$e,Ne<<=1){if(Ze+=gt<<=1,0>(gt-=_e[$e]))return 0;for(;0<_e[$e];--_e[$e])(we=new S).g=$e,we.value=Ie[Le++],Y(ye,He+lt,Ne,et,we),lt=T(lt,$e)}for($e=be+1,Ne=2;15>=$e;++$e,Ne<<=1){if(Ze+=gt<<=1,0>(gt-=_e[$e]))return 0;for(;0<_e[$e];--_e[$e]){if(we=new S,(lt&Pe)!=Re){for(He+=et,De=1<<(Re=$e)-be;15>Re&&!(0>=(De-=_e[Re]));)++Re,De<<=1;Qe+=et=1<<(De=Re-be),ye[me+(Re=lt&Pe)].g=De+be,ye[me+Re].value=He-me-Re}we.g=$e-be,we.value=Ie[Le++],Y(ye,He+(lt>>be),Ne,et,we),lt=T(lt,$e)}}return Ze!=2*Se[15]-1?0:Qe}(p,k,L,R,ue,pe)}function S(){this.value=this.g=0}function W(){this.value=this.g=0}function oe(){this.G=s(5,S),this.H=l(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(vl,W)}function te(p,k,L,R){o(p!=null),o(k!=null),o(2147483648>R),p.Ca=254,p.I=0,p.b=-8,p.Ka=0,p.oa=k,p.pa=L,p.Jd=k,p.Yc=L+R,p.Zc=4<=R?L+R-4+1:L,ke(p)}function he(p,k){for(var L=0;0<k--;)L|=ge(p,128)<<k;return L}function le(p,k){var L=he(p,k);return ae(p)?-L:L}function H(p,k,L,R){var ue,pe=0;for(o(p!=null),o(k!=null),o(4294967288>R),p.Sb=R,p.Ra=0,p.u=0,p.h=0,4<R&&(R=4),ue=0;ue<R;++ue)pe+=k[L+ue]<<8*ue;p.Ra=pe,p.bb=R,p.oa=k,p.pa=L}function P(p){for(;8<=p.u&&p.bb<p.Sb;)p.Ra>>>=8,p.Ra+=p.oa[p.pa+p.bb]<<an-8>>>0,++p.bb,p.u-=8;x(p)&&(p.h=1,p.u=0)}function X(p,k){if(o(0<=k),!p.h&&k<=ln){var L=_(p)&on[k];return p.u+=k,P(p),L}return p.h=1,p.u=0}function q(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function m(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(p){return p.Ra>>>(p.u&an-1)>>>0}function x(p){return o(p.bb<=p.Sb),p.h||p.bb==p.Sb&&p.u>an}function V(p,k){p.u=k,p.h=x(p)}function J(p){p.u>=os&&(o(p.u>=os),P(p))}function ke(p){o(p!=null&&p.oa!=null),p.pa<p.Zc?(p.I=(p.oa[p.pa++]|p.I<<8)>>>0,p.b+=8):(o(p!=null&&p.oa!=null),p.pa<p.Yc?(p.b+=8,p.I=p.oa[p.pa++]|p.I<<8):p.Ka?p.b=0:(p.I<<=8,p.b+=8,p.Ka=1))}function ae(p){return he(p,1)}function ge(p,k){var L=p.Ca;0>p.b&&ke(p);var R=p.b,ue=L*k>>>8,pe=(p.I>>>R>ue)+0;for(pe?(L-=ue,p.I-=ue+1<<R>>>0):L=ue+1,R=L,ue=0;256<=R;)ue+=8,R>>=8;return R=7^ue+gl[R],p.b-=R,p.Ca=(L<<R)-1,pe}function Z(p,k,L){p[k+0]=L>>24&255,p[k+1]=L>>16&255,p[k+2]=L>>8&255,p[k+3]=L>>0&255}function ee(p,k){return p[k+0]<<0|p[k+1]<<8}function z(p,k){return ee(p,k)|p[k+2]<<16}function D(p,k){return ee(p,k)|ee(p,k+2)<<16}function fe(p,k){var L=1<<k;return o(p!=null),o(0<k),p.X=l(L),p.X==null?0:(p.Mb=32-k,p.Xa=k,1)}function M(p,k){o(p!=null),o(k!=null),o(p.Xa==k.Xa),n(k.X,0,p.X,0,1<<k.Xa)}function N(){this.X=[],this.Xa=this.Mb=0}function j(p,k,L,R){o(L!=null),o(R!=null);var ue=L[0],pe=R[0];return ue==0&&(ue=(p*pe+k/2)/k),pe==0&&(pe=(k*ue+p/2)/p),0>=ue||0>=pe?0:(L[0]=ue,R[0]=pe,1)}function O(p,k){return p+(1<<k)-1>>>k}function ce(p,k){return((4278255360&p)+(4278255360&k)>>>0&4278255360)+((16711935&p)+(16711935&k)>>>0&16711935)>>>0}function re(p,k){b[k]=function(L,R,ue,pe,ye,me,be){var we;for(we=0;we<ye;++we){var Ne=b[p](me[be+we-1],ue,pe+we);me[be+we]=ce(L[R+we],Ne)}}}function ie(){this.ud=this.hd=this.jd=0}function G(p,k){return((4278124286&(p^k))>>>1)+(p&k)>>>0}function ne(p){return 0<=p&&256>p?p:0>p?0:255<p?255:void 0}function Ae(p,k){return ne(p+(p-k+.5>>1))}function se(p,k,L){return Math.abs(k-L)-Math.abs(p-L)}function ve(p,k,L,R,ue,pe,ye){for(R=pe[ye-1],L=0;L<ue;++L)pe[ye+L]=R=ce(p[k+L],R)}function Ce(p,k,L,R,ue){var pe;for(pe=0;pe<L;++pe){var ye=p[k+pe],me=ye>>8&255,be=16711935&(be=(be=16711935&ye)+((me<<16)+me));R[ue+pe]=(4278255360&ye)+be>>>0}}function Ue(p,k){k.jd=p>>0&255,k.hd=p>>8&255,k.ud=p>>16&255}function Ve(p,k,L,R,ue,pe){var ye;for(ye=0;ye<R;++ye){var me=k[L+ye],be=me>>>8,we=me,Ne=255&(Ne=(Ne=me>>>16)+((p.jd<<24>>24)*(be<<24>>24)>>>5));we=255&(we=(we=we+((p.hd<<24>>24)*(be<<24>>24)>>>5))+((p.ud<<24>>24)*(Ne<<24>>24)>>>5)),ue[pe+ye]=(4278255360&me)+(Ne<<16)+we}}function Ye(p,k,L,R,ue){b[k]=function(pe,ye,me,be,we,Ne,Ie,$e,Le){for(be=Ie;be<$e;++be)for(Ie=0;Ie<Le;++Ie)we[Ne++]=ue(me[R(pe[ye++])])},b[p]=function(pe,ye,me,be,we,Ne,Ie){var $e=8>>pe.b,Le=pe.Ea,He=pe.K[0],Qe=pe.w;if(8>$e)for(pe=(1<<pe.b)-1,Qe=(1<<$e)-1;ye<me;++ye){var _e,Se=0;for(_e=0;_e<Le;++_e)_e&pe||(Se=R(be[we++])),Ne[Ie++]=ue(He[Se&Qe]),Se>>=$e}else b["VP8LMapColor"+L](be,we,He,Qe,Ne,Ie,ye,me,Le)}}function ze(p,k,L,R,ue){for(L=k+L;k<L;){var pe=p[k++];R[ue++]=pe>>16&255,R[ue++]=pe>>8&255,R[ue++]=pe>>0&255}}function It(p,k,L,R,ue){for(L=k+L;k<L;){var pe=p[k++];R[ue++]=pe>>16&255,R[ue++]=pe>>8&255,R[ue++]=pe>>0&255,R[ue++]=pe>>24&255}}function kt(p,k,L,R,ue){for(L=k+L;k<L;){var pe=(ye=p[k++])>>16&240|ye>>12&15,ye=ye>>0&240|ye>>28&15;R[ue++]=pe,R[ue++]=ye}}function jo(p,k,L,R,ue){for(L=k+L;k<L;){var pe=(ye=p[k++])>>16&248|ye>>13&7,ye=ye>>5&224|ye>>3&31;R[ue++]=pe,R[ue++]=ye}}function St(p,k,L,R,ue){for(L=k+L;k<L;){var pe=p[k++];R[ue++]=pe>>0&255,R[ue++]=pe>>8&255,R[ue++]=pe>>16&255}}function Dt(p,k,L,R,ue,pe){if(pe==0)for(L=k+L;k<L;)Z(R,((pe=p[k++])[0]>>24|pe[1]>>8&65280|pe[2]<<8&16711680|pe[3]<<24)>>>0),ue+=32;else n(R,ue,p,k,L)}function Al(p,k){b[k][0]=b[p+"0"],b[k][1]=b[p+"1"],b[k][2]=b[p+"2"],b[k][3]=b[p+"3"],b[k][4]=b[p+"4"],b[k][5]=b[p+"5"],b[k][6]=b[p+"6"],b[k][7]=b[p+"7"],b[k][8]=b[p+"8"],b[k][9]=b[p+"9"],b[k][10]=b[p+"10"],b[k][11]=b[p+"11"],b[k][12]=b[p+"12"],b[k][13]=b[p+"13"],b[k][14]=b[p+"0"],b[k][15]=b[p+"0"]}function Ut(p){return p==vA||p==gA||p==pi||p==pA}function xe(){this.eb=[],this.size=this.A=this.fb=0}function Oe(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function qe(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xe,this.f.kb=new Oe,this.sd=null}function mt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function dt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function nt(p){return alert("todo:WebPSamplerProcessPlane"),p.T}function rt(p,k){var L=p.T,R=k.ba.f.RGBA,ue=R.eb,pe=R.fb+p.ka*R.A,ye=Vl[k.ba.S],me=p.y,be=p.O,we=p.f,Ne=p.N,Ie=p.ea,$e=p.W,Le=k.cc,He=k.dc,Qe=k.Mc,_e=k.Nc,Se=p.ka,De=p.ka+p.T,Re=p.U,Pe=Re+1>>1;for(Se==0?ye(me,be,null,null,we,Ne,Ie,$e,we,Ne,Ie,$e,ue,pe,null,null,Re):(ye(k.ec,k.fc,me,be,Le,He,Qe,_e,we,Ne,Ie,$e,ue,pe-R.A,ue,pe,Re),++L);Se+2<De;Se+=2)Le=we,He=Ne,Qe=Ie,_e=$e,Ne+=p.Rc,$e+=p.Rc,pe+=2*R.A,ye(me,(be+=2*p.fa)-p.fa,me,be,Le,He,Qe,_e,we,Ne,Ie,$e,ue,pe-R.A,ue,pe,Re);return be+=p.fa,p.j+De<p.o?(n(k.ec,k.fc,me,be,Re),n(k.cc,k.dc,we,Ne,Pe),n(k.Mc,k.Nc,Ie,$e,Pe),L--):1&De||ye(me,be,null,null,we,Ne,Ie,$e,we,Ne,Ie,$e,ue,pe+R.A,null,null,Re),L}function qt(p,k,L){var R=p.F,ue=[p.J];if(R!=null){var pe=p.U,ye=k.ba.S,me=ye==gi||ye==pi;k=k.ba.f.RGBA;var be=[0],we=p.ka;be[0]=p.T,p.Kb&&(we==0?--be[0]:(--we,ue[0]-=p.width),p.j+p.ka+p.T==p.o&&(be[0]=p.o-p.j-we));var Ne=k.eb;we=k.fb+we*k.A,p=ci(R,ue[0],p.width,pe,be,Ne,we+(me?0:3),k.A),o(L==be),p&&Ut(ye)&&qa(Ne,we,me,pe,be,k.A)}return 0}function Vt(p){var k=p.ma,L=k.ba.S,R=11>L,ue=L==fi||L==vi||L==gi||L==fA||L==12||Ut(L);if(k.memory=null,k.Ib=null,k.Jb=null,k.Nd=null,!es(k.Oa,p,ue?11:12))return 0;if(ue&&Ut(L)&&je(),p.da)alert("todo:use_scaling");else{if(R){if(k.Ib=nt,p.Kb){if(L=p.U+1>>1,k.memory=l(p.U+2*L),k.memory==null)return 0;k.ec=k.memory,k.fc=0,k.cc=k.ec,k.dc=k.fc+p.U,k.Mc=k.cc,k.Nc=k.dc+L,k.Ib=rt,je()}}else alert("todo:EmitYUV");ue&&(k.Jb=qt,R&&Ee())}if(R&&!Bd){for(p=0;256>p;++p)u1[p]=89858*(p-128)+mi>>yi,d1[p]=-22014*(p-128)+mi,c1[p]=-45773*(p-128),A1[p]=113618*(p-128)+mi>>yi;for(p=is;p<bA;++p)k=76283*(p-16)+mi>>yi,h1[p-is]=Bl(k,255),f1[p-is]=Bl(k+8>>4,15);Bd=1}return 1}function Xo(p){var k=p.ma,L=p.U,R=p.T;return o(!(1&p.ka)),0>=L||0>=R?0:(L=k.Ib(p,k),k.Jb!=null&&k.Jb(p,k,L),k.Dc+=L,1)}function go(p){p.ma.memory=null}function ut(p,k,L,R){return X(p,8)!=47?0:(k[0]=X(p,14)+1,L[0]=X(p,14)+1,R[0]=X(p,1),X(p,3)!=0?0:!p.h)}function Ht(p,k){if(4>p)return p+1;var L=p-2>>1;return(2+(1&p)<<L)+X(k,L)+1}function el(p,k){return 120<k?k-120:1<=(L=((L=Xg[k-1])>>4)*p+(8-(15&L)))?L:1;var L}function $o(p,k,L){var R=_(L),ue=p[k+=255&R].g-8;return 0<ue&&(V(L,L.u+8),R=_(L),k+=p[k].value,k+=R&(1<<ue)-1),V(L,L.u+p[k].g),p[k].value}function ho(p,k,L){return L.g+=p.g,L.value+=p.value<<k>>>0,o(8>=L.g),p.g}function mo(p,k,L){var R=p.xc;return o((k=R==0?0:p.vc[p.md*(L>>R)+(k>>R)])<p.Wb),p.Ya[k]}function wl(p,k,L,R){var ue=p.ab,pe=p.c*k,ye=p.C;k=ye+k;var me=L,be=R;for(R=p.Ta,L=p.Ua;0<ue--;){var we=p.gc[ue],Ne=ye,Ie=k,$e=me,Le=be,He=(be=R,me=L,we.Ea);switch(o(Ne<Ie),o(Ie<=we.nc),we.hc){case 2:Ai($e,Le,(Ie-Ne)*He,be,me);break;case 0:var Qe=Ne,_e=Ie,Se=be,De=me,Re=(et=we).Ea;Qe==0&&(AA($e,Le,null,null,1,Se,De),ve($e,Le+1,0,0,Re-1,Se,De+1),Le+=Re,De+=Re,++Qe);for(var Pe=1<<et.b,lt=Pe-1,Ze=O(Re,et.b),gt=et.K,et=et.w+(Qe>>et.b)*Ze;Qe<_e;){var Rt=gt,Yt=et,Ot=1;for(ls($e,Le,Se,De-Re,1,Se,De);Ot<Re;){var $t=(Ot&~lt)+Pe;$t>Re&&($t=Re),(0,Wa[Rt[Yt++]>>8&15])($e,Le+ +Ot,Se,De+Ot-Re,$t-Ot,Se,De+Ot),Ot=$t}Le+=Re,De+=Re,++Qe&lt||(et+=Ze)}Ie!=we.nc&&n(be,me-He,be,me+(Ie-Ne-1)*He,He);break;case 1:for(He=$e,_e=Le,Re=($e=we.Ea)-(De=$e&~(Se=(Le=1<<we.b)-1)),Qe=O($e,we.b),Pe=we.K,we=we.w+(Ne>>we.b)*Qe;Ne<Ie;){for(lt=Pe,Ze=we,gt=new ie,et=_e+De,Rt=_e+$e;_e<et;)Ue(lt[Ze++],gt),$l(gt,He,_e,Le,be,me),_e+=Le,me+=Le;_e<Rt&&(Ue(lt[Ze++],gt),$l(gt,He,_e,Re,be,me),_e+=Re,me+=Re),++Ne&Se||(we+=Qe)}break;case 3:if($e==be&&Le==me&&0<we.b){for(_e=be,$e=He=me+(Ie-Ne)*He-(De=(Ie-Ne)*O(we.Ea,we.b)),Le=be,Se=me,Qe=[],De=(Re=De)-1;0<=De;--De)Qe[De]=Le[Se+De];for(De=Re-1;0<=De;--De)_e[$e+De]=Qe[De];Xl(we,Ne,Ie,be,He,be,me)}else Xl(we,Ne,Ie,$e,Le,be,me)}me=R,be=L}be!=L&&n(R,L,me,be,pe)}function Or(p,k){var L=p.V,R=p.Ba+p.c*p.C,ue=k-p.C;if(o(k<=p.l.o),o(16>=ue),0<ue){var pe=p.l,ye=p.Ta,me=p.Ua,be=pe.width;if(wl(p,ue,L,R),ue=me=[me],o((L=p.C)<(R=k)),o(pe.v<pe.va),R>pe.o&&(R=pe.o),L<pe.j){var we=pe.j-L;L=pe.j,ue[0]+=we*be}if(L>=R?L=0:(ue[0]+=4*pe.v,pe.ka=L-pe.j,pe.U=pe.va-pe.v,pe.T=R-L,L=1),L){if(me=me[0],11>(L=p.ca).S){var Ne=L.f.RGBA,Ie=(R=L.S,ue=pe.U,pe=pe.T,we=Ne.eb,Ne.A),$e=pe;for(Ne=Ne.fb+p.Ma*Ne.A;0<$e--;){var Le=ye,He=me,Qe=ue,_e=we,Se=Ne;switch(R){case hi:ql(Le,He,Qe,_e,Se);break;case fi:Ka(Le,He,Qe,_e,Se);break;case vA:Ka(Le,He,Qe,_e,Se),qa(_e,Se,0,Qe,1,0);break;case fd:rn(Le,He,Qe,_e,Se);break;case vi:Dt(Le,He,Qe,_e,Se,1);break;case gA:Dt(Le,He,Qe,_e,Se,1),qa(_e,Se,0,Qe,1,0);break;case gi:Dt(Le,He,Qe,_e,Se,0);break;case pi:Dt(Le,He,Qe,_e,Se,0),qa(_e,Se,1,Qe,1,0);break;case fA:fa(Le,He,Qe,_e,Se);break;case pA:fa(Le,He,Qe,_e,Se),un(_e,Se,Qe,1,0);break;case vd:_a(Le,He,Qe,_e,Se);break;default:o(0)}me+=be,Ne+=Ie}p.Ma+=pe}else alert("todo:EmitRescaledRowsYUVA");o(p.Ma<=L.height)}}p.C=k,o(p.C<=p.i)}function Ba(p){var k;if(0<p.ua)return 0;for(k=0;k<p.Wb;++k){var L=p.Ya[k].G,R=p.Ya[k].H;if(0<L[1][R[1]+0].g||0<L[2][R[2]+0].g||0<L[3][R[3]+0].g)return 0}return 1}function Hl(p,k,L,R,ue,pe){if(p.Z!=0){var ye=p.qd,me=p.rd;for(o(Ja[p.Z]!=null);k<L;++k)Ja[p.Z](ye,me,R,ue,R,ue,pe),ye=R,me=ue,ue+=pe;p.qd=ye,p.rd=me}}function Rl(p,k){var L=p.l.ma,R=L.Z==0||L.Z==1?p.l.j:p.C;if(R=p.C<R?R:p.C,o(k<=p.l.o),k>R){var ue=p.l.width,pe=L.ca,ye=L.tb+ue*R,me=p.V,be=p.Ba+p.c*R,we=p.gc;o(p.ab==1),o(we[0].hc==3),cA(we[0],R,k,me,be,pe,ye),Hl(L,R,k,pe,ye,ue)}p.C=p.Ma=k}function Gl(p,k,L,R,ue,pe,ye){var me=p.$/R,be=p.$%R,we=p.m,Ne=p.s,Ie=L+p.$,$e=Ie;ue=L+R*ue;var Le=L+R*pe,He=280+Ne.ua,Qe=p.Pb?me:16777216,_e=0<Ne.ua?Ne.Wa:null,Se=Ne.wc,De=Ie<Le?mo(Ne,be,me):null;o(p.C<pe),o(Le<=ue);var Re=!1;e:for(;;){for(;Re||Ie<Le;){var Pe=0;if(me>=Qe){var lt=Ie-L;o((Qe=p).Pb),Qe.wd=Qe.m,Qe.xd=lt,0<Qe.s.ua&&M(Qe.s.Wa,Qe.s.vb),Qe=me+Yg}if(be&Se||(De=mo(Ne,be,me)),o(De!=null),De.Qb&&(k[Ie]=De.qb,Re=!0),!Re)if(J(we),De.jc){Pe=we,lt=k;var Ze=Ie,gt=De.pd[_(Pe)&vl-1];o(De.jc),256>gt.g?(V(Pe,Pe.u+gt.g),lt[Ze]=gt.value,Pe=0):(V(Pe,Pe.u+gt.g-256),o(256<=gt.value),Pe=gt.value),Pe==0&&(Re=!0)}else Pe=$o(De.G[0],De.H[0],we);if(we.h)break;if(Re||256>Pe){if(!Re)if(De.nd)k[Ie]=(De.qb|Pe<<8)>>>0;else{if(J(we),Re=$o(De.G[1],De.H[1],we),J(we),lt=$o(De.G[2],De.H[2],we),Ze=$o(De.G[3],De.H[3],we),we.h)break;k[Ie]=(Ze<<24|Re<<16|Pe<<8|lt)>>>0}if(Re=!1,++Ie,++be>=R&&(be=0,++me,ye!=null&&me<=pe&&!(me%16)&&ye(p,me),_e!=null))for(;$e<Ie;)Pe=k[$e++],_e.X[(506832829*Pe&4294967295)>>>_e.Mb]=Pe}else if(280>Pe){if(Pe=Ht(Pe-256,we),lt=$o(De.G[4],De.H[4],we),J(we),lt=el(R,lt=Ht(lt,we)),we.h)break;if(Ie-L<lt||ue-Ie<Pe)break e;for(Ze=0;Ze<Pe;++Ze)k[Ie+Ze]=k[Ie+Ze-lt];for(Ie+=Pe,be+=Pe;be>=R;)be-=R,++me,ye!=null&&me<=pe&&!(me%16)&&ye(p,me);if(o(Ie<=ue),be&Se&&(De=mo(Ne,be,me)),_e!=null)for(;$e<Ie;)Pe=k[$e++],_e.X[(506832829*Pe&4294967295)>>>_e.Mb]=Pe}else{if(!(Pe<He))break e;for(Re=Pe-280,o(_e!=null);$e<Ie;)Pe=k[$e++],_e.X[(506832829*Pe&4294967295)>>>_e.Mb]=Pe;Pe=Ie,o(!(Re>>>(lt=_e).Xa)),k[Pe]=lt.X[Re],Re=!0}Re||o(we.h==x(we))}if(p.Pb&&we.h&&Ie<ue)o(p.m.h),p.a=5,p.m=p.wd,p.$=p.xd,0<p.s.ua&&M(p.s.vb,p.s.Wa);else{if(we.h)break e;ye!=null&&ye(p,me>pe?pe:me),p.a=0,p.$=Ie-L}return 1}return p.a=3,0}function ca(p){o(p!=null),p.vc=null,p.yc=null,p.Ya=null;var k=p.Wa;k!=null&&(k.X=null),p.vb=null,o(p!=null)}function Il(){var p=new uA;return p==null?null:(p.a=0,p.xb=yd,Al("Predictor","VP8LPredictors"),Al("Predictor","VP8LPredictors_C"),Al("PredictorAdd","VP8LPredictorsAdd"),Al("PredictorAdd","VP8LPredictorsAdd_C"),Ai=Ce,$l=Ve,ql=ze,Ka=It,fa=kt,_a=jo,rn=St,b.VP8LMapColor32b=as,b.VP8LMapColor8b=dA,p)}function da(p,k,L,R,ue){var pe=1,ye=[p],me=[k],be=R.m,we=R.s,Ne=null,Ie=0;e:for(;;){if(L)for(;pe&&X(be,1);){var $e=ye,Le=me,He=R,Qe=1,_e=He.m,Se=He.gc[He.ab],De=X(_e,2);if(He.Oc&1<<De)pe=0;else{switch(He.Oc|=1<<De,Se.hc=De,Se.Ea=$e[0],Se.nc=Le[0],Se.K=[null],++He.ab,o(4>=He.ab),De){case 0:case 1:Se.b=X(_e,3)+2,Qe=da(O(Se.Ea,Se.b),O(Se.nc,Se.b),0,He,Se.K),Se.K=Se.K[0];break;case 3:var Re,Pe=X(_e,8)+1,lt=16<Pe?0:4<Pe?1:2<Pe?2:3;if($e[0]=O(Se.Ea,lt),Se.b=lt,Re=Qe=da(Pe,1,0,He,Se.K)){var Ze,gt=Pe,et=Se,Rt=1<<(8>>et.b),Yt=l(Rt);if(Yt==null)Re=0;else{var Ot=et.K[0],$t=et.w;for(Yt[0]=et.K[0][0],Ze=1;Ze<1*gt;++Ze)Yt[Ze]=ce(Ot[$t+Ze],Yt[Ze-1]);for(;Ze<4*Rt;++Ze)Yt[Ze]=0;et.K[0]=null,et.K[0]=Yt,Re=1}}Qe=Re;break;case 2:break;default:o(0)}pe=Qe}}if(ye=ye[0],me=me[0],pe&&X(be,1)&&!(pe=1<=(Ie=X(be,4))&&11>=Ie)){R.a=3;break e}var ao;if(ao=pe)t:{var to,Ft,Uo,pl=R,Vo=ye,yl=me,Jt=Ie,Fl=L,Nl=pl.m,Ho=pl.s,qo=[null],cl=1,Ql=0,va=qg[Jt];o:for(;;){if(Fl&&X(Nl,1)){var Ro=X(Nl,3)+2,$a=O(Vo,Ro),Fr=O(yl,Ro),An=$a*Fr;if(!da($a,Fr,0,pl,qo))break o;for(qo=qo[0],Ho.xc=Ro,to=0;to<An;++to){var Za=qo[to]>>8&65535;qo[to]=Za,Za>=cl&&(cl=Za+1)}}if(Nl.h)break o;for(Ft=0;5>Ft;++Ft){var ko=gd[Ft];!Ft&&0<Jt&&(ko+=1<<Jt),Ql<ko&&(Ql=ko)}var kA=s(cl*va,S),Nd=cl,_d=s(Nd,oe);if(_d==null)var ki=null;else o(65536>=Nd),ki=_d;var us=l(Ql);if(ki==null||us==null||kA==null){pl.a=1;break o}var Ci=kA;for(to=Uo=0;to<cl;++to){var ea=ki[to],cn=ea.G,dn=ea.H,Sd=0,wi=1,Ld=0;for(Ft=0;5>Ft;++Ft){ko=gd[Ft],cn[Ft]=Ci,dn[Ft]=Uo,!Ft&&0<Jt&&(ko+=1<<Jt);a:{var Bi,CA=ko,xi=pl,As=us,p1=Ci,y1=Uo,wA=0,er=xi.m,m1=X(er,1);if(r(As,0,0,CA),m1){var b1=X(er,1)+1,k1=X(er,1),Ed=X(er,k1==0?1:8);As[Ed]=1,b1==2&&(As[Ed=X(er,8)]=1);var Fi=1}else{var Id=l(19),$d=X(er,4)+4;if(19<$d){xi.a=3;var Ni=0;break a}for(Bi=0;Bi<$d;++Bi)Id[jg[Bi]]=X(er,3);var BA=void 0,cs=void 0,Md=xi,C1=Id,_i=CA,Ud=As,xA=0,tr=Md.m,Vd=8,Qd=s(128,S);l:for(;$(Qd,0,7,C1,19);){if(X(tr,1)){var w1=2+2*X(tr,3);if((BA=2+X(tr,w1))>_i)break l}else BA=_i;for(cs=0;cs<_i&&BA--;){J(tr);var Td=Qd[0+(127&_(tr))];V(tr,tr.u+Td.g);var hn=Td.value;if(16>hn)Ud[cs++]=hn,hn!=0&&(Vd=hn);else{var B1=hn==16,Od=hn-16,x1=Wg[Od],zd=X(tr,Gg[Od])+x1;if(cs+zd>_i)break l;for(var F1=B1?Vd:0;0<zd--;)Ud[cs++]=F1}}xA=1;break l}xA||(Md.a=3),Fi=xA}(Fi=Fi&&!er.h)&&(wA=$(p1,y1,8,As,CA)),Fi&&wA!=0?Ni=wA:(xi.a=3,Ni=0)}if(Ni==0)break o;if(wi&&Kg[Ft]==1&&(wi=Ci[Uo].g==0),Sd+=Ci[Uo].g,Uo+=Ni,3>=Ft){var ds,FA=us[0];for(ds=1;ds<ko;++ds)us[ds]>FA&&(FA=us[ds]);Ld+=FA}}if(ea.nd=wi,ea.Qb=0,wi&&(ea.qb=(cn[3][dn[3]+0].value<<24|cn[1][dn[1]+0].value<<16|cn[2][dn[2]+0].value)>>>0,Sd==0&&256>cn[0][dn[0]+0].value&&(ea.Qb=1,ea.qb+=cn[0][dn[0]+0].value<<8)),ea.jc=!ea.Qb&&6>Ld,ea.jc){var Si,Ma=ea;for(Si=0;Si<vl;++Si){var or=Si,lr=Ma.pd[or],Li=Ma.G[0][Ma.H[0]+or];256<=Li.value?(lr.g=Li.g+256,lr.value=Li.value):(lr.g=0,lr.value=0,or>>=ho(Li,8,lr),or>>=ho(Ma.G[1][Ma.H[1]+or],16,lr),or>>=ho(Ma.G[2][Ma.H[2]+or],0,lr),ho(Ma.G[3][Ma.H[3]+or],24,lr))}}}Ho.vc=qo,Ho.Wb=cl,Ho.Ya=ki,Ho.yc=kA,ao=1;break t}ao=0}if(!(pe=ao)){R.a=3;break e}if(0<Ie){if(we.ua=1<<Ie,!fe(we.Wa,Ie)){R.a=1,pe=0;break e}}else we.ua=0;var NA=R,Dd=ye,N1=me,_A=NA.s,SA=_A.xc;if(NA.c=Dd,NA.i=N1,_A.md=O(Dd,SA),_A.wc=SA==0?-1:(1<<SA)-1,L){R.xb=a1;break e}if((Ne=l(ye*me))==null){R.a=1,pe=0;break e}pe=(pe=Gl(R,Ne,0,ye,me,me,null))&&!be.h;break e}return pe?(ue!=null?ue[0]=Ne:(o(Ne==null),o(L)),R.$=0,L||ca(we)):ca(we),pe}function mr(p,k){var L=p.c*p.i,R=L+k+16*k;return o(p.c<=k),p.V=l(R),p.V==null?(p.Ta=null,p.Ua=0,p.a=1,0):(p.Ta=p.V,p.Ua=p.Ba+L+k,1)}function zr(p,k){var L=p.C,R=k-L,ue=p.V,pe=p.Ba+p.c*L;for(o(k<=p.l.o);0<R;){var ye=16<R?16:R,me=p.l.ma,be=p.l.width,we=be*ye,Ne=me.ca,Ie=me.tb+be*L,$e=p.Ta,Le=p.Ua;wl(p,ye,ue,pe),id($e,Le,Ne,Ie,we),Hl(me,L,L+ye,Ne,Ie,be),R-=ye,ue+=ye*p.c,L+=ye}o(L==k),p.C=p.Ma=k}function Dr(){this.ub=this.yd=this.td=this.Rb=0}function Pr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Hr(){this.Fb=this.Bb=this.Cb=0,this.Zb=l(4),this.Lb=l(4)}function Rs(){this.Yb=function(){var p=[];return function k(L,R,ue){for(var pe=ue[R],ye=0;ye<pe&&(L.push(ue.length>R+1?[]:0),!(ue.length<R+1));ye++)k(L[ye],R+1,ue)}(p,0,[3,11]),p}()}function zu(){this.jb=l(3),this.Wc=u([4,8],Rs),this.Xc=u([4,17],Rs)}function Du(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new l(4),this.od=new l(4)}function Rr(){this.ld=this.La=this.dd=this.tc=0}function Gs(){this.Na=this.la=0}function Pu(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Tn(){this.ad=l(384),this.Za=0,this.Ob=l(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Hu(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rr),this.Y=0,this.ya=Array(new Tn),this.aa=0,this.l=new Gr}function Ws(){this.y=l(16),this.f=l(8),this.ea=l(8)}function Ru(){this.cb=this.a=0,this.sc="",this.m=new q,this.Od=new Dr,this.Kc=new Pr,this.ed=new Du,this.Qa=new Hr,this.Ic=this.$c=this.Aa=0,this.D=new Hu,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,q),this.ia=0,this.pb=s(4,Pu),this.Pa=new zu,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ws),this.Hd=0,this.rb=Array(new Gs),this.sb=0,this.wa=Array(new Rr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Tn),this.L=this.aa=0,this.gd=u([4,2],Rr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Gr(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Gu(){var p=new Ru;return p!=null&&(p.a=0,p.sc="OK",p.cb=0,p.Xb=0,ss||(ss=Xs)),p}function Fo(p,k,L){return p.a==0&&(p.a=k,p.sc=L,p.cb=0),0}function Ks(p,k,L){return 3<=L&&p[k+0]==157&&p[k+1]==1&&p[k+2]==42}function js(p,k){if(p==null)return 0;if(p.a=0,p.sc="OK",k==null)return Fo(p,2,"null VP8Io passed to VP8GetHeaders()");var L=k.data,R=k.w,ue=k.ha;if(4>ue)return Fo(p,7,"Truncated header.");var pe=L[R+0]|L[R+1]<<8|L[R+2]<<16,ye=p.Od;if(ye.Rb=!(1&pe),ye.td=pe>>1&7,ye.yd=pe>>4&1,ye.ub=pe>>5,3<ye.td)return Fo(p,3,"Incorrect keyframe parameters.");if(!ye.yd)return Fo(p,4,"Frame not displayable.");R+=3,ue-=3;var me=p.Kc;if(ye.Rb){if(7>ue)return Fo(p,7,"cannot parse picture header");if(!Ks(L,R,ue))return Fo(p,3,"Bad code word");me.c=16383&(L[R+4]<<8|L[R+3]),me.Td=L[R+4]>>6,me.i=16383&(L[R+6]<<8|L[R+5]),me.Ud=L[R+6]>>6,R+=7,ue-=7,p.za=me.c+15>>4,p.Ub=me.i+15>>4,k.width=me.c,k.height=me.i,k.Da=0,k.j=0,k.v=0,k.va=k.width,k.o=k.height,k.da=0,k.ib=k.width,k.hb=k.height,k.U=k.width,k.T=k.height,r((pe=p.Pa).jb,0,255,pe.jb.length),o((pe=p.Qa)!=null),pe.Cb=0,pe.Bb=0,pe.Fb=1,r(pe.Zb,0,0,pe.Zb.length),r(pe.Lb,0,0,pe.Lb)}if(ye.ub>ue)return Fo(p,7,"bad partition length");te(pe=p.m,L,R,ye.ub),R+=ye.ub,ue-=ye.ub,ye.Rb&&(me.Ld=ae(pe),me.Kd=ae(pe)),me=p.Qa;var be,we=p.Pa;if(o(pe!=null),o(me!=null),me.Cb=ae(pe),me.Cb){if(me.Bb=ae(pe),ae(pe)){for(me.Fb=ae(pe),be=0;4>be;++be)me.Zb[be]=ae(pe)?le(pe,7):0;for(be=0;4>be;++be)me.Lb[be]=ae(pe)?le(pe,6):0}if(me.Bb)for(be=0;3>be;++be)we.jb[be]=ae(pe)?he(pe,8):255}else me.Bb=0;if(pe.Ka)return Fo(p,3,"cannot parse segment header");if((me=p.ed).zd=ae(pe),me.Tb=he(pe,6),me.wb=he(pe,3),me.Pc=ae(pe),me.Pc&&ae(pe)){for(we=0;4>we;++we)ae(pe)&&(me.vd[we]=le(pe,6));for(we=0;4>we;++we)ae(pe)&&(me.od[we]=le(pe,6))}if(p.L=me.Tb==0?0:me.zd?1:2,pe.Ka)return Fo(p,3,"cannot parse filter header");var Ne=ue;if(ue=be=R,R=be+Ne,me=Ne,p.Xb=(1<<he(p.m,2))-1,Ne<3*(we=p.Xb))L=7;else{for(be+=3*we,me-=3*we,Ne=0;Ne<we;++Ne){var Ie=L[ue+0]|L[ue+1]<<8|L[ue+2]<<16;Ie>me&&(Ie=me),te(p.Jc[+Ne],L,be,Ie),be+=Ie,me-=Ie,ue+=3}te(p.Jc[+we],L,be,me),L=be<R?0:5}if(L!=0)return Fo(p,L,"cannot parse partitions");for(L=he(be=p.m,7),ue=ae(be)?le(be,4):0,R=ae(be)?le(be,4):0,me=ae(be)?le(be,4):0,we=ae(be)?le(be,4):0,be=ae(be)?le(be,4):0,Ne=p.Qa,Ie=0;4>Ie;++Ie){if(Ne.Cb){var $e=Ne.Zb[Ie];Ne.Fb||($e+=L)}else{if(0<Ie){p.pb[Ie]=p.pb[0];continue}$e=L}var Le=p.pb[Ie];Le.Sc[0]=yA[Bl($e+ue,127)],Le.Sc[1]=mA[Bl($e+0,127)],Le.Eb[0]=2*yA[Bl($e+R,127)],Le.Eb[1]=101581*mA[Bl($e+me,127)]>>16,8>Le.Eb[1]&&(Le.Eb[1]=8),Le.Qc[0]=yA[Bl($e+we,117)],Le.Qc[1]=mA[Bl($e+be,127)],Le.lc=$e+be}if(!ye.Rb)return Fo(p,4,"Not a key frame.");for(ae(pe),ye=p.Pa,L=0;4>L;++L){for(ue=0;8>ue;++ue)for(R=0;3>R;++R)for(me=0;11>me;++me)we=ge(pe,o1[L][ue][R][me])?he(pe,8):e1[L][ue][R][me],ye.Wc[L][ue].Yb[R][me]=we;for(ue=0;17>ue;++ue)ye.Xc[L][ue]=ye.Wc[L][l1[ue]]}return p.kc=ae(pe),p.kc&&(p.Bd=he(pe,8)),p.cb=1}function Xs(p,k,L,R,ue,pe,ye){var me=k[ue].Yb[L];for(L=0;16>ue;++ue){if(!ge(p,me[L+0]))return ue;for(;!ge(p,me[L+1]);)if(me=k[++ue].Yb[0],L=0,ue==16)return 16;var be=k[ue+1].Yb;if(ge(p,me[L+2])){var we=p,Ne=0;if(ge(we,($e=me)[(Ie=L)+3]))if(ge(we,$e[Ie+6])){for(me=0,Ie=2*(Ne=ge(we,$e[Ie+8]))+($e=ge(we,$e[Ie+9+Ne])),Ne=0,$e=Jg[Ie];$e[me];++me)Ne+=Ne+ge(we,$e[me]);Ne+=3+(8<<Ie)}else ge(we,$e[Ie+7])?(Ne=7+2*ge(we,165),Ne+=ge(we,145)):Ne=5+ge(we,159);else Ne=ge(we,$e[Ie+4])?3+ge(we,$e[Ie+5]):2;me=be[2]}else Ne=1,me=be[1];be=ye+Zg[ue],0>(we=p).b&&ke(we);var Ie,$e=we.b,Le=(Ie=we.Ca>>1)-(we.I>>$e)>>31;--we.b,we.Ca+=Le,we.Ca|=1,we.I-=(Ie+1&Le)<<$e,pe[be]=((Ne^Le)-Le)*R[(0<ue)+0]}return 16}function On(p){var k=p.rb[p.sb-1];k.la=0,k.Na=0,r(p.zc,0,0,p.zc.length),p.ja=0}function Wu(p,k){if(p==null)return 0;if(k==null)return Fo(p,2,"NULL VP8Io parameter in VP8Decode().");if(!p.cb&&!js(p,k))return 0;if(o(p.cb),k.ac==null||k.ac(k)){k.ob&&(p.L=0);var L=bi[p.L];if(p.L==2?(p.yb=0,p.zb=0):(p.yb=k.v-L>>4,p.zb=k.j-L>>4,0>p.yb&&(p.yb=0),0>p.zb&&(p.zb=0)),p.Va=k.o+15+L>>4,p.Hb=k.va+15+L>>4,p.Hb>p.za&&(p.Hb=p.za),p.Va>p.Ub&&(p.Va=p.Ub),0<p.L){var R=p.ed;for(L=0;4>L;++L){var ue;if(p.Qa.Cb){var pe=p.Qa.Lb[L];p.Qa.Fb||(pe+=R.Tb)}else pe=R.Tb;for(ue=0;1>=ue;++ue){var ye=p.gd[L][ue],me=pe;if(R.Pc&&(me+=R.vd[0],ue&&(me+=R.od[0])),0<(me=0>me?0:63<me?63:me)){var be=me;0<R.wb&&(be=4<R.wb?be>>2:be>>1)>9-R.wb&&(be=9-R.wb),1>be&&(be=1),ye.dd=be,ye.tc=2*me+be,ye.ld=40<=me?2:15<=me?1:0}else ye.tc=0;ye.La=ue}}}L=0}else Fo(p,6,"Frame setup failed"),L=p.a;if(L=L==0){if(L){p.$c=0,0<p.Aa||(p.Ic=g1);e:{L=p.Ic,R=4*(be=p.za);var we=32*be,Ne=be+1,Ie=0<p.L?be*(0<p.Aa?2:1):0,$e=(p.Aa==2?2:1)*be;if((ye=R+832+(ue=3*(16*L+bi[p.L])/2*we)+(pe=p.Fa!=null&&0<p.Fa.length?p.Kc.c*p.Kc.i:0))!=ye)L=0;else{if(ye>p.Vb){if(p.Vb=0,p.Ec=l(ye),p.Fc=0,p.Ec==null){L=Fo(p,1,"no memory during frame initialization.");break e}p.Vb=ye}ye=p.Ec,me=p.Fc,p.Ac=ye,p.Bc=me,me+=R,p.Gd=s(we,Ws),p.Hd=0,p.rb=s(Ne+1,Gs),p.sb=1,p.wa=Ie?s(Ie,Rr):null,p.Y=0,p.D.Nb=0,p.D.wa=p.wa,p.D.Y=p.Y,0<p.Aa&&(p.D.Y+=be),o(!0),p.oc=ye,p.pc=me,me+=832,p.ya=s($e,Tn),p.aa=0,p.D.ya=p.ya,p.D.aa=p.aa,p.Aa==2&&(p.D.aa+=be),p.R=16*be,p.B=8*be,be=(we=bi[p.L])*p.R,we=we/2*p.B,p.sa=ye,p.ta=me+be,p.qa=p.sa,p.ra=p.ta+16*L*p.R+we,p.Ha=p.qa,p.Ia=p.ra+8*L*p.B+we,p.$c=0,me+=ue,p.mb=pe?ye:null,p.nb=pe?me:null,o(me+pe<=p.Fc+p.Vb),On(p),r(p.Ac,p.Bc,0,R),L=1}}if(L){if(k.ka=0,k.y=p.sa,k.O=p.ta,k.f=p.qa,k.N=p.ra,k.ea=p.Ha,k.Vd=p.Ia,k.fa=p.R,k.Rc=p.B,k.F=null,k.J=0,!hd){for(L=-255;255>=L;++L)ud[255+L]=0>L?-L:L;for(L=-1020;1020>=L;++L)Ad[1020+L]=-128>L?-128:127<L?127:L;for(L=-112;112>=L;++L)cd[112+L]=-16>L?-16:15<L?15:L;for(L=-255;510>=L;++L)dd[255+L]=0>L?0:255<L?255:L;hd=1}Yl=Xu,nn=Ku,ja=Ys,Jl=ju,Sa=Js,rs=qs,Br=Gn,sn=Cr,xr=iA,Xa=Wn,ns=sA,Ml=Yr,La=Kn,io=si,uo=ni,No=Fa,zo=Ha,Ea=nA,Zl[0]=ha,Zl[1]=qu,Zl[2]=eA,Zl[3]=tA,Zl[4]=ti,Zl[5]=Xr,Zl[6]=oi,Zl[7]=Pn,Zl[8]=lA,Zl[9]=oA,Ya[0]=Zs,Ya[1]=Ju,Ya[2]=xa,Ya[3]=Kr,Ya[4]=tl,Ya[5]=Zu,Ya[6]=ei,Ia[0]=Pa,Ia[1]=Yu,Ia[2]=aA,Ia[3]=Hn,Ia[4]=kr,Ia[5]=rA,Ia[6]=Rn,L=1}else L=0}L&&(L=function(Le,He){for(Le.M=0;Le.M<Le.Va;++Le.M){var Qe,_e=Le.Jc[Le.M&Le.Xb],Se=Le.m,De=Le;for(Qe=0;Qe<De.za;++Qe){var Re=Se,Pe=De,lt=Pe.Ac,Ze=Pe.Bc+4*Qe,gt=Pe.zc,et=Pe.ya[Pe.aa+Qe];if(Pe.Qa.Bb?et.$b=ge(Re,Pe.Pa.jb[0])?2+ge(Re,Pe.Pa.jb[2]):ge(Re,Pe.Pa.jb[1]):et.$b=0,Pe.kc&&(et.Ad=ge(Re,Pe.Bd)),et.Za=!ge(Re,145)+0,et.Za){var Rt=et.Ob,Yt=0;for(Pe=0;4>Pe;++Pe){var Ot,$t=gt[0+Pe];for(Ot=0;4>Ot;++Ot){$t=t1[lt[Ze+Ot]][$t];for(var ao=pd[ge(Re,$t[0])];0<ao;)ao=pd[2*ao+ge(Re,$t[ao])];$t=-ao,lt[Ze+Ot]=$t}n(Rt,Yt,lt,Ze,4),Yt+=4,gt[0+Pe]=$t}}else $t=ge(Re,156)?ge(Re,128)?1:3:ge(Re,163)?2:0,et.Ob[0]=$t,r(lt,Ze,$t,4),r(gt,0,$t,4);et.Dd=ge(Re,142)?ge(Re,114)?ge(Re,183)?1:3:2:0}if(De.m.Ka)return Fo(Le,7,"Premature end-of-partition0 encountered.");for(;Le.ja<Le.za;++Le.ja){if(De=_e,Re=(Se=Le).rb[Se.sb-1],lt=Se.rb[Se.sb+Se.ja],Qe=Se.ya[Se.aa+Se.ja],Ze=Se.kc?Qe.Ad:0)Re.la=lt.la=0,Qe.Za||(Re.Na=lt.Na=0),Qe.Hc=0,Qe.Gc=0,Qe.ia=0;else{var to,Ft;if(Re=lt,lt=De,Ze=Se.Pa.Xc,gt=Se.ya[Se.aa+Se.ja],et=Se.pb[gt.$b],Pe=gt.ad,Rt=0,Yt=Se.rb[Se.sb-1],$t=Ot=0,r(Pe,Rt,0,384),gt.Za)var Uo=0,pl=Ze[3];else{ao=l(16);var Vo=Re.Na+Yt.Na;if(Vo=ss(lt,Ze[1],Vo,et.Eb,0,ao,0),Re.Na=Yt.Na=(0<Vo)+0,1<Vo)Yl(ao,0,Pe,Rt);else{var yl=ao[0]+3>>3;for(ao=0;256>ao;ao+=16)Pe[Rt+ao]=yl}Uo=1,pl=Ze[0]}var Jt=15&Re.la,Fl=15&Yt.la;for(ao=0;4>ao;++ao){var Nl=1&Fl;for(yl=Ft=0;4>yl;++yl)Jt=Jt>>1|(Nl=(Vo=ss(lt,pl,Vo=Nl+(1&Jt),et.Sc,Uo,Pe,Rt))>Uo)<<7,Ft=Ft<<2|(3<Vo?3:1<Vo?2:Pe[Rt+0]!=0),Rt+=16;Jt>>=4,Fl=Fl>>1|Nl<<7,Ot=(Ot<<8|Ft)>>>0}for(pl=Jt,Uo=Fl>>4,to=0;4>to;to+=2){for(Ft=0,Jt=Re.la>>4+to,Fl=Yt.la>>4+to,ao=0;2>ao;++ao){for(Nl=1&Fl,yl=0;2>yl;++yl)Vo=Nl+(1&Jt),Jt=Jt>>1|(Nl=0<(Vo=ss(lt,Ze[2],Vo,et.Qc,0,Pe,Rt)))<<3,Ft=Ft<<2|(3<Vo?3:1<Vo?2:Pe[Rt+0]!=0),Rt+=16;Jt>>=2,Fl=Fl>>1|Nl<<5}$t|=Ft<<4*to,pl|=Jt<<4<<to,Uo|=(240&Fl)<<to}Re.la=pl,Yt.la=Uo,gt.Hc=Ot,gt.Gc=$t,gt.ia=43690&$t?0:et.ia,Ze=!(Ot|$t)}if(0<Se.L&&(Se.wa[Se.Y+Se.ja]=Se.gd[Qe.$b][Qe.Za],Se.wa[Se.Y+Se.ja].La|=!Ze),De.Ka)return Fo(Le,7,"Premature end-of-file encountered.")}if(On(Le),Se=He,De=1,Qe=(_e=Le).D,Re=0<_e.L&&_e.M>=_e.zb&&_e.M<=_e.Va,_e.Aa==0)e:{if(Qe.M=_e.M,Qe.uc=Re,Zn(_e,Qe),De=1,Qe=(Ft=_e.D).Nb,Re=($t=bi[_e.L])*_e.R,lt=$t/2*_e.B,ao=16*Qe*_e.R,yl=8*Qe*_e.B,Ze=_e.sa,gt=_e.ta-Re+ao,et=_e.qa,Pe=_e.ra-lt+yl,Rt=_e.Ha,Yt=_e.Ia-lt+yl,Fl=(Jt=Ft.M)==0,Ot=Jt>=_e.Va-1,_e.Aa==2&&Zn(_e,Ft),Ft.uc)for(Nl=(Vo=_e).D.M,o(Vo.D.uc),Ft=Vo.yb;Ft<Vo.Hb;++Ft){Uo=Ft,pl=Nl;var Ho=(qo=(ko=Vo).D).Nb;to=ko.R;var qo=qo.wa[qo.Y+Uo],cl=ko.sa,Ql=ko.ta+16*Ho*to+16*Uo,va=qo.dd,Ro=qo.tc;if(Ro!=0)if(o(3<=Ro),ko.L==1)0<Uo&&No(cl,Ql,to,Ro+4),qo.La&&Ea(cl,Ql,to,Ro),0<pl&&uo(cl,Ql,to,Ro+4),qo.La&&zo(cl,Ql,to,Ro);else{var $a=ko.B,Fr=ko.qa,An=ko.ra+8*Ho*$a+8*Uo,Za=ko.Ha,ko=ko.Ia+8*Ho*$a+8*Uo;Ho=qo.ld,0<Uo&&(sn(cl,Ql,to,Ro+4,va,Ho),Xa(Fr,An,Za,ko,$a,Ro+4,va,Ho)),qo.La&&(Ml(cl,Ql,to,Ro,va,Ho),io(Fr,An,Za,ko,$a,Ro,va,Ho)),0<pl&&(Br(cl,Ql,to,Ro+4,va,Ho),xr(Fr,An,Za,ko,$a,Ro+4,va,Ho)),qo.La&&(ns(cl,Ql,to,Ro,va,Ho),La(Fr,An,Za,ko,$a,Ro,va,Ho))}}if(_e.ia&&alert("todo:DitherRow"),Se.put!=null){if(Ft=16*Jt,Jt=16*(Jt+1),Fl?(Se.y=_e.sa,Se.O=_e.ta+ao,Se.f=_e.qa,Se.N=_e.ra+yl,Se.ea=_e.Ha,Se.W=_e.Ia+yl):(Ft-=$t,Se.y=Ze,Se.O=gt,Se.f=et,Se.N=Pe,Se.ea=Rt,Se.W=Yt),Ot||(Jt-=$t),Jt>Se.o&&(Jt=Se.o),Se.F=null,Se.J=null,_e.Fa!=null&&0<_e.Fa.length&&Ft<Jt&&(Se.J=Yn(_e,Se,Ft,Jt-Ft),Se.F=_e.mb,Se.F==null&&Se.F.length==0)){De=Fo(_e,3,"Could not decode alpha data.");break e}Ft<Se.j&&($t=Se.j-Ft,Ft=Se.j,o(!(1&$t)),Se.O+=_e.R*$t,Se.N+=_e.B*($t>>1),Se.W+=_e.B*($t>>1),Se.F!=null&&(Se.J+=Se.width*$t)),Ft<Jt&&(Se.O+=Se.v,Se.N+=Se.v>>1,Se.W+=Se.v>>1,Se.F!=null&&(Se.J+=Se.v),Se.ka=Ft-Se.j,Se.U=Se.va-Se.v,Se.T=Jt-Ft,De=Se.put(Se))}Qe+1!=_e.Ic||Ot||(n(_e.sa,_e.ta-Re,Ze,gt+16*_e.R,Re),n(_e.qa,_e.ra-lt,et,Pe+8*_e.B,lt),n(_e.Ha,_e.Ia-lt,Rt,Yt+8*_e.B,lt))}if(!De)return Fo(Le,6,"Output aborted.")}return 1}(p,k)),k.bc!=null&&k.bc(k),L&=1}return L?(p.cb=0,L):0}function Wl(p,k,L,R,ue){ue=p[k+L+32*R]+(ue>>3),p[k+L+32*R]=-256&ue?0>ue?0:255:ue}function Wr(p,k,L,R,ue,pe){Wl(p,k,0,L,R+ue),Wl(p,k,1,L,R+pe),Wl(p,k,2,L,R-pe),Wl(p,k,3,L,R-ue)}function fl(p){return(20091*p>>16)+p}function zn(p,k,L,R){var ue,pe=0,ye=l(16);for(ue=0;4>ue;++ue){var me=p[k+0]+p[k+8],be=p[k+0]-p[k+8],we=(35468*p[k+4]>>16)-fl(p[k+12]),Ne=fl(p[k+4])+(35468*p[k+12]>>16);ye[pe+0]=me+Ne,ye[pe+1]=be+we,ye[pe+2]=be-we,ye[pe+3]=me-Ne,pe+=4,k++}for(ue=pe=0;4>ue;++ue)me=(p=ye[pe+0]+4)+ye[pe+8],be=p-ye[pe+8],we=(35468*ye[pe+4]>>16)-fl(ye[pe+12]),Wl(L,R,0,0,me+(Ne=fl(ye[pe+4])+(35468*ye[pe+12]>>16))),Wl(L,R,1,0,be+we),Wl(L,R,2,0,be-we),Wl(L,R,3,0,me-Ne),pe++,R+=32}function qs(p,k,L,R){var ue=p[k+0]+4,pe=35468*p[k+4]>>16,ye=fl(p[k+4]),me=35468*p[k+1]>>16;Wr(L,R,0,ue+ye,p=fl(p[k+1]),me),Wr(L,R,1,ue+pe,p,me),Wr(L,R,2,ue-pe,p,me),Wr(L,R,3,ue-ye,p,me)}function Ku(p,k,L,R,ue){zn(p,k,L,R),ue&&zn(p,k+16,L,R+4)}function Ys(p,k,L,R){nn(p,k+0,L,R,1),nn(p,k+32,L,R+128,1)}function ju(p,k,L,R){var ue;for(p=p[k+0]+4,ue=0;4>ue;++ue)for(k=0;4>k;++k)Wl(L,R,k,ue,p)}function Js(p,k,L,R){p[k+0]&&Jl(p,k+0,L,R),p[k+16]&&Jl(p,k+16,L,R+4),p[k+32]&&Jl(p,k+32,L,R+128),p[k+48]&&Jl(p,k+48,L,R+128+4)}function Xu(p,k,L,R){var ue,pe=l(16);for(ue=0;4>ue;++ue){var ye=p[k+0+ue]+p[k+12+ue],me=p[k+4+ue]+p[k+8+ue],be=p[k+4+ue]-p[k+8+ue],we=p[k+0+ue]-p[k+12+ue];pe[0+ue]=ye+me,pe[8+ue]=ye-me,pe[4+ue]=we+be,pe[12+ue]=we-be}for(ue=0;4>ue;++ue)ye=(p=pe[0+4*ue]+3)+pe[3+4*ue],me=pe[1+4*ue]+pe[2+4*ue],be=pe[1+4*ue]-pe[2+4*ue],we=p-pe[3+4*ue],L[R+0]=ye+me>>3,L[R+16]=we+be>>3,L[R+32]=ye-me>>3,L[R+48]=we-be>>3,R+=64}function Dn(p,k,L){var R,ue=k-32,pe=xl,ye=255-p[ue-1];for(R=0;R<L;++R){var me,be=pe,we=ye+p[k-1];for(me=0;me<L;++me)p[k+me]=be[we+p[ue+me]];k+=32}}function qu(p,k){Dn(p,k,4)}function Yu(p,k){Dn(p,k,8)}function Ju(p,k){Dn(p,k,16)}function xa(p,k){var L;for(L=0;16>L;++L)n(p,k+32*L,p,k-32,16)}function Kr(p,k){var L;for(L=16;0<L;--L)r(p,k,p[k-1],16),k+=32}function jr(p,k,L){var R;for(R=0;16>R;++R)r(k,L+32*R,p,16)}function Zs(p,k){var L,R=16;for(L=0;16>L;++L)R+=p[k-1+32*L]+p[k+L-32];jr(R>>5,p,k)}function tl(p,k){var L,R=8;for(L=0;16>L;++L)R+=p[k-1+32*L];jr(R>>4,p,k)}function Zu(p,k){var L,R=8;for(L=0;16>L;++L)R+=p[k+L-32];jr(R>>4,p,k)}function ei(p,k){jr(128,p,k)}function Ct(p,k,L){return p+2*k+L+2>>2}function eA(p,k){var L,R=k-32;for(R=new Uint8Array([Ct(p[R-1],p[R+0],p[R+1]),Ct(p[R+0],p[R+1],p[R+2]),Ct(p[R+1],p[R+2],p[R+3]),Ct(p[R+2],p[R+3],p[R+4])]),L=0;4>L;++L)n(p,k+32*L,R,0,R.length)}function tA(p,k){var L=p[k-1],R=p[k-1+32],ue=p[k-1+64],pe=p[k-1+96];Z(p,k+0,16843009*Ct(p[k-1-32],L,R)),Z(p,k+32,16843009*Ct(L,R,ue)),Z(p,k+64,16843009*Ct(R,ue,pe)),Z(p,k+96,16843009*Ct(ue,pe,pe))}function ha(p,k){var L,R=4;for(L=0;4>L;++L)R+=p[k+L-32]+p[k-1+32*L];for(R>>=3,L=0;4>L;++L)r(p,k+32*L,R,4)}function ti(p,k){var L=p[k-1+0],R=p[k-1+32],ue=p[k-1+64],pe=p[k-1-32],ye=p[k+0-32],me=p[k+1-32],be=p[k+2-32],we=p[k+3-32];p[k+0+96]=Ct(R,ue,p[k-1+96]),p[k+1+96]=p[k+0+64]=Ct(L,R,ue),p[k+2+96]=p[k+1+64]=p[k+0+32]=Ct(pe,L,R),p[k+3+96]=p[k+2+64]=p[k+1+32]=p[k+0+0]=Ct(ye,pe,L),p[k+3+64]=p[k+2+32]=p[k+1+0]=Ct(me,ye,pe),p[k+3+32]=p[k+2+0]=Ct(be,me,ye),p[k+3+0]=Ct(we,be,me)}function oi(p,k){var L=p[k+1-32],R=p[k+2-32],ue=p[k+3-32],pe=p[k+4-32],ye=p[k+5-32],me=p[k+6-32],be=p[k+7-32];p[k+0+0]=Ct(p[k+0-32],L,R),p[k+1+0]=p[k+0+32]=Ct(L,R,ue),p[k+2+0]=p[k+1+32]=p[k+0+64]=Ct(R,ue,pe),p[k+3+0]=p[k+2+32]=p[k+1+64]=p[k+0+96]=Ct(ue,pe,ye),p[k+3+32]=p[k+2+64]=p[k+1+96]=Ct(pe,ye,me),p[k+3+64]=p[k+2+96]=Ct(ye,me,be),p[k+3+96]=Ct(me,be,be)}function Xr(p,k){var L=p[k-1+0],R=p[k-1+32],ue=p[k-1+64],pe=p[k-1-32],ye=p[k+0-32],me=p[k+1-32],be=p[k+2-32],we=p[k+3-32];p[k+0+0]=p[k+1+64]=pe+ye+1>>1,p[k+1+0]=p[k+2+64]=ye+me+1>>1,p[k+2+0]=p[k+3+64]=me+be+1>>1,p[k+3+0]=be+we+1>>1,p[k+0+96]=Ct(ue,R,L),p[k+0+64]=Ct(R,L,pe),p[k+0+32]=p[k+1+96]=Ct(L,pe,ye),p[k+1+32]=p[k+2+96]=Ct(pe,ye,me),p[k+2+32]=p[k+3+96]=Ct(ye,me,be),p[k+3+32]=Ct(me,be,we)}function Pn(p,k){var L=p[k+0-32],R=p[k+1-32],ue=p[k+2-32],pe=p[k+3-32],ye=p[k+4-32],me=p[k+5-32],be=p[k+6-32],we=p[k+7-32];p[k+0+0]=L+R+1>>1,p[k+1+0]=p[k+0+64]=R+ue+1>>1,p[k+2+0]=p[k+1+64]=ue+pe+1>>1,p[k+3+0]=p[k+2+64]=pe+ye+1>>1,p[k+0+32]=Ct(L,R,ue),p[k+1+32]=p[k+0+96]=Ct(R,ue,pe),p[k+2+32]=p[k+1+96]=Ct(ue,pe,ye),p[k+3+32]=p[k+2+96]=Ct(pe,ye,me),p[k+3+64]=Ct(ye,me,be),p[k+3+96]=Ct(me,be,we)}function oA(p,k){var L=p[k-1+0],R=p[k-1+32],ue=p[k-1+64],pe=p[k-1+96];p[k+0+0]=L+R+1>>1,p[k+2+0]=p[k+0+32]=R+ue+1>>1,p[k+2+32]=p[k+0+64]=ue+pe+1>>1,p[k+1+0]=Ct(L,R,ue),p[k+3+0]=p[k+1+32]=Ct(R,ue,pe),p[k+3+32]=p[k+1+64]=Ct(ue,pe,pe),p[k+3+64]=p[k+2+64]=p[k+0+96]=p[k+1+96]=p[k+2+96]=p[k+3+96]=pe}function lA(p,k){var L=p[k-1+0],R=p[k-1+32],ue=p[k-1+64],pe=p[k-1+96],ye=p[k-1-32],me=p[k+0-32],be=p[k+1-32],we=p[k+2-32];p[k+0+0]=p[k+2+32]=L+ye+1>>1,p[k+0+32]=p[k+2+64]=R+L+1>>1,p[k+0+64]=p[k+2+96]=ue+R+1>>1,p[k+0+96]=pe+ue+1>>1,p[k+3+0]=Ct(me,be,we),p[k+2+0]=Ct(ye,me,be),p[k+1+0]=p[k+3+32]=Ct(L,ye,me),p[k+1+32]=p[k+3+64]=Ct(R,L,ye),p[k+1+64]=p[k+3+96]=Ct(ue,R,L),p[k+1+96]=Ct(pe,ue,R)}function aA(p,k){var L;for(L=0;8>L;++L)n(p,k+32*L,p,k-32,8)}function Hn(p,k){var L;for(L=0;8>L;++L)r(p,k,p[k-1],8),k+=32}function br(p,k,L){var R;for(R=0;8>R;++R)r(k,L+32*R,p,8)}function Pa(p,k){var L,R=8;for(L=0;8>L;++L)R+=p[k+L-32]+p[k-1+32*L];br(R>>4,p,k)}function rA(p,k){var L,R=4;for(L=0;8>L;++L)R+=p[k+L-32];br(R>>3,p,k)}function kr(p,k){var L,R=4;for(L=0;8>L;++L)R+=p[k-1+32*L];br(R>>3,p,k)}function Rn(p,k){br(128,p,k)}function qr(p,k,L){var R=p[k-L],ue=p[k+0],pe=3*(ue-R)+hA[1020+p[k-2*L]-p[k+L]],ye=di[112+(pe+4>>3)];p[k-L]=xl[255+R+di[112+(pe+3>>3)]],p[k+0]=xl[255+ue-ye]}function li(p,k,L,R){var ue=p[k+0],pe=p[k+L];return Ul[255+p[k-2*L]-p[k-L]]>R||Ul[255+pe-ue]>R}function ai(p,k,L,R){return 4*Ul[255+p[k-L]-p[k+0]]+Ul[255+p[k-2*L]-p[k+L]]<=R}function ri(p,k,L,R,ue){var pe=p[k-3*L],ye=p[k-2*L],me=p[k-L],be=p[k+0],we=p[k+L],Ne=p[k+2*L],Ie=p[k+3*L];return 4*Ul[255+me-be]+Ul[255+ye-we]>R?0:Ul[255+p[k-4*L]-pe]<=ue&&Ul[255+pe-ye]<=ue&&Ul[255+ye-me]<=ue&&Ul[255+Ie-Ne]<=ue&&Ul[255+Ne-we]<=ue&&Ul[255+we-be]<=ue}function ni(p,k,L,R){var ue=2*R+1;for(R=0;16>R;++R)ai(p,k+R,L,ue)&&qr(p,k+R,L)}function Fa(p,k,L,R){var ue=2*R+1;for(R=0;16>R;++R)ai(p,k+R*L,1,ue)&&qr(p,k+R*L,1)}function Ha(p,k,L,R){var ue;for(ue=3;0<ue;--ue)ni(p,k+=4*L,L,R)}function nA(p,k,L,R){var ue;for(ue=3;0<ue;--ue)Fa(p,k+=4,L,R)}function Ra(p,k,L,R,ue,pe,ye,me){for(pe=2*pe+1;0<ue--;){if(ri(p,k,L,pe,ye))if(li(p,k,L,me))qr(p,k,L);else{var be=p,we=k,Ne=L,Ie=be[we-2*Ne],$e=be[we-Ne],Le=be[we+0],He=be[we+Ne],Qe=be[we+2*Ne],_e=27*(De=hA[1020+3*(Le-$e)+hA[1020+Ie-He]])+63>>7,Se=18*De+63>>7,De=9*De+63>>7;be[we-3*Ne]=xl[255+be[we-3*Ne]+De],be[we-2*Ne]=xl[255+Ie+Se],be[we-Ne]=xl[255+$e+_e],be[we+0]=xl[255+Le-_e],be[we+Ne]=xl[255+He-Se],be[we+2*Ne]=xl[255+Qe-De]}k+=R}}function Kl(p,k,L,R,ue,pe,ye,me){for(pe=2*pe+1;0<ue--;){if(ri(p,k,L,pe,ye))if(li(p,k,L,me))qr(p,k,L);else{var be=p,we=k,Ne=L,Ie=be[we-Ne],$e=be[we+0],Le=be[we+Ne],He=di[112+((Qe=3*($e-Ie))+4>>3)],Qe=di[112+(Qe+3>>3)],_e=He+1>>1;be[we-2*Ne]=xl[255+be[we-2*Ne]+_e],be[we-Ne]=xl[255+Ie+Qe],be[we+0]=xl[255+$e-He],be[we+Ne]=xl[255+Le-_e]}k+=R}}function Gn(p,k,L,R,ue,pe){Ra(p,k,L,1,16,R,ue,pe)}function Cr(p,k,L,R,ue,pe){Ra(p,k,1,L,16,R,ue,pe)}function sA(p,k,L,R,ue,pe){var ye;for(ye=3;0<ye;--ye)Kl(p,k+=4*L,L,1,16,R,ue,pe)}function Yr(p,k,L,R,ue,pe){var ye;for(ye=3;0<ye;--ye)Kl(p,k+=4,1,L,16,R,ue,pe)}function iA(p,k,L,R,ue,pe,ye,me){Ra(p,k,ue,1,8,pe,ye,me),Ra(L,R,ue,1,8,pe,ye,me)}function Wn(p,k,L,R,ue,pe,ye,me){Ra(p,k,1,ue,8,pe,ye,me),Ra(L,R,1,ue,8,pe,ye,me)}function Kn(p,k,L,R,ue,pe,ye,me){Kl(p,k+4*ue,ue,1,8,pe,ye,me),Kl(L,R+4*ue,ue,1,8,pe,ye,me)}function si(p,k,L,R,ue,pe,ye,me){Kl(p,k+4,1,ue,8,pe,ye,me),Kl(L,R+4,1,ue,8,pe,ye,me)}function Jr(){this.ba=new qe,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new dt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function jn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Xn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ii(){this.ua=0,this.Wa=new N,this.vb=new N,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new oe,this.yc=new S}function uA(){this.xb=this.a=0,this.l=new Gr,this.ca=new qe,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new m,this.Pb=0,this.wd=new m,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ii,this.ab=0,this.gc=s(4,Xn),this.Oc=0}function Zr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gr,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function wr(p,k,L,R,ue,pe,ye){for(p=p==null?0:p[k+0],k=0;k<ye;++k)ue[pe+k]=p+L[R+k]&255,p=ue[pe+k]}function qn(p,k,L,R,ue,pe,ye){var me;if(p==null)wr(null,null,L,R,ue,pe,ye);else for(me=0;me<ye;++me)ue[pe+me]=p[k+me]+L[R+me]&255}function Ga(p,k,L,R,ue,pe,ye){if(p==null)wr(null,null,L,R,ue,pe,ye);else{var me,be=p[k+0],we=be,Ne=be;for(me=0;me<ye;++me)we=Ne+(be=p[k+me])-we,Ne=L[R+me]+(-256&we?0>we?0:255:we)&255,we=be,ue[pe+me]=Ne}}function Yn(p,k,L,R){var ue=k.width,pe=k.o;if(o(p!=null&&k!=null),0>L||0>=R||L+R>pe)return null;if(!p.Cc){if(p.ga==null){var ye;if(p.ga=new Zr,(ye=p.ga==null)||(ye=k.width*k.o,o(p.Gb.length==0),p.Gb=l(ye),p.Uc=0,p.Gb==null?ye=0:(p.mb=p.Gb,p.nb=p.Uc,p.rc=null,ye=1),ye=!ye),!ye){ye=p.ga;var me=p.Fa,be=p.P,we=p.qc,Ne=p.mb,Ie=p.nb,$e=be+1,Le=we-1,He=ye.l;if(o(me!=null&&Ne!=null&&k!=null),Ja[0]=null,Ja[1]=wr,Ja[2]=qn,Ja[3]=Ga,ye.ca=Ne,ye.tb=Ie,ye.c=k.width,ye.i=k.height,o(0<ye.c&&0<ye.i),1>=we)k=0;else if(ye.$a=me[be+0]>>0&3,ye.Z=me[be+0]>>2&3,ye.Lc=me[be+0]>>4&3,be=me[be+0]>>6&3,0>ye.$a||1<ye.$a||4<=ye.Z||1<ye.Lc||be)k=0;else if(He.put=Xo,He.ac=Vt,He.bc=go,He.ma=ye,He.width=k.width,He.height=k.height,He.Da=k.Da,He.v=k.v,He.va=k.va,He.j=k.j,He.o=k.o,ye.$a)e:{o(ye.$a==1),k=Il();t:for(;;){if(k==null){k=0;break e}if(o(ye!=null),ye.mc=k,k.c=ye.c,k.i=ye.i,k.l=ye.l,k.l.ma=ye,k.l.width=ye.c,k.l.height=ye.i,k.a=0,H(k.m,me,$e,Le),!da(ye.c,ye.i,1,k,null)||(k.ab==1&&k.gc[0].hc==3&&Ba(k.s)?(ye.ic=1,me=k.c*k.i,k.Ta=null,k.Ua=0,k.V=l(me),k.Ba=0,k.V==null?(k.a=1,k=0):k=1):(ye.ic=0,k=mr(k,ye.c)),!k))break t;k=1;break e}ye.mc=null,k=0}else k=Le>=ye.c*ye.i;ye=!k}if(ye)return null;p.ga.Lc!=1?p.Ga=0:R=pe-L}o(p.ga!=null),o(L+R<=pe);e:{if(k=(me=p.ga).c,pe=me.l.o,me.$a==0){if($e=p.rc,Le=p.Vc,He=p.Fa,be=p.P+1+L*k,we=p.mb,Ne=p.nb+L*k,o(be<=p.P+p.qc),me.Z!=0)for(o(Ja[me.Z]!=null),ye=0;ye<R;++ye)Ja[me.Z]($e,Le,He,be,we,Ne,k),$e=we,Le=Ne,Ne+=k,be+=k;else for(ye=0;ye<R;++ye)n(we,Ne,He,be,k),$e=we,Le=Ne,Ne+=k,be+=k;p.rc=$e,p.Vc=Le}else{if(o(me.mc!=null),k=L+R,o((ye=me.mc)!=null),o(k<=ye.i),ye.C>=k)k=1;else if(me.ic||Ee(),me.ic){me=ye.V,$e=ye.Ba,Le=ye.c;var Qe=ye.i,_e=(He=1,be=ye.$/Le,we=ye.$%Le,Ne=ye.m,Ie=ye.s,ye.$),Se=Le*Qe,De=Le*k,Re=Ie.wc,Pe=_e<De?mo(Ie,we,be):null;o(_e<=Se),o(k<=Qe),o(Ba(Ie));t:for(;;){for(;!Ne.h&&_e<De;){if(we&Re||(Pe=mo(Ie,we,be)),o(Pe!=null),J(Ne),256>(Qe=$o(Pe.G[0],Pe.H[0],Ne)))me[$e+_e]=Qe,++_e,++we>=Le&&(we=0,++be<=k&&!(be%16)&&Rl(ye,be));else{if(!(280>Qe)){He=0;break t}Qe=Ht(Qe-256,Ne);var lt,Ze=$o(Pe.G[4],Pe.H[4],Ne);if(J(Ne),!(_e>=(Ze=el(Le,Ze=Ht(Ze,Ne)))&&Se-_e>=Qe)){He=0;break t}for(lt=0;lt<Qe;++lt)me[$e+_e+lt]=me[$e+_e+lt-Ze];for(_e+=Qe,we+=Qe;we>=Le;)we-=Le,++be<=k&&!(be%16)&&Rl(ye,be);_e<De&&we&Re&&(Pe=mo(Ie,we,be))}o(Ne.h==x(Ne))}Rl(ye,be>k?k:be);break t}!He||Ne.h&&_e<Se?(He=0,ye.a=Ne.h?5:3):ye.$=_e,k=He}else k=Gl(ye,ye.V,ye.Ba,ye.c,ye.i,k,zr);if(!k){R=0;break e}}L+R>=pe&&(p.Cc=1),R=1}if(!R)return null;if(p.Cc&&((R=p.ga)!=null&&(R.mc=null),p.ga=null,0<p.Ga))return alert("todo:WebPDequantizeLevels"),null}return p.nb+L*ue}function F(p,k,L,R,ue,pe){for(;0<ue--;){var ye,me=p,be=k+(L?1:0),we=p,Ne=k+(L?0:3);for(ye=0;ye<R;++ye){var Ie=we[Ne+4*ye];Ie!=255&&(Ie*=32897,me[be+4*ye+0]=me[be+4*ye+0]*Ie>>23,me[be+4*ye+1]=me[be+4*ye+1]*Ie>>23,me[be+4*ye+2]=me[be+4*ye+2]*Ie>>23)}k+=pe}}function de(p,k,L,R,ue){for(;0<R--;){var pe;for(pe=0;pe<L;++pe){var ye=p[k+2*pe+0],me=15&(we=p[k+2*pe+1]),be=4369*me,we=(240&we|we>>4)*be>>16;p[k+2*pe+0]=(240&ye|ye>>4)*be>>16&240|(15&ye|ye<<4)*be>>16>>4&15,p[k+2*pe+1]=240&we|me}k+=ue}}function Be(p,k,L,R,ue,pe,ye,me){var be,we,Ne=255;for(we=0;we<ue;++we){for(be=0;be<R;++be){var Ie=p[k+be];pe[ye+4*be]=Ie,Ne&=Ie}k+=L,ye+=me}return Ne!=255}function Fe(p,k,L,R,ue){var pe;for(pe=0;pe<ue;++pe)L[R+pe]=p[k+pe]>>8}function Ee(){qa=F,un=de,ci=Be,id=Fe}function Te(p,k,L){b[p]=function(R,ue,pe,ye,me,be,we,Ne,Ie,$e,Le,He,Qe,_e,Se,De,Re){var Pe,lt=Re-1>>1,Ze=me[be+0]|we[Ne+0]<<16,gt=Ie[$e+0]|Le[He+0]<<16;o(R!=null);var et=3*Ze+gt+131074>>2;for(k(R[ue+0],255&et,et>>16,Qe,_e),pe!=null&&(et=3*gt+Ze+131074>>2,k(pe[ye+0],255&et,et>>16,Se,De)),Pe=1;Pe<=lt;++Pe){var Rt=me[be+Pe]|we[Ne+Pe]<<16,Yt=Ie[$e+Pe]|Le[He+Pe]<<16,Ot=Ze+Rt+gt+Yt+524296,$t=Ot+2*(Rt+gt)>>3;et=$t+Ze>>1,Ze=(Ot=Ot+2*(Ze+Yt)>>3)+Rt>>1,k(R[ue+2*Pe-1],255&et,et>>16,Qe,_e+(2*Pe-1)*L),k(R[ue+2*Pe-0],255&Ze,Ze>>16,Qe,_e+(2*Pe-0)*L),pe!=null&&(et=Ot+gt>>1,Ze=$t+Yt>>1,k(pe[ye+2*Pe-1],255&et,et>>16,Se,De+(2*Pe-1)*L),k(pe[ye+2*Pe+0],255&Ze,Ze>>16,Se,De+(2*Pe+0)*L)),Ze=Rt,gt=Yt}1&Re||(et=3*Ze+gt+131074>>2,k(R[ue+Re-1],255&et,et>>16,Qe,_e+(Re-1)*L),pe!=null&&(et=3*gt+Ze+131074>>2,k(pe[ye+Re-1],255&et,et>>16,Se,De+(Re-1)*L)))}}function je(){Vl[hi]=r1,Vl[fi]=md,Vl[fd]=n1,Vl[vi]=bd,Vl[gi]=kd,Vl[fA]=Cd,Vl[vd]=s1,Vl[vA]=md,Vl[gA]=bd,Vl[pi]=kd,Vl[pA]=Cd}function ot(p){return p&~i1?0>p?0:255:p>>wd}function ht(p,k){return ot((19077*p>>8)+(26149*k>>8)-14234)}function Bt(p,k,L){return ot((19077*p>>8)-(6419*k>>8)-(13320*L>>8)+8708)}function _t(p,k){return ot((19077*p>>8)+(33050*k>>8)-17685)}function Qt(p,k,L,R,ue){R[ue+0]=ht(p,L),R[ue+1]=Bt(p,k,L),R[ue+2]=_t(p,k)}function po(p,k,L,R,ue){R[ue+0]=_t(p,k),R[ue+1]=Bt(p,k,L),R[ue+2]=ht(p,L)}function bo(p,k,L,R,ue){var pe=Bt(p,k,L);k=pe<<3&224|_t(p,k)>>3,R[ue+0]=248&ht(p,L)|pe>>5,R[ue+1]=k}function Mo(p,k,L,R,ue){var pe=240&_t(p,k)|15;R[ue+0]=240&ht(p,L)|Bt(p,k,L)>>4,R[ue+1]=pe}function ol(p,k,L,R,ue){R[ue+0]=255,Qt(p,k,L,R,ue+1)}function Po(p,k,L,R,ue){po(p,k,L,R,ue),R[ue+3]=255}function jl(p,k,L,R,ue){Qt(p,k,L,R,ue),R[ue+3]=255}function Bl(p,k){return 0>p?0:p>k?k:p}function Na(p,k,L){b[p]=function(R,ue,pe,ye,me,be,we,Ne,Ie){for(var $e=Ne+(-2&Ie)*L;Ne!=$e;)k(R[ue+0],pe[ye+0],me[be+0],we,Ne),k(R[ue+1],pe[ye+0],me[be+0],we,Ne+L),ue+=2,++ye,++be,Ne+=2*L;1&Ie&&k(R[ue+0],pe[ye+0],me[be+0],we,Ne)}}function ui(p,k,L){return L==0?p==0?k==0?6:5:k==0?4:0:L}function Jn(p,k,L,R,ue){switch(p>>>30){case 3:nn(k,L,R,ue,0);break;case 2:rs(k,L,R,ue);break;case 1:Jl(k,L,R,ue)}}function Zn(p,k){var L,R,ue=k.M,pe=k.Nb,ye=p.oc,me=p.pc+40,be=p.oc,we=p.pc+584,Ne=p.oc,Ie=p.pc+600;for(L=0;16>L;++L)ye[me+32*L-1]=129;for(L=0;8>L;++L)be[we+32*L-1]=129,Ne[Ie+32*L-1]=129;for(0<ue?ye[me-1-32]=be[we-1-32]=Ne[Ie-1-32]=129:(r(ye,me-32-1,127,21),r(be,we-32-1,127,9),r(Ne,Ie-32-1,127,9)),R=0;R<p.za;++R){var $e=k.ya[k.aa+R];if(0<R){for(L=-1;16>L;++L)n(ye,me+32*L-4,ye,me+32*L+12,4);for(L=-1;8>L;++L)n(be,we+32*L-4,be,we+32*L+4,4),n(Ne,Ie+32*L-4,Ne,Ie+32*L+4,4)}var Le=p.Gd,He=p.Hd+R,Qe=$e.ad,_e=$e.Hc;if(0<ue&&(n(ye,me-32,Le[He].y,0,16),n(be,we-32,Le[He].f,0,8),n(Ne,Ie-32,Le[He].ea,0,8)),$e.Za){var Se=ye,De=me-32+16;for(0<ue&&(R>=p.za-1?r(Se,De,Le[He].y[15],4):n(Se,De,Le[He+1].y,0,4)),L=0;4>L;L++)Se[De+128+L]=Se[De+256+L]=Se[De+384+L]=Se[De+0+L];for(L=0;16>L;++L,_e<<=2)Se=ye,De=me+xd[L],Zl[$e.Ob[L]](Se,De),Jn(_e,Qe,16*+L,Se,De)}else if(Se=ui(R,ue,$e.Ob[0]),Ya[Se](ye,me),_e!=0)for(L=0;16>L;++L,_e<<=2)Jn(_e,Qe,16*+L,ye,me+xd[L]);for(L=$e.Gc,Se=ui(R,ue,$e.Dd),Ia[Se](be,we),Ia[Se](Ne,Ie),_e=Qe,Se=be,De=we,255&($e=L>>0)&&(170&$e?ja(_e,256,Se,De):Sa(_e,256,Se,De)),$e=Ne,_e=Ie,255&(L>>=8)&&(170&L?ja(Qe,320,$e,_e):Sa(Qe,320,$e,_e)),ue<p.Ub-1&&(n(Le[He].y,0,ye,me+480,16),n(Le[He].f,0,be,we+224,8),n(Le[He].ea,0,Ne,Ie+224,8)),L=8*pe*p.B,Le=p.sa,He=p.ta+16*R+16*pe*p.R,Qe=p.qa,$e=p.ra+8*R+L,_e=p.Ha,Se=p.Ia+8*R+L,L=0;16>L;++L)n(Le,He+L*p.R,ye,me+32*L,16);for(L=0;8>L;++L)n(Qe,$e+L*p.B,be,we+32*L,8),n(_e,Se+L*p.B,Ne,Ie+32*L,8)}}function en(p,k,L,R,ue,pe,ye,me,be){var we=[0],Ne=[0],Ie=0,$e=be!=null?be.kd:0,Le=be??new jn;if(p==null||12>L)return 7;Le.data=p,Le.w=k,Le.ha=L,k=[k],L=[L],Le.gb=[Le.gb];e:{var He=k,Qe=L,_e=Le.gb;if(o(p!=null),o(Qe!=null),o(_e!=null),_e[0]=0,12<=Qe[0]&&!a(p,He[0],"RIFF")){if(a(p,He[0]+8,"WEBP")){_e=3;break e}var Se=D(p,He[0]+4);if(12>Se||4294967286<Se){_e=3;break e}if($e&&Se>Qe[0]-8){_e=7;break e}_e[0]=Se,He[0]+=12,Qe[0]-=12}_e=0}if(_e!=0)return _e;for(Se=0<Le.gb[0],L=L[0];;){e:{var De=p;Qe=k,_e=L;var Re=we,Pe=Ne,lt=He=[0];if((et=Ie=[Ie])[0]=0,8>_e[0])_e=7;else{if(!a(De,Qe[0],"VP8X")){if(D(De,Qe[0]+4)!=10){_e=3;break e}if(18>_e[0]){_e=7;break e}var Ze=D(De,Qe[0]+8),gt=1+z(De,Qe[0]+12);if(2147483648<=gt*(De=1+z(De,Qe[0]+15))){_e=3;break e}lt!=null&&(lt[0]=Ze),Re!=null&&(Re[0]=gt),Pe!=null&&(Pe[0]=De),Qe[0]+=18,_e[0]-=18,et[0]=1}_e=0}}if(Ie=Ie[0],He=He[0],_e!=0)return _e;if(Qe=!!(2&He),!Se&&Ie)return 3;if(pe!=null&&(pe[0]=!!(16&He)),ye!=null&&(ye[0]=Qe),me!=null&&(me[0]=0),ye=we[0],He=Ne[0],Ie&&Qe&&be==null){_e=0;break}if(4>L){_e=7;break}if(Se&&Ie||!Se&&!Ie&&!a(p,k[0],"ALPH")){L=[L],Le.na=[Le.na],Le.P=[Le.P],Le.Sa=[Le.Sa];e:{Ze=p,_e=k,Se=L;var et=Le.gb;Re=Le.na,Pe=Le.P,lt=Le.Sa,gt=22,o(Ze!=null),o(Se!=null),De=_e[0];var Rt=Se[0];for(o(Re!=null),o(lt!=null),Re[0]=null,Pe[0]=null,lt[0]=0;;){if(_e[0]=De,Se[0]=Rt,8>Rt){_e=7;break e}var Yt=D(Ze,De+4);if(4294967286<Yt){_e=3;break e}var Ot=8+Yt+1&-2;if(gt+=Ot,0<et&&gt>et){_e=3;break e}if(!a(Ze,De,"VP8 ")||!a(Ze,De,"VP8L")){_e=0;break e}if(Rt[0]<Ot){_e=7;break e}a(Ze,De,"ALPH")||(Re[0]=Ze,Pe[0]=De+8,lt[0]=Yt),De+=Ot,Rt-=Ot}}if(L=L[0],Le.na=Le.na[0],Le.P=Le.P[0],Le.Sa=Le.Sa[0],_e!=0)break}L=[L],Le.Ja=[Le.Ja],Le.xa=[Le.xa];e:if(et=p,_e=k,Se=L,Re=Le.gb[0],Pe=Le.Ja,lt=Le.xa,Ze=_e[0],De=!a(et,Ze,"VP8 "),gt=!a(et,Ze,"VP8L"),o(et!=null),o(Se!=null),o(Pe!=null),o(lt!=null),8>Se[0])_e=7;else{if(De||gt){if(et=D(et,Ze+4),12<=Re&&et>Re-12){_e=3;break e}if($e&&et>Se[0]-8){_e=7;break e}Pe[0]=et,_e[0]+=8,Se[0]-=8,lt[0]=gt}else lt[0]=5<=Se[0]&&et[Ze+0]==47&&!(et[Ze+4]>>5),Pe[0]=Se[0];_e=0}if(L=L[0],Le.Ja=Le.Ja[0],Le.xa=Le.xa[0],k=k[0],_e!=0)break;if(4294967286<Le.Ja)return 3;if(me==null||Qe||(me[0]=Le.xa?2:1),ye=[ye],He=[He],Le.xa){if(5>L){_e=7;break}me=ye,$e=He,Qe=pe,p==null||5>L?p=0:5<=L&&p[k+0]==47&&!(p[k+4]>>5)?(Se=[0],et=[0],Re=[0],H(Pe=new m,p,k,L),ut(Pe,Se,et,Re)?(me!=null&&(me[0]=Se[0]),$e!=null&&($e[0]=et[0]),Qe!=null&&(Qe[0]=Re[0]),p=1):p=0):p=0}else{if(10>L){_e=7;break}me=He,p==null||10>L||!Ks(p,k+3,L-3)?p=0:($e=p[k+0]|p[k+1]<<8|p[k+2]<<16,Qe=16383&(p[k+7]<<8|p[k+6]),p=16383&(p[k+9]<<8|p[k+8]),1&$e||3<($e>>1&7)||!($e>>4&1)||$e>>5>=Le.Ja||!Qe||!p?p=0:(ye&&(ye[0]=Qe),me&&(me[0]=p),p=1))}if(!p||(ye=ye[0],He=He[0],Ie&&(we[0]!=ye||Ne[0]!=He)))return 3;be!=null&&(be[0]=Le,be.offset=k-be.w,o(4294967286>k-be.w),o(be.offset==be.ha-L));break}return _e==0||_e==7&&Ie&&be==null?(pe!=null&&(pe[0]|=Le.na!=null&&0<Le.na.length),R!=null&&(R[0]=ye),ue!=null&&(ue[0]=He),0):_e}function es(p,k,L){var R=k.width,ue=k.height,pe=0,ye=0,me=R,be=ue;if(k.Da=p!=null&&0<p.Da,k.Da&&(me=p.cd,be=p.bd,pe=p.v,ye=p.j,11>L||(pe&=-2,ye&=-2),0>pe||0>ye||0>=me||0>=be||pe+me>R||ye+be>ue))return 0;if(k.v=pe,k.j=ye,k.va=pe+me,k.o=ye+be,k.U=me,k.T=be,k.da=p!=null&&0<p.da,k.da){if(!j(me,be,L=[p.ib],pe=[p.hb]))return 0;k.ib=L[0],k.hb=pe[0]}return k.ob=p!=null&&p.ob,k.Kb=p==null||!p.Sd,k.da&&(k.ob=k.ib<3*R/4&&k.hb<3*ue/4,k.Kb=0),1}function ts(p){if(p==null)return 2;if(11>p.S){var k=p.f.RGBA;k.fb+=(p.height-1)*k.A,k.A=-k.A}else k=p.f.kb,p=p.height,k.O+=(p-1)*k.fa,k.fa=-k.fa,k.N+=(p-1>>1)*k.Ab,k.Ab=-k.Ab,k.W+=(p-1>>1)*k.Db,k.Db=-k.Db,k.F!=null&&(k.J+=(p-1)*k.lb,k.lb=-k.lb);return 0}function tn(p,k,L,R){if(R==null||0>=p||0>=k)return 2;if(L!=null){if(L.Da){var ue=L.cd,pe=L.bd,ye=-2&L.v,me=-2&L.j;if(0>ye||0>me||0>=ue||0>=pe||ye+ue>p||me+pe>k)return 2;p=ue,k=pe}if(L.da){if(!j(p,k,ue=[L.ib],pe=[L.hb]))return 2;p=ue[0],k=pe[0]}}R.width=p,R.height=k;e:{var be=R.width,we=R.height;if(p=R.S,0>=be||0>=we||!(p>=hi&&13>p))p=2;else{if(0>=R.Rd&&R.sd==null){ye=pe=ue=k=0;var Ne=(me=be*Fd[p])*we;if(11>p||(pe=(we+1)/2*(k=(be+1)/2),p==12&&(ye=(ue=be)*we)),(we=l(Ne+2*pe+ye))==null){p=1;break e}R.sd=we,11>p?((be=R.f.RGBA).eb=we,be.fb=0,be.A=me,be.size=Ne):((be=R.f.kb).y=we,be.O=0,be.fa=me,be.Fd=Ne,be.f=we,be.N=0+Ne,be.Ab=k,be.Cd=pe,be.ea=we,be.W=0+Ne+pe,be.Db=k,be.Ed=pe,p==12&&(be.F=we,be.J=0+Ne+2*pe),be.Tc=ye,be.lb=ue)}if(k=1,ue=R.S,pe=R.width,ye=R.height,ue>=hi&&13>ue)if(11>ue)p=R.f.RGBA,k&=(me=Math.abs(p.A))*(ye-1)+pe<=p.size,k&=me>=pe*Fd[ue],k&=p.eb!=null;else{p=R.f.kb,me=(pe+1)/2,Ne=(ye+1)/2,be=Math.abs(p.fa),we=Math.abs(p.Ab);var Ie=Math.abs(p.Db),$e=Math.abs(p.lb),Le=$e*(ye-1)+pe;k&=be*(ye-1)+pe<=p.Fd,k&=we*(Ne-1)+me<=p.Cd,k=(k&=Ie*(Ne-1)+me<=p.Ed)&be>=pe&we>=me&Ie>=me,k&=p.y!=null,k&=p.f!=null,k&=p.ea!=null,ue==12&&(k&=$e>=pe,k&=Le<=p.Tc,k&=p.F!=null)}else k=0;p=k?0:2}}return p!=0||L!=null&&L.fd&&(p=ts(R)),p}var vl=64,on=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ln=24,an=32,os=8,gl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];re("Predictor0","PredictorAdd0"),b.Predictor0=function(){return 4278190080},b.Predictor1=function(p){return p},b.Predictor2=function(p,k,L){return k[L+0]},b.Predictor3=function(p,k,L){return k[L+1]},b.Predictor4=function(p,k,L){return k[L-1]},b.Predictor5=function(p,k,L){return G(G(p,k[L+1]),k[L+0])},b.Predictor6=function(p,k,L){return G(p,k[L-1])},b.Predictor7=function(p,k,L){return G(p,k[L+0])},b.Predictor8=function(p,k,L){return G(k[L-1],k[L+0])},b.Predictor9=function(p,k,L){return G(k[L+0],k[L+1])},b.Predictor10=function(p,k,L){return G(G(p,k[L-1]),G(k[L+0],k[L+1]))},b.Predictor11=function(p,k,L){var R=k[L+0];return 0>=se(R>>24&255,p>>24&255,(k=k[L-1])>>24&255)+se(R>>16&255,p>>16&255,k>>16&255)+se(R>>8&255,p>>8&255,k>>8&255)+se(255&R,255&p,255&k)?R:p},b.Predictor12=function(p,k,L){var R=k[L+0];return(ne((p>>24&255)+(R>>24&255)-((k=k[L-1])>>24&255))<<24|ne((p>>16&255)+(R>>16&255)-(k>>16&255))<<16|ne((p>>8&255)+(R>>8&255)-(k>>8&255))<<8|ne((255&p)+(255&R)-(255&k)))>>>0},b.Predictor13=function(p,k,L){var R=k[L-1];return(Ae((p=G(p,k[L+0]))>>24&255,R>>24&255)<<24|Ae(p>>16&255,R>>16&255)<<16|Ae(p>>8&255,R>>8&255)<<8|Ae(p>>0&255,R>>0&255))>>>0};var AA=b.PredictorAdd0;b.PredictorAdd1=ve,re("Predictor2","PredictorAdd2"),re("Predictor3","PredictorAdd3"),re("Predictor4","PredictorAdd4"),re("Predictor5","PredictorAdd5"),re("Predictor6","PredictorAdd6"),re("Predictor7","PredictorAdd7"),re("Predictor8","PredictorAdd8"),re("Predictor9","PredictorAdd9"),re("Predictor10","PredictorAdd10"),re("Predictor11","PredictorAdd11"),re("Predictor12","PredictorAdd12"),re("Predictor13","PredictorAdd13");var ls=b.PredictorAdd2;Ye("ColorIndexInverseTransform","MapARGB","32b",function(p){return p>>8&255},function(p){return p}),Ye("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(p){return p},function(p){return p>>8&255});var Ai,Xl=b.ColorIndexInverseTransform,as=b.MapARGB,cA=b.VP8LColorIndexInverseTransformAlpha,dA=b.MapAlpha,Wa=b.VP8LPredictorsAdd=[];Wa.length=16,(b.VP8LPredictors=[]).length=16,(b.VP8LPredictorsAdd_C=[]).length=16,(b.VP8LPredictors_C=[]).length=16;var $l,ql,Ka,fa,_a,rn,Yl,nn,rs,ja,Jl,Sa,Br,sn,xr,Xa,ns,Ml,La,io,uo,No,zo,Ea,qa,un,ci,id,ud=l(511),Ad=l(2041),cd=l(225),dd=l(767),hd=0,hA=Ad,di=cd,xl=dd,Ul=ud,hi=0,fi=1,fd=2,vi=3,gi=4,fA=5,vd=6,vA=7,gA=8,pi=9,pA=10,Gg=[2,3,7],Wg=[3,3,11],gd=[280,256,256,256,40],Kg=[0,1,1,1,0],jg=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xg=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],qg=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Yg=8,yA=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],mA=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ss=null,Jg=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Zg=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],pd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],e1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],t1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],o1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],l1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ya=[],Zl=[],Ia=[],a1=1,yd=2,Ja=[],Vl=[];Te("UpsampleRgbLinePair",Qt,3),Te("UpsampleBgrLinePair",po,3),Te("UpsampleRgbaLinePair",jl,4),Te("UpsampleBgraLinePair",Po,4),Te("UpsampleArgbLinePair",ol,4),Te("UpsampleRgba4444LinePair",Mo,2),Te("UpsampleRgb565LinePair",bo,2);var r1=b.UpsampleRgbLinePair,n1=b.UpsampleBgrLinePair,md=b.UpsampleRgbaLinePair,bd=b.UpsampleBgraLinePair,kd=b.UpsampleArgbLinePair,Cd=b.UpsampleRgba4444LinePair,s1=b.UpsampleRgb565LinePair,yi=16,mi=1<<yi-1,is=-227,bA=482,wd=6,i1=(256<<wd)-1,Bd=0,u1=l(256),A1=l(256),c1=l(256),d1=l(256),h1=l(bA-is),f1=l(bA-is);Na("YuvToRgbRow",Qt,3),Na("YuvToBgrRow",po,3),Na("YuvToRgbaRow",jl,4),Na("YuvToBgraRow",Po,4),Na("YuvToArgbRow",ol,4),Na("YuvToRgba4444Row",Mo,2),Na("YuvToRgb565Row",bo,2);var xd=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],bi=[0,2,8],v1=[8,7,6,4,4,2,2,2,1,1,1,1],g1=1;this.WebPDecodeRGBA=function(p,k,L,R,ue){var pe=fi,ye=new Jr,me=new qe;ye.ba=me,me.S=pe,me.width=[me.width],me.height=[me.height];var be=me.width,we=me.height,Ne=new mt;if(Ne==null||p==null)var Ie=2;else o(Ne!=null),Ie=en(p,k,L,Ne.width,Ne.height,Ne.Pd,Ne.Qd,Ne.format,null);if(Ie!=0?be=0:(be!=null&&(be[0]=Ne.width[0]),we!=null&&(we[0]=Ne.height[0]),be=1),be){me.width=me.width[0],me.height=me.height[0],R!=null&&(R[0]=me.width),ue!=null&&(ue[0]=me.height);e:{if(R=new Gr,(ue=new jn).data=p,ue.w=k,ue.ha=L,ue.kd=1,k=[0],o(ue!=null),((p=en(ue.data,ue.w,ue.ha,null,null,null,k,null,ue))==0||p==7)&&k[0]&&(p=4),(k=p)==0){if(o(ye!=null),R.data=ue.data,R.w=ue.w+ue.offset,R.ha=ue.ha-ue.offset,R.put=Xo,R.ac=Vt,R.bc=go,R.ma=ye,ue.xa){if((p=Il())==null){ye=1;break e}if(function($e,Le){var He=[0],Qe=[0],_e=[0];t:for(;;){if($e==null)return 0;if(Le==null)return $e.a=2,0;if($e.l=Le,$e.a=0,H($e.m,Le.data,Le.w,Le.ha),!ut($e.m,He,Qe,_e)){$e.a=3;break t}if($e.xb=yd,Le.width=He[0],Le.height=Qe[0],!da(He[0],Qe[0],1,$e,null))break t;return 1}return o($e.a!=0),0}(p,R)){if(R=(k=tn(R.width,R.height,ye.Oa,ye.ba))==0){t:{R=p;o:for(;;){if(R==null){R=0;break t}if(o(R.s.yc!=null),o(R.s.Ya!=null),o(0<R.s.Wb),o((L=R.l)!=null),o((ue=L.ma)!=null),R.xb!=0){if(R.ca=ue.ba,R.tb=ue.tb,o(R.ca!=null),!es(ue.Oa,L,vi)){R.a=2;break o}if(!mr(R,L.width)||L.da)break o;if((L.da||Ut(R.ca.S))&&Ee(),11>R.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),R.ca.f.kb.F!=null&&Ee()),R.Pb&&0<R.s.ua&&R.s.vb.X==null&&!fe(R.s.vb,R.s.Wa.Xa)){R.a=1;break o}R.xb=0}if(!Gl(R,R.V,R.Ba,R.c,R.i,L.o,Or))break o;ue.Dc=R.Ma,R=1;break t}o(R.a!=0),R=0}R=!R}R&&(k=p.a)}else k=p.a}else{if((p=new Gu)==null){ye=1;break e}if(p.Fa=ue.na,p.P=ue.P,p.qc=ue.Sa,js(p,R)){if((k=tn(R.width,R.height,ye.Oa,ye.ba))==0){if(p.Aa=0,L=ye.Oa,o((ue=p)!=null),L!=null){if(0<(be=0>(be=L.Md)?0:100<be?255:255*be/100)){for(we=Ne=0;4>we;++we)12>(Ie=ue.pb[we]).lc&&(Ie.ia=be*v1[0>Ie.lc?0:Ie.lc]>>3),Ne|=Ie.ia;Ne&&(alert("todo:VP8InitRandom"),ue.ia=1)}ue.Ga=L.Id,100<ue.Ga?ue.Ga=100:0>ue.Ga&&(ue.Ga=0)}Wu(p,R)||(k=p.a)}}else k=p.a}k==0&&ye.Oa!=null&&ye.Oa.fd&&(k=ts(ye.ba))}ye=k}pe=ye!=0?null:11>pe?me.f.RGBA.eb:me.f.kb.y}else pe=null;return pe};var Fd=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function f(b,T){for(var Y="",$=0;$<4;$++)Y+=String.fromCharCode(b[T++]);return Y}function c(b,T){return(b[T+0]<<0|b[T+1]<<8|b[T+2]<<16)>>>0}function y(b,T){return(b[T+0]<<0|b[T+1]<<8|b[T+2]<<16|b[T+3]<<24)>>>0}new h;var C=[0],A=[0],B=[],v=new h,i=t,g=function(b,T){var Y={},$=0,S=!1,W=0,oe=0;if(Y.frames=[],!function(_,x,V,J){for(var ke=0;ke<J;ke++)if(_[x+ke]!=V.charCodeAt(ke))return!0;return!1}(b,T,"RIFF",4)){var te,he;for(y(b,T+=4),T+=8;T<b.length;){var le=f(b,T),H=y(b,T+=4);T+=4;var P=H+(1&H);switch(le){case"VP8 ":case"VP8L":Y.frames[$]===void 0&&(Y.frames[$]={}),(m=Y.frames[$]).src_off=S?oe:T-8,m.src_size=W+H+8,$++,S&&(S=!1,W=0,oe=0);break;case"VP8X":(m=Y.header={}).feature_flags=b[T];var X=T+4;m.canvas_width=1+c(b,X),X+=3,m.canvas_height=1+c(b,X),X+=3;break;case"ALPH":S=!0,W=P+8,oe=T-8;break;case"ANIM":(m=Y.header).bgcolor=y(b,T),X=T+4,m.loop_count=(te=b)[(he=X)+0]<<0|te[he+1]<<8,X+=2;break;case"ANMF":var q,m;(m=Y.frames[$]={}).offset_x=2*c(b,T),T+=3,m.offset_y=2*c(b,T),T+=3,m.width=1+c(b,T),T+=3,m.height=1+c(b,T),T+=3,m.duration=c(b,T),T+=3,q=b[T++],m.dispose=1&q,m.blend=q>>1&1}le!="ANMF"&&(T+=P)}return Y}}(i,0);g.response=i,g.rgbaoutput=!0,g.dataurl=!1;var w=g.header?g.header:null,U=g.frames?g.frames:null;if(w){w.loop_counter=w.loop_count,C=[w.canvas_height],A=[w.canvas_width];for(var I=0;I<U.length&&U[I].blend!=0;I++);}var Q=U[0],K=v.WebPDecodeRGBA(i,Q.src_off,Q.src_size,A,C);Q.rgba=K,Q.imgwidth=A[0],Q.imgheight=C[0];for(var E=0;E<A[0]*C[0]*4;E++)B[E]=K[E];return this.width=A,this.height=C,this.data=B,this}(function(t){var o=function(){return typeof Vc=="function"},a=function(C,A,B,v){var i=4,g=s;switch(v){case t.image_compression.FAST:i=1,g=l;break;case t.image_compression.MEDIUM:i=6,g=u;break;case t.image_compression.SLOW:i=9,g=h}C=n(C,A,B,g);var w=Vc(C,{level:i});return t.__addimage__.arrayBufferToBinaryString(w)},n=function(C,A,B,v){for(var i,g,w,U=C.length/A,I=new Uint8Array(C.length+U),Q=c(),K=0;K<U;K+=1){if(w=K*A,i=C.subarray(w,w+A),v)I.set(v(i,B,g),w+K);else{for(var E,b=Q.length,T=[];E<b;E+=1)T[E]=Q[E](i,B,g);var Y=y(T.concat());I.set(T[Y],w+K)}g=i}return I},r=function(C){var A=Array.apply([],C);return A.unshift(0),A},l=function(C,A){var B,v=[],i=C.length;v[0]=1;for(var g=0;g<i;g+=1)B=C[g-A]||0,v[g+1]=C[g]-B+256&255;return v},s=function(C,A,B){var v,i=[],g=C.length;i[0]=2;for(var w=0;w<g;w+=1)v=B&&B[w]||0,i[w+1]=C[w]-v+256&255;return i},u=function(C,A,B){var v,i,g=[],w=C.length;g[0]=3;for(var U=0;U<w;U+=1)v=C[U-A]||0,i=B&&B[U]||0,g[U+1]=C[U]+256-(v+i>>>1)&255;return g},h=function(C,A,B){var v,i,g,w,U=[],I=C.length;U[0]=4;for(var Q=0;Q<I;Q+=1)v=C[Q-A]||0,i=B&&B[Q]||0,g=B&&B[Q-A]||0,w=f(v,i,g),U[Q+1]=C[Q]-w+256&255;return U},f=function(C,A,B){if(C===A&&A===B)return C;var v=Math.abs(A-B),i=Math.abs(C-B),g=Math.abs(C+A-B-B);return v<=i&&v<=g?C:i<=g?A:B},c=function(){return[r,l,s,u,h]},y=function(C){var A=C.map(function(B){return B.reduce(function(v,i){return v+Math.abs(i)},0)});return A.indexOf(Math.min.apply(null,A))};t.processPNG=function(C,A,B,v){var i,g,w,U,I,Q,K,E,b,T,Y,$,S,W,oe,te=this.decode.FLATE_DECODE,he="";if(this.__addimage__.isArrayBuffer(C)&&(C=new Uint8Array(C)),this.__addimage__.isArrayBufferView(C)){if(C=(w=new Ik(C)).imgData,g=w.bits,i=w.colorSpace,I=w.colors,[4,6].indexOf(w.colorType)!==-1){if(w.bits===8){b=(E=w.pixelBitlength==32?new Uint32Array(w.decodePixels().buffer):w.pixelBitlength==16?new Uint16Array(w.decodePixels().buffer):new Uint8Array(w.decodePixels().buffer)).length,Y=new Uint8Array(b*w.colors),T=new Uint8Array(b);var le,H=w.pixelBitlength-w.bits;for(W=0,oe=0;W<b;W++){for(S=E[W],le=0;le<H;)Y[oe++]=S>>>le&255,le+=w.bits;T[W]=S>>>le&255}}if(w.bits===16){b=(E=new Uint32Array(w.decodePixels().buffer)).length,Y=new Uint8Array(b*(32/w.pixelBitlength)*w.colors),T=new Uint8Array(b*(32/w.pixelBitlength)),$=w.colors>1,W=0,oe=0;for(var P=0;W<b;)S=E[W++],Y[oe++]=S>>>0&255,$&&(Y[oe++]=S>>>16&255,S=E[W++],Y[oe++]=S>>>0&255),T[P++]=S>>>16&255;g=8}v!==t.image_compression.NONE&&o()?(C=a(Y,w.width*w.colors,w.colors,v),K=a(T,w.width,1,v)):(C=Y,K=T,te=void 0)}if(w.colorType===3&&(i=this.color_spaces.INDEXED,Q=w.palette,w.transparency.indexed)){var X=w.transparency.indexed,q=0;for(W=0,b=X.length;W<b;++W)q+=X[W];if((q/=255)===b-1&&X.indexOf(0)!==-1)U=[X.indexOf(0)];else if(q!==b){for(E=w.decodePixels(),T=new Uint8Array(E.length),W=0,b=E.length;W<b;W++)T[W]=X[E[W]];K=a(T,w.width,1)}}var m=function(_){var x;switch(_){case t.image_compression.FAST:x=11;break;case t.image_compression.MEDIUM:x=13;break;case t.image_compression.SLOW:x=14;break;default:x=12}return x}(v);return te===this.decode.FLATE_DECODE&&(he="/Predictor "+m+" "),he+="/Colors "+I+" /BitsPerComponent "+g+" /Columns "+w.width,(this.__addimage__.isArrayBuffer(C)||this.__addimage__.isArrayBufferView(C))&&(C=this.__addimage__.arrayBufferToBinaryString(C)),(K&&this.__addimage__.isArrayBuffer(K)||this.__addimage__.isArrayBufferView(K))&&(K=this.__addimage__.arrayBufferToBinaryString(K)),{alias:B,data:C,index:A,filter:te,decodeParameters:he,transparency:U,palette:Q,sMask:K,predictor:m,width:w.width,height:w.height,bitsPerComponent:g,colorSpace:i}}}})(pt.API),function(t){t.processGIF89A=function(o,a,n,r){var l=new $k(o),s=l.width,u=l.height,h=[];l.decodeAndBlitFrameRGBA(0,h);var f={data:h,width:s,height:u},c=new rc(100).encode(f,100);return t.processJPEG.call(this,c,a,n,r)},t.processGIF87A=t.processGIF89A}(pt.API),oa.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var o=0;o<t;o++){var a=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:r,green:n,blue:a,quad:l}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},oa.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[t]()}catch(a){no.log("bit decode error:"+a)}},oa.prototype.bit1=function(){var t,o=Math.ceil(this.width/8),a=o%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<o;r++)for(var l=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*r*4,u=0;u<8&&8*r+u<this.width;u++){var h=this.palette[l>>7-u&1];this.data[s+4*u]=h.blue,this.data[s+4*u+1]=h.green,this.data[s+4*u+2]=h.red,this.data[s+4*u+3]=255}a!==0&&(this.pos+=4-a)}},oa.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),o=t%4,a=this.height-1;a>=0;a--){for(var n=this.bottom_up?a:this.height-1-a,r=0;r<t;r++){var l=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*r*4,u=l>>4,h=15&l,f=this.palette[u];if(this.data[s]=f.blue,this.data[s+1]=f.green,this.data[s+2]=f.red,this.data[s+3]=255,2*r+1>=this.width)break;f=this.palette[h],this.data[s+4]=f.blue,this.data[s+4+1]=f.green,this.data[s+4+2]=f.red,this.data[s+4+3]=255}o!==0&&(this.pos+=4-o)}},oa.prototype.bit8=function(){for(var t=this.width%4,o=this.height-1;o>=0;o--){for(var a=this.bottom_up?o:this.height-1-o,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),l=a*this.width*4+4*n;if(r<this.palette.length){var s=this.palette[r];this.data[l]=s.red,this.data[l+1]=s.green,this.data[l+2]=s.blue,this.data[l+3]=255}else this.data[l]=255,this.data[l+1]=255,this.data[l+2]=255,this.data[l+3]=255}t!==0&&(this.pos+=4-t)}},oa.prototype.bit15=function(){for(var t=this.width%3,o=parseInt("11111",2),a=this.height-1;a>=0;a--){for(var n=this.bottom_up?a:this.height-1-a,r=0;r<this.width;r++){var l=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(l&o)/o*255|0,u=(l>>5&o)/o*255|0,h=(l>>10&o)/o*255|0,f=l>>15?255:0,c=n*this.width*4+4*r;this.data[c]=h,this.data[c+1]=u,this.data[c+2]=s,this.data[c+3]=f}this.pos+=t}},oa.prototype.bit16=function(){for(var t=this.width%3,o=parseInt("11111",2),a=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,l=0;l<this.width;l++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var u=(s&o)/o*255|0,h=(s>>5&a)/a*255|0,f=(s>>11)/o*255|0,c=r*this.width*4+4*l;this.data[c]=f,this.data[c+1]=h,this.data[c+2]=u,this.data[c+3]=255}this.pos+=t}},oa.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var o=this.bottom_up?t:this.height-1-t,a=0;a<this.width;a++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),s=o*this.width*4+4*a;this.data[s]=l,this.data[s+1]=r,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},oa.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var o=this.bottom_up?t:this.height-1-t,a=0;a<this.width;a++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),u=o*this.width*4+4*a;this.data[u]=l,this.data[u+1]=r,this.data[u+2]=n,this.data[u+3]=s}},oa.prototype.getData=function(){return this.data},function(t){t.processBMP=function(o,a,n,r){var l=new oa(o,!1),s=l.width,u=l.height,h={data:l.getData(),width:s,height:u},f=new rc(100).encode(h,100);return t.processJPEG.call(this,f,a,n,r)}}(pt.API),rf.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(o,a,n,r){var l=new rf(o),s=l.width,u=l.height,h={data:l.getData(),width:s,height:u},f=new rc(100).encode(h,100);return t.processJPEG.call(this,f,a,n,r)}}(pt.API),pt.API.processRGBA=function(t,o,a){for(var n=t.data,r=n.length,l=new Uint8Array(r/4*3),s=new Uint8Array(r/4),u=0,h=0,f=0;f<r;f+=4){var c=n[f],y=n[f+1],C=n[f+2],A=n[f+3];l[u++]=c,l[u++]=y,l[u++]=C,s[h++]=A}var B=this.__addimage__.arrayBufferToBinaryString(l);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:B,index:o,alias:a,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},pt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},kn=pt.API,lu=kn.getCharWidthsArray=function(t,o){var a,n,r=(o=o||{}).font||this.internal.getFont(),l=o.fontSize||this.internal.getFontSize(),s=o.charSpace||this.internal.getCharSpace(),u=o.widths?o.widths:r.metadata.Unicode.widths,h=u.fof?u.fof:1,f=o.kerning?o.kerning:r.metadata.Unicode.kerning,c=f.fof?f.fof:1,y=o.doKerning!==!1,C=0,A=t.length,B=0,v=u[0]||h,i=[];for(a=0;a<A;a++)n=t.charCodeAt(a),typeof r.metadata.widthOfString=="function"?i.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(n))+s*(1e3/l)||0)/1e3):(C=y&&jt(f[n])==="object"&&!isNaN(parseInt(f[n][B],10))?f[n][B]/c:0,i.push((u[n]||v)/h+C)),B=n;return i},tf=kn.getStringUnitWidth=function(t,o){var a=(o=o||{}).fontSize||this.internal.getFontSize(),n=o.font||this.internal.getFont(),r=o.charSpace||this.internal.getCharSpace();return kn.processArabic&&(t=kn.processArabic(t)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(t,a,r)/a:lu.apply(this,arguments).reduce(function(l,s){return l+s},0)},of=function(t,o,a,n){for(var r=[],l=0,s=t.length,u=0;l!==s&&u+o[l]<a;)u+=o[l],l++;r.push(t.slice(0,l));var h=l;for(u=0;l!==s;)u+o[l]>n&&(r.push(t.slice(h,l)),u=0,h=l),u+=o[l],l++;return h!==l&&r.push(t.slice(h,l)),r},lf=function(t,o,a){a||(a={});var n,r,l,s,u,h,f,c=[],y=[c],C=a.textIndent||0,A=0,B=0,v=t.split(" "),i=lu.apply(this,[" ",a])[0];if(h=a.lineIndent===-1?v[0].length+2:a.lineIndent||0){var g=Array(h).join(" "),w=[];v.map(function(I){(I=I.split(/\s*\n/)).length>1?w=w.concat(I.map(function(Q,K){return(K&&Q.length?`
234
234
  `:"")+Q})):w.push(I[0])}),v=w,h=tf.apply(this,[g,a])}for(l=0,s=v.length;l<s;l++){var U=0;if(n=v[l],h&&n[0]==`
235
- `&&(n=n.substr(1),U=1),C+A+(B=(r=lu.apply(this,[n,a])).reduce(function(I,Q){return I+Q},0))>o||U){if(B>o){for(u=of.apply(this,[n,r,o-(C+A),o]),c.push(u.shift()),c=[u.pop()];u.length;)y.push([u.shift()]);B=r.slice(n.length-(c[0]?c[0].length:0)).reduce(function(I,Q){return I+Q},0)}else c=[n];y.push(c),C=B+h,A=i}else c.push(n),C+=A+B,A=i}return f=h?function(I,Q){return(Q?g:"")+I.join(" ")}:function(I){return I.join(" ")},y.map(f)},kn.splitTextToSize=function(t,o,a){var n,r=(a=a||{}).fontSize||this.internal.getFontSize(),l=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var y=this.internal.getFont(c.fontName,c.fontStyle);return y.metadata.Unicode?{widths:y.metadata.Unicode.widths||{0:1},kerning:y.metadata.Unicode.kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,a);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*o/r;l.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/r:0,l.lineIndent=a.lineIndent;var u,h,f=[];for(u=0,h=n.length;u<h;u++)f=f.concat(lf.apply(this,[n[u],s,l]));return f},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var o="klmnopqrstuvwxyz",a={},n={},r=0;r<o.length;r++)a[o[r]]="0123456789abcdef"[r],n["0123456789abcdef"[r]]=o[r];var l=function(y){return"0x"+parseInt(y,10).toString(16)},s=t.__fontmetrics__.compress=function(y){var C,A,B,v,i=["{"];for(var g in y){if(C=y[g],isNaN(parseInt(g,10))?A="'"+g+"'":(g=parseInt(g,10),A=(A=l(g).slice(2)).slice(0,-1)+n[A.slice(-1)]),typeof C=="number")C<0?(B=l(C).slice(3),v="-"):(B=l(C).slice(2),v=""),B=v+B.slice(0,-1)+n[B.slice(-1)];else{if(jt(C)!=="object")throw new Error("Don't know what to do with value type "+jt(C)+".");B=s(C)}i.push(A+B)}return i.push("}"),i.join("")},u=t.__fontmetrics__.uncompress=function(y){if(typeof y!="string")throw new Error("Invalid argument passed to uncompress.");for(var C,A,B,v,i={},g=1,w=i,U=[],I="",Q="",K=y.length-1,E=1;E<K;E+=1)(v=y[E])=="'"?C?(B=C.join(""),C=void 0):C=[]:C?C.push(v):v=="{"?(U.push([w,B]),w={},B=void 0):v=="}"?((A=U.pop())[0][A[1]]=w,B=void 0,w=A[0]):v=="-"?g=-1:B===void 0?a.hasOwnProperty(v)?(I+=a[v],B=parseInt(I,16)*g,g=1,I=""):I+=v:a.hasOwnProperty(v)?(Q+=a[v],w[B]=parseInt(Q,16)*g,g=1,B=void 0,Q=""):Q+=v;return i},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},c={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(y){var C=y.font,A=c.Unicode[C.postScriptName];A&&(C.metadata.Unicode={},C.metadata.Unicode.widths=A.widths,C.metadata.Unicode.kerning=A.kerning);var B=f.Unicode[C.postScriptName];B&&(C.metadata.Unicode.encoding=B,C.encoding=B.codePages[0])}])}(pt.API),function(t){var o=function(a){for(var n=a.length,r=new Uint8Array(n),l=0;l<n;l++)r[l]=a.charCodeAt(l);return r};t.API.events.push(["addFont",function(a){var n=void 0,r=a.font,l=a.instance;if(!r.isStandardFont){if(l===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(n=l.existsFileInVFS(r.postScriptName)===!1?l.loadFile(r.postScriptName):l.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(s,u){u=/^\x00\x01\x00\x00/.test(u)?o(u):o(Is(u)),s.metadata=t.API.TTFFont.open(u),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(r,n)}}])}(pt),function(t){function o(){return(yt.canvg?Promise.resolve(yt.canvg):Promise.resolve().then(()=>require("./index.es-w_iDpZ-o.cjs"))).catch(function(a){return Promise.reject(new Error("Could not load canvg: "+a))}).then(function(a){return a.default?a.default:a})}pt.API.addSvgAsImage=function(a,n,r,l,s,u,h,f){if(isNaN(n)||isNaN(r))throw no.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(s))throw no.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=l,c.height=s;var y=c.getContext("2d");y.fillStyle="#fff",y.fillRect(0,0,c.width,c.height);var C={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return o().then(function(B){return B.fromString(y,a,C)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(B){return B.render(C)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),n,r,l,s,h,f)})}}(),pt.API.putTotalPages=function(t){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(t,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(o,a);return this},pt.API.viewerPreferences=function(t,o){var a;t=t||{},o=o||!1;var n,r,l,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(s),h=[],f=0,c=0,y=0;function C(B,v){var i,g=!1;for(i=0;i<B.length;i+=1)B[i]===v&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,t==="reset"||o===!0){var A=u.length;for(y=0;y<A;y+=1)a[u[y]].value=a[u[y]].defaultValue,a[u[y]].explicitSet=!1}if(jt(t)==="object"){for(r in t)if(l=t[r],C(u,r)&&l!==void 0){if(a[r].type==="boolean"&&typeof l=="boolean")a[r].value=l;else if(a[r].type==="name"&&C(a[r].valueSet,l))a[r].value=l;else if(a[r].type==="integer"&&Number.isInteger(l))a[r].value=l;else if(a[r].type==="array"){for(f=0;f<l.length;f+=1)if(n=!0,l[f].length===1&&typeof l[f][0]=="number")h.push(String(l[f]-1));else if(l[f].length>1){for(c=0;c<l[f].length;c+=1)typeof l[f][c]!="number"&&(n=!1);n===!0&&h.push([l[f][0]-1,l[f][1]-1].join(" "))}a[r].value="["+h.join(" ")+"]"}else a[r].value=a[r].defaultValue;a[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var B,v=[];for(B in a)a[B].explicitSet===!0&&(a[B].type==="name"?v.push("/"+B+" /"+a[B].value):v.push("/"+B+" "+a[B].value));v.length!==0&&this.internal.write(`/ViewerPreferences
235
+ `&&(n=n.substr(1),U=1),C+A+(B=(r=lu.apply(this,[n,a])).reduce(function(I,Q){return I+Q},0))>o||U){if(B>o){for(u=of.apply(this,[n,r,o-(C+A),o]),c.push(u.shift()),c=[u.pop()];u.length;)y.push([u.shift()]);B=r.slice(n.length-(c[0]?c[0].length:0)).reduce(function(I,Q){return I+Q},0)}else c=[n];y.push(c),C=B+h,A=i}else c.push(n),C+=A+B,A=i}return f=h?function(I,Q){return(Q?g:"")+I.join(" ")}:function(I){return I.join(" ")},y.map(f)},kn.splitTextToSize=function(t,o,a){var n,r=(a=a||{}).fontSize||this.internal.getFontSize(),l=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var y=this.internal.getFont(c.fontName,c.fontStyle);return y.metadata.Unicode?{widths:y.metadata.Unicode.widths||{0:1},kerning:y.metadata.Unicode.kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,a);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*o/r;l.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/r:0,l.lineIndent=a.lineIndent;var u,h,f=[];for(u=0,h=n.length;u<h;u++)f=f.concat(lf.apply(this,[n[u],s,l]));return f},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var o="klmnopqrstuvwxyz",a={},n={},r=0;r<o.length;r++)a[o[r]]="0123456789abcdef"[r],n["0123456789abcdef"[r]]=o[r];var l=function(y){return"0x"+parseInt(y,10).toString(16)},s=t.__fontmetrics__.compress=function(y){var C,A,B,v,i=["{"];for(var g in y){if(C=y[g],isNaN(parseInt(g,10))?A="'"+g+"'":(g=parseInt(g,10),A=(A=l(g).slice(2)).slice(0,-1)+n[A.slice(-1)]),typeof C=="number")C<0?(B=l(C).slice(3),v="-"):(B=l(C).slice(2),v=""),B=v+B.slice(0,-1)+n[B.slice(-1)];else{if(jt(C)!=="object")throw new Error("Don't know what to do with value type "+jt(C)+".");B=s(C)}i.push(A+B)}return i.push("}"),i.join("")},u=t.__fontmetrics__.uncompress=function(y){if(typeof y!="string")throw new Error("Invalid argument passed to uncompress.");for(var C,A,B,v,i={},g=1,w=i,U=[],I="",Q="",K=y.length-1,E=1;E<K;E+=1)(v=y[E])=="'"?C?(B=C.join(""),C=void 0):C=[]:C?C.push(v):v=="{"?(U.push([w,B]),w={},B=void 0):v=="}"?((A=U.pop())[0][A[1]]=w,B=void 0,w=A[0]):v=="-"?g=-1:B===void 0?a.hasOwnProperty(v)?(I+=a[v],B=parseInt(I,16)*g,g=1,I=""):I+=v:a.hasOwnProperty(v)?(Q+=a[v],w[B]=parseInt(Q,16)*g,g=1,B=void 0,Q=""):Q+=v;return i},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},c={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(y){var C=y.font,A=c.Unicode[C.postScriptName];A&&(C.metadata.Unicode={},C.metadata.Unicode.widths=A.widths,C.metadata.Unicode.kerning=A.kerning);var B=f.Unicode[C.postScriptName];B&&(C.metadata.Unicode.encoding=B,C.encoding=B.codePages[0])}])}(pt.API),function(t){var o=function(a){for(var n=a.length,r=new Uint8Array(n),l=0;l<n;l++)r[l]=a.charCodeAt(l);return r};t.API.events.push(["addFont",function(a){var n=void 0,r=a.font,l=a.instance;if(!r.isStandardFont){if(l===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(n=l.existsFileInVFS(r.postScriptName)===!1?l.loadFile(r.postScriptName):l.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(s,u){u=/^\x00\x01\x00\x00/.test(u)?o(u):o(Is(u)),s.metadata=t.API.TTFFont.open(u),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(r,n)}}])}(pt),function(t){function o(){return(yt.canvg?Promise.resolve(yt.canvg):Promise.resolve().then(()=>require("./index.es-Dnua3tHc.cjs"))).catch(function(a){return Promise.reject(new Error("Could not load canvg: "+a))}).then(function(a){return a.default?a.default:a})}pt.API.addSvgAsImage=function(a,n,r,l,s,u,h,f){if(isNaN(n)||isNaN(r))throw no.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(s))throw no.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=l,c.height=s;var y=c.getContext("2d");y.fillStyle="#fff",y.fillRect(0,0,c.width,c.height);var C={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return o().then(function(B){return B.fromString(y,a,C)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(B){return B.render(C)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),n,r,l,s,h,f)})}}(),pt.API.putTotalPages=function(t){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(t,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(o,a);return this},pt.API.viewerPreferences=function(t,o){var a;t=t||{},o=o||!1;var n,r,l,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(s),h=[],f=0,c=0,y=0;function C(B,v){var i,g=!1;for(i=0;i<B.length;i+=1)B[i]===v&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,t==="reset"||o===!0){var A=u.length;for(y=0;y<A;y+=1)a[u[y]].value=a[u[y]].defaultValue,a[u[y]].explicitSet=!1}if(jt(t)==="object"){for(r in t)if(l=t[r],C(u,r)&&l!==void 0){if(a[r].type==="boolean"&&typeof l=="boolean")a[r].value=l;else if(a[r].type==="name"&&C(a[r].valueSet,l))a[r].value=l;else if(a[r].type==="integer"&&Number.isInteger(l))a[r].value=l;else if(a[r].type==="array"){for(f=0;f<l.length;f+=1)if(n=!0,l[f].length===1&&typeof l[f][0]=="number")h.push(String(l[f]-1));else if(l[f].length>1){for(c=0;c<l[f].length;c+=1)typeof l[f][c]!="number"&&(n=!1);n===!0&&h.push([l[f][0]-1,l[f][1]-1].join(" "))}a[r].value="["+h.join(" ")+"]"}else a[r].value=a[r].defaultValue;a[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var B,v=[];for(B in a)a[B].explicitSet===!0&&(a[B].type==="name"?v.push("/"+B+" /"+a[B].value):v.push("/"+B+" "+a[B].value));v.length!==0&&this.internal.write(`/ViewerPreferences
236
236
  <<
237
237
  `+v.join(`
238
238
  `)+`
@@ -701,7 +701,7 @@ Provide an array of objects of type:
701
701
  ${this.includeDeleteButton(t)}
702
702
  </g>
703
703
  `;default:return""}},copy(t){return JSON.parse(JSON.stringify(t))},clickShape(t){const o=t.target.id;switch(!0){case this.isDeleteMode:this.shapes=[...this.shapes].filter(a=>a.id!==o),this.lastSelectedShape=void 0;break;default:this.lastSelectedShape=this.shapes.find(a=>a.id===o);break}},deleteEmptyTextElement(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("text")||this.lastSelectedShape.textContent===""&&(this.shapes=this.shapes.filter(t=>t.id!==this.lastSelectedShape.id),this.lastSelectedShape=this.shapes.at(-1))},drawUp(t=!1){if(!this.activeShape||!this.isDrawing)return;this.currentPointer.end={x:this.pointerPosition.x,y:this.pointerPosition.y};let o;this.shapes.length>0&&this.currentTarget&&(o=[...this.shapes].find(u=>u.id===this.currentTarget.id));let a,n,r;o&&(a=o.x-this.currentPointer.end.x,n=o.y-this.currentPointer.end.y,r=Math.sqrt(a*a+n*n));let l,s;t?(l=Math.max(this.currentPointer.end.x,o.x),s=Math.min(this.currentPointer.end.x,o.x),Math.max(this.currentPointer.end.y,o.y),Math.min(this.currentPointer.end.y,o.y)):(l=Math.max(this.currentPointer.end.x,this.currentPointer.start.x),s=Math.min(this.currentPointer.end.x,this.currentPointer.start.x),Math.max(this.currentPointer.end.y,this.currentPointer.start.y),Math.min(this.currentPointer.end.y,this.currentPointer.start.y)),this.$nextTick(()=>{switch(!0){case this.activeShape==="arrow":this.shapes.at(-1).endX=this.currentPointer.end.x,this.shapes.at(-1).endY=this.currentPointer.end.y;break;case this.activeShape==="circle":const u=20;this.shapes.at(-1).circleRadius=this.isDrawingNewShape?this.copy(l-s)+u:r+u;break;case this.activeShape==="line":this.shapes.at(-1).path+=` ${this.pointerPosition.x} ${this.pointerPosition.y} `;break;case["rect","group"].includes(this.activeShape):const h=20;this.shapes.at(-1).rectWidth=this.copy(this.currentPointer.end.x-this.shapes.at(-1).x)>0?this.copy(this.currentPointer.end.x-this.shapes.at(-1).x):h,this.shapes.at(-1).rectHeight=this.copy(this.currentPointer.end.y-this.shapes.at(-1).y)>0?this.copy(this.currentPointer.end.y-this.shapes.at(-1).y):h}})},drawDown(){if(this.isDrawing=!0,!this.activeShape&&!this.isSelectMode||!this.isDrawing)return;this.isDrawingNewShape=!0,this.currentPointer.start={x:this.pointerPosition.x,y:this.pointerPosition.y};let t=`${this.isSelectMode?"group":this.activeShape}_${Math.random()*1e4}_${Date.now()}`;switch(!0){case this.activeShape==="arrow":this.shapes.push({id:t,x:this.pointerPosition.x,y:this.pointerPosition.y,endX:this.pointerPosition.x,endY:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="circle":this.shapes.push({alpha:this.options.circle.filled?this.colorTransparency:"",id:t,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.circle.filled),circleRadius:this.copy(this.options.circle.radius),circleStrokeWidth:this.copy(this.options.circle.strokeWidth),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="line":this.shapes.push({alpha:this.copy(this.colorTransparency),id:t,x:this.pointerPosition.x,y:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash),path:`${this.pointerPosition.x} ${this.pointerPosition.y}`}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="rect":this.shapes.push({alpha:this.options.rect.filled?this.colorTransparency:"",id:t,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.rect.filled),rectStrokeWidth:this.copy(this.options.rect.strokeWidth),rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="group":this.shapes.push({alpha:1,id:`group_${Math.random()*1e4}_${Date.now()}`,x:this.pointerPosition.x,y:this.pointerPosition.y,isFilled:!1,rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),rectStrokeWidth:1,type:"group",color:"grey",strokeWidth:1,isDash:!0,content:""});break}if((this.pointerDownId!==-1||!this.isDrawing)&&(clearInterval(this.pointerDownId),this.pointerDownId=-1),this.pointerDownId===-1&&this.isDrawing){this.pointerDownId=setInterval(this.drawUp,1);return}},move(t){if(!(!t||!t.id||t.type==="line"))switch(this.lastSelectedShape=t,!0){case t.type==="arrow":t.x=this.copy(this.pointerPosition.x),t.y=this.copy(this.pointerPosition.y);break;case t.type==="circle":t.x=this.copy(this.pointerPosition.x),t.y=this.copy(this.pointerPosition.y);break;case t.type==="group":this.moveGroup(t);break;case t.type==="rect":t.x=this.copy(this.pointerPosition.x-t.rectWidth/2),t.y=this.copy(this.pointerPosition.y-t.rectHeight/2);break;case t.type==="text":const o=Array.from(document.getElementsByTagName("text")).find(s=>s.id===t.id);if(!o)return;const{x:a,y:n,width:r,height:l}=o.getBBox();t.textAlign==="start"&&(t.x=this.copy(this.pointerPosition.x-r/2)),t.textAlign==="middle"&&(t.x=this.copy(this.pointerPosition.x)),t.textAlign==="end"&&(t.x=this.copy(this.pointerPosition.x+r/2)),t.lines>1?t.y=this.copy(this.pointerPosition.y-l/3):t.y=this.copy(this.pointerPosition.y+t.fontSize/2);break}},moveDown(){if(!this.currentTarget||!this.currentTarget.id)return;const t=this.currentTarget.id,o=this.shapes.find(a=>a.id===t);this.shapes=this.shapes.filter(a=>a.id!==t),this.shapes.push(o),this.pointerDownId===-1&&t&&this.move(o)},print(){this.isPrinting=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.isSelectMode=!1,this.activeShape=void 0,this.showCaret=!1,this.$nextTick(()=>{const t=this.$refs.drawSvgContainer,o={height:851.89,width:595.28};this.walkTheDOM(t,a=>{a&&a.nodeType===1&&(a.setAttribute("font-family","Helvetica"),a.style.fontFamily="Helvetica",a.replaceWith(a))}),Ps(t).then(a=>{const n=a.width,r=a.height,l=n/o.width*o.height;let s=r,u=0;const h=o.width,f=582.28/n*r,c=a.toDataURL("image/png",1),y=new pt("","pt","a4");if(s<l)y.addImage(c,"PNG",0,0,h,f,"","FAST");else for(;s>0;)y.addImage(c,"PNG",0,u,h,f,"","FAST"),s-=l,u-=o.height-24,s>0&&y.addPage();y.save(`${new Date().toLocaleDateString()}_annotations.pdf`)}).finally(()=>{this.isPrinting=!1,this.walkTheDOM(t,a=>{a&&a.nodeType===1&&(a.setAttribute("font-family",this.FINAL_CONFIG.style.fontFamily),a.style.fontFamily=this.FINAL_CONFIG.style.fontFamily,a.replaceWith(a))})})})},resetDraw(){this.isDrawing=!1,this.isMouseDown=!1,this.pointerDownId=-1,this.isSelectMode&&this.groupShapes(),clearInterval(this.pointerDownId)},resize(){this.isDrawingNewShape=!1;const t=this.currentTarget.id;if(!t)return;this.isDrawing=!0;const o=this.shapes.find(a=>a.id===t);this.activeShape=o.type,this.shapes=this.shapes.filter(a=>a.id!==t),this.shapes.push(o),this.drawUp(!0)},setFillOfSelectedRect(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("rect")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setFillOfSelectedCircle(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("circle")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setColorOfSelectedShape(){this.lastSelectedShape&&(this.lastSelectedShape.color=this.copy(this.selectedColor),!["arrow","text"].includes(this.lastSelectedShape.id)&&(this.lastSelectedShape.alpha=this.copy(this.colorTransparency)))},setSelectedShapeToDash(){!this.lastSelectedShape||this.lastSelectedShape.type==="text"||(this.lastSelectedShape.isDash=this.copy(this.isDash))},setTransparencyOfSelectedShape(){!this.lastSelectedShape||["arrow","text"].includes(this.lastSelectedShape.id)||(this.lastSelectedShape.alpha=this.copy(this.colorTransparency))},setStrokeWidthOfSelectedShape(){!this.lastSelectedShape||!["arrow","circle","rect","line"].includes(this.lastSelectedShape.type)||(this.lastSelectedShape.strokeWidth=this.copy(Math.abs(this.strokeSize)))},setCurrentStyleOfSelectedText(){!this.lastSelectedShape||this.lastSelectedShape.type!=="text"||(this.lastSelectedShape.isBold=this.copy(this.isBold),this.lastSelectedShape.isItalic=this.copy(this.isItalic),this.lastSelectedShape.isUnderline=this.copy(this.isUnderline),this.lastSelectedShape.fontSize=this.copy(this.textFont),this.lastSelectedShape.isBulletTextMode=this.copy(this.isBulletTextMode))},setPointer(t){t.preventDefault();const a=this.$refs.mainSvg.getBoundingClientRect();let n,r;t.touches&&t.touches.length>0?(n=t.touches[0].clientX,r=t.touches[0].clientY):(n=t.clientX,r=t.clientY),this.pointerPosition.x=(n-a.left)/a.width*this.svgWidth,this.pointerPosition.y=(r-a.top)/a.height*this.svgHeight},setShapeTo(t){if(this.showCaret=!1,this.deleteEmptyTextElement(),t===this.activeShape){this.activeShape=void 0,this.isDrawMode=!1;return}this.isDrawMode=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.activeShape=t},toggleSummary(){this.isSummaryOpen=!this.isSummaryOpen,this.isSummaryOpen||(this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.activeShape=void 0,this.showCaret=!1,this.isDeleteMode=!1,this.isWriting=!1),this.$emit("toggleOpenState",{isOpen:this.isSummaryOpen})},walkTheDOM(t,o){for(o(t),t=t.firstChild;t;)this.walkTheDOM(t,o),t=t.nextSibling},save(){this.$emit("saveAnnotations",{shapes:this.shapes,lastSelectedShape:this.lastSelectedShape})}}},Aa=t=>(e.pushScopeId("data-v-3611298e"),t=t(),e.popScopeId(),t),l7={class:"vue-ui-annotator"},a7={"data-html2canvas-ignore":""},r7={class:"tool-selection",style:{"margin-top":"24px"}},n7=["disabled"],s7=e.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M18 9l3 3l-3 3" data-v-3611298e></path><path d="M15 12h6" data-v-3611298e></path><path d="M6 9l-3 3l3 3" data-v-3611298e></path><path d="M3 12h6" data-v-3611298e></path><path d="M9 18l3 3l3 -3" data-v-3611298e></path><path d="M12 15v6" data-v-3611298e></path><path d="M15 6l-3 -3l-3 3" data-v-3611298e></path><path d="M12 3v6" data-v-3611298e></path></svg>',1),i7=["disabled"],u7=Aa(()=>e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1"}),e.createElementVNode("path",{d:"M4 12h7a1 1 0 0 1 1 1v7"})],-1)),A7=["disabled"],c7=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 7l16 0" data-v-3611298e></path><path d="M10 11l0 6" data-v-3611298e></path><path d="M14 11l0 6" data-v-3611298e></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-3611298e></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-3611298e></path></svg>',1),d7=["disabled"],h7={style:{width:"80%"},viewBox:"0 0 24 24"},f7=Aa(()=>e.createElementVNode("path",{fill:"currentColor",d:"M1,1V5H2V19H1V23H5V22H19V23H23V19H22V5H23V1H19V2H5V1M5,4H19V5H20V19H19V20H5V19H4V5H5M6,6V14H9V18H18V9H14V6M8,8H12V12H8M14,11H16V16H11V14H14"},null,-1)),v7=[f7],g7=["disabled"],p7={style:{width:"80%"},viewBox:"0 0 24 24"},y7=Aa(()=>e.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V6H9V4H4V9H6V11H2V2M22,13V22H13V18H15V20H20V15H18V13H22M8,8H16V16H8V8Z"},null,-1)),m7=[y7],b7=["disabled"],k7={style:{width:"80%"},viewBox:"0 0 24 24"},C7=Aa(()=>e.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z"},null,-1)),w7=[C7],B7=["disabled"],x7=Aa(()=>e.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M7 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"}),e.createElementVNode("path",{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"})],-1)),F7=["disabled"],N7=Aa(()=>e.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M9 14l-4 -4l4 -4"}),e.createElementVNode("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})],-1)),_7=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2" data-v-3611298e></path><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4" data-v-3611298e></path><path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z" data-v-3611298e></path></svg>',1),S7=e.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" data-v-3611298e></path><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" data-v-3611298e></path><path d="M14 4l0 4l-6 0l0 -4" data-v-3611298e></path></svg>',1),L7={class:"tool-selection",style:{"margin-top":"6px"}},E7={viewBox:"0 0 12 12",style:{width:"100%"}},I7=["fill"],$7={key:0,class:"tool-input"},M7={for:"circleFill"},U7=["checked"],V7={viewBox:"0 0 12 12",style:{width:"100%"}},Q7=["fill"],T7={key:1,class:"tool-input"},O7={for:"rectFill"},z7=["checked"],D7={viewBox:"0 0 24 24",style:{width:"100%"}},P7=["stroke"],H7=Aa(()=>e.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M3 15c2 3 4 4 7 4s7 -3 7 -7s-3 -7 -6 -7s-5 1.5 -5 4s2 5 6 5s8.408 -2.453 10 -5"})],-1)),R7={key:2},G7={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},W7={for:"textFont",style:{"font-size":"0.7em"}},K7={key:3},j7={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},X7={for:"dashStyle",style:{"font-size":"0.7em"}},q7={viewBox:"0 0 24 24",height:"24",width:"24",style:{"margin-bottom":"-5px","margin-top":"-10px"}},Y7=Aa(()=>e.createElementVNode("line",{x1:"0",x2:"24",y1:"12",y2:"12","stroke-width":"2",stroke:"black","stroke-dasharray":"3"},null,-1)),J7=[Y7],Z7=["checked"],eV={style:{width:"80%"},viewBox:"0 0 24 24",fill:"currentColor"},tV=Aa(()=>e.createElementVNode("path",{d:"M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z"},null,-1)),oV=[tV],lV={key:4},aV={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},rV={for:"textFont",style:{"font-size":"0.7em"}},nV={key:5},sV=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M4 12l10 0" data-v-3611298e></path><path d="M4 18l14 0" data-v-3611298e></path></svg>',1),iV={key:6},uV=["disabled"],AV=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M8 12l8 0" data-v-3611298e></path><path d="M6 18l12 0" data-v-3611298e></path></svg>',1),cV={key:7},dV=["disabled"],hV=e.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M10 12l10 0" data-v-3611298e></path><path d="M6 18l14 0" data-v-3611298e></path></svg>',1),fV={key:8},vV=e.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M9 6l11 0" data-v-3611298e></path><path d="M9 12l11 0" data-v-3611298e></path><path d="M9 18l11 0" data-v-3611298e></path><path d="M5 6l0 .01" data-v-3611298e></path><path d="M5 12l0 .01" data-v-3611298e></path><path d="M5 18l0 .01" data-v-3611298e></path></svg>',1),gV={key:9},pV=Aa(()=>e.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"3",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),e.createElementVNode("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})],-1)),yV={key:10},mV=e.createStaticVNode('<svg width="100%" height="44" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M11 5l6 0" data-v-3611298e></path><path d="M7 19l6 0" data-v-3611298e></path><path d="M14 5l-4 14" data-v-3611298e></path></svg>',1),bV={key:11},kV=Aa(()=>e.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),e.createElementVNode("path",{d:"M5 19h14"})],-1)),CV={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"},class:"tooltip"},wV={style:{display:"flex","flex-direction":"column","align-items":"start","justify-content":"center"}},BV={for:"colorTransparency",style:{"font-size":"0.7em"}},xV={class:"annotator annotator__wrapper",ref:"drawSvgContainer",style:{position:"relative"}},FV=["viewBox","width","height"],NV=["id","innerHTML"],_V=["height","viewBox","width"],SV=["cx","cy"];function LV(t,o,a,n,r,l){return e.openBlock(),e.createElementBlock("div",l7,[e.createElementVNode("div",a7,[e.createElementVNode("details",{class:"vue-ui-annotator-summary",onToggle:o[36]||(o[36]=(...s)=>l.toggleSummary&&l.toggleSummary(...s)),style:e.normalizeStyle(`${r.isSummaryOpen?"padding-bottom: 12px":""}; background: ${l.FINAL_CONFIG.style.backgroundColor}; color:${l.FINAL_CONFIG.style.color}; ${l.FINAL_CONFIG.style.fixedTools&&r.isSummaryOpen?"position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;":""}`)},[e.createElementVNode("summary",null,e.toDisplayString(l.FINAL_CONFIG.translations.title),1),e.createElementVNode("div",r7,[e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:r.isMoveMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isMoveMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isMoveMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isMoveMode,tooltip:!0}),onClick:o[0]||(o[0]=s=>{l.deleteEmptyTextElement(),r.isMoveMode=!r.isMoveMode,r.activeShape=void 0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isResizeMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1})},[s7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipMove),5)):e.createCommentVNode("",!0)],14,n7),e.createElementVNode("button",{disabled:r.shapes.length===0||r.activeShape==="line",style:e.normalizeStyle({background:r.isResizeMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isResizeMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isResizeMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isResizeMode,tooltip:!0}),onClick:o[1]||(o[1]=s=>{l.deleteEmptyTextElement(),r.isResizeMode=!r.isResizeMode,r.isMoveMode=!1,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape=void 0,r.showCaret=!1})},[u7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipResize),5)):e.createCommentVNode("",!0)],14,i7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:r.isDeleteMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isDeleteMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isDeleteMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isDeleteMode,tooltip:!0}),onClick:o[2]||(o[2]=s=>{l.deleteEmptyTextElement(),r.isDeleteMode=!r.isDeleteMode,r.isMoveMode=!1,r.isResizeMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape=void 0,r.showCaret=!1})},[c7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipDelete),5)):e.createCommentVNode("",!0)],14,A7),e.createElementVNode("button",{disabled:!l.canSelect,style:e.normalizeStyle({background:r.isSelectMode?l.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:r.isSelectMode?l.FINAL_CONFIG.style.buttons.controls.selected.border:l.FINAL_CONFIG.style.buttons.controls.border,color:r.isSelectMode?l.FINAL_CONFIG.style.buttons.controls.selected.color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isSelectMode,tooltip:!0}),onClick:o[3]||(o[3]=s=>{l.deleteEmptyTextElement(),l.setShapeTo("group"),r.isSelectMode=!r.isSelectMode,r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape="group",r.showCaret=!1})},[(e.openBlock(),e.createElementBlock("svg",h7,v7)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipGroup),5)):e.createCommentVNode("",!0)],14,d7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[4]||(o[4]=s=>{r.isResizeMode=!1,r.isMoveMode=!0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1,l.bringShapeTo("front")})},[(e.openBlock(),e.createElementBlock("svg",p7,m7)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipBringToFront),5)):e.createCommentVNode("",!0)],12,g7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[5]||(o[5]=s=>{r.isResizeMode=!1,r.isMoveMode=!0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1,l.bringShapeTo("back")})},[(e.openBlock(),e.createElementBlock("svg",k7,w7)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipBringToBack),5)):e.createCommentVNode("",!0)],12,b7),e.createElementVNode("button",{disabled:r.shapes.length===0||r.activeShape==="line",style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[6]||(o[6]=s=>{l.deleteEmptyTextElement(),r.isResizeMode=!1,r.isMoveMode=!0,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.showCaret=!1,l.copyPaste()})},[x7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipDuplicate),5)):e.createCommentVNode("",!0)],12,B7),e.createElementVNode("button",{disabled:r.shapes.length===0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,"button-tool--one-shot":!0,tooltip:!0}),onClick:o[7]||(o[7]=s=>{r.isResizeMode=!1,r.isMoveMode=!1,r.isDeleteMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.isTextMode=!1,r.isWriting=!1,r.activeShape=void 0,r.showCaret=!1,l.undoLastShape()})},[N7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipUndo),5)):e.createCommentVNode("",!0)],12,F7),l.FINAL_CONFIG.style.showPrint?(e.openBlock(),e.createElementBlock("button",{key:0,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[8]||(o[8]=(...s)=>l.print&&l.print(...s))},[_7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipPdf),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),l.FINAL_CONFIG.style.showSave?(e.openBlock(),e.createElementBlock("button",{key:1,style:e.normalizeStyle({background:l.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:l.FINAL_CONFIG.style.buttons.controls.border,color:l.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:e.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:o[9]||(o[9]=(...s)=>l.save&&l.save(...s))},[S7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipSave),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("div",L7,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="circle",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="circle"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="circle"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="circle"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[10]||(o[10]=s=>{l.setShapeTo("circle"),r.isSelectMode=!1})},[(e.openBlock(),e.createElementBlock("svg",E7,[e.createElementVNode("circle",{cx:6,cy:6,r:"4",fill:r.options.circle.filled?(r.activeShape==="circle",r.selectedColor+l.colorTransparency):"none",stroke:"currentColor"},null,8,I7)])),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeCircle),5)):e.createCommentVNode("",!0)],6),r.activeShape==="circle"?(e.openBlock(),e.createElementBlock("div",$7,[e.createElementVNode("label",M7,e.toDisplayString(l.FINAL_CONFIG.translations.filled),1),e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":o[11]||(o[11]=s=>r.options.circle.filled=s),onChange:o[12]||(o[12]=(...s)=>l.setFillOfSelectedCircle&&l.setFillOfSelectedCircle(...s)),checked:r.options.circle.filled},null,40,U7),[[e.vModelCheckbox,r.options.circle.filled]])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="rect",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="rect"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="rect"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="rect"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[13]||(o[13]=s=>{l.setShapeTo("rect"),r.isSelectMode=!1})},[(e.openBlock(),e.createElementBlock("svg",V7,[e.createElementVNode("rect",{x:"3",y:"3",style:{rx:"0 !important",ry:"0 !important"},height:"6",width:"6",fill:r.options.rect.filled?(r.activeShape==="rect",r.selectedColor+l.colorTransparency):"none",stroke:"currentColor"},null,8,Q7)])),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeRect),5)):e.createCommentVNode("",!0)],6),r.activeShape==="rect"?(e.openBlock(),e.createElementBlock("div",T7,[e.createElementVNode("label",O7,e.toDisplayString(l.FINAL_CONFIG.translations.filled),1),e.withDirectives(e.createElementVNode("input",{id:"rectFill",type:"checkbox","onUpdate:modelValue":o[14]||(o[14]=s=>r.options.rect.filled=s),onChange:o[15]||(o[15]=(...s)=>l.setFillOfSelectedRect&&l.setFillOfSelectedRect(...s)),checked:r.options.rect.filled},null,40,z7),[[e.vModelCheckbox,r.options.rect.filled]])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="arrow",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="arrow"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="arrow"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="arrow"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[16]||(o[16]=s=>{l.setShapeTo("arrow"),r.isSelectMode=!1})},[(e.openBlock(),e.createElementBlock("svg",D7,[e.createElementVNode("path",{stroke:r.options.arrow.filled?r.activeShape==="arrow"?"white":"grey":"none","stroke-width":"2",d:"M5,19 19,5 14,5 19,10.5 19,5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,P7)])),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeArrow),5)):e.createCommentVNode("",!0)],6),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.activeShape==="line",tooltip:!0}),style:e.normalizeStyle({background:r.activeShape==="line"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.activeShape==="line"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.activeShape==="line"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[17]||(o[17]=s=>{l.setShapeTo("line"),r.isSelectMode=!1})},[H7,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeFreehand),5)):e.createCommentVNode("",!0)],6),["arrow","circle","rect","line"].includes(r.activeShape)?(e.openBlock(),e.createElementBlock("div",R7,[e.createElementVNode("div",G7,[e.createElementVNode("label",W7,e.toDisplayString(l.FINAL_CONFIG.translations.thickness),1),e.withDirectives(e.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":o[18]||(o[18]=s=>r.strokeSize=s),onInput:o[19]||(o[19]=(...s)=>l.setStrokeWidthOfSelectedShape&&l.setStrokeWidthOfSelectedShape(...s)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[e.vModelText,r.strokeSize]])])])):e.createCommentVNode("",!0),["arrow","circle","rect"].includes(r.activeShape)?(e.openBlock(),e.createElementBlock("div",K7,[e.createElementVNode("div",j7,[e.createElementVNode("label",X7,e.toDisplayString(l.FINAL_CONFIG.translations.dashedLines),1),(e.openBlock(),e.createElementBlock("svg",q7,J7)),e.withDirectives(e.createElementVNode("input",{id:"dashStyle",name:"dashStyle",type:"checkbox","onUpdate:modelValue":o[20]||(o[20]=s=>r.isDash=s),onChange:o[21]||(o[21]=(...s)=>l.setSelectedShapeToDash&&l.setSelectedShapeToDash(...s)),checked:r.isDash},null,40,Z7),[[e.vModelCheckbox,r.isDash]])])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isTextMode,tooltip:!0}),style:e.normalizeStyle({background:r.isTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[22]||(o[22]=s=>{l.deleteEmptyTextElement(),r.isTextMode=!r.isTextMode,r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isSelectMode=!1,r.isDrawMode=!1,r.activeShape=void 0})},[(e.openBlock(),e.createElementBlock("svg",eV,oV)),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeText),5)):e.createCommentVNode("",!0)],6),r.isTextMode?(e.openBlock(),e.createElementBlock("div",lV,[e.createElementVNode("div",aV,[e.createElementVNode("label",rV,e.toDisplayString(l.FINAL_CONFIG.translations.fontSize),1),e.withDirectives(e.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":o[23]||(o[23]=s=>r.textFont=s),onInput:o[24]||(o[24]=(...s)=>l.setCurrentStyleOfSelectedText&&l.setCurrentStyleOfSelectedText(...s)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[e.vModelText,r.textFont]])])])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",nV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.textAlign==="start",tooltip:!0}),style:e.normalizeStyle({background:r.textAlign==="start"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.textAlign==="start"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.textAlign==="start"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[25]||(o[25]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.textAlign="start",l.setSelectedTextAlignTo("start")})},[sV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextLeft),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",iV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.textAlign==="middle",tooltip:!0}),style:e.normalizeStyle({background:r.textAlign==="middle"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.textAlign==="middle"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.textAlign==="middle"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:r.isBulletTextMode,onClick:o[26]||(o[26]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.textAlign="middle",l.setSelectedTextAlignTo("middle")})},[AV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextCenter),5)):e.createCommentVNode("",!0)],14,uV)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",cV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.textAlign==="end",tooltip:!0}),style:e.normalizeStyle({background:r.textAlign==="end"?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.textAlign==="end"?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.textAlign==="end"?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:r.isBulletTextMode,onClick:o[27]||(o[27]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.textAlign="end",l.setSelectedTextAlignTo("end")})},[hV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextRight),5)):e.createCommentVNode("",!0)],14,dV)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",fV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isBulletTextMode,tooltip:!0}),style:e.normalizeStyle({background:r.isBulletTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isBulletTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isBulletTextMode?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[28]||(o[28]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isBulletTextMode=!r.isBulletTextMode,r.textAlign="start",l.setSelectedTextAlignTo("start"),l.setCurrentStyleOfSelectedText()})},[vV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextBullet),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",gV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isBold,tooltip:!0}),style:e.normalizeStyle({background:r.isBold?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isBold?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isBold?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[29]||(o[29]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isBold=!r.isBold,l.setCurrentStyleOfSelectedText()})},[pV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextBold),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",yV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isItalic,tooltip:!0}),style:e.normalizeStyle({background:r.isItalic?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isItalic?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isItalic?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[30]||(o[30]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isItalic=!r.isItalic,l.setCurrentStyleOfSelectedText()})},[mV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextItalic),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),r.isTextMode?(e.openBlock(),e.createElementBlock("div",bV,[e.createElementVNode("button",{class:e.normalizeClass({"button-tool":!0,"button-tool--selected":r.isUnderline,tooltip:!0}),style:e.normalizeStyle({background:r.isUnderline?l.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:l.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:r.isUnderline?l.FINAL_CONFIG.style.buttons.shapes.selected.border:l.FINAL_CONFIG.style.buttons.shapes.border,color:r.isUnderline?l.FINAL_CONFIG.style.buttons.shapes.selected.color:l.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${l.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:o[31]||(o[31]=s=>{r.isDeleteMode=!1,r.isMoveMode=!1,r.isResizeMode=!1,r.isDrawMode=!1,r.isSelectMode=!1,r.activeShape=void 0,r.isUnderline=!r.isUnderline,l.setCurrentStyleOfSelectedText()})},[kV,l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeTextUnderline),5)):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0),e.createElementVNode("div",CV,[e.withDirectives(e.createElementVNode("input",{type:"color",id:"colorPicker",name:"colorPicker","onUpdate:modelValue":o[32]||(o[32]=s=>r.selectedColor=s),onInput:o[33]||(o[33]=(...s)=>l.setColorOfSelectedShape&&l.setColorOfSelectedShape(...s)),style:e.normalizeStyle(`height: 30px; width: 30px; border-radius: ${l.FINAL_CONFIG.style.buttons.borderRadius}px; cursor: pointer`)},null,36),[[e.vModelText,r.selectedColor]]),l.FINAL_CONFIG.style.showTooltips?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tooltiptext",style:e.normalizeStyle({backgroundColor:l.FINAL_CONFIG.style.tooltips.backgroundColor,color:l.FINAL_CONFIG.style.tooltips.color,border:l.FINAL_CONFIG.style.tooltips.border,borderRadius:`${l.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:l.FINAL_CONFIG.style.tooltips.boxShadow})},e.toDisplayString(l.FINAL_CONFIG.translations.tooltipShapeColor),5)):e.createCommentVNode("",!0)]),e.createElementVNode("div",wV,[e.createElementVNode("label",BV,e.toDisplayString(l.FINAL_CONFIG.translations.colorAlpha)+": "+e.toDisplayString(r.transparency>98?100:r.transparency)+" % ",1),e.withDirectives(e.createElementVNode("input",{id:"colorTransparency",name:"colorTransparency",type:"range","onUpdate:modelValue":o[34]||(o[34]=s=>r.transparency=s),onInput:o[35]||(o[35]=(...s)=>l.setTransparencyOfSelectedShape&&l.setTransparencyOfSelectedShape(...s)),min:0,max:100,style:{width:"100px"}},null,544),[[e.vModelText,r.transparency]])])])],36)]),e.createElementVNode("div",xV,[e.renderSlot(t.$slots,"default",{},void 0,!0),r.isSummaryOpen?(e.openBlock(),e.createElementBlock("svg",{id:"annotatorSvg",key:r.step,ref:"mainSvg",class:e.normalizeClass({draw:!0,"draw--free":r.activeShape==="line"}),style:e.normalizeStyle([`cursor:${l.cursorClass}; font-family: Helvetica; z-index: 100000000;`,{position:"absolute",top:"0",left:"0"}]),viewBox:`0 0 ${r.svgWidth} ${r.svgHeight}`,width:r.sourceWidth,height:r.sourceHeight,onPointerdown:o[38]||(o[38]=s=>l.chooseAction(s)),onPointerup:o[39]||(o[39]=(...s)=>l.resetDraw&&l.resetDraw(...s)),onTouchend:o[40]||(o[40]=(...s)=>l.resetDraw&&l.resetDraw(...s)),onTouchstart:o[41]||(o[41]=s=>{l.setPointer(s),l.clickSvg(s)}),onPointermove:o[42]||(o[42]=s=>{l.setPointer(s),l.chooseMove(s)}),onPointerout:o[43]||(o[43]=s=>{r.preventEdit=!0,r.hoveredShapeId=void 0}),onPointerover:o[44]||(o[44]=s=>l.allowEditAndHoverShapes(s)),onClick:o[45]||(o[45]=s=>l.clickSvg(s))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.userShapes,(s,u)=>(e.openBlock(),e.createElementBlock("g",{key:`shape_${u}`,id:s.id,innerHTML:s,onClick:o[37]||(o[37]=h=>{l.clickShape(h),r.isMoveMode=!1})},null,8,NV))),128))],46,FV)):e.createCommentVNode("",!0),r.isPrinting?(e.openBlock(),e.createElementBlock("svg",{key:1,style:{position:"absolute",top:"0",left:"0"},height:r.sourceHeight,viewBox:`0 0 ${r.svgWidth} ${r.svgHeight}`,width:r.sourceWidth},[e.createElementVNode("circle",{class:"animated-circle-print",cx:r.svgWidth/2,cy:r.svgHeight/2,r:"50",stroke:"#6376DD","stroke-width":"10",fill:"none"},null,8,SV)],8,_V)):e.createCommentVNode("",!0)],512)])}const Ag=vt(o7,[["render",LV],["__scopeId","data-v-3611298e"]]),EV=Object.freeze(Object.defineProperty({__proto__:null,default:Ag},Symbol.toStringTag,{value:"Module"})),Ko=t=>(e.pushScopeId("data-v-3e41118a"),t=t(),e.popScopeId(),t),IV={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},$V=["xmlns","stroke"],MV={id:"vueUiSmiley0"},UV=["stop-color"],VV=["stop-color"],QV=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),TV=["fill"],OV=["stroke"],zV=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-3e41118a></path>',5),DV=[zV],PV=["xmlns","viewBox","stroke"],HV={id:"vueUiSmiley0"},RV=["stop-color"],GV=["stop-color"],WV=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),KV=["fill"],jV=["viewBox","stroke"],XV=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-3e41118a></path>',5),qV=[XV],YV=["xmlns","stroke"],JV={id:"vueUiSmiley1"},ZV=["stop-color"],eQ=["stop-color"],tQ=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),oQ=["fill"],lQ=["xmlns","stroke"],aQ=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9 15l6 0" data-v-3e41118a></path>',5),rQ=[aQ],nQ=["xmlns","viewBox","stroke"],sQ={id:"vueUiSmiley1"},iQ=["stop-color"],uQ=["stop-color"],AQ=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),cQ=["fill"],dQ=["viewBox","stroke"],hQ=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9 15l6 0" data-v-3e41118a></path>',5),fQ=[hQ],vQ=["xmlns","stroke"],gQ={id:"vueUiSmiley2"},pQ=["stop-color"],yQ=["stop-color"],mQ=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),bQ=["fill"],kQ=["xmlns","stroke"],CQ=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),wQ=Ko(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),BQ=Ko(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),xQ=Ko(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),FQ=[CQ,wQ,BQ,xQ],NQ=["xmlns","viewBox","stroke"],_Q=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),SQ={id:"vueUiSmiley2"},LQ=["stop-color"],EQ=["stop-color"],IQ=["fill"],$Q=["xmlns","viewBox","stroke"],MQ=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),UQ=Ko(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),VQ=Ko(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),QQ=Ko(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),TQ=[MQ,UQ,VQ,QQ],OQ=["xmlns","stroke"],zQ={id:"vueUiSmiley3"},DQ=["stop-color"],PQ=["stop-color"],HQ=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),RQ=["fill"],GQ=["xmlns","stroke"],WQ=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-3e41118a></path>',5),KQ=[WQ],jQ=["xmlns","viewBox","stroke"],XQ=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),qQ={id:"vueUiSmiley3"},YQ=["stop-color"],JQ=["stop-color"],ZQ=["fill"],eT=["xmlns","viewBox","stroke"],tT=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-3e41118a></path>',5),oT=[tT],lT=["xmlns","stroke"],aT={id:"vueUiSmiley4"},rT=["stop-color"],nT=["stop-color"],sT=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),iT=["fill"],uT=["xmlns","stroke"],AT=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 9l.01 0" data-v-3e41118a></path><path d="M15 9l.01 0" data-v-3e41118a></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-3e41118a></path>',5),cT=[AT],dT=["xmlns","viewBox","stroke"],hT=Ko(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),fT={id:"vueUiSmiley4"},vT=["stop-color"],gT=["stop-color"],pT=["fill"],yT=["xmlns","viewBox","stroke"],mT=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 9l.01 0" data-v-3e41118a></path><path d="M15 9l.01 0" data-v-3e41118a></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-3e41118a></path>',5),bT=[mT],kT={__name:"vue-ui-smiley",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_smiley:r}=ft();e.onMounted(()=>{xt(n.dataset)&&Ke({componentName:"VueUiSmiley",type:"dataset"})});const l=e.ref(!1),s=e.ref(void 0),u=e.computed(()=>Je({userConfig:n.config,defaultConfig:r})),h=e.computed(()=>typeof n.dataset.rating=="object"&&!Array.isArray(n.dataset.rating)?C(n.dataset.rating):n.dataset.rating||null),f=e.computed(()=>typeof n.dataset.rating=="object"&&!Array.isArray(n.dataset.rating)),c=e.ref(h.value),y=e.ref(u.value.readonly);function C(w){if(w===null)return null;let U=0,I=0;for(const K in w){const E=parseInt(K),b=w[K];U+=E*b,I+=b}return I===0?0:U/I}function A(w){const U=c.value-w,I=24;switch(!0){case U<0:return 0;case U>1:return 1*I;default:return U*I}}function B(w){y.value||(c.value=w,a("rate",w))}function v(){return c.value}function i(w=!0){y.value=w}o({getData:v,toggleReadonly:i});function g(w){return u.value.readonly?u.value.style.colors.inactive[w]:c.value===w+1?u.value.style.icons.useGradient&&u.value.style.icons.filled?`url(#vueUiSmiley${w})`:u.value.style.colors.active[w]:s.value!==void 0&&s.value===w?u.value.style.icons.useGradient&&u.value.style.icons.filled?`url(#vueUiSmiley${w})`:u.value.style.colors.active[w]:u.value.style.colors.inactive[w]}return(w,U)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${u.value.style.backgroundColor};font-family:${u.value.style.fontFamily};width:100%;`),onMouseover:U[20]||(U[20]=I=>l.value=!0),onMouseleave:U[21]||(U[21]=I=>{l.value=!1,s.value=void 0})},[u.value.style.title.text?(e.openBlock(),e.createElementBlock("div",IV,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${u.value.style.title.color};font-weight:${u.value.style.title.bold?"bold":"normal"};text-align:${u.value.style.title.textAlign};margin-bottom:${u.value.style.title.offsetY}px;font-size:${u.value.style.title.fontSize}px`)},e.toDisplayString(u.value.style.title.text),5),u.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${u.value.style.title.subtitle.color};font-size:${u.value.style.title.subtitle.fontSize}px;text-align:${u.value.style.title.textAlign};margin-bottom:${u.value.style.title.subtitle.offsetY}px;font-weight:${u.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(u.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value.style.rating.show&&u.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};margin-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-smiley-wrapper",style:e.normalizeStyle(`overflow:visible;height:${u.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[u.value.style.rating.show&&u.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};padding-right:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===1}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;
704
- position:relative`),onMouseenter:U[0]||(U[0]=I=>s.value=0),onMouseleave:U[1]||(U[1]=I=>s.value=void 0),onClick:U[2]||(U[2]=I=>B(1)),onKeyup:U[3]||(U[3]=e.withKeys(I=>B(1),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===0?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"1",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[1]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",MV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[0],.05)},null,8,UV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[0]},null,8,VV)])]),QV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:g(0)},null,8,TV)],8,$V)):(e.openBlock(),e.createElementBlock("svg",{key:2,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},DV,8,OV)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",HV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[0],.05)},null,8,RV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[0]},null,8,GV)])]),WV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley0)":u.value.style.colors.activeReadonly[0]},null,8,KV)],8,PV)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},qV,8,jV)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===2}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[4]||(U[4]=I=>s.value=1),onMouseleave:U[5]||(U[5]=I=>s.value=void 0),onClick:U[6]||(U[6]=I=>B(2)),onKeyup:U[7]||(U[7]=e.withKeys(I=>B(2),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===1?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"2",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[2]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",JV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[1],.05)},null,8,ZV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[1]},null,8,eQ)])]),tQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:g(1)},null,8,oQ)],8,YV)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},rQ,8,lQ)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",sQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[1],.05)},null,8,iQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[1]},null,8,uQ)])]),AQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley1)":u.value.style.colors.activeReadonly[1]},null,8,cQ)],8,nQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},fQ,8,dQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===3}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[8]||(U[8]=I=>s.value=2),onMouseleave:U[9]||(U[9]=I=>s.value=void 0),onClick:U[10]||(U[10]=I=>B(3)),onKeyup:U[11]||(U[11]=e.withKeys(I=>B(3),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===2?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"3",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[3]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",gQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,pQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,yQ)])]),mQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:g(2)},null,8,bQ)],8,vQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},FQ,8,kQ)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[_Q,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",SQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,LQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,EQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley2)":u.value.style.colors.activeReadonly[2]},null,8,IQ)],8,NQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},TQ,8,$Q)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===4}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[12]||(U[12]=I=>s.value=3),onMouseleave:U[13]||(U[13]=I=>s.value=void 0),onClick:U[14]||(U[14]=I=>B(4)),onKeyup:U[15]||(U[15]=e.withKeys(I=>B(4),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===3?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"4",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[4]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",zQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,DQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,PQ)])]),HQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:g(3)},null,8,RQ)],8,OQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},KQ,8,GQ)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[XQ,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",qQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,YQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,JQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley3)":u.value.style.colors.activeReadonly[3]},null,8,ZQ)],8,jQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},oT,8,eT)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===5}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[16]||(U[16]=I=>s.value=4),onMouseleave:U[17]||(U[17]=I=>s.value=void 0),onClick:U[18]||(U[18]=I=>B(5)),onKeyup:U[19]||(U[19]=e.withKeys(I=>B(5),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===4?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"5",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[5]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",aT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,rT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,nT)])]),sT,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:g(4)},null,8,iT)],8,lT)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},cT,8,uT)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[hT,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",fT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,vT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,gT)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley4)":u.value.style.colors.activeReadonly[4]},null,8,pT)],8,dT)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},bT,8,yT)):e.createCommentVNode("",!0)],38),u.value.style.rating.show&&u.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};padding-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),u.value.style.rating.show&&u.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};margin-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},cg=vt(kT,[["__scopeId","data-v-3e41118a"]]),CT=Object.freeze(Object.defineProperty({__proto__:null,default:cg},Symbol.toStringTag,{value:"Module"})),wT=["id"],BT=["xmlns","viewBox"],xT=["cx","cy","r","stroke","stroke-width"],FT={key:0},NT=["stroke","d","stroke-width"],_T={key:1},ST=["stroke","x1","x2","y1","y2"],LT=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ET=["cx","cy","fill","onClick","r"],IT={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(ae=>({"69fb0529":Y.value,"3158da88":T.value,"2b571f2c":$.value}));const{vue_ui_relation_circle:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(0),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const ae=Je({userConfig:a.config,defaultConfig:n});return ae.theme?{...Je({userConfig:Nt.vue_ui_relation_circle[ae.theme]||a.config,defaultConfig:ae}),customPalette:Pt[ae.theme]||Me}:ae}),{isPrinting:c,isImaging:y,generatePdf:C,generateImage:A}=zt({elementId:`relation_circle_${l.value}`,fileName:f.value.style.title.text||"vue-ui-relation-circle"}),B=e.computed(()=>so(f.value.customPalette)),v=e.ref([]),i=e.ref([]),g=e.ref({}),w=e.ref([]),U=e.ref(0),I=e.computed(()=>a.dataset.slice(0,f.value.style.limit)),Q=e.ref(f.value.style.size),K=e.ref({height:f.value.style.size,width:f.value.style.size}),E=e.computed({get(){return Q.value*f.value.style.circle.radiusProportion},set(ae){return ae}}),b=e.computed(()=>f.value.style.links.curved),T=e.computed(()=>`${f.value.style.animation.speedMs}ms`),Y=e.computed(()=>E.value*2),$=e.computed(()=>E.value*4),S=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)?Ke({componentName:"VueUiRelationCircle",type:"dataset"}):a.dataset.forEach((ge,Z)=>{Wt({datasetObject:ge,requiredAttributes:["id","label","relations","weights"]}).forEach(ee=>{Ke({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:ee,index:Z})})}),f.value.responsive){const ge=Bo(()=>{const{width:Z,height:ee}=xo({chart:u.value,title:f.value.style.title.text?h.value:null});Q.value=Math.min(Z,ee),K.value.width=Z,K.value.height=ee,E.value=Q.value*f.value.style.circle.radiusProportion,v.value=[],i.value=[],oe(),te()});S.value=new ResizeObserver(ge),S.value.observe(u.value.parentNode)}else oe(),te();document.getElementById(`relation_circle_${l.value}`).addEventListener("click",W)}),e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${l.value}`).removeEventListener("click",W),S.value&&S.value.disconnect()});function W(ae){const ge=ae.target;ge&&Array.from(ge.classList).includes("vue-ui-user-options")||ge&&Array.from(ge.classList).includes("vue-ui-user-options-summary")||ge&&Array.from(ge.classList).includes("vue-data-ui-button")||ge&&Array.from(ge.classList).includes("vue-ui-relation-circle-legend")||(g.value={},w.value=[])}function oe(){const ae=6.28319/I.value.length,ge=360/I.value.length;let Z=0,ee=0;I.value.forEach((z,D)=>{const fe=E.value*Math.cos(Z)+K.value.width/2,M=E.value*Math.sin(Z)+K.value.height/2+f.value.style.circle.offsetY;v.value.push({x:fe,y:M,...z,color:z.color?z.color:B.value[D]?B.value[D]:Me[D],regAngle:ee}),Z+=ae,ee+=ge})}function te(){v.value.forEach(ae=>{v.value.filter(Z=>Z.relations.includes(ae.id)).forEach((Z,ee)=>{i.value.push({weight:ae.weights&&ae.weights[ee]?ae.weights[ee]:1,relationId:`${ae.id}_${Z.id}`,x1:ae.x,y1:ae.y,x2:Z.x,y2:Z.y,colorSource:ae.color,colorTarget:Z.color,...ae})})})}const he=e.computed(()=>Math.max(...i.value.map(ae=>ae.weight)));function le(ae){return Object.hasOwn(g.value,"x")?w.value.includes(ae.id)?"opacity:1":"opacity:0.1":"opacity:1"}function H(ae){return Object.hasOwn(g.value,"x")?ae.colorTarget:ae.colorSource}function P(ae){return Object.hasOwn(g.value,"x")?w.value.includes(ae.id)&&ae.relationId===`${ae.id}_${g.value.id}`||ae.relationId===`${g.value.id}_${ae.id}`?`opacity:1;stroke-width:${V(ae)}`:"opacity: 0":"opacity: 1"}function X(ae){return ae.regAngle>90&&ae.regAngle<270?"end":"start"}function q(ae){return ae.regAngle>90&&ae.regAngle<270?ae.x-5:ae.x+5}function m(ae){return Object.hasOwn(g.value,"x")?g.value.id===ae.id||w.value.includes(ae.id)?"opacity:1":"opacity:0.2":"opacity:1"}function _(ae){return ae.regAngle>90&&ae.regAngle<270?`rotate(${ae.regAngle+180},${ae.x},${ae.y})`:`rotate(${ae.regAngle},${ae.x},${ae.y})`}function x(ae){U.value=360-ae.regAngle,g.value.id&&ae.id===g.value.id?(g.value={},w.value=[]):(g.value=ae,w.value=[...ae.relations])}function V(ae){return ae.weight/he.value*f.value.style.links.maxWidth}const J=e.ref(!1);function ke(ae){J.value=ae,s.value+=1}return o({generatePdf:C,generateImage:A}),(ae,ge)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:u,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor};text-align:center;${f.value.responsive?"height: 100%":""}`),id:`relation_circle_${l.value}`},[f.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:h,style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"relation-div-title",...f.value.style.title},subtitle:{cy:"relation-div-subtitle",...f.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${s.value}`,backgroundColor:f.value.style.backgroundColor,color:f.value.style.color,isPrinting:e.unref(c),isImaging:e.unref(y),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasImg:f.value.userOptions.buttons.img,hasFullscreen:f.value.userOptions.buttons.img,hasXls:!1,isFullscreen:J.value,titles:{...f.value.userOptions.buttonTitles},chartElement:u.value,onToggleFullscreen:ke,onGeneratePdf:e.unref(C),onGenerateImage:e.unref(A)},e.createSlots({_:2},[ae.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(ae.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,ae.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(ae.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,ae.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:Z,isFullscreen:ee})=>[e.renderSlot(ae.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:Z,isFullscreen:ee})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":J.value,"vue-data-ui-fulscreen--off":!J.value},"relation-circle"]),viewBox:`0 0 ${K.value.width<=0?10:K.value.width} ${K.value.height<=0?10:K.value.height}`,width:"100%",style:e.normalizeStyle(`user-select:none; background:${f.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:(K.value.width<=0?1e-4:K.value.width)/2,cy:(K.value.height<=0?1e-4:K.value.height)/2+f.value.style.circle.offsetY,r:E.value<=0?1e-4:E.value,stroke:f.value.style.circle.stroke,"stroke-width":f.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,xT),b.value?(e.openBlock(),e.createElementBlock("g",FT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${ee}`,style:e.normalizeStyle(P(Z)),stroke:H(Z),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":g.value.hasOwnProperty("id")&&w.value.includes(Z.id)}]),d:`M${Z.x1},${Z.y1} C${Z.x1},${Z.y1} ${K.value.width/2},${K.value.height/2+f.value.style.circle.offsetY} ${Z.x2},${Z.y2}`,fill:"none","stroke-width":V(Z),"stroke-linecap":"round"},null,14,NT))),128))])):(e.openBlock(),e.createElementBlock("g",_T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${ee}`,stroke:H(Z),style:e.normalizeStyle(P(Z)),x1:Z.x1,x2:Z.x2,y1:Z.y1,y2:Z.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":g.value.hasOwnProperty("id")&&w.value.includes(Z.id)}),"stroke-linecap":"round"},null,14,ST))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${ee}`,"text-anchor":X(Z),transform:_(Z),x:q(Z),y:Z.y+5,onClick:z=>x(Z),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":g.value.id===Z.id?"900":"400",style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};${m(Z)}`),"font-size":f.value.style.labels.fontSize,fill:f.value.style.labels.color},e.toDisplayString(Z.label),13,LT))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("circle",{cx:Z.x,cy:Z.y,key:`plot_${ee}`,style:e.normalizeStyle(le(Z)),class:"vue-ui-relation-circle-plot",fill:f.value.style.plot.color,onClick:z=>x(Z),r:f.value.style.plot.radius},null,12,ET))),128)),e.renderSlot(ae.$slots,"svg",{svg:K.value},void 0,!0)],14,BT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"relationCircle",style:{backgroundColor:f.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,wT))}},dg=vt(IT,[["__scopeId","data-v-44982e30"]]),$T=Object.freeze(Object.defineProperty({__proto__:null,default:dg},Symbol.toStringTag,{value:"Module"})),MT=["id"],UT={key:0,style:"width:100%"},VT=["xmlns","viewBox"],QT={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},TT=["fill"],OT=["id"],zT=["stop-color"],DT=["stop-color"],PT=["stop-color"],HT={"clip-path":"url(#vueUiPill)"},RT=["x","y","height","width"],GT=["x","y","height","width","fill"],WT=["x1","x2","y1","y2","stroke-width","stroke"],KT=["x1","x2","y1","y2","stroke-width","stroke"],jT=["x1","x2","y1","y2","stroke-width","stroke"],XT=["x1","x2","y1","y2","stroke-width","stroke"],qT=["x1","x2","y1","y2","stroke-width","stroke"],YT=["x1","x2","y1","y2","stroke-width","stroke"],JT=["x1","x2","y1","y2","stroke-width","stroke"],ZT=["x1","x2","y1","y2","stroke-width","stroke"],eO=["x","y","height","width"],tO=["y","x","fill","font-size","font-weight"],oO={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(te=>({efcaaea8:Y.value,"67dbf562":T.value,bd690a62:b.value}));const{vue_ui_thermometer:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)?Ke({componentName:"VueUiThermometer",type:"dataset"}):Wt({datasetObject:a.dataset,requiredAttributes:["value","from","to"]}).forEach(te=>{Ke({componentName:"VueUiThermometer",type:"datasetAttribute",property:te})})});const l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const te=Je({userConfig:a.config,defaultConfig:n});return te.theme?{...Je({userConfig:Nt.vue_ui_thermometer[te.theme]||a.config,defaultConfig:te}),customPalette:Pt[te.theme]||Me}:te}),{isPrinting:f,isImaging:c,generatePdf:y,generateImage:C}=zt({elementId:`thermometer__${l.value}`,fileName:h.value.style.title.text||"vue-ui-thermometer"}),A=e.computed(()=>so(h.value.customPalette)),B=e.computed(()=>h.value.style.chart.thermometer.width),v=e.computed(()=>a.dataset.steps||10),i=e.ref({top:h.value.style.chart.padding.top,left:h.value.style.chart.padding.left,right:h.value.style.chart.padding.right,bottom:h.value.style.chart.padding.bottom});function g(te,he,le){const H=[],P=w(te),X=w(he);for(let q=0;q<le;q++){const m=U(P.red,X.red,q,le),_=U(P.green,X.green,q,le),x=U(P.blue,X.blue,q,le),V=`#${I(m)}${I(_)}${I(x)}`;H.push(V)}return H}function w(te){const he=te.slice(1);return{red:parseInt(he.slice(0,2),16),green:parseInt(he.slice(2,4),16),blue:parseInt(he.slice(4,6),16)}}function U(te,he,le,H){return Math.round(te+(he-te)*le/H)}function I(te){return te.toString(16).padStart(2,"0")}const Q=e.computed(()=>{const te=B.value+i.value.left+i.value.right,he=h.value.style.chart.height;return{width:te,left:i.value.left,right:te-i.value.right,top:i.value.top,bottom:he-i.value.bottom,height:he}}),K=e.computed(()=>Q.value),E=e.computed(()=>{const te=a.dataset.from<0?Math.abs(a.dataset.from):a.dataset.from,he=a.dataset.to<0?Math.abs(a.dataset.to):a.dataset.to;let le=0;return a.dataset.to>0?le=te+he:te>he?le=te-he:le=he-te,(1-(Math.abs(a.dataset.from)+a.dataset.value)/le)*(Q.value.height-i.value.top-i.value.bottom)}),b=e.computed(()=>`${E.value}px`),T=e.computed(()=>`${Q.value.height-h.value.style.chart.padding.bottom-i.value.top}px`),Y=e.computed(()=>`${h.value.style.chart.animation.speedMs}ms`),$=e.computed(()=>{if(a.dataset.colors){if(!a.dataset.colors.from)return g(A.value[0]||Me[0],At(a.dataset.colors.to),v.value||10);if(!a.dataset.colors.to)return g(At(a.dataset.colors.from),A.value[1]||Me[1],v.value||10)}else return g(A.value[1]||Me[1],A.value[0]||Me[0],v.value||10);return g(At(a.dataset.colors.from),At(a.dataset.colors.to),v.value||10)}),S=e.computed(()=>{const te=[];let he=0;const le=Q.value.height-i.value.top-i.value.bottom;for(let H=0;H<le-1;H+=le/v.value)te.push({x:Q.value.left,y:Q.value.top+H,qYLess:Q.value.top+H+le/v.value/4,halfY:Q.value.top+H+le/v.value/2,qYMore:Q.value.top+H+le/v.value/4*3,color:$.value[he],height:le/v.value}),he+=1;return te}),W=e.ref(!1);function oe(te){W.value=te,u.value+=1}return o({generatePdf:y,generateImage:C}),(te,he)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:s,class:e.normalizeClass(`vue-ui-thermometer ${W.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color};font-family:${h.value.style.fontFamily}`),id:`thermometer__${l.value}`},[h.value.style.title.text?(e.openBlock(),e.createElementBlock("div",UT,[e.createVNode(Xt,{config:{title:{cy:"thermometer-div-title",...h.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...h.value.style.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isImaging:e.unref(c),isPrinting:e.unref(f),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:W.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:oe,onGeneratePdf:e.unref(y),onGenerateImage:e.unref(C)},e.createSlots({_:2},[te.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,te.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,te.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:le,isFullscreen:H})=>[e.renderSlot(te.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:le,isFullscreen:H})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":W.value,"vue-data-ui-fulscreen--off":!W.value}),width:"100%",viewBox:`0 0 ${Q.value.width} ${Q.value.height}`,style:e.normalizeStyle(`background:${h.value.style.chart.backgroundColor}`)},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",QT,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:h.value.style.chart.backgroundColor},null,8,TT)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(le,H)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${H}_${l.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":le.color},null,8,zT),e.createElementVNode("stop",{offset:"50%","stop-color":`${le.color}${e.unref(Xe)[100-h.value.style.chart.graduations.gradient.intensity]}`},null,8,DT),e.createElementVNode("stop",{offset:"100%","stop-color":le.color},null,8,PT)],8,OT))),256))]),e.createElementVNode("g",HT,[e.createElementVNode("rect",{x:Q.value.left,y:Q.value.top,height:Q.value.height-i.value.top-i.value.bottom,width:Q.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,RT),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(le,H)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${H}`},[e.createElementVNode("rect",{x:le.x,y:le.y,height:le.height,width:Q.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:h.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${H}_${l.value})`:le.color,"shape-rendering":"crispEdges"},null,8,GT),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:le.x,x2:le.x+10,y1:le.y,y2:le.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,WT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:le.x,x2:le.x+5,y1:le.halfY,y2:le.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,KT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:le.x,x2:le.x+2.5,y1:le.qYLess,y2:le.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,jT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:le.x,x2:le.x+2.5,y1:le.qYMore,y2:le.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,XT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:Q.value.right,x2:Q.value.right-10,y1:le.y,y2:le.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,qT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:Q.value.right,x2:Q.value.right-5,y1:le.halfY,y2:le.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,YT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:Q.value.right,x2:Q.value.right-2.5,y1:le.qYLess,y2:le.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,JT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:Q.value.right,x2:Q.value.right-2.5,y1:le.qYMore,y2:le.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ZT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":h.value.style.chart.animation.use}),x:Q.value.left,y:Q.value.top,height:E.value,width:Q.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,eO)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":h.value.style.chart.animation.use}),y:E.value+Q.value.top+h.value.style.chart.label.fontSize/3,x:Q.value.left-10,"text-anchor":"end",fill:h.value.style.chart.label.color,"font-size":h.value.style.chart.label.fontSize,"font-weight":h.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(Ge)({p:h.value.style.chart.label.prefix,v:t.dataset.value,s:h.value.style.chart.label.suffix,r:h.value.style.chart.label.rounding})),11,tO),e.renderSlot(te.$slots,"svg",{svg:K.value},void 0,!0)],14,VT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"thermometer",style:{backgroundColor:h.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,MT))}},hg=vt(oO,[["__scopeId","data-v-eef95fe3"]]),lO=Object.freeze(Object.defineProperty({__proto__:null,default:hg},Symbol.toStringTag,{value:"Module"})),aO=["xmlns","viewBox"],rO=["id"],nO=["stop-color"],sO=["stop-color"],iO=["stop-color"],uO={id:"stackPill",clipPathUnits:"objectBoundingBox"},AO=["fill"],cO={"clip-path":"url(#stackPill)"},dO=["height","width","fill"],hO=["onClick","x","width","height","fill","stroke"],fO=["onClick"],vO={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},gO=["height","width"],pO=["fill"],yO={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t,{vue_ui_sparkstackbar:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length),l=e.ref(it()),s=e.computed(()=>{const w=Je({userConfig:a.config,defaultConfig:n});return w.theme?{...Je({userConfig:Nt.vue_ui_sparkstackbar[w.theme]||a.config,defaultConfig:w}),customPalette:Pt[w.theme]||Me}:w}),u=e.computed(()=>so(s.value.customPalette)),h=e.ref(a.dataset.map((w,U)=>({...w,value:s.value.style.animation.show?0:w.value||0,color:w.color?At(w.color):u.value[U]||Me[U]||Me[U%Me.length]}))),f=e.ref(!0);e.onMounted(()=>{if(xt(a.dataset)?Ke({componentName:"VueUiSparkStackbar",type:"dataset"}):a.dataset.forEach((w,U)=>{Wt({datasetObject:w,requiredAttributes:["name","value"]}).forEach(I=>{Ke({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:I,index:U})})}),s.value.style.animation.show){let K=function(){Q+=I/w,Q<I?(h.value=h.value.map((E,b)=>({...E,value:E.value+=U[b],color:E.color?At(E.color):u.value[b]||Me[b]||Me[b%Me.length]})),requestAnimationFrame(K)):(f.value=!1,h.value=a.dataset.map((E,b)=>({...E,value:E.value||0,color:E.color?At(E.color):u.value[b]||Me[b]||Me[b%Me.length],id:it()})))};const w=s.value.style.animation.animationFrames,U=a.dataset.map((E,b)=>E.value/w),I=a.dataset.map(E=>E.value||0).reduce((E,b)=>E+b,0);let Q=0;f.value=!0,K()}});const c=e.ref({width:500,height:16}),y=e.ref([]),C=e.computed(()=>a.dataset.map(w=>w.value||0).filter((w,U)=>!y.value.includes(U)).reduce((w,U)=>w+U,0)),A=e.computed(()=>h.value.map((w,U)=>({...w,value:w.value||0,proportion:(w.value||0)/C.value,width:(w.value||0)/C.value*c.value.width,proportionLabel:Ge({v:(w.value||0)/C.value*100,s:"%",r:s.value.style.legend.percentage.rounding})}))),B=e.computed(()=>A.value.filter((w,U)=>!y.value.includes(U)));function v(w){y.value.includes(w)?y.value=y.value.filter(U=>U!==w):y.value.length<h.value.length-1&&y.value.push(w)}const i=e.computed(()=>{let w=0;const U=[];for(let I=0;I<B.value.length;I+=1)U.push({...B.value[I],start:w}),w+=B.value[I].width;return U});function g(w,U){o("selectDatapoint",{datapoint:w,index:U})}return(w,U)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%; background:${s.value.style.backgroundColor}`)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.text),5),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(I,Q)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${Q}`,gradientTransform:"rotate(90)",id:`stack_gradient_${Q}_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":I.color},null,8,nO),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(Lt)(I.color,.05)}${e.unref(Xe)[100-s.value.style.bar.gradient.intensity]}`},null,8,sO),e.createElementVNode("stop",{offset:"100%","stop-color":I.color},null,8,iO)],8,rO))),128)),e.createElementVNode("clipPath",uO,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:s.value.style.backgroundColor},null,8,AO)])]),e.createElementVNode("g",cO,[e.createElementVNode("rect",{x:0,y:0,height:c.value.height,width:i.value.map(I=>I.width).reduce((I,Q)=>I+Q,0),fill:s.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!f.value})},null,10,dO),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(I,Q)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${Q}`,onClick:()=>g(I,Q),x:I.start,y:0,width:I.width,height:c.value.height,fill:s.value.style.bar.gradient.show?`url(#stack_gradient_${Q}_${l.value})`:I.color,stroke:s.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!f.value})},null,10,hO))),128))])],8,aO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:s.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),s.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.legend.margin};justify-content:${s.value.style.legend.textAlign==="left"?"flex-start":s.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(I,Q)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${s.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":y.value.includes(Q)}),onClick:K=>{v(Q),g(I,Q)}},[e.createElementVNode("div",vO,[(e.openBlock(),e.createElementBlock("svg",{height:`${s.value.style.legend.fontSize}px`,width:`${s.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:I.color},null,8,pO)],8,gO)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${s.value.style.legend.name.color}; font-weight:${s.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(I.name),5),s.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${s.value.style.legend.percentage.bold?"bold":"normal"};color:${s.value.style.legend.percentage.color}`)},e.toDisplayString(y.value.includes(Q)?" - ":I.proportionLabel),5)):e.createCommentVNode("",!0),s.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${s.value.style.legend.value.bold?"bold":"normal"};color:${s.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(Ge)({p:s.value.style.legend.value.prefix,v:I.value,s:s.value.style.legend.value.suffix,r:s.value.style.legend.value.rounding}))+") ",5)):e.createCommentVNode("",!0)])],14,fO))),256))],4)):e.createCommentVNode("",!0)],4))}},fg=vt(yO,[["__scopeId","data-v-2006741b"]]),mO=Object.freeze(Object.defineProperty({__proto__:null,default:fg},Symbol.toStringTag,{value:"Module"})),bO={key:0},kO={key:1},CO=["xmlns","viewBox"],wO=["id"],BO=["stop-color"],xO=["stop-color"],FO=["id"],NO=["stop-color"],_O=["stop-color"],SO={key:0},LO=["x","y","height","width","fill","stroke","stroke-width","rx"],EO={key:1},IO=["x","y","font-size","font-weight","fill"],$O=["x","y","font-size","fill"],MO=["x","y","font-size","fill"],UO=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],VO={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t;e.useCssVars(B=>({"34a5ebe4":A.value}));const{vue_ui_sparkhistogram:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length);e.onMounted(()=>{xt(a.dataset)?Ke({componentName:"VueUiSparkHistogram",type:"dataset"}):a.dataset.forEach((B,v)=>{Wt({datasetObject:B,requiredAttributes:["value"]}).forEach(i=>{Ke({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:i,index:v})})})});const l=e.ref(it()),s=e.computed(()=>{const B=Je({userConfig:a.config,defaultConfig:n});return B.theme?{...Je({userConfig:Nt.vue_ui_sparkhistogram[B.theme]||a.config,defaultConfig:B})}:B}),u=e.computed(()=>{const B=s.value.style.layout.height,v=s.value.style.layout.width,i=s.value.style.layout.padding.top,g=B-s.value.style.layout.padding.bottom,w=s.value.style.layout.padding.left,U=v-s.value.style.layout.padding.right,I=i+(B-i-s.value.style.layout.padding.bottom)/2,Q=B-s.value.style.layout.padding.top-s.value.style.layout.padding.bottom,K=v-s.value.style.layout.padding.left-s.value.style.layout.padding.right;return{bottom:g,centerY:I,drawingHeight:Q,drawingWidth:K,height:B,left:w,right:U,top:i,width:v}}),h=e.computed(()=>Math.max(...a.dataset.map(B=>Math.abs(B.value||0))));function f(B){return Math.abs(B)/h.value}const c=e.computed(()=>a.dataset.map((B,v)=>{const i=f(B.value||0),g=u.value.drawingHeight*i,w=u.value.drawingWidth/a.dataset.length,U=w*(s.value.style.bars.gap/100),I=w-U,Q=u.value.centerY-g/2,K=u.value.left+(U/2+v*w),E=u.value.left+v*w,b=typeof B.intensity>"u"?100:Math.round(B.intensity*100),T=B.value>=0?`${s.value.style.bars.colors.positive}${Xe[b]}`:`${s.value.style.bars.colors.negative}${Xe[b]}`,Y=B.value>=0?s.value.style.bars.colors.positive:s.value.style.bars.colors.negative,$=B.value>=0?`url(#gradient_positive_${v}_${l.value})`:`url(#gradient_negative_${v}_${l.value})`,S=K+I/2;return{...B,color:T,gradient:$,height:g,intensity:b,proportion:i,stroke:Y,textAnchor:S,trapX:E,unitWidth:w,width:I,x:K,y:Q}})),y=e.ref(null);function C(B,v){o("selectDatapoint",{datapoint:B,index:v})}const A=e.computed(()=>`${s.value.style.animation.speedMs}ms`);return(B,v)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${s.value.style.backgroundColor};font-family:${s.value.style.fontFamily}`),onMouseleave:v[1]||(v[1]=i=>y.value=null)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(s.value.style.title.text)+" ",1),y.value!==null?(e.openBlock(),e.createElementBlock("span",bO,"- "+e.toDisplayString(c.value[y.value].timeLabel||"")+" "+e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(c.value[y.value].value)?"":": "+Number(c.value[y.value].value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),1)):e.createCommentVNode("",!0),e.createTextVNode(),![void 0,null].includes(y.value)&&![null,void 0].includes(c.value[y.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",kO,"("+e.toDisplayString(c.value[y.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:{overflow:"visible"}},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${g}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.positive,.05)}${e.unref(Xe)[i.intensity]}`},null,8,BO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.positive}${e.unref(Xe)[i.intensity]}`},null,8,xO)],8,wO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${g}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.negative,.05)}${e.unref(Xe)[i.intensity]}`},null,8,NO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.negative}${e.unref(Xe)[i.intensity]}`},null,8,_O)],8,FO))),256))]),!s.value.style.bars.shape||s.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",SO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("rect",{x:i.x,y:i.y,height:i.height,width:i.width,fill:s.value.style.bars.colors.gradient.show?i.gradient:i.color,stroke:i.stroke,"stroke-width":s.value.style.bars.strokeWidth,rx:`${s.value.style.bars.borderRadius*i.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,10,LO))),256))])):(e.openBlock(),e.createElementBlock("g",EO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createBlock(ra,{plot:{x:i.x+i.width/2,y:i.y+i.height/2},color:s.value.style.bars.colors.gradient.show?i.gradient:i.color,shape:s.value.style.bars.shape,radius:i.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:i.textAnchor,y:i.y-s.value.style.labels.value.fontSize/3+s.value.style.labels.value.offsetY,"font-size":s.value.style.labels.value.fontSize,"font-weight":s.value.style.labels.value.bold?"bold":"normal",fill:s.value.style.labels.value.color},e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(i.value)?"":Number(i.value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),9,IO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("g",null,[i.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:i.y+i.height+s.value.style.labels.valueLabel.fontSize,"font-size":s.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:s.value.style.labels.valueLabel.color},e.toDisplayString(i.valueLabel),9,$O)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("g",null,[i.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:u.value.height-s.value.style.labels.timeLabel.fontSize/2,"font-size":s.value.style.labels.timeLabel.fontSize,fill:s.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(i.timeLabel),9,MO)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:u.value.height,width:i.unitWidth,fill:"transparent",x:i.trapX,y:0,onMouseover:w=>y.value=g,onMouseleave:v[0]||(v[0]=w=>y.value=null),stroke:y.value!==null&&y.value===g?s.value.style.selector.stroke:"","stroke-width":y.value!==null&&y.value===g?s.value.style.selector.strokeWidth:0,rx:s.value.style.selector.borderRadius,"stroke-dasharray":s.value.style.selector.strokeDasharray,onClick:()=>C(i,g)},null,40,UO)]))),256))],8,CO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkHistogram",style:{backgroundColor:s.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},vg=vt(VO,[["__scopeId","data-v-7aed7086"]]),QO=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"})),TO=["id"],OO=["xmlns","viewBox"],zO=["id"],DO=["stop-color"],PO=["stop-color"],HO=["stroke","cx","cy","r","fill"],RO=["stroke-width","cx","cy","r","fill"],GO=["cx","cy","r","onMouseenter"],WO=["onClick"],KO={key:0},jO={key:1},XO=["innerHTML"],qO={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_rings:r}=ft(),l=e.ref(!1),s=e.computed(()=>!!n.dataset&&n.dataset.length),u=e.ref(it()),h=e.ref(null),f=e.ref(!1),c=e.ref(""),y=e.ref(null),C=e.ref(0),A=e.ref(null),B=e.ref(null),v=e.ref(null),i=e.computed(()=>{const Z=Je({userConfig:n.config,defaultConfig:r});return Z.theme?{...Je({userConfig:Nt.vue_ui_rings[Z.theme]||n.config,defaultConfig:Z}),customPalette:Pt[Z.theme]||Me}:Z}),g=e.ref(null);e.onMounted(()=>{if(xt(n.dataset)?Ke({componentName:"VueUiRings",type:"dataset"}):n.dataset.forEach((Z,ee)=>{Wt({datasetObject:Z,requiredAttributes:["name","values"]}).forEach(z=>{Ke({componentName:"VueUiRings",type:"datasetSerieAttribute",property:z,index:ee})})}),i.value.responsive){const Z=Bo(()=>{const{width:ee,height:z}=xo({chart:A.value,title:i.value.style.chart.title.text?B.value:null,legend:i.value.style.chart.legend.show?v.value:null});b.value.width=ee,b.value.height=z});g.value=new ResizeObserver(Z),g.value.observe(A.value.parentNode)}setTimeout(()=>{l.value=!0},600)}),e.onBeforeUnmount(()=>{g.value&&g.value.disconnect()});const{isPrinting:w,isImaging:U,generatePdf:I,generateImage:Q}=zt({elementId:`rings_${u.value}`,fileName:i.value.style.chart.title.text||"vue-ui-rings"}),K=e.computed(()=>so(i.value.customPalette)),E=e.ref({showTable:i.value.table.show,showTooltip:i.value.style.chart.tooltip.show}),b=e.ref({height:360,width:360}),T=e.computed(()=>Math.min(b.value.height,b.value.width)),Y=e.ref([]);function $(Z){Y.value.includes(Z)?Y.value=Y.value.filter(ee=>ee!==Z):Y.value.push(Z),a("selectLegend",H.value.map(ee=>({name:ee.name,color:ee.color,value:ee.value})))}const S=e.computed(()=>Math.max(...oe.value.filter(Z=>!Y.value.includes(Z.uid)).map(({value:Z})=>Z)));function W(Z){return Z/S.value}const oe=e.computed(()=>n.dataset.map(({values:Z,name:ee,color:z=null},D)=>{const fe=(Z||[]).reduce((M,N)=>M+N,0);return{name:ee,color:z||At(z)||K.value[D]||Me[D]||Me[D%Me.length],value:fe,proportion:fe/n.dataset.map(M=>(M.values||[]).reduce((N,j)=>N+j,0)).reduce((M,N)=>M+N,0),uid:it()}})),te=e.computed(()=>oe.value.map(Z=>({...Z,shape:"circle",opacity:Y.value.includes(Z.uid)?.5:1,segregate:()=>$(Z.uid),isSegregated:Y.value.includes(Z.uid)})).toSorted((Z,ee)=>ee.value-Z.value)),he=e.computed(()=>({cy:"rings-div-legend",backgroundColor:i.value.style.chart.legend.backgroundColor,color:i.value.style.chart.legend.color,fontSize:i.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:i.value.style.chart.legend.bold?"bold":""})),le=e.computed(()=>oe.value.filter(Z=>!Y.value.includes(Z.uid)).map(({value:Z})=>Z).reduce((Z,ee)=>Z+ee,0)),H=e.computed(()=>oe.value.filter(Z=>!Y.value.includes(Z.uid)).map(({name:Z,value:ee,color:z=null,uid:D},fe)=>({uid:D,name:Z,color:z||At(z)||K.value[fe]||Me[fe]||Me[fe%Me.length],value:ee,proportion:W(ee),percentage:ee/le.value*100,strokeWidth:i.value.style.chart.layout.rings.strokeWidth*W(ee)})).toSorted((Z,ee)=>ee.value-Z.value));function P(){return H.value.map(({name:Z,color:ee,value:z,absoluteValues:D,percentage:fe})=>({name:Z,color:ee,value:z,absoluteValues:D,percentage:fe}))}const X=e.computed(()=>T.value-i.value.style.chart.layout.rings.strokeWidth*2),q=e.ref(null);function m(Z,ee){if(Y.value.length===n.dataset.length)return;q.value={datapoint:ee,seriesIndex:Z,series:H.value,config:i.value},y.value=Z;const z=H.value[Z],D=i.value.style.chart.tooltip.customFormat;if(Gt(D)&&wo(()=>D({seriesIndex:Z,datapoint:ee,series:H.value,config:i.value})))c.value=D({seriesIndex:Z,datapoint:ee,series:H.value,config:i.value});else{let fe="";fe+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${i.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${z.name}</div>`,fe+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${z.color}" /></svg>`,i.value.style.chart.tooltip.showValue&&(fe+=`<b>${Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.tooltip.roundingValue})}</b>`),i.value.style.chart.tooltip.showPercentage&&(i.value.style.chart.tooltip.showValue?fe+=`<span>(${(z.value/le.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%)</span></div>`:fe+=`<b>${(z.value/le.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%</b></div>`),c.value=fe}f.value=!0}const _=e.computed(()=>{const Z=H.value.map(z=>({name:z.name,color:z.color})),ee=H.value.map(z=>z.value);return{head:Z,body:ee}}),x=e.computed(()=>{const Z=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:le.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),"100%"],ee=_.value.head.map((fe,M)=>[{color:fe.color,name:fe.name},Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:_.value.body[M],s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),isNaN(_.value.body[M]/le.value)?"-":(_.value.body[M]/le.value*100).toFixed(i.value.table.td.roundingPercentage)+"%"]),z={th:{backgroundColor:i.value.table.th.backgroundColor,color:i.value.table.th.color,outline:i.value.table.th.outline},td:{backgroundColor:i.value.table.td.backgroundColor,color:i.value.table.td.color,outline:i.value.table.td.outline},breakpoint:i.value.table.responsiveBreakpoint},D=[i.value.table.columnNames.series,i.value.table.columnNames.value,i.value.table.columnNames.percentage];return{head:Z,body:ee,config:z,colNames:D}});function V(){e.nextTick(()=>{const Z=_.value.head.map((D,fe)=>[[D.name],[_.value.body[fe]],[isNaN(_.value.body[fe]/le.value)?"-":_.value.body[fe]/le.value*100]]),ee=[[i.value.style.chart.title.text],[i.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(Z),z=eo(ee);Zt({csvContent:z,title:i.value.style.chart.title.text||"vue-ui-rings"})})}const J=e.ref(!1);function ke(Z){J.value=Z,C.value+=1}function ae(){E.value.showTable=!E.value.showTable}function ge(){E.value.showTooltip=!E.value.showTooltip}return o({getData:P,generatePdf:I,generateCsv:V,generateImage:Q,toggleTable:ae,toggleTooltip:ge}),(Z,ee)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:A,class:e.normalizeClass(`vue-ui-rings ${J.value?"vue-data-ui-wrapper-fullscreen":""} ${i.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${i.value.style.fontFamily};text-align:center;width:100%;background:${i.value.style.chart.backgroundColor};${i.value.responsive?"height: 100%":""}`),id:`rings_${u.value}`,onMouseleave:ee[3]||(ee[3]=z=>{y.value=null,f.value=!1})},[i.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:B,style:e.normalizeStyle(`width:100%;background:${i.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"rings-div-title",...i.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...i.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),i.value.userOptions.show&&s.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:h,key:`user_options_${C.value}`,backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color,isPrinting:e.unref(w),isImaging:e.unref(U),uid:u.value,hasTooltip:i.value.userOptions.buttons.tooltip&&i.value.style.chart.tooltip.show,hasPdf:i.value.userOptions.buttons.pdf,hasXls:i.value.userOptions.buttons.csv,hasImg:i.value.userOptions.buttons.img,hasTable:i.value.userOptions.buttons.table,hasFullscreen:i.value.userOptions.buttons.fullscreen,isTooltip:E.value.showTooltip,isFullscreen:J.value,titles:{...i.value.userOptions.buttonTitles},chartElement:A.value,onToggleFullscreen:ke,onGeneratePdf:e.unref(I),onGenerateCsv:V,onGenerateImage:e.unref(Q),onToggleTable:ae,onToggleTooltip:ge},e.createSlots({_:2},[Z.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,Z.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,Z.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,Z.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,Z.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,Z.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:z,isFullscreen:D})=>[e.renderSlot(Z.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:z,isFullscreen:D})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":J.value,"vue-data-ui-fulscreen--off":!J.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${i.value.style.chart.backgroundColor};color:${i.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(z,D)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${u.value}_${D}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(z.color,.05)}${e.unref(Xe)[100-i.value.style.chart.layout.rings.gradient.intensity]}`},null,8,DO),e.createElementVNode("stop",{offset:"100%","stop-color":z.color},null,8,PO)],8,zO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(z,D)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-opacity":y.value!==null&&y.value!==D}),style:e.normalizeStyle(`animation-delay:${D*100}ms`),stroke:i.value.style.chart.layout.rings.stroke,cx:b.value.width/2,cy:D===0?b.value.height/2:b.value.height/2+X.value*H.value[0].proportion/2-X.value*z.proportion/2-2*(D+1),r:X.value*z.proportion/2*.9<=0?1e-4:X.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.underlayerColor},null,14,HO),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-shadow":i.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":y.value!==null&&y.value!==D}),style:e.normalizeStyle(`animation-delay:${D*100}ms`),stroke:"none","stroke-width":z.strokeWidth<.5?.5:z.strokeWidth,cx:b.value.width/2,cy:D===0?b.value.height/2:b.value.height/2+X.value*H.value[0].proportion/2-X.value*z.proportion/2-2*(D+1),r:X.value*z.proportion/2*.9<=0?1e-4:X.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.show?`url(#gradient_${u.value}_${D})`:z.color},null,14,RO),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:b.value.width/2,cy:D===0?b.value.height/2:b.value.height/2+X.value*H.value[0].proportion/2-X.value*z.proportion/2-2*(D+1),r:X.value*z.proportion/2*.9<=0?1e-4:X.value*z.proportion/2*.9,fill:"transparent",onMouseenter:fe=>m(D,z),onMouseleave:ee[0]||(ee[0]=fe=>{y.value=null,f.value=!1})},null,40,GO)]))),256)),e.renderSlot(Z.$slots,"svg",{svg:b.value},void 0,!0)],14,OO)):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"rings",style:{backgroundColor:i.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:v},[i.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:0,legendSet:te.value,config:he.value,onClickMarker:ee[1]||(ee[1]=({legend:z})=>$(z.uid))},{item:e.withCtx(({legend:z})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:D=>$(z.uid),style:e.normalizeStyle(`opacity:${Y.value.includes(z.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(z.name)+": "+e.toDisplayString(e.unref(Ge)({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.legend.roundingValue}))+" ",1),Y.value.includes(z.uid)?(e.openBlock(),e.createElementBlock("span",jO," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",KO," ("+e.toDisplayString(isNaN(z.value/le.value)?"-":(z.value/le.value*100).toFixed(i.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,WO)]),_:1},8,["legendSet","config"])):e.renderSlot(Z.$slots,"legend",{key:1,legend:te.value},void 0,!0)],512),e.createVNode(Oo,{show:E.value.showTooltip&&f.value&&Y.value.length<n.dataset.length,backgroundColor:i.value.style.chart.tooltip.backgroundColor,color:i.value.style.chart.tooltip.color,borderRadius:i.value.style.chart.tooltip.borderRadius,borderColor:i.value.style.chart.tooltip.borderColor,borderWidth:i.value.style.chart.tooltip.borderWidth,fontSize:i.value.style.chart.tooltip.fontSize,backgroundOpacity:i.value.style.chart.tooltip.backgroundOpacity,parent:A.value,content:c.value,isCustom:i.value.style.chart.tooltip.customFormat&&typeof i.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),s.value?(e.openBlock(),e.createBlock(lo,{key:4,hideDetails:"",config:{open:E.value.showTable,maxHeight:1e4,body:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color},head:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:x.value.colNames,head:x.value.head,body:x.value.body,config:x.value.config,title:`${i.value.style.chart.title.text}${i.value.style.chart.title.subtitle.text?` : ${i.value.style.chart.title.subtitle.text}`:""}`,onClose:ee[2]||(ee[2]=z=>E.value.showTable=!1)},{th:e.withCtx(({th:z})=>[e.createElementVNode("div",{innerHTML:z,style:{display:"flex","align-items":"center"}},null,8,XO)]),td:e.withCtx(({td:z})=>[e.createTextVNode(e.toDisplayString(z.name||z),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,TO))}},gg=vt(qO,[["__scopeId","data-v-956d6194"]]),YO=Object.freeze(Object.defineProperty({__proto__:null,default:gg},Symbol.toStringTag,{value:"Module"})),JO=["id"],ZO=["xmlns","viewBox"],ez=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],tz=["cx","cy","r","stroke","stroke-width"],oz=["x","y","font-size","fill","font-weight"],lz={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_wheel:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.ref(null),f=e.ref(null),c=e.computed(()=>{const T=Je({userConfig:a.config,defaultConfig:n});return T.theme?{...Je({userConfig:Nt.vue_ui_wheel[T.theme]||a.config,defaultConfig:T})}:T}),{isPrinting:y,isImaging:C,generatePdf:A,generateImage:B}=zt({elementId:l.value,fileName:c.value.style.chart.title.text||"vue-ui-wheel"}),v=e.ref({size:360,height:360,width:360}),i=e.ref(c.value.style.chart.layout.percentage.fontSize),g=e.computed(()=>({radius:Math.min(v.value.width,v.value.height)*.9/2,centerX:v.value.width/2,centerY:v.value.height/2}));function w(T,Y=1){return{x:g.value.centerX+g.value.radius*Math.cos(29.85+T*Math.PI/180)*Y,y:g.value.centerY+g.value.radius*Math.sin(29.85+T*Math.PI/180)*Y}}const U=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0);e.watch(()=>a.dataset.percentage,()=>{U.value=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0),Q()});const I=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)&&Ke({componentName:"VueUiWheel",type:"dataset"}),Q(),c.value.responsive){const T=Bo(()=>{const{width:Y,height:$}=xo({chart:h.value,title:c.value.style.chart.title.text?f.value:null});v.value.width=Y,v.value.height=$,i.value=c.value.style.chart.layout.percentage.fontSize/360*Math.min(Y,$)});I.value=new ResizeObserver(T),I.value.observe(h.value.parentNode)}}),e.onBeforeUnmount(()=>{I.value&&I.value.disconnect()});function Q(){let T=0,Y=c.value.style.chart.animation.speed,$=.005*c.value.style.chart.animation.acceleration;function S(){U.value+=Y+T,T+=$,U.value<(a.dataset.percentage||0)?requestAnimationFrame(S):U.value=a.dataset.percentage||0}c.value.style.chart.animation.use&&(U.value=0,S())}const K=e.computed(()=>{const T=[];for(let $=0;$<100;$+=1){const S=U.value>$?c.value.style.chart.layout.wheel.ticks.activeColor:c.value.style.chart.layout.wheel.ticks.inactiveColor,{x:W,y:oe}=w(v.value.size/100*$),{x:te,y:he}=w(v.value.size/100*$,.9);T.push({x1:W,y1:oe,x2:te,y2:he,color:c.value.style.chart.layout.wheel.ticks.gradient.show?Lt(S,$/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):S})}return T}),E=e.ref(!1);function b(T){E.value=T,u.value+=1}return o({generatePdf:A,generateImage:B}),(T,Y)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,id:l.value,style:e.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center;background:${c.value.style.chart.backgroundColor};${c.value.responsive?"height:100%":""}`)},[c.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:e.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...c.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...c.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),c.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:s,key:`user_options_${u.value}`,backgroundColor:c.value.style.chart.backgroundColor,color:c.value.style.chart.color,isPrinting:e.unref(y),isImaging:e.unref(C),uid:l.value,hasPdf:c.value.userOptions.buttons.pdf,hasImg:c.value.userOptions.buttons.img,hasFullscreen:c.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:E.value,titles:{...c.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:b,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(B)},e.createSlots({_:2},[T.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,T.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,T.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:$,isFullscreen:S})=>[e.renderSlot(T.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:$,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${v.value.width<=0?10:v.value.width} ${v.value.height<=0?10:v.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,($,S)=>(e.openBlock(),e.createElementBlock("line",{x1:$.x1,x2:$.x2,y1:$.y1,y2:$.y2,stroke:$.color,"stroke-width":5/360*Math.min(v.value.width,v.value.height),"stroke-linecap":c.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":c.value.style.chart.animation.use&&S<=U.value})},null,10,ez))),256)),c.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:g.value.centerX,cy:g.value.centerY,r:g.value.radius*.8<=0?1e-4:g.value.radius*.8,stroke:c.value.style.chart.layout.innerCircle.stroke,"stroke-width":c.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,tz)):e.createCommentVNode("",!0),c.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:g.value.centerX,y:g.value.centerY+i.value/3,"font-size":i.value,fill:c.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(Lt)(c.value.style.chart.layout.wheel.ticks.activeColor,U.value/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":c.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(Number(U.value.toFixed(c.value.style.chart.layout.percentage.rounding)).toLocaleString())+"% ",9,oz)):e.createCommentVNode("",!0),e.renderSlot(T.$slots,"svg",{svg:v.value},void 0,!0)],14,ZO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"wheel",style:{backgroundColor:c.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,JO))}},pg=vt(lz,[["__scopeId","data-v-9e158d61"]]),az=Object.freeze(Object.defineProperty({__proto__:null,default:pg},Symbol.toStringTag,{value:"Module"})),rz=["id"],nz=["xmlns","viewBox"],sz={key:0},iz=["d","stroke-width","stroke"],uz={key:1},Az=["x1","y1","x2","y2","stroke-width","stroke"],cz=["x","y","font-size","fill","font-weight","text-anchor"],dz={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_tiremarks:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const T=Je({userConfig:a.config,defaultConfig:n});return T.theme?{...Je({userConfig:Nt.vue_ui_tiremarks[T.theme]||a.config,defaultConfig:T})}:T}),{isPrinting:f,isImaging:c,generatePdf:y,generateImage:C}=zt({elementId:l.value,fileName:h.value.style.chart.title.text||"vue-ui-tiremarks"}),A=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage);e.watch(()=>a.dataset.percentage,()=>{A.value=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage),B()}),e.onMounted(()=>{xt(a.dataset)&&Ke({componentName:"VueUiTiremarks",type:"dataset"}),B()});function B(){let T=0,Y=h.value.style.chart.animation.speed,$=.005*h.value.style.chart.animation.acceleration;function S(){A.value+=Y+T,T+=$,A.value<a.dataset.percentage?requestAnimationFrame(S):A.value=a.dataset.percentage}h.value.style.chart.animation.use&&(A.value=0,S())}const v=e.computed(()=>h.value.style.chart.layout.display==="vertical"),i=e.computed(()=>{const T={top:48,left:64,right:64,bottom:48};return v.value?{top:h.value.style.chart.percentage.verticalPosition==="top"?T.top:3,left:3,right:3,bottom:h.value.style.chart.percentage.verticalPosition==="bottom"?T.bottom:3}:{top:0,bottom:0,left:h.value.style.chart.percentage.horizontalPosition==="left"?T.left:3,right:h.value.style.chart.percentage.horizontalPosition==="right"?T.right:10}}),g=e.computed(()=>Object.values(i.value).reduce((T,Y)=>T+Y,0)),w=e.computed(()=>({height:v.value?312:56,width:v.value?56:312})),U=e.ref(100);e.computed(()=>a.dataset.percentage/U.value);const I=e.computed(()=>v.value?{mark:(w.value.height-g.value)/100*.5,space:(w.value.height-g.value)/100*.5}:{mark:(w.value.width-g.value)/100*.5,space:(w.value.width-g.value)/100*.5}),Q=e.computed(()=>{const T=[];for(let $=0;$<100;$+=1){const S=h.value.style.chart.layout.ticks.gradient.show?Lt(h.value.style.chart.layout.activeColor,$/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.layout.activeColor;if(v.value){const W=h.value.style.chart.layout.crescendo?(100-$)*(w.value.width-i.value.left-i.value.right)/100/3:0,oe=i.value.left+4+W,te=w.value.width-i.value.right-4-W,he=w.value.height-i.value.bottom-$*I.value.mark-$*I.value.space-I.value.mark,le=w.value.height-i.value.bottom-$*I.value.mark-$*I.value.space-I.value.mark,H=(te-oe)/h.value.style.chart.layout.curveAngleX,P=h.value.style.chart.layout.curveAngleY*((1+$)/100);T.push({x1:oe,x2:te,y1:he,y2:le,curve:`M ${oe} ${he} C ${oe+H} ${he-P}, ${te-H} ${le-P}, ${te} ${le}`,color:S})}else{const W=h.value.style.chart.layout.crescendo?(100-$)*(w.value.height-i.value.top-i.value.bottom)/100/3:0,oe=i.value.left+$*I.value.mark+$*I.value.space-I.value.mark,te=oe,he=i.value.top+4+W,le=w.value.height-i.value.bottom-4-W,H=h.value.style.chart.layout.curveAngleY*((1+$)/100),P=(le-he)/h.value.style.chart.layout.curveAngleX;T.push({x1:oe,x2:te,y1:he,y2:le,curve:`M ${oe} ${he} C ${oe+H} ${he+P}, ${te+H} ${le-P}, ${te} ${le}`,color:S})}}return T}),K=e.computed(()=>{let T,Y,$;const S=h.value.style.chart.percentage.fontSize/3;return v.value?h.value.style.chart.percentage.verticalPosition==="top"?(T=w.value.width/2,Y=i.value.top/2,$="middle"):h.value.style.chart.percentage.verticalPosition==="bottom"&&(T=w.value.width/2,Y=w.value.height-i.value.bottom/2+S,$="middle"):h.value.style.chart.percentage.horizontalPosition==="left"?(T=4,Y=w.value.height/2+S,$="start"):h.value.style.chart.percentage.horizontalPosition==="right"&&(T=w.value.width-i.value.right+8,Y=w.value.height/2+S,$="start"),{x:T,y:Y,textAnchor:$,bold:h.value.style.chart.percentage.bold,fontSize:h.value.style.chart.percentage.fontSize,fill:h.value.style.chart.percentage.color}}),E=e.ref(!1);function b(T){E.value=T,u.value+=1}return o({generatePdf:y,generateImage:C}),(T,Y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:s,class:e.normalizeClass(`vue-ui-tiremarks ${h.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${h.value.style.fontFamily};width:100%; text-align:center;${h.value.style.chart.title.text?"":"padding-top:36px"};background:${h.value.style.chart.backgroundColor}`),id:l.value},[h.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...h.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...h.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isPrinting:e.unref(f),isImaging:e.unref(c),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:E.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:b,onGeneratePdf:e.unref(y),onGenerateImage:e.unref(C)},e.createSlots({_:2},[T.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,T.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,T.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:$,isFullscreen:S})=>[e.renderSlot(T.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:$,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${w.value.width} ${w.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`)},[h.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",sz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,($,S)=>(e.openBlock(),e.createElementBlock("path",{d:$.curve,"stroke-width":I.value.mark,stroke:A.value>=S?$.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":h.value.style.chart.animation.use&&S<=A.value})},null,10,iz))),256))])):(e.openBlock(),e.createElementBlock("g",uz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,($,S)=>(e.openBlock(),e.createElementBlock("line",{x1:$.x1,y1:$.y1,x2:$.x2,y2:$.y2,"stroke-width":I.value.mark,stroke:A.value>=S?$.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,Az))),256))])),h.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:K.value.x,y:K.value.y,"font-size":K.value.fontSize,fill:h.value.style.chart.layout.ticks.gradient.show&&h.value.style.chart.percentage.useGradientColor?e.unref(Lt)(h.value.style.chart.layout.activeColor,A.value/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.percentage.color,"font-weight":K.value.bold?"bold":"normal","text-anchor":K.value.textAnchor},e.toDisplayString(A.value.toFixed(h.value.style.chart.percentage.rounding)+"%"),9,cz)):e.createCommentVNode("",!0),e.renderSlot(T.$slots,"svg",{svg:w.value},void 0,!0)],14,nz)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"tiremarks",style:{backgroundColor:h.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,rz))}},yg=vt(dz,[["__scopeId","data-v-1bbd1baf"]]),hz=Object.freeze(Object.defineProperty({__proto__:null,default:yg},Symbol.toStringTag,{value:"Module"})),fz=["id"],vz=["xmlns","viewBox"],gz=["id"],pz=["stop-color"],yz=["stop-color"],mz=["id"],bz=["stop-color"],kz=["stop-color"],Cz=["stop-color"],wz={key:0},Bz=["x1","x2","y1","y2","stroke","stroke-width"],xz=["x1","x2","y1","y2","stroke","stroke-width"],Fz={key:0},Nz=["x1","x2","y1","y2","stroke","stroke-width"],_z=["x1","x2","y1","y2","stroke","stroke-width"],Sz=["x","y","font-size","fill","font-weight"],Lz=["text-anchor","font-size","fill","transform"],Ez=["x1","y1","x2","y2","stroke","stroke-width"],Iz={key:1},$z=["cx","cy","r","fill"],Mz={key:0},Uz={key:0},Vz=["d","stroke"],Qz=["text-anchor","x","y","fill"],Tz=["cx","cy","r","fill"],Oz={key:0},zz=["cx","cy","fill"],Dz={key:1},Pz=["d","fill","stroke"],Hz={key:2},Rz=["d","fill","stroke"],Gz=["x","y","font-size","fill"],Wz=["x","y","width","fill","onClick"],Kz=["x","y","width","height","onMouseenter","onClick"],jz={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},Xz=["x","y","width","height","fill"],qz=["x1","y1","x2","y2","stroke"],Yz=["x1","y2","x2","y1","stroke"],Jz=["onKeypress","cx","cy","r"],Zz=["d","stroke"],eD=["cx","cy","r","fill"],tD=["d","fill","stroke"],oD={class:"vue-ui-donut-evolution-focus"},lD=["text-anchor","x","y","fill"],aD=["cx","cy","r","fill"],rD=["cx","cy","r","fill"],nD=["x","y","fill"],sD=["x","y","font-size","fill"],iD=["onClick"],uD={key:0},AD={key:1},cD={key:0},dD={key:1},hD={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_donut_evolution:r}=ft(),l=e.computed(()=>!!n.dataset&&n.dataset.length),s=e.ref({start:0,end:Math.max(...n.dataset.map(N=>N.values.length))});function u(){s.value={start:0,end:S.value},i.value+=1}e.onMounted(()=>{xt(n.dataset)?Ke({componentName:"VueUiDonutEvolution",type:"dataset"}):n.dataset.length&&n.dataset.forEach((N,j)=>{Wt({datasetObject:N,requiredAttributes:["name","values"]}).forEach(O=>{Ke({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:O,index:j})})})});const h=e.ref(it()),f=e.ref([]),c=e.ref(null),y=e.ref(null),C=e.ref(!1),A=e.ref(null),B=e.ref(null),v=e.ref(0),i=e.ref(0),g=e.computed(()=>{const N=Je({userConfig:n.config,defaultConfig:r});return N.theme?{...Je({userConfig:Nt.vue_ui_donut_evolution[N.theme]||n.config,defaultConfig:N}),customPalette:Pt[N.theme]||Me}:N}),{isPrinting:w,isImaging:U,generatePdf:I,generateImage:Q}=zt({elementId:h.value,fileName:g.value.style.chart.title.text||"vue-ui-donut-evolution"}),K=e.computed(()=>so(g.value.customPalette)),E=e.ref({showTable:g.value.table.show}),b=e.computed(()=>({top:g.value.style.chart.layout.padding.top,right:g.value.style.chart.layout.padding.right,bottom:g.value.style.chart.layout.padding.bottom,left:g.value.style.chart.layout.padding.left})),T=e.computed(()=>{const N=g.value.style.chart.layout.height,j=g.value.style.chart.layout.width,O=N-b.value.top-b.value.bottom,ce=j-b.value.left-b.value.right;return{absoluteHeight:N,absoluteWidth:j,centerX:b.value.left+ce/2,centerY:b.value.top+O/2,height:O,width:ce}}),Y=e.computed(()=>(n.dataset.forEach((N,j)=>{[null,void 0].includes(N.name)&&Ke({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:j}),[null,void 0].includes(N.values)&&Ke({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:j})}),n.dataset.map((N,j)=>({...N,values:N.values||[],color:At(N.color)||K.value[j]||Me[j]||Me[j%Me.length],length:(N.values||[]).length,uid:it()})))),$=e.computed(()=>Y.value.filter(N=>!f.value.includes(N.uid)).map(N=>({...N,values:N.values.filter((j,O)=>O>=s.value.start&&O<=s.value.end)}))),S=e.computed(()=>Math.max(...$.value.map(N=>N.length))),W=e.computed(()=>T.value.width/(s.value.end-s.value.start)),oe=e.computed(()=>{const N=[];for(let re=0;re<s.value.end-s.value.start;re+=1){const ie=$.value.map(ve=>ve.values[re]??null),G=ie.filter(ve=>[void 0,null].includes(ve)).length===ie.length,ne=ie.reduce((ve,Ce)=>ve+Ce,0),Ae=ie.map(ve=>ve/ne),se=b.value.left+W.value*re+W.value/2;N.push({index:re,percentages:Ae,subtotal:G||ne<0?null:ne,values:ie,x:se})}const j=0,O=Math.max(...N.map(re=>re.subtotal)),ce=N.length===1?O*2:O;return N.map((re,ie)=>{const G=W.value/2*.7,ne=G>T.value.width/16?T.value.width/16:G,Ae=c.value===re.index?T.value.width/16:ne,se=N.length>4?G*2:G*2>W.value/2*.7?W.value/2*.7:G*2,ve=T.value.absoluteHeight-b.value.bottom-T.value.height*re.subtotal/Pl(j,ce,g.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...re,y:ve,radius:ne,activeRadius:Ae,hoverRadius:se,donut:kl({series:$.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},re.x,ve,ne,ne,1.99999,2,1,360,105.25,ne/2),donutHover:kl({series:$.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},re.x,ve,se,se,1.99999,2,1,360,105.25,se/2),donutFocus:kl({series:$.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},T.value.centerX,T.value.centerY,T.value.height/3.6,T.value.height/3.6,1.99999,2,1,360,105.25,T.value.height/6)}})});function te(N){return`${g.value.style.chart.layout.dataLabels.prefix}${isNaN(N)?"-":Number(N.toFixed(g.value.style.chart.layout.dataLabels.rounding)).toLocaleString()}${g.value.style.chart.layout.dataLabels.suffix}`}const he=e.computed(()=>({max:Math.max(...oe.value.map(N=>N.subtotal)),min:0})),le=e.computed(()=>{const N=oe.value.length===1?he.value.max*2:he.value.max;return Pl(he.value.min,N,g.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function H(N){return N/le.value.max}const P=e.computed(()=>le.value.ticks.map(N=>({y:T.value.absoluteHeight-b.value.bottom-T.value.height*H(N),value:N})));function X(N,j){return isNaN(N.value/Af(j,"value"))?0:(N.value/Af(j,"value")*100).toFixed(0)+"%"}function q(){C.value||(c.value=null,y.value=null)}function m(N){C.value||(c.value=N.index,y.value=N)}const _=e.ref(null);function x(N,j){N.subtotal&&(y.value=null,c.value=null,C.value=!0,A.value=N,[null,void 0].includes(j)||(_.value=j))}function V(){A.value=null,C.value=!1,_.value=null}const J=e.computed(()=>Y.value.map((N,j)=>({name:N.name,value:N.values.slice(s.value.start,s.value.end).reduce((O,ce)=>O+ce,0),shape:"circle",uid:N.uid,color:N.color})).sort((N,j)=>j.value-N.value).map(N=>({...N,opacity:f.value.includes(N.uid)?.5:1,segregate:()=>ge(N.uid),isSegregated:f.value.includes(N.uid)}))),ke=e.computed(()=>oe.value.map(N=>N.subtotal).reduce((N,j)=>N+j,0)),ae=e.computed(()=>({cy:"donut-div-legend",backgroundColor:g.value.style.chart.legend.backgroundColor,color:g.value.style.chart.legend.color,fontSize:g.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:g.value.style.chart.legend.bold?"bold":""}));function ge(N){if(f.value.includes(N))f.value=f.value.filter(j=>j!==N),a("selectLegend",null);else{if(f.value.length===Y.value.length-1)return;f.value.push(N),a("selectLegend",Y.value.find(j=>j.uid===N))}A.value&&x(oe.value.find((j,O)=>O===_.value))}const Z=e.computed(()=>{const N=[""].concat(Y.value.filter(re=>!f.value.includes(re.uid)).map(re=>({name:re.name,color:re.color}))).concat(["Σ"]);let j=[];for(let re=0;re<S.value;re+=1){const ie=Y.value.filter(G=>!f.value.includes(G.uid)).map(G=>G.values[re]??0).reduce((G,ne)=>G+ne,0);j.push([g.value.style.chart.layout.grid.xAxis.dataLabels.values[re]??"-"].concat(Y.value.filter(G=>!f.value.includes(G.uid)).map(G=>({value:G.values[re]??0,percentage:G.values[re]?G.values[re]/ie*100:0}))).concat([`${g.value.style.chart.layout.dataLabels.prefix}${Number(ie.toFixed(g.value.table.td.roundingValue))}${g.value.style.chart.layout.dataLabels.suffix}`]))}const O={th:{backgroundColor:g.value.table.th.backgroundColor,color:g.value.table.th.color,outline:g.value.table.th.outline},td:{backgroundColor:g.value.table.td.backgroundColor,color:g.value.table.td.color,outline:g.value.table.td.outline},breakpoint:g.value.table.responsiveBreakpoint},ce=[g.value.table.columnNames.period].concat(Y.value.filter(re=>!f.value.includes(re.uid)).map(re=>re.name)).concat(g.value.table.columnNames.total);return{head:N,body:j,config:O,colNames:ce}});function ee(){return Y.value}function z(){e.nextTick(()=>{const N=[[g.value.style.chart.title.text],[g.value.style.chart.title.subtitle.text],[""]],j=[...Z.value.head.map(ie=>ie.name??ie)],O=[...Z.value.body.map(ie=>ie.map(G=>G.value??G))],ce=N.concat([j]).concat(O),re=eo(ce);Zt({csvContent:re,title:g.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const D=e.ref(!1);function fe(N){D.value=N,v.value+=1}function M(){E.value.showTable=!E.value.showTable}return o({getData:ee,generatePdf:I,generateCsv:z,generateImage:Q,toggleTable:M}),(N,j)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:B,class:e.normalizeClass(`vue-ui-donut-evolution ${D.value?"vue-data-ui-wrapper-fullscreen":""} ${g.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${g.value.style.fontFamily};width:100%; text-align:center;${g.value.style.chart.title.text?"":"padding-top:36px"};background:${g.value.style.chart.backgroundColor}`),id:h.value},[g.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${g.value.style.chart.backgroundColor};padding-bottom:24px`),onMouseleave:q},[e.createVNode(Xt,{config:{title:{cy:"donut-evolution-div-title",...g.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...g.value.style.chart.title.subtitle}}},null,8,["config"])],36)):e.createCommentVNode("",!0),g.value.userOptions.show&&l.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${v.value}`,backgroundColor:g.value.style.chart.backgroundColor,color:g.value.style.chart.color,isPrinting:e.unref(w),isImaging:e.unref(U),uid:h.value,hasPdf:g.value.userOptions.buttons.pdf,hasImg:g.value.userOptions.buttons.img,hasXls:g.value.userOptions.buttons.csv,hasTable:g.value.userOptions.buttons.table,hasFullscreen:g.value.userOptions.buttons.fullscreen,isFullscreen:D.value,titles:{...g.value.userOptions.buttonTitles},chartElement:B.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(I),onGenerateCsv:z,onGenerateImage:e.unref(Q),onToggleTable:M},e.createSlots({_:2},[N.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,N.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,N.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,N.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,N.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:O,isFullscreen:ce})=>[e.renderSlot(N.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:O,isFullscreen:ce})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":D.value,"vue-data-ui-fulscreen--off":!D.value}),viewBox:`0 0 ${T.value.absoluteWidth} ${T.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${g.value.style.chart.backgroundColor};color:${g.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${h.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${g.value.style.chart.backgroundColor}${e.unref(Xe)[g.value.style.chart.layout.highlighter.opacity]}`},null,8,pz),e.createElementVNode("stop",{offset:"100%","stop-color":`${g.value.style.chart.layout.highlighter.color}${e.unref(Xe)[g.value.style.chart.layout.highlighter.opacity]}`},null,8,yz)],8,gz),e.createElementVNode("radialGradient",{id:`focus_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(At)(g.value.style.chart.backgroundColor)}00`},null,8,bz),e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF"+e.unref(Xe)[30]},null,8,kz),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(At)(g.value.style.chart.backgroundColor)}00`},null,8,Cz)],8,mz)]),g.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",wz,[e.createElementVNode("line",{x1:b.value.left,x2:b.value.left,y1:b.value.top,y2:b.value.top+T.value.height,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Bz),e.createElementVNode("line",{x1:b.value.left,x2:T.value.absoluteWidth-b.value.right,y1:T.value.absoluteHeight-b.value.bottom,y2:T.value.absoluteHeight-b.value.bottom,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xz),g.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Fz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("line",{x1:b.value.left+(ce+1)*W.value,x2:b.value.left+(ce+1)*W.value,y1:b.value.top,y2:T.value.absoluteHeight-b.value.bottom,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Nz))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),g.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||C.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[O.value>=le.value.min&&O.value<=le.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:b.value.left,x2:b.value.left-5,y1:O.y,y2:O.y,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth},null,8,_z)):e.createCommentVNode("",!0),O.value>=le.value.min&&O.value<=le.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:b.value.left-8+g.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:O.y+g.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":g.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:g.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":g.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(g.value.style.chart.layout.dataLabels.prefix)+" "+e.toDisplayString(e.unref(Pv)(O.value)?O.value.toFixed(g.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(g.value.style.chart.layout.dataLabels.suffix),9,Sz)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),g.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":C.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[g.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(ce===0||ce===S.value-1)||!g.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":g.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":g.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:g.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${b.value.left+W.value*ce+W.value/2}, ${g.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+T.value.absoluteHeight-b.value.bottom+g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${g.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(ce)+Number(s.value.start)]??""),9,Lz)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[g.value.style.chart.layout.line.show&&ce<oe.value.length-1&&![O.subtotal,oe.value[ce+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||C.value}),x1:O.x,y1:O.y,x2:oe.value[ce+1].x,y2:oe.value[ce+1].y,stroke:g.value.style.chart.layout.line.stroke,"stroke-width":g.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,Ez)):e.createCommentVNode("",!0),O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Iz,[O.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:O.activeRadius,fill:g.value.style.chart.backgroundColor},null,8,$z)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||C.value})},[O.subtotal?(e.openBlock(),e.createElementBlock("g",Mz,[c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",Uz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,re=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(Qr)(re,{x:re.center.endX,y:re.center.endY},12,12,{x:O.x,y:O.y},!0),stroke:re.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Vz)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(re,ie)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(ct)(re,!0,0).anchor,x:e.unref(ct)(re,!0,3).x,y:e.unref(co)(re),fill:g.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(re.name)+": "+e.toDisplayString(X(re,O.donut))+" ("+e.toDisplayString(re.value===null?"-":te(re.value))+") ",9,Qz)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:O.x,cy:O.y,r:O.hoverRadius,fill:g.value.style.chart.backgroundColor},null,8,Tz)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||C.value})},[O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Oz,[O.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:3,fill:g.value.style.chart.color},null,8,zz)):c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",Dz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(re,ie)=>(e.openBlock(),e.createElementBlock("path",{d:re.arcSlice,fill:`${re.color}`,"stroke-width":1,stroke:g.value.style.chart.backgroundColor},null,8,Pz))),256))])):(e.openBlock(),e.createElementBlock("g",Hz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donut,(re,ie)=>(e.openBlock(),e.createElementBlock("path",{d:re.arcSlice,fill:`${re.color}`,"stroke-width":.5,stroke:g.value.style.chart.backgroundColor},null,8,Rz))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||C.value})},[O.subtotal!==null&&g.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:O.x,y:c.value===O.index&&O.subtotal?O.y+g.value.style.chart.layout.dataLabels.fontSize/3:O.y-O.radius-g.value.style.chart.layout.dataLabels.fontSize+g.value.style.chart.layout.dataLabels.offsetY,"font-size":g.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:g.value.style.chart.layout.dataLabels.color},e.toDisplayString(te(O.subtotal)),9,Gz)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{x:b.value.left+ce*W.value,y:T.value.absoluteHeight-b.value.bottom-10,width:W.value,height:10,fill:c.value===O.index?`url(#hover_${h.value})`:"transparent",onClick:re=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,10,Wz))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:b.value.left+ce*W.value,y:b.value.top,width:W.value,height:T.value.height,fill:"transparent",onMouseenter:re=>m(O),onMouseleave:q,onClick:re=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,42,Kz))),256)),C.value?(e.openBlock(),e.createElementBlock("g",jz,[e.createElementVNode("rect",{rx:4,x:b.value.left,y:b.value.top,width:T.value.width,height:T.value.height,fill:g.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,Xz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:T.value.absoluteWidth-b.value.right-15,y1:b.value.top+5,x2:T.value.absoluteWidth-b.value.right-4,y2:b.value.top+15.5,"stroke-linecap":"round",stroke:g.value.style.chart.color,"stroke-width":"1.5"},null,8,qz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:T.value.absoluteWidth-b.value.right-15,y2:b.value.top+5,x2:T.value.absoluteWidth-b.value.right-4,y1:b.value.top+15.5,"stroke-linecap":"round",stroke:g.value.style.chart.color,"stroke-width":"1.5"},null,8,Yz),e.createElementVNode("circle",{"data-cy-close":"",onClick:V,onKeypress:e.withKeys(V,["enter"]),cx:T.value.absoluteWidth-b.value.right-T.value.width/40,cy:b.value.top+T.value.height/30,r:T.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,Jz),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,O=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(Qr)(O,{x:T.value.centerX,y:T.value.centerY},12,12,!1,!1,1),stroke:O.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Zz)]))),256)),e.createElementVNode("circle",{cx:b.value.left+T.value.width/2,cy:b.value.top+T.value.height/2,r:T.value.height/7,fill:g.value.style.chart.backgroundColor},null,8,eD),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("path",{d:O.arcSlice,fill:`${O.color}`,"stroke-width":1,stroke:g.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,tD))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("g",oD,[e.createElementVNode("text",{"text-anchor":e.unref(ct)(O,!0,20).anchor,x:e.unref(ct)(O,!0,10).x,y:e.unref(co)(O),fill:g.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(O.name)+": "+e.toDisplayString(X(O,A.value.donutFocus))+" ("+e.toDisplayString(O.value===null?"-":te(O.value))+") ",9,lD)]))),256)),e.createElementVNode("circle",{cx:b.value.left+T.value.width/2,cy:b.value.top+T.value.height/2,r:T.value.height/3.8,fill:`url(#focus_${h.value})`},null,8,aD),e.createElementVNode("circle",{cx:b.value.left+T.value.width/2,cy:b.value.top+T.value.height/2,r:T.value.height/7.7,fill:g.value.style.chart.backgroundColor},null,8,rD),e.createElementVNode("text",{"text-anchor":"middle",x:b.value.left+T.value.width/2,y:b.value.top+T.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:g.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(te(A.value.subtotal)),9,nD),g.value.style.chart.layout.grid.xAxis.dataLabels.values[A.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:b.value.left+6,y:b.value.top+g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:g.value.style.chart.layout.dataLabels.color},e.toDisplayString(g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(A.value.index)+Number(s.value.start)]),9,sD)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"svg",{svg:T.value},void 0,!0)],14,vz)):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"donutEvolution",style:{backgroundColor:g.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),S.value>1&&g.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Hs,{key:`slicer_${i.value}`,background:g.value.style.chart.zoom.color,borderColor:g.value.style.chart.backgroundColor,fontSize:g.value.style.chart.zoom.fontSize,useResetSlot:g.value.style.chart.zoom.useResetSlot,labelLeft:g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.start)]||"",labelRight:g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.end)-1]||"",textColor:g.value.style.chart.color,inputColor:g.value.style.chart.zoom.color,selectColor:g.value.style.chart.zoom.highlightColor,max:S.value,min:0,valueStart:s.value.start,valueEnd:s.value.end,start:s.value.start,"onUpdate:start":j[0]||(j[0]=O=>s.value.start=O),end:s.value.end,"onUpdate:end":j[1]||(j[1]=O=>s.value.end=O),onReset:u},{"reset-action":e.withCtx(({reset:O})=>[e.renderSlot(N.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:O})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0),g.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:5,legendSet:J.value,config:ae.value,onClickMarker:j[2]||(j[2]=({legend:O})=>ge(O.uid))},{item:e.withCtx(({legend:O,index:ce})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:re=>ge(O.uid),style:e.normalizeStyle(`opacity:${f.value.includes(O.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(O.name)+": "+e.toDisplayString(Number(O.value.toFixed(g.value.style.chart.legend.roundingValue)).toLocaleString())+" ",1),f.value.includes(O.uid)?(e.openBlock(),e.createElementBlock("span",AD," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",uD," ("+e.toDisplayString(isNaN(O.value/ke.value)?"-":(O.value/ke.value*100).toFixed(g.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,iD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"legend",{legend:J.value},void 0,!0),l.value?(e.openBlock(),e.createBlock(lo,{key:6,hideDetails:"",config:{open:E.value.showTable,maxHeight:1e4,body:{backgroundColor:g.value.style.chart.backgroundColor,color:g.value.style.chart.color},head:{backgroundColor:g.value.style.chart.backgroundColor,color:g.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:Z.value.colNames,head:Z.value.head,body:Z.value.body,config:Z.value.config,title:`${g.value.style.chart.title.text}${g.value.style.chart.title.subtitle.text?` : ${g.value.style.chart.title.subtitle.text}`:""}`,onClose:j[3]||(j[3]=O=>E.value.showTable=!1)},{th:e.withCtx(({th:O})=>[e.createTextVNode(e.toDisplayString(O.name??O),1)]),td:e.withCtx(({td:O})=>[O.value===null?(e.openBlock(),e.createElementBlock("span",cD,"-")):(e.openBlock(),e.createElementBlock("b",dD,e.toDisplayString(isNaN(O.value)?"":g.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(O.value)&&O.value!==null?Number(O.value.toFixed(g.value.table.td.roundingValue)).toLocaleString():O)+e.toDisplayString(isNaN(O.value)?"":g.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(O.percentage&&!isNaN(O.percentage)?`(${Number(O.percentage.toFixed(g.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,fz))}},mg=vt(hD,[["__scopeId","data-v-d8dbd0c8"]]),fD=Object.freeze(Object.defineProperty({__proto__:null,default:mg},Symbol.toStringTag,{value:"Module"})),vD=["id"],gD=["xmlns","viewBox"],pD=["id"],yD=["stop-color"],mD=["stop-color"],bD=["x1","y1","x2","y2","stroke","stroke-width"],kD=["d","stroke","stroke-width"],CD=["stroke"],wD=["fill"],BD=["stroke"],xD=["fill"],FD=["stroke"],ND=["fill"],_D=["stroke"],SD=["fill"],LD=["stroke"],ED=["fill"],ID=["d","stroke","stroke-width","fill"],$D=["x1","y1","stroke"],MD=["cx","cy","fill","stroke"],UD=["fill","stroke"],VD=["y","fill","font-weight"],QD=["y","fill"],TD=["onClick"],OD={style:{"font-weight":"bold"}},zD=["innerHTML"],DD={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_mood_radar:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)&&Ke({componentName:"VueUiMoodRadar",type:"dataset"})});const l=e.ref(it()),s=e.ref(null),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const te=Je({userConfig:a.config,defaultConfig:n});return te.theme?{...Je({userConfig:Nt.vue_ui_mood_radar[te.theme]||a.config,defaultConfig:te})}:te}),{isPrinting:c,isImaging:y,generatePdf:C,generateImage:A}=zt({elementId:l.value,fileName:f.value.style.chart.title.text||"vue-ui-mood-radar"}),B=e.ref({showTable:f.value.table.show}),v=e.computed(()=>({height:256,width:256})),i=e.computed(()=>Qo({plot:{x:128,y:v.value.height/2},radius:90,sides:5,rotation:11}));function g({centerX:te,centerY:he,apexX:le,apexY:H,proportion:P,key:X,value:q}){return{x:te+(le-te)*P,y:he+(H-he)*P,key:X,value:q}}const w=e.computed(()=>Math.max(...Object.values(a.dataset).map(te=>isNaN(te)?0:te))),U=e.computed(()=>Object.values(a.dataset).reduce((te,he)=>(isNaN(te)?0:te)+(isNaN(he)?0:he),0)),I=e.computed(()=>Object.keys(a.dataset).map((te,he)=>{const le=typeof a.dataset[te]!="number"||isNaN(a.dataset[te])?0:a.dataset[te];return{index:he,key:te,value:le,proportion:le/U.value,color:f.value.style.chart.layout.smileys.colors[te]}}).sort((te,he)=>he.key-te.key)),Q=e.computed(()=>r.value?(["1","2","3","4","5"].forEach(te=>{[null,void 0].includes(a.dataset[te])&&Ke({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:te})}),i.value.coordinates.map((te,he)=>{const le=g({centerX:v.value.width/2,centerY:v.value.height/2,apexX:te.x,apexY:te.y,proportion:I.value[he].value/w.value,key:I.value[he].key,value:I.value[he].value});return{...te,plots:le,key:I.value[he].key}})):[]),K=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:f.value.style.chart.legend.backgroundColor,color:f.value.style.chart.legend.color,fontSize:f.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:f.value.style.chart.legend.bold?"bold":""}));function E(te){te===h.value?h.value=null:h.value=te}const b=e.computed(()=>{const te=I.value.map(le=>({name:le.key,color:le.color})),he=I.value.map(le=>isNaN(le.value)?0:le.value);return{head:te,body:he}});function T(){e.nextTick(()=>{const te=b.value.head.map((H,P)=>[[H.name],[b.value.body[P]],[isNaN(b.value.body[P]/U.value)?"-":b.value.body[P]/U.value*100]]),he=[[f.value.style.chart.title.text],[f.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(te),le=eo(he);Zt({csvContent:le,title:f.value.style.chart.title.text||"vue-ui-mood-radar"})})}const Y=e.computed(()=>{const te=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Number(U.value.toFixed(f.value.table.td.roundingValue)).toLocaleString(),"100%"],he=b.value.head.map((P,X)=>[{color:P.color,name:P.name},b.value.body[X].toFixed(f.value.table.td.roundingValue),isNaN(b.value.body[X]/U.value)?"-":(b.value.body[X]/U.value*100).toFixed(f.value.table.td.roundingPercentage)+"%"]),le={th:{backgroundColor:f.value.table.th.backgroundColor,color:f.value.table.th.color,outline:f.value.table.th.outline},td:{backgroundColor:f.value.table.td.backgroundColor,color:f.value.table.td.color,outline:f.value.table.td.outline},breakpoint:f.value.table.responsiveBreakpoint},H=[f.value.table.columnNames.series,f.value.table.columnNames.value,f.value.table.columnNames.percentage];return{head:te,body:he,config:le,colNames:H}});function $(){return I.value}function S(){B.value.showTable=!B.value.showTable}const W=e.ref(!1);function oe(te){W.value=te}return o({getData:$,generatePdf:C,generateCsv:T,generateImage:A,toggleTable:S}),(te,he)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${W.value?"vue-data-ui-wrapper-fullscreen":""} ${f.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:s,id:`${l.value}`,style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};width:100%; text-align:center;${f.value.style.chart.title.text?"":"padding-top:36px"};background:${f.value.style.chart.backgroundColor}`)},[f.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${f.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"mood-radar-title",...f.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...f.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{key:1,ref_key:"details",ref:u,backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color,isPrinting:e.unref(c),isImaging:e.unref(y),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasXls:f.value.userOptions.buttons.csv,hasImg:f.value.userOptions.buttons.img,hasTable:f.value.userOptions.buttons.table,hasFullscreen:f.value.userOptions.buttons.fullscreen,titles:{...f.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:oe,onGeneratePdf:e.unref(C),onGenerateCsv:T,onGenerateImage:e.unref(A),onToggleTable:S},e.createSlots({_:2},[te.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,te.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,te.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,te.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,te.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:le,isFullscreen:H})=>[e.renderSlot(te.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:le,isFullscreen:H})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),viewBox:`0 0 ${v.value.width} ${v.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":W.value,"vue-data-ui-fulscreen--off":!W.value}),style:e.normalizeStyle(`overflow:visible;background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,yD),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(Lt)(f.value.style.chart.layout.dataPolygon.color,f.value.style.chart.layout.dataPolygon.gradient.intensity/100)}${e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]}`},null,8,mD)],8,pD)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.coordinates,le=>(e.openBlock(),e.createElementBlock("line",{x1:v.value.width/2,y1:v.value.height/2,x2:le.x,y2:le.y,stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,bD))),256)),e.createElementVNode("path",{d:i.value.path,fill:"none",stroke:f.value.style.chart.layout.outerPolygon.stroke,"stroke-width":f.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,kD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,CD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[0]||(he[0]=le=>h.value=5),onMouseleave:he[1]||(he[1]=le=>h.value=null),cx:"128",cy:"25",r:"20",fill:h.value===5?f.value.style.chart.layout.smileys.colors[5]+"33":"transparent"},null,40,wD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,BD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[2]||(he[2]=le=>h.value=4),onMouseleave:he[3]||(he[3]=le=>h.value=null),cx:"227",cy:"95.5",r:"20",fill:h.value===4?f.value.style.chart.layout.smileys.colors[4]+"33":"transparent"},null,40,xD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,FD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[4]||(he[4]=le=>h.value=3),onMouseleave:he[5]||(he[5]=le=>h.value=null),cx:"190",cy:"213.5",r:"20",fill:h.value===3?f.value.style.chart.layout.smileys.colors[3]+"33":"transparent"},null,40,ND),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,_D),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[6]||(he[6]=le=>h.value=2),onMouseleave:he[7]||(he[7]=le=>h.value=null),cx:"65",cy:"213.5",r:"20",fill:h.value===2?f.value.style.chart.layout.smileys.colors[2]+"33":"transparent"},null,40,SD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,LD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[8]||(he[8]=le=>h.value=1),onMouseleave:he[9]||(he[9]=le=>h.value=null),cx:"29",cy:"95.5",r:"20",fill:h.value===1?f.value.style.chart.layout.smileys.colors[1]+"33":"transparent"},null,40,ED),e.createElementVNode("path",{d:e.unref(Hc)(Q.value.map(le=>le.plots)),stroke:f.value.style.chart.layout.dataPolygon.stroke,"stroke-width":f.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:f.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${l.value})`:f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,ID),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value.map(le=>le.plots),(le,H)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${h.value==le.key?"1":"0"}`)},[e.createElementVNode("line",{x1:le.x,y1:le.y,x2:128,y2:128,stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,$D),e.createElementVNode("circle",{cx:le.x,cy:le.y,fill:f.value.style.chart.layout.smileys.colors[le.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,MD),e.createElementVNode("circle",{cx:128,cy:128,fill:f.value.style.chart.layout.smileys.colors[le.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,UD),e.createElementVNode("text",{x:128,y:["5",5].includes(le.key)?145:120,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":f.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(Number(le.value.toFixed(f.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()),9,VD),e.createElementVNode("text",{x:128,y:["5",5].includes(le.key)?163:102,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(Number((le.value/U.value*100).toFixed(f.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString())+"%) ",9,QD)],4))),256)),e.renderSlot(te.$slots,"svg",{svg:v.value},void 0,!0)],14,gD)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"radar",style:{backgroundColor:f.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),f.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:4,legendSet:I.value,config:K.value,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:le,index:H})=>[e.createElementVNode("div",{onClick:()=>E(le.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[le.key==1?(e.openBlock(),e.createBlock(bt,{key:0,strokeWidth:1,name:"moodSad",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==2?(e.openBlock(),e.createBlock(bt,{key:1,strokeWidth:1,name:"moodFlat",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==3?(e.openBlock(),e.createBlock(bt,{key:2,strokeWidth:1,name:"moodNeutral",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==4?(e.openBlock(),e.createBlock(bt,{key:3,strokeWidth:1,name:"smiley",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==5?(e.openBlock(),e.createBlock(bt,{key:4,strokeWidth:1,name:"moodHappy",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",OD,e.toDisplayString(le.value),1),e.createTextVNode(" ("+e.toDisplayString((isNaN(le.proportion)?0:le.proportion*100).toFixed(f.value.style.chart.legend.roundingPercentage))+"%) ",1)],8,TD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(te.$slots,"legend",{legend:I.value},void 0,!0),r.value?(e.openBlock(),e.createBlock(lo,{key:5,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color},head:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:Y.value.colNames,head:Y.value.head,body:Y.value.body,config:Y.value.config,title:`${f.value.style.chart.title.text}${f.value.style.chart.title.subtitle.text?` : ${f.value.style.chart.title.subtitle.text}`:""}`,onClose:he[10]||(he[10]=le=>B.value.showTable=!1)},{th:e.withCtx(({th:le})=>[e.createElementVNode("div",{innerHTML:le,style:{display:"flex","align-items":"center"}},null,8,zD)]),td:e.withCtx(({td:le})=>[e.createTextVNode(e.toDisplayString(le.name||le),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,vD))}},bg=vt(DD,[["__scopeId","data-v-81cc3908"]]),PD=Object.freeze(Object.defineProperty({__proto__:null,default:bg},Symbol.toStringTag,{value:"Module"})),Ou=t=>(e.pushScopeId("data-v-30081550"),t=t(),e.popScopeId(),t),HD=["id"],RD=["xmlns","viewBox"],GD=["id"],WD=["stop-color"],KD=["stop-color"],jD=["id"],XD=["stop-color"],qD=["stop-color"],YD=["id"],JD=["stop-color"],ZD=["stop-color"],eP=["id"],tP=["stop-color"],oP=["stop-color"],lP=["stop-color"],aP={key:0},rP=["id"],nP=["stop-color"],sP=["stop-color"],iP=["id"],uP=["stop-color"],AP=["stop-color"],cP=["id"],dP=["stop-color"],hP=["stop-color"],fP=["id"],vP=Ou(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),gP=Ou(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),pP=[vP,gP],yP=["x","y","font-size","font-weight","fill"],mP=["x","y"],bP=["d","stroke"],kP=["d","stroke"],CP={key:3},wP={key:0},BP=["stroke-dasharray","d","stroke","stroke-width"],xP=["stroke-dasharray","d","stroke","stroke-width"],FP=["stroke-dasharray","d","stroke","stroke-width"],NP=["stroke-dasharray","d","stroke","stroke-width"],_P={key:1},SP=["d","stroke","stroke-width","fill"],LP=["d","stroke","stroke-width","fill"],EP=["d","stroke","stroke-width","fill"],IP={key:2},$P=["d","fill","onMouseenter","onClick"],MP=["d","fill","onMouseenter","onClick"],UP=["d","fill","onMouseenter","onClick"],VP=["d","onMouseenter","onClick"],QP=["d"],TP=["d","stroke"],OP=["onClick"],zP=["stroke","d"],DP=["cx","cy","fill","stroke"],PP=["x","y","width","height"],HP={key:1},RP=["d","stroke"],GP=["d","fill","stroke"],WP=["id"],KP=["stop-color"],jP=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),XP=["stop-color"],qP=["cx","cy","fill"],YP=["cx","cy","fill"],JP={key:0},ZP=["text-anchor","x","y","fill","font-size"],eH=["text-anchor","x","y","fill","font-size"],tH={key:2},oH=["d","fill","stroke"],lH={key:4},aH={key:0},rH=["stroke-dasharray","d","stroke","stroke-width"],nH=["stroke-dasharray","d","stroke","stroke-width"],sH=["stroke-dasharray","d","stroke","stroke-width"],iH=["stroke-dasharray","d","stroke","stroke-width"],uH=["d","stroke","stroke-width","fill"],AH=["d","stroke","stroke-width","fill"],cH={key:1},dH=["onClick"],hH=["id"],fH=["stop-color"],vH=["stop-color"],gH=["id"],pH=["stop-color"],yH=["stop-color"],mH=["stop-color"],bH=["stop-color"],kH=["stop-color"],CH=["onMouseenter","onClick","d","fill"],wH=["onMouseenter","onClick","d"],BH=["onMouseenter","onClick","d","fill"],xH=["onClick"],FH=["stroke","d"],NH=["cx","cy","fill","stroke"],_H=["x","y","width","height"],SH={key:1},LH=["d","stroke"],EH=["d","fill","stroke"],IH=["id"],$H=["stop-color"],MH=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),UH=["stop-color"],VH=["cx","cy","fill"],QH=["cx","cy","fill"],TH={key:0},OH=["text-anchor","x","y","fill","font-size"],zH=["text-anchor","x","y","fill","font-size"],DH={key:2},PH=["d","fill","stroke"],HH=["innerHTML"],RH={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_3d_bar:r}=ft(),l=e.computed(()=>!!n.dataset&&Object.keys(n.dataset).length),s=e.ref(it()),u=e.ref(null),h=e.ref(null),f=e.ref(!1),c=e.computed(()=>{const X=Je({userConfig:n.config,defaultConfig:r});return X.theme?{...Je({userConfig:Nt.vue_ui_3d_bar[X.theme]||n.config,defaultConfig:X}),customPalette:Pt[X.theme]||Me}:X}),{isPrinting:y,isImaging:C,generatePdf:A,generateImage:B}=zt({elementId:`3d_bar_${s.value}`,fileName:c.value.style.chart.title.text||"vue-ui-3d-bar"}),v=e.computed(()=>so(c.value.customPalette)),i=e.ref({showTable:c.value.table.show}),g=e.computed(()=>n.dataset.series&&n.dataset.series.length),w=e.computed(()=>({height:c.value.style.chart.box.dimensions.height,width:c.value.style.chart.box.dimensions.width,absoluteWidth:c.value.style.chart.box.dimensions.width*(g.value?2:1),top:c.value.style.chart.box.dimensions.top,bottom:c.value.style.chart.box.dimensions.bottom,left:c.value.style.chart.box.dimensions.left,right:c.value.style.chart.box.dimensions.right,perspective:c.value.style.chart.box.dimensions.perspective})),U=e.computed(()=>{if(g.value){const X=n.dataset.series.map(x=>x.value||0).reduce((x,V)=>x+V,0),q=n.dataset.series.map((x,V)=>({...x,id:it(),proportion:(x.value||0)/X,color:At(x.color)||v.value[V]||Me[V]||Me[V%Me.length],breakdown:x.breakdown?x.breakdown.sort((J,ke)=>ke.value-J.value):null})).sort((x,V)=>V.value-x.value),m=[];let _=0;for(let x=0;x<q.length;x+=1)m.push({...q[x],fill:K(_,q[x].proportion,q[x].breakdown,q[x].color)}),_+=q[x].proportion;return m}return null}),I=e.computed(()=>({right:`M${w.value.width/2},${w.value.top} ${w.value.width-w.value.right}, ${w.value.top+w.value.perspective} ${w.value.width-w.value.right},${w.value.height-w.value.bottom-w.value.perspective} ${w.value.width/2},${w.value.height-w.value.bottom}`,left:`M${w.value.width/2},${w.value.top} ${w.value.left},${w.value.top+w.value.perspective} ${w.value.left},${w.value.height-w.value.bottom-w.value.perspective} ${w.value.width/2},${w.value.height-w.value.bottom}`,side:`M${w.value.width/2},${w.value.height-w.value.bottom} ${w.value.width/2},${w.value.top+w.value.perspective*2}`,topSides:`M${w.value.left},${w.value.top+w.value.perspective} ${w.value.width/2},${w.value.top+w.value.perspective*2} ${w.value.width-w.value.right},${w.value.top+w.value.perspective}`,tubeTop:`M${w.value.left},${w.value.top+w.value.perspective} C ${w.value.left},${w.value.top-w.value.perspective/3} ${w.value.width-w.value.right},${w.value.top-w.value.perspective/3} ${w.value.width-w.value.right},${w.value.top+w.value.perspective} C ${w.value.width-w.value.right},${w.value.top+w.value.perspective*2.3} ${w.value.left},${w.value.top+w.value.perspective*2.3} ${w.value.left},${w.value.top+w.value.perspective}`,tubeLeft:`M${w.value.left},${w.value.top+w.value.perspective} ${w.value.left},${w.value.height-w.value.bottom-w.value.perspective}`,tubeRight:`M${w.value.width-w.value.right},${w.value.top+w.value.perspective} ${w.value.width-w.value.right},${w.value.height-w.value.bottom-w.value.perspective}`,tubeBottom:`M${w.value.width-w.value.right},${w.value.height-w.value.bottom-w.value.perspective} C ${w.value.width-w.value.right},${w.value.height} ${w.value.left},${w.value.height} ${w.value.left},${w.value.height-w.value.bottom-w.value.perspective}`})),Q=e.ref(c.value.style.chart.animation.use?0:n.dataset.percentage);e.onMounted(()=>{xt(n.dataset)?Ke({componentName:"VueUi3dBar",type:"dataset"}):n.dataset.series?n.dataset.series.forEach((x,V)=>{Wt({datasetObject:x,requiredAttributes:["name","value"]}).forEach(J=>{Ke({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:J,index:V})}),x.breakdown&&x.breakdown.forEach((J,ke)=>{Wt({datasetObject:J,requiredAttributes:["name","value"]}).forEach(ae=>{Ke({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:ae,index:`${V} - ${ke}`})})})}):Wt({datasetObject:n.dataset,requiredAttributes:["percentage"]}).forEach(x=>{Ke({componentName:"VueUi3dBar",type:"datasetAttribute",property:x})});let X=0,q=c.value.style.chart.animation.speed,m=.005*c.value.style.chart.animation.acceleration;function _(){Q.value+=q+X,X+=m,Q.value<n.dataset.percentage?requestAnimationFrame(_):Q.value=n.dataset.percentage}c.value.style.chart.animation.use&&(Q.value=0,_())});function K(X,q,m,_){const x=w.value.height-w.value.bottom-w.value.top-w.value.perspective*2,{width:V,height:J,bottom:ke,right:ae,left:ge,perspective:Z}=w.value,ee=ke+x*X,z=J-ee-Z-x*q/2,D=z>w.value.height/2?"top":"bottom",fe=64,M=!!m;let N=null,j=null;return M&&(m=m.map((O,ce)=>({...O,value:O.value||0,color:Ll(_,ce/m.length)})),N=kl({series:m},V+w.value.absoluteWidth/4-14,D==="top"?z-fe:z+fe,28,28,1.99999,2,1,360,105.25,14),j=kl({series:m},V-ae+20,J-ee-Z-x*q/2,6,6,1.99999,2,1,360,105.25,6)),{donut:N,miniDonut:j,sidePointer:{x:V-ae,y:J-ee-Z-x*q/2,topY:J-ee-Z-x*q,height:x*q},apexBottom:{y:J-ee,x:V/2},apexTop:{y:J-ee-x*q,x:V/2},right:`M${V/2},${J-ee} ${V/2},${J-ee-x*q} ${V-ae},${J-ee-Z-x*q} ${V-ae},${J-ee-Z}Z`,left:`M${V/2},${J-ee} ${V/2},${J-ee-x*q} ${ge}, ${J-ee-Z-x*q} ${ge},${J-ee-Z}Z`,liningTop:`M${ge},${J-ee-Z-x*q} ${V/2},${J-ee-x*q} ${V-ae},${J-ee-Z-x*q}`,liningTopShade:`M${ge},${J-ee-Z-x*q-.5} ${V/2},${J-ee-x*q-.5} ${V-ae},${J-ee-Z-x*q-.5}`,top:`M${V/2},${J-ee-x*q} ${ge},${J-ee-Z-x*q} ${V/2},${J-ee-Z*2-x*q} ${V-ae},${J-ee-Z-x*q} Z`,tubeTop:`M${ge},${J-ee-x*q-Z} C ${ge},${J-ee-x*q-Z*2.5} ${V-ae},${J-ee-x*q-Z*2.5} ${V-ae},${J-ee-x*q-Z} C ${V-ae},${J-ee-x*q+Z/2} ${ge},${J-ee-x*q+Z/2} ${ge},${J-ee-x*q-Z}`,bottomTubeTop:`M ${V-ae-.5},${J-ee-Z} C ${V-ae-.5},${J-ee+Z/2} ${ge},${J-ee+Z/2} ${ge+.5},${J-ee-Z}`,tubeBody:`M
704
+ position:relative`),onMouseenter:U[0]||(U[0]=I=>s.value=0),onMouseleave:U[1]||(U[1]=I=>s.value=void 0),onClick:U[2]||(U[2]=I=>B(1)),onKeyup:U[3]||(U[3]=e.withKeys(I=>B(1),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===0?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"1",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[1]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",MV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[0],.05)},null,8,UV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[0]},null,8,VV)])]),QV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:g(0)},null,8,TV)],8,$V)):(e.openBlock(),e.createElementBlock("svg",{key:2,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},DV,8,OV)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",HV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[0],.05)},null,8,RV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[0]},null,8,GV)])]),WV,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley0)":u.value.style.colors.activeReadonly[0]},null,8,KV)],8,PV)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(0)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},qV,8,jV)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===2}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[4]||(U[4]=I=>s.value=1),onMouseleave:U[5]||(U[5]=I=>s.value=void 0),onClick:U[6]||(U[6]=I=>B(2)),onKeyup:U[7]||(U[7]=e.withKeys(I=>B(2),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===1?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"2",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[2]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",JV,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.active[1],.05)},null,8,ZV),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.active[1]},null,8,eQ)])]),tQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:g(1)},null,8,oQ)],8,YV)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},rQ,8,lQ)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",sQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[1],.05)},null,8,iQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[1]},null,8,uQ)])]),AQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley1)":u.value.style.colors.activeReadonly[1]},null,8,cQ)],8,nQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(1)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},fQ,8,dQ)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===3}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[8]||(U[8]=I=>s.value=2),onMouseleave:U[9]||(U[9]=I=>s.value=void 0),onClick:U[10]||(U[10]=I=>B(3)),onKeyup:U[11]||(U[11]=e.withKeys(I=>B(3),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===2?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"3",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[3]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",gQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,pQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,yQ)])]),mQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:g(2)},null,8,bQ)],8,vQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},FQ,8,kQ)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[_Q,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",SQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[2],.05)},null,8,LQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[2]},null,8,EQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley2)":u.value.style.colors.activeReadonly[2]},null,8,IQ)],8,NQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(2)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},TQ,8,$Q)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===4}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[12]||(U[12]=I=>s.value=3),onMouseleave:U[13]||(U[13]=I=>s.value=void 0),onClick:U[14]||(U[14]=I=>B(4)),onKeyup:U[15]||(U[15]=e.withKeys(I=>B(4),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===3?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"4",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[4]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",zQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,DQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,PQ)])]),HQ,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:g(3)},null,8,RQ)],8,OQ)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},KQ,8,GQ)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[XQ,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",qQ,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[3],.95)},null,8,YQ),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[3]},null,8,JQ)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley3)":u.value.style.colors.activeReadonly[3]},null,8,ZQ)],8,jQ)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(3)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},oT,8,eT)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!u.value.readonly&&c.value===5}),style:e.normalizeStyle(`cursor:${u.value.readonly?"default":"pointer"};height:${u.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:U[16]||(U[16]=I=>s.value=4),onMouseleave:U[17]||(U[17]=I=>s.value=void 0),onClick:U[18]||(U[18]=I=>B(5)),onKeyup:U[19]||(U[19]=e.withKeys(I=>B(5),["enter"]))},[u.value.style.tooltip.show&&f.value&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${u.value.style.tooltip.borderColor};position:absolute;top:${-48+u.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${u.value.style.tooltip.backgroundColor};display:${s.value===4?"block":"none"};padding:2px 12px;border-radius:${u.value.style.tooltip.borderRadius}px;box-shadow:${u.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${u.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${u.value.style.tooltip.fontSize}px`)},"5",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${u.value.style.tooltip.bold?"bold":"normal"};font-size:${u.value.style.tooltip.fontSize}px`)},e.toDisplayString(n.dataset.rating[5]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${u.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),u.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",aT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,rT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,nT)])]),sT,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:g(4)},null,8,iT)],8,lT)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:g(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},cT,8,uT)),u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[hT,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",fT,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(Lt)(u.value.style.colors.activeReadonly[4],.9)},null,8,vT),e.createElementVNode("stop",{offset:"100%","stop-color":u.value.style.colors.activeReadonly[4]},null,8,gT)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u.value.style.icons.useGradient?"url(#vueUiSmiley4)":u.value.style.colors.activeReadonly[4]},null,8,pT)],8,dT)):e.createCommentVNode("",!0),!u.value.style.icons.filled&&y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(We),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${A(4)} 24`,"stroke-width":"1.5",stroke:u.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},bT,8,yT)):e.createCommentVNode("",!0)],38),u.value.style.rating.show&&u.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};padding-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),u.value.style.rating.show&&u.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${u.value.style.rating.offsetY}px;font-size:${u.value.style.rating.fontSize}px;font-weight:${u.value.style.rating.bold?"bold":"normal"};margin-left:${u.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(c.value)?"":c.value.toFixed(u.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},cg=vt(kT,[["__scopeId","data-v-3e41118a"]]),CT=Object.freeze(Object.defineProperty({__proto__:null,default:cg},Symbol.toStringTag,{value:"Module"})),wT=["id"],BT=["xmlns","viewBox"],xT=["cx","cy","r","stroke","stroke-width"],FT={key:0},NT=["stroke","d","stroke-width"],_T={key:1},ST=["stroke","x1","x2","y1","y2"],LT=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ET=["cx","cy","fill","onClick","r"],IT={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(ae=>({"69fb0529":Y.value,"3158da88":T.value,"2b571f2c":$.value}));const{vue_ui_relation_circle:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(0),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const ae=Je({userConfig:a.config,defaultConfig:n});return ae.theme?{...Je({userConfig:Nt.vue_ui_relation_circle[ae.theme]||a.config,defaultConfig:ae}),customPalette:Pt[ae.theme]||Me}:ae}),{isPrinting:c,isImaging:y,generatePdf:C,generateImage:A}=zt({elementId:`relation_circle_${l.value}`,fileName:f.value.style.title.text||"vue-ui-relation-circle"}),B=e.computed(()=>so(f.value.customPalette)),v=e.ref([]),i=e.ref([]),g=e.ref({}),w=e.ref([]),U=e.ref(0),I=e.computed(()=>a.dataset.slice(0,f.value.style.limit)),Q=e.ref(f.value.style.size),K=e.ref({height:f.value.style.size,width:f.value.style.size}),E=e.computed({get(){return Q.value*f.value.style.circle.radiusProportion},set(ae){return ae}}),b=e.computed(()=>f.value.style.links.curved),T=e.computed(()=>`${f.value.style.animation.speedMs}ms`),Y=e.computed(()=>E.value*2),$=e.computed(()=>E.value*4),S=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)?Ke({componentName:"VueUiRelationCircle",type:"dataset"}):a.dataset.forEach((ge,Z)=>{Wt({datasetObject:ge,requiredAttributes:["id","label","relations","weights"]}).forEach(ee=>{Ke({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:ee,index:Z})})}),f.value.responsive){const ge=Bo(()=>{const{width:Z,height:ee}=xo({chart:u.value,title:f.value.style.title.text?h.value:null});Q.value=Math.min(Z,ee),K.value.width=Z,K.value.height=ee,E.value=Q.value*f.value.style.circle.radiusProportion,v.value=[],i.value=[],oe(),te()});S.value=new ResizeObserver(ge),S.value.observe(u.value.parentNode)}else oe(),te();document.getElementById(`relation_circle_${l.value}`).addEventListener("click",W)}),e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${l.value}`).removeEventListener("click",W),S.value&&S.value.disconnect()});function W(ae){const ge=ae.target;ge&&Array.from(ge.classList).includes("vue-ui-user-options")||ge&&Array.from(ge.classList).includes("vue-ui-user-options-summary")||ge&&Array.from(ge.classList).includes("vue-data-ui-button")||ge&&Array.from(ge.classList).includes("vue-ui-relation-circle-legend")||(g.value={},w.value=[])}function oe(){const ae=6.28319/I.value.length,ge=360/I.value.length;let Z=0,ee=0;I.value.forEach((z,D)=>{const fe=E.value*Math.cos(Z)+K.value.width/2,M=E.value*Math.sin(Z)+K.value.height/2+f.value.style.circle.offsetY;v.value.push({x:fe,y:M,...z,color:z.color?z.color:B.value[D]?B.value[D]:Me[D],regAngle:ee}),Z+=ae,ee+=ge})}function te(){v.value.forEach(ae=>{v.value.filter(Z=>Z.relations.includes(ae.id)).forEach((Z,ee)=>{i.value.push({weight:ae.weights&&ae.weights[ee]?ae.weights[ee]:1,relationId:`${ae.id}_${Z.id}`,x1:ae.x,y1:ae.y,x2:Z.x,y2:Z.y,colorSource:ae.color,colorTarget:Z.color,...ae})})})}const he=e.computed(()=>Math.max(...i.value.map(ae=>ae.weight)));function le(ae){return Object.hasOwn(g.value,"x")?w.value.includes(ae.id)?"opacity:1":"opacity:0.1":"opacity:1"}function H(ae){return Object.hasOwn(g.value,"x")?ae.colorTarget:ae.colorSource}function P(ae){return Object.hasOwn(g.value,"x")?w.value.includes(ae.id)&&ae.relationId===`${ae.id}_${g.value.id}`||ae.relationId===`${g.value.id}_${ae.id}`?`opacity:1;stroke-width:${V(ae)}`:"opacity: 0":"opacity: 1"}function X(ae){return ae.regAngle>90&&ae.regAngle<270?"end":"start"}function q(ae){return ae.regAngle>90&&ae.regAngle<270?ae.x-5:ae.x+5}function m(ae){return Object.hasOwn(g.value,"x")?g.value.id===ae.id||w.value.includes(ae.id)?"opacity:1":"opacity:0.2":"opacity:1"}function _(ae){return ae.regAngle>90&&ae.regAngle<270?`rotate(${ae.regAngle+180},${ae.x},${ae.y})`:`rotate(${ae.regAngle},${ae.x},${ae.y})`}function x(ae){U.value=360-ae.regAngle,g.value.id&&ae.id===g.value.id?(g.value={},w.value=[]):(g.value=ae,w.value=[...ae.relations])}function V(ae){return ae.weight/he.value*f.value.style.links.maxWidth}const J=e.ref(!1);function ke(ae){J.value=ae,s.value+=1}return o({generatePdf:C,generateImage:A}),(ae,ge)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:u,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor};text-align:center;${f.value.responsive?"height: 100%":""}`),id:`relation_circle_${l.value}`},[f.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:h,style:e.normalizeStyle(`width:100%;background:${f.value.style.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"relation-div-title",...f.value.style.title},subtitle:{cy:"relation-div-subtitle",...f.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${s.value}`,backgroundColor:f.value.style.backgroundColor,color:f.value.style.color,isPrinting:e.unref(c),isImaging:e.unref(y),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasImg:f.value.userOptions.buttons.img,hasFullscreen:f.value.userOptions.buttons.img,hasXls:!1,isFullscreen:J.value,titles:{...f.value.userOptions.buttonTitles},chartElement:u.value,onToggleFullscreen:ke,onGeneratePdf:e.unref(C),onGenerateImage:e.unref(A)},e.createSlots({_:2},[ae.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(ae.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,ae.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(ae.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,ae.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:Z,isFullscreen:ee})=>[e.renderSlot(ae.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:Z,isFullscreen:ee})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":J.value,"vue-data-ui-fulscreen--off":!J.value},"relation-circle"]),viewBox:`0 0 ${K.value.width<=0?10:K.value.width} ${K.value.height<=0?10:K.value.height}`,width:"100%",style:e.normalizeStyle(`user-select:none; background:${f.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:(K.value.width<=0?1e-4:K.value.width)/2,cy:(K.value.height<=0?1e-4:K.value.height)/2+f.value.style.circle.offsetY,r:E.value<=0?1e-4:E.value,stroke:f.value.style.circle.stroke,"stroke-width":f.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,xT),b.value?(e.openBlock(),e.createElementBlock("g",FT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${ee}`,style:e.normalizeStyle(P(Z)),stroke:H(Z),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":g.value.hasOwnProperty("id")&&w.value.includes(Z.id)}]),d:`M${Z.x1},${Z.y1} C${Z.x1},${Z.y1} ${K.value.width/2},${K.value.height/2+f.value.style.circle.offsetY} ${Z.x2},${Z.y2}`,fill:"none","stroke-width":V(Z),"stroke-linecap":"round"},null,14,NT))),128))])):(e.openBlock(),e.createElementBlock("g",_T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${ee}`,stroke:H(Z),style:e.normalizeStyle(P(Z)),x1:Z.x1,x2:Z.x2,y1:Z.y1,y2:Z.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":g.value.hasOwnProperty("id")&&w.value.includes(Z.id)}),"stroke-linecap":"round"},null,14,ST))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${ee}`,"text-anchor":X(Z),transform:_(Z),x:q(Z),y:Z.y+5,onClick:z=>x(Z),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":g.value.id===Z.id?"900":"400",style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};${m(Z)}`),"font-size":f.value.style.labels.fontSize,fill:f.value.style.labels.color},e.toDisplayString(Z.label),13,LT))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(Z,ee)=>(e.openBlock(),e.createElementBlock("circle",{cx:Z.x,cy:Z.y,key:`plot_${ee}`,style:e.normalizeStyle(le(Z)),class:"vue-ui-relation-circle-plot",fill:f.value.style.plot.color,onClick:z=>x(Z),r:f.value.style.plot.radius},null,12,ET))),128)),e.renderSlot(ae.$slots,"svg",{svg:K.value},void 0,!0)],14,BT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"relationCircle",style:{backgroundColor:f.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,wT))}},dg=vt(IT,[["__scopeId","data-v-44982e30"]]),$T=Object.freeze(Object.defineProperty({__proto__:null,default:dg},Symbol.toStringTag,{value:"Module"})),MT=["id"],UT={key:0,style:"width:100%"},VT=["xmlns","viewBox"],QT={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},TT=["fill"],OT=["id"],zT=["stop-color"],DT=["stop-color"],PT=["stop-color"],HT={"clip-path":"url(#vueUiPill)"},RT=["x","y","height","width"],GT=["x","y","height","width","fill"],WT=["x1","x2","y1","y2","stroke-width","stroke"],KT=["x1","x2","y1","y2","stroke-width","stroke"],jT=["x1","x2","y1","y2","stroke-width","stroke"],XT=["x1","x2","y1","y2","stroke-width","stroke"],qT=["x1","x2","y1","y2","stroke-width","stroke"],YT=["x1","x2","y1","y2","stroke-width","stroke"],JT=["x1","x2","y1","y2","stroke-width","stroke"],ZT=["x1","x2","y1","y2","stroke-width","stroke"],eO=["x","y","height","width"],tO=["y","x","fill","font-size","font-weight"],oO={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t;e.useCssVars(te=>({efcaaea8:Y.value,"67dbf562":T.value,bd690a62:b.value}));const{vue_ui_thermometer:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)?Ke({componentName:"VueUiThermometer",type:"dataset"}):Wt({datasetObject:a.dataset,requiredAttributes:["value","from","to"]}).forEach(te=>{Ke({componentName:"VueUiThermometer",type:"datasetAttribute",property:te})})});const l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const te=Je({userConfig:a.config,defaultConfig:n});return te.theme?{...Je({userConfig:Nt.vue_ui_thermometer[te.theme]||a.config,defaultConfig:te}),customPalette:Pt[te.theme]||Me}:te}),{isPrinting:f,isImaging:c,generatePdf:y,generateImage:C}=zt({elementId:`thermometer__${l.value}`,fileName:h.value.style.title.text||"vue-ui-thermometer"}),A=e.computed(()=>so(h.value.customPalette)),B=e.computed(()=>h.value.style.chart.thermometer.width),v=e.computed(()=>a.dataset.steps||10),i=e.ref({top:h.value.style.chart.padding.top,left:h.value.style.chart.padding.left,right:h.value.style.chart.padding.right,bottom:h.value.style.chart.padding.bottom});function g(te,he,le){const H=[],P=w(te),X=w(he);for(let q=0;q<le;q++){const m=U(P.red,X.red,q,le),_=U(P.green,X.green,q,le),x=U(P.blue,X.blue,q,le),V=`#${I(m)}${I(_)}${I(x)}`;H.push(V)}return H}function w(te){const he=te.slice(1);return{red:parseInt(he.slice(0,2),16),green:parseInt(he.slice(2,4),16),blue:parseInt(he.slice(4,6),16)}}function U(te,he,le,H){return Math.round(te+(he-te)*le/H)}function I(te){return te.toString(16).padStart(2,"0")}const Q=e.computed(()=>{const te=B.value+i.value.left+i.value.right,he=h.value.style.chart.height;return{width:te,left:i.value.left,right:te-i.value.right,top:i.value.top,bottom:he-i.value.bottom,height:he}}),K=e.computed(()=>Q.value),E=e.computed(()=>{const te=a.dataset.from<0?Math.abs(a.dataset.from):a.dataset.from,he=a.dataset.to<0?Math.abs(a.dataset.to):a.dataset.to;let le=0;return a.dataset.to>0?le=te+he:te>he?le=te-he:le=he-te,(1-(Math.abs(a.dataset.from)+a.dataset.value)/le)*(Q.value.height-i.value.top-i.value.bottom)}),b=e.computed(()=>`${E.value}px`),T=e.computed(()=>`${Q.value.height-h.value.style.chart.padding.bottom-i.value.top}px`),Y=e.computed(()=>`${h.value.style.chart.animation.speedMs}ms`),$=e.computed(()=>{if(a.dataset.colors){if(!a.dataset.colors.from)return g(A.value[0]||Me[0],At(a.dataset.colors.to),v.value||10);if(!a.dataset.colors.to)return g(At(a.dataset.colors.from),A.value[1]||Me[1],v.value||10)}else return g(A.value[1]||Me[1],A.value[0]||Me[0],v.value||10);return g(At(a.dataset.colors.from),At(a.dataset.colors.to),v.value||10)}),S=e.computed(()=>{const te=[];let he=0;const le=Q.value.height-i.value.top-i.value.bottom;for(let H=0;H<le-1;H+=le/v.value)te.push({x:Q.value.left,y:Q.value.top+H,qYLess:Q.value.top+H+le/v.value/4,halfY:Q.value.top+H+le/v.value/2,qYMore:Q.value.top+H+le/v.value/4*3,color:$.value[he],height:le/v.value}),he+=1;return te}),W=e.ref(!1);function oe(te){W.value=te,u.value+=1}return o({generatePdf:y,generateImage:C}),(te,he)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:s,class:e.normalizeClass(`vue-ui-thermometer ${W.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color};font-family:${h.value.style.fontFamily}`),id:`thermometer__${l.value}`},[h.value.style.title.text?(e.openBlock(),e.createElementBlock("div",UT,[e.createVNode(Xt,{config:{title:{cy:"thermometer-div-title",...h.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...h.value.style.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isImaging:e.unref(c),isPrinting:e.unref(f),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:W.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:oe,onGeneratePdf:e.unref(y),onGenerateImage:e.unref(C)},e.createSlots({_:2},[te.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,te.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,te.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:le,isFullscreen:H})=>[e.renderSlot(te.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:le,isFullscreen:H})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":W.value,"vue-data-ui-fulscreen--off":!W.value}),width:"100%",viewBox:`0 0 ${Q.value.width} ${Q.value.height}`,style:e.normalizeStyle(`background:${h.value.style.chart.backgroundColor}`)},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",QT,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:h.value.style.chart.backgroundColor},null,8,TT)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(le,H)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${H}_${l.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":le.color},null,8,zT),e.createElementVNode("stop",{offset:"50%","stop-color":`${le.color}${e.unref(Xe)[100-h.value.style.chart.graduations.gradient.intensity]}`},null,8,DT),e.createElementVNode("stop",{offset:"100%","stop-color":le.color},null,8,PT)],8,OT))),256))]),e.createElementVNode("g",HT,[e.createElementVNode("rect",{x:Q.value.left,y:Q.value.top,height:Q.value.height-i.value.top-i.value.bottom,width:Q.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,RT),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(le,H)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${H}`},[e.createElementVNode("rect",{x:le.x,y:le.y,height:le.height,width:Q.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:h.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${H}_${l.value})`:le.color,"shape-rendering":"crispEdges"},null,8,GT),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:le.x,x2:le.x+10,y1:le.y,y2:le.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,WT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:le.x,x2:le.x+5,y1:le.halfY,y2:le.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,KT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:le.x,x2:le.x+2.5,y1:le.qYLess,y2:le.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,jT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","left"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:le.x,x2:le.x+2.5,y1:le.qYMore,y2:le.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,XT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:Q.value.right,x2:Q.value.right-10,y1:le.y,y2:le.y,"stroke-width":h.value.style.chart.graduations.strokeWidth,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,qT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:Q.value.right,x2:Q.value.right-5,y1:le.halfY,y2:le.halfY,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,YT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:Q.value.right,x2:Q.value.right-2.5,y1:le.qYLess,y2:le.qYLess,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,JT)):e.createCommentVNode("",!0),h.value.style.chart.graduations.show&&["both","right"].includes(h.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:Q.value.right,x2:Q.value.right-2.5,y1:le.qYMore,y2:le.qYMore,"stroke-width":h.value.style.chart.graduations.strokeWidth/2,stroke:h.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ZT)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":h.value.style.chart.animation.use}),x:Q.value.left,y:Q.value.top,height:E.value,width:Q.value.width-h.value.style.chart.padding.left-h.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,eO)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":h.value.style.chart.animation.use}),y:E.value+Q.value.top+h.value.style.chart.label.fontSize/3,x:Q.value.left-10,"text-anchor":"end",fill:h.value.style.chart.label.color,"font-size":h.value.style.chart.label.fontSize,"font-weight":h.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(Ge)({p:h.value.style.chart.label.prefix,v:t.dataset.value,s:h.value.style.chart.label.suffix,r:h.value.style.chart.label.rounding})),11,tO),e.renderSlot(te.$slots,"svg",{svg:K.value},void 0,!0)],14,VT)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"thermometer",style:{backgroundColor:h.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,MT))}},hg=vt(oO,[["__scopeId","data-v-eef95fe3"]]),lO=Object.freeze(Object.defineProperty({__proto__:null,default:hg},Symbol.toStringTag,{value:"Module"})),aO=["xmlns","viewBox"],rO=["id"],nO=["stop-color"],sO=["stop-color"],iO=["stop-color"],uO={id:"stackPill",clipPathUnits:"objectBoundingBox"},AO=["fill"],cO={"clip-path":"url(#stackPill)"},dO=["height","width","fill"],hO=["onClick","x","width","height","fill","stroke"],fO=["onClick"],vO={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},gO=["height","width"],pO=["fill"],yO={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t,{vue_ui_sparkstackbar:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length),l=e.ref(it()),s=e.computed(()=>{const w=Je({userConfig:a.config,defaultConfig:n});return w.theme?{...Je({userConfig:Nt.vue_ui_sparkstackbar[w.theme]||a.config,defaultConfig:w}),customPalette:Pt[w.theme]||Me}:w}),u=e.computed(()=>so(s.value.customPalette)),h=e.ref(a.dataset.map((w,U)=>({...w,value:s.value.style.animation.show?0:w.value||0,color:w.color?At(w.color):u.value[U]||Me[U]||Me[U%Me.length]}))),f=e.ref(!0);e.onMounted(()=>{if(xt(a.dataset)?Ke({componentName:"VueUiSparkStackbar",type:"dataset"}):a.dataset.forEach((w,U)=>{Wt({datasetObject:w,requiredAttributes:["name","value"]}).forEach(I=>{Ke({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:I,index:U})})}),s.value.style.animation.show){let K=function(){Q+=I/w,Q<I?(h.value=h.value.map((E,b)=>({...E,value:E.value+=U[b],color:E.color?At(E.color):u.value[b]||Me[b]||Me[b%Me.length]})),requestAnimationFrame(K)):(f.value=!1,h.value=a.dataset.map((E,b)=>({...E,value:E.value||0,color:E.color?At(E.color):u.value[b]||Me[b]||Me[b%Me.length],id:it()})))};const w=s.value.style.animation.animationFrames,U=a.dataset.map((E,b)=>E.value/w),I=a.dataset.map(E=>E.value||0).reduce((E,b)=>E+b,0);let Q=0;f.value=!0,K()}});const c=e.ref({width:500,height:16}),y=e.ref([]),C=e.computed(()=>a.dataset.map(w=>w.value||0).filter((w,U)=>!y.value.includes(U)).reduce((w,U)=>w+U,0)),A=e.computed(()=>h.value.map((w,U)=>({...w,value:w.value||0,proportion:(w.value||0)/C.value,width:(w.value||0)/C.value*c.value.width,proportionLabel:Ge({v:(w.value||0)/C.value*100,s:"%",r:s.value.style.legend.percentage.rounding})}))),B=e.computed(()=>A.value.filter((w,U)=>!y.value.includes(U)));function v(w){y.value.includes(w)?y.value=y.value.filter(U=>U!==w):y.value.length<h.value.length-1&&y.value.push(w)}const i=e.computed(()=>{let w=0;const U=[];for(let I=0;I<B.value.length;I+=1)U.push({...B.value[I],start:w}),w+=B.value[I].width;return U});function g(w,U){o("selectDatapoint",{datapoint:w,index:U})}return(w,U)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%; background:${s.value.style.backgroundColor}`)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.text),5),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(I,Q)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${Q}`,gradientTransform:"rotate(90)",id:`stack_gradient_${Q}_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":I.color},null,8,nO),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(Lt)(I.color,.05)}${e.unref(Xe)[100-s.value.style.bar.gradient.intensity]}`},null,8,sO),e.createElementVNode("stop",{offset:"100%","stop-color":I.color},null,8,iO)],8,rO))),128)),e.createElementVNode("clipPath",uO,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:s.value.style.backgroundColor},null,8,AO)])]),e.createElementVNode("g",cO,[e.createElementVNode("rect",{x:0,y:0,height:c.value.height,width:i.value.map(I=>I.width).reduce((I,Q)=>I+Q,0),fill:s.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!f.value})},null,10,dO),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(I,Q)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${Q}`,onClick:()=>g(I,Q),x:I.start,y:0,width:I.width,height:c.value.height,fill:s.value.style.bar.gradient.show?`url(#stack_gradient_${Q}_${l.value})`:I.color,stroke:s.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!f.value})},null,10,hO))),128))])],8,aO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:s.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),s.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.legend.margin};justify-content:${s.value.style.legend.textAlign==="left"?"flex-start":s.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(I,Q)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${s.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":y.value.includes(Q)}),onClick:K=>{v(Q),g(I,Q)}},[e.createElementVNode("div",vO,[(e.openBlock(),e.createElementBlock("svg",{height:`${s.value.style.legend.fontSize}px`,width:`${s.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:I.color},null,8,pO)],8,gO)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${s.value.style.legend.name.color}; font-weight:${s.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(I.name),5),s.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${s.value.style.legend.percentage.bold?"bold":"normal"};color:${s.value.style.legend.percentage.color}`)},e.toDisplayString(y.value.includes(Q)?" - ":I.proportionLabel),5)):e.createCommentVNode("",!0),s.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${s.value.style.legend.value.bold?"bold":"normal"};color:${s.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(Ge)({p:s.value.style.legend.value.prefix,v:I.value,s:s.value.style.legend.value.suffix,r:s.value.style.legend.value.rounding}))+") ",5)):e.createCommentVNode("",!0)])],14,fO))),256))],4)):e.createCommentVNode("",!0)],4))}},fg=vt(yO,[["__scopeId","data-v-2006741b"]]),mO=Object.freeze(Object.defineProperty({__proto__:null,default:fg},Symbol.toStringTag,{value:"Module"})),bO={key:0},kO={key:1},CO=["xmlns","viewBox"],wO=["id"],BO=["stop-color"],xO=["stop-color"],FO=["id"],NO=["stop-color"],_O=["stop-color"],SO={key:0},LO=["x","y","height","width","fill","stroke","stroke-width","rx"],EO={key:1},IO=["x","y","font-size","font-weight","fill"],$O=["x","y","font-size","fill"],MO=["x","y","font-size","fill"],UO=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],VO={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(t,{emit:o}){const a=t;e.useCssVars(B=>({"34a5ebe4":A.value}));const{vue_ui_sparkhistogram:n}=ft(),r=e.computed(()=>!!a.dataset&&a.dataset.length);e.onMounted(()=>{xt(a.dataset)?Ke({componentName:"VueUiSparkHistogram",type:"dataset"}):a.dataset.forEach((B,v)=>{Wt({datasetObject:B,requiredAttributes:["value"]}).forEach(i=>{Ke({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:i,index:v})})})});const l=e.ref(it()),s=e.computed(()=>{const B=Je({userConfig:a.config,defaultConfig:n});return B.theme?{...Je({userConfig:Nt.vue_ui_sparkhistogram[B.theme]||a.config,defaultConfig:B})}:B}),u=e.computed(()=>{const B=s.value.style.layout.height,v=s.value.style.layout.width,i=s.value.style.layout.padding.top,g=B-s.value.style.layout.padding.bottom,w=s.value.style.layout.padding.left,U=v-s.value.style.layout.padding.right,I=i+(B-i-s.value.style.layout.padding.bottom)/2,Q=B-s.value.style.layout.padding.top-s.value.style.layout.padding.bottom,K=v-s.value.style.layout.padding.left-s.value.style.layout.padding.right;return{bottom:g,centerY:I,drawingHeight:Q,drawingWidth:K,height:B,left:w,right:U,top:i,width:v}}),h=e.computed(()=>Math.max(...a.dataset.map(B=>Math.abs(B.value||0))));function f(B){return Math.abs(B)/h.value}const c=e.computed(()=>a.dataset.map((B,v)=>{const i=f(B.value||0),g=u.value.drawingHeight*i,w=u.value.drawingWidth/a.dataset.length,U=w*(s.value.style.bars.gap/100),I=w-U,Q=u.value.centerY-g/2,K=u.value.left+(U/2+v*w),E=u.value.left+v*w,b=typeof B.intensity>"u"?100:Math.round(B.intensity*100),T=B.value>=0?`${s.value.style.bars.colors.positive}${Xe[b]}`:`${s.value.style.bars.colors.negative}${Xe[b]}`,Y=B.value>=0?s.value.style.bars.colors.positive:s.value.style.bars.colors.negative,$=B.value>=0?`url(#gradient_positive_${v}_${l.value})`:`url(#gradient_negative_${v}_${l.value})`,S=K+I/2;return{...B,color:T,gradient:$,height:g,intensity:b,proportion:i,stroke:Y,textAnchor:S,trapX:E,unitWidth:w,width:I,x:K,y:Q}})),y=e.ref(null);function C(B,v){o("selectDatapoint",{datapoint:B,index:v})}const A=e.computed(()=>`${s.value.style.animation.speedMs}ms`);return(B,v)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${s.value.style.backgroundColor};font-family:${s.value.style.fontFamily}`),onMouseleave:v[1]||(v[1]=i=>y.value=null)},[s.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${s.value.style.backgroundColor};margin:0 auto;margin:${s.value.style.title.margin};padding: 0 6px;text-align:${s.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${s.value.style.title.fontSize}px;color:${s.value.style.title.color};font-weight:${s.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(s.value.style.title.text)+" ",1),y.value!==null?(e.openBlock(),e.createElementBlock("span",bO,"- "+e.toDisplayString(c.value[y.value].timeLabel||"")+" "+e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(c.value[y.value].value)?"":": "+Number(c.value[y.value].value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),1)):e.createCommentVNode("",!0),e.createTextVNode(),![void 0,null].includes(y.value)&&![null,void 0].includes(c.value[y.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",kO,"("+e.toDisplayString(c.value[y.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),s.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${s.value.style.title.subtitle.fontSize}px;color:${s.value.style.title.subtitle.color};font-weight:${s.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(s.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(We),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:{overflow:"visible"}},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${g}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.positive,.05)}${e.unref(Xe)[i.intensity]}`},null,8,BO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.positive}${e.unref(Xe)[i.intensity]}`},null,8,xO)],8,wO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${g}_${l.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(s.value.style.bars.colors.negative,.05)}${e.unref(Xe)[i.intensity]}`},null,8,NO),e.createElementVNode("stop",{offset:"100%","stop-color":`${s.value.style.bars.colors.negative}${e.unref(Xe)[i.intensity]}`},null,8,_O)],8,FO))),256))]),!s.value.style.bars.shape||s.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",SO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("rect",{x:i.x,y:i.y,height:i.height,width:i.width,fill:s.value.style.bars.colors.gradient.show?i.gradient:i.color,stroke:i.stroke,"stroke-width":s.value.style.bars.strokeWidth,rx:`${s.value.style.bars.borderRadius*i.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,10,LO))),256))])):(e.openBlock(),e.createElementBlock("g",EO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createBlock(ra,{plot:{x:i.x+i.width/2,y:i.y+i.height/2},color:s.value.style.bars.colors.gradient.show?i.gradient:i.color,shape:s.value.style.bars.shape,radius:i.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":s.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:i.textAnchor,y:i.y-s.value.style.labels.value.fontSize/3+s.value.style.labels.value.offsetY,"font-size":s.value.style.labels.value.fontSize,"font-weight":s.value.style.labels.value.bold?"bold":"normal",fill:s.value.style.labels.value.color},e.toDisplayString(s.value.style.labels.value.prefix)+e.toDisplayString(isNaN(i.value)?"":Number(i.value.toFixed(s.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(s.value.style.labels.value.suffix),9,IO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("g",null,[i.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:i.y+i.height+s.value.style.labels.valueLabel.fontSize,"font-size":s.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:s.value.style.labels.valueLabel.color},e.toDisplayString(i.valueLabel),9,$O)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("g",null,[i.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.textAnchor,y:u.value.height-s.value.style.labels.timeLabel.fontSize/2,"font-size":s.value.style.labels.timeLabel.fontSize,fill:s.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(i.timeLabel),9,MO)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,g)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:u.value.height,width:i.unitWidth,fill:"transparent",x:i.trapX,y:0,onMouseover:w=>y.value=g,onMouseleave:v[0]||(v[0]=w=>y.value=null),stroke:y.value!==null&&y.value===g?s.value.style.selector.stroke:"","stroke-width":y.value!==null&&y.value===g?s.value.style.selector.strokeWidth:0,rx:s.value.style.selector.borderRadius,"stroke-dasharray":s.value.style.selector.strokeDasharray,onClick:()=>C(i,g)},null,40,UO)]))),256))],8,CO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:2,config:{type:"sparkHistogram",style:{backgroundColor:s.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},vg=vt(VO,[["__scopeId","data-v-7aed7086"]]),QO=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"})),TO=["id"],OO=["xmlns","viewBox"],zO=["id"],DO=["stop-color"],PO=["stop-color"],HO=["stroke","cx","cy","r","fill"],RO=["stroke","stroke-width","cx","cy","r","fill"],GO=["cx","cy","r","onMouseenter"],WO=["onClick"],KO={key:0},jO={key:1},XO=["innerHTML"],qO={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_rings:r}=ft(),l=e.ref(!1),s=e.computed(()=>!!n.dataset&&n.dataset.length),u=e.ref(it()),h=e.ref(null),f=e.ref(!1),c=e.ref(""),y=e.ref(null),C=e.ref(0),A=e.ref(null),B=e.ref(null),v=e.ref(null),i=e.computed(()=>{const Z=Je({userConfig:n.config,defaultConfig:r});return Z.theme?{...Je({userConfig:Nt.vue_ui_rings[Z.theme]||n.config,defaultConfig:Z}),customPalette:Pt[Z.theme]||Me}:Z}),g=e.ref(null);e.onMounted(()=>{if(xt(n.dataset)?Ke({componentName:"VueUiRings",type:"dataset"}):n.dataset.forEach((Z,ee)=>{Wt({datasetObject:Z,requiredAttributes:["name","values"]}).forEach(z=>{Ke({componentName:"VueUiRings",type:"datasetSerieAttribute",property:z,index:ee})})}),i.value.responsive){const Z=Bo(()=>{const{width:ee,height:z}=xo({chart:A.value,title:i.value.style.chart.title.text?B.value:null,legend:i.value.style.chart.legend.show?v.value:null});b.value.width=ee,b.value.height=z});g.value=new ResizeObserver(Z),g.value.observe(A.value.parentNode)}setTimeout(()=>{l.value=!0},600)}),e.onBeforeUnmount(()=>{g.value&&g.value.disconnect()});const{isPrinting:w,isImaging:U,generatePdf:I,generateImage:Q}=zt({elementId:`rings_${u.value}`,fileName:i.value.style.chart.title.text||"vue-ui-rings"}),K=e.computed(()=>so(i.value.customPalette)),E=e.ref({showTable:i.value.table.show,showTooltip:i.value.style.chart.tooltip.show}),b=e.ref({height:360,width:360}),T=e.computed(()=>Math.min(b.value.height,b.value.width)),Y=e.ref([]);function $(Z){Y.value.includes(Z)?Y.value=Y.value.filter(ee=>ee!==Z):Y.value.push(Z),a("selectLegend",H.value.map(ee=>({name:ee.name,color:ee.color,value:ee.value})))}const S=e.computed(()=>Math.max(...oe.value.filter(Z=>!Y.value.includes(Z.uid)).map(({value:Z})=>Z)));function W(Z){return Z/S.value}const oe=e.computed(()=>n.dataset.map(({values:Z,name:ee,color:z=null},D)=>{const fe=(Z||[]).reduce((M,N)=>M+N,0);return{name:ee,color:z||At(z)||K.value[D]||Me[D]||Me[D%Me.length],value:fe,proportion:fe/n.dataset.map(M=>(M.values||[]).reduce((N,j)=>N+j,0)).reduce((M,N)=>M+N,0),uid:it()}})),te=e.computed(()=>oe.value.map(Z=>({...Z,shape:"circle",opacity:Y.value.includes(Z.uid)?.5:1,segregate:()=>$(Z.uid),isSegregated:Y.value.includes(Z.uid)})).toSorted((Z,ee)=>ee.value-Z.value)),he=e.computed(()=>({cy:"rings-div-legend",backgroundColor:i.value.style.chart.legend.backgroundColor,color:i.value.style.chart.legend.color,fontSize:i.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:i.value.style.chart.legend.bold?"bold":""})),le=e.computed(()=>oe.value.filter(Z=>!Y.value.includes(Z.uid)).map(({value:Z})=>Z).reduce((Z,ee)=>Z+ee,0)),H=e.computed(()=>oe.value.filter(Z=>!Y.value.includes(Z.uid)).map(({name:Z,value:ee,color:z=null,uid:D},fe)=>({uid:D,name:Z,color:z||At(z)||K.value[fe]||Me[fe]||Me[fe%Me.length],value:ee,proportion:W(ee),percentage:ee/le.value*100,strokeWidth:i.value.style.chart.layout.rings.strokeWidth*W(ee)})).toSorted((Z,ee)=>ee.value-Z.value));function P(){return H.value.map(({name:Z,color:ee,value:z,absoluteValues:D,percentage:fe})=>({name:Z,color:ee,value:z,absoluteValues:D,percentage:fe}))}const X=e.computed(()=>T.value-i.value.style.chart.layout.rings.strokeWidth*2),q=e.ref(null);function m(Z,ee){if(Y.value.length===n.dataset.length)return;q.value={datapoint:ee,seriesIndex:Z,series:H.value,config:i.value},y.value=Z;const z=H.value[Z],D=i.value.style.chart.tooltip.customFormat;if(Gt(D)&&wo(()=>D({seriesIndex:Z,datapoint:ee,series:H.value,config:i.value})))c.value=D({seriesIndex:Z,datapoint:ee,series:H.value,config:i.value});else{let fe="";fe+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${i.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${z.name}</div>`,fe+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${z.color}" /></svg>`,i.value.style.chart.tooltip.showValue&&(fe+=`<b>${Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.tooltip.roundingValue})}</b>`),i.value.style.chart.tooltip.showPercentage&&(i.value.style.chart.tooltip.showValue?fe+=`<span>(${(z.value/le.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%)</span></div>`:fe+=`<b>${(z.value/le.value*100).toFixed(i.value.style.chart.tooltip.roundingPercentage)}%</b></div>`),c.value=fe}f.value=!0}const _=e.computed(()=>{const Z=H.value.map(z=>({name:z.name,color:z.color})),ee=H.value.map(z=>z.value);return{head:Z,body:ee}}),x=e.computed(()=>{const Z=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:le.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),"100%"],ee=_.value.head.map((fe,M)=>[{color:fe.color,name:fe.name},Ge({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:_.value.body[M],s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.table.td.roundingValue}),isNaN(_.value.body[M]/le.value)?"-":(_.value.body[M]/le.value*100).toFixed(i.value.table.td.roundingPercentage)+"%"]),z={th:{backgroundColor:i.value.table.th.backgroundColor,color:i.value.table.th.color,outline:i.value.table.th.outline},td:{backgroundColor:i.value.table.td.backgroundColor,color:i.value.table.td.color,outline:i.value.table.td.outline},breakpoint:i.value.table.responsiveBreakpoint},D=[i.value.table.columnNames.series,i.value.table.columnNames.value,i.value.table.columnNames.percentage];return{head:Z,body:ee,config:z,colNames:D}});function V(){e.nextTick(()=>{const Z=_.value.head.map((D,fe)=>[[D.name],[_.value.body[fe]],[isNaN(_.value.body[fe]/le.value)?"-":_.value.body[fe]/le.value*100]]),ee=[[i.value.style.chart.title.text],[i.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(Z),z=eo(ee);Zt({csvContent:z,title:i.value.style.chart.title.text||"vue-ui-rings"})})}const J=e.ref(!1);function ke(Z){J.value=Z,C.value+=1}function ae(){E.value.showTable=!E.value.showTable}function ge(){E.value.showTooltip=!E.value.showTooltip}return o({getData:P,generatePdf:I,generateCsv:V,generateImage:Q,toggleTable:ae,toggleTooltip:ge}),(Z,ee)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:A,class:e.normalizeClass(`vue-ui-rings ${J.value?"vue-data-ui-wrapper-fullscreen":""} ${i.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${i.value.style.fontFamily};text-align:center;width:100%;background:${i.value.style.chart.backgroundColor};${i.value.responsive?"height: 100%":""}`),id:`rings_${u.value}`,onMouseleave:ee[3]||(ee[3]=z=>{y.value=null,f.value=!1})},[i.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:B,style:e.normalizeStyle(`width:100%;background:${i.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"rings-div-title",...i.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...i.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),i.value.userOptions.show&&s.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:h,key:`user_options_${C.value}`,backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color,isPrinting:e.unref(w),isImaging:e.unref(U),uid:u.value,hasTooltip:i.value.userOptions.buttons.tooltip&&i.value.style.chart.tooltip.show,hasPdf:i.value.userOptions.buttons.pdf,hasXls:i.value.userOptions.buttons.csv,hasImg:i.value.userOptions.buttons.img,hasTable:i.value.userOptions.buttons.table,hasFullscreen:i.value.userOptions.buttons.fullscreen,isTooltip:E.value.showTooltip,isFullscreen:J.value,titles:{...i.value.userOptions.buttonTitles},chartElement:A.value,onToggleFullscreen:ke,onGeneratePdf:e.unref(I),onGenerateCsv:V,onGenerateImage:e.unref(Q),onToggleTable:ae,onToggleTooltip:ge},e.createSlots({_:2},[Z.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,Z.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,Z.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,Z.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,Z.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(Z.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,Z.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:z,isFullscreen:D})=>[e.renderSlot(Z.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:z,isFullscreen:D})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":J.value,"vue-data-ui-fulscreen--off":!J.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${i.value.style.chart.backgroundColor};color:${i.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(z,D)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${u.value}_${D}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(Lt)(z.color,.05)}${e.unref(Xe)[100-i.value.style.chart.layout.rings.gradient.intensity]}`},null,8,DO),e.createElementVNode("stop",{offset:"100%","stop-color":z.color},null,8,PO)],8,zO))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(z,D)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-opacity":y.value!==null&&y.value!==D}),style:e.normalizeStyle(`animation-delay:${D*100}ms`),stroke:i.value.style.chart.layout.rings.stroke,cx:b.value.width/2,cy:D===0?b.value.height/2:b.value.height/2+X.value*H.value[0].proportion/2-X.value*z.proportion/2-2*(D+1),r:X.value*z.proportion/2*.9<=0?1e-4:X.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.underlayerColor},null,14,HO),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":l.value&&i.value.useCssAnimation,"vue-rings-item-onload":!l.value&&i.value.useCssAnimation,"vue-ui-rings-shadow":i.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":y.value!==null&&y.value!==D}),style:e.normalizeStyle(`animation-delay:${D*100}ms`),stroke:i.value.style.chart.layout.rings.stroke,"stroke-width":z.strokeWidth<.5?.5:z.strokeWidth,cx:b.value.width/2,cy:D===0?b.value.height/2:b.value.height/2+X.value*H.value[0].proportion/2-X.value*z.proportion/2-2*(D+1),r:X.value*z.proportion/2*.9<=0?1e-4:X.value*z.proportion/2*.9,fill:i.value.style.chart.layout.rings.gradient.show?`url(#gradient_${u.value}_${D})`:z.color},null,14,RO),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:b.value.width/2,cy:D===0?b.value.height/2:b.value.height/2+X.value*H.value[0].proportion/2-X.value*z.proportion/2-2*(D+1),r:X.value*z.proportion/2*.9<=0?1e-4:X.value*z.proportion/2*.9,fill:"transparent",onMouseenter:fe=>m(D,z),onMouseleave:ee[0]||(ee[0]=fe=>{y.value=null,f.value=!1})},null,40,GO)]))),256)),e.renderSlot(Z.$slots,"svg",{svg:b.value},void 0,!0)],14,OO)):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"rings",style:{backgroundColor:i.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:v},[i.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:0,legendSet:te.value,config:he.value,onClickMarker:ee[1]||(ee[1]=({legend:z})=>$(z.uid))},{item:e.withCtx(({legend:z})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:D=>$(z.uid),style:e.normalizeStyle(`opacity:${Y.value.includes(z.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(z.name)+": "+e.toDisplayString(e.unref(Ge)({p:i.value.style.chart.layout.labels.dataLabels.prefix,v:z.value,s:i.value.style.chart.layout.labels.dataLabels.suffix,r:i.value.style.chart.legend.roundingValue}))+" ",1),Y.value.includes(z.uid)?(e.openBlock(),e.createElementBlock("span",jO," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",KO," ("+e.toDisplayString(isNaN(z.value/le.value)?"-":(z.value/le.value*100).toFixed(i.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,WO)]),_:1},8,["legendSet","config"])):e.renderSlot(Z.$slots,"legend",{key:1,legend:te.value},void 0,!0)],512),e.createVNode(Oo,{show:E.value.showTooltip&&f.value&&Y.value.length<n.dataset.length,backgroundColor:i.value.style.chart.tooltip.backgroundColor,color:i.value.style.chart.tooltip.color,borderRadius:i.value.style.chart.tooltip.borderRadius,borderColor:i.value.style.chart.tooltip.borderColor,borderWidth:i.value.style.chart.tooltip.borderWidth,fontSize:i.value.style.chart.tooltip.fontSize,backgroundOpacity:i.value.style.chart.tooltip.backgroundOpacity,parent:A.value,content:c.value,isCustom:i.value.style.chart.tooltip.customFormat&&typeof i.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(Z.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),s.value?(e.openBlock(),e.createBlock(lo,{key:4,hideDetails:"",config:{open:E.value.showTable,maxHeight:1e4,body:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color},head:{backgroundColor:i.value.style.chart.backgroundColor,color:i.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:x.value.colNames,head:x.value.head,body:x.value.body,config:x.value.config,title:`${i.value.style.chart.title.text}${i.value.style.chart.title.subtitle.text?` : ${i.value.style.chart.title.subtitle.text}`:""}`,onClose:ee[2]||(ee[2]=z=>E.value.showTable=!1)},{th:e.withCtx(({th:z})=>[e.createElementVNode("div",{innerHTML:z,style:{display:"flex","align-items":"center"}},null,8,XO)]),td:e.withCtx(({td:z})=>[e.createTextVNode(e.toDisplayString(z.name||z),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,TO))}},gg=vt(qO,[["__scopeId","data-v-c7da9220"]]),YO=Object.freeze(Object.defineProperty({__proto__:null,default:gg},Symbol.toStringTag,{value:"Module"})),JO=["id"],ZO=["xmlns","viewBox"],ez=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],tz=["cx","cy","r","stroke","stroke-width"],oz=["x","y","font-size","fill","font-weight"],lz={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_wheel:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.ref(null),f=e.ref(null),c=e.computed(()=>{const T=Je({userConfig:a.config,defaultConfig:n});return T.theme?{...Je({userConfig:Nt.vue_ui_wheel[T.theme]||a.config,defaultConfig:T})}:T}),{isPrinting:y,isImaging:C,generatePdf:A,generateImage:B}=zt({elementId:l.value,fileName:c.value.style.chart.title.text||"vue-ui-wheel"}),v=e.ref({size:360,height:360,width:360}),i=e.ref(c.value.style.chart.layout.percentage.fontSize),g=e.computed(()=>({radius:Math.min(v.value.width,v.value.height)*.9/2,centerX:v.value.width/2,centerY:v.value.height/2}));function w(T,Y=1){return{x:g.value.centerX+g.value.radius*Math.cos(29.85+T*Math.PI/180)*Y,y:g.value.centerY+g.value.radius*Math.sin(29.85+T*Math.PI/180)*Y}}const U=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0);e.watch(()=>a.dataset.percentage,()=>{U.value=e.ref(c.value.style.chart.animation.use?0:a.dataset.percentage||0),Q()});const I=e.ref(null);e.onMounted(()=>{if(xt(a.dataset)&&Ke({componentName:"VueUiWheel",type:"dataset"}),Q(),c.value.responsive){const T=Bo(()=>{const{width:Y,height:$}=xo({chart:h.value,title:c.value.style.chart.title.text?f.value:null});v.value.width=Y,v.value.height=$,i.value=c.value.style.chart.layout.percentage.fontSize/360*Math.min(Y,$)});I.value=new ResizeObserver(T),I.value.observe(h.value.parentNode)}}),e.onBeforeUnmount(()=>{I.value&&I.value.disconnect()});function Q(){let T=0,Y=c.value.style.chart.animation.speed,$=.005*c.value.style.chart.animation.acceleration;function S(){U.value+=Y+T,T+=$,U.value<(a.dataset.percentage||0)?requestAnimationFrame(S):U.value=a.dataset.percentage||0}c.value.style.chart.animation.use&&(U.value=0,S())}const K=e.computed(()=>{const T=[];for(let $=0;$<100;$+=1){const S=U.value>$?c.value.style.chart.layout.wheel.ticks.activeColor:c.value.style.chart.layout.wheel.ticks.inactiveColor,{x:W,y:oe}=w(v.value.size/100*$),{x:te,y:he}=w(v.value.size/100*$,.9);T.push({x1:W,y1:oe,x2:te,y2:he,color:c.value.style.chart.layout.wheel.ticks.gradient.show?Lt(S,$/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):S})}return T}),E=e.ref(!1);function b(T){E.value=T,u.value+=1}return o({generatePdf:A,generateImage:B}),(T,Y)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,id:l.value,style:e.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center;background:${c.value.style.chart.backgroundColor};${c.value.responsive?"height:100%":""}`)},[c.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:e.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...c.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...c.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),c.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref_key:"details",ref:s,key:`user_options_${u.value}`,backgroundColor:c.value.style.chart.backgroundColor,color:c.value.style.chart.color,isPrinting:e.unref(y),isImaging:e.unref(C),uid:l.value,hasPdf:c.value.userOptions.buttons.pdf,hasImg:c.value.userOptions.buttons.img,hasFullscreen:c.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:E.value,titles:{...c.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:b,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(B)},e.createSlots({_:2},[T.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,T.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,T.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:$,isFullscreen:S})=>[e.renderSlot(T.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:$,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${v.value.width<=0?10:v.value.width} ${v.value.height<=0?10:v.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,($,S)=>(e.openBlock(),e.createElementBlock("line",{x1:$.x1,x2:$.x2,y1:$.y1,y2:$.y2,stroke:$.color,"stroke-width":5/360*Math.min(v.value.width,v.value.height),"stroke-linecap":c.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":c.value.style.chart.animation.use&&S<=U.value})},null,10,ez))),256)),c.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:g.value.centerX,cy:g.value.centerY,r:g.value.radius*.8<=0?1e-4:g.value.radius*.8,stroke:c.value.style.chart.layout.innerCircle.stroke,"stroke-width":c.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,tz)):e.createCommentVNode("",!0),c.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:g.value.centerX,y:g.value.centerY+i.value/3,"font-size":i.value,fill:c.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(Lt)(c.value.style.chart.layout.wheel.ticks.activeColor,U.value/100*(c.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":c.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(Number(U.value.toFixed(c.value.style.chart.layout.percentage.rounding)).toLocaleString())+"% ",9,oz)):e.createCommentVNode("",!0),e.renderSlot(T.$slots,"svg",{svg:v.value},void 0,!0)],14,ZO)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"wheel",style:{backgroundColor:c.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,JO))}},pg=vt(lz,[["__scopeId","data-v-9e158d61"]]),az=Object.freeze(Object.defineProperty({__proto__:null,default:pg},Symbol.toStringTag,{value:"Module"})),rz=["id"],nz=["xmlns","viewBox"],sz={key:0},iz=["d","stroke-width","stroke"],uz={key:1},Az=["x1","y1","x2","y2","stroke-width","stroke"],cz=["x","y","font-size","fill","font-weight","text-anchor"],dz={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_tiremarks:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length),l=e.ref(it()),s=e.ref(null),u=e.ref(0),h=e.computed(()=>{const T=Je({userConfig:a.config,defaultConfig:n});return T.theme?{...Je({userConfig:Nt.vue_ui_tiremarks[T.theme]||a.config,defaultConfig:T})}:T}),{isPrinting:f,isImaging:c,generatePdf:y,generateImage:C}=zt({elementId:l.value,fileName:h.value.style.chart.title.text||"vue-ui-tiremarks"}),A=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage);e.watch(()=>a.dataset.percentage,()=>{A.value=e.ref(h.value.style.chart.animation.use?0:a.dataset.percentage),B()}),e.onMounted(()=>{xt(a.dataset)&&Ke({componentName:"VueUiTiremarks",type:"dataset"}),B()});function B(){let T=0,Y=h.value.style.chart.animation.speed,$=.005*h.value.style.chart.animation.acceleration;function S(){A.value+=Y+T,T+=$,A.value<a.dataset.percentage?requestAnimationFrame(S):A.value=a.dataset.percentage}h.value.style.chart.animation.use&&(A.value=0,S())}const v=e.computed(()=>h.value.style.chart.layout.display==="vertical"),i=e.computed(()=>{const T={top:48,left:64,right:64,bottom:48};return v.value?{top:h.value.style.chart.percentage.verticalPosition==="top"?T.top:3,left:3,right:3,bottom:h.value.style.chart.percentage.verticalPosition==="bottom"?T.bottom:3}:{top:0,bottom:0,left:h.value.style.chart.percentage.horizontalPosition==="left"?T.left:3,right:h.value.style.chart.percentage.horizontalPosition==="right"?T.right:10}}),g=e.computed(()=>Object.values(i.value).reduce((T,Y)=>T+Y,0)),w=e.computed(()=>({height:v.value?312:56,width:v.value?56:312})),U=e.ref(100);e.computed(()=>a.dataset.percentage/U.value);const I=e.computed(()=>v.value?{mark:(w.value.height-g.value)/100*.5,space:(w.value.height-g.value)/100*.5}:{mark:(w.value.width-g.value)/100*.5,space:(w.value.width-g.value)/100*.5}),Q=e.computed(()=>{const T=[];for(let $=0;$<100;$+=1){const S=h.value.style.chart.layout.ticks.gradient.show?Lt(h.value.style.chart.layout.activeColor,$/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.layout.activeColor;if(v.value){const W=h.value.style.chart.layout.crescendo?(100-$)*(w.value.width-i.value.left-i.value.right)/100/3:0,oe=i.value.left+4+W,te=w.value.width-i.value.right-4-W,he=w.value.height-i.value.bottom-$*I.value.mark-$*I.value.space-I.value.mark,le=w.value.height-i.value.bottom-$*I.value.mark-$*I.value.space-I.value.mark,H=(te-oe)/h.value.style.chart.layout.curveAngleX,P=h.value.style.chart.layout.curveAngleY*((1+$)/100);T.push({x1:oe,x2:te,y1:he,y2:le,curve:`M ${oe} ${he} C ${oe+H} ${he-P}, ${te-H} ${le-P}, ${te} ${le}`,color:S})}else{const W=h.value.style.chart.layout.crescendo?(100-$)*(w.value.height-i.value.top-i.value.bottom)/100/3:0,oe=i.value.left+$*I.value.mark+$*I.value.space-I.value.mark,te=oe,he=i.value.top+4+W,le=w.value.height-i.value.bottom-4-W,H=h.value.style.chart.layout.curveAngleY*((1+$)/100),P=(le-he)/h.value.style.chart.layout.curveAngleX;T.push({x1:oe,x2:te,y1:he,y2:le,curve:`M ${oe} ${he} C ${oe+H} ${he+P}, ${te+H} ${le-P}, ${te} ${le}`,color:S})}}return T}),K=e.computed(()=>{let T,Y,$;const S=h.value.style.chart.percentage.fontSize/3;return v.value?h.value.style.chart.percentage.verticalPosition==="top"?(T=w.value.width/2,Y=i.value.top/2,$="middle"):h.value.style.chart.percentage.verticalPosition==="bottom"&&(T=w.value.width/2,Y=w.value.height-i.value.bottom/2+S,$="middle"):h.value.style.chart.percentage.horizontalPosition==="left"?(T=4,Y=w.value.height/2+S,$="start"):h.value.style.chart.percentage.horizontalPosition==="right"&&(T=w.value.width-i.value.right+8,Y=w.value.height/2+S,$="start"),{x:T,y:Y,textAnchor:$,bold:h.value.style.chart.percentage.bold,fontSize:h.value.style.chart.percentage.fontSize,fill:h.value.style.chart.percentage.color}}),E=e.ref(!1);function b(T){E.value=T,u.value+=1}return o({generatePdf:y,generateImage:C}),(T,Y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:s,class:e.normalizeClass(`vue-ui-tiremarks ${h.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${h.value.style.fontFamily};width:100%; text-align:center;${h.value.style.chart.title.text?"":"padding-top:36px"};background:${h.value.style.chart.backgroundColor}`),id:l.value},[h.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${h.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Xt,{config:{title:{cy:"wheel-title",...h.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...h.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),h.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${u.value}`,backgroundColor:h.value.style.chart.backgroundColor,color:h.value.style.chart.color,isPrinting:e.unref(f),isImaging:e.unref(c),uid:l.value,hasPdf:h.value.userOptions.buttons.pdf,hasImg:h.value.userOptions.buttons.img,hasFullscreen:h.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:E.value,titles:{...h.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:b,onGeneratePdf:e.unref(y),onGenerateImage:e.unref(C)},e.createSlots({_:2},[T.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,T.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,T.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:$,isFullscreen:S})=>[e.renderSlot(T.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:$,isFullscreen:S})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${w.value.width} ${w.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${h.value.style.chart.backgroundColor};color:${h.value.style.chart.color}`)},[h.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",sz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,($,S)=>(e.openBlock(),e.createElementBlock("path",{d:$.curve,"stroke-width":I.value.mark,stroke:A.value>=S?$.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":h.value.style.chart.animation.use&&S<=A.value})},null,10,iz))),256))])):(e.openBlock(),e.createElementBlock("g",uz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,($,S)=>(e.openBlock(),e.createElementBlock("line",{x1:$.x1,y1:$.y1,x2:$.x2,y2:$.y2,"stroke-width":I.value.mark,stroke:A.value>=S?$.color:h.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,Az))),256))])),h.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:K.value.x,y:K.value.y,"font-size":K.value.fontSize,fill:h.value.style.chart.layout.ticks.gradient.show&&h.value.style.chart.percentage.useGradientColor?e.unref(Lt)(h.value.style.chart.layout.activeColor,A.value/100*(h.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):h.value.style.chart.percentage.color,"font-weight":K.value.bold?"bold":"normal","text-anchor":K.value.textAnchor},e.toDisplayString(A.value.toFixed(h.value.style.chart.percentage.rounding)+"%"),9,cz)):e.createCommentVNode("",!0),e.renderSlot(T.$slots,"svg",{svg:w.value},void 0,!0)],14,nz)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"tiremarks",style:{backgroundColor:h.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,rz))}},yg=vt(dz,[["__scopeId","data-v-1bbd1baf"]]),hz=Object.freeze(Object.defineProperty({__proto__:null,default:yg},Symbol.toStringTag,{value:"Module"})),fz=["id"],vz=["xmlns","viewBox"],gz=["id"],pz=["stop-color"],yz=["stop-color"],mz=["id"],bz=["stop-color"],kz=["stop-color"],Cz=["stop-color"],wz={key:0},Bz=["x1","x2","y1","y2","stroke","stroke-width"],xz=["x1","x2","y1","y2","stroke","stroke-width"],Fz={key:0},Nz=["x1","x2","y1","y2","stroke","stroke-width"],_z=["x1","x2","y1","y2","stroke","stroke-width"],Sz=["x","y","font-size","fill","font-weight"],Lz=["text-anchor","font-size","fill","transform"],Ez=["x1","y1","x2","y2","stroke","stroke-width"],Iz={key:1},$z=["cx","cy","r","fill"],Mz={key:0},Uz={key:0},Vz=["d","stroke"],Qz=["text-anchor","x","y","fill"],Tz=["cx","cy","r","fill"],Oz={key:0},zz=["cx","cy","fill"],Dz={key:1},Pz=["d","fill","stroke"],Hz={key:2},Rz=["d","fill","stroke"],Gz=["x","y","font-size","fill"],Wz=["x","y","width","fill","onClick"],Kz=["x","y","width","height","onMouseenter","onClick"],jz={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},Xz=["x","y","width","height","fill"],qz=["x1","y1","x2","y2","stroke"],Yz=["x1","y2","x2","y1","stroke"],Jz=["onKeypress","cx","cy","r"],Zz=["d","stroke"],eD=["cx","cy","r","fill"],tD=["d","fill","stroke"],oD={class:"vue-ui-donut-evolution-focus"},lD=["text-anchor","x","y","fill"],aD=["cx","cy","r","fill"],rD=["cx","cy","r","fill"],nD=["x","y","fill"],sD=["x","y","font-size","fill"],iD=["onClick"],uD={key:0},AD={key:1},cD={key:0},dD={key:1},hD={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_donut_evolution:r}=ft(),l=e.computed(()=>!!n.dataset&&n.dataset.length),s=e.ref({start:0,end:Math.max(...n.dataset.map(N=>N.values.length))});function u(){s.value={start:0,end:S.value},i.value+=1}e.onMounted(()=>{xt(n.dataset)?Ke({componentName:"VueUiDonutEvolution",type:"dataset"}):n.dataset.length&&n.dataset.forEach((N,j)=>{Wt({datasetObject:N,requiredAttributes:["name","values"]}).forEach(O=>{Ke({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:O,index:j})})})});const h=e.ref(it()),f=e.ref([]),c=e.ref(null),y=e.ref(null),C=e.ref(!1),A=e.ref(null),B=e.ref(null),v=e.ref(0),i=e.ref(0),g=e.computed(()=>{const N=Je({userConfig:n.config,defaultConfig:r});return N.theme?{...Je({userConfig:Nt.vue_ui_donut_evolution[N.theme]||n.config,defaultConfig:N}),customPalette:Pt[N.theme]||Me}:N}),{isPrinting:w,isImaging:U,generatePdf:I,generateImage:Q}=zt({elementId:h.value,fileName:g.value.style.chart.title.text||"vue-ui-donut-evolution"}),K=e.computed(()=>so(g.value.customPalette)),E=e.ref({showTable:g.value.table.show}),b=e.computed(()=>({top:g.value.style.chart.layout.padding.top,right:g.value.style.chart.layout.padding.right,bottom:g.value.style.chart.layout.padding.bottom,left:g.value.style.chart.layout.padding.left})),T=e.computed(()=>{const N=g.value.style.chart.layout.height,j=g.value.style.chart.layout.width,O=N-b.value.top-b.value.bottom,ce=j-b.value.left-b.value.right;return{absoluteHeight:N,absoluteWidth:j,centerX:b.value.left+ce/2,centerY:b.value.top+O/2,height:O,width:ce}}),Y=e.computed(()=>(n.dataset.forEach((N,j)=>{[null,void 0].includes(N.name)&&Ke({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:j}),[null,void 0].includes(N.values)&&Ke({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:j})}),n.dataset.map((N,j)=>({...N,values:N.values||[],color:At(N.color)||K.value[j]||Me[j]||Me[j%Me.length],length:(N.values||[]).length,uid:it()})))),$=e.computed(()=>Y.value.filter(N=>!f.value.includes(N.uid)).map(N=>({...N,values:N.values.filter((j,O)=>O>=s.value.start&&O<=s.value.end)}))),S=e.computed(()=>Math.max(...$.value.map(N=>N.length))),W=e.computed(()=>T.value.width/(s.value.end-s.value.start)),oe=e.computed(()=>{const N=[];for(let re=0;re<s.value.end-s.value.start;re+=1){const ie=$.value.map(ve=>ve.values[re]??null),G=ie.filter(ve=>[void 0,null].includes(ve)).length===ie.length,ne=ie.reduce((ve,Ce)=>ve+Ce,0),Ae=ie.map(ve=>ve/ne),se=b.value.left+W.value*re+W.value/2;N.push({index:re,percentages:Ae,subtotal:G||ne<0?null:ne,values:ie,x:se})}const j=0,O=Math.max(...N.map(re=>re.subtotal)),ce=N.length===1?O*2:O;return N.map((re,ie)=>{const G=W.value/2*.7,ne=G>T.value.width/16?T.value.width/16:G,Ae=c.value===re.index?T.value.width/16:ne,se=N.length>4?G*2:G*2>W.value/2*.7?W.value/2*.7:G*2,ve=T.value.absoluteHeight-b.value.bottom-T.value.height*re.subtotal/Pl(j,ce,g.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...re,y:ve,radius:ne,activeRadius:Ae,hoverRadius:se,donut:kl({series:$.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},re.x,ve,ne,ne,1.99999,2,1,360,105.25,ne/2),donutHover:kl({series:$.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},re.x,ve,se,se,1.99999,2,1,360,105.25,se/2),donutFocus:kl({series:$.value.map((Ce,Ue)=>({color:Ce.color,name:Ce.name,value:Ce.values[ie]??0}))},T.value.centerX,T.value.centerY,T.value.height/3.6,T.value.height/3.6,1.99999,2,1,360,105.25,T.value.height/6)}})});function te(N){return`${g.value.style.chart.layout.dataLabels.prefix}${isNaN(N)?"-":Number(N.toFixed(g.value.style.chart.layout.dataLabels.rounding)).toLocaleString()}${g.value.style.chart.layout.dataLabels.suffix}`}const he=e.computed(()=>({max:Math.max(...oe.value.map(N=>N.subtotal)),min:0})),le=e.computed(()=>{const N=oe.value.length===1?he.value.max*2:he.value.max;return Pl(he.value.min,N,g.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function H(N){return N/le.value.max}const P=e.computed(()=>le.value.ticks.map(N=>({y:T.value.absoluteHeight-b.value.bottom-T.value.height*H(N),value:N})));function X(N,j){return isNaN(N.value/Af(j,"value"))?0:(N.value/Af(j,"value")*100).toFixed(0)+"%"}function q(){C.value||(c.value=null,y.value=null)}function m(N){C.value||(c.value=N.index,y.value=N)}const _=e.ref(null);function x(N,j){N.subtotal&&(y.value=null,c.value=null,C.value=!0,A.value=N,[null,void 0].includes(j)||(_.value=j))}function V(){A.value=null,C.value=!1,_.value=null}const J=e.computed(()=>Y.value.map((N,j)=>({name:N.name,value:N.values.slice(s.value.start,s.value.end).reduce((O,ce)=>O+ce,0),shape:"circle",uid:N.uid,color:N.color})).sort((N,j)=>j.value-N.value).map(N=>({...N,opacity:f.value.includes(N.uid)?.5:1,segregate:()=>ge(N.uid),isSegregated:f.value.includes(N.uid)}))),ke=e.computed(()=>oe.value.map(N=>N.subtotal).reduce((N,j)=>N+j,0)),ae=e.computed(()=>({cy:"donut-div-legend",backgroundColor:g.value.style.chart.legend.backgroundColor,color:g.value.style.chart.legend.color,fontSize:g.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:g.value.style.chart.legend.bold?"bold":""}));function ge(N){if(f.value.includes(N))f.value=f.value.filter(j=>j!==N),a("selectLegend",null);else{if(f.value.length===Y.value.length-1)return;f.value.push(N),a("selectLegend",Y.value.find(j=>j.uid===N))}A.value&&x(oe.value.find((j,O)=>O===_.value))}const Z=e.computed(()=>{const N=[""].concat(Y.value.filter(re=>!f.value.includes(re.uid)).map(re=>({name:re.name,color:re.color}))).concat(["Σ"]);let j=[];for(let re=0;re<S.value;re+=1){const ie=Y.value.filter(G=>!f.value.includes(G.uid)).map(G=>G.values[re]??0).reduce((G,ne)=>G+ne,0);j.push([g.value.style.chart.layout.grid.xAxis.dataLabels.values[re]??"-"].concat(Y.value.filter(G=>!f.value.includes(G.uid)).map(G=>({value:G.values[re]??0,percentage:G.values[re]?G.values[re]/ie*100:0}))).concat([`${g.value.style.chart.layout.dataLabels.prefix}${Number(ie.toFixed(g.value.table.td.roundingValue))}${g.value.style.chart.layout.dataLabels.suffix}`]))}const O={th:{backgroundColor:g.value.table.th.backgroundColor,color:g.value.table.th.color,outline:g.value.table.th.outline},td:{backgroundColor:g.value.table.td.backgroundColor,color:g.value.table.td.color,outline:g.value.table.td.outline},breakpoint:g.value.table.responsiveBreakpoint},ce=[g.value.table.columnNames.period].concat(Y.value.filter(re=>!f.value.includes(re.uid)).map(re=>re.name)).concat(g.value.table.columnNames.total);return{head:N,body:j,config:O,colNames:ce}});function ee(){return Y.value}function z(){e.nextTick(()=>{const N=[[g.value.style.chart.title.text],[g.value.style.chart.title.subtitle.text],[""]],j=[...Z.value.head.map(ie=>ie.name??ie)],O=[...Z.value.body.map(ie=>ie.map(G=>G.value??G))],ce=N.concat([j]).concat(O),re=eo(ce);Zt({csvContent:re,title:g.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const D=e.ref(!1);function fe(N){D.value=N,v.value+=1}function M(){E.value.showTable=!E.value.showTable}return o({getData:ee,generatePdf:I,generateCsv:z,generateImage:Q,toggleTable:M}),(N,j)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:B,class:e.normalizeClass(`vue-ui-donut-evolution ${D.value?"vue-data-ui-wrapper-fullscreen":""} ${g.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${g.value.style.fontFamily};width:100%; text-align:center;${g.value.style.chart.title.text?"":"padding-top:36px"};background:${g.value.style.chart.backgroundColor}`),id:h.value},[g.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${g.value.style.chart.backgroundColor};padding-bottom:24px`),onMouseleave:q},[e.createVNode(Xt,{config:{title:{cy:"donut-evolution-div-title",...g.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...g.value.style.chart.title.subtitle}}},null,8,["config"])],36)):e.createCommentVNode("",!0),g.value.userOptions.show&&l.value?(e.openBlock(),e.createBlock(Tt,{ref:"details",key:`user_options_${v.value}`,backgroundColor:g.value.style.chart.backgroundColor,color:g.value.style.chart.color,isPrinting:e.unref(w),isImaging:e.unref(U),uid:h.value,hasPdf:g.value.userOptions.buttons.pdf,hasImg:g.value.userOptions.buttons.img,hasXls:g.value.userOptions.buttons.csv,hasTable:g.value.userOptions.buttons.table,hasFullscreen:g.value.userOptions.buttons.fullscreen,isFullscreen:D.value,titles:{...g.value.userOptions.buttonTitles},chartElement:B.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(I),onGenerateCsv:z,onGenerateImage:e.unref(Q),onToggleTable:M},e.createSlots({_:2},[N.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,N.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,N.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,N.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(N.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,N.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:O,isFullscreen:ce})=>[e.renderSlot(N.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:O,isFullscreen:ce})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),class:e.normalizeClass({"vue-data-ui-fullscreen--on":D.value,"vue-data-ui-fulscreen--off":!D.value}),viewBox:`0 0 ${T.value.absoluteWidth} ${T.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${g.value.style.chart.backgroundColor};color:${g.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${h.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${g.value.style.chart.backgroundColor}${e.unref(Xe)[g.value.style.chart.layout.highlighter.opacity]}`},null,8,pz),e.createElementVNode("stop",{offset:"100%","stop-color":`${g.value.style.chart.layout.highlighter.color}${e.unref(Xe)[g.value.style.chart.layout.highlighter.opacity]}`},null,8,yz)],8,gz),e.createElementVNode("radialGradient",{id:`focus_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(At)(g.value.style.chart.backgroundColor)}00`},null,8,bz),e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF"+e.unref(Xe)[30]},null,8,kz),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(At)(g.value.style.chart.backgroundColor)}00`},null,8,Cz)],8,mz)]),g.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",wz,[e.createElementVNode("line",{x1:b.value.left,x2:b.value.left,y1:b.value.top,y2:b.value.top+T.value.height,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Bz),e.createElementVNode("line",{x1:b.value.left,x2:T.value.absoluteWidth-b.value.right,y1:T.value.absoluteHeight-b.value.bottom,y2:T.value.absoluteHeight-b.value.bottom,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xz),g.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Fz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("line",{x1:b.value.left+(ce+1)*W.value,x2:b.value.left+(ce+1)*W.value,y1:b.value.top,y2:T.value.absoluteHeight-b.value.bottom,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Nz))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),g.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||C.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[O.value>=le.value.min&&O.value<=le.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:b.value.left,x2:b.value.left-5,y1:O.y,y2:O.y,stroke:g.value.style.chart.layout.grid.stroke,"stroke-width":g.value.style.chart.layout.grid.strokeWidth},null,8,_z)):e.createCommentVNode("",!0),O.value>=le.value.min&&O.value<=le.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:b.value.left-8+g.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:O.y+g.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":g.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:g.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":g.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(g.value.style.chart.layout.dataLabels.prefix)+" "+e.toDisplayString(e.unref(Pv)(O.value)?O.value.toFixed(g.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(g.value.style.chart.layout.dataLabels.suffix),9,Sz)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),g.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":C.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.end-s.value.start,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[g.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(ce===0||ce===S.value-1)||!g.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":g.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":g.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:g.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${b.value.left+W.value*ce+W.value/2}, ${g.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+T.value.absoluteHeight-b.value.bottom+g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${g.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(ce)+Number(s.value.start)]??""),9,Lz)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",null,[g.value.style.chart.layout.line.show&&ce<oe.value.length-1&&![O.subtotal,oe.value[ce+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":c.value!==null||C.value}),x1:O.x,y1:O.y,x2:oe.value[ce+1].x,y2:oe.value[ce+1].y,stroke:g.value.style.chart.layout.line.stroke,"stroke-width":g.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,Ez)):e.createCommentVNode("",!0),O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Iz,[O.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:O.activeRadius,fill:g.value.style.chart.backgroundColor},null,8,$z)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||C.value})},[O.subtotal?(e.openBlock(),e.createElementBlock("g",Mz,[c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",Uz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,re=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(Qr)(re,{x:re.center.endX,y:re.center.endY},12,12,{x:O.x,y:O.y},!0),stroke:re.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Vz)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(re,ie)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(ct)(re,!0,0).anchor,x:e.unref(ct)(re,!0,3).x,y:e.unref(co)(re),fill:g.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(re.name)+": "+e.toDisplayString(X(re,O.donut))+" ("+e.toDisplayString(re.value===null?"-":te(re.value))+") ",9,Qz)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:O.x,cy:O.y,r:O.hoverRadius,fill:g.value.style.chart.backgroundColor},null,8,Tz)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||C.value})},[O.subtotal!==null?(e.openBlock(),e.createElementBlock("g",Oz,[O.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:O.x,cy:O.y,r:3,fill:g.value.style.chart.color},null,8,zz)):c.value!==null&&c.value===ce?(e.openBlock(),e.createElementBlock("g",Dz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donutHover,(re,ie)=>(e.openBlock(),e.createElementBlock("path",{d:re.arcSlice,fill:`${re.color}`,"stroke-width":1,stroke:g.value.style.chart.backgroundColor},null,8,Pz))),256))])):(e.openBlock(),e.createElementBlock("g",Hz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.donut,(re,ie)=>(e.openBlock(),e.createElementBlock("path",{d:re.arcSlice,fill:`${re.color}`,"stroke-width":.5,stroke:g.value.style.chart.backgroundColor},null,8,Rz))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":ce!==c.value&&c.value!==null||C.value})},[O.subtotal!==null&&g.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:O.x,y:c.value===O.index&&O.subtotal?O.y+g.value.style.chart.layout.dataLabels.fontSize/3:O.y-O.radius-g.value.style.chart.layout.dataLabels.fontSize+g.value.style.chart.layout.dataLabels.offsetY,"font-size":g.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:g.value.style.chart.layout.dataLabels.color},e.toDisplayString(te(O.subtotal)),9,Gz)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{x:b.value.left+ce*W.value,y:T.value.absoluteHeight-b.value.bottom-10,width:W.value,height:10,fill:c.value===O.index?`url(#hover_${h.value})`:"transparent",onClick:re=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,10,Wz))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(O,ce)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:b.value.left+ce*W.value,y:b.value.top,width:W.value,height:T.value.height,fill:"transparent",onMouseenter:re=>m(O),onMouseleave:q,onClick:re=>x(O,ce),class:e.normalizeClass({"donut-hover":c.value===O.index&&O.subtotal})},null,42,Kz))),256)),C.value?(e.openBlock(),e.createElementBlock("g",jz,[e.createElementVNode("rect",{rx:4,x:b.value.left,y:b.value.top,width:T.value.width,height:T.value.height,fill:g.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,Xz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:T.value.absoluteWidth-b.value.right-15,y1:b.value.top+5,x2:T.value.absoluteWidth-b.value.right-4,y2:b.value.top+15.5,"stroke-linecap":"round",stroke:g.value.style.chart.color,"stroke-width":"1.5"},null,8,qz),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:T.value.absoluteWidth-b.value.right-15,y2:b.value.top+5,x2:T.value.absoluteWidth-b.value.right-4,y1:b.value.top+15.5,"stroke-linecap":"round",stroke:g.value.style.chart.color,"stroke-width":"1.5"},null,8,Yz),e.createElementVNode("circle",{"data-cy-close":"",onClick:V,onKeypress:e.withKeys(V,["enter"]),cx:T.value.absoluteWidth-b.value.right-T.value.width/40,cy:b.value.top+T.value.height/30,r:T.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,Jz),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,O=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(Qr)(O,{x:T.value.centerX,y:T.value.centerY},12,12,!1,!1,1),stroke:O.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Zz)]))),256)),e.createElementVNode("circle",{cx:b.value.left+T.value.width/2,cy:b.value.top+T.value.height/2,r:T.value.height/7,fill:g.value.style.chart.backgroundColor},null,8,eD),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("path",{d:O.arcSlice,fill:`${O.color}`,"stroke-width":1,stroke:g.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,tD))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value.donutFocus,(O,ce)=>(e.openBlock(),e.createElementBlock("g",oD,[e.createElementVNode("text",{"text-anchor":e.unref(ct)(O,!0,20).anchor,x:e.unref(ct)(O,!0,10).x,y:e.unref(co)(O),fill:g.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(O.name)+": "+e.toDisplayString(X(O,A.value.donutFocus))+" ("+e.toDisplayString(O.value===null?"-":te(O.value))+") ",9,lD)]))),256)),e.createElementVNode("circle",{cx:b.value.left+T.value.width/2,cy:b.value.top+T.value.height/2,r:T.value.height/3.8,fill:`url(#focus_${h.value})`},null,8,aD),e.createElementVNode("circle",{cx:b.value.left+T.value.width/2,cy:b.value.top+T.value.height/2,r:T.value.height/7.7,fill:g.value.style.chart.backgroundColor},null,8,rD),e.createElementVNode("text",{"text-anchor":"middle",x:b.value.left+T.value.width/2,y:b.value.top+T.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:g.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(te(A.value.subtotal)),9,nD),g.value.style.chart.layout.grid.xAxis.dataLabels.values[A.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:b.value.left+6,y:b.value.top+g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":g.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:g.value.style.chart.layout.dataLabels.color},e.toDisplayString(g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(A.value.index)+Number(s.value.start)]),9,sD)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"svg",{svg:T.value},void 0,!0)],14,vz)):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"donutEvolution",style:{backgroundColor:g.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),S.value>1&&g.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Hs,{key:`slicer_${i.value}`,background:g.value.style.chart.zoom.color,borderColor:g.value.style.chart.backgroundColor,fontSize:g.value.style.chart.zoom.fontSize,useResetSlot:g.value.style.chart.zoom.useResetSlot,labelLeft:g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.start)]||"",labelRight:g.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s.value.end)-1]||"",textColor:g.value.style.chart.color,inputColor:g.value.style.chart.zoom.color,selectColor:g.value.style.chart.zoom.highlightColor,max:S.value,min:0,valueStart:s.value.start,valueEnd:s.value.end,start:s.value.start,"onUpdate:start":j[0]||(j[0]=O=>s.value.start=O),end:s.value.end,"onUpdate:end":j[1]||(j[1]=O=>s.value.end=O),onReset:u},{"reset-action":e.withCtx(({reset:O})=>[e.renderSlot(N.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:O})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"])):e.createCommentVNode("",!0),g.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:5,legendSet:J.value,config:ae.value,onClickMarker:j[2]||(j[2]=({legend:O})=>ge(O.uid))},{item:e.withCtx(({legend:O,index:ce})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:re=>ge(O.uid),style:e.normalizeStyle(`opacity:${f.value.includes(O.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(O.name)+": "+e.toDisplayString(Number(O.value.toFixed(g.value.style.chart.legend.roundingValue)).toLocaleString())+" ",1),f.value.includes(O.uid)?(e.openBlock(),e.createElementBlock("span",AD," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",uD," ("+e.toDisplayString(isNaN(O.value/ke.value)?"-":(O.value/ke.value*100).toFixed(g.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,iD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"legend",{legend:J.value},void 0,!0),l.value?(e.openBlock(),e.createBlock(lo,{key:6,hideDetails:"",config:{open:E.value.showTable,maxHeight:1e4,body:{backgroundColor:g.value.style.chart.backgroundColor,color:g.value.style.chart.color},head:{backgroundColor:g.value.style.chart.backgroundColor,color:g.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:Z.value.colNames,head:Z.value.head,body:Z.value.body,config:Z.value.config,title:`${g.value.style.chart.title.text}${g.value.style.chart.title.subtitle.text?` : ${g.value.style.chart.title.subtitle.text}`:""}`,onClose:j[3]||(j[3]=O=>E.value.showTable=!1)},{th:e.withCtx(({th:O})=>[e.createTextVNode(e.toDisplayString(O.name??O),1)]),td:e.withCtx(({td:O})=>[O.value===null?(e.openBlock(),e.createElementBlock("span",cD,"-")):(e.openBlock(),e.createElementBlock("b",dD,e.toDisplayString(isNaN(O.value)?"":g.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(O.value)&&O.value!==null?Number(O.value.toFixed(g.value.table.td.roundingValue)).toLocaleString():O)+e.toDisplayString(isNaN(O.value)?"":g.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(O.percentage&&!isNaN(O.percentage)?`(${Number(O.percentage.toFixed(g.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,fz))}},mg=vt(hD,[["__scopeId","data-v-d8dbd0c8"]]),fD=Object.freeze(Object.defineProperty({__proto__:null,default:mg},Symbol.toStringTag,{value:"Module"})),vD=["id"],gD=["xmlns","viewBox"],pD=["id"],yD=["stop-color"],mD=["stop-color"],bD=["x1","y1","x2","y2","stroke","stroke-width"],kD=["d","stroke","stroke-width"],CD=["stroke"],wD=["fill"],BD=["stroke"],xD=["fill"],FD=["stroke"],ND=["fill"],_D=["stroke"],SD=["fill"],LD=["stroke"],ED=["fill"],ID=["d","stroke","stroke-width","fill"],$D=["x1","y1","stroke"],MD=["cx","cy","fill","stroke"],UD=["fill","stroke"],VD=["y","fill","font-weight"],QD=["y","fill"],TD=["onClick"],OD={style:{"font-weight":"bold"}},zD=["innerHTML"],DD={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(t,{expose:o}){const a=t,{vue_ui_mood_radar:n}=ft(),r=e.computed(()=>!!a.dataset&&Object.keys(a.dataset).length);e.onMounted(()=>{xt(a.dataset)&&Ke({componentName:"VueUiMoodRadar",type:"dataset"})});const l=e.ref(it()),s=e.ref(null),u=e.ref(null),h=e.ref(null),f=e.computed(()=>{const te=Je({userConfig:a.config,defaultConfig:n});return te.theme?{...Je({userConfig:Nt.vue_ui_mood_radar[te.theme]||a.config,defaultConfig:te})}:te}),{isPrinting:c,isImaging:y,generatePdf:C,generateImage:A}=zt({elementId:l.value,fileName:f.value.style.chart.title.text||"vue-ui-mood-radar"}),B=e.ref({showTable:f.value.table.show}),v=e.computed(()=>({height:256,width:256})),i=e.computed(()=>Qo({plot:{x:128,y:v.value.height/2},radius:90,sides:5,rotation:11}));function g({centerX:te,centerY:he,apexX:le,apexY:H,proportion:P,key:X,value:q}){return{x:te+(le-te)*P,y:he+(H-he)*P,key:X,value:q}}const w=e.computed(()=>Math.max(...Object.values(a.dataset).map(te=>isNaN(te)?0:te))),U=e.computed(()=>Object.values(a.dataset).reduce((te,he)=>(isNaN(te)?0:te)+(isNaN(he)?0:he),0)),I=e.computed(()=>Object.keys(a.dataset).map((te,he)=>{const le=typeof a.dataset[te]!="number"||isNaN(a.dataset[te])?0:a.dataset[te];return{index:he,key:te,value:le,proportion:le/U.value,color:f.value.style.chart.layout.smileys.colors[te]}}).sort((te,he)=>he.key-te.key)),Q=e.computed(()=>r.value?(["1","2","3","4","5"].forEach(te=>{[null,void 0].includes(a.dataset[te])&&Ke({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:te})}),i.value.coordinates.map((te,he)=>{const le=g({centerX:v.value.width/2,centerY:v.value.height/2,apexX:te.x,apexY:te.y,proportion:I.value[he].value/w.value,key:I.value[he].key,value:I.value[he].value});return{...te,plots:le,key:I.value[he].key}})):[]),K=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:f.value.style.chart.legend.backgroundColor,color:f.value.style.chart.legend.color,fontSize:f.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:f.value.style.chart.legend.bold?"bold":""}));function E(te){te===h.value?h.value=null:h.value=te}const b=e.computed(()=>{const te=I.value.map(le=>({name:le.key,color:le.color})),he=I.value.map(le=>isNaN(le.value)?0:le.value);return{head:te,body:he}});function T(){e.nextTick(()=>{const te=b.value.head.map((H,P)=>[[H.name],[b.value.body[P]],[isNaN(b.value.body[P]/U.value)?"-":b.value.body[P]/U.value*100]]),he=[[f.value.style.chart.title.text],[f.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(te),le=eo(he);Zt({csvContent:le,title:f.value.style.chart.title.text||"vue-ui-mood-radar"})})}const Y=e.computed(()=>{const te=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',Number(U.value.toFixed(f.value.table.td.roundingValue)).toLocaleString(),"100%"],he=b.value.head.map((P,X)=>[{color:P.color,name:P.name},b.value.body[X].toFixed(f.value.table.td.roundingValue),isNaN(b.value.body[X]/U.value)?"-":(b.value.body[X]/U.value*100).toFixed(f.value.table.td.roundingPercentage)+"%"]),le={th:{backgroundColor:f.value.table.th.backgroundColor,color:f.value.table.th.color,outline:f.value.table.th.outline},td:{backgroundColor:f.value.table.td.backgroundColor,color:f.value.table.td.color,outline:f.value.table.td.outline},breakpoint:f.value.table.responsiveBreakpoint},H=[f.value.table.columnNames.series,f.value.table.columnNames.value,f.value.table.columnNames.percentage];return{head:te,body:he,config:le,colNames:H}});function $(){return I.value}function S(){B.value.showTable=!B.value.showTable}const W=e.ref(!1);function oe(te){W.value=te}return o({getData:$,generatePdf:C,generateCsv:T,generateImage:A,toggleTable:S}),(te,he)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${W.value?"vue-data-ui-wrapper-fullscreen":""} ${f.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:s,id:`${l.value}`,style:e.normalizeStyle(`font-family:${f.value.style.fontFamily};width:100%; text-align:center;${f.value.style.chart.title.text?"":"padding-top:36px"};background:${f.value.style.chart.backgroundColor}`)},[f.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${f.value.style.chart.backgroundColor}`)},[e.createVNode(Xt,{config:{title:{cy:"mood-radar-title",...f.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...f.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),f.value.userOptions.show&&r.value?(e.openBlock(),e.createBlock(Tt,{key:1,ref_key:"details",ref:u,backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color,isPrinting:e.unref(c),isImaging:e.unref(y),uid:l.value,hasPdf:f.value.userOptions.buttons.pdf,hasXls:f.value.userOptions.buttons.csv,hasImg:f.value.userOptions.buttons.img,hasTable:f.value.userOptions.buttons.table,hasFullscreen:f.value.userOptions.buttons.fullscreen,titles:{...f.value.userOptions.buttonTitles},chartElement:s.value,onToggleFullscreen:oe,onGeneratePdf:e.unref(C),onGenerateCsv:T,onGenerateImage:e.unref(A),onToggleTable:S},e.createSlots({_:2},[te.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,te.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,te.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,te.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(te.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,te.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:le,isFullscreen:H})=>[e.renderSlot(te.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:le,isFullscreen:H})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(We),viewBox:`0 0 ${v.value.width} ${v.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":W.value,"vue-data-ui-fulscreen--off":!W.value}),style:e.normalizeStyle(`overflow:visible;background:${f.value.style.chart.backgroundColor};color:${f.value.style.chart.color}`)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${l.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,yD),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(Lt)(f.value.style.chart.layout.dataPolygon.color,f.value.style.chart.layout.dataPolygon.gradient.intensity/100)}${e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]}`},null,8,mD)],8,pD)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.coordinates,le=>(e.openBlock(),e.createElementBlock("line",{x1:v.value.width/2,y1:v.value.height/2,x2:le.x,y2:le.y,stroke:f.value.style.chart.layout.grid.stroke,"stroke-width":f.value.style.chart.layout.grid.strokeWidth},null,8,bD))),256)),e.createElementVNode("path",{d:i.value.path,fill:"none",stroke:f.value.style.chart.layout.outerPolygon.stroke,"stroke-width":f.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,kD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,CD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[0]||(he[0]=le=>h.value=5),onMouseleave:he[1]||(he[1]=le=>h.value=null),cx:"128",cy:"25",r:"20",fill:h.value===5?f.value.style.chart.layout.smileys.colors[5]+"33":"transparent"},null,40,wD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,BD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[2]||(he[2]=le=>h.value=4),onMouseleave:he[3]||(he[3]=le=>h.value=null),cx:"227",cy:"95.5",r:"20",fill:h.value===4?f.value.style.chart.layout.smileys.colors[4]+"33":"transparent"},null,40,xD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,FD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[4]||(he[4]=le=>h.value=3),onMouseleave:he[5]||(he[5]=le=>h.value=null),cx:"190",cy:"213.5",r:"20",fill:h.value===3?f.value.style.chart.layout.smileys.colors[3]+"33":"transparent"},null,40,ND),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,_D),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[6]||(he[6]=le=>h.value=2),onMouseleave:he[7]||(he[7]=le=>h.value=null),cx:"65",cy:"213.5",r:"20",fill:h.value===2?f.value.style.chart.layout.smileys.colors[2]+"33":"transparent"},null,40,SD),e.createElementVNode("path",{fill:"none",stroke:f.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,LD),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:he[8]||(he[8]=le=>h.value=1),onMouseleave:he[9]||(he[9]=le=>h.value=null),cx:"29",cy:"95.5",r:"20",fill:h.value===1?f.value.style.chart.layout.smileys.colors[1]+"33":"transparent"},null,40,ED),e.createElementVNode("path",{d:e.unref(Hc)(Q.value.map(le=>le.plots)),stroke:f.value.style.chart.layout.dataPolygon.stroke,"stroke-width":f.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:f.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${l.value})`:f.value.style.chart.layout.dataPolygon.color+e.unref(Xe)[f.value.style.chart.layout.dataPolygon.opacity]},null,8,ID),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value.map(le=>le.plots),(le,H)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${h.value==le.key?"1":"0"}`)},[e.createElementVNode("line",{x1:le.x,y1:le.y,x2:128,y2:128,stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,$D),e.createElementVNode("circle",{cx:le.x,cy:le.y,fill:f.value.style.chart.layout.smileys.colors[le.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,MD),e.createElementVNode("circle",{cx:128,cy:128,fill:f.value.style.chart.layout.smileys.colors[le.key],r:"3",stroke:f.value.style.chart.backgroundColor,"stroke-width":.5},null,8,UD),e.createElementVNode("text",{x:128,y:["5",5].includes(le.key)?145:120,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":f.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(Number(le.value.toFixed(f.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()),9,VD),e.createElementVNode("text",{x:128,y:["5",5].includes(le.key)?163:102,fill:f.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(Number((le.value/U.value*100).toFixed(f.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString())+"%) ",9,QD)],4))),256)),e.renderSlot(te.$slots,"svg",{svg:v.value},void 0,!0)],14,gD)):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Et,{key:3,config:{type:"radar",style:{backgroundColor:f.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),f.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Zo,{key:4,legendSet:I.value,config:K.value,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:le,index:H})=>[e.createElementVNode("div",{onClick:()=>E(le.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[le.key==1?(e.openBlock(),e.createBlock(bt,{key:0,strokeWidth:1,name:"moodSad",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==2?(e.openBlock(),e.createBlock(bt,{key:1,strokeWidth:1,name:"moodFlat",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==3?(e.openBlock(),e.createBlock(bt,{key:2,strokeWidth:1,name:"moodNeutral",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==4?(e.openBlock(),e.createBlock(bt,{key:3,strokeWidth:1,name:"smiley",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),le.key==5?(e.openBlock(),e.createBlock(bt,{key:4,strokeWidth:1,name:"moodHappy",stroke:f.value.style.chart.layout.smileys.colors[le.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",OD,e.toDisplayString(le.value),1),e.createTextVNode(" ("+e.toDisplayString((isNaN(le.proportion)?0:le.proportion*100).toFixed(f.value.style.chart.legend.roundingPercentage))+"%) ",1)],8,TD)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(te.$slots,"legend",{legend:I.value},void 0,!0),r.value?(e.openBlock(),e.createBlock(lo,{key:5,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color},head:{backgroundColor:f.value.style.chart.backgroundColor,color:f.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(yo,{colNames:Y.value.colNames,head:Y.value.head,body:Y.value.body,config:Y.value.config,title:`${f.value.style.chart.title.text}${f.value.style.chart.title.subtitle.text?` : ${f.value.style.chart.title.subtitle.text}`:""}`,onClose:he[10]||(he[10]=le=>B.value.showTable=!1)},{th:e.withCtx(({th:le})=>[e.createElementVNode("div",{innerHTML:le,style:{display:"flex","align-items":"center"}},null,8,zD)]),td:e.withCtx(({td:le})=>[e.createTextVNode(e.toDisplayString(le.name||le),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,vD))}},bg=vt(DD,[["__scopeId","data-v-81cc3908"]]),PD=Object.freeze(Object.defineProperty({__proto__:null,default:bg},Symbol.toStringTag,{value:"Module"})),Ou=t=>(e.pushScopeId("data-v-30081550"),t=t(),e.popScopeId(),t),HD=["id"],RD=["xmlns","viewBox"],GD=["id"],WD=["stop-color"],KD=["stop-color"],jD=["id"],XD=["stop-color"],qD=["stop-color"],YD=["id"],JD=["stop-color"],ZD=["stop-color"],eP=["id"],tP=["stop-color"],oP=["stop-color"],lP=["stop-color"],aP={key:0},rP=["id"],nP=["stop-color"],sP=["stop-color"],iP=["id"],uP=["stop-color"],AP=["stop-color"],cP=["id"],dP=["stop-color"],hP=["stop-color"],fP=["id"],vP=Ou(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),gP=Ou(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),pP=[vP,gP],yP=["x","y","font-size","font-weight","fill"],mP=["x","y"],bP=["d","stroke"],kP=["d","stroke"],CP={key:3},wP={key:0},BP=["stroke-dasharray","d","stroke","stroke-width"],xP=["stroke-dasharray","d","stroke","stroke-width"],FP=["stroke-dasharray","d","stroke","stroke-width"],NP=["stroke-dasharray","d","stroke","stroke-width"],_P={key:1},SP=["d","stroke","stroke-width","fill"],LP=["d","stroke","stroke-width","fill"],EP=["d","stroke","stroke-width","fill"],IP={key:2},$P=["d","fill","onMouseenter","onClick"],MP=["d","fill","onMouseenter","onClick"],UP=["d","fill","onMouseenter","onClick"],VP=["d","onMouseenter","onClick"],QP=["d"],TP=["d","stroke"],OP=["onClick"],zP=["stroke","d"],DP=["cx","cy","fill","stroke"],PP=["x","y","width","height"],HP={key:1},RP=["d","stroke"],GP=["d","fill","stroke"],WP=["id"],KP=["stop-color"],jP=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),XP=["stop-color"],qP=["cx","cy","fill"],YP=["cx","cy","fill"],JP={key:0},ZP=["text-anchor","x","y","fill","font-size"],eH=["text-anchor","x","y","fill","font-size"],tH={key:2},oH=["d","fill","stroke"],lH={key:4},aH={key:0},rH=["stroke-dasharray","d","stroke","stroke-width"],nH=["stroke-dasharray","d","stroke","stroke-width"],sH=["stroke-dasharray","d","stroke","stroke-width"],iH=["stroke-dasharray","d","stroke","stroke-width"],uH=["d","stroke","stroke-width","fill"],AH=["d","stroke","stroke-width","fill"],cH={key:1},dH=["onClick"],hH=["id"],fH=["stop-color"],vH=["stop-color"],gH=["id"],pH=["stop-color"],yH=["stop-color"],mH=["stop-color"],bH=["stop-color"],kH=["stop-color"],CH=["onMouseenter","onClick","d","fill"],wH=["onMouseenter","onClick","d"],BH=["onMouseenter","onClick","d","fill"],xH=["onClick"],FH=["stroke","d"],NH=["cx","cy","fill","stroke"],_H=["x","y","width","height"],SH={key:1},LH=["d","stroke"],EH=["d","fill","stroke"],IH=["id"],$H=["stop-color"],MH=Ou(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),UH=["stop-color"],VH=["cx","cy","fill"],QH=["cx","cy","fill"],TH={key:0},OH=["text-anchor","x","y","fill","font-size"],zH=["text-anchor","x","y","fill","font-size"],DH={key:2},PH=["d","fill","stroke"],HH=["innerHTML"],RH={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(t,{expose:o,emit:a}){const n=t,{vue_ui_3d_bar:r}=ft(),l=e.computed(()=>!!n.dataset&&Object.keys(n.dataset).length),s=e.ref(it()),u=e.ref(null),h=e.ref(null),f=e.ref(!1),c=e.computed(()=>{const X=Je({userConfig:n.config,defaultConfig:r});return X.theme?{...Je({userConfig:Nt.vue_ui_3d_bar[X.theme]||n.config,defaultConfig:X}),customPalette:Pt[X.theme]||Me}:X}),{isPrinting:y,isImaging:C,generatePdf:A,generateImage:B}=zt({elementId:`3d_bar_${s.value}`,fileName:c.value.style.chart.title.text||"vue-ui-3d-bar"}),v=e.computed(()=>so(c.value.customPalette)),i=e.ref({showTable:c.value.table.show}),g=e.computed(()=>n.dataset.series&&n.dataset.series.length),w=e.computed(()=>({height:c.value.style.chart.box.dimensions.height,width:c.value.style.chart.box.dimensions.width,absoluteWidth:c.value.style.chart.box.dimensions.width*(g.value?2:1),top:c.value.style.chart.box.dimensions.top,bottom:c.value.style.chart.box.dimensions.bottom,left:c.value.style.chart.box.dimensions.left,right:c.value.style.chart.box.dimensions.right,perspective:c.value.style.chart.box.dimensions.perspective})),U=e.computed(()=>{if(g.value){const X=n.dataset.series.map(x=>x.value||0).reduce((x,V)=>x+V,0),q=n.dataset.series.map((x,V)=>({...x,id:it(),proportion:(x.value||0)/X,color:At(x.color)||v.value[V]||Me[V]||Me[V%Me.length],breakdown:x.breakdown?x.breakdown.sort((J,ke)=>ke.value-J.value):null})).sort((x,V)=>V.value-x.value),m=[];let _=0;for(let x=0;x<q.length;x+=1)m.push({...q[x],fill:K(_,q[x].proportion,q[x].breakdown,q[x].color)}),_+=q[x].proportion;return m}return null}),I=e.computed(()=>({right:`M${w.value.width/2},${w.value.top} ${w.value.width-w.value.right}, ${w.value.top+w.value.perspective} ${w.value.width-w.value.right},${w.value.height-w.value.bottom-w.value.perspective} ${w.value.width/2},${w.value.height-w.value.bottom}`,left:`M${w.value.width/2},${w.value.top} ${w.value.left},${w.value.top+w.value.perspective} ${w.value.left},${w.value.height-w.value.bottom-w.value.perspective} ${w.value.width/2},${w.value.height-w.value.bottom}`,side:`M${w.value.width/2},${w.value.height-w.value.bottom} ${w.value.width/2},${w.value.top+w.value.perspective*2}`,topSides:`M${w.value.left},${w.value.top+w.value.perspective} ${w.value.width/2},${w.value.top+w.value.perspective*2} ${w.value.width-w.value.right},${w.value.top+w.value.perspective}`,tubeTop:`M${w.value.left},${w.value.top+w.value.perspective} C ${w.value.left},${w.value.top-w.value.perspective/3} ${w.value.width-w.value.right},${w.value.top-w.value.perspective/3} ${w.value.width-w.value.right},${w.value.top+w.value.perspective} C ${w.value.width-w.value.right},${w.value.top+w.value.perspective*2.3} ${w.value.left},${w.value.top+w.value.perspective*2.3} ${w.value.left},${w.value.top+w.value.perspective}`,tubeLeft:`M${w.value.left},${w.value.top+w.value.perspective} ${w.value.left},${w.value.height-w.value.bottom-w.value.perspective}`,tubeRight:`M${w.value.width-w.value.right},${w.value.top+w.value.perspective} ${w.value.width-w.value.right},${w.value.height-w.value.bottom-w.value.perspective}`,tubeBottom:`M${w.value.width-w.value.right},${w.value.height-w.value.bottom-w.value.perspective} C ${w.value.width-w.value.right},${w.value.height} ${w.value.left},${w.value.height} ${w.value.left},${w.value.height-w.value.bottom-w.value.perspective}`})),Q=e.ref(c.value.style.chart.animation.use?0:n.dataset.percentage);e.onMounted(()=>{xt(n.dataset)?Ke({componentName:"VueUi3dBar",type:"dataset"}):n.dataset.series?n.dataset.series.forEach((x,V)=>{Wt({datasetObject:x,requiredAttributes:["name","value"]}).forEach(J=>{Ke({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:J,index:V})}),x.breakdown&&x.breakdown.forEach((J,ke)=>{Wt({datasetObject:J,requiredAttributes:["name","value"]}).forEach(ae=>{Ke({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:ae,index:`${V} - ${ke}`})})})}):Wt({datasetObject:n.dataset,requiredAttributes:["percentage"]}).forEach(x=>{Ke({componentName:"VueUi3dBar",type:"datasetAttribute",property:x})});let X=0,q=c.value.style.chart.animation.speed,m=.005*c.value.style.chart.animation.acceleration;function _(){Q.value+=q+X,X+=m,Q.value<n.dataset.percentage?requestAnimationFrame(_):Q.value=n.dataset.percentage}c.value.style.chart.animation.use&&(Q.value=0,_())});function K(X,q,m,_){const x=w.value.height-w.value.bottom-w.value.top-w.value.perspective*2,{width:V,height:J,bottom:ke,right:ae,left:ge,perspective:Z}=w.value,ee=ke+x*X,z=J-ee-Z-x*q/2,D=z>w.value.height/2?"top":"bottom",fe=64,M=!!m;let N=null,j=null;return M&&(m=m.map((O,ce)=>({...O,value:O.value||0,color:Ll(_,ce/m.length)})),N=kl({series:m},V+w.value.absoluteWidth/4-14,D==="top"?z-fe:z+fe,28,28,1.99999,2,1,360,105.25,14),j=kl({series:m},V-ae+20,J-ee-Z-x*q/2,6,6,1.99999,2,1,360,105.25,6)),{donut:N,miniDonut:j,sidePointer:{x:V-ae,y:J-ee-Z-x*q/2,topY:J-ee-Z-x*q,height:x*q},apexBottom:{y:J-ee,x:V/2},apexTop:{y:J-ee-x*q,x:V/2},right:`M${V/2},${J-ee} ${V/2},${J-ee-x*q} ${V-ae},${J-ee-Z-x*q} ${V-ae},${J-ee-Z}Z`,left:`M${V/2},${J-ee} ${V/2},${J-ee-x*q} ${ge}, ${J-ee-Z-x*q} ${ge},${J-ee-Z}Z`,liningTop:`M${ge},${J-ee-Z-x*q} ${V/2},${J-ee-x*q} ${V-ae},${J-ee-Z-x*q}`,liningTopShade:`M${ge},${J-ee-Z-x*q-.5} ${V/2},${J-ee-x*q-.5} ${V-ae},${J-ee-Z-x*q-.5}`,top:`M${V/2},${J-ee-x*q} ${ge},${J-ee-Z-x*q} ${V/2},${J-ee-Z*2-x*q} ${V-ae},${J-ee-Z-x*q} Z`,tubeTop:`M${ge},${J-ee-x*q-Z} C ${ge},${J-ee-x*q-Z*2.5} ${V-ae},${J-ee-x*q-Z*2.5} ${V-ae},${J-ee-x*q-Z} C ${V-ae},${J-ee-x*q+Z/2} ${ge},${J-ee-x*q+Z/2} ${ge},${J-ee-x*q-Z}`,bottomTubeTop:`M ${V-ae-.5},${J-ee-Z} C ${V-ae-.5},${J-ee+Z/2} ${ge},${J-ee+Z/2} ${ge+.5},${J-ee-Z}`,tubeBody:`M
705
705
  ${ge},${J-ee-x*q-Z}
706
706
  C ${ge},${J-ee-x*q+Z/2}
707
707
  ${V-ae},${J-ee-x*q+Z/2}