if(!_.gantt_part){_.gantt_part=1;(function($){var XF=function(a,b){return a.getParent()?a.getParent()==b?!0:XF(a.getParent(),b):!1},YF=function(a){return!!a.flatten().useHtml&&!$.Nc()},ZF=function(a){var b=a.flatten(),c=null!=b.width;(b=!YF(a)&&c&&"left"!=b.hAlign)||(b=a.flatten(),c=null!=b.width,b=!YF(a)&&c&&"break-word"==b.wordWrap);b||(b=a.flatten(),c=null!=b.width,b=!YF(a)&&c&&b.wordBreak);return b},$F=function(){$.X.call(this);this.N=this.P=this.G=this.ba=this.Lc=null;this.f="vertical";this.U=this.rb=1;this.la=$.Sb("#e0e0e0",this.U);this.va=
$.Ub("#d5d5d5",this.U);this.Ea=$.Sb("#d5d5d5",this.U);this.Ja=$.Ub("#656565",this.U);this.b=0;this.g=1;this.o=this.D=null;this.ga=!1;this.Ma=-1;this.eb=!0;this.Za=5},aG=function(a){return"svg"===$.Ui?Math.floor(a)+.5:Math.floor(a)},dG=function(a){if($.p(b)){var b=+b;!(0,window.isNaN)(b)&&a.b!=b&&0<=b&&1>b&&(b==a.g?(a.g=1,a.b=b):(a.b=Math.min(b,a.g),a.g=Math.max(b,a.g)),bG(a),a.u(64,1),cG(a,"api"));return a}return a.b},eG=function(a){if($.p(b)){var b=+b;!(0,window.isNaN)(b)&&a.g!=b&&0<b&&1>=b&&(b==
a.b?(a.b=0,a.g=b):(a.g=Math.max(b,a.b),a.b=Math.min(b,a.b)),bG(a),a.u(64,1),cG(a,"api"));return a}return a.g},fG=function(a,b,c){b=+b;if(!(0,window.isNaN)(b)){b=$.Ya(b,0,1);var d=a.g-a.b;b=$.Kl($.Ya(b+d,0,1),4);d=$.Kl(b-d,4);if(a.b!=d||a.g!=b)a.b=d,a.g=b,bG(a),a.u(64,1),cG(a,c||"api")}return a},jG=function(a,b){b=+b;var c=(0,window.isNaN)(b)?40:b;if(a.o&&c&&(c+=gG(a)?a.o.top:a.o.left,c=+c,a.o&&!(0,window.isNaN)(c))){var d=gG(a);c!=(d?a.o.top:a.o.left)&&(d?a.o.top=c:a.o.left=c,hG(a),iG(a),a.u(64,1),
cG(a,"user_action"))}},kG=function(a,b){a.la=$.Ck(a.la,b,!0);a.va=$.Ck(a.va,b,!1);a.Ea=$.Ck(a.Ea,b,!0);a.Ja=$.Ck(a.Ja,b,!1);a.u(16,1)},bea=function(a){a.ba||(a.ba=$.Wi());return a.ba},lG=function(a){a.G||(a.G=new $.du,a.G.jw(16,!1),$.L(a.G,function(){a.G.X()}),$.fu(a.G,function(){a.vN()?jG(a,40):a.scroll(.05,"user_action")}));return a.G},mG=function(a){a.P||(a.P=new $.du,a.P.jw(16,!1),$.L(a.P,function(){a.P.X()}),$.fu(a.P,function(){a.vN()?jG(a,-40):a.scroll(-.05,"user_action")}));return a.P},cea=
function(a){a.N||(a.N=$.Wi(),a.N.qb(a.Kj()),$.yd(a.N,"drag",a.In,!1,a),$.yd(a.N,"end",a.N7,!1,a),$.Ps(a,a.N,a.KX,a.JX,null,null,null,a.yga));return a.N},nG=function(a,b){var c=gG(a),d=a.N.lm(),e=a.N.kb(),f=!!b,h=c?d.top:d.left;d=c?d.height:d.width;var k=c?e.top:e.left,l=k+(c?e.height:e.width);10>=(c?e.height:e.width)?(c=a.g-a.b,a.b=(k-h)*(1-c)/(d-10),a.g=Math.min(a.b+c,1)):(a.b=$.Kl((k-h)/d,5),a.g=$.Kl((l-h)/d,5));bG(a);f||a.u(64,1);cG(a)},bG=function(a){if(a.D&&a.o)if(gG(a)){var b=a.D.height;var c=
$.Kl((a.g-a.b)*b,1);a.o.top=$.Kl(a.b*b,1)+a.D.top;a.o.height=c}else b=a.D.width,c=$.Kl((a.g-a.b)*b,1),a.o.left=$.Kl(a.b*b,1)+a.D.left,a.o.width=c},iG=function(a){if(a.D&&a.o){var b=gG(a),c=b?a.o.top-a.D.top:a.o.left-a.D.left,d=b?c+a.o.height:c+a.o.width;b=b?a.D.height:a.D.width;a.b=$.Kl(c/b,4);a.g=$.Kl(d/b,4)}},hG=function(a){var b=a.o;a=a.D;b.width>a.width&&(b.width=a.width);b.height>a.height&&(b.height=a.height);b.top+b.height>a.top+a.height&&(b.top-=b.top+b.height-(a.top+a.height));b.left+b.width>
a.left+a.width&&(b.left-=b.left+b.width-(a.left+a.width));b.top<a.top&&(b.top=a.top);b.left<a.left&&(b.left=a.left)},gG=function(a){return"horizontal"!=a.f.toLowerCase()},cG=function(a,b){if(a.eb){0<=a.Ma&&((0,window.clearTimeout)(a.Ma),a.Ma=-1);var c={type:"scrollchange",startRatio:a.b,endRatio:a.g,visibleBounds:a.o,source:b||"user_action"};a.Ma=(0,window.setTimeout)(function(){a.dispatchEvent(c);a.Ma=-1},0)}},oG=function(a){$.Wp.call(this);this.b=!!a;this.la={};this.va={};this.ga=[];this.na=null;
this.D=[];this.zw=[];this.f=[];this.Dj=this.yf=null;this.Sb=1;this.o=this.g=window.NaN;this.Ja=this.P=0;this.yc=!1;this.G=0;this.rb=!1;this.Ea=null;this.ba=this.N=window.NaN;this.mc=0;this.U=null;this.Ma=20;this.Za=this.eb=window.NaN},pG=function(a,b){return $.p(b)&&a.Ma!=b?(a.Ma=b,a.u(128,2),a):a.Ma},qG=function(a,b){return $.N(b.get("rowHeight"))||a.Ma},sG=function(a,b){for(var c=["actualStart","actualEnd","baselineStart","baselineEnd"],d=0;d<c.length;d++){var e=c[d],f=b.get(e);$.p(f)&&(f=$.br(f),
b.j(e,null===f?null:+f));rG(a,b.j(e))}},tG=function(a,b){var c=b.get("periods");if(a.b&&$.B(c)){for(var d=window.NaN,e=window.NaN,f=0,h=c.length;f<h;f++){var k=c[f],l=b.pl("periods",f,"start"),m=$.br(k.start);null!==m&&(m=+m,b.Zn("periods",f,"start",m),l=m);m=b.pl("periods",f,"end");k=$.br(k.end);null!==k&&(k=+k,b.Zn("periods",f,"end",+k),m=k);(0,window.isNaN)(l)||(0,window.isNaN)(m)||(d=(0,window.isNaN)(d)?Math.min(l,m):Math.min(d,l,m),e=(0,window.isNaN)(e)?Math.max(l,m):Math.max(e,l,m),rG(a,l),
rG(a,m))}(0,window.isNaN)(d)||(0,window.isNaN)(e)||(b.j("minPeriodDate",d),b.j("maxPeriodDate",e))}},uG=function(a,b){var c;var d=b.get("markers");for(c=0;d&&c<d.length;c++){var e=d[c];e=e.value;e=$.br(e);e=null===e?null:+e;b.Zn("markers",c,"value",e);rG(a,e)}},vG=function(a,b,c){b.j("depth",c).j("index",a.mc++);a.zw.push(b);var d=b.get("progressValue");$.p(d)&&(d=$.kn(d)?(0,window.parseFloat)(d)/100:+d,b.j("progressValue",d));d=b.get("collapsed");$.da(d)&&b.j("collapsed",d);sG(a,b);tG(a,b);uG(a,
b);d=b.j("actualStart");for(var e=b.j("actualEnd"),f=0,h=0,k=0,l=b.Wb();k<l;k++){var m=b.Jd(k);m.Wb()?vG(a,m,c+1):(m.j("depth",c+1).j("index",a.mc++),sG(a,m),tG(a,m),uG(a,m),a.zw.push(m));if(!a.b){var n=$.ea(m.j("actualStart"))?m.j("actualStart"):m.j("autoStart")||window.NaN,q=$.ea(m.j("actualEnd"))?m.j("actualEnd"):m.j("autoEnd")||n,r=m.get("progressValue");$.p(r)&&(r=$.kn(r)?(0,window.parseFloat)(r)/100:+r);r=$.p(r)?r:m.j("autoProgress")||0;m.j("progressValue",r);(0,window.isNaN)(d)?d=n:(0,window.isNaN)(n)||
(0,window.isNaN)(q)||(d=Math.min(d,n,q));(0,window.isNaN)(e)?e=q:(0,window.isNaN)(n)||(0,window.isNaN)(q)?e=q:e=Math.max(e,n,q);(0,window.isNaN)(n)||(0,window.isNaN)(q)||(m=q-n,f+=r*m,h+=m)}}b.Wb()&&!a.b&&(0!=h&&b.j("autoProgress",f/h),$.p(d)&&!(0,window.isNaN)(d)&&b.j("autoStart",d),$.p(e)&&!(0,window.isNaN)(e)&&b.j("autoEnd",e))},rG=function(a,b){$.ea(b)&&!(0,window.isNaN)(b)&&((0,window.isNaN)(a.N)&&(a.N=b,a.ba=b),a.N=Math.min(b,a.N),a.ba=Math.max(b,a.ba))},wG=function(a,b,c){if(!a.f.length)return 0;
var d=a.f.length-1;b=Math.min(b,d);c=$.p(c)?Math.min(c,d):d;b>c&&(b-=c,c+=b,b=c-b);return a.f[c]-(a.f[b-1]||0)},xG=function(a,b){var c=$.Ma(a.f,b);return 0<=c?c:~c},yG=function(a,b){return $.p(b)?(a.G!=b&&(a.G=b,a.u(256,2)),a):a.G},zG=function(a,b){$.p(b)&&a.yf!=b&&(a.yf=b,a.u(256,2))},AG=function(a,b){$.p(b)&&a.Dj!=b&&(a.Dj=b,a.u(256,2))},DG=function(a){if(!a.zf()){if(a.J(64)){a.mc=0;a.N=window.NaN;a.ba=window.NaN;a.zw.length=0;$.U(a.na);for(var b=0,c=a.na.Wb();b<c;b++){var d=a.na.Jd(b);vG(a,d,0)}a.N==
a.ba&&(b=a.N,a.N=b-432E5,a.ba=b+432E5);a.na.da(!1);a.ua(16);a.I(64);a.Dj&&BG(a.Dj);a.u(128)}if(a.J(128)){a.D.length=0;a.f.length=0;a.ga.length=0;a.la={};a.va={};b=0;for(a.Ea.reset();a.Ea.advance();){var e=a.Ea.current();a.D.push(e);b+=qG(a,e)+a.Sb;a.f.push(b);d=e.get("id");c={item:e,index:a.f.length-1};$.p(d)&&!a.va[d]&&(a.va[d]=c);if(a.b){if(c=e.get("periods"),$.B(c))for(d=0,e=c.length;d<e;d++){var f=c[d],h=f.id,k={period:f,index:a.f.length-1,periodIndex:d};a.la[h]||(a.la[h]=k);if($.B(f.connector)){f=
f.connector;for(var l=0;l<f.length;l++){var m=f[l];if(m){var n=a.la[m.connectTo]||m.connectTo;h=m.connectorType;n={from:k,to:n};h&&(n.type=h);n.connSettings=m;a.ga.push(n)}}}else f.connectTo&&(n=a.la[f.connectTo]||f.connectTo,h=f.connectorType,n={from:k,to:n},h&&(n.type=h),f.connector&&(n.connSettings=f.connector),a.ga.push(n))}}else if($.B(e.get("connector")))for(e=e.get("connector"),k=0;k<e.length;k++){if(h=e[k])d=h.connectTo,n=a.va[d]||d,d=h.connectorType,n={from:c,to:n},d&&(n.type=d),n.connSettings=
h,a.ga.push(n)}else e.get("connectTo")&&(d=e.get("connectTo"),n=a.va[d]||d,d=e.get("connectorType"),n={from:c,to:n},d&&(n.type=d),e.get("connector")&&(n.connSettings=e.get("connector")),a.ga.push(n))}a.I(128);a.u(256)}a.yc&&(CG(a,a.Ja),a.yc=!1);a.D.length?(a.g=(0,window.isNaN)(a.g)?a.eb:a.g,a.o=(0,window.isNaN)(a.o)?a.Za:a.o,a.eb=window.NaN,a.Za=window.NaN,(0,window.isNaN)(a.g)||(a.g=$.Ya(a.g,0,a.D.length-1)),(0,window.isNaN)(a.o)||(a.o=$.Ya(a.o,0,a.D.length-1)),b=wG(a,0,a.f.length-1),a.G>=b?(a.g=
0,a.P=0,a.o=a.D.length-1):((0,window.isNaN)(a.g)&&(0,window.isNaN)(a.o)&&(a.g=0),(0,window.isNaN)(a.g)?(b=wG(a,0,a.o),b<a.G?(a.g=0,a.P=0,a.o=xG(a,a.G)):(a.g=xG(a,a.f[a.o]-a.G),a.P=wG(a,a.g,a.o)-a.G)):(b=wG(a,a.g)-a.P,b<a.G?(a.g=xG(a,a.f[a.f.length-1]-a.G),a.o=a.f.length-1,a.P=wG(a,a.g,a.o)-a.G):a.o=xG(a,(a.g?a.f[a.g-1]:0)+a.G+a.P)))):(a.g=0,a.o=0,a.P=0);a.rb=!0;a.I(256);(0,window.isNaN)(a.N)||a.N!=a.ba||(a.N-=864E5,a.ba+=864E5)}a.yf&&a.yf.fH();a.Dj&&a.Dj.fH();$.fk.measure();b=null;a.yf&&a.yf.O()&&
(b=a.yf.O().Ga());!b&&a.Dj&&a.Dj.O()&&(b=a.Dj.O().Ga());b&&b.suspend();a.yf&&a.yf.Jj(a.rb);a.Dj&&a.Dj.Jj(a.rb);a.U&&($.U(a.U),a.U.Hq(!1),d=0,e=1,a.f.length&&(d=a.f[a.g]-wG(a,a.g,a.g)+a.P,e=d+a.G,a.Ja=d,k=a.f[a.f.length-1],c=new $.I(0,0,0,k),d=$.Kl(d/k,4),e=$.Kl(e/k,4),a.U.Mf(c)),c=a.U,d=+d,k=+e,(0,window.isNaN)(d)||(0,window.isNaN)(k)||(d=$.Ya(d,0,1),k=$.Ya(k,0,1),e=Math.min(d,k),d=Math.max(d,k),e==d||c.b==e&&c.g==d||(c.b=e,c.g=d,bG(c),c.u(64,1),cG(c,"api"))),c.X().Hq(!0).da(!1));b&&b.resume();a.rb=
!1},EG=function(a){a.U||(a.U=new $F,a.U.se("vertical"),a.U.wa("scrollchange",function(b){var c=b.startRatio;b=b.endRatio;var d=a.f[a.f.length-1];$.U(a);c?1==b?a.sj(a.f.length):(b=Math.round(c*d),c=xG(a,b),b-=c?a.f[c-1]:0,a.Gg(c).gm(b)):a.Gg(0).gm(0);a.da(!0)}));return a.U},CG=function(a,b){if($.p(b)){var c=Math.max(+b,0);if(a.f.length){var d=a.f[a.f.length-1];$.U(a);c>d-a.G?a.sj(a.f.length-1):(d=xG(a,c),c-=d?a.f[d-1]:0,a.Gg(d).gm(c));a.da(!0)}else a.Ja=c,a.yc=!0;return a}return a.Ja},FG=function(a,
b){$.U(a.na);var c=a.na.hv();for(c.CL(a.ada);c.advance();)c.current().j("collapsed",b);a.na.da(!0)},GG=function(){$.X.call(this);this.f="vertical";this.G=this.o=this.N=this.Lc=null;this.Je=.5;this.ba=this.ga=this.P=this.D=0;this.Ma=this.Ja=!1;this.Za=$.$e($.Ko.body,"cursor");this.b=3;this.U=!0;this.g=$.Ub("#acbece");this.la=$.Sb({keys:["0 #9ccae3","0.5 #a9dbf6","1 #e3f4fc"],angle:-90,opacity:1});this.va=$.Sb("#ccd7e1 0.3");this.Sb=$.Ub(null);this.eb=$.Sb("#fff 0");this.rb=$.Ub(null);this.Ea=!0},dea=
function(a){return $.p(!0)?($.da(!0)&&1!=a.U&&(a.U=!0,a.position(a.Je)),a):a.U},eea=function(a){var b=2;return $.p(b)?(b=+b,(0,window.isNaN)(b)||a.b==b||(a.b=b,a.u(64,1)),a):a.b},fea=function(a){a.Xa||(a.Xa=a.sb());if(a.U){var b=$.Kl((a.Xa.ae()-a.b)*a.Je,1);var c=$.Kl((a.Xa.$d()-a.b)*a.Je,1);if(HG(a))return b+=a.b,new $.I($.Kl(a.Xa.tb()+b,1),$.Kl(a.Xa.$b(),1),$.Kl(a.Xa.ae()-b,1),$.Kl(a.Xa.$d(),1));c+=a.b;return new $.I($.Kl(a.Xa.tb(),1),$.Kl(a.Xa.$b()+c,1),$.Kl(a.Xa.ae(),1),$.Kl(a.Xa.$d()-c,1))}if(HG(a))return b=
a.Xa.ae()*a.Je,new $.I($.Kl(a.Xa.tb()+b,1),$.Kl(a.Xa.$b(),1),$.Kl(a.Xa.ae()-b,1),$.Kl(a.Xa.$d(),1));c=a.Xa.$d()*a.Je;return new $.I($.Kl(a.Xa.tb(),1),$.Kl(a.Xa.$b()+c,1),$.Kl(a.Xa.ae(),1),$.Kl(a.Xa.$d()-c,1))},IG=function(a,b,c){$.Te($.Ko.body,"cursor",c?a.Za:b?"e-resize":"n-resize")},JG=function(a){var b=HG(a);a.Lc.cursor(b?"e-resize":"n-resize");var c=a.Xa;if(a.U){var d=b?c.tb()+a.Je*(c.ae()-a.b):c.tb();var e=b?c.$b():c.$b()+a.Je*(c.$d()-a.b);var f=b?c.tb()+a.D-3:c.tb();var h=b?c.$b():c.$b()+a.D-
3;var k=b?c.ae()-a.D-a.P+6:c.ae();var l=b?c.$d():c.$d()-a.D-a.P+6}else d=b?c.tb()+a.Je*c.ae()-a.b/2:c.tb(),e=b?c.$b():c.$b()+a.Je*c.$d()-a.b/2,f=b?c.tb()+a.D-3-a.b/2:c.tb(),h=b?c.$b():c.$b()+a.D-3-a.b/2,k=b?c.ae()-a.D-a.P+6+a.b:c.ae(),l=b?c.$d():c.$d()-a.D-a.P+6+a.b;var m=b?a.b:c.ae();var n=b?c.$d():a.b;var q=b?d-3:c.tb();var r=b?c.$b():e-3;var t=b?a.b+6:c.ae();b=b?c.$d():a.b+6;f=new $.I(f,h,k,l);a.N.bo(d).co(e).$n(m).Yn(n);a.o.bo(q).co(r).$n(t).Yn(b).lm(f)},KG=function(a){a.o||(a.o=$.Wi().stroke(a.rb).fill(a.eb),
$.yd(a.o,"dblclick",a.Zda,!1,a),$.yd(a.o,"mousemove",a.Q7,!1,a),$.yd(a.o,"mouseout",a.R7,!1,a),$.yd(a.o,"start",a.P7,!1,a),$.yd(a.o,"drag",a.In,!1,a),$.yd(a.o,"end",a.O7,!1,a));return a.o},LG=function(a){a.G||(a.G=$.Wi().visible(!1));return a.G},gea=function(a){a.N||(a.N=$.Wi().td(!0).fill(a.la).stroke(a.g));return a.N},HG=function(a){return"horizontal"!=a.f.toLowerCase()},MG=function(){$.X.call(this);this.f=this.b=this.o=this.Lc=null;this.Je=window.NaN;this.U=this.P=!1;this.ba=$.$e($.Ko.body,"cursor");
this.g=$.Ub("1 #acbece");this.D=1;this.G=$.Sb("#ccd7e1 0.3");this.ga=$.Sb("#fff 0.00001");this.N=!0},NG=function(a,b){$.Te($.Ko.body,"cursor",b?a.ba:"e-resize")},OG=function(a){a.Lc.cursor("e-resize");var b=a.Xa.left+a.Je+a.D/2,c=new $.I(a.Xa.left-3,a.Xa.top,a.Xa.width+6,a.Xa.height);a.o.clear().moveTo(b,a.Xa.top).lineTo(b,a.Xa.top+a.Xa.height);b=a.Xa.left+a.Je-3;var d=a.Xa.left+a.Je+a.D+3;a.b.nc(1,0,0,1,0,0);a.b.clear().moveTo(b,a.Xa.top).lineTo(d,a.Xa.top).lineTo(d,a.Xa.top+a.Xa.height).lineTo(b,
a.Xa.top+a.Xa.height).close().lm(c)},hea=function(a){a.b||(a.b=$.aj().fill(a.ga).stroke(null),$.yd(a.b,"start",a.o7,!1,a),$.yd(a.b,"drag",a.In,!1,a),$.yd(a.b,"end",a.n7,!1,a),$.Ps(a,a.b,null,a.q7,null,a.p7,null,a.bea));return a.b},PG=function(a){a.f||(a.f=$.aj(),a.f.fill(a.G).stroke(null));return a.f},iea=function(a){a.o||(a.o=$.aj().td(!0).stroke(a.g));return a.o},QG=function(){$.Wp.call(this);this.Ub=null;$.R(this.xa,[["fill",0,2],["stroke",0,2],["placementStroke",0,2],["enabled",0,32768]])},RG=
function(){this.f=this.g=this.b=null},SG=function(a,b){if(a.b!=b){if(a.b){var c=a.b.bq();$.U(c);a.b.j("selected",!1);c.da(!1)}else a.g=null;b?(c=b.bq(),$.U(c),b.j("selected",!0),c.da(!1)):a.g=null;a.b=b}},TG=function(a,b){return a.b?b.j("selected")?(SG(a,b),!0):a.b.j("selected")?a.b==b:(a.b=null,a.g=null,!1):!1},UG=function(a,b,c){return TG(a,b)&&null!=a.g?a.b==b&&a.g===c:!1},VG=function(a,b,c,d,e,f,h,k){b&&c?(a.f={rba:b,cha:c,sba:d,dha:e,gZ:f,z2:h,bY:k||"finish-start"},SG(a,null),a.g=null):a.f=null},
WG=function(a,b){$.X.call(this);this.Oo=null;this.Bx=!$.hj()&&!$.gj();this.yh=null;this.dc=this;this.P=!0;this.controller=null;a&&$.K(a,oG)?(this.controller=a,this.P=!1):(this.controller=new oG(b),$.L(this.controller,this.xT,this),this.Vx=new RG);this.ia=null;this.Xn=1;this.ke=this.Sb=this.Si=this.mc=this.Uc=this.eb=this.kq=this.ai=this.rb=this.Lc=this.Dd=this.Ma=null;this.D=45;this.B2=this.f=0;this.Za=this.ee=this.va=this.Ea=null;this.g=[];this.ga=-1;this.yj=this.Zl=0;this.aj=this.Rx=!1;this.Ii=
null;this.altKey=!1;this.Vo=null;this.$v=this.Qt=0;this.sm=!0;this.kn=this.fb=this.o=this.rj=null;this.Qp=!1;$.Qs(this,this,this.XW,this.G7,this.E7,this.XW,this.D7);$.R(this.xa,[["backgroundFill",16,1],["rowFill",16,1,void 0,function(){this.pa("rowOddFill",null);this.pa("rowEvenFill",null)}],["rowEvenFill",16,1],["rowOddFill",16,1],["rowHoverFill",0,0],["rowSelectedFill",16,1]])},XG=function(a){var b=a.j("actualStart");a=a.j("actualEnd");return $.p(b)&&(!(0,window.isNaN)(b)&&!$.p(a)||b==a)},YG=function(a,
b){a.dc=b;a.dc!=a&&a.cd().parent(a.dc.cd())},ZG=function(a,b){b&&!a.CN?($.yd($.Ko,"mousemove",a.rQ,!1,a),a.CN=!0):($.Gd($.Ko,"mousemove",a.rQ,!1,a),a.CN=!1)},$G=function(a){a.Lc||(a.Lc=$.Zi(),$.Ps(a,a.Lc,null,null,null,null,a.WW));return a.Lc},aH=function(a){a.kq||(a.kq=$.Zi(),a.kq.zIndex(30));return a.kq},bH=function(a){a.mc||(a.mc=$.Zi(),a.mc.zIndex(35));return a.mc},cH=function(a){a.eb||(a.eb=$.Zi(),a.eb.zIndex(40));return a.eb},dH=function(a){a.Uc||(a.Uc=$.Zi(),a.Uc.zIndex(45));return a.Uc},eH=
function(a){a.Sb||(a.Sb=$.Zi(),a.Sb.zIndex(50));return a.Sb},fH=function(a){a.ke||(a.ke=$.Zi(),a.ke.zIndex(60));return a.ke},gH=function(a){a.Ea||(a.Ea=aH(a).path(),a.Ea.stroke(null).zIndex(1));return a.Ea},hH=function(a){a.va||(a.va=aH(a).path(),a.va.stroke(null).zIndex(1));return a.va},iH=function(a){a.ee||(a.ee=aH(a).path(),a.ee.stroke(null).zIndex(2));return a.ee},jH=function(a){a.Za||(a.Za=aH(a).path(),a.Za.stroke(null).zIndex(3));return a.Za},kH=function(a){a.Ma||(a.Ma=aH(a).path(),a.Ma.stroke(a.U).zIndex(4));
return a.Ma},lH=function(a){a.Si||(a.Si=dH(a).path());return a.Si},mH=function(a){a.Dd||(a.Dd=aH(a).path(),a.Dd.zIndex(40));return a.Dd},oH=function(a,b){if(!a)return $.Mk;var c=b+"|"+a+"|false",d=nH[c];if(!d){switch(b){case 2:d=$.Ok;break;case 3:d=$.Pk;break;default:case 1:d=$.Qk}nH[c]=d=$.qa(jea,a,d,3==b,!1)}return d},jea=function(a,b,c,d,e,f,h,k,l,m,n){f=$.Uk(f);if(d&&f!=$.Wk){var q=e.Dc(a,f,b);c&&!0===q&&(q=b(e.eh()));if($.p(q)){if(!$.E(q))return q;if(c)return c=e.oi(),b(q.call(c,c))}}d=e.Dc(a,
0,b);c&&!0===d&&(d=b(e.eh()));$.E(d)&&(c=c?e.oi():e.me(a,h,k,l,m,n),d=b(d.call(c,c)));q&&(c=e.me(a,h,k,l),d=b(q.call(c,c)));return d},pH=function(a){if(!a.Oo){var b=$G(a).ea();b&&(a.Oo=new $.Yv(b),$.yd(a.Oo,"mousewheel",a.ym,!1,a),$.yd($.Vj,"unload",function(){$.Gd(a.Oo,"mousewheel",a.ym,!1,this)}));a.Bp().wa("scrolling",(0,$.pa)(a.iQ,a,!0))}},rH=function(a){a.dc.Re||(a.dc.Re=new qH(a.dc,$.Ko),$.yd(a.dc.Re,"key",function(a){18==a.keyCode&&(this.altKey=!0);(46==a.keyCode||a.metaKey&&8==a.keyCode)&&
this.bF(a)},!1,a.dc))},sH=function(a){var b=lH(a);b.fill(a.cd().i("fill"));b.stroke(a.cd().i("stroke"))},tH=function(a,b){return b?(SG(a.dc.al(),b),a.u(128,1),!0):!1},uH=function(a,b){$.Bf.call(this,a.ea());this.b=b;this.y=this.x=0;$.Cf(this)},qH=function(a,b,c){$.zo.call(this,b,c);this.b=a},vH=function(){$.Sf.call(this);this.j={}},yH=function(){$.X.call(this);this.oc=0;$.R(this.xa,kea);this.uD={};this.ca=new $.Ew(this,wH,0,xH);this.ya=new $.Ew(this,wH,1,xH);this.Da=new $.Ew(this,wH,2,xH);this.uD[0]=
this.ca;this.uD[1]=this.ya;this.uD[2]=this.Da;var a=this.uD[0],b=this.uD[1],c=this.uD[2];this.XM={};this.XM[0]=[a.La,a.ma];this.XM[1]=[b.La,b.ma,a.La,a.ma];this.XM[2]=[c.La,c.ma,a.La,a.ma];this.TI={};a=a.background();b=b.background();c=c.background();this.TI[0]=[a.ma,a.La];this.TI[1]=[a.ma,a.La,b.ma,b.La];this.TI[2]=[a.ma,a.La,c.ma,c.La]},zH=function(a){yH.call(this);this.yf=a;this.b=-1;this.Ta().background().U=!1;this.lb().background().U=!1;this.wD=this.selected().background().U=!1;this.qb(this.yf)},
AH=function(a,b){$.X.call(this);this.yf=a;$.L(this.yf.controller,this.T$,this);this.he=b;this.Pv=[];this.Hf=this.dy=this.nb=this.kq=this.LH=this.Lc=this.yl=null;this.ff=this.Ke=0;this.Xa=null;this.VQ=this.caa;this.cF=0;this.Py=!1;this.yn=[];this.ue=[];this.zw=[];this.SS=[];this.YT=this.ZT=window.NaN;this.xC=this.WE;this.qb(this.yf);this.I(1)},BH=function(a){a.LH||(a.LH=$.Zi());return a.LH},CH=function(a){a.dy||(a.dy=$.aj(),BH(a).$f(a.dy,0),a.dy.fill(a.yf.i("headerFill")),a.dy.stroke(null));return a.dy},
DH=function(a){a.kq||(a.kq=$.Zi());return a.kq},lea=function(a,b,c){(0,$.ue)("get set meta del getParent addChild addChildAt getChildren numChildren getChildAt remove removeChild removeChildAt removeChildren indexOfChild".split(" "),function(a){var d=c["__wrapped"+a];if(!d){var f=(0,$.pa)(c[a],c);d=function(){$.Uj(405,null,["arguments[0]."+a+"()","arguments[0].item."+a+"()"],!0);return f.apply(c,arguments)};c["__wrapped"+a]=d}b[a]=d},a)},EH=function(){$.Ww.call(this);this.ub=null},FH=function(a,b,
c){return{originalEvent:b,type:c,value:a.kk()}},GH=function(a){WG.call(this,a);this.b=[];this.la=[];this.Ja=null;this.ba=0;this.N={};zG(this.controller,this);this.yc=this.Bg=this.G=null;this.yD=[];this.Ht=this.It=null;$.R(this.xa,[["columnStroke",512,1],["headerFill",16,1]])},mea=function(a,b){if(!a.N[b])switch(b){case "direct-numbering":a.N[b]={formatter:a.AD,width:50};break;case "text":a.N[b]={formatter:a.AD,width:170};break;case "financial":a.N[b]={formatter:a.Y2,textStyle:{hAlign:"right"},width:90};
break;case "percent":a.N[b]={formatter:a.f3,textStyle:{hAlign:"right"},width:50};break;case "date-common-log":a.N[b]={formatter:HH("dd/MMM/yyyy"),textStyle:{hAlign:"right"},width:90};break;case "date-iso-8601":a.N[b]={formatter:HH("yyyy-MM-dd"),textStyle:{hAlign:"right"},width:90};break;case "date-us-short":a.N[b]={formatter:HH("M/dd/yyyy"),textStyle:{hAlign:"right"},width:90};break;case "date-dmy-dots":a.N[b]={formatter:HH("dd.MM.yy"),textStyle:{hAlign:"right"},width:90};break;default:a.N[b]={formatter:a.AD,
width:90}}return a.N[b]},HH=function(a){return function(b){return $.ea(b)?(new $.Nm(a)).format(new $.zm(new Date(b))):$.p(b)?String(b):""}},IH=function(a){a.Ja||(a.Ja=$.aj(),aH(a).$f(a.Ja,0),a.Ja.stroke(null));return a.Ja},JH=function(a){for(var b=0,c=0,d=a.b.length;c<d;c++)a.b[c]&&a.b[c].enabled()&&b++;if(b>a.la.length){var e=new MG;e.stroke(oH("columnStroke",2)(a,0));e.O(eH(a));$.L(e,function(){e.X()},e);e.wa("splitterchange",(0,$.pa)(a.Cga,a,b-1));e.wa("dblclick",(0,$.pa)(a.Dga,a,b-1));e.wa("dragstart",
(0,$.pa)(a.iQ,a,!0));e.wa("drag",(0,$.pa)(a.iQ,a,!0));a.la.push(e)}},KH=function(a,b,c,d){var e=!1;var f=$.N(b);(0,window.isNaN)(f)?(f=0,c=b):f=b;b=a.b[f];b||(b=new AH(a,f),b.ja(!!d,a.xN()),$.L(b,a.N$,a),$.gk(b),e=!0);if($.p(c))return e=$.K(c,AH)?c.F():c,b.ja(!!d,e),b.enabled()&&b.O(cH(a)),a.b[f]=b,JH(a),a.u(528,1),a;e&&(d=f?1==f?170:90:90,e=f?1==f?"Name":"Column #"+f:"#",$.U(b),b.O(cH(a)).width(d).height("100%"),b.title().text(e),b.da(!0),a.b[f]=b,JH(a),a.u(528,1));return b},LH=function(){GH.call(this)},
MH=function(a){$.bx.call(this);this.Uo(a);$.Xp(a,this.Xf,this);$.R(this.xa,[["stroke",16,1],["value",0,0,0,function(){this.u(4,this.cC())}]])},NH=function(a){$.bx.call(this);this.Uo(a);$.Xp(a,this.Xf,this);$.R(this.xa,[["fill",16,1],["from",4,9],["to",4,9]])},OH=function(a){$.mx.call(this);this.Uo(a);$.Xp(a,this.Xf,this);$.R(this.xa,[["value",0,0,0,function(){this.u(4,this.cC())}]])},PH=function(a){$.Bf.call(this,a.ea());this.element=a;this.y=this.x=0},QH=function(a,b,c){$.Bf.call(this,b.ea());this.element=
b;this.Dx=!!c;this.g=this.b=window.NaN},RH=function(a){$.Bf.call(this,a.ea());this.element=a;this.qd=window.NaN},SH=function(a,b){$.Bf.call(this,a.ea());this.element=a;this.b=!!b},TH=function(){$.Wp.call(this);this.Ub=null;$.R(this.xa,[["fill",0,2],["stroke",0,2],["size",0,2],["type",0,2],["verticalOffset",0,2],["horizontalOffset",0,2],["enabled",0,0]])},UH=function(){$.Wp.call(this);this.Ub=this.b=this.f=null},VH=function(a){$.Wp.call(this);this.D=a;this.Ub=null;$.R(this.xa,[["fill",0,2],["stroke",
0,2],["enabled",0,2]]);this.b=this.f=this.o=this.g=null},WH=function(a,b,c,d,e,f){this.element=a;this.tag=d;this.predictedBounds=c;this.item=b;this.shapes=this.element.Ff.Sc(b,d,f?$.mn:$.Wk,void 0,void 0,void 0,e);$.p(e)&&(this.periodIndex=e,this.period=b.get("periods",e))},XH=function(a,b){$.Wp.call(this);this.ld=b;this.Ub=this.$=null;$.R(this.xa,[["drawer",0,1],["shapes",0,1]])},YH=function(a,b,c,d,e,f){b=new WH(a.ld,b,c,d,e,f);a.i("drawer").call(b,b)},ZH=function(a,b,c){$.gd.call(this);this.G=
a;this.D=b;this.yb=null;this.b={};this.f={};this.o={};this.g={};if($.B(c))for(a=0;a<c.length;a++){b=c[a];var d=b.shapeType;switch(String(d).toLowerCase()){case "none":var e=null;break;case "rect":e=$.Wi;break;case "circle":e=$.Yi;break;case "ellipse":e=$.$i;break;default:e=$.aj}this.b[d]||(this.b[d]=[],this.f[d]=[],this.o[d]=0);this.g[b.name]={zIndex:+b.zIndex,AP:e,Lb:d,td:!!b.disablePointerEvents}}this.cN={}},$H=function(a,b,c,d,e,f,h){b=a.g[b];var k=a.D.Ym(c,f,h);c=a.D.sl(c,f,h);e.fill(k);e.stroke(c);
e.qb(a.G);e.td(!!b.td);e.zIndex(b.zIndex+d);e.parent(a.Nd);return e},aI=function(a){$.Wp.call(this);this.lj=this;this.Dj=a;this.$=null;$.R(this.xa,[["height",0,1],["anchor",0,1],["position",0,1],["offset",0,1]]);a={};$.R(a,[["fill",0,8192],["stroke",0,8192]]);this.ca=new $.Ew(this.lj,a,$.Wk);a={};$.R(a,[["fill",0,0],["stroke",0,0]]);this.Da=new $.Ew(this.lj,a,$.mn);this.Ub=this.Tq=this.yC=this.Ca=null;this.Sx=new XH(this.Dj,this);$.L(this.Sx,this.f1,this);this.rj=null},bI=function(a,b,c){if($.p(c))return b.get("periods")[c];
a=a.aC();for(c=0;c<a.length;c++){var d=b.get(a[c]);if($.p(d)){var e=d;break}}return e},cI=function(a){aI.call(this,a);$.R(this.xa,[["above",0,1]])},dI=function(a){$.Wp.call(this);this.lj=this;this.Dj=a;$.R(this.xa,[["previewStroke",0,2]]);a={};$.R(a,[["fill",0,8192],["stroke",0,8192]]);this.ca=new $.Ew(this.lj,a,$.Wk);a={};$.R(a,[["fill",0,0],["stroke",0,0]]);this.Da=new $.Ew(this.lj,a,$.mn)},eI=function(a){aI.call(this,a)},fI=function(a){aI.call(this,a);this.mn=null},gI=function(a){aI.call(this,
a)},hI=function(a){aI.call(this,a)},iI=function(a){aI.call(this,a);this.mn=null},jI=function(a,b){$.X.call(this);this.mk=a;this.oa=this.mk.U.scale();this.he=b;this.Ca=this.b=null;this.ue=[];this.Ha=null;this.gb=[];this.D=[];this.o="yyyy/MM/dd'T'HH:mm:ss.SSS";this.ub={left:0,top:0,width:0,height:0};this.g=this.f=null;$.R(this.xa,[["enabled",1,32768],["stroke",16,1],["height",4,9]]);this.count=this.$g=void 0},kI=function(a){if(!a.b){var b=null!=a.g;a.Ca&&!$.Dc(a.Ca.La)&&(b=!0);b&&(a.b=new $.px,a.b.labels(a.labels()),
$.gk(a.b))}},lI=function(a){$.X.call(this);this.Ia("defaultGanttHeader");this.U=a;this.g=null;this.G=new $.IF;this.Ca=this.Ha=null;this.f=[];this.D=new $.JF;this.ub={left:0,top:0,width:0,height:0};this.b=new $.px;this.b.labels(this.labels());$.rx(this.b);$.gk(this.b);$.R(this.xa,[["stroke",16,1],["levelHeight",512,1,void 0,this.hda],["drawTopLine",0,0],["drawRightLine",0,0],["drawBottomLine",0,0],["drawLeftLine",0,0]])},mI=function(a,b){WG.call(this,a,b);this.KB=this.Ou=this.Ru=this.Qu=this.Pu=this.hz=
this.tp=this.gD=this.Fv=this.Qg=null;this.oL=void 0;this.pL=window.NaN;this.lH=!1;this.Vs=this.$s=this.Zs=this.Ws=this.Ys=this.Xs=null;this.sQ=this.tQ=this.Qw=!1;this.ro=this.Ow=null;this.WH=[];this.VH=0;this.Lz=[];this.bA=[];this.xA=[];this.Us=[];this.aG=null;this.oa=new $.$r;$.L(this.oa,this.Nh,this);this.En=this.Ky=this.zz=this.Rk=this.Vz=this.Xk=this.LB=null;$.R(this.xa,[["columnStroke",16,1]]);AG(this.controller,this);this.Az()},nI=function(a,b,c,d,e){b={Zca:!0,item:a,index:b,type:c,ab:d};$.p(e)&&
(b.hs=e,a=a.get("periods"),b.Qb=a[e]);return b},oI=function(a){a.gD||(a.gD=eH(a).path(),a.gD.zIndex(6),a.gD.stroke(oH("columnStroke",2)(a,0)));return a.gD},pI=function(a){a.tp||(a.tp=dH(a).path(),a.tp.zIndex(0).cursor("ew-resize"),a.Ac.wa(a.tp,"mousedown",function(a){a.stopPropagation()}),a.tp.Ie("mousedown",a.Maa,!1,a));return a.tp},qI=function(a){a.hz||(a.hz=dH(a).path(),a.hz.zIndex(10),a.Ac.wa(a.hz,"mousedown",function(a){a.stopPropagation()}),a.hz.Ie("mousedown",a.Paa,!1,a));return a.hz},rI=function(a){a.Pu||
(a.Pu=dH(a).path(),a.Pu.zIndex(20).cursor("col-resize"),a.Pu.G=pI(a),a.Ac.wa(a.Pu,"mousedown",function(a){a.stopPropagation()}),a.Pu.Ie("mousedown",a.Laa,!1,a));return a.Pu},sI=function(a){a.Qu||(a.Qu=dH(a).path(),a.Qu.zIndex(30).cursor("col-resize"),a.Qu.G=pI(a),a.Ac.wa(a.Qu,"mousedown",function(a){a.stopPropagation()}),a.Qu.Ie("mousedown",a.Saa,!1,a));return a.Qu},tI=function(a){a.Ru||(a.Ru=dH(a).path(),a.Ru.zIndex(40).cursor("move"),a.Ac.wa(a.Ru,"mousedown",function(a){a.stopPropagation()}),a.Ru.Ie("mousedown",
a.Xaa,!1,a));return a.Ru},uI=function(a){a.Ou||(a.Ou=dH(a).path(),a.Ou.zIndex(50).cursor("move"),a.Ac.wa(a.Ou,"mousedown",function(a){a.stopPropagation()}),a.Ou.Ie("mousedown",a.Daa,!1,a));return a.Ou},vI=function(a){a.KB||(a.KB=dH(a).path(),a.KB.zIndex(60),a.KB.td(!0));return a.KB},wI=function(a,b){for(var c=0;c<a.Us.length;c++)a.Us[c].clear().nc(1,0,0,1,0,0);a.Us.length=0;b||(a.Ya().enabled(a.Yt),a.Yt=void 0)},xI=function(a,b,c,d){var e=b;a=a.pj().i("above");switch(c){case "tasks":d&&"left-center"==
b&&(e=a?"left-top":"left-bottom");break;case "grouping-tasks":e=$.An(b)?"left-top":"left-bottom";d&&"left-center"==b&&(e=a?"left-top":"left-bottom");break;case "baselines":"left-center"==b&&(e=a?"left-bottom":"left-top")}return e},yI=function(a,b,c){if(a.Ow){var d=a.Ow.b?a.Pu:a.Qu,e=d.tag.item,f=d.tag.hs,h=d.tag.ab;switch(d.tag.type){case "baselines":d=a.Ow.b?e.j("baselineEnd"):e.j("baselineStart");break;case "periods":d=a.Ow.b?e.pl("periods",f,"end"):e.pl("periods",f,"start");break;default:d=a.Ow.b?
$.ea(e.j("actualEnd"))?e.j("actualEnd"):e.j("autoEnd"):$.ea(e.j("actualStart"))?e.j("actualStart"):e.j("autoStart")}e=$.Ii(a.O().Ga()).x;b=c?0>c?a.ia.left:a.ia.left+a.ia.width:b.clientX-e;c=$.cs(a.oa,d);c=a.ia.left+a.ia.width*c;a.tp.clear().moveTo(c,h.top).lineTo(b,h.top).lineTo(b,h.top+h.height).lineTo(c,h.top+h.height).close()}},AI=function(a,b,c,d){if(a.ro&&a.aj){var e=a.ro.Dx?a.Ru:a.Ou,f=e.tag.index;e=e.tag.hs;var h=$.Ii(a.O().Ga()),k=h.x;h=h.y;c||d?(c=a.ro.b-k,b=a.ro.g-h):(c=b.clientX-k,b=b.clientY-
h);d=zI(a,f,e);f=a.il().previewStroke();k=$.Tn(f)%2&&"svg"===$.Ui?.5:0;e=a.ro.Dx?d.left:d.left+d.width;d=d.top+d.height/2+k;vI(a).stroke(f).clear().moveTo(e,d).lineTo(c,b)}},BI=function(a,b){var c="connectorselect";if(b)switch(c=b.type,c){case "mouseout":c="connectormouseout";break;case "mouseover":c="connectormouseover";break;case "mousemove":case "touchmove":c="connectormousemove";break;case "mousedown":case "touchstart":c="connectormousedown";break;case "mouseup":case "touchend":c="connectormouseup";
break;case "click":c="connectorclick";break;case "dblclick":c="connectordblclick"}return{type:c,actualTarget:b?b.target:null,target:a,originalEvent:b}},CI=function(a,b){if(b&&b.originalEvent){var c=b.originalEvent,d=$.K(c,$.li)?c.target:c.domTarget;if(d&&$.K(d,vH)&&"connectors"==d.type){c=BI(a,c);for(var e in d.j)c[e]=d.j[e];return c}}return null},DI=function(a,b){switch(b){case "periods":return a.Qv();case "tasks":return a.ac();case "grouping-tasks":return a.lk();case "baselines":return a.pj();case "milestones":return a.Mc()}return a.elements()},
EI=function(a,b){var c=CI(a,b);return c?(wI(a),a.dc.dispatchEvent(c),!0):!1},GI=function(a,b){var c=b&&b.originalEvent?b.originalEvent.domTarget:null;if(c&&"connectors"==c.type){wI(a);var d=CI(a,b);a.dc.dispatchEvent(d)&&(d=CI(a,b),d.type="connectorselect",a.dc.al().f&&FI(a,b.originalEvent),a.dc.dispatchEvent(d)&&(a.dc.pH(b.originalEvent),c=c.j,VG(a.dc.al(),c.fromItem,c.toItem,c.fromItemIndex,c.toItemIndex,c.fromPeriodIndex,c.toPeriodIndex,c.connType),a.u(128,1)));return!0}return!1},FI=function(a,
b){var c=a.dc.al();if(c.f){var d=BI(a,b);d.type="connectorselect";a.dc.dispatchEvent(d)&&(VG(c,null),a.u(128,1))}},HI=function(a,b,c){var d=a.dc.al();SG(d,b);d.g=b?c:null;return d.b?(a.u(128,1),!0):!1},II=function(a){if(a.VH<a.WH.length){var b=a.WH[a.VH++];b.reset()}else b=new vH,b.qb(a),a.WH.push(b),a.VH++;b.parent(bH(a));return b},JI=function(a,b,c,d){var e="grouping-tasks"==b.Qa(),f=b.i("height");e=$.M(f,d||e?c.height/2:c.height);f=b.i("anchor");var h=b.i("position"),k=b.i("offset");k=$.M(k,c.height);
"auto"==f&&(f=xI(a,h,b.Qa(),d));a=$.un(c,h);return new $.I(a.x,a.y+($.An(f)?0:$.Bn(f)?-e:-e/2)+k,c.width,e)},KI=function(a,b,c,d,e){a=a.sl(c,e?$.mn:$.Wk,d);a=$.Tn(a)%2&&"svg"===$.Ui?.5:0;c=Math.round(b.left)+a;d=Math.round(b.top)+a;return new $.I(c,d,Math.round(b.left+b.width)+a-c,Math.round(b.top+b.height)+a-d)},LI=function(a,b,c,d){$.U(a.controller.data());$.p(d)?($.B(b.j("periodBounds"))||b.Zn("periodBounds",[]),b.Zn("periodBounds",d,c)):b.j("relBounds",c);a.controller.data().da(!1)},MI=function(a,
b,c,d,e){var f=d.i("anchor"),h=d.i("position"),k=a.pj().i("anchor"),l=a.pj().i("position");f==k&&h==l&&("auto"==f&&(f=xI(a,h,d.Qa(),!0)),"auto"==k&&(k=xI(a,l,a.pj().Qa(),!0)),h=a.pj().sl(e,$.Wk),d=d.sl(e,$.Wk),d=$.Tn(d)/2,e=$.Tn(h)/2,d+=e,f==k&&(a.pj().i("above")?$.An(f)?b.top+=c.height+d:c.top-=b.height+d:$.An(f)?c.top+=b.height+d:b.top-=c.height+d))},NI=function(a,b){var c=a.ia.top+a.ul()+1,d=a.controller.f,e=a.controller.Gg(),f=a.controller.gm();return(b?d[b-1]:0)-((e?d[e-1]:0)+f)+c},zI=function(a,
b,c){var d=NI(a,b);b=a.controller.D[b];var e=qG(a.controller,b),f=$.ea(b.j("actualStart"))?b.j("actualStart"):b.j("autoStart"),h=$.ea(b.j("actualEnd"))?b.j("actualEnd"):b.j("autoEnd");f=a.controller.b?b.pl("periods",c,"start"):f;h=a.controller.b?b.pl("periods",c,"end"):h;var k=0;c=!1;XG(b)&&(c=!0,h=f,k=a.Mc().i("height"),k=Math.round($.M(k,e)/2));if((0,window.isNaN)(h)||(0,window.isNaN)(f))return null;f=$.cs(a.oa,f)*a.ia.width+a.ia.left-k;h=$.cs(a.oa,h)*a.ia.width+a.ia.left+k;d=new $.I(f,d,h-f,e);
return a.controller.b?JI(a,a.Qv(),d):c?JI(a,a.Mc(),d):$.p(b.get("baselineStart"))&&$.p(b.get("baselineEnd"))?(e=b.Wb()?a.lk():a.ac(),c=JI(a,e,d,!0),d=JI(a,a.pj(),d,!0),MI(a,c,d,e,b),c):b.Wb()?JI(a,a.lk(),d):JI(a,a.ac(),d)},QI=function(a,b,c,d,e,f){d=d||"finish-start";var h=b.index,k=c.index;b=b.periodIndex;c=c.periodIndex;var l=a.controller.D,m=l[h];l=l[k];var n=zI(a,h,b),q=zI(a,k,c),r=qG(a.controller,l);if(n&&q){var t=a.dc.al();var u=t.f?t.f.rba==m&&t.f.cha==l&&t.f.bY==d&&t.f.gZ==b&&t.f.z2==c:!1;
t=null!=f;if(e)if(u){var v="object"==$.ka(e.selected)?e.selected.fill:void 0;var w="object"==$.ka(e.selected)?e.selected.stroke:void 0}else v=$.p(e.fill)?e.fill:"object"==$.ka(e.normal)?e.normal.fill:void 0,w=$.p(e.stroke)?e.stroke:"object"==$.ka(e.normal)?e.normal.stroke:void 0;e=u?$.mn:$.Wk;w=w||a.il().sl(m,l,e,d,b,c);f=f||null;u=t?f:null;var x=$.Tn(w)%2&&"svg"===$.Ui?.5:0;switch((d+"").toLowerCase()){case "finish-finish":var y=Math.round(n.left+n.width)+x;var A=Math.round(n.top+n.height/2)+x;var G=
Math.round(q.left+q.width)+x;var C=Math.round(q.top+q.height/2)+x;var J="left";n.top==q.top?(f=OI(a,y,A,G,C,f),y>G&&(J="right")):(n=Math.max(y+9,G+9),f=OI(a,y,A,n,A,f),f=OI(a,n,A,n,C,f),f=OI(a,n,C,G,C,f));u=PI(a,G,C,J,u);break;case "start-finish":y=Math.round(n.left)+x;A=Math.round(n.top+n.height/2)+x;G=Math.round(q.left+q.width)+x;C=Math.round(q.top+q.height/2)+x;J="left";if(y-5-5-4>G)n=G+9,f=OI(a,y,A,n,A,f),f=OI(a,n,A,n,C,f),f=OI(a,n,C,G,C,f);else{var P=q.top>=n.top;n=y-5;q=G+9;var Q=NI(a,k);r=
Math.round(P?Q:Q+r)+x;f=OI(a,y,A,n,A,f);f=OI(a,n,A,n,r,f);f=OI(a,n,r,q,r,f);f=OI(a,q,r,q,C,f);f=OI(a,q,C,G,C,f)}u=PI(a,G,C,J,u);break;case "start-start":y=Math.round(n.left)+x;A=Math.round(n.top+n.height/2)+x;G=Math.round(q.left)+x;C=Math.round(q.top+q.height/2)+x;J="right";n.top==q.top?(f=OI(a,y,A,G,C,f),y>G&&(J="left")):(n=Math.min(y-4-5,G-4-5),f=OI(a,y,A,n,A,f),f=OI(a,n,A,n,C,f),f=OI(a,n,C,G,C,f));u=PI(a,G,C,J,u);break;default:y=Math.round(n.left+n.width)+x,A=Math.round(n.top+n.height/2)+x,G=Math.round(q.left)+
x,G>=y?(G=Math.min(G+5,Math.round(q.left+q.width/2)+x),q.top>n.top?(C=Math.round(q.top)+x,f=OI(a,y,A,G,A,f),f=OI(a,G,A,G,C,f),u=PI(a,G,C,"bottom",u)):q.top<n.top?(C=Math.round(q.top+q.height)+x,f=OI(a,y,A,G,A,f),f=OI(a,G,A,G,C,f),u=PI(a,G,C,"top",u)):(G=Math.round(q.left)+x,C=Math.round(q.top+q.height/2)+x,f=OI(a,y,A,G,C,f),u=PI(a,G,C,"right",u))):(C=Math.round(q.top+q.height/2),Q=NI(a,k)+x,r=Math.round(q.top>n.top?Q:Q+r)+x,n=y+5,q=G-5-4,f=OI(a,y,A,n,A,f),f=OI(a,n,A,n,r,f),f=OI(a,n,r,q,r,f),f=OI(a,
q,r,q,C,f),f=OI(a,q,C,G,C,f),u=PI(a,G,C,"right",u))}h={fromItemIndex:h,toItemIndex:k,connType:d,fromItem:m,toItem:l};a.controller.b&&(h.fromPeriodIndex=b,h.toPeriodIndex=c);f&&!t&&(f.tag=void 0,f.type="connectors",f.WP=null,f.cursor(a.elements().cd().i("enabled")?"pointer":"default"),h.path=f,f.j=h,f.stroke(w));u&&!t&&(u.tag=void 0,u.type="connectors",u.WP=null,u.cursor(a.elements().cd().i("enabled")?"pointer":"default"),h.arrow=u,u.j=h,u.fill(v||a.il().Ym(m,l,e,d,b,c)),u.stroke(w))}},OI=function(a,
b,c,d,e,f){if(f)try{f.lineTo(d,e)}catch(m){f.moveTo(b,c).lineTo(d,e)}else{var h=Math.max(b,d),k=Math.min(c,e),l=Math.max(c,e);Math.min(b,d)<a.ia.left+a.ia.width&&h>a.ia.left&&k<a.ia.top+a.ia.height&&l>a.ia.top&&(f=II(a),f.type="connectors",f.zIndex(60).moveTo(b,c).lineTo(d,e))}return f},PI=function(a,b,c,d,e){var f=e||null;if(b>=a.ia.left&&b<=a.ia.left+a.ia.width&&c>=a.ia.top&&c<=a.ia.top+a.ia.height){var h=0,k=0,l=0,m=0;switch(d){case "left":b+=1;h=b+4;k=c-4;l=h;m=c+4;break;case "top":c+=1;h=b-4;
k=c+4;l=b+4;m=k;break;case "right":--b;h=b-4;k=c-4;l=h;m=c+4;break;case "bottom":--c,h=b-4,k=c-4,l=b+4,m=k}null==e&&(f=II(a),f.type="connectors");f.zIndex(70).moveTo(b,c).lineTo(h,k).lineTo(l,m).lineTo(b,c)}return f},BG=function(a){var b=a.oa.pk(),c=a.oa.ik(),d=a.controller.N,e=a.controller.ba;$.U(a.oa);$.bs(a.oa,d,e);a.oa.G2=d;a.oa.E2=e;!b||(0,window.isNaN)(d)||(0,window.isNaN)(e)||(a.oa.k0?(a.oa.yo(),a.oa.k0=!1):a.oa.m0?(a.oa.oj.apply(a.oa,a.oa.i0),a.oa.m0=!1,a.oa.i0=null):(d=a.oa.Qi(),a.oa.oj(d.min,
d.min+Math.round((d.max-d.min)/10))));!b&&(b=c.min,d=c.max-b)&&(c=a.oa.ik(),b=c.min,a.oa.oj(b,b+d));a.oa.da(!0)},RI=function(a){a.aA||(a.aA=$.Zi(),a.aA.zIndex(34));return a.aA},SI=function(a){a.wA||(a.wA=$.Zi(),a.wA.zIndex(36));return a.wA},TI=function(){mI.call(this)},UI=function(){mI.call(this,void 0,!0)},WI=function(a){$.Wv.call(this);this.Ia("ganttBase");this.P=!!a;this.D=this.b=this.g=this.na=null;this.U=new RG;this.o=null;this.f=new oG(this.P);zG(this.f,VI(this));AG(this.f,this.bg());$.L(this.f,
this.eY,this);this.G=EG(this.f);this.G.zIndex(nea);$.L(this.G,this.hga,this);this.Ie("chartdraw",function(){pH(this.gE());pH(this.bg());rH(this.gE());rH(this.bg())},!1,this);$.R(this.xa,[["headerHeight",4,1],["splitterPosition",16384,1],["rowHoverFill",0,0,0,function(){this.bg().rowHoverFill(this.i("rowHoverFill"));VI(this).rowHoverFill(this.i("rowHoverFill"))}],["rowSelectedFill",0,0,0,function(){$.jq(this.bg(),VI(this));this.b.rowSelectedFill(this.i("rowSelectedFill"));this.g.rowSelectedFill(this.i("rowSelectedFill"));
$.kq(this.g,this.b)}],["columnStroke",0,0,0,function(){$.jq(this.bg(),VI(this));this.g.columnStroke(this.i("columnStroke"));this.b.columnStroke(this.i("columnStroke"));$.kq(this.g,this.b)}],["rowStroke",0,0,0,function(){$.jq(this.bg(),VI(this),this.f);var a=this.i("rowStroke");this.g.eD(a);this.b.eD(a);this.f.Xn($.Tn(a));$.kq(this.g,this.b,this.f)}]])},VI=function(a){a.g||(a.g=new GH(a.f),a.g.pa("backgroundFill",null),a.g.zIndex(5),YG(a.g,a),$.L(a.g,function(){DG(a.f)},a.f));return a.g},XI=function(a,
b,c){var d=a.na.Wo("id",b);d.length?(b=d[0],a.dispatchEvent({type:"rowcollapseexpand",item:b,collapsed:c})&&b.j("collapsed",c)):$.Uj(404,null,["Task",b]);return a},YI=function(a){a.D||(a.D=new GG,a.D.zIndex(10),$.L(a.D,function(){this.D.X()},a),dea(eea($.U(a.D).se("vertical").position(a.i("splitterPosition")).FY("#000 0.3").stroke("none")).fill("#cecece")).da(!1),a.D.wa("splitterchange",function(){var b=a.padding().ig(a.sb().width),c=YI(a).position();a.pa("splitterPosition",Math.round(c*b));a.u(4,
1)}));return $.p(void 0)?(a.D.K(void 0),a):a.D},ZI=function(){var a=new WI(!1);a.Ia("ganttProject");a.ja(!0,$.cl("ganttProject"));return a},$I=function(){var a=new WI(!0);a.Ia("ganttResource");a.ja(!0,$.cl("ganttResource"));return a};$.Ww.prototype.cZ=$.ca(15,function(){this.b=!1});$.xs.prototype.qC=$.ca(8,function(a){return XF(this.Hk,a.Hk)});$.Bs.prototype.qC=$.ca(7,function(a){return XF(this,a)});
$.kh.prototype.FF=$.ca(4,function(){if(null!=this.gc){var a=$.Mf().measure(this.text(),this.style());a.left=this.ho;a.top=this.io;return a}return new $.I(0,0,0,0)});$.vu.prototype.FF=$.ca(3,function(){return this.gc?this.gc.FF():null});var aJ="minFontSize maxFontSize adjustFontSize fontSize fontFamily fontColor fontOpacity fontDecoration fontStyle fontVariant fontWeight letterSpacing textDirection lineHeight textIndent vAlign hAlign wordWrap wordBreak textOverflow selectable disablePointerEvents useHtml format".split(" ");
$.H($F,$.Us);$.g=$F.prototype;$.g.ra=$.Us.prototype.ra;$.g.qa=$.Us.prototype.qa|80;$.g.se=function(a){return $.p(a)?(a=$.pj(a),a!=this.f&&(this.f=a,this.u(4,1)),this):this.f};$.g.UI=function(a,b,c,d,e){if($.p(a)){var f=$.Ub.apply(null,arguments);this.va!=f&&(this.va=$.Ck(f,this.U,!1),this.u(16,1));return this}return this.va||"none"};$.g.xI=function(a,b,c,d,e,f,h){if($.p(a)){var k=$.Sb.apply(null,arguments);this.la!=k&&(this.la=$.Ck(k,this.U,!0),this.u(16,1));return this}return this.la||"none"};
$.g.MM=function(a,b,c,d,e){if($.p(a)){var f=$.Ub.apply(null,arguments);this.Ja!=f&&(this.Ja=$.Ck(f,this.U,!1),this.u(16,1));return this}return this.Ja||"none"};$.g.LM=function(a,b,c,d,e,f,h){if($.p(a)){var k=$.Sb.apply(null,arguments);this.Ea!=k&&(this.Ea=$.Ck(k,this.U,!0),this.u(16,1));return this}return this.Ea||"none"};$.g.iB=function(a){return $.p(a)?(a=$.N(a),this.Sb!=a&&(this.Sb=a,this.u(4,9)),this):this.Sb};
$.g.MP=function(a){return $.p(a)?(a=$.N(a),this.Za!=a&&(this.Za=a,this.u(16,1)),this):this.Za};$.g.Hq=function(a){return $.p(a)?($.da(a)&&(this.eb=a),this):this.eb};$.g.Mf=function(a,b){return $.p(a)?($.mb(this.D,a)||(this.D=a.clone(),this.o?hG(this):this.o=this.D.clone(),iG(this),this.u(64,1),cG(this,b||"api")),this):this.D};$.g.vN=function(a){return $.p(a)?($.mb(this.o,a)||(this.o=a.clone(),this.D?hG(this):this.D=this.o.clone(),iG(this),this.u(64,1),cG(this,"api")),this):this.o};
$.g.scroll=function(a,b){a=+a;var c=(0,window.isNaN)(a)?.05:$.Ya(a,-1,1);return c?fG(this,this.b+c,b):this};$.g.pP=function(a){return $.p(a)?($.da(a)&&this.ga!=a&&(this.ga=a,this.u(4,1)),this):this.ga};$.g.rT=function(a){return $.p(a)?(this.U!=a&&(this.U=a,kG(this,this.U)),this):this.U};$.g.sT=function(a){return $.p(a)?(this.rb=a,this):this.rb};$.g.Kj=function(){this.Lc||(this.Lc=$.Zi(),$.Ps(this,this.Lc,this.KX,this.JX,this.g$));return this.Lc};
$.g.KX=function(a){a.preventDefault();kG(this,this.rb);this.uh(a)};$.g.JX=function(a){a.preventDefault();kG(this,this.U);this.uh(a)};
$.g.g$=function(a){a.preventDefault();var b=gG(this),c=this.N.kb(),d=this.N.lm(),e=b?a.offsetY:a.offsetX;d=b?$.Kl((e-d.top)/d.height,4):$.Kl((e-d.left)/d.width,4);(b?e<=c.top:e<=c.left)?fG(this,d,"user_action"):(c=+d,(0,window.isNaN)(c)||(c=$.Ya(c,0,1),b=this.g-this.b,c=$.Kl($.Ya(c-b,0,1),4),b=$.Kl(c+b,4),this.b==c&&this.g==b))||(this.b=c,this.g=b,bG(this),this.u(64,1),cG(this,"user_action"));this.uh(a)};$.g.yga=function(a){a.preventDefault();this.uh(a)};$.g.In=function(){nG(this,!0);this.dispatchEvent("scrolling")};
$.g.N7=function(){nG(this,!1);this.dispatchEvent("scrollend")};
$.g.X=function(){if(this.xc()){var a=this.O(),b=a?a.Ga():null,c=b&&!b.Ve();c&&b.suspend();this.Kj().Wb()||(this.Lc.ec(bea(this)),this.Lc.ec(cea(this)));this.J(2)&&(this.Kj().parent(a),this.I(2));if(this.J(4)){this.Xa=this.sb();this.Xa.left=aG(this.Xa.left);this.Xa.top=aG(this.Xa.top);this.Xa.width=Math.round(this.Xa.width);this.Xa.height=Math.round(this.Xa.height);lG(this).O()||this.G.O(this.Lc);mG(this).O()||this.P.O(this.Lc);lG(this).enabled(this.ga);mG(this).enabled(this.ga);if(this.ga&&this.G&&
this.P){$.U(this.G);$.U(this.P);var d=gG(this);a=this.Xa;var e;var f=3>(d?a.height:a.width)/(d?a.width:a.height);var h=e=d?a.width:a.height;var k=a.left;var l=a.top;f&&(d?e=$.Kl(a.height/3,1):h=$.Kl(a.width/3,1));f=d?a.left:a.left+a.width-h;d=d?a.top+a.height-e:a.top;this.G.fa(a);this.G.position({x:f,y:d}).width(h).height(e).X();this.P.fa(a);this.P.position({x:k,y:l}).width(h).height(e).X();this.G.da(!1);this.P.da(!1)}this.u(80);this.I(4)}this.J(16)&&(a=Math.min(this.Za,Math.min(this.Xa.width,this.Xa.height)/
2),this.ba.fill(this.la).stroke(this.va).round(a),this.N.fill(this.Ea).stroke(this.Ja).round(a),this.I(16));this.J(64)&&(0>=this.b&&1<=this.g||this.b==this.g?this.Kj().visible(!1):(this.Kj().visible(!0),a=gG(this),h=this.Xa,this.ba.nf(h),this.ga?(l=this.G.width(),d=this.G.height(),e=a?h.left:h.left+l+1,k=a?h.top+d+1:h.top,l=a?h.width:h.width-2*(l+1),d=a?h.height-2*(d+1):h.height,e=new $.I(e,k,l,d)):e=h.clone(),l=a?e.height:e.width,k=d=$.Kl(l*(this.g-this.b),1),f=!1,10>d&&(f=!0,k=10),f?(d=this.b*(l-
k)/(1+this.b-this.g),l=a?h.left:$.Kl(e.left+d,1),d=a?$.Kl(e.top+d,1):h.top):(l=a?h.left:$.Kl(e.left+this.b*e.width,1),d=a?$.Kl(e.top+this.b*e.height,1):h.top),f=a?h.width:k,a=a?k:h.height,this.N.bo(aG(l)).co(aG(d)).$n(Math.round(f)).Yn(Math.round(a)).lm(e),this.N.nc(1,0,0,1,0,0)),this.I(64));this.J(8)&&(this.Kj().zIndex(this.zIndex()),this.I(8));c&&b.resume()}return this};$.g.remove=function(){this.Lc&&this.Lc.parent(null)};
$.g.F=function(){var a=$F.B.F.call(this);$.E(this.UI())?$.Uj(8,null,["ScrollBar background stroke"]):a.backgroundStroke=$.zk(this.UI());$.E(this.xI())?$.Uj(8,null,["ScrollBar background fill"]):a.backgroundFill=$.zk(this.xI());$.E(this.LM())?$.Uj(8,null,["ScrollBar slider fill"]):a.sliderFill=$.zk(this.LM());$.E(this.MM())?$.Uj(8,null,["ScrollBar slider stroke"]):a.sliderStroke=$.zk(this.MM());a.mouseOverOpacity=this.sT();a.mouseOutOpacity=this.rT();a.buttonsVisible=this.pP();a.barSize=this.iB();
a.cornersRadius=this.MP();return a};$.g.Y=function(a,b){$F.B.Y.call(this,a,b);this.xI(a.backgroundFill);this.UI(a.backgroundStroke);this.LM(a.sliderFill);this.MM(a.sliderStroke);this.sT(a.mouseOverOpacity);this.rT(a.mouseOutOpacity);this.pP(a.buttonsVisible);this.iB(a.barSize);this.MP(a.cornersRadius)};$.g.R=function(){$.jd(this.ba,this.G,this.P,this.N,this.Lc);this.Lc=this.N=this.P=this.G=this.ba=null;$F.B.R.call(this)};var bJ=$F.prototype;bJ.barSize=bJ.iB;bJ.backgroundStroke=bJ.UI;
bJ.backgroundFill=bJ.xI;bJ.sliderStroke=bJ.MM;bJ.sliderFill=bJ.LM;bJ.mouseOutOpacity=bJ.rT;bJ.mouseOverOpacity=bJ.sT;bJ.cornersRadius=bJ.MP;bJ.buttonsVisible=bJ.pP;$.H(oG,$.Wp);$.g=oG.prototype;$.g.ra=18;$.g.qa=448;$.g.xd=function(a){var b=0;$.W(a,32)&&(b|=128);$.W(a,16)&&(b|=64);this.yf&&this.Dj&&this.Dj.dc.u(256);this.u(b,2)};$.g.M7=function(a){return!a.j("collapsed")};$.g.ada=function(a){return!!a.Wb()};
$.g.data=function(a){return $.p(a)?(this.na!=a&&($.K(a,$.ys)||$.K(a,$.vs))&&(this.na&&$.Xp(this.na,this.xd,this),this.na=a,$.L(this.na,this.xd,this),this.Ea=this.na.hv(),this.Ea.I2(this.M7),this.Dj&&this.Dj.scale().reset(),this.yf&&this.Dj&&this.Dj.dc.u(256),this.u(64,2)),this):this.na};$.g.gm=function(a){return $.p(a)?(this.P!=a&&(this.P=a,this.u(256,2)),this):this.P};
$.g.Gg=function(a){return $.p(a)?((0,window.isNaN)(a)||(this.g=a,this.o=window.NaN,this.eb=a,this.Za=window.NaN,this.P=0,this.u(256,2)),this):this.g};$.g.sj=function(a){return $.p(a)?((0,window.isNaN)(a)||(this.g=window.NaN,this.o=a,this.eb=window.NaN,this.Za=a,this.u(256,2)),this):this.o};$.g.Xn=function(a){return $.p(a)?(this.Sb!=a&&(this.Sb=a,this.u(128,2)),this):this.Sb};
$.g.F=function(){var a=oG.B.F.call(this);a.isResourceChart=this.b;this.na&&(a.treeData=this.na.iA(["collapsed"]));a.verticalOffset=this.gm();(0,window.isNaN)(this.Gg())?(0,window.isNaN)(this.sj())||(a.endIndex=this.sj()):a.startIndex=this.Gg();a.scrollTo=this.Ja;return a};
$.g.Y=function(a,b){oG.B.Y.call(this,a,b);this.b=a.isResourceChart;"treeData"in a&&this.data($.As(a.treeData));this.gm(a.verticalOffset);"startIndex"in a?this.Gg(a.startIndex):"endIndex"in a&&this.sj(a.endIndex);"scrollTo"in a&&CG(this,+a.scrollTo)};$.H(GG,$.Us);$.g=GG.prototype;$.g.ra=$.Us.prototype.ra;$.g.qa=$.Us.prototype.qa|80;$.g.se=function(a){return $.p(a)?(a=$.pj(a),a!=this.f&&(this.f=a,this.position(this.Je)),this):this.f};$.g.position=function(a){if($.p(a)){a=$.kn(a)?(0,window.parseFloat)(a)/100:a;var b=0,c=1;this.Xa&&(c=HG(this)?this.Xa.ae():this.Xa.$d(),b=this.D/c,c=(c-this.P)/c);a=$.Ya(a,b,c);(0,window.isNaN)(a)||(this.Xa&&(this.Je=a,this.Ea&&this.dispatchEvent("splitterchange")),this.Je=a,this.u(64,1));return this}return this.Je};
$.g.stroke=function(a,b,c,d,e){if($.p(a)){var f=$.Ub.apply(null,arguments);this.g!=f&&(this.g=f,this.u(80,1));return this}return this.g||"none"};$.g.fill=function(a,b,c,d,e,f,h){if($.p(a)){var k=$.Sb.apply(null,arguments);this.la!=k&&(this.la=k,this.u(16,1));return this}return this.la||"none"};$.g.FY=function(a,b,c,d,e,f,h){if($.p(a)){var k=$.Sb.apply(null,arguments);this.va!=k&&(this.va=k,this.u(16,1));return this}return this.va||"none"};
$.g.Hq=function(a){return $.p(a)?($.da(a)&&(this.Ea=a),this):this.Ea};$.g.Kj=function(){this.Lc||(this.Lc=$.Zi());return this.Lc};$.g.P7=function(){this.Ja=!0;LG(this).visible(!0);var a=HG(this);this.Za=$.$e($.Ko.body,"cursor");a?this.G.bo(this.Je*this.Xa.ae()+this.Xa.tb()).co(this.Xa.$b()).$n(0).Yn(this.Xa.$d()):this.G.bo(this.Xa.tb()).co(this.Je*this.Xa.$d()+this.Xa.$b()).$n(this.Xa.ae()).Yn(0)};
$.g.In=function(){var a=this.o.kb(),b=HG(this),c=this.b/2;IG(this,b);var d=b?this.Je*this.Xa.ae()+this.Xa.tb():this.Je*this.Xa.$d()+this.Xa.$b();a=b?a.tb()+a.ae()/2:a.$b()+a.$d()/2;b?(this.G.bo(Math.min(d,a)).$n(Math.abs(d-a)),this.N.bo(a-c)):(this.G.co(Math.min(d,a)).Yn(Math.abs(d-a)),this.N.co(a-c))};
$.g.O7=function(){this.Ja=!1;LG(this).visible(!1);var a=this.o.kb(),b=HG(this);this.Ma||IG(this,b,!0);this.U?(a=b?a.left+3-this.Xa.left:a.top+3-this.Xa.top,b=b?a/(this.Xa.width-this.b):a/(this.Xa.height-this.b)):(a=b?a.left+a.width/2-this.Xa.left:a.top+a.height/2-this.Xa.top,b=b?a/this.Xa.width:a/this.Xa.height);this.position($.Kl(b,4))};$.g.Q7=function(){this.Ma=!0};$.g.Zda=function(a){this.dispatchEvent({type:"dblclick",originalEvent:a})};$.g.R7=function(){this.Ma=!1;this.Ja||IG(this,HG(this),!0)};
$.g.X=function(){if(this.xc()){var a=this.O(),b=a?a.Ga():null,c=b&&!b.Ve();c&&b.suspend();this.Kj().Wb()||this.Kj().ec(LG(this)).ec(KG(this)).ec(gea(this));this.J(2)&&(this.Kj().parent(a),this.I(2));this.J(4)&&(this.Xa=this.sb(),this.Ea&&this.dispatchEvent("splitterchange"),this.u(80),this.I(4));this.J(16)&&(this.N.stroke(this.g).fill(this.la),this.G.fill(this.va).stroke(this.Sb),this.o.fill(this.eb).stroke(this.rb),this.I(16));this.J(64)&&(KG(this).nc(1,0,0,1,0,0),this.D!=this.ga&&(a=HG(this)?this.Xa.ae():
this.Xa.$d(),this.ga<=a&&(this.D=this.ga,this.ga>a-this.P&&(this.ba=a-this.ga),this.position(this.Je))),this.P!=this.ba&&(a=HG(this)?this.Xa.ae():this.Xa.$d(),this.ba<=a&&(this.P=this.ba,this.ba>a-this.D&&(this.ga=a-this.ba),this.position(this.Je))),JG(this),this.I(64));this.J(8)&&(this.Kj().zIndex(this.zIndex()),JG(this),this.I(8));c&&b.resume()}return this};$.g.remove=function(){this.Lc&&this.Lc.parent(null)};
$.g.R=function(){$.jd(this.G,this.o,this.N,this.Lc);this.Lc=this.N=this.o=this.G=null;GG.B.R.call(this)};$.H(MG,$.Us);$.g=MG.prototype;$.g.ra=$.Us.prototype.ra;$.g.qa=$.Us.prototype.qa|80;$.g.remove=function(){this.Lc&&this.Lc.parent(null)};$.g.position=function(a){return $.p(a)?(this.Je!=a&&(this.Je=a,this.u(64,1)),this):this.Je};$.g.stroke=function(a,b,c,d,e){if($.p(a)){var f=$.Ub.apply(null,arguments),h=$.Tn(f);if(this.g!=f||h!=this.D)this.g=f,this.D=h,this.u(80,1);return this}return this.g||"none"};
$.g.FY=function(a,b,c,d,e,f,h){if($.p(a)){var k=$.Sb.apply(null,arguments);this.G!=k&&(this.G=k,this.u(16,1));return this}return this.G||"none"};$.g.Hq=function(a){return $.p(a)?($.da(a)&&(this.N=a),this):this.N};$.g.Kj=function(){this.Lc||(this.Lc=$.Zi());return this.Lc};$.g.o7=function(){this.dispatchEvent("dragstart");this.P=!0;this.ba=$.$e($.Ko.body,"cursor");PG(this).clear()};
$.g.In=function(){var a=this.b.kb();NG(this);var b=this.Xa.left+this.Je+this.D/2;a=a.tb()+a.ae()/2;this.f.clear().moveTo(b,this.Xa.top).lineTo(a,this.Xa.top).lineTo(a,this.Xa.top+this.Xa.height).lineTo(b,this.Xa.top+this.Xa.height).close();this.o.clear().moveTo(a,this.Xa.top).lineTo(a,this.Xa.top+this.Xa.height);this.dispatchEvent("drag")};$.g.n7=function(){this.P=!1;this.f.clear();var a=this.b.kb();this.U||NG(this,!0);this.position(a.left+3-this.Xa.left);this.dispatchEvent("dragend")};
$.g.bea=function(a){a.preventDefault();this.uh(a)};$.g.p7=function(){this.U=!0};$.g.q7=function(){this.U=!1;this.P||NG(this,!0)};
$.g.X=function(){if(this.xc()){var a=this.O(),b=a?a.Ga():null,c=b&&!b.Ve();c&&b.suspend();this.Kj().Wb()||this.Kj().ec(PG(this)).ec(hea(this)).ec(iea(this));this.J(2)&&(this.Kj().parent(a),this.I(2));this.J(4)&&(this.Xa=this.sb(),this.N&&this.dispatchEvent("splitterchange"),this.u(80),this.I(4));this.J(16)&&(this.o.stroke(this.g),this.f.fill(this.G),this.b.fill(this.ga),this.I(16));this.J(64)&&((0,window.isNaN)(this.Je)&&(this.Je=Math.round((this.Xa.width-this.D)/2)),this.N&&this.dispatchEvent("splitterchange"),
OG(this),this.I(64));this.J(8)&&(this.Kj().zIndex(this.zIndex()),OG(this),this.I(8));c&&b.resume()}return this};$.g.R=function(){$.jd(this.f,this.b,this.o,this.Lc);this.Lc=this.o=this.b=this.f=null;MG.B.R.call(this)};$.H(QG,$.Wp);QG.prototype.ra=32770;QG.prototype.qa=$.Wp.prototype.qa;var cJ={};$.ep(cJ,[[1,"fill",$.yp],[1,"stroke",$.xp],[1,"placementStroke",$.xp],[0,"enabled",$.Hp]]);$.S(QG,cJ);$.g=QG.prototype;$.g.i=$.Vp;$.g.Og=$.Up;$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};
$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.Ub=null,null===a?($.Xp(this.$,this.KL),this.$=null):(this.$&&$.Xp(this.$,this.KL,this),this.$=a,$.L(this.$,this.KL,this))),this):this.$};$.g.KL=function(a){var b=0;$.W(a,32768)&&(b|=32768);$.W(a,2)&&(b|=2);this.ua(b)};$.g.Fe=function(a,b){return $.da(b)||null===b?(a?this.ma.enabled=b:this.enabled(b),!0):!1};$.g.Y=function(a,b){QG.B.Y.call(this,a,b);$.tp(this,cJ,a,b)};
$.g.F=function(){var a=QG.B.F.call(this);$.Bp(this,cJ,a,void 0,void 0,!0);this.jh("enabled")&&null!==a.enabled||delete a.enabled;return a};$.g.R=function(){this.$&&($.Xp(this.$,this.KL,this),this.$=null);this.Ub=null;QG.B.R.call(this)};$.H(RG,$.gd);RG.prototype.reset=function(){SG(this,null);this.f=this.g=null};RG.prototype.R=function(){this.reset();this.na=null;RG.B.R.call(this)};$.H(WG,$.Us);$.g=WG.prototype;$.g.ra=$.Us.prototype.ra|$.gC|2;$.g.qa=$.Us.prototype.qa|208;$.g.al=function(){return this.Vx};
$.g.Ec=function(a,b,c,d,e,f){this.o||(this.o=new $.$u);var h=this.controller.b,k={item:{value:a,type:""},name:{value:a.get("name"),type:"string"},id:{value:a.get("id"),type:"string"},linearIndex:{value:a.j("index")+1,type:"number"}};if(h)k.minPeriodDate={value:a.j("minPeriodDate"),type:"date-time"},k.maxPeriodDate={value:a.j("maxPeriodDate"),type:"date-time"},k.period={value:b,type:""},k.periodIndex={value:null!=c&&0<=c?c:void 0,type:"number"},k.periodStart={value:b?a.pl("periods",c,"start"):void 0,
type:"date-time"},k.periodEnd={value:b?a.pl("periods",c,"end"):void 0,type:"date-time"},k.start={value:k.periodStart.value||k.minPeriodDate.value,type:"date-time"},k.end={value:k.periodEnd.value||k.maxPeriodDate.value,type:"date-time"},k.barBounds={value:a.pl("periodBounds",c),type:""};else{k.actualStart={value:a.j("actualStart"),type:"date-time"};k.actualEnd={value:a.j("actualEnd"),type:"date-time"};c=(b=!!a.Wb())?a.j("progressValue")||a.get("progressValue"):a.get("progressValue");k.progressValue=
{value:c,type:"percent"};k.autoStart={value:b?a.j("autoStart"):void 0,type:"date-time"};k.autoEnd={value:b?a.j("autoEnd"):void 0,type:"date-time"};k.autoProgress={value:b?a.j("autoProgress"):void 0,type:"percent"};k.barBounds={value:a.j("relBounds"),type:""};b=a.j("progressValue");c=$.p(b);h=a.j("autoProgress");var l=$.p(h);b=c?b:l?h:0;b=$.kn(b)?(0,window.parseFloat)(b)/100:Number(b);k.progress={value:b,type:"percent"};$.p(a.get("baselineStart"))&&(k.baselineStart={value:a.get("baselineStart"),type:"date-time"});
$.p(a.get("baselineEnd"))&&(k.baselineEnd={value:a.get("baselineEnd"),type:"date-time"})}$.p(d)&&(k.elementType={value:d,type:"string"});$.p(e)&&(k.hoverRatio={value:e,type:"number"});$.p(f)&&(k.hoverDateTime={value:f,type:"date-time"});this.o.lg(a);return $.Lt(this.o,k)};$.g.z6=$.ia;$.g.A6=$.ia;$.g.zW=$.ia;$.g.yW=$.ia;$.g.AW=$.ia;$.g.xW=$.ia;
$.g.E7=function(a){if(!this.Qp)if(this.sm)if((a=this.ft(a))&&!this.dc.altKey){var b=$.Ic(a);b.type="rowMouseUp";b=this.dc.dispatchEvent(b);var c=this.dc.dispatchEvent(a);b&&c&&(this.dc.r1(a),this.EN=!0)}else this.dc.pH(a);else this.sm=!0;this.Qp=!1};$.g.XW=function(a){if(this.EN)this.EN=!1;else{var b=this.ft(a);this.zW(b,a);b&&this.sm&&this.dc.dispatchEvent(b)&&this.dc.v1(b)}};
$.g.D7=function(a){switch(a.type){case "dblclick":a=this.ft(a);this.xW(a);this.sm?a&&this.dc.dispatchEvent(a)&&this.dc.s1(a):this.sm=!0;break;case "mousedown":case "touchstart":this.WW(a);break;case "mouseup":case "touchend":a=this.ft(a);this.AW(a);this.sm&&a&&this.dc.dispatchEvent(a)&&this.dc.qM(a);this.Ya().Wc();break;case "contextmenu":this.dc.dispatchEvent(a)}};$.g.G7=function(a){this.sm&&(a=this.ft(a))&&this.dc.dispatchEvent(a)&&this.dc.w1()};
$.g.WW=function(a){var b=this.ft(a);this.yW(b);this.sm&&(a.preventDefault(),b&&this.dc.dispatchEvent(b)&&this.dc.oH(b))};$.g.r1=function(a){this.rM(a)};$.g.s1=function(a){this.pM(a)};$.g.rM=function(a){this.sm&&tH(this,a.item)&&(a=$.Ic(a),a.type="rowSelect",this.dc.dispatchEvent(a))};$.g.pM=function(a){if((a=a.item)&&a.Wb()){var b=!a.j("collapsed");this.dc.dispatchEvent({type:"rowcollapseexpand",item:a,collapsed:b})&&a.j("collapsed",b)}};
$.g.v1=function(a){if(!this.aj){this.dc.Rn(a.hoveredIndex,a.startY,a.endY);var b=this.Ya(),c=this.Ec(a.item,a.period,a.periodIndex);$.iv(b,a.originalEvent.clientX,a.originalEvent.clientY,c)}};$.g.w1=function(){this.dc.Rn();this.Ya().Wc()};$.g.qM=$.ia;$.g.oH=$.ia;$.g.qT=$.ia;
$.g.ft=function(a){if(this.g.length){var b=this.controller.D,c=this.controller.Gg(),d,e=a.type;switch(e){case "mouseout":e="rowMouseOut";0<=this.ga&&(d=b[c+this.ga]);break;case "mouseover":e="rowMouseOver";break;case "mousemove":case "touchmove":e="rowMouseMove";break;case "mousedown":case "touchstart":e="rowMouseDown";break;case "mouseup":case "touchend":e="rowMouseUp";break;case "click":e="rowClick";break;case "dblclick":e="rowDblClick"}e={type:e,actualTarget:a.target,target:this,originalEvent:a};
var f=this.ia.top+this.D+1,h=this.ia.top+$.Ii(this.O().Ga()).y+this.D;a=a.clientY-h;h=this.g.length?this.g[this.g.length-1]:0;if(d)e.item=d;else{if(0>a||a>h)return null;d=$.Ma(this.g,a);h=(this.ga=d=0<=d?d:~d)?this.g[d-1]:0;f+=h;var k=f+(this.g[d]-h-this.Xn);e.item=b[c+d];e.startY=f;e.endY=k;e.hoveredIndex=this.ga;e.index=c+d;e.itemHeightMouseRatio=(a-h)/(this.g[d]-h)}return e}return null};
$.g.YJ=function(a){$.Uj(405,null,["dataGrid.editing() or timeline.editing()","dataGrid.edit() or timeline.edit()"],!0);return $.p(a)?(this.cd().enabled(a),this):this.cd().i("enabled")};$.g.cd=function(a){this.rj||(this.rj=new QG,$.L(this.rj,this.HL,this));return $.p(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.rj.K(a),this):this.rj};$.g.HL=function(a){$.W(a,2)&&sH(this)};var dJ={};
$.ep(dJ,[[1,"backgroundFill",$.yp],[1,"rowFill",$.yp],[1,"rowEvenFill",$.yp],[1,"rowOddFill",$.yp],[1,"rowHoverFill",$.vp],[1,"rowSelectedFill",$.vp]]);$.S(WG,dJ);var nH={};$.g=WG.prototype;$.g.BF=function(a,b){var c=this.i(a);return null!=c?c:this.i(b)};$.g.Dc=function(a,b,c){return"rowSelectedFill"==a||"rowHoverFill"==a||"selectedElementFill"==a||"selectedElementStroke"==a?c(this.i(a)):c(this.BF(a,-1!=a.indexOf("Fill")?"baseFill":"baseStroke"))};
$.g.me=function(a,b,c,d,e,f){var h=this.dc.Yb();switch(a){case "baseFill":a=h.ic(0);break;case "baseStroke":a=$.xk(h.ic(0));break;case "progressFill":a=h.ic(1);break;case "progressStroke":a={color:"#fff",opacity:1E-5};break;case "baselineFill":a=$.xk(h.ic(1),.7);break;case "baselineStroke":a=$.yk($.xk(h.ic(1),.7));break;case "parentFill":a=h.ic(4);break;case "parentStroke":a=$.xk(h.ic(4));break;case "milestoneFill":a=h.ic(9);break;case "milestoneStroke":a=$.yk(h.ic(9));break;case "selectedElementFill":a=
h.ic(2);break;case "selectedElementStroke":a=$.yk(h.ic(2));break;case "selectedConnectorStroke":a=$.Lk($.xk(h.ic(2)),2);break;case "rowHoverFill":a=$.cl("ganttBase.defaultRowHoverFill");break;case "rowSelectedFill":a=$.cl("ganttBase.defaultRowSelectedFill");break;default:a="blue"}a={sourceColor:a};null!=b&&($.p(d)?(a.fromItem=b,a.fromItemIndex=b.j("index"),a.toItem=c,a.toItemIndex=c.j("index"),a.connType=d):(a.item=b,a.itemIndex=b.j("index")),$.p(e)&&($.p(f)?(b=b.get("periods")[e],c=c.get("periods")[f],
a.fromPeriod=b,a.fromPeriodIndex=e,a.toPeriod=c,a.toPeriodIndex=f):(f=b.get("periods")[e],a.period=f,a.periodIndex=e)));return a};$.g.oi=function(){return{sourceHatchFill:this.eh()}};$.g.eh=function(){return $.Wb("diagonal-brick")};$.g.Yb=function(a){if($.K(a,$.xr))return this.Hc($.xr,a),this;if($.K(a,$.ur))return this.Hc($.ur,a),this;$.D(a)&&"range"==a.type?this.Hc($.xr):($.D(a)||null==this.Aa)&&this.Hc($.ur);return $.p(a)?(this.Aa.K(a),this):this.Aa};
$.g.Hc=function(a,b){if($.K(this.Aa,a))b&&this.Aa.K(b);else{var c=!!this.Aa;$.hd(this.Aa);this.Aa=new a;b&&this.Aa.K(b);$.L(this.Aa,this.Df,this);c&&this.u(128,1)}};$.g.Df=function(a){$.W(a,2)&&this.u(128,1)};$.g.WY=function(a){var b=this.cd();$.Uj(405,null,["timeline.editStructurePreviewFill()","timeline.edit().fill()"],!0);return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.XY=function(a){var b=this.cd();$.Uj(405,null,["timeline.editStructurePreviewStroke()","timeline.edit().stroke()"],!0);return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.VY=function(a){var b=this.cd();$.Uj(405,null,["timeline.editStructurePreviewDashStroke()","timeline.edit().placementStroke()"],!0);return arguments.length?b.placementStroke.apply(b,arguments):b.placementStroke()};
$.g.EY=function(a){$.K(a.b,$.Jf)&&!this.yh&&(this.yh=new uH(this.Lc,this),this.yh.wa("drag",this.In,!1,this),this.yh.wa("end",this.VW,!1,this),this.yh.Wk(a.zk))};
$.g.In=function(a){this.aj=!0;if(this.cd().i("enabled")&&!this.Eh&&(ZG(this,!0),this.sm=!1,this.dc.Rn(),this.Ya().Wc(),a=this.ft(a))){var b=a.item,c=a.itemHeightMouseRatio,d=a.startY,e=a.endY;this.Ii?(b&&b!=this.Ii&&!b.qC(this.Ii)?.2>c||.8<c?this.dc.Su(.2>c?d:e,void 0,"auto"):XG(b)?this.dc.Su(void 0,void 0,"not-allowed"):this.dc.Su(d,e,"auto"):this.dc.Su(void 0,void 0,"not-allowed"),this.z6(a)):(a=this.ia.top+$.Ii(this.O().Ga()).y+this.D,this.dc.Su(a+this.g[this.g.length-1],void 0,"auto"))}this.Ya().Wc();
this.Qp=!0};
$.g.VW=function(a){if(this.cd().enabled()&&!this.Eh){var b=this.ft(a),c=this.controller.data();this.A6(b);if(b){a=b.item;var d=b.hoveredIndex;d=this.controller.Gg()+d;var e=this.controller.D;b=b.itemHeightMouseRatio;var f=.2>b;b=.8<b;if(this.Ii&&a&&a!=this.Ii&&!a.qC(this.Ii))if(f||b)if(f?(f=e[d-1],d=a):(f=a,d=e[d+1]),f&&d){e=f.j("depth");var h=d.j("depth");b?(c=a.getParent()||c,c.$f(this.Ii,c.hf(a)+1)):e==h?(c=d.getParent()||d.bq(),a=c.hf(d),b=this.Ii.getParent()||this.Ii.bq(),b==c&&b.hf(this.Ii)<a&&
(a=Math.max(0,a-1)),c.$f(this.Ii,a)):e<h?f.$f(this.Ii,0):f.qC(this.Ii)||(c=a.getParent()||c,a=c.hf(a),c.$f(this.Ii,a))}else d?(c=d.bq(),c.$f(this.Ii,0)):f&&(c=f.getParent()||f.bq(),a=c.hf(f)+1,c.$f(this.Ii,a));else XG(a)||a.ec(this.Ii)}else this.Ii&&(b=this.ia.top+$.Ii(this.O().Ga()).y+this.D,a.clientY<b?c.$f(this.Ii,0):c.ec(this.Ii));this.dc.Su(void 0,void 0,"auto");this.Ii=null}this.Eh=!1;$.ni(function(){this.Qp=!1},10,this);this.yh.reset();this.aj=!1;this.sm=!0;(0,window.clearInterval)(this.Vo);
this.Vo=null;ZG(this,!1)};
$.g.AQ=function(){var a=this.ia.top+this.D+1,b=this.controller.gm(),c=this.controller.Gg(),d=this.controller.sj(),e=this.controller.D,f=a-b;this.dc.Rn();this.g.length=0;hH(this).clear();gH(this).clear();jH(this).clear();kH(this).clear();for(var h=this.Xn%2&&"svg"===$.Ui?.5:0,k=c;k<=d;k++){var l=e[k];if(!l)break;var m=k==c;f=m?a:f;var n=qG(this.controller,l);n=m?n-b+1:n;m=k%2?this.va:this.Ea;n=f+n;$.Sn(m.fill())||m.moveTo(this.ia.left,f).lineTo(this.ia.left+this.f,f).lineTo(this.ia.left+this.f,n).lineTo(this.ia.left,
n).close();l.j("selected")&&(SG(this.dc.al(),l),this.Za.clear().moveTo(this.ia.left,f).lineTo(this.ia.left+this.ia.width,f).lineTo(this.ia.left+this.ia.width,n).lineTo(this.ia.left,n).close());f=n+this.Xn;l=Math.floor(f-this.Xn/2)+h;this.Ma.moveTo(this.ia.left,l).lineTo(this.ia.left+this.f,l);l=f-a;this.g.push(l);this.B2=l}a=new $.I(this.ia.left,this.ia.top-1,this.ia.width,f-this.ia.top+1);eH(this).clip(a);this.aA&&this.aA.clip(a);this.wA&&this.wA.clip(a);bH(this).clip(a);return a};
$.g.ym=function(a){if($.Vj.anychart.ui.ContextMenu&&this.dc.contextMenu){var b=this.dc.contextMenu();b.jf()&&b.Wc()}b=a.deltaX;var c=a.deltaY,d=0<Math.abs(c),e=0<Math.abs(b);if($.YA||$.$c)b*=18,c*=18;var f=!$.Ko.body.scrollLeft,h=this.Bp(),k=EG(this.controller),l=!1;var m=!1;d&&(m=0>c,d=dG(k),k=eG(k),m=d||1!=k?0<d&&1>k||!d&&!m&&1!=k||1==k&&m&&0!=d:!1);e&&(e=0>b,l=dG(h),h=eG(h),l=e?l||1!=h?0<l&&1>h||1==h&&0!=l||!l&&f:f:l||1!=h?0<l&&1>h||!l&&1!=h:!1);if(m||l)a.preventDefault(),this.scroll(b,c)};
$.g.xT=function(a){$.W(a,2)&&this.ua(1)};$.g.Po=function(){this.Ya().X()};$.g.ru=$.ia;$.g.qr=$.ia;$.g.ou=function(a){return $.p(a)?(pG(this.controller,a),this):pG(this.controller)};
$.g.Jj=function(a){a&&this.u(64);if(!this.xc())return this;var b=this.O(),c=(a=b?b.Ga():null)&&!a.Ve()&&this.P;c&&a.suspend();if(!$G(this).Wb()){this.rb=this.Lc.rect();this.rb.fill(this.i("backgroundFill")).stroke(null).zIndex(10);this.ai=this.Lc.rect();this.ai.fill($.Rk).stroke(null).zIndex(20);this.tS(this.Lc);if(this.P){var d=EG(this.controller);$.L(d.O(fH(this)),function(a){$.W(a,8)?this.u(4,1):d.X()},this)}var e=this.Bp();$.L(e.O(fH(this)),function(a){$.W(a,1)&&e.X()},e);this.Lc.Ie("mousedown",
this.EY,!1,this);this.Lc.Ie("touchstart",this.EY,!1,this);this.XK();this.kn=a.rect();this.kn.stroke("none").fill("#000 0.1").zIndex(1E10)}this.J(2)&&(this.Lc.parent(b),this.I(2));this.J(4)&&(this.ia=$.Mn(this.sb(),0),this.Lc.clip(this.ia),this.rb.nf(this.ia),this.ai.nf(this.ia),this.f=this.ia.width,this.x3&&this.kn.nf(this.ia),b=this.ia.top+this.D+.5,mH(this).clear().moveTo(this.ia.left,b).lineTo(this.ia.left+this.f,b),this.P&&(d=EG(this.controller),b=d.iB(),d.ab(this.ia.left+this.ia.width-b-1,this.ia.top+
this.ul()+b+1,b,this.ia.height-this.ul()-2*b-2)),e=this.Bp(),b=e.iB(),e.ab(this.ia.left+b,this.ia.top+this.ia.height-b-1,this.ia.width-2*b,b),this.Rx=!0,this.qr(),this.I(4));this.J(64)&&(this.Ya().Wc(),this.Rx=!0,this.RT(),this.I(64));if(this.J(16)){this.rb.fill(this.i("backgroundFill"));b=this.i("rowFill");var f=this.i("rowOddFill");f=$.Sn(f)?b:f;var h=this.i("rowEvenFill");h=$.Sn(h)?b:h;gH(this).fill(f);hH(this).fill(h);b=this.dc.al().b;b=oH("rowSelectedFill",1)(this,0,b);jH(this).fill(b);var k;
$.z(this.U)?k=this.U:$.D(this.U)&&this.U.color&&(k=this.U.color);k&&mH(this).stroke(k);kH(this).stroke(this.U);this.ru();sH(this);this.I(16)}this.J(8)&&($G(this).zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.Rx=!0,this.I(128));this.$U();this.Rx&&(this.AQ(),this.K0(),this.Rx=!1);this.Kq();this.W_();c&&a.resume();this.P&&a&&!this.Oo&&a.Ie("stagerendered",function(){pH(this);rH(this)},void 0,this);return this};$.g.XK=$.ia;$.g.tS=$.ia;$.g.fH=$.ia;
$.g.yG=function(a){(this.x3=a)?this.kn.nf(this.ia):this.kn.nf(new $.I(0,0,0,0))};
$.g.Rn=function(a,b,c){var d=!1,e=!1;if($.p(a)&&$.p(b)&&$.p(c)){if(this.Zl!=b||this.yj!=c)this.ga=a,this.Zl=b,this.yj=c,d=0<=this.ga}else 0<=this.ga&&(this.ga=-1,this.yj=this.Zl=window.NaN),e=!0;d?(a=this.controller.D[a],a=oH("rowHoverFill",1)(this,0,a),iH(this).clear().fill(a).moveTo(this.ia.left,this.Zl).lineTo(this.ia.left+this.ia.width,this.Zl).lineTo(this.ia.left+this.ia.width,this.yj).lineTo(this.ia.left,this.yj).close()):e&&iH(this).clear()};
$.g.Su=function(a,b,c){var d=lH(this);$.p(a)?$.p(b)?d.clear().moveTo(this.ia.left,a).lineTo(this.ia.left+this.f,a).lineTo(this.ia.left+this.f,b).lineTo(this.ia.left,b).close().stroke(this.cd().i("stroke")):d.clear().moveTo(this.ia.left,a).lineTo(this.ia.left+this.f,a).stroke(this.cd().i("placementStroke")):d.clear();$.p(c)&&$.Te($.Ko.body,"cursor",c)};
$.g.rQ=function(a){var b=this.O();if(b){var c=$.Ii(b.Ga());b=this.ia.top+c.y+this.D+10;var d=c.y+this.ia.height-10-10;c=c.x+this.ia.left+10;var e=c+this.ia.width-10-10,f=a.clientX,h=a.clientY;this.$v=this.Qt=0;if(f<c||f>e)this.Qt=f-c;if(h<b||h>d)this.$v=h-b;var k=this;!this.aj||this.Vo||this.Eh||(this.Vo=(0,window.setInterval)(function(){k.qT(a)},100))}};$.g.iQ=function(a){this.Eh=a};$.g.bF=function(){};$.g.RT=$.ia;$.g.K0=$.ia;$.g.remove=function(){this.Lc&&this.Lc.parent(null)};
$.g.eD=function(a,b,c,d,e){if($.p(a)){var f=$.Ub.apply(null,arguments),h=$.Tn(f);if(this.U!=f||h!=this.Xn)this.U=f,this.Xn=h,this.P||this.controller.Xn(h),this.u(80,1);return this}return this.U||"none"};$.g.$U=function(){};$.g.Kq=$.ia;$.g.W_=$.ia;$.g.pH=function(a){this.controller.data()&&(this.dc==this&&this.dispatchEvent({type:"rowSelect",actualTarget:a?a.target:this,target:this,originalEvent:a,item:null,prevItem:this.dc.al().b}),this.dc.al().reset(),this.u(64,1))};
$.g.data=function(a){var b=this.controller.data();return $.p(a)?(a!=b&&$.K(a,$.ys)&&this.controller.data(a),this):b};$.g.X=function(){this.Ed||(this.ia&&!this.ia.height&&this.ia.height||(this.ia=this.sb()),DG(yG(this.controller,this.ia.height-this.D-1).Xn(this.Xn)));return this};$.g.sj=function(a){return $.p(a)?(this.controller.sj(a),this):this.controller.sj()};$.g.C7=function(){return this.controller.D};$.g.Gg=function(a){return $.p(a)?(this.controller.Gg(a),this):this.controller.Gg()};
$.g.ul=function(a){return $.p(a)?(this.D!=a&&(this.D=a,this.ia||(this.ia=this.sb()),this.P&&yG($.U(this.controller),this.ia.height-a-1).da(!1),this.u(4,1)),this):this.D};$.g.Ya=function(a){this.fb||(this.fb=new $.Ru(0),$.L(this.fb,this.Po,this),$.Vu(this.fb,this));return $.p(a)?(this.fb.K(a),this):this.fb};$.g.gm=function(a){return $.p(a)?(this.controller.gm(a),this):this.controller.gm()};
$.g.R=function(){$.Gd(window.document,"mousemove",this.rQ,!1,this);this.rj&&$.Xp(this.rj,this.HL,this);$.Xp(this.fb,this.Po,this);this.dc.Re&&(this.dc.Re.Uk(),$.hd(this.dc.Re));$.Xp(this.controller,this.xT,this);this.yh&&(this.yh.hc("drag",this.In,!1,this),this.yh.hc("end",this.VW,!1,this));$.jd(this.Aa,this.rj,this.fb,this.ai,this.rb,this.yh,this.Dd,this.Si,this.Ma,this.Za,this.ee,this.va,this.Ea,this.ke,this.Sb,this.Uc,this.eb,this.mc,this.aA,this.wA,this.kq,this.Lc,this.Vx);this.Vx=this.rj=this.Lc=
this.kq=this.wA=this.aA=this.mc=this.eb=this.Uc=this.Sb=this.ke=this.Ea=this.va=this.ee=this.Za=this.Ma=this.Si=this.Dd=this.yh=this.controller=this.rb=this.ai=this.fb=null;WG.B.R.call(this)};$.g.F=function(){var a=WG.B.F.call(this);if(a.isStandalone=this.P)a.controller=this.controller.F(),a.defaultRowHeight=this.ou(),a.palette=this.Yb().F();$.Bp(this,dJ,a);a.rowStroke=$.zk(this.U);a.headerHeight=this.D;a.edit=this.cd().F();a.tooltip=this.Ya().F();return a};
$.g.Y=function(a,b){WG.B.Y.call(this,a,b);(this.P="isStandalone"in a?a.isStandalone:"controller"in a)&&"controller"in a&&(this.controller=new oG(void 0),$.L(this.controller,this.xT,this),this.controller.K(a.controller),this.ou(a.defaultRowHeight),this.Yb(a.palette));$.tp(this,dJ,a,b);this.eD(a.rowStroke);"tooltip"in a&&this.Ya().ja(!!b,a.tooltip);this.ul(a.headerHeight);"edit"in a&&this.cd().ja(!!b,a.edit)};$.H(uH,$.Bf);uH.prototype.tr=function(){this.deltaY=this.deltaX=0};
uH.prototype.Rs=function(a,b){if(this.b.dc.altKey||!this.b.cd().enabled()&&!this.b.Eh){var c=this.x-a,d=this.y-b;this.x=a;this.y=b;this.b.scroll(c,d)}};uH.prototype.reset=function(){this.y=this.x=0};$.H(qH,$.zo);qH.prototype.cD=function(){qH.B.cD.call(this);this.b.altKey=!1};qH.prototype.FK=function(a,b){qH.B.FK.call(this,a,b);$.yd($.Vj,["visibilitychange","blur"],this.cD,!1,this)};qH.prototype.PF=function(){qH.B.PF.call(this);$.Gd($.Vj,["visibilitychange","blur"],this.cD,!1,this)};$.H(vH,$.bg);
$.g=vH.prototype;$.g.reset=function(){this.fill(null).stroke(null).clear();this.WP=null;this.type=void 0;this.label&&(this.label.yi(),this.label.enabled(!1),this.label.X());this.Qb=this.item=this.PS=this.label=null;this.hs=void 0};$.g.WP=null;$.g.label=null;$.g.PS=null;$.g.item=null;$.g.Qb=null;$.g.hs=void 0;$.H(yH,$.X);$.g=yH.prototype;$.g.qa=$.X.prototype.qa|208;$.g.ra=$.X.prototype.ra;$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.ya.K(a),this):this.ya};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};$.g.state=function(a){return $.p(a)?(this.oc!=a&&(this.oc=a,this.u(20,1)),this):this.oc};$.g.Be=function(){return 2==this.oc};$.g.Pn=function(a){!this.Be()&&this.uh(a)&&this.state(1)};$.g.rg=function(a){!this.Be()&&this.uh(a)&&this.state(0)};
$.g.qx=function(a){this.uh(a)&&(this.Be()?this.state(1):this.state(2))};$.g.padding=function(a,b,c,d){this.Oa||(this.Oa=new $.dt,$.L(this.Oa,this.Cl,this));return $.p(a)?(this.Oa.K.apply(this.Oa,arguments),this):this.Oa};$.g.Cl=function(a){$.W(a,2)&&this.u(4,9)};var eJ={};$.ep(eJ,[$.Y.w3,$.Y.fI,$.Y.dI]);$.S(yH,eJ);var kea=[["cursor",128,1],["width",4,1],["height",4,1]],xH=$.gp(),wH,fJ={};$.R(fJ,[["background",0,0],["content",20,1]]);$.pp(fJ,20,16,1,1);wH=fJ;$.rp(yH,$.Ac(wH),"normal");$.g=yH.prototype;
$.g.remove=function(){this.ta&&this.ta.parent(null)};
$.g.X=function(){if(!this.xc())return this;$.U(this);this.ta||(this.ta=$.Zi(),this.Ha=new $.Ws,this.Ha.ja(!0,this.Dc("background")),this.Ha.zIndex(0),this.Ha.O(this.ta),this.Ha.qb(this),this.pt=this.ta.rect().stroke(null).fill($.Rk).zIndex(999),$.Ps(this,this.pt,this.Pn,this.rg,this.qx,null));this.Tc||(this.Tc=$.cj().zIndex(1));this.ld||(this.ld=$.aj().zIndex(1).stroke(null).fill(null));var a=this.Dc("content");this.gL=$.z(a)||$.ea(a);this.y_=$.E(a);this.ld.parent(null);this.Tc.parent(null);this.gL?
this.Tc.parent(this.ta):this.y_&&(this.oaa=a,this.ld.parent(this.ta));this.J(2)&&(this.ta.parent(this.O()),this.I(2));this.J(8)&&(this.ta.zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.pt.cursor(this.i("cursor")),this.I(128));this.J(16)&&this.gL&&this.Bh();this.J(4)&&(this.Ny(),this.u(80),this.I(4));this.J(16)&&(this.gL&&this.Sw(),this.I(16));this.J(64)&&(this.KJ(),this.I(64));this.da(!1);return this};
$.g.Cn=function(a,b,c,d){var e=this.Dc("adjustFontSize");if(e)if(e.width&&e.height){if(a>c||b>d)return 1;if(a<c||b<d)return-1}else if(e.width){if(a>c)return 1;if(a<c)return-1}else if(e.height){if(b>d)return 1;if(b<d)return-1}return 0};
$.g.tP=function(a,b){var c=this.Dc("minFontSize"),d=this.Dc("maxFontSize"),e=Math.round((d+c)/2),f=d,h=$.cj();h.re("aria-hidden","true");this.Bh(h);h.fontSize(d);var k=h.kb();k=this.Cn(k.width,k.height,a,b);if(0>=k)return d;h.fontSize(e);k=h.kb();for(d=k=this.Cn(k.width,k.height,a,b);c!=f;){if(0>k)c=Math.min(e+1,f),e+=Math.floor((f-e)/2);else if(0<k)f=Math.max(e-1,c),e-=Math.ceil((e-c)/2);else break;h.fontSize(e);k=h.kb();k=this.Cn(k.width,k.height,a,b);if(0>=d*k)break}if(!k)return $.hd(h),e;do e+=
d,h.fontSize(e),k=h.kb(),k=this.Cn(k.width,k.height,a,b);while(0>d*k);$.hd(h);return e};$.g.SA=function(){var a=this.Dc("adjustFontSize");return a&&(a.width||a.height)};$.g.Sw=function(){if(this.SA()){var a=this.tP(this.ii,this.hi);this.Tc.fontSize(a)}this.Tc.x(this.gg);this.Tc.y(this.hg-1);this.Tc.clip(this.gl)};$.g.KJ=function(){$.U(this.Ha);this.Ha.fa(this.gl);this.Ha.ja(!1,this.Dc("background"));this.Ha.X();this.Ha.da(!1)};$.g.Qf=function(a){$.W(a,1)&&(a.target.I(4294967295),this.ua(1))};
$.g.Og=function(){return this.XM[this.oc]};$.g.Dc=function(a){if("background"==a){a={};var b=$.Fa(a,this.TI[this.oc]);$.Kc.apply(null,b)}else a=$.Vp.call(this,a);return a};
$.g.Bh=function(a){var b=a||this.Tc;b.color(this.Dc("fontColor"));b.opacity(this.Dc("fontOpacity"));b.bm(this.Dc("selectable"));b.td(this.Dc("disablePointerEvents"));if(this.J(4)||a){a=this.Dc("content");var c=this.Dc("useHtml");$.p(a)&&(c?b.htmlText(a):b.text(a));b.fontFamily(this.Dc("fontFamily"));b.fontStyle(this.Dc("fontStyle"));b.fontVariant(this.Dc("fontVariant"));b.fontWeight(this.Dc("fontWeight"));b.fontSize(this.Dc("fontSize"));b.rq(this.Dc("fontDecoration"));b.direction(this.Dc("textDirection"));
b.du(this.Dc("wordBreak"));b.wordWrap(this.Dc("wordWrap"));b.letterSpacing(this.Dc("letterSpacing"));b.lineHeight(this.Dc("lineHeight"));b.textIndent(this.Dc("textIndent"));b.vAlign(this.Dc("vAlign"));b.Wl(this.Dc("hAlign"));b.textOverflow(this.Dc("textOverflow"))}};
$.g.Ny=function(){var a=this.fa(),b,c,d=this.i("width"),e=this.i("height"),f=0,h=0;if(a){var k=a.width;var l=a.height;null!=d?(this.ii=b=$.M(d,k),f=Math.abs(b),a=!1):(b=0,a=!0);if(null!=e){this.hi=c=$.M(e,l);h=Math.abs(c);var m=!1}else c=0,m=!0}else $.sn(d)?(a=!0,b=0):(a=!1,this.ii=b=$.N(d),f=Math.abs(b)),$.sn(e)?(m=!0,c=0):(m=!1,this.hi=c=$.N(e),h=Math.abs(c));var n=$.Jl(this.Je);n.x=k?$.M(n.x,k):0;n.y=l?$.M(n.y,l):0;this.gL&&(k=this.padding(),this.Tc.width(null),this.Tc.height(null),a?(this.Hm=
b+=this.Tc.kb().width,this.ii=k.Yj(b)):this.Hm=k.ig(f),this.Tc.width(this.Hm),m?(this.Fm=c+=this.Tc.kb().height,this.hi=k.nj(c)):this.Fm=k.Ah(h),this.Tc.height(this.Fm),this.gg=$.M(k.i("left"),this.ii),this.hg=$.M(k.i("top"),this.hi),this.gg+=n.x,this.hg+=n.y);this.y_&&(d={path:this.ld,width:d,height:e,state:this.Be()?"selected":1==this.oc?"hovered":"normal"},this.oaa.call(d,this.ld),d=this.ld.kb(),a&&(this.ii=d.left+d.width),m&&(this.hi=d.top+d.height),this.ld.nc(1,0,0,1,n.x,n.y));this.gl=new $.I(n.x,
n.y,this.ii,this.hi);this.pt.nf(this.gl)};$.g.position=function(a){return $.p(a)?(this.Je=a,this.u(4,9),this):this.Je};$.g.F=function(){var a=yH.B.F.call(this);$.Bp(this,eJ,a,"Button");a.normal=this.ca.F();a.hovered=this.ya.F();a.selected=this.Da.F();a.padding=this.padding().F();return a};$.g.Y=function(a,b){yH.B.Y.call(this,a,b);$.tp(this,eJ,a,b);this.padding().ja(!!b,a.padding);this.ca.ja(!!b,a.normal);this.ya.ja(!!b,a.hovered);this.Da.ja(!!b,a.selected)};
$.g.R=function(){$.jd(this.pt,this.Tc,this.ld,this.Ha,this.ta,this.Oa);this.Oa=this.ta=this.Ha=this.ld=this.Tc=this.pt=null;$.jd(this.ca,this.ya,this.Da);this.Da=this.ya=this.ca=null;yH.B.R.call(this)};var gJ=yH.prototype;gJ.normal=gJ.Ta;gJ.hovered=gJ.lb;gJ.selected=gJ.selected;gJ.padding=gJ.padding;$.H(zH,yH);zH.prototype.qx=function(a){if(this.uh(a)){this.Be()?this.state(1):this.state(2);a=this.yf;var b=!this.Be(),c=a.controller.D[this.b];c&&c.Wb()&&a.dc.dispatchEvent({type:"rowcollapseexpand",item:c,collapsed:b})&&c.j("collapsed",b)}};$.H(AH,$.X);$.g=AH.prototype;$.g.qa=$.X.prototype.qa|4048;$.g.ra=$.X.prototype.ra|$.gC|$.hC|4096;$.g.pga=function(a,b){var c=$.z(b)?mea(this.yf,b):b;if($.D(c)){$.U(this);var d=c.formatter,e=c.width;c=c.textStyle;$.p(d)&&this.labels().format(function(){return d(this.item.get(a))});$.p(e)&&this.width(e).$E(e);$.p(c)&&this.labels(c);this.da(!0)}return this};$.g.caa=function(){return""};$.g.BY=function(a){return $.p(a)?(this.cF!=a&&(this.cF=a,this.u(128,1)),this):this.cF};$.g.WE=$.ia;
$.g.T$=function(a){if($.W(a,16)){for(a=0;a<this.ue.length;a++)this.ue[a].ad();this.ue.length=0;a=2048;if(ZF(this.labels())||this.xC!=this.WE)a|=1024;$.jd(this.Pv);this.Pv.length=0;this.u(a)}};$.g.$z=function(){if(!this.ue.length){this.zw=this.yf.controller.zw;for(var a=0;a<this.zw.length;a++){var b=new $.bw;this.ue.push(b)}}return this.ue};
$.g.uE=function(a){for(var b=this.xC!=this.WE,c=0;c<this.ue.length;c++){var d=this.ue[c],e=this.zw[c];if(b){var f=this.Pv[c];f||(f=new $.aw,f.Me(!0),f.parent(this.labels()),this.Pv[c]=f);this.xC(f,e)}a&&($.dw(d),d.ab=null);f=void 0;if(e){b?(f=e.j("index"),f=this.Pv[f]):f=this.labels();var h=this.yf.Ec(e);lea(this,h,e);e=f.jx(h);d.text(e)}d.style(f.flatten());$.fw(d);$.iw(d)}};$.g.ka=function(){return this.he};
$.g.format=function(a){$.p(a)&&$.Uj(405,null,["column.format()","column.labels().format()"],!0);var b=this.labels().format(a);return $.p(a)?this:b};$.g.labels=function(a){this.yl||(this.yl=new $.aw,this.yl.Ia("ganttDefaultSimpleLabelsSettings"),0==this.he?this.yl.Ia({format:"{%linearIndex}"}):1==this.he&&this.yl.Ia({format:"{%name}"}),$.L(this.yl,this.RS,this));return $.p(a)?(this.yl.K(a),this.u(128,1),this):this.yl};
$.g.y$=function(a){$.Uj(405,null,["column.cellTextSettings()","column.labels()"],!0);return $.p(a)?(this.labels(a),this):this.labels()};$.g.Fd=function(a){$.W(a,1)&&this.u(128,1)};$.g.RS=function(a){var b=0,c=1;$.W(a,1)&&(b|=512);$.W(a,8)&&(b|=1024,c|=4096);$.W(a,2)&&(b|=128,c|=4096);$.W(a,32768)&&(b|=128,this.yl.enabled()&&(c|=4096));this.u(b,c)};$.g.QS=function(a){return $.p(a)?(this.xC=a||this.WE,$.jd(this.Pv),this.Pv.length=0,this.u(1024,1),this):this.xC};
$.g.z$=function(a){$.Uj(405,null,["column.cellTextSettingsOverrider()","column.labelsOverrider()"],!0);return this.QS(a)};$.g.$X=function(a){return $.p(a)?(this.Py!=a&&(this.Py=a,this.u(128,1)),this):this.Py};$.g.title=function(a){this.nb||(this.nb=new $.vu,$.U(this.nb),this.nb.O(BH(this)).margin(0),this.nb.da(!1),$.L(this.nb,this.Zp,this),this.nb.qb(this));return $.p(a)?($.U(this),this.nb.K(a),this.nb.O(BH(this)),this.da(!0),this):this.nb};$.g.Zp=function(a){$.W(a,1)&&this.yf.u(16,9)};
$.g.Kj=function(){this.Lc||(this.Lc=$.Zi());return this.Lc};$.g.position=function(a){return $.p(a)?(this.Je&&this.Je.x==a.x&&this.Je.y==a.y||(this.Je=a,this.Xa=null,this.u(4,9)),this):this.Je};$.g.width=function(a){return $.p(a)?(this.Ke!=a&&(this.Ke=a,this.Xa=null,this.u(4,9)),this):this.Ke};$.g.$E=function(a){return $.p(a)?(this.hQ=a,this):this.hQ};$.g.height=function(a){return $.p(a)?(this.ff!=a&&(this.ff=a,this.Xa=null,this.u(4,9)),this):this.ff};
$.g.t$=function(a){$.Uj(405,null,["buttonCursor()","dataGrid.buttons().cursor()"],!0);var b=this.yf.buttons();return $.p(a)?(b.cursor(a),this):b.cursor()};$.g.mR=function(){this.vh||(this.Xl=$.Mf().oq(),this.vh=new $.sh(this.Xl));return this.vh};$.g.remove=function(){this.Lc&&this.Lc.parent(null);this.yf.u(512,1)};
$.g.Ny=function(){if(this.Xa)return this.Xa;var a=this.yf.sb(),b=$.M(this.Ke||0,a.width);b=Math.max(hJ,b);var c=$.M(this.ff||0,a.height),d=$.Jl(this.Je);return this.Xa=new $.I(a.left+d.x,a.top+d.y,b,c)};$.g.u$=function(a){$.W(a,1)&&this.u(256,1)};
$.g.X=function(){if(this.xc()){var a=this.O(),b=a?a.Ga():null,c=b&&!b.Ve();c&&b.suspend();this.Kj().Wb()||this.Kj().ec(this.mR()).ec(DH(this)).ec(BH(this));this.J(2)&&(this.Kj().parent(a),this.I(2));this.J(4)&&(this.Ny(),this.Kj().clip(this.Xa),this.u(128),this.I(4));this.J(2048)&&(this.I(2048),this.u(128));this.J(512)&&(this.I(512),this.u(128));this.J(1024)&&(this.I(1024),this.u(128));var d,e;if(this.J(256)){a=this.yf.controller.D;var f=this.yf.Gg();var h=this.yf.sj();var k=-1;for(d=f;d<=h;d++){var l=
a[d];if(!l)break;this.Py&&l.Wb()&&(k++,(e=this.yn[k])&&e.X())}this.I(256)}if(this.J(128)){k=this.yf.ul();CH(this).clear().moveTo(this.Xa.left,this.Xa.top).lineTo(this.Xa.left+this.Xa.width,this.Xa.top).lineTo(this.Xa.left+this.Xa.width,this.Xa.top+k).lineTo(this.Xa.left,this.Xa.top+k).close();a=new $.I(this.Xa.left,this.Xa.top,this.Xa.width,k);$.U(this.nb);this.nb.fa(a);this.nb.height(k);this.nb.da(!1);this.u(64);a=this.yf.controller.D;f=this.yf.Gg();h=this.yf.sj();var m=this.yf.gm(),n=this.labels().padding(),
q=this.Xa.top+k+1-m;m=$.M(n.i("left"),this.Xa.width);this.SS.length=0;k=-1;var r=this.yf.buttons();d=r.Ta().i("content");var t=r.lb().i("content"),u=r.selected().i("content"),v=r.F();v.normal.content=d;v.hovered.content=$.On(t,d);v.selected.content=$.On(u,d);r.I(4294967295);if(!(0,window.isNaN)(this.ZT)&&!(0,window.isNaN)(this.YT))for(d=this.ZT;d<=this.YT;d++)if(t=this.ue[d])$.jw(t,null),$.lw(t);this.ZT=a[f]?a[f].j("index"):window.NaN;this.YT=a[h]?a[h].j("index"):window.NaN;for(d=f;d<=h;d++){l=a[d];
if(!l)break;f=qG(this.yf.controller,l);t=l.j("depth")||0;t*=this.cF;var w=m+t;u=0;if(this.Py&&l.Wb()){k++;e=this.yn[k];e||(e=new zH(this.yf),this.yn.push(e),e.ja(!0,v),e.zIndex(10),e.O(DH(this)),$.L(e,this.u$,this));$.U(e);e.K(v);u=(r.i("width")||0)+oea;var x=q+(f-(r.i("height")||0))/2,y="svg"===$.Ui?.5:0;var A=e.enabled(!0);$.p(d)?A.b=d:A=A.b;A.fa(this.Xa).position({x:Math.floor(this.Xa.left+w)+y,y:Math.floor(x)+y}).state(l.j("collapsed")?1==e.oc?1:0:2);e.da(!1);e.X()}e=q+f;l=l.j("index");l=this.ue[l];
this.labels().enabled()?(q=n.Wi(new $.I(this.Xa.left,q,this.Xa.width,f)),q.left+=u+t,q.width-=u+t,$.jw(l,this.Xl),$.qw(l,q,b),$.kw(l),this.SS.push(l.text())):$.jw(l,null);q=e+this.yf.Xn}for(;++k<this.yn.length&&this.Py&&this.yn[k].enabled();)this.yn[k].enabled(!1).X();this.I(1664)}this.J(16)&&(CH(this).fill(this.yf.i("headerFill")),this.u(64),this.I(16));this.J(64)&&(this.nb.X(),this.I(64));this.J(8)&&(this.Kj().zIndex(this.zIndex()),this.I(8));c&&b.resume()}return this};
$.g.Y=function(a,b){AH.B.Y.call(this,a,b);this.width(a.width);this.$E(a.defaultWidth);this.$X(a.collapseExpandButtons);this.BY(a.depthPaddingMultiplier);$.p(a.format)&&this.format(a.format);this.title().ja(!!b,a.title);this.QS(a.labelsOverrider||a.cellTextSettingsOverrider)};$.g.R=function(){$.jd(this.yl,this.Pv,this.nb,this.dy,this.LH,this.kq,this.Lc,this.yn);this.yl=null;this.Pv.length=0;this.Lc=this.kq=this.LH=this.dy=this.nb=null;this.yn.length=0;AH.B.R.call(this)};
$.g.F=function(){var a=AH.B.F.call(this);a.width=this.Ke;$.p(this.hQ)&&(a.defaultWidth=this.hQ);a.collapseExpandButtons=this.Py;a.depthPaddingMultiplier=this.cF;a.labels=this.labels().F();a.title=this.nb.F();this.xC!=this.WE&&$.Uj(8,null,["Data Grid Column cellTextSettingsOverrider"]);return a};var iJ=AH.prototype;iJ.title=iJ.title;iJ.width=iJ.width;iJ.defaultWidth=iJ.$E;iJ.enabled=iJ.enabled;iJ.format=iJ.format;iJ.labels=iJ.labels;iJ.cellTextSettings=iJ.y$;iJ.labelsOverrider=iJ.QS;
iJ.cellTextSettingsOverrider=iJ.z$;iJ.collapseExpandButtons=iJ.$X;iJ.depthPaddingMultiplier=iJ.BY;iJ.setColumnFormat=iJ.pga;iJ.buttonCursor=iJ.t$;iJ.draw=iJ.X;$.H(EH,$.Ww);$.g=EH.prototype;$.g.qc=function(){EH.B.qc.call(this);var a=this.Sa();$.Ai(a,"anychart-label-input");this.xl=new $.zo(this.Sa())};$.g.ab=function(a){if($.p(a)){this.ub=a;if(a=this.Sa()){var b=this.ub;b=$.dc("padding: 0px; position: absolute; left: %spx; top: %spx; width: %spx; height: %spx",b.left,b.top,b.width,b.height);$.ke(a,{style:b})}return this}return this.ub};$.g.show=function(a,b){var c=this.Sa();this.ab(b);c&&($.ax(this,a||""),$.of(c,!0))};
$.g.Wc=function(){var a=this.Sa();a&&$.of(a,!1)};$.g.OS=function(a){var b=FH(this,a,"editinputkeypress");!this.dispatchEvent(b)||13!=a.keyCode&&27!=a.keyCode||(b=FH(this,a,13==a.keyCode?"editinputsubmit":"editinputescape"),this.dispatchEvent(b)&&(this.Sa().blur(),this.Wc()))};$.g.SQ=function(a){a=FH(this,a,"editinputfocus");this.dispatchEvent(a)};
$.g.oP=function(a){var b=FH(this,a,"editinputblur");this.dispatchEvent(b)&&(b=FH(this,a,"editinputbeforehide"),this.dispatchEvent(b)&&(b=FH(this,a,"editinputhide"),this.dispatchEvent(b)&&this.Wc()))};$.g.zg=function(){EH.B.zg.call(this);$.yd(this.xl,"key",this.OS,!1,this);var a=$.Tw(this);a.wa(this.Sa(),"focus",this.SQ);a.wa(this.Sa(),"blur",this.oP)};$.g.Dh=function(){var a=$.Tw(this);$.Gd(this.xl,"key",this.OS,!1,this);a.hc(this.Sa(),"focus",this.SQ);a.hc(this.Sa(),"blur",this.oP);EH.B.Dh.call(this)};
$.g.R=function(){var a=$.Tw(this);$.Gd(this.xl,"key",this.OS,!1,this);a.hc(this.Sa(),"focus",this.SQ);a.hc(this.Sa(),"blur",this.oP);$.hd(this.xl);EH.B.R.call(this)};$.H(GH,WG);GH.prototype.qa=WG.prototype.qa|512;var oea=5,hJ=20;GH.prototype.AD=function(a){return $.p(a)?String(a):""};GH.prototype.Y2=function(a){return $.p(a)?$.ea(a)?a.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1,"):String(a):""};GH.prototype.f3=function(a){return $.ea(a)?$.Kl(100*a,2)+"%":$.p(a)?$.kn(a)?a:a+"%":""};GH.prototype.xN=function(a){return $.p(a)?(this.HV=a,this):this.HV||{}};var jJ={};$.ep(jJ,[[1,"columnStroke",$.xp],[1,"headerFill",$.yp]]);$.S(GH,jJ);$.g=GH.prototype;
$.g.t0=function(a){return $.E(a)?(this.It=a,this):this.It};$.g.s0=function(a){return $.E(a)?(this.Ht=a,this):this.Ht};$.g.rF=function(a,b,c){for(var d=-1,e=0,f=this.b.length;e<f;e++){var h=this.b[e];h&&h.enabled()&&(d++,h=[h,d],h.push.apply(h,$.Ia(arguments,2)),a.apply(b||this,h))}};$.g.Bz=function(a){return $.p(a)?(this.ba!=a&&(this.ba=a,this.u(512,1)),this):this.ba};$.g.JE=function(a,b){return KH(this,a,b)};
$.g.fH=function(){this.rF(function(a){a.$z();var b=!1,c=!1,d=0;a.J(512)&&(b=!0);a.J(1024)&&(ZF(a.labels())&&(d|=$.hC),b=c=!0);a.J(2048)&&(d|=$.gC,b=c=!0);b&&a.uE(c);a.ua(d)})};$.g.Cga=function(a,b){var c=b.target;c.Xa||(c.Xa=c.sb());this.rF(this.Vfa,this,a,(new $.I($.Kl(c.Xa.left,1),$.Kl(c.Xa.top,1),$.Kl(Math.min(c.Je,c.Xa.width-c.D),1),$.Kl(c.Xa.height,1))).width+hJ)};$.g.Dga=function(a,b){this.rF(this.baa,this,a,b)};$.g.Vfa=function(a,b,c,d){c==b&&a.width(d)};
$.g.baa=function(a,b,c,d){c==b&&(b=a.title(),c=b.height(),d.offsetY-this.ia.top<c&&(d=b.FF().width,d+=b.padding().i("left")+b.padding().i("right"),a.width(a.$E()?a.$E():d)))};$.g.N$=function(a){var b=0;$.W(a,1)&&(b|=16);$.W(a,8)&&(b|=512);$.W(a,4096)&&(b|=64);this.u(b,1)};$.g.Bp=function(a){if(!this.$h){this.$h=new $F;this.$h.se("horizontal");var b=this;this.$h.wa("scrollchange",function(a){b.Bz(Math.round(a.startRatio*b.f))});$.L(this.$h,this.vU,this)}return $.p(a)?(this.$h.K(a),this):this.$h};
$.g.vU=function(a){$.W(a,8)&&this.u(4,1)};$.g.scroll=function(a,b){$.jq(this,this.controller);this.Bz(this.ba+a);var c=this.controller.Gg(),d=this.controller.f,e=this.controller.gm();CG(this.controller,(c?d[c-1]:0)+(e+b));$.kq(this,this.controller);return!0};
$.g.qr=function(){var a=IH(this),b=this.ia.top+this.ul();a.clear().moveTo(this.ia.left,this.ia.top).lineTo(this.ia.left+this.ia.width,this.ia.top).lineTo(this.ia.left+this.ia.width,b).lineTo(this.ia.left,b).close();a=$.Tn(oH("columnStroke",2)(this,0));for(var c=b=0,d=this.b.length;c<d;c++){var e=this.b[c];e&&e.enabled()&&($.kn(e.width())&&(e.Xa=null),e=e.Ny().width,b+=e+a)}this.f=b;this.u(512)};$.g.ru=function(){IH(this).fill(this.i("headerFill"));this.rF(function(a){a.u(16);a.X()})};$.g.tS=function(a){a.ec(aH(this)).ec(bH(this)).ec(cH(this)).ec(dH(this)).ec(eH(this)).ec(fH(this))};
$.g.RT=function(){this.rF(function(a){a.u(128);a.X()})};
$.g.$U=function(){if(this.J(512)){var a=0;var b=this.ia.left;var c=this.ia.top;var d=oH("columnStroke",2)(this,0),e=$.Tn(d),f=[],h,k;var l=this.yD.length=0;for(h=this.b.length;l<h;l++)if(k=this.b[l])if(k.enabled()){var m=k.Ny().width;a+=m+e;f.push(k)}else k.X();this.f=a;this.ia.width>this.f&&(this.ba=0);this.ba=$.Ya(this.ba,0,Math.abs(this.ia.width-this.f));a=-this.ba;l=0;for(h=f.length;l<h;l++){k=f[l];$.U(k);k.position({x:a,y:0});k.height(this.ia.height);m=k.Ny().width;var n=this.la[l],q=m;n&&($.U(n),
n.stroke(d),n.enabled(!0),this.yD.push(a+m+e),q+=e,n.ab({left:b+a+hJ,top:c,width:q+this.ia.width,height:this.ia.height}).Hq(!1).position(m-hJ).da(!1).X().Hq(!0));a+=q;k.da(!1);k.X()}for(this.Rx=!0;l<this.la.length&&this.la[l].enabled();)this.la[l].enabled(!1),l++;this.$h&&(b=new $.I(this.ia.left-this.ba,0,this.f,0),c=new $.I(this.ia.left,0,this.ia.width,0),$.U(this.$h).Hq(!1).Mf(b).vN(c).X().Hq(!0).da(!1),this.$h.O()&&this.$h.X());this.I(512)}};
$.g.MY=function(a){a={columnIndex:this.Bg.ka(),item:this.yc,value:a.value};if($.E(this.Ht)&&(a=this.Ht.call(a))&&"object"==$.ka(a)&&!a.cancelEdit&&"object"==$.ka(a.itemMap)&&this.yc){a=a.itemMap;var b=this.controller.data();$.U(b);for(var c in a)a.hasOwnProperty(c)&&this.yc.set(c,a[c]);b.da(!0);this.RH=!0;this.Sq=!1}};$.g.Eaa=function(a){this.RH||this.Sq||(this.MY.call(this,a),this.Sq=!1)};$.g.Faa=function(){this.Sq=!0};$.g.Gaa=function(){this.dc.yG(!0);this.RH=!1};
$.g.Haa=function(){this.RH=this.Sq=!1;this.G.reset();this.dc.yG(!1)};
$.g.xW=function(a){if(a&&this.cd().i("enabled")){this.sm=!1;if(!this.G){this.G=new EH;var b=this.dc.O().Ga();this.G.Ud(b.O());this.G.wa("editinputsubmit",this.MY,!1,this);this.G.wa("editinputescape",this.Faa,!1,this);this.G.wa("editinputblur",this.Eaa,!1,this);this.G.wa("editinputfocus",this.Gaa,!1,this);this.G.wa("editinputhide",this.Haa,!1,this)}this.yc=a.item;b=a.hoveredIndex;var c=a.index,d=!1;if(c==this.controller.Gg())$.U(this.controller).Gg(c).gm(0).da(!0);else if(c==this.controller.sj()){this.controller.sj(c);
d=this.g;var e=Math.min(d.length-1,b);var f=this.ia.top+this.ul()+1;c=b?d[e-1]:0;f+=c;e=f+(d[e]-c-this.Xn)-2;d=!0}c=~$.Ma(this.yD,a.originalEvent.offsetX-this.ia.left);for(var h=null,k=-1,l=0,m=this.b.length;l<m;l++){var n=this.b[l];if(n&&n.enabled()&&(k++,k==c)){h=n.Ny();this.Bg=n;break}}c=h;0>c.left&&(this.Bz(this.Bz()+c.left),c.left=0);h=qG(this.controller,a.item);k=a.hoveredIndex?2:1;if(a=c?new $.I(c.left,a.startY,c.width-2,h-k):null)d&&(a.top=f,a.height=e-f),this.Bg&&(f=this.Bg.SS,e=Math.min(b,
f.length-1),b=f[e],f={columnIndex:this.Bg.ka(),item:this.yc,value:b},$.E(this.It)&&(f=this.It.call(f))&&"object"==$.ka(f)&&!f.cancelEdit&&this.yc&&(this.G.show(null!=f.value?f.value:b,a),b=this.G,a=$.$w(b),b.b=!0,b.Sa().focus(),a||$.Yw()||(b.Sa().value=b.g),b.Sa().select(),$.Yw()||(b.mg&&b.mg.Ie(b.Sa(),"click",b.aS),$.ni(b.cZ,10,b))))}};$.g.oH=function(a){this.pT(a)};$.g.pT=function(a){this.cd().i("enabled")&&(this.Ii=a.item)};
$.g.qT=function(){if(this.aj&&(this.Qt||this.$v)){var a=0,b=0;this.Qt&&(a=0<this.Qt?30:-30);this.$v&&(b=0<this.$v?30:-30);this.scroll(a,b)}};$.g.buttons=function(a){this.yn||(this.yn=new zH(this),$.L(this.yn,this.v$,this));return $.p(a)?(this.yn.K(a),this):this.yn};$.g.v$=function(a){$.W(a,1)&&(this.buttons().I(4294967295),this.RT())};
$.g.F=function(){var a=GH.B.F.call(this);$.Bp(this,jJ,a);a.horizontalOffset=this.Bz();a.buttons=this.buttons().F();a.columns=[];for(var b=0;b<this.b.length;b++){var c=this.b[b];a.columns.push(c?c.F():!1)}this.$h&&(a.horizontalScrollBar=this.Bp().F());return a};
$.g.Y=function(a,b){GH.B.Y.call(this,a,b);$.tp(this,jJ,a,b);this.Bz(a.horizontalOffset);this.buttons().ja(!!b,a.buttons);"defaultColumnSettings"in a&&this.xN(a.defaultColumnSettings);this.t0(a.onEditStart);this.s0(a.onEditEnd);if("columns"in a)for(var c=0,d=a.columns.length;c<d;c++){var e=a.columns[c];e&&KH(this,c,e,b)}"horizontalScrollBar"in a&&this.Bp(a.horizontalScrollBar)};
$.g.R=function(){$.jd(this.$h,this.Ja,this.la,this.b,this.yn);this.Ja=this.$h=this.yn=null;this.la.length=0;this.b.length=0;GH.B.R.call(this)};$.H(LH,GH);$.Vs(LH,GH);LH.prototype.rw=function(a){return $.p(a)?(EG(this.controller).K(a),this):EG(this.controller)};LH.prototype.F=function(){var a=LH.B.F.call(this);a.verticalScrollBar=this.rw().F();return a};LH.prototype.Y=function(a){LH.B.Y.call(this,a);"verticalScrollBar"in a&&this.rw(a.verticalScrollBar)};var lJ=GH.prototype;lJ.editing=lJ.YJ;
lJ.edit=lJ.cd;lJ.column=lJ.JE;lJ.data=lJ.data;lJ.startIndex=lJ.Gg;lJ.endIndex=lJ.sj;lJ.getVisibleItems=lJ.C7;lJ.horizontalScrollBar=lJ.Bp;lJ.horizontalOffset=lJ.Bz;lJ.verticalOffset=lJ.gm;lJ.tooltip=lJ.Ya;lJ.draw=lJ.X;lJ.editStructurePreviewFill=lJ.WY;lJ.editStructurePreviewStroke=lJ.XY;lJ.editStructurePreviewDashStroke=lJ.VY;lJ.buttons=lJ.buttons;lJ.onEditStart=lJ.t0;lJ.onEditEnd=lJ.s0;lJ=LH.prototype;$.F("anychart.standalones.dataGrid",function(){var a=new LH;a.K($.cl("standalones.dataGrid"));return a});
lJ.draw=lJ.X;lJ.data=lJ.data;lJ.parentBounds=lJ.fa;lJ.container=lJ.O;lJ.rowStroke=lJ.eD;lJ.headerHeight=lJ.ul;lJ.verticalScrollBar=lJ.rw;lJ.defaultRowHeight=lJ.ou;lJ.buttons=lJ.buttons;$.H(MH,$.bx);var mJ={};$.ep(mJ,[[1,"stroke",$.xp],[0,"value",$.np]]);$.S(MH,mJ);$.g=MH.prototype;$.g.ra=$.bx.prototype.ra;$.g.qa=$.bx.prototype.qa;$.g.scale=function(a){return $.p(a)?($.Uj(500),this):this.Uo()};$.g.se=function(a){return $.p(a)?("horizontal"==a&&$.Uj(501),this):"vertical"};$.g.qr=function(){this.qp()};$.g.ru=function(){$.cx(this).stroke(this.i("stroke"))};$.g.R=function(){this.pa("stroke",null);MH.B.R.call(this)};$.g.F=function(){var a=MH.B.F.call(this);$.Bp(this,mJ,a);return a};
$.g.Y=function(a,b){MH.B.Y.call(this,a,b);$.tp(this,mJ,a)};var nJ=MH.prototype;nJ.scale=nJ.scale;nJ.layout=nJ.se;nJ.isHorizontal=nJ.Fb;$.H(NH,$.bx);var oJ={};$.ep(oJ,[[1,"fill",$.yp],[0,"from",$.np],[0,"to",$.np]]);$.S(NH,oJ);$.g=NH.prototype;$.g.zO=function(){return"From: "+this.i("from")+" to: "+this.i("to")};$.g.ra=$.bx.prototype.ra;$.g.qa=$.bx.prototype.qa;$.g.se=function(a){return $.p(a)?("horizontal"==a&&$.Uj(501),this):"vertical"};$.g.scale=function(a){return $.p(a)?($.Uj(500),this):this.Uo()};$.g.qr=function(){$.dx(this)};$.g.ru=function(){$.cx(this).stroke(null).fill(this.i("fill"))};
$.g.R=function(){this.pa("fill",null);NH.B.R.call(this)};$.g.F=function(){var a=NH.B.F.call(this);$.Bp(this,oJ,a);return a};$.g.Y=function(a,b){NH.B.Y.call(this,a,b);$.tp(this,oJ,a,b)};var pJ=NH.prototype;pJ.scale=pJ.scale;pJ.layout=pJ.se;pJ.isHorizontal=pJ.Fb;$.H(OH,$.mx);var qJ={};$.ep(qJ,[[0,"value",$.np]]);$.S(OH,qJ);$.g=OH.prototype;$.g.ra=$.mx.prototype.ra;$.g.qa=$.mx.prototype.qa;$.g.scale=function(a){return $.p(a)?($.Uj(500),this):this.Uo()};$.g.se=function(a){return $.p(a)?("horizontal"==a&&$.Uj(501),this):"vertical"};$.g.F=function(){var a=OH.B.F.call(this);$.Bp(this,qJ,a);return a};$.g.Y=function(a,b){OH.B.Y.call(this,a,b);$.tp(this,qJ,a,b)};var rJ=OH.prototype;rJ.scale=rJ.scale;rJ.layout=rJ.se;rJ.background=rJ.background;rJ.padding=rJ.padding;
rJ.isHorizontal=rJ.Fb;$.H(PH,$.Bf);PH.prototype.tr=function(){this.deltaY=this.deltaX=0};PH.prototype.Rs=function(a){this.element.nc(1,0,0,1,a,0)};PH.prototype.Ex=function(){return 0};$.H(QH,$.Bf);QH.prototype.tr=function(){this.deltaY=this.deltaX=0};$.H(RH,$.Bf);RH.prototype.tr=function(){this.deltaY=this.deltaX=0};RH.prototype.Rs=function(a){this.element.nc(1,0,0,1,a,0);this.qd=(a-this.f.left)/this.f.width};RH.prototype.AC=function(a){var b=this.element.tag.ab,c=this.element.tag.item;c=$.p(c.j("progressValue"))?c.j("progressValue"):c.j("autoProgress");c=b.width*(c||0);this.f.left=-c;this.f.width=b.width;return $.Ya(a,-c,b.width-c)};RH.prototype.Ex=function(){return 0};$.H(SH,$.Bf);SH.prototype.Ex=function(){return 0};$.H(TH,$.Wp);TH.prototype.ra=2;TH.prototype.qa=$.Wp.prototype.qa;var sJ={};$.ep(sJ,[[1,"fill",$.yp],[1,"stroke",$.xp],[0,"size",$.mp],[0,"type",$.tj],[0,"verticalOffset",$.mp],[0,"horizontalOffset",$.mp],[0,"enabled",$.Hp]]);$.S(TH,sJ);$.g=TH.prototype;$.g.i=$.Vp;$.g.Og=$.Up;$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};
$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.Ub=null,null===a?($.Xp(this.$,this.Nc,this),this.$=null):(this.$&&$.Xp(this.$,this.Nc,this),this.$=a,$.L(this.$,this.Nc,this))),this):this.$};$.g.Nc=function(){this.ua(2)};$.g.Fe=function(a,b){return $.da(b)||null===b?(a?this.ma.enabled=b:this.enabled(b),!0):!1};$.g.Y=function(a,b){TH.B.Y.call(this,a,b);$.tp(this,sJ,a,b)};
$.g.F=function(){var a=TH.B.F.call(this);$.Bp(this,sJ,a,void 0,void 0,!0);this.jh("enabled")&&null!==a.enabled||delete a.enabled;return a};$.g.R=function(){this.$&&($.Xp(this.$,this.Nc,this),this.$=null);this.Ub=null;TH.B.R.call(this)};$.H(UH,$.Wp);$.g=UH.prototype;$.g.ra=2;$.g.qa=$.Wp.prototype.qa;$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.Ub=null,null===a?($.Xp(this.$,this.Nc,this),this.Wt().parent(null),this.Ml().parent(null),this.$=null):(this.$&&$.Xp(this.$,this.Nc,this),this.$=a,this.Wt().parent(this.$.Wt()),this.Ml().parent(this.$.Ml()),$.L(this.$,this.Nc,this))),this):this.$};$.g.Nc=function(){this.ua(2)};$.g.Og=$.Up;$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};
$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};$.g.Wt=function(a){this.f||(this.f=new TH,$.L(this.f,this.yI,this));return $.p(a)?(this.f.K(a),this):this.f};$.g.Ml=function(a){this.b||(this.b=new TH,$.L(this.b,this.yI,this));return $.p(a)?(this.b.K(a),this):this.b};$.g.yI=function(){this.ua(2)};$.g.Y=function(a,b){UH.B.Y.call(this,a,b);this.Wt().ja(!!b,a.thumb);this.Ml().ja(!!b,a.connectorThumb)};
$.g.F=function(){var a=UH.B.F.call(this);a.thumb=this.Wt().F();a.connectorThumb=this.Ml().F();return a};$.g.R=function(){this.$&&($.Xp(this.$,this.Nc,this),this.$=null);this.Ub=null;$.Xp(this.f,this.yI,this);$.Xp(this.b,this.yI,this);$.jd(this.f,this.b);this.b=this.f=null;UH.B.R.call(this)};var tJ=UH.prototype;tJ.thumb=tJ.Wt;tJ.connectorThumb=tJ.Ml;$.H(VH,$.Wp);VH.prototype.ra=2;VH.prototype.qa=$.Wp.prototype.qa;var uJ={};$.ep(uJ,[[1,"fill",$.yp],[1,"stroke",$.xp],[0,"enabled",$.Hp]]);$.S(VH,uJ);$.g=VH.prototype;$.g.i=function(a){var b=$.Vp.call(this,a);"enabled"==a&&(b=null!=b?b:this.D.i("enabled"));return b};$.g.Og=$.Up;$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};
$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.Ub=null,null===a?($.Xp(this.$,this.Ay),this.Yk().parent(null),this.Ms().parent(null),this.start().parent(null),this.end().parent(null),this.$=null):(this.$&&$.Xp(this.$,this.Ay,this),this.$=a,this.Yk().parent(this.$.Yk()),this.Ms().parent(this.$.Ms()),this.start().parent(this.$.start()),this.end().parent(this.$.end()),$.L(this.$,this.Ay,this))),this.start().dg(null),this.end().dg(null),this):this.$};
$.g.Yk=function(a){this.g||(this.g=new TH,$.L(this.g,this.Ay,this));return $.p(a)?(this.g.K(a),this):this.g};$.g.Ms=function(a){this.o||(this.o=new TH,$.L(this.o,this.Ay,this));return $.p(a)?(this.o.K(a),this):this.o};$.g.start=function(a){this.f||(this.f=new UH,this.f.Wt().parent(this.Yk()),this.f.Ml().parent(this.Ms()),$.L(this.f,this.Ay,this));return $.p(a)?(this.f.K(a),this):this.f};
$.g.end=function(a){this.b||(this.b=new UH,this.b.Wt().parent(this.Yk()),this.b.Ml().parent(this.Ms()),$.L(this.b,this.Ay,this));return $.p(a)?(this.b.K(a),this):this.b};$.g.Ay=function(){this.ua(2)};$.g.Fe=function(a,b){return $.da(b)||null===b?(a?this.ma.enabled=b:this.enabled(b),!0):!1};
$.g.Y=function(a,b){VH.B.Y.call(this,a,b);$.tp(this,uJ,a,b);"thumbs"in a&&this.Yk().ja(!!b,a.thumbs);"connectorThumbs"in a&&this.Ms().ja(!!b,a.connectorThumbs);"start"in a&&this.start().ja(!!b,a.start);"end"in a&&this.end().ja(!!b,a.end)};$.g.F=function(){var a=VH.B.F.call(this);$.Bp(this,uJ,a,void 0,void 0,!0);this.jh("enabled")&&null!==a.enabled||delete a.enabled;a.thumbs=this.Yk().F();a.connectorThumbs=this.Ms().F();a.start=this.start().F();a.end=this.end().F();return a};
$.g.R=function(){$.jd(this.g,this.o,this.f,this.b);this.b=this.f=this.o=this.g=null;VH.B.R.call(this)};var vJ=VH.prototype;vJ.thumbs=vJ.Yk;vJ.connectorThumbs=vJ.Ms;vJ.start=vJ.start;vJ.end=vJ.end;WH.prototype.Sc=function(a,b,c,d){return this.element.Ff.Sc(this.item,this.tag,a,b,c,d,this.periodIndex)};$.H(XH,$.Wp);XH.prototype.ra=1;XH.prototype.qa=$.Wp.prototype.qa;var wJ={};$.dp(wJ,0,"drawer",$.Tp);$.dp(wJ,0,"shapes",$.np);$.S(XH,wJ);$.g=XH.prototype;$.g.i=$.Vp;$.g.Og=$.Up;$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};
$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.Ub=null,null===a?($.Xp(this.$,this.Nc,this),this.$=null):(this.$&&$.Xp(this.$,this.Nc,this),this.$=a,$.L(this.$,this.Nc,this))),this):this.$};$.g.Nc=function(){this.ua(1)};$.g.F=function(){var a=XH.B.F.call(this);$.Bp(this,wJ,a,void 0,void 0,!0);return a};$.g.Y=function(a,b){XH.B.Y.call(this,a);b?$.sp(this.ma,wJ,a):$.tp(this,wJ,a)};$.g.R=function(){this.$&&($.Xp(this.$,this.Nc,this),delete this.$);this.Ub=null;XH.B.R.call(this)};$.H(ZH,$.gd);ZH.prototype.Cu=function(){var a,b;this.cN={};for(a in this.b){var c=this.b[a];for(b=0;b<c.length;b++){var d=c[b];d.parent(null);$.K(d,$.bg)&&(d.clear(),d.nc(1,0,0,1,0,0))}this.o[a]=0;c.length=0}};
ZH.prototype.Sc=function(a,b,c,d,e,f,h){var k={};d=d||this.g;var l=$.oa(a)+($.p(h)?"_"+String(h):"");this.cN[l]=b;for(var m in d)if("none"==d[m].Lb&&f)$.K(f,$.Pf)&&(k[m]=$H(this,m,a,e||0,f,c,h),k[m].tag=b);else{l=m;var n=void 0;var q=m,r=a,t=e||0,u=c,v=h,w=this.g[q],x=w.Lb;this.f[x].length>this.o[x]?n=this.f[x][this.o[x]]:this.f[x].push(n=w.AP());this.o[x]++;this.b[x].push(n);n=$H(this,q,r,t,n,u,v);k[l]=n;k[m].tag=b}return k};
ZH.prototype.R=function(){for(var a in this.f)$.jd(this.f[a]),this.f[a].length=0,this.b[a].length=0;this.cN=this.g=this.Nd=null;ZH.B.R.call(this)};$.H(aI,$.Wp);$.rp(aI,["fill","stroke"],"normal");aI.prototype.ra=12291;aI.prototype.qa=$.Wp.prototype.qa;var xJ={};$.dp(xJ,0,"height",$.Op);$.dp(xJ,0,"anchor",function(a){if(null===a)return null;a=$.mj(a,"left-center");return"auto"==a?"auto":$.An(a)?"left-top":$.Bn(a)?"left-bottom":"left-center"});$.dp(xJ,0,"position",function(a){if(null===a)return null;a=$.nj(a,"left-center");return $.An(a)?"left-top":$.Bn(a)?"left-bottom":"left-center"});$.dp(xJ,0,"offset",$.Op);$.S(aI,xJ);$.g=aI.prototype;
$.g.i=$.Vp;$.g.Og=$.Up;$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};
$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.Ub=null,null===a?($.Xp(this.$,this.Nc,this),this.jj().parent(null),this.cd().parent(null),this.$=null):(this.$&&$.Xp(this.$,this.Nc,this),this.$=a,this.jj().parent(this.$.jj()),this.cd().parent(this.$.cd()),$.L(this.$,this.Nc,this))),this):this.$};$.g.Nc=function(a){var b=0;$.W(a,2)&&(b|=2);$.W(a,1)&&(b|=1);this.ua(b)};$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};
$.g.aC=function(){return this.Tq||(this.Tq=[])};$.g.me=function(a,b,c,d){b={sourceColor:"stroke"==b?this.yR(c):this.xR(c),item:a,itemIndex:a.j("index")};$.p(d)&&(b.period=a.get("periods")[d],b.periodIndex=d);return b};$.g.wF=function(a,b,c,d){var e,f=b===$.Wk,h="stroke"==c?$.Ok:$.Qk,k=bI(this,a,d);k&&(e=f?k[c]:"object"==$.ka(k.selected)?k.selected[c]:void 0);e?e=h(e):(e=(f?this.Ta():this.selected()).i(c),$.E(e)?(a=this.me(a,c,b,d),e=h(e.call(a,a))):e=h(e));return e};$.g.ev=function(){return"blue"};
$.g.fv=function(){return"blue"};$.g.rR=function(){return this.Mn().ic(2)};$.g.sR=function(){return $.yk(this.Mn().ic(2))};$.g.xR=function(a){return a==$.Wk?this.ev():this.rR()};$.g.yR=function(a){return a==$.Wk?this.fv():this.sR()};$.g.Mn=function(){return this.bg().dc.Yb()};$.g.cd=function(a){this.rj||(this.rj=new VH(this.Dj.cd()),$.L(this.rj,this.HL,this));return $.p(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.rj.K(a),this):this.rj};$.g.HL=function(){this.ua(2)};$.g.Qa=function(){return"all"};
$.g.bg=function(){return this.Dj};$.g.Ym=function(a,b,c){return this.wF(a,b,"fill",c)};$.g.sl=function(a,b,c){return this.wF(a,b,"stroke",c)};$.g.WC=function(){$.hd(this.Ff);var a=this.Sx.i("shapes");a=this.Ff=new ZH(this.bg(),this,a);var b=bH(this.bg());if(a.Nd!=b){a.Nd=b;for(var c in a.b)for(var d=a.b[c],e=0;e<d.length;e++)d[e].parent(b)}};
$.g.labels=function(a){this.Ca||(this.Ca=new $.kt,$.L(this.Ca,this.Fd,this),this.Ca.Me());return $.p(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Ca.K(a),this):this.Ca};$.g.Fd=function(){this.ua(4096)};$.g.jj=function(a){return $.p(a)?(this.Sx!=a&&this.Sx.K(a),this):this.Sx};$.g.f1=function(){this.WC();this.ua(1)};$.g.GF=function(a){var b=this.parent();return b?b[a&$.mn?"selected":"normal"]():null};
$.g.Y=function(a,b){aI.B.Y.call(this,a,b);$.tp(this,xJ,a,b);this.labels().ja(!!b,a.labels);this.Ta().ja(!!b,a);this.Ta().ja(!!b,a.normal);this.selected().ja(!!b,a.selected);this.jj().ja(!!b,a.rendering);this.cd().ja(!!b,a.edit)};$.g.F=function(){var a=aI.B.F.call(this);$.Bp(this,xJ,a,void 0,void 0,!0);a.labels=this.labels().F();a.rendering=this.jj().F();a.normal=this.Ta().F();a.selected=this.selected().F();a.edit=this.cd().F();return a};
$.g.R=function(){$.Xp(this.Sx,this.f1,this);$.hd(this.Sx);delete this.Sx;this.$&&($.Xp(this.$,this.Nc,this),delete this.$);this.Ub=null;$.jd(this.ca,this.Da,this.Ca,this.yC,this.Ff,this.rj);this.yC&&(this.yC.length=0);this.rj=this.Ff=this.Ca=this.Da=this.ca=null;aI.B.R.call(this)};var yJ=aI.prototype;yJ.rendering=yJ.jj;yJ.normal=yJ.Ta;yJ.selected=yJ.selected;yJ.labels=yJ.labels;yJ.edit=yJ.cd;$.H(cI,aI);var zJ={};$.dp(zJ,0,"above",$.op);$.S(cI,zJ);$.g=cI.prototype;$.g.Qa=function(){return"baselines"};$.g.ev=function(){return $.xk(this.Mn().ic(1),.7)};$.g.fv=function(){return $.yk($.xk(this.Mn().ic(1),.7))};$.g.aC=function(){return this.Tq||(this.Tq=[this.Qa(),"baseline"])};$.g.Y=function(a,b){cI.B.Y.call(this,a,b);$.tp(this,zJ,a,b)};$.g.F=function(){var a=cI.B.F.call(this);$.Bp(this,zJ,a,void 0,void 0,!0);return a};$.H(dI,$.Wp);$.rp(dI,["fill","stroke"],"normal");dI.prototype.ra=8194;dI.prototype.qa=$.Wp.prototype.qa;var AJ={};$.ep(AJ,[[1,"previewStroke",$.xp]]);$.S(dI,AJ);$.g=dI.prototype;$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};
$.g.me=function(a,b,c,d,e,f,h){c={sourceColor:"stroke"==d?this.yR(c):this.xR(c),fromItem:a,fromItemIndex:a.j("index"),toItem:b,toItemIndex:b.j("index"),connType:e||"finish-start"};$.p(f)&&(c.fromPeriod=a.get("periods")[f],c.fromPeriodIndex=f);$.p(h)&&(c.toPeriod=b.get("periods")[h],c.toPeriodIndex=h);return c};$.g.wF=function(a,b,c,d,e,f,h){var k=(c===$.Wk?this.Ta():this.selected()).i(d),l="stroke"==d?$.Ok:$.Qk;$.E(k)?(a=this.me(a,b,c,d,e,f,h),k=l(k.call(a,a))):k=l(k);return k};$.g.ev=function(){return"#545f69"};
$.g.fv=function(){return"#545f69"};$.g.rR=function(){return"#545f69"};$.g.sR=function(){return $.Lk($.xk(this.Mn().ic(2)),2)};$.g.xR=function(a){return a==$.Wk?this.ev():this.rR()};$.g.yR=function(a){return a==$.Wk?this.fv():this.sR()};$.g.Mn=function(){return this.bg().dc.Yb()};$.g.Qa=function(){return"connectors"};$.g.bg=function(){return this.Dj};$.g.Ym=function(a,b,c,d,e,f){return this.wF(a,b,c,"fill",d,e,f)};$.g.sl=function(a,b,c,d,e,f){return this.wF(a,b,c,"stroke",d,e,f)};
$.g.Y=function(a,b){dI.B.Y.call(this,a,b);$.tp(this,AJ,a,b);this.Ta().ja(!!b,a);this.Ta().ja(!!b,a.normal);this.selected().ja(!!b,a.selected)};$.g.F=function(){var a=dI.B.F.call(this);$.Bp(this,AJ,a,void 0,void 0,!0);a.normal=this.Ta().F();a.selected=this.selected().F();return a};$.g.R=function(){$.jd(this.ca,this.Da);dI.B.R.call(this)};var BJ=dI.prototype;BJ.normal=BJ.Ta;BJ.selected=BJ.selected;$.H(eI,aI);eI.prototype.Qa=function(){return"progress"};eI.prototype.ev=function(){return this.Mn().ic(1)};eI.prototype.fv=function(){return $.Rk};eI.prototype.aC=function(){return this.Tq||(this.Tq=[this.Qa()])};$.H(fI,aI);$.g=fI.prototype;$.g.Qa=function(){return"grouping-tasks"};$.g.ev=function(){return this.Mn().ic(4)};$.g.fv=function(){return $.xk(this.Mn().ic(4))};$.g.aC=function(){return this.Tq||(this.Tq=[this.Qa(),"tasks","actual"])};
$.g.qd=function(a){if(!this.mn){this.mn=new eI(this.bg());var b=this.parent().qd();this.mn.parent(b);$.L(this.mn,this.bU,this);this.mn.cd().parent(b.cd());this.mn.yC=[this.qd().labels(),b.labels(),this.bg().elements().labels(),this.bg().labels()]}return $.p(a)?(this.mn.K(a),this):this.mn};$.g.bU=function(a){var b=0;$.W(a,4096)&&(b|=4096);$.W(a,1)&&(b|=1);$.W(a,8192)&&(b|=8192);this.ua(b)};$.g.F=function(){var a=fI.B.F.call(this);a.progress=this.qd().F();return a};
$.g.Y=function(a,b){fI.B.Y.call(this,a,b);this.qd().ja(!!b,a.progress)};var CJ=fI.prototype;CJ.progress=CJ.qd;$.H(gI,aI);gI.prototype.Qa=function(){return"milestones"};gI.prototype.ev=function(){return this.Mn().ic(9)};gI.prototype.fv=function(){return $.yk(this.Mn().ic(9))};gI.prototype.aC=function(){return this.Tq||(this.Tq=[this.Qa(),"milestone","actual"])};$.H(hI,aI);hI.prototype.Qa=function(){return"periods"};hI.prototype.ev=function(){return this.Mn().ic(0)};hI.prototype.fv=function(){return $.xk(this.Mn().ic(0))};$.H(iI,aI);$.g=iI.prototype;$.g.Qa=function(){return"tasks"};$.g.ev=function(){return this.Mn().ic(0)};$.g.fv=function(){return $.xk(this.Mn().ic(0))};$.g.bU=function(a){var b=0;$.W(a,4096)&&(b|=4096);$.W(a,1)&&(b|=1);$.W(a,8192)&&(b|=8192);this.ua(b)};$.g.aC=function(){return this.Tq||(this.Tq=[this.Qa(),"actual"])};
$.g.qd=function(a){if(!this.mn){this.mn=new eI(this.bg());var b=this.bg().elements();this.mn.parent(b);this.mn.cd().parent(this.cd());$.L(this.mn,this.bU,this)}return $.p(a)?(this.mn.K(a),this):this.mn};$.g.F=function(){var a=iI.B.F.call(this);a.progress=this.qd().F();return a};$.g.Y=function(a,b){iI.B.Y.call(this,a,b);this.qd().ja(!!b,a.progress)};var DJ=iI.prototype;DJ.progress=DJ.qd;$.H(jI,$.X);jI.prototype.qa=$.X.prototype.qa|976;jI.prototype.ra=$.X.prototype.ra;var EJ={};$.ep(EJ,[[0,"enabled",$.Hp],$.Y.jo,$.Y.dI]);$.S(jI,EJ);$.rp(jI,aJ,"labels");$.rp(jI,["fill"],"background");$.g=jI.prototype;$.g.background=function(a){this.Ha||(this.Ha=new $.Ws,this.Ha.Me(),this.Ha.parent(this.mk.background()),$.L(this.Ha,this.Qf,this));return $.p(a)?(this.Ha.K(a),this):this.Ha};$.g.Qf=function(a){$.W(a,1)&&this.u(256,1)};
$.g.nf=function(a){var b=this.ub;if(b.left!=a.left||b.top!=a.top||b.width!=a.width||b.height!=a.height)this.ub=a,this.u(4);return this};$.g.YW=function(a){if($.p(a)&&this.g!=a){this.g=a;kI(this);if(this.b){a=this.b;var b=this.g;$.p(b)&&a.b!=b&&(a.b=b,a.reset(),$.rx(a),a.ua($.gC|$.hC))}this.u(576,1);return this}return this.g};
$.g.labels=function(a){this.Ca||(this.Ca=new $.aw,this.Ca.Ia("ganttDefaultSimpleLabelsSettings","defaultLevelsLabelsSettings"),this.Ca.parent(this.mk.labels()),$.L(this.Ca,this.Fd,this));return $.p(a)?(this.Ca.K(a),this.u(64,1),this):this.Ca};$.g.Fd=function(a){var b=!1;this.b||(kI(this),b=!!this.b);b&&(this.b.ua($.gC|$.hC),this.b.Kq(a));this.u(64,1)};
$.g.Tl=function(a,b){var c=a.start,d=a.end,e=$.gr(c,b),f=$.gr(d,b);return $.Lt(new $.$u({value:{value:e,type:"string"},tickValue:{value:c,type:"number"},scale:{value:this.oa,type:""},end:{value:d,type:"number"},endValue:{value:f,type:"string"}}))};$.g.XK=function(){this.Va||(this.Va=$.Zi(),this.background().O(this.Va),this.Xl=$.Mf().oq(),this.vh=new $.sh(this.Xl),this.vh.zIndex(1),this.vh.parent(this.Va),this.f=this.Va.path(),this.f.zIndex(2))};
$.g.X=function(){if(this.xc()){var a;this.XK();this.J(2)&&(this.Va.parent(this.O()),this.I(2));this.J(4)&&(this.u(896),this.I(4));if(this.J(256)){var b=this.background();$.U(b);b.fa(this.ub);b.X();b.da(!1);this.I(256)}if(this.J(512)){if(null!=this.g)this.D=$.B(this.g)?this.g:[this.g];else{a:{b=this.mk.f;for(var c=this.he;c<b.length;c++)if(a=b[c+1]){b=a;break a}b=null}if(b){var d=b.$g;d!=this.$g&&(d=$.oo(d,-1))}this.D=$.fr($.dr(this.$g,d,"timeline"))}this.o=this.D[0]||this.o;this.u(128);this.I(512)}if(this.J(128)){this.gb=
this.oa.an(window.NaN,window.NaN,this.$g,this.count);b=this.gb[0];d=this.ub.left+this.oa.transform(b.start)*this.ub.width;b=this.ub.left+this.oa.transform(b.end)*this.ub.width;b=Math.ceil(this.labels().padding().ig(b-d));c=this.b||this.mk.b;$.sx(c);a=!1;var e=window.Infinity,f=this.o;for(d=0;d<this.D.length;d++){var h=this.D[d],k=c.lz;if(h in k){k=Math.ceil(k[h].width);if(k<=b){this.o=h;a=!0;break}k<=e&&(e=k,f=h)}}a||(this.o=f);this.u(80);this.I(128)}if(this.J(64)){for(d=0;d<this.gb.length;d++)b=
this.gb[d],c=this.ue[d]||(this.ue[d]=new $.bw),a=this.Tl(b,this.o),a=this.labels().jx(a),c.text(a),c.style(this.labels().flatten()),$.iw(c),$.jw(c,this.Xl),a=Math.max(0,this.oa.transform(b.start)),a=this.ub.left+a*this.ub.width,a+=this.labels().padding().i("left"),b=this.ub.left+this.oa.transform(b.end)*this.ub.width,e=this.labels().padding().i("right"),b=Math.max(0,b-a-e),$.qw(c,new $.I(a,this.ub.top,b,this.ub.height),this.O().Ga());for(b=this.ue.length;d<b;d++)c=this.ue[d],$.jw(c,null),$.lw(c);
this.I(64)}if(this.J(16)){this.f.clear();d=this.i("stroke")||this.mk.i("stroke");c=$.Tn(d);e=$.O(this.ub.top,c);this.f.stroke(d).moveTo(this.ub.left,e).lineTo(this.ub.left+this.ub.width,e);for(d=0;d<this.gb.length;d++)b=this.gb[d],a=this.ub.left+this.oa.transform(b.start)*this.ub.width,a=$.O(a,c),this.f.moveTo(a,e).lineTo(a,this.ub.top+this.ub.height);this.I(16)}}};$.g.remove=function(){this.Va&&this.Va.parent(null)};
$.g.F=function(){var a=jI.B.F.call(this);$.Bp(this,EJ,a);$.Dc(this.background().La)||(a.background=this.background().F());var b=this.labels().F();$.Dc(b)||(a.labels=b);this.g&&(a.formats=this.g);return a};$.g.Y=function(a,b){jI.B.Y.call(this,a,b);$.tp(this,EJ,a,b);$.U(this.labels());for(var c=0;c<aJ.length;c++){var d=aJ[c];if(d in a)this.labels()[d](a[d])}this.Ca.da(!0);this.background().ja(!!b,a.background);this.Ca.ja(!!b,a.labels);"formats"in a&&this.YW(a.formats)};
$.g.R=function(){$.jd(this.f,this.Ha);this.b&&$.hd(this.b);this.b=this.oa=this.mk=this.Ha=this.f=null;for(var a=0;a<this.ue.length;a++)this.ue[a].ad();jI.B.R.call(this)};var FJ=jI.prototype;FJ.labels=FJ.labels;FJ.background=FJ.background;FJ.formats=FJ.YW;$.H(lI,$.X);lI.prototype.qa=$.X.prototype.qa|528;lI.prototype.ra=$.X.prototype.ra;var GJ={};$.ep(GJ,[[1,"stroke",$.xp],[0,"levelHeight",$.Op],[2,"",$.op,"drawTopLine"],[2,"",$.op,"drawRightLine"],[2,"",$.op,"drawBottomLine"],[2,"",$.op,"drawLeftLine"]]);$.S(lI,GJ);$.rp(lI,aJ,"labels");$.rp(lI,["fill"],"background");$.g=lI.prototype;
$.g.background=function(a){this.Ha||(this.Ha=new $.Ws,this.Ha.am(!0),this.Ha.Ia("defaultGanttHeader.background"),$.L(this.Ha,this.Qf,this));return $.p(a)?(this.Ha.K(a),this):this.Ha};$.g.Qf=function(a){$.W(a,1)&&this.u(16,1)};$.g.labels=function(a){this.Ca||(this.Ca=new $.aw,this.Ca.Ia("ganttDefaultSimpleLabelsSettings","defaultLevelsLabelsSettings"),this.Ca.am(!0),$.L(this.Ca,this.Fd,this));return $.p(a)?(this.Ca.K(a),this.u(512,1),this):this.Ca};$.g.Fd=function(){this.u(512,1)};
$.g.level=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.f[c];e||(this.f[c]=e=new jI(this,c),e.labels().parent(this.labels()),$.L(e,this.ida,this),e.Ia("defaultLevelSettings"));return $.p(d)?(e.K(d),this):e};$.g.ida=function(a){var b=0,c=0;$.W(a,32776)&&(this.P=null,b|=512,c|=1);$.W(a,1)&&(b|=512,c|=1);this.u(b,c)};
$.g.IU=function(a){for(var b=0;b<a.length;b++){var c=a[b],d=this.f[b]||this.level(b);if(d.$g!=c.unit||d.count!=c.count)d.$g=c.unit,d.count=c.count,d.u(512);d.u(128)}this.u(512,1)};$.g.hda=function(){this.P=null};$.g.nf=function(a){var b=this.ub;if(b.left!=a.left||b.top!=a.top||b.width!=a.width||b.height!=a.height)this.ub=a,this.u(4,9);return this};$.g.sb=function(){return this.ub};$.g.T7=function(a){return $.p(a)?(this.D.K(a),this):this.D};
$.g.S7=function(a){$.Uj(405,null,["backgroundFill()","background().fill()"],!0);return $.p(a)?(this.background().enabled(!0),this.background().fill(a),this):this.background().i("fill")};$.g.padding=function(a,b,c,d){$.Uj(405,null,["padding()","labels().padding()"],!0);return $.p(a)?(this.labels().padding().K.apply(this.labels().padding(),arguments),this):this.labels().padding()};$.g.U7=function(a){$.Uj(405,null,["levelsSeparationStroke()","stroke()"],!0);return this.stroke(a)};
$.g.Y7=function(a){$.Uj(405,null,["topLevel()","level(2)"],!0);var b=this.level(2);return $.p(a)?(b.K(a),this):b};$.g.W7=function(a){$.Uj(405,null,["midLevel()","level(1)"],!0);var b=this.level(1);return $.p(a)?(b.K(a),this):b};$.g.V7=function(a){$.Uj(405,null,["lowLevel()","level(0)"],!0);var b=this.level(0);return $.p(a)?(b.K(a),this):b};$.g.X7=function(a){return $.p(a)?this:this.G};$.g.iz=function(){this.g||(this.g=$.Zi(),this.Hf=$.dj(),this.g.clip(this.Hf),this.o=this.g.Nd())};
$.g.X=function(){if(this.xc()){var a,b;this.iz();this.J(2)&&(this.g.parent(this.O()),this.I(2));this.J(8)&&(this.g.zIndex(this.zIndex()),this.I(8));this.J(4)&&($.sx(this.b),this.Hf.shape(this.ub),this.P=null,this.u(512),this.I(4));var c=!1;if(this.J(512)){c=!0;if(null==this.P){var d=0,e=0;this.N=[];for(a=0;a<this.f.length;a++)(b=this.f[a])&&b.enabled()&&(b=b.i("height")||this.i("levelHeight"),null!=b?(b=$.M(b,this.ub.height),this.N[a]=b,d+=b):(this.N[a]=null,e++));this.P=e?Math.max(0,(this.ub.height-
d)/e):0}d=this.ub.top+this.ub.height;for(a=0;a<this.f.length;a++)if(b=this.f[a])if(b.enabled()){$.U(b);b.O(this.o);e=this.N[a];e=null!=e?e:this.P;var f=new $.I(this.ub.left,d-e,this.ub.width,e);$.Mn(f,0);b.nf(f);b.da(!1);d-=e}else b.remove();this.I(512)}if(this.J(16)){c=!0;for(a=0;a<this.f.length;a++)(b=this.f[a])&&b.u(272);this.I(16)}if(c)for(a=0;a<this.f.length;a++)(b=this.f[a])&&b.X()}};
$.g.F=function(){var a=lI.B.F.call(this);$.Bp(this,GJ,a);a.levels=[];for(var b=0;b<this.f.length;b++){var c=this.f[b];c&&a.levels.push(c.F())}a.labels=this.labels().F();a.background=this.background().F();return a};
$.g.Y=function(a,b){lI.B.Y.call(this,a,b);$.tp(this,GJ,a,b);this.background().ja(!!b,a.background);this.labels().ja(!!b,a.labels);var c=a.topLevel;c&&(this.level(2,c),b||$.Uj(405,null,["topLevel()","level(2)"],!0));if(c=a.midLevel)this.level(1,c),b||$.Uj(405,null,["midLevel()","level(1)"],!0);if(c=a.lowLevel)this.level(0,c),b||$.Uj(405,null,["lowLevel()","level(0)"],!0);c=a.levels;if($.B(c))for(var d=0;d<c.length;d++)this.level(d,c[d])};
$.g.R=function(){this.U=null;$.jd(this.f,this.b,this.D,this.G);this.f.length=0;this.b=this.G=this.D=null;lI.B.R.call(this)};var HJ=lI.prototype;HJ.background=HJ.background;HJ.holidays=HJ.T7;HJ.level=HJ.level;HJ.labels=HJ.labels;HJ.getPixelBounds=HJ.sb;HJ.backgroundFill=HJ.S7;HJ.overlay=HJ.X7;HJ.padding=HJ.padding;HJ.levelsSeparationStroke=HJ.U7;HJ.topLevel=HJ.Y7;HJ.midLevel=HJ.W7;HJ.lowLevel=HJ.V7;$.H(mI,WG);mI.prototype.ra=WG.prototype.ra;mI.prototype.qa=WG.prototype.qa|7680;var IJ={};$.ep(IJ,[[1,"columnStroke",$.xp]]);$.S(mI,IJ);$.g=mI.prototype;$.g.elements=function(a){this.LB||(this.LB=new aI(this),$.L(this.LB,this.GA,this));return $.p(a)?(this.LB.K(a),this):this.LB};$.g.Qv=function(a){this.Vz||(this.Vz=new hI(this),this.Vz.parent(this.elements()),$.L(this.Vz,this.GA,this));return $.p(a)?(this.Vz.K(a),this):this.Vz};
$.g.ac=function(a){this.Xk||(this.Xk=new iI(this),this.Xk.parent(this.elements()),$.L(this.Xk,this.GA,this));return $.p(a)?(this.Xk.K(a),this):this.Xk};$.g.Mc=function(a){this.Rk||(this.Rk=new gI(this),this.Rk.parent(this.elements()),$.L(this.Rk,this.GA,this));return $.p(a)?(this.Rk.K(a),this):this.Rk};$.g.lk=function(a){this.zz||(this.zz=new fI(this),this.zz.parent(this.ac()),$.L(this.zz,this.GA,this));return $.p(a)?(this.zz.K(a),this):this.zz};
$.g.pj=function(a){this.Ky||(this.Ky=new cI(this),this.Ky.parent(this.elements()),$.L(this.Ky,this.GA,this));return $.p(a)?(this.Ky.K(a),this):this.Ky};$.g.il=function(a){this.En||(this.En=new dI(this),$.L(this.En,this.GA,this));return $.p(a)?(this.En.K(a),this):this.En};
$.g.pq=function(a,b,c,d){var e=a.get("id"),f=b.Qa();var h=b.yC||(b.yC=[b.labels(),b.bg().elements().labels(),b.bg().labels()]);var k;(b=bI(b,a,d))&&(k=b.label);c={oG:!0,id:e,type:f,item:a,labels:h,ab:c,PS:k};$.p(d)&&(c.hs=d,a=a.get("periods"),c.Qb=a[d]);return c};$.g.GA=function(a){if(!$.W(a,2)){var b=0;$.W(a,4096)&&(b|=2048);$.W(a,1)&&(b|=64);$.W(a,8192)&&(b|=128);this.u(b,1)}};
$.g.h$=function(a){var b=this.elements();$.Uj(405,null,["timeline.baseFill()","timeline.elements().fill()"],!0);return arguments.length?b.fill.apply(b,arguments):b.fill()};$.g.j$=function(a){var b=this.elements();$.Uj(405,null,["timeline.baseStroke()","timeline.elements().stroke()"],!0);return arguments.length?b.stroke.apply(b,arguments):b.stroke()};
$.g.p$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineFill()","timeline.baselines().fill()"],!0);var b=this.pj();return arguments.length?b.fill.apply(b,arguments):b.fill()};$.g.r$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineStroke()","timeline.baselines().stroke()"],!0);var b=this.pj();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};
$.g.Lda=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.milestoneFill()","timeline.milestones().fill()"],!0);var b=this.Mc();return arguments.length?b.fill.apply(b,arguments):b.fill()};$.g.Qda=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.milestoneStroke()","timeline.milestones().stroke()"],!0);var b=this.Mc();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};
$.g.pfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.parentFill()","timeline.groupingTasks().fill()"],!0);var b=this.lk();return arguments.length?b.fill.apply(b,arguments):b.fill()};$.g.sfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.parentStroke()","timeline.groupingTasks().stroke()"],!0);var b=this.lk();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};
$.g.Ifa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.progressFill()","timeline.tasks().progress().fill() or timeline.groupingTasks().progress().fill()"],!0);var b=this.ac();return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.Kfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.progressStroke()","timeline.tasks().progress().stroke() or timeline.groupingTasks().progress().stroke()"],!0);var b=this.ac();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.mga=function(a){var b=this.elements().selected();$.Uj(405,null,["timeline.selectedElementFill()","timeline.elements().selected().fill()"],!0);return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.nga=function(a){var b=this.elements().selected();$.Uj(405,null,["timeline.selectedElementStroke()","timeline.elements().selected().stroke()"],!0);return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.i$=function(a){$.Uj(405,null,["timeline.baseLabels()","timeline.elements().labels()"],!0);return this.elements().labels(a)};$.g.q$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineLabels()","timeline.baselines().labels()"],!0);return this.pj().labels(a)};
$.g.qfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.parentLabels()","timeline.groupingTasks().labels()"],!0);return this.lk().labels(a)};$.g.Nda=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.milestoneLabels()","timeline.milestones().labels()"],!0);return this.Mc().labels(a)};
$.g.Jfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.progressLabels()","timeline.tasks().progress().labels() or timeline.groupingTasks().progress().labels()"],!0);return this.ac().qd().labels(a)};$.g.k$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineAbove()","timeline.baselines().above()"],!0);return this.pj().above(a)};$.g.d$=function(a){$.Uj(405,null,["timeline.baseBarHeight()","timeline.elements().height()"],!0);return this.elements().height(a)};
$.g.c$=function(a){$.Uj(405,null,["timeline.baseBarAnchor()","timeline.elements().anchor()"],!0);return this.elements().anchor(a)};$.g.f$=function(a){$.Uj(405,null,["timeline.baseBarPosition()","timeline.elements().position()"],!0);return this.elements().position(a)};$.g.e$=function(a){$.Uj(405,null,["timeline.baseBarOffset()","timeline.elements().offset()"],!0);return this.elements().offset(a)};
$.g.mfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.parentBarHeight()","timeline.groupingTasks().height()"],!0);return this.lk().height(a)};$.g.lfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.parentBarAnchor()","timeline.groupingTasks().anchor()"],!0);return this.lk().anchor(a)};$.g.ofa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.parentBarPosition()","timeline.groupingTasks().position()"],!0);return this.lk().position(a)};
$.g.nfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.parentBarOffset()","timeline.groupingTasks().offset()"],!0);return this.lk().offset(a)};$.g.m$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineBarHeight()","timeline.baselines().height()"],!0);return this.pj().height(a)};$.g.l$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineBarAnchor()","timeline.baselines().anchor()"],!0);return this.pj().anchor(a)};
$.g.o$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineBarPosition()","timeline.baselines().position()"],!0);return this.pj().position(a)};$.g.n$=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.baselineBarOffset()","timeline.baselines().offset()"],!0);return this.pj().offset(a)};
$.g.Ffa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.progressBarHeight()","timeline.tasks().progress().height() or timeline.groupingTasks().progress().height()"],!0);return this.ac().qd().height(a)};$.g.Efa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.progressBarAnchor()","timeline.tasks().progress().anchor() or timeline.groupingTasks().progress().anchor()"],!0);return this.ac().qd().anchor(a)};
$.g.Hfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.progressBarPosition()","timeline.tasks().progress().position() or timeline.groupingTasks().progress().position()"],!0);return this.ac().qd().position(a)};$.g.Gfa=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.progressBarOffset()","timeline.tasks().progress().offset() or timeline.groupingTasks().progress().offset()"],!0);return this.ac().qd().offset(a)};
$.g.Mda=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.milestoneHeight()","timeline.milestones().height()"],!0);return this.Mc().height(a)};$.g.Kda=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.milestoneAnchor()","timeline.milestones().anchor()"],!0);return this.Mc().anchor(a)};$.g.Pda=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.milestonePosition()","timeline.milestones().position()"],!0);return this.Mc().position(a)};
$.g.Oda=function(a){if(this.controller.b)return this;$.Uj(405,null,["timeline.milestoneOffset()","timeline.milestones().offset()"],!0);return this.Mc().offset(a)};$.g.O$=function(a){$.Uj(405,null,["timeline.connectorFill()","timeline.connectors().fill()"],!0);var b=this.il();return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.Uy=function(a){$.Uj(405,null,["timeline.connectorStroke()","timeline.connectors().stroke()"],!0);var b=this.il();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.lga=function(a){$.Uj(405,null,["timeline.selectedConnectorStroke()","timeline.connectors().selected().stroke()"],!0);var b=this.il().selected();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};
$.g.P$=function(a){$.Uj(405,null,["timeline.connectorPreviewStroke()","timeline.connectors().previewStroke()"],!0);var b=this.il();return arguments.length?b.previewStroke.apply(b,arguments):b.previewStroke()};$.g.Naa=function(a){$.Uj(405,null,["timeline.editPreviewFill()","timeline.elements().edit().fill()"],!0);var b=this.elements().cd();return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.Oaa=function(a){$.Uj(405,null,["timeline.editPreviewStroke()","timeline.elements().edit().stroke()"],!0);var b=this.elements().cd();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.Qaa=function(a){$.Uj(405,null,["timeline.editProgressFill()","timeline.tasks().edit().fill()"],!0);var b=this.ac().cd();return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.Raa=function(a){$.Uj(405,null,["timeline.editProgressStroke()","timeline.tasks().edit().stroke()"],!0);var b=this.ac().cd();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.Iaa=function(a){$.Uj(405,null,["timeline.editIntervalThumbFill()","timeline.elements().edit().thumbs().fill()"],!0);var b=this.elements().cd().Yk();return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.Jaa=function(a){$.Uj(405,null,["timeline.editIntervalThumbStroke()","timeline.elements().edit().thumbs().stroke()"],!0);var b=this.elements().cd().Yk();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.xaa=function(a){$.Uj(405,null,["timeline.editConnectorThumbFill()","timeline.elements().edit().connectorThumbs().fill()"],!0);var b=this.elements().cd().Ms();return arguments.length?b.fill.apply(b,arguments):b.fill()};
$.g.yaa=function(a){$.Uj(405,null,["timeline.editConnectorThumbStroke()","timeline.elements().edit().connectorThumbs().stroke()"],!0);var b=this.elements().cd().Ms();return arguments.length?b.stroke.apply(b,arguments):b.stroke()};$.g.Vaa=function(a){$.Uj(405,null,["timeline.editStartConnectorMarkerType()","timeline.elements().edit().start().connectorThumb().type()"],!0);var b=this.elements().cd().start().Ml();return arguments.length?b.type.apply(b,arguments):b.type()};
$.g.Uaa=function(a){$.Uj(405,null,["timeline.editStartConnectorMarkerSize()","timeline.elements().edit().start().connectorThumb().size()"],!0);var b=this.elements().cd().start().Ml();return arguments.length?b.size.apply(b,arguments):b.size()};
$.g.Taa=function(a){$.Uj(405,null,["timeline.editStartConnectorMarkerHorizontalOffset()","timeline.elements().edit().start().connectorThumb().horizontalOffset()"],!0);var b=this.elements().cd().start().Ml();return arguments.length?b.horizontalOffset.apply(b,arguments):b.horizontalOffset()};
$.g.Waa=function(a){$.Uj(405,null,["timeline.editStartConnectorMarkerVerticalOffset()","timeline.elements().edit().start().connectorThumb().verticalOffset()"],!0);var b=this.elements().cd().start().Ml();return arguments.length?b.verticalOffset.apply(b,arguments):b.verticalOffset()};
$.g.Baa=function(a){$.Uj(405,null,["timeline.editFinishConnectorMarkerType()","timeline.elements().edit().end().connectorThumb().type()"],!0);var b=this.elements().cd().end().Ml();return arguments.length?b.type.apply(b,arguments):b.type()};$.g.Aaa=function(a){$.Uj(405,null,["timeline.editFinishConnectorMarkerSize()","timeline.elements().edit().end().connectorThumb().size()"],!0);var b=this.elements().cd().end().Ml();return arguments.length?b.size.apply(b,arguments):b.size()};
$.g.zaa=function(a){$.Uj(405,null,["timeline.editStartConnectorMarkerHorizontalOffset()","timeline.elements().edit().end().connectorThumb().horizontalOffset()"],!0);var b=this.elements().cd().end().Ml();return arguments.length?b.horizontalOffset.apply(b,arguments):b.horizontalOffset()};
$.g.Caa=function(a){$.Uj(405,null,["timeline.editFinishConnectorMarkerVerticalOffset()","timeline.elements().edit().end().connectorThumb().verticalOffset()"],!0);var b=this.elements().cd().end().Ml();return arguments.length?b.verticalOffset.apply(b,arguments):b.verticalOffset()};$.g.Kaa=function(a){$.Uj(405,null,["timeline.editIntervalWidth()","timeline.elements().edit().thumbs().size()"],!0);var b=this.elements().cd().Yk();return arguments.length?b.size.apply(b,arguments):b.size()};
$.g.scale=function(a){return $.p(a)?(this.oa.K(a),this):this.oa};$.g.Nh=function(a){$.W(a,4)&&this.u(4608,1)};$.g.gv=function(){return this.oa};$.g.Az=function(a){this.mk||(this.mk=new lI(this),this.mk.zIndex(80),$.L(this.mk,this.l_,this),this.mk.b.ua($.gC|$.hC));return $.p(a)?(this.mk.K(a),this):this.mk};$.g.l_=function(a){$.W(a,1)&&this.u(512,1)};$.g.XE=function(a){return $.p(a)?(this.bQ=a,this):this.bQ||{}};$.g.YE=function(a){return $.p(a)?(this.dQ=a,this):this.dQ||{}};
$.g.ZE=function(a){return $.p(a)?(this.fQ=a,this):this.fQ||{}};$.g.um=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.Lz[c];e||(e=new MH(this.oa),e.K(this.XE()),e.qb(this),this.Lz[c]=e,$.L(e,this.Ix,this),this.u(4096,1));return $.p(d)?(e.K(d),this):e};
$.g.Cm=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.bA[c];e||(e=new NH(this.oa),e.K(this.YE()),e.qb(this),this.bA[c]=e,$.L(e,this.Ix,this),this.u(4096,1));return $.p(d)?(e.K(d),this):e};$.g.Gm=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.xA[c];e||(e=new OH(this.oa),e.K(this.ZE()),e.qb(this),this.xA[c]=e,$.L(e,this.Ix,this),this.u(4096,1));return $.p(d)?(e.K(d),this):e};$.g.Ix=function(){this.u(4096,1)};
$.g.labels=function(a){this.Qg||(this.Qg=new $.kt,this.Qg.qb(this),$.L(this.Qg,this.Fd,this),this.Qg.Me());if($.p(a)){var b=!0;$.K(a,$.kt)?this.Qg.K(a.F()):$.D(a)?this.Qg.K(a):$.Sn(a)?this.Qg.enabled(!1):b=!1;b&&this.u(64,1);return this}return this.Qg};$.g.Gb=function(a){this.Fv||(this.Fv=new $.vw,this.Fv.qb(this));if($.p(a)){var b=!0;$.K(a,$.vw)?this.Fv.K(a.F()):$.D(a)?this.Fv.K(a):$.Sn(a)?this.Fv.enabled(!1):b=!1;b&&this.u(64,1);return this}return this.Fv};
$.g.Maa=function(a){this.Xs=new PH(pI(this));this.Xs.wa("start",this.OY,!1,this);this.Xs.wa("drag",this.PY,!1,this);this.Xs.wa("end",this.QY,!1,this);this.Xs.Wk(a.zk)};$.g.Paa=function(a){this.Ys=new RH(qI(this));this.Ys.wa("start",this.SY,!1,this);this.Ys.wa("drag",this.TY,!1,this);this.Ys.wa("end",this.RY,!1,this);this.Ys.Wk(a.zk)};$.g.Laa=function(a){this.Ws=new SH(rI(this),!0);this.Ws.wa("start",this.NY,!1,this);this.Ws.wa("drag",this.XJ,!1,this);this.Ws.wa("end",this.WJ,!1,this);this.Ws.Wk(a.zk)};
$.g.Saa=function(a){this.Zs=new SH(sI(this),!1);this.Zs.wa("start",this.UY,!1,this);this.Zs.wa("drag",this.XJ,!1,this);this.Zs.wa("end",this.WJ,!1,this);this.Zs.Wk(a.zk)};$.g.Xaa=function(a){this.$s=new QH(this,tI(this),!0);this.$s.wa("start",this.UJ,!1,this);this.$s.wa("drag",this.VJ,!1,this);this.$s.wa("end",this.TJ,!1,this);this.$s.Wk(a.zk)};
$.g.Daa=function(a){this.Vs=new QH(this,uI(this),!1);this.Vs.wa("start",this.UJ,!1,this);this.Vs.wa("drag",this.VJ,!1,this);this.Vs.wa("end",this.TJ,!1,this);this.Vs.Wk(a.zk)};$.g.OY=function(){this.yh&&this.yh.Cj(!1);this.Yt=this.Ya().enabled();this.Ya().Wc();this.Ya().enabled(!1);this.dc.Rn();qI(this).clear();rI(this).clear();sI(this).clear();tI(this).clear();uI(this).clear();$.Te($.Ko.body,"cursor","ew-resize");ZG(this,!0)};$.g.PY=function(){this.aj=!0;this.sm=!1;this.Qp=this.sQ=!0};
$.g.QY=function(a){if(this.aj){this.yh&&this.yh.Cj(!0);var b=pI(this).kb();wI(this);var c=a.target.element;a=c.tag.item;var d=this.controller.data();$.U(d);b=$.ds(this.oa,"milestones"==c.tag.type?(b.left+b.width/2-this.ia.left)/this.ia.width:(b.left-this.ia.left)/this.ia.width);if(!(0,window.isNaN)(b))switch(c.tag.type){case "milestones":a.set("actualStart",b);a.j("actualStart",b);$.p(a.get("actualEnd"))&&(a.set("actualEnd",b),a.j("actualEnd",b));break;case "periods":c=c.tag.hs;var e=a.pl("periods",
c,"start");e=a.pl("periods",c,"end")+(b-e);(0,window.isNaN)(e)||(a.set("periods",c,"start",b),a.Zn("periods",c,"start",b),a.set("periods",c,"end",e),a.Zn("periods",c,"end",e));break;case "baselines":e=a.j("baselineStart");c=a.j("baselineEnd");e=b-e;(0,window.isNaN)(c+e)||(a.set("baselineStart",b),a.j("baselineStart",b));a.set("baselineEnd",c+e);a.j("baselineEnd",c+e);break;default:c=$.ea(a.j("actualStart"))?a.j("actualStart"):a.j("autoStart"),c=($.ea(a.j("actualEnd"))?a.j("actualEnd"):a.j("autoEnd"))+
(b-c),(0,window.isNaN)(c)||(a.set("actualStart",b),a.j("actualStart",b),a.set("actualEnd",c),a.j("actualEnd",c))}d.da(!0);BG(this);this.sQ=this.aj=!1;(0,window.clearInterval)(this.Vo);this.Vo=null}$.Te($.Ko.body,"cursor","");ZG(this,!1)};$.g.SY=function(){this.yh&&this.yh.Cj(!1);this.tQ=!0;this.Yt=this.Ya().enabled();this.Ya().Wc();this.Ya().enabled(!1);rI(this).clear();sI(this).clear();tI(this).clear();uI(this).clear();pI(this).clear()};$.g.TY=function(){this.aj=!0;this.sm=!1;this.Qp=!0};
$.g.RY=function(a){if(this.aj){this.yh&&this.yh.Cj(!0);wI(this);a=a.target;var b=a.element.tag.item;(0,window.isNaN)(a.qd)||b.set("progressValue",$.Kl(a.qd,2));this.aj=!1;(0,window.clearInterval)(this.Vo);this.Vo=null;this.tQ=!1}};$.g.UY=function(){this.yh&&this.yh.Cj(!1);this.Yt=this.Ya().enabled();this.Ya().Wc();this.Ya().enabled(!1);qI(this).clear();rI(this).clear();sI(this).clear();tI(this).clear();uI(this).clear();$.Te($.Ko.body,"cursor","col-resize");this.tp.cursor("col-resize");ZG(this,!0)};
$.g.NY=function(){this.yh&&this.yh.Cj(!1);this.Yt=this.Ya().enabled();this.Ya().Wc();this.Ya().enabled(!1);qI(this).clear();rI(this).clear();sI(this).clear();tI(this).clear();uI(this).clear();$.Te($.Ko.body,"cursor","col-resize");this.tp.cursor("col-resize");ZG(this,!0)};$.g.XJ=function(a){this.aj=!0;this.sm=!1;this.Ow=a.target;this.Qp=!0;yI(this,a)};
$.g.WJ=function(a){if(this.aj){this.yh&&this.yh.Cj(!0);var b=this.tp.kb();this.Us.push(this.tp);wI(this);a=a.target.element;var c=a.tag.item,d=a.tag.hs,e=this.controller.data();$.U(e);var f=(b.left+b.width-this.ia.left)/this.ia.width;b=$.ds(this.oa,(b.left-this.ia.left)/this.ia.width);f=$.ds(this.oa,f);if(!(0,window.isNaN)(b)&&!(0,window.isNaN)(f))switch(a.tag.type){case "periods":c.set("periods",d,"start",b);c.Zn("periods",d,"start",b);c.set("periods",d,"end",f);c.Zn("periods",d,"end",f);break;case "baselines":c.set("baselineStart",
b);c.j("baselineStart",b);c.set("baselineEnd",f);c.j("baselineEnd",f);break;default:c.set("actualStart",b),c.j("actualStart",b),c.set("actualEnd",f),c.j("actualEnd",f)}e.da(!0);BG(this);this.Ow=null;this.aj=!1;(0,window.clearInterval)(this.Vo);this.Vo=null}$.Te($.Ko.body,"cursor","");this.tp.cursor("ew-resize");ZG(this,!1)};$.g.UJ=function(a){this.yh&&this.yh.Cj(!1);this.dc.Rn();this.ro=a.target;wI(this);this.Yt=this.Ya().enabled();this.Ya().Wc();this.Ya().enabled(!1);ZG(this,!0)};
$.g.VJ=function(a){this.Qw=this.aj=!0;this.sm=this.MQ=!1;this.ro.b=a.clientX;this.ro.g=a.clientY;this.Qp=!0};$.g.TJ=function(){this.aj&&(this.yh&&this.yh.Cj(!0),this.Ya().enabled(this.Yt),this.Yt=void 0,vI(this).clear(),this.Qw=this.aj=!1,this.MQ=!0,(0,window.clearInterval)(this.Vo),this.Vo=null);ZG(this,!1)};
$.g.zW=function(a,b){if(this.aj){if(this.Qw)if(a&&this.ro){var c=a.originalEvent.domTarget;if(c&&c.tag&&c.tag.oG){c=c.tag;var d=c.item;if("baselines"!=c.type&&"connectors"!=c.type){var e=this.ro.element.tag;var f=e.item,h=e.index;var k=a.period;var l=a.periodIndex;k?(e={item:f,period:e.Qb,index:h,periodIndex:e.hs},d={item:d,period:k,index:a.hoveredIndex+this.controller.Gg(),periodIndex:l}):(e={item:f,index:h},d={item:d,index:a.hoveredIndex+this.controller.Gg()});k=b.clientX-$.Ii(this.O().Ga()).x;
c=c.ab;c=.5>(k-c.left)/c.width;c=this.ro.Dx?c?"start-start":"start-finish":c?"finish-start":"finish-finish";vI(this).clear();QI(this,e,d,c,void 0,vI(this))}else AI(this,b)}else AI(this,b)}else AI(this,b)}else if(a&&a.originalEvent){e=a.originalEvent;if((e=e.domTarget)&&e.tag&&e.tag.oG){if(k=e.tag,l=k.item,f=l.get("id"),$.p(this.oL)||(this.oL=f),d=a.periodIndex,$.p(d)&&(0,window.isNaN)(this.pL)&&(this.pL=d),this.oL!=f&&this.pL!=d&&(wI(this,!0),this.oL=f,$.p(d)&&(this.pL=d)),k.ab){var m=k.type;f=k.ab;
var n=k.item;wI(this,!0);h=DI(this,m).cd();h.i("enabled")&&(m=nI(n,null,m,f,d),n=pI(this),n.tag=m,n.fill(h.i("fill")).stroke(h.i("stroke")).clear().moveTo(f.left,f.top).lineTo(f.left+f.width,f.top).lineTo(f.left+f.width,f.top+f.height).lineTo(f.left,f.top+f.height).close(),this.Us.push(n));if(!l||"tasks"!=k.type&&"grouping-tasks"!=k.type&&"progress"!=k.type)qI(this).clear();else if(m=k.ab,n=k.item,f=DI(this,k.type).qd().cd(),f.i("enabled")){var q=nI(n,null,"progress",m,void 0);h=qI(this);h.tag=q;
n=$.p(n.j("progressValue"))?n.j("progressValue"):n.j("autoProgress");n=m.left+(n||0)*m.width;m=m.top+m.height;h.fill(f.i("fill")).stroke(f.i("stroke")).clear().moveTo(n,m-5).lineTo(n+5,m).lineTo(n+5,m+5).lineTo(n-5,m+5).lineTo(n-5,m).close();this.Us.push(h)}if(l&&"milestones"!=k.type){m=k.type;f=k.ab;n=k.item;h=DI(this,m).cd();m=nI(n,null,m,f,d);n=h.start().Wt();q=h.end().Wt();var r=f.left+f.width;if(h.i("enabled")&&n.i("enabled")){var t=rI(this);t.tag=m;var u=n.i("size");t.fill(n.i("fill")).stroke(n.i("stroke")).clear().moveTo(f.left-
1,f.top).lineTo(f.left-1+u,f.top).lineTo(f.left-1+u,f.top+f.height).lineTo(f.left-1,f.top+f.height).close();this.Us.push(t)}h.i("enabled")&&q.i("enabled")&&(t=sI(this),t.tag=m,u=q.i("size"),t.fill(q.i("fill")).stroke(q.i("stroke")).clear().moveTo(r+1,f.top).lineTo(r+1-u,f.top).lineTo(r+1-u,f.top+f.height).lineTo(r+1,f.top+f.height).close(),this.Us.push(t))}else rI(this).clear(),sI(this).clear();l&&"baselines"!=k.type?(f=a.hoveredIndex+this.controller.Gg(),h=k.type,l=k.ab,m=k.item,k=DI(this,h).cd(),
d=nI(m,f,h,l,d),f=l.left+l.width,h=k.start().Ml(),m=k.end().Ml(),u=l.top+l.height/2,k.i("enabled")&&h.i("enabled")&&(n=tI(this),n.tag=d,n.fill(h.i("fill")).stroke(h.i("stroke")),t=$.so(h.i("type")),q=h.i("size")/2,t.call(null,n,l.left-q+h.i("horizontalOffset"),u+h.i("verticalOffset"),q),this.Us.push(n)),k.i("enabled")&&m.i("enabled")&&(n=uI(this),n.tag=d,n.fill(m.i("fill")).stroke(m.i("stroke")),t=$.so(m.i("type")),q=m.i("size")/2,t.call(null,n,f+q+m.i("horizontalOffset"),u+m.i("verticalOffset"),
q),this.Us.push(n))):(uI(this).clear(),tI(this).clear())}}else!e||e.tag&&e.tag.Zca||wI(this,!0);if(d=CI(this,a))this.dc.dispatchEvent(d),this.aG=e.j;else if(this.aG){if(a&&a.originalEvent){e={type:"connectormouseout",actualTarget:a.originalEvent.target,target:this,originalEvent:a.originalEvent};for(c in this.aG)e[c]=this.aG[c];d=e}else d=null;this.dc.dispatchEvent(d);this.aG=null}}else wI(this,!1)};$.g.oH=function(a){this.pT(a)};$.g.qM=function(){this.Ya().enabled(this.Yt);this.Yt=void 0};
$.g.pT=function(a){this.elements().cd().i("enabled")&&(this.Ii=a.item)};$.g.yW=function(a){a&&(a=CI(this,a))&&this.dc.dispatchEvent(a)};
$.g.AW=function(a){if(this.MQ&&(this.MQ=!1,a)){var b=a.item,c=a.periodIndex,d=a.originalEvent,e=d.domTarget;if((e=e?e.tag:void 0)&&e.oG&&"baselines"!=e.type){d=d.clientX-$.Ii(this.O().Ga()).x;e=e.ab;var f=this.ro.Dx?this.Ru:this.Ou;e=.5>(d-e.left)/e.width;d=f.tag.item;e=this.ro.Dx?e?"start-start":"start-finish":e?"finish-start":"finish-finish";f=f.tag.hs;e=e||"finish-start";$.K(d,$.Bs)||$.K(d,$.xs)||(d=this.controller.data().Wo("id",d),d=d.length?d[0]:null);if(d&&($.K(b,$.Bs)||$.K(b,$.xs)||(b=this.controller.data().Wo("id",
b),b=b.length?b[0]:null),b)){$.U(this.controller.data());var h=!1;if(this.controller.b){var k=d.get("periods")[f],l=b.get("periods")[c];if($.p(k)&&$.p(l)){var m=k.connector;var n={};n.connectTo=l.id;n.connectorType=e;if(m)if($.B(m))m=m.length;else{h=$.Ic(m);var q={};q.connectTo=k.connectTo;q.connectorType=k.connectorType||"finish-start";$.Kc(q,h);m=1;h=!0}else m=k.connectTo,$.p(m)?(q={},q.connectTo=m,q.connectorType=k.connectorType||"finish-start",m=1,h=!0):m=0;c={type:"beforeCreateConnector",target:b,
source:d,connectorType:e,targetPeriod:l,targetPeriodIndex:c,sourcePeriod:k,sourcePeriodIndex:f};this.dc.dispatchEvent(c)&&(h&&d.set("periods",f,"connector",[q]),d.set("periods",f,"connector",m,n))}}else m=d.get("connector"),n={},n.connectTo=b.get("id"),n.connectorType=e,m?$.B(m)?m=m.length:(h=$.Ic(m),q={},q.connectTo=d.get("connectTo"),q.connectorType=d.get("connectorType")||"finish-start",$.Kc(q,h),m=1,h=!0):(m=d.get("connectTo"),$.p(m)?(q={},q.connectTo=m,q.connectorType=d.get("connectorType")||
"finish-start",m=1,h=!0):m=0),c={type:"beforeCreateConnector",target:b,source:d,connectorType:e},this.dc.dispatchEvent(c)&&(h&&d.set("connector",[q]),d.set("connector",m,n));this.controller.data().da(!0)}}}(a=CI(this,a))?this.dc.dispatchEvent(a):vI(this).clear();this.Qw=!1;this.ro=null;this.sm=!0};
$.g.qT=function(a){if(this.aj&&!this.tQ&&(this.Qt||this.$v)){var b=0,c=0;this.Qt&&(b=0<this.Qt?30:-30);(this.Qw||this.Ii)&&this.$v&&(c=0<this.$v?30:-30);this.scroll(b,c,!0)&&(yI(this,a,this.Qt),AI(this,a,this.Qt,this.$v))}};$.g.pM=function(a){if(!EI(this,a)&&(a=a.item)&&a.Wb()){var b=!a.j("collapsed");this.dc.dispatchEvent({type:"rowcollapseexpand",item:a,collapsed:b})&&a.j("collapsed",b)}};$.g.rM=function(a){GI(this,a)||(FI(this,a),HI(this,a.item,a.periodIndex)&&(a=$.Ic(a),a.type="rowSelect",this.dc.dispatchEvent(a)))};
$.g.ft=function(a){var b=mI.B.ft.call(this,a),c=b&&b.originalEvent?b.originalEvent.domTarget:null;if(b&&c){var d=this.sb();a=Math.abs(d.left-a.offsetX)/d.width;d=$.ds(this.scale(),a);if(c.tag&&$.p(c.tag.type))var e=c.tag.type;b.hoverRatio=a;b.hoverDateTime=d;e&&(b.elementType=e);this.controller.b&&c.tag&&(b.period=c.tag.Qb,b.periodIndex=c.tag.hs)}return b};
$.g.LJ=function(a,b,c){var d=a.get("markers");if(d)for(var e=0;e<d.length;e++){var f=d[e];if(f){var h=a.pl("markers",e,"value");if(null!==h){var k=$.cs(this.oa,h);if(0<=k&&1>=k){h=.7*c;k=Math.round(this.ia.left+this.ia.width*k);var l=Math.round(b+(c-h)/2);k=this.Gb().add({value:{x:k,y:l}});k.pa("size",h/2);k.K(f)}}}}};$.g.AQ=function(){var a=mI.B.AQ.call(this);a.top+=this.ul();bH(this).clip(a);return a};
$.g.XK=function(){eH(this).zIndex(33);this.Gb().O(cH(this));this.labels().O(cH(this));this.Az().O($G(this));BG(this)};$.g.qr=function(){this.Az().nf({left:this.ia.left,top:this.ia.top,width:this.ia.width,height:this.ul()});this.u(4096);this.lH=!0};$.g.ru=function(){oI(this).stroke(oH("columnStroke",2)(this,0))};$.g.tS=function(a){a.ec(aH(this)).ec(RI(this)).ec(bH(this)).ec(SI(this)).ec(cH(this)).ec(dH(this)).ec(eH(this)).ec(fH(this))};$.g.Kq=function(){this.J(2048)&&(this.Rw(),this.I(2048))};
$.g.$U=function(){var a=this.Az();this.J(512)&&(this.lH=this.Rx=!0,a.u(512),this.I(512));if(this.lH){$.U(a);var b=$.es(this.oa);a.IU(b);for(var c=[],d=0;d<b.length;d++)if(a.level(d).enabled()){b=b[d];c=this.oa.an(window.NaN,window.NaN,b.unit,b.count);break}a.X();a.da(!1);a=c;if(a.length){b=oI(this).clear();c=b.stroke();c=$.Tn(c);d=this.ia.top+this.ul()+1;for(var e=this.ia.top+this.ia.height,f=0,h=a.length;f<h;f++){var k=$.cs(this.oa,a[f].start);k=this.ia.left+this.ia.width*k;k=$.O(k,c);b.moveTo(k,
d).lineTo(k,e)}}b=this.oa.Qi();c=this.oa.ik();a=$.cs(this.oa,b.min)*this.ia.width;d=$.cs(this.oa,b.max)*this.ia.width;b=$.cs(this.oa,c.min)*this.ia.width;c=$.cs(this.oa,c.max)*this.ia.width;this.$h&&(a=new $.I(a,0,d-a,0),b=new $.I(b,0,c-b,0),$.U(this.$h).Hq(!1).Mf(a).vN(b).X().Hq(!0).da(!1),this.$h.O()&&this.$h.X())}};
$.g.K0=function(){if(this.Rx||this.lH){for(var a=this.controller.b?[this.Qv()]:[this.ac(),this.lk(),this.Mc(),this.pj(),this.ac().qd(),this.lk().qd()],b=0;b<a.length;b++){var c=a[b];c.Ff||c.WC();c.Ff.Cu()}bH(this).Ti();this.VH=0;this.Gb().clear();if(this.controller.b)for(var d=this.ia.top+this.ul()+1-this.controller.gm(),e=this.controller.D,f=this.controller.Gg();f<=this.controller.sj();f++){var h=e[f];if(!h)break;var k=qG(this.controller,h),l=d+k,m=h,n=d,q=k,r=m.get("periods");if(r)for(var t=0;t<
r.length;t++){var u=m.pl("periods",t,"start"),v=m.pl("periods",t,"end");if($.ea(u)&&$.ea(v)){var w=$.cs(this.oa,u),x=$.cs(this.oa,v);if(0<x&&1>w){var y=this.ia.left+this.ia.width*w,A=this.ia.left+this.ia.width*x-y,G=this.Qv(),C=G.i("height"),J=$.M(C,q),P=new $.I(y,n,A,q),Q=G.i("anchor"),T=G.i("position");"auto"==Q&&(Q=xI(this,T,"periods"));var wa=G.i("offset"),Aa=$.M(wa,q),Sa=$.un(P,T),wb=Sa.y+($.An(Q)?0:$.Bn(Q)?-J:-J/2)+Aa,oc=UG(this.dc.al(),m,t),eb=KI(G,new $.I(Sa.x,wb,A,J),m,t,oc),bc=this.pq(m,
G,eb,t);LI(this,m,eb,t);YH(G.jj(),m,eb,bc,t,oc)}}}this.LJ(h,d,k);d=l+this.Xn}else for(var tb=this.ia.top+this.ul()+1-this.controller.gm(),Mc=this.controller.D,pf=this.controller.Gg();pf<=this.controller.sj();pf++){var Bb=Mc[pf];if(!Bb)break;var nd=qG(this.controller,Bb),xc=tb+nd,Vf=Bb.get("baselineStart"),Eg=Bb.get("baselineEnd");if(XG(Bb)){var fd=Bb,pc=tb,pi=nd,kg=fd.get("actualStart"),Dj=$.cs(this.oa,kg);if(0<=Dj&&1>=Dj){var Sg=this.Mc(),Ti=Sg.sl(fd,$.Wk),Sh=($.Sn(Ti)?0:$.z(Ti)?1:Ti.thickness?Ti.thickness:
1)%2&&"svg"===$.Ui?.5:0,Tg=Sg.i("height"),lg=$.M(Tg,pi),Ff=JI(this,Sg,new $.I(Math.round(this.ia.left+this.ia.width*Dj)+Sh-Math.round(lg/2),pc,lg,pi)),Yd=TG(this.dc.al(),fd);Ff=KI(Sg,Ff,fd,void 0,Yd);var Ej=this.pq(fd,Sg,Ff);LI(this,fd,Ff);YH(this.Mc().jj(),fd,Ff,Ej,void 0,Yd)}}else if($.p(Vf)&&$.p(Eg)){var Hb=Bb,th=tb,vh=nd,nr=$.ea(Hb.j("actualStart"))?Hb.j("actualStart"):Hb.j("autoStart"),Ve=$.ea(Hb.j("actualEnd"))?Hb.j("actualEnd"):Hb.j("autoEnd"),Ce=Hb.j("baselineStart"),wh=Hb.j("baselineEnd"),
Ug=$.cs(this.oa,nr),go=$.cs(this.oa,Ve),Kp=$.cs(this.oa,Ce),od=$.cs(this.oa,wh);if(0<go&&1>Ug||0<od&&1>Kp){var Vg=this.ia,Ek=Vg.left+Vg.width*Ug,ri=Vg.left+Vg.width*go-Ek,si=Hb.Wb()?this.lk():this.ac(),Zd=this.pj(),We=JI(this,si,new $.I(Ek,th,ri,vh),!0),yl=Vg.left+Vg.width*Kp,Kj=JI(this,Zd,new $.I(yl,th,Vg.left+Vg.width*od-yl,vh),!0);MI(this,We,Kj,si,Hb);var xh=TG(this.dc.al(),Hb);We=KI(si,We,Hb,void 0,xh);Kj=KI(Zd,Kj,Hb,void 0,xh);var Vh=this.pq(Hb,si,We),or=this.pq(Hb,Zd,Kj);YH(Zd.jj(),Hb,Kj,or,
void 0,xh);LI(this,Hb,We);YH(si.jj(),Hb,We,Vh,void 0,xh);var Em=$.p(Hb.j("progressValue"))?Hb.j("progressValue"):Hb.j("autoProgress");if(null!=Em){var ho=new $.I(We.left,We.top,Em*We.width,We.height),Fk=JI(this,si.qd(),ho),Fm=this.pq(Hb,si.qd(),Fk);YH(si.qd().jj(),Hb,Fk,Fm,void 0,xh)}}}else if(Bb.Wb()){var he=Bb,io=tb,zl=nd,Al=$.ea(he.j("actualStart"))?he.j("actualStart"):he.j("autoStart"),ti=$.ea(he.j("actualEnd"))?he.j("actualEnd"):he.j("autoEnd"),Xe=$.cs(this.oa,Al),jo=$.cs(this.oa,ti);if(0<jo&&
1>Xe){var yh=this.ia,De=this.lk(),$d=yh.left+yh.width*Xe,Lj=yh.left+yh.width*jo-$d,Wc=JI(this,De,new $.I($d,io,Lj,zl)),Wh=TG(this.dc.al(),he);Wc=KI(De,Wc,he,void 0,Wh);var Gk=this.pq(he,De,Wc);LI(this,he,Wc);YH(De.jj(),he,Wc,Gk,void 0,Wh);var Gm=$.p(he.j("progressValue"))?he.j("progressValue"):he.j("autoProgress");if(null!=Gm){var Lp=new $.I(Wc.left,Wc.top,Gm*Lj,Wc.height),Hk=JI(this,De.qd(),Lp),ko=this.pq(he,De.qd(),Hk);YH(De.qd().jj(),he,Hk,ko,void 0,Wh)}}}else{var Ye=Bb,Fg=tb,zh=nd,Bl=$.ea(Ye.j("actualStart"))?
Ye.j("actualStart"):Ye.j("autoStart"),Hm=$.ea(Ye.j("actualEnd"))?Ye.j("actualEnd"):Ye.j("autoEnd"),Ik=$.cs(this.oa,Bl),Xi=$.cs(this.oa,Hm);if(0<Xi&&1>Ik){var Wg=this.ia,Cl=this.ac(),Jk=Wg.left+Wg.width*Ik,Mp=Wg.left+Wg.width*Xi-Jk,Im=JI(this,Cl,new $.I(Jk,Fg,Mp,zh)),Rz=TG(this.dc.al(),Ye);Im=KI(Cl,Im,Ye,void 0,Rz);var kJ=this.pq(Ye,Cl,Im);LI(this,Ye,Im);YH(this.ac().jj(),Ye,Im,kJ,void 0,Rz);var wD=$.p(Ye.j("progressValue"))?Ye.j("progressValue"):Ye.j("autoProgress");if(null!=wD){var ZR=new $.I(Im.left,
Im.top,wD*Mp,Im.height),Sz=JI(this,this.ac().qd(),ZR),xD=this.pq(Ye,this.ac().qd(),Im);YH(this.ac().qd().jj(),Ye,Sz,xD,void 0,Rz)}}}this.LJ(Bb,tb,nd);tb=xc+this.Xn}this.Gb().X();for(var yD=this.controller.ga,Kk=yD.length,tt,$R=this.controller.b?this.controller.la:this.controller.va;Kk--;){tt=yD[Kk];var ut=tt.to;$.D(ut)||(ut=$R[ut]);$.p(ut)?(tt.to=ut,QI(this,tt.from,ut,tt.type,tt.connSettings)):$.Ba(yD,Kk,1)}for(var zD=this.VH,aS=this.WH.length;zD<aS;zD++)this.WH[zD].reset();this.u(2048);this.lH=!1}};
$.g.W_=function(){if(this.J(4096)){for(var a=$.Fa(this.Lz,this.bA,this.xA),b=this.ia.top+this.ul()+1,c=new $.I(this.ia.left,b,this.ia.width,this.ia.height-this.ul()-1),d=0,e=a.length;d<e;d++){var f=a[d];if(f){var h=c,k=RI(this);$.K(f,OH)&&(h=new $.I(this.ia.left,b,this.ia.width,this.B2),k=SI(this));$.U(f);f.u(4);f.fa(h);f.O(k);f.u(2);f.X();f.da(!1)}}this.I(4096)}};$.g.Fd=function(){this.u(2048,1)};
$.g.Rw=function(){$.U(this.labels());this.labels().clear();for(var a=this.controller.b?[this.Qv()]:[this.ac(),this.lk(),this.Mc(),this.pj(),this.ac().qd(),this.lk().qd()],b=0;b<a.length;b++){var c=a[b];c.Ff||c.WC();var d=c.Ff.cN,e;for(e in d)if(d.hasOwnProperty(e)){var f=d[e];if(f.oG){var h=this.Ec(f.item,f.Qb,f.hs);f.label=this.labels().add(h,{value:{x:0,y:0}});var k=f.PS,l=f.labels,m=l&&l[0]?l[0]:null,n=this.elements().labels(),q=this.labels(),r=k&&$.p(k.enabled)?k.enabled:null;n=c&&$.p(n.enabled())?
n.enabled():null;m=m&&$.p(m.enabled())?m.enabled():null;var t=!1;null===r?null===n?null===m?t=q.enabled():t=m:t=n:t=r;if(t){f.label.yi();f.label.enabled(!0);f.label.state("labelOwnSettings",f.label.La,0);f.label.state("pointState",k,1);k=l.length;for(q=0;q<k;q++)n=l[q],r=2+q,f.label.state("st"+r,n,r);for(q=0;q<k;q++)n=l[q],r=2+q+k,f.label.state("st"+r,n.ma,r);l=$.mj(f.label.Bc("position"));l={value:$.un(f.ab,l)};f.label.Cc(l);$.Kt(h).label={value:f.label,type:""};$.Lt(h);f.label.Nf(h);$.U(this.controller.data());
f.item.j("label",f.label);this.controller.data().da(!1)}else f.label.enabled(!1);f.label.X()}}}this.labels().da(!0);this.labels().X();this.elements().labels().I(4294967295);this.controller.b?this.Qv().labels().I(4294967295):(this.ac().labels().I(4294967295),this.ac().qd().labels().I(4294967295),this.lk().labels().I(4294967295),this.lk().qd().labels().I(4294967295),this.Mc().labels().I(4294967295),this.pj().labels().I(4294967295))};
$.g.bF=function(){var a=this.dc.al();if(a.f&&this.elements().cd().i("enabled")){var b=a.f,c=b.sba,d=b.dha,e=b.bY,f=this.controller.D,h=f[c],k=f[d];c={type:"beforeRemoveConnector",fromItem:h,toItem:k,fromItemIndex:c,toItemIndex:d,connectorType:e};if(this.controller.b){d=b.gZ;var l=h.get("periods")[d];f=l.connector;b=b.z2;var m=k.get("periods")[b];k=m.id;c.fromPeriodIndex=d;c.fromPeriod=l;c.toPeriodIndex=b;c.toPeriod=m;if($.B(f))for(b=0;b<f.length;b++){if(l=f[b])m=l.connectorType||"finish-start",l.connectTo==
k&&m==e&&this.dc.dispatchEvent(c)&&(h.sq("periods",d,"connector",b),VG(a,null))}else this.dc.dispatchEvent(c)&&(h.sq("periods",d,"connector"),h.sq("periods",d,"connectorType"),h.sq("periods",d,"connectTo"),VG(a,null))}else if(d=k.get("id"),f=h.get("connector"),$.B(f))for(b=0;b<f.length;b++){if(k=f[b])l=k.connectorType||"finish-start",d==k.connectTo&&l==e&&this.dc.dispatchEvent(c)&&(h.sq("connector",b),VG(a,null))}else this.dc.dispatchEvent(c)&&(h.sq("connector"),h.sq("connectorType"),h.sq("connectTo"),
VG(a,null))}};$.g.rw=function(a){return $.p(a)?(EG(this.controller).K(a),this):EG(this.controller)};$.g.Bp=function(a){if(!this.$h){this.$h=new $F;this.$h.se("horizontal");var b=this.oa;this.$h.wa("scrollchange",function(a){var c=a.startRatio;a=a.endRatio;var e=b.Qi(),f=e.min;e=e.max-f;b.Xp(Math.round(f+c*e),Math.round(f+a*e))});$.L(this.$h,this.vU,this)}return $.p(a)?(this.$h.K(a),this):this.$h};$.g.vU=function(a){$.W(a,8)&&this.u(4,1)};
$.g.scroll=function(a,b,c){if(a||b){$.jq(this,this.oa,this.controller);c||(this.aj=!1,(0,window.clearInterval)(this.Vo),this.Vo=null,wI(this));var d=this.controller.Gg(),e=this.controller.f,f=this.controller.gm();CG(this.controller,(d?e[d-1]:0)+(f+b));a/=this.ia.width;if(c&&!this.Qw&&(this.Ow||this.sQ))c=this.oa,a&&!c.pk()&&(c.Qi(),b=Math.round((c.Dg-c.Eg)*a),a=c.Eg+b,b=c.Dg+b,!(0,window.isNaN)(c.Yr)&&a<c.Yr||!(0,window.isNaN)(c.Xr)&&b>c.Xr||(c.Hn=window.NaN,c.Eg=a,c.Gn=window.NaN,c.Dg=b,c.ua(4)));
else if(this.Qw||this.aj&&this.Ii||!this.aj)c=this.oa,a&&!c.pk()&&(b=c.Qi(),a=Math.round((c.Dg-c.Eg)*a),a=0<=a?Math.min(b.max-c.Dg,a):Math.max(b.min-c.Eg,a),c.Xp(c.Eg+a,c.Dg+a));$.lq(this.oa,this.controller,this);this.u(4608,1);return!0}return!1};
$.g.F=function(){var a=mI.B.F.call(this);a.scale=this.oa.F();a.labels=this.labels().F();a.markers=this.Gb().F();a.header=this.Az().F();$.Bp(this,IJ,a);a.elements=this.elements().F();a.connectors=this.il().F();this.controller.b?a.periods=this.Qv().F():(a.tasks=this.ac().F(),a.groupingTasks=this.lk().F(),a.baselines=this.pj().F(),a.milestones=this.Mc().F());var b,c=[];for(b=0;b<this.Lz.length;b++){var d=this.Lz[b];d&&c.push(d.F())}c.length&&(a.lineAxesMarkers=c);c=[];for(b=0;b<this.bA.length;b++)(d=
this.bA[b])&&c.push(d.F());c.length&&(a.rangeAxesMarkers=c);c=[];for(b=0;b<this.xA.length;b++)(d=this.xA[b])&&c.push(d.F());c.length&&(a.textAxesMarkers=c);this.$h&&(a.horizontalScrollBar=this.Bp().F());a.verticalScrollBar=this.rw().F();return a};
$.g.Y=function(a,b){mI.B.Y.call(this,a,b);"scale"in a&&this.oa.K(a.scale);this.labels().ja(!!b,a.labels);"markers"in a&&this.Gb(a.markers);"header"in a&&!b&&this.Az().ja(!1,a.header);$.tp(this,IJ,a,b);this.elements().ja(!!b,a.elements);this.il().ja(!!b,a.connectors);this.controller.b?this.Qv().ja(!!b,a.periods):(this.ac().ja(!!b,a.tasks),this.Mc().ja(!!b,a.milestones),this.lk().ja(!!b,a.groupingTasks),this.pj().ja(!!b,a.baselines));"defaultLineMarkerSettings"in a&&this.XE(a.defaultLineMarkerSettings);
"defaultRangeMarkerSettings"in a&&this.YE(a.defaultRangeMarkerSettings);"defaultTextMarkerSettings"in a&&this.ZE(a.defaultTextMarkerSettings);var c=a.lineAxesMarkers,d=a.rangeAxesMarkers,e=a.textAxesMarkers,f;if($.B(c))for(f=0;f<c.length;f++)this.um(f,c[f]);if($.B(d))for(f=0;f<d.length;f++)this.Cm(f,d[f]);if($.B(e))for(f=0;f<e.length;f++)this.Gm(f,e[f]);"horizontalScrollBar"in a&&this.Bp(a.horizontalScrollBar);"verticalScrollBar"in a&&this.rw(a.verticalScrollBar)};
$.g.R=function(){$.hd(this.$h);this.$h=null;$.Xp(this.oa,this.Nh);this.mk&&$.Xp(this.mk,this.l_);for(var a=$.Fa(this.Lz,this.xA,this.bA),b=0;b<a.length;b++){var c=a[b];c&&($.Xp(c,this.Ix),$.hd(c))}this.Xs&&(this.Xs.hc("start",this.OY,!1,this),this.Xs.hc("drag",this.PY,!1,this),this.Xs.hc("end",this.QY,!1,this));this.Ys&&(this.Ys.hc("start",this.SY,!1,this),this.Ys.hc("drag",this.TY,!1,this),this.Ys.hc("end",this.RY,!1,this));this.Ws&&(this.Ws.hc("start",this.NY,!1,this),this.Ws.hc("drag",this.XJ,
!1,this),this.Ws.hc("end",this.WJ,!1,this));this.Zs&&(this.Zs.hc("start",this.UY,!1,this),this.Zs.hc("drag",this.XJ,!1,this),this.Zs.hc("end",this.WJ,!1,this));this.$s&&(this.$s.hc("start",this.UJ,!1,this),this.$s.hc("drag",this.VJ,!1,this),this.$s.hc("end",this.TJ,!1,this));this.Vs&&(this.Vs.hc("start",this.UJ,!1,this),this.Vs.hc("drag",this.VJ,!1,this),this.Vs.hc("end",this.TJ,!1,this));$.jd(this.LB,this.Vz,this.Xk,this.zz,this.Rk,this.Ky,this.En,this.oa,this.mk,this.gD,this.tp,this.hz,this.Pu,
this.Qu,this.Ru,this.Ou,this.KB,this.Xs,this.Ys,this.Ws,this.Zs,this.$s,this.Vs,this.Qg,this.Fv);this.En=this.Fv=this.Qg=null;this.Lz.length=0;this.bA.length=0;this.xA.length=0;mI.B.R.call(this)};$.H(TI,mI);$.Vs(TI,mI);$.H(UI,mI);$.Vs(UI,mI);var Z=mI.prototype;Z.baseFill=Z.h$;Z.baseStroke=Z.j$;Z.baselineFill=Z.p$;Z.baselineStroke=Z.r$;Z.milestoneFill=Z.Lda;Z.milestoneStroke=Z.Qda;Z.parentFill=Z.pfa;Z.parentStroke=Z.sfa;Z.progressFill=Z.Ifa;Z.progressStroke=Z.Kfa;Z.baseLabels=Z.i$;
Z.baselineLabels=Z.q$;Z.parentLabels=Z.qfa;Z.milestoneLabels=Z.Nda;Z.progressLabels=Z.Jfa;Z.baselineAbove=Z.k$;Z.baseBarHeight=Z.d$;Z.baseBarAnchor=Z.c$;Z.baseBarPosition=Z.f$;Z.baseBarOffset=Z.e$;Z.parentBarHeight=Z.mfa;Z.parentBarAnchor=Z.lfa;Z.parentBarPosition=Z.ofa;Z.parentBarOffset=Z.nfa;Z.baselineBarHeight=Z.m$;Z.baselineBarAnchor=Z.l$;Z.baselineBarPosition=Z.o$;Z.baselineBarOffset=Z.n$;Z.progressBarHeight=Z.Ffa;Z.progressBarAnchor=Z.Efa;Z.progressBarPosition=Z.Hfa;Z.progressBarOffset=Z.Gfa;
Z.milestoneHeight=Z.Mda;Z.milestoneAnchor=Z.Kda;Z.milestonePosition=Z.Pda;Z.milestoneOffset=Z.Oda;Z.selectedElementFill=Z.mga;Z.selectedElementStroke=Z.nga;Z.connectorFill=Z.O$;Z.connectorStroke=Z.Uy;Z.selectedConnectorStroke=Z.lga;Z.connectorPreviewStroke=Z.P$;Z.editStructurePreviewDashStroke=Z.VY;Z.editStructurePreviewFill=Z.WY;Z.editStructurePreviewStroke=Z.XY;Z.editing=Z.YJ;Z.editPreviewFill=Z.Naa;Z.editPreviewStroke=Z.Oaa;Z.editProgressFill=Z.Qaa;Z.editProgressStroke=Z.Raa;
Z.editIntervalThumbFill=Z.Iaa;Z.editIntervalThumbStroke=Z.Jaa;Z.editConnectorThumbFill=Z.xaa;Z.editConnectorThumbStroke=Z.yaa;Z.editStartConnectorMarkerSize=Z.Uaa;Z.editStartConnectorMarkerType=Z.Vaa;Z.editStartConnectorMarkerHorizontalOffset=Z.Taa;Z.editStartConnectorMarkerVerticalOffset=Z.Waa;Z.editFinishConnectorMarkerSize=Z.Aaa;Z.editFinishConnectorMarkerType=Z.Baa;Z.editFinishConnectorMarkerHorizontalOffset=Z.zaa;Z.editFinishConnectorMarkerVerticalOffset=Z.Caa;Z.editIntervalWidth=Z.Kaa;
Z.edit=Z.cd;Z.horizontalScrollBar=Z.Bp;Z.verticalScrollBar=Z.rw;Z.tooltip=Z.Ya;Z.labels=Z.labels;Z.markers=Z.Gb;Z.scale=Z.scale;Z.textMarker=Z.Gm;Z.lineMarker=Z.um;Z.rangeMarker=Z.Cm;Z.header=Z.Az;Z.elements=Z.elements;Z.connectors=Z.il;Z.tasks=Z.ac;Z.milestones=Z.Mc;Z.groupingTasks=Z.lk;Z.baselines=Z.pj;Z.periods=Z.Qv;Z=TI.prototype;$.F("anychart.standalones.projectTimeline",function(){var a=new TI;a.K($.cl("standalones.projectTimeline"));return a});
$.F("anychart.standalones.resourceTimeline",function(){var a=new UI;a.K($.cl("standalones.resourceTimeline"));return a});Z.draw=Z.X;Z.data=Z.data;Z.parentBounds=Z.fa;Z.container=Z.O;Z.rowStroke=Z.eD;Z.headerHeight=Z.ul;Z.defaultRowHeight=Z.ou;Z.palette=Z.Yb;Z=UI.prototype;Z.draw=Z.X;Z.data=Z.data;Z.parentBounds=Z.fa;Z.container=Z.O;Z.rowStroke=Z.eD;Z.headerHeight=Z.ul;Z.defaultRowHeight=Z.ou;Z.palette=Z.Yb;$.H(WI,$.Wv);WI.prototype.Qa=function(){return this.P?"gantt-resource":"gantt-project"};WI.prototype.qa=$.Wv.prototype.qa|28672;WI.prototype.ra=$.Wv.prototype.ra;var nea=20;$.g=WI.prototype;$.g.Ne=function(){return[]};$.g.tg=function(){return null};$.g.Ai=function(){return this};$.g.ti=function(){return this};$.g.vl=function(a){return $.p(a)?(a=$.jj(a),a!=this.N&&(this.N=a),this):this.N};$.g.eY=function(a){$.W(a,2)&&this.u(8192,1)};$.g.hga=function(a){$.W(a,1)&&a.target.X();$.W(a,8)&&this.u(4,1)};
$.g.data=function(a,b){return $.p(a)?($.K(a,$.ys)||$.K(a,$.vs)?this.na!=a&&(this.na=a,this.u(4352,1)):(this.na=new $.ys(a,b),this.u(4352,1)),this):this.na};$.g.ou=function(a){return $.p(a)?(pG(this.f,a),this):pG(this.f)};$.g.yG=function(a){this.g.yG(a);this.b.yG(a)};var JJ={};$.dp(JJ,0,"headerHeight",$.np);$.dp(JJ,0,"splitterPosition",$.np);$.dp(JJ,1,"rowHoverFill",$.vp);$.dp(JJ,1,"rowSelectedFill",$.vp);$.dp(JJ,1,"columnStroke",$.xp);$.dp(JJ,1,"rowStroke",$.xp);$.S(WI,JJ);$.g=WI.prototype;
$.g.gE=function(a){return $.p(a)?(VI(this).enabled()!=a&&($.jq(VI(this),YI(this)),VI(this).enabled(a),YI(this).enabled(a),$.lq(VI(this),YI(this)),this.u(4,1)),this):VI(this)};$.g.bg=function(){if(!this.b){this.b=new mI(this.f,this.P);this.b.pa("backgroundFill",null);this.b.zIndex(5);YG(this.b,this);var a=this;$.L(this.b,function(){DG(a.f)},this.f)}return this.b};$.g.zs=function(a){this.bg().gv().zs(a);return this};$.g.As=function(a){this.bg().gv().As(a);return this};
$.g.oj=function(a,b,c){this.bg().gv().oj(a,b,c);return this};$.g.yo=function(){this.bg().gv().yo();return this};
$.g.lba=function(a){var b=this.na.Wo("id",a);if(b.length){b=b[0];var c=b.j("actualStart"),d=b.j("actualEnd");if(!$.p(c)||((0,window.isNaN)(c)||$.p(d))&&c!=d){if(this.bg().gv().Xp(c,d),a=this.b.ia,0<a.width&&(c=b.j("relBounds"),b=b.j("label")))if(d=this.b.labels().measure(b,b.Cc()),c&&d){b=d.left<c.left;c=d.left+d.width>c.left+c.width;if(d.width<a.width){a=a.width/(a.width-d.width);if(b&&!c){var e=$.ds(this.b.scale(),1-a);var f=$.ds(this.b.scale(),1)}c&&!b&&(e=$.ds(this.b.scale(),0),f=$.ds(this.b.scale(),
a))}else e=$.ds(this.b.scale(),0),f=$.ds(this.b.scale(),d.width/a.width);this.bg().gv().Xp(e,f)}}else $.Uj(11,null,[a])}else $.Uj(404,null,["Task",a]);return this};$.g.J7=function(a){return $.p(a)?(CG(this.f,a),this):CG(this.f)};$.g.L7=function(a){$.U(this.f).Gg(a).gm(0).da(!0);return this};$.g.Wa=function(a){return $.p(a)?(this.bg().scale(a),this):this.bg().scale()};$.g.K7=function(a){var b=this.f;a=a||b.f.length-1;b.sj(a);return this};$.g.H7=function(){FG(this.f,!0);return this};
$.g.I7=function(){FG(this.f,!1);return this};$.g.cba=function(a){return XI(this,a,!1)};$.g.J$=function(a){return XI(this,a,!0)};$.g.Nl=function(){return[]};$.g.r1=function(a){this.rM(a)};$.g.s1=function(a){this.pM(a)};$.g.Rn=function(a,b,c){this.g.Rn(a,b,c);this.b.Rn(a,b,c)};$.g.Su=function(a,b,c){this.g.Su(a,b,c);this.b.Su(a,b,c)};$.g.al=function(){return this.U};
$.g.v1=function(a){var b=a.target;if(!b.aj&&!b.Qw){this.Rn(a.hoveredIndex,a.startY,a.endY);var c=$.K(b,GH)?this.g.Ya():this.b.Ya();c.enabled()&&(b=b.Ec(a.item,a.period,a.periodIndex,a.elementType,a.hoverRatio,a.hoverDateTime),$.iv(c,a.originalEvent.clientX,a.originalEvent.clientY,b))}};$.g.w1=function(){this.Rn();this.g.Ya().Wc();this.b.Ya().Wc()};
$.g.rM=function(a){if(!GI(this.b,a)){var b=a.item,c=a.period,d=a.periodIndex,e=this.al(),f=this.P?UG(e,b,d):TG(e,b);b&&!f&&(f={type:"rowSelect",item:b,prevItem:e.b},$.p(c)&&(f.period=c,f.periodIndex=d),null!=e.g&&e.b&&(c=e.g,f.prevPeriodIndex=c,f.prevPeriod=e.b.get("periods",c)),this.dispatchEvent(f)&&(FI(this.b,a),tH(this.g,b),HI(this.b,b,d)))}};
$.g.pM=function(a){if(a&&!EI(this.b,a)&&(a=a.item)&&a.Wb()){var b=!a.j("collapsed");this.dispatchEvent({type:"rowcollapseexpand",item:a,collapsed:b})&&a.j("collapsed",b)}};$.g.oH=function(a){a.target.oH(a)};$.g.pH=function(a){var b=this.al(),c={type:"rowSelect",actualTarget:a?a.target:this,target:this,originalEvent:a,item:null,prevItem:b.b};if(null!=b.g&&b.b){var d=b.g;c.prevPeriodIndex=d;c.prevPeriod=b.b.get("periods",d)}this.dispatchEvent(c)&&(this.g.pH(a),this.b.pH(a));FI(this.b,a)};$.g.qM=function(a){a.target.qM(a)};
$.g.cd=function(a){this.rj||(this.rj=new QG);return $.p(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.rj.K(a),this):this.rj};$.g.YJ=function(a){$.Uj(405,null,["chart.editing()","chart.edit()"],!0);return $.p(a)?(this.cd().enabled(a),this):this.cd().i("enabled")};$.g.bF=function(a){this.g.bF(a);this.b.bF(a)};
$.g.Ji=function(a){$.jq(VI(this),this.bg(),this.D,this.f);YI(this).O()||(this.g.O(this.Ua),this.b.O(this.Ua),YI(this).O(this.Ua),this.G.O(this.Ua));if((this.J(16384)||this.J(4))&&0<a.width){var b=Math.round($.M(this.i("splitterPosition"),a.width));b=$.Ya(b/a.width,0,1);YI(this).Hq(!1);YI(this).position(b);YI(this).Hq(!0);this.I(16384);this.u(4)}b=this.i("headerHeight");if(this.J(4)&&0<a.width){this.g.enabled()?YI(this).ab(a).X():this.b.ab().set(a);var c=a.height-b-1;yG(this.f)!=c&&(this.b.ul(b),this.g.ul(b),
yG(this.f,c));if(this.g.enabled()){c=YI(this);c.Xa||(c.Xa=c.sb());var d=c.U?c.b:0;c=HG(c)?new $.I($.Kl(c.Xa.tb(),1),$.Kl(c.Xa.$b(),1),$.Kl((c.Xa.ae()-d)*c.Je,1),$.Kl(c.Xa.$d(),1)):new $.I($.Kl(c.Xa.tb(),1),$.Kl(c.Xa.$b(),1),$.Kl(c.Xa.ae(),1),$.Kl((c.Xa.$d()-d)*c.Je,1));d=fea(YI(this));this.g.ab().set(c);this.b.ab().set(d)}c=this.b.sb();d=this.G.iB();this.G.ab(a.left+a.width-d-1,c.top+b+d+1,d,c.height-b-2*d-2)}this.J(4096)&&(this.f.data(this.na),this.u(8192),this.I(4096));$.kq(this.g,this.b,this.D,
this.f);DG(this.f);0<a.width&&YI(this).X();this.J(8192)&&this.I(8192)};$.g.Xj=function(a,b){return $.Os(this.data(),b)};$.g.ej=function(){return this.na?!this.na.Wb():!0};$.g.Yb=function(a){if($.K(a,$.xr))return this.Hc($.xr,a),this;if($.K(a,$.ur))return this.Hc($.ur,a),this;$.D(a)&&"range"==a.type?this.Hc($.xr):($.D(a)||null==this.Aa)&&this.Hc($.ur);return $.p(a)?(this.Aa.K(a),this):this.Aa};
$.g.Hc=function(a,b){if($.K(this.Aa,a))b&&this.Aa.K(b);else{var c=!!this.Aa;$.hd(this.Aa);this.Aa=new a;b&&this.Aa.K(b);$.L(this.Aa,this.Df,this);c&&(VI(this).u(128),this.bg().u(128),this.u(8192,1))}};$.g.Df=function(a){$.W(a,2)&&(VI(this).u(128),this.bg().u(128),this.u(8192,1))};$.g.F=function(){var a=WI.B.F.call(this);$.Bp(this,JJ,a);a.defaultRowHeight=this.ou();a.controller=this.f.F();a.dataGrid=this.gE().F();a.timeline=this.bg().F();a.edit=this.cd().F();a.palette=this.Yb().F();return{gantt:a}};
$.g.Y=function(a,b){WI.B.Y.call(this,a,b);"controller"in a&&this.f.Y(a.controller,b);this.data(this.f.data());"dataGrid"in a&&this.gE().Y(a.dataGrid,b);"timeline"in a&&this.bg().Y(a.timeline,b);this.Yb(a.palette);$.tp(this,JJ,a);this.ou(a.defaultRowHeight);"edit"in a&&this.cd().ja(!!b,a.edit)};$.g.R=function(){$.Xp(this.f,this.eY,this);$.jd(this.Aa,this.f,this.G,this.g,this.b,this.D,this.rj,this.U);this.U=this.rj=this.D=this.b=this.g=this.G=this.f=this.Aa=null;WI.B.R.call(this)};var KJ=WI.prototype;
KJ.data=KJ.data;KJ.dataGrid=KJ.gE;KJ.getTimeline=KJ.bg;KJ.zoomIn=KJ.zs;KJ.zoomOut=KJ.As;KJ.zoomTo=KJ.oj;KJ.fitAll=KJ.yo;KJ.fitToTask=KJ.lba;KJ.scrollTo=KJ.J7;KJ.scrollToRow=KJ.L7;KJ.scrollToEnd=KJ.K7;KJ.collapseAll=KJ.H7;KJ.expandAll=KJ.I7;KJ.expandTask=KJ.cba;KJ.collapseTask=KJ.J$;KJ.getType=KJ.Qa;KJ.editing=KJ.YJ;KJ.edit=KJ.cd;KJ.toCsv=KJ.Xj;KJ.xScale=KJ.Wa;KJ.defaultRowHeight=KJ.ou;KJ.palette=KJ.Yb;$.Ho["gantt-resource"]=$I;$.Ho["gantt-project"]=ZI;$.F("anychart.ganttProject",ZI);$.F("anychart.ganttResource",$I);}).call(this,$)}
