diff --git a/.gitignore b/.gitignore index 772cd3e..a12d8cc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ *.pid *.swo *.pyc +node_modules +npm-debug.* +*.js.map diff --git a/demos/Anychart_Load_Data_From_Json.html b/demos/Anychart_Load_Data_From_Json.html index 99f37b5..7d259ef 100644 --- a/demos/Anychart_Load_Data_From_Json.html +++ b/demos/Anychart_Load_Data_From_Json.html @@ -3,10 +3,10 @@
c)var d=a,a=c,c=d;this.I= -YM(this,a);this.$=YM(this,c);this.R(4)}var e=this.Td(),f;if(W(this,I)){this.o?this.o.clear():this.o=Pl();if(this.b)for(b=0;bc){var d=b;b=c;c=d}if(b!=a.J||c!=a.F)a.J=b,a.F=c,a.B(I,J)}g.lF=function(a){return n(a)?(this.$=!!a,this):this.$}; -g.rc=function(){var a=this.ma(),a=a?a.clone():Kl(0,0,0,0);this.Kc()&&(W(this,4)&&(this.xE(),this.R(4)),this.kb()?(a.height-=this.D.height,"top"==this.bc&&(a.top+=this.D.height)):(a.width-=this.D.width,"left"==this.bc&&(a.left+=this.D.width)));return a}; -g.xE=function(){var a=this.ma(),b=this.kb()?a.height:a.width,c=U(this.Fb,b);null===this.Va||(c=Math.max(c,U(this.Va,b)));null===this.Bi||(c=Math.min(c,U(this.Bi,b)));c=this.kb()?this.padding().Fg(c):this.padding().Yg(c);this.D.left=a.left;this.D.top=a.top;this.kb()?(this.D.width=a.width,this.D.height=c,"bottom"==this.bc&&(this.D.top+=a.height-c)):(this.D.width=c,this.D.height=a.height,"right"==this.bc&&(this.D.left+=a.width-c));var d;this.de||this.kb()?this.ka=this.padding().Yi(this.D):(d=this.padding(), -"left"==this.bc?(b=U(d.ha("left"),this.D.width),a=U(d.ha("top"),this.D.height),c=U(d.ha("right"),this.D.width),d=U(d.ha("bottom"),this.D.height)):(b=U(d.ha("right"),this.D.width),a=U(d.ha("bottom"),this.D.height),c=U(d.ha("left"),this.D.width),d=U(d.ha("top"),this.D.height)),this.ka.left=this.D.left+d,this.ka.top=this.D.top+b,this.ka.width=this.D.width-d-a,this.ka.height=this.D.height-b-c);this.B(I|64)};g.Z0=function(a){a.g();!JF(this.ta,a.relatedTarget)&&this.lg(a)&&(this.Bb=!0,XN(this))}; -g.P6=function(a){a.g();!JF(this.ta,a.relatedTarget)&&this.lg(a)&&(this.Bb=!1,$N(this))};g.PU=function(a){a=a.target;a instanceof hC&&(a==this.o?WN(this,this.o,this.ub=!0):a==this.j&&WN(this,this.j,this.hb=!0))};g.OU=function(a){a=a.target;a instanceof hC&&(a==this.o?WN(this,this.o,this.ub=!1):a==this.j&&WN(this,this.j,this.hb=!1))}; -g.Uu=function(a){if(a.b instanceof nC){var b=a.b,c;b!=this.o||this.Ba?b!=this.j||this.la?b!=this.O||this.Ka||(this.Ka=c=new aO(this,this.O,!1)):this.la=c=new aO(this,this.j,!0):this.Ba=c=new aO(this,this.o,!0);c&&(this.ua.pa(c,"start",this.Y0),this.ua.pa(c,"end",this.X0),c.Ej(a.bj))}};g.n7=function(a){var b=dr(this.ta.Ha().P());a=this.kb()?a.clientX-b.x:a.clientY-b.y;bO(this,"backgroundClick","scrollerchangestart")&&(cO(this,!1,a),bO(this,"backgroundClick","scrollerchangefinish"))}; -g.Y0=function(a){var b;this.$&&a.g!=this.Ka?(a=VN(this),b="thumbDrag"):(a=VN(this),b="selectedRangeDrag");if(b=bO(this,b,"scrollerchangestart"))this.Sa++,this.o.Ze(null),this.j.Ze(null),this.O.Ze(null),Rl(document.body,"cursor",a);return b};g.X0=function(a){this.Sa=Math.max(this.Sa-1,0);$N(this);this.o.Ze(VN(this));this.j.Ze(VN(this));this.O.Ze(VN(this));Rl(document.body,"cursor","");bO(this,this.$&&a.g!=this.Ka?"thumbDrag":"selectedRangeDrag","scrollerchangefinish")}; -function XN(a){a.ib||(a.ta.ab(a.o),a.ta.ab(a.j),a.ib=!0)}function $N(a){a.ib&&a.nq().Pn()&&!a.Sa&&!a.Bb&&(a.ta.removeChild(a.o),a.ta.removeChild(a.j),a.ib=!1)}function WN(a,b,c){a=a.nq();a.enabled()?c?(c=a.Oc(),a=a.Hc()):(c=a.fill(),a=a.stroke()):(c=KE,a="none");b.fill(c);b.stroke(a)}function ZN(a){return Ac(Math.round(a*TN),0,TN)}g.US=function(a,b,c,d){return{type:a,startRatio:b,endRatio:c,source:d}};function bO(a,b,c,d,e){return a.dispatchEvent(a.US(c,(n(d)?d:a.J)/TN,(n(e)?e:a.F)/TN,b))} -function cO(a,b,c){c=dO(a,b,c);var d=a.ka;switch(a.bc){case "right":d=(d.top+d.height-c)/d.height;break;case "left":d=(c-d.top)/d.height;break;default:d=(c-d.left)/d.width}a.W&&(d=1-d);if(a.$&&b==a.o)c=d,d=a.F/TN,b="thumbDrag";else if(a.$&&b==a.j)c=a.J/TN,b="thumbDrag";else{var e=(a.F-a.J)/TN/2;c=d-e;d+=e;b=!0===b?"selectedRangeDrag":"backgroundClick"}c=ZN(c);d=ZN(d);c>d&&(e=a.o,a.o=a.j,a.j=e,e=a.Ba,a.Ba=a.la,a.la=e,e=c,c=d,d=e);c==a.J&&d==a.F||!bO(a,b,"scrollerchange",c,d)||(a.J=c,a.F=d,a.B(I,J))} -function dO(a,b,c){var d=a.ka,e=a.kb();a=la(b)||!a.$?(a.F-a.J)/TN*(e?d.width:d.height)/2:0;return e?Ac(c,d.left+a,d.left+d.width-a):Ac(c,d.top+a,d.top+d.height-a)}function eO(a,b){var c;c=a.$&&b==a.o?a.J:a.$&&b==a.j?a.F:(a.J+a.F)/2;c/=TN;a.W&&(c=1-c);var d=a.ka;return a.kb()?d.left+d.width*c:"left"==a.bc?d.top+d.height*c:d.top+d.height*(1-c)} -g.ca=function(){dg(this.ta);this.O=this.ea=this.X=this.j=this.o=this.ta=null;dg(this.Ba);this.Ba=null;dg(this.la);this.la=null;dg(this.Ka);this.Ka=null;dg(this.Ga);this.Ga=null;dg(this.bb);this.bb=null;SN.G.ca.call(this)}; -g.N=function(){var a=SN.G.N.call(this);a.fill=this.fill();a.selectedFill=this.JK();a.outlineStroke=this.iK();a.height=this.height();a.minHeight=this.jH();a.maxHeight=this.maxHeight();a.orientation=this.hp();a.autoHide=this.Pn();a.allowRangeChange=this.lF();a.thumbs=this.nq().N();return a}; -g.da=function(a,b){SN.G.da.call(this,a,b);this.hp(a.orientation);this.Pn(a.autoHide);this.lF(a.allowRangeChange);this.fill(a.fill);this.JK(a.selectedFill);this.iK(a.outlineStroke);this.height(a.height);this.jH(a.minHeight);this.maxHeight(a.maxHeight);this.nq(a.thumbs)};function aO(a,b,c){Dr.call(this,b.ia());this.b=a;this.I=c?b:null;this.j=void 0;this.Y=va(function(){this.j=void 0;cO(this.b,this.I||!0,this.fa)},this);Fr(this);this.pa("end",this.V0)}E(aO,Dr);g=aO.prototype; -g.V0=function(){n(this.j)&&(window.cancelAnimationFrame(this.j),this.Y(0))};g.Wn=function(){this.b.kb()?(this.g=eO(this.b,this.I),this.deltaY=0):(this.g=0,this.deltaY=eO(this.b,this.I))};g.yp=function(a,b){this.fa=this.b.kb()?a:b;n(this.j)||(this.j=window.requestAnimationFrame(this.Y))};g.Cx=function(a){return this.b.kb()?dO(this.b,this.I,a):0};g.Tr=function(a){return this.b.kb()?0:dO(this.b,this.I,a)};function UN(a){this.b=a}g=UN.prototype; -g.enabled=function(a){return n(a)?(a=!!a,this.j!=a&&(this.j=a,this.b.B(I,J)),this):this.j};g.Pn=function(a){return n(a)?(a=!!a,this.g!=a&&(this.g=a,this.b.B(I,J)),this):this.g};g.fill=function(a,b,c,d,e,f,h){if(n(a)){var k=Qc.apply(null,arguments);this.o!=k&&(this.o=k,this.b.B(I,J));return this}return this.o};g.stroke=function(a,b,c,d,e){if(n(a)){var f=Pc.apply(null,arguments);f!=this.I&&(this.I=f,this.b.B(I,J));return this}return this.I}; -g.Oc=function(a,b,c,d,e,f,h){if(n(a)){var k=Qc.apply(null,arguments);this.D!=k&&(this.D=k,this.b.B(I,J));return this}return this.D};g.Hc=function(a,b,c,d,e){if(n(a)){var f=Pc.apply(null,arguments);f!=this.F&&(this.F=f,this.b.B(I,J));return this}return this.F};g.N=function(){var a={};a.fill=T(this.fill());a.stroke=T(this.stroke());a.hoverFill=T(this.Oc());a.hoverStroke=T(this.Hc());a.enabled=this.enabled();a.autoHide=this.Pn();return a}; -g.W0=function(a){return la(a)||null===a?(this.enabled(!!a),!0):!1};g.U=function(a){var b=arguments[0];n(b)&&!this.W0.apply(this,arguments)&&v(b)&&(b=arguments[0],this.enabled("enabled"in b?!!b.enabled:!0),this.fill(b.fill),this.stroke(b.stroke),this.Oc(b.hoverFill),this.Hc(b.hoverStroke),this.Pn(b.autoHide));return this};SN.prototype.fill=SN.prototype.fill;SN.prototype.selectedFill=SN.prototype.JK;SN.prototype.outlineStroke=SN.prototype.iK;SN.prototype.height=SN.prototype.height; -SN.prototype.minHeight=SN.prototype.jH;SN.prototype.maxHeight=SN.prototype.maxHeight;SN.prototype.thumbs=SN.prototype.nq;SN.prototype.orientation=SN.prototype.hp;SN.prototype.allowRangeChange=SN.prototype.lF;SN.prototype.autoHide=SN.prototype.Pn;UN.prototype.enabled=UN.prototype.enabled;UN.prototype.autoHide=UN.prototype.Pn;UN.prototype.fill=UN.prototype.fill;UN.prototype.stroke=UN.prototype.stroke;UN.prototype.hoverFill=UN.prototype.Oc;UN.prototype.hoverStroke=UN.prototype.Hc;function fO(){SN.call(this,!0);this.I="afterAxes"}E(fO,SN);fO.prototype.position=function(a){if(n(a)){a:{a=String(a).toLowerCase();switch(a){case "beforeaxes":case "before":case "ba":case "b":case "inside":case "in":case "i":a="beforeAxes";break a}a="afterAxes"}a!=this.I&&(this.I=a,this.B(4|I,8|J));return this}return this.I};fO.prototype.N=function(){var a=fO.G.N.call(this);a.position=this.position();a.inverted=this.Fd();return a}; -fO.prototype.da=function(a,b){fO.G.da.call(this,a,b);this.position(a.position);this.Fd(a.inverted)};fO.prototype.position=fO.prototype.position;fO.prototype.inverted=fO.prototype.Fd;function gO(){Z.call(this);this.b=null;this.O=this.I=NaN;this.tb=null;this.W={};this.o={};this.g=null;this.Va=!1;this.$=null;var a=va(function(a,c){c=c.clone().round();if(!this.kb()){var d=1==c.width?.5:0;c.left-=d;c.width+=2*d}a.moveTo(c.left,c.top).lineTo(c.left+c.width,c.top).lineTo(c.left+c.width,c.top+c.height).lineTo(c.left,c.top+c.height).close()},this);n(a)&&this.j!=a&&(this.j=a,this.B(I,J));this.B(4294967295)}E(gO,Z);gO.prototype.za=Z.prototype.za|32768;gO.prototype.wa=Z.prototype.wa|I|4; -var hO={};hO.fill=Y(1,"fill",LI,I,J);hO.stroke=Y(1,"stroke",KI,I,J);hO.width=Y(0,"width",WI,4|I,J|8);hO.height=Y(0,"height",WI,4|I,J|8);hO.orientation=Y(0,"orientation",Ad,4|I,J|8);gO.prototype.J=hO;FI(gO,gO.prototype.J);g=gO.prototype;g.Wc=function(a){return this.o[a]};g.Ee=function(a){return null!=this.o[a]};g.Ve=function(a){return this.W[a]};g.ha=aJ;g.$d=function(a,b){this.o[a]=b};g.check=function(){return!0};g.Rk=function(a){n(a)&&(this.$=a);return this.$};g.Ak=$I; -g.Qg=function(){var a=[this.W];this.g&&(a=lj(a,this.g.Qg()));return a};g.Pg=function(){var a=[this.o];this.g&&(a=lj(a,this.g.Pg()));return a};g.parent=function(a){return n(a)?(this.g!=a&&(this.g&&uI(this.g,this.mP,this),(this.g=a)?(P(this.g,this.mP,this),this.margin().parent(this.g.margin())):this.margin().parent(null)),this):this.g};g.mP=function(a){var b=0,c=0;X(a,J)&&(b|=I,c|=J);X(a,8)&&(b|=4,c|=8);X(a,32768)&&(b|=1,c|=J);this.B(b,c)};g.rl=function(){this.B(4|I,J|8)}; -g.margin=function(a,b,c,d){this.$c||(this.$c=new dK,O(this,this.$c),P(this.$c,this.c1,this));return n(a)?(this.$c.U.apply(this.$c,arguments),this):this.$c}; -g.aa=function(){if(!this.Kb())return this;this.b||(this.b=Pl(),O(this,this.b));var a=this.P(),b=a?a.Ha():null,c=b&&!b.Fe();c&&b.qf();W(this,4)&&(iO(this),this.R(4));if(W(this,I)){this.b.fill(this.ha("fill"));this.b.stroke(this.ha("stroke"));this.b.clear();var d=new Q(this.I,this.O,this.F,this.D);this.j&&A(this.j)&&this.j(this.b,d);this.R(I)}W(this,2)&&(this.enabled()&&this.b.parent(a),this.R(2));W(this,8)&&(a=this.zIndex(),this.b.zIndex(a),this.R(8));c&&b.nf();return this}; -g.remove=function(){this.b&&this.b.parent(null)};function jO(a){a.tb&&!W(a,4)||iO(a);return new Q(0,0,a.tb.width,a.tb.height)}g.rc=function(){if(!this.tb||W(this,4))iO(this),this.R(4);var a=this.ma()||Kl(0,0,0,0);if(!this.enabled())return a;switch(this.ha("orientation")){case "top":a.top+=this.tb.height;a.height-=this.tb.height;break;case "right":a.width-=this.tb.width;break;case "bottom":a.height-=this.tb.height;break;case "left":a.left+=this.tb.width,a.width-=this.tb.width}return a}; -function iO(a){var b=a.P();b&&b.Ha();var c=a.margin(),b=a.ma(),d,e;b?a.kb()?(d=b.width,e=b.height):(d=b.height,e=b.width):d=e=void 0;var f=a.ha("width"),h=a.ha("height"),h=ZF(h)||!n(h)?"100%":h,f=U(ZF(f)||!n(f)?"100%":f,d);b&&d =b.top&&a<=b.Ra();a=[];a.push(this.g.xAnchor);a.push(this.g.secondXAnchor);a.push(this.g.thirdXAnchor);for(var c=!0,d=!0,e=0;e b.Wa());return!c&&!d};function sO(a,b){return a.ka.left+b*a.ka.width}function tO(a,b){return a.ka.Ra()-b*a.ka.height} -g.aa=function(){if(!this.Kb())return this;L(this);W(this,4)&&(this.ka=this.Rb(),this.B(64),this.R(4));this.hg();var a=this.gb();this.UD();W(this,I)&&(this.Kf(this.state),this.R(I));if(W(this,256)){if(a)15==this.he&&15==this.I?this.iC(this.g.xAnchor,this.g.valueAnchor,this.g.secondXAnchor,this.g.secondValueAnchor,this.g.thirdXAnchor,this.g.thirdValueAnchor):7<=this.he&&7<=this.I?this.fm(this.g.xAnchor,this.g.valueAnchor,this.g.secondXAnchor,this.g.secondValueAnchor):(3<=this.he&&3<=this.I||this.I== -this.he)&&this.Wj(this.g.xAnchor,this.g.valueAnchor);else return this.remove(),this.B(2),this.ja(!1),this;this.R(256)}W(this,1024)&&(this.ta.wc(!this.ha("allowEdit")),this.R(1024));if(W(this,512)){if(this.Sa){var a=this.Oa(),b=this.ac().enabled()||this.yc().enabled();L(a);if(!1!==a.enabled()||b){a.P(this.ta);a.clear();a.ma(this.ka);a.ue=5;var c=this.state,b=this.Oa(),c=rc(c);switch(c){case H:c=this.ac();break;case Hb:c=this.yc();break;default:c=null}if(!c||ha(c.enabled())?b.enabled():c.enabled())for(var d= -uO(this),e=0;e =b||a>this.ka.Wa()&&0<=b);return a};g.N=function(){var a=zO.G.N.call(this);JI(this,hJ,a,"Annotation");JI(this,dJ,a,"Annotation");JI(this,eJ,a,"Annotation");JI(this,fJ,a,"Annotation");JI(this,gJ,a,"Annotation");return a}; -g.da=function(a,b){II(this,hJ,a);II(this,dJ,a);II(this,eJ,a);II(this,fJ,a);II(this,gJ,a);zO.G.da.call(this,a,b)};g.ca=function(){zO.G.ca.call(this);eg(this.b);delete this.j};function AO(a){pq.call(this);this.Ta=a;this.j=this.b=null;this.o=!1;this.g=[];BO(this,!1)}E(AO,tI);g=AO.prototype;g.Zb=function(){return this.Ta};g.eh=function(a){this.b!=a&&this.j!=a&&(this.rd(),a.$o(H),BO(this)&&a.aa());this.j=a};g.rd=function(){this.j&&(this.j!=this.b&&(this.j.$o($b),BO(this)&&this.j.aa()),this.j=null)}; -g.select=function(a){if(this.b!=a){this.pe();if(this.b)return this;this.Ta.dispatchEvent({type:"annotationSelect",annotation:a})&&(this.b=a,a.$o(Hb),BO(this)&&rO(a)?a.aa():CO(this,!0))}return this};g.pe=function(){this.b&&this.Ta.dispatchEvent({type:"annotationUnselect",annotation:this.b})&&(this.b.$o(this.j==this.b?H:$b),BO(this)&&this.b.aa(),this.b=null,CO(this,!1));return this};g.rY=function(){return this.b}; -function CO(a,b){if(a.o!=b){a.o=b;L(a.Ta);for(var c=0;c =b||a>this.ka.Wa()&&0<=b);return a}; -g.N=function(){var a=JO.G.N.call(this);JI(this,hJ,a,"Annotation");JI(this,dJ,a,"Annotation");JI(this,eJ,a,"Annotation");JI(this,fJ,a,"Annotation");return a};g.da=function(a,b){II(this,hJ,a);II(this,dJ,a);II(this,eJ,a);II(this,fJ,a);JO.G.da.call(this,a,b)};g.ca=function(){JO.G.ca.call(this);eg(this.b);delete this.j};function KO(a){mO.call(this,a);this.b=null;this.D=vO(["stroke","hoverStroke","selectStroke"],2);this.j=vO(["fill","hoverFill","selectFill"],1);this.o=vO(["hatchFill","hoverHatchFill","selectHatchFill"],3)}E(KO,mO);FI(KO,dJ);FI(KO,eJ);FI(KO,fJ);FI(KO,hJ);FI(KO,kJ);bJ.rectangle=KO;g=KO.prototype;g.type="rectangle";g.he=7;g.hg=function(){KO.G.hg.call(this);this.b||(this.b=[this.ta.path(),this.ta.path(),this.ta.path()],this.b[0].zIndex(0),this.b[1].zIndex(1),this.b[2].zIndex(3))}; -g.Wj=function(a,b){for(var c=0;c k&&e>l?c=f=d=h=null:(c=iA(a,b,a,b+d,this.ka),f=iA(e,f,e,f+d,this.ka),b=Math.max(Math.min(a,e),k),a=Math.min(Math.max(a,e),l),d=[b,h],h=[a,h,a,m,b,m,b,h]);else{d=(d-b)/(c-a);b-=d*a;var p=f-d*e;b>p&&(f=b,b=p,p=f);a=c>a?Math.min(a,e):Math.max(a,e);e=c;e>a&&a>l||ea?(a=Math.max(a,k),e=l):(e=Math.min(a,l),a=k),c=d*a+b,f=d*a+p,k=d*e+b,l=d*e+p,f m&& -k>m?c=f=d=h=null:(c=kA(a,c,e,k,this.ka),f=kA(a,f,e,l,this.ka),0>d?(l=Math.max(a,(m-b)/d),b=Math.min(e,(h-p)/d),c?(d=[c[0],c[1]],h=[c[2],c[3],b,c[3]]):(d=[a,h],h=[b,h]),f?h.push(b,f[3],f[0],f[1],l,f[1]):h.push(b,m,l,m)):0 b?Math.min(b,d):Math.max(b,d),a=!(a a||a>this.ka.Wa()&&cc.length?c[0]:c[b]):0} -g.parent=function(a){return n(a)?(this.D!=a&&(null===a?(uI(this.D,this.MG,this),this.D=null):(this.D&&uI(this.D,this.MG,this),this.D=a,P(this.D,this.MG,this))),this):this.D};g.MG=function(a){var b=0,c=0;X(a,J)&&(b|=I,c|=J);X(a,8)&&(b|=4,c|=8);X(a,32768)&&(b|=1,c|=J);this.X=null;this.B(b,c)};function RO(a,b,c,d,e,f,h){switch(a.ha("cornerType")){case "round":b.te(e,f,h,h,!1,!0);break;case "roundInner":b.te(e,f,h,h,!1,!1);break;case "cut":b.lineTo(e,f);break;default:b.lineTo(c,d).lineTo(e,f)}} -g.aa=function(){if(!this.Kb())return this;var a=this.ha("fill")||"none",b=this.ha("stroke"),c=this.ha("topStroke"),d=this.ha("rightStroke"),e=this.ha("bottomStroke"),f=this.ha("leftStroke"),h=!!(c||d||e||f),k=c&&d&&e&&f,l,m,p=this.P()?this.P().Ha():null,q=p&&!p.Fe();q&&p.qf();if(W(this,4)){this.b||(this.b=BC());k&&this.g?this.g.clear().parent(null):(this.g||(this.g=Pl()),this.g.parent(this.b),this.g.clear());h?(this.o||(this.o=Pl()),this.o.parent(this.b),this.o.clear()):this.o&&this.o.clear().parent(null); -if(this.W)for(k=0,l=this.W.length;k d||c>e)return 1;if(b d)return 1}else if(a.ea){if(c e)return 1}return 0} -function bP(a){var b=a.ma(),c,d,e;b?(c=b.width,b=b.height,null!=a.lb?(a.X=d=U(a.lb,c),c=!1):(d=0,c=!0),null!=a.Fb?(a.Y=e=U(a.Fb,b),b=!1):(e=0,b=!0)):(OF(a.lb)?(c=!0,d=0):(c=!1,a.X=d=F(a.lb)),OF(a.Fb)?(b=!0,e=0):(b=!1,a.Y=e=F(a.Fb)));var f=a.padding();a.g.width(null);a.g.height(null);c?(d+=a.g.jb().width,a.ga=d,a.X=f.Yg(d)):d=a.ga=f.Xg(d);a.g.width(a.ga);b?(e+=a.g.jb().height,a.fa=e,a.Y=f.Fg(e)):e=a.fa=f.Wg(e);a.g.height(a.fa);var h=!c&&a.W||!b&&a.ea;L(a);if(h){var h=Math.round((a.la+a.Ka)/2),k=a.Ka, -l=a.la,m;m=a.b;var p=DC();p.dg("aria-hidden","true");a.se(p,!0);a.b=m;p.fontSize(a.la);if(0>=aP(a,p.jb().width,p.jb().height,d,e))d=a.la;else{p.fontSize(h);for(var q=m=aP(a,p.jb().width,p.jb().height,d,e);k!=l;){if(0>m)k=Math.min(h+1,l),h+=Math.floor((l-h)/2);else if(0 =q*m)break}if(0==m)dg(p);else{do h+=q,p.fontSize(h),m=aP(a,p.jb().width,p.jb().height,d,e);while(0>q*m);dg(p);0 a.nearestPointToCursor.distance&&(a.series.ba().select(a.nearestPointToCursor.index),c=a)});var d=c.series;a=this.P();var e=this.ma(),f=0==this.F.Al()%2?0:-.5,h=0==this.I.Al()%2?0:-.5,k=d.Fa(),l=d.Pa(),d=d.ba(),m=F(d.K("x")),p=F(d.K("value")); -if(this.J&&"none"!=this.J){var q;this.F.clear();q=Ac(m,e.fb(),e.Wa()-1);q=Math.round(q)-f;this.F.moveTo(q,e.qb()).lineTo(q,e.Ra())}this.g&&this.g.enabled()&&this.b.enabled()&&(f=this.Ft(this.g,k.transform(d.get("x"))),q=this.b.Gd()||bG,this.b.text(q.call(f,f)),k=kP(this,this.g,this.b,m,p,k.transform(d.get("x"))),this.b.x(k.x).y(k.y),this.b.P(a).aa());this.O&&"none"!=this.O&&(this.I.clear(),k=Ac(p,e.qb(),e.Ra()-1),k=Math.round(k)-h,this.I.moveTo(e.fb(),k).lineTo(e.Wa(),k));this.D&&this.D.enabled()&& -this.o.enabled()&&(e=this.Ft(this.D,l.transform(d.get("value"))),h=this.o.Gd()||bG,this.o.text(h.call(e,e)),l=kP(this,this.D,this.o,m,p,l.transform(d.get("value"))),this.o.x(l.x).y(l.y),this.o.P(a).aa())}};g.Cd=function(){lP(this);mP(this)};function lP(a){a.F.clear();a.b.P(null).remove()}function mP(a){a.I.clear();a.o.P(null).remove()}function nP(a){return n(a.scale().Ic(0))} -g.cr=function(a){if(this.enabled()){var b=this.P(),c=this.ma(),d=dr(this.P().Ha().P()),e=a.clientX-d.x;a=a.clientY-d.y;if(e>=c.fb()&&e<=c.Wa()&&a>=c.qb()&&a<=c.Ra()){var d=0==this.F.Al()%2?0:-.5,f=0==this.I.Al()%2?0:-.5,h=c.Wa()-c.fb(),k=c.Ra()-c.qb(),l=e-c.fb(),m=a-c.qb(),p;this.W?(p=(k-m)/k,h=l/h):(p=l/h,h=(k-m)/k);this.g&&nP(this.g)?(this.J&&"none"!=this.J&&(this.F.clear(),this.g.kb()?(k=Ac(oP(this,this.g,p,e),c.fb(),c.Wa()-1),this.F.moveTo(k-d,c.qb()).lineTo(k-d,c.Ra())):(k=Ac(oP(this,this.g, -p,a),c.qb(),c.Ra()-1),this.F.moveTo(c.fb(),k-f).lineTo(c.Wa(),k-f))),this.b.enabled()&&(k=this.Ft(this.g,p),l=this.b.Gd()||bG,this.b.text(l.call(k,k)),p=kP(this,this.g,this.b,e,a,p),this.b.x(p.x).y(p.y),this.b.P(b).aa())):lP(this);this.D&&nP(this.D)?(this.O&&"none"!=this.O&&(this.I.clear(),this.D.kb()?(p=Ac(oP(this,this.D,h,e),c.fb(),c.Wa()-1),this.I.moveTo(p-d,c.qb()).lineTo(p-d,c.Ra())):(p=Ac(oP(this,this.D,h,a),c.qb(),c.Ra()-1),this.I.moveTo(c.fb(),p-f).lineTo(c.Wa(),p-f))),this.o.enabled()&&(c= -this.Ft(this.D,h),d=this.o.Gd()||bG,this.o.text(d.call(c,c)),e=kP(this,this.D,this.o,e,a,h),this.o.x(e.x).y(e.y),this.o.P(b).aa())):mP(this)}else this.Cd()}};function oP(a,b,c,d){a=a.ma();var e=b.scale(),f="ordinal"==e.Ua();c=e.transform(e.Ic(c),.5);return b.kb()?f?Math.round(a.left+c*a.width):d:f?Math.round(a.top+a.height-c*a.height):d} -function kP(a,b,c,d,e,f){a=a.ma();var h=0,k=0;if(!b)return{x:h,y:k};var l=b.scale(),m=b.Rb(),p="ordinal"==l.Ua();f=l.transform(l.Ic(f),.5);var q=b.enabled(),l=q?m.fb():a.Wa(),t=q?m.qb():a.Ra(),u=q?m.Wa():a.fb(),m=q?m.Ra():a.qb();switch(b.Je()){case "left":h=pP(c)?u-1:u+1;k=p?Math.round(a.top+a.height-f*a.height):e;break;case "top":h=p?Math.round(a.left+f*a.width):d;k=qP(c)?m-1:m+1;break;case "right":h=pP(c)?l-1:l+1;k=p?Math.round(a.top+a.height-f*a.height):e;break;case "bottom":h=p?Math.round(a.left+ -f*a.width):d,k=qP(c)?t-1:t+1}return{x:h,y:k}}function pP(a){a=$O(a);return"leftTop"==a||"leftCenter"==a||"leftBottom"==a}function qP(a){a=$O(a);return"leftTop"==a||"centerTop"==a||"rightTop"==a} -g.Ft=function(a,b){if(!a)return null;var c=a.scale(),d=c.Ua(),e=c.Ic(b),f;switch(d){case "linear":f=+parseFloat(e).toFixed();break;case "log":f=+e.toFixed(1);break;case "ordinal":f=String(e);break;case "dateTime":var h=new Date(e),d=h.getMonth()+1;f=h.getDate();h=h.getFullYear();f=(10>d?"0"+d:""+d)+"-"+(10>f?"0"+f:""+f)+"-"+h}return{value:f,rawValue:e,max:c.max?c.max:null,min:c.min?c.min:null,scale:c}}; -g.ZA=function(a){var b=this.ma(),c=a.offsetX;a=a.offsetY;(c<=b.fb()||c>=b.Wa()||a<=b.qb()||a>=b.Ra())&&this.Cd()};g.remove=function(){this.Cd()};g.ca=function(){this.Ca&&(this.Ca.Ac("mouseover",this.cr,!1,this),this.Ca.Ac("mousemove",this.cr,!1,this),this.Ca.Ac("mouseout",this.ZA,!1,this),this.Ca.Ac("pointshover",this.show,!1,this),this.Ca=null);dg(this.F);this.F=null;dg(this.I);this.D=this.g=this.I=null;dg(this.b);this.b=null;dg(this.o);this.o=null;fP.G.ca.call(this)}; -g.N=function(){var a=fP.G.N.call(this);a.displayMode=this.gI();a.xStroke=T(this.gv());a.yStroke=T(this.jv());a.xLabel=this.b.N();a.yLabel=this.o.N();return a};g.da=function(a,b){fP.G.da.call(this,a,b);this.gI(a.displayMode);this.gv(a.xStroke);this.jv(a.yStroke);this.Ns(a.xLabel);this.Os(a.yLabel)};fP.prototype.displayMode=fP.prototype.gI;fP.prototype.xStroke=fP.prototype.gv;fP.prototype.yStroke=fP.prototype.jv;fP.prototype.xLabel=fP.prototype.Ns;fP.prototype.yLabel=fP.prototype.Os;function rP(){ZO.call(this)}E(rP,ZO);rP.prototype.N=function(){var a=rP.G.N.call(this);n(this.position())&&(a.position=this.position());return a};rP.prototype.da=function(a,b){rP.G.da.call(this,a,b);this.position(a.position)};rP.prototype.ca=function(){rP.G.ca.call(this)};rP.prototype.position=rP.prototype.position;rP.prototype.background=rP.prototype.zw;rP.prototype.padding=rP.prototype.padding;rP.prototype.width=rP.prototype.width;rP.prototype.height=rP.prototype.height;rP.prototype.anchor=rP.prototype.anchor; -rP.prototype.offsetX=rP.prototype.offsetX;rP.prototype.offsetY=rP.prototype.offsetY;rP.prototype.text=rP.prototype.text;rP.prototype.minFontSize=rP.prototype.Ci;rP.prototype.maxFontSize=rP.prototype.Ai;rP.prototype.adjustFontSize=rP.prototype.dr;rP.prototype.rotation=rP.prototype.rotation;function sP(a){Z.call(this);this.W=a;this.xa={};this.J={};this.j=this.D=this.I=this.F=this.o=this.ta=null;this.g={vc:{x:0,y:0,height:0},name:{x:0,y:0,height:0},type:{x:0,y:0,height:0},description:{x:0,y:0,height:0}};this.Y={fontColor:"color",fontOpacity:"opacity",fontDecoration:"decoration",textDirection:"direction"};this.index=NaN}E(sP,Z);g=sP.prototype;g.za=Z.prototype.za;g.wa=Z.prototype.wa;g.check=function(){return!0};g.ha=function(a){return n(this.xa[a])?this.xa[a]:this.J[a]};g.Wc=function(a){return this.xa[a]}; -g.Ve=function(a){return this.J[a]};g.Ee=function(a){return n(this.xa[a])};g.$d=function(a,b){this.xa[a]=b};function tP(a,b,c){var d=a.ha(b);a=a.Ve(b);r(c)||(c=[c]);for(b=0;bd&&(x=u+l,y=y+B.height+ -m+p),e.offsetX(x),e.offsetY(y),e.aa(),D=!0,x+=B.width+k+l;e=y+B.height+m}isNaN(a)?(this.O=Math.max(w,e),isNaN(t)||(this.O=Math.min(this.O,t)),isNaN(h)||(this.O=Math.max(this.O,h))):this.O=a;this.$=Kl(0,0,q,this.O);this.o.Vb(1,0,0,1,this.g.vc.x,this.g.vc.y);this.F.Vb(1,0,0,1,this.g.name.x,this.g.name.y);this.I.Vb(1,0,0,1,this.g.type.x,this.g.type.y);this.D.Vb(1,0,0,1,this.g.description.x,this.g.description.y);this.ta.clip(this.$);this.R(4)}this.ta.Vb(1,0,0,1,0,this.Wh);c&&b.nf();return this};g.N=function(){return sP.G.N.call(this)}; -g.da=function(a,b){sP.G.da.call(this,a,b)};g.ca=function(){this.W=null;eg(this.j);this.j=null;dg(this.D);this.D=null;dg(this.I);this.I=null;dg(this.F);this.F=null;dg(this.o);this.o=null;dg(this.ta);this.ta=null;sP.G.ca.call(this)};function yP(){Z.call(this);this.F=new pJ;P(this.F,this.WZ,this);this.I=this.ta=null;this.xa={};this.Ba={};this.Ga=[];this.g=[];this.Ma=this.ga=0}E(yP,lO);yP.prototype.za=Z.prototype.za;yP.prototype.wa=Z.prototype.wa|I|65472;function zP(a,b,c){var d={},e,f,h;if(a.length)for(h in b)f=b[h].yK,e=f.charAt(0).toUpperCase()+f.substr(1),e=a+e,e=c.get(e),n(e)&&(d[f]=e);else for(h in b)f=b[h].yK,e=c.get(f),n(e)&&(d[f]=e);return d}var AP={};AP.stroke=Y(1,"stroke",NI,I,J);AP.oddFill=Y(1,"oddFill",OI,I,J); -AP.evenFill=Y(1,"evenFill",OI,I,J);AP.drawTopLine=Y(0,"drawTopLine",EI,256,J);AP.drawRightLine=Y(0,"drawRightLine",EI,256,J);AP.drawBottomLine=Y(0,"drawBottomLine",EI,256,J);AP.drawLeftLine=Y(0,"drawLeftLine",EI,256,J);FI(yP,AP);g=yP.prototype;g.Wc=function(a){return this.xa[a]};g.Ee=function(a){return null!=this.xa[a]};g.Ve=function(a){return this.Ba[a]};g.ha=function(a){return null!=this.xa[a]?this.xa[a]:this.Ba[a]};g.$d=function(a,b){this.xa[a]=b};g.check=function(){return!0}; -g.target=function(a){return n(a)?(this.b!=a&&(this.b=a,this.B(512,J)),this):this.b};g.Sm=function(a){this.o||(this.o=new OO,P(this.o,this.VZ,this));return n(a)?(this.o.U(a),this):this.o};g.VZ=function(a){X(a,J)&&this.B(64,J)};g.p6=function(){this.B(1024,J)};g.ow=function(a){this.W||(this.W=new fK,P(this.W,this.p6,this));return n(a)?(this.W.U(a),this):this.W};g.S6=function(){this.B(2048,J)};g.names=function(a){this.Y||(this.Y=new hK,P(this.Y,this.S6,this));return n(a)?(this.Y.U(a),this):this.Y}; -g.A9=function(){this.B(4096,J)};g.pw=function(a){this.ea||(this.ea=new hK,P(this.ea,this.A9,this));return n(a)?(this.ea.U(a),this):this.ea};g.H3=function(){this.B(8192,J)};g.ax=function(a){this.O||(this.O=new hK,P(this.O,this.H3,this));return n(a)?(this.O.U(a),this):this.O};g.f9=function(){this.B(16384,J)};g.mq=function(a){this.X||(this.X=new YO,P(this.X,this.f9,this));return n(a)?(this.X.U(a),this):this.X};g.DO=function(a){return n(a)?(a=Ac(F(a),0,1),this.ga!=a&&(this.ga=a,this.B(128,J)),this):this.ga}; -g.CO=function(a){return n(a)?(this.F.U(a),this.B(32768,J),this):this.F};g.WZ=function(){this.B(32768,J)};g.ba=function(){return this.b?this.b.ba():null};g.BO=function(a){return this.D[a.index]};g.YR=function(){return NaN};g.XR=function(){return NaN};function BP(a,b,c){for(var d=0;d this.g.length&&this.B(31744);for(d.reset();d.advance();){var a=d.ra(),e=void 0;this.g[a]?a=this.g[a]:((e=this.Ga.pop())|| -(e=new sP(this)),this.g.push(e),e.index=a,a=e);var e=d,f=void 0,h=f=f=f=f=void 0,h=void 0,f=zP("image",gK,e),h=e.get("imageMargin");n(h)&&(f.margin=wF(h));a.$d("imageSettings",f);f=zP("name",iK,e);h=e.get("nameMargin");n(h)&&(f.margin=wF(h));a.$d("nameSettings",f);f=zP("type",iK,e);h=e.get("typeMargin");n(h)&&(f.margin=wF(h));a.$d("typeSettings",f);f=zP("description",iK,e);h=e.get("descriptionMargin");n(h)&&(f.margin=wF(h));a.$d("descriptionSettings",f);f=zP("tags",iK,e);h=e.get("tagsMargin");n(h)&& -(f.margin=wF(h));h=e.get("tagsPadding");n(h)&&(f.padding=wF(h));h=e.get("tagsBackground");n(h)&&(f.background=h);a.$d("tagSettings",f);a.$d("width",this.ie.width);a.$d("height",this.ie.height);a.$d("imageSrc",e.get("image")||"");a.$d("name",e.get("name")||null);a.$d("type",e.get("type")||null);a.$d("description",e.get("description")||null);h=(h=e.get("tags"))?r(h)?h.slice():[h]:[];a.$d("tags",h);h=e.get("enabled");h=n(h)&&!isNaN(h)?!!h:!0;a.enabled(h).Ya(this.mq())}for(a=(a=d.Jb())||0;this.g.length!= -a;)d=this.g.pop(),L(d).enabled(!1).ja(!1).aa(),this.Ga.push(d);this.B(256);this.R(512)}var k,l;if(W(this,31744)){this.mq().Sm().R(4294967295);e=this.ow().N();h=this.names().N();f=this.pw().N();k=this.ax().N();l=this.mq().N();for(d=0;d a.nearestPointToCursor.distance&&(c=a)});a=hP(this);var d=jP(this),e=this.gv(),f=this.jv(),h=this.Ns(),k=this.Os(),l=c.series,m=l.ba();m.select(c.nearestPointToCursor.point.index);var p=F(m.K("x")),m=F(m.K("value"));if(isNaN(p)||isNaN(m))m=EP(l).value,p=m.x,m=m.y;var l=this.Ca.scale(),m=l.Ic(p,m), -p=m[0],m=m[1],q=l.Wm(p),l=l.Xm(m);0 q?(e&&"none"!=e&&FP(this,a,this.F,p),h.enabled()&&GP(this,a,h,p)):lP(this);0l?(f&&"none"!=f&&FP(this,d,this.I,m),k.enabled()&&GP(this,d,k,m)):mP(this)}}; -g.update=function(a,b){if(this.enabled()){var c,d;n(a)?c=parseFloat(a):c=n(this.Y)?this.Y:0;n(b)?d=parseFloat(b):d=n(this.X)?this.X:0;c=this.Ca.YI(c,d);var e=this.Ca.Ic(c.x,c.y);c=e["long"];d=e.lat;var f=this.Ca.scale(),h=f.Wm(e.x),e=f.Xm(e.y),f=hP(this),k=jP(this),l=this.gv(),m=this.jv(),p=this.Ns(),q=this.Os();0 h&&0 e?(f&&nP(f)?(l&&"none"!=l&&FP(this,f,this.F,c),p.enabled()&&GP(this,f,p,c)):lP(this),k&&nP(k)?m&&"none"!=m&&(FP(this,k,this.I,d),q.enabled()&&GP(this,k,q,d)):mP(this)):this.Cd()}}; -g.cr=function(a){this.Y=a.clientX;this.X=a.clientY;this.update(a.clientX,a.clientY)};g.ZA=function(a){if(!JF(this.Ca,a.relatedTarget)){this.Y=a.clientX;this.X=a.clientY;a=this.Ca.YI(a.clientX,a.clientY);var b=this.Ca.Ic(a.x,a.y),c=this.Ca.scale();a=c.Wm(b.x);b=c.Xm(b.y);(0>a||1b||1b&&(b==a.g?(a.g=1,a.b=b):(a.b=Math.min(b,a.g),a.g=Math.max(b,a.g)),$P(a),a.B(64,J),XP(a,"api")),a):a.b}function aQ(a){var b;return n(b)?(b=+b,!isNaN(b)&&a.g!=b&&0=b&&(b==a.b?(a.b=0,a.g=b):(a.g=Math.max(b,a.b),a.b=Math.min(b,a.b)),$P(a),a.B(64,J),XP(a,"api")),a):a.g} -function bQ(a,b){b=+b;if(!isNaN(b)){b=Ac(b,0,1);var c=a.g-a.b,d=Ll(Ac(b+c,0,1),4),c=Ll(d-c,4);if(a.b!=c||a.g!=d)a.b=c,a.g=d,$P(a),a.B(64,J),XP(a,"user_action")}}function cQ(a,b){b=+b;var c=isNaN(b)?40:b;if(a.j&&c&&(c=c+(dQ(a)?a.j.top:a.j.left),c=+c,a.j&&!isNaN(c))){var d=dQ(a);c!=(d?a.j.top:a.j.left)&&(d?a.j.top=c:a.j.left=c,VP(a),WP(a),a.B(64,J),XP(a,"user_action"))}}function eQ(a,b){b=+b;var c=isNaN(b)?.05:Ac(b,-1,1);c&&bQ(a,a.b+c)} -g.GH=function(a){return n(a)?(la(a)&&this.Y!=a&&(this.Y=a,this.B(4,J)),this):this.Y};g.ZJ=function(a){return n(a)?(this.O!=a&&(this.O=a,fQ(this,this.O)),this):this.O};g.$J=function(a){return n(a)?(this.Ga=a,this):this.Ga};function gQ(a){a.W||(a.W=BC(),ML(a,a.W,a.jQ,a.iQ,a.e3),O(a,a.W));return a.W}function fQ(a,b){a.X=SE(a.X,b,!0);a.ea=SE(a.ea,b,!1);a.ga=SE(a.ga,b,!0);a.la=SE(a.la,b,!1);a.B(I,J)}g.jQ=function(a){a.preventDefault();fQ(this,this.Ga);this.lg(a)}; -g.iQ=function(a){a.preventDefault();fQ(this,this.O);this.lg(a)};g.e3=function(a){a.preventDefault();var b=dQ(this),c=this.F.jb(),d=this.F.Ng(),e=b?a.offsetY:a.offsetX,d=b?Ll((e-d.top)/d.height,4):Ll((e-d.left)/d.width,4);(b?e<=c.top:e<=c.left)?bQ(this,d):(c=+d,isNaN(c)||(c=Ac(c,0,1),b=this.g-this.b,c=Ll(Ac(c-b,0,1),4),b=Ll(c+b,4),this.b==c&&this.g==b))||(this.b=c,this.g=b,$P(this),this.B(64,J),XP(this,"user_action"));this.lg(a)};function hQ(a){a.fa||(a.fa=iC(),O(a,a.fa));return a.fa} -function iQ(a){a.D||(a.D=new fN,hN(a.D,16,!1),P(a.D,function(){a.D.aa()}),lN(a.D,function(){YP(a)?cQ(a,40):eQ(a,.05)}),O(a,a.D));return a.D}function jQ(a){a.I||(a.I=new fN,hN(a.I,16,!1),P(a.I,function(){a.I.aa()}),lN(a.I,function(){YP(a)?cQ(a,-40):eQ(a,-.05)}),O(a,a.I));return a.I}function kQ(a){a.F||(a.F=iC(),a.F.Ya(gQ(a)),np(a.F,"drag",a.U0,!1,a),np(a.F,"end",a.T0,!1,a),ML(a,a.F,a.jQ,a.iQ,null,null,null,a.Z8),O(a,a.F));return a.F}g.Z8=function(a){a.preventDefault();this.lg(a)}; -g.U0=function(){lQ(this,!0)};g.T0=function(){lQ(this,!1)};function lQ(a,b){var c=dQ(a),d=a.F.Ng(),e=a.F.jb(),f=!!b,h=c?d.top:d.left,d=c?d.height:d.width,k=c?e.top:e.left,l=k+(c?e.height:e.width);10>=(c?e.height:e.width)?(c=a.g-a.b,a.b=(k-h)*(1-c)/(d-10),a.g=Math.min(a.b+c,1)):(a.b=Ll((k-h)/d,5),a.g=Ll((l-h)/d,5));$P(a);f||a.B(64,J);XP(a)} -function $P(a){if(a.o&&a.j){var b;if(dQ(a)){b=a.o.height;var c=Ll((a.g-a.b)*b,1);a.j.top=Ll(a.b*b,1)+a.o.top;a.j.height=c}else b=a.o.width,c=Ll((a.g-a.b)*b,1),a.j.left=Ll(a.b*b,1)+a.o.left,a.j.width=c}}function WP(a){if(a.o&&a.j){var b=dQ(a),c=b?a.j.top-a.o.top:a.j.left-a.o.left,d=b?c+a.j.height:c+a.j.width,b=b?a.o.height:a.o.width;a.b=Ll(c/b,4);a.g=Ll(d/b,4)}} -function VP(a){var b=a.j;a=a.o;b.width>a.width&&(b.width=a.width);b.height>a.height&&(b.height=a.height);b.top+b.height>a.top+a.height&&(b.top-=b.top+b.height-(a.top+a.height));b.left+b.width>a.left+a.width&&(b.left-=b.left+b.width-(a.left+a.width));b.top (d?a.height:a.width)/(d?a.width:a.height);e=f=d?a.width:a.height;k=a.left;l=a.top;h&&(d?f=Ll(a.height/3,1):e=Ll(a.width/3,1));h=d?a.left:a.left+a.width-e;d=d?a.top+a.height-f:a.top;this.D.ma(a);this.D.position({x:h,y:d}).width(e).height(f).aa();this.I.ma(a);this.I.position({x:k,y:l}).width(e).height(f).aa();this.D.ja(!1);this.I.ja(!1)}this.B(I|64);this.R(4)}W(this,I)&&(this.fa.fill(this.X).stroke(this.ea),this.F.fill(this.ga).stroke(this.la),this.R(I)); -if(W(this,64)){if(0>=this.b&&1<=this.g||this.b==this.g)gQ(this).visible(!1);else{gQ(this).visible(!0);e=dQ(this);f=this.Ea;a=Math.min(5,Math.min(f.width,f.height)/2);this.fa.pg(f).round(a);this.Y?(d=this.D.width(),h=this.D.height(),k=e?f.left:f.left+d+1,l=e?f.top+h+1:f.top,d=e?f.width:f.width-2*(d+1),h=e?f.height-2*(h+1):f.height,k=new Q(k,l,d,h)):k=f.clone();d=e?k.height:k.width;l=h=Ll(d*(this.g-this.b),1);var m=!1;10>h&&(m=!0,l=10);m?(h=this.b*(d-l)/(1+this.b-this.g),d=e?f.left:Ll(k.left+h,1),h= -e?Ll(k.top+h,1):f.top):(d=e?f.left:Ll(k.left+this.b*k.width,1),h=e?Ll(k.top+this.b*k.height,1):f.top);m=e?f.width:l;e=e?l:f.height;this.F.fk(UP(d)).gk(UP(h)).ek(Math.round(m)).ck(Math.round(e)).round(a).Ng(k);this.F.Vb(1,0,0,1,0,0)}this.R(64)}W(this,8)&&(gQ(this).zIndex(this.zIndex()),this.R(8));c&&b.nf()}return this};function dQ(a){return"horizontal"!=a.J.toLowerCase()}g.remove=function(){this.W&&this.W.parent(null)}; -function XP(a,b){if(a.Ba){0<=a.Ka&&(clearTimeout(a.Ka),a.Ka=-1);var c=new mQ(a);c.startRatio=a.b;c.endRatio=a.g;c.visibleBounds=a.j;c.source=b||"user_action";a.Ka=setTimeout(function(){a.dispatchEvent(c);a.Ka=-1},0)}} -g.N=function(){var a=TP.G.N.call(this);A(this.CB())?M(8,null,["ScrollBar background stroke"]):a.backgroundStroke=T(this.CB());A(this.bB())?M(8,null,["ScrollBar background fill"]):a.backgroundFill=T(this.bB());A(this.kE())?M(8,null,["ScrollBar slider fill"]):a.sliderFill=T(this.kE());A(this.lE())?M(8,null,["ScrollBar slider stroke"]):a.sliderStroke=T(this.lE());a.mouseOverOpacity=this.$J();a.mouseOutOpacity=this.ZJ();a.buttonsVisible=this.GH();a.barSize=this.Vt();return a}; -g.da=function(a,b){TP.G.da.call(this,a,b);this.bB(a.backgroundFill);this.CB(a.backgroundStroke);this.kE(a.sliderFill);this.lE(a.sliderStroke);this.$J(a.mouseOverOpacity);this.ZJ(a.mouseOutOpacity);this.GH(a.buttonsVisible);this.Vt(a.barSize)};function mQ(a){xh.call(this,"scrollchange",a)}E(mQ,xh);mQ.prototype.startRatio=0;mQ.prototype.endRatio=0;mQ.prototype.visibleBounds=null;mQ.prototype.source="";C("anychart.core.ui.ScrollBar",TP);TP.prototype.barSize=TP.prototype.Vt; -TP.prototype.backgroundStroke=TP.prototype.CB;TP.prototype.backgroundFill=TP.prototype.bB;TP.prototype.sliderStroke=TP.prototype.lE;TP.prototype.sliderFill=TP.prototype.kE;TP.prototype.mouseOutOpacity=TP.prototype.ZJ;TP.prototype.mouseOverOpacity=TP.prototype.$J;TP.prototype.buttonsVisible=TP.prototype.GH;function nQ(){Z.call(this);this.J="vertical";this.F=this.j=this.O=this.Y=null;this.I=.5;this.ea=this.fa=this.W=this.o=0;this.Ba=this.Ka=!1;this.Ga=Nl(ca.document.body,"cursor");this.b=3;this.X=!0;this.g=Pc("#acbece");this.D=Qc({keys:["0 #9ccae3","0.5 #a9dbf6","1 #e3f4fc"],angle:-90,opacity:1});this.ga=Qc("#ccd7e1 0.3");this.Va=Pc(null);this.Ma=Qc("#fff 0");this.Ja=Pc(null);this.la=!0}E(nQ,lO);g=nQ.prototype;g.za=lO.prototype.za;g.wa=lO.prototype.wa|I|64; -g.oc=function(a){return n(a)?(a=yd(a),a!=this.J&&(this.J=a,this.position(this.I)),this):this.J};g.position=function(a){if(n(a)){a=KF(a)?parseFloat(a)/100:a;var b=0,c=1;this.Ea&&(c=oQ(this)?this.Ea.ve():this.Ea.Ce(),b=this.o/c,c=(c-this.W)/c);a=Ac(a,b,c);isNaN(a)||(this.Ea&&(this.I=a,this.la&&this.dispatchEvent("splitterchange")),this.I=a,this.B(64,J));return this}return this.I}; -g.stroke=function(a,b,c,d,e){if(n(a)){var f=Pc.apply(null,arguments);this.g!=f&&(this.g=f,this.B(64|I,J));return this}return this.g||"none"};g.fill=function(a,b,c,d,e,f,h){if(n(a)){var k=Qc.apply(null,arguments);this.D!=k&&(this.D=k,this.B(I,J));return this}return this.D||"none"};g.oR=function(a,b,c,d,e,f,h){if(n(a)){var k=Qc.apply(null,arguments);this.ga!=k&&(this.ga=k,this.B(I,J));return this}return this.ga||"none"};g.rn=function(a){return n(a)?(la(a)&&(this.la=a),this):this.la}; -function pQ(a){return n(!0)?(la(!0)&&1!=a.X&&(a.X=!0,a.position(a.I)),a):a.X}function qQ(a){var b=2;return n(b)?(b=+b,isNaN(b)||a.b==b||(a.b=b,a.B(64,J)),a):a.b} -function rQ(a){var b,c;a.Ea||(a.Ea=a.Rb());if(a.X){b=Ll((a.Ea.ve()-a.b)*a.I,1);c=Ll((a.Ea.Ce()-a.b)*a.I,1);if(oQ(a))return b+=a.b,new Q(Ll(a.Ea.fb()+b,1),Ll(a.Ea.qb(),1),Ll(a.Ea.ve()-b,1),Ll(a.Ea.Ce(),1));c+=a.b;return new Q(Ll(a.Ea.fb(),1),Ll(a.Ea.qb()+c,1),Ll(a.Ea.ve(),1),Ll(a.Ea.Ce()-c,1))}if(oQ(a))return b=a.Ea.ve()*a.I,new Q(Ll(a.Ea.fb()+b,1),Ll(a.Ea.qb(),1),Ll(a.Ea.ve()-b,1),Ll(a.Ea.Ce(),1));c=a.Ea.Ce()*a.I;return new Q(Ll(a.Ea.fb(),1),Ll(a.Ea.qb()+c,1),Ll(a.Ea.ve(),1),Ll(a.Ea.Ce()-c,1))} -function sQ(a,b,c){Rl(ca.document.body,"cursor",c?a.Ga:b?"e-resize":"n-resize")} -function tQ(a){var b=oQ(a);a.Y.Ze(b?"e-resize":"n-resize");var c,d,e,f,h,k,l,m,p,q,t,u=a.Ea;a.X?(c=b?u.fb()+a.I*(u.ve()-a.b):u.fb(),d=b?u.qb():u.qb()+a.I*(u.Ce()-a.b),m=b?u.fb()+a.o-3:u.fb(),p=b?u.qb():u.qb()+a.o-3,q=b?u.ve()-a.o-a.W+6:u.ve(),t=b?u.Ce():u.Ce()-a.o-a.W+6):(c=b?u.fb()+a.I*u.ve()-a.b/2:u.fb(),d=b?u.qb():u.qb()+a.I*u.Ce()-a.b/2,m=b?u.fb()+a.o-3-a.b/2:u.fb(),p=b?u.qb():u.qb()+a.o-3-a.b/2,q=b?u.ve()-a.o-a.W+6+a.b:u.ve(),t=b?u.Ce():u.Ce()-a.o-a.W+6+a.b);e=b?a.b:u.ve();f=b?u.Ce():a.b;h=b? -c-3:u.fb();k=b?u.qb():d-3;l=b?a.b+6:u.ve();b=b?u.Ce():a.b+6;m=new Q(m,p,q,t);a.O.fk(c).gk(d).ek(e).ck(f);a.j.fk(h).gk(k).ek(l).ck(b).Ng(m)}function uQ(a){a.Y||(a.Y=BC(),O(a,a.Y));return a.Y}g.k1=function(){this.Ka=!0;vQ(this).visible(!0);var a=oQ(this);this.Ga=Nl(ca.document.body,"cursor");a?this.F.fk(this.I*this.Ea.ve()+this.Ea.fb()).gk(this.Ea.qb()).ek(0).ck(this.Ea.Ce()):this.F.fk(this.Ea.fb()).gk(this.I*this.Ea.Ce()+this.Ea.qb()).ek(this.Ea.ve()).ck(0)}; -g.j1=function(){var a=this.j.jb(),b=oQ(this),c=this.b/2;sQ(this,b);var d=b?this.I*this.Ea.ve()+this.Ea.fb():this.I*this.Ea.Ce()+this.Ea.qb(),a=b?a.fb()+a.ve()/2:a.qb()+a.Ce()/2;b?(this.F.fk(Math.min(d,a)).ek(Math.abs(d-a)),this.O.fk(a-c)):(this.F.gk(Math.min(d,a)).ck(Math.abs(d-a)),this.O.gk(a-c))}; -g.i1=function(){this.Ka=!1;vQ(this).visible(!1);var a=this.j.jb(),b=oQ(this);this.Ba||sQ(this,b,!0);this.X?(a=b?a.left+3-this.Ea.left:a.top+3-this.Ea.top,b=b?a/(this.Ea.width-this.b):a/(this.Ea.height-this.b)):(a=b?a.left+a.width/2-this.Ea.left:a.top+a.height/2-this.Ea.top,b=b?a/this.Ea.width:a/this.Ea.height);this.position(Ll(b,4))};g.l1=function(){this.Ba=!0};g.O6=function(a){this.dispatchEvent({type:"dblclick",originalEvent:a})};g.m1=function(){this.Ba=!1;this.Ka||sQ(this,oQ(this),!0)}; -function wQ(a){a.j||(a.j=iC().stroke(a.Ja).fill(a.Ma),np(a.j,"dblclick",a.O6,!1,a),np(a.j,"mousemove",a.l1,!1,a),np(a.j,"mouseout",a.m1,!1,a),np(a.j,"start",a.k1,!1,a),np(a.j,"drag",a.j1,!1,a),np(a.j,"end",a.i1,!1,a),O(a,a.j));return a.j}function vQ(a){a.F||(a.F=iC().visible(!1),O(a,a.F));return a.F}function xQ(a){a.O||(a.O=iC().wc(!0).fill(a.D).stroke(a.g),O(a,a.O));return a.O} -g.aa=function(){if(this.Kb()){var a=this.P(),b=a?a.Ha():null,c=b&&!b.Fe();c&&b.qf();uQ(this).ec()||uQ(this).ab(vQ(this)).ab(wQ(this)).ab(xQ(this));W(this,2)&&(uQ(this).parent(a),this.R(2));W(this,4)&&(this.Ea=this.Rb(),this.la&&this.dispatchEvent("splitterchange"),this.B(I|64),this.R(4));W(this,I)&&(this.O.stroke(this.g).fill(this.D),this.F.fill(this.ga).stroke(this.Va),this.j.fill(this.Ma).stroke(this.Ja),this.R(I));W(this,64)&&(wQ(this).Vb(1,0,0,1,0,0),this.o!=this.fa&&(a=oQ(this)?this.Ea.ve(): -this.Ea.Ce(),this.fa<=a&&(this.o=this.fa,this.fa>a-this.W&&(this.ea=a-this.fa),this.position(this.I))),this.W!=this.ea&&(a=oQ(this)?this.Ea.ve():this.Ea.Ce(),this.ea<=a&&(this.W=this.ea,this.ea>a-this.o&&(this.fa=a-this.ea),this.position(this.I))),tQ(this),this.R(64));W(this,8)&&(uQ(this).zIndex(this.zIndex()),tQ(this),this.R(8));c&&b.nf()}return this};function oQ(a){return"horizontal"!=a.J.toLowerCase()}g.remove=function(){this.Y&&this.Y.parent(null)}; -function yQ(){Z.call(this);this.j=this.b=this.D=this.o=null;this.I=NaN;this.Y=this.W=!1;this.X=Nl(ca.document.body,"cursor");this.g=Pc("1 #acbece");this.F=1;this.J=Qc("#ccd7e1 0.3");this.ea=Qc("#fff 0.00001");this.O=!0}E(yQ,lO);g=yQ.prototype;g.za=lO.prototype.za;g.wa=lO.prototype.wa|I|64;g.remove=function(){this.o&&this.o.parent(null)};g.position=function(a){return n(a)?(this.I!=a&&(this.I=a,this.B(64,J)),this):this.I}; -g.stroke=function(a,b,c,d,e){if(n(a)){var f=Pc.apply(null,arguments),h=$F(f);if(this.g!=f||h!=this.F)this.g=f,this.F=h,this.B(64|I,J);return this}return this.g||"none"};g.oR=function(a,b,c,d,e,f,h){if(n(a)){var k=Qc.apply(null,arguments);this.J!=k&&(this.J=k,this.B(I,J));return this}return this.J||"none"};g.rn=function(a){return n(a)?(la(a)&&(this.O=a),this):this.O};function zQ(a,b){Rl(ca.document.body,"cursor",b?a.X:"e-resize")}function AQ(a){a.o||(a.o=BC(),O(a,a.o));return a.o} -g.f1=function(){this.W=!0;this.X=Nl(ca.document.body,"cursor");BQ(this).clear()};g.e1=function(){var a=this.b.jb();zQ(this);var b=this.Ea.left+this.I+this.F/2,a=a.fb()+a.ve()/2;this.j.clear().moveTo(b,this.Ea.top).lineTo(a,this.Ea.top).lineTo(a,this.Ea.top+this.Ea.height).lineTo(b,this.Ea.top+this.Ea.height).close();this.D.clear().moveTo(a,this.Ea.top).lineTo(a,this.Ea.top+this.Ea.height)};g.d1=function(){this.W=!1;this.j.clear();var a=this.b.jb();this.Y||zQ(this,!0);this.position(a.left+3-this.Ea.left)}; -g.Q6=function(a){a.preventDefault();this.lg(a)};function CQ(a){a.o.Ze("e-resize");var b=a.Ea.left+a.I+a.F/2,c=new Q(a.Ea.left-3,a.Ea.top,a.Ea.width+6,a.Ea.height);a.D.clear().moveTo(b,a.Ea.top).lineTo(b,a.Ea.top+a.Ea.height);var b=a.Ea.left+a.I-3,d=a.Ea.left+a.I+a.F+3;a.b.Vb(1,0,0,1,0,0);a.b.clear().moveTo(b,a.Ea.top).lineTo(d,a.Ea.top).lineTo(d,a.Ea.top+a.Ea.height).lineTo(b,a.Ea.top+a.Ea.height).close().Ng(c)}g.g1=function(){this.Y=!0};g.h1=function(){this.Y=!1;this.W||zQ(this,!0)}; -function DQ(a){a.b||(a.b=Pl().fill(a.ea).stroke(null),np(a.b,"start",a.f1,!1,a),np(a.b,"drag",a.e1,!1,a),np(a.b,"end",a.d1,!1,a),ML(a,a.b,null,a.h1,null,a.g1,null,a.Q6),O(a,a.b));return a.b}function BQ(a){a.j||(a.j=Pl(),a.j.fill(a.J).stroke(null),O(a,a.j));return a.j}function EQ(a){a.D||(a.D=Pl().wc(!0).stroke(a.g),O(a,a.D));return a.D} -g.aa=function(){if(this.Kb()){var a=this.P(),b=a?a.Ha():null,c=b&&!b.Fe();c&&b.qf();AQ(this).ec()||AQ(this).ab(BQ(this)).ab(DQ(this)).ab(EQ(this));W(this,2)&&(AQ(this).parent(a),this.R(2));W(this,4)&&(this.Ea=this.Rb(),this.O&&this.dispatchEvent("splitterchange"),this.B(I|64),this.R(4));W(this,I)&&(this.D.stroke(this.g),this.j.fill(this.J),this.b.fill(this.ea),this.R(I));W(this,64)&&(isNaN(this.I)&&(this.I=Math.round((this.Ea.width-this.F)/2)),this.O&&this.dispatchEvent("splitterchange"),CQ(this), -this.R(64));W(this,8)&&(AQ(this).zIndex(this.zIndex()),CQ(this),this.R(8));c&&b.nf()}return this};function FQ(){Z.call(this);this.W=this.D=this.o=null;this.Y=this.X=this.g=this.j=NaN;this.bb=this.$c=this.tb=null;this.$="top";this.J=null;this.I={};this.F={};this.b=null;this.Sa=!1;this.fa=null}E(FQ,Z);FQ.prototype.za=Z.prototype.za|32768;FQ.prototype.wa=Z.prototype.wa|I|64;FQ.prototype.O=AI(I|4,I,J|8);FI(FQ,FQ.prototype.O);var GQ={};GQ.width=Y(0,"width",BI,4,J|8);GQ.height=Y(0,"height",BI,4,J|8);GQ.align=Y(0,"align",xd,4,J|8);GQ.orientation=Y(0,"orientation",Ad,4,J|8); -GQ.rotation=Y(0,"rotation",Mg,4,J|8);GQ.text=Y(0,"text",DI,I|4,J|8);FQ.prototype.ea=GQ;FI(FQ,FQ.prototype.ea);g=FQ.prototype;g.Rk=function(a){n(a)&&(this.fa=a);return this.fa};g.Ak=$I;g.Qg=function(){var a=[this.I];this.b&&(a=lj(a,this.b.Qg()));return a};g.Pg=function(){var a=[this.F];this.b&&(a=lj(a,this.b.Pg()));return a};g.Wc=function(a){return this.F[a]};g.Ee=function(a){return null!=this.F[a]};g.Ve=function(a){return this.I[a]};g.ha=aJ;g.$d=function(a,b){this.F[a]=b};g.check=function(){return!0}; -g.parent=function(a){return n(a)?(this.b!=a&&(this.b&&uI(this.b,this.yP,this),(this.b=a)?(P(this.b,this.yP,this),this.ip().parent(this.b.ip()),this.padding().parent(this.b.padding()),this.margin().parent(this.b.margin())):(this.ip().parent(null),this.padding().parent(null),this.margin().parent(null))),this):this.b};g.yP=function(a){var b=0,c=0;X(a,J)&&(b|=I,c|=J);X(a,8)&&(b|=4,c|=8);X(a,32768)&&(b|=1,c=c|32768|J);this.fa=null;this.B(b,c)}; -g.ip=function(a){this.o||(this.o=new OO,O(this,this.o),P(this.o,this.G1,this));return n(a)?(this.o.U(a),this):this.o};g.margin=function(a,b,c,d){this.$c||(this.$c=new dK,O(this,this.$c),P(this.$c,this.xP,this));return n(a)?(this.$c.U.apply(this.$c,arguments),this):this.$c};g.padding=function(a,b,c,d){this.bb||(this.bb=new jK,O(this,this.bb),P(this.bb,this.xP,this));return n(a)?(this.bb.U.apply(this.bb,arguments),this):this.bb}; -function HQ(a,b){if(n(b)){var c=!a.ha("orientation")&&a.$!=b;a.$=b;c&&a.B(4);return a}return a.$}g.Db=function(a,b){if(n(a)){if(z(a))if(n(b)){if(a in this.O)this[a](b)}else return this.Wc(a);else if(v(a))for(var c in a)if(c in this.O)this[c](a[c]);return this}c={};for(var d in this.F)d in this.O&&(c[d]=this.F[d]);return c};function IQ(a,b){if(n(b)){var c=null==b?"":String(b);a.ga!=c&&(a.ga=c,a.B(I|4,J|8));return a}return a.ga} -g.B=function(a,b){var c=FQ.G.B.call(this,a,b);!c&&this.Sa&&this.va(b||0);return c};function JQ(a){var b=!1;a.D||(b=!0,a.D=BC(),a.ip().P(a.D),a.mc=a.D.text(),a.mc.zIndex(.1),a.mc.dg("aria-hidden","true"),O(a,a.D),ML(a,a.D));return b} -g.aa=function(){if(!this.Kb())return this;var a=JQ(this),b=this.P();L(this);W(this,2)&&(this.D.parent(b),this.R(2));W(this,8)&&(this.D.zIndex(this.zIndex()),this.R(8));W(this,I)&&(this.se(a),this.R(I));W(this,4)&&(KQ(this),this.mc.x(U(this.padding().ha("left"),this.j)),this.mc.y(U(this.padding().ha("top"),this.g)),this.D.Vb(this.J.ld,this.J.be,this.J.me,this.J.ce,this.J.gd,this.J.hd),this.B(64),this.R(4));W(this,64)&&(a=this.ip(),L(a),a.ma(0,0,this.j,this.g),a.aa(),a.ja(!1),this.R(64));this.ja(!1); -return this};g.remove=function(){this.D?this.D.parent(null):this.mc&&this.mc.parent(null)};g.rc=function(){var a=this.ma(),a=a?a.clone():Kl(0,0,0,0);if(!this.enabled())return a;this.tb&&!W(this,4)||KQ(this);switch(this.ha("orientation")||this.$){case "top":a.top+=this.tb.height;a.height-=this.tb.height;break;case "right":a.width-=this.tb.width;break;case "bottom":a.height-=this.tb.height;break;case "left":a.left+=this.tb.width,a.width-=this.tb.width}return a}; -function LQ(a){if(!a.enabled())return new Q(0,0,0,0);a.tb&&!W(a,4)||KQ(a);return a.tb} -g.se=function(a){var b=this.ha("text"),c=IQ(this),d=this.ha("useHtml");if(a||n(b)||n(c)||n(d))a=!b&&n(c)?c:b,d?this.mc.htmlText(a):this.mc.text(a);this.mc.fontSize(this.ha("fontSize"));this.mc.fontFamily(this.ha("fontFamily"));this.mc.color(this.ha("fontColor"));this.mc.Eq(this.ha("textDirection"));this.mc.uv(this.ha("textWrap"));this.mc.opacity(this.ha("fontOpacity"));this.mc.Yn(this.ha("fontDecoration"));this.mc.fontStyle(this.ha("fontStyle"));this.mc.fontVariant(this.ha("fontVariant"));this.mc.fontWeight(this.ha("fontWeight")); -this.mc.letterSpacing(this.ha("letterSpacing"));this.mc.sv(this.ha("lineHeight"));this.mc.tv(this.ha("textIndent"));this.mc.An(this.ha("vAlign"));this.mc.Wk(this.ha("hAlign"));this.mc.Kl(this.ha("textOverflow"));this.mc.Fq(this.ha("selectable"));this.mc.wc(this.ha("disablePointerEvents"))};function MQ(a){var b=a.Wc("rotation"),b=n(b)?b:a.ha("rotation");if(n(b))return b;switch(a.ha("orientation")||a.$){case "left":return-90;case "right":return 90;default:return 0}} -function KQ(a){var b=a.padding(),c=a.margin(),d=a.ma(),e,f,h=a.ha("orientation")||a.$,k=0==MQ(a)%180;d?"top"==h||"bottom"==h||k?(e=d.width,f=d.height):(e=d.height,f=d.width):e=f=void 0;var l=JQ(a);if(l||W(a,I))a.se(l),a.R(I);a.mc.width(null);a.mc.height(null);a.mc.Vb(1,0,0,1,0,0);var l=a.mc.jb(),m=a.Ee("width")?a.Wc("width"):a.W||null;null===m?(a.X=l.width,a.j=b.Yg(a.X)):(a.j=U(m,e),a.X=b.Xg(a.j));d&&e c.left&&(h-=c.left),0>c.top&&(k-=c.top),c.Wa()>d.width&&(h-=c.Wa()-d.width),c.Ra()>d.height&& -(k-=c.Ra()-d.height));a.ha("allowLeaveChart")||(b.x(h),b.y(k),c=b.Rb(),c.left m.x+f.Wa()&&(h-=c.Wa()-m.x-f.Wa()),c.Ra()>m.y+f.Ra()&&(k-=c.Ra()-m.y-f.Ra()));b.x(h);b.y(k)} -function XQ(a,b,c,d,e,f){if(a.check(3)&&(a.g=e?e.zb():a,YQ(a,[a.g]),a.g.enabled())){for(var h={clientX:c,clientY:d,formattedValues:[],points:[]},k=[],l=0;l d.Ra()?(e=d.fb(),f=d.Wa(),h=d.qb(),k=d.Ra(),c+=2):(e=f=d.fb()+2,h=d.qb(),k=d.Ra(),b-=2);else if(b>d.Wa())c d.Ra()?(e=d.fb(),f=d.Wa(),h=d.Ra(),k=d.qb(),c+=2):(e=f=d.Wa()-2,h=d.qb(),k=d.Ra(),b+=2);else if(c< -d.qb())h=k=d.qb()+2,e=d.Wa(),f=d.fb(),c-=2;else if(c>d.Ra())h=k=d.Ra()-2,e=d.fb(),f=d.Wa(),c+=2;else break a;a.I=[e,h,f,k,b,c]}rp(document,"mousemove",a.oD,!1,a)}else d&&(d.style["pointer-events"]="none")}function eR(a,b,c,d){SQ(a);a.g=a;d&&(d.clientX=b,d.clientY=c,IQ(a.title(),$Q(a,d)),TQ(a).text(ZQ(a,d)));aR(a,a);WQ(a,a,b,c);bR(a,b,c)}function $Q(a,b){b=ji(b);b.titleText=a.eb.ha("text");var c=a.ha("titleFormatter");z(c)&&(c=FJ(GJ.qc(),c));return c.call(b,b)} -function ZQ(a,b,c){b=ji(b);b.valuePrefix=a.ha("valuePrefix")||"";b.valuePostfix=a.ha("valuePostfix")||"";a=c?a.ha("unionTextFormatter"):a.ha("textFormatter");z(a)&&(a=FJ(GJ.qc(),a));return a.call(b,b)}function TQ(a,b){a.Y||(a.Y=new rP,P(a.Y,a.B7,a),a.Y.Ya(a),a.Y.width("100%").height("100%"),O(a,a.Y));return n(b)?(a.Y.U(b),a):a.Y} -g.content=function(a){M(405,null,[".content()","the following behaviour",": the method called through the .content()-method should be applied to the .tooltip()-method directly"],!0);return TQ(this,a)};g.B7=function(a){X(a,8)?(this.$=this.J=null,this.B(1988,J)):X(a,J)&&this.B(512,J)}; -function QQ(a,b,c){if(b)return a.F&&a.F.stop(),a.remove(),!0;if(a.ha("selectable")&&c){b=c.originalEvent.clientX;c=c.originalEvent.clientY;var d=a.Rb().$e(new Yl(b,c)),e=a.j.ia();if(e&&!d)return np(e,"mouseleave",a.VC,!1,a),a.I=null,!1;if(fR(a,b,c))return np(document,"mousemove",a.oD,!1,a),e&&(np(a.j.ia(),"mouseenter",a.lL,!1,a),np(a.j.ia(),"mouseleave",a.mL,!1,a)),!1;a.I=null}if(a.tu())return RQ(a),a.F.ak()||a.F.start(),!1;a.remove();return!0}g.remove=function(){this.j.parent(null)}; -function SQ(a){var b;b=a.check(1)&&!ei(a.D);a.title().Sa=b;a.Jn().Va=b;a.jp().Ja=b}g.Rb=function(){this.$=this.J=null;VQ(this);return new Q(this.$.x,this.$.y,this.J.width,this.J.height)};g.se=function(){if(W(this,512)){L(TQ(this));for(var a in this.W){var b=this.ha(a);n(b)&&TQ(this).Db(a,b)}TQ(this).dr(this.ha("adjustFontSize"));TQ(this).Ci(this.ha("minFontSize"));TQ(this).Ai(this.ha("maxFontSize"));TQ(this).ja(!1)}}; -g.B=function(a,b){var c=NQ.G.B.call(this,a,b);!c&&this.check(1)&&!ei(this.D)&&this.va(b||0);return c};function RQ(a){a.F&&a.F.ak()?a.Qa=!0:(dg(a.F),a.F=new Wr(function(){this.remove();this.Qa&&(this.Qa=!1,RQ(this))},a.tu(),a))}function YQ(a,b){b=b||[];for(var c in a.D)dj(b,function(a){return String(qa(a))==c})||a.D[c].Cd(!0)} -function UQ(a){if(!a.J){L(TQ(a));a.se();TQ(a).ja(!1);var b=a.ha("width"),c=a.ha("height"),d=(a.Ta||a.fa).Rb(),b=U(b,d.width),c=U(c,d.height),d=!isNaN(b),e=!isNaN(c),f=new Q(0,0,0,0),h,k=null,l=null,m=a.title(),p=a.Jn(),q=TQ(a);if(!d||!e){if(m.enabled()){m.ma(null);h=m.ha("width");var t=null!=m.Wc("width"),u=m.ha("height"),w=null!=m.Wc("height");KF(h)&&(k=h,m.width(null));KF(u)&&(l=u,m.height(null));h=LQ(m);f.width=b||Math.max(f.width,h.width);t?m.width(k):delete m.F.width;w?m.height(l):delete m.F.height; -l=k=null;e||(f.height+=h.height)}if(q.enabled()){var x=(t=a.b?TQ(a.b):null)?t.width():void 0,t=t?t.height():void 0;q.ma(null);x=q.width()||x;t=q.height()||t;KF(x)&&(k=x,q.width(null));KF(t)&&(l=t,q.height(null));x=dP(q);f.width=b||Math.max(f.width,x.width);k&&q.width(k);l&&q.height(l);e||(f.height+=x.height)}m.enabled()&&m.ma(new Q(0,0,f.width,h.height));q.enabled()&&q.ma(new Q(0,0,f.width,x.height));p.enabled()&&(p.ma(m.enabled()||q.enabled()?f:null),h=jO(p),f.width=b||Math.max(f.width,h.width), -e||(f.height+=h.height))}f=a.padding().fV(f);d&&(f.left=0,f.width=b);e&&(f.top=0,f.height=c);a.J=f}}function VQ(a){UQ(a);if(!a.$){var b=a.ha("anchor"),c=new Yl(a.ha("x"),a.ha("y")),d=PF(a.J,b);c.x-=d.x;c.y-=d.y;YF(c,b,a.ha("offsetX"),a.ha("offsetY"));a.$=c}} -function dR(a,b,c,d,e){var f=c,h=d,k,l=a.ha("positionMode")||"float";k=a.ha("displayMode");var m=a.Ca()?dr(a.Ca().P().Ha().P()):dr(a.P().Ha().P());"float"==l?go||(f=c-m.x,h=d-m.y):"point"==l?(f="union"==k?a.ha("position"):b.ha("position"),h=e.Mv(f,!0).value,f=h.x+(go?m.x:0),h=h.y+(go?m.y:0)):"chart"==l&&(e=a.Ca().Rb(),f="union"==k?a.ha("position"):b.ha("position"),h=PF(e,f),f=h.x+(go?m.x:0),h=h.y+(go?m.y:0));a.ha("allowLeaveScreen")||(b.x(f),b.y(h),k=b.Rb(),e=yo(),0>k.left&&(f-=k.left),0>k.top&&(h-= -k.top),k.Wa()>e.width&&(f-=k.Wa()-e.width),k.Ra()>e.height&&(h-=k.Ra()-e.height));a.ha("allowLeaveChart")||(b.x(f),b.y(h),k=b.Rb(),a=a.Ta||a.fa,e=a.Rb(),m||(m=dr(a.P().Ha().P())),k.left m.x+e.Wa()&&(f-=k.Wa()-m.x-e.Wa()),k.Ra()>m.y+e.Ra()&&(h-=k.Ra()-m.y-e.Ra()));b.x(f);b.y(h)}function aR(a,b){if(!b.P())if(go){var c=bF.qc();b.P(c.b);c.j[qa(b).toString()]=b}else a.Ca()?b.P(a.Ca().P()):a.b&&b.P(a.b.Ca().P())} -g.oD=function(a){if(fR(this,a.clientX,a.clientY))go&&cF(!0);else{rp(document,"mousemove",this.oD,!1,this);var b=this.j.ia();b&&(rp(b,"mouseenter",this.lL,!1,this),rp(b,"mouseleave",this.mL,!1,this));this.VC(a)}};function fR(a,b,c){if(!a.I)return!1;var d=a.I[0],e=a.I[1],f=a.I[2],h=a.I[3],k=a.I[4],l=a.I[5];a=eA(f,h,k,l,b,c);k=eA(k,l,d,e,b,c);return eA(d,e,f,h,b,c)==a&&a==k}g.lL=function(){rp(document,"mousemove",this.oD,!1,this);this.j.ia()&&rp(this.j.ia(),"mouseenter",this.lL,!1,this);this.I=null}; -g.mL=function(a){this.j.ia()&&rp(this.j.ia(),"mouseleave",this.mL,!1,this);this.VC(a)};g.VC=function(a){if(2==a.yg.buttons)return!0;go&&cF(!1);this.j.ia()&&rp(this.j.ia(),"mouseleave",this.VC,!1,this);this.I=null;this.tu()?(RQ(this),this.F.ak()||this.F.start()):this.Cd(!0)}; -g.parent=function(a){if(n(a)){if(this.b!=a){var b=String(qa(this));null===a?(uI(this.b,this.hB,this),this.title().parent(null),this.Jn().parent(null),this.jp().parent(null),this.padding().parent(null),TQ(this).padding().parent(null),delete this.b.D[b],this.b=null):(this.b&&uI(this.b,this.hB,this),this.b=a,this.title().parent(this.b.title()),this.Jn().parent(this.b.Jn()),this.jp().parent(this.b.jp()),this.padding().parent(this.b.padding()),TQ(this).padding().parent(TQ(this.b).padding()),this.b.D[b]= -this,P(this.b,this.hB,this))}return this}return this.b};g.hB=function(a){var b=0,c=0;if(X(a,8)||X(a,J))b|=1988,c|=8;X(a,32768)&&(b|=1,c|=J);this.Ba=null;this.B(b,c)};g.Wc=function(a){return this.O[a]};g.Ee=function(a){return null!=this.O[a]};g.Ve=function(a){return this.X[a]};g.ha=aJ;g.$d=function(a,b){this.O[a]=b};g.check=function(a){return n(a)?!!(a&this.wb):!0};g.Rk=function(a){n(a)&&(this.Ba=a);return this.Ba};g.Ak=$I;g.Qg=function(){var a=[this.X];this.b&&(a=lj(a,this.b.Qg()));return a}; -g.Pg=function(){var a=[this.O];this.b&&(a=lj(a,this.b.Pg()));return a};g.v3=function(a){M(405,null,[".contentFormatter()",".textFormatter()"],!0);return this.textFormatter(a)};g.s6=function(){M(405,null,[".isFloating()",".positionMode()"],!0);return"float"==this.ha("positionMode")};g.enabled=function(a){return n(a)?(this.O.enabled!=a&&(this.O.enabled=a,this.B(1,J|32776),this.O.enabled?(this.af=!1,this.ja(!0)):isNaN(this.zh)?L(this):this.af=!0),this):this.ha("enabled")}; -g.N=function(){var a={};JI(this,this.W,a);JI(this,this.la,a);delete a.x;delete a.y;var b=this.title().N();ei(b)||(a.title=b);b=this.Jn().N();ei(b)||(a.separator=b);b=this.jp().N();ei(b)||(a.background=b);b=this.padding().N();ei(b)||(a.padding=b);n(this.ga)&&(a.hideDelay=this.ga);n(this.zIndex())&&(a.zIndex=this.zIndex());this.Ee("enabled")&&(a.enabled=this.O.enabled);return a}; -g.da=function(a,b){if(b){for(var c in this.W){var d=a[c];n(d)&&(this.X[c]=d)}for(c in this.la)d=a[c],n(d)&&(this.X[c]=d);"enabled"in a&&(this.X.enabled=a.enabled)}else II(this,this.W,a),II(this,this.la,a);DG(this.title(),a.title,b);DG(this.Jn(),a.separator,b);DG(this.jp(),a.background,b);DG(this.padding(),a.padding,b);this.tu(a.hideDelay);c=a.content;if(!(c&&"anchor"in a&&"position"in a)){var e,f;c&&(e=c.position,f=c.anchor);if(!e||!f){for(var d=this.Ak(),h=0;h =b.width&&0>=b.height&&(b=null);var c,d,e=a.margin(),f=a.padding(),h,k,l,m;b?(c=b.width,d=b.height,null!=a.lb?(h=U(a.lb,c),e.Yg(h)>c&&(h=e.Xg(c)),l=f.Xg(h)):l=f.Xg(e.Xg(c)),null!=a.Fb?(k=U(a.Fb,d),e.Fg(k)>d&&(k=e.Wg(d)),m=f.Wg(k)):m=f.Wg(e.Wg(d))):(l=na(a.lb)&&!isNaN(a.lb)?f.Xg(a.lb):Infinity,m=na(a.Fb)&&!isNaN(a.Fb)?f.Wg(a.Fb):Infinity);var p,q,t,u=a.ez(),w=a.tn(),x=a.title();h="bottom"==a.position()||"top"==a.position();k=x.ha("orientation")||HQ(x);var y="top"== -k||"bottom"==k,B=u.kb(),D;if(null!=a.g){var G=k=0,K=-Number.MAX_VALUE,N=0;for(q=a.g.length;N K?D=0:(k-=a.$,D="vertical"==a.W?K:k)}else D=0;var S;if(null!=a.g){G=k=0;K=-Number.MAX_VALUE;N=0;for(q=a.g.length;NK?S=0:(k-=a.$,S="horizontal"==a.W?K:k)}else S=0;var V;k=0+D;V=0+S;L(u);L(w);L(x);x.enabled()?(x.ma(null),N=x.ha("orientation")||HQ(x),x.W=null,t=LQ(x),y?(k=Math.min(Math.max(k, -t.width),l),h&&(x.W=0>k?null:k,t=LQ(x)),V+=t.height):(k+=t.width,V=Math.max(V,t.height))):t=null;u.enabled()?(u.ha("orientation"),u.ma(null),t?u.width(t.width):u.width(u.kb()?D:S),p=jO(u)):p=null;w.ma(null);q=w.Rb();"horizontal"==a.W&&(D>l?QP(w,!0):QP(w,!1));h=m;y&&(h-=t?t.height:0);B&&(h-=p?p.height:0);"vertical"==a.W&&(S>h?QP(w,!0):QP(w,!1));u.enabled()&&(u.kb()?(k=Math.max(k,p.width),V+=p.height):(k+=p.width,V=Math.max(V,p.height)));RP(w)&&(N=w.fr(),"left"==N||"right"==N?(k+=q.width,V=Math.max(V, -q.height)):(k=Math.max(k,q.width),V+=q.height));G=k>l?l:k;K=V>m?m:V;h=e.Yg(f.Yg(G));k=e.Fg(f.Fg(K));if(x.enabled()){var aa=0==MQ(x)%180,oa=t.width,N=t.height;x.ha("orientation")||HQ(x);if(y||aa){if(aa&&!y){var B=(a.g&&a.g.length?a.g[0].ve():0)+(RP(w)?q.width:0),B=D>=l?B:D,pa;null!=x.width()?pa=x.width():pa=x.margin().Xg(G-oa<=B?G-B:oa)}else{if(V>m){pa=0;p&&B&&(pa+=p.height);if("top"==w.fr()||"bottom"==w.fr())pa+=q.height;x.height(ia(x.height())?x.height():x.margin().Wg(V-S-pa))}pa=null!=x.width()? -x.width():x.margin().Xg(G)}x.W=0>pa?null:pa;t=LQ(x);u.width(h);p=jO(u);t.height!=N&&(x.height(ia(x.height())?x.height():x.margin().Wg(N)),t=LQ(x))}else pa=null!=x.width()?x.width():x.margin().Xg(K),x.W=0>pa?null:pa,t=LQ(x),u.width(k),p=jO(u),t.width!=oa&&(x.height(ia(x.height())?x.height():x.margin().Wg(oa)),t=LQ(x))}x.enabled()&&(N=x.ha("orientation")||HQ(x),"top"==N||"bottom"==N?K-=t.height:G-=t.width);u.enabled()&&(u.kb()?K-=p.height:G-=p.width);pa=G;B=K;N=w.fr();RP(w)&&("top"==N||"bottom"==N? -B=K-q.height:pa=G-q.width);do{a.R(4);y=a;q=pa;D=B;S=p=p=t=V=void 0;y.Y=[];S=0;L(y);t=y.g&&y.g.length;V=void 0;for(V=0;Vq?(S++,y.Y[S]=[],y.Y[S][0]=y.g[V],p=y.g[V].ve()):(p=p+y.$+y.g[V].ve(),y.Y[S].push(y.g[V])));else for(p=y.g[V].Ce(),V+=1,t=y.g.length;V D?(S++,y.Y[S]=[],y.Y[S][0]=y.g[V],p=y.g[V].Ce()):(p=p+y.$+y.g[V].Ce(), -y.Y[S].push(y.g[V])));JP(y.tn(),S+1);y.ja(!1);w.ma(null);q=w.Rb();"top"==N||"bottom"==N?B=K-(q?q.height:0):pa=G-(q?q.width:0)}while(W(a,4));h=isFinite(l)&&null!=a.lb?f.Yg(l):h;k=isFinite(m)&&null!=a.Fb?f.Fg(m):k;if(b){f=b.fb();e=b.qb();switch(a.I){case "left":case "right":switch(a.D){case "center":e+=(d-k)/2;break;case "right":case "bottom":e=b.Ra()-k}break;case "top":case "bottom":switch(a.D){case "center":f+=(c-h)/2;break;case "right":case "bottom":f=b.Wa()-h}}switch(a.I){case "right":f=b.Wa()- -h;break;case "bottom":e=b.Ra()-k}}else f=U(e.ha("left"),0),e=U(e.ha("top"),0);a.tb=new Q(f,e,h,k);u.ja(!1);w.ja(!1);x.ja(!1)}g.remove=function(){this.F&&this.F.parent(null)}; -g.aa=function(){if(!this.Kb())return this;this.F||(this.F=BC(),ML(this,this.F),O(this,this.F),this.Ka||(this.Ka=BC(),this.Ka.parent(this.F).zIndex(20),O(this,this.Ka)));W(this,8)&&(this.F.zIndex(this.zIndex()),this.R(8));var a=this.P(),b=a?a.Ha():null;W(this,2)&&(this.F.parent(a),this.R(2));(a=b&&!b.Fe())&&b.qf();W(this,1024)&&(this.X=!0,this.R(1024));if(W(this,I)){var c=this.iH(),d;if(r(this.Ga))d=this.Ga;else if(null!=this.j){for(var e=[],f=0;f a.nearestPointToCursor.distance&&(a.series.ba().select(a.nearestPointToCursor.index),e=a)});"single"==this.Ib.ha("displayMode")?cR(this.Ib,[e],a.originalEvent.clientX,a.originalEvent.clientY,e.series,this.sq()): -cR(this.Ib,b,a.originalEvent.clientX,a.originalEvent.clientY,e.series,this.sq())}}};g.sq=function(){return!1};g.qL=function(a){var b=this.Ib,c=a.clientX;a=a.clientY;var d=b.ha("displayMode");"single"==d&&(WQ(b,b.g,c,a),bR(b.g,c,a));if("union"==d)WQ(b,b.g,c,a),bR(b.g,c,a);else if("separated"==d)for(var e in b.D)if(d=b.D[e])dR(b,d,c,a),bR(d,c,a)}; -g.ht=function(a){!this.rg&&(this.rg=ca.anychart.ui.contextMenu(!!v(a)&&a.fromTheme))&&(O(this,this.rg),this.rg.itemsProvider(this.x3));return n(a)?(this.rg&&this.rg.setup(a),this):this.rg};g.x3=function(a){var b=a.event.target.Oi(),c=IF(a.event.domTarget),b=v(c)&&n(c.na)&&c.na.seriesType&&n(c.index)||b&&b.seriesType,c=Fl(mR);return a.chart.bL(Fl(c),a,b)};g.bL=function(a){return a}; -g.XI=function(){var a=[],b,c,d,e,f=this.Rd();for(d=0;d p.$e&&(d=m.na,e=p.index,f=hj(m.sc,p.index),h=p.$e)}}a={index:e,series:d};a[b]=c?!f:f;return a}; -g.hh=function(a,b,c,d,e){var f=this.Au(c,a,d),h=[],k;if(!d)for(var l=0;l u.qd.$e&&(w=u));m=w.na;f=oc(m.state,Hb);l=1==f.length&&f[0]==w.qd.index;q=!l||l&&(k||a.shiftKey);f=(k||a.shiftKey)&&qc(m.state.De(),Hb);!f&&(k||a.shiftKey)||l||m.pe();m.yh(w.qd.index, -a);f=oc(m.state,Hb);if(f.length)for(d.push({na:m,sc:[w.qd.index],qd:w.qd}),e=this.Rd(),h=0;h this.Gl&&(k.__original_id__=h.length,k.__original_parent__=h.length+1,h.push("__original_id__","__original_parent__")); -f||m.push(h.join(e));for(l=0;l =this.Gl?(w=t[0],x=t[1]):(w=p.id,x=t[2]);for(f=0;f h&&f.b[m].Us&&(h=m,l=k=0),0<=h){var p=f.b[m].count;if(m==h&&(p-=l,l++,0==p)){a=0;break a}Gk(f,a,d,f.b[m],p,e)||(m=h-1,d[0]=k)}else{if(h=-1,!Gk(f,a,d,f.b[m],0,e)){a=0;break a}}else{h= --1;if(" "==f.b[m].text.charAt(0)){if(p=d[0],Fk(a,d),d[0]>p)continue}else if(a.indexOf(f.b[m].text,d[0])==d[0]){d[0]+=f.b[m].text.length;continue}a=0;break a}b:{void 0!=e.era&&void 0!=e.year&&0==e.era&&0 f?f:a));A(c.setHours)&&(void 0==e.b&&(e.b=c.getHours()),void 0!=e.o&&0 e.b&&(e.b+= -12),c.setHours(e.b));A(c.setMinutes)&&void 0!=e.D&&c.setMinutes(e.D);A(c.setSeconds)&&void 0!=e.F&&c.setSeconds(e.F);A(c.setMilliseconds)&&void 0!=e.I&&c.setMilliseconds(e.I);void 0!=e.j&&c.setTime(c.getTime()+6E4*(e.j-c.getTimezoneOffset()));e.J&&(a=new Date,a.setFullYear(a.getFullYear()-80),c.getTime() a)&&(a=-a);m="";if(v(e)&&r(e.factors)&&r(e.suffixes)){var p=1,q=e.factors;e=e.suffixes;for(var t=Math.min(q.length,e.length),u=0;u =p||1>=p&&a>.1*p){m=e[u];break}m?m=h+m:p=1;a/=p}f=f?a.toFixed(b):Ll(a,b).toString();a="";/(e+|e-)/.test(f)&&(b=f.split("e"),f=b[0],a="e"+b[1]);b=f.split(".");if(d){f=b[0];for(h=[];0<(e=f.substr(0,f.length-3)).length;)h.unshift(f.substr(-3)),f=e;f&&h.unshift(f);b[0]=h.join(d)}d=l?"-": -"";c=b.join(c)+a+m;l&&k&&(c=["(",c,")"].join(""),d="");return d+c}C("anychart.format.inputLocale",function(a){n(a)&&(z(a)||v(a)?xR=a:xR="default");return xR});C("anychart.format.inputBaseDate",NR);C("anychart.format.inputDateTimeFormat",function(a){n(a)&&(z(a)?yR=a:yR=null);return yR});C("anychart.format.outputLocale",UF);C("anychart.format.outputTimezone",function(a){n(a)&&(ER=F(a)||0);return ER});C("anychart.format.outputDateFormat",PR);C("anychart.format.outputTimeFormat",QR); -C("anychart.format.outputDateTimeFormat",OR);C("anychart.format.parseDateTime",RR); -C("anychart.format.parseNumber",function(a,b){var c=KR(b)||KR(xR)||KR("default"),d=1;if(z(a)){c.useBracketsForNegative&&"("==a.charAt(0)&&")"==a.charAt(a.length-1)&&(d=-1,a=a.substring(1,a.length-1));a=a.replace(c.decimalPoint,".");a=Ni(a,c.groupsSeparator);var e=c.scale;!0===e&&(e=wR);if(v(e)&&r(e.factors)&&r(e.suffixes)){a=Ni(a,c.scaleSuffixSeparator);var f=a.match(vR);if(!f)return NaN;var h=1;a=+f[1];if(f=f[2])for(var k=e.factors,e=e.suffixes,l=Math.min(k.length,e.length),m=0;m c||b>d)return 1;if(a c)return 1}else if(f){if(b d)return 1}return 0}g.position=function(a){return n(a)?(a=String(a),this.Aa.position!=a&&(this.Aa.position=a,this.B(I,8)),this):this.Aa.position};g.enabled=function(a){return n(a)?(this.Aa.uI!=a&&(this.Aa.uI=a,this.B(1,8|J)),this):this.Aa.uI};g.Gd=function(a){return n(a)?(this.Aa.Gd!=a&&(this.Aa.Gd=a,this.B(I,J)),this):this.Aa.Gd}; -g.lf=function(a){return n(a)?(this.Aa.lf!=a&&(this.Aa.lf=a,this.B(I,8)),this):this.Aa.lf};g.jf=function(a){return n(a)?(this.D!=a&&(this.D=a,this.B(I,J)),this):this.D};g.ic=function(a){return n(a)?(this.Y!=a&&(this.Y=a,this.B(I,8)),this):this.Y};g.clear=function(){this.mf();this.o&&(this.o.parent(null),this.o.xh());this.B(2)}; -g.mf=function(){this.Aa.background&&(dg(this.Aa.background),this.Aa.background=null);this.Aa.padding&&(dg(this.Aa.padding),this.Aa.padding=null);this.Aa={};this.b={};this.I={};this.g=null};g.Hb=function(a,b){n(a)&&this.U(a);null!=b&&(this.I=b);(n(a)||n(b))&&this.B(I|1,8|J);return this}; -function hS(a,b,c,d,e,f,h){var k=bS(a),l=fS(a)?fS(a):k,l=l?l:k,m=l!=k,p=k.Bh()||l.Bh()||a.Bh(),q=dS(a),t=a.jf(),q=eS(k,q.textFormatter,t,a.ra());a.O||(a.O=DC(),a.O.dg("aria-hidden","true"));p?a.O.htmlText(n(q)?String(q):""):a.O.text(n(q)?String(q):"");k.se(a.O,!0);m&&l.se(a.O,!1);a.se(a.O,!1);m&&(a.Db(a.I),a.se(a.O,!1));a=a.O;k=Math.round((e+d)/2);l=e;a.fontSize(e);if(0>=gS(a.jb().width,a.jb().height,b,c,f,h))return e;a.fontSize(k);for(m=e=gS(a.jb().width,a.jb().height,b,c,f,h);d!=l;){if(0>e)d=Math.min(k+ -1,l),k+=Math.floor((l-k)/2);else if(0 =m*e)break}if(0==e)return k;do k+=m,a.fontSize(k),e=gS(a.jb().width,a.jb().height,b,c,f,h);while(0>m*e);0 this.ka.Wa());return a};function mS(a){jS.call(this,a);this.W=[];this.o=null;this.Va=vO(["grid","hoverGrid","selectGrid"],2)}E(mS,jS);FI(mS,jJ);bJ.fibonacciFan=mS;g=mS.prototype;g.type="fibonacciFan";g.uE=function(a){if(n(a)){if(r(a)){for(var b=this.W.length=0;b =b||a>this.ka.Wa()&&0<=b);return a};g.Kf=function(a){mS.G.Kf.call(this,a);for(var b=0;b =this.D.length?c.timeLevel=this.W[b-this.D.length]:c.level=this.D[b]);return c}; -g.UD=function(){if(W(this,4096)){this.j||(this.j=[]);this.o||(this.o=[]);var a,b=this.D.length+this.W.length;for(a=this.j.length;a=oa&&xa||1<=oa&&Cb?G=pa:0 oa&&(G=pa)),pa++;N<=nc&&y =oa&&xa||1<=oa&&Cb?(t=B,q.push(!0)):0 oa?(t=B,q.push(!0)):q.push(!1))):q.push(!1),B++)}Jc||(q=!1)}p||(m=!1);this.F={labels:m,Xa:q};this.R(512)}l=this.F}v(l)?(p=l.labels,q=l.Xa):(p=!l,q=!l);D=(this.kb()?this.scale().vq():this.scale().wq()).get();m=l=0;for(G=D.length;l c)c=0;a.nb=c;a.vb=Math.round(b.left+b.width/2);a.sb=Math.round(b.top+b.height/2);var d=a.scale();if(d){var e=0;if(a.enabled()){IS(a);var f,h,k,l,m,p,q,t,u=e=NaN,w=NaN,x=NaN,y=NaN,B=NaN,D=NaN,G=NaN,K=NaN,N=NaN,S=NaN,V=NaN,aa=!0,oa=!0,pa=!0,xa=!0,Cb=d.Ia().get(),ma=Cb.length;m=KS(a);v(m)?(q=m.labels,t=m.Xa):(q=!m,t=!m);p=m=0;for(var ob=d.Za().get(),nc=ob.length,Jc,od,xb,me,tg,Gd=Sk(a.Tb()- -90);m w)w=k,D=m,S=od,pa=!0;if(isNaN(x)||l>x)x=l,G=m,V=od,xa=!0;od=xb;m++}else{xb=Sk(Gd+360*Jc);tg=xb*Math.PI/180;c=r(t)?t[p]:t;me=r(t)&&t[p]||la(t);c&&od!=Jc?(l=LS(a,p,!1),f=l.fb(),h=l.qb(),k=l.Wa(),l=l.Ra()):me&&a.Za().enabled()&&od!=Jc&&(f=a.Gf.stroke().thickness?a.Gf.stroke().thickness:1,k=a.Za().enabled()?a.Za().length():0,c=a.nb+k+f/2,f=k=Math.round(a.vb+ -c*Math.cos(tg)),h=l=Math.round(a.sb+c*Math.sin(tg)));if(isNaN(e)||f w)w=k,D=p,S=xb,pa=!1;if(isNaN(x)||l>x)x=l,G=p,V=xb,xa=!1;p++}ma=Cb=q=d=0;e=Math.round(e);u=Math.round(u);w=Math.round(w);x=Math.round(x);e K?Math.sin((K-90)*Math.PI/180):Math.cos((K-180)*Math.PI/180),d=Math.round((b.fb()-e)/K));u N?Math.sin((N-180)*Math.PI/180):Math.cos((N-270)*Math.PI/180),q=Math.round((b.qb()-u)/K));w>b.Wa()&&(K= -360>S?Math.sin((S-270)*Math.PI/180):Math.cos(S*Math.PI/180),Cb=Math.round((w-b.Wa())/K));x>b.Ra()&&(K=90>V?Math.sin(V*Math.PI/180):Math.cos((V-90)*Math.PI/180),ma=Math.round((x-b.Ra())/K));e=Math.max(d,q,Cb,ma);a.ap=NaN;if(0 a.nb){u=a.nb=0;if(a.labels().enabled()){var u=NaN,cd,w=!0;e==d?(u=y,w=aa,cd=!0):e==q?(u=B,w=oa,cd=!1):e==Cb?(u=D,w=pa,cd=!0):e==ma&&(u=G,w=xa,cd=!1);y=LS(a,u,w);u=cd?y.width:y.height}f=a.Gf.stroke().thickness?a.Gf.stroke().thickness:1;a.ap=Math.min(b.width,b.height)/ -2-u-f}IS(a)}}b=a.nb+e;cd=2*b;a.tb=new JJ(a.vb-b,a.sb-b,cd,cd)}else a.tb=new JJ(a.vb-a.nb,a.sb-a.nb,2*a.nb,2*a.nb)}else a.nb=0,a.vb=0,a.sb=0,a.tb=new JJ(0,0,0,0);a.R(4)}}g.rc=function(){var a=this.ma();return a?this.enabled()?(JS(this),a=this.Gf.stroke().thickness?this.Gf.stroke().thickness:1,a=Math.floor(a/2),new Q(this.vb-this.nb+a,this.sb-this.nb+a,2*(this.nb-a),2*(this.nb-a))):a:new Q(0,0,0,0)}; -function MS(a,b){var c=b.width,d=b.height,e={x:0,y:0};0==a?e.x+=c/2:0a?(e.x+=c/2,e.y+=d/2):90==a?e.y+=d/2:90a?(e.y+=d/2,e.x-=c/2):180==a?e.x-=c/2:180a?(e.y-=d/2,e.x-=c/2):270==a?e.y-=d/2:270=u||1<=u?k=y:0u&&(k=y)),y++;t<=K&&e =u||1<=u?(l=f,d.push(!0)):0u?(l=f,d.push(!0)):d.push(!1))):d.push(!1),f++)}N||(d=!1)}}B||(c=!1);a.F={labels:c,Xa:d}; -a.R(512)}return a.F} -function LS(a,b,c){var d=c?a.qA:a.bG;if(n(d[b]))return d[b];var e=a.Gf.stroke().thickness?a.Gf.stroke().thickness:1,f=c?a.Ia():a.Za(),h=c?a.labels():a.Xa(),k=a.scale();c=(c?k.Ia():k.Za()).get()[b];var k=k.transform(c),k=Sk(a.Tb()-90+360*k),l=k*Math.PI/180,f=f.enabled()?isNaN(a.ap)?f.length():a.ap:0,f=a.nb+f+e/2,e=Math.round(a.vb+f*Math.cos(l)),f=Math.round(a.sb+f*Math.sin(l));a=new Ce(a,b,c);h=h.measure(a,{value:{x:e,y:f}},void 0,b);a=MS(k,h);h.left+=a.x;h.top+=a.y;return d[b]=h} -g.VN=function(a,b,c,d){var e=this.scale(),e=d?e.Ia().get():e.Za().get();d=d?this.labels():this.Xa();e=new Ce(this,a,e[a]);d.add(e,{value:{x:b,y:c}},a)};g.Kb=function(){if(!this.yd)return!1;if(!this.enabled())return W(this,1)&&(this.remove(),this.R(1),this.Ia().B(2),this.labels().B(2),this.B(386)),!1;this.R(1);return!0}; -g.aa=function(){var a=this.scale();if(!a)return xe(2),this;if(!this.Kb())return this;var b,c,d,e;L(this.labels());L(this.Xa());L(this.Ia());L(this.Za());W(this,I)&&(this.Gf.stroke(this.g),this.R(I));if(W(this,8)){var f=this.zIndex();this.Gf.zIndex(f);this.Ia().zIndex(f);this.Za().zIndex(f);this.labels().zIndex(f);this.Xa().zIndex(f);this.R(8)}W(this,2)&&(f=this.P(),this.Gf.parent(f),this.Ia().P(f),this.labels().P(f),this.Za().P(f),this.Xa().P(f),this.R(2));if(W(this,256)){var h=this.Ia();h.aa();b= -h.nt;var k=this.Za();k.aa();d=k.nt;this.R(256)}W(this,128)&&(c=this.labels(),c.P()||c.P(this.P()),c.ma(this.ma()),c.clear(),c=this.VN,e=this.Xa(),e.P()||e.P(this.P()),e.ma(this.ma()),e.clear(),e=this.VN,this.R(128));if(n(b)||n(c)||n(e)||n(d)){JS(this);var l,m,f=Sk(this.Tb()-90),p,q;this.Gf.ad(this.nb);this.Gf.Yl(this.vb);this.Gf.Zl(this.sb);var t,u,w,x,y,B,D,G,K,N,S=a.Ia().get(),V=S.length,aa=this.Ia().stroke().thickness?parseFloat(this.cb.stroke().thickness):1,oa=this.Ia().enabled()?isNaN(this.ap)? -this.Ia().length():this.ap:0,pa=this.Gf.stroke().thickness?this.Gf.stroke().thickness:1;if(a instanceof VJ){D=KS(this);v(D)?(K=D.labels,N=D.Xa):(K=!D,N=!D);var xa=a.Za().get(),Cb=this.dc.stroke().thickness?parseFloat(this.dc.stroke().thickness):1,ma=this.Za().enabled()?isNaN(this.ap)?this.Za().length():this.ap:0;G=D=0;for(var ob=xa.length;D
f?"0"+f:""+f)+"-"+(10>k?"0"+k:""+k)+"-"+h;k=a.D.Yo();return{dataIntervalUnit:k.im().unit,dataIntervalUnitCount:k.im().count,dataIsGrouped:k.$x(),majorIntervalUnit:c,majorIntervalUnitCount:e,minorIntervalUnit:d,minorIntervalUnitCount:e,value:f,tickValue:b,max:a.ya.OI(),min:a.ya.QI(),scale:a.ya}} -g.ca=function(){dg(this.sa);this.sa=null;dg(this.Eb);this.Eb=null;dg(this.o);this.o=null;dg(this.j);this.ya=this.j=null;WM.G.ca.call(this)};g.N=function(){var a=WM.G.N.call(this);a.height=this.height();a.labels=this.labels().N();a.minorLabels=this.Xa().N();a.ticks=this.Ia().N();a.minorTicks=this.Za().N();a.background=this.eG().N();a.showHelperLabel=this.UK();a.overlapMode=this.fG();return a}; -g.da=function(a,b){WM.G.da.call(this,a,b);this.height(a.height);this.labels().U(a.labels);this.Xa().U(a.minorLabels);this.Ia(a.ticks);this.Za(a.minorTicks);this.eG(a.background);this.UK(a.showHelperLabel);this.fG(a.overlapMode)};WM.prototype.height=WM.prototype.height;WM.prototype.labels=WM.prototype.labels;WM.prototype.minorLabels=WM.prototype.Xa;WM.prototype.ticks=WM.prototype.Ia;WM.prototype.minorTicks=WM.prototype.Za;WM.prototype.background=WM.prototype.eG;WM.prototype.showHelperLabel=WM.prototype.UK; -WM.prototype.overlapMode=WM.prototype.fG;function QS(a,b){Z.call(this);this.bf=a;this.Bb=b;this.Dc=["value"];this.state=new tc(this);this.j=Kl(0,0,0,0);this.b=this.path=null;this.hb=I|8192}E(QS,Z);g=QS.prototype;g.za=Z.prototype.za|64;g.wa=Z.prototype.wa|I|8192;g.yx=function(){var a=this.ba(),b=[];if(a.select(this.Lf()))for(var c=0;c =p)&&A(this.$)&&(a=this.$.call({color:a},a)),null===a&&(a="none"),null===t?(t=a,a in this.o?this.o[a].clear():this.o[a]=this.ta.path().clear(),a=this.o[a]):(a!=t&&(t=a,a in this.o?this.o[a].clear():this.o[a]=this.ta.path().clear()), -a=this.o[a]),a.moveTo(e,m).lineTo(l,m).lineTo(l,c).lineTo(e,c).lineTo(e,m),b||this.b.moveTo(e,m).lineTo(l,m).lineTo(l,c).lineTo(e,c).lineTo(e,m),d?(c=m-f,m=c-h):(e=l+f,l=e+h)};g.bu=WS.prototype.en;g.Pw=function(a){for(var b in this.o)this.o[b].stroke("none").fill(b);a=this.td(!0,a);this.b.stroke("none").fill(a)};g.Ua=function(){return"led"};function YS(a,b){var c=a.ma(),d;RS(a)?(d=c.Ra(),c=-c.height):(d=c.left,c=c.width);return(b-d)/c} -g.fC=function(a){return n(a)?(this.$!=a&&(this.$=a,this.B(I,J)),this):this.$};g.ri=function(a){return n(a)?(a=null===a?a:MF(a),this.ga!=a&&(this.ga=a,this.B(I,J)),this):this.ga};g.size=function(a){return n(a)?(a=null===a?a:MF(a),this.Ga!=a&&(this.Ga=a,this.B(I,J)),this):this.Ga};g.count=function(a){return n(a)?(this.X!=a&&(this.X=a,this.B(I,J)),this):this.X};g.Td=function(a){return n(a)?(this.O!=a&&(this.O&&uI(this.O,this.wO,this),(this.O=a)&&P(this.O,this.wO,this),this.B(I|1048576,J)),this):this.O}; -g.wO=function(a){X(a,6)&&this.B(I|1048576,J)};g.N=function(){var a=WS.G.N.call(this);a.gap=this.ri();a.size=this.size();a.count=this.count();a.colorScale=this.Td().N();A(this.fC())?M(8,null,["Pointer dimmer"]):a.dimmer=this.fC();return a};g.da=function(a,b){WS.G.da.call(this,a,b);this.ri(a.gap);this.size(a.size);this.count(a.count);this.fC(a.dimmer);if("colorScale"in a){var c=a.colorScale,d=null;z(c)?d=dN(c,null):v(c)&&(d=dN(c.type,null))&&d.U(c);d&&this.Td(d)}}; -g.ca=function(){dg(this.F);this.F=null;XS(this);dg(this.O);this.O=null;WS.G.ca.call(this)};WS.prototype.dimmer=WS.prototype.fC;WS.prototype.gap=WS.prototype.ri;WS.prototype.size=WS.prototype.size;WS.prototype.count=WS.prototype.count;WS.prototype.colorScale=WS.prototype.Td;function ZS(a,b){QS.call(this,a,b)}E(ZS,QS);g=ZS.prototype;g.en=function(){var a=this.ma(),b=Og(this.type()),c=RS(this),d,e;c?(d=a.left+a.width/2,e=SS(this,this.Gn())):(d=SS(this,this.Gn()),e=a.top+a.height/2);a=c?a.width:a.height;this.j.left=d-a/2;this.j.top=e-a/2;this.j.width=a;this.j.height=a;this.path.clear();b.call(null,this.path,d,e,a/2);this.b.kd(this.path.N())};g.bu=ZS.prototype.en;g.Ua=function(){return"marker"}; -g.type=function(a){return n(a)?(this.O!=a&&(null===a||(a=Dd(a,"star5")),this.O=a,this.B(I,J)),this):this.O||this.Wl};function $S(a,b){return n(b)?(a.Wl=b,a):a.Wl}g.da=function(a,b){ZS.G.da.call(this,a,b);this.type(a.type)};g.N=function(){var a=ZS.G.N.call(this);this.O&&(a.type=this.type());return a};ZS.prototype.type=ZS.prototype.type;function aT(a,b){QS.call(this,a,b);this.Dc=["high","low"]}E(aT,VS);aT.prototype.Ua=function(){return"rangeBar"};aT.prototype.pG=function(){var a=this.bf.ba();a.select(this.Lf());a=a.get("low");return Ac(this.scale().transform(a),0,1)};aT.prototype.Gn=function(){var a=this.bf.ba();a.select(this.Lf());a=a.get("high");return Ac(this.scale().transform(a),0,1)};aT.prototype.yx=function(){var a=aT.G.yx.call(this);a.pop();return a};function bT(a,b){QS.call(this,a,b);this.Qa=this.Sa=this.wb=this.Va=this.Ga=this.ga=this.X=this.Ma=this.$=this.F=this.o=null}E(bT,QS);g=bT.prototype;g.Ua=function(){return"tank"};g.WI=function(a){a=.1488095238*U(this.width(),a);var b,c,d,e;b=c=d=e=0;RS(this)?c=e=a:b=d=a;return[b,c,d,e]};function cT(a){return 0>=a?0:a*Math.round(1E15*Math.sin(90*Math.PI/180))/1E15} -function dT(a,b,c){if(RS(a)){a=c.width/2;var d=.1488095238*c.width,e=c.left+c.width,f=c.top+c.height;b.moveTo(c.left,c.top).te(e,c.top,a,d,!1,!0).lineTo(e,f).te(c.left,f,a,d,!1,!0)}else a=.1488095238*c.height,d=c.height/2,e=c.top+c.height/2+cT(d),b.moveTo(c.left+(0>=a?0:a*Math.round(1E15*Math.cos(90*Math.PI/180))/1E15),e).te(c.left,c.top,a,d,!0,!0).lineTo(c.left+c.width,c.top).te(c.left+c.width,e,a,d,!1,!0)} -function eT(a,b,c){if(RS(a)){a=c.width/2;var d=.1488095238*c.width;b.moveTo(c.left,c.top);b.te(c.left,c.top-.1,a,d,!0,!1)}else{a=.1488095238*c.height;var d=c.height/2,e=c.top+c.height/2+cT(d);b.moveTo(c.left+c.width+1.5,c.top+1);b.te(c.left+c.width+1.5,e,a,d,!0,!1)}}function fT(a,b,c){if(RS(a))b.moveTo(c.left,c.top),b.te(c.left,c.top-.1,c.width/2,.1488095238*c.width,!0,!1);else{a=.1488095238*c.height;var d=c.height/2;b.moveTo(c.left+c.width-1,c.top);b.te(c.left+c.width-1+.1,c.top,a,d,!0,!1)}} -g.WH=function(){this.o||(this.o=this.ta.cf());this.F||(this.F=this.ta.cf());this.scale().Fd()?(this.F.zIndex(0),this.o.zIndex(1)):(this.o.zIndex(0),this.F.zIndex(1));this.$?this.$.clear():this.$=this.o.path().zIndex(0);this.Ma?this.Ma.clear():this.Ma=this.o.path().zIndex(1);this.X?this.X.clear():this.X=this.o.path().zIndex(2);this.ga?this.ga.clear():this.ga=this.o.path().zIndex(3);this.Ga?this.Ga.clear():this.Ga=this.o.path().zIndex(4);this.Va?this.Va.clear():this.Va=this.F.path().zIndex(0);this.wb? -this.wb.clear():this.wb=this.F.path().zIndex(1);this.Sa?this.Sa.clear():this.Sa=this.F.path().zIndex(2);this.Qa?this.Qa.clear():this.Qa=this.F.path().zIndex(3);this.b?this.b.clear():this.b=this.ta.path();this.wh(this.ta)}; -g.en=function(){var a=RS(this),b=this.ma(),c=this.scale(),d=c.Fd(),e=SS(this,this.Gn()),f=SS(this,c.transform(c.rk())),c=SS(this,c.transform(c.Ym()));a?d?(this.O=Kl(b.left,f,b.width,e-f),this.Ja=Kl(b.left,e,b.width,c-e)):(this.O=Kl(b.left,e,b.width,f-e),this.Ja=Kl(b.left,c,b.width,e-c)):d?(this.O=Kl(e,b.top,f-e,b.height),this.Ja=Kl(c,b.top,e-c,b.height)):(this.O=Kl(f,b.top,e-f,b.height),this.Ja=Kl(e,b.top,c-e,b.height));this.j=this.O;dT(this,this.$,this.O);eT(this,this.Ma,this.O);a=this.X;b=this.O; -RS(this)?(d=b.width/2,e=.1488095238*b.width,f=b.left+b.width,c=b.top+b.height,a.moveTo(b.left,c-1),a.te(f,c,d,e,!1,!1)):(d=.1488095238*b.height,e=b.height/2,f=b.top+b.height/2+cT(e),a.moveTo(b.left+1,b.top),a.te(b.left,f,d,e,!1,!1));dT(this,this.ga,this.O);fT(this,this.Ga,this.O);dT(this,this.Va,this.Ja);eT(this,this.wb,this.Ja);dT(this,this.Sa,this.Ja);fT(this,this.Qa,this.Ja);this.b.kd(this.$.N())};g.bu=bT.prototype.en; -var gT={thickness:1,opacity:.3,color:"#FFFFFF"},hT={angle:0,keys:[{color:"#FFFFFF",offset:"0",opacity:0},{color:"#FFFFFF",offset:"0.2",opacity:Number(160/255)},{color:"#FFFFFF",offset:"0.25",opacity:Number(140/255)},{color:"#FFFFFF",offset:"0.3",opacity:Number(30/255)},{color:"#FFFFFF",offset:"0.35",opacity:0},{color:"#FFFFFF",offset:"1",opacity:0}]},iT={angle:0,keys:[{color:"#FFFFFF",offset:"0",opacity:0},{color:"#FFFFFF",offset:"0.2",opacity:.3*Number(160/255)},{color:"#FFFFFF",offset:"0.25",opacity:.3* -Number(140/255)},{color:"#FFFFFF",offset:"0.3",opacity:.3*Number(30/255)},{color:"#FFFFFF",offset:"0.35",opacity:0},{color:"#FFFFFF",offset:"1",opacity:0}]}; -bT.prototype.Pw=function(a){var b=RS(this),c=b?0:90,d=this.Tc(!0,a),e=PE(d),d=OE(d),d={angle:c,keys:[{color:e,offset:"0",opacity:1},{color:e,offset:"0.05",opacity:1},{color:d,offset:"0.85",opacity:1},{color:d,offset:"0.85",opacity:1},{color:e,offset:"1",opacity:1}]};this.$.fill(d);this.$.stroke("none");this.Ma.fill("none");this.Ma.stroke(gT);hT.angle=c;this.ga.fill(hT);this.ga.stroke("none");d={angle:b?50:140,keys:[{color:"#FFFFFF",offset:"0",opacity:.1},{color:e,offset:"1",opacity:1}]};this.Ga.fill(d); -this.Ga.stroke("none");this.X.fill("none");this.X.stroke(gT);e=PE("#FFFFFF");d=OE("#FFFFFF");d={angle:-c,keys:[{color:e,offset:"0",opacity:.3},{color:e,offset:"0.05",opacity:.3},{color:d,offset:"0.85",opacity:.3},{color:d,offset:"0.85",opacity:.3},{color:e,offset:"1",opacity:.3}]};this.Va.fill(d);this.Va.stroke("none");this.wb.fill("none");this.wb.stroke(gT);iT.angle=c;this.Sa.fill(iT);this.Sa.stroke("none");d={angle:b?50:140,keys:[{color:"#FFFFFF",offset:"0",opacity:.03},{color:e,offset:"1",opacity:.3}]}; -this.Qa.fill(d);this.Qa.stroke("none");a=this.td(!0,a);this.b.fill(a);this.b.stroke("none")};bT.prototype.ca=function(){this.Qa=this.Sa=this.wb=this.Va=this.Ga=this.ga=this.X=this.Ma=this.$=null;eg(this.o,this.F);this.F=this.o=null;bT.G.ca.call(this)};function jT(a,b){QS.call(this,a,b)}E(jT,QS);g=jT.prototype;g.en=function(){var a=this.ma(),b=this.scale().Fd(),c=a.left,d=a.left+a.width,e=SS(this,this.Gn()),a=b?a.top-this.o:a.top+a.height+this.o;this.j.left=c;this.j.top=b?a:e;this.j.width=Math.abs(d-c);this.j.height=Math.abs(a-e);this.path.clear().moveTo(c,e).lineTo(d,e).lineTo(d,a).te(c,a,this.$,this.$,!0,!b).lineTo(c,e).close();this.b.kd(this.path.N())}; -g.bu=function(){var a=this.ma(),b=this.scale().Fd(),c=a.top,d=a.top+a.height,e=SS(this,this.Gn()),a=b?a.left+a.width+this.o:a.left-this.o;this.j.left=b?e:a;this.j.top=c;this.j.width=Math.abs(a-e);this.j.height=Math.abs(d-c);this.path.clear().moveTo(e,c).lineTo(e,d).lineTo(a,d).te(a,c,this.$,this.$,!0,!b).lineTo(e,c).close();this.b.kd(this.path.N())};g.Ua=function(){return"thermometer"}; -g.WI=function(a,b){var c=U(this.width(),a),d=U(this.HB(),c),e=U(this.GB(),b);d K.tl.length&&!K.Ug.length){V=String(K.Zf[0].get("id"));aa=this.g[V];var nc=aa.Mi;for(G=0;G N.zi.length&&!N.Zf.length){oa=String(N.Ug[0].get("id"));pa=this.g[oa];var xb=pa.hk;for(G=0;G Si&&(Ff.length=Si);Ff.push(fg);fg==this.fa&&this.b.push(Ff.slice(0));var Oh,Gf;for(Oh=fg.Zf.length;Oh--;){var vc=String(fg.Zf[Oh].get("id")),Ti=this.g[vc].Mi;Gf=Si+1;Ti.level=Math.max(Gf,Ti.level);this.$a=Math.max(Ti.level,this.$a);Ue.push(Ti)}for(Oh=fg.zi.length;Oh--;){var sm=fg.zi[Oh];Gf=Si+1;sm.level=Math.max(Gf,sm.level);this.$a=Math.max(sm.level,this.$a);Ue.push(sm)}}for(var In in this.W){var Uf=this.W[In];if(!Uf.uo){var Bj=Uf.Hd,Ve=Uf.wd,Qt=Ve.level-Bj.level;if(1 Jn&&(Jn=0);kc(Ve.jj,Jn,1,Cj);delete this.W[Uf.id]}}}this.Qb.length=0;this.Ba.Ni=this.fa.Ni=!0;for(var tm=!1,nl=yT(this,tm),lr=[[this.Ba,this.fa]],xk;xk=zT(nl,lr);){var zp=lr,Ap=xk[1],Ph=void 0,Ui=nl[xk[0]],ol=null,Dj=void 0;for(Dj in Ui.jj)Ph=Ui.jj[Dj].Hd,Ph.Ni&&(!ol||ol.level>Ph.level)&&(ol=Ph);for(var mr=[ol],Ph=ol;Ph;){for(var Kn= -Ph.jj,Ej=null,Dj=0;Dj p.indexOf(t)){q=!1;break}}if(q&&(l++,0>m&&(m=d),l>=h))break}if(!l)throw"non planar!";l =this.nc?a.width:a.height;d=U(this.Ld().vd().size(),p);f=U(this.vd().size(),p);var q=Math.max(f,d);f=a.left+q/2;for(d=0;d c.tq){var f=a.Pb(b,c,d),h=eS(a.sa,a.sa.Gd(),f,++a.I);if(a.b){if(a.b.text==h)return;PT(a,b)}a.b={index:a.I,text:h,start:b,p8:f,W$:c,Z$:d,top:e}}else PT(a,b)}function PT(a,b){a.b&&(a.b.end=b,a.D.push(a.b),a.b=null)} -function QT(a,b){var c=b.start,d=b.end,e=a.ha("stroke"),f=a.Ta.Fa(),h=vg(e),k=vg(a.Ta.zF().ha("verticalStroke")),l=k/2+h/2,c=Ac(wg(f.wk(c)+a.$.left,k)+l,a.$.left,a.$.Wa()),d=Ac(wg(f.wk(d)+a.$.left,k)-l,a.$.left,a.$.Wa()),f=wg(b.top+h/2,h),k=wg(b.top+a.ha("height")-h/2,h),l=cD(a.g);l.fk(c).gk(f).ek(d-c).ck(k-f).fill(a.ha("fill")).stroke(e);if(e=a.ha("hatchFill"))l=cD(a.g),l.fk(c+h/2).gk(f+h/2).ek(d-c-h).ck(k-f-h).fill(e).stroke(null);h=b.index;e=b.p8;c=new Q(c,f,d-c,k-f);d=a.labels();e?(f=d.Te(h), -k={value:{x:c.left,y:c.top}},f?(f.jf(e),f.ic(k)):f=d.add(e,k,h),f.mf(),f.Hb(void 0),f.width(c.width),f.height(c.height),f.clip(c),f.aa()):d.clear(h)} -g.aa=function(){if(this.Kb()){W(this,4)&&(this.$=this.ma(),this.Qd.shape(this.$),this.R(4));if(W(this,128)){for(var a=0;a b.Wa()?(c=k,k.width>=b.width?c.left=b.left:c.left=b.Wa()-k.width,b=c.left+c.width/2,c=c.top+c.height/2,h.ic({value:{x:b,y:c}}),h.Aa.width=k.width):"center"!=l&&(b=c.left+c.width/2,c=c.top+c.height/2,h.ic({value:{x:b,y:c}}));h.clip(h.g3)}}ZR(d);d.aa()}; -g.aa=function(){if(this.Kb()){var a=!1,b=!1,c,d,e,f,h,k,l,m;this.b||(this.b=BC(),this.Qd=vC(),this.b.clip(this.Qd),this.J=this.b.cf(),this.O=[],this.X=[],this.Ka=[],this.la=[],this.Y=this.b.cf(),this.sa=[],this.D=[],this.Ma=[],this.Ba=[],this.fa=[],this.ea=[]);W(this,2)&&(this.b.parent(this.P()),this.R(2));W(this,8)&&(this.b.zIndex(this.zIndex()),this.o.zIndex(0),this.J.zIndex(1),this.Y.zIndex(2),this.R(8));W(this,4)&&(this.Ea=this.Rb(),XF(this.Ea),this.Qd.shape(this.Ea),this.B(1472),this.R(4));if(W(this, -512)){c=this.F.length;d=this.O.length;this.ea.length=0;this.fa.length=0;this.Ma.length=0;this.Ba.length=0;var p=this.D.length=0,q=0;c=Math.max(c,d);for(m=0;m this.NA&&(this.NA=c),c b;b=Math.abs(b);var d=(b-a.DG)/(a.MO-a.DG);if(isNaN(d)||!isFinite(d))d=.5;b=a.EG+d*(a.NO-a.EG);return c?-b:b} -function lg(a){return qa(a.Sr())+"_"+qa(a.Pa())}g.KF=function(){return this.ta};g.Zb=function(){return this.Ca};g.ba=function(){return this.kc||this.Nb()};g.Nb=function(){return this.kc=this.Sl()};g.Sr=function(){return this.Ca.Fa()};g.Pa=function(a){return n(a)?(a instanceof Bc||(a=null),this.mb!=a&&(this.mb&&uI(this.mb,this.cp,this),(this.mb=a)&&P(this.mb,this.cp,this),this.B(1024,4|J)),this):this.mb||this.Qa.Pa()};g.cp=function(a){var b=0;X(a,4)&&(b|=4);X(a,2)?(b|=J,this.B(1024,b)):this.va(b)}; -g.l_=function(a,b){return WJ(this,this.Sr().transform(a,b),!0)};g.OO=function(a,b){return WJ(this,this.Pa().transform(a,b),!1)};g.error=function(a){XJ(this)||M(12,void 0,[this.Fc()]);this.Ja||(this.Ja=new TJ(this),P(this.Ja,this.I7,this));return n(a)?(this.Ja.U(a),this):this.Ja};g.I7=function(a){var b=0;X(a,J)&&(b|=J);X(a,4)&&(b|=4);this.B(I,b)};g.km=function(a){return this.error().km(a)}; -g.g_=function(){var a=this.error(),b=a.b.ba(),c=b.get("xError")||a.ev(),d=b.get("xLowerError")||a.fv(),e=b.get("xUpperError")||a.hv(),f=b.get("valueError")||a.Zu(),h=b.get("valueLowerError")||a.$u(),a=b.get("valueUpperError")||a.av(),f=n(h)||n(a)||KF(f)||!OF(f);if(n(d)||n(e)||KF(c)||!OF(c)||f)switch(c=this.error(),d=c.mode(),e=this.check(4096),d){case "x":c.aa(!0,e);break;case "value":c.aa(!1,e);break;case "both":c.aa(!0,e),c.aa(!1,e)}}; -g.clip=function(a){return n(a)?(null===a&&(a=!1),this.Qd!=a&&(this.Qd=a,this.B(4096,J)),this):this.Qd};g.rw=function(a){this.I||(this.I=new kO,P(this.I,this.k_,this));return n(a)?(this.I.U(a),this):this.I};g.k_=function(a){var b=64,c=!1;X(a,8)&&(b|=8,c=!0);this.va(b,c)}; -function eU(a,b){var c=a.rw();c.R(c.wa);var d=eN.prototype.N.call(c);n(c.Lt())&&(d.iconTextSpacing=c.Lt());n(c.text())&&(d.text=c.text());n(c.It())&&(d.iconEnabled=c.It());n(c.Mt())&&(d.iconType=c.Mt());n(c.Kt())&&(d.iconSize=c.Kt());n(c.lk())&&(d.iconFill=c.lk());n(c.nk())&&(d.iconStroke=c.nk());n(c.mk())&&(d.iconHatchFill=c.mk());n(c.Jt())&&(d.iconMarkerType=c.Jt());n(c.kr())&&(d.iconMarkerFill=c.kr());n(c.lr())&&(d.iconMarkerStroke=c.lr());n(c.disabled())&&(d.disabled=c.disabled());var c=a.ha("color"), -e=a.IO(),f=d.text||b;z(f)&&(f=FJ(GJ.qc(),f));d.text=A(f)?f.call(e,e):a.WR(e);d.disabled="disabled"in d?!!d.disabled:!a.enabled();d.meta=a.K();"marker"!=d.iconType||a.check(8192)||(d.iconFill=a.La.fill(),d.iconStroke=a.La.stroke());d.iconType=a.CG(d.iconType,e);d.iconEnabled="iconEnabled"in d?!!d.iconEnabled:!0;d.iconStroke=a.wx(d.iconStroke,2,c,e);d.iconFill=a.wx(d.iconFill,1,c,e);d.iconHatchFill=a.wx(d.iconHatchFill,3,$T(a),e);a.Eg()&&a.Oa().enabled()?(d.iconMarkerType=d.iconMarkerType||a.La.type(), -d.iconMarkerFill=d.iconMarkerFill||a.La.fill(),d.iconMarkerStroke=d.iconMarkerStroke||a.La.stroke()):(d.iconMarkerType=null,d.iconMarkerFill=null,d.iconMarkerStroke=null);return d}g.CG=function(a){"marker"==a?(this.check(8192)?a=this.ha("type"):this.Eg()?a=this.Oa().type():a="square","line"==a&&(a="vline")):A(a)||(a=Md(a));return a}; -g.wx=function(a,b,c){if(a)A(a)?(b={sourceColor:c},a=a.call(b,b)):a=T(a);else{if(2==b)a="stroke";else if(3==b){if(this.check(8))return null;a="hatchFill"}else this.check(8)?(a="stroke",b=2):a="fill";a=UE([a],b)(this,$b,!0)}return a};g.WR=function(){return this.name()};g.zb=function(a){if(!this.Ib&&(this.Ib=new NQ(0),this.Ca.KU())){var b=this.Ca,c=b.zb();this.Ib.parent(c);this.Ib.Ca(b)}return n(a)?(this.Ib.U(a),this):this.Ib}; -function UE(a,b){if(!a)return fU;var c=b+"|"+a.join("|"),d=YT[c];if(!d){switch(b){case 2:d=SI;break;case 3:d=UI;break;default:case 1:d=TI}YT[c]=d=wa(gU,a,d,3==b)}return d}function gU(a,b,c,d,e,f){var h;e=rc(e);if(e!=$b&&1 e&&(e=k.height);k.width>d&&(d=k.width)}this.kb()||(f=d,d=e,e=f);var f=this.F.length,m= -null==this.pd,p=null==this.lb,q=null!=this.pd?U(this.length(),b):d*f,t=null!=this.lb?U(this.width(),c):e,d=e=0,u=!1,w=!1,h=this.title();h.enabled()&&(h.P()||h.P(this.P()),L(h),h.ma(a),HQ(h,this.Tl()),this.kb()?(e=LQ(h).height,d=LQ(h).width):(e=LQ(h).width,d=LQ(h).height),u=h.ha("orientation")||HQ(h),"top"==u||"bottom"==u?(u=this.kb(),w=!this.kb()):(u=!this.kb(),w=this.kb()),h.ja(!1));var x,y,B=this.padding(),l=U(B.ha("top"),a.height),k=U(B.ha("right"),a.width),D=U(B.ha("bottom"),a.height),B=U(B.ha("left"), -a.width),G=this.margin(),K=U(G.ha("top"),a.height),N=U(G.ha("right"),a.width),S=U(G.ha("bottom"),a.height),G=U(G.ha("left"),a.width);m&&!p?(m=t-(u?e:0),q=Math.min(w?m*f+d:Math.max(m*f,d),b),this.b=(q-(w?d:0))/f,this.j=m):!m&&p?(m=(q-(w?d:0))/f,t=Math.min(u?m+e:Math.max(m,e),c),this.b=m,this.j=t-(u?e:0)):m&&p?(c=Math.min(q,b-(w?d:0))/f,q=Math.max(t,w?e:0),m=Math.max(c,q)*f+D+l+S+K>b?(b-(D+l+S+K)-(w?d:0))/f:Math.max(c,q),q=w?m*f+d:Math.max(m*f,d),t=u?m+e:Math.max(m,e),this.j=this.b=m):(this.b=(q-(w? -d:0))/f,this.j=t-(u?e:0));c=this.XA();var V;this.kb()?(q+k+B+N+G>b&&(q=b-(k+B+N+G)),"left"==c||"top"==c?V=B+G:"right"==c||"bottom"==c?V=b-q-k-N:"center"==c&&(V=(b-q)/2)):(q+D+l+S+K>b&&(q=b-(D+l+S+K)),"left"==c||"top"==c?V=l+K:"right"==c||"bottom"==c?V=b-q-D-S:"center"==c&&(V=(b-q)/2));var aa,oa;switch(this.Tl()){case "top":y=a.top+l+K;x=a.left+V;oa=t;aa=q;this.J=new Q(x,y,this.b,this.j);break;case "right":y=a.top+V;x=a.left+a.width-t-k-N;oa=q;aa=t;this.J=new Q(x,y,this.j,this.b);break;case "bottom":y= -a.top+a.height-t-D-S;x=a.left+V;oa=t;aa=q;this.J=new Q(x,y,this.b,this.j);break;case "left":y=a.top+V,x=a.left+B+G,oa=q,aa=t,this.J=new Q(x,y,this.j,this.b)}if(h.enabled())switch(u=h.ha("orientation")||HQ(h),u){case "top":this.J.left=x;this.J.top=y+(this.kb()?e:d);break;case "left":this.J.left=x+(this.kb()?d:e),this.J.top=y}this.Cj=new Q(Math.round(x),Math.round(y),Math.round(aa),Math.round(oa));this.O=new Q(this.Cj.left-B,this.Cj.top-l,this.Cj.width+B+k,this.Cj.height+l+D);this.$=new Q(this.O.left- -G,this.O.top-K,this.O.width+G+N,this.O.height+K+S)}else this.$=new Q(0,0,0,0);this.B(this.Sd);this.R(4)}return this.$};function qU(a,b){if(null===a.b||null===a.j)return{value:{x:0,y:0}};var c,d,e=a.J;switch(a.Tl()){case "top":c=e.left+a.b*b+a.b/2;d=e.top+a.j;break;case "right":c=e.left;d=e.top+a.b*b+a.b/2;break;case "bottom":c=e.left+a.b*b+a.b/2;d=e.top;break;case "left":c=e.left+a.j,d=e.top+a.b*b+a.b/2}return{value:{x:c,y:d}}} -g.ki=function(a,b,c){var d=a.ra(),e=a.re();e.Nb().select(d);c=n(c)?c:hc(e.state,d);a.state=c;var f=e.ba(),h=!!(c&Hb),k=!h&&!!(c&H),l=e.labels();a=f.get("label");h?(h=f.get("selectLabel"),f=e.Ub()):k?(h=f.get("hoverLabel"),f=e.Gb()):(h=null,f=e.labels());k=e.Pb(!0);k.Cm=e.Ue(d);b.jf(k);bS(b,l);fS(b,f);b.Hb(a,h);ZR(l);d=!!(c&Hb);a=!d&&!!(c&H);d=d?this.Ub():a?this.Gb():this.labels();a=aS(this.labels());a.enabled=this.labels().enabled();l=aS(d);l.enabled=ha(d.enabled())?a.enabled:d.enabled();b.Hb(a,li(b.I, -l));d=qU(this,b.ra());d.connectorPoint=e.wC();b.ic(d);this.kb()?b.width(this.b).height(this.j):b.width(this.j).height(this.b);switch(this.Tl()){case "top":b.anchor("centerbottom");break;case "right":b.anchor("leftcenter");break;case "bottom":b.anchor("centertop");break;case "left":b.anchor("rightcenter")}d=e.Tc(!0,c);e=e.Nc(!0,c);b.$A().enabled(!0).fill(d).stroke(e);return b}; -function rU(a){var b=a.labels();b.P()||b.P(a.P());b.ma(a.ma());b.clear();for(var c=0,d=a.F.length;c c?d+c+270:d+c+90:d;this.j.x(this.F).y(this.J)};tU.prototype.N=function(){var a=tU.G.N.call(this);n(this.Ii())&&(a.autoRotate=this.Ii());return a};tU.prototype.da=function(a,b){tU.G.da.call(this,a,b);this.Ii(a.autoRotate)};sU.prototype.autoRotate=sU.prototype.Ii;tU.prototype.autoRotate=tU.prototype.Ii;function uU(a,b){Z.call(this);this.b=[];this.g=Fb(b,4);this.j=Fb(a,5);this.o=0;this.I=[];this.F=[];this.D=[];this.O=[];this.J=[];this.Aa={fill:"none",cellBorder:"black",topPadding:0,rightPadding:0,bottomPadding:0,leftPadding:0,hAlign:"start",vAlign:"top",enabled:!0};this.Aa.fill="#fff"}E(uU,lO);g=uU.prototype;g.za=lO.prototype.za;g.wa=lO.prototype.wa|192|aF|512|Ub|2048;g.Ih=null;g.Ul=null;g.fB=null;g.Sn=null;g.fo=null;g.Vl=null;g.Yt=null;g.oP=null;g.pP=null;g.rP=null;g.tj=null;g.fj=null;g.Fm=null; -g.Em=null;g.am=null;g.$l=null;g.gB=null;g.eC=null;g.dC=null;g.bC=null;g.aC=null;g.$B=null;g.fU=function(a){return n(a)?(a=Fb(a,this.j),this.j!=a&&(isNaN(this.o)&&(this.o=this.g),this.j=a,this.B(2176,J)),this):this.j};g.DQ=function(a){return n(a)?(a=Fb(a,this.g),this.g!=a&&(isNaN(this.o)&&(this.o=this.g),this.g=a,this.B(2176,J)),this):this.g};g.Gt=function(a,b){vU(this);a=Fb(a,NaN,!0);b=Fb(b,NaN,!0);return this.b[a*this.g+b]||null}; -g.mn=function(a){vU(this);a=Fb(a,NaN,!0);if(isNaN(a)||a>=this.j)return null;this.tj||(this.tj=[]);a in this.tj||(this.tj[a]=new zJ(this,a));return this.tj[a]};g.qP=function(a){vU(this);a=Fb(a,NaN,!0);if(isNaN(a)||a>=this.g)return null;this.fj||(this.fj=[]);a in this.fj||(this.fj[a]=new vJ(this,a));return this.fj[a]};g.E8=function(a){return n(a)?(this.gB!=a&&(this.gB=a,this.B(64,J)),this):this.gB};g.H8=function(a){return n(a)?(this.eC!=a&&(this.eC=a,this.B(64,J)),this):this.eC}; -g.G8=function(a){return n(a)?(this.dC!=a&&(this.dC=a,this.B(64,J)),this):this.dC};g.s3=function(a){return n(a)?(this.bC!=a&&(this.bC=a,this.B(64,J)),this):this.bC};g.r3=function(a){return n(a)?(this.aC!=a&&(this.aC=a,this.B(64,J)),this):this.aC};g.p3=function(a){return n(a)?(this.$B!=a&&(this.$B=a,this.B(64,J)),this):this.$B}; -g.n1=function(a,b,c,d,e){if(n(a)){null===a||(a=Pc.apply(null,arguments));L(this);this.xa("border",a,aF);for(var f=0;4>f;f++)this.xa($E[f],null,aF);this.ja(!0);return this}return this.oP||(this.oP=new YE(this,!1))}; -g.w3=function(a,b){var c,d,e,f;if(n(a)){d=!r(a);var h=0,k;if(!d)for(k=a.length,c=0;c h&&(h=f.length);else{d=!0;break}if(!d&&k&&h){L(this);this.fU(k);this.DQ(h);if(b)for(c=0;c e;)for(d=Math.min(this.g, -f+k.gr());d-- >f;)this.b[c*this.g+d].b=h;k.b=NaN}}this.R(128);this.B(aF|512|Ub)}if(W(this,512)){this.Vl||(this.Vl=[]);if(this.fo)for(var l in this.fo)c=this.fo[l],c.clear(),c.parent(null),this.Vl.push(c),delete this.fo[l];else this.fo={};for(l=0;l f;f++)this.xa(ZE[f],null,aF);this.ja(!0);return this}return this.pP||(this.pP=new YE(this,!0))}; -g.cellPadding=function(a,b,c,d){if(n(a)){var e,f,h,k,l;r(a)?(l=a,a=l[0],b=l[1],c=l[2],d=l[3],l=l.length):l=arguments.length;0==l?k=h=f=e=0:v(a)?(e=Tb(a.top)||0,f=Tb(a.right)||0,h=Tb(a.bottom)||0,k=Tb(a.left)||0):1==l?k=h=f=e=Tb(a)||0:2==l?(h=e=Tb(a)||0,k=f=Tb(b)||0):3==l?(e=Tb(a)||0,k=f=Tb(b)||0,h=Tb(c)||0):4<=l&&(e=Tb(a)||0,f=Tb(b)||0,h=Tb(c)||0,k=Tb(d)||0);L(this);this.xa(Sb[0],e,Ub);this.xa(Sb[1],f,Ub);this.xa(Sb[2],h,Ub);this.xa(Sb[3],k,Ub);this.ja(!0);return this}return this.rP||(this.rP=new Rb(this))}; -function vU(a){if(W(a,2048)){var b=[],c=a.o?a.b.length/a.o:0,d,e,f=Math.min(c,a.j),h=Math.min(a.o,a.g);for(d=0;d