k&&(k=
d);m=this.U();p=this.ma();n=IB(m);e=IB(p);r=f=0;f="outside"==m.position()?h+n:"center"==m.position()?h+n/2:h;r="outside"==p.position()?k+e:"center"==p.position()?k+e/2:k;c=Math.max(f,r)+c}var x,w,p=this.padding(),k=P(p.top(),a.height),h=P(p.right(),a.width),m=P(p.bottom(),a.height),p=P(p.left(),a.width),y,C;switch(this.orientation()){case "top":w=a.top+k;x=a.left+p;C=c;y=b;break;case "right":w=a.top+k;x=a.left+a.width-c-h;C=b;y=c;break;case "bottom":w=a.top+a.height-c-m;x=a.left+p;C=c;y=b;break;case "left":w=
a.top+k,x=a.left+p,C=b,y=c}this.hl=new K(Math.round(x),Math.round(w),Math.round(y),Math.round(C))}else this.hl=new K(0,0,0,0);S(this,4)}return this.hl};
function HB(a,b,c,d,e){if(!c&&a.scale()&&!(a.scale()instanceof Xr))return null;var f=c?a.Ql:a.Rl;if(l(f[b]))return f[b];var h=l(e)?e:a.Wa();e=l(e)?e:a.c.qa();var k=c?a.U():a.ma(),m=k.length(),n=a.stroke(),n=aq(n)?0:n.thickness?parseFloat(a.stroke().thickness):1;c=c?a.labels():a.va();var p,r,u=a.scale();d=d[b];q(d)?(u=(u.transform(d[0],0)+u.transform(d[1],1))/2,d=d[0]):u=u.transform(d,.5);if(0>u||1=y&&b.call(e,y,m,n,f,c),p==k-1&&(y=a.transform(Qa,1),0<=y&&1>=y&&b.call(e,y,m,n,f,c))),(C=q(u)?u[p]:u)&&0<=x&&1>=x&&JB(this,d,x,p,c,!0,h);this.labels().J()}this.title().K(!1);this.labels().K(!1);this.va().K(!1);this.U().K(!1);this.ma().K(!1);return this};g.remove=function(){this.wa&&this.wa.remove();this.c&&this.c.parent(null);this.U().remove();this.ma().remove();this.Pe&&this.Pe.remove();this.ae&&this.ae.remove()};
g.C=function(){var a=Ft.v.C.call(this);a.title=this.title().C();a.labels=this.labels().C();a.minorLabels=this.va().C();a.ticks=this.U().C();a.minorTicks=this.ma().C();a.stroke=Xm(this.stroke());a.staggerMode=this.Eh();a.staggerLines=this.js();a.staggerMaxLines=this.ks();a.width=this.width();this.b&&(a.orientation=this.b);a.drawFirstLabel=this.$d();a.drawLastLabel=this.Ad();a.overlapMode=this.Sl();return a};
g.O=function(a){Ft.v.O.call(this,a);this.title(a.title);this.labels().H(a.labels);this.va().H(a.minorLabels);this.U(a.ticks);this.ma(a.minorTicks);this.Eh(a.staggerMode);this.js(a.staggerLines);this.ks(a.staggerMaxLines);this.stroke(a.stroke);this.width(a.width);this.orientation(a.orientation);this.$d(a.drawFirstLabel);this.Ad(a.drawLastLabel);this.Sl(a.overlapMode)};
g.M=function(){Ft.v.M.call(this);delete this.jg;this.ia=this.wa=this.Rl=this.Ql=null;Fb(this.c);this.ae=this.Pe=this.hl=this.Na=this.ta=this.c=null};Ft.prototype.staggerMode=Ft.prototype.Eh;Ft.prototype.staggerLines=Ft.prototype.js;Ft.prototype.staggerMaxLines=Ft.prototype.ks;Ft.prototype.title=Ft.prototype.title;Ft.prototype.labels=Ft.prototype.labels;Ft.prototype.minorLabels=Ft.prototype.va;Ft.prototype.ticks=Ft.prototype.U;Ft.prototype.minorTicks=Ft.prototype.ma;Ft.prototype.stroke=Ft.prototype.stroke;
Ft.prototype.orientation=Ft.prototype.orientation;Ft.prototype.scale=Ft.prototype.scale;Ft.prototype.width=Ft.prototype.width;Ft.prototype.getRemainingBounds=Ft.prototype.mb;Ft.prototype.drawFirstLabel=Ft.prototype.$d;Ft.prototype.drawLastLabel=Ft.prototype.Ad;Ft.prototype.overlapMode=Ft.prototype.Sl;Ft.prototype.isHorizontal=Ft.prototype.Oe;function KB(){Ft.call(this)}E(KB,Ft);KB.prototype.J=function(){lx(this.labels());lx(this.va());return KB.v.J.call(this)};B("anychart.axes.linear",function(){var a=new KB;a.H(qp().standalones.linearAxis);return a});KB.prototype.padding=KB.prototype.padding;KB.prototype.draw=KB.prototype.J;KB.prototype.parentBounds=KB.prototype.N;KB.prototype.container=KB.prototype.B;function St(){O(this);V.call(this);this.Vl=[];this.Wl=[];this.be=Fk();tt(this,this.be);F(this,this.be);this.a=468;this.K(!1)}E(St,V);g=St.prototype;g.Z=V.prototype.Z|464;g.Y=V.prototype.Y;g.be=null;g.Te=null;g.Ue=null;g.ta=null;g.Na=null;g.X=null;g.ik="noOverlap";g.hk=NaN;g.ip=!0;g.jp=!0;g.Vl=null;g.Wl=null;g.labels=function(a){this.Te||(this.Te=new Br,this.Te.Ka(this),Q(this.Te,this.fA,this),F(this,this.Te));return l(a)?(!A(a)||"enabled"in a||(a.enabled=!0),this.Te.H(a),this):this.Te};
g.fA=function(a){var b=0,c=0;U(a,8)?(b=this.a,c=9):U(a,1)&&(b=64,c=1);LB(this);R(this,b,c)};g.va=function(a){this.Ue||(this.Ue=new Br,this.Ue.Ka(this),Q(this.Ue,this.gA,this),F(this,this.Ue));return l(a)?(!A(a)||"enabled"in a||(a.enabled=!0),this.Ue.H(a),this):this.Ue};g.gA=function(a){var b=0,c=0;U(a,8)?(b=this.a,c=9):U(a,1)&&(b=64,c=1);LB(this);R(this,b,c)};g.U=function(a){this.ta||(this.ta=new vt,this.ta.Ka(this),Q(this.ta,this.iA,this),F(this,this.ta));return l(a)?(this.ta.H(a),this):this.ta};
g.iA=function(a){var b=0,c=0;U(a,8)?(b=this.a,c=9):U(a,1)&&(b=148,c=1);LB(this);R(this,b,c)};g.ma=function(a){this.Na||(this.Na=new vt,this.Na.Ka(this),Q(this.Na,this.yF,this),F(this,this.Na));return l(a)?(this.Na.H(a),this):this.Na};g.yF=function(a){var b=0,c=0;U(a,8)?(b=this.a,c=9):U(a,1)&&(b=128,c=1);LB(this);R(this,b,c)};
g.stroke=function(a,b,c,d,e){if(l(a)){a=ik.apply(null,arguments);if(this.b!=a){var f=A(this.b)?this.b.thickness||1:1,h=A(a)?a.thickness||1:1;this.b=a;h==f?R(this,16,1):(LB(this),R(this,this.a,9))}return this}return this.b};g.scale=function(a){return l(a)?(this.X!=a&&(this.X=a,Q(this.X,this.hA,this),LB(this),R(this,this.a,9)),this):this.X};g.hA=function(a){U(a,2)&&(LB(this),R(this,this.a,9))};g.If=function(){R(this,this.a,9)};
g.Rh=function(a){return l(a)?(a=Ve(null===a||isNaN(+a)?0:+a),this.vd!=a&&(this.vd=a,LB(this),R(this,this.a,9)),this):this.vd};function LB(a){a.l&&(a.l.length=0);a.Vl.length=0;a.Wl.length=0;a.h=null}
function MB(a){a:{if(!a.h||T(a,256)){if("allowOverlap"==a.ik){a=!1;break a}var b=a.scale(),c=[],d=[];if(b){var e,f,h=-1,k=-1,m=-1,n=b.U().get(),p=n.length,r,u,v,x,w,y=-1,C=a.labels().enabled();if(b instanceof Xr){var D=b.ma().get();f=e=0;for(var H=D.length,J,X=a.va().enabled();e=v&&a.Qh()||
1<=v&&a.Vf()?k=y:0v&&(k=y)),y++;u<=J&&e=v&&a.Qh()||1<=v&&a.Vf()?(m=f,d.push(!0)):0v?(m=f,d.push(!0)):d.push(!1))):d.push(!1),f++)}X||(d=!1)}else if(b instanceof
Uo)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.N(),c=c.clone().round(),d=this.anchor();a.eb(1,0,0,1,0,0);a.width(null);a.height(null);var e=!ea(this.width()),f=!ea(this.height()),h=a.qa(),k=e?Math.ceil(P(this.width(),c.width)):h.width;e&&a.width(k);
h=a.qa();c=f?Math.ceil(P(this.height(),c.height)):h.height;f&&a.height(c);var m=this.N(),m=m.clone().round();if(this.Yl())switch(e=Math.round(m.Ba()+m.height-b*m.height),1==b?e-=-.5:e+=-.5,this.D){case "left":f=m.ra();break;case "right":f=m.Fa();break;default:f=m.ra()+m.width/2}else switch(f=Math.round(m.ra()+b*m.width),1==b?f+=-.5:f-=-.5,this.D){case "top":e=m.Ba();break;case "bottom":e=m.ka();break;default:e=m.Ba()+m.height/2}b=new tf(f,e);f=G(this.A);f=isNaN(f)?this.Yl()?0:-90:f;e=sf(We(f),0,0);
h=Ci(h,e);e=Vp(kp(0,0,h.width,h.height),d);b.x-=e.x;b.y-=e.y;e=P(this.offsetX(),k);m=P(this.offsetY(),c);$p(b,d,e,m);this.lb(a,!0);a.x(b.x+h.width/2-k/2).y(b.y+h.height/2-c/2).$i(f,"center");R(this,2)}else this.remove(),S(this,2);S(this,4)}T(this,2)&&(a=this.B(),TB(this).parent(a),S(this,2));return this};g.remove=function(){TB(this).parent(null)};function TB(a){a.w||(a.w=Lk(),F(a,a.w));return a.w}g.M=function(){Fb(this.w);this.b=this.g=this.w=null;QB.v.M.call(this)};
g.C=function(){var a=QB.v.C.call(this);a.anchor=this.anchor();a.align=this.Xl();this.m&&(a.layout=this.m);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.O=function(a){QB.v.O.call(this,a);this.anchor(a.anchor);this.Xl(a.align);"layout"in a&&a.layout&&this.lk(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,z(a)?this.g&&this.np(Et(this.g,a)):a instanceof Ft&&this.np(a))};function UB(a){QB.call(this);RB(this,a);this.F=0}E(UB,QB);g=UB.prototype;g.Y=QB.prototype.Y;g.Z=QB.prototype.Z;g.scale=function(a){return l(a)?(sq(500),this):RB(this)};g.lk=function(a){return l(a)?("horizontal"==a&&sq(501),this):"vertical"};g.value=function(a){return SB(this,a)};g.C=function(){var a=UB.v.C.call(this);a.value=this.value();return a};g.O=function(a){UB.v.O.call(this,a);this.value(a.value)};UB.prototype.value=UB.prototype.value;UB.prototype.scale=UB.prototype.scale;
UB.prototype.anchor=UB.prototype.anchor;UB.prototype.align=UB.prototype.Xl;UB.prototype.layout=UB.prototype.lk;UB.prototype.rotation=UB.prototype.rotation;UB.prototype.offsetX=UB.prototype.offsetX;UB.prototype.offsetY=UB.prototype.offsetY;UB.prototype.text=UB.prototype.text;UB.prototype.height=UB.prototype.height;UB.prototype.width=UB.prototype.width;UB.prototype.isHorizontal=UB.prototype.Yl;function VB(){QB.call(this)}E(VB,QB);g=VB.prototype;g.Y=QB.prototype.Y;g.Z=QB.prototype.Z;g.scale=function(a){return RB(this,a)};g.value=function(a){return SB(this,a)};g.C=function(){var a=VB.v.C.call(this);a.value=this.value();return a};g.O=function(a){VB.v.O.call(this,a);this.value(a.value)};VB.prototype.value=VB.prototype.value;VB.prototype.scale=VB.prototype.scale;VB.prototype.axis=VB.prototype.np;VB.prototype.anchor=VB.prototype.anchor;VB.prototype.align=VB.prototype.Xl;VB.prototype.layout=VB.prototype.lk;
VB.prototype.rotation=VB.prototype.rotation;VB.prototype.offsetX=VB.prototype.offsetX;VB.prototype.offsetY=VB.prototype.offsetY;VB.prototype.text=VB.prototype.text;VB.prototype.height=VB.prototype.height;VB.prototype.width=VB.prototype.width;VB.prototype.isHorizontal=VB.prototype.Yl;function WB(){QB.call(this)}E(WB,VB);B("anychart.axisMarkers.text",function(){var a=new WB;a.H(qp().standalones.textAxisMarker);return a});WB.prototype.draw=WB.prototype.J;WB.prototype.parentBounds=WB.prototype.N;WB.prototype.container=WB.prototype.B;function Z(a,b){HA.call(this,a,b);this.df=this.D=this.F=this.W=this.P=this.Wb=this.A=this.tj=this.ld=this.hd=null;this.Wj=void 0;this.$=null;this.vs=this.ws=.01;this.Oj=this.bf=!1;this.ef=this.og=this.Pf=this.Lf=this.Nf=this.Mf=null;this.rs=this.ts=this.Fc=!1;this.pa=this.Ec=null;this.Xj=[];this.uj=0;this.Kj=[];this.Nj=[];this.me=[];this.X=new vz;Q(this.X,this.QC,this);F(this,this.X);this.bb=new CA;O(this.bb);this.bb.scale(this.X);this.bb.zIndex(XB);this.bb.K(!1);F(this,this.bb);var c=this.b;l(this)&&
c.D!=this&&(c.D=this,R(c,128,2))}E(Z,HA);Z.prototype.Z=HA.prototype.Z|256;var XB=80;g=Z.prototype;g.QC=function(a){U(a,4)&&R(this,256,1)};g.iv=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.cf!=f&&(this.cf=f,R(this,16,1));return this}return this.cf||"none"};g.$v=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.vn!=k&&(this.vn=k,R(this,16,1));return this}return this.vn||"none"};
g.aw=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.zn!=f&&(this.zn=f,R(this,16,1));return this}return this.zn||"none"};g.bw=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.An!=k&&(this.An=k,R(this,16,1));return this}return this.An||"none"};g.cw=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.En!=f&&(this.En=f,R(this,16,1));return this}return this.En||"none"};
g.Yv=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.Ej!=k&&(this.Ej=k,R(this,16,1));return this}return this.Ej||"none"};g.Zv=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.Fj!=f&&(this.Fj=f,R(this,16,1));return this}return this.Fj||"none"};g.Wv=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.Cj!=k&&(this.Cj=k,R(this,16,1));return this}return this.Cj||"none"};
g.Xv=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.Dj!=f&&(this.Dj=f,R(this,16,1));return this}return this.Dj||"none"};g.Ru=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.Jm!=k&&(this.Jm=k,R(this,64,1));return this}return this.Jm||"none"};g.Uu=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.Mm!=f&&(this.Mm=f,R(this,64,1));return this}return this.Mm||"none"};
g.Wu=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.Zm!=k&&(this.Zm=k,R(this,64,1));return this}return this.Zm||"none"};g.Xu=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.bn!=f&&(this.bn=f,R(this,64,1));return this}return this.bn||"none"};g.hx=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.ro!=k&&(this.ro=k,R(this,64,1));return this}return this.ro||"none"};
g.ix=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.uo!=f&&(this.uo=f,R(this,64,1));return this}return this.uo||"none"};g.Pw=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.Lj!=k&&(this.Lj=k,R(this,64,1));return this}return this.Lj||"none"};g.Qw=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.Mj!=f&&(this.Mj=f,R(this,64,1));return this}return this.Mj||"none"};
g.Zw=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.Vn!=k&&(this.Vn=k,R(this,64,1));return this}return this.Vn||"none"};g.$w=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.bo!=f&&(this.bo=f,R(this,64,1));return this}return this.bo||"none"};g.hv=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.fn!=k&&(this.fn=k,R(this,64,1));return this}return this.fn||"none"};
g.jv=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.rn!=f&&(this.rn=f,R(this,32,1));return this}return this.rn||"none"};g.Dx=function(a,b,c,d,e,f,h){if(l(a)){var k=Zj.apply(null,arguments);this.Nd!=k&&(this.Nd=k,R(this,64,1));return this}return this.Nd||"none"};g.Ex=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.je!=f&&(this.je=f,R(this,64,1));return this}return this.je||"none"};
g.BG=function(a,b,c,d,e){if(l(a)){var f=ik.apply(null,arguments);this.Vj!=f&&(this.Vj=f,R(this,64,1));return this}return this.Vj||"none"};g.Bu=function(a){if(l(a)){var b=ik.apply(null,arguments),c=bq(this.af),d=bq(b);if(this.af!=b||d!=c)this.af=b,R(this,16,1);return this}return this.af};g.Gv=function(a){return l(a)?(this.uy=a,this):this.uy||{}};g.Iv=function(a){return l(a)?(this.xy=a,this):this.xy||{}};g.Jv=function(a){return l(a)?(this.zy=a,this):this.zy||{}};
g.Hw=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.Kj[c];e||(e=new Gt(this.X),e.H(this.Gv()),this.Kj[c]=e,F(this,e),Q(e,this.Cr,this),R(this,256,1));return l(d)?(e.H(d),this):e};g.mx=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.Nj[c];e||(e=new Ht(this.X),e.H(this.Iv()),this.Nj[c]=e,F(this,e),Q(e,this.Cr,this),R(this,256,1));return l(d)?(e.H(d),this):e};
g.dy=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.me[c];e||(e=new UB(this.X),e.H(this.Jv()),this.me[c]=e,F(this,e),Q(e,this.Cr,this),R(this,256,1));return l(d)?(e.H(d),this):e};g.Cr=function(){R(this,256,1)};g.kq=function(a){return l(a)&&(a=+a||0,this.ws!=a)?(this.ws=a,R(this,256,1),this):this.ws};g.jq=function(a){return l(a)&&(a=+a||0,this.vs!=a)?(this.vs=a,R(this,256,1),this):this.vs};
g.labels=function(a){this.hd||(this.hd=new Br,this.hd.Ka(this));if(l(a)){var b=!0;a instanceof Br?this.hd.H(a.C()):A(a)?this.hd.H(a):aq(a)?this.hd.enabled(!1):b=!1;b&&R(this,32,1);return this}return this.hd};g.sf=function(a){this.ld||(this.ld=new Nu,this.ld.Ka(this));if(l(a)){var b=!0;a instanceof Nu?this.ld.H(a.C()):A(a)?this.ld.H(a):aq(a)?this.ld.enabled(!1):b=!1;b&&R(this,32,1);return this}return this.ld};g.Vu=function(a){return l(a)&&this.bf!=a?(this.bf=a,R(this,32,1),this):this.bf};
function YB(a){a.tj||(a.tj=NA(a).la(),a.tj.zIndex(6),a.tj.stroke(a.af),F(a,a.tj));return a.tj}function ZB(a){a.A||(a.A=new $B(QA(a)),a.A.zIndex(0).Xb("ew-resize"),a.j.ba(a.A,"mousedown",function(a){a.stopPropagation()}),a.A.bd("mousedown",a.xE,!1,a),F(a,a.A));return a.A}function aC(a){a.Wb||(a.Wb=new $B(QA(a)),a.Wb.zIndex(10),a.j.ba(a.Wb,"mousedown",function(a){a.stopPropagation()}),a.Wb.bd("mousedown",a.CE,!1,a),F(a,a.Wb));return a.Wb}
function bC(a){a.P||(a.P=new $B(QA(a)),a.P.zIndex(20).Xb("col-resize"),a.P.o=ZB(a),a.j.ba(a.P,"mousedown",function(a){a.stopPropagation()}),a.P.bd("mousedown",a.vE,!1,a),F(a,a.P));return a.P}function cC(a){a.W||(a.W=new $B(QA(a)),a.W.zIndex(30).Xb("col-resize"),a.W.o=ZB(a),a.j.ba(a.W,"mousedown",function(a){a.stopPropagation()}),a.W.bd("mousedown",a.FE,!1,a),F(a,a.W));return a.W}
function dC(a){a.F||(a.F=new $B(QA(a)),a.F.zIndex(40).Xb("move"),a.j.ba(a.F,"mousedown",function(a){a.stopPropagation()}),a.F.bd("mousedown",a.HE,!1,a),F(a,a.F));return a.F}function eC(a){a.D||(a.D=new $B(QA(a)),a.D.zIndex(50).Xb("move"),a.j.ba(a.D,"mousedown",function(a){a.stopPropagation()}),a.D.bd("mousedown",a.uE,!1,a),F(a,a.D));return a.D}function fC(a){a.df||(a.df=QA(a).la(),a.df.stroke(a.cf).zIndex(60),F(a,a.df));return a.df}
function gC(a){ZB(a).clear().eb(1,0,0,1,0,0);aC(a).clear().eb(1,0,0,1,0,0);cC(a).clear().eb(1,0,0,1,0,0);bC(a).clear().eb(1,0,0,1,0,0);eC(a).clear().eb(1,0,0,1,0,0);dC(a).clear().eb(1,0,0,1,0,0);fC(a).clear();a.$a().enabled(!0)}g.xE=function(a){this.Mf=new hC(ZB(this));F(this,this.Mf);this.Mf.ba("start",this.yE,!1,this);this.Mf.ba("drag",this.zE,!1,this);this.Mf.ba("end",this.AE,!1,this);this.Mf.He(a.b)};
g.CE=function(a){this.Nf=new iC(aC(this));F(this,this.Nf);this.Nf.ba("start",this.DE,!1,this);this.Nf.ba("drag",this.EE,!1,this);this.Nf.ba("end",this.BE,!1,this);this.Nf.He(a.b)};g.vE=function(a){this.Lf=new jC(bC(this),!0);F(this,this.Lf);this.Lf.ba("start",this.wE,!1,this);this.Lf.ba("drag",this.ew,!1,this);this.Lf.ba("end",this.dw,!1,this);this.Lf.He(a.b)};
g.FE=function(a){this.Pf=new jC(cC(this),!1);F(this,this.Pf);this.Pf.ba("start",this.GE,!1,this);this.Pf.ba("drag",this.ew,!1,this);this.Pf.ba("end",this.dw,!1,this);this.Pf.He(a.b)};g.HE=function(a){this.og=new kC(0,dC(this),!0);F(this,this.og);this.og.ba("start",this.Uv,!1,this);this.og.ba("drag",this.Vv,!1,this);this.og.ba("end",this.Tv,!1,this);this.og.He(a.b)};
g.uE=function(a){this.ef=new kC(0,eC(this),!1);F(this,this.ef);this.ef.ba("start",this.Uv,!1,this);this.ef.ba("drag",this.Vv,!1,this);this.ef.ba("end",this.Tv,!1,this);this.ef.He(a.b)};g.yE=function(){this.g&&(this.g.g=!1);this.$a().fc().enabled(!1);LA(this.c);aC(this).clear();bC(this).clear();cC(this).clear();dC(this).clear();eC(this).clear();Ah(aa.document.body,"cursor","ew-resize")};g.zE=function(){this.l=!0;this.I=!1;this.rs=!0};
g.AE=function(a){if(this.l){this.g&&(this.g.g=!0);var b=ZB(this).qa();gC(this);var c=a.target.element;a=c.item;var d=ft(a);O(d);b=mA(this.X,4==c.type?(b.left+b.width/2-this.a.left)/this.a.width:(b.left-this.a.left)/this.a.width);if(!isNaN(b)){var e=0;switch(c.type){case 4:a.set("actualStart",b);a.G("actualStart",b);l(a.get("actualEnd"))&&(a.set("actualEnd",b),a.G("actualEnd",b));break;case 5:var c=c.Xd,e=a.Id("periods",c,"start"),f=a.Id("periods",c,"end"),e=f+(b-e);isNaN(e)||(a.set("periods",c,"start",
b),a.ug("periods",c,"start",b),a.set("periods",c,"end",e),a.ug("periods",c,"end",e));break;case 3:e=a.G("baselineStart");c=a.G("baselineEnd");e=b-e;isNaN(c+e)||(a.set("baselineStart",b),a.G("baselineStart",b));a.set("baselineEnd",c+e);a.G("baselineEnd",c+e);break;default:c=z(a.G("actualStart"))?a.G("actualStart"):a.G("autoStart"),e=z(a.G("actualEnd"))?a.G("actualEnd"):a.G("autoEnd"),c=e+(b-c),isNaN(c)||(a.set("actualStart",b),a.G("actualStart",b),a.set("actualEnd",c),a.G("actualEnd",c))}}d.K(!0);
gB(this);this.rs=this.l=!1;clearInterval(this.aa);this.aa=null}Ah(aa.document.body,"cursor","")};g.DE=function(){this.g&&(this.g.g=!1);this.ts=!0;this.$a().fc().enabled(!1);bC(this).clear();cC(this).clear();dC(this).clear();eC(this).clear();ZB(this).clear()};g.EE=function(){this.l=!0;this.I=!1};g.BE=function(a){if(this.l){this.g&&(this.g.g=!0);gC(this);a=a.target;var b=a.element;isNaN(a.ng)||b.item.set("progressValue",cp(100*a.ng,2)+"%");this.l=!1;clearInterval(this.aa);this.aa=null;this.ts=!1}};
g.GE=function(){this.g&&(this.g.g=!1);this.$a().fc().enabled(!1);aC(this).clear();bC(this).clear();cC(this).clear();dC(this).clear();eC(this).clear();Ah(aa.document.body,"cursor","col-resize");this.A.Xb("col-resize")};g.wE=function(){this.g&&(this.g.g=!1);this.$a().fc().enabled(!1);aC(this).clear();bC(this).clear();cC(this).clear();dC(this).clear();eC(this).clear();Ah(aa.document.body,"cursor","col-resize");this.A.Xb("col-resize")};
function lC(a,b,c){if(a.Ec){var d=a.Ec.a?a.P:a.W,e=d.item,f=d.Xd,h=d.a;switch(d.type){case 3:d=a.Ec.a?e.G("baselineEnd"):e.G("baselineStart");break;case 5:d=a.Ec.a?e.Id("periods",f,"end"):e.Id("periods",f,"start");break;default:d=a.Ec.a?z(e.G("actualEnd"))?e.G("actualEnd"):e.G("autoEnd"):z(e.G("actualStart"))?e.G("actualStart"):e.G("autoStart")}e=Hh(a.B().V().B()).x;b=c?0>c?a.a.left:a.a.left+a.a.width:b.clientX-e;c=lA(a.X,d);c=a.a.left+a.a.width*c;a.A.clear().moveTo(c,h.top).lineTo(b,h.top).lineTo(b,
h.top+h.height).lineTo(c,h.top+h.height).close()}}function mC(a,b,c,d){if(a.pa&&a.l){var e=a.pa.a?a.F:a.D,f=e.index,e=e.Xd,h=Hh(a.B().V().B()).x,k=Hh(a.B().V().B()).y;c||d?(c=a.pa.h-h,b=a.pa.I-k):(c=b.clientX-h,b=b.clientY-k);e=nC(a,f,e);d=bq(a.cf)%2&&gm===hm?.5:0;f=a.pa.a?e.left:e.left+e.width;e=e.top+e.height/2+d;fC(a).clear().moveTo(f,e).lineTo(c,b)}}g.ew=function(a){this.l=!0;this.I=!1;this.Ec=a.target;lC(this,a)};
g.dw=function(a){if(this.l){this.g&&(this.g.g=!0);var b=this.A.qa();gC(this);a=a.target.element;var c=a.item,d=a.Xd,e=ft(c);O(e);var f=(b.left+b.width-this.a.left)/this.a.width,b=mA(this.X,(b.left-this.a.left)/this.a.width),f=mA(this.X,f);if(!isNaN(b)&&!isNaN(f))switch(a.type){case 5:c.set("periods",d,"start",b);c.ug("periods",d,"start",b);c.set("periods",d,"end",f);c.ug("periods",d,"end",f);break;case 3:c.set("baselineStart",b);c.G("baselineStart",b);c.set("baselineEnd",f);c.G("baselineEnd",f);break;
default:c.set("actualStart",b),c.G("actualStart",b),c.set("actualEnd",f),c.G("actualEnd",f)}e.K(!0);gB(this);this.Ec=null;this.l=!1;clearInterval(this.aa);this.aa=null}Ah(aa.document.body,"cursor","");this.A.Xb("ew-resize")};g.Uv=function(a){this.g&&(this.g.g=!1);this.$a().fc().enabled(!1);LA(this.c);this.pa=a.target;gC(this)};g.Vv=function(a){this.Fc=this.l=!0;this.I=!1;this.pa.h=a.clientX;this.pa.I=a.clientY};
g.Tv=function(){this.l&&(this.g&&(this.g.g=!0),this.$a().enabled(!0),fC(this).clear(),this.l=!1,clearInterval(this.aa),this.aa=null)};
g.st=function(a){if(this.Ga&&a){var b;if(a.originalEvent.domTarget&&a.originalEvent.domTarget instanceof hB){b=a.originalEvent.domTarget;var c=a.item,d=a.period,e=a.periodIndex;if(b.l&&!this.l){var f=b.l;ZB(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.A.item=c;this.A.type=b.type;d&&(this.A.ub=d);l(e)&&(this.A.Xd=e);if(!c||1!=b.type&&0!=b.type&&2!=b.type)aC(this).clear();else{var h=l(c.get("progressValue"))?
parseFloat(c.get("progressValue"))/100:cp(c.G("autoProgress"),2),h=f.left+(h||0)*f.width,k=f.top+f.height;aC(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.Wb.a=f;this.Wb.item=c}h=f.left+f.width;c&&4!=b.type?(cC(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(),bC(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.W.a=f,this.W.item=c,this.W.type=b.type,this.P.a=f,this.P.item=c,this.P.type=b.type,d&&(this.W.ub=d,this.P.ub=d),l(e)&&(this.W.Xd=e,this.P.Xd=e)):(bC(this).clear(),cC(this).clear());c&&3!=b.type?(k=f.top+f.height/2,eC(this).moveTo(h+5+5,k).Vo(5,5,0,360),dC(this).moveTo(f.left-5+5,k).Vo(5,5,0,360),this.D.item=c,this.D.type=b.type,this.D.index=a.hoveredIndex+this.b.Ub(),this.F.item=c,this.F.type=b.type,this.F.index=a.hoveredIndex+this.b.Ub(),d&&(this.F.ub=d,this.D.ub=d),l(e)&&
(this.F.Xd=e,this.D.Xd=e)):(eC(this).clear(),dC(this).clear())}else this.Fc&&c&&(f=this.pa.a?this.F:this.D,h=f.item,k=f.index,3!=b.type&&6!=b.type?(d?(f={period:f.ub,index:k,periodIndex:f.Xd},c={period:d,index:a.hoveredIndex+this.b.Ub(),periodIndex:e}):(f={item:h,index:k},c={item:c,index:a.hoveredIndex+this.b.Ub()}),a=a.originalEvent.clientX-Hh(this.B().V().B()).x,b=b.l,b=.5>(a-b.left)/b.width,b=this.pa.a?b?"startstart":"startfinish":b?"finishstart":"finishfinish",fC(this).clear(),oC(this,f,c,b,void 0,
this.df)):mC(this,a.originalEvent))}else a.originalEvent.domTarget==ZB(this)||a.originalEvent.domTarget==aC(this)||a.originalEvent.domTarget==cC(this)||a.originalEvent.domTarget==bC(this)||a.originalEvent.domTarget==eC(this)||a.originalEvent.domTarget==dC(this)||this.l?this.Fc&&mC(this,a.originalEvent):gC(this)}};g.Pr=function(a){this.Ga&&(this.m=a.item)};
g.tt=function(a){if(this.Ga&&this.Fc){if(a){var b=a.item,c=a.periodIndex;a=a.originalEvent;var d=a.domTarget;if(d instanceof hB&&3!=d.type){a=a.clientX-Hh(this.B().V().B()).x;var d=d.l,e=this.pa.a?this.F:this.D,d=.5>(a-d.left)/d.width;a=e.item;d=this.pa.a?d?"startstart":"startfinish":d?"finishstart":"finishfinish";e=e.Xd;d=d||"finishstart";a instanceof at||(a=this.b.data().Tr("id",a),a=a.length?a[0]:null);if(a&&(b instanceof at||(b=this.b.data().Tr("id",b),b=b.length?b[0]:null),b)){O(this.b.data());
var f,h,k,m;m=!1;if(this.b.g){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=tc(f),k={},k.connectTo=n.connectTo,k.connectorType=n.connectorType||"finishstart",vc(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.c.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=tc(f),k={},k.connectTo=a.get("connectTo"),k.connectorType=a.get("connectorType")||"finishstart",vc(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.c.dispatchEvent(c)&&
(m&&a.set("connector",[k]),a.set("connector",f,h));this.b.data().K(!0)}}}this.Fc=!1}this.pa=null;this.I=!0};g.Ar=function(a){if(this.l&&!this.ts&&(this.Mb||this.ic)){var b=0,c=0;this.Mb&&(b=0=m){var k=.7*d,m=Math.round(a.a.left+a.a.width*m),n=Math.round(c+(d-k)/2);a.sf().add({value:{x:m,y:n}}).rf(k/2).H(h)}}}}}
function nC(a,b,c){var d=a.a.top+a.qd()+1,e=a.b.a,f=a.b.Ub(),h=a.b.j,k=a.b.xd(),f=f?e[f-1]:0,h=h[b];b=(b?e[b-1]:0)-(f+k)+d;d=pA(h);e=z(h.G("actualStart"))?h.G("actualStart"):h.G("autoStart");k=z(h.G("actualEnd"))?h.G("actualEnd"):h.G("autoEnd");e=a.b.g?h.Id("periods",c,"start"):e;c=a.b.g?h.Id("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=lA(a.X,e)*a.a.width+a.a.left-k;c=lA(a.X,c)*a.a.width+a.a.left+k;a.b.g||(h.get("baselineStart")&&h.get("baselineEnd")?
d=a.bf?2.7*d/2:.65*d:h.Qa()&&(d*=1-.7+.4));return new K(e,b,c-e,d)}
function oC(a,b,c,d,e,f){d=d||"finishstart";var h=b.index,k=c.index,m=b.periodIndex,n=c.periodIndex,p=nC(a,h,b.periodIndex),r=nC(a,k,c.periodIndex);if(p&&r){c=e&&e.fill?Zj(e.fill):a.fn;e=e&&e.stroke?ik(e.stroke):a.rn;b=null!=f;var u,v,x,w,y;f=f||null;var C=b?f:null,D,H=!0,J=bq(e)%2&&gm===hm?.5:0;switch((d+"").toLowerCase()){case "finishfinish":u=Math.round(p.left+p.width)+J;v=Math.round(p.top+p.height/2)+J;x=Math.round(r.left+r.width)+J;w=Math.round(r.top+r.height/2)+J;y="left";p.top==r.top?(f=sC(a,
u,v,x,w,f),u>x&&(y="right")):(p=Math.max(u+4+5,x+4+5),f=sC(a,u,v,p,v,f),f=sC(a,p,v,p,w,f),f=sC(a,p,w,x,w,f));C=tC(a,x,w,y,C);break;case "startfinish":u=Math.round(p.left)+J;v=Math.round(p.top+p.height/2)+J;x=Math.round(r.left+r.width)+J;w=Math.round(r.top+r.height/2)+J;y="left";u-5-5-4>x?(p=x+5+4,f=sC(a,u,v,p,v,f),f=sC(a,p,v,p,w,f),f=sC(a,p,w,x,w,f)):(H=r.top>=p.top,p=u-5,D=x+5+4,r=Math.round(H?r.top:r.top+r.height)+J,f=sC(a,u,v,p,v,f),f=sC(a,p,v,p,r,f),f=sC(a,p,r,D,r,f),f=sC(a,D,r,D,w,f),f=sC(a,
D,w,x,w,f));C=tC(a,x,w,y,C);break;case "startstart":u=Math.round(p.left)+J;v=Math.round(p.top+p.height/2)+J;x=Math.round(r.left)+J;w=Math.round(r.top+r.height/2)+J;y="right";p.top==r.top?(f=sC(a,u,v,x,w,f),u>x&&(y="left")):(p=Math.min(u-4-5,x-4-5),f=sC(a,u,v,p,v,f),f=sC(a,p,v,p,w,f),f=sC(a,p,w,x,w,f));C=tC(a,x,w,y,C);break;default:u=Math.round(p.left+p.width)+J,v=Math.round(p.top+p.height/2)+J,x=Math.round(r.left)+J,x>=u?(x=Math.min(x+5,Math.round(r.left+r.width/2)+J),r.top>p.top?(w=Math.round(r.top)+
J,f=sC(a,u,v,x,v,f),f=sC(a,x,v,x,w,f),C=tC(a,x,w,"bottom",C)):r.topp.top?r.top:r.top+r.height)+J,p=u+5,D=x-5-4,f=sC(a,u,v,p,v,f),f=sC(a,p,v,p,r,f),f=sC(a,p,r,D,r,f),f=sC(a,D,r,D,w,f),f=sC(a,D,w,x,w,f),C=tC(a,x,w,"right",C))}var r=!1,X;a.Ga&&(X={fromItemIndex:h,
toItemIndex:k,connType:d},a.b.g&&(X.fromPeriodIndex=m,X.toPeriodIndex=n,d&&(X.connType=d)),r=A(a.$)&&sc(a.$,X));f&&!b&&(f.stroke(e),f.tag=void 0,f.type=6,f.l=null,f.Xb(a.Ga?"pointer":"default"),f.G=X,f.stroke(r?a.Vj:e));C&&!b&&(C.fill(c).stroke(e),C.tag=void 0,C.type=6,C.l=null,C.Xb(a.Ga?"pointer":"default"),C.G=X,C.stroke(r?a.Vj:e))}}
function sC(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.a.left&&ka.a.top&&(f=pC(a),f.zIndex(60).moveTo(b,c).lineTo(d,e))}return f}
function tC(a,b,c,d,e){var f=e||null;if(b>=a.a.left&&b<=a.a.left+a.a.width&&c>=a.a.top&&c<=a.a.top+a.a.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=pC(a));f.zIndex(70).moveTo(b,c).lineTo(h,k).lineTo(m,n).lineTo(b,c)}return f}
function gB(a){var b=a.b.m,c=a.b.A;a.X.l=b;a.X.h=c;var d=a.kq()*(c-b),e=a.jq()*(c-b),f;f=a.X;f=isNaN(f.a)&&isNaN(f.g)&&isNaN(f.b)&&isNaN(f.c);var d=b-d,h=0,k=0,m=0;f||(k=gA(a.X),m=k.max,k=k.min,h=m-k);fA(a.X,d,c+e);h&&(k=gA(a.X),k=k.min,e=a.X,m=k,h=k+h,l(h)?k=h-m:(k=e.b-e.a,h=m+k),k=Math.min(e.c-e.g,k),h>e.c&&(h=e.c,m=h-k),mH){var X=this.a.left+this.a.width*H,na=.7*v;qC(this,new K(X,u+(v-na)/2,this.a.left+this.a.width*J-X,na),y,5)}}}rC(this,m,f,n);f=p+this.Ha}else for(var Y=this.a.top+this.qd()+1-this.b.xd(),Qa=this.b.j,ge=this.b.Ub();ge<=this.b.Tc();ge++){var eb=Qa[ge];if(!eb)break;var Ae=pA(eb),Be=Y+Ae,Kf=eb.get("baselineStart"),ii=eb.get("baselineEnd");if(l(Kf)&&l(ii)){var jd=eb,
ji=Y,Pe=Ae,he=z(jd.G("actualStart"))?jd.G("actualStart"):jd.G("autoStart"),Qj=z(jd.G("actualEnd"))?jd.G("actualEnd"):jd.G("autoEnd"),ql=jd.G("baselineStart"),Jn=jd.G("baselineEnd"),gf=lA(this.X,he),Dz=lA(this.X,Qj),Ez=lA(this.X,ql),Fz=lA(this.X,Jn);if(0gf||0Ez){var lh=this.a,eo=lh.left+lh.width*gf,Gz=lh.left+lh.width*Dz,Hl=ji+Pe*(1-.7)/2,Il=.7*Pe/2,Hz=lh.left+lh.width*Ez,qD=lh.left+lh.width*Fz,Fs=Hl+Il;if(this.bf)var rD=Hl,Hl=Fs,Fs=rD;var sD=new K(eo,Hl,Gz-eo,Il),tD=qC(this,sD,jd,1,
"actual");qC(this,new K(Hz,Fs,qD-Hz,Il),jd,3,"baseline");var Iz=1*Il,uD=Hl+(Il-Iz)/2,Jz=l(jd.get("progressValue"))?parseFloat(jd.get("progressValue"))/100:cp(jd.G("autoProgress"),2);Jz&&(qC(this,new K(eo,uD,Jz*(Gz-eo),Iz),jd,2,"progress").l=tD.l)}}else if(eb.Qa()){var of=eb,vD=Y,Kz=Ae,wD=z(of.G("actualStart"))?of.G("actualStart"):of.G("autoStart"),xD=z(of.G("actualEnd"))?of.G("actualEnd"):of.G("autoEnd"),Lz=lA(this.X,wD),Mz=lA(this.X,xD);if(0Lz){var fo=this.a.left+this.a.width*Lz,Nz=this.a.left+
this.a.width*Mz,Oz=vD+Kz*(1-.7)/2,Gs=.4*Kz,yD=new K(fo,Oz,Nz-fo,Gs),zD=qC(this,yD,of,0,"actual"),Pz=1*Gs,AD=Oz+(Gs-Pz)/2,Qz=l(of.get("progressValue"))?parseFloat(of.get("progressValue"))/100:cp(of.G("autoProgress"),2);Qz&&(qC(this,new K(fo,AD,Qz*(Nz-fo),Pz),of,2,"progress").l=zD.l)}}else if(JA(eb)){var Jl=eb,BD=Y,Rz=Ae,CD=Jl.get("actualStart"),Hs=lA(this.X,CD);if(0<=Hs&&1>=Hs){var mh=Jl.get("milestone"),ck=mh&&l(mh.stroke)?ik(mh.stroke):this.Mj,Sz=(aq(ck)?0:t(ck)?1:ck.thickness?ck.thickness:1)%2&&
gm===hm?.5:0,dk=Math.round(.7*Rz/2),go=Math.round(this.a.left+this.a.width*Hs)+Sz,ho=Math.round(BD+Rz/2)+Sz,ek=pC(this);ek.tag=Jl.get("id");ek.type=4;var Tz=go-dk,Uz=ho-dk,DD=go+dk,ED=ho+dk,Vz=dk+dk;ek.zIndex(20).moveTo(Tz,ho).lineTo(go,Uz).lineTo(DD,ho).lineTo(go,ED).close();var Wz=new K(Tz,Uz,Vz,Vz);ek.l=Wz;var nh=mh?mh.label:void 0,io=void 0;nh&&l(nh.value)?io=nh.value+"":io=Jl.get("name")||"";if(io){var Is=nh&&nh.position?nh.position:this.labels().position(),Is=tn(Is),FD={value:Vp(Wz,Is)},GD=
{value:io},HD=this.labels().add(GD,FD);nh&&HD.H(nh)}var Js=Jl==this.ga;if(mh){var Ks=void 0;Js?(Ks=this.Nd,ck=this.je):Ks=l(mh.fill)?Zj(mh.fill):this.Lj;ek.fill(Ks).stroke(ck)}else ek.fill(Js?this.Nd:this.Lj).stroke(Js?this.je:this.Mj)}}else{var Eg=eb,ID=Y,Xz=Ae,JD=z(Eg.G("actualStart"))?Eg.G("actualStart"):Eg.G("autoStart"),KD=z(Eg.G("actualEnd"))?Eg.G("actualEnd"):Eg.G("autoEnd"),Yz=lA(this.X,JD),Zz=lA(this.X,KD);if(0Yz){var jo=this.a.left+this.a.width*Yz,$z=this.a.left+this.a.width*Zz,ko=
.7*Xz,aA=ID+(Xz-ko)/2,LD=new K(jo,aA,$z-jo,ko),MD=qC(this,LD,Eg,1,"actual"),bA=1*ko,ND=aA+(ko-bA)/2,cA=parseFloat(Eg.get("progressValue"));cA&&(qC(this,new K(jo,ND,cA*($z-jo)/100,bA),Eg,2,"progress").l=MD.l)}}rC(this,eb,Y,Ae);Y=Be+this.Ha}this.labels().J();this.sf().J();for(var Ls=this.b.I,Ms=Ls.length,fk,OD=this.b.g?this.b.F:this.b.L;Ms--;){fk=Ls[Ms];var gk=fk.to;A(gk)||(gk=OD[gk]);l(gk)?(fk.to=gk,oC(this,fk.from,gk,fk.type,fk.connSettings)):id(Ls,Ms,1)}for(var Ns=this.uj,PD=this.Xj.length;Ns=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.xf=e}this.w&&(this.min=f[0]);this.m&&(this.max=f[1]);this.yc=this.max-this.min}};g.Ju=function(a){U(a,2)&&(this.b=!1,this.R(2))};g.C=function(){var a=Vo.v.C.call(this);a.ticks=this.U().C();a.minorTicks=this.ma().C();return a};g.O=function(a){Vo.v.O.call(this,a);this.U(a.ticks);this.ma(a.minorTicks)};function EB(){return new Vo}B("anychart.scales.dateTime",EB);Vo.prototype.ticks=Vo.prototype.U;Vo.prototype.minorTicks=Vo.prototype.ma;
Vo.prototype.transform=Vo.prototype.transform;Vo.prototype.extendDataRange=Vo.prototype.Ce;Vo.prototype.softMinimum=Vo.prototype.es;Vo.prototype.softMaximum=Vo.prototype.ds;Vo.prototype.minimumGap=Vo.prototype.Ak;Vo.prototype.maximumGap=Vo.prototype.zk;function uC(a){eh.call(this);this.X=a}E(uC,ur);g=uC.prototype;g.Y=2;g.Bd=NaN;g.Ib=4;g.Pc=6;g.nc=null;g.Gc=null;g.Jd=0;g.ti="linear";g.OD=function(a){return l(a)?(this.Bd!=a&&(a=G(a),0>a?(this.Ib=4,this.Pc=6,this.Bd=NaN):(this.Pc=this.Ib=NaN,this.Bd=+a),this.Gc=this.nc=null,this.R(2)),this):this.Bd};
g.count=function(a,b){return l(a)?(this.Ib!=a&&(this.Bd=NaN,this.Ib=Math.ceil(G(a)),this.Pc=Math.ceil(G(b)),2<=this.Ib||(this.Ib=4),this.Pc>=this.Ib||(this.Pc=this.Ib),this.Gc=this.nc=null,this.R(2)),this):[this.Ib,this.Pc]};g.xq=function(a){return l(a)?(a=+a||0,this.Jd!=a&&(this.Jd=a,this.Gc=null,this.nc||this.R(2)),this):this.Jd};g.set=function(a){td(this.nc,a)||(this.Bd=this.Pc=this.Ib=NaN,this.nc=kd(a,0),ld(this.nc),pd(this.nc,Mp),this.Gc=null,this.R(2));return this};
g.get=function(){var a=vC(this);return Wc(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.X)};function vC(a){a.nc?a=a.nc:(a.X.Nc(),a=a.Gc);return a||[]}g.mode=function(a){return l(a)?(a=(""+a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.ti!=a&&(this.Gc=null,this.ti=a,this.nc||this.R(2)),this):this.ti};
function wC(a,b,c,d,e,f){if("logarithmic"==a.ti){f=f||10;a.Gc=null;var h=[b,c];if(a.nc)d&&(h[0]=Math.min(b,a.nc[0]||0)),e&&(h[1]=Math.max(c,a.nc[a.nc.length-1]||0));else{b=ep(b,f);c=ep(c,f);var k=[],m=a.Bd;if(isNaN(m))for(var n=NaN,p=NaN,r=a.Ib;r<=a.Pc;r++){var n=(c-b)/(a.Ib-1),u=Math.log(n),v=Math.ceil(Math.pow(10,Math.floor(u*Math.LOG10E))),n=Math.min(Xp(n,v),Xp(n,Math.ceil(Math.pow(10,Math.ceil(u*Math.LOG10E)))),Xp(n,Math.ceil(Math.pow(2,Math.floor(u*Math.LOG2E)))),Xp(n,Math.ceil(Math.pow(2,Math.ceil(u*
Math.LOG2E)))),Xp(n,Math.ceil(v/2)),Xp(n,Math.ceil(v/4)),Xp(n,Math.ceil(v/8))),n=Math.max(n,1E-7),u=dp(Wp(b,n,a.Jd))-b,u=u*u,v=dp(Xp(c,n,a.Jd))-c,v=v*v,u=u+v;if(isNaN(p)||ub.length)){c=c||10;var f="logarithmic"==a.ti?a.yz:a.xz,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.xz=function(a,b,c,d){var e=this.Bd;isNaN(e)&&(e=(d-c)/(this.Ib-1));e=Math.max(e,1E-7);c=this.Gc[this.Gc.length-1];b=cp(b,7);for(a=cp(a,7);a<=b;a=cp(a+e,7))c!=a&&this.Gc.push(a),c=a};g.yz=function(a,b,c,d,e){var f=this.Bd;a=ep(a,e);b=ep(b,e);c=ep(c,e);d=ep(d,e);isNaN(f)&&(f=(d-c)/(this.Ib-1));f=Math.max(f,1E-7);c=this.Gc[this.Gc.length-1];b=cp(b,7);for(a=cp(a,7);a<=b;a=cp(a+f,7))c!=a&&this.Gc.push(fp(e,a)),c=a};
g.C=function(){var a=uC.v.C.call(this);a.mode=this.ti;a.base=this.Jd;this.nc?a.explicit=this.nc:(this.Ib==this.Pc?isNaN(this.Ib)||(a.count=this.Ib):(isNaN(this.Ib)||(a.minCount=this.Ib),isNaN(this.Pc)||(a.maxCount=this.Pc)),isNaN(this.Bd)||(a.interval=this.Bd));return a};g.cb=function(a){var b=arguments;return q(b[0])?(this.set(b[0]),!0):ur.prototype.cb.apply(this,b)};
g.O=function(a){uC.v.O.call(this,a);this.mode(a.mode);this.xq(a.base);this.nc=a.explicit||null;this.Ib=a.count||a.minCount||NaN;this.Pc=a.count||a.maxCount||NaN;this.Bd=a.interval||NaN;this.nc?this.Ib=this.Pc=this.Bd=NaN:this.Bd?this.Ib=this.Pc=NaN:(this.Ib=Math.ceil(G(this.Ib)),this.Pc=Math.ceil(G(this.Pc)),2<=this.Ib||(this.Ib=4),this.Pc>=this.Ib||(this.Pc=this.Ib))};uC.prototype.interval=uC.prototype.OD;uC.prototype.count=uC.prototype.count;uC.prototype.base=uC.prototype.xq;uC.prototype.set=uC.prototype.set;
uC.prototype.get=uC.prototype.get;uC.prototype.mode=uC.prototype.mode;function To(){Xr.call(this);this.j=this.h=null;this.zq=!0;this.a=10;this.L=!0}E(To,Xr);g=To.prototype;g.mi=function(){return"linear"};g.U=function(a){this.h||(this.h=this.Gm());return l(a)?(this.h.H(a),this):this.h};g.ma=function(a){this.j||(this.j=this.Gm(),O(this.j),this.j.count(5),this.j.K(!1));return l(a)?(this.j.H(a),this):this.j};g.ms=function(a){return l(a)?(a=!!a,a!=this.L&&(this.L=a,this.w||this.m)&&(this.b=!1,this.R(4)),this):this.L};
g.Nc=function(){if(!this.b){To.v.Nc.call(this);var a=wC(this.U(),this.min,this.max,this.w&&this.min!=this.o,this.m&&this.max!=this.l,this.a);this.w&&(this.min=a[0]);this.m&&(this.max=a[1]);xC(this.ma(),vC(this.U()),this.a,a[2],a[3]);this.yc=this.max-this.min}};g.JD=function(a){U(a,2)&&(this.b=!1,this.R(2))};g.Gm=function(){var a=new uC(this);F(this,a);Q(a,this.JD,this);return a};
g.C=function(){var a=To.v.C.call(this);a.ticks=this.U().C();a.minorTicks=this.ma().C();a.stackMode=this.cj();a.stickToZero=this.ms();return a};g.O=function(a){To.v.O.call(this,a);this.U(a.ticks);this.ma(a.minorTicks);this.cj(a.stackMode);this.ms(a.stickToZero)};function DB(){return new To}B("anychart.scales.linear",DB);To.prototype.ticks=To.prototype.U;To.prototype.minorTicks=To.prototype.ma;To.prototype.stackMode=To.prototype.cj;To.prototype.stickToZero=To.prototype.ms;To.prototype.softMinimum=To.prototype.es;
To.prototype.softMaximum=To.prototype.ds;To.prototype.minimumGap=To.prototype.Ak;To.prototype.maximumGap=To.prototype.zk;function yC(a){V.call(this);this.g=a;this.ca=null;this.a=[];this.L=[];this.l=null;this.A=[];this.c=null;this.P=[];this.aa=[];this.h=null;this.I="#f00";this.D=null;this.Uh("line")}E(yC,ov);g=yC.prototype;g.Y=ov.prototype.Y|4;g.Z=ov.prototype.Z|4064;g.SA=function(a,b,c){return this.gb("area",a,b,c)};g.UA=function(a,b,c){return this.gb("candlestick",a,b,c)};g.VA=function(a,b,c){return this.gb("column",a,b,c)};g.$A=function(a,b,c){return this.gb("line",a,b,c)};
g.bB=function(a,b,c){return this.gb("marker",a,b,c)};g.cB=function(a,b,c){return this.gb("ohlc",a,b,c)};g.dB=function(a,b,c){return this.gb("rangeArea",a,b,c)};g.eB=function(a,b,c){return this.gb("rangeColumn",a,b,c)};g.fB=function(a,b,c){return this.gb("rangeSplineArea",a,b,c)};g.gB=function(a,b,c){return this.gb("rangeStepArea",a,b,c)};g.mB=function(a,b,c){return this.gb("spline",a,b,c)};g.nB=function(a,b,c){return this.gb("splineArea",a,b,c)};
g.oB=function(a,b,c){return this.gb("stepArea",a,b,c)};g.pB=function(a,b,c){return this.gb("stepLine",a,b,c)};g.RA=function(a){var b=[],c=this.Uh(),d=arguments.length;O(this);if(d)for(var e=0;e=c?(a.h?a.h.clear():(a.h=Fk(),a.h.fill(null),a.h.stroke(a.I),a.h.Oa(!0),a.h.zIndex(1E3)),c=a.w.left+c*a.w.width,c=xo(c,d),a.h.moveTo(c,a.w.top),a.h.lineTo(c,a.w.ka()),a.h.parent()||a.b.nb(a.h)):a.h&&a.h.remove();for(d=0;de?(e=h.scale(),"layout"in f||(m=!1,h instanceof Ft&&(h=h.orientation(),m="left"==h||"right"==h),f.layout=m?"horizontal":"vertical"),"scale"in f||(h=ja(e),b[h]?f.scale=Uc(c,b[h]):(b[h]=e.C(),c.push(b[h]),f.scale=c.length-1))):f.axis=e;n.push(f)}n.length&&(a.grids=n);d=[];for(k=0;k=f.offset?b=f:c=f}var h;b?c?h=kf(c.color,b.color,(a-b.offset)/(c.offset-b.offset)):h=b.color:h=c.color;return cf(h)};
g.GD=function(a){this.Nc();a=ef(Tm(a).rd);var b,c,d,e,f,h,k;h=0;for(k=this.a.length;hMath.abs(m-n)&&.01>Math.abs(m-p)&&.01>Math.abs(n-p)&&(n=Math.round(f[1]*n+(1-n)*e[1])==a[1],p=Math.round(f[2]*p+(1-p)*e[2])==a[2],Math.round(f[0]*m+(1-m)*e[0])==a[0]&&n&&p)){b=this.yc*(m/(1/
(d.offset-c.offset))+c.offset)+this.min;break}}return l(b)?b:NaN};g.U=function(a){this.h||(this.h=OC(this));return l(a)?(this.h.H(a),this.R(2),this):this.h};g.ma=function(a){this.j||(this.j=OC(this),this.j.count(5));return l(a)?(this.j.H(a),this.R(2),this):this.j};
g.Nc=function(){if(!this.b){NC.v.Nc.call(this);var a=wC(this.U(),this.min,this.max,this.w&&this.min!=this.o,this.m&&this.max!=this.l,10);this.w&&(this.min=a[0]);this.m&&(this.max=a[1]);xC(this.ma(),vC(this.U()),10,a[2],a[3]);this.yc=this.max-this.min}};g.HD=function(a){U(a,2)&&(this.b=!1,this.R(2))};function OC(a){var b=new uC(a);F(a,b);Q(b,a.HD,a);return b}g.C=function(){var a=NC.v.C.call(this);a.ticks=this.U().C();a.minorTicks=this.ma().C();a.colors=this.Fm();return a};
g.O=function(a){NC.v.O.call(this,a);this.U(a.ticks);this.ma(a.minorTicks);this.Fm(a.colors)};B("anychart.scales.linearColor",function(a){var b=new NC;b.Fm.apply(b,arguments);return b});NC.prototype.colors=NC.prototype.Fm;NC.prototype.valueToColor=NC.prototype.ID;NC.prototype.colorToValue=NC.prototype.GD;NC.prototype.ticks=NC.prototype.U;NC.prototype.minorTicks=NC.prototype.ma;function PC(){To.call(this)}E(PC,To);g=PC.prototype;g.ur=function(a){return l(a)?(a=isNaN(+a)?this.a:+a,a!=this.a&&(this.a=a,this.R(2)),this):this.a};g.mi=function(){return"log"};g.transform=function(a){this.Nc();a=G(a);return jz(this,(ep(a,this.a)-this.D)/this.yc)};g.wf=function(a){this.Nc();a=kz(this,a);return fp(this.a,a*this.yc+this.D)};g.Nc=function(){this.b||(PC.v.Nc.call(this),this.D=ep(this.min,this.a),this.P=ep(this.max,this.a),this.yc=this.P-this.D)};
g.Nv=function(){var a=ep(this.g,this.a),b=ep(this.c,this.a),c=a-b;c||(this.c-=Math.E/2,this.g+=Math.E/2,c=1);this.w&&(this.D=b-c*this.I,isNaN(this.o)||(b=ep(this.o,this.a),this.D=0this.end&&(this.c=NaN),this.a.add(this.l));for(this.b=new ie(new Date(this.j));this.b.getTime()this.end&&(this.c=NaN));for(this.b=new ie(new Date(this.j));this.b.getTime()b&&(this.F=
b));isFinite(this.F)||(this.F=NaN);R(this,4194304)}if(T(this,4194304)){a=this.fb();b=this.ll().fb();c=this.a;e=this.F;rs(c);d=T(c,4194304);c.F=e;var f=bb(c.b),h=cb(c.b),k=c.a.Xc;if(isNaN(k)||isNaN(c.a.Sn)&&!isNaN(c.a.Xc)&&!isNaN(f))k=f;var m=c.a.nd;if(isNaN(m)||isNaN(c.a.Rn)&&!isNaN(c.a.Xc)&&!isNaN(h))m=h;e=0;if(!isNaN(k)){if(k=xs(c,k,m,c.l,c.o,c.c,c.a,d))c.c=k[0],c.a=k[1],e+=1;if(d=xs(c,f,h,c.A,c.D,c.m,c.w,d))c.m=d[0],c.w=d[1],e+=2}S(c,4194304);c=e;d=Cs(this.a);e=Ds(this.a);Es(this.a);Qs(this.a);
a.g=d;a.j=e;a.R(256);b.g=d;b.j=e;b.R(256);c&1&&(Bs(this.a,a,!1),cD(this));c&2&&(Bs(this.a,b,!0),$C(this.c),R(this,4096));S(this,4194304)}if(T(this,16384)){b=[];for(a=0;ad){m-=r[c];u++;delete w[c];v=!0;break}}else{if(c in
p&&p[c]>d){m+=w[c]=p[c];u--;v=!0;break}if(c in r&&r[c]b||1