=x&&b.call(e,x,D,A,f,c),m==k-1&&(x=a.transform(za,1),0<=x&&1>=x&&b.call(e,x,D,A,f,c))),(y=q(p)?p[m]:p)&&0<=t&&1>=t&&lD(this,d,t,m,c,!0,h);this.labels().X()}this.title().aa(!1);
this.labels().aa(!1);this.Qa().aa(!1);this.ka().aa(!1);this.Ha().aa(!1);return this};g.remove=function(){this.Ia&&this.Ia.remove();this.b&&this.b.parent(null);this.ka().remove();this.Ha().remove();this.Aa&&this.Aa.remove();this.pf&&this.pf.remove()};
g.J=function(){var a=cw.F.J.call(this);a.title=this.title().J();a.labels=this.labels().J();a.minorLabels=this.Qa().J();a.ticks=this.ka().J();a.minorTicks=this.Ha().J();a.stroke=Ur(this.stroke());a.staggerMode=this.Ij();a.staggerLines=this.$t();a.staggerMaxLines=this.au();a.width=this.width();this.w&&(a.orientation=this.w);a.drawFirstLabel=this.of();a.drawLastLabel=this.qe();a.overlapMode=this.pn();return a};
g.ba=function(a){cw.F.ba.call(this,a);this.title(a.title);this.labels().Y(a.labels);this.Qa().Y(a.minorLabels);this.ka(a.ticks);this.Ha(a.minorTicks);this.Ij(a.staggerMode);this.$t(a.staggerLines);this.au(a.staggerMaxLines);this.stroke(a.stroke);this.width(a.width);this.orientation(a.orientation);this.of(a.drawFirstLabel);this.qe(a.drawLastLabel);this.pn(a.overlapMode)};
g.ca=function(){cw.F.ca.call(this);this.Vf&&nu(this.Vf,this.Gq,this);delete this.Vf;this.ta=this.Ia=this.nn=this.mn=null;fe(this.b);this.pf=this.Aa=this.lh=this.og=this.Kg=this.b=null};cw.prototype.staggerMode=cw.prototype.Ij;cw.prototype.staggerLines=cw.prototype.$t;cw.prototype.staggerMaxLines=cw.prototype.au;cw.prototype.title=cw.prototype.title;cw.prototype.labels=cw.prototype.labels;cw.prototype.minorLabels=cw.prototype.Qa;cw.prototype.ticks=cw.prototype.ka;cw.prototype.minorTicks=cw.prototype.Ha;
cw.prototype.stroke=cw.prototype.stroke;cw.prototype.orientation=cw.prototype.orientation;cw.prototype.scale=cw.prototype.scale;cw.prototype.width=cw.prototype.width;cw.prototype.getRemainingBounds=cw.prototype.Bb;cw.prototype.drawFirstLabel=cw.prototype.of;cw.prototype.drawLastLabel=cw.prototype.qe;cw.prototype.overlapMode=cw.prototype.pn;cw.prototype.isHorizontal=cw.prototype.re;function mD(){cw.call(this)}F(mD,cw);mD.prototype.X=function(){Kz(this.labels());Kz(this.Qa());return mD.F.X.call(this)};E("anychart.axes.linear",function(){var a=new mD;a.Y(xt().standalones.linearAxis);return a});mD.prototype.padding=mD.prototype.padding;mD.prototype.draw=mD.prototype.X;mD.prototype.parentBounds=mD.prototype.ea;mD.prototype.container=mD.prototype.I;function pw(){L(this);Z.call(this);this.sn=[];this.tn=[];this.qf=ti();Sv(this,this.qf);N(this,this.qf);this.b=J|900;this.aa(!1)}F(pw,Z);g=pw.prototype;g.la=Z.prototype.la|J|896;g.ma=Z.prototype.ma;g.qf=null;g.Aa=null;g.rg=null;g.Mh=null;g.Lh=null;g.rl=null;g.ql="noOverlap";g.Kb=NaN;g.Jq=!0;g.Kq=!0;g.sn=null;g.tn=null;g.labels=function(a){this.Aa||(this.Aa=new zu,this.Aa.hb(this),U(this.Aa,this.KB,this),N(this,this.Aa));return l(a)?(!C(a)||"enabled"in a||(a.enabled=!0),this.Aa.Y(a),this):this.Aa};
g.KB=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=128,c=K);nD(this);H(this,b,c)};g.Qa=function(a){this.rg||(this.rg=new zu,this.rg.hb(this),U(this.rg,this.LB,this),N(this,this.rg));return l(a)?(!C(a)||"enabled"in a||(a.enabled=!0),this.rg.Y(a),this):this.rg};g.LB=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=128,c=K);nD(this);H(this,b,c)};g.ka=function(a){this.Mh||(this.Mh=new Uv,this.Mh.hb(this),U(this.Mh,this.NB,this),N(this,this.Mh));return l(a)?(this.Mh.Y(a),this):this.Mh};
g.NB=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=J|260,c=K);nD(this);H(this,b,c)};g.Ha=function(a){this.Lh||(this.Lh=new Uv,this.Lh.hb(this),U(this.Lh,this.IF,this),N(this,this.Lh));return l(a)?(this.Lh.Y(a),this):this.Lh};g.IF=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=256,c=K);nD(this);H(this,b,c)};
g.stroke=function(a,b,c,d,e){if(l(a)){a=lc.apply(null,arguments);if(this.g!=a){var f=C(this.g)?this.g.thickness||1:1,h=C(a)?a.thickness||1:1;this.g=a;h==f?H(this,J,K):(nD(this),H(this,this.b,K|8))}return this}return this.g};g.scale=function(a){return l(a)?(this.rl!=a&&(this.rl=a,U(this.rl,this.MB,this),nD(this),H(this,this.b,K|8)),this):this.rl};g.MB=function(a){Y(a,2)&&(nD(this),H(this,this.b,K|8))};g.di=function(){H(this,this.b,K|8)};
g.Xj=function(a){return l(a)?(a=Bh(null===a||isNaN(+a)?0:+a),this.ke!=a&&(this.ke=a,nD(this),H(this,this.b,K|8)),this):this.ke};function nD(a){a.G&&(a.G.length=0);a.sn.length=0;a.tn.length=0;a.D=null}
function oD(a){a:{if(!a.D||X(a,512)){if("allowOverlap"==a.ql){a=!1;break a}var b=a.scale(),c=[],d=[];if(b){var e,f,h=-1,k=-1,m=-1,n=b.ka().get(),p=n.length,r,t,w,x,y,z=-1,D=a.labels().enabled();if(b instanceof bA){var A=b.Ha().get();f=e=0;for(var I=A.length,M,W=a.Qa().enabled();e=w&&a.Wj()||
1<=w&&a.Kh()?k=z:0w&&(k=z)),z++;t<=M&&e=w&&a.Wj()||1<=w&&a.Kh()?(m=f,d.push(!0)):0w?(m=f,d.push(!0)):d.push(!1))):d.push(!1),f++)}W||(d=!1)}else if(b instanceof
Ed)for(e=0;ec?(p-=k/2,r-=n/2):90==c?r-=n/2:90c?(r-=n/2,p+=k/2):180==c?p+=k/2:180c?(r+=n/2,p+=k/2):270==c?r+=n/2:270c?p-=k/2:45==c?(p-=k/2,r-=n/2):45c?r-=n/2:90==c?r-=n/2:90c?r-=n/2:135==c?(r-=n/2,p+=k/2):135c?p+=k/2:180==c?p+=k/2:180c?p+=k/2:225==c?(r+=n/2,p+=k/2):225c?r+=n/2:270==c?r+=n/2:270c?r+=n/2:315==
c?(r+=n/2,p-=k/2):315=b){var c=this.ea(),c=c.clone().round(),d=this.anchor();a.Va(1,0,0,1,0,0);a.width(null);a.height(null);var e=!fa(this.width()),f=!fa(this.height()),h=a.za(),k=e?Math.ceil(T(this.width(),c.width)):h.width;e&&a.width(k);
h=a.za();c=f?Math.ceil(T(this.height(),c.height)):h.height;f&&a.height(c);var m=this.ea(),m=m.clone().round();if(this.vn())switch(e=Math.round(m.Ta()+m.height-b*m.height),1==b?e-=-.5:e+=-.5,this.wb){case "left":f=m.Ka();break;case "right":f=m.Ja();break;default:f=m.Ka()+m.width/2}else switch(f=Math.round(m.Ka()+b*m.width),1==b?f+=-.5:f-=-.5,this.wb){case "top":e=m.Ta();break;case "bottom":e=m.ya();break;default:e=m.Ta()+m.height/2}b=new yi(f,e);f=G(this.D);f=isNaN(f)?this.vn()?0:-90:f;e=ai(Ha(f),
0,0);h=nn(h,e);e=Hs(oi(0,0,h.width,h.height),d);b.x-=e.x;b.y-=e.y;e=T(this.offsetX(),k);m=T(this.offsetY(),c);Ms(b,d,e,m);this.Hb(a,!0);a.x(b.x+h.width/2-k/2).y(b.y+h.height/2-c/2).Wk(f,"center");H(this,2)}else this.remove(),V(this,2);V(this,4)}X(this,2)&&(a=this.I(),vD(this).parent(a),V(this,2));return this};g.remove=function(){vD(this).parent(null)};function vD(a){a.B||(a.B=Ap(),a.B.Kc("aria-hidden","true"),N(a,a.B));return a.B}g.ca=function(){fe(this.B);this.w=this.o=this.B=null;sD.F.ca.call(this)};
g.J=function(){var a=sD.F.J.call(this);a.anchor=this.anchor();a.align=this.un();this.K&&(a.layout=this.K);a.rotation=this.rotation();a.offsetX=this.offsetX();a.offsetY=this.offsetY();a.text=this.text();a.height=this.height();a.width=this.width();return a};
g.ba=function(a){sD.F.ba.call(this,a);this.anchor(a.anchor);this.un(a.align);"layout"in a&&a.layout&&this.ul(a.layout);this.rotation(a.rotation);this.offsetX(a.offsetX);this.offsetY(a.offsetY);this.text(a.text);this.height(a.height);this.width(a.width);"axis"in a&&(a=a.axis,v(a)?this.o&&this.Mq(this.o.Lo(a)):a instanceof cw&&this.Mq(a))};function wD(a){sD.call(this);tD(this,a);this.O=0}F(wD,sD);g=wD.prototype;g.ma=sD.prototype.ma;g.la=sD.prototype.la;g.scale=function(a){return l(a)?(yd(500),this):tD(this)};g.ul=function(a){return l(a)?("horizontal"==a&&yd(501),this):"vertical"};g.value=function(a){return uD(this,a)};g.J=function(){var a=wD.F.J.call(this);a.value=this.value();return a};g.ba=function(a){wD.F.ba.call(this,a);this.value(a.value)};wD.prototype.value=wD.prototype.value;wD.prototype.scale=wD.prototype.scale;
wD.prototype.anchor=wD.prototype.anchor;wD.prototype.align=wD.prototype.un;wD.prototype.layout=wD.prototype.ul;wD.prototype.rotation=wD.prototype.rotation;wD.prototype.offsetX=wD.prototype.offsetX;wD.prototype.offsetY=wD.prototype.offsetY;wD.prototype.text=wD.prototype.text;wD.prototype.height=wD.prototype.height;wD.prototype.width=wD.prototype.width;wD.prototype.isHorizontal=wD.prototype.vn;function xD(){sD.call(this)}F(xD,sD);g=xD.prototype;g.ma=sD.prototype.ma;g.la=sD.prototype.la;g.scale=function(a){return tD(this,a)};g.value=function(a){return uD(this,a)};g.J=function(){var a=xD.F.J.call(this);a.value=this.value();return a};g.ba=function(a){xD.F.ba.call(this,a);this.value(a.value)};xD.prototype.value=xD.prototype.value;xD.prototype.scale=xD.prototype.scale;xD.prototype.axis=xD.prototype.Mq;xD.prototype.anchor=xD.prototype.anchor;xD.prototype.align=xD.prototype.un;
xD.prototype.layout=xD.prototype.ul;xD.prototype.rotation=xD.prototype.rotation;xD.prototype.offsetX=xD.prototype.offsetX;xD.prototype.offsetY=xD.prototype.offsetY;xD.prototype.text=xD.prototype.text;xD.prototype.height=xD.prototype.height;xD.prototype.width=xD.prototype.width;xD.prototype.isHorizontal=xD.prototype.vn;function yD(){sD.call(this)}F(yD,xD);E("anychart.axisMarkers.text",function(){var a=new yD;a.Y(xt().standalones.textAxisMarker);return a});yD.prototype.draw=yD.prototype.X;yD.prototype.parentBounds=yD.prototype.ea;yD.prototype.container=yD.prototype.I;function zD(a,b){pC.call(this,a,b);this.ef=this.P=this.W=this.ia=this.ga=this.jc=this.O=this.ng=this.Xd=this.ud=null;this.zj=void 0;this.ra=null;this.aq=this.bq=.01;this.lj=this.bf=!1;this.ff=this.gg=this.fg=this.gf=this.eg=this.hf=null;this.Yp=this.$p=this.Uc=!1;this.Na=this.Qc=null;this.sm=[];this.rm=0;this.Zi=[];this.hj=[];this.Le=[];this.j=new CB;U(this.j,this.dD,this);N(this,this.j);this.Ib=new kC;L(this.Ib);this.Ib.scale(this.j);this.Ib.zIndex(AD);this.Ib.aa(!1);N(this,this.Ib);var c=this.g;
l(this)&&c.P!=this&&(c.P=this,H(c,256,2))}F(zD,pC);zD.prototype.la=pC.prototype.la|512;var AD=80;g=zD.prototype;g.dD=function(a){Y(a,4)&&H(this,512,K)};g.Jw=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.df!=f&&(this.df=f,H(this,J,K));return this}return this.df||"none"};g.Px=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Np!=k&&(this.Np=k,H(this,J,K));return this}return this.Np||"none"};
g.Qx=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Op!=f&&(this.Op=f,H(this,J,K));return this}return this.Op||"none"};g.Rx=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Pp!=k&&(this.Pp=k,H(this,J,K));return this}return this.Pp||"none"};g.Sx=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Rm!=f&&(this.Rm=f,H(this,J,K));return this}return this.Rm||"none"};
g.Nx=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Ah!=k&&(this.Ah=k,H(this,J,K));return this}return this.Ah||"none"};g.Ox=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Bh!=f&&(this.Bh=f,H(this,J,K));return this}return this.Bh||"none"};g.Lx=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.yh!=k&&(this.yh=k,H(this,J,K));return this}return this.yh||"none"};
g.Mx=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.zh!=f&&(this.zh=f,H(this,J,K));return this}return this.zh||"none"};g.ow=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.tp!=k&&(this.tp=k,H(this,128,K));return this}return this.tp||"none"};g.rw=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Hp!=f&&(this.Hp=f,H(this,128,K));return this}return this.Hp||"none"};
g.tw=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Kp!=k&&(this.Kp=k,H(this,128,K));return this}return this.Kp||"none"};g.uw=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Lp!=f&&(this.Lp=f,H(this,128,K));return this}return this.Lp||"none"};g.Jy=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Zm!=k&&(this.Zm=k,H(this,128,K));return this}return this.Zm||"none"};
g.Ky=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.$m!=f&&(this.$m=f,H(this,128,K));return this}return this.$m||"none"};g.yy=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.$i!=k&&(this.$i=k,H(this,128,K));return this}return this.$i||"none"};g.zy=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.dj!=f&&(this.dj=f,H(this,128,K));return this}return this.dj||"none"};
g.Ey=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Xm!=k&&(this.Xm=k,H(this,128,K));return this}return this.Xm||"none"};g.Fy=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Ym!=f&&(this.Ym=f,H(this,128,K));return this}return this.Ym||"none"};g.Iw=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Mp!=k&&(this.Mp=k,H(this,128,K));return this}return this.Mp||"none"};
g.Be=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Vd!=f&&(this.Vd=f,H(this,64,K));return this}return this.Vd||"none"};g.gz=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.we!=k&&(this.we=k,H(this,128,K));return this}return this.we||"none"};g.hz=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.xe!=f&&(this.xe=f,H(this,128,K));return this}return this.xe||"none"};
g.HG=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.wj!=f&&(this.wj=f,H(this,128,K));return this}return this.wj||"none"};g.bw=function(a){if(l(a)){var b=lc.apply(null,arguments),c=Os(this.af),d=Os(b);if(this.af!=b||d!=c)this.af=b,H(this,J,K);return this}return this.af};g.hx=function(a){return l(a)?(this.$z=a,this):this.$z||{}};g.jx=function(a){return l(a)?(this.aA=a,this):this.aA||{}};g.lx=function(a){return l(a)?(this.bA=a,this):this.bA||{}};
g.wy=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.Zi[c];e||(e=new dw(this.j),e.Y(this.hx()),this.Zi[c]=e,N(this,e),U(e,this.ut,this),H(this,512,K));return l(d)?(e.Y(d),this):e};g.Qy=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.hj[c];e||(e=new ew(this.j),e.Y(this.jx()),this.hj[c]=e,N(this,e),U(e,this.ut,this),H(this,512,K));return l(d)?(e.Y(d),this):e};
g.Jz=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.Le[c];e||(e=new wD(this.j),e.Y(this.lx()),this.Le[c]=e,N(this,e),U(e,this.ut,this),H(this,512,K));return l(d)?(e.Y(d),this):e};g.ut=function(){H(this,512,K)};g.zr=function(a){return l(a)&&(a=+a||0,this.bq!=a)?(this.bq=a,H(this,512,K),this):this.bq};g.yr=function(a){return l(a)&&(a=+a||0,this.aq!=a)?(this.aq=a,H(this,512,K),this):this.aq};
g.labels=function(a){this.ud||(this.ud=new zu,this.ud.hb(this));if(l(a)){var b=!0;a instanceof zu?this.ud.Y(a.J()):C(a)?this.ud.Y(a):Ns(a)?this.ud.enabled(!1):b=!1;b&&H(this,64,K);return this}return this.ud};g.uc=function(a){this.Xd||(this.Xd=new cx,this.Xd.hb(this));if(l(a)){var b=!0;a instanceof cx?this.Xd.Y(a.J()):C(a)?this.Xd.Y(a):Ns(a)?this.Xd.enabled(!1):b=!1;b&&H(this,64,K);return this}return this.Xd};g.sw=function(a){return l(a)&&this.bf!=a?(this.bf=a,H(this,64,K),this):this.bf};
function BD(a){a.ng||(a.ng=vC(a).xa(),a.ng.zIndex(6),a.ng.stroke(a.af),N(a,a.ng));return a.ng}function CD(a){a.O||(a.O=new DD(yC(a)),a.O.zIndex(0).hc("ew-resize"),a.N.pa(a.O,"mousedown",function(a){a.stopPropagation()}),a.O.$b("mousedown",a.zE,!1,a),N(a,a.O));return a.O}function ED(a){a.jc||(a.jc=new DD(yC(a)),a.jc.zIndex(10),a.N.pa(a.jc,"mousedown",function(a){a.stopPropagation()}),a.jc.$b("mousedown",a.EE,!1,a),N(a,a.jc));return a.jc}
function FD(a){a.ga||(a.ga=new DD(yC(a)),a.ga.zIndex(20).hc("col-resize"),a.ga.b=CD(a),a.N.pa(a.ga,"mousedown",function(a){a.stopPropagation()}),a.ga.$b("mousedown",a.xE,!1,a),N(a,a.ga));return a.ga}function GD(a){a.ia||(a.ia=new DD(yC(a)),a.ia.zIndex(30).hc("col-resize"),a.ia.b=CD(a),a.N.pa(a.ia,"mousedown",function(a){a.stopPropagation()}),a.ia.$b("mousedown",a.HE,!1,a),N(a,a.ia));return a.ia}
function HD(a){a.W||(a.W=new DD(yC(a)),a.W.zIndex(40).hc("move"),a.N.pa(a.W,"mousedown",function(a){a.stopPropagation()}),a.W.$b("mousedown",a.JE,!1,a),N(a,a.W));return a.W}function ID(a){a.P||(a.P=new DD(yC(a)),a.P.zIndex(50).hc("move"),a.N.pa(a.P,"mousedown",function(a){a.stopPropagation()}),a.P.$b("mousedown",a.wE,!1,a),N(a,a.P));return a.P}function JD(a){a.ef||(a.ef=yC(a).xa(),a.ef.stroke(a.df).zIndex(60),N(a,a.ef));return a.ef}
function KD(a){CD(a).clear().Va(1,0,0,1,0,0);ED(a).clear().Va(1,0,0,1,0,0);GD(a).clear().Va(1,0,0,1,0,0);FD(a).clear().Va(1,0,0,1,0,0);ID(a).clear().Va(1,0,0,1,0,0);HD(a).clear().Va(1,0,0,1,0,0);JD(a).clear();a.qb().enabled(!0)}g.zE=function(a){this.hf=new LD(CD(this));N(this,this.hf);this.hf.pa("start",this.AE,!1,this);this.hf.pa("drag",this.BE,!1,this);this.hf.pa("end",this.CE,!1,this);this.hf.Ag(a.jf)};
g.EE=function(a){this.eg=new MD(ED(this));N(this,this.eg);this.eg.pa("start",this.FE,!1,this);this.eg.pa("drag",this.GE,!1,this);this.eg.pa("end",this.DE,!1,this);this.eg.Ag(a.jf)};g.xE=function(a){this.gf=new ND(FD(this),!0);N(this,this.gf);this.gf.pa("start",this.yE,!1,this);this.gf.pa("drag",this.Ux,!1,this);this.gf.pa("end",this.Tx,!1,this);this.gf.Ag(a.jf)};
g.HE=function(a){this.fg=new ND(GD(this),!1);N(this,this.fg);this.fg.pa("start",this.IE,!1,this);this.fg.pa("drag",this.Ux,!1,this);this.fg.pa("end",this.Tx,!1,this);this.fg.Ag(a.jf)};g.JE=function(a){this.gg=new OD(0,HD(this),!0);N(this,this.gg);this.gg.pa("start",this.Jx,!1,this);this.gg.pa("drag",this.Kx,!1,this);this.gg.pa("end",this.Ix,!1,this);this.gg.Ag(a.jf)};
g.wE=function(a){this.ff=new OD(0,ID(this),!1);N(this,this.ff);this.ff.pa("start",this.Jx,!1,this);this.ff.pa("drag",this.Kx,!1,this);this.ff.pa("end",this.Ix,!1,this);this.ff.Ag(a.jf)};g.AE=function(){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);tC(this.o);ED(this).clear();FD(this).clear();GD(this).clear();HD(this).clear();ID(this).clear();vi(aa.document.body,"cursor","ew-resize")};g.BE=function(){this.D=!0;this.$=!1;this.Yp=!0};
g.CE=function(a){if(this.D){this.B&&(this.B.g=!0);var b=CD(this).za();KD(this);var c=a.target.element;a=c.item;var d=Av(a);L(d);b=UB(this.j,4==c.type?(b.left+b.width/2-this.b.left)/this.b.width:(b.left-this.b.left)/this.b.width);if(!isNaN(b)){var e=0;switch(c.type){case 4:a.set("actualStart",b);a.U("actualStart",b);l(a.get("actualEnd"))&&(a.set("actualEnd",b),a.U("actualEnd",b));break;case 5:var c=c.We,e=a.ye("periods",c,"start"),f=a.ye("periods",c,"end"),e=f+(b-e);isNaN(e)||(a.set("periods",c,"start",
b),a.mi("periods",c,"start",b),a.set("periods",c,"end",e),a.mi("periods",c,"end",e));break;case 3:e=a.U("baselineStart");c=a.U("baselineEnd");e=b-e;isNaN(c+e)||(a.set("baselineStart",b),a.U("baselineStart",b));a.set("baselineEnd",c+e);a.U("baselineEnd",c+e);break;default:c=v(a.U("actualStart"))?a.U("actualStart"):a.U("autoStart"),e=v(a.U("actualEnd"))?a.U("actualEnd"):a.U("autoEnd"),c=e+(b-c),isNaN(c)||(a.set("actualStart",b),a.U("actualStart",b),a.set("actualEnd",c),a.U("actualEnd",c))}}d.aa(!0);
PC(this);this.Yp=this.D=!1;clearInterval(this.oa);this.oa=null}vi(aa.document.body,"cursor","")};g.FE=function(){this.B&&(this.B.g=!1);this.$p=!0;this.qb().Mb().enabled(!1);FD(this).clear();GD(this).clear();HD(this).clear();ID(this).clear();CD(this).clear()};g.GE=function(){this.D=!0;this.$=!1};g.DE=function(a){if(this.D){this.B&&(this.B.g=!0);KD(this);a=a.target;var b=a.element;isNaN(a.nc)||b.item.set("progressValue",pi(100*a.nc,2)+"%");this.D=!1;clearInterval(this.oa);this.oa=null;this.$p=!1}};
g.IE=function(){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);ED(this).clear();FD(this).clear();GD(this).clear();HD(this).clear();ID(this).clear();vi(aa.document.body,"cursor","col-resize");this.O.hc("col-resize")};g.yE=function(){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);ED(this).clear();FD(this).clear();GD(this).clear();HD(this).clear();ID(this).clear();vi(aa.document.body,"cursor","col-resize");this.O.hc("col-resize")};
function PD(a,b,c){if(a.Qc){var d=a.Qc.j?a.ga:a.ia,e=d.item,f=d.We,h=d.wa;switch(d.type){case 3:d=a.Qc.j?e.U("baselineEnd"):e.U("baselineStart");break;case 5:d=a.Qc.j?e.ye("periods",f,"end"):e.ye("periods",f,"start");break;default:d=a.Qc.j?v(e.U("actualEnd"))?e.U("actualEnd"):e.U("autoEnd"):v(e.U("actualStart"))?e.U("actualStart"):e.U("autoStart")}e=il(a.I().fa().I()).x;b=c?0>c?a.b.left:a.b.left+a.b.width:b.clientX-e;c=TB(a.j,d);c=a.b.left+a.b.width*c;a.O.clear().moveTo(c,h.top).lineTo(b,h.top).lineTo(b,
h.top+h.height).lineTo(c,h.top+h.height).close()}}function QD(a,b,c,d){if(a.Na&&a.D){var e=a.Na.j?a.W:a.P,f=e.index,e=e.We,h=il(a.I().fa().I()).x,k=il(a.I().fa().I()).y;c||d?(c=a.Na.D-h,b=a.Na.W-k):(c=b.clientX-h,b=b.clientY-k);e=RD(a,f,e);d=Os(a.df)%2&&Tq===Uq?.5:0;f=a.Na.j?e.left:e.left+e.width;e=e.top+e.height/2+d;JD(a).clear().moveTo(f,e).lineTo(c,b)}}g.Ux=function(a){this.D=!0;this.$=!1;this.Qc=a.target;PD(this,a)};
g.Tx=function(a){if(this.D){this.B&&(this.B.g=!0);var b=this.O.za();KD(this);a=a.target.element;var c=a.item,d=a.We,e=Av(c);L(e);var f=(b.left+b.width-this.b.left)/this.b.width,b=UB(this.j,(b.left-this.b.left)/this.b.width),f=UB(this.j,f);if(!isNaN(b)&&!isNaN(f))switch(a.type){case 5:c.set("periods",d,"start",b);c.mi("periods",d,"start",b);c.set("periods",d,"end",f);c.mi("periods",d,"end",f);break;case 3:c.set("baselineStart",b);c.U("baselineStart",b);c.set("baselineEnd",f);c.U("baselineEnd",f);break;
default:c.set("actualStart",b),c.U("actualStart",b),c.set("actualEnd",f),c.U("actualEnd",f)}e.aa(!0);PC(this);this.Qc=null;this.D=!1;clearInterval(this.oa);this.oa=null}vi(aa.document.body,"cursor","");this.O.hc("ew-resize")};g.Jx=function(a){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);tC(this.o);this.Na=a.target;KD(this)};g.Kx=function(a){this.Uc=this.D=!0;this.$=!1;this.Na.D=a.clientX;this.Na.W=a.clientY};
g.Ix=function(){this.D&&(this.B&&(this.B.g=!0),this.qb().enabled(!0),JD(this).clear(),this.D=!1,clearInterval(this.oa),this.oa=null)};
g.ev=function(a){if(this.Wa&&a){var b;if(a.originalEvent.domTarget&&a.originalEvent.domTarget instanceof QC){b=a.originalEvent.domTarget;var c=a.item,d=a.period,e=a.periodIndex;if(b.B&&!this.D){var f=b.B;CD(this).clear().moveTo(f.left,f.top).lineTo(f.left+f.width,f.top).lineTo(f.left+f.width,f.top+f.height).lineTo(f.left,f.top+f.height).close();this.O.item=c;this.O.type=b.type;d&&(this.O.Aj=d);l(e)&&(this.O.We=e);if(!c||1!=b.type&&0!=b.type&&2!=b.type)ED(this).clear();else{var h=l(c.get("progressValue"))?
parseFloat(c.get("progressValue"))/100:pi(c.U("autoProgress"),2),h=f.left+(h||0)*f.width,k=f.top+f.height;ED(this).clear().moveTo(h,k-5).lineTo(h+5,k).lineTo(h+5,k+5).lineTo(h-5,k+5).lineTo(h-5,k).close();this.jc.wa=f;this.jc.item=c}h=f.left+f.width;c&&4!=b.type?(GD(this).clear().moveTo(h+1,f.top).lineTo(h+1-3,f.top).lineTo(h+1-3,f.top+f.height).lineTo(h+1,f.top+f.height).close(),FD(this).clear().moveTo(f.left-1,f.top).lineTo(f.left-1+3,f.top).lineTo(f.left-1+3,f.top+f.height).lineTo(f.left-1,f.top+
f.height).close(),this.ia.wa=f,this.ia.item=c,this.ia.type=b.type,this.ga.wa=f,this.ga.item=c,this.ga.type=b.type,d&&(this.ia.Aj=d,this.ga.Aj=d),l(e)&&(this.ia.We=e,this.ga.We=e)):(FD(this).clear(),GD(this).clear());c&&3!=b.type?(k=f.top+f.height/2,ID(this).moveTo(h+5+5,k).hn(5,5,0,360),HD(this).moveTo(f.left-5+5,k).hn(5,5,0,360),this.P.item=c,this.P.type=b.type,this.P.index=a.hoveredIndex+this.g.Vc(),this.W.item=c,this.W.type=b.type,this.W.index=a.hoveredIndex+this.g.Vc(),d&&(this.W.Aj=d,this.P.Aj=
d),l(e)&&(this.W.We=e,this.P.We=e)):(ID(this).clear(),HD(this).clear())}else this.Uc&&c&&(f=this.Na.j?this.W:this.P,h=f.item,k=f.index,3!=b.type&&6!=b.type?(d?(f={period:f.Aj,index:k,periodIndex:f.We},c={period:d,index:a.hoveredIndex+this.g.Vc(),periodIndex:e}):(f={item:h,index:k},c={item:c,index:a.hoveredIndex+this.g.Vc()}),a=a.originalEvent.clientX-il(this.I().fa().I()).x,b=b.B,b=.5>(a-b.left)/b.width,b=this.Na.j?b?"startstart":"startfinish":b?"finishstart":"finishfinish",JD(this).clear(),SD(this,
f,c,b,void 0,this.ef)):QD(this,a.originalEvent))}else a.originalEvent.domTarget==CD(this)||a.originalEvent.domTarget==ED(this)||a.originalEvent.domTarget==GD(this)||a.originalEvent.domTarget==FD(this)||a.originalEvent.domTarget==ID(this)||a.originalEvent.domTarget==HD(this)||this.D?this.Uc&&QD(this,a.originalEvent):KD(this)}};g.Ft=function(a){this.Wa&&(this.G=a.item)};
g.fv=function(a){if(this.Wa&&this.Uc){if(a){var b=a.item,c=a.periodIndex;a=a.originalEvent;var d=a.domTarget;if(d instanceof QC&&3!=d.type){a=a.clientX-il(this.I().fa().I()).x;var d=d.B,e=this.Na.j?this.W:this.P,d=.5>(a-d.left)/d.width;a=e.item;d=this.Na.j?d?"startstart":"startfinish":d?"finishstart":"finishfinish";e=e.We;d=d||"finishstart";a instanceof vv||(a=this.g.data().Kt("id",a),a=a.length?a[0]:null);if(a&&(b instanceof vv||(b=this.g.data().Kt("id",b),b=b.length?b[0]:null),b)){L(this.g.data());
var f,h,k,m;m=!1;if(this.g.o){var n=a.get("periods")[e],p=b.get("periods")[c];l(n)&&l(p)&&(f=n.connector,h={},h.connectTo=p.id,h.connectorType=d,f?q(f)?f=f.length:(m=Ye(f),k={},k.connectTo=n.connectTo,k.connectorType=n.connectorType||"finishstart",$e(k,m),f=1,m=!0):(f=n.connectTo,l(f)?(k={},k.connectTo=f,k.connectorType=n.connectorType||"finishstart",f=1,m=!0):f=0),c={type:"beforeCreateConnector",target:b,source:a,connectorType:d,targetPeriod:p,targetPeriodIndex:c,sourcePeriod:n,sourcePeriodIndex:e},
this.o.dispatchEvent(c)&&(m&&a.set("periods",e,"connector",[k]),a.set("periods",e,"connector",f,h)))}else f=a.get("connector"),h={},h.connectTo=b.get("id"),h.connectorType=d,f?q(f)?f=f.length:(m=Ye(f),k={},k.connectTo=a.get("connectTo"),k.connectorType=a.get("connectorType")||"finishstart",$e(k,m),f=1,m=!0):(f=a.get("connectTo"),l(f)?(k={},k.connectTo=f,k.connectorType=a.get("connectorType")||"finishstart",f=1,m=!0):f=0),c={type:"beforeCreateConnector",target:b,source:a,connectorType:d},this.o.dispatchEvent(c)&&
(m&&a.set("connector",[k]),a.set("connector",f,h));this.g.data().aa(!0)}}}this.Uc=!1}this.Na=null;this.$=!0};g.ot=function(a){if(this.D&&!this.$p&&(this.Zb||this.Ac)){var b=0,c=0;this.Zb&&(b=0=m){var k=.7*d,m=Math.round(a.b.left+a.b.width*m),n=Math.round(c+(d-k)/2);a.uc().add({value:{x:m,y:n}}).size(k/2).Y(h)}}}}}
function RD(a,b,c){var d=a.b.top+a.fe()+1,e=a.g.b,f=a.g.Vc(),h=a.g.w,k=a.g.me(),f=f?e[f-1]:0,h=h[b];b=(b?e[b-1]:0)-(f+k)+d;d=XB(h);e=v(h.U("actualStart"))?h.U("actualStart"):h.U("autoStart");k=v(h.U("actualEnd"))?h.U("actualEnd"):h.U("autoEnd");e=a.g.o?h.ye("periods",c,"start"):e;c=a.g.o?h.ye("periods",c,"end"):k;k=0;if(isNaN(c)||e==c)c=e,k=.7*d/2;if(isNaN(c)||isNaN(e))return null;e=TB(a.j,e)*a.b.width+a.b.left-k;c=TB(a.j,c)*a.b.width+a.b.left+k;a.g.o||(h.get("baselineStart")&&h.get("baselineEnd")?
d=a.bf?2.7*d/2:.65*d:h.ib()&&(d*=1-.7+.4));return new O(e,b,c-e,d)}
function SD(a,b,c,d,e,f){d=d||"finishstart";var h=b.index,k=c.index,m=b.periodIndex,n=c.periodIndex,p=RD(a,h,b.periodIndex),r=RD(a,k,c.periodIndex);if(p&&r){c=e&&e.fill?mc(e.fill):a.Mp;e=e&&e.stroke?lc(e.stroke):a.Vd;b=null!=f;var t,w,x,y,z;f=f||null;var D=b?f:null,A,I=!0,M=Os(e)%2&&Tq===Uq?.5:0;switch((d+"").toLowerCase()){case "finishfinish":t=Math.round(p.left+p.width)+M;w=Math.round(p.top+p.height/2)+M;x=Math.round(r.left+r.width)+M;y=Math.round(r.top+r.height/2)+M;z="left";p.top==r.top?(f=WD(a,
t,w,x,y,f),t>x&&(z="right")):(p=Math.max(t+4+5,x+4+5),f=WD(a,t,w,p,w,f),f=WD(a,p,w,p,y,f),f=WD(a,p,y,x,y,f));D=XD(a,x,y,z,D);break;case "startfinish":t=Math.round(p.left)+M;w=Math.round(p.top+p.height/2)+M;x=Math.round(r.left+r.width)+M;y=Math.round(r.top+r.height/2)+M;z="left";t-5-5-4>x?(p=x+5+4,f=WD(a,t,w,p,w,f),f=WD(a,p,w,p,y,f),f=WD(a,p,y,x,y,f)):(I=r.top>=p.top,p=t-5,A=x+5+4,r=Math.round(I?r.top:r.top+r.height)+M,f=WD(a,t,w,p,w,f),f=WD(a,p,w,p,r,f),f=WD(a,p,r,A,r,f),f=WD(a,A,r,A,y,f),f=WD(a,
A,y,x,y,f));D=XD(a,x,y,z,D);break;case "startstart":t=Math.round(p.left)+M;w=Math.round(p.top+p.height/2)+M;x=Math.round(r.left)+M;y=Math.round(r.top+r.height/2)+M;z="right";p.top==r.top?(f=WD(a,t,w,x,y,f),t>x&&(z="left")):(p=Math.min(t-4-5,x-4-5),f=WD(a,t,w,p,w,f),f=WD(a,p,w,p,y,f),f=WD(a,p,y,x,y,f));D=XD(a,x,y,z,D);break;default:t=Math.round(p.left+p.width)+M,w=Math.round(p.top+p.height/2)+M,x=Math.round(r.left)+M,x>=t?(x=Math.min(x+5,Math.round(r.left+r.width/2)+M),r.top>p.top?(y=Math.round(r.top)+
M,f=WD(a,t,w,x,w,f),f=WD(a,x,w,x,y,f),D=XD(a,x,y,"bottom",D)):r.topp.top?r.top:r.top+r.height)+M,p=t+5,A=x-5-4,f=WD(a,t,w,p,w,f),f=WD(a,p,w,p,r,f),f=WD(a,p,r,A,r,f),f=WD(a,A,r,A,y,f),f=WD(a,A,y,x,y,f),D=XD(a,x,y,"right",D))}var r=!1,W;a.Wa&&(W={fromItemIndex:h,
toItemIndex:k,connType:d},a.g.o&&(W.fromPeriodIndex=m,W.toPeriodIndex=n,d&&(W.connType=d)),r=C(a.ra)&&Ve(a.ra,W));f&&!b&&(f.stroke(e),f.tag=void 0,f.type=6,f.B=null,f.hc(a.Wa?"pointer":"default"),f.U=W,f.stroke(r?a.wj:e));D&&!b&&(D.fill(c).stroke(e),D.tag=void 0,D.type=6,D.B=null,D.hc(a.Wa?"pointer":"default"),D.U=W,D.stroke(r?a.wj:e))}}
function WD(a,b,c,d,e,f){if(f)try{f.lineTo(d,e)}catch(n){f.moveTo(b,c).lineTo(d,e)}else{var h=Math.max(b,d),k=Math.min(c,e),m=Math.max(c,e);Math.min(b,d)a.b.left&&ka.b.top&&(f=TD(a),f.zIndex(60).moveTo(b,c).lineTo(d,e))}return f}
function XD(a,b,c,d,e){var f=e||null;if(b>=a.b.left&&b<=a.b.left+a.b.width&&c>=a.b.top&&c<=a.b.top+a.b.height){var h=0,k=0,m=0,n=0;switch(d){case "left":b+=1;h=b+4;k=c-4;m=h;n=c+4;break;case "top":c+=1;h=b-4;k=c+4;m=b+4;n=k;break;case "right":--b;h=b-4;k=c-4;m=h;n=c+4;break;case "bottom":--c,h=b-4,k=c-4,m=b+4,n=k}null!=e||(f=TD(a));f.zIndex(70).moveTo(b,c).lineTo(h,k).lineTo(m,n).lineTo(b,c)}return f}
function PC(a){var b=a.g.G,c=a.g.O;a.j.B=b;a.j.N=c;var d=a.zr()*(c-b),e=a.yr()*(c-b),f;f=a.j;f=isNaN(f.b)&&isNaN(f.o)&&isNaN(f.g)&&isNaN(f.j);var d=b-d,h=0,k=0,m=0;f||(k=NB(a.j),m=k.max,k=k.min,h=m-k);MB(a.j,d,c+e);h&&(k=NB(a.j),k=k.min,a.j.cf(k,k+h));f&&LB(a.j,d,b+Math.round((c-b)/10))}g.qy=function(){zC(this).zIndex(34);this.uc().I(xC(this));this.labels().I(xC(this));this.Ib.I(uC(this));PC(this)};g.Yq=function(){this.Ib.wa().set(this.b.left,this.b.top,this.b.width,this.fe());this.lj=!0};
g.Xq=function(){BD(this).stroke(this.af);JD(this).stroke(this.df);CD(this).fill(this.Np).stroke(this.Op);ED(this).fill(this.Pp).stroke(this.Rm);FD(this).fill(this.Ah).stroke(this.Bh);GD(this).fill(this.Ah).stroke(this.Bh);HD(this).fill(this.yh).stroke(this.zh);ID(this).fill(this.yh).stroke(this.zh)};
g.Yt=function(){X(this,512)&&(this.lj=this.dd=!0,V(this,512));if(this.lj){H(this.Ib,64);this.Ib.X();var a=this.Ib.g[2].o;if(a.length)for(var b=BD(this).clear(),c=0,d=a.length-1;cI){var W=this.b.left+this.b.width*I,ea=.7*w;UD(this,new O(W,t+(w-ea)/2,this.b.left+this.b.width*M-W,ea),z,5)}}}VD(this,m,f,n);f=p+this.bb}else for(var R=this.b.top+this.fe()+1-this.g.me(),za=this.g.w,eb=this.g.Vc();eb<=fC(this.g);eb++){var Ta=za[eb];if(!Ta)break;var mb=XB(Ta),Dd=R+mb,Yc=Ta.get("baselineStart"),Ig=Ta.get("baselineEnd");if(l(Yc)&&l(Ig)){var Nc=Ta,
Hf=R,Ud=mb,zc=v(Nc.U("actualStart"))?Nc.U("actualStart"):Nc.U("autoStart"),Mg=v(Nc.U("actualEnd"))?Nc.U("actualEnd"):Nc.U("autoEnd"),Ng=Nc.U("baselineStart"),Eh=Nc.U("baselineEnd"),Ee=TB(this.j,zc),Fh=TB(this.j,Mg),nb=TB(this.j,Ng),hg=TB(this.j,Eh);if(0Ee||0nb){var rd=this.b,Fe=rd.left+rd.width*Ee,We=rd.left+rd.width*Fh,Bi=Hf+Ud*(1-.7)/2,Ci=.7*Ud/2,Un=rd.left+rd.width*nb,kr=rd.left+rd.width*hg,Di=Bi+Ci;if(this.bf)var Ei=Bi,Bi=Di,Di=Ei;var Bl=new O(Fe,Bi,We-Fe,Ci),Cl=UD(this,Bl,Nc,1,
"actual");UD(this,new O(Un,Di,kr-Un,Ci),Nc,3,"baseline");var Fi=1*Ci,Dl=Bi+(Ci-Fi)/2,Gh=l(Nc.get("progressValue"))?parseFloat(Nc.get("progressValue"))/100:pi(Nc.U("autoProgress"),2);Gh&&(UD(this,new O(Fe,Dl,Gh*(We-Fe),Fi),Nc,2,"progress").B=Cl.B)}}else if(Ta.ib()){var ie=Ta,lr=R,Vn=mb,mr=v(ie.U("actualStart"))?ie.U("actualStart"):ie.U("autoStart"),nr=v(ie.U("actualEnd"))?ie.U("actualEnd"):ie.U("autoEnd"),Jj=TB(this.j,mr),Gi=TB(this.j,nr);if(0Jj){var Kj=this.b.left+this.b.width*Jj,El=this.b.left+
this.b.width*Gi,Lj=lr+Vn*(1-.7)/2,Hi=.4*Vn,or=new O(Kj,Lj,El-Kj,Hi),Hh=UD(this,or,ie,0,"actual"),Fl=1*Hi,Gl=Lj+(Hi-Fl)/2,Mj=l(ie.get("progressValue"))?parseFloat(ie.get("progressValue"))/100:pi(ie.U("autoProgress"),2);Mj&&(UD(this,new O(Kj,Gl,Mj*(El-Kj),Fl),ie,2,"progress").B=Hh.B)}}else if(rC(Ta)){var Og=Ta,Hl=R,Nj=mb,Wn=Og.get("actualStart"),Oj=TB(this.j,Wn);if(0<=Oj&&1>=Oj){var ig=Og.get("milestone"),Pg=ig&&l(ig.stroke)?lc(ig.stroke):this.dj,Il=(Ns(Pg)?0:u(Pg)?1:Pg.thickness?Pg.thickness:1)%2&&
Tq===Uq?.5:0,Qg=Math.round(.7*Nj/2),Ii=Math.round(this.b.left+this.b.width*Oj)+Il,Ji=Math.round(Hl+Nj/2)+Il,If=TD(this);If.tag=Og.get("id");If.type=4;var Ki=Ii-Qg,Li=Ji-Qg,Pj=Ii+Qg,pr=Ji+Qg,Rg=Qg+Qg;If.zIndex(20).moveTo(Ki,Ji).lineTo(Ii,Li).lineTo(Pj,Ji).lineTo(Ii,pr).close();var Sg=new O(Ki,Li,Rg,Rg);If.B=Sg;var sd=ig?ig.label:void 0,Qj=void 0;sd&&l(sd.value)?Qj=sd.value+"":Qj=Og.get("name")||"";if(Qj){var Fd=sd&&sd.position?sd.position:this.labels().position(),Fd=Ic(Fd),Xn={value:Hs(Sg,Fd)},Jl=
{value:Qj},Kl=this.labels().add(Jl,Xn);sd&&Kl.Y(sd)}var Mi=Og==this.Ca;if(ig){var Ni=void 0;Mi?(Ni=this.we,Pg=this.xe):Ni=l(ig.fill)?mc(ig.fill):this.$i;If.fill(Ni).stroke(Pg)}else If.fill(Mi?this.we:this.$i).stroke(Mi?this.xe:this.dj)}}else{var Xe=Ta,Rj=R,Ll=mb,Yn=v(Xe.U("actualStart"))?Xe.U("actualStart"):Xe.U("autoStart"),qr=v(Xe.U("actualEnd"))?Xe.U("actualEnd"):Xe.U("autoEnd"),Ml=TB(this.j,Yn),Nl=TB(this.j,qr);if(0Ml){var Oi=this.b.left+this.b.width*Ml,Ol=this.b.left+this.b.width*Nl,Pi=
.7*Ll,Pl=Rj+(Ll-Pi)/2,Ql=new O(Oi,Pl,Ol-Oi,Pi),Zn=UD(this,Ql,Xe,1,"actual"),Rl=1*Pi,$n=Pl+(Pi-Rl)/2,Sl=parseFloat(Xe.get("progressValue"));Sl&&(UD(this,new O(Oi,$n,Sl*(Ol-Oi)/100,Rl),Xe,2,"progress").B=Zn.B)}}VD(this,Ta,R,mb);R=Dd+this.bb}this.labels().X();this.uc().X();for(var Tl=this.g.$,Ih=Tl.length,jg,rr=this.g.o?this.g.W:this.g.da;Ih--;){jg=Tl[Ih];var Gd=jg.to;C(Gd)||(Gd=rr[Gd]);l(Gd)?(jg.to=Gd,SD(this,jg.from,Gd,jg.type,jg.connSettings)):Pb(Tl,Ih,1)}for(var Ul=this.rm,sr=this.sm.length;Ul=b.getTime()-c.getTime()&&150>d;b.add(k),d++)h.push(b.getTime());e&&0=c.getTime()-h.getTime()&&150>b;c.add(k),b++)e.push(c.getTime());a.Rg=e}this.K&&(this.min=f[0]);this.G&&(this.max=f[1]);this.zf=this.max-this.min}};g.jw=function(a){Y(a,2)&&(this.g=!1,this.ha(2))};g.J=function(){var a=Hd.F.J.call(this);a.ticks=this.ka().J();a.minorTicks=this.Ha().J();return a};g.ba=function(a){Hd.F.ba.call(this,a);this.ka(a.ticks);this.Ha(a.minorTicks)};function oB(){return new Hd}E("anychart.scales.dateTime",oB);Hd.prototype.getType=Hd.prototype.Ne;Hd.prototype.ticks=Hd.prototype.ka;
Hd.prototype.minorTicks=Hd.prototype.Ha;Hd.prototype.transform=Hd.prototype.transform;Hd.prototype.extendDataRange=Hd.prototype.yg;Hd.prototype.softMinimum=Hd.prototype.Wt;Hd.prototype.softMaximum=Hd.prototype.Vt;Hd.prototype.minimumGap=Hd.prototype.El;Hd.prototype.maximumGap=Hd.prototype.Dl;function YD(a){Jk.call(this);this.b=a}F(YD,mu);g=YD.prototype;g.ma=2;g.se=NaN;g.fc=4;g.Ed=6;g.Oc=null;g.qd=null;g.ze=0;g.jk="linear";g.$D=function(a){return l(a)?(this.se!=a&&(a=G(a),0>a?(this.fc=4,this.Ed=6,this.se=NaN):(this.Ed=this.fc=NaN,this.se=+a),this.qd=this.Oc=null,this.ha(2)),this):this.se};
g.count=function(a,b){return l(a)?(this.fc!=a&&(this.se=NaN,this.fc=Math.ceil(G(a)),this.Ed=Math.ceil(G(b)),2<=this.fc||(this.fc=4),this.Ed>=this.fc||(this.Ed=this.fc),this.qd=this.Oc=null,this.ha(2)),this):[this.fc,this.Ed]};g.Nr=function(a){return l(a)?(a=+a||0,this.ze!=a&&(this.ze=a,this.qd=null,this.Oc||this.ha(2)),this):this.ze};g.set=function(a){Zf(this.Oc,a)||(this.se=this.Ed=this.fc=NaN,this.Oc=Zd(a,0),Tf(this.Oc),Vb(this.Oc,ys),this.qd=null,this.ha(2));return this};
g.get=function(){var a=ZD(this);return Ff(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.b)};function ZD(a){a.Oc?a=a.Oc:(a.b.kb(),a=a.qd);return a||[]}g.mode=function(a){return l(a)?(a=(""+a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.jk!=a&&(this.qd=null,this.jk=a,this.Oc||this.ha(2)),this):this.jk};
function $D(a,b,c,d,e,f){if("logarithmic"==a.jk){f=f||10;a.qd=null;var h=[b,c];if(a.Oc)d&&(h[0]=Math.min(b,a.Oc[0]||0)),e&&(h[1]=Math.max(c,a.Oc[a.Oc.length-1]||0));else{b=Wm(b,f);c=Wm(c,f);var k=[],m=a.se;if(isNaN(m))for(var n=NaN,p=NaN,r=a.fc;r<=a.Ed;r++){var n=(c-b)/(a.fc-1),t=Math.log(n),w=Math.ceil(Math.pow(10,Math.floor(t*Math.LOG10E))),n=Math.min(Js(n,w),Js(n,Math.ceil(Math.pow(10,Math.ceil(t*Math.LOG10E)))),Js(n,Math.ceil(Math.pow(2,Math.floor(t*Math.LOG2E)))),Js(n,Math.ceil(Math.pow(2,Math.ceil(t*
Math.LOG2E)))),Js(n,Math.ceil(w/2)),Js(n,Math.ceil(w/4)),Js(n,Math.ceil(w/8))),n=Math.max(n,1E-7),t=Um(Is(b,n,a.ze))-b,t=t*t,w=Um(Js(c,n,a.ze))-c,w=w*w,t=t+w;if(isNaN(p)||tb.length)){c=c||10;var f="logarithmic"==a.jk?a.TA:a.SA,h,k;l(d)?(h=b[0],k=b[1],f.call(a,h,k,d,k,c),h=1):h=0;d=b.length-1;l(e)&&d--;for(var m=h;m<=d-1;m++)h=b[m],k=b[m+1],f.call(a,h,k,h,k,c);l(e)&&(h=b[d],k=b[d+1],f.call(a,h,k,h,e,c))}}
g.SA=function(a,b,c,d){var e=this.se;isNaN(e)&&(e=(d-c)/(this.fc-1));e=Math.max(e,1E-7);c=this.qd[this.qd.length-1];b=pi(b,7);for(a=pi(a,7);a<=b;a=pi(a+e,7))c!=a&&this.qd.push(a),c=a};g.TA=function(a,b,c,d,e){var f=this.se;a=Wm(a,e);b=Wm(b,e);c=Wm(c,e);d=Wm(d,e);isNaN(f)&&(f=(d-c)/(this.fc-1));f=Math.max(f,1E-7);c=this.qd[this.qd.length-1];b=pi(b,7);for(a=pi(a,7);a<=b;a=pi(a+f,7))c!=a&&this.qd.push(Xm(e,a)),c=a};
g.J=function(){var a=YD.F.J.call(this);a.mode=this.jk;a.base=this.ze;this.Oc?a.explicit=this.Oc:(this.fc==this.Ed?isNaN(this.fc)||(a.count=this.fc):(isNaN(this.fc)||(a.minCount=this.fc),isNaN(this.Ed)||(a.maxCount=this.Ed)),isNaN(this.se)||(a.interval=this.se));return a};g.Gb=function(a){var b=arguments;return q(b[0])?(this.set(b[0]),!0):mu.prototype.Gb.apply(this,b)};
g.ba=function(a){YD.F.ba.call(this,a);this.mode(a.mode);this.Nr(a.base);this.Oc=a.explicit||null;this.fc=a.count||a.minCount||NaN;this.Ed=a.count||a.maxCount||NaN;this.se=a.interval||NaN;this.Oc?this.fc=this.Ed=this.se=NaN:this.se?this.fc=this.Ed=NaN:(this.fc=Math.ceil(G(this.fc)),this.Ed=Math.ceil(G(this.Ed)),2<=this.fc||(this.fc=4),this.Ed>=this.fc||(this.Ed=this.fc))};YD.prototype.interval=YD.prototype.$D;YD.prototype.count=YD.prototype.count;YD.prototype.base=YD.prototype.Nr;
YD.prototype.set=YD.prototype.set;YD.prototype.get=YD.prototype.get;YD.prototype.mode=YD.prototype.mode;function Cd(){bA.call(this);this.w=this.N=null;this.Qr=!0;this.b=10;this.da=!0}F(Cd,bA);g=Cd.prototype;g.Vr="none";g.Ur="firstVisible";g.Ne=function(){return"linear"};g.ka=function(a){this.N||(this.N=this.jo());return l(a)?(this.N.Y(a),this):this.N};g.Ha=function(a){this.w||(this.w=this.jo(),L(this.w),this.w.count(5),this.w.aa(!1));return l(a)?(this.w.Y(a),this):this.w};g.bu=function(a){return l(a)?(a=!!a,a!=this.da&&(this.da=a,this.K||this.G)&&(this.g=!1,this.ha(4)),this):this.da};
g.kb=function(){if(!this.g){Cd.F.kb.call(this);var a=$D(this.ka(),this.min,this.max,this.K&&this.min!=this.D,this.G&&this.max!=this.B,this.b);this.K&&(this.min=a[0]);this.G&&(this.max=a[1]);aE(this.Ha(),ZD(this.ka()),this.b,a[2],a[3]);this.zf=this.max-this.min}};g.WD=function(a){Y(a,2)&&(this.g=!1,this.ha(2))};g.jo=function(){var a=new YD(this);N(this,a);U(a,this.WD,this);return a};g.oE=function(a){return l(a)?(a=ad(a),this.Vr!=a&&(this.Vr=a,this.ha(6)),this):this.Vr};
g.nE=function(a){return l(a)?(a=bd(a)||ug(a),this.Ur!=a&&(this.Ur=a,this.ha(6)),this):this.Ur};g.J=function(){var a=Cd.F.J.call(this);a.ticks=this.ka().J();a.minorTicks=this.Ha().J();a.stackMode=this.Gm();a.stickToZero=this.bu();return a};g.ba=function(a){Cd.F.ba.call(this,a);this.ka(a.ticks);this.Ha(a.minorTicks);this.Gm(a.stackMode);this.bu(a.stickToZero)};function nB(){return new Cd}E("anychart.scales.linear",nB);Cd.prototype.getType=Cd.prototype.Ne;Cd.prototype.ticks=Cd.prototype.ka;
Cd.prototype.minorTicks=Cd.prototype.Ha;Cd.prototype.stackMode=Cd.prototype.Gm;Cd.prototype.stickToZero=Cd.prototype.bu;Cd.prototype.softMinimum=Cd.prototype.Wt;Cd.prototype.softMaximum=Cd.prototype.Vt;Cd.prototype.minimumGap=Cd.prototype.El;Cd.prototype.maximumGap=Cd.prototype.Dl;Cd.prototype.comparisonMode=Cd.prototype.oE;Cd.prototype.compareWith=Cd.prototype.nE;function bE(){bA.call(this);this.W=this.$=0;this.ba(xt().defaultLinearColorScale)}F(bE,bA);g=bE.prototype;g.Ne=function(){return"linearColor"};g.zs=function(a){var b,c,d,e=[];b=0;for(c=arguments.length;b