v&&(k=z)),z++;r<=Q&&e=v||1<=v?(l=f,d.push(!0)):0v?(l=f,d.push(!0)):d.push(!1))):d.push(!1),f++)}R||(d=!1)}}E||(c=!1);a.l={labels:c,Fa:d};
V(a,256)}return a.l}
function aG(a,b,c){var d=c?a.Hu:a.Cz;if(m(d[b]))return d[b];var e=a.xe.stroke().thickness?a.xe.stroke().thickness:1,f=c?a.pa():a.Ha(),h=c?a.labels():a.Fa(),k=a.scale();c=(c?k.pa():k.Ha()).get()[b];var k=k.transform(c),k=sj(a.gb()-90+360*k),l=k*Math.PI/180,f=f.enabled()?isNaN(a.sl)?f.length():a.sl:0,f=a.Da+f+e/2,e=Math.round(a.Ra+f*Math.cos(l)),f=Math.round(a.Pa+f*Math.sin(l));a=new be(a,b,c);h=h.measure(a,{value:{x:e,y:f}},void 0,b);a=bG(k,h);h.left+=a.x;h.top+=a.y;return d[b]=h}
g.gG=function(a,b,c,d){var e=this.scale(),e=d?e.pa().get():e.Ha().get();d=d?this.labels():this.Fa();e=new be(this,a,e[a]);d.add(e,{value:{x:b,y:c}},a)};g.Ab=function(){if(!this.yc)return!1;if(!this.enabled())return W(this,1)&&(this.remove(),V(this,1),G(this.pa(),2),G(this.labels(),2),G(this,194)),!1;V(this,1);return!0};
g.K=function(){var a=this.scale();if(!a)return Wd(2),this;if(!this.Ab())return this;var b,c,d,e;K(this.labels());K(this.Fa());K(this.pa());K(this.Ha());W(this,I)&&(this.xe.stroke(this.a),V(this,I));if(W(this,8)){var f=this.zIndex();this.xe.zIndex(f);this.pa().zIndex(f);this.Ha().zIndex(f);this.labels().zIndex(f);this.Fa().zIndex(f);V(this,8)}W(this,2)&&(f=this.A(),this.xe.parent(f),this.pa().A(f),this.labels().A(f),this.Ha().A(f),this.Fa().A(f),V(this,2));if(W(this,128)){var h=this.pa();h.K();b=h.Ao;
var k=this.Ha();k.K();d=k.Ao;V(this,128)}W(this,64)&&(c=this.labels(),c.A()||c.A(this.A()),c.R(this.R()),c.clear(),c=this.gG,e=this.Fa(),e.A()||e.A(this.A()),e.R(this.R()),e.clear(),e=this.gG,V(this,64));if(m(b)||m(c)||m(e)||m(d)){ZF(this);var l,n,f=sj(this.gb()-90),p,q;this.xe.Dc(this.Da);this.xe.si(this.Ra);this.xe.ti(this.Pa);var r,v,x,y,z,E,H,M,Q,R,ea=a.pa().get(),Z=ea.length,Ha=this.pa().stroke().thickness?parseFloat(this.Ea.stroke().thickness):1,hb=this.pa().enabled()?isNaN(this.sl)?this.pa().length():
this.sl:0,Ia=this.xe.stroke().thickness?this.xe.stroke().thickness:1;if(a instanceof Wy){H=$F(this);A(H)?(Q=H.labels,R=H.Fa):(Q=!H,R=!H);var lb=a.Ha().get(),Jc=this.Mb.stroke().thickness?parseFloat(this.Mb.stroke().thickness):1,mc=this.Ha().enabled()?isNaN(this.sl)?this.Ha().length():this.sl:0;M=H=0;for(var jb=lb.length;Hf?"0"+f:""+f)+"-"+(10>k?"0"+k:""+k)+"-"+h;k=a.h.Bm();return{dataIntervalUnit:k.Qk().Lg,dataIntervalUnitCount:k.Qk().count,dataIsGrouped:k.Nw(),majorIntervalUnit:c,majorIntervalUnitCount:e,minorIntervalUnit:d,minorIntervalUnitCount:e,value:f,tickValue:b,max:a.na.oC(),min:a.na.pC(),scale:a.na}}
g.Z=function(){hf(this.ma);this.ma=null;hf(this.a);this.a=null;hf(this.Aa);this.Aa=null;hf(this.c);this.na=this.c=null;DB.o.Z.call(this)};g.m=function(){var a=DB.o.m.call(this);a.height=this.height();a.labels=this.labels().m();a.minorLabels=this.Fa().m();a.ticks=this.pa().m();a.minorTicks=this.Ha().m();a.background=this.Fz().m();a.showHelperLabel=this.HD();a.overlapMode=this.Gz();return a};
g.N=function(a){DB.o.N.call(this,a);this.height(a.height);this.labels().D(a.labels);this.Fa().D(a.minorLabels);this.pa(a.ticks);this.Ha(a.minorTicks);this.Fz(a.background);this.HD(a.showHelperLabel);this.Gz(a.overlapMode)};DB.prototype.height=DB.prototype.height;DB.prototype.labels=DB.prototype.labels;DB.prototype.minorLabels=DB.prototype.Fa;DB.prototype.ticks=DB.prototype.pa;DB.prototype.minorTicks=DB.prototype.Ha;DB.prototype.background=DB.prototype.Fz;DB.prototype.showHelperLabel=DB.prototype.HD;
DB.prototype.overlapMode=DB.prototype.Gz;function gG(a,b,c,d){Y.call(this);this.w=a;this.ec=b;this.qa={};this.G={};this.G.pointWidth="90%";this.ua={};this.L=!1;this.Rd={};this.Ja=this.ka=null;this.Ob=c;this.ye=null;this.rp(d)}D(gG,aD);gG.prototype.aa=aD.prototype.aa|16320;gG.prototype.ja=aD.prototype.ja|84;var hG={},iG={};g=gG.prototype;g.kI=!0;g.hA=NaN;g.TG=NaN;g.fv=NaN;g.ev=NaN;g.iA=NaN;g.UG=NaN;g.vh=function(a){return m(a)?((a=this.w.Gp(a))&&a[0]!=this.Ob&&(this.Ob=a[0],this.rp(a[1]),G(this,4294967295,this.ja)),this):this.Ob};
g.rp=function(a){hf(this.g);hf(this.h);this.wb&&this.c&&!this.check(4)&&this.check(4,a)&&(hf(this.c),this.c=null);this.wb=a;this.g=new Da[a.Tb](this);this.h=new (2==a.lc?Uv:Vv)(this,a.rc,!!(a.$b&65536),null,a.Xb);this.ua=this.ec.oo()[this.Ob]||{};this.Bj()&&(this.gd={});this.G.xPointPosition=.5;K(this);this.Cv(this.ua,!0);this.O(!1)};
g.Cv=function(a,b){this.check(1048576)&&(this.labels().D(a.labels),this.qb().D(a.hoverLabels),this.Yb().D(a.selectLabels));this.ue()&&(this.ca().D(a.markers),this.hb().D(a.hoverMarkers),this.xb().D(a.selectMarkers));this.Bj()&&(this.al().D(a.outlierMarkers),this.$s().D(a.hoverOutlierMarkers),this.At().D(a.selectOutlierMarkers));this.lg()&&this.error().D(a.error);b&&this.Xr().reset();this.Xr().D(a.legendItem);this.nb().D(a.tooltip);this.clip(a.clip);this.zIndex(a.zIndex)};
g.U=function(){return this.ed?-1:xh(this.ec.Uc(),this)};function jG(a,b){return m(b)?(a.Jc=b,a):a.Jc}g.id=function(a){return m(a)?(a=String(a),this.Kc!=a&&(this.Kc=a,this.ea(64)),this):this.Kc||String(this.Jc)};g.name=function(a){return m(a)?(a=String(a),this.Zd!=a&&(this.Zd=a,this.ea(64)),this):this.Zd||"Series "+this.U()};g.j=function(a,b){this.B||(this.B={});if(m(a)){if(m(b)){var c=this.B[a];m(c)&&c==b||(this.B[a]=b);return this}return A(a)?(this.B!=a&&(this.B=a),this):this.B[a]}return this.B};
g.check=function(a,b,c){return!!(a&(b||this.wb).$b|a&(c||this.g).ef)};g.Tt=function(){return this.check(32)};g.lg=function(){return this.check(64)&&this.check(262144)};g.Bj=function(){return this.check(128)};g.ue=function(){return this.check(524288)};g.eg=function(){return this.check(2)};g.oj=function(){return this.check(512)};g.qe=function(){return this.check(256)};g.rg=function(){return!0};g.SG=function(){return this.oj()?T(lf(this,"pointWidth"),this.hC()):0};
function kG(a){return a.Ta||bt("diagonalBrick")}g.Zg=function(){return this.ja};function lG(a,b){a.G.pointWidth=String(100*b)+"%"}g.We=function(a){this.G.color=a;this.labels().We(mG(this));a=this.ca();var b=this.Ad();a.w=b;a=this.ca();b=this.Td();a.G=b;a=this.al();b=Sv(["fill"],1)(this,Nb,!0);a.w=b;a=this.al();b=Mv(this.al().fill());a.G=b};function nG(a,b){a.G.xPointPosition=b}g.Gf=function(a){this.G.type=a;this.ca().Hk=a};g.wh=function(a){this.Ta=bt(a)};
g.Me=function(a,b,c,d){this.l||(this.l=new cz,N(this,this.l));return m(a)?(this.l.D.apply(this.l,arguments),this):this.l};function Bf(a,b,c){var d;c&Ab?d="selectWhiskerWidth":c&zb&&(d="hoverWhiskerWidth");var e;d&&(a.check(131072)&&(e=b.get(d)),m(e)||(e=lf(a,d)));m(e)||(a.check(131072)&&(e=b.get("whiskerWidth")),m(e)||(e=lf(a,"whiskerWidth")));return T(e,a.Oc)}function oG(a,b){var c=0>b;b=Math.abs(b);var d=(b-a.hA)/(a.TG-a.hA);if(isNaN(d)||!isFinite(d))d=.5;b=a.iA+d*(a.UG-a.iA);return c?-b:b}
function of(a){return B(a.Pl())+"_"+B(a.fa())}g.Pg=function(){return this.w};g.J=function(){return this.ff||this.cb()};g.cb=function(){return this.ff=this.jj()};g.Pl=function(){return this.w.$()};g.fa=function(a){if(m(a))return a instanceof pc||(a=null),this.Ga!=a&&(this.Ga&&my(this.Ga,this.dv,this),(this.Ga=a)&&U(this.Ga,this.dv,this),G(this,512,4|J)),this;this.Ga||this.fa(this.ec.fa());return this.Ga};g.dv=function(a){var b=0;X(a,4)&&(b|=4);X(a,2)?b|=J:this.ea(b);G(this,512,b)};
g.$P=function(a,b){return this.lh(this.Pl().transform(a,b),!0)};g.VG=function(a,b){return this.lh(this.fa().transform(a,b),!1)};g.error=function(a){this.lg()||L(12,void 0,[this.vh()]);this.ha||(this.ha=new Uy(this),U(this.ha,this.ZP,this));return m(a)?(this.ha.D(a),this):this.ha};g.ZP=function(a){var b=0;X(a,J)&&(b|=J);X(a,4)&&(b|=4);G(this,I,b)};g.wD=function(){this.Ja||(this.Ja=[]);if(this.ka)for(;this.ka.length;){var a=this.ka.pop();a.clear();a.parent(null);this.Ja.push(a)}else this.ka=[]};
g.CJ=function(a){var b=this.J().U(),c=this.Ja.length?this.Ja.pop():nt().zIndex(4E-6);this.c.zb(c);this.h.Lx(c,this.check(65536),b);c.stroke(a);c.fill(null);this.ka.push(c);return c};g.Xh=function(a){return this.error().Xh(a)};g.LG=function(a){var b=a?this.error().xq():this.error().sq(),c;w(b)&&(c=this.Js(),b=vc(b.call(c,c)));var d;this.check(131072)&&(d=this.EJ(a?"xErrorStroke":"valueErrorStroke"),w(d)?(c=this.Js(b),d=vc(d.call(c,c))):d&&(d=vc(d)));return d||b};
g.bv=function(){if(Xy(this.error())){var a=this.error(),b=a.mode(),c=this.check(2048);switch(b){case "x":a.K(!0,c);break;case "value":a.K(!1,c);break;case "both":a.K(!0,c),a.K(!1,c)}}};g.clip=function(a){return m(a)?(null===a&&(a=!1),this.L!=a&&(this.L=a,G(this,2048,J)),this):this.L};g.Xr=function(a){this.ra||(this.ra=new $C,U(this.ra,this.ZV,this));return m(a)?(this.ra.D(a),this):this.ra};g.ZV=function(a){var b=64,c=!1;X(a,8)&&(b|=8,c=!0);this.ea(b,c)};
g.pg=function(a){var b=this.Xr();V(b,b.aa);var c=EB.prototype.m.call(b);m(b.hp())&&(c.iconTextSpacing=b.hp());m(b.text())&&(c.text=b.text());m(b.bp())&&(c.iconEnabled=b.bp());m(b.ip())&&(c.iconType=b.ip());m(b.gp())&&(c.iconSize=b.gp());m(b.Qj())&&(c.iconFill=b.Qj());m(b.Sj())&&(c.iconStroke=b.Sj());m(b.Rj())&&(c.iconHatchFill=b.Rj());m(b.fp())&&(c.iconMarkerType=b.fp());m(b.cp())&&(c.iconMarkerFill=b.cp());m(b.ep())&&(c.iconMarkerStroke=b.ep());m(b.disabled())&&(c.disabled=b.disabled());var b=lf(this,
"color"),d=this.QG();c.disabled="disabled"in c?!!c.disabled:!this.enabled();c.meta=this.j();if(!u(c.text)){var e;w(a)&&(e=a.call(d,d));u(e)||(e=this.DJ(d));c.text=e}"marker"!=c.iconType||this.check(4096)||(c.iconFill=this.da.fill(),c.iconStroke=this.da.stroke());c.iconType=this.gA(c.iconType,d);c.iconEnabled="iconEnabled"in c?!!c.iconEnabled:!0;c.iconStroke=this.Ms(c.iconStroke,2,b,d);c.iconFill=this.Ms(c.iconFill,1,b,d);c.iconHatchFill=this.Ms(c.iconHatchFill,3,kG(this),d);this.ue()&&this.ca().enabled()?
(c.iconMarkerType=c.iconMarkerType||this.da.type(),c.iconMarkerFill=c.iconMarkerFill||this.da.fill(),c.iconMarkerStroke=c.iconMarkerStroke||this.da.stroke()):(c.iconMarkerType=null,c.iconMarkerFill=null,c.iconMarkerStroke=null);return c};g.gA=function(a){"marker"==a?(this.check(4096)?a=lf(this,"type"):this.ue()?a=this.ca().type():a="square","line"==a&&(a="vline")):w(a)||(a=sd(a));return a};
g.Ms=function(a,b,c){if(a)w(a)?(b={sourceColor:c},a=a.call(b,b)):a=S(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=Sv([a],b)(this,Nb,!0)}return a};g.DJ=function(){return this.name()};g.nb=function(a){this.Rb||(this.Rb=new KE);return m(a)?(this.Rb.D(a),this):this.Rb};
function Sv(a,b){if(!a)return pG;var c=b+"|"+a.join("|"),d=hG[c];if(!d){switch(b){case 2:d=qG;break;case 3:d=rG;break;default:case 1:d=sG}hG[c]=d=pa(tG,a,d,3==b)}return d}
function tG(a,b,c,d,e,f){var h;e=Math.min(e&(zb|Ab),Ab);if(e!=Nb&&1=this.a.Dg&&a<=this.a.lastIndex};
function OG(a,b,c,d,e,f){for(var h=a.data().J(),k=a.fa(),l=0,n=0,p=0,q=!1,r=!1;h.advance();){var v=d(h.get("x"));if(!e(v)){var x={};x.x=v;var y,z,E,H,v=!1;y=0;for(z=a.g.Ef.length;yy&&!lf(a,"displayNegative"))&&(v=!0);if(a.lg()){if(Vy(a.$()))for(y=0,z=a.SL.length;yc&&(c=~c,0b-a.a.data[c-1].data.x&&c--));return c}return a.Y.Dk("x",b)}
g.Jl=function(a,b){if(this.a){var c=[],d,e;this.a.Xn?(d=this.a.Xn[Jw(a)],e=this.a.Xn[Jw(b)]):(d=Rc(this.a.data,function(b){return a-b.data.x}),0>d&&(d=~d),e=Rc(this.a.data,function(a){return b-a.data.x}),0>e&&(e=~e));if(!isNaN(d)&&!isNaN(e)){if(d>e){var f=d;d=e;e=f}for(e=Math.min(e,this.a.data.length-1);d<=e;d++)c.push(d)}return c}c=this.$();if(e=c instanceof lc)a=c.bk(a),b=c.bk(b);return this.Y.Jl(a,b,e)};
g.De=function(a){var b=this.J();this.qe()&&this.h.vl(a,b.j("shapes"));this.Bj()&&this.OB(b,a);this.g.$x(b,a);this.RG(b,a);this.nf(b,a)};g.Kh=ba;g.Ee=function(a){var b=this.J();this.h.vl(a,b.j("shapes"));this.g.$x(b,a);this.Bj()&&this.OB(b,a)};g.Ac=function(a){return m(a)?(a=null===a?null:Zc(a),a!=this.la&&(this.la=a),this):this.la};g.Jb=function(a){return m(a)?this:this.w.vc().Jb()};g.aQ=function(a){return m(a)?(this.Ac(ia(a)?a?"multiSelect":"none":a),this):fa(this.Ac())?null:"none"!=this.Ac()};
g.dg=function(a){m(a)?this.Gg(a):this.enabled()&&Xb(this.state,zb);return this};g.bd=function(a){var b;if(b=!Ub(this.state,zb))b=!(this.state.Gc()&zb);if(b||!this.enabled())return this;var c;m(a)?c=a:c=this.state.a==Nb?NaN:void 0;dc(this.state,zb,c);return this};g.Gg=function(a){if(!this.enabled())return this;if(t(a)){for(var b=ec(this.state,zb),c=0;cb&&(b=NaN)}a.pointIndex=b;return a};g.xf=function(a){(a=this.Ve(a))&&this.dispatchEvent(a)};
g.Ve=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;a.target!=this.al()||isNaN(a.markerIndex)?"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in a&&(c=a.markerIndex):
c=zG(this,a.markerIndex);c=F(c);a.pointIndex=c;var d=this.jj();d.select(c)||d.reset();return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a,point:this.Ud(c)}};
g.Ud=function(a){var b;this.eg()?b=new Eb(this,a):b=new Db(this,a);this.w.Za();var c=this.w.M,d=this.check(40960),e=d?b.get("high")-b.get("low"):b.get("value");b.M.index=a;m(e)&&(b.M.value=e);var f=b.get("size"),h;ja(c.dataPlotXSum)&&(h=e/c.dataPlotXSum,b.M.xPercentOfTotal=100*h);ja(this.M("seriesXSum"))&&(h=e/this.M("seriesXSum"),b.M.xPercentOfSeries=100*h);ja(this.M("seriesBubbleSizeSum"))&&(h=f/this.M("seriesBubbleSizeSum"),b.M.bubbleSizePercentOfSeries=100*h,h=f/c.dataPlotBubbleSizeSum,b.M.bubbleSizePercentOfTotal=
100*h,b.M.bubbleSize=f);h=d?this.M("catYRangeSumArr_"):this.M("catYSumArr_");f=b.get("x");h?(b.M.categoryName=f,f=h[a],d?(h=e/this.M("seriesYRangeSum"),b.M.yPercentOfSeries=100*h,h=e/c.dataPlotYSum,b.M.yPercentOfTotal=100*h,b.M.yPercentOfCategory=e/f*100,h=f/c.dataPlotYSum,b.M.categoryYRangePercentOfTotal=100*h,b.M.categoryYRangeSum=f,b.M.categoryYRangeMax=this.M("catYRangeMaxArr_")[a],b.M.categoryYRangeMin=this.M("catYRangeMinArr_")[a],b.M.categoryYRangeAverage=this.M("catYRangeAvgArr_")[a],b.M.categoryYRangeMedian=
this.M("catYRangeMedianArr_")[a],b.M.categoryYRangeMode=this.M("catYRangeModeArr_")[a]):(h=e/this.M("seriesYSum"),b.M.yPercentOfSeries=100*h,h=e/c.dataPlotYSum,b.M.yPercentOfTotal=100*h,b.M.yPercentOfCategory=e/f*100,h=f/c.dataPlotYSum,b.M.categoryYPercentOfTotal=100*h,b.M.categoryYSum=f,b.M.categoryYMax=this.M("catYMaxArr_")[a],b.M.categoryYMin=this.M("catYMinArr_")[a],b.M.categoryYAverage=this.M("catYAvgArr_")[a],b.M.categoryYMedian=this.M("catYMedianArr_")[a],b.M.categoryYMode=this.M("catYModeArr_")[a])):
(h=f/this.M("seriesXSum"),b.M.xPercentOfSeries=100*h,h=e/this.M("seriesYSum"),b.M.yPercentOfSeries=100*h,h=f/c.dataPlotXSum,b.M.xPercentOfTotal=100*h,h=e/c.dataPlotYSum,b.M.yPercentOfTotal=100*h);return b};g.m=function(){var a=NG.o.m.call(this);if(this.a){for(var b=[],c=this.data(),d=new Ec(this);d.advance();){var e=d.j("rawIndex");isNaN(e)?b.push({x:d.get("x")}):b.push(hA(c,e))}a.data=b}else a.data=this.data().m();m(this.Ac())&&(a.selectionMode=this.Ac());return a};
g.N=function(a){NG.o.N.call(this,a);"data"in a&&this.data(a.data||null);m(a.allowPointsSelect)&&this.Ac(ia(a.allowPointsSelect)?a.allowPointsSelect?"multiSelect":"none":a.allowPointsSelect);this.Ac(a.selectionMode)};g.Z=function(){hf(this.X);delete this.Y;this.va=this.a=this.state=this.W=this.W=this.X=null;NG.o.Z.call(this)};NG.prototype.data=NG.prototype.data;NG.prototype.xScale=NG.prototype.$;NG.prototype.hover=NG.prototype.dg;NG.prototype.unhover=NG.prototype.bd;NG.prototype.select=NG.prototype.select;
NG.prototype.unselect=NG.prototype.me;NG.prototype.selectionMode=NG.prototype.Ac;NG.prototype.allowPointsSelect=NG.prototype.aQ;NG.prototype.getPoint=NG.prototype.Ud;NG.prototype.excludePoint=NG.prototype.qJ;NG.prototype.includePoint=NG.prototype.JC;NG.prototype.keepOnlyPoints=NG.prototype.dK;NG.prototype.includeAllPoints=NG.prototype.IC;NG.prototype.getExcludedPoints=NG.prototype.XG;function UG(a,b,c,d){gG.call(this,a,b,c,d);this.SC=this.la=this.X=this.Ya=this.b=null;this.kI=!1}D(UG,gG);g=UG.prototype;g.hC=function(){var a=this.Pl();return a instanceof VG?this.S.width/(a.An-a.Yk):this.w.MF()/(a.oC()-a.pC())*this.S.width};g.Ud=function(){return null};g.EJ=function(){};g.tC=function(){return tz(this.b)};g.sC=function(){return uz(this.b)};g.Ns=function(){return this.w};
g.data=function(a,b,c){if(m(a)){var d=this.Ns();K(d);var e;this.b&&(e=this.b,this.b=null,WG(d,e));this.X&&(hf(this.X),this.X=null);this.Ya=a;if(t(a)||u(a))e=new Kz,e.MH(a,!1,c),this.X=a=e;a instanceof Kz&&(a=a.wv(b),b||(a.b("value",1,"average"),a.b("size",2,"sum"),a.b("open",1,"first"),a.b("high",2,"max"),a.b("low",3,"min"),a.b("close",4,"last"),a.b("volume",5,"sum")),this.X||(this.X=a));a instanceof Jz?(this.b=a.g(),this.NK()):this.Ya=null;d.O(!0);return this}return this.Ya};
g.NK=function(){xz(this.Ns().b,this.b,!0)};g.jj=function(){return this.b.J()};g.Js=function(a){return{sourceColor:a||lf(this,"color")||"blue"}};g.jC=function(){return{sourceHatchFill:kG(this)}};g.xD=function(){if(!this.b)return null;for(var a=this.g.Ef,b=[],c=0;cf?h.a.iI[~f]:h.a.oK[f];c.push(m(h)?h:NaN);h=a.b;f=ja(f)&&0>f?h.a.hI[~f]:h.a.jK[f];c.push(m(f)?f:NaN)}if(f=tz(a.b))for(d=0;dc&&(c=h):h>b&&(b=h)}}this.h=
b;this.b=c}W(this,32)&&(a=this.bb()||this.ac()||this.Nc(),!this.Zi&&a&&(this.Zi=new cu(this.FG,ba),this.Zi.parent(this.c),this.Zi.zIndex(2),this.Zi.lb(!0)),this.Zi&&this.Zi.clear());W(this,2)&&(this.c.parent(this.A()),this.Do.parent(this.c),this.Zi&&this.Zi.parent(this.c),V(this,2));a=this.ca();b=this.hb();c=this.hb();K(a);K(b);K(c);a.clear();a.A(this.A());a.R(this.Cb())}};
g.fd=function(a,b){var c;a:if(this.enabled()){var d=[],e=this.fa(),f=this.$(),h=this.J();c=!1;for(var k=0,l=this.cc.length;kn&&0>q||1n&&0>q||
1=c.Na()&&b.top<=c.top&&b.ta()>=c.ta(),e=this.Pg();"alwaysShow"!=e.pj()?a.clip(b):a.clip(null);if(!d)if("drop"==e.pj())this.labels().clear(a.U());
else if(a.width()!=c.width||a.height()!=c.height)a.c=null,a.width(c.width).height(c.height)}};
g.fc=function(){this.ca().K();this.ca().O(!1);this.hb().O(!1);this.xb().O(!1);V(this.ca(),4294967295);V(this.hb(),4294967295);V(this.xb(),4294967295);this.labels().K();this.labels().O(!1);this.qb().O(!1);this.Yb().O(!1);V(this.labels(),4294967295);V(this.qb(),4294967295);V(this.Yb(),4294967295);if(W(this,4)){var a,b;a=this.clip();ia(a)&&(a=this.S,b=this.Me(),a=b.Bf(a));this.c.clip(a||null);(b=this.labels().hd())&&b.clip(a||null);(b=this.ca().hd())&&b.clip(a||null);V(this,4)}W(this,2)?V(this,0):V(this,
4294967295)};g.remove=function(){this.c&&this.c.remove();this.labels().A(null);this.ca().A(null);hH.o.remove.call(this)};g.sc=function(a){if(!this.I||a)this.I=new ne(this,this.cc,!1);this.I.Te();if(a=this.Pg().Sd()){var b=this.J().get("heat");a instanceof mH&&(this.I.color=a.uq(b),(a=a.qh(b))&&(this.I.colorRange={color:a.color,end:a.end,name:a.name,start:a.start,index:a.sourceIndex}))}return this.I};
g.Xc=function(a){var b=this.J(),c=b.j("shape");return c?(b=c.wa(),a=ad(a),{value:Sw(b,a)}):{value:{x:b.j("x"),y:b.j("y")}}};function iH(a,b,c){c?(c=a.S.left,a=a.S.width):(c=a.S.ta(),a=-a.S.height);return Math.round(c+b*a)}function jH(a,b){var c=a.J().j("shape");m(c)&&(c.stroke(cH(a,!0,b)),c.fill(dH(a,!0,b)))}function kH(a,b){var c=a.J().j("hatchFillShape");null!=c&&c.stroke(null).fill(a.gc(!0,b))}
g.De=function(a){var b=this.J().j("shape");if(b){var c=wf(cH(this,!0,a)),b=wf(b.stroke());c!=b?(G(this,I|32),this.fd(a,!0),V(this,I|32)):(jH(this,a),kH(this,a));this.nf(a);lH(this,a)}};g.Kh=function(){this.labels().K();this.ca().K()};g.Ee=function(a){jH(this,a);kH(this,a)};g.clip=function(a){return m(a)?(null===a&&(a=!1),this.Co!=a&&(this.Co=a,G(this,4,J|8)),this):this.Co};
g.$=function(a){return m(a)?(this.va!=a&&(this.va&&my(this.va,this.Uu,this),this.va=a,U(this.va,this.Uu,this),G(this,I,4|J)),this):this.va};g.fa=function(a){return m(a)?(this.Ga!=a&&(this.Ga&&my(this.Ga,this.Uu,this),this.Ga=a,U(this.Ga,this.Uu,this),G(this,I,4|J)),this):this.Ga};g.Uu=function(a){var b=0;X(a,4)&&(b|=4);X(a,2)?b|=J:this.ea(b);G(this,I,b)};
g.Be=function(a,b){var c;w(a)?(c=1this.Go&&(this.Go=b),be;e=Math.abs(e);e=(e-this.Lm)/(this.Eo-this.Lm);if(isNaN(e)||!isFinite(e))e=.5;e=this.I+e*(this.$c-this.I);e=b?-e:e;if(0>e&&!this.b)return;b=du(this.vk);this.J().j("x",c).j("value",d).j("size",e).j("shape",b);e=Math.abs(e);b.moveTo(c+e,d).$n(e,e,0,360);this.Jo(a|this.state.Gc());this.fg(b)}W(this,32)&&(d=this.J(),c=this.Eh?du(this.Eh):null,d.j("hatchFillShape",c),d=d.j("shape"),m(d)&&c&&c.Qc(d.m()),this.Io(a|this.state.Gc()));
zH.o.fd.call(this,a)}};
g.Jo=function(a){var b=this.J().j("shape"),c=F(this.J().j("size"));if(m(b)&&!isNaN(c)){if(0>c){var c=this.J(),d=c.get("negativeFill")||this.Cr(),c=a&Ab?this.Be(c.get("selectNegativeFill")||this.Er()||d,d):a&zb?this.Be(c.get("hoverNegativeFill")||this.Ar()||d,d):this.Be(d),c=wc(c),d=this.J(),e=d.get("negativeStroke")||this.Dr();a=a&Ab?this.Be(d.get("selectNegativeStroke")||this.Fr()||e,e):a&zb?this.Be(d.get("hoverNegativeStroke")||this.Br()||e,e):this.Be(e);a=vc(a)}else c=dH(this,!0,a),a=cH(this,!0,
a);b.stroke(a,2,"none","round");b.fill(c)}};g.Io=function(a){var b=this.J().j("hatchFillShape"),c=F(this.J().j("size"));if(null!=b&&!isNaN(c)){if(0>c){var c=this.J(),d;m(c.get("negativeHatchFill"))?d=c.get("negativeHatchFill"):d=this.Fo();var e;a&Ab?m(c.get("selectHatchFill"))?e=c.get("selectHatchFill"):m(this.Mm())?e=this.Mm():e=d:a&zb?m(c.get("hoverHatchFill"))?e=c.get("hoverHatchFill"):m(this.Km())?e=this.Km():e=d:e=d;a=fH(this,e)}else a=this.gc(!0,a);b.stroke(null).fill(a)}};
g.m=function(){var a=zH.o.m.call(this);a.displayNegative=this.Pz();w(this.Cr())?L(8,null,["Bubble Series negativeFill"]):a.negativeFill=S(this.Cr());w(this.Ar())?L(8,null,["Bubble Series hoverNegativeFill"]):a.hoverNegativeFill=S(this.Ar());w(this.Er())?L(8,null,["Bubble Series selectNegativeFill"]):a.selectNegativeFill=S(this.Er());w(this.Dr())?L(8,null,["Bubble Series negativeStroke"]):a.negativeStroke=S(this.Dr());w(this.Br())?L(8,null,["Bubble Series hoverNegativeStroke"]):a.hoverNegativeStroke=
S(this.Br());w(this.Fr())?L(8,null,["Bubble Series selectNegativeStroke"]):a.selectNegativeStroke=S(this.Fr());w(this.Fo())?L(8,null,["Bubble Series negativeHatchFill"]):a.negativeHatchFill=S(this.Fo());w(this.Km())?L(8,null,["Bubble Series hoverNegativeHatchFill"]):a.hoverNegativeHatchFill=S(this.Km());w(this.Mm())?L(8,null,["Bubble Series selectNegativeHatchFill"]):a.selectNegativeHatchFill=S(this.Mm());return a};
g.N=function(a){zH.o.N.call(this,a);this.Pz(a.displayNegative);this.Cr(a.negativeFill);this.Ar(a.hoverNegativeFill);this.Er(a.selectNegativeFill);this.Dr(a.negativeStroke);this.Br(a.hoverNegativeStroke);this.Fr(a.selectNegativeStroke);this.Fo(a.negativeHatchFill);this.Km(a.hoverNegativeHatchFill);this.Mm(a.selectNegativeHatchFill)};zH.prototype.displayNegative=zH.prototype.Pz;zH.prototype.negativeFill=zH.prototype.Cr;zH.prototype.hoverNegativeFill=zH.prototype.Ar;zH.prototype.selectNegativeFill=zH.prototype.Er;
zH.prototype.negativeStroke=zH.prototype.Dr;zH.prototype.hoverNegativeStroke=zH.prototype.Br;zH.prototype.selectNegativeStroke=zH.prototype.Fr;zH.prototype.negativeHatchFill=zH.prototype.Fo;zH.prototype.hoverNegativeHatchFill=zH.prototype.Km;zH.prototype.selectNegativeHatchFill=zH.prototype.Mm;zH.prototype.fill=zH.prototype.fill;zH.prototype.hoverFill=zH.prototype.tc;zH.prototype.selectFill=zH.prototype.Cd;zH.prototype.stroke=zH.prototype.stroke;zH.prototype.hoverStroke=zH.prototype.bc;
zH.prototype.selectStroke=zH.prototype.kd;zH.prototype.hatchFill=zH.prototype.bb;zH.prototype.hoverHatchFill=zH.prototype.ac;zH.prototype.selectHatchFill=zH.prototype.Nc;function BH(a,b){xH.call(this,a,b);this.cc=["points"];this.ua=["points"]}D(BH,xH);oH.connector=BH;g=BH.prototype;g.Ba=function(){return"connector"};g.Wu=function(a){return m(a)?(a=F(a)||0,this.C!=a&&(this.C=a,G(this,I,J)),this):this.C};g.Vu=function(a){return m(a)?(a=F(a)||0,this.h!=a&&(this.h=a,G(this,I,J)),this):this.h};g.Pv=function(a){return m(a)?(a=F(a)||0,this.b!=a&&(this.b=a,G(this,I,J)),this):this.b};
g.Jx=function(a){BH.o.Jx.call(this,a);this.Dh.ga(ya,function(){this.I=!1;this.gd=this.Dh.Re.zd().clone();G(this,I|32,J)},!1,this);this.Dh.ga(Ba,function(){this.I=!0},!1,this)};g.yr=function(a,b){var c=BH.o.yr.call(this,a,b);if(c){var d=pC(c,"rotation");if(!m(d)||null===d||isNaN(d))d={rotation:this.J().j("markerRotation")},c.Yd(d,d);d=pC(c,"anchor");m(d)&&null!==d||(d={anchor:this.J().j("markerAnchor")},c.Yd(d,d))}return c};
g.fj=function(a,b){var c=BH.o.fj.call(this,a,b);if(c){var d=VF(c).anchor;m(d)&&null!==d||(d={anchor:this.J().j("labelAnchor")},c.Yd(d,d))}return c};g.sc=function(a){if(!this.l||a)this.l=new qe(this,this.cc);this.l.Te();return this.l};
g.Xc=function(a){var b=this.J();if(b.j("shape")){var c=b.j("sumDist"),d=b.j("connectorsDist"),e=b.j("points"),f=0;if(u(a))switch(a){case "start":a=0;break;case "middle":a=.5;break;case "end":a=1;break;default:Nw(a)?a=parseFloat(a)/100:(a=F(a),isNaN(a)&&(a=.5))}else a=F(a),isNaN(a)&&(a=.5);for(var c=a*c,h=0,k=e.length;h=f&&c<=f+l){var n=(c-f)/l,p=e[h+2],q=e[h+3],r=e[h+4],v=e[h+5],x=e[h+6],y=e[h+7],z=r+(p-r)*(1-n),E=v+(q-v)*(1-n),r=x+(r-x)*(1-n),v=y+(v-y)*(1-n),p=z+(p+(e[h]-
p)*(1-n)-z)*(1-n),q=E+(q+(e[h+1]-q)*(1-n)-E)*(1-n),z=r+(z-r)*(1-n),v=v+(E-v)*(1-n),E=z+(p-z)*(1-n),n=v+(q-v)*(1-n),r=Zq(Oa(Math.atan(Math.sqrt(Math.pow(v-q,2))/Math.sqrt(Math.pow(z-p,2)))),7);zq?r=180-r:z>p&&v>q||z>p&&vz?p="leftTop":90==z?p="centerTop":180>z?p="rightTop":180==z?p="rightCenter":270>z?p="rightBottom":270==z?p="centerBottom":270e?E=-x:f>d&&h>e?E=x-180:f>d&&hq?-90:90;var H=d+Math.cos(Na(E+x))*z,M=e+Math.sin(Na(E+x))*z;p=d+Math.cos(Na(E-x))*z;E=e+Math.sin(Na(E-x))*z;y=Math.sqrt(Math.pow(b-k,2));x=Math.sqrt(Math.pow(c-l,2));x=Zq(Oa(Math.atan(x/y)),7);var Q;kc?Q=180-x:k>b&&l>c?Q=x:k>b&&lq?-90:90;y=
b+Math.cos(Na(Q+x))*z;var R=c+Math.sin(Na(Q+x))*z;n=b+Math.cos(Na(Q-x))*z;Q=c+Math.sin(Na(Q-x))*z;var ea=Math.sqrt(Math.pow(y-H,2)+Math.pow(R-M,2));x=ea/2*q;var Z=(y+H)/2+Math.cos(Na(v))*x*1.2,Ha=(R+M)/2+Math.sin(Na(v))*x*1.2;x=ea/2*q;z=0ea/2?ea/2*z:x;x=(0>q?90:-90)*r;var ea=Z+Math.cos(Na(v+x))*z,hb=Ha+Math.sin(Na(v+x))*z;x=(0>q?-90:90)*r;Z+=Math.cos(Na(v+x))*z;x=Ha+Math.sin(Na(v+x))*z;a.moveTo(H,M);a.Th(ea,hb,Z,x,y,R);y=Math.sqrt(Math.pow(n-p,2)+Math.pow(Q-
E,2));M=y/2*q;H=(n+p)/2+Math.cos(Na(v))*M*1.2;M=(Q+E)/2+Math.sin(Na(v))*M*1.2;x=y/2*q;z=0y/2?y/2*z:x;x=(0>q?90:-90)*r;y=H+Math.cos(Na(v+x))*z;R=M+Math.sin(Na(v+x))*z;x=(0>q?-90:90)*r;q=H+Math.cos(Na(v+x))*z;v=M+Math.sin(Na(v+x))*z;a.lineTo(n,Q);a.Th(q,v,y,R,p,E);a.close();return[b,c,k,l,f,h,d,e]}
g.fd=function(a){var b;if(this.enabled()){var c=this.Dh.scale(),d=this.J();if((b=d.get(this.cc[0]))&&t(b)){for(var e=[],f=[],h,k,l,n,p=0,q=b.length;pn||10>M,c=0,d=b.length;cf?lb=270-y:r>e&&v>f?(lb=y-90,Ia=-1):r>e&&vZ/2?Z/2*y:x;E=(0>q?90:-90)*Ia;E=Na(lb+E);x=hb+Math.cos(E)*z;y=Ha+Math.sin(E)*z;E=(0>q?-90:90)*Ia;E=Na(lb+E);hb+=Math.cos(E)*z;Ha+=Math.sin(E)*z;z=CH(R,e,f,r,v,x,y,hb,Ha,n,M,q,Ia,lb);this.fg(R);h.push(R);Q&&(CH(ea,e,f,r,v,x,y,hb,Ha,20,20,q,Ia,lb),this.fg(ea),ea.fill(Hv).stroke(null));k.push.apply(k,z);l.push(Z);p+=Z}e=b[c];f=b[c+1]}}this.J().j("shape",h).j("points",k).j("sumDist",p).j("connectorsDist",l);this.Jo(a|this.state.Gc())}if(W(this,32)&&(ea=H.j("shape"))){lb=
[];c=0;for(d=ea.length;cE&&0h&&(b-=2*Math.PI),y=h-b):(h>b&&(h-=2*Math.PI),y=b-h);y=isNaN(y)?y:Zq(y,4);if(0==y)return null;var z=Math.PI/2,z=Zq(z,4),M=Math.ceil(y/z),Q=1this.Po&&(this.Po=b),bf,f=Math.abs(f),f=(f-this.Pm)/(this.Mo-this.Pm);if(isNaN(f)||!isFinite(f))f=.5;f=this.ua+f*(this.Jc-this.ua);d=d?-f:f;if(0>d&&!this.b)return!1;f=du(this.No);c.j("x",e).j("value",b).j("size",d).j("shape",f);f.Dc(Math.abs(d)).si(e).ti(b);nI(this,a);this.fg(f)}W(this,32)&&(e=c.j("hatchFillShape"),e||(e=this.wk?du(this.wk):null,c.j("hatchFillShape",e)),c=c.j("shape"),
m(c)&&e&&e.Qc(c.m()),oI(this,a));return!0};
function nI(a,b){var c=a.J().j("shape"),d=F(a.J().j("size"));if(m(c)&&!isNaN(d)){var e;if(0>d){d=a.J();e=d.get("negativeFill")||a.Qr();d=b&Ab?a.Be(d.get("selectNegativeFill")||a.Tr()||e,e):b&zb?a.Be(d.get("hoverNegativeFill")||a.Or()||e,e):a.Be(e);d=wc(d);e=a.J();var f=e.get("negativeStroke")||a.Sr();e=b&Ab?a.Be(e.get("selectNegativeStroke")||a.Ur()||f,f):b&zb?a.Be(e.get("hoverNegativeStroke")||a.Pr()||f,f):a.Be(f);e=vc(e)}else d=dH(a,!0,b),e=cH(a,!0,b);c.stroke(e,2,"none","round");c.fill(d)}}
function oI(a,b){var c=a.J().j("hatchFillShape"),d=F(a.J().j("size"));if(null!=c&&!isNaN(d)){var e;if(0>d){d=a.J();m(d.get("negativeHatchFill"))?e=d.get("negativeHatchFill"):e=a.Rr();var f;b&Ab?m(d.get("selectHatchFill"))?f=d.get("selectHatchFill"):m(a.Oo())?f=a.Oo():f=e:b&zb?m(d.get("hoverHatchFill"))?f=d.get("hoverHatchFill"):m(a.Lo())?f=a.Lo():f=e:f=e;e=fH(a,f)}else e=a.gc(!0,b);c.stroke(null).fill(e)}}
g.Sr=function(a,b,c,d,e){if(m(a)){var f=w(a)?a:vc.apply(null,arguments);f!=this.cA&&(this.cA=f,G(this,I,J));return this}return this.cA};g.Pr=function(a,b,c,d,e){return m(a)?(this.OG=w(a)?a:vc.apply(null,arguments),this):this.OG};g.Ur=function(a,b,c,d,e){return m(a)?(this.wb=w(a)?a:vc.apply(null,arguments),this):this.wb};g.Qr=function(a,b,c,d,e,f,h){if(m(a)){var k=w(a)?a:wc.apply(null,arguments);k!=this.$k&&(this.$k=k,G(this,I,J));return this}return this.$k};
g.Or=function(a,b,c,d,e,f,h){return m(a)?(this.NG=w(a)?a:wc.apply(null,arguments),this):this.NG};g.Tr=function(a,b,c,d,e,f,h){return m(a)?(this.C=w(a)?a:wc.apply(null,arguments),this):this.C};g.Rr=function(a,b,c,d){if(m(a)){var e=w(a)||ia(a)?a:bt.apply(null,arguments);e!=this.uj&&(this.uj=e,G(this,32,J));return this}return this.uj};g.Lo=function(a,b,c,d){if(m(a)){var e=w(a)||ia(a)?a:bt.apply(null,arguments);this.Ja!=e&&(this.Ja=e);return this}return this.Ja};
g.Oo=function(a,b,c,d){if(m(a)){var e=w(a)||ia(a)?a:bt.apply(null,arguments);this.h!=e&&(this.h=e);return this}return this.h};g.De=function(a){nI(this,a);oI(this,a);lI(this,a);this.nf(a)};g.Ee=function(a){nI(this,a);oI(this,a)};g.Ba=function(){return"bubble"};
g.m=function(){var a=mI.o.m.call(this);a.displayNegative=this.bA();w(this.Qr())?L(8,null,["Bubble Series negativeFill"]):a.negativeFill=S(this.Qr());w(this.Or())?L(8,null,["Bubble Series hoverNegativeFill"]):a.hoverNegativeFill=S(this.Or());w(this.Tr())?L(8,null,["Bubble Series selectNegativeFill"]):a.selectNegativeFill=S(this.Tr());w(this.Sr())?L(8,null,["Bubble Series negativeStroke"]):a.negativeStroke=S(this.Sr());w(this.Pr())?L(8,null,["Bubble Series hoverNegativeStroke"]):a.hoverNegativeStroke=
S(this.Pr());w(this.Ur())?L(8,null,["Bubble Series selectNegativeStroke"]):a.selectNegativeStroke=S(this.Ur());w(this.Rr())?L(8,null,["Bubble Series negativeHatchFill"]):a.negativeHatchFill=S(this.Rr());w(this.Lo())?L(8,null,["Bubble Series hoverNegativeHatchFill"]):a.hoverNegativeHatchFill=S(this.Lo());w(this.Oo())?L(8,null,["Bubble Series selectNegativeHatchFill"]):a.selectNegativeHatchFill=S(this.Oo());return a};
g.N=function(a){mI.o.N.call(this,a);this.bA(a.displayNegative);this.Qr(a.negativeFill);this.Or(a.hoverNegativeFill);this.Tr(a.selectNegativeFill);this.Sr(a.negativeStroke);this.Pr(a.hoverNegativeStroke);this.Ur(a.selectNegativeStroke);this.Rr(a.negativeHatchFill);this.Lo(a.hoverNegativeHatchFill);this.Oo(a.selectNegativeHatchFill)};mI.prototype.minimumSize=mI.prototype.pV;mI.prototype.maximumSize=mI.prototype.lV;mI.prototype.displayNegative=mI.prototype.bA;mI.prototype.negativeFill=mI.prototype.Qr;
mI.prototype.hoverNegativeFill=mI.prototype.Or;mI.prototype.selectNegativeFill=mI.prototype.Tr;mI.prototype.negativeStroke=mI.prototype.Sr;mI.prototype.hoverNegativeStroke=mI.prototype.Pr;mI.prototype.selectNegativeStroke=mI.prototype.Ur;mI.prototype.negativeHatchFill=mI.prototype.Rr;mI.prototype.hoverNegativeHatchFill=mI.prototype.Lo;mI.prototype.selectNegativeHatchFill=mI.prototype.Oo;mI.prototype.fill=mI.prototype.fill;mI.prototype.hoverFill=mI.prototype.tc;mI.prototype.selectFill=mI.prototype.Cd;
mI.prototype.stroke=mI.prototype.stroke;mI.prototype.hoverStroke=mI.prototype.bc;mI.prototype.selectStroke=mI.prototype.kd;mI.prototype.hatchFill=mI.prototype.bb;mI.prototype.hoverHatchFill=mI.prototype.ac;mI.prototype.selectHatchFill=mI.prototype.Nc;function pI(a,b){hI.call(this,a,b);this.b=nt();this.b.zIndex(1);this.h=!1}D(pI,kI);iI.line=pI;g=pI.prototype;g.fd=function(a){if(this.enabled()){var b=this.cw(a);b&&(lI(this,a),this.nf(a),this.lg()&&Xy(this.error())&&this.bv());this.Zp=this.h&&this.Zp||b}};
g.$a=function(){pI.o.$a.call(this);if(this.yc&&this.enabled()){this.fg(this.b,!0);W(this,8)&&(this.c.zIndex(this.zIndex()),V(this,8));var a,b;W(this,4)&&(this.clip()&&(ia(this.clip())?(a=this.S,b=this.Me(),a=b.Bf(a)):a=this.clip(),this.c.clip(a)),V(this,4));W(this,I)&&(this.b.clear(),a=this.state.a,b=Nb,Ub(this.state,Ab)?b=Ab:Ub(this.state,zb)&&(b=zb),this.b.stroke(cH(this,!1,a|b),2),this.b.fill(null));W(this,2)&&(a=this.A(),this.c.parent(a),this.b.parent(this.c),V(this,2))}};
g.Xc=function(){var a=this.J();return{value:{x:a.j("x"),y:a.j("value")}}};g.dA=function(a){return m(a)?(this.h!=!!a&&(this.h=!0,G(this,I,J)),this):this.h};g.cw=function(){var a=jI(this);if(!a)return!1;if(W(this,I)){var b=a[0],a=a[1];this.Zp?this.b.lineTo(b,a):this.b.moveTo(b,a);this.J().j("x",b).j("value",a)}return!0};g.Ad=function(){return cH(this,!1,Nb)};g.gc=function(){return null};g.Ba=function(){return"line"};g.De=function(a){lI(this,a);this.nf(a)};
g.Ee=function(a){this.b.stroke(cH(this,!1,a),2);this.b.fill(null)};g.vz=function(a){var b=this.S||mr(0,0,0,0);a=a.clientX;var c;c=b.left+Qm(this.A().ia().A()).x;b=(a-c)/b.width;b=this.$().Wb(b);b=this.data().Dk("x",b);0>b&&(b=NaN);return b};g.m=function(){var a=pI.o.m.call(this);a.connectMissingPoints=this.dA();return a};g.N=function(a){pI.o.N.call(this,a);this.dA(a.connectMissingPoints)};pI.prototype.connectMissingPoints=pI.prototype.dA;pI.prototype.stroke=pI.prototype.stroke;
pI.prototype.hoverStroke=pI.prototype.bc;pI.prototype.selectStroke=pI.prototype.kd;function qI(a,b){hI.call(this,a,b);this.b=new hC;this.b.Qd($w);this.b.size(10);this.b.anchor("center");this.b.offsetX(0);this.b.offsetY(0);this.b.rotation(0);this.b.Ca(this);this.b.zIndex(1);N(this,this.b);this.ua=new hC;N(this,this.b);this.G=new hC;N(this,this.G);this.ya=this.Sa=NaN}D(qI,hI);iI.marker=qI;g=qI.prototype;g.Gf=function(a){this.Ja=a};g.qe=function(){return!0};g.type=function(a){return m(a)?(w(a)||(a=hd(a)),this.Jc!=a&&(this.Jc=a,G(this,I,J|64)),this):this.Jc||this.Ja};
g.Vr=function(a){return m(a)?(w(a)||(a=hd(a)),this.wb!=a&&(this.wb=a),this):this.wb};g.Wr=function(a){return m(a)?(w(a)||(a=hd(a)),this.C!=a&&(this.C=a),this):this.C};g.size=function(a){return m(a)?(this.Sa!=a&&(this.Sa=a,G(this,I,J)),this):this.Sa};g.eA=function(a){return m(a)?(this.ya!=a&&(this.ya=a),this):this.ya};g.fA=function(a){return m(a)?(this.w!=a&&(this.w=a),this):this.w};
g.$a=function(){qI.o.$a.call(this);if(this.yc&&this.enabled()){K(this.b);W(this,256)&&this.b.clear();W(this,8)&&(this.c.zIndex(this.zIndex()),V(this,8));var a,b;W(this,4)&&(this.clip()&&(ia(this.clip())?(a=this.S,b=this.Me(),a=b.Bf(a)):a=this.clip(),this.c.clip(a)),V(this,4));W(this,I)&&(this.b.fill(dH(this,!1,Nb)),this.b.stroke(cH(this,!1,Nb)),this.b.type(this.type()),this.b.size(this.Sa),this.ua.fill(dH(this,!1,zb)),this.ua.stroke(cH(this,!1,zb)),this.ua.type(this.wb),this.ua.size(this.ya),this.G.fill(dH(this,
!1,Ab)),this.G.stroke(cH(this,!1,Ab)),this.G.type(this.C),this.G.size(this.w));W(this,2)&&(this.c.parent(this.A()),this.b.A(this.c),this.h&&this.h.A(this.c));if(W(this,32)){a=this.gc(!1,Nb);b=this.gc(!1,zb);var c=this.gc(!1,Ab);rI(this,!(Yw(a)&&Yw(b)&&Yw(c)))}}};g.cw=function(a){a|=this.state.Gc();var b=jI(this);if(!b)return!1;if(W(this,I)){var c=b[0],b=b[1];this.J().j("x",c).j("value",b);sI(this,a)}W(this,32)&&tI(this,a);return!0};
function rI(a,b){!a.h&&b&&(a.h=new hC,a.h.A(a.c),a.h.zIndex(2),a.h.lb(!0))}g.fc=function(){this.yc&&this.enabled()&&(this.b.K(),this.b.O(!1));W(this,32)&&this.h&&(this.h.K(),this.h.O(!1));this.enabled()&&V(this,10);qI.o.fc.call(this)};g.De=function(a){sI(this,a,!0);tI(this,a);this.nf(a)};g.Ee=function(a){sI(this,a,!0);tI(this,a)};g.Xc=function(){var a=this.J();return{value:{x:a.j("x"),y:a.j("value")}}};
function sI(a,b,c){var d=a.J(),e=d.get("type"),f=d.get("markerSize"),h=dH(a,!0,Nb),k=cH(a,!0,Nb),l=d.get("hoverType"),n=d.get("hoverMarkerSize"),p=dH(a,!0,zb),q=cH(a,!0,zb),r=a.J().get("selectType"),v=a.J().get("selectMarkerSize"),x=dH(a,!0,Ab),y=cH(a,!0,Ab),d=!!(b&Ab);b=!d&&!!(b&zb);d=d?a.G:b?a.ua:a.b;e={type:e,size:f,fill:h,stroke:k};l={type:l,size:n,fill:p,stroke:q};r={type:r,size:v,fill:x,stroke:y};x=a.J().U();v=a.Xc("center");a=kC(a.b,x)||a.b.add(v,x);a.ee();nC(a,d);a.Yd(e,b?l:r);a.Gb(v);c&&
a.K()}function tI(a,b){if(!a.h){var c=a.gc(!0,b);rI(a,!Yw(c))}if(a.h){var c=a.J(),d=c.U(),e=c.get("type"),f=c.get("markerSize"),h=c.get("hoverType"),k=c.get("hoverMarkerSize"),l=a.J().get("selectType"),n=a.J().get("selectMarkerSize"),p=!!(b&Ab),c=!p&&!!(b&zb),p=p?a.G:c?a.ua:a.b,d=a.h.add(a.Xc("center"),d),e={type:e,size:f,fill:a.gc(!0,b),stroke:null},h={type:h,size:k,fill:a.gc(!0,b),stroke:null},l={type:l,size:n,fill:a.gc(!0,b),stroke:null};d.ee();lC(d,a.b);nC(d,p);d.Yd(e,c?h:l);d.K()}}g.Ba=function(){return"marker"};
g.m=function(){var a=qI.o.m.call(this);w(this.type())?L(8,null,["Marker type"]):a.type=this.type();w(this.Vr())?L(8,null,["Marker hoverType"]):m(this.Vr())&&(a.hoverType=this.Vr());w(this.Wr())?L(8,null,["Marker selectType"]):m(this.Wr())&&(a.selectType=this.Wr());a.size=this.size();a.hoverSize=this.eA();a.selectSize=this.fA();return a};g.N=function(a){qI.o.N.call(this,a);this.size(a.size);this.eA(a.hoverSize);this.fA(a.hoverSize);this.type(a.type);this.Vr(a.hoverType);this.Wr(a.hoverType)};
qI.prototype.stroke=qI.prototype.stroke;qI.prototype.hoverStroke=qI.prototype.bc;qI.prototype.selectStroke=qI.prototype.kd;qI.prototype.fill=qI.prototype.fill;qI.prototype.hoverFill=qI.prototype.tc;qI.prototype.selectFill=qI.prototype.Cd;qI.prototype.size=qI.prototype.size;qI.prototype.hoverSize=qI.prototype.eA;qI.prototype.selectSize=qI.prototype.fA;qI.prototype.type=qI.prototype.type;qI.prototype.hoverType=qI.prototype.Vr;qI.prototype.selectType=qI.prototype.Wr;qI.prototype.hatchFill=qI.prototype.bb;
qI.prototype.hoverHatchFill=qI.prototype.ac;qI.prototype.selectHatchFill=qI.prototype.Nc;function uI(){zy.call(this);this.Pa=this.Ra=NaN;this.Y=!1;this.ka.push("autoRotate")}D(uI,zy);g=uI.prototype;g.Pc=function(a){return m(a)?(a=F(a),this.Ra!=a&&(this.Ra=a,G(this,4,J|8)),this):this.Ra};g.Ic=function(a){return m(a)?(a=F(a),this.Pa!=a&&(this.Pa=a,G(this,4,J|8)),this):this.Pa};g.wj=function(a){return m(a)?(a=F(a),this.la!=a&&(this.la=a,G(this,4,J|8)),this):this.la};g.gb=function(a){return m(a)?(a=null===a?a:sj(F(a)||0),this.ob!=a&&(this.ob=a,G(this,4,J|8)),this):this.ob};
g.ld=function(a){return m(a)?(a=null===a?a:oc(F(a)||0,-360,360),this.B!=a&&(this.B=a,G(this,4,J|8)),this):this.B};g.Bg=function(a){return m(a)?(a=!!a,this.Y!==a&&(this.Y=a,G(this,4,J|8)),this.g.autoRotate=!0,this):this.Y};
g.BJ=function(a,b,c,d){var e,f,h,k=new O(0,0,0,0),l,n,p,q;this.c?this.c.clear():this.c=new vI;a instanceof vI?(this.c.D(a.m()),e=a.Oe(),q=b||a.Gb()||{value:{angle:0,radius:0}}):(e=a,q=b||{value:{angle:0,radius:0}});this.c.Yd(c);l=m(this.c.Dd())?this.c.Dd():this.Dd();if(a=this.R())n=a.width,p=a.height;var r=c&&c.padding?this.c.padding():this.padding(),v=this.c.width()||this.width(),x=this.c.height()||this.height(),y=this.c.offsetY()||this.offsetY();m(y)||(y=0);b=this.c.offsetX()||this.offsetX();m(b)||
(b=0);c=this.c.anchor()||this.anchor();this.v||(this.v=Ft());d=RF(this,this.Nb(),e,d);this.v.width(null);this.v.height(null);l?this.v.htmlText(null!=d?String(d):null):this.v.text(null!=d?String(d):null);this.dd(this.v,!0);this.c.dd(this.v,!1);l=null!==v;d=null!==x;e=this.v.wa();l?(v=Math.ceil(T(v,n)),f=r.Df(v),k.width=v):(v=e.width,k.width=r.Kf(v));m(f)&&this.v.width(f);e=this.v.wa();d?(f=Math.ceil(T(x,p)),h=r.Cf(f),k.height=f):(f=e.height,k.height=r.Jf(f));m(h)&&this.v.height(h);q=Sg(this.Qd().call(q,
q));h=q.angle;f=q.radius;q=m(q.radiusY)?q.radiusY:f;x=r=0;if(a||!isNaN(this.Pc())&&!isNaN(this.Ic()))r=a.left,x=a.top,r=isNaN(this.Pc())?r+n/2:this.Pc(),x=isNaN(this.Ic())?x+p/2:this.Ic(),v=null!=this.ld()?this.ld():360,n=m(this.wj())&&!isNaN(this.wj())?T(y,this.wj()):a?T(y,Math.min(n,p)/2):0,h+=T(b,v),f+=n,q+=n;n=r+tj(h,f);p=x+uj(h,q);c=Sw(new O(0,0,k.width,k.height),c);n-=c.x;p-=c.y;k.left=n;k.top=p;return k};g.BB=function(){return new vI};
g.m=function(){var a=uI.o.m.call(this);this.g.autoRotate&&(a.autoRotate=this.Bg());return a};g.N=function(a){uI.o.N.call(this,a);this.Bg(a.autoRotate)};function vI(){QF.call(this)}D(vI,QF);vI.prototype.Bg=function(a){return m(a)?(a=!!a,this.a.Bg!==a&&(this.a.Bg=a,G(this,I,J|8)),this):this.a.Bg};
vI.prototype.nH=function(a,b){var c=this.c.positionFormatter,d=this.c.anchor,e=this.c.offsetX||0,f=this.c.offsetY||0,h=PF(this),k=this.Gb(),l=Sg(c.call(k,k)),c=l.angle,k=l.radius,l=m(l.radiusY)?l.radiusY:k,n=0,p=0;if(b||!isNaN(h.Pc())&&!isNaN(h.Ic()))var n=b.left,p=b.top,q=b.width,r=b.height,n=isNaN(h.Pc())?n+q/2:h.Pc(),p=isNaN(h.Ic())?p+r/2:h.Ic(),v=null!=h.ld()?h.ld():360,f=m(h.wj())&&!isNaN(h.wj())?T(f,h.wj()):b?T(f,Math.min(q,r)/2):0,c=c+T(e,v),k=k+f,l=l+f;e=n+tj(c,k);f=p+uj(c,l);d=Sw(new O(0,
0,a.width,a.height),d);e-=d.x;f-=d.y;this.v+=e;this.l+=f;a.left=e;a.top=f;d=this.c.rotation;this.c.rotation=this.c.autoRotate?0c?d+c+270:d+c+90:d;this.b.x(this.v).y(this.l)};vI.prototype.m=function(){var a=vI.o.m.call(this);m(this.Bg())&&(a.autoRotate=this.Bg());return a};vI.prototype.N=function(a){vI.o.N.call(this,a);this.Bg(a.autoRotate)};uI.prototype.autoRotate=uI.prototype.Bg;vI.prototype.autoRotate=vI.prototype.Bg;function wI(a,b){Y.call(this);this.a=[];this.b=xb(b,4);this.c=xb(a,5);this.g=0;this.w=[];this.B=[];this.l=[];this.I=[];this.C=[];this.h={fill:"none",cellBorder:"black",topPadding:0,rightPadding:0,bottomPadding:0,leftPadding:0,hAlign:"start",vAlign:"top",enabled:!0};this.h.fill="#fff"}D(wI,aD);g=wI.prototype;g.ja=aD.prototype.ja;g.aa=aD.prototype.aa|96|Zv|256|Lb|1024;g.Zf=null;g.$i=null;g.rv=null;g.Jk=null;g.Pk=null;g.aj=null;g.wp=null;g.xH=null;g.yH=null;g.AH=null;g.fh=null;g.Tg=null;g.yj=null;
g.xj=null;g.ej=null;g.dj=null;g.Wv=null;g.Yv=null;g.Xv=null;g.Uv=null;g.Tv=null;g.Sv=null;g.YK=function(a){return m(a)?(a=xb(a,this.c),this.c!=a&&(isNaN(this.g)&&(this.g=this.b),this.c=a,G(this,1088,J)),this):this.c};g.rI=function(a){return m(a)?(a=xb(a,this.b),this.b!=a&&(isNaN(this.g)&&(this.g=this.b),this.b=a,G(this,1088,J)),this):this.b};g.$o=function(a,b){xI(this);a=xb(a,NaN,!0);b=xb(b,NaN,!0);return this.a[a*this.b+b]||null};
g.Ol=function(a){xI(this);a=xb(a,NaN,!0);if(isNaN(a)||a>=this.c)return null;this.fh||(this.fh=[]);a in this.fh||(this.fh[a]=new Fy(this,a));return this.fh[a]};g.zH=function(a){xI(this);a=xb(a,NaN,!0);if(isNaN(a)||a>=this.b)return null;this.Tg||(this.Tg=[]);a in this.Tg||(this.Tg[a]=new By(this,a));return this.Tg[a]};g.rW=function(a){return m(a)?(this.Wv!=a&&(this.Wv=a,G(this,32,J)),this):this.Wv};g.tW=function(a){return m(a)?(this.Yv!=a&&(this.Yv=a,G(this,32,J)),this):this.Yv};
g.sW=function(a){return m(a)?(this.Xv!=a&&(this.Xv=a,G(this,32,J)),this):this.Xv};g.qT=function(a){return m(a)?(this.Uv!=a&&(this.Uv=a,G(this,32,J)),this):this.Uv};g.pT=function(a){return m(a)?(this.Tv!=a&&(this.Tv=a,G(this,32,J)),this):this.Tv};g.oT=function(a){return m(a)?(this.Sv!=a&&(this.Sv=a,G(this,32,J)),this):this.Sv};
g.eS=function(a,b,c,d,e){if(m(a)){null===a||(a=vc.apply(null,arguments));K(this);this.qa("border",a,Zv);for(var f=0;4>f;f++)this.qa(Yv[f],null,Zv);this.O(!0);return this}return this.xH||(this.xH=new Wv(this,!1))};
g.sT=function(a,b){var c,d,e,f;if(m(a)){d=!t(a);var h=0,k;if(!d)for(k=a.length,c=0;ch&&(h=f.length);else{d=!0;break}if(!d&&k&&h){K(this);this.YK(k);this.rI(h);if(b)for(c=0;ce;)for(d=Math.min(this.b,f+k.Rm());d-- >f;)this.a[c*this.b+d].a=h;k.a=NaN}}V(this,
64);G(this,Zv|256|Lb)}if(W(this,256)){this.aj||(this.aj=[]);if(this.Pk)for(var l in this.Pk)c=this.Pk[l],c.clear(),c.parent(null),this.aj.push(c),delete this.Pk[l];else this.Pk={};for(l=0;lf;f++)this.qa(Xv[f],null,Zv);this.O(!0);return this}return this.yH||(this.yH=new Wv(this,!0))};
g.hS=function(a,b,c,d){if(m(a)){var e,f,h,k,l;t(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:A(a)?(e=Kb(a.top)||0,f=Kb(a.right)||0,h=Kb(a.bottom)||0,k=Kb(a.left)||0):1==l?k=h=f=e=Kb(a)||0:2==l?(h=e=Kb(a)||0,k=f=Kb(b)||0):3==l?(e=Kb(a)||0,k=f=Kb(b)||0,h=Kb(c)||0):4<=l&&(e=Kb(a)||0,f=Kb(b)||0,h=Kb(c)||0,k=Kb(d)||0);K(this);this.qa(Jb[0],e,Lb);this.qa(Jb[1],f,Lb);this.qa(Jb[2],h,Lb);this.qa(Jb[3],k,Lb);this.O(!0);return this}return this.AH||(this.AH=new Ib(this))};
function xI(a){if(W(a,1024)){var b=[],c=a.g?a.a.length/a.g:0,d,e,f=Math.min(c,a.c),h=Math.min(a.g,a.b);for(d=0;db){x-=E[n];H++;delete ea[n];d=!0;break}}else{if(n in z&&z[n]>b){x+=ea[n]=z[n];H--;d=!0;break}if(n in E&&E[n]b){var d=a;a=b;b=d}c=xb(c,9,!1);return{Ds:JI(a),Gt:JI(b),Et:JI(c),Cs:a,Px:b,Mx:c,zp:NaN,Sn:NaN,Ft:NaN,dispose:function(){this.Ds.clear();this.Gt.clear();this.Et.clear()}}}function QI(a){a.Ds.clear();a.Gt.clear();a.Et.clear();a.zp=NaN;a.Sn=NaN;a.Ft=NaN}
function RI(a,b){var c=F(a.get("value"));if(!isNaN(c)&&(b.Ds.zl(c),b.Gt.zl(c),b.Ds.a==b.Cs&&(b.zp=SI(b.zp,b.Ds,b.Cs)),b.Gt.a==b.Px&&(b.Sn=SI(b.Sn,b.Gt,b.Px)),isNaN(b.Sn)||isNaN(b.Cs)||b.Et.zl(b.zp-b.Sn),b.Et.a==b.Mx)){b.Ft=SI(b.Ft,b.Et,b.Mx);a.set("macdResult",b.zp-b.Sn);a.set("signalResult",b.Ft);a.set("histogramResult",b.zp-b.Sn-b.Ft);return}a.set("macdResult",NaN);a.set("signalResult",NaN);a.set("histogramResult",NaN)}
function SI(a,b,c){if(isNaN(a)){for(var d=a=0;dc?f+=d-c:dc?b.gm+=d-c:d=c&&0=f&&0=c&&0this.c.length||0==this.a)return null;if(m(b))return this.b[a]=b,this.ea(2),this;a>this.a-1&&(a=this.a-1);0>a&&(a=0);var c=this.b[a];return c?c:null};
function nJ(a){if(a.c&&0!=a.a){var b=[],c=t(a.c)?a.c:a.c.keys;if(t(c)&&0!=c.length){isNaN(a.a)&&(a.a=c.length);for(var d=1/(c.length-1),e,f=0;f=b[h].offset&&(c=b[h]),e<=b[h].offset&&null==
d&&(d=b[h]);c||(c=b[0]);d||(d=b[b.length-1]);d.offset==c.offset?a.b[f]={color:c.color}:(e=1-(e-c.offset)/(d.offset-c.offset),a.b[f]={color:zj(Fj(Bj(c.color),Bj(d.color),e))})}}}}g.m=function(){var a=mJ.o.m.call(this);a.type="range";for(var b=[],c=0;cb.width&&(b.width=0);0>b.height&&(b.height=0);a.Oc.fx=!isNaN(c)&&isFinite(c)?c:0;a.Oc.fy=!isNaN(d)&&isFinite(d)?d:0;a.Oc.mode=b;
K(a.labels()).Pc(a.Ra).Ic(a.Pa).wj(a.c).gb(a.ob).ld(360).R(a.yd).O(!1);a.qb().R(a.yd)}g.ym=function(a,b){var c;c=this.J().U();var d;u(a)&&"aquastyle"==a?(c={aquaStyleObj:this.Oc,sourceColor:this.io().pf(c)},c=this.yh.call(c)):w(a)?(d=1=k:!1:4==
n?4==l?p>=k:!0:!1);if(p){k=Zq(Math.cos(Na(d)),7);l=Zq(Math.cos(Na(e)),7);n=FJ(k,Math.sin(Na(d)));var q=FJ(l,Math.sin(Na(e)));p=[];if(1==n)switch(q){case 1:k>=l?p.push({start:d,end:e}):(p.push({start:d,end:180,bh:!0}),p.push({start:360,end:e}));break;case 2:p.push({start:d,end:e,bh:!0});break;case 3:case 4:p.push({start:d,end:180,bh:!0})}else if(2==n)switch(q){case 1:p.push({start:d,end:180});p.push({start:360,end:e});break;case 2:k>=l?p.push({start:d,end:e}):(p.push({start:d,end:180}),p.push({start:360,
end:e,bh:!0}));break;case 3:case 4:p.push({start:d,end:180})}else if(3==n)switch(q){case 1:p.push({start:360,end:e});break;case 2:p.push({start:360,end:e,bh:!0});break;case 3:k>=l&&p.push({start:0,end:180,bh:!0})}else if(4==n)switch(q){case 1:p.push({start:360,end:e});break;case 2:p.push({start:360,end:e,bh:!0});break;case 3:p.push({start:360,end:180,bh:!0});break;case 4:k>=l&&p.push({start:0,end:180,bh:!0})}k=a.ba.length;l=p.length;a.ba.length=k+l;for(n=0;n=l?(p.push({start:d,end:360}),p.push({start:180,end:e})):p.push({start:d,end:e});break;case 4:p.push({start:d,end:e,bh:!0})}else if(4==n)switch(q){case 1:case 2:p.push({start:d,end:360});break;case 3:p.push({start:d,end:360});p.push({start:180,end:e});break;case 4:k>=
l?(p.push({start:d,end:360}),p.push({start:180,end:e})):p.push({start:d,end:e})}k=a.ba.length;l=p.length;a.ba.length=k+l;for(n=0;nk&&(k=0);0>e&&(e=0);if(k=e?360==Math.abs(b)?c.Bc(f,h,k,.45*k,l,b,!1):c.moveTo(f,h).Bc(f,h,k,.45*k,l,b,!0).close():(n=360>Math.abs(b),c.Bc(f,h,k,.45*k,l,b).Bc(f,h,e,.45*e,l+b,-b,n),n&&c.close());JJ(a,"topPath",d);break;case "front":var e=f,
f=h,p=b.start,n=b.end,q=b.Ut;b="frontPath"+p;c=IJ(a,b,c);h=.45*k;l=.2*a.c;n=a&&0<=b?2:0>=a&&0>b?3:4}
function KJ(a,b,c,d,e,f,h,k,l){var n=Na(h);h=.2*a.c;var p=c+f*Math.cos(n);c+=e*Math.cos(n);f=d+.45*f*Math.sin(n);d+=.45*e*Math.sin(n);l=IJ(a,b,l);l.moveTo(p,f);l.lineTo(c,d);l.lineTo(c,d+h);l.lineTo(p,f+h);l.lineTo(p,f);l.close();JJ(a,b,k)}function HJ(a,b){bv||270b.U()?1:a.U()b.U()?1:a.U()h&&(d=h,a.y=h-a.height);0!=a.labels.length&&(c=OJ(a.a,a.labels[0]).height,a.y+cR&&(R+=Math.abs(v-e)-R);R=E*Math.sqrt(Math.pow(R,2)-Math.pow(v-e,2))/R;E=f+(a.g?1:-1)*Math.abs(R);y=f+y*Math.cos(r);z=e+z*Math.sin(r);x=f+x*Math.cos(r);r=e+Q*Math.sin(r);r=Oa(Math.acos(Math.sqrt(Math.pow(y-x,2)+Math.pow(z-r,2)).toFixed(3)/Math.sqrt(Math.pow(y-E,2)+Math.pow(z-v,2)).toFixed(3)));if(r>a.H||isNaN(a.H)||0>R)a.H=0>R?Number.POSITIVE_INFINITY:r,a.l=b,a.v=l;if(r>k||0>R)a.$c=!0;b=E+q;q=a.g?b:b-c.width;a.x=
isNaN(a.x)?q:a.x>q?q:a.x;q=a.g?b+c.width:b;a.width=isNaN(a.width)?q:a.widthv?r=Oa(Math.atan(v/b))+360:0>b?r=Oa(Math.atan(v/b))+180:0==b&&0v&&(r=270);r-=H;a.b.push(r,q,M);d-=c.height/2+p/2}a.width-=a.x}
RJ.prototype.Za=function(){UJ(this);if(this.$c){var a=this.l,b=this.v;isNaN(b)||(a.enabled(!1),this.Wg||(this.Wg=[]),this.Wg.push(a),$b(this.labels,b,1));var c=this.a,a=this.labels,d=this.h,e,f,h,k,l=d[d.length-1];if(l!=this){var n=null,b=a.slice(),p=d.length,q=!1;e=0;for(f=a.length;ethis.w&&(this.w=5);this.Ta=a;var c=0,d,e,f=b.jb()-F(this.M.count),h=Zq(this.se/a.height*100,2);for(b.reset();b.advance();){d=b.get("value");e=cK(d);d=cK(d)?0:F(d);var k=Zq(d/F(this.M.sum)*100,2);e&&(k=h);e=Zq(a.height/(100+f*h)*k,2);0==e&&(e=this.Jc);b.j("value",d);b.j("height",
e);b.j("startY",c);c+=e;dK(this)}for(b.reset();b.advance();)c=b.U(),b.get("selected")&&Xb(this.state,Ab,c),eK(this);if(this.ha)for(var l in this.ha)this.ha.hasOwnProperty(l)&&this.ha[l].stroke(this.ra);G(this,2048);G(this,4096);V(this,I)}if(W(this,4096)){this.ca().A()||this.da.A(this.h);this.ca().clear();for(b.reset();b.advance();)fK(this,this.state.a|Vb(this.state,b.U()));this.ca().K();V(this,4096)}if(W(this,2048)){this.labels().A()||this.ma.A(this.h);this.labels().clear();this.la&&this.la.clear();
l=gK(this)?nw().pie.insideLabels:nw().pie.outsideLabels;this.labels().We(l.autoColor);this.labels().lb(l.disablePointerEvents);gK(this)||(this.w=T(this.wb,(a.width-this.Sa)/2),0>this.w&&(this.w=5),this.la?this.la.clear():(this.la=new cu(function(){return nt()},function(a){a.clear()}),N(this,this.la),this.la.parent(this.h),this.la.zIndex(32)),this.la.clip(a),this.ha=[]);for(b.reset();b.advance();)gK(this)&&b.j("labelWidthForced",void 0),hK(this,this.state.a|Vb(this.state,b.U()));iK(this);this.labels().K();
this.labels().hd().clip(a);V(this,2048)}}};function jK(a,b){var c=a.Sa,d=a.Ta.height,e=a.If,f=a.vd;return b>d-f||d==f?e:e+(d-f-b)/(d-f)*(c-e)}function cK(a){a=F(a);return 0>=a||!(isFinite(a)&&!isNaN(a))}
function kK(a){var b=a.J(),c=b.U(),d=a.Ta,e,f,h,k,l,n;e=b.j("height")/2;k=b.j("startY");l=b.j("height")+k;n=null;if(f=a.se)0==c?(l-=f/2,ll&&(k=l-a.Jc)):(k+=f/2,l-=f/2,k>l&&(k=b.j("startY")+e,l=k+a.Jc));h=jK(a,k);c=a.c-h/2;e=c+h;h=jK(a,l);f=a.c-h/2;h=f+h;k=k+d.top;l=l+d.top;c=d.left+c;e=d.left+e;0a.yd&&(n=l,l=a.yd,h=jK(a,l),f=a.c-h/2,h=f+h);f=d.left+f;h=d.left+h;a.W||(k=d.height-(k-d.top)+d.top,l=d.height-(l-d.top)+d.top,n=n?d.height-(n-d.top)+d.top:
null,k=[l,l=k][0],c=[f,f=c][0],e=[h,h=e][0]);b.j("x1",c);b.j("x2",e);b.j("x3",f);b.j("x4",h);b.j("y1",k);b.j("y2",l);b.j("y3",n)}
function eK(a){var b=a.J(),c=b.U(),d=du(a.G),e=du(a.Y);b.j("point",d);b.j("hatchPoint",e);kK(a);var f=b.j("x1"),h=b.j("x2"),k=b.j("x3"),l=b.j("x4"),n=b.j("y1"),p=b.j("y2"),q=b.j("y3");d.moveTo(f,n).lineTo(h,n);q?d.lineTo(l,p).lineTo(l,q).lineTo(k,q).lineTo(k,p):d.lineTo(l,p).lineTo(k,p);d.close();b.j("point",d);d.tag={index:c,T:a};b=Vb(a.state,b.U());XJ(a,b);e&&(e.Qc(d.m()),e.tag={index:c,T:a},aK(a,b))}
g.Ue=function(a){a={type:a.type,target:this,relatedTarget:sA(a.relatedTarget)||a.relatedTarget,domTarget:a.target,relatedDomTarget:a.relatedTarget,offsetX:a.offsetX,offsetY:a.offsetY,clientX:a.clientX,clientY:a.clientY,screenX:a.screenX,screenY:a.screenY,button:a.button,keyCode:a.keyCode,charCode:a.charCode,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKey:a.shiftKey,metaKey:a.metaKey,platformModifierKey:a.platformModifierKey,state:a.state};var b=Lw(a.domTarget);a.pointIndex=F(b.index);return a};
g.xf=function(a){(a=this.Ve(a))&&this.dispatchEvent(a)};
g.Ve=function(a){var b;"pointIndex"in a?b=a.pointIndex:"labelIndex"in a?b=a.labelIndex:"markerIndex"in a&&(b=a.markerIndex);b=F(b);a.pointIndex=b;var c=a.type;switch(c){case "mouseout":c="pointmouseout";break;case "mouseover":c="pointmouseover";break;case "mousemove":c="pointmousemove";break;case "mousedown":c="pointmousedown";break;case "mouseup":c="pointmouseup";break;case "click":c="pointclick";break;case "dblclick":c="pointdblclick";break;default:return null}var d=this.data().J();d.select(b)||
d.reset();return{type:c,actualTarget:a.target,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a,point:this.Ud(b)}};g.Ud=function(a){return new wb(this,a)};g.Di=function(){"bySpot"!=this.vc().Jb()&&this.vc().Jb();return[]};g.dg=function(a){m(a)?this.Gg(a):this.enabled()&&(Xb(this.state,zb),iK(this,null));return this};
g.bd=function(a){var b;(b=Ub(this.state,zb))||(b=!!(this.state.Gc()&zb));if(b&&this.enabled()){var c;m(a)?c=a:c=this.state.a==Nb?NaN:void 0;dc(this.state,zb,c);a=this.J();for(a.reset();a.advance();)hK(this,Vb(this.state,a.U()));iK(this);lK(this)}};
g.Gg=function(a,b){if(!this.enabled())return this;var c;if(t(a)){c=ec(this.state,zb);for(var d=0;dl&&("leftCenter"==h||"center"==h||"rightCenter"==h)&&(p+c.height/2>f.top+f.height&&
(p=f.top+f.height-c.height/2),p-c.height/2=e.height){c=new rK(a);for(f=0;fd&&(d=f+5-d,d>k?(a.c+=k,d=a.c-h/2,d=c.left+d,b.j("labelWidthForced",d-5-e)):a.c+=d):ek?(a.c+=k,d=a.c-h/2,a=d-a.w,10>a&&(a=10),b.j("labelWidthForced",
a)):a.c+=d);else if(CK(a))if(d=a.c+h/2,d+=c.left,k=a.Sa/2,k=c.width-(c.width-a.c)-k,AK(a)){if(0>e||e-5e||d>k?(a.c=a.c-k,d=a.c+h/2,d=d+c.left,b.j("labelWidthForced",f-5-d)):a.c=a.c-d}else f>c.left+c.width&&(d=f-(c.left+c.width),d>k?(a.c=a.c-k,a=c.left+c.width-e+k,10>a&&(a=10),b.j("labelWidthForced",a)):a.c=a.c-d)}}function oK(a){return wd(a.labels().position())}
function DK(a,b,c,d){var e=a.Ta,f=b.U(),f=a.data().j(f,"point").wa();b=pK(a,b,d);d=b.left;var h=b.top+b.height/2,k,f=f.top+f.height/2,l=qK(a,f);BK(a)?(d+=b.width,k=a.c-l/2,k=k+e.left,d>k&&5>Math.abs(f-h)&&(d=k-5)):CK(a)&&(k=a.c+l/2,k+=e.left,dMath.abs(f-h)&&(d=k+5));c.clear().moveTo(d,h).lineTo(k,f+.001)}function nK(a,b,c){var d=b.U();if(a.ha[d])DK(a,b,a.ha[d],c);else{var e=du(a.la);a.ha[d]=e;e.stroke(a.ra);DK(a,b,e,c)}}
g.ca=function(a){this.da||(this.da=new hC,U(this.da,this.MO,this),this.da.Ca(this),N(this,this.da));return m(a)?(!A(a)||"enabled"in a||(a.enabled=!0),this.da.D(a),this):this.da};g.hb=function(a){this.eb||(this.eb=new hC,N(this,this.eb));return m(a)?(!A(a)||"enabled"in a||(a.enabled=!0),this.eb.D(a),this):this.eb};g.xb=function(a){this.ib||(this.ib=new hC,N(this,this.ib));return m(a)?(!A(a)||"enabled"in a||(a.enabled=!0),this.ib.D(a),this):this.ib};g.MO=function(a){X(a,J)&&G(this,4096,J)};
g.Ad=function(){return YJ(this,!1,Nb)};g.Td=function(){return Mv(this.Ad())};
function EK(a,b){b=ad(b);var c=a.Ta,d=a.J(),e=d.j("point").wa(),f=d.j("x1"),h=d.j("y1");switch(b){case "leftTop":h=d.j("y1");f=d.j("x1");break;case "leftCenter":h+=e.height/2;d=qK(a,h);f=a.c-d/2;f=f+c.left;break;case "leftBottom":h+=e.height;f=d.j("x3");break;case "centerTop":f=a.c;f+=c.left;break;case "center":h+=e.height/2;f=a.c;f+=c.left;break;case "centerBottom":h+=e.height;f=a.c;f+=c.left;break;case "rightTop":d=qK(a,h);f+=d;break;case "rightCenter":h+=e.height/2;d=qK(a,h);f=a.c+d/2;f+=c.left;
break;case "rightBottom":f=d.j("x4"),h+=e.height}return{value:{x:f,y:h}}}function qK(a,b){var c=a.Ta;return a.W?jK(a,b-c.top):jK(a,c.height-b+c.top)}
function fK(a,b){var c=a.J(),d=!!(b&Ab),e=!d&&!!(b&zb),f=c.get("marker"),h=c.get("hoverMarker"),c=c.get("selectMarker"),k=a.J().U(),l;l=d?a.xb():e?a.hb():a.ca();var n=kC(a.ca(),k),p=f&&m(f.enabled)?f.enabled:null,q=h&&m(h.enabled)?h.enabled:null,r=c&&m(c.enabled)?c.enabled:null;if(e||d?e?null===q?fa(a.hb().enabled())?null===p?a.ca().enabled():p:a.hb().enabled():q:null===r?fa(a.xb().enabled())?null===p?a.ca().enabled():p:a.xb().enabled():r:null===p?a.ca().enabled():p){p=f&&f.position?f.position:null;
q=h&&h.position?h.position:null;r=c&&c.position?c.position:null;p=e&&(q||a.hb().position())||d&&(r||a.xb().position())||p||a.ca().position();p=EK(a,p);n?n.Gb(p):n=a.ca().add(p,k);var v={},p="position anchor offsetX offsetY type size fill stroke enabled".split(" ");f&&yh(p,function(a){a in f&&(v[a]=f[a])});p=f&&f.type;k=m(p)?p:a.ca().Ba()||a.rr().ng(k);p=h&&h.type;p=m(p)?p:a.hb().Ba();q=c&&c.type;q=m(q)?q:a.xb().Ba();v.type=d&&m(q)?q:e&&m(p)?p:k;k=f&&f.fill;k=m(k)?k:iC(a.ca())||a.Ad();p=h&&h.fill;
p=m(p)?p:iC(a.hb());q=c&&c.fill;q=m(q)?q:iC(a.xb());v.fill=d&&m(q)?q:e&&m(p)?p:k;k=f&&f.stroke;k=m(k)?k:jC(a.ca())||a.Td();p=h&&h.stroke;p=m(p)?p:jC(a.hb())||a.Td();q=c&&c.stroke;q=m(q)?q:jC(a.xb())||a.Td();v.stroke=d&&m(q)?q:e&&m(p)?p:k;n.ee();nC(n,l);n.Yd(v,e?h:c);n.K()}else n&&n.clear()}g.nb=function(a){this.Rb||(this.Rb=new fF,N(this,this.Rb),U(this.Rb,this.NO,this));return m(a)?(this.Rb.D(a),this):this.Rb};g.NO=function(){iF(this.nb())};
g.Cu=function(a){if(!a||a.target!=this.Wd()){var b=this.nb(),c=this.sc();b.yl()&&a?(b.show(c,new Nj(a.clientX,a.clientY)),this.ga("mousemove",this.Cu)):b.show(c,new Nj(0,0))}};function lK(a){var b=a.nb();b.yl()&&a.dc("mousemove",a.Cu);b.Cc()}
g.Za=function(){if(W(this,8192)){this.M={};for(var a=this.data().J(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),cK(b)?c++:(b=cK(b)?0:F(b),d=Math.min(b,d),e=Math.max(b,e),f+=b);var a=a.jb()-c,h;0==a?d=e=f=h=void 0:h=f/a;this.M.count=a;this.M.min=d;this.M.max=e;this.M.sum=f;this.M.average=h;V(this,8192)}};g.sc=function(a){if(!this.I||a)this.I=new me(this,["x","value","name"]);this.I.Te();return this.I};g.Vg=function(){return this.sc()};
g.vi=function(a,b){for(var c=[],d=this.J().reset(),e;d.advance();){d.get("x");e=d.U();var f=d.get("legendItem")||{},h=null;w(b)&&(h=this.sc(),h.$p=this.Ud(e),h=b.call(h,h));u(h)||(h=String(m(d.get("name"))?d.get("name"):d.get("x")));h={enabled:!0,meta:{pointIndex:e,pointValue:d.get("value"),T:this},iconType:"square",text:h,iconStroke:ZJ(this,Nb),iconFill:YJ(this,!0,Nb),iconHatchFill:this.gc(!0,Nb)};Ug(h,f);h.sourceUid=B(this);h.sourceKey=e;c.push(h)}return c};g.hk=function(){return!0};
g.wn=function(a,b){var c=a.vg();if(!a||null!=c||isNaN(c))if(c=Lw(b.domTarget))c.T=this};g.Ul=function(a,b){var c=a.vg();if(!a||null!=c||isNaN(c))if(c=Lw(b.domTarget))c.T=this};g.Tl=function(a,b){var c=a.vg();if(!a||null!=c||isNaN(c))if(c=Lw(b.domTarget))c.T=this};g.Ac=function(){return null};g.Jb=function(a){return m(a)?(a=Yc(a),a!=this.V&&(this.V=a),this):this.V};
g.m=function(){var a=WJ.o.m.call(this);a.type="pyramid";a.data=this.data().m();a.labels=this.labels().m();a.hoverLabels=this.qb().m();a.selectLabels=this.Yb().m();a.palette=this.sr().m();a.hatchFillPalette=this.wo().m();a.markerPalette=this.rr().m();a.tooltip=this.nb().m();a.markers=this.ca().m();a.hoverMarkers=this.hb().m();a.selectMarkers=this.xb().m();a.baseWidth=this.Ev();a.overlapMode=this.xo();a.pointsPadding=this.vx();a.connectorLength=this.Bu();w(this.connectorStroke)&&(w(this.qr())?L(8,null,
[this.Ba()+" connectorStroke"]):a.connectorStroke=S(this.qr()));w(this.fill)&&(w(this.fill())?L(8,null,[this.Ba()+" fill"]):a.fill=S(this.fill()));w(this.hoverFill)&&(w(this.tc())?L(8,null,[this.Ba()+" hoverFill"]):a.hoverFill=S(this.tc()));w(this.selectFill)&&(w(this.Cd())?L(8,null,[this.Ba()+" selectFill"]):a.selectFill=S(this.Cd()));w(this.stroke)&&(w(this.stroke())?L(8,null,[this.Ba()+" stroke"]):a.stroke=S(this.stroke()));w(this.hoverStroke)&&(w(this.bc())?L(8,null,[this.Ba()+" hoverStroke"]):
a.hoverStroke=S(this.bc()));w(this.selectStroke)&&(w(this.kd())?L(8,null,[this.Ba()+" selectStroke"]):a.selectStroke=S(this.kd()));w(this.hatchFill)&&(w(this.bb())?L(8,null,[this.Ba()+" hatchFill"]):a.hatchFill=S(this.bb()));w(this.hoverHatchFill)&&(w(this.ac())?L(8,null,[this.Ba()+" hoverHatchFill"]):a.hoverHatchFill=S(this.ac()));w(this.selectHatchFill)&&(w(this.Nc())?L(8,null,[this.Ba()+" selectHatchFill"]):a.selectHatchFill=S(this.Nc()));return a};
g.N=function(a){WJ.o.N.call(this,a);this.Ev(a.baseWidth);this.Bu(a.connectorLength);this.qr(a.connectorStroke);this.data(a.data);this.wo(a.hatchFillPalette);this.rr(a.markerPalette);this.fill(a.fill);this.tc(a.hoverFill);this.Cd(a.selectFill);this.bb(a.hatchFill);this.ac(a.hoverHatchFill);this.Nc(a.selectHatchFill);this.labels().D(a.labels);this.qb().D(a.hoverLabels);this.Yb().D(a.selectLabels);this.stroke(a.stroke);this.bc(a.hoverStroke);this.kd(a.selectStroke);this.ca().D(a.markers);this.hb().D(a.hoverMarkers);
this.xb().D(a.selectMarkers);this.xo(a.overlapMode);this.sr(a.palette);this.vx(a.pointsPadding);this.nb(a.tooltip)};function rK(a){this.a=a;this.labels=[]}function sK(a,b){a.labels.push(b);a.a.W?Yb(a.labels,function(a,b){return a.U()-b.U()}):Yb(a.labels,function(a,b){return b.U()-a.U()})}rK.prototype.clear=function(){this.labels.length=0};
function wK(a,b){if(2>a.labels.length)zK(a.a,a);else{var c,d=a.a.Ta,e=a.labels[0],f=a.labels[a.labels.length-1];c=a.a.state.Gc()|Vb(a.a.state,e.U());for(var h,k,l,n,p,q=FK(a,e,c),r=a.a.data().j(e.U(),"point").wa(),v=1,x=a.labels.length;vd.top+d.height&&(p=d.top+d.height-a.height);p