/* @license Copyright (C) Exontrol. All rights reserved. */ !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):(t="undefined"!=typeof globalThis?globalThis:t||self,o(t.exontrol||{}))}(this,function(t){"use strict";function o(){}function i(t,o){return t&&r(o)&&(t=""+t+""),t}function e(t){var o=t[0];t[0]=t[1],t[1]=o}function n(t,o,i,e){var n;o&&t&&((n=t.exontrol=t.exontrol||{}).ll1x=n.ll1x||0,n.ll1x++),i&&i.call(e),n&&--n.ll1x}function r(t){return null!=t}function s(t){return null==t}function a(t){return _o.EyR(t)}function l(t){return t instanceof Array}function u(t){return t instanceof Function}function h(t){return t instanceof Object}function c(t){return _o.IsS(t)}function p(t){return _o.N.IsN(t)}function f(t){return _o.N.IsInt(t)}function g(t){return l(t)?2:p(t)?1:0}function v(t,o,i){return t>=o&&t=0&&(t=V(t.toFixed(o))),t}function L(t,o,i){if(o=~~o){if(1==o)t=function(t){return l(t)&&(t=t[0]),O(t)}(t);else if(c(t)&&(t=t.split(Jo)),g(t)){l(t)||(t=[O(t)]);for(e=t.length;er)&&(r=i)}}),!e&&p(n)&&p(r)&&(n=y(n,0),r=d(r,0)),o=o||{},o.m=n,o.M=r,o}return i>1?function(t,o,i,e,n){var r=NaN,s=r;if(Dt(t,i,function(t){if(l(t)){if(l(r))for(o=0;o=T&&!((i-T)%b)&&u.set(h+Hi).push(O(Q(t,o,e),D))})),r(e.o.shapeChart)&&u.set(h+Zi).push(Ho.p(Ro(e,D),{s:l.toShape(e.o.shapeChart)})),u}function X(t,o,i,e,n,s,l,u,h){var c,p,f,g,v,S,m=l.getRS(),C=l.getMisc(),x=e.s,R=Se[x],A=Re[x],T=Zo[x].nfs,b=e.o,G=e.a.l,O=_(e,s,l),E=m.csz,L=O.l-E,M=V(C.showTicksIf,Ei),P=V(C.showLabelsIf,Mi),D=V(C.showGridLinesIf,Li),z=d(0,V(C.categoryAxisSize,fi)),F=d(0,V(C.categoryAxisPad,gi)),Y=b.majorTicks,X=d(0,w(Y&&Y.skip)),W=d(1,w(Y&&Y.step)),H=Yt(b,"labels",x),B=Yt(b,"title",x),N=G.length,Z=b==m.gdC().o,j=b.reverse&&!Z?-1:1,K=j<0&&!Z?N:d(m.l,N),Q=m.csz;if(u=u||new Ho,nt(e)&&(N&&!a(i)&&Vt(t,b.tfi,function(){if(!a(o)&&r(b.shape)&&u.set(h+Xi).push(Ho.p(o,{s:l.toShape(b.shape)})),u.set(h).push([q(O.i,o,O,x),q(O.i+L,o,O,x)]),v=O.s>M,S=O.s>P,v||S)for(var e=O.i,n=j<0?K-1-e:e,s=j<0?K-e:e,c=e+L;e<=c;e++,n+=j,s+=j){var p,f=q(e,o,O,x),g=U(f,R,z),d=n>=0&&nD){c=k(s),p=d(0,w(n.skip)),f=d(1,w(n.step)),g=Ce[x];for(var tt=O.i,ot=j<0?K-1-tt:tt,it=j<0?K-tt:tt,et=tt+L;tt<=et;tt++,ot+=j,it+=j)rt(it,p,f)&&u.set(h+Hi).push(g(q(tt,o,O,x),c))}return u}function W(t,o,i,e,n,r,s){var a=n.getRS().gdV(),l=Zt(n),u=l[o.s.GetIndex()%l.length];return r=r||new Ho,It(o).forEach(function(t){var l=[];t.forEach(function(t,r){l.push(Ho.p(function(t,o,i,e){var n=k(i),r=ji.R2C(n),s=Gt(V(e.getMisc().circularStartAngle,Ai)),a=Q(t[1],[[0,0],[0,n[3]/2]],o)[1];return lo(r,a,s+Gt(t[0]),!0)}(t,a,e,n),{i:r,s:o.s,iiV:t,v:t[1],b:u,r:i}))}),r.set(s).push(l)}),r}function H(t,o,i,e,n,s,a){var l=Zt(n),u=n.getAx(),h=u.x,c=u.y,p=i&&_o.Mrg(n.getRS().ooZ,{s:"l"}),f=o.s,g=l[f.GetIndex()%l.length];return s=s||new Ho,a=a||Wt(f),It(o).forEach(function(t){var o=[],n=V(i);t.forEach(function(t,s){r(i)&&p&&t.length>2&&(n=Q(t[2],[[0,0],[0,i]],p)[1]),o.push(Ho.p(function(t,o,i,e,n){var r=k(e);return[Q(t[0],r,o)[0],Q(t[1],r,i)[1]]}(t,h,c,e),{i:s,s:f,iiV:t,b:g,r:n}))}),s.set(a).push(o)}),s}function B(t,o,i){return t?i.gdV().o==o&&Ci:i.gdC().o==o&&No}function N(t,o,i,e,n){var r,s=i.getRS(),a=i.getAx(),l=o[t],u=a[t];if(l&&u)return r=Zo[t],l=l.slice(),xo(t,s)&&(l=_o.ORt(r.ext(l,o.c),-o.s.x,-o.s.y)),Dt(u,null,function(t){return e.call(n,t,r.next(l,t))})}function Z(t,o,i,e,n,r){var s,l,u=e.getRS(),h=i[o];return n=n||new Ho,s=l=xo(o,u)?Y:X,N(o,i,e,function(o,c){s(t,c,!a(c)&&h,o.oR,o.oR.o.majorGridLines||B(l,o.oR.o,u),i,e,n,r.n+(r.i||"")),r.i++}),n}function j(t,o,i){return i=i||[1,1],[ji.X(t)+ji.X(i)*ji.X(o),ji.Y(t)+ji.Y(i)*ji.Y(o)]}function K(t){return l(t)?t:[ji.X(t),ji.Y(t)]}function _(t,o,i){var e,n,r,s,a=i.getRS(),l=o.s,u=l.i,h=l.o,c=l.l,p=i.getMV().t,f=a.csz;return s=t.a.l.length,(e=i.getCategoryAxis()).length>1&&e[0]!=t.o&&(r=c*p,h=(u=w((n=u*p-h)/(p=(a.l-f)*p/(s-f))))*p-n,c=y(s-u,f+2+T(r/p))),{i:u,o:h,l:c,s:p}}function q(t,o,i,e){return U(z(o,xe[e])[0],Re[e],i.o+(t-i.i)*i.s)}function Q(t,o,i){function e(t){var o=l[u],i=l[1-u];return[o[0]+t*(i[0]-o[0]),o[1]+t*(i[1]-o[1])]}var n,r,s=F(i),a=i.o,l=2==o.length?o:z(o,ye[i.s]),u=a.reverse?1:0;return(a.start||a.end)&&(n=l[u].slice(),r=l[1-u].slice(),a.start&&(n=e(V(a.start))),a.end&&(r=e(V(a.end))),l[u]=n,l[1-u]=r),e((t-s.m)/(s.M-s.m))}function J(t,o,i,e){if(i){var n=F(i),r=Q(n.m,o,i)[e],s=Q(n.M,o,i)[e];if(t>=y(r,s)&&t=y(s,a)&&t=o&&!((t-o)%i)}function st(t){return!t||d(0,V(t.width,1))}function at(t,o,i,e){var n,s,a;o&&(r(o.color)&&(n=t.strokeStyle,t.strokeStyle=o.color),r(o.width)&&(s=t.lineWidth,t.lineWidth=o.width),r(o.style)&&(a=t.getLineDash(),t.setLineDash(l(o.style)?o.style:[o.style]))),st(o)&&i(e),o&&(a&&t.setLineDash(a),s&&(t.lineWidth=s),n&&(t.strokeStyle=n))}function lt(t,o,i,e){var n,s,a;o&&(r(o.frameColor)&&(n=t.strokeStyle,t.strokeStyle=o.frameColor),r(o.frameSize)&&(s=t.lineWidth,t.lineWidth=o.frameSize),r(o.frameDash)&&(a=t.getLineDash(),t.setLineDash(l(o.frameDash)?o.frameDash:[o.frameDash]))),To(t,o&&o.opacity,i,e),o&&(a&&t.setLineDash(a),s&&(t.lineWidth=s),n&&(t.strokeStyle=n))}function ut(t,o,i){if(o){var e=d(0,V((i=i||{}).width,1));e&&o.forEach(function(o){!function(o){t.drawShape(ji.C2R(o,2*e,2*e),{fillColor:i.color||"black",primitive:i.primitive||"Circle"})}(o)})}}function ht(t,o,i,e,n){n&&e&&(e.extby=(e.extby||0)+V(n.getMisc().valueLineExt,wi)),function(t,o,i,e){var n,a,l,u,h,c,p,f,g,v="C",d=32,y=[2,2],x=o;if(e=e||{},!(128&(g=m(e.flags,_o.Graph.ShowValueEnum,-1)))||(i=C(i))){if(i=4&g&&i,n=2&g&&e.to,l=2&g&&e.line,a=1&g&&e.point,u=4&g&&e.back,f=e.fit,l&&n&&i){var R,A=ji.X(n)-ji.X(o),T=ji.Y(n)-ji.Y(o);A||T?(e.extby&&(R=Gt(Lt(o,[[ji.X(o),-128]],n)),x=lo(o,e.extby,R),n=lo(n,e.extby,R)),s((l=_o.Cpy(l)).frameColor)&&(l.frameColor="black"),r(l.length)&&(d=V(l.length,0)),r(l.pad)&&(y=_o.pad2A(pad)),S(A)<8?v=T<0?"BC":"TC":d&&(v=A<0?"MR":"ML",c=[ji.X(n)+d*Math.sign(A),ji.Y(n)]),c?(p=c.slice())[0]+=y[0]*Math.sign(A):(p=n.slice())[1]+=y[1]*Math.sign(T)):l=null}else l=null;if(i){var b=t.sizeHTMLText(i,"noclip");if(!a||n&&(A||T)||(v="BC",(p=o.slice())[1]-=(a.size||0)/2+y[1],n=o),h=ji.C2R(p||l&&n||o,b.width,b.height,v),f){var w=h.slice();h=_o.FRt(h,f),_o.EqR(h,w)||(w=_o.PRt(h.slice(),y),n=ji.cL2R(w,o,c||n)||ji.cL2R(w,o,n)||ji.cL2R(w,o,ji.R2C(h)),c=null)}}l&&((l.pArg=l.pArg||{}).closed=!1,l.primitive=function(t,o){t.moveTo.apply(t,x),t.lineTo.apply(t,n),c&&t.lineTo.apply(t,c)},t.drawShape(_o.URt(ji.C2R(x,1,1),ji.C2R(c||n,1,1)),l)),a&&a.size&&t.drawShape(ji.C2R(o,a.size,a.size),a,o),i&&t.drawShape(po(h,u&&t),_o.Mrg({text:i,formatText:"noclip"},u))}}(t,o,i,e)}function ct(t,o,i){if(o){d(0,V((i=i||{}).width,1))&&at(t,i,function(){o.forEach(function(o){vt(t,o)})})}}function pt(t,o,i,e){o&&Vt(t,i,function(){o.forEach(function(o){!function(t,o,i,e){if(o){var n=t.sizeHTMLText(o,256);yt(t,ji.C2R(i,n.width,n.height),e,function(i){t.drawHTMLText(o,i,256)})}}(t,o.p.l,function(t){return e&&(l()||(e=C(e).split(",")),t=[ji.X(t)+V(e[0]),ji.Y(t)+V(e[1])]),t}(o),o.p.a)})})}function ft(t,o){o&&o.forEach(function(o){o.p&&o.p.s&&t.drawShape(o,o.p.s)})}function gt(t,o,i,e){o&&st(i)&&at(t,i,function(){o.forEach(function(o){e?vt(t,o,!0):(t.beginPath(),_o.D.P.Circle(t,o),t.stroke())})})}function vt(t,o,i,e){o&&o.length&&at(t,e,function(){t.beginPath(),_o.D.P.Polygon(t,null,o),i&&t.closePath(),t.stroke()})}function dt(t,o,i){if(o&&o.length){var e;r(i)&&(e=t.fillStyle,t.fillStyle=i),t.beginPath(),_o.D.P.Polygon(t,null,o),t.closePath(),t.fill(),r(e)&&(t.fillStyle=e)}}function yt(t,o,i,e,n){if(o&&e){var r,s=Gt(i);s&&(t.save(),t.translate.apply(t,r=ji.R2C(o)),t.rotate(s),o=[-o[2]/2,-o[3]/2,o[2],o[3]]),e.call(n,o,r),s&&t.restore()}}function St(t,o,i,e,n,r,s){1&(s=w(s,-1))&&ft(t,o.get(i+Zi)),2&s&&n&&st(n)&&ct(t,o.get(i+Hi),n),e&&nt(e)&&(32&s&&ft(t,o.get(i+Xi)),64&s&&ct(t,o.get(i),e.axisLine),128&s&&ct(t,o.get(i+Wi),e.majorTicks),r&&t.resClip(),256&s&&pt(t,o.get(i+Bi),e.tfi,e.offsetLabel),512&s&&pt(t,o.get(i+Ni),e.tfi),r&&t.selClip(r))}function mt(t,o,i,e,n,r,s,a){var l=G(s.getMisc().radarPolygonal,Ri);a=w(a,-1),n&&(2&a&>(t,o.get(i+Hi),n.o.majorGridLines||Ci,l),64&a&&ct(t,o.get(i),n.o.axisLine),128&a&&ut(t,o.get(i+Wi),n.o.majorTicks),256&a&&pt(t,o.get(i+Bi),n.o.tfi,n.o.offsetLabel),512&a&&pt(t,o.get(i+Ni),n.o.tfi)),r&&(2&a&&ct(t,o.get(e+Hi),r.o.majorGridLines||Ci),64&a&>(t,o.get(e),r.o.axisLine,l),128&a&&ut(t,o.get(e+Wi),r.o.majorTicks),256&a&&pt(t,o.get(e+Bi),r.o.tfi,r.o.offsetLabel),512&a&&pt(t,o.get(e+Ni),r.o.tfi))}function Ct(t,o,i,e,n,r,s){var a,l,u,h,p,f=e.getRS(),g=e.getAx()[o],v=k(i);g&&(a=i&&i[o],l=xo(o,f),e.getMV().t,e.getMisc(),u=V(s&&s.flags,-1),h=[],p=[],g.forEach(function(t){var i=t.oR.o,e=i.majorGridLines||B(l,i,f),n=c(r)?r:r.n+(r.i||"");h.push({n:n,a:i,x:l&&(i.start||i.end)&&_o.NRt(Ro(t.oR,Zo[o].ext(a,v)),a)}),(l||e)&&p.push({n:n,g:e,x:l&&(i.start||i.end)&&Ro(t.oR,v)}),!c(r)&&r.i++}),i.x&&t.selClip(i.x),p.forEach(function(o){o.x&&t.selClip(o.x),St(t,n,o.n,null,o.g,null,u&ai),o.x&&t.resClip()}),i.x&&t.resClip(),a&&t.selClip(a),h.forEach(function(o){o.x&&t.selClip(o.x),St(t,n,o.n,o.a,null,!o.x&&a,u&si),o.x&&t.resClip()}),a&&t.resClip())}function xt(t,o,i,e,n,r,s){var a={n:r||Ii,i:0},l={n:n||Fi,i:0};Ct(t,"l",o,i,e,l,s),Ct(t,"r",o,i,e,l,s),Ct(t,"t",o,i,e,a,s),Ct(t,"b",o,i,e,a,s)}function Rt(t,o,i){var e;return r(t)&&r(t[o])&&(e=t[o],u(t[o])&&(e=e.apply(t.thisArg,i))),e}function At(t,o,e,r,s,a,l){if(e){var u=w(a.getMisc().digits,ci);(r=_o.Cpy(r)||{frameColor:"black"}).primitive=r.primitive||"Polygon",r.pArg=r.pArg||{},r.pArg.closed=G(r.pArg.closed,!l||G(l.closed,!0)),n(t,G(l&&l.lock1PX,!0),function(){e.forEach(function(e){l&&l.group&&l.group(e);var n=e,h=Ao(a,s);1==s.getStyle()&&(n=ji.ToCR(n,null,r.pArg.tension,r.pArg.alpha,r.pArg.closed)),r.pArg.points=n,n.length>1&&t.drawShape(o,r,e),h&&e.forEach(function(o,n){if(o.p){var r=to(a,o.p.b),c=r&&r.size||0;ht(t,o,i(ao(o.p,s.getValueFormat(),u),o.p.b),{flags:h,point:r,line:io(a,o.p.b),back:no(a,o.p.b),to:Rt(l,"to",[o,c,n,e]),extby:Rt(l,"extby",[o,c,n,e])},a)}})})})}}function Tt(t,o,i,e,n,r,s){var a=V(r.getMisc().valueDistOuterCircular,Vi),l=ji.R2C(o);At(t,o,i,e,n,r,_o.Mrg({to:function(t,o){return uo(t,a,Gt(Mt(l,[ji.X(l),-128],t)),r)},extby:function(t,o){return o/2}},s))}function bt(t,o,e,r,a,l,h){if(e){var c=w(l.getMisc().digits,ci),f=new Map,g=new Map,v=new Map;n(t,G(h&&h.lock1PX,!0),function(){e.forEach(function(o){h&&h.group&&h.group(o),o.forEach(function(e,n){var d,y,S,m,C,x,R,A,T=h&&h.draw&&h.draw.call(h.thisArg,e,n,o),b=r;T||(y=(d=e.p)&&(d.b2||d.b)||"black",S=ao(d,a.getValueFormat(),c),m=no(l,y),b&&d&&d.b2&&!(b=g.get(d.b2))&&g.set(d.b2,b=to(l,d.b2)),!(C=f.get(y))&&f.set(y,C=io(l,y)),(x=s(A=b&&h&&u(h.size)?h.size.call(h.thisArg,e):p(h.size)?V(h.size):null))||(b=_o.Mrg(_o.Cpy(b),{size:A})),A=b&&b.size||0,x&&v.has(R=e[0]+" "+e[1]+" "+S)||(x&&v.set(R,1),ht(t,e,d&&i(S,y),{flags:h.flags,point:b,line:C,back:m,to:Rt(h,"to",[e,A,n,o]),extby:Rt(h,"extby",[e,A,n,o])},l)))})})})}}function Vt(t,o,i,e){var n=_o.TFI.bCTX(t,o),r=i.call(e,t);return _o.TFI.eCTX(t,n),r}function wt(t,o){return ji.Dist(t,o)}function Gt(t){return ji.D2R(t)}function Ot(t){return ji.R2D(t)}function Et(t){return ji.D236(t)}function Lt(t,o,i){return ji.Angle(t,o,i)}function Mt(t,o,i){return Et(Lt(t,o,i))}function kt(t,o){if(o){var i=Gt(o),e=[0,0,t.width,t.height],n=ji.R2C(e),r=ji.RPO(ji.R2C(e,17),n,i),s=ji.RPO(ji.R2C(e,68),n,i),a=ji.RPO(ji.R2C(e,65),n,i),l=ji.RPO(ji.R2C(e,20),n,i);t={width:d(S(ji.X(s)-ji.X(r)),S(ji.X(l)-ji.X(a))),height:d(S(ji.Y(s)-ji.Y(r)),S(ji.Y(l)-ji.Y(a)))}}return t}function Pt(t){return t.p.r||pi}function Dt(t,o,i,e,n){if(t){var r,s=(o=o||{}).i||0,a=t.length,l=1,u=0;u=(a=y(s+w(o.l,a),a))-s,n&&(l=-1,s=a-1);for(var h=0;!r&&h=s-i&&r=n-i&&e=0?i=e(t.iiV?t.iiV[o]:t.v):-1==o&&(i=e(t.v)),-2==o&&(i=t.s&&t.s.getName()),-3==o&&(i=t.c),-4==o&&(i=e(t.p)),-5==o&&(i=t.ii),C(i)}):e(t.v)}}function lo(t,o,i,e){return e||(i=_o.Def.G.getAngle(i)),[ji.X(t)+Math.cos(i)*o,ji.Y(t)+Math.sin(i)*o]}function uo(t,o,i,e){var n,s,a=t;return o&&(r(n=e.getMisc().valueLineAddAngle)&&(s=Gt(n=V(n)),i=n<=0?s:i+s),a=lo(t,o,i)),a}function ho(t,o,i,e){return uo(t,o,Gt(i<0?V(e.getMisc().valueLineUpAngle,Gi):V(e.getMisc().valueLineDownAngle,Oi)),e)}function co(t,o,i){var e,n,r,s=i[1],a=i[2];return(ji.X(s)-ji.X(a)||ji.Y(s)-ji.Y(a))&&(n=wt(s,o),(e=Gt(Mt(o,s,a)))||(e=Ui),(r={startAngle:Gt(Mt(o,[ji.X(o),-128],s)),sweepAngle:e,width:n-wt(i[0],o),outsideRadius:n,p:i.p}).from=ji.C2R(lo(o,r.outsideRadius+V(t.getMisc().valueDistInnerCircular,bi),r.startAngle+r.sweepAngle/2))),r}function po(t,o){return o&&1==o.getTransform().a&&_o.RRt(t),t}function fo(t,o,i,e,n){return console.assert(i>0,"Size must be a positive value"),e?(t=[ji.X(t),ji.Y(t)-i/2],o=[ji.X(o),ji.Y(o)+i/2]):(t=[ji.X(t)-i/2,ji.Y(t)],o=[ji.X(o)+i/2,ji.Y(o)]),po(ji.Rect(t,o),n)}function go(t,o,i,n,r,s,a,l){t=[i,Q(t,r,s.oY)[1-a]],o=[i,Q(o,r,s.oY)[1-a]],a&&(e(t),e(o));var u=fo(t,o,n,a,l);return u[2]=d(1,u[2]),u[3]=d(1,u[3]),u}function vo(t,o,i,e){var n,r,s=o[2]<=1,a=o[3]<=1;s&&a||(s?(n=ji.R2C(o,"TL"),(r=ji.R2C(o,"BL"))[1]--):a&&(n=ji.R2C(o,"TL"),(r=ji.R2C(o,"TR"))[0]--),n&&r?lt(t,i,function(){t.drawLine(n,r)}):t.drawShape(o,i,e))}function yo(t,o,i,e,n,r,s){Ut(i,function(i){(function(t,o,i,e){var a=this.getRS().v,l=Zt(this),u=jt(this),h=i.s,c=k(o),p=eo(this),f=oo(this),g=h.GetIndex(),v=l[g%l.length],d=Jt(this,l),y=this.toShape(h)||this.toShape(n)||r,S=u.length&&u[g%u.length],m=S&&Jt(this,u),C=this.getMV().sOf(i),x=function(){function t(t){return t&&((t=_o.Cpy(t)).fillColor=null,t.patternColor=null,t.fillGradientColor=null),t}var o=$t(y,v,d[g%d.length]),i=o,e=S&&$t(y,S,m[g%m.length]),n=e;return y.hollow&&(i=t(i),n=t(n)),{s:o,h:i||o,sD:e||o,hD:n||o}}(),R=Ao(this,h);bt(t,0,e,null,h,this,{flags:0,lock1PX:!1,draw:function(o,e,n){if(!(e%4)){var r,l=n[e+0].p.v,u=n[e+1].p.v,h=n[e+2].p.v,p=n[e+3].p.v,f=e?n[e-1].p.v:p;r=p0&&(vo(t,fo(v,f,m,c,t),o,p),vo(t,fo(g,S,m,c,t),o,p))}function mo(t,o,i,n,r,s,a,l,u,h,c,p){function f(o,i){var n=[0,(v-1)/2];return c&&e(n),po(_o.IRt(go(o,o,i,l/2,u,h,c),n[0],n[1]),t)}var g,v=V(o.size,1),d=go(r,n,a,v,u,h,c);v>0&&(g=_o.URt(f(r,a),f(n,a)),d[1-c]=g[1-c],d[3-c]=g[3-c],vo(t,po(d,t),o,p),vo(t,f(i,d[c]-l/4),o,p),vo(t,f(s,d[c]+d[2+c]+l/4),o,p))}function Co(t){return d(0,w(t.updateRangeOnScroll,yi))}function xo(t,o){return o.v?~"tb".indexOf(t):~"lr".indexOf(t)}function Ro(t,o){if(t.s&&(t.o.start||t.o.end)){o=o.slice();var i=~"lr".indexOf(t.s)?1:0,e=F(t),n=Q(e.m,o,t),r=Q(e.M,o,t);o[i]=y(n[i],r[i]),o[2+i]=S(r[i]-n[i])}return o}function Ao(t,o){var i=o.getShowValue();return 1==t.getRS().type()&&t.getMV().t<=V(t.getMisc().showValueIf,ki)&&(i=0),i}function To(t,o,i,e){var n=t.globalAlpha;r(o)&&(t.globalAlpha=V(o)),i.call(e),r(o)&&(t.globalAlpha=n)}function bo(t,o,i){return function(t){var o,i,e=C(t),n=e.indexOf($o);return~n&&~(i=e.indexOf(ii,n))&&(n=(e=C(t=E(t,i-n))).indexOf($o)),~n&&~(o=e.indexOf(oi,n))&&(t=E(t,o-n)),t}(t+i*(o-t))}function Vo(t,o){return o.split($o).forEach(function(o){var i;t=r(t)&&(r(i=t[o])?i:function(t){return t instanceof Map}(t)&&t.get(o)||null)}),t}function wo(t,o){o&&(o.forEach(function(o){var i,n=o.c;n&&yt(t,n,o.a,function(n,r){i=o.s||{},o.o&&To(t,i.opacity,function(){!function(t,o,i,n){if(!_o.PInR(ji.X(o),ji.Y(o),i)){var r,s,a,l=ji.R2C(i),u=ji.cL2R(i,l,o);u&&(a=[(s=[y(d(u[r=u[1]==i[1]||u[1]==_o.BOf(i)?0:1]-ri,i[r]+2),i[r]+i[2+r]-(2+2*ri)),u[1-r]])[0]+2*ri,u[1-r]],r&&(e(s),e(a)),dt(t,[o,s,a],n))}}(t,r&&_o.ORt(o.o.slice(),-r[0],-r[1])||o.o,_o.PRt(n.slice(),i.pad),i.frameColor||i.fillColor)})})}),o.forEach(function(o){var i=o.c;i&&yt(t,i,o.a,function(i){t.drawShape(i,_o.Mrg(o.s,{text:o.t,formatText:256}))})}))}function Go(t,o,i){return so(t.getVP().c[Wt(o.s)],function(t){return t.p&&t.p.i==i&&t})}function Oo(t,o,i){return C(ao(h(t)?t:{v:t},o,i))}function Eo(t,o,i){var e=_o.E.Create(i,"index,value");return e.IsValid()?e.Evaluate(function(i){var e;return-1==i&&(e=o),-2==i&&(e=t),e}):t}function Lo(t,o,i,e,n,r){var s,a,l=_o.pad2A(n&&n.pad),u={width:o.width+2*l[0],height:o.height+2*l[1]};return(s=Se[i])&&(e&&(t=U(t,s,e+=a=l[s[0]?0:1]),r&&r.push.apply(r,U(t,s,-(a+ri)))),t=U(t,s,u[Zo[i].nfs]/2)),ji.C2R(t,o.width,o.height)}function Mo(t){var o=Et(t),i="t";return o>=45&&o<135?i="r":o>=135&&o<225?i="b":o>=225&&o<315&&(i="l"),i}function ko(t,o){if(t){var i,n=[],r=(o=o||{}).h?1:0,s=o.fit,a=!0;if(t.forEach(function(t){n.push(t)}),(i=n.length)>1)for(n.sort(function(t,o){return ji.R2C(t.c)[1-r]-ji.R2C(o.c)[1-r]});a;){a=!1;for(var l=0;l=n.length||!g(n[o]))&&i.push(e)}),i.length&&Po(t,i)}function zo(t){var o=0==t;if(l(t))for(var i=0,e=t.length;i=0&&o1&&((i=~~o)<0||i>=e)&&(i=0),i}(l,e),p:a}))},e.sep),n}function Xo(t,o,i,n){function r(t,o){return _o.bin(t.length,function(i){return t[i].i<=o})}function s(t,o){return o-1-t}n=n||{},at(t,i.g,function(){var a=m(i.g.align,_o.DrawTextFormatEnum,8),l=d(0,w(i.g.skip)),u=d(1,w(i.g.step)),h=w(n.f,-1),c=S(n.l||0),p=(n.l||0)<0,f=n.v||0,g=n.n,v=n.s||0,y=_o.pad2A(n.p),C=n.u||0,x=n.r,R=n.b||0,A=o[1-f],T=A+o[3-f],b=i.l,V=b.length,G=0,O=V,E=[];x&&(p?(G=s(r(b,s(x[0],c)),V),O=s(r(b,s(x[1],c)),V)+1):(G=r(b,x[0]),O=r(b,x[1])+1));for(var L=G;L=l&&!((F-l)%u)&&(k=[M=v+((p?s(z,c)+1:z)-R)*C,A],P=[M,T],f&&(e(k),e(P)),1&h&&t.drawLine(k,P),E.push({l:D.l,x:M}))}if(2&h)for(var U,I,F=0,Y=E.length;Ft.tZ+256&&(e.call(this),t.tZ=null),n&&(r.sT=r.sT||n.sT,clearTimeout(t.hrV),t.hrV=this.setTimeout(function(){e.call(this)},32))}.call(this),arguments.length&&(s=t&&this.oCD&&!o)!=this.in&&(!s&&this.in?(a.oHE.classList.remove(ui),this.dCD=null,this.xAF()):s&&!this.in&&a&&a.oHE.classList.add(ui),this.in=s),this.in&&this.inv()}},Wo.prototype.onpaint=function(t,o){this.oCD&&this.oGV.dCTX(t,o,function(o){this.draw(t,o)},this)},Wo.prototype.inv=function(){function t(){var t=this.oIAF.oA,o=t.t,i=t.f,e=this.oCD,n=e&&e.sp,s=y(1,t.p+t.s),a=this.oGV.gCT();t.p=s,n&&i&&o&&n.forEach(function(t){var n,l=a&&a.length&&a[function(t){for(var o;t&&!f(o=parseInt(t));)t=t.substr(1);return o||0}(t)%a.length],u=Vo(i,t);if(r(u)&&r(n=Vo(o,t)))for(var h=Vo(e,t),c=0,p=h&&h.length;c=0&&o=0&&o=0&&(!function(t){return t.split(Jo).forEachU(function(t){return this.has(t)},this)}.call(i,o)||i.has(t))},t.Options={scrollBars:null,scrollBarsOrigin:void 0,tfi:null,locked:null,readOnly:!1,wheelChange:null,smooth:null,shapes:null,cursors:null,zoom:null,zoomLevels:null,formatText:null,pad:null,imageSize:null,imageAlign:null,allowActions:null,scrollPos:null,toolTipDelay:null,toolTipPopDelay:null,toolTipWidth:null,allowDrop:null,data:null,misc:null,background:null,series:null,autoFit:null,valueAxis:null,categoryAxis:null,xAxis:null,yAxis:null,toolTipFormat:null,valueSize:null,cursor:null,legend:null,sort:null,overview:null},t.bSCTX=function(t,o,i,e){var n;return o&&(t.drawShape(i,o,e),n=_o.TFI.bCTX(t,o.tfi),r(o.opacity)&&((n=n||{}).opacity=t.globalAlpha,t.globalAlpha=o.opacity)),n},t.eSCTX=function(t,o){r(o.opacity)&&(t.globalAlpha=o.opacity),o instanceof _o.TFI&&_o.TFI.eCTX(t,o)},t.prototype.init=function(o,i){this.lnt=this.lnt||0,this.lnt++,this.oS=new t.Series(this),this.oGV=null,this.rgGV=[],this.sSA="smth-"+_o.Rand(),this.iLts(),this.oCW=new _o.CW(o,{AllowXChg:0,ScrollBars:_o.Def.Graph.scrollBars}),this.oCW.oT=this,this.Shortcuts=this.oCW.oSts,this.initCW(),this.import(),_o.expO(t.Options,this,this.oGV),_o.RUR.Listeners.add("srur",this),_o.RUR.Listeners.add("erur",this),_o.A.Listeners.Add("ea",this),this.cwbU(),this.SetOptions(i,!0),this.cweU(),_o.DPR.Reg(this),--this.lnt},t.prototype.GetCanvas=function(){return this.oCW.GetCanvas()},t.prototype.defAA=function(){return"overview-selection-resize,fit(Shift+MButton,Alt+MButton),value-resize(Ctrl+MButton),zoom(MButton),select(Shift,Ctrl),scroll"},t.prototype.roAA=function(){return"overview-selection-resize,scroll,zoom,fit,value-resize,select"},t.prototype.allP=function(){return"view(Graph.GV),legend(Graph.Legend),overview(Graph.Overview)"},t.prototype.luoYD=function(t){Co(this.oGV.getMisc())&&(2&(t=V(t,3))&&function(){var t,o=!0;return this.feGV(function(i){var e,n=i.gdVA();i.loYD&&!--i.loYD&&o&&(i.resXY(),(o=function(t,o){var i=t.size==o.size;return i&&t.forEach(function(t,e){if(i){var n=o.get(e);i=t.m==n.m&&t.M==n.M&&t.mU==n.mU}}),i}(n,e=i.gdVA()))||(t=t||new Map).set(i,{b:n,a:e}))}),!o&&t.forEach(function(t,o){o.loYD++,t.a.forEach(function(o,i){var e=t.b.get(i);for(var n in o)o[n]=e[n]})}),!o}.call(this)&&this.Smooth(function(){this.feGV(function(t){t.loYD&&!--t.loYD&&t.resXY()})},this,{sorg:"luoyd"}),1&t&&this.feGV(function(t){!t.loYD&&t.loYD++}))},t.prototype.srur=function(t){this.luoYD(1)},t.prototype.erur=function(t){clearTimeout(this.hluoYD),!(_o.A.Rng("ssp")||_o.A.Rng("ssw"))&&this.luoYD(2)},t.prototype.ea=function(t){("ssp"==t.name||"ssw"==t.name)&&this.luoYD(2)},t.prototype.lRA=function(t){t&=!1,this.oCW.lRA(t)},t.prototype.onAddSerie=function(t){this.onRL()},t.prototype.onDelSerie=function(t){this.onRL()},t.prototype.feGV=function(t,o){_o.Graph.GV.prototype[t]?this.rgGV.forEach(function(o){o[t].call(o)},this):this.rgGV.forEach(t,o)},t.prototype.feGVU=function(t,o){return _o.Graph.GV.prototype[t]?this.rgGV.forEachU(function(o){o[t].call(o)},this):this.rgGV.forEachU(t,o)},t.prototype.feI=function(t,o){o=o||this,this.oS.forEach(function(i){t.call(o,i)})},t.prototype.feIU=function(t,o){return o=o||this,this.oS.forEachU(t,o)},t.prototype.BeginUpdate=function(){this.oCW.CWs().forEach(function(t){t.bU()})},t.prototype.bU=t.prototype.cwbU=t.prototype.BeginUpdate,t.prototype.EndUpdate=function(){1==this.oCW.lR&&this.fU(),this.oCW.CWs().forEach(function(t){t.eU()})},t.prototype.eU=t.prototype.cweU=t.prototype.EndUpdate,t.prototype.Update=function(t,o){this.bU(),u(t)&&t.call(o||this),this.eU()},t.prototype.fU=function(){},t.prototype.Refresh=function(){this.bU(),this.onRL(),this.eU()},t.prototype.res=function(t){t&&this.feGV(function(o){1&t&&o.onRL(),2&t&&o.resAx(),4&t&&o.resXY(),8&t&&o.resMV(),16&t&&o.resVP()})},t.prototype.onRL=function(){this.oGV.oRS&&this.feGV("onRL")},t.prototype.onVis=function(){this.oGV.oRS&&this.feGV("onVis")},t.prototype.resXY=function(t,o){function i(){u(t)&&t.call(o||this),this.oGV.oXY&&this.feGV("resXY")}t?this.Update(i):i.call(this)},t.prototype.updSPR=function(){this.feGV("updSPR")},t.prototype.iLts=function(){this.Listeners=this.oLts=new _o.Lts,this.oLts.add("onclick"),this.oLts.add("onanchorclick"),this.oLts.add("onload"),this.oLts.add("onerror"),this.oLts.add("onscroll")},t.prototype.addGV=function(t,o){function i(o){return o.repAll("name",t)}var e=null;if(!s(t)&&R(t).length||(t="graph"+this.rgGV.length),!this.oCW.W(t)){var n,r,a,l=!this.rgGV.length,u=(this.oCW.W("main")||this.oCW).Add(t,_o.Mrg({Dock:l?5:4,Size:256},o));e=new _o.Graph.GV(this),this.rgGV.push(e),this.oGV=this.oGV||e,!(u.GetDock()%2)&&u.SetPosition(this.oCW.W("graph").GetPosition()+1),u.Add("client",{Dock:5,HoverExtends:i("control,top,bottom,vertical,vscroll,grip,name,name.hscroll"),Extends:i("name.hscroll,vertical"),HScroll:i("name.hscroll"),VScroll:"vscroll",Control:e}),(r=u.Add("overview",{Dock:1,Resizable:!1,Size:24,Control:e.oOv})).GetVisible=e.oOv.isVisible.bind(e.oOv),this.aSizeW(r),(n=u.Add("legend",{Dock:2,Size:0,Resizable:!1})).Add("client",{Dock:5,Control:e.oLg,HScroll:i("name.legend.hscroll"),VScroll:i("name.legend.vertical.vscroll")}),(a=n.Add("vertical",{Dock:4,Resizable:!1,VisibleExtends:i("name.legend.client,name.legend.vertical.vscroll"),Size:16})).Add("grip",{Dock:2,AllowXChg:!1,Size:16,Resizable:!1,VisibleExtends:i("name.legend.hscroll,name.legend.vertical.vscroll")}),a.Add("vscroll",{Dock:5,AllowXChg:!1,Resizable:!1,Control:new _o.ScrollBar}),n.Add("hscroll",{Dock:2,Resizable:!1,Size:16,Control:new _o.ScrollBar,SizeExtends:i("name.legend.hscroll,name.legend.vertical.vscroll"),VisibleExtends:i("name.legend.client")}),n.GetVisible=e.oLg.isVisible.bind(e.oLg),this.aSizeW(n,e.oLg),u.Add("hscroll",{Dock:2,Resizable:!1,Size:16,VisibleExtends:i("name.client"),Opacity:0,HoverOpacity:1,Control:new _o.ScrollBar})}return e},t.prototype.AddGraphView=function(t,o){this.bU();var i=this.addGV(t,o);return this.eU(),i},t.prototype.delGV=function(t){!s(t)&&R(t).length||(t=this.rgGV[this.rgGV.length-1].oW.opW.GetName());var o=!1,i=this.oCW.W(t);if(i){var e=null,n=this.oCW.W(i.GetName()+".client");if(n&&(e=n.GetC())instanceof _o.Graph.GV&&e!=this.oGV){var r=this.rgGV.indexOf(e);(o=r>=0)&&(this.rgGV.splice(r,1),this.oCW.Remove(i))}}return o},t.prototype.RemoveGraphView=function(t){this.bU(),this.delGV(t),this.eU()},t.prototype.GraphView=function(t){var o=this.oCW.W(t+".client");return o&&o.oC&&~this.rgGV.indexOf(o.oC)&&o.oC||null},t.prototype.initCW=function(){function t(){var t="grip",o=Qo,i=null,e=this.oCW.W(t);this.rgGV.forEach(function(e){e.oW&&e.oW.opW&&(t+=Jo+(o=e.oW.opW.GetShortName()+".hscroll"),i=i||this.oCW.W(o))},this),i&&i.SetSizeExtends(t),e&&e.SetVisibleExtends(t)}var o,i=this,e=this.oCW;this.oCW.canvas.addEventListener("dragover",this.localdragover=function(t){return i.ondragover(t)}),this.oCW.canvas.addEventListener("drop",this.localdrop=function(t){return i.ondrop(t)}),this.oCW.onAdd=function(o){return function(){return t.call(i),o.apply(this,arguments)}}(this.oCW.onAdd),this.oCW.onRemove=function(o){return function(){return t.call(i),o.apply(this,arguments)}}(this.oCW.onRemove),this.oCW.onWLD=function(t){return function(){t.apply(this,arguments),this.oT.feGV(function(t){t.onWLD()})}}(this.oCW.onWLD),(o=(e=e.Add("control",{Dock:5})).Add("main",{Dock:5}).Add("vertical",{Dock:4,Resizable:!1,Size:16,VisibleExtends:"graph.client,vscroll",Opacity:0,HoverOpacity:1})).Add("grip",{Dock:2,AllowXChg:!1,Size:16,Resizable:!1}),o.Add("vscroll",{Dock:5,AllowXChg:!1,Resizable:!1,Control:new _o.ScrollBar}),this.addGV("graph")},t.prototype.aSizeW=function(t,o){o=o||t.GetC(),t&&o&&o.gSize&&(t.aClient=function(t){return function(){if(!this.IsMinRec()){var i,e=this.client,n=o.gSize(),s=n.width,a=n.height;this.GetResizable()&&(i=o.aSize&&o.aSize())&&(r(i.height)&&(a=d(a||0,i.height)),r(i.width)&&(s=d(s||0,i.width))),(r(a)&&(a=o.unscaled(a))!=e[3]||r(s)&&(s=o.unscaled(s))!=e[2])&&(r(a)&&(e[3]=a),r(s)&&(e[2]=s),this.updCWN())}return t.apply(this,arguments)}}(t.aClient),t.setClient=function(t){return function(){var i=t.apply(this,arguments);if(!this.IsMinRec()&&this.GetResizable()){var e=_o.C2R(this.client);o.aSize&&o.aSize({width:o.scaled(e[2]),height:o.scaled(e[3])})}return i}}(t.setClient))},t.prototype.w2P=function(t){function o(){function t(t){var o=[];return _o.B.split(t).forEach(function(t){t.caption&&t.subText&&o.push({n:t.caption,p:function(t){var o=_o;return t.split(".").forEach(function(t){o=o[t]}),o.prototype}(t.subText)})}),o}return this._allP||(this._allP=t.call(this,this.allP()))}var i,e=t&&t.oC&&Object.getPrototypeOf(t.oC);if(e)for(var n,r=o.call(this),s=0,a=r.length;!i&&s1&&c==o.charAt(0)&&c==o.charAt(n-1)){t="";for(var i,e=0,n=(o=o.substr(1,n-2)).length;e1&&(e=V(t[1],-1)),e>=0&&e<=i&&(e=-1),(i||e>0)&&(o=[i,e])),o}(r.valueSizeRange))&&(h=d(h,n[0]),n[1]>0&&(h=y(h,n[1]))),h}function U(t){var o=this.getRS(),i=this.gCnt().c;return z.call(this,i[2+o.v]-1,o.l-o.csz,null,t)}function I(t,o,i){this.init(t,o,i)}function st(){return w(this.oM&&this.oM.digits,ci)}function ut(t){this.init(t)}function ct(t){this.init(t)}function pt(t){this.init(t)}var ft=1234,gt={baseMajorUnits:"1,2,2.5,5",rangeMajorUnits:hi,digits:ci,extVisibleBeforeAxis:0,extVisibleAfterAxis:.5,categoryAxisSize:fi,categoryAxisPad:gi,valueAxisSize:vi,valueAxisPad:di,updateRangeOnScroll:yi,marginValueRatio:Si,paddingValueRatio:mi,valueAxisFitLabel:xi,radarPolygonal:Ri,circularStartAngle:Ai,radialRotateLabels:Ti,newLayoutOnVisibleChange:!0,paddingInsidePie:0,valueDistInnerCircular:bi,valueDistOuterCircular:Vi,valueLineExt:wi,valueLineAddAngle:null,valueLineUpAngle:Gi,valueLineDownAngle:Oi,valueSizeRange:2,showTicksIf:Ei,showGridLinesIf:Li,showLabelsIf:Mi,showValueIf:ki,cursorTrans:Pi,allowValueScroll:0},yt={seriesColors:Di,seriesColorsDecrease:null,seriesColorsAreaAlpha:.5,seriesColorsAreaBlend:null,toolTipForeground:"#D8D8D8",toolTipBackground:null,cursorSerieTooltipBlend:"white",cursorSerieTooltipAlpha:.5},Rt={limit:void 0,format:null,eor:"\r\n",eof:",",str:'"',hdr:!1},Et={width:null,color:null,style:null},Lt={width:null,color:null,style:null,skip:null,step:null},Ht={width:null,color:null,style:null,skip:null,step:null},po={data:void 0,type:null,vertical:null,name:null,visible:!0,key:null,shape:null,axis:null,showValue:null,valueFormat:null,stack:null,style:null,cursorFormat:null,legendFormat:null};return t.prototype.init=function(t){this.oT=t,this.rgS=new _o.Arr,this.rgS.onRemove=t.onDelSerie.bind(t),this.import()},t.prototype.import=function(){var t=this.oT;["bU","eU"].forEach(function(o){this[o]=t[o].bind(t)},this),["has","len","forEach","forEachU","add","indexOf","getPos","setPos"].forEach(function(t){this[t]=this.rgS[t].bind(this.rgS)},this)},t.prototype.onRL=function(){this.oT.onRL()},t.prototype.resKI=function(){this.mKI=null},t.prototype.Add=function(t){this.bU();var o,i,e=this.add(new _o.Graph.Serie(this,t));return r(t)&&(r(i=(o=_o.IsO(t))?t.data:t)&&e.SetData(i),o&&r(t.position)&&e.SetPosition(t.position)),this.oT.onAddSerie(e),this.resKI(),this.eU(),e},t.prototype.GetCount=function(){return this.rgS.len()},t.prototype.Item=function(t){var o=null;return~~t===t?o=this.rgS.at(t)||null:t instanceof _o.Graph.Serie?o=this.rgS.has(t)?t:null:s(o=function(t){var o=t.mKI;return s(o)&&(t.mKI=o=new Map,t.forEach(function(t){var i=t.getKey();!o.has(i)&&o.set(i,t)})),o}(this).get(t))&&(o=this.rgS.at(t)||null),o},t.prototype.Remove=function(t){this.RemoveRange(this.Item(t))},t.prototype.RemoveRange=function(t){this.bU(),this.resKI(),this.rgS.removeRange(t),this.oT.onRL(),this.eU()},t.prototype.Clear=function(){this.bU(),this.resKI(),this.rgS.clear(),this.oT.updSPR(),this.oT.onRL(),this.eU()},a.compat="area-compat[dim=1][type=1](area[z=0][cs][csz],column[z=2][cs][sbs=c][lc][msp],waterfall[z=4][sbs=c][cum],line[z=7][cs][ex0]),area-compat[dim=2][type=1](rangeArea[z=1][csz][ex0],rangeColumn[z=3][sbs=c][ex0][lc][msp]),area-compat[dim=4][type=1](candleStick[z=5][sbs=f][ex0],OHLC[z=6][sbs=f][ex0]),radar-compat[dim=1][nohv][type=-1](radarArea[cs][csz],radarColumn[cs][sbs=r][lc][msp],radarLine[cs][csz]),pie-compat[dim=1][nohv][type=-2](pie[lc][msp]),polar-compat[dim=2][mmd=2][nohv][type=-3](polarArea,polarLine,polarScatter),xy-compat[dim=2][mmd=2][type=2](scatterArea[z=0],scatter[z=3],scatterLine[z=1]),xy-compat[dim=3][mmd=3][type=2](bubble[z=2])",a.prototype.init=function(t,o){this.oS=t,this.oO={},this.setOpts(o)},a.prototype.typeOf=function(){return"serie"},a.prototype.bU=function(){this.oS.bU()},a.prototype.eU=function(t){t&&this.oS.onRL(),this.oS.eU()},a.prototype.dGV=function(){return this.oS.oT.oGV},a.prototype.Remove=function(){return this.oS.Remove(this)},a.prototype.GetOptions=function(){return this.oO},a.prototype.SetOptions=function(t){this.bU(),this.setOpts(t),this.eU()},a.prototype.opt=function(t,o){var i=this.GetOptions()[t];return s(i)&&null==(i=_o.Graph.SerieOptions[t])&&(i=o),i},a.prototype.setOpts=function(t){for(var o in t){var i=this[_o.setM(o)];i&&i.call(this,t[o])}},a.prototype.GetIndex=function(){return this.oS.indexOf(this)},a.prototype.GetPosition=function(){return this.oS.getPos(this)},a.prototype.SetPosition=function(t){this.GetPosition()!=t&&(this.bU(),this.oS.setPos(this,t),this.eU(!0))},a.prototype.GetKey=function(){return this.oO.key},a.prototype.SetKey=function(t){this.bU(),this.oS.resKI(),this.oO.key=t,this.eU()},a.prototype.getKey=function(){return C(this.GetKey()||this.GetName()||this.GetIndex())},a.prototype.toString=function(){return this.getName()||this.getKey()},a.prototype.GetVisible=function(){return this.oO.visible},a.prototype.SetVisible=function(t){var o=this.oS.oT;this.bU(),this.oO.visible=t,o.onVis(),this.eU(G(o.oGV.getMisc().newLayoutOnVisibleChange,!0))},a.prototype.isVisible=a.prototype.getVisible=function(){return s(this.GetVisible())||this.GetVisible()},a.prototype.GetShape=function(){return this.oO.shape},a.prototype.SetShape=function(t){this.bU(),this.oO.shape=_o.S.A2S(t),this.eU()},a.prototype.GetData=function(){return this.oO.data},a.prototype.SetData=function(t){this.bU(),this.oO.data=t,this.eU(!0)},a.prototype.getData=function(){return this.uCatVal(Xt().get(this.getType()).d)},a.prototype.uCatVal=function(t){var o,i=function(){var t=this.opt("data"),o=this.oS.oT.oD;return t=o&&o.col(t)||t}.call(this);if(r(i)&&(l(i)||(i=c(i)?i.split(Jo):h(i)?function(){o=new Map;for(var e in i)o.set(e,L(i[e],t));return i=null}():[i]),i))for(var e=0,n=i.length;et[1]?i={page:o[0],range:t[0]}:e={page:o[1],range:t[1]},this.SetSI(i,e)},f.prototype.p2O=function(t){if(this.isSelectable()){var o=this.ptCA(t),i=this.off();return this.gLO().p2O(ji.X(o)-i[0],ji.Y(o)-i[1])}},f.prototype.getCursor=function(t){var o,i=this.getCursors();return!_o.H.lA&&this.p2A(t)?o=_o.GP.Get("anchor",i):this.p2O(t)&&(o=_o.GP.Get("legend",i)),o||null},f.prototype.onmousemove=function(t){var o,i=this.gPtr(t),e=this.getCursor(i);return e&&(o=this.GetCanvas())&&(o.style.cursor=e),e},f.prototype.isSelectable=function(t){return function(){return t.apply(this,arguments)&&this.oGV.isSelectable()}}(f.prototype.isSelectable),f.prototype.ondown=function(t){return this.isSelectable()&&this.oGV.ondown(t)},f.prototype.rurScroll=function(t,o){function i(t,o){this.SetScroll({x:e.x+this.scaled(t),y:e.y+this.scaled(o)})}if(t){var e=this.GetScroll();this.doRUR(t,function(t){switch(t.drag.status){case 7:t.drag.cancel&&i.call(this,0,0);break;case 2:i.call(this,-t.drag.offset.dx,-t.drag.offset.dy);break;case 6:var e=t.drag.swipe;if(e.dx&&e.dy){var n=S(e.dx),r=S(e.dy);d(n,r)-y(n,r)>32&&(n>r?e.dy=0:e.dx=0)}this.oW.SSw(e);break;case 4:case 5:o&&o.rurStatus&&o.rurStatus.call(o.thisArg||this,t)}},this)}},f.prototype.onRurActionClickD=function(t,o){if(this.gAA().Has("scroll","view")){var i=this.gPtr(o),e=this.p2O(i);e&&this.onLO(e)}},f.prototype.rurActionClick=function(t,o){var i=this.gPtr(o),e=this.p2O(i);e&&this.onLO(e),this.oGV.onClick(o)},f.prototype.onLO=function(t){this.oGV.Smooth(function(){!function(t,o){var i,e,n,s=t.r.s;t.c?(n=t.r.v,v(e=t.pos,0,n.length)&&(o?r(i=s.mHV&&s.mHV.get(e))&&(n[e]=i,s.mHV.delete(e)):((s.mHV=s.mHV||new Map).set(e,n[e]),p(n[e])?i=0:l(n[e])&&(i=[],n[e].forEach(function(){i.push(0)})),n[e]=i))):s.SetVisible(o)}(t,!Fo(t)),this.getRS().per()},this.oGV,{sorg:"onlo"})},f.prototype.off=function(){var t=this.getAlign(),o=this.GetClientRect(),i=this.isVdk(),e=this.gLO(),n=[0,0];return t&&!this.oW.GetSB(i).isVisible()&&(n[1-i]=d(0,o[3-i]-this.unscaled(e.m[1-i])),1==t&&(n[1-i]=n[1-i]>>1)),n[0]=this.scaled(n[0]),n[1]=this.scaled(n[1]),n},f.prototype.draw=function(t,o,i){!this.sRng()&&this.updSPR();var e,n,r,s=this.gLO(),a=this.GetScroll(),l=this.off();this.ctxScale(t,o,function(o){_o.ORt(e=o.slice(),a.x,a.y),t.translate(n=-a.x+l[0],r=-a.y+l[1]),s.forEach(function(o,i){_o.NRt(o,e)&&this.drawLO(t,o,i)},this),t.translate(-n,-r)},this)},f.prototype.drawLO=function(t,o,i){var e,n,r=this.getFormatText(),s=this.toShape("legendUnit"),a=Fo(i),l=i.b,u=qt(this.oGV),h=Qt(this.oGV);(s=a?s:this.toShape("legendUnitHidden"))&&t.drawShape(o,$t(s,l,Bt(l,u,h))),o.s&&(e=this.toShape("legendSymbol"),t.drawShape(o.s,$t(a?e:this.toShape("legendSymbolHidden")||e,l,Bt(l,u,h)))),o.l&&(n=this.toShape("legendLabel"),t.drawShape(o.l,_o.Inh($t(a?n:this.toShape("legendLabelHidden")||n,l,Bt(l,u,h)),{text:i.l,formatText:r})))},f.prototype.resLO=function(){this.mLO=null},f.prototype.gLO=function(){function t(){function t(t,o){return b(d(0,V(p(t)?t:o)))}function o(){function t(t,o){l.set(t,o),(r=r||[]).push(t)}function o(t){var o;return t.forEach(function(t){o=_o.URt(o,l.get(t))}),o}var r,s,l=new _o.M1,u=a[0],h=a[1],c=u,p=h,g=n.gMx(),v=g[2],d=g[3],y=n.getGrid(),m=y[0]&&y[1],C=y.slice(),x=1-n.getFlow(),R=x?function(i,e){r&&(!C[1]||A+1=C[0]||c+2*u+e[2]>v)&&(A++,c=u,p+=h+o(r)[3],r=null,e[0]=c,e[1]=p),t(i,e),c+=u+e[2]}:function(i,e){r&&(!C[0]||A+1=C[1]||p+2*h+e[3]>d)&&(A++,c+=u+o(r)[2],p=h,r=null,e[0]=c,e[1]=p),t(i,e),p+=h+e[3]},A=0;return m&&(C[x]=0),e.forEach(function(t){var o=function(t){var o,e,n,r=t.m;if(i&&!r)n=[0,0,i[0],i[1]];else if(!i&&r)e=[0,0,r[0],r[1]];else if(i&&r)switch(15&f){case 1:n=[0,0,i[0],i[1]],e=[0,h+n[3],r[0],r[1]];break;case 2:e=[0,0,r[0],r[1]],n=[0,h+e[3],i[0],i[1]];break;case 3:n=[0,0,i[0],i[1]],e=[u+n[2],0,r[0],r[1]];break;case 4:e=[0,0,r[0],r[1]],n=[u+e[2],0,i[0],i[1]];break;default:n=(e=[0,0,r[0],r[1]]).slice()}return(n||e)&&((o=_o.URt(n,e)).s=n,o.l=e),o}(t);o&&(_o.ORt(o,c,p),R(t,o))}),l.forEach(function(t,o){!function(t){var o,i=15&f;if(i&&t.s&&t.l&&(o=(240&f)>>4))if(o--,o=1-o,3==i||4==i){var e=t.l[3]-t.s[3]>>o;e&&_o.ORt(t[e<0?"l":"s"],0,S(e))}else if(1==i||2==i){var n=t.l[2]-t.s[2]>>o;n&&_o.ORt(t[n<0?"l":"s"],S(n),0)}}(t),t.s&&_o.ORt(t.s,t[0],t[1]),t.l&&_o.ORt(t.l,t[0],t[1]),s=_o.URt(s,t)}),l.m=s&&[2*u+s[2],2*h+s[3]]||[0,0],l.x=l.m.slice(),m&&(l.x[x]=l.x[x]*y[x]/A-a[x]),l}var i,e,n=this,s=this.oGV,a=this.getPad(),l=this.gCtx(),u=this.getFormatText(),h=this.getLabelFixedWidth(),c=this.getLabelFixedHeight(),f=this.getSymbolAlign(),v=s.getRS(),y=Zt(s);return this.ctxTfi(function(){var o=t(this.getSymbolWidth(),l.fontHeight()),n=t(this.getSymbolHeight(),l.fontHeight());15&f&&o&&n&&(i=[o,n]),(e=s.isLC()?function(){for(var t,o=[],i=v[0],e=v.gdC(),n=e&&e.a.l,r=0,s=i.v.length;r1&&(!function(t){t=t||1,a=0;do{n=x/(V/++a-1)}while(ne&&i.push([e,n,l[0]-e,o[3]]),t<_o.ROf(o)&&i.push([t,n,_o.ROf(o)-t,o[3]])):((t=_o.BOf(l))>n&&i.push([e,n,o[2],l[1]-n]),t<_o.BOf(o)&&i.push([e,t,o[2],_o.BOf(o)-t]))),i}.call(this,l))&&s.forEach(function(o,i){t.drawShape(o,r,"ov"+i)}),l&&(2&i&&(e=a.toShape("select-overview"))&&t.drawShape(l,e),4&i&&(n=a.toShape("select-overview-resize")||{fillColor:"dodgerblue"})&&this.s2OR(l).forEach(function(o){t.drawShape(o,n)}))},R.prototype.drawGL=function(t,o,i){var e=this.oGV,n=e.getPad(),r=1-this.isVdk(),s=o[r+2];e.getRS().ooX.forEach(function(e){var a=e.ogl,l=e.a.c.length;a&&Xo(t,o,a,{s:o[r],v:r,p:n,u:s/l,l:(e.o.reverse?-1:1)*l,f:i})})},R.prototype.p2OR=function(t){var o,i,e,n,r;return this.isSelectable()&&this.gAA().Has("overview-selection-resize")&&(o=this.getSelRect(),i=this.GetClientRect(),e=this.scaled(ji.X(t)-i[0]),n=this.scaled(ji.Y(t)-i[1]),this.s2OR(o).forEach(function(t,o){null==r&&_o.PInR(e,n,t)&&(r=o?1:-1)}),null==r&&_o.PInR(e,n,o)&&(r=0)),r},R.prototype.rurScroll=function(t,o){var i=this,e=i.oGV;o.rurScrollS=function(t,o){var n=K(i.gPtr(t)),r=i.GetClientRect(),s=i.gSI(),a=1-i.isVdk(),l=(n[a]-r[a])/r[2+a]*s.range;(ls.pos+s.page)&&(l=T(l-s.page/2),a?(e.SetScroll({y:l}),o.oV=e.GetSI(!1)):(e.SetScroll({x:l}),o.oH=e.GetSI(!0)))},o.rurSwipe=function(t){t.w=e.oW,t.s.dx=-t.s.dx,t.s.dy=-t.s.dy},this.oGV.rurScroll(t,o)},R.prototype.onRurScrollD=function(t){function o(t){return this.unscaled(this.gSI().range*t/this.GetClientRect()[2+i])}var i=1-this.isVdk();if(i?(t.dx=0,t.dy=-o.call(this,t.dy)):(t.dx=-o.call(this,t.dx),t.dy=0),this.oGV.getRS().v!=i){var e=t.dx;t.dx=t.dy,t.dy=e}},O.prototype.gSI=function(){var t=this.getRS().v,o=this.GetSI(1-t),i=this.GetClientRect()[2+t]-this.gCnt().c[2+t];return o.page-=i,o.range-=i,o},O.prototype.rTo=function(t,o,i){if(i=i||{},oi?0:(o[3]-u)/2),~~(l+1),~~(u+1)]||null})}.call(this),inner:n.call(this,s),onpaint:function(t,o){this.ctxTfi(function(t){e.call(this,s,t,o,a)},this,t)},alwaysPaint:!0,thisArg:this}},{thisArg:this,ttD:this.getToolTipDelay(),ttP:this.getToolTipPopDelay()})}},O.prototype.xA=function(){_o.A.Cancel("ss*"),_o.A.Cancel(this.sEvcA)},O.prototype.ondown=function(t){return this.isSelectable()&&(this.xA(),this.gAA().Do(this,t),!_o.RUR.Rng()&&this.doRUR(t,function(t){switch(t.drag.status){case 4:case 5:this.rurActionClick(null,t)}},this)),!0},O.toClick=function(t){return{dblClick:t.drag&&(t.drag.long||1!=t.drag.click)||!1,button:_o.e2B(t),modifiers:_o.ModK(t)}},O.prototype.toClick=function(t,o){},O.prototype.onA=function(t,o){t&&(_o.H.VisitA(this,t),this.inv(),this.onanchorclick(t))},O.prototype.onClick=function(t){var o=O.toClick(t),i=this.e2V(t),e=this.gPtr(t);i&&(o.view=i,i.toClick&&i.toClick(t,o)),this.onA(this.p2A(e),o),this.onclick(o)},O.prototype.onclick=function(t){this.oLts.onclick.do(t)},O.prototype.onanchorclick=function(t){this.oLts.onanchorclick.do(t)},O.prototype.onDblClk=function(t){},O.prototype.e2RUR=function(t){var o=this.gPtr(t),i=this.e2W(t)||this.oW,e=i.GetClientRect();return{w:i,c:i.oC,x:ji.X(o)-e[0],y:ji.Y(o)-e[1]}},O.prototype.doRUR=function(t,o,i,e){var n,r,s=this.gAA(),a=this.oT.lRA.bind(this.oT);return _o.RUR.Do(t,function(t){switch(r=t.drag.status){case 1:a(7),n=this.oT.oRUR=this.e2RUR(t),this.lRURLong&&t.drag.setCursor(_o.GP.Get("long",this.getCursors()));break;case 3:s.CanDo(t,1)&&(_o.RUR.Cancel(),this.norurAction(t,1)||(this.lRURLong=(this.lRURLong||0)+1,s.Do(this,t,1),--this.lRURLong));break;case 5:this.norurAction(t,2);break;case 2:case 6:a(4),this.oCr.upd(this.gPtr(t))}!(n&&n.c&&n.c.bRUR&&n.c.bRUR(t))&&o.call(i,t),n&&n.c&&n.c.eRUR&&n.c.eRUR(t),7==r&&(n&&(n=this.oT.oRUR=null),a(t.drag.click||t.drag.long?46:62))},this,e)},O.prototype.bRUR=function(t){return this.gAA().Has("zoom")&&this.exZ(t),t.drag.extra},O.prototype.exZ=function(t){var o;t.drag.extra&&(o=t.drag.extra[0])&&this.zBy(o.offset,this.oT.oRUR.oZI=this.oT.oRUR.oZI||this.p2ZI(o.start))},O.prototype.rurScroll=function(t,o){if(t){var i={oH:this.GetSI(!0),oV:this.GetSI(!1)};this.doRUR(t,function(t){var e=this.oT.oRUR||{};switch(t.drag.status){case 1:e.ao=o&&o.rurOnlyAO,this.rAO(),function(t,i){o&&o.rurScrollS&&o.rurScrollS(t,i)}(t,i);break;case 7:e.ao=null,t.drag.cancel?(e.cancel=!0,this.Smooth(function(){this.rurScrollD(0,0,i)})):!t.drag.swipe&&this.rAO(),function(t,i){o&&o.rurScrollE&&o.rurScrollE(t,i)}(t,i);break;case 2:e.dRSD||this.rurScrollD(-t.drag.offset.dx,-t.drag.offset.dy,i);break;case 6:var n={w:e.w,s:t.drag.swipe},r=n.s;if(r.dx&&r.dy){var s=S(r.dx),a=S(r.dy);d(s,a)-y(s,a)>32&&(s>a?r.dy=0:r.dx=0)}o&&o.rurSwipe&&o.rurSwipe.call(o.thisArg||this,n),n.w&&n.w.SSw.call(n.w,n.s);break;case 4:case 5:o&&o.rurStatus&&o.rurStatus.call(o.thisArg||this,t)}},this)}},O.prototype.onRurScrollD=function(t){var o=this.oT.oRUR;o&&o.c!=this&&o.c.onRurScrollD&&o.c.onRurScrollD.call(o.c,t)},O.prototype.rurScrollD=function(t,o,i){var e,n=r(i);(i=i||{oH:this.GetSI(!0),oV:this.GetSI(!1)}).oH=i.oH||{pos:0,page:0},i.oV=i.oV||{pos:0,page:0},e={dx:t,dy:o},this.onRurScrollD(e),(n||e.dx||e.dy)&&this.SetScroll({x:i.oH.pos+this.scaled(e.dx),y:i.oV.pos+this.scaled(e.dy)})},O.prototype.rurDrag=function(t,o){function i(t){return!o||s(o.rurAllow)||t==(o.rurAllow&t)}function e(){l.frame=ji.Rect(l.from,l.to),o&&o.rurDrag&&o.rurDrag.call(g,l),l.frame=function(t,i){return o.noCA?t:n().rtCA(t,i)}(l.frame,!1),c.onRurDragD&&c.onRurDragD.call(c,o,l),o&&o.rurDragD&&o.rurDragD(l),u&&u.SetClient(l.frame)}function n(){return a||(a=function(){var t=h;return u&&u.oO.relative!=h.GetCanvas()&&(t=c),t}())}function r(t,i){return o.noCA?t:n().ptCA(t,i)}if(t){var a,l,u,h=this,c=this.e2V(t)||h,p=c.getRurDragScrollOut?c.getRurDragScrollOut():c.GetClientRect(),f=[{oGV:this,oH:this.GetSI(!0),oV:this.GetSI(!1)}],g=this,v=0,y=0;this.oT.feGV(function(t){t!=this&&f.push({oGV:t,oH:t.GetSI(!0),oV:t.GetSI(!1)})},this),this.doRUR(t,function(t){switch((l=l||function(t){a=null;var o=r(h.gPtr(t));return{from:o,to:o,event:t,frame:ji.Rect(o,o)}}(t)).event=t,t.drag.status){case 1:if(function(){c.onRurDragS&&(o=c.onRurDragS.call(c,o,l)),o&&o.rurDragS&&o.rurDragS(l)}.call(this),g=o&&o.thisArg||g,o&&(this.onRURDragStart(o.rurName,t),o.rurDragStart&&o.rurDragStart.call(g,l)),this.oT.oRUR.ao=o&&o.rurOnlyAO,this.rAO(),o&&o.rurEFPaint){e();var n={name:"frame",client:l.frame,relative:h.GetCanvas(),clip:h.GetCanvas(),inflateClient:8,onpaint:function(t,i){o.rurEFPaint.call(g,l,t,i,this)}};o.rurEFOpts&&o.rurEFOpts.call(g,l,n),u=_o.EF.Create(n)}break;case 7:var s=t.drag.cancel?this.oT:this,S=this.oT.oRUR;S&&(S.ao=null),s.bU(),t.drag.cancel?(S&&(S.cancel=!0),this.Smooth(function(){f.forEach(function(t){t.oGV.rurScrollD(0,0,t)}),o&&o.rurCancel&&o.rurCancel.call(g,l)})):!t.drag.click&&o&&o.rurDrop&&o.rurDrop.call(g,l),this.rAO(),s.eU(),_o.EF.Destroy(u),o&&(o.rurDragEnd&&o.rurDragEnd.call(g,l),t.drag.click&&o.rurStatus&&o.rurStatus.call(g,t),this.onRURDragEnd(o.rurName,t)),function(){c.onRurDragE&&c.onRurDragE.call(c,o,l),o&&o.rurDragE&&o.rurDragE(l)}.call(this);break;case 2:var m=!1,C=v!=t.drag.offset.dx||y!=t.drag.offset.dy;if(C&&(v=t.drag.offset.dx,y=t.drag.offset.dy),!_o.EyR(p)&&function(t){return!0}.call(this,t)){var x=t.drag.current.x,R=t.drag.current.y,A=i(1)&&x-_o.LOf(p)||0;A>0&&(A=d(0,x-_o.ROf(p)));var T=i(2)&&R-_o.TOf(p)||0;T>0&&(T=d(0,R-_o.BOf(p))),(m=A||T)&&this.rurScrollD(A,T)}(m||C)&&(l.to=r(t.drag.current),l.dx=l.to.x-l.from.x,l.dy=l.to.y-l.from.y,e())}},this,{contiguously:!0,client:p})}},O.prototype.onRURDragStart=function(t,o){},O.prototype.onRURDragEnd=function(t,o){},O.prototype.rurAO=function(t){return{}},O.prototype.allowRur=function(t,o){function i(t){return _o.Graph.allowRurPart(this.oT.w2P(o.rurOnlyW),t||"view",o.rurFlags)}var e=r(t);if(e)switch(o.rurName){case"scroll":e=i.call(this,"view,legend");break;case"fit":e=i.call(this,"view,overview")}return e},O.prototype.rurAction=function(t,o,i){var e={rurName:t,rurFlags:o,rurOnlyW:this.e2W(i),rurOnlyAO:this.rurAO(i),rurStatus:function(o){this.rurActionClick(t,o)}};if(this.allowRur(i,e)){var n="rur"+_o.getP(function(t){for(var o,i=Qo,e=0,n=t.length;e2048},O.prototype.Smooth=function(t,o,i){function e(t){i.cbkI&&i.cbkI.call(o,t)}function n(t){i.cbkT&&i.cbkT.call(o,t)}function s(t){i.cbkR&&i.cbkR.call(o,t)}function a(){var t=this.oCnt,o=new Map;return this.getRS().feA(function(i){var e=i.s.isVisible()&&It(i,t&&t.s),n=null;e&&e.forEach(function(t){n=n||new Map,t.forEach(function(o,i){n.set(t.iO+i,o)})}),o.set(i.s.GetIndex(),n)}),o}function u(){var t=this.oCnt,o=new Map;return this.getRS().feA(function(i){var e=i.s.isVisible()&&It(i,t&&t.s),n=i.p,r=null;e&&e.forEach(function(t){r=r||new Map,t.forEach(function(o,i){i+=t.iO,r.set(i,n&&i1||function(){var o=0;return t.mV2FT.forEach(function(t,i){o|=i.oLg.isVisible()|i.oOv.isVisible()}),o}())&&(t.oWRend=null)}function g(){t.call(o)}if(t instanceof Function)if(o=o||this,i=i||{},!this.getSmooth()||_o.A.Rng(this.oT.sSA))e(),this.cwbU(),g.call(this),s(),this.cweU(),n();else{var v=this.gCW(),y=this.oT.rgGV,S=new Map,m=F,C=It,x=Ft;y.forEach(function(t){S.set(t,{dva:t.gdVA(),val:a.call(t),per:u.call(t),msv:h.call(t),vpi:c.call(t),scr:t.GetScroll(),ord:t.getRS().o,typ:t.getRS().type()})}),this.oW.Smooth(function(){g.call(this)},{name:this.oT.sSA,thisArg:this,duration:this.getSmooth(),cbkR:function(t){t.mV2FT.forEach(function(o,i){i.resVP(),i.resLO(),i.lI++,(o.scr.from.x-o.scr.to.x||o.scr.from.y-o.scr.to.y)&&i.SetScroll({x:bo(o.scr.from.x,o.scr.to.x,t.progress),y:bo(o.scr.from.y,o.scr.to.y,t.progress)}),--i.lI}),v.Render(t.oWRend),s(t)},cbkI:f,cbkT:function(t){v.lSiz--,1==t.progress&&(F=m,It=C,Ft=x,t.mV2FT.forEach(function(t,o){o.resVP(),o.getMV=O.prototype.getMV,o.getVP=O.prototype.getVP}),this.oT.bU(),n(t),this.oT.eU())}})}},O.prototype.sRng=function(){return _o.A.Rng(this.oT.sSA)},O.prototype.Smoothless=function(t,o){t instanceof Function&&(this.cwbU(),t.call(o||this),this.cweU())},O.prototype.getRS=function(){return this.oRS||(this.oRS=function(){var t=new I(this.oS,{c:this.getCategoryAxis(),v:this.getValueAxis(),x:this.getXAxis(),y:this.getyAxis()},this),o="cRS"+t.type();return this[o]&&this[o].call(this,t),t}.call(this))},O.prototype.getMV=function(){return this.oMV||(this.oMV=new pt(this))},O.prototype.getAx=function(){return this.oAx||(this.oAx=new ut(this))},O.prototype.getXY=function(){return this.oXY||(this.oXY=new ct(this))},O.prototype.getVP=function(){return this.oVP||(this.oVP=function(){var t,o=this.getRS(),i=o.type();return this.ctxTfi(function(e){this.ctxScale(e,this.GetClientRect(),function(n){var r=this.getXY().view(n),s=new Ho;o.forEach(function(t){(function(t,o,i,e){return this["gC"+i.s.getType()](t,o,i,e)}).call(this,e,r,t,s)},this),t={ax:i&&this["gAx"+i](e,r)||new Ho,c:s}})},this),t}.call(this))},O.prototype.ptCA=function(t,o){var i={x:ji.X(t),y:ji.Y(t)},e=this.GetScroll(),n=this.GetClientRect();return s(o)||o?(i.x-=n[0],i.y-=n[1],i.x=this.scaled(i.x),i.y=this.scaled(i.y),i.x+=e.x,i.y+=e.y):(i.x-=e.x,i.y-=e.y,i.x=this.unscaled(i.x),i.y=this.unscaled(i.y),i.x+=n[0],i.y+=n[1]),i},O.prototype.rtCA=function(t,o){return ji.Rect(this.ptCA(ji.R2C(t,17),o),this.ptCA(ji.R2C(t,68),o))},O.prototype.isExtSBS=function(){var t=this.gCW();return t&&12288==(12288&t.gSBs())},O.prototype.updSPR=function(){if(this.oW){var t=!1,o=this.oW.GetSI(!0),i=this.oW.GetSI(!1),e=this.GetPageSize(),n=this.getXY(),r=this.gCnt(),s=[n.w+r.fS[0],n.h+r.fS[1]];o||(s[0]=e[0]),i||(s[1]=e[1]),[o,i].forEach(function(o,i){o&&(e[i]!=o.page&&(t=!0,o.page=e[i]),s[i]!=o.range&&(t=!0,o.range=s[i]))},this),t&&(this.resXY(),this.oW.SetSI(o,i),!this.lI&&this.invAO())}},O.prototype.getScale=function(){return s(this.scale)&&(this.scale=this.getZoom()/100),this.scale},O.prototype.scaled=function(t){return t/this.getScale()},O.prototype.unscaled=function(t){return t*this.getScale()},O.prototype.ctxScale=function(t,o,i,e){t.translate(o[0],o[1]),t.save(),t.scale(this.getScale(),this.getScale()),i.call(e||this,[0,0,this.scaled(o[2]),this.scaled(o[3])]),t.restore(),t.translate(-o[0],-o[1])},O.prototype.dCTX=function(t,o,i,e){_o.pCTX(t,function(){this.ctxScale(t,o,function(o){this.ctxTfi(function(){i.call(e||this,o)},this,t)},this)},this)},O.prototype.onDrawPartScroll=function(t,o,i,e,n){function s(t,o){var i=(t-a[u])/a[u+2];return o?i:1-i}if(640==i){var a,l,u,h=this.getScrollBarsOrigin(),c=this.getRS();c.isXY()&&r(h)&&(a=[c.ooX.a.m,c.ooY.a.m,c.ooX.a.M-c.ooX.a.m,c.ooY.a.M-c.ooY.a.m],u=t.isV()?1:0,t.isV()&&nt(c.ooX)?l=ji.C2R([e[0]+e[2]/2,e[1]+s(0,c.ooY.o.reverse)*e[3]],3,3):!t.isV()&&nt(c.ooY)&&(l=ji.C2R([e[0]+s(0,!c.ooX.o.reverse)*e[2],e[1]+e[3]/2],3,3)),l&&o.drawShape(l,{fillColor:h,primitive:"Ellipse"}))}},O.prototype.onZoom=function(){this.scale=null,this.updSPR(),this.oT.onZoom()},O.prototype.GetZoom=function(){return this.oO.zoom},O.prototype.SetZoom=function(t){this.cwbU(),this.oO.zoom=t,this.onZoom(),this.cweU()},O.prototype.getZoom=function(){var t=this.GetZoom(),o=this.getZoomLevels();return s(t)&&(t=100),d(o[0],y(o[o.length-1],t))},O.prototype.GetZoomLevels=function(){return this.oO.zoomLevels},O.prototype.SetZoomLevels=function(t){this.cwbU(),this.oO.zoomLevels=t,this.onZoom(),this.cweU()},O.prototype.getZoomLevels=function(){var t=[100],o=new _o.Arr;return C(this.GetZoomLevels(),"25,50,75,100,110,125,150,175,200,250,300,400,500").split(Jo).forEach(function(t){o.push(d(10,y(1e3,V(t,100))))}),o.isEmpty()||(t=o.byO()).sort(function(t,o){return t-o}),t},O.zoomToLevel=function(t,o){var i=0,e=o.length;if(t>=o[i])for(;t>=o[i+1]&&iS(n)?e:n)),i=this.ptCA(o.ptA,!1),this.rurScrollD(i.x-ji.X(o.pt)-e,i.y-ji.Y(o.pt)-n),this.onRurScrollD({dx:-e,dy:-n}),this.cweU()},O.prototype.rurFit=function(t,o){o.rurOnlyAO={},o.rurEFPaint=function(t,o,i,e){o.drawShape(i,this.toShape("frameFit"))},1!=this.getRS().type()||o.rurFlags&&o.rurFlags.has("zoom")?o.rurDrop=function(t){this.FitToClient(ji.Rect(t.from,t.to))}:(o.rurDrag=function(t){var o=this.rtCA(this.GetClientRect(),!0),i=this.getRS().v;t.frame[1-i]=o[1-i],t.frame[3-i]=o[3-i]},o.rurDrop=function(t){this.Smooth(function(){var o=this.getRS().v,i=this.gCnt().c[o],e=K(t.from)[o]-i,n=K(t.to)[o]-i;this.rTo(e,n)})}),this.rurDrag(t,o)},O.prototype.Soom=function(t,o){function i(){var t=this.GetClientRect();s=this.ptCA(o,!1),a={x:t[0],y:t[1]}}var e=r(t),n=r(o);if(e||n){var s,a,l=100*this.getScale();i.call(this),((e&=l!=t)||(n&=s.x!=a.x||s.y!=a.y))&&(_o.A.Cancel("soom"),_o.A.Progress(function(o){this.cwbU(),e&&this.SetZoom(l+(t-l)*o),n&&(i.call(this),this.rurScrollD((s.x-a.x)*o,(s.y-a.y)*o)),this.cweU()},{name:"soom",thisArg:this,duration:this.getSmooth(),onXDoL:!1,transition:"swipe"}))}},O.prototype.Home=function(){this.Soom(100,[0,0])},O.prototype.FitToClient=function(t){function o(t){return{x:t[0],y:t[1]}}var i=s(t);if(i)this.Home();else if(!_o.EyR(t)){var e=this.GetClientRect(),n=this.getScale(),r=y(e[2]/t[2],e[3]/t[3]),a=o(t);i&&r>n?r=null:r=0&&g=0&&t=U&&R<=I&&Q.add("r",{p:[R],o:u,s:X.toShape("cursorLine")}),(O=i&&function(t){var o,e,n,s,a,l,u=X.toShape("cursorValueAxisTooltip"),h=d(0,V(H.valueAxisPad,di)),c=_o.pad2A(u&&u.pad||0)[0];return r(e=tt(t,i,B,X))&&(n=Oo(e,i.o.cursorFormat,q))&&(s=W.sizeHTMLText(n,0,_o.ToTFI(u&&u.tfi)),a=[(l=ji.C2R(j($(0,null,e,i,B,X),ji.RPO([s.width/2+h+c,0],[0,0],Gt(L+90)),[-1,-1]),s.width,s.height))[0]+l[2]+c+ri,l[1]+l[3]/2],(o=o||new Map).set("0",{t:n,a:Yt(i.o,"labels","l")+L+90,c:_o.FRt(l,B.x),s:u,o:a})),o}(R))&&(Q.add("yT",O),O.forEach(function(t,o){Q.asp("yT."+o+".c"),Q.asp("yT."+o+".o")})),m&&v.length&&(2==m&&function(t,o,e){var n=[];v.forEach(function(o,s){var a,u=tt(e,i,B,X),h=!r(u);h||(h=l(a=o.v[t])?ud.apply(d,a):ud(0,a)),h&&n.push(s)}),n.length&&Po(v,n)}(g,0,R),(b=o(g))&&(Q.add("sT",b),b.forEach(function(t,o){Q.asp("sT."+o+".c"),Q.asp("sT."+o+".o")}))))}))),Q.get()},O.prototype["cRS-3"]=function(t){var o=t.gdC();o&&(t.l=o.a.l.length)},O.prototype["gAx-3"]=O.prototype["gAx-1"],O.prototype["gVA-3"]=O.prototype["gVA-1"],O.prototype["dAx-3"]=O.prototype["dAx-1"],O.prototype["p2C-3"]=function(t){var o,i,e,n,s,a,u,h,c,p,f,g,v,S,m,x,R,A,T,b,O,E,L,M=this,P=M.gCtx(),D=M.getMisc(),z=M.oCnt,U=M.oCr,I=M.back("cursorSerieTooltipAlpha",!0),Y=M.back("cursorSerieTooltipBlend",!0),X=w(D.digits,ci),W=Ae();return W.reset(),z&&(u=K(M.p2V(t)),n=k(z),s=ji.R2C(n),wt(u,s)<=y(n[2],n[3])/2&&(a=M.getRS(),h=M.getMV(),x=V(D.circularStartAngle,Ai),M.getAx(),o=a.gdV(),(e=a.gdC())&&e.a.l,R=(i=F(o)).m,A=i.M,T=$(0,null,R,o,z,M),b=$(0,null,A,o,z,M),o.o.reverse&&(L=R,R=A,A=L,L=T,T=b,b=L),O=wt(s,T),E=wt(s,b),M.dCTX(P,M.GetClientRect(),function(){c=Gt(Mt(s,b,u)),(p=~~(c/h.t))>=0&&p=0&&t=O&&g<=E&&W.add("r",{p:[g],o:s,s:M.toShape("cursorLine")}),(m=o&&function(t){var i,e,n,s,a,l,u=M.toShape("cursorValueAxisTooltip"),h=d(0,V(D.valueAxisPad,di)),c=_o.pad2A(u&&u.pad||0)[0];return r(e=tt(t,o,z,M))&&(n=Oo(e,o.o.cursorFormat,X))&&(s=P.sizeHTMLText(n,0,_o.ToTFI(u&&u.tfi)),a=[(l=ji.C2R(j($(0,null,e,o,z,M),ji.RPO([s.width/2+h+c,0],[0,0],Gt(x+90)),[-1,-1]),s.width,s.height))[0]+l[2]+c+ri,l[1]+l[3]/2],(i=i||new Map).set("0",{t:n,a:Yt(o.o,"labels","l")+x+90,c:_o.FRt(l,z.x),s:u,o:a})),i}(g))&&(W.add("yT",m),m.forEach(function(t,o){W.asp("yT."+o+".c"),W.asp("yT."+o+".o")})),(S=function(t,o){var i,e,n=M.toShape("cursorSerieTooltip"),r=M.getVP().c,s=[t,o],u=Mo(Ot(c)+(x+90));return zt(a.all(),null,function(t){return zt(r[Wt(t.s)],null,function(o){return zt(o,null,function(o){if(wt(s,o)<=Pt(o)/2){var e=(i=i||new Map).get(t);return!e&&i.set(t,e=[]),e.push(o),!0}})})}),i&&i.forEach(function(t,o){t.forEach(function(t,i){var r,s,a,h,c=t.p.iiV,p=c.join(),f=t.p.b;(s=Oo({iiV:l(c)?c:null,v:p,s:o.s},o.s.getCursorFormat(),X))&&(r=$t(n,f,Bt(f,I,Y)),a=Lo(t,P.sizeHTMLText(s,0,_o.ToTFI(r&&r.tfi)),u,Pt(t)/2+ri,r,h=[]),(e=e||new Map).set(C(o.s.GetIndex())+":"+i,{t:s,c:a,s:r,o:h}))})}),ko(e,{h:~"tb".indexOf(u),fit:z.x,and:!1}),e}(ji.X(u),ji.Y(u)))&&(W.add("sT",S),S.forEach(function(t,o){W.asp("sT."+o+".c"),W.asp("sT."+o+".o")})))}))),W.get()},O.prototype.gAx1=function(t,o){return function(t,o,i,n,r){var s,a,l,u,h=i.getRS(),c=i.getAx().cc,p=c&&c[0].oR;return n=n||new Ho,r=r||Yi,p&&(l=[(s=k(o))[a=~"tb".indexOf(p.s)?0:1],Q(0,s,h.gdV())[1-a]],u=[s[2+a],0],a&&(e(l),e(u)),X(t,[l[0],l[1],u[0],u[1]],s,p,p.o.majorGridLines||B(!1,p.o,h),o,i,n,r)),n}(t,o,this,function(t,o,i,e,n,r){var s={n:r||Ii,i:0},a={n:n||Fi,i:0};return e=e||new Ho,Z(t,"l",o,i,e,a),Z(t,"r",o,i,e,a),Z(t,"t",o,i,e,s),Z(t,"b",o,i,e,s),e}(t,o,this))},O.prototype.gVA1=function(t){for(var o,i=this.getRS(),e=this.getAx(),n=i.v?"tb":"lr",r=0,s=n.length;r=0&&f=0&&vd.apply(d,a):ud(0,a)),c&&e.push(n)}),e.length&&Po(g,e)}(f,0,x),(T=o(f))&&(I.add("sT",T),T.forEach(function(t,o){I.asp("sT."+o+".c"),I.asp("sT."+o+".o")}))))}))),I.get()},O.prototype.gAx2=function(t,o){var i=new Ho,e=o.x,n=this.getAx(),r=n.x,s=n.y;return Y(t,P(o,s),e,r,r.o.majorGridLines||Ci,o,this,i,Ii),Y(t,D(o,r),e,s,s.o.majorGridLines||Ci,o,this,i,Fi),i},O.prototype.gVA2=function(t){var o=this.getAx();t.set(o.x.o.name="x",F(o.x)),t.set(o.y.o.name="y",F(o.y))},O.prototype.dAx2=function(t,o,i,e){if(!e){var n=this.getAx(),r=n.x,s=n.y;St(t,i,Ii,null,r.o.majorGridLines||Ci),St(t,i,Fi,null,s.o.majorGridLines||Ci),St(t,i,Ii,r.o),St(t,i,Fi,s.o)}},O.prototype.p2C2=function(t){function o(t,o,i,e,n){if(o&&i){var s,l,u,h,c,p=y.toShape(n),f=i.s;return r(l=J(t,a,i,e))&&(u=Oo(l,i.o.cursorFormat,G))&&(c=Lo(Q(l,o,i),S.sizeHTMLText(u,0,_o.ToTFI(p&&p.tfi)),f,d(0,V(m.valueAxisSize,vi))+d(0,V(m.valueAxisPad,di)),p,h=[]),(s=s||new Map).set("0",{t:u,a:Yt(i.o,"labels",f),c:_o.FRt(c,x.x),s:p,o:h})),s}}var i,n,s,a,u,h,c,p,f,g,v,y=this,S=y.gCtx(),m=y.getMisc(),x=y.oCnt,R=y.oCr,A=Ae(),T=y.back("cursorSerieTooltipAlpha",!0),b=y.back("cursorSerieTooltipBlend",!0),G=w(m.digits,ci);return A.reset(),x&&(h=y.getAx(),u=y.getRS(),i=K(y.p2V(t)),a=k(x),c=P(x,h.y),p=D(x,h.x),n=u.v,y.dCTX(S,y.GetClientRect(),function(){A.add("v",n),g=i[n],R.getShowCursorXLine()&&A.add("x",{p:[g],s:y.toShape("cursorLine")}),(f=o(g,n?p:c,n?h.y:h.x,n,"cursorXAxisTooltip"))&&(A.add("xT",f),f.forEach(function(t,o){A.asp("xT."+o+".c"),A.asp("xT."+o+".o")})),v=i[1-n],R.getShowCursorYLine()&&A.add("y",{p:[v],s:y.toShape("cursorLine")}),(f=o(v,n?c:p,n?h.x:h.y,1-n,"cursorYAxisTooltip"))&&(A.add("yT",f),f.forEach(function(t,o){A.asp("yT."+o+".c"),A.asp("yT."+o+".o")})),(s=function(t,o){var i,r,s=y.toShape("cursorSerieTooltip"),a=y.getVP().c,h=[t,o];return n&&e(h),zt(u.all(),null,function(t){return zt(a[Wt(t.s)],null,function(o){return zt(o,null,function(o){if(wt(h,o)<=Pt(o)/2){var e=(i=i||new Map).get(t);return!e&&i.set(t,e=[]),e.push(o),!0}})})}),i&&i.forEach(function(t,o){t.forEach(function(t,i){var e,n,a,u,h=t.p.iiV,c=h.join(),p=t.p.b;(n=Oo({iiV:l(h)?h:null,v:c,s:o.s},o.s.getCursorFormat(),G))&&(e=$t(s,p,Bt(p,T,b)),a=Lo(t,S.sizeHTMLText(n,0,_o.ToTFI(e&&e.tfi)),"t",Pt(t)/2+ri,e,u=[]),(r=r||new Map).set(C(o.s.GetIndex())+":"+i,{t:n,c:a,s:e,o:u}))})}),ko(r,{h:n,fit:x.x}),r}(g,v))&&(A.add("sT",s),s.forEach(function(t,o){A.asp("sT."+o+".c"),A.asp("sT."+o+".o")}))})),A.get()},O.prototype.gCradarline=it,O.prototype.dCradarline=function(t,o,i,e){Ut(i,function(i){(function(t,o,i,e,n,r){var s=Zt(this),a=i.s;Tt(t,k(o),e,$t(this.toShape(a)||this.toShape(n)||r,s[a.GetIndex()%s.length]),i.s,this)}).call(this,t,o,i,e.get(Wt(i.s)),"radarLine",qi)},this,!0)},O.prototype.p2Vradarline=et,O.prototype.gCradararea=it,O.prototype.dCradararea=function(t,o,i,e){Ut(i,function(i){(function(t,o,i,e,n,r){var s=Zt(this),a=i.s,l=a.GetIndex(),u=s[l%s.length],h=Jt(this,s);Tt(t,k(o),e,$t(this.toShape(a)||this.toShape(n)||r,u,h[l%h.length]),i.s,this)}).call(this,t,o,i,e.get(Wt(i.s)),"radarArea",Qi)},this,!0)},O.prototype.p2Vradararea=et,O.prototype.gCradarcolumn=function(t,o,i,e){var n;if(this.isLC()){var r=Zt(this),s=this.getRS();n=function(t){t.p.i=s.goI(t.p.i),t.p.b=t.p.b2=r[t.p.i%r.length]}}return it.call(this,t,o,i,e,n)},O.prototype.dCradarcolumn=function(t,o,e,r){var s=qt(this),a=Qt(this),l=Zt(this);Jt(this,l);Ut(e,function(e){!function(t,o,e,r,u,h){if(e){function c(t){return Gt(Mt(d,[ji.X(d),-128],t))}function p(t){return wt(d,t)}var f,g,v,d=ji.R2C(o),y=h.getMisc(),S=u.s,m=h.getMV().sOf(u),C=V(y.valueDistOuterCircular,Vi),x=oo(h),R=Ao(h,S),A=w(h.getMisc().digits,ci),T=new Map,b=new Map,G=l[u.s.GetIndex()%l.length];(f=$t(r,G,Bt(G,s,a))).primitive=f.primitive||"Pie",f.pArg=f.pArg||{},h.isLC()&&(g=function(t){var o=t.p.b2||t.p.b,i=$t(r,o,Bt(o,s,a));return i.primitive=i.primitive||"Pie",i.pArg=i.pArg||{},i},v=Uo),n(t,!0,function(){e.forEach(function(o){o.forEach(function(o){var i=2*p(o),e=g&&g(o)||f,n=!v||v(o);return n&&(e.pArg.startAngle=c(o)-m/2,e.pArg.sweepAngle=m,t.drawShape(ji.C2R(d,i,i),e,o)),!n}),R&&o.forEach(function(o){if(!v||v(o)){var e=b.get(o.p.b),n=T.get(o.p.b),r=no(h,o.p.b);!e&&b.set(o.p.b,e=to(h,o.p.b)),!n&&T.set(o.p.b,n=io(h,o.p.b)),ht(t,o,i(ao(o.p,S.getValueFormat(),A),o.p.b),{flags:R,point:e,line:n,back:r,to:lo(d,p(o)+C,c(o)),extby:x/2},h)}})})})}}(t,k(o),r.get(Wt(e.s)),this.toShape(e.s)||this.toShape("radarColumn")||Ji,e,this)},this,!0)},O.prototype.p2Vradarcolumn=et,O.prototype.gCpolarline=function(t,o,i,e){return W(0,i,(this.toShape(i.s)||this.toShape("polarLine")||te).size,o,this,e,Wt(i.s))},O.prototype.dCpolarline=function(t,o,i,e){var n=Zt(this),r=i.s;Tt(t,k(o),e.get(Wt(r)),$t(this.toShape(r)||this.toShape("polarLine")||te,n[r.GetIndex()%n.length]),r,this,{closed:!1})},O.prototype.p2Vpolarline=et,O.prototype.gCpolararea=function(t,o,i,e){return W(0,i,(this.toShape(i.s)||this.toShape("polarArea")||oe).size,o,this,e,Wt(i.s))},O.prototype.dCpolararea=function(t,o,i,e){var n=Zt(this),r=i.s,s=r.GetIndex(),a=n[s%n.length],l=Jt(this,n);Tt(t,k(o),e.get(Wt(r)),$t(this.toShape(r)||this.toShape("polarArea")||oe,a,l[s%l.length]),r,this)},O.prototype.p2Vpolararea=O.prototype.p2Vradararea,O.prototype.gCpolarscatter=function(t,o,i,e){return W(0,i,(this.toShape(i.s)||this.toShape("polarScatter")||$i).size,o,this,e,Wt(i.s))},O.prototype.dCpolarscatter=function(t,o,i,e){var n=Zt(this),r=i.s,s=r.GetIndex(),a=n[s%n.length],l=Jt(this,n),u=V(this.getMisc().valueDistOuterCircular,Vi),h=ji.R2C(k(o));bt(t,k(o),e.get(Wt(r)),$t(this.toShape(r)||this.toShape("polarScatter")||$i,a,l[s%l.length]),r,this,{flags:1|Ao(this,r),to:function(t,o){return uo(t,u,Gt(Mt(h,[ji.X(h),-128],t)),this)},extby:function(t,o){return o/2},thisArg:this})},O.prototype.p2Vpolarscatter=et,O.prototype.gCpie=function(t,o,i,e){var n,r,s,a,l,u,h,c,p,f,g=this,v=g.getMisc(),S=g.getRS(),m=S.dis(),C=d(0,m.indexOf(i)),x=m.length||1,R=function(){var t=[],o=It(i),e=S.gdC(),n=e&&e.a.l,r=Zt(g);return o.length&&o[0].forEach(function(o,e){var s=Ft(i,e);t.push({i:e,c:n&&et.p.v&&(t.p.b2=r)})},O.prototype.dCwaterfall=function(t,o,i,n){Ut(i,function(i){(function(t,o,i,n,s,a){function l(t,o){return V(t)=0;i-=2)o.push(t.splice(i,1)[0]);t.push.apply(t,o)}},to:function(t,o,e,n){var r=t.p.v;return ho(t,u,(i.oY.o.reverse?-1:1)*(n[n.length-e-1].p.v-r),this)},extby:h/2,thisArg:this})}).call(this,t,o,i,e.get(Wt(i.s)),"rangeArea",pe)},this,!0)},O.prototype.p2Vrangearea=et,O.prototype.gCcandlestick=function(t,o,i,e){return ot.call(this,t,o,i,e,function(t,o){o(t[0],t),o(t[1],t),o(t[2],t),o(t[3],t)},function(t,o,i,e){var n,s,a=jt(this),l=a.length&&a[e.s.GetIndex()%a.length];if(l&&!(o%4)&&((n=i[o+3].p.v)<(o?i[o-1].p.v:n)&&(s=l),r(s)))for(var u=0;u<4;u++)i[o+u].p.b2=s;t.p.ii=o%4})},O.prototype.dCcandlestick=function(t,o,i,e){yo.call(this,t,o,i,e,"candleStick",fe,So)},O.prototype.p2Vcandlestick=et,O.prototype.gCohlc=O.prototype.gCcandlestick,O.prototype.dCohlc=function(t,o,i,e){yo.call(this,t,o,i,e,"ohlc",ge,mo)},O.prototype.p2Vohlc=et,O.prototype.isDef=function(){return this==this.oT.oGV},O.prototype.GetTfi=function(){return this.oO.tfi},O.prototype.SetTfi=function(t){this.oT.resXY(function(){this.resAx(),this.nFH=0,this.oO.tfi=t||null},this)},O.prototype.getTfi=function(){return this.opt("tfi")},O.prototype.getFH=function(){return this.nFH||(this.nFH=function(){return this.ctxTfi(function(t){return t.fontHeight()})}.call(this))},O.prototype.ctxTfi=function(t,o,i){return Vt(i||this.gCtx(),this.getTfi(),t,o||this)},O.prototype.getFont=function(){return this.ctxTfi(function(t){return _o.GetFont(t)})},O.prototype.GetLocked=function(){return this.oO.locked},O.prototype.SetLocked=function(t){this.oT.resXY(function(){this.oO.locked=t},this)},O.prototype.getLocked=function(){return this.opt("locked",!1)},O.prototype.GetReadOnly=function(){return this.oO.readOnly},O.prototype.SetReadOnly=function(t){this.oT.resXY(function(){this.oAA=null,this.oO.readOnly=t},this)},O.prototype.isReadOnly=function(){return this.opt("readOnly",!1)},O.prototype.GetWheelChange=function(){return this.oO.wheelChange},O.prototype.SetWheelChange=function(t){this.oT.resXY(function(){this.oO.wheelChange=t},this)},O.prototype.getWheelChange=function(){return this.opt("wheelChange",18)},O.prototype.GetSmooth=function(){return this.oO.smooth},O.prototype.SetSmooth=function(t){this.oO.smooth=t,!this.lI&&this.rAO()},O.prototype.getSmooth=function(t){return!t&&this.islow()?0:d(0,V(this.opt("smooth",125)))},O.prototype.GetShapes=function(){return this.oO.shapes},O.prototype.SetShapes=function(t){this.oT.resXY(function(){this.sShs=null,this.oO.shapes=t},this)},O.prototype.defShp=function(){return'{"frameColor":null,"length": "18"}(valueLine),{"primitive":"Circle","fillColor":"white","frameColor":null,"frameSize":"2","size": "8"}(valuePoint),{"frameColor":null,"pad": "4"}(valueBack),{"frameColor":null,"frameSize":"2"}(line,radarLine,polarLine,scatterLine),{"fillColor":null,"frameColor":null,"frameSize":"2"}(radarArea,polarArea,column,area,scatterArea),{"primitive":"Circle","fillColor":null,"frameColor":null,"size": "4"}(scatter,polarScatter),{"fillColor":null,"frameColor":"white","frameSize":"2"}(pie),{"primitive":"Circle","fillColor":null,"frameColor":null}(bubble),{"fillColor":null,"frameColor":null}(radarColumn,waterFall,rangeArea,rangeColumn,candleStick,ohlc,legendSymbol),{"frameDash":"2"}(cursorLine),{"fillColor":"black","tfi":"","pad":"2"}(cursorCategoryAxisTooltip,cursorValueAxisTooltip,cursorXAxisTooltip,cursorYAxisTooltip),{"fillColor":null,"frameColor":null,"pad":"4"}(cursorSerieTooltip),{"fillColor":"gray"}(legendSymbolHidden),{"opacity":"0.5"}(legendSymbolHidden,legendLabelHidden),FrameSel(select-overview),FrameFit(frameFit),'},O.prototype.getShapes=function(){var t=this.sShs;return s(t)&&(s(t=this.GetShapes())&&(t=_o.Def.Graph.shapes),t=C(t,this.defShp()),this.sShs=t),t},O.prototype.toShapes=function(t){return t&&_o.S.GetOf(t.GetShape&&t.GetShape()||O.typeOf(t),this.getShapes(),"Graph")||null},O.prototype.toShape=function(t,o){var i=this.toShapes(_o.S.A2S(t)),e=i&&i.normal||i;return e&&o&&i&&i.disabled&&(e=_o.Inh(i.disabled,e)),e},O.prototype.GetCursors=function(){return this.oO.cursors},O.prototype.SetCursors=function(t){this.oT.resXY(function(){this.sCrs=null,this.oO.cursors=t},this)},O.prototype.defCrs=function(){return"pointer(anchor,legend)"},O.prototype.getCursors=function(){var t=this.sCrs;return s(t)&&(s(t=this.GetCursors())&&(t=_o.Def.Graph.cursors),t=C(t,this.defCrs()),this.sCrs=t),t},O.prototype.GetFormatText=function(){return this.oO.formatText},O.prototype.SetFormatText=function(t){this.oT.resXY(function(){this.nFT=null,this.oO.formatText=t},this)},O.prototype.getFormatText=function(){return s(this.nFT)&&(this.nFT=m(this.opt("formatText"),_o.DrawTextFormatEnum,_o.DrawTextFormatEnum.exTextAlignLeft|_o.DrawTextFormatEnum.exTextAlignVCenter|_o.DrawTextFormatEnum.exTextWordBreak|_o.DrawTextFormatEnum.exTextWordEllipsis)),this.nFT},O.prototype.GetInvalid=function(){return this.oO.invalid},O.prototype.SetInvalid=function(t){this.bU(),this.oO.invalid=t,this.eU()},O.prototype.getInvalid=function(){return this.opt("invalid")},O.prototype.GetPad=function(){return this.oO.pad},O.prototype.SetPad=function(t){this.oT.resXY(function(){this.rgPad=null,this.oO.pad=t},this)},O.prototype.getPad=function(){return this.rgPad||(this.rgPad=_o.pad2A(this.opt("pad",[4,4]))),this.rgPad},O.prototype.GetImageSize=function(){return this.oO.imageSize},O.prototype.SetImageSize=function(t){this.oT.resXY(function(){this.aIS=void 0,this.oO.imageSize=t},this)},O.prototype.getImageSize=function(){return void 0===this.aIS&&(this.aIS=this.opt("imageSize",null)),this.aIS},O.prototype.GetImageAlign=function(){return this.oO.imageAlign},O.prototype.SetImageAlign=function(t){this.oT.resXY(function(){this.nIA=null,this.oO.imageAlign=t},this)},O.prototype.getImageAlign=function(){return s(this.nIA)&&(this.nIA=~~this.opt("imageAlign",0)),this.nIA},O.prototype.GetAllowActions=function(){return this.oO.allowActions},O.prototype.SetAllowActions=function(t){this.cwbU(),this.oAA=null,this.oO.allowActions=t,this.cweU()},O.prototype.gAA=function(){return this.oAA||(this.oAA=new _o.AA(this.opt("allowActions",this.oT.defAA()),this.isReadOnly()?this.oT.roAA():Qo)),this.oAA},O.prototype.Scroll=function(t){return this.oW.Scroll(t,this.getWheelChange())},O.prototype.GetScrollPos=function(){return this.GetScroll()},O.prototype.SetScrollPos=function(t){this.SetScroll(t)},O.prototype.getScrollPos=function(){return this.GetScrollPos()},O.prototype.GetScrollBarsOrigin=function(){return this.oO.scrollBarsOrigin},O.prototype.SetScrollBarsOrigin=function(t){this.bU(),this.oO.scrollBarsOrigin=t,this.eU()},O.prototype.getScrollBarsOrigin=function(){var t=this.GetScrollBarsOrigin();return void 0===t&&(t="black"),t||null},O.prototype.GetToolTipDelay=function(){return this.oO.toolTipDelay},O.prototype.SetToolTipDelay=function(t){this.oO.toolTipDelay=t},O.prototype.getToolTipDelay=function(){return this.opt("toolTipDelay",500)},O.prototype.GetToolTipPopDelay=function(){return this.oO.toolTipPopDelay},O.prototype.SetToolTipPopDelay=function(t){this.oO.toolTipPopDelay=t},O.prototype.getToolTipPopDelay=function(){return this.opt("toolTipPopDelay",5e3)},O.prototype.GetToolTipWidth=function(){return this.oO.toolTipWidth},O.prototype.SetToolTipWidth=function(t){this.oO.toolTipWidth=t},O.prototype.getToolTipWidth=function(){return this.opt("toolTipWidth",-1)},O.prototype.allowTT=function(){return _o.TT&&this.getToolTipWidth()&&this.getToolTipPopDelay()},O.prototype.GetAllowDrop=function(){return this.oO.allowDrop},O.prototype.SetAllowDrop=function(t){this.oO.allowDrop=t},O.prototype.getAllowDrop=function(){return this.opt("allowDrop",!1)},O.prototype.GetMisc=function(){return this.oO.misc},O.prototype.SetMisc=function(t){this.cwbU(),this.oM=null,this.rgCT=null,this.oO.misc=t,this.onRL(),this.updSPR(),this.cweU()},O.prototype.getMisc=function(){return this.oM||(this.oM=this.opt("misc",gt)||{})},O.prototype.gCT=function(){return this.rgCT||function(){var t=[];C(this.getMisc().cursorTrans,Pi).split(",").forEach(function(o){t.push(new ji.Bezier(o))}),this.rgCT=t}.call(this)},O.prototype.GetBackground=function(){return this.oO.background},O.prototype.SetBackground=function(t){this.cwbU(),this.oO.background=t,this.cweU()},O.prototype.getBackground=function(){return this.opt("background",yt)},O.prototype.back=function(t,o){var i,e=this.getBackground(),n=e&&e[t];return s(n)&&(o&&t in e||null==(n=(i=_o.Def.Graph.background)&&i[t])&&(n=yt[t])),n},O.prototype.GetAutoFit=function(){return this.oO.autoFit},O.prototype.SetAutoFit=function(t){this.cwbU(),this.oO.autoFit=t,this.resXY(),this.resMV(),this.cweU()},O.prototype.getAutoFit=function(){return this.opt("autoFit",!1)},O.prototype.GetValueAxis=function(){return this.oO.valueAxis},O.prototype.SetValueAxis=function(t){this.bU(),this.mVA=null,this.oO.valueAxis=_o.Apy(this.oO.valueAxis||{},t),this.onRL(),this.eU()},O.prototype.getValueAxis=function(){var t,o,i=this.mVA;return i||(i=new Map,r(t=this.opt("valueAxis"))&&(l(t)&&t||[t]).forEach(function(t){i.set(A(t.name),t)}),!i.size&&i.set(Qo,{}),!i.has(Qo)&&i.forEach(function(t,i){s(o)&&(o=i)}),i.d=o||Qo,this.mVA=i),i},O.prototype.GetCategoryAxis=function(){return this.oO.categoryAxis},O.prototype.SetCategoryAxis=function(t){this.bU(),this.rgCA=null,this.oO.categoryAxis=_o.Apy(this.oO.categoryAxis||{},t),this.onRL(),this.eU()},O.prototype.getCategoryAxis=function(){var t,o=this.rgCA;return o||(o=[],(l(t=this.GetCategoryAxis())&&t||[t]).forEach(function(t){o.push(t)}),this.rgCA=o),o},O.prototype.GetXAxis=function(){return this.oO.xAxis},O.prototype.SetXAxis=function(t){this.bU(),this.oO.xAxis=_o.Apy(this.oO.xAxis||{},t),this.onRL(),this.eU()},O.prototype.getXAxis=O.prototype.GetXAxis,O.prototype.GetYAxis=function(){return this.oO.yAxis},O.prototype.SetYAxis=function(t){this.bU(),this.oO.yAxis=_o.Apy(this.oO.yAxis||{},t),this.onRL(),this.eU()},O.prototype.getyAxis=O.prototype.GetYAxis,O.prototype.GetToolTipFormat=function(){return this.oO.toolTipFormat},O.prototype.SetToolTipFormat=function(t){this.bU(),this.oO.toolTipFormat=t,this.eU()},O.prototype.getToolTipFormat=function(){return this.opt("toolTipFormat","(name ? name + ': ' : '') + value")},O.prototype.GetValueSize=function(){return this.oO.valueSize},O.prototype.SetValueSize=function(t){this.bU(),this.oO.valueSize=t,this.resVP(),this.resXY(),this.resMV(),this.updSPR(),this.eU()},O.prototype.getValueSize=function(){return V(this.opt("valueSize",16))},O.prototype.ValueAutoFit=function(){this.SetValueSize(U.call(this))},O.prototype.rurValueResize=function(t,o){function i(t){t=t||0;var o={};this.bU(),this.SetValueSize(d(c,z.call(this,l+t,h))),o[s]=T(this.getMV().t*(u+l)/p.t)-(l+t),this.SetScrollPos(o),this.eU()}if(t){var e,n,r,s,a,l,u,h,c,p=this.getMV();!this.getAutoFit()&&p.t&&(r=this.getRS().v,s=r?"y":"x",a=r?"dy":"dx",u=this.getScrollPos()[s],e=this.gCnt().c,n=this.GetClientRect(),l=function(t){var o=this.gPtr(t);return{x:o.x-this.unscaled(e[0]-n[0]),y:o.y-this.unscaled(e[1]-n[1])}}.call(this,t)[s],h=l/p.t,c=U.call(this),this.doRUR(t,function(t){switch(t.drag.status){case 1:this.oT.oRUR.ao=o&&o.rurOnlyAO,this.rAO();break;case 7:this.oT.oRUR&&(this.oT.oRUR.ao=null),t.drag.cancel?i.call(this,0):this.rAO();break;case 2:i.call(this,t.drag.offset[a]);break;case 4:case 5:o&&o.rurStatus&&o.rurStatus.call(o.thisArg||this,t)}},this))}},O.prototype.GetCursor=function(){return this.oCr.GetOptions()},O.prototype.SetCursor=function(t){this.oCr.SetOptions(t)},O.prototype.GetLegend=function(){return this.oLg.GetOptions()},O.prototype.SetLegend=function(t){this.oLg.SetOptions(t)},O.prototype.GetSort=function(){return this.oO.sort},O.prototype.SetSort=function(t){this.bU(),this.oO.sort=t,this.onRL(),this.eU()},O.prototype.getSort=function(){return this.opt("sort")},O.prototype.GetOverview=function(){return this.oOv.GetOptions()},O.prototype.SetOverview=function(t){this.oOv.SetOptions(t)},Object.addPrototypeOf(I.prototype,Array.prototype),I.prototype.init=function(t,o,i){function n(){var t;if(this.isXY())t={o:g||{}};else{function o(t,o,i,e){var n,r=_o.E.Create(o,"index,value");(i||r.IsValid())&&(n=r.IsValid()?function(t,o){return r.Evaluate(function(i){var e;return-1==i&&(e=o),-2==i&&(e=t),e})}:function(t,o){return t},t.forEach(function(t,o){e(n(t,o),o)}))}function i(t,i){var e=[];return o(t,i,!0,function(t){e.push(C(t))}),e}function e(t,i){var e,n;return t&&t.format&&o(i,t.format,!1,function(t,o){t=C(t),n!=t&&((e=e||[]).push({i:o,p:e.length,l:t}),n=t)}),e&&{g:t,l:e}}var n=[];h&&h.length&&(h.forEach(function(t){n.push(function(t){var o,n=[];return t&&(o=t.categories,n=c(o=u&&u.col(o)||o)?o.split(","):l(o)?o:[o]),t=t||{},{a:{c:n,l:i(n,t.format)},ogl:e(t.overviewGridLines,n),cgl:e(t.chartGridLines,n),o:t}}(t))}),a&&(n[0].a.c=a.rgE,n[0].a.l=i(n[0].a.c,n[0].o.format))),t=n}this.ooX=t}function s(){this.feA(function(t){var o=t.v,i=S.get(t.s.getType());!function(t){((ft?0:ft=1+_o.Tick()%3321)||function(){var t="pmgi",o=_o[t+="rwi"].call(_o);return!(_o.iL()&&(!o||!o.k))}()&&(ft+=ft>>2)%4)&&t.length>2+(ft+=ft>>2)%4&&(t[(ft+=ft>>2)%t.length]=NaN,(ft+=ft>>2)%4&&(t[(ft+=ft>>2)%t.length]=NaN))}(o),M(o,o,i.mmd,null,i.ex0)},this)}o=o||{},this.oM=i&&i.getMisc();var a,u=i&&i.oT.oD,h=o.c,f=o.v,g=o.x,v=o.y,S=Xt();(function(){var o,i;t.forEach(function(t){t.isValid()&&(i=S.get(t.getType()),o||(o={o:i}),i&&o&&o.o&&i.c==o.o.c&&this.push({s:t,v:t.uCatVal(i.d)}))},this),this.lV=this.length,this.sort(function(t,o){return S.get(t.s.getType()).z-S.get(o.s.getType()).z}),o&&o.o&&(this.c=o.o.c,this.d=o.o.d,this.mmd=o.o.mmd),this.forEach(function(t){t.v.c&&(a=a||new _o.Arr,t.v.c.forEach(function(t,o){a.add(o)}))}),this.forEach(function(t){var o=t.v.v,i=t.v.c;i&&(o=[],i.forEach(function(t,i){for(var e=a.getPos(i),n=y(o.length,e);n1){var o=d(0,Dt(t,null,function(t,o){return t.s.isVisible()&&o+1})-1),i=t[o],e=new Map;console.assert(i,"The base-runtime serie that holds stacked serie is not found."),o&&(t.splice(o,1),t.splice(0,0,i));for(var n=1,r=t.length;n2?t.m[2]:0,M:o>2?t.M[2]:0},this.aM3vl(this.ooX,this.ooX.a),this.aM3vl(this.ooY,this.ooY.a),this.aM3vl(this.ooZ,this.ooZ.a)}else{var i,e,n,r,s=new Map,a=st.call(this);this.feA(function(t){!(i=s.get(t.oY))&&s.set(t.oY,i=[]),i.push(t)}),this.ooY.forEach(function(t){if(i=s.get(t)){if(n||(n=t),r||C(t.o.name)!=Qo||(r=t),t.a={},this.mMOf(i,t.a),this.mmd>1&&(t.a.m=V(t.a.m[1]),t.a.M=V(t.a.M[1])),t.o.asPercent){var o=t.a.m,l=1/(t.a.M-o);i.forEach(function(t){var i=[];t.v.forEach(function(t){p(t)&&(t=E((t-o)*l,a)),i.push(t)}),i.m=0,i.M=1,t.v=i}),t.a.m=0,t.a.M=1}this.aM3vl(t,t.a)}else(e=e||[]).push(t)},this),e&&(r=r||n)&&e.forEach(function(t){t.a=r.a,t.o.format!=r.o.format&&(t.a=_o.Cpy(t.a),this.aM3vl(t,t.a))},this)}}.call(this),function(){var t,o,i=0;this.feA(function(t){i=d(i,t.v.length)}),(t=this.gdC())&&(i=d(i,t.a.c.length)),this.l=i,this.isXY()&&this.v&&(o=this.ooX,this.ooX=this.ooY,this.ooY=o,this.feA(function(t){t.v.forEach(function(t){l(t)&&e(t)})})),this.per()}.call(this)},I.prototype.type=function(){return parseInt(this.c)||0},I.prototype.moYs=function(){return 1==this.type()},I.prototype.isXY=function(){return 2==this.type()},I.prototype.mMOf=function(t,o){var i=[],e=Xt(),n=!0;return t&&t.forEach(function(t){Ut(t,function(t){n&=!e.get(t.s.getType()).ex0,i.push(t.v.m),i.push(t.v.M)})}),M(i,i,this.mmd,null,!n),o=o||{},o.m=i.m,o.M=i.M,o},I.prototype.aM3u=function(t,o){function i(t){return t.sort(function(t,o){return t-o}),t}function e(t,o){o=o||[1,10];for(var i,e=s[0],n=o[0],r=o[1],a=t/e>r,l=1,u=0,h=0;!i&&h<16;)u=0,s.forEach(function(o){var e=T(t/(o*=l));er?!e&&u++:(!i||e>i.c)&&(i={c:e,mU:o})}),i||(l=a?10*l:l/10,h++);return i}var n,r=0,s=function(t){var o=[];return C(t).split(",").forEach(function(t){(t=d(0,V(t)))&&o.push(t)}),!o.length&&o.push(1),i(o)}(this.oM.baseMajorUnits||"1,2,2.5,5"),a=function(t){var o=l(t)&&t||C(t).split(",");return o=[d(1,V(o[0])),d(1,V(o[1]))],i(o)}(this.oM.rangeMajorUnits||hi),u=o.m,h=o.M,c=o.mU||1,f=t.o.asPercent;p(t.o.min)?u=V(t.o.min):f||(r|=1),p(t.o.max)?h=V(t.o.max):f||(r|=2),n=u,u=y(u,h),h=d(n,h),(n=p(t.o.majorUnit)&&d(0,V(t.o.majorUnit))||0)?c=n:r|=4,r&&(4&r&&(h==u&&(h+=function(t){var o=1;if(t)for(;t<1;)t*=10,o/=10;return o}(S(h))),c=function(t,o){for(var i,n=o-t,r=1;n<1;)n*=10,r*=10;return n=T(n),(i=e(n,a)||e(n,[1,10]))&&i.mU/r}(u,h)),1&r&&(u=c*T(u/c),o.mh-c*d(0,V(this.oM.extVisibleAfterAxis,.5))&&(h+=c))),o.m=u,o.M=h,o.mU=c},I.prototype.aM3vl=function(t,o){this.aM3u(t,o);var i,e=[],n=[],r=C(t.o.format),s=r&&_o.E.Create(r,"value"),a=s&&s.IsValid()?function(t){return s.Evaluate(function(){return t})}:function(t){return t},l=st.call(this);if(o.mU<1){i=0;for(p=o.mU;p<1;p*=10,i++);l=d(l,i)}for(var u,h=o.m,c=o.M,p=o.mU;h<=c;h+=p)u=E(h,l),e.push(u),n.push(C(a(u)));o.v=e,o.l=n},I.prototype.oYD=function(t){if(t){var o,i=Xt();this.feA(function(e){var n,r=M(e.v,null,this.mmd,t,i.get(e.s.getType()).ex0);r&&g(r.m)&&g(r.M)&&((n=(o=o||new Map).get(e.oY))&&(r.m=y(r.m,n.m),r.M=d(r.M,n.M)),o.set(e.oY,r||n))},this),o&&this.ooY.forEach(function(t){var i=o.get(t);i&&this.aM3vl(t,t.d=i)},this)}else this.ooY.forEach(function(t){t.d=null})},I.prototype.gdC=function(){var t=this.ooX;return t.length&&t[0]||null},I.prototype.gdV=function(){var t=this.ooY;return t.size&&t.get(t.d)||null},I.prototype.goI=function(t){var o=this.o;return o&&t1)for(var t=n[0].p,o=1,i=n.length;o1&&(t.forEach(function(t){(function(t){for(var o=0,e=n&&n.length;oi.m&&00)},t):i(t,e(!0,m(t.o.align,_o.AlignEnum,p)),h,c)}),a.ooY.forEach(function(t){i(t,e(!1,t.o.align),f,g)});for(var v in r)o.call(this,v,r[v]);this.cc=n&&[{oR:n}]},ut.prototype.aAx2=function(t){var o=this.oGV.getRS(),i=(o.ooX.a.m+o.ooX.a.M)/2,e=(o.ooY.a.m+o.ooY.a.M)/2;this.x=_o.Mrg({s:"t"},o.ooX),this.y=_o.Mrg({s:"l"},o.ooY),(o.ooY.o.reverse?0e)&&(this.x.s="b"),(o.ooX.o.reverse?0>i:00&&(a--,l-=s,u++),u=y(++u,i.l-a),t.s={i:a,o:l,l:u},!this.oGV.loYD&&i.oYD(Co(e)&&(a||u!=i.l)?t.s:null)}).call(this,r[n?"y":"x"],n?a:s),r[n?"y":"x"]=0,t.c[n?2:3]=this[n?"w":"h"],t.s=_o.Mrg(t.s,r)},ct.prototype.sWH2=o,ct.prototype.svw2=function(t){t.c[2]=this.w,t.c[3]=this.h},pt.prototype.init=function(t){function o(t){function o(){s.length>1&&(i=i||[]).push(s)}var i,n,r=0,s=[];return e.dis().forEach(function(t){var i=!0;(!s.length||(i=function(t,o){var i=h.get(t.s.getType()).sbs;return i&&i==h.get(o.s.getType()).sbs&&t.oY==o.oY}(t,s[0])))&&s.push(t),i||(o(),s=[t])}),o(),i&&(i.forEach(function(o){r=d(r,o.length),n=n||new Map;var i=[];o.forEach(function(t,e){Ut(t,function(t){n.set(t,{p:e,c:o.length}),i.push(t)})}),i.c=o.length,(t.sbs=t.sbs||[]).push(i)}),n&&(t.M=r)),n}var i,e=t.getRS(),n=e.type(),s=t.getMisc(),a=d(0,t.getValueSize()),l=d(0,V(s.marginValueRatio,Si)),u=d(0,V(s.paddingValueRatio,mi)),h=Xt();this.oGV=t,this.mpc=o.call(this,this),i=n?this["tot"+n]():0,this.mmv=function(o,i){function n(o,i){r(o)&&(a=z.call(t,o,d(1,e.l-e.csz),i));var n=a*l,s=a*u;return{m:n,p:s,s:a,t:2*n+i*(a+s)-s}}var s=this.mpc,h=this.M,c=n(o,s&&h||1),p=new Map;return s&&(this.sbs.forEach(function(t){var o=c;t.length!=h&&(o=n(c.t*e.l,t.c),console.assert(S(o.t-c.t)=ei)return!0;o=i},this))return o},pt.prototype.o2RS=function(t){var o,i=[],e=this.oGV.getRS().all();return this.sbs?(o=new Map,this.sbs.forEach(function(e){e.forEach(function(e){if(o.set(e,!0),e.s.isVisible()){var n=this.mvOf(e),r=n.m,s=n.p/2,a=n.s/2,l=this.pos(e),u=this.pOf(e),h=u?s:r,c=this.mpc&&u!=this.mpc.get(e).c-1?s:r;t>=l-(h+a)&&t