if(!_.gantt_part){_.gantt_part=1;(function($){var dI=function(a,b){return a.getParent()?a.getParent()==b?!0:dI(a.getParent(),b):!1},mea=function(a,b){$.n(b)&&a.Eq!==b&&(null===b?($.Zq(a.Eq,a.dK,a),a.Eq=null):(a.Eq&&$.Zq(a.Eq,a.dK,a),a.Eq=b,$.L(a.Eq,a.dK,a)))},eI=function(a){return!!a.flatten().useHtml&&!$.Uc()},fI=function(a){var b=a.flatten(),c=null!=b.width;(b=!eI(a)&&c&&"left"!=b.hAlign)||(b=a.flatten(),c=null!=b.width,b=!eI(a)&&c&&"break-word"==b.wordWrap);b||(b=a.flatten(),c=null!=b.width,b=!eI(a)&&c&&b.wordBreak);return b},gI=function(){$.Y.call(this);
this.N=this.O=this.G=this.ba=this.Rc=null;this.f="vertical";this.U=this.nb=1;this.ka=$.Vb("#e0e0e0",this.U);this.ya=$.Yb("#d5d5d5",this.U);this.Ga=$.Vb("#d5d5d5",this.U);this.Ja=$.Yb("#656565",this.U);this.b=0;this.g=1;this.j=this.D=null;this.ga=!1;this.Ra=-1;this.eb=!0;this.ab=5},hI=function(a){return"svg"===$.hk?Math.floor(a)+.5:Math.floor(a)},kI=function(a){if($.n(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)),iI(a),a.B(64,
1),jI(a,"api"));return a}return a.b},lI=function(a){if($.n(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)),iI(a),a.B(64,1),jI(a,"api"));return a}return a.g},mI=function(a,b,c){b=+b;if(!(0,window.isNaN)(b)){b=$.Za(b,0,1);var d=a.g-a.b;b=$.Qm($.Za(b+d,0,1),4);d=$.Qm(b-d,4);if(a.b!=d||a.g!=b)a.b=d,a.g=b,iI(a),a.B(64,1),jI(a,c||"api")}return a},qI=function(a,b){b=+b;var c=(0,window.isNaN)(b)?40:b;if(a.j&&c&&(c+=nI(a)?a.j.top:a.j.left,
c=+c,a.j&&!(0,window.isNaN)(c))){var d=nI(a);c!=(d?a.j.top:a.j.left)&&(d?a.j.top=c:a.j.left=c,oI(a),pI(a),a.B(64,1),jI(a,"user_action"))}},rI=function(a,b){a.ka=$.Ml(a.ka,b,!0);a.ya=$.Ml(a.ya,b,!1);a.Ga=$.Ml(a.Ga,b,!0);a.Ja=$.Ml(a.Ja,b,!1);a.B(16,1)},nea=function(a){a.ba||(a.ba=$.jk());return a.ba},sI=function(a){a.G||(a.G=new $.tv,a.G.Kw(16,!1),$.L(a.G,function(){a.G.$()}),$.wv(a.G,function(){a.WO()?qI(a,40):a.scroll(.05,"user_action")}));return a.G},tI=function(a){a.O||(a.O=new $.tv,a.O.Kw(16,!1),
$.L(a.O,function(){a.O.$()}),$.wv(a.O,function(){a.WO()?qI(a,-40):a.scroll(-.05,"user_action")}));return a.O},oea=function(a){a.N||(a.N=$.jk(),a.N.ib(a.ak()),$.Id(a.N,"drag",a.Vn,!1,a),$.Id(a.N,"end",a.g$,!1,a),$.du(a,a.N,a.JZ,a.IZ,null,null,null,a.dia));return a.N},uI=function(a,b){var c=nI(a),d=a.N.zm(),e=a.N.pb(),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=$.Qm((k-
h)/d,5),a.g=$.Qm((l-h)/d,5));iI(a);f||a.B(64,1);jI(a)},iI=function(a){if(a.D&&a.j)if(nI(a)){var b=a.D.height;var c=$.Qm((a.g-a.b)*b,1);a.j.top=$.Qm(a.b*b,1)+a.D.top;a.j.height=c}else b=a.D.width,c=$.Qm((a.g-a.b)*b,1),a.j.left=$.Qm(a.b*b,1)+a.D.left,a.j.width=c},pI=function(a){if(a.D&&a.j){var b=nI(a),c=b?a.j.top-a.D.top:a.j.left-a.D.left,d=b?c+a.j.height:c+a.j.width;b=b?a.D.height:a.D.width;a.b=$.Qm(c/b,4);a.g=$.Qm(d/b,4)}},oI=function(a){var b=a.j;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)},nI=function(a){return"horizontal"!=a.f.toLowerCase()},jI=function(a,b){if(a.eb){0<=a.Ra&&((0,window.clearTimeout)(a.Ra),a.Ra=-1);var c={type:"scrollchange",startRatio:a.b,endRatio:a.g,visibleBounds:a.j,source:b||"user_action"};a.Ra=(0,window.setTimeout)(function(){a.dispatchEvent(c);
a.Ra=-1},0)}},vI=function(a){$.Yq.call(this);this.g=!!a;this.ka={};this.ya={};this.ga=[];this.oa=null;this.D=[];this.Gr=[];this.b=[];this.Kh=this.ke=null;this.Ob=1;this.j=this.f=window.NaN;this.Ja=this.O=0;this.xc=!1;this.G=0;this.ED=!1;this.Ga=null;this.ba=this.N=window.NaN;this.hc=0;this.U=null;this.Ra=20;this.ab=this.eb=window.NaN;this.Ky=[];this.nb={}},wI=function(a,b){return $.n(b)&&a.Ra!=b?(a.Ra=b,a.B(128,2),a):a.Ra},xI=function(a,b){return $.N(b.get("rowHeight"))||a.Ra},zI=function(a,b){for(var c=
["actualStart","actualEnd","baselineStart","baselineEnd"],d=0;d<c.length;d++){var e=c[d],f=b.get(e);null!=f?(f=$.cs(f),b.o(e,null===f?window.NaN:+f)):b.o(e,window.NaN);yI(a,b.o(e))}},BI=function(a,b){var c=b.get("periods");if(a.g&&$.A(c)){for(var d=window.NaN,e=window.NaN,f=0,h=c.length;f<h;f++){var k=c[f],l=b.Yn("periods",f,"start"),m=$.cs(k.start);null!==m&&(m=+m,b.Hn("periods",f,"start",m),l=m);m=b.Yn("periods",f,"end");k=$.cs(k.end);null!==k&&(k=+k,b.Hn("periods",f,"end",+k),m=k);d=AI(Math.min,
d,e,l,m);e=AI(Math.max,d,e,l,m);yI(a,l);yI(a,m)}b.o("minPeriodDate",d);b.o("maxPeriodDate",e)}},CI=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=$.cs(e);e=null===e?null:+e;b.Hn("markers",c,"value",e);yI(a,e)}},DI=function(a,b){if(b){var c=b.g;b.o("collapsed")?a.nb[c]=b:delete a.nb[c]}},EI=function(a,b,c){b.o("depth",c).o("index",a.hc++);a.Gr.push(b);var d=b.get("progressValue");null!=d?(d=$.oo(d)?(0,window.parseFloat)(d)/100:+d,b.o("progressValue",d)):
b.o("progressValue",null);d=b.get("collapsed");$.da(d)&&b.o("collapsed",d);DI(a,b);zI(a,b);BI(a,b);CI(a,b);for(var e=d=0,f=window.NaN,h=window.NaN,k=0,l=b.Zb();k<l;k++){var m=b.od(k);m.Zb()?EI(a,m,c+1):(m.o("depth",c+1).o("index",a.hc++),zI(a,m),BI(a,m),CI(a,m),a.Gr.push(m));if(!a.g){var p=m.o("actualStart");p=$.ea(p)&&!(0,window.isNaN)(p)?p:m.o("autoStart")||window.NaN;var q=m.o("actualEnd");q=$.ea(q)&&!(0,window.isNaN)(q)?q:m.o("autoEnd")||p;var r=m.get("progressValue");null!=r&&(r=$.oo(r)?(0,window.parseFloat)(r)/
100:+r);r=null!=r?r:m.o("autoProgress")||0;m.o("progressValue",r);f=FI(Math.min,f,h,p,q);h=FI(Math.max,f,h,p,q);(0,window.isNaN)(p)||(0,window.isNaN)(q)||(m=q-p,d+=r*m,e+=m)}}b.Zb()&&!a.g&&(0!=e&&b.o("autoProgress",d/e),b.o("autoStart",f),b.o("autoEnd",h))},AI=function(a,b,c,d,e){var f=[];GI(b)&&f.push(b);GI(c)&&f.push(c);GI(d)&&f.push(d);GI(e)&&f.push(e);return f.length?a.apply(null,f):window.NaN},FI=function(a,b,c,d,e){var f=[];GI(b)&&(f.push(b),GI(c)&&f.push(c));GI(d)&&(f.push(d),GI(e)&&f.push(e));
return f.length?a.apply(null,f):window.NaN},GI=function(a){return $.ea(a)&&!(0,window.isNaN)(a)},yI=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))},HI=function(a,b,c){if(!a.b.length)return 0;var d=a.b.length-1;b=Math.min(b,d);c=$.n(c)?Math.min(c,d):d;b>c&&(b-=c,c+=b,b=c-b);return a.b[c]-(a.b[b-1]||0)},II=function(a,b){var c=$.Na(a.b,b);return 0<=c?c:~c},JI=function(a){if(a.D.length){a.f=(0,window.isNaN)(a.f)?a.eb:a.f;
a.j=(0,window.isNaN)(a.j)?a.ab:a.j;a.eb=window.NaN;a.ab=window.NaN;(0,window.isNaN)(a.f)||(a.f=$.Za(a.f,0,a.D.length-1));(0,window.isNaN)(a.j)||(a.j=$.Za(a.j,0,a.D.length-1));var b=HI(a,0,a.b.length-1);a.G>=b?(a.f=0,a.O=0,a.j=a.D.length-1):((0,window.isNaN)(a.f)&&(0,window.isNaN)(a.j)&&(a.f=0),(0,window.isNaN)(a.f)?(b=HI(a,0,a.j),b<a.G?(a.f=0,a.O=0,a.j=II(a,a.G)):(a.f=II(a,a.b[a.j]-a.G),a.O=HI(a,a.f,a.j)-a.G)):(b=HI(a,a.f)-a.O,b<a.G?(a.f=II(a,a.b[a.b.length-1]-a.G),a.j=a.b.length-1,a.O=HI(a,a.f,a.j)-
a.G):a.j=II(a,(a.f?a.b[a.f-1]:0)+a.G+a.O)))}else a.f=0,a.j=0,a.O=0;a.ED=!0;$.Ep()||a.I(256)},KI=function(a,b){return $.n(b)?(a.G!=b&&(a.G=b,a.B(256,2)),a):a.G},LI=function(a,b){$.n(b)&&a.ke!=b&&(a.ke=b,a.B(256,2))},MI=function(a,b){$.n(b)&&a.Kh!=b&&(a.Kh=b,a.B(256,2))},NI=function(a){for(;a.Ky.length;)(0,window.clearTimeout)(a.Ky.pop())},OI=function(a){return a.ke&&a.ke.Db||a.Kh&&a.Kh.Db},PI=function(a){$.Ep()?a.Ky.push($.vp(function(){this.Ky.push($.vp(this.y_,void 0,this));this.Ky.push($.vp(this.Yca,
void 0,this))},void 0,a)):a.y_()},QI=function(a){a.U||(a.U=new gI,a.U.X($.wm("defaultScrollBar")),a.U.pe("vertical"),a.U.ra("scrollchange",function(b){var c=b.startRatio;b=b.endRatio;var d=a.b[a.b.length-1];$.V(a);c?1==b?a.wj(a.b.length):(b=Math.round(c*d),c=II(a,b),b-=c?a.b[c-1]:0,a.mg(c).Wl(b)):a.mg(0).Wl(0);a.da(!0)}));return a.U},RI=function(a,b){if($.n(b)){var c=Math.max(+b,0);if(a.b.length){var d=a.b[a.b.length-1];$.V(a);c>d-a.G?a.wj(a.b.length-1):(d=II(a,c),c-=d?a.b[d-1]:0,a.mg(d).Wl(c));$.Ep()&&
JI(a);a.da(!0)}else a.Ja=c,a.xc=!0;return a}return a.Ja},SI=function(a,b){$.V(a.oa);var c=a.oa.Av();for(c.YM(a.Tea);c.advance();){var d=c.current();d.o("collapsed",b);DI(a,d)}a.oa.da(!0)},TI=function(){$.Y.call(this);this.f="vertical";this.N=this.j=this.G=this.Rc=null;this.Re=.5;this.ga=this.U=this.O=this.D=0;this.Ra=this.Ja=!1;this.ab=$.xf($.Bp.body,"cursor");this.b=3;this.ba=!0;this.g=$.Yb("#acbece");this.ka=$.Vb({keys:["0 #9ccae3","0.5 #a9dbf6","1 #e3f4fc"],angle:-90,opacity:1});this.Ob=$.Vb("#cecece");
this.ya=$.Vb("#ccd7e1 0.3");this.hc=$.Yb(null);this.eb=$.Vb("#fff 0");this.nb=$.Yb(null);this.Ga=!0},pea=function(a){return $.n(!0)?($.da(!0)&&1!=a.ba&&(a.ba=!0,a.position(a.Re)),a):a.ba},qea=function(a){var b=2;return $.n(b)?(b=+b,(0,window.isNaN)(b)||a.b==b||(a.b=b,a.B(64,1)),a):a.b},UI=function(a){var b=0;$.n(b)&&(b=+b,(0,window.isNaN)(b)||(b=Math.abs(b),a.D!=b&&(a.U=b,a.B(64,1))))},rea=function(a){a.Ya||(a.Ya=a.lb());if(a.ba){var b=$.Qm((a.Ya.Xd()-a.b)*a.Re,1);var c=$.Qm((a.Ya.ud()-a.b)*a.Re,
1);if(VI(a))return b+=a.b,new $.J($.Qm(a.Ya.qb()+b,1),$.Qm(a.Ya.bc(),1),$.Qm(a.Ya.Xd()-b,1),$.Qm(a.Ya.ud(),1));c+=a.b;return new $.J($.Qm(a.Ya.qb(),1),$.Qm(a.Ya.bc()+c,1),$.Qm(a.Ya.Xd(),1),$.Qm(a.Ya.ud()-c,1))}if(VI(a))return b=a.Ya.Xd()*a.Re,new $.J($.Qm(a.Ya.qb()+b,1),$.Qm(a.Ya.bc(),1),$.Qm(a.Ya.Xd()-b,1),$.Qm(a.Ya.ud(),1));c=a.Ya.ud()*a.Re;return new $.J($.Qm(a.Ya.qb(),1),$.Qm(a.Ya.bc()+c,1),$.Qm(a.Ya.Xd(),1),$.Qm(a.Ya.ud()-c,1))},WI=function(a,b,c){$.uf($.Bp.body,"cursor",c?a.ab:b?"e-resize":
"n-resize")},XI=function(a){var b=VI(a);a.Rc.cursor(b?"e-resize":"n-resize");var c=a.Ya;if(a.ba){var d=b?c.qb()+a.Re*(c.Xd()-a.b):c.qb();var e=b?c.bc():c.bc()+a.Re*(c.ud()-a.b);var f=b?c.qb()+a.D-3:c.qb();var h=b?c.bc():c.bc()+a.D-3;var k=b?c.Xd()-a.D-a.O+6:c.Xd();var l=b?c.ud():c.ud()-a.D-a.O+6}else d=b?c.qb()+a.Re*c.Xd()-a.b/2:c.qb(),e=b?c.bc():c.bc()+a.Re*c.ud()-a.b/2,f=b?c.qb()+a.D-3-a.b/2:c.qb(),h=b?c.bc():c.bc()+a.D-3-a.b/2,k=b?c.Xd()-a.D-a.O+6+a.b:c.Xd(),l=b?c.ud():c.ud()-a.D-a.O+6+a.b;var m=
b?a.b:c.Xd();var p=b?c.ud():a.b;var q=b?d-3:c.qb();var r=b?c.bc():e-3;var t=b?a.b+6:c.Xd();b=b?c.ud():a.b+6;f=new $.J(f,h,k,l);a.G.ro(d).so(e).qo(m).po(p);a.j.ro(q).so(r).qo(t).po(b).zm(f)},YI=function(a){a.j||(a.j=$.jk().stroke(a.nb).fill(a.eb),$.Id(a.j,"dblclick",a.Lfa,!1,a),$.Id(a.j,"mousemove",a.j$,!1,a),$.Id(a.j,"mouseout",a.k$,!1,a),$.Id(a.j,"start",a.i$,!1,a),$.Id(a.j,"drag",a.Vn,!1,a),$.Id(a.j,"end",a.h$,!1,a));return a.j},ZI=function(a){a.N||(a.N=$.jk().visible(!1));return a.N},sea=function(a){a.G||
(a.G=$.jk().td(!0).fill(a.ka).stroke(a.g));return a.G},VI=function(a){return"horizontal"!=a.f.toLowerCase()},$I=function(){$.Y.call(this);this.j=this.b=this.f=this.Rc=null;this.Re=window.NaN;this.U=this.O=!1;this.ga=$.xf($.Bp.body,"cursor");this.g=$.Yb("1 #acbece");this.ba=$.Yb("1 #acbece");this.D=1;this.G=$.Vb("#ccd7e1 0.3");this.ka=$.Vb("#fff 0.00001");this.N=!0},aJ=function(a,b){$.uf($.Bp.body,"cursor",b?a.ga:"e-resize")},bJ=function(a){a.Rc.cursor("e-resize");var b=a.Ya.left+a.Re+a.D/2,c=new $.J(a.Ya.left-
3,a.Ya.top,a.Ya.width+6,a.Ya.height);a.f.clear().moveTo(b,a.Ya.top).lineTo(b,a.Ya.top+a.Ya.height);b=a.Ya.left+a.Re-3;var d=a.Ya.left+a.Re+a.D+3;a.b.jc(1,0,0,1,0,0);a.b.clear().moveTo(b,a.Ya.top).lineTo(d,a.Ya.top).lineTo(d,a.Ya.top+a.Ya.height).lineTo(b,a.Ya.top+a.Ya.height).close().zm(c)},tea=function(a){a.b||(a.b=$.nk().fill(a.ka).stroke(null),$.Id(a.b,"start",a.O9,!1,a),$.Id(a.b,"drag",a.Vn,!1,a),$.Id(a.b,"end",a.N9,!1,a),$.du(a,a.b,null,a.Q9,null,a.P9,null,a.Nfa));return a.b},cJ=function(a){a.j||
(a.j=$.nk(),a.j.fill(a.G).stroke(null));return a.j},uea=function(a){a.f||(a.f=$.nk().td(!0).stroke(a.g));return a.f},dJ=function(){$.Yq.call(this);this.Rb=null;$.T(this.ua,[["fill",0,2],["stroke",0,2],["placementStroke",0,2],["enabled",0,32768]])},eJ=function(){this.f=this.g=this.b=null},fJ=function(a,b){if(a.b!=b){if(a.b){var c=a.b.xq();$.V(c);a.b.o("selected",!1);c.da(!1)}else a.g=null;b?(c=b.xq(),$.V(c),b.o("selected",!0),c.da(!1)):a.g=null;a.b=b}},gJ=function(a,b){return a.b?b.o("selected")?(fJ(a,
b),!0):a.b.o("selected")?a.b==b:(a.b=null,a.g=null,!1):!1},hJ=function(a,b,c){return gJ(a,b)&&null!=a.g?a.b==b&&a.g===c:!1},iJ=function(a,b,c,d,e,f,h,k){b&&c?(a.f={gda:b,Lia:c,hda:d,Mia:e,h0:f,Y4:h,e_:k||"finish-start"},fJ(a,null),a.g=null):a.f=null},jJ=function(a,b){$.Y.call(this);this.Ml=null;this.hy=$.wk();this.Jg=null;this.Db=this;this.Rt=!0;this.controller=null;a&&$.K(a,vI)?(this.controller=a,this.Rt=!1):(this.controller=new vI(b),$.L(this.controller,this.lV,this),this.sw=new eJ);this.ea=null;
this.oo=1;this.Ud=this.nb=this.Tf=this.Ob=this.xc=this.ab=this.Gq=this.Eh=this.eb=this.Rc=this.Tc=this.Ja=null;this.g=45;this.d5=this.f=0;this.Ra=this.Bd=this.ka=this.ya=null;this.So=[];this.ba=-1;this.dh=this.hj=0;this.di=this.Ay=!1;this.Zi=null;this.altKey=!1;this.Fn=null;this.Bw=this.hu=0;this.lm=!0;this.Gk=this.gb=this.D=this.Ci=null;this.lo=!1;$.eu(this,this,this.SY,this.Z9,this.Y9,this.SY,this.X9);$.T(this.ua,[["backgroundFill",16,1],["rowFill",16,1,void 0,function(){this.pa("rowOddFill",null);
this.pa("rowEvenFill",null)}],["rowStroke",80,1,void 0,function(){this.oo=$.Wo(this.i("rowStroke"));this.Rt||this.controller.oo(this.oo)}],["rowEvenFill",16,1],["rowOddFill",16,1],["rowHoverFill",0,0],["rowSelectedFill",16,1]])},lJ=function(a,b){var c=b||kJ(a);return!a.Zb()&&(c.oH&&!c.nH||c.oH&&c.nH&&c.start==c.end)},mJ=function(a){a=kJ(a);return a.BM||a.pH&&a.NQ},nJ=function(a,b){var c=b||kJ(a);return!!a.Zb()&&c.oH&&c.nH},oJ=function(a,b){var c=window.NaN;$.ea(a)&&!(0,window.isNaN)(a)?c=a:$.ea(b)&&
!(0,window.isNaN)(b)&&(c=b);return c},kJ=function(a){var b=a.o("actualStart"),c=a.o("autoStart"),d=a.o("actualEnd"),e=a.o("autoEnd"),f=a.o("baselineStart"),h=a.o("baselineEnd"),k=a.o("progressValue"),l=a.o("autoProgress"),m=a.get("baselineProgressValue"),p=$.ea(m)||$.oo(m);m=p?$.oo(m)?(0,window.parseFloat)(m)/100:Number(m):window.NaN;b=oJ(b,c);d=oJ(d,e);k=oJ(k,l);l=a.o("minPeriodDate");e=a.o("maxPeriodDate");return{start:b,end:d,MZ:f,KZ:h,LZ:m,Ed:k,oH:!(0,window.isNaN)(b),nH:!(0,window.isNaN)(d),
pH:!(0,window.isNaN)(b)&&!(0,window.isNaN)(d)&&b!=d,Rea:!(0,window.isNaN)(b)&&!(0,window.isNaN)(d)&&b==d&&a.Zb(),BM:$.ea(f)&&!(0,window.isNaN)(f)&&$.ea(h)&&!(0,window.isNaN)(h),tU:!(0,window.isNaN)(k),NQ:p,Yna:l,Xna:e,sU:!(0,window.isNaN)(l)&&!(0,window.isNaN)(e),uM:!!a.get("anychartIsLoadable")}},pJ=function(a,b){var c=a.Yn("periods",b),d=c?c.start:void 0;c=c?c.end:void 0;var e=null!=d&&!(0,window.isNaN)(d),f=null!=c&&!(0,window.isNaN)(c);return{start:d,end:c,NH:$.n(d)?d:c,oH:e,nH:f,sU:e&&f,CM:!!(e^
f)}},qJ=function(a,b,c){if(a.controller.g)var d="periods";else a=c||kJ(b),a.BM?d="baselines":lJ(b,a)?d="milestones":nJ(b,a)?d="grouping-tasks":(a=a||kJ(b),a.oH&&a.nH&&a.start!=a.end&&!b.Zb()&&!a.BM&&(d="tasks"));return d},rJ=function(a,b){a.Db=b;a.Db!=a&&a.bf().parent(a.Db.bf())},sJ=function(a,b){b&&!a.WI?($.Id($.Bp,"mousemove",a.TR,!1,a),a.WI=!0):($.Sd($.Bp,"mousemove",a.TR,!1,a),a.WI=!1)},tJ=function(a){a.Rc||(a.Rc=$.lk(),$.du(a,a.Rc,null,null,null,null,a.RY));return a.Rc},uJ=function(a){a.Gq||
(a.Gq=$.lk(),a.Gq.zIndex(30));return a.Gq},vJ=function(a){a.Ob||(a.Ob=$.lk(),a.Ob.zIndex(35));return a.Ob},wJ=function(a){a.ab||(a.ab=$.lk(),a.ab.zIndex(40));return a.ab},xJ=function(a){a.xc||(a.xc=$.lk(),a.xc.zIndex(45));return a.xc},yJ=function(a){a.nb||(a.nb=$.lk(),a.nb.zIndex(50));return a.nb},zJ=function(a){a.Ud||(a.Ud=$.lk(),a.Ud.zIndex(60));return a.Ud},AJ=function(a){a.ya||(a.ya=uJ(a).path(),a.ya.stroke(null).zIndex(1));return a.ya},BJ=function(a){a.ka||(a.ka=uJ(a).path(),a.ka.stroke(null).zIndex(1));
return a.ka},CJ=function(a){a.Bd||(a.Bd=uJ(a).path(),a.Bd.stroke(null).zIndex(2));return a.Bd},DJ=function(a){a.Ra||(a.Ra=uJ(a).path(),a.Ra.stroke(null).zIndex(3));return a.Ra},EJ=function(a){a.Ja||(a.Ja=uJ(a).path(),a.Ja.stroke(a.i("rowStroke")).zIndex(4));return a.Ja},FJ=function(a){a.Tf||(a.Tf=xJ(a).path());return a.Tf},GJ=function(a){a.Tc||(a.Tc=uJ(a).path(),a.Tc.zIndex(40));return a.Tc},IJ=function(a,b){if(!a)return $.Pl;var c=b+"|"+a+"|false",d=HJ[c];if(!d){switch(b){case 2:d=$.Rl;break;case 3:d=
$.Sl;break;default:case 1:d=$.Tl}HJ[c]=d=$.qa(vea,a,d,3==b,!1)}return d},vea=function(a,b,c,d,e,f,h,k,l,m,p){f=$.Xl(f);if(d&&f!=$.Zl){var q=e.zc(a,f,b);c&&!0===q&&(q=b(e.ph()));if($.n(q)){if(!$.E(q))return q;if(c)return c=e.Fi(),b(q.call(c,c))}}d=e.zc(a,0,b);c&&!0===d&&(d=b(e.ph()));$.E(d)&&(c=c?e.Fi():e.Ae(a,h,k,l,m,p),d=b(d.call(c,c)));q&&(c=e.Ae(a,h,k,l),d=b(q.call(c,c)));return d},JJ=function(a){$.fl.anychart.ui.ContextMenu&&a.Db.contextMenu&&(a=a.Db.contextMenu(),a.He()&&a.Oc())},KJ=function(a){if(!a.Ml){var b=
tJ(a).fa();b&&(a.Ml=new $.rx(b),$.Id(a.Ml,"mousewheel",a.ly,!1,a),$.Id($.fl,"unload",function(){$.Sd(a.Ml,"mousewheel",a.ly,!1,this)}));a.Zp().ra("scrolling",(0,$.pa)(a.KR,a,!0))}},MJ=function(a){a.Db.me||(a.Db.me=new LJ(a.Db,$.Bp),$.Id(a.Db.me,"key",function(a){18==a.keyCode&&(this.altKey=!0);(46==a.keyCode||a.metaKey&&8==a.keyCode)&&this.NF(a)},!1,a.Db))},NJ=function(a){var b=FJ(a);b.fill(a.bf().i("fill"));b.stroke(a.bf().i("stroke"))},OJ=function(a,b){return b?(fJ(a.Db.Sk(),b),a.B(128,1),!0):!1},
PJ=function(a,b){$.ag.call(this,a.fa());this.b=b;this.y=this.x=0;$.bg(this)},LJ=function(a,b,c){$.zp.call(this,b,c);this.b=a},QJ=function(){$.qg.call(this);this.o={}},TJ=function(){$.Y.call(this);this.Fa("defaultButtonSettings");this.Xb=0;$.T(this.ua,wea);this.mE={};this.ca=new $.Yx(this,RJ,0,SJ);this.xa=new $.Yx(this,RJ,1,SJ);this.Ca=new $.Yx(this,RJ,2,SJ);this.mE[0]=this.ca;this.mE[1]=this.xa;this.mE[2]=this.Ca;var a=this.mE[0],b=this.mE[1],c=this.mE[2];this.wO={};this.wO[0]=[a.Ma,a.ma];this.wO[1]=
[b.Ma,b.ma,a.Ma,a.ma];this.wO[2]=[c.Ma,c.ma,a.Ma,a.ma];this.aK={};a=a.background();b=b.background();c=c.background();this.aK[0]=[a.ma,a.Ma];this.aK[1]=[a.ma,a.Ma,b.ma,b.Ma];this.aK[2]=[a.ma,a.Ma,c.ma,c.Ma]},UJ=function(a){TJ.call(this);this.Fa("defaultDataGrid.buttons");this.ke=a;this.b=-1;this.Sa().background().U=!1;this.mb().background().U=!1;this.oE=this.selected().background().U=!1;this.ib(this.ke)},VJ=function(a,b){$.Y.call(this);this.ke=a;$.L(this.ke.controller,this.Rba,this);this.wd=b;this.kw=
[];this.Nf=this.Ly=this.sb=this.Gq=this.TI=this.Rc=this.Il=null;this.nf=0;this.Ya=null;this.CS=this.cca;this.wm=[];this.re=[];this.Gr=[];this.BU=[];this.MV=this.NV=window.NaN;this.mD=this.LF;this.ib(this.ke);$.T(this.ua,[["width",4,9,0,function(){this.Ya=null}],["defaultWidth",0,0],["collapseExpandButtons",128,1],["depthPaddingMultiplier",128,1]]);this.I(1)},WJ=function(a){for(var b=0;b<a.re.length;b++)a.re[b].cd();a.re.length=0},XJ=function(a,b,c,d){var e=a.re[b],f=a.Gr[b];if(c){var h=a.kw[b];h||
(h=new $.ux,h.Ye(!0),h.parent(a.labels()),a.kw[b]=h);a.mD(h,f)}d&&($.xx(e),e.Za=null);if(f){if(c){var k=f.o("index");k=a.kw[k]}else k=a.labels();a=a.ke.Ec(f);a=k.$n(a);e.text(a)}e.style(k.flatten());$.zx(e);$.Cx(e)},YJ=function(a){a.TI||(a.TI=$.lk());return a.TI},ZJ=function(a){a.Ly||(a.Ly=$.nk(),YJ(a).og(a.Ly,0),a.Ly.fill(a.ke.i("headerFill")),a.Ly.stroke(null));return a.Ly},$J=function(a){a.Gq||(a.Gq=$.lk());return a.Gq},aK=function(){$.sy.call(this);this.xb=null},bK=function(a,b,c){return{originalEvent:b,
type:c,value:a.ej()}},dK=function(a){jJ.call(this,a);this.Fa("defaultDataGrid");this.b=[];this.j=[];this.Ga=null;this.U=0;this.N={};LI(this.controller,this);this.hc=this.Pg=this.G=null;this.lw={first:window.NaN,Tv:window.NaN,count:window.NaN,reset:!0};this.tw=[];$.T(this.ua,[["columnStroke",512,1],["headerFill",16,1],["fixedColumns",4,1,0,function(){this.Db.B(4,1)}],["onEditStart",0,0],["onEditEnd",0,0]]);a=this.ma;if("columns"in a)for(var b=0;b<a.columns.length;b++)a.columns[b]&&cK(this,b)},xea=
function(a,b){if(!a.N[b])switch(b){case "direct-numbering":a.N[b]={formatter:a.Dy,width:50};break;case "text":a.N[b]={formatter:a.Dy,width:170};break;case "financial":a.N[b]={formatter:a.zX,textStyle:{hAlign:"right"},width:90};break;case "percent":a.N[b]={formatter:a.AX,textStyle:{hAlign:"right"},width:50};break;case "date-common-log":a.N[b]={formatter:eK("dd/MMM/yyyy"),textStyle:{hAlign:"right"},width:90};break;case "date-iso-8601":a.N[b]={formatter:eK("yyyy-MM-dd"),textStyle:{hAlign:"right"},width:90};
break;case "date-us-short":a.N[b]={formatter:eK("M/dd/yyyy"),textStyle:{hAlign:"right"},width:90};break;case "date-dmy-dots":a.N[b]={formatter:eK("dd.MM.yy"),textStyle:{hAlign:"right"},width:90};break;default:a.N[b]={formatter:a.Dy,width:90}}return a.N[b]},eK=function(a){return function(b){return $.ea(b)?(new $.Rn(a)).format(new $.In(new Date(b))):$.n(b)?String(b):""}},fK=function(a){a.Ga||(a.Ga=$.nk(),uJ(a).og(a.Ga,0),a.Ga.stroke(null));return a.Ga},yea=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.j.length){var e=new $I;c=IJ("columnStroke",2)(a,0);e.stroke(c);e.ba=c;e.P(yJ(a));$.L(e,function(){e.$();this.i("fixedColumns")&&this.Db.B(4,1)},a);e.ra("splitterpositionchange",(0,$.pa)(a.hia,a,b-1));e.ra("dblclick",(0,$.pa)(a.iia,a,b-1));e.ra("dragstart",(0,$.pa)(a.KR,a,!0));e.ra("drag",(0,$.pa)(a.KR,a,!0));a.j.push(e)}},gK=function(a){a=IJ("columnStroke",2)(a,0);return $.Wo(a)},hK=function(a,b){for(var c=gK(a),d=0,e=0,f=0,h=a.b.length;f<h;f++){var k=a.b[f];
k&&k.enabled()&&!k.fd&&(e=k.width(),$.oo(e)&&(e=90,k.Ya=null,$.V(k),k.da(!1)),k.width(e),e+=c,d+=e)}return d-(b?e:0)},cK=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 VJ(a,f),e=a.ma,b.Fa(e.defaultColumnSettings),"columns"in e&&b.Fa(e.columns[f]),$.L(b,a.Nba,a),$.ql(b),e=!0);if($.n(c))return e=$.K(c,VJ)?c.F():c,b.ia(!!d,e),b.enabled()&&b.P(wJ(a)),a.b[f]=b,a.B(528,1),a;e&&(b.P(wJ(a)),a.b[f]=b,a.B(528,1),a.i("fixedColumns")&&a.Db.B(4,1));yea(a);return b},
zea=function(a){if(a.lw.reset){a.Db.dispatchEvent("workingstart");for(var b=0,c=0,d=a.b.length;c<d;c++){var e=a.b[c];e&&e.enabled()&&!e.fd&&b++}c=a.controller.Gr;a=a.lw;c.length?(a.first=0,a.count=Math.min(Math.max(1,Math.floor(300/b)),c.length),a.Tv=a.first+Math.max(0,a.count-1),a.reset=!1):(a.first=window.NaN,a.Tv=window.NaN,a.count=window.NaN,a.reset=!0)}},Aea=function(a){a.lw.reset=!0;a.rv(function(a){WJ(a)})},Bea=function(a){var b=a.controller.Gr;a=a.lw;if((0,window.isNaN)(a.Tv)||a.Tv>=b.length-
1)return!1;a.first=a.Tv+1;a.Tv=a.first+Math.min(b.length-1-a.first,a.count);return!0},iK=function(a){a.O||(a.O=new $.jv,a.O.P(zJ(a)),a.O.background().enabled(!0).fill("red 0.5"),a.O.text("Working..."),a.O.anchor("left-top"),a.O.position("left-top"),a.O.padding(5),a.O.enabled(!0),a.O.ja(a.ea));return a.O},Cea=function(a){a.rv(function(a){a.xy();var b=!1,d=!1,e=0;a.J(512)&&(b=!0);a.J(1024)&&(fI(a.labels())&&(e|=$.pE),b=d=!0);a.J(2048)&&(e|=$.oE,b=d=!0);b&&a.NB(d);a.ta(e)})},jK=function(a){a.controller.Ky.push($.vp(function(){zea(this);
var a=!1;this.rv(function(b){if(!b.ef()){a=!0;b.xy();var c=!1,d=!1,h=0;b.J(512)&&(c=!0);b.J(1024)&&(fI(b.labels())&&(h|=$.pE),c=d=!0);b.J(2048)&&(h|=$.oE,c=d=!0);c&&b.NB(d);b.ta(h)}});if(a)if(Bea(this)){var c=Math.round(this.lw.Tv/this.controller.Gr.length*100);(0,window.isNaN)(c)?iK(this).enabled(!1):(iK(this).enabled(!0).ja(this.ea).text("Working: "+c+"%").$(),this.Db.dispatchEvent({type:"working",progress:c}));$.pl.measure();this.rv(function(a){a.B(128);a.$()});jK(this)}else this.rv(function(a){a.I(3584);
a.B(128);a.$()}),this.il(!1),iK(this).enabled(!1).$(),PI(this.controller),this.controller.Ky.push($.vp(function(){NI(this.controller);this.Db.dispatchEvent({type:"working",progress:100});this.Db.dispatchEvent("workingfinish")},void 0,this))},void 0,a))},kK=function(){dK.call(this)},lK=function(a){$.yy.call(this);this.Fa("defaultLineMarkerSettings");this.np(a);$.Zq(a,this.kg,this);$.T(this.ua,[["stroke",16,1],["value",0,0,0,function(){this.B(4,this.OC())}]])},mK=function(a){$.yy.call(this);this.Fa("defaultRangeMarkerSettings");
this.np(a);$.Zq(a,this.kg,this);$.T(this.ua,[["fill",16,1],["from",4,9],["to",4,9]])},nK=function(a){$.Ky.call(this);this.Fa("defaultTextMarkerSettings");this.np(a);$.Zq(a,this.kg,this);$.T(this.ua,[["value",0,0,0,function(){this.B(4,this.OC())}]])},oK=function(a){$.ag.call(this,a.fa());this.element=a;this.y=this.x=0},pK=function(a){$.ag.call(this,a.fa());this.element=a;this.Ed=window.NaN},qK=function(a){pK.call(this,a)},rK=function(a,b,c){$.ag.call(this,b.fa());this.element=b;this.jy=!!c;this.g=
this.b=window.NaN},sK=function(a,b){$.ag.call(this,a.fa());this.element=a;this.b=!!b},tK=function(){$.Yq.call(this);this.Rb=null;$.T(this.ua,[["fill",0,2],["stroke",0,2],["size",0,2],["type",0,2],["verticalOffset",0,2],["horizontalOffset",0,2],["enabled",0,0]])},uK=function(){$.Yq.call(this);this.Rb=this.b=this.f=null},vK=function(a){$.Yq.call(this);this.D=a;this.Rb=null;$.T(this.ua,[["fill",0,2],["stroke",0,2],["enabled",0,2]]);this.b=this.f=this.j=this.g=null},wK=function(){$.Yq.call(this);this.b=
this.Y=null;$.T(this.ua,[["position",0,1,void 0,this.Hs],["offsetY",0,1,void 0,this.Hs],["offsetX",0,1,void 0,this.Hs],["fill",0,1,void 0,this.Hs],["stroke",0,1,void 0,this.Hs],["anchor",0,1,void 0,this.Hs],["size",0,1,void 0,this.Hs],["rotation",0,1,void 0,this.Hs],["type",0,1,void 0,this.Hs],["enabled",0,1,void 0,this.Hs]])},yK=function(a,b,c,d,e,f,h){this.element=a;this.tag=d;this.b=h;this.predictedBounds=c;this.item=b;this.shapes=this.element.vf.Xc(b,d,f?$.qo:$.Zl,void 0,void 0,void 0,e,h);$.n(e)&&
(this.periodIndex=e,this.period=b.get("periods",e));c=a.Na();if("milestones-preview"==c||"milestones"==c)(b=xK(a,b,e))&&(b=b.markerType),this.markerType=b||a.i("markerType")},zK=function(a,b){$.Yq.call(this);this.pd=b;this.Rb=this.Y=null;$.T(this.ua,[["drawer",0,1],["shapes",0,1]])},AK=function(a,b,c,d,e,f,h){b=new yK(a.pd,b,c,d,e,f,h);a.i("drawer").call(b,b)},BK=function(a,b,c){$.od.call(this);this.G=a;this.D=b;this.ub=null;this.b={};this.f={};this.j={};this.g={};if($.A(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=$.jk;break;case "circle":e=$.kk;break;case "ellipse":e=$.mk;break;default:e=$.nk}this.b[d]||(this.b[d]=[],this.f[d]=[],this.j[d]=0);this.g[b.name]={zIndex:+b.zIndex,aR:e,Mb:d,td:!!b.disablePointerEvents}}this.CO={}},CK=function(a,b,c,d,e,f,h){b=a.g[b];var k=a.D.Gm(c,f,h);c=a.D.bl(c,f,h);e.fill(k);e.stroke(c);e.ib(a.G);e.td(!!b.td);e.zIndex(b.zIndex+d);e.parent(a.Dd);return e},DK=function(a){$.Yq.call(this);
this.Fa("defaultTimeline.elements");this.Ij=this;this.Kh=a;this.Y=null;$.T(this.ua,[["height",0,1],["anchor",0,1],["position",0,1],["offset",0,1],["enabled",0,1]]);a={};$.T(a,[["fill",0,8192],["stroke",0,8192]]);this.ca=new $.Yx(this.Ij,a,$.Zl);a={};$.T(a,[["fill",0,0],["stroke",0,0]]);this.Ca=new $.Yx(this.Ij,a,$.qo);this.gb=this.Ci=this.Gs=this.Rb=this.Rl=this.uH=this.Da=null},xK=function(a,b,c){if($.n(c))return b.get("periods")[c];a=a.yv();for(c=0;c<a.length;c++){var d=b.get(a[c]);if($.n(d)){var e=
d;break}}return e},EK=function(a){DK.call(this,a);$.T(this.ua,[["drawOverEnd",0,1]])},FK=function(a){EK.call(this,a)},GK=function(a){DK.call(this,a);$.T(this.ua,[["above",0,1],["disableWithRelatedTask",0,1]])},HK=function(a){$.Yq.call(this);this.Ij=this;this.Kh=a;$.T(this.ua,[["previewStroke",0,2]]);a={};$.T(a,[["fill",0,8192],["stroke",0,8192]]);this.ca=new $.Yx(this.Ij,a,$.Zl);a={};$.T(a,[["fill",0,0],["stroke",0,0]]);this.Ca=new $.Yx(this.Ij,a,$.qo)},IK=function(a){DK.call(this,a);this.Fa("defaultTimeline.groupingTasks");
this.mi=null},JK=function(a){DK.call(this,a);this.Tl=null;$.T(this.ua,[["markerType",0,1]])},KK=function(a){JK.call(this,a);$.T(this.ua,[["depth",0,1]])},LK=function(a){DK.call(this,a)},MK=function(a){DK.call(this,a);this.Fa("defaultTimeline.tasks");this.mi=null},NK=function(a,b){$.Y.call(this);this.Dk=a;this.na=this.Dk.U.scale();this.wd=b;this.Da=this.b=null;this.re=[];this.Ka=null;this.hb=[];this.D=[];this.j="yyyy/MM/dd'T'HH:mm:ss.SSS";this.xb={left:0,top:0,width:0,height:0};this.g=this.f=null;
$.T(this.ua,[["enabled",1,32768],["stroke",16,1],["height",4,9]]);this.count=this.ng=void 0},OK=function(a){if(!a.b){var b=null!=a.g;a.Da&&!$.Jc(a.Da.Ma)&&(b=!0);b&&(a.b=new $.Ny,a.b.labels(a.labels()),$.ql(a.b))}},PK=function(a){$.Y.call(this);this.Fa("defaultGanttHeader");this.U=a;this.g=null;this.N=new $.PH;this.Da=this.Ka=null;this.f=[];this.D=new $.QH;this.xb={left:0,top:0,width:0,height:0};this.b=new $.Ny;this.b.labels(this.labels());$.Py(this.b);$.ql(this.b);$.T(this.ua,[["stroke",16,1],["levelHeight",
512,1,void 0,this.afa],["drawTopLine",0,0],["drawRightLine",0,0],["drawBottomLine",0,0],["drawLeftLine",0,0]])},UK=function(a,b){jJ.call(this,a,b);this.Fa("defaultTimeline");this.wC=this.fv=this.iv=this.hv=this.gv=this.Lz=this.Qp=this.WD=this.Ut=this.eh=null;this.IM=void 0;this.JM=window.NaN;this.nI=!1;this.pt=this.ut=this.tt=this.qt=this.ZF=this.st=this.rt=null;this.UR=this.SF=this.wx=!1;this.Ho=this.ux=null;this.dJ=[];this.cJ=0;this.pA=[];this.HA=[];this.eB=[];this.Ur=[];this.NW=this.VG=null;this.na=
new $.et;$.L(this.na,this.Vh,this);mea(this.na,this);this.iC=this.xm=this.Ou=this.Ev=this.Pj=this.mw=this.pk=this.Bx=null;this.hE=[];$.T(this.ua,[["cropLabels",2048,1],["zoomOnMouseWheel",0,0],["columnStroke",16,1],["workingFill",0,0,0,function(){var a=this.i("workingFill");QK(this).fill(a)}],["notWorkingFill",0,0,0,function(){var a=this.i("notWorkingFill");RK(this).fill(a)}],["holidaysFill",0,0,0,function(){var a=this.i("holidaysFill");SK(this).fill(a)}],["weekendsFill",0,0,0,function(){var a=this.i("weekendsFill");
TK(this).fill(a)}]]);MI(this.controller,this);this.cA()},VK=function(a){a.NW||(a.NW=a.controller.g?[a.Ds(),a.Pc()]:[a.Jc(),a.Yp(),a.Pc(),a.Pc().qm(),a.Nn(),a.Jc().Ed(),a.Yp().Ed(),a.Nn().Ed()]);return a.NW},WK=function(a,b,c,d,e){b={Qea:!0,item:a,index:b,type:c,Za:d};$.n(e)&&(b.lq=e,a=a.get("periods"),b.vb=a[e]);return b},SK=function(a){a.iM||(a.iM=XK(a).path(),a.iM.zIndex(0),a.iM.stroke("none").fill(a.i("holidaysFill")));return a.iM},TK=function(a){a.YO||(a.YO=XK(a).path(),a.YO.zIndex(0),a.YO.stroke("none").fill(a.i("weekendsFill")));
return a.YO},QK=function(a){a.ZO||(a.ZO=XK(a).path(),a.ZO.zIndex(1),a.ZO.stroke("none").fill(a.i("workingFill")));return a.ZO},RK=function(a){a.$M||(a.$M=XK(a).path(),a.$M.zIndex(1),a.$M.stroke("none").fill(a.i("notWorkingFill")));return a.$M},YK=function(a){a.WD||(a.WD=yJ(a).path(),a.WD.zIndex(6),a.WD.stroke(IJ("columnStroke",2)(a,0)));return a.WD},ZK=function(a){a.Qp||(a.Qp=xJ(a).path(),a.Qp.zIndex(0).cursor("ew-resize"),a.sc.ra(a.Qp,"mousedown",function(a){a.stopPropagation()}),a.Qp.ve("mousedown",
a.Ica,!1,a));return a.Qp},$K=function(a){a.Lz||(a.Lz=xJ(a).path(),a.Lz.zIndex(10),a.sc.ra(a.Lz,"mousedown",function(a){a.stopPropagation()}),a.Lz.ve("mousedown",a.Jca,!1,a));return a.Lz},aL=function(a){a.$F||(a.$F=xJ(a).path(),a.$F.zIndex(10),a.sc.ra(a.$F,"mousedown",function(a){a.stopPropagation()}),a.$F.ve("mousedown",a.zca,!1,a));return a.$F},bL=function(a){a.gv||(a.gv=xJ(a).path(),a.gv.zIndex(20).cursor("col-resize"),a.gv.qm=ZK(a),a.sc.ra(a.gv,"mousedown",function(a){a.stopPropagation()}),a.gv.ve("mousedown",
a.Hca,!1,a));return a.gv},cL=function(a){a.hv||(a.hv=xJ(a).path(),a.hv.zIndex(30).cursor("col-resize"),a.hv.qm=ZK(a),a.sc.ra(a.hv,"mousedown",function(a){a.stopPropagation()}),a.hv.ve("mousedown",a.Kca,!1,a));return a.hv},dL=function(a){a.iv||(a.iv=xJ(a).path(),a.iv.zIndex(40).cursor("move"),a.sc.ra(a.iv,"mousedown",function(a){a.stopPropagation()}),a.iv.ve("mousedown",a.Lca,!1,a));return a.iv},eL=function(a){a.fv||(a.fv=xJ(a).path(),a.fv.zIndex(50).cursor("move"),a.sc.ra(a.fv,"mousedown",function(a){a.stopPropagation()}),
a.fv.ve("mousedown",a.Cca,!1,a));return a.fv},fL=function(a){a.wC||(a.wC=xJ(a).path(),a.wC.zIndex(60),a.wC.td(!0));return a.wC},gL=function(a,b){for(var c=0;c<a.Ur.length;c++)a.Ur[c].clear().jc(1,0,0,1,0,0);a.Ur.length=0;b||(a.Xa().enabled(a.Ts),a.Ts=void 0)},hL=function(a,b,c,d){var e=b;a=a.Nn().i("above");switch(c){case "tasks":d&&"left-center"==b&&(e=a?"left-top":"left-bottom");break;case "grouping-tasks":e=$.Do(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},iL=function(a,b,c){if(a.ux){var d=a.ux.b?a.gv:a.hv,e=d.tag.item,f=d.tag.lq,h=d.tag.Za;switch(d.tag.type){case "baselines":d=a.ux.b?e.o("baselineEnd"):e.o("baselineStart");break;case "periods":d=a.ux.b?e.Yn("periods",f,"end"):e.Yn("periods",f,"start");break;default:d=kJ(e),d=a.ux.b?d.end:d.start}e=$.Wj(a.P().Ha()).x;b=c?0>c?a.ea.left:a.ea.left+a.ea.width:b.clientX-e;c=$.rt(a.na,d);c=a.ea.left+a.ea.width*c;a.Qp.clear().moveTo(c,
h.top).lineTo(b,h.top).lineTo(b,h.top+h.height).lineTo(c,h.top+h.height).close()}},kL=function(a,b,c,d){if(a.Ho&&a.di){var e=a.Ho.jy?a.iv:a.fv,f=e.tag.index;e=e.tag.lq;var h=$.Wj(a.P().Ha()),k=h.x;h=h.y;c||d?(c=a.Ho.b-k,b=a.Ho.g-h):(c=b.clientX-k,b=b.clientY-h);d=jL(a,f,e);f=a.Sn().previewStroke();k=$.Wo(f)%2&&"svg"===$.hk?.5:0;e=a.Ho.jy?d.left:d.left+d.width;d=d.top+d.height/2+k;fL(a).stroke(f).clear().moveTo(e,d).lineTo(c,b)}},lL=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}},mL=function(a,b){if(b&&b.originalEvent){var c=b.originalEvent,d=$.K(c,$.Ni)?c.target:c.domTarget;if(d&&
$.K(d,QJ)&&"connectors"==d.type){c=lL(a,c);for(var e in d.o)c[e]=d.o[e];return c}}return null},nL=function(a,b){switch(b){case "periods":return a.Ds();case "tasks":return a.Jc();case "grouping-tasks":return a.Yp();case "baselines":return a.Nn();case "milestones":return a.Pc();case "milestones-preview":return a.Pc().qm()}return a.elements()},oL=function(a,b){return a.controller.g?a.Ds():lJ(b)?a.Pc():nJ(b)?a.Yp():a.Jc()},pL=function(a,b,c){var d;$.n(c)?d=pJ(b,c).CM?a.Pc():a.Ds():lJ(b)?d=a.Pc():mJ(b)?
d=a.Nn():nJ(b)?d=a.Yp():kJ(b).sU?d=a.Ds():d=a.Jc();return d.Xa()},qL=function(a,b){var c=mL(a,b);return c?(gL(a),a.Db.dispatchEvent(c),!0):!1},sL=function(a,b){var c=b&&b.originalEvent?b.originalEvent.domTarget:null;if(c&&"connectors"==c.type){gL(a);var d=mL(a,b);a.Db.dispatchEvent(d)&&(d=mL(a,b),d.type="connectorselect",a.Db.Sk().f&&rL(a,b.originalEvent),a.Db.dispatchEvent(d)&&(a.Db.qI(b.originalEvent),c=c.o,iJ(a.Db.Sk(),c.fromItem,c.toItem,c.fromItemIndex,c.toItemIndex,c.fromPeriodIndex,c.toPeriodIndex,
c.connType),a.B(128,1)));return!0}return!1},rL=function(a,b){var c=a.Db.Sk();if(c.f){var d=lL(a,b);d.type="connectorselect";a.Db.dispatchEvent(d)&&(iJ(c,null),a.B(128,1))}},Dea=function(a,b){var c=a.So,d=a.bk();d=a.ea.top+$.Wj(a.P().Ha()).y+d;c=$.Na(c,b.clientY-d);c=(0<=c?c:~c)+a.controller.mg();var e=new $.gb(b.offsetX,b.offsetY);return $.ya(a.hE[c]||[],function(a){return a.label.enabled()&&0===tL(a.label).Yf(e)?!0:!1},a)},uL=function(a,b,c){var d=a.Db.Sk();fJ(d,b);d.g=b?c:null;return d.b?(a.B(128,
1),!0):!1},vL=function(a){if(a.cJ<a.dJ.length){var b=a.dJ[a.cJ++];b.reset()}else b=new QJ,b.ib(a),a.dJ.push(b),a.cJ++;b.parent(vJ(a));return b},wL=function(a,b,c){c=c.i("drawOverEnd");a*=b;return c?a:Math.min(a,b)},xL=function(a,b,c,d,e,f){var h="grouping-tasks"==b.Na(),k=b.ud(d,f);h=$.M(k,e||h?c.height/2:c.height);k=b.i("anchor");var l=b.i("position");d=b.MC(d,f);d=$.M(d,c.height);"auto"==k&&(k=hL(a,l,b.Na(),e));a=$.xo(c,l);return new $.J(a.x,a.y+($.Do(k)?0:$.Eo(k)?-h:-h/2)+d,c.width,h)},yL=function(a,
b,c,d,e){a=a.bl(c,e?$.qo:$.Zl,d);a=$.Wo(a)%2&&"svg"===$.hk?.5:0;c=Math.round(b.left)+a;d=Math.round(b.top)+a;return new $.J(c,d,Math.round(b.left+b.width)+a-c,Math.round(b.top+b.height)+a-d)},zL=function(a,b,c,d){$.V(a.controller.data());$.n(d)?($.A(b.o("periodBounds"))||b.Hn("periodBounds",[]),b.Hn("periodBounds",d,c)):b.o("relBounds",c);a.controller.data().da(!1)},BL=function(a,b,c,d,e,f){if(!f){if(!b.b){b.b={};for(var h in AL)f=b.i(h),$.n(f)&&(b.b[h]=f)}f=b.b}b=f;if(b.enabled){a=a.Eb().add({value:c});
c=!("fill"in b);h=!("stroke"in b);if(c||h)b=$.Qc(b),c&&(b.fill=$.Hl(d)),h&&(b.stroke=$.Hl(e));a.K(b)}},CL=function(a,b,c,d,e){var f=xK(c,b,e),h=f&&f.startMarker;f=f&&f.endMarker;var k=d.top+d.height/2,l={x:d.left,y:k};d={x:d.left+d.width,y:k};k=c.Gm(b,$.Zl,e);b=c.bl(b,$.Zl,e);e=c.HI();c=c.bG();BL(a,e,l,k,b,h);BL(a,c,d,k,b,f)},DL=function(a,b,c,d,e){var f=d.i("anchor"),h=d.i("position"),k=a.Nn().i("anchor"),l=a.Nn().i("position");f==k&&h==l&&("auto"==f&&(f=hL(a,h,d.Na(),!0)),"auto"==k&&(k=hL(a,l,a.Nn().Na(),
!0)),h=a.Nn().bl(e,$.Zl),d=d.bl(e,$.Zl),d=$.Wo(d)/2,e=$.Wo(h)/2,d+=e,f==k&&(a.Nn().i("above")?$.Do(f)?b.top+=c.height+d:c.top-=b.height+d:$.Do(f)?c.top+=b.height+d:b.top-=c.height+d))},FL=function(a,b,c,d,e,f){var h=a.Pc().qm().i("depth");if(null==h||b<=h)if(lJ(c))EL(a,c,d,e,void 0,void 0,f);else if(nJ(c))for(h=0;h<c.Zb();h++){var k=c.od(h);FL(a,b+1,k,d,e,f)}},EL=function(a,b,c,d,e,f,h){var k=$.n(h)?a.Pc().qm():a.Pc();e=null!=e?e:$.n(f)?pJ(b,f):kJ(b);e=$.rt(a.na,a.controller.g?e.NH:e.start);if(0<=
e&&1>=e&&k.i("enabled")){var l=k.bl(b,$.Zl);l=($.Vo(l)?0:$.z(l)?1:l.thickness?l.thickness:1)%2&&"svg"===$.hk?.5:0;var m=k.ud(b,f);m=$.M(m,d);c=xL(a,k,new $.J(Math.round(a.ea.left+a.ea.width*e)+l-Math.round(m/2),c,m,d),b,void 0,f);d=$.n(f)?hJ(a.Db.Sk(),b,f):gJ(a.Db.Sk(),b);c=yL(k,c,b,f,d);e=a.Ep(b,k,c,f);zL(a,b,c,f);AK(k.kj(),b,c,e,f,d,h)}},GL=function(a,b){var c=a.ea.top+a.bk()+1,d=a.controller.b,e=a.controller.mg(),f=a.controller.Wl();return(b?d[b-1]:0)-((e?d[e-1]:0)+f)+c},jL=function(a,b,c){var d=
GL(a,b);b=a.controller.D[b];var e=xI(a.controller,b);if(a.controller.g){var f=pJ(b,c),h=0,k=f.CM,l=f.start,m=f.end,p=a.Ds();k&&(p=a.Pc(),m=l=f.NH,h=p.ud(b,c),h=Math.round($.M(h,e)/2));l=$.rt(a.na,l)*a.ea.width+a.ea.left-h;m=$.rt(a.na,m)*a.ea.width+a.ea.left+h;return xL(a,p,new $.J(l,d,m-l,e),b,void 0,c)}c=kJ(b);m=c.start;p=c.end;h=0;if(c=lJ(b,c))p=m,h=a.Pc().ud(b),h=Math.round($.M(h,e)/2);m=$.rt(a.na,m)*a.ea.width+a.ea.left-h;p=$.rt(a.na,p)*a.ea.width+a.ea.left+h;d=new $.J(m,d,p-m,e);c?(e=a.Pc(),
a=xL(a,e,d,b)):mJ(b)?(e=nJ(b)?a.Yp():a.Jc(),c=xL(a,e,d,b,!0),p=a.Nn(),d=xL(a,p,d,b,!0),DL(a,c,d,e,b),a=c):(e=nJ(b)?a.Yp():a.Jc(),a=xL(a,e,d,b));return a},JL=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 p=oL(a,m),q=oL(a,l),r=jL(a,h,b),t=jL(a,k,c),u=xI(a.controller,l);if(r&&t&&p.i("enabled")&&q.i("enabled")){p=a.Db.Sk();q=p.f?p.f.gda==m&&p.f.Lia==l&&p.f.e_==d&&p.f.h0==b&&p.f.Y4==c:!1;p=null!=f;if(e)if(q){var v=
"object"==$.ka(e.selected)?e.selected.fill:void 0;var w="object"==$.ka(e.selected)?e.selected.stroke:void 0}else v=$.n(e.fill)?e.fill:"object"==$.ka(e.normal)?e.normal.fill:void 0,w=$.n(e.stroke)?e.stroke:"object"==$.ka(e.normal)?e.normal.stroke:void 0;e=q?$.qo:$.Zl;w=w||a.Sn().bl(m,l,e,d,b,c);f=f||null;q=p?f:null;var x=$.Wo(w)%2&&"svg"===$.hk?.5:0;switch((d+"").toLowerCase()){case "finish-finish":var y=Math.round(r.left+r.width)+x;var B=Math.round(r.top+r.height/2)+x;var G=Math.round(t.left+t.width)+
x;var C=Math.round(t.top+t.height/2)+x;var I="left";r.top==t.top?(f=HL(a,y,B,G,C,f),y>G&&(I="right")):(r=Math.max(y+9,G+9),f=HL(a,y,B,r,B,f),f=HL(a,r,B,r,C,f),f=HL(a,r,C,G,C,f));q=IL(a,G,C,I,q);break;case "start-finish":y=Math.round(r.left)+x;B=Math.round(r.top+r.height/2)+x;G=Math.round(t.left+t.width)+x;C=Math.round(t.top+t.height/2)+x;I="left";if(y-5-5-4>G)r=G+9,f=HL(a,y,B,r,B,f),f=HL(a,r,B,r,C,f),f=HL(a,r,C,G,C,f);else{var P=t.top>=r.top;r=y-5;t=G+9;var Q=GL(a,k);u=Math.round(P?Q:Q+u)+x;f=HL(a,
y,B,r,B,f);f=HL(a,r,B,r,u,f);f=HL(a,r,u,t,u,f);f=HL(a,t,u,t,C,f);f=HL(a,t,C,G,C,f)}q=IL(a,G,C,I,q);break;case "start-start":y=Math.round(r.left)+x;B=Math.round(r.top+r.height/2)+x;G=Math.round(t.left)+x;C=Math.round(t.top+t.height/2)+x;I="right";r.top==t.top?(f=HL(a,y,B,G,C,f),y>G&&(I="left")):(r=Math.min(y-4-5,G-4-5),f=HL(a,y,B,r,B,f),f=HL(a,r,B,r,C,f),f=HL(a,r,C,G,C,f));q=IL(a,G,C,I,q);break;default:y=Math.round(r.left+r.width)+x,B=Math.round(r.top+r.height/2)+x,G=Math.round(t.left)+x,G>=y?(G=Math.min(G+
5,Math.round(t.left+t.width/2)+x),t.top>r.top?(C=Math.round(t.top)+x,f=HL(a,y,B,G,B,f),f=HL(a,G,B,G,C,f),q=IL(a,G,C,"bottom",q)):t.top<r.top?(C=Math.round(t.top+t.height)+x,f=HL(a,y,B,G,B,f),f=HL(a,G,B,G,C,f),q=IL(a,G,C,"top",q)):(G=Math.round(t.left)+x,C=Math.round(t.top+t.height/2)+x,f=HL(a,y,B,G,C,f),q=IL(a,G,C,"right",q))):(C=Math.round(t.top+t.height/2),Q=GL(a,k)+x,u=Math.round(t.top>r.top?Q:Q+u)+x,r=y+5,t=G-5-4,f=HL(a,y,B,r,B,f),f=HL(a,r,B,r,u,f),f=HL(a,r,u,t,u,f),f=HL(a,t,u,t,C,f),f=HL(a,t,
C,G,C,f),q=IL(a,G,C,"right",q))}h={fromItemIndex:h,toItemIndex:k,connType:d,fromItem:m,toItem:l};a.controller.g&&(h.fromPeriodIndex=b,h.toPeriodIndex=c);k=a.elements().bf().i("enabled")?"pointer":"default";f&&!p&&(f.tag=void 0,f.type="connectors",f.wR=null,f.cursor(k),h.path=f,f.o=h,f.stroke(w));q&&!p&&(q.tag=void 0,q.type="connectors",q.wR=null,q.cursor(k),h.arrow=q,q.o=h,q.fill(v||a.Sn().Gm(m,l,e,d,b,c)),q.stroke(w))}},HL=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.ea.left+a.ea.width&&h>a.ea.left&&k<a.ea.top+a.ea.height&&l>a.ea.top&&(f=vL(a),f.type="connectors",f.zIndex(60).moveTo(b,c).lineTo(d,e))}return f},IL=function(a,b,c,d,e){var f=e||null;if(b>=a.ea.left&&b<=a.ea.left+a.ea.width&&c>=a.ea.top&&c<=a.ea.top+a.ea.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=vL(a),f.type="connectors");f.zIndex(70).moveTo(b,c).lineTo(h,k).lineTo(l,m).lineTo(b,c)}return f},KL=function(a,b,c,d){var e=a.ea.top+a.bk()+1,f=a.ea.top+a.ea.height;c=$.rt(a.na,c);d=$.rt(a.na,d);c=a.ea.left+a.ea.width*c;a=a.ea.left+a.ea.width*d;c=$.R(c,1);a=$.R(a,1);b.moveTo(c,e).lineTo(a,e).lineTo(a,f).lineTo(c,f).close()},ML=function(a,b){if(a.iC&&LL.hour>=LL[a.iC]){var c,d=b.workingIntervals,e=b.notWorkingIntervals;for(c=0;c<e.length;c++){var f=
e[c];KL(a,RK(a),f.from,f.to)}for(c=0;c<d.length;c++)e=d[c],KL(a,QK(a),e.from,e.to)}},NL=function(a){var b=a.na.Dj(),c=a.na.cj(),d=a.controller.N,e=a.controller.ba;$.V(a.na);$.gt(a.na,d,e);a.na.h5=d;a.na.g5=e;!b||(0,window.isNaN)(d)||(0,window.isNaN)(e)||(a.na.G2?a.na.Cm():a.na.YH?(a.na.Ui.apply(a.na,a.na.VH),a.na.YH=!1,a.na.VH=null):a.na.mV?(d=a.na,d.mV&&(d.mV=!1,$.qt(d),d.ta(4))):(d=a.na.dj(),a.na.Ui(d.min,d.min+Math.round((d.max-d.min)/10))));!b&&(b=c.min,d=c.max-b)&&(c=a.na.cj(),b=c.min,a.na.Ui(b,
b+d));a.na.da(!0)},XK=function(a){a.VQ||(a.VQ=$.lk(),a.VQ.zIndex(33));return a.VQ},OL=function(a){a.GA||(a.GA=$.lk(),a.GA.zIndex(34));return a.GA},PL=function(a){a.dB||(a.dB=$.lk(),a.dB.zIndex(36));return a.dB},Eea=function(a,b){var c=a.label.ic("position"),d=b.label.ic("position");c=$.xo(a.Za,c);d=$.xo(b.Za,d);return c.x-d.x||-1},tL=function(a){var b=a.ic("background"),c=a.ii().pb();return b&&b.enabled?(a=a.ic("padding"),$.wu(c,a)):c},QL=function(){UK.call(this)},RL=function(){UK.call(this,void 0,
!0)},TL=function(a){$.ox.call(this);this.Fa("ganttBase",a?"ganttResource":"ganttProject");this.O=!!a;this.ga=this.j=this.b=this.f=this.oa=null;this.U=new eJ;this.D=null;this.g=new vI(this.O);LI(this.g,SL(this));MI(this.g,this.Sf());$.L(this.g,this.h_,this);this.G=QI(this.g);this.G.zIndex(Fea);$.L(this.G,this.Qha,this);this.ve("chartdraw",function(){KJ(this.XE());KJ(this.Sf());MJ(this.XE());MJ(this.Sf())},!1,this);$.T(this.ua,[["headerHeight",4,1],["splitterPosition",4,1],["rowHoverFill",0,0,0,function(){this.Sf().rowHoverFill(this.i("rowHoverFill"));
SL(this).rowHoverFill(this.i("rowHoverFill"))}],["rowSelectedFill",0,0,0,function(){$.kr(this.Sf(),SL(this));this.b.rowSelectedFill(this.i("rowSelectedFill"));this.f.rowSelectedFill(this.i("rowSelectedFill"));$.lr(this.f,this.b)}],["columnStroke",0,0,0,function(){$.kr(this.Sf(),SL(this));this.f.columnStroke(this.i("columnStroke"));this.b.columnStroke(this.i("columnStroke"));$.lr(this.f,this.b)}],["rowStroke",0,0,0,function(){$.kr(this.Sf(),SL(this),this.g);var a=this.i("rowStroke");this.f.rowStroke(a);
this.b.rowStroke(a);this.g.oo($.Wo(a));$.lr(this.f,this.b,this.g)}]])},SL=function(a){a.f||(a.f=new dK(a.g),$.W(a,"dataGrid",a.f),a.f.zIndex($.wm("defaultDataGrid").zIndex),rJ(a.f,a),$.L(a.f,a.$ba,a));return a.f},UL=function(a,b,c){var d=a.oa.op("id",b);d.length?(b=d[0],a.dispatchEvent({type:"rowcollapseexpand",item:b,collapsed:c})&&b.o("collapsed",c)):$.el(404,null,["Task",b]);return a},VL=function(a){a.j||(a.j=new TI,a.j.zIndex(10),$.L(a.j,function(){this.j.$()},a),pea(qea($.V(a.j).pe("vertical").position(a.i("splitterPosition")).H_("#000 0.3").stroke("none")).fill("#cecece")).da(!1),
a.j.ra("splitterpositionchange",function(a){var b=this.padding(),d=this.lb();b=b.wg(d.width);d=VL(this).position();b=Math.floor(d*b);if(this.f.i("fixedColumns")&&"drawing"!=a.src){a=hK(this.f,!0);a=b-a-gK(this.f);a:{d=this.f;for(var e=d.b.length-1;-1<e;e--){var f=d.b[e];if(f&&f.enabled()&&!f.fd){d=f;break a}}d=null}d&&($.V(d),d.width(a),d.da(!1))}a={type:"splitterpositionchange",newPosition:b,oldPosition:this.i("splitterPosition")};this.pa("splitterPosition",b);this.B(4,1);$.up(this,a)},void 0,a));
return $.n(void 0)?(a.j.K(void 0),a):a.j},WL=function(){return new TL(!1)},XL=function(){return new TL(!0)};$.sy.prototype.d0=$.ca(21,function(){this.b=!1});$.Mt.prototype.fD=$.ca(11,function(a){return dI(this.Yk,a.Yk)});$.Qt.prototype.fD=$.ca(10,function(a){return dI(this,a)});
$.et.prototype.dK=$.ca(7,function(a){if($.X(a,8)&&!this.Dj()&&$.pt(this)){var b=$.kt(this),c=$.lt(this);a=this.Ll.isPixels;var d=this.Kl.isPixels,e=this.Eq.lb().width;b&&c?this.Cm():b&&a?(b=$.ht(this.Ll.value,e),e=b*(this.Pe-this.Ch)/(e-b)||0,this.pj=this.Qe=this.Ch-e,d&&(a=$.mt(this,this.Pe-this.Qe,this.Kl),this.oj=this.Bh+a),this.Gc=!0):c&&d?(b=$.ht(this.Kl.value,e),e=b*(this.Bh-this.Qe)/(e-b)||0,this.oj=this.Pe=this.Bh+e,a&&(a=$.mt(this,this.Pe-this.Qe,this.Ll),this.pj=this.Ch-a),this.Gc=!0):$.qt(this);
this.ta(4)}});$.Mh.prototype.uG=$.ca(4,function(){if(null!=this.kc){var a=$.kg().measure(this.text(),this.style());a.left=this.xo;a.top=this.yo;return a}return new $.J(0,0,0,0)});$.Nv.prototype.uG=$.ca(3,function(){return this.kc?this.kc.uG():null});var YL="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(gI,$.iu);$.g=gI.prototype;$.g.qa=$.iu.prototype.qa;$.g.sa=$.iu.prototype.sa|80;$.g.pe=function(a){return $.n(a)?(a=$.Ek(a),a!=this.f&&(this.f=a,this.B(4,1)),this):this.f};$.g.bK=function(a,b,c,d,e){if($.n(a)){var f=$.Yb.apply(null,arguments);this.ya!=f&&(this.ya=$.Ml(f,this.U,!1),this.B(16,1));return this}return this.ya||"none"};$.g.$J=function(a,b,c,d,e,f,h){if($.n(a)){var k=$.Vb.apply(null,arguments);this.ka!=k&&(this.ka=$.Ml(k,this.U,!0),this.B(16,1));return this}return this.ka||"none"};
$.g.kO=function(a,b,c,d,e){if($.n(a)){var f=$.Yb.apply(null,arguments);this.Ja!=f&&(this.Ja=$.Ml(f,this.U,!1),this.B(16,1));return this}return this.Ja||"none"};$.g.jO=function(a,b,c,d,e,f,h){if($.n(a)){var k=$.Vb.apply(null,arguments);this.Ga!=k&&(this.Ga=$.Ml(k,this.U,!0),this.B(16,1));return this}return this.Ga||"none"};$.g.TB=function(a){return $.n(a)?(a=$.N(a),this.Ob!=a&&(this.Ob=a,this.B(4,9)),this):this.Ob};
$.g.mR=function(a){return $.n(a)?(a=$.N(a),this.ab!=a&&(this.ab=a,this.B(16,1)),this):this.ab};$.g.To=function(a){return $.n(a)?($.da(a)&&(this.eb=a),this):this.eb};$.g.Xf=function(a,b){return $.n(a)?($.ob(this.D,a)||(this.D=a.clone(),this.j?oI(this):this.j=this.D.clone(),pI(this),this.B(64,1),jI(this,b||"api")),this):this.D};$.g.WO=function(a){return $.n(a)?($.ob(this.j,a)||(this.j=a.clone(),this.D?oI(this):this.D=this.j.clone(),pI(this),this.B(64,1),jI(this,"api")),this):this.j};
$.g.scroll=function(a,b){a=+a;var c=(0,window.isNaN)(a)?.05:$.Za(a,-1,1);return c?mI(this,this.b+c,b):this};$.g.PQ=function(a){return $.n(a)?($.da(a)&&this.ga!=a&&(this.ga=a,this.B(4,1)),this):this.ga};$.g.hV=function(a){return $.n(a)?(this.U!=a&&(this.U=a,rI(this,this.U)),this):this.U};$.g.iV=function(a){return $.n(a)?(this.nb=a,this):this.nb};$.g.ak=function(){this.Rc||(this.Rc=$.lk(),$.du(this,this.Rc,this.JZ,this.IZ,this.rba));return this.Rc};
$.g.JZ=function(a){a.preventDefault();rI(this,this.nb);this.bh(a)};$.g.IZ=function(a){a.preventDefault();rI(this,this.U);this.bh(a)};
$.g.rba=function(a){a.preventDefault();var b=nI(this),c=this.N.pb(),d=this.N.zm(),e=b?a.offsetY:a.offsetX;d=b?$.Qm((e-d.top)/d.height,4):$.Qm((e-d.left)/d.width,4);(b?e<=c.top:e<=c.left)?mI(this,d,"user_action"):(c=+d,(0,window.isNaN)(c)||(c=$.Za(c,0,1),b=this.g-this.b,c=$.Qm($.Za(c-b,0,1),4),b=$.Qm(c+b,4),this.b==c&&this.g==b))||(this.b=c,this.g=b,iI(this),this.B(64,1),jI(this,"user_action"));this.bh(a)};$.g.dia=function(a){a.preventDefault();this.bh(a)};$.g.Vn=function(){uI(this,!0);this.dispatchEvent("scrolling")};
$.g.g$=function(){uI(this,!1);this.dispatchEvent("scrollend")};
$.g.$=function(){if(this.Bc()){var a=this.P(),b=a?a.Ha():null,c=b&&!b.ff();c&&b.suspend();this.ak().Zb()||(this.Rc.fc(nea(this)),this.Rc.fc(oea(this)));this.J(2)&&(this.ak().parent(a),this.I(2));if(this.J(4)){this.Ya=this.lb();this.Ya.left=hI(this.Ya.left);this.Ya.top=hI(this.Ya.top);this.Ya.width=Math.round(this.Ya.width);this.Ya.height=Math.round(this.Ya.height);sI(this).P()||this.G.P(this.Rc);tI(this).P()||this.O.P(this.Rc);sI(this).enabled(this.ga);tI(this).enabled(this.ga);if(this.ga&&this.G&&
this.O){$.V(this.G);$.V(this.O);var d=nI(this);a=this.Ya;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=$.Qm(a.height/3,1):h=$.Qm(a.width/3,1));f=d?a.left:a.left+a.width-h;d=d?a.top+a.height-e:a.top;this.G.ja(a);this.G.position({x:f,y:d}).width(h).height(e).$();this.O.ja(a);this.O.position({x:k,y:l}).width(h).height(e).$();this.G.da(!1);this.O.da(!1)}this.B(80);this.I(4)}this.J(16)&&(a=Math.min(this.ab,Math.min(this.Ya.width,this.Ya.height)/
2),this.ba.fill(this.ka).stroke(this.ya).round(a),this.N.fill(this.Ga).stroke(this.Ja).round(a),this.I(16));this.J(64)&&(0>=this.b&&1<=this.g||this.b==this.g?this.ak().visible(!1):(this.ak().visible(!0),a=nI(this),h=this.Ya,this.ba.uf(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 $.J(e,k,l,d)):e=h.clone(),l=a?e.height:e.width,k=d=$.Qm(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:$.Qm(e.left+d,1),d=a?$.Qm(e.top+d,1):h.top):(l=a?h.left:$.Qm(e.left+this.b*e.width,1),d=a?$.Qm(e.top+this.b*e.height,1):h.top),f=a?h.width:k,a=a?k:h.height,this.N.ro(hI(l)).so(hI(d)).qo(Math.round(f)).po(Math.round(a)).zm(e),this.N.jc(1,0,0,1,0,0)),this.I(64));this.J(8)&&(this.ak().zIndex(this.zIndex()),this.I(8));c&&b.resume()}return this};$.g.remove=function(){this.Rc&&this.Rc.parent(null)};
$.g.F=function(){var a=gI.u.F.call(this);$.E(this.bK())?$.el(8,null,["ScrollBar background stroke"]):a.backgroundStroke=$.Jl(this.bK());$.E(this.$J())?$.el(8,null,["ScrollBar background fill"]):a.backgroundFill=$.Jl(this.$J());$.E(this.jO())?$.el(8,null,["ScrollBar slider fill"]):a.sliderFill=$.Jl(this.jO());$.E(this.kO())?$.el(8,null,["ScrollBar slider stroke"]):a.sliderStroke=$.Jl(this.kO());a.mouseOverOpacity=this.iV();a.mouseOutOpacity=this.hV();a.buttonsVisible=this.PQ();a.barSize=this.TB();
a.cornersRadius=this.mR();return a};$.g.X=function(a,b){gI.u.X.call(this,a,b);this.$J(a.backgroundFill);this.bK(a.backgroundStroke);this.jO(a.sliderFill);this.kO(a.sliderStroke);this.iV(a.mouseOverOpacity);this.hV(a.mouseOutOpacity);this.PQ(a.buttonsVisible);this.TB(a.barSize);this.mR(a.cornersRadius)};$.g.R=function(){$.td(this.ba,this.G,this.O,this.N,this.Rc);this.Rc=this.N=this.O=this.G=this.ba=null;gI.u.R.call(this)};var ZL=gI.prototype;ZL.barSize=ZL.TB;ZL.backgroundStroke=ZL.bK;
ZL.backgroundFill=ZL.$J;ZL.sliderStroke=ZL.kO;ZL.sliderFill=ZL.jO;ZL.mouseOutOpacity=ZL.hV;ZL.mouseOverOpacity=ZL.iV;ZL.cornersRadius=ZL.mR;ZL.buttonsVisible=ZL.PQ;$.H(vI,$.Yq);$.g=vI.prototype;$.g.qa=18;$.g.sa=448;$.g.Id=function(a){var b=0;$.X(a,32)&&(DI(this,a.item),b|=128);$.X(a,16)&&(b|=64);this.ke&&this.Kh&&this.Kh.Db.B(256);this.B(b,2)};$.g.f$=function(a){return!a.o("collapsed")};$.g.Tea=function(a){return!!a.Zb()};
$.g.data=function(a){if($.n(a)){if(this.oa!=a&&($.K(a,$.Nt)||$.K(a,$.Kt))){var b=!1;this.nb={};this.oa&&($.Zq(this.oa,this.Id,this),b=!0);this.oa=a;$.L(this.oa,this.Id,this);this.Ga=this.oa.Av();this.Ga.j5(this.f$);this.Kh&&this.Kh.scale().reset();$.Ep()?(this.ke&&(NI(this),Aea(this.ke),b&&OI(this).dispatchEvent("workingcancel")),OI(this).B(256)):this.ke&&this.Kh&&this.Kh.Db.B(256);this.B(64,2)}return this}return this.oa};
$.g.Wl=function(a){return $.n(a)?(this.O!=a&&(this.O=a,this.B(256,2)),this):this.O};$.g.mg=function(a){return $.n(a)?((0,window.isNaN)(a)||(this.f=a,this.j=window.NaN,this.eb=a,this.ab=window.NaN,this.O=0,this.B(256,2)),this):this.f};$.g.wj=function(a){return $.n(a)?((0,window.isNaN)(a)||(this.f=window.NaN,this.j=a,this.eb=window.NaN,this.ab=a,this.B(256,2)),this):this.j};$.g.oo=function(a){return $.n(a)?(this.Ob!=a&&(this.Ob=a,this.B(128,2)),this):this.Ob};
$.g.y_=function(){if(($.Ep()||!this.ef())&&this.J(64)){this.hc=0;this.ba=this.N=window.NaN;this.Gr.length=0;$.V(this.oa);for(var a=0,b=this.oa.Zb();a<b;a++){var c=this.oa.od(a);EI(this,c,0)}this.N==this.ba&&(a=this.N,this.N=a-432E5,this.ba=a+432E5);this.oa.da(!1);this.ta(16);this.I(64);this.Kh&&NL(this.Kh);this.B(128)}if($.Ep()||!this.ef()){if(this.J(128)){this.D.length=0;this.b.length=0;this.ga.length=0;this.ka={};this.ya={};a=0;for(this.Ga.reset();this.Ga.advance();){var d=this.Ga.current();this.D.push(d);
a+=xI(this,d)+this.Ob;this.b.push(a);c=d.get("id");b={item:d,index:this.b.length-1};$.n(c)&&!this.ya[c]&&(this.ya[c]=b);if(this.g){if(b=d.get("periods"),$.A(b))for(c=0,d=b.length;c<d;c++){var e=b[c],f=e.id,h={period:e,index:this.b.length-1,periodIndex:c};this.ka[f]||(this.ka[f]=h);if($.A(e.connector)){e=e.connector;for(var k=0;k<e.length;k++){var l=e[k];if(l){var m=this.ka[l.connectTo]||l.connectTo;f=l.connectorType;m={from:h,to:m};f&&(m.type=f);m.connSettings=l;this.ga.push(m)}}}else e.connectTo&&
(m=this.ka[e.connectTo]||e.connectTo,f=e.connectorType,m={from:h,to:m},f&&(m.type=f),e.connector&&(m.connSettings=e.connector),this.ga.push(m))}}else if($.A(d.get("connector")))for(d=d.get("connector"),h=0;h<d.length;h++){if(f=d[h])c=f.connectTo,m=this.ya[c]||c,c=f.connectorType,m={from:b,to:m},c&&(m.type=c),m.connSettings=f,this.ga.push(m)}else d.get("connectTo")&&(c=d.get("connectTo"),m=this.ya[c]||c,c=d.get("connectorType"),m={from:b,to:m},c&&(m.type=c),d.get("connector")&&(m.connSettings=d.get("connector")),
this.ga.push(m))}this.I(128);this.B(256)}this.xc&&(RI(this,this.Ja),this.xc=!1);JI(this);$.Ep()&&this.I(256);(0,window.isNaN)(this.N)||this.N!=this.ba||(this.N-=864E5,this.ba+=864E5)}$.Ep()||(this.ke&&this.ke.ID(),this.Kh&&this.Kh.ID());$.pl.measure();a=null;this.ke&&this.ke.P()&&(a=this.ke.P().Ha());!a&&this.Kh&&this.Kh.P()&&(a=this.Kh.P().Ha());a&&a.suspend();this.ke&&this.ke.uj(this.ED);this.Kh&&this.Kh.uj(this.ED);this.U&&($.V(this.U),this.U.To(!1),c=0,d=1,this.b.length&&(c=this.b[this.f]-HI(this,
this.f,this.f)+this.O,d=c+this.G,this.Ja=c,h=this.b[this.b.length-1],b=new $.J(0,0,0,h),c=$.Qm(c/h,4),d=$.Qm(d/h,4),this.U.Xf(b)),b=this.U,c=+c,h=+d,(0,window.isNaN)(c)||(0,window.isNaN)(h)||(c=$.Za(c,0,1),h=$.Za(h,0,1),d=Math.min(c,h),c=Math.max(c,h),d==c||b.b==d&&b.g==c||(b.b=d,b.g=c,iI(b),b.B(64,1),jI(b,"api"))),b.$().To(!0).da(!1));a&&a.resume();this.ED=!1};
$.g.Yca=function(){var a=this.ke&&this.ke.enabled();a&&this.ke.ID();this.Ky.push($.vp(function(){a&&this.ke.uj(this.ED);this.Kh&&this.Kh.uj(this.ED);if(!a){var b=OI(this);b.dispatchEvent("workingstart");b.dispatchEvent({type:"working",progress:100});b.dispatchEvent("workingfinish")}},void 0,this))};
$.g.F=function(){var a=vI.u.F.call(this);a.isResourceChart=this.g;this.oa&&(a.treeData=this.oa.OA(["collapsed"]));a.verticalOffset=this.Wl();(0,window.isNaN)(this.mg())?(0,window.isNaN)(this.wj())||(a.endIndex=this.wj()):a.startIndex=this.mg();a.scrollTo=this.Ja;return a};
$.g.X=function(a,b){vI.u.X.call(this,a,b);this.g=a.isResourceChart;"treeData"in a&&this.data($.Pt(a.treeData));this.Wl(a.verticalOffset);"startIndex"in a?this.mg(a.startIndex):"endIndex"in a&&this.wj(a.endIndex);"scrollTo"in a&&RI(this,+a.scrollTo)};$.H(TI,$.iu);$.g=TI.prototype;$.g.qa=$.iu.prototype.qa;$.g.sa=$.iu.prototype.sa|80;$.g.pe=function(a){return $.n(a)?(a=$.Ek(a),a!=this.f&&(this.f=a,this.position(this.Re)),this):this.f};$.g.position=function(a){if($.n(a)){a=$.oo(a)?(0,window.parseFloat)(a)/100:a;var b=0,c=1;this.Ya&&(c=VI(this)?this.Ya.Xd():this.Ya.ud(),b=this.D/c,c=(c-this.O)/c);a=$.Za(a,b,c);(0,window.isNaN)(a)||(this.Ya&&(this.Re=a,this.Ga&&this.dispatchEvent("splitterpositionchange")),this.Re=a,this.B(64,1));return this}return this.Re};
$.g.stroke=function(a,b,c,d,e){if($.n(a)){var f=$.Yb.apply(null,arguments);this.g!=f&&(this.g=f,this.B(80,1));return this}return this.g||"none"};$.g.fill=function(a,b,c,d,e,f,h){if($.n(a)){var k=$.Vb.apply(null,arguments);this.ka!=k&&(this.ka=k,this.B(16,1));return this}return this.ka||"none"};$.g.H_=function(a,b,c,d,e,f,h){if($.n(a)){var k=$.Vb.apply(null,arguments);this.ya!=k&&(this.ya=k,this.B(16,1));return this}return this.ya||"none"};
$.g.To=function(a){return $.n(a)?($.da(a)&&(this.Ga=a),this):this.Ga};$.g.ak=function(){this.Rc||(this.Rc=$.lk());return this.Rc};$.g.i$=function(){this.Ja=!0;ZI(this).visible(!0);var a=VI(this);this.ab=$.xf($.Bp.body,"cursor");a?this.N.ro(this.Re*this.Ya.Xd()+this.Ya.qb()).so(this.Ya.bc()).qo(0).po(this.Ya.ud()):this.N.ro(this.Ya.qb()).so(this.Re*this.Ya.ud()+this.Ya.bc()).qo(this.Ya.Xd()).po(0)};
$.g.Vn=function(){var a=this.j.pb(),b=VI(this),c=this.b/2;WI(this,b);var d=b?this.Re*this.Ya.Xd()+this.Ya.qb():this.Re*this.Ya.ud()+this.Ya.bc();a=b?a.qb()+a.Xd()/2:a.bc()+a.ud()/2;b?(this.N.ro(Math.min(d,a)).qo(Math.abs(d-a)),this.G.ro(a-c)):(this.N.so(Math.min(d,a)).po(Math.abs(d-a)),this.G.so(a-c))};
$.g.h$=function(){this.Ja=!1;ZI(this).visible(!1);var a=this.j.pb(),b=VI(this);this.Ra||WI(this,b,!0);this.ba?(a=b?a.left+3-this.Ya.left:a.top+3-this.Ya.top,b=b?a/(this.Ya.width-this.b):a/(this.Ya.height-this.b)):(a=b?a.left+a.width/2-this.Ya.left:a.top+a.height/2-this.Ya.top,b=b?a/this.Ya.width:a/this.Ya.height);this.position($.Qm(b,4))};$.g.j$=function(){this.Ra=!0;this.G.fill("black")};$.g.Lfa=function(a){this.dispatchEvent({type:"dblclick",originalEvent:a})};
$.g.k$=function(){this.Ra=!1;this.Ja||WI(this,VI(this),!0);this.G.fill(this.Ob)};
$.g.$=function(){if(this.Bc()){var a=this.P(),b=a?a.Ha():null,c=b&&!b.ff();c&&b.suspend();this.ak().Zb()||this.ak().fc(ZI(this)).fc(YI(this)).fc(sea(this));this.J(2)&&(this.ak().parent(a),this.I(2));this.J(4)&&(this.Ya=this.lb(),this.Ga&&this.dispatchEvent({type:"splitterpositionchange",src:"drawing"}),this.B(80),this.I(4));this.J(16)&&(this.G.stroke(this.g).fill(this.ka),this.N.fill(this.ya).stroke(this.hc),this.j.fill(this.eb).stroke(this.nb),this.I(16));this.J(64)&&(YI(this).jc(1,0,0,1,0,0),this.D!=
this.U&&(a=VI(this)?this.Ya.Xd():this.Ya.ud(),this.U<=a&&(this.D=this.U,this.U>a-this.O&&(this.ga=a-this.U),this.position(this.Re))),this.O!=this.ga&&(a=VI(this)?this.Ya.Xd():this.Ya.ud(),this.ga<=a&&(this.O=this.ga,this.ga>a-this.D&&(this.U=a-this.ga),this.position(this.Re))),XI(this),this.I(64));this.J(8)&&(this.ak().zIndex(this.zIndex()),XI(this),this.I(8));c&&b.resume()}return this};$.g.remove=function(){this.Rc&&this.Rc.parent(null)};
$.g.R=function(){$.td(this.N,this.j,this.G,this.Rc);this.Rc=this.G=this.j=this.N=null;TI.u.R.call(this)};$.H($I,$.iu);$.g=$I.prototype;$.g.qa=$.iu.prototype.qa;$.g.sa=$.iu.prototype.sa|80;$.g.remove=function(){this.Rc&&this.Rc.parent(null)};$.g.position=function(a){return $.n(a)?(this.Re!=a&&(this.Re=a,this.B(64,1)),this):this.Re};$.g.stroke=function(a,b,c,d,e){if($.n(a)){var f=$.Yb.apply(null,arguments),h=$.Wo(f);if(this.g!=f||h!=this.D)this.g=f,this.D=h,this.B(80,1);return this}return this.g||"none"};
$.g.H_=function(a,b,c,d,e,f,h){if($.n(a)){var k=$.Vb.apply(null,arguments);this.G!=k&&(this.G=k,this.B(16,1));return this}return this.G||"none"};$.g.To=function(a){return $.n(a)?($.da(a)&&(this.N=a),this):this.N};$.g.ak=function(){this.Rc||(this.Rc=$.lk());return this.Rc};$.g.O9=function(){this.dispatchEvent("dragstart");this.O=!0;this.ga=$.xf($.Bp.body,"cursor");cJ(this).clear()};
$.g.Vn=function(){var a=this.b.pb();aJ(this);var b=this.Ya.left+this.Re+this.D/2;a=a.qb()+a.Xd()/2;this.j.clear().moveTo(b,this.Ya.top).lineTo(a,this.Ya.top).lineTo(a,this.Ya.top+this.Ya.height).lineTo(b,this.Ya.top+this.Ya.height).close();this.f.clear().moveTo(a,this.Ya.top).lineTo(a,this.Ya.top+this.Ya.height);this.dispatchEvent("drag")};$.g.N9=function(){this.O=!1;this.j.clear();var a=this.b.pb();this.U||aJ(this,!0);this.position(a.left+3-this.Ya.left);this.dispatchEvent("dragend")};
$.g.Nfa=function(a){a.preventDefault();this.bh(a)};$.g.P9=function(){this.U=!0;this.f.stroke("2 black")};$.g.Q9=function(){this.U=!1;this.O||aJ(this,!0);this.f.stroke(this.ba)};
$.g.$=function(){if(this.Bc()){var a=this.P(),b=a?a.Ha():null,c=b&&!b.ff();c&&b.suspend();this.ak().Zb()||this.ak().fc(cJ(this)).fc(tea(this)).fc(uea(this));this.J(2)&&(this.ak().parent(a),this.I(2));this.J(4)&&(this.Ya=this.lb(),this.N&&this.dispatchEvent("splitterpositionchange"),this.B(80),this.I(4));this.J(16)&&(this.f.stroke(this.g),this.j.fill(this.G),this.b.fill(this.ka),this.I(16));this.J(64)&&((0,window.isNaN)(this.Re)&&(this.Re=Math.round((this.Ya.width-this.D)/2)),this.N&&this.dispatchEvent("splitterpositionchange"),
bJ(this),this.I(64));this.J(8)&&(this.ak().zIndex(this.zIndex()),bJ(this),this.I(8));c&&b.resume()}return this};$.g.R=function(){$.td(this.j,this.b,this.f,this.Rc);this.Rc=this.f=this.b=this.j=null;$I.u.R.call(this)};$.H(dJ,$.Yq);dJ.prototype.qa=32770;dJ.prototype.sa=$.Yq.prototype.sa;var $L={};$.hq($L,[[1,"fill",$.Eq],[1,"stroke",$.Dq],[1,"placementStroke",$.Dq],[0,"enabled",$.Nq]]);$.U(dJ,$L);$.g=dJ.prototype;$.g.i=$.Xq;$.g.Qg=$.Wq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Md=function(){var a=[this.ma];this.Y&&(a=$.Ga(a,this.Y.Md()));return a};$.g.Ld=function(){var a=[this.Ma];this.Y&&(a=$.Ga(a,this.Y.Ld()));return a};
$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(this.Rb=null,null===a?($.Zq(this.Y,this.gN),this.Y=null):(this.Y&&$.Zq(this.Y,this.gN,this),this.Y=a,$.L(this.Y,this.gN,this))),this):this.Y};$.g.gN=function(a){var b=0;$.X(a,32768)&&(b|=32768);$.X(a,2)&&(b|=2);this.ta(b)};$.g.Od=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.Ce=function(a,b){var c=this.Od(b);return c?(a?this.ma.enabled=c.enabled:this.enabled(c.enabled),!0):!1};
$.g.X=function(a,b){dJ.u.X.call(this,a,b);$.zq(this,$L,a,b)};$.g.F=function(){var a=dJ.u.F.call(this);$.Hq(this,$L,a,void 0,void 0,!0);this.th("enabled")&&null!==a.enabled||delete a.enabled;return a};$.g.R=function(){this.Y&&($.Zq(this.Y,this.gN,this),this.Y=null);this.Rb=null;dJ.u.R.call(this)};$.H(eJ,$.od);eJ.prototype.reset=function(){fJ(this,null);this.f=this.g=null};eJ.prototype.R=function(){this.reset();this.oa=null;eJ.u.R.call(this)};$.H(jJ,$.iu);$.g=jJ.prototype;$.g.qa=$.iu.prototype.qa|$.oE|2;$.g.sa=$.iu.prototype.sa|208;$.g.Sk=function(){return this.sw};
$.g.Ec=function(a,b,c,d,e,f){this.D||(this.D=new $.rw);var h=this.controller.g,k={item:{value:a,type:""},name:{value:a.get("name"),type:"string"},id:{value:a.get("id"),type:"string"},linearIndex:{value:a.o("index")+1,type:"number"}};if(h){if($.n(b)){h=$.Gc(b);for(var l={},m=["start","end"],p=0;p<h.length;p++){var q=h[p];if(!$.Aa(m,q)){var r=b[q],t="";$.ea(r)?t="number":$.oo(r)?t="percent":$.z(r)&&(t="string");l[q]={value:r,type:t}}}this.D.nl(l)}else this.D.nl({});h=pJ(a,c);l=h.CM;(m=qJ(this,a))&&
(k.rowType={value:m,type:"string"});k.minPeriodDate={value:a.o("minPeriodDate"),type:"date-time"};k.maxPeriodDate={value:a.o("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?h.start:void 0,type:"date-time"};k.periodEnd={value:b?h.end:void 0,type:"date-time"};b=l?h.NH:k.periodEnd.value||k.maxPeriodDate.value;k.start={value:l?h.NH:k.periodStart.value||k.minPeriodDate.value,type:"date-time"};k.end={value:b,
type:"date-time"};k.barBounds={value:a.Yn("periodBounds",c),type:""}}else c=kJ(a),(b=qJ(this,a,c))&&(k.rowType={value:b,type:"string"}),k.actualStart={value:a.o("actualStart"),type:"date-time"},k.actualEnd={value:a.o("actualEnd"),type:"date-time"},b=nJ(a,c),k.progressValue={value:c.Ed,type:"percent"},k.autoStart={value:b?a.o("autoStart"):void 0,type:"date-time"},k.autoEnd={value:b?a.o("autoEnd"):void 0,type:"date-time"},k.start={value:c.start,type:"date-time"},k.end={value:c.end,type:"date-time"},
k.autoProgress={value:b?a.o("autoProgress"):void 0,type:"percent"},k.barBounds={value:a.o("relBounds"),type:""},k.progress={value:c.Ed,type:"percent"},k.baselineProgress={value:c.NQ?c.LZ:0,type:"percent"},c.BM&&(k.baselineStart={value:c.MZ,type:"date-time"},k.baselineEnd={value:c.KZ,type:"date-time"});$.n(d)&&(k.elementType={value:d,type:"string"});$.n(e)&&(k.hoverRatio={value:e,type:"number"});$.n(f)&&(k.hoverDateTime={value:f,type:"date-time"});this.D.Ag(a);return $.av(this.D,k)};$.g.Y8=$.ia;
$.g.Z8=$.ia;$.g.vY=$.ia;$.g.uY=$.ia;$.g.wY=$.ia;$.g.tY=$.ia;$.g.Y9=function(a){if(!this.lo)if(this.lm)if((a=this.cs(a))&&!this.Db.altKey){var b=$.Qc(a);b.type="rowMouseUp";b=this.Db.dispatchEvent(b);var c=this.Db.dispatchEvent(a);b&&c&&(this.Db.Q3(a),this.TO=!0)}else this.Db.qI(a);else this.lm=!0;this.lo=!1};$.g.SY=function(a){if(this.TO)this.TO=!1;else{var b=this.cs(a);this.vY(b,a);b&&this.lm&&this.Db.dispatchEvent(b)&&this.Db.U3(b);b||this.Xa().Oc()}};
$.g.X9=function(a){switch(a.type){case "dblclick":a=this.cs(a);this.tY(a);this.lm?a&&this.Db.dispatchEvent(a)&&this.Db.R3(a):this.lm=!0;break;case "mousedown":case "touchstart":this.RY(a);break;case "mouseup":case "touchend":a=this.cs(a);this.wY(a);this.lm&&a&&this.Db.dispatchEvent(a)&&this.Db.PN(a);this.Xa().Oc();break;case "contextmenu":this.Db.dispatchEvent(a)}};$.g.Z9=function(a){this.lm&&(a=this.cs(a))&&this.Db.dispatchEvent(a)&&this.Db.V3(a)};
$.g.RY=function(a){var b=this.cs(a);this.uY(b);this.lm&&(a.preventDefault(),b&&this.Db.dispatchEvent(b)&&this.Db.pI(b))};$.g.Q3=function(a){this.QN(a)};$.g.R3=function(a){this.ON(a)};$.g.QN=function(a){this.lm&&OJ(this,a.item)&&(a=$.Qc(a),a.type="rowSelect",this.Db.dispatchEvent(a))};$.g.ON=function(a){if((a=a.item)&&nJ(a)){var b=!a.o("collapsed");this.Db.dispatchEvent({type:"rowcollapseexpand",item:a,collapsed:b})&&a.o("collapsed",b)}};
$.g.U3=function(a){if(!this.di){this.Db.fo(a.hoveredIndex,a.startY,a.endY);var b=this.Xa(),c=this.Ec(a.item,a.period,a.periodIndex);$.Aw(b,a.originalEvent.clientX,a.originalEvent.clientY,c)}};$.g.V3=function(){this.Db.fo()};$.g.PN=$.ia;$.g.pI=$.ia;$.g.gV=$.ia;
$.g.cs=function(a){if(this.So.length){var b=this.controller.D,c=this.controller.mg(),d,e=a.type;switch(e){case "mouseout":e="rowMouseOut";0<=this.ba&&(d=b[c+this.ba]);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.ea.top+this.g+1,h=this.ea.top+$.Wj(this.P().Ha()).y+this.g;a=a.clientY-h;h=this.So.length?this.So[this.So.length-1]:0;if(d)e.item=d;else{if(0>a||a>h)return null;d=$.Na(this.So,a);h=(this.ba=d=0<=d?d:~d)?this.So[d-1]:0;f+=h;var k=f+(this.So[d]-h-this.oo);e.item=b[c+d];e.startY=f;e.endY=k;e.hoveredIndex=this.ba;e.index=c+d;e.itemHeightMouseRatio=(a-h)/(this.So[d]-h)}e.item&&(b=qJ(this,e.item))&&(e.rowType=b);return e}return null};
$.g.bf=function(a){this.Ci||(this.Ci=new dJ,$.W(this,"edit",this.Ci),$.L(this.Ci,this.dN,this));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Ci.K(a),this):this.Ci};$.g.dN=function(a){$.X(a,2)&&NJ(this)};$.g.Ir=function(a){yJ(this).clip(a);this.GA&&this.GA.clip(a);this.dB&&this.dB.clip(a);vJ(this).clip(a)};var aM={};$.hq(aM,[[1,"backgroundFill",$.Eq],[1,"rowFill",$.Eq],[1,"rowStroke",$.Dq],[1,"rowEvenFill",$.Eq],[1,"rowOddFill",$.Eq],[1,"rowHoverFill",$.Bq],[1,"rowSelectedFill",$.Bq]]);
$.U(jJ,aM);var HJ={};$.g=jJ.prototype;$.g.qG=function(a,b){var c=this.i(a);return null!=c?c:this.i(b)};$.g.zc=function(a,b,c){return"rowSelectedFill"==a||"rowHoverFill"==a||"selectedElementFill"==a||"selectedElementStroke"==a?c(this.i(a)):c(this.qG(a,-1!=a.indexOf("Fill")?"baseFill":"baseStroke"))};
$.g.Ae=function(a,b,c,d,e,f){var h=this.Db.cc();switch(a){case "baseFill":a=h.nc(0);break;case "baseStroke":a=$.Hl(h.nc(0));break;case "progressFill":a=h.nc(1);break;case "progressStroke":a={color:"#fff",opacity:1E-5};break;case "baselineFill":a=$.Hl(h.nc(1),.7);break;case "baselineStroke":a=$.Il($.Hl(h.nc(1),.7));break;case "parentFill":a=h.nc(4);break;case "parentStroke":a=$.Hl(h.nc(4));break;case "milestoneFill":a=h.nc(9);break;case "milestoneStroke":a=$.Il(h.nc(9));break;case "selectedElementFill":a=
h.nc(2);break;case "selectedElementStroke":a=$.Il(h.nc(2));break;case "selectedConnectorStroke":a=$.Ol($.Hl(h.nc(2)),2);break;case "rowHoverFill":a=$.wm("ganttBase").defaultRowHoverFill;break;case "rowSelectedFill":a=$.wm("ganttBase").defaultRowSelectedFill;break;default:a="blue"}a={sourceColor:a};null!=b&&($.n(d)?(a.fromItem=b,a.fromItemIndex=b.o("index"),a.toItem=c,a.toItemIndex=c.o("index"),a.connType=d):(a.item=b,a.itemIndex=b.o("index")),$.n(e)&&($.n(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.Fi=function(){return{sourceHatchFill:this.ph()}};$.g.ph=function(){return $.$b("diagonal-brick")};$.g.cc=function(a){if($.K(a,$.ys))return this.Ic($.ys,a),this;if($.K(a,$.vs))return this.Ic($.vs,a),this;$.D(a)&&"range"==a.type?this.Ic($.ys):($.D(a)||null==this.Ea)&&this.Ic($.vs);return $.n(a)?(this.Ea.K(a),this):this.Ea};
$.g.Ic=function(a,b){if($.K(this.Ea,a))b&&this.Ea.K(b);else{var c=!!this.Ea;$.qd(this.Ea);this.Ea=new a;b&&this.Ea.K(b);$.L(this.Ea,this.If,this);c&&this.B(128,1)}};$.g.If=function(a){$.X(a,2)&&this.B(128,1)};$.g.G_=function(a){$.K(a.b,$.hg)&&!this.Jg&&(this.Jg=new PJ(this.Rc,this),this.Jg.ra("drag",this.Vn,!1,this),this.Jg.ra("end",this.QY,!1,this),this.Jg.Tj(a.Vj))};
$.g.Vn=function(a){this.di=!0;if(this.bf().i("enabled")&&!this.Ge&&(sJ(this,!0),this.lm=!1,this.Db.fo(),this.Xa().Oc(),a=this.cs(a))){var b=a.item,c=a.itemHeightMouseRatio,d=a.startY,e=a.endY;this.Zi?(b&&b!=this.Zi&&!b.fD(this.Zi)?.2>c||.8<c?this.Db.jv(.2>c?d:e,void 0,"auto"):lJ(b)?this.Db.jv(void 0,void 0,"not-allowed"):this.Db.jv(d,e,"auto"):this.Db.jv(void 0,void 0,"not-allowed"),this.Y8(a)):(a=this.ea.top+$.Wj(this.P().Ha()).y+this.g,this.Db.jv(a+this.So[this.So.length-1],void 0,"auto"))}this.Xa().Oc();
this.lo=!0};
$.g.QY=function(a){if(this.bf().enabled()&&!this.Ge){var b=this.cs(a),c=this.controller.data();this.Z8(b);if(b){a=b.item;var d=b.hoveredIndex;d=this.controller.mg()+d;var e=this.controller.D;b=b.itemHeightMouseRatio;var f=.2>b;b=.8<b;if(this.Zi&&a&&a!=this.Zi&&!a.fD(this.Zi))if(f||b)if(f?(f=e[d-1],d=a):(f=a,d=e[d+1]),f&&d){e=f.o("depth");var h=d.o("depth");b?(c=a.getParent()||c,c.og(this.Zi,c.pf(a)+1)):e==h?(c=d.getParent()||d.xq(),a=c.pf(d),b=this.Zi.getParent()||this.Zi.xq(),b==c&&b.pf(this.Zi)<a&&
(a=Math.max(0,a-1)),c.og(this.Zi,a)):e<h?f.og(this.Zi,0):f.fD(this.Zi)||(c=a.getParent()||c,a=c.pf(a),c.og(this.Zi,a))}else d?(c=d.xq(),c.og(this.Zi,0)):f&&(c=f.getParent()||f.xq(),a=c.pf(f)+1,c.og(this.Zi,a));else lJ(a)||a.fc(this.Zi)}else this.Zi&&(b=this.ea.top+$.Wj(this.P().Ha()).y+this.g,a.clientY<b?c.og(this.Zi,0):c.fc(this.Zi));this.Db.jv(void 0,void 0,"auto");this.Zi=null}this.Ge=!1;$.yj(function(){this.lo=!1},10,this);this.Jg.reset();this.di=!1;this.lm=!0;(0,window.clearInterval)(this.Fn);
this.Fn=null;sJ(this,!1)};
$.g.bS=function(){var a=this.ea.top+this.g+1,b=this.controller.Wl(),c=this.controller.mg(),d=this.controller.wj(),e=this.controller.D,f=a-b;this.Db.fo();this.So.length=0;BJ(this).clear();AJ(this).clear();DJ(this).clear();EJ(this).clear();var h=!1,k,l;if(this.Db.ga&&(k=this.Db.ga.sj)&&(l=this.Db.ga.mK)){this.gp=this.gp||{};h=!0;for(var m in k){if(!(m in this.gp)){var p=uJ(this).path();p.stroke(null).zIndex(5);this.gp[m]=p}this.gp[m].clear()}}m=this.oo%2&&"svg"===$.hk?.5:0;for(p=c;p<=d;p++){var q=e[p];
if(!q)break;var r=p==c;f=r?a:f;var t=xI(this.controller,q);t=r?t-b+1:t;var u=p%2?this.ka:this.ya;r=f+t;$.Vo(u.fill())||u.moveTo(this.ea.left,f).lineTo(this.ea.left+this.f,f).lineTo(this.ea.left+this.f,r).lineTo(this.ea.left,r).close();q.o("selected")&&(fJ(this.Db.Sk(),q),this.Ra.clear().moveTo(this.ea.left,f).lineTo(this.ea.left+this.ea.width,f).lineTo(this.ea.left+this.ea.width,r).lineTo(this.ea.left,r).close());if(h){t=this.Db.ga.state;for(var v=0;v<l.length;v++)if((u=(0,l[v])(q,t))&&u in k){q=
k[u];u=this.gp[u];u.moveTo(this.ea.left,f).lineTo(this.ea.left+this.f,f).lineTo(this.ea.left+this.f,r).lineTo(this.ea.left,r).close().fill(q);break}}f=r+this.oo;q=Math.floor(f-this.oo/2)+m;this.Ja.moveTo(this.ea.left,q).lineTo(this.ea.left+this.f,q);q=f-a;this.So.push(q);this.d5=q}a=new $.J(this.ea.left,this.ea.top-1,this.ea.width,f-this.ea.top+1);this.Ir(a);return a};
$.g.ly=function(a){JJ(this);var b=a.deltaX,c=a.deltaY,d=0<Math.abs(c),e=0<Math.abs(b);if($.wC||$.gd)b*=18,c*=18;var f=!$.Bp.body.scrollLeft,h=this.Zp(),k=QI(this.controller),l=!1;var m=!1;d&&(m=0>c,d=kI(k),k=lI(k),m=d||1!=k?0<d&&1>k||!d&&!m&&1!=k||1==k&&m&&0!=d:!1);e&&(e=0>b,l=kI(h),h=lI(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.lV=function(a){$.X(a,2)&&this.ta(1)};$.g.hp=function(){this.Xa().$()};$.g.Iu=$.ia;
$.g.Mr=$.ia;$.g.Fu=function(a){return $.n(a)?(wI(this.controller,a),this):wI(this.controller)};
$.g.uj=function(a){a&&this.B(64);if(!this.Bc())return this;var b=this.P();(a=b?b.Ha():null)&&a.suspend();if(!tJ(this).Zb()){this.eb=this.Rc.rect();this.eb.fill(this.i("backgroundFill")).stroke(null).zIndex(10);this.Eh=this.Rc.rect();this.Eh.fill($.Ul).stroke(null).zIndex(20);this.ZT(this.Rc);if(this.Rt){var c=QI(this.controller);$.L(c.P(zJ(this)),function(a){$.X(a,8)?this.B(4,1):c.$()},this)}var d=this.Zp();$.L(d.P(zJ(this)),function(a){$.X(a,1)&&d.$()},d);this.Rc.ve("mousedown",this.G_,!1,this);
this.Rc.ve("touchstart",this.G_,!1,this);$.Ep()&&this.Rc.ve("mousemove",function(){KJ(this);MJ(this)},!1,this);this.oM();this.Gk=a.rect();this.Gk.stroke("none").fill("#000 0.1").zIndex(1E10)}this.J(2)&&(this.Rc.parent(b),this.I(2));this.J(4)&&(b=this.lb(),this.ea=$.Po(b,0),this.Rc.clip(this.ea),this.eb.uf(this.ea),this.Eh.uf(this.ea),this.f=this.ea.width,this.FX&&this.Gk.uf(this.ea),b=this.ea.top+this.g+.5,GJ(this).clear().moveTo(this.ea.left,b).lineTo(this.ea.left+this.f,b),this.Rt&&(c=QI(this.controller),
b=c.TB(),c.Za(this.ea.left+this.ea.width-b-1,this.ea.top+this.bk()+b+1,b,this.ea.height-this.bk()-2*b-2)),d=this.Zp(),b=d.TB(),d.Za(this.ea.left+b,this.ea.top+this.ea.height-b-1,this.ea.width-2*b,b),this.Ay=!0,this.Mr(),this.I(4));this.J(64)&&(this.Xa().Oc(),this.Ay=!0,this.GV(),this.I(64));if(this.J(16)){this.eb.fill(this.i("backgroundFill"));b=this.i("rowFill");var e=this.i("rowOddFill");e=$.Vo(e)?b:e;var f=this.i("rowEvenFill");f=$.Vo(f)?b:f;AJ(this).fill(e);BJ(this).fill(f);b=this.Db.Sk().b;b=
IJ("rowSelectedFill",1)(this,0,b);DJ(this).fill(b);var h;b=this.i("rowStroke");$.z(b)?h=b:$.D(b)&&b.color&&(h=b.color);h&&GJ(this).stroke(h);EJ(this).stroke(b);this.Iu();NJ(this);this.I(16)}this.J(8)&&(tJ(this).zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.Ay=!0,this.I(128));this.MW();this.Ay&&(this.bS(),this.i3(),this.Ay=!1);this.dr();this.q2();a&&a.resume();this.Rt&&a&&!this.Ml&&a.ve("stagerendered",function(){KJ(this);MJ(this)},void 0,this);return this};$.g.oM=$.ia;$.g.ZT=$.ia;$.g.ID=$.ia;
$.g.yH=function(a){(this.FX=a)?this.Gk.uf(this.ea):this.Gk.uf(new $.J(0,0,0,0))};
$.g.fo=function(a,b,c){var d=!1,e=!1;if($.n(a)&&$.n(b)&&$.n(c)){if(this.hj!=b||this.dh!=c)this.ba=a,this.hj=b,this.dh=c,d=0<=this.ba}else 0<=this.ba&&(this.ba=-1,this.dh=this.hj=window.NaN),e=!0;d?(a=this.controller.D[a],a=IJ("rowHoverFill",1)(this,0,a),CJ(this).clear().fill(a).moveTo(this.ea.left,this.hj).lineTo(this.ea.left+this.ea.width,this.hj).lineTo(this.ea.left+this.ea.width,this.dh).lineTo(this.ea.left,this.dh).close()):e&&CJ(this).clear()};
$.g.jv=function(a,b,c){var d=FJ(this);$.n(a)?$.n(b)?d.clear().moveTo(this.ea.left,a).lineTo(this.ea.left+this.f,a).lineTo(this.ea.left+this.f,b).lineTo(this.ea.left,b).close().stroke(this.bf().i("stroke")):d.clear().moveTo(this.ea.left,a).lineTo(this.ea.left+this.f,a).stroke(this.bf().i("placementStroke")):d.clear();$.n(c)&&$.uf($.Bp.body,"cursor",c)};
$.g.TR=function(a){var b=this.P();if(b){var c=$.Wj(b.Ha());b=this.ea.top+c.y+this.g+10;var d=c.y+this.ea.height-10-10;c=c.x+this.ea.left+10;var e=c+this.ea.width-10-10,f=a.clientX,h=a.clientY;this.Bw=this.hu=0;if(f<c||f>e)this.hu=f-c;if(h<b||h>d)this.Bw=h-b;var k=this;!this.di||this.Fn||this.Ge||(this.Fn=(0,window.setInterval)(function(){k.gV(a)},100))}};$.g.KR=function(a){this.Ge=a};$.g.NF=function(){};$.g.GV=$.ia;$.g.i3=$.ia;$.g.remove=function(){this.Rc&&this.Rc.parent(null)};$.g.MW=function(){};
$.g.dr=$.ia;$.g.q2=$.ia;$.g.qI=function(a){this.controller.data()&&(this.Db==this&&this.dispatchEvent({type:"rowSelect",actualTarget:a?a.target:this,target:this,originalEvent:a,item:null,prevItem:this.Db.Sk().b}),this.Db.Sk().reset(),this.B(64,1))};$.g.data=function(a){var b=this.controller.data();return $.n(a)?(a!=b&&$.K(a,$.Nt)&&this.controller.data(a),this):b};
$.g.$=function(){this.fd||(this.ea&&!this.ea.height&&this.ea.height||(this.ea=this.lb()),PI(KI(this.controller,this.ea.height-this.g-1).oo(this.oo)));return this};$.g.wj=function(a){return $.n(a)?(this.controller.wj(a),this):this.controller.wj()};$.g.W9=function(){return this.controller.D};$.g.mg=function(a){return $.n(a)?(this.controller.mg(a),this):this.controller.mg()};
$.g.bk=function(a){return $.n(a)?(this.g!=a&&(this.g=a,this.ea||(this.ea=this.lb()),this.Rt&&KI($.V(this.controller),this.ea.height-a-1).da(!1),this.B(4,1)),this):this.g};$.g.Xa=function(a){this.gb||(this.gb=new $.iw(0),$.W(this,"tooltip",this.gb),$.L(this.gb,this.hp,this),$.mw(this.gb,this));return $.n(a)?(this.gb.K(a),this):this.gb};$.g.QL=function(a){return this.Xa(a)};$.g.Wl=function(a){return $.n(a)?(this.controller.Wl(a),this):this.controller.Wl()};
$.g.R=function(){$.Sd(window.document,"mousemove",this.TR,!1,this);this.Ci&&$.Zq(this.Ci,this.dN,this);this.gb&&$.Zq(this.gb,this.hp,this);this.Db.me&&(this.Db.me.ll(),$.qd(this.Db.me));$.Zq(this.controller,this.lV,this);this.Jg&&(this.Jg.ac("drag",this.Vn,!1,this),this.Jg.ac("end",this.QY,!1,this));$.td(this.Ea,this.Ci,this.gb,this.Eh,this.eb,this.Jg,this.Tc,this.Tf,this.Ja,this.Ra,this.Bd,this.ka,this.ya,this.Ud,this.nb,this.xc,this.ab,this.Ob,this.GA,this.dB,this.Gq,this.Rc,this.sw);this.sw=this.Ci=
this.Rc=this.Gq=this.dB=this.GA=this.Ob=this.ab=this.xc=this.nb=this.Ud=this.ya=this.ka=this.Bd=this.Ra=this.Ja=this.Tf=this.Tc=this.Jg=this.controller=this.eb=this.Eh=this.gb=null;jJ.u.R.call(this)};$.g.F=function(){var a=jJ.u.F.call(this);if(a.isStandalone=this.Rt)a.controller=this.controller.F(),a.defaultRowHeight=this.Fu(),a.palette=this.cc().F();$.Hq(this,aM,a,void 0,void 0,!0);a.headerHeight=this.g;a.edit=this.bf().F();return a};
$.g.X=function(a,b){jJ.u.X.call(this,a,b);(this.Rt="isStandalone"in a?a.isStandalone:"controller"in a)&&"controller"in a&&(this.controller=new vI(void 0),$.L(this.controller,this.lV,this),this.controller.K(a.controller),this.Fu(a.defaultRowHeight),this.cc(a.palette));$.zq(this,aM,a,b);"tooltip"in a&&this.Xa().ia(!!b,a.tooltip);this.bk(a.headerHeight);"edit"in a&&this.bf().ia(!!b,a.edit)};$.H(PJ,$.ag);PJ.prototype.Hq=function(){this.deltaY=this.deltaX=0};
PJ.prototype.Rr=function(a,b){if(this.b.Db.altKey||!this.b.bf().enabled()&&!this.b.Ge){var c=this.x-a,d=this.y-b;this.x=a;this.y=b;this.b.scroll(c,d)}};PJ.prototype.reset=function(){this.y=this.x=0};$.H(LJ,$.zp);LJ.prototype.TD=function(){LJ.u.TD.call(this);this.b.altKey=!1};LJ.prototype.XL=function(a,b){LJ.u.XL.call(this,a,b);$.Id($.fl,["visibilitychange","blur"],this.TD,!1,this)};LJ.prototype.IG=function(){LJ.u.IG.call(this);$.Sd($.fl,["visibilitychange","blur"],this.TD,!1,this)};$.H(QJ,$.zg);
$.g=QJ.prototype;$.g.reset=function(){this.fill(null).stroke(null).clear();this.wR=null;this.type=void 0;this.label&&(this.label.oi(),this.label.enabled(!1),this.label.$());this.vb=this.item=this.zU=this.label=null;this.lq=void 0};$.g.wR=null;$.g.label=null;$.g.zU=null;$.g.item=null;$.g.vb=null;$.g.lq=void 0;$.H(TJ,$.Y);$.g=TJ.prototype;$.g.sa=$.Y.prototype.sa|208;$.g.qa=$.Y.prototype.qa;$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.mb=function(a){return $.n(a)?(this.xa.K(a),this):this.xa};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.state=function(a){return $.n(a)?(this.Xb!=a&&(this.Xb=a,this.B(20,1)),this):this.Xb};$.g.Le=function(){return 2==this.Xb};$.g.co=function(a){!this.Le()&&this.bh(a)&&this.state(1)};$.g.Gg=function(a){!this.Le()&&this.bh(a)&&this.state(0)};
$.g.Fv=function(a){this.bh(a)&&(this.Le()?this.state(1):this.state(2))};$.g.padding=function(a,b,c,d){this.Pa||(this.Pa=new $.tu,$.L(this.Pa,this.Pl,this));return $.n(a)?(this.Pa.K.apply(this.Pa,arguments),this):this.Pa};$.g.Pl=function(a){$.X(a,2)&&this.B(4,9)};var bM={};$.hq(bM,[$.Z.U5,$.Z.nJ,$.Z.lJ]);$.U(TJ,bM);var wea=[["cursor",128,1],["width",4,1],["height",4,1]],SJ=$.jq(),RJ,cM={};$.T(cM,[["background",0,0],["content",20,1]]);$.vq(cM,20,16,1,1);RJ=cM;$.xq(TJ,$.Gc(RJ),"normal");$.g=TJ.prototype;
$.g.remove=function(){this.va&&this.va.parent(null)};
$.g.$=function(){if(!this.Bc())return this;$.V(this);this.va||(this.va=$.lk(),this.Ka=new $.ku,this.Ka.ia(!0,this.zc("background")),this.Ka.zIndex(0),this.Ka.P(this.va),this.Ka.ib(this),this.Jt=this.va.rect().stroke(null).fill($.Ul).zIndex(999),$.du(this,this.Jt,this.co,this.Gg,this.Fv,null));this.Sc||(this.Sc=$.pk().zIndex(1));this.pd||(this.pd=$.nk().zIndex(1).stroke(null).fill(null));var a=this.zc("content");this.zM=$.z(a)||$.ea(a);this.M1=$.E(a);this.pd.parent(null);this.Sc.parent(null);this.zM?
this.Sc.parent(this.va):this.M1&&(this.pca=a,this.pd.parent(this.va));this.J(2)&&(this.va.parent(this.P()),this.I(2));this.J(8)&&(this.va.zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.Jt.cursor(this.i("cursor")),this.I(128));this.J(16)&&this.zM&&this.Lh();this.J(4)&&(this.nx(),this.B(80),this.I(4));this.J(16)&&(this.zM&&this.yx(),this.I(16));this.J(64)&&(this.$K(),this.I(64));this.da(!1);return this};
$.g.Rn=function(a,b,c,d){var e=this.zc("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.TQ=function(a,b){var c=this.zc("minFontSize"),d=this.zc("maxFontSize"),e=Math.round((d+c)/2),f=d,h=$.pk();h.ee("aria-hidden","true");this.Lh(h);h.fontSize(d);var k=h.pb();k=this.Rn(k.width,k.height,a,b);if(0>=k)return d;h.fontSize(e);k=h.pb();for(d=k=this.Rn(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.pb();k=this.Rn(k.width,k.height,a,b);if(0>=d*k)break}if(!k)return $.qd(h),e;do e+=
d,h.fontSize(e),k=h.pb(),k=this.Rn(k.width,k.height,a,b);while(0>d*k);$.qd(h);return e};$.g.AB=function(){var a=this.zc("adjustFontSize");return a&&(a.width||a.height)};$.g.yx=function(){if(this.AB()){var a=this.TQ(this.yi,this.wi);this.Sc.fontSize(a)}this.Sc.x(this.ug);this.Sc.y(this.vg-1);this.Sc.clip(this.vl)};$.g.$K=function(){$.V(this.Ka);this.Ka.ja(this.vl);this.Ka.ia(!1,this.zc("background"));this.Ka.$();this.Ka.da(!1)};$.g.gg=function(a){$.X(a,1)&&(a.target.I(4294967295),this.ta(1))};
$.g.Qg=function(){return this.wO[this.Xb]};$.g.zc=function(a){if("background"==a){a={};var b=$.Ga(a,this.aK[this.Xb]);$.Sc.apply(null,b)}else a=$.Xq.call(this,a);return a};
$.g.Lh=function(a){var b=a||this.Sc;b.color(this.zc("fontColor"));b.opacity(this.zc("fontOpacity"));b.rm(this.zc("selectable"));b.td(this.zc("disablePointerEvents"));if(this.J(4)||a){a=this.zc("content");var c=this.zc("useHtml");$.n(a)&&(c?b.htmlText(a):b.text(a));b.fontFamily(this.zc("fontFamily"));b.fontStyle(this.zc("fontStyle"));b.fontVariant(this.zc("fontVariant"));b.fontWeight(this.zc("fontWeight"));b.fontSize(this.zc("fontSize"));b.Lq(this.zc("fontDecoration"));b.direction(this.zc("textDirection"));
b.wu(this.zc("wordBreak"));b.wordWrap(this.zc("wordWrap"));b.letterSpacing(this.zc("letterSpacing"));b.lineHeight(this.zc("lineHeight"));b.textIndent(this.zc("textIndent"));b.textShadow(this.zc("textShadow"));b.vAlign(this.zc("vAlign"));b.km(this.zc("hAlign"));b.textOverflow(this.zc("textOverflow"))}};
$.g.nx=function(){var a=this.ja(),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.yi=b=$.M(d,k),f=Math.abs(b),a=!1):(b=0,a=!0);if(null!=e){this.wi=c=$.M(e,l);h=Math.abs(c);var m=!1}else c=0,m=!0}else $.wo(d)?(a=!0,b=0):(a=!1,this.yi=b=$.N(d),f=Math.abs(b)),$.wo(e)?(m=!0,c=0):(m=!1,this.wi=c=$.N(e),h=Math.abs(c));var p=$.Pm(this.Re);p.x=k?$.M(p.x,k):0;p.y=l?$.M(p.y,l):0;this.zM&&(k=this.padding(),this.Sc.width(null),this.Sc.height(null),a?(this.Ym=
b+=this.Sc.pb().width,this.yi=k.rk(b)):this.Ym=k.wg(f),this.Sc.width(this.Ym),m?(this.Wm=c+=this.Sc.pb().height,this.wi=k.Jj(c)):this.Wm=k.Jh(h),this.Sc.height(this.Wm),this.ug=$.M(k.i("left"),this.yi),this.vg=$.M(k.i("top"),this.wi),this.ug+=p.x,this.vg+=p.y);this.M1&&(d={path:this.pd,width:d,height:e,state:this.Le()?"selected":1==this.Xb?"hovered":"normal"},this.pca.call(d,this.pd),d=this.pd.pb(),a&&(this.yi=d.left+d.width),m&&(this.wi=d.top+d.height),this.pd.jc(1,0,0,1,p.x,p.y));this.vl=new $.J(p.x,
p.y,this.yi,this.wi);this.Jt.uf(this.vl)};$.g.position=function(a){return $.n(a)?(this.Re=a,this.B(4,9),this):this.Re};$.g.F=function(){var a=TJ.u.F.call(this);$.Hq(this,bM,a,"Button");a.normal=this.ca.F();a.hovered=this.xa.F();a.selected=this.Ca.F();a.padding=this.padding().F();return a};$.g.X=function(a,b){TJ.u.X.call(this,a,b);$.zq(this,bM,a,b);this.padding().ia(!!b,a.padding);this.ca.ia(!!b,a.normal);this.xa.ia(!!b,a.hovered);this.Ca.ia(!!b,a.selected)};
$.g.R=function(){$.td(this.Jt,this.Sc,this.pd,this.Ka,this.va,this.Pa);this.Pa=this.va=this.Ka=this.pd=this.Sc=this.Jt=null;$.td(this.ca,this.xa,this.Ca);this.Ca=this.xa=this.ca=null;TJ.u.R.call(this)};var dM=TJ.prototype;dM.normal=dM.Sa;dM.hovered=dM.mb;dM.selected=dM.selected;dM.padding=dM.padding;$.H(UJ,TJ);UJ.prototype.ld=function(){this.ca.Fa(this.ma);$.W(this,"normal",this.ca);this.ca.ia(!0,{});$.W(this.ca,"background",this.ca.background());$.W(this,"hovered",this.xa);this.xa.ia(!0,{});$.W(this.xa,"background",this.xa.background());$.W(this,"selected",this.Ca);this.Ca.ia(!0,{});$.W(this.Ca,"background",this.Ca.background())};
UJ.prototype.Fv=function(a){this.ib(null);if(this.bh(a)){this.Le()?this.state(1):this.state(2);a=this.ke;var b=!this.Le(),c=a.controller.D[this.b];if(c){var d={item:c,collapsed:b};c.get("anychartIsLoadable")&&!c.Zb()?(d.type="ganttloaddata",b=$.n(b)?b:!1,c.o("collapsed",b),$.up(a.Db,d)):c.Zb()&&(d.type="rowcollapseexpand",a.Db.dispatchEvent(d)&&c.o("collapsed",b))}}this.ib(this.ke)};$.H(VJ,$.Y);VJ.prototype.sa=$.Y.prototype.sa|4048;VJ.prototype.qa=$.Y.prototype.qa|$.oE|$.pE|4096;var eM={};$.gq(eM,0,"width",$.Qq);$.gq(eM,0,"defaultWidth",$.qq);$.gq(eM,0,"collapseExpandButtons",$.uq);$.gq(eM,0,"depthPaddingMultiplier",$.qq);$.U(VJ,eM);$.g=VJ.prototype;
$.g.Vha=function(a,b){var c=$.z(b)?xea(this.ke,b):b;if($.D(c)){$.V(this);var d=c.formatter,e=c.width;c=c.textStyle;$.n(d)&&this.labels().format(function(){return d(this.item.get(a))});$.n(e)&&(this.width(e),this.defaultWidth(e));$.n(c)&&this.labels(c);this.da(!0)}return this};$.g.cca=function(){return""};$.g.LF=$.ia;$.g.Rba=function(a){if($.X(a,16)){WJ(this);a=2048;if(fI(this.labels())||this.mD!=this.LF)a|=1024;$.td(this.kw);this.kw.length=0;this.B(a)}};
$.g.xy=function(){var a;this.Gr=this.ke.controller.Gr;if($.Ep()){var b=this.ke.lw,c=[];for(a=b.first;a<=b.Tv;a++)this.re[a]||(this.re[a]=new $.vx),c.push(this.re[a]);return c}if(!this.re.length)for(a=0;a<this.Gr.length;a++)b=new $.vx,this.re.push(b);return this.re};$.g.NB=function(a){var b=this.mD!=this.LF,c;if($.Ep()){var d=this.ke.lw;for(c=d.first;c<=d.Tv;c++)XJ(this,c,b,a)}else for(c=0;c<this.re.length;c++)XJ(this,c,b,a)};$.g.la=function(){return this.wd};
$.g.labels=function(a){this.Il||(this.Il=new $.ux,this.Il.Fa("ganttDefaultSimpleLabelsSettings"),0==this.wd?this.Il.Fa({format:"{%linearIndex}"}):1==this.wd&&this.Il.Fa({format:"{%name}"}),$.L(this.Il,this.AU,this));return $.n(a)?(this.Il.K(a),this.B(128,1),this):this.Il};
$.g.AU=function(a){var b=0,c=1;$.X(a,1)&&(b|=512,$.Ep()&&(c|=4096));$.X(a,8)&&(b|=1024,c|=4096);$.X(a,2)&&(b|=128,c|=4096);$.X(a,32768)&&(b|=128,this.Il.enabled()&&(c|=4096));$.Ep()&&c&4096&&(this.ke.lw.reset=!0,NI(this.ke.controller),this.ke.Db.dispatchEvent("workingcancel"),this.I(b));this.B(b,c)};$.g.X1=function(a){return $.n(a)?(this.mD=a||this.LF,$.td(this.kw),this.kw.length=0,this.B(1024,1),this):this.mD};
$.g.title=function(a){this.sb||(this.sb=new $.Nv,$.W(this,"title",this.sb),$.V(this.sb),this.sb.P(YJ(this)).margin(0),this.sb.da(!1),$.L(this.sb,this.uq,this),this.sb.ib(this));return $.n(a)?($.V(this),this.sb.K(a),this.sb.P(YJ(this)),this.da(!0),this):this.sb};$.g.uq=function(a){$.X(a,1)&&this.ke.B(16,9)};$.g.ak=function(){this.Rc||(this.Rc=$.lk());return this.Rc};$.g.position=function(a){return $.n(a)?(this.Re&&this.Re.x==a.x&&this.Re.y==a.y||(this.Re=a,this.Ya=null,this.B(4,9)),this):this.Re};
$.g.height=function(a){return $.n(a)?(this.nf!=a&&(this.nf=a,this.Ya=null,this.B(4,9)),this):this.nf};$.g.US=function(){this.Fh||(this.nm=$.kg().Jq(),this.Fh=new $.Uh(this.nm));return this.Fh};$.g.remove=function(){this.Rc&&this.Rc.parent(null);this.ke.B(512,1)};$.g.nx=function(){if(this.Ya)return this.Ya;var a=this.ke.lb(),b=$.M(this.i("width")||0,a.width);b=Math.max(fM,b);var c=$.M(this.nf||0,a.height),d=$.Pm(this.Re);return this.Ya=new $.J(a.left+d.x,a.top+d.y,b,c)};$.g.lb=function(){return this.nx()};
$.g.uba=function(a){$.X(a,1)&&this.B(256,1)};
$.g.$=function(){if(this.Bc()){var a=this.P(),b=a?a.Ha():null,c=b&&!b.ff();c&&b.suspend();this.ak().Zb()||this.ak().fc(this.US()).fc($J(this)).fc(YJ(this));this.J(2)&&(this.ak().parent(a),this.I(2));this.J(4)&&(this.nx(),this.ak().clip(this.Ya),this.B(128),this.I(4));$.Ep()||(this.J(2048)&&(this.I(2048),this.B(128)),this.J(512)&&(this.I(512),this.B(128)),this.J(1024)&&(this.I(1024),this.B(128)));var d,e;if(this.J(256)){a=this.ke.controller.D;var f=this.ke.mg();var h=this.ke.wj();var k=-1;for(d=f;d<=
h;d++){var l=a[d];if(!l)break;this.i("collapseExpandButtons")&&l.Zb()&&(k++,(e=this.wm[k])&&e.$())}this.I(256)}if(this.J(128)){k=this.ke.bk();ZJ(this).clear().moveTo(this.Ya.left,this.Ya.top).lineTo(this.Ya.left+this.Ya.width,this.Ya.top).lineTo(this.Ya.left+this.Ya.width,this.Ya.top+k).lineTo(this.Ya.left,this.Ya.top+k).close();a=new $.J(this.Ya.left,this.Ya.top,this.Ya.width,k);$.V(this.title());this.sb.ja(a);this.sb.height(k);this.sb.da(!1);this.B(64);a=this.ke.controller.D;f=this.ke.mg();h=this.ke.wj();
var m=this.ke.Wl(),p=this.labels().padding(),q=this.Ya.top+k+1-m;m=$.M(p.i("left"),this.Ya.width);this.BU.length=0;k=-1;var r=this.ke.buttons();d=r.Sa().i("content");var t=r.mb().i("content"),u=r.selected().i("content"),v=r.F();v.normal.content=d;v.hovered.content=$.Ro(t,d);v.selected.content=$.Ro(u,d);r.I(4294967295);if(!(0,window.isNaN)(this.NV)&&!(0,window.isNaN)(this.MV))for(d=this.NV;d<=this.MV;d++)if(t=this.re[d])$.Dx(t,null),$.Fx(t);this.NV=a[f]?a[f].o("index"):window.NaN;this.MV=a[h]?a[h].o("index"):
window.NaN;for(d=f;d<=h;d++){l=a[d];if(!l)break;f=xI(this.ke.controller,l);t=l.o("depth")||0;t*=this.i("depthPaddingMultiplier");var w=m+t;u=0;var x=kJ(l);if(this.i("collapseExpandButtons")&&(l.Zb()||x.uM)){k++;e=this.wm[k];e||(e=new UJ(this.ke),this.wm.push(e),e.ia(!0,v),e.zIndex(10),e.P($J(this)),$.L(e,this.uba,this));$.V(e);e.K(v);u=(r.i("width")||0)+Gea;var y=q+(f-(r.i("height")||0))/2,B="svg"===$.hk?.5:0;x=x.uM&&!l.Zb()||l.o("collapsed")?1==e.Xb?1:0:2;var G=e.enabled(!0);$.n(d)?G.b=d:G=G.b;G.ja(this.Ya).position({x:Math.floor(this.Ya.left+
w)+B,y:Math.floor(y)+B}).state(x);e.da(!1);e.$()}e=q+f;l=l.o("index");if(w=this.re[l])this.labels().enabled()?(q=p.nj(new $.J(this.Ya.left,q,this.Ya.width,f)),q.left+=u+t,q.width-=u+t,$.Dx(w,this.nm),$.Kx(w,q,b),$.Ex(w),this.BU[l]=w.text()):$.Dx(w,null);q=e+this.ke.oo}for(;++k<this.wm.length&&this.i("collapseExpandButtons")&&this.wm[k].enabled();)this.wm[k].enabled(!1).$();$.Ep()?this.I(128):this.I(1664)}this.J(16)&&(ZJ(this).fill(this.ke.i("headerFill")),this.B(64),this.I(16));this.J(64)&&(this.sb.$(),
this.I(64));this.J(8)&&(this.ak().zIndex(this.zIndex()),this.I(8));c&&b.resume()}return this};$.g.X=function(a,b){VJ.u.X.call(this,a,b);$.zq(this,eM,a,b);this.labels().ia(!!b,a.labels);this.title().ia(!!b,a.title);this.X1(a.labelsOverrider||a.cellTextSettingsOverrider)};$.g.F=function(){var a=VJ.u.F.call(this);$.Hq(this,eM,a,void 0,void 0,!0);a.labels=this.labels().F();a.title=this.title().F();this.mD!=this.LF&&$.el(8,null,["Data Grid Column cellTextSettingsOverrider"]);return a};
$.g.R=function(){WJ(this);$.td(this.Il,this.kw,this.sb,this.Ly,this.TI,this.Gq,this.Rc,this.wm);this.Il=null;this.kw.length=0;this.Rc=this.Gq=this.TI=this.Ly=this.sb=null;this.wm.length=0;VJ.u.R.call(this)};var gM=VJ.prototype;gM.title=gM.title;gM.enabled=gM.enabled;gM.labels=gM.labels;gM.labelsOverrider=gM.X1;gM.setColumnFormat=gM.Vha;gM.draw=gM.$;gM.getPixelBounds=gM.lb;$.H(aK,$.sy);$.g=aK.prototype;$.g.pc=function(){aK.u.pc.call(this);var a=this.Ta();$.Nj(a,"anychart-label-input");this.Hl=new $.zp(this.Ta())};$.g.Za=function(a){if($.n(a)){this.xb=a;if(a=this.Ta()){var b=this.xb;b=$.hc("padding: 0px; position: absolute; left: %spx; top: %spx; width: %spx; height: %spx",b.left,b.top,b.width,b.height);$.De(a,{style:b})}return this}return this.xb};$.g.show=function(a,b){var c=this.Ta();this.Za(b);c&&($.xy(this,a||""),$.Pf(c,!0))};
$.g.Oc=function(){var a=this.Ta();a&&$.Pf(a,!1)};$.g.yU=function(a){var b=bK(this,a,"editinputkeypress");!this.dispatchEvent(b)||13!=a.keyCode&&27!=a.keyCode||(b=bK(this,a,13==a.keyCode?"editinputsubmit":"editinputescape"),this.dispatchEvent(b)&&(this.Ta().blur(),this.Oc()))};$.g.zS=function(a){a=bK(this,a,"editinputfocus");this.dispatchEvent(a)};
$.g.OQ=function(a){var b=bK(this,a,"editinputblur");this.dispatchEvent(b)&&(b=bK(this,a,"editinputbeforehide"),this.dispatchEvent(b)&&(b=bK(this,a,"editinputhide"),this.dispatchEvent(b)&&this.Oc()))};$.g.pg=function(){aK.u.pg.call(this);$.Id(this.Hl,"key",this.yU,!1,this);var a=$.oy(this);a.ra(this.Ta(),"focus",this.zS);a.ra(this.Ta(),"blur",this.OQ)};$.g.oh=function(){var a=$.oy(this);$.Sd(this.Hl,"key",this.yU,!1,this);a.ac(this.Ta(),"focus",this.zS);a.ac(this.Ta(),"blur",this.OQ);aK.u.oh.call(this)};
$.g.R=function(){var a=$.oy(this);$.Sd(this.Hl,"key",this.yU,!1,this);a.ac(this.Ta(),"focus",this.zS);a.ac(this.Ta(),"blur",this.OQ);$.qd(this.Hl);aK.u.R.call(this)};$.H(dK,jJ);dK.prototype.sa=jJ.prototype.sa|512;var Gea=5,fM=20;dK.prototype.Dy=function(a){return $.n(a)?String(a):""};dK.prototype.zX=function(a){return $.n(a)?$.ea(a)?a.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1,"):String(a):""};dK.prototype.AX=function(a){return $.ea(a)?$.Qm(100*a,2)+"%":$.n(a)?$.oo(a)?a:a+"%":""};dK.prototype.rX=function(){};var hM={};$.hq(hM,[[1,"columnStroke",$.Dq],[1,"headerFill",$.Eq],[0,"onEditStart",$.Vq],[0,"onEditEnd",$.Vq],[0,"fixedColumns",$.uq]]);$.U(dK,hM);$.g=dK.prototype;
$.g.rv=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()&&!h.fd&&(d++,h=[h,d],h.push.apply(h,$.Ja(arguments,2)),a.apply(b||this,h))}};$.g.eA=function(a){return $.n(a)?(this.U!=a&&(this.U=a,this.B(512,1)),this):this.U};$.g.ZB=function(a,b){return cK(this,a,b)};$.g.sY=function(a){return this.ZB(this.b.length,a)};$.g.pda=function(){for(var a=0,b=0;b<this.b.length;b++){var c=this.b[b];c&&!c.fd&&a++}return a};$.g.ID=function(){$.Ep()?jK(this):Cea(this)};
$.g.hia=function(a,b){var c=b.target;c.Ya||(c.Ya=c.lb());this.rv(this.Dha,this,a,(new $.J($.Qm(c.Ya.left,1),$.Qm(c.Ya.top,1),$.Qm(Math.min(c.Re,c.Ya.width-c.D),1),$.Qm(c.Ya.height,1))).width+fM)};$.g.iia=function(a,b){this.rv(this.bca,this,a,b)};$.g.Dha=function(a,b,c,d){c==b&&(b={type:"splitterpositionchange",columnIndex:a.la(),targetColumn:a,linearColumnIndex:b,oldWidth:a.lb().width,newWidth:d},a.width(d),$.up(this,b))};
$.g.bca=function(a,b,c,d){c==b&&(b=a.title(),c=b.height(),d.offsetY-this.ea.top<c&&(d=b.uG().width,d+=b.padding().i("left")+b.padding().i("right"),a.width(a.defaultWidth()?a.defaultWidth():d),this.i("fixedColumns")&&this.Db.B(4,1)))};$.g.Nba=function(a){var b=0;$.X(a,1)&&(b|=16);$.X(a,8)&&(b|=512);$.X(a,4096)&&(b|=64,$.Ep()&&(this.lw.reset=!0));$.Ep()&&$.X(a,4096)&&this.P()&&this.I(b);var c=!1;this.i("fixedColumns")&&$.X(a,32776)&&(b|=4,c=!0);this.B(b,1);c&&this.Db.B(4,1)};
$.g.Zp=function(a){if(!this.Dh){this.Dh=new gI;this.Dh.X($.wm("defaultScrollBar"));this.Dh.pe("horizontal");var b=this;this.Dh.ra("scrollchange",function(a){b.eA(Math.round(a.startRatio*b.f))});$.L(this.Dh,this.iW,this)}return $.n(a)?(this.Dh.K(a),this):this.Dh};$.g.iW=function(a){$.X(a,8)&&this.B(4,1)};
$.g.scroll=function(a,b){$.kr(this,this.controller);this.eA(this.U+a);var c=this.controller.mg(),d=this.controller.b,e=this.controller.Wl();RI(this.controller,(c?d[c-1]:0)+(e+b));$.lr(this,this.controller);return!0};
$.g.Mr=function(){var a=fK(this),b=this.ea.top+this.bk();a.clear().moveTo(this.ea.left,this.ea.top).lineTo(this.ea.left+this.ea.width,this.ea.top).lineTo(this.ea.left+this.ea.width,b).lineTo(this.ea.left,b).close();a=gK(this);for(var c=b=0,d=this.b.length;c<d;c++){var e=this.b[c];e&&e.enabled()&&($.oo(e.i("width"))&&(e.Ya=null),e=e.nx().width,b+=e+a)}this.f=b;this.B(512)};$.g.Iu=function(){fK(this).fill(this.i("headerFill"));this.rv(function(a){a.B(16);a.$()})};$.g.ZT=function(a){a.fc(uJ(this)).fc(vJ(this)).fc(wJ(this)).fc(xJ(this)).fc(yJ(this)).fc(zJ(this))};
$.g.GV=function(){this.rv(function(a){a.B(128);a.$()})};$.g.lb=function(){var a=dK.u.lb.call(this);this.i("fixedColumns")&&(a.width=hK(this));return a};
$.g.MW=function(){if(this.J(512)){var a=0;var b=this.ea.left;var c=this.ea.top;var d=IJ("columnStroke",2)(this,0),e=$.Wo(d),f=[],h,k;var l=this.tw.length=0;for(h=this.b.length;l<h;l++)if(k=this.b[l])if(k.enabled()){var m=k.nx().width;a+=m+e;f.push(k)}else k.$();this.f=a;this.ea.width>this.f&&(this.U=0);this.U=$.Za(this.U,0,Math.abs(this.ea.width-this.f));a=-this.U;l=0;for(h=f.length;l<h;l++){k=f[l];$.V(k);k.position({x:a,y:0});k.height(this.ea.height);m=k.nx().width;var p=this.j[l],q=m,r=!(this.i("fixedColumns")&&
l==f.length-1);p&&($.V(p),r?(p.stroke(d),p.ba=d,this.tw.push(a+m+e),q+=e,p.Za({left:b+a+fM,top:c,width:q+this.ea.width,height:this.ea.height}).To(!1).enabled(!0).position(m-fM).da(!1).$().To(!0)):p.enabled(!1).da(!1).$());a+=q;k.da(!1);k.$()}for(this.Ay=!0;l<this.j.length&&this.j[l].enabled();)this.j[l].enabled(!1),l++;this.Dh&&(b=new $.J(this.ea.left-this.U,0,this.f,0),c=new $.J(this.ea.left,0,this.ea.width,0),$.V(this.Dh).To(!1).Xf(b).WO(c).$().To(!0).da(!1),this.Dh.P()&&this.Dh.$());this.I(512)}};
$.g.O_=function(a){a={columnIndex:this.Pg.la(),item:this.hc,value:a.value};if($.E(this.i("onEditEnd"))&&(a=this.i("onEditEnd").call(a))&&"object"==$.ka(a)&&!a.cancelEdit&&"object"==$.ka(a.itemMap)&&this.hc){a=a.itemMap;var b=this.controller.data();$.V(b);for(var c in a)a.hasOwnProperty(c)&&this.hc.set(c,a[c]);b.da(!0);this.qE=!0;this.ip=!1}};$.g.Dca=function(a){this.qE||this.ip||(this.O_.call(this,a),this.ip=!1)};$.g.Eca=function(){this.ip=!0};$.g.Fca=function(){this.Db.yH(!0);this.qE=!1};
$.g.Gca=function(){this.qE=this.ip=!1;this.G.reset();this.Db.yH(!1)};
$.g.tY=function(a){if(a&&this.bf().i("enabled")){this.lm=!1;if(!this.G){this.G=new aK;var b=this.Db.P().Ha();this.G.Fd(b.P());this.G.ra("editinputsubmit",this.O_,!1,this);this.G.ra("editinputescape",this.Eca,!1,this);this.G.ra("editinputblur",this.Dca,!1,this);this.G.ra("editinputfocus",this.Fca,!1,this);this.G.ra("editinputhide",this.Gca,!1,this)}this.hc=a.item;b=a.hoveredIndex;var c=a.index,d=!1;if(c==this.controller.mg())$.V(this.controller).mg(c).Wl(0).da(!0);else if(c==this.controller.wj()){this.controller.wj(c);
d=this.So;var e=Math.min(d.length-1,b);var f=this.ea.top+this.bk()+1;c=b?d[e-1]:0;f+=c;e=f+(d[e]-c-this.oo)-2;d=!0}c=~$.Na(this.tw,a.originalEvent.offsetX-this.ea.left);for(var h=null,k=-1,l=0,m=this.b.length;l<m;l++){var p=this.b[l];if(p&&p.enabled()&&(k++,k==c)){h=p.nx();this.Pg=p;break}}c=h;0>c.left&&(this.eA(this.eA()+c.left),c.left=0);h=xI(this.controller,a.item);k=a.hoveredIndex?2:1;if(a=c?new $.J(c.left,a.startY,c.width-2,h-k):null)d&&(a.top=f,a.height=e-f),this.Pg&&(f=this.Pg.BU,e=Math.min(b,
f.length-1),b=f[e],f={columnIndex:this.Pg.la(),item:this.hc,value:b},$.E(this.i("onEditStart"))&&(f=this.i("onEditStart").call(f))&&"object"==$.ka(f)&&!f.cancelEdit&&this.hc&&(this.G.show(null!=f.value?f.value:b,a),b=this.G,a=$.wy(b),b.b=!0,b.Ta().focus(),a||$.uy()||(b.Ta().value=b.g),b.Ta().select(),$.uy()||(b.Bg&&b.Bg.ve(b.Ta(),"click",b.GT),$.yj(b.d0,10,b))))}};$.g.pI=function(a){this.fV(a)};$.g.fV=function(a){this.bf().i("enabled")&&(this.Zi=a.item)};
$.g.gV=function(){if(this.di&&(this.hu||this.Bw)){var a=0,b=0;this.hu&&(a=0<this.hu?30:-30);this.Bw&&(b=0<this.Bw?30:-30);this.scroll(a,b)}};$.g.buttons=function(a){this.wm||(this.wm=new UJ(this),$.W(this,"buttons",this.wm),this.wm.ld(),$.L(this.wm,this.vba,this));return $.n(a)?(this.wm.K(a),this):this.wm};$.g.vba=function(a){$.X(a,1)&&(this.buttons().I(4294967295),this.GV())};
$.g.F=function(){var a=dK.u.F.call(this);$.Hq(this,hM,a,void 0,void 0,!0);a.horizontalOffset=this.eA();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.Dh&&(a.horizontalScrollBar=this.Zp().F());a.tooltip=this.Xa().F();return a};
$.g.X=function(a,b){dK.u.X.call(this,a,b);$.zq(this,hM,a,b);this.eA(a.horizontalOffset);this.buttons().ia(!!b,a.buttons);"defaultColumnSettings"in a&&this.rX();this.onEditStart(a.onEditStart);this.onEditEnd(a.onEditEnd);if("columns"in a)for(var c=0,d=a.columns.length;c<d;c++){var e=a.columns[c];e&&cK(this,c,e,b)}"horizontalScrollBar"in a&&this.Zp(a.horizontalScrollBar)};$.g.R=function(){$.td(this.Dh,this.Ga,this.j,this.b,this.wm);this.Ga=this.Dh=this.wm=null;this.j.length=0;this.b.length=0;dK.u.R.call(this)};
$.H(kK,dK);$.ju(kK,dK);kK.prototype.Sw=function(a){return $.n(a)?(QI(this.controller).K(a),this):QI(this.controller)};kK.prototype.F=function(){var a=kK.u.F.call(this);a.verticalScrollBar=this.Sw().F();return a};kK.prototype.X=function(a){kK.u.X.call(this,a);"verticalScrollBar"in a&&this.Sw(a.verticalScrollBar)};var iM=dK.prototype;iM.edit=iM.bf;iM.column=iM.ZB;iM.data=iM.data;iM.addColumn=iM.sY;iM.startIndex=iM.mg;iM.endIndex=iM.wj;iM.getVisibleItems=iM.W9;iM.horizontalScrollBar=iM.Zp;
iM.horizontalOffset=iM.eA;iM.verticalOffset=iM.Wl;iM.tooltip=iM.Xa;iM.draw=iM.$;iM.buttons=iM.buttons;iM.getColumnsCount=iM.pda;iM=kK.prototype;$.F("anychart.standalones.dataGrid",function(){var a=new kK;a.K($.mm("standalones.dataGrid"));return a});iM.draw=iM.$;iM.data=iM.data;iM.addColumn=iM.sY;iM.parentBounds=iM.ja;iM.container=iM.P;iM.headerHeight=iM.bk;iM.verticalScrollBar=iM.Sw;iM.defaultRowHeight=iM.Fu;iM.buttons=iM.buttons;$.H(lK,$.yy);var jM={};$.hq(jM,[[1,"stroke",$.Dq],[0,"value",$.tq]]);$.U(lK,jM);$.g=lK.prototype;$.g.qa=$.yy.prototype.qa;$.g.sa=$.yy.prototype.sa;$.g.scale=function(a){return $.n(a)?($.el(500),this):this.np()};$.g.pe=function(a){return $.n(a)?("horizontal"==a&&$.el(501),this):"vertical"};$.g.Mr=function(){this.Np()};$.g.Iu=function(){$.zy(this).stroke(this.i("stroke"))};$.g.R=function(){this.pa("stroke",null);lK.u.R.call(this)};$.g.F=function(){var a=lK.u.F.call(this);$.Hq(this,jM,a);return a};
$.g.X=function(a,b){lK.u.X.call(this,a,b);$.zq(this,jM,a)};var kM=lK.prototype;kM.scale=kM.scale;kM.layout=kM.pe;kM.isHorizontal=kM.Hb;$.H(mK,$.yy);var lM={};$.hq(lM,[[1,"fill",$.Eq],[0,"from",$.tq],[0,"to",$.tq]]);$.U(mK,lM);$.g=mK.prototype;$.g.bQ=function(){return"From: "+this.i("from")+" to: "+this.i("to")};$.g.qa=$.yy.prototype.qa;$.g.sa=$.yy.prototype.sa;$.g.pe=function(a){return $.n(a)?("horizontal"==a&&$.el(501),this):"vertical"};$.g.scale=function(a){return $.n(a)?($.el(500),this):this.np()};$.g.Mr=function(){$.Ay(this)};$.g.Iu=function(){$.zy(this).stroke(null).fill(this.i("fill"))};
$.g.R=function(){this.pa("fill",null);mK.u.R.call(this)};$.g.F=function(){var a=mK.u.F.call(this);$.Hq(this,lM,a);return a};$.g.X=function(a,b){mK.u.X.call(this,a,b);$.zq(this,lM,a,b)};var mM=mK.prototype;mM.scale=mM.scale;mM.layout=mM.pe;mM.isHorizontal=mM.Hb;$.H(nK,$.Ky);var nM={};$.hq(nM,[[0,"value",$.tq]]);$.U(nK,nM);$.g=nK.prototype;$.g.qa=$.Ky.prototype.qa;$.g.sa=$.Ky.prototype.sa;$.g.scale=function(a){return $.n(a)?($.el(500),this):this.np()};$.g.pe=function(a){return $.n(a)?("horizontal"==a&&$.el(501),this):"vertical"};$.g.F=function(){var a=nK.u.F.call(this);$.Hq(this,nM,a);return a};$.g.X=function(a,b){nK.u.X.call(this,a,b);$.zq(this,nM,a,b)};var oM=nK.prototype;oM.scale=oM.scale;oM.layout=oM.pe;oM.background=oM.background;oM.padding=oM.padding;
oM.isHorizontal=oM.Hb;$.H(oK,$.ag);oK.prototype.Hq=function(){this.deltaY=this.deltaX=0};oK.prototype.Rr=function(a){this.element.jc(1,0,0,1,a,0)};oK.prototype.Yv=function(){return 0};$.H(pK,$.ag);$.g=pK.prototype;$.g.Hq=function(){this.deltaY=this.deltaX=0};$.g.Rr=function(a){this.element.jc(1,0,0,1,a,0);this.Ed=(a-this.f.left)/this.f.width};$.g.M0=function(){var a=this.element.tag.item;return($.n(a.o("progressValue"))?a.o("progressValue"):a.o("autoProgress"))||0};$.g.oA=function(a){var b=this.element.tag.Za,c=this.M0();c*=b.width;this.f.left=-c;this.f.width=b.width;return $.Za(a,-c,b.width-c)};$.g.Yv=function(){return 0};$.H(qK,pK);qK.prototype.M0=function(){var a=this.element.tag.item.get("baselineProgressValue")||0;return $.oo(a)?(0,window.parseFloat)(a)/100:+a};$.H(rK,$.ag);rK.prototype.Hq=function(){this.deltaY=this.deltaX=0};$.H(sK,$.ag);sK.prototype.Yv=function(){return 0};$.H(tK,$.Yq);tK.prototype.qa=2;tK.prototype.sa=$.Yq.prototype.sa;var pM={};$.hq(pM,[[1,"fill",$.Eq],[1,"stroke",$.Dq],[0,"size",$.qq],[0,"type",$.Ik],[0,"verticalOffset",$.qq],[0,"horizontalOffset",$.qq],[0,"enabled",$.Nq]]);$.U(tK,pM);$.g=tK.prototype;$.g.i=$.Xq;$.g.Qg=$.Wq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Md=function(){var a=[this.ma];this.Y&&(a=$.Ga(a,this.Y.Md()));return a};$.g.Ld=function(){var a=[this.Ma];this.Y&&(a=$.Ga(a,this.Y.Ld()));return a};
$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(this.Rb=null,null===a?($.Zq(this.Y,this.Qc,this),this.Y=null):(this.Y&&$.Zq(this.Y,this.Qc,this),this.Y=a,$.L(this.Y,this.Qc,this))),this):this.Y};$.g.Qc=function(){this.ta(2)};$.g.Ce=function(a,b){return $.da(b)||null===b?(a?this.ma.enabled=b:this.enabled(b),!0):!1};$.g.X=function(a,b){tK.u.X.call(this,a,b);$.zq(this,pM,a,b)};
$.g.F=function(){var a=tK.u.F.call(this);$.Hq(this,pM,a,void 0,void 0,!0);this.th("enabled")&&null!==a.enabled||delete a.enabled;return a};$.g.R=function(){this.Y&&($.Zq(this.Y,this.Qc,this),this.Y=null);this.Rb=null;tK.u.R.call(this)};$.H(uK,$.Yq);$.g=uK.prototype;$.g.qa=2;$.g.sa=$.Yq.prototype.sa;$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(this.Rb=null,null===a?($.Zq(this.Y,this.Qc,this),this.pu().parent(null),this.it().parent(null),this.Y=null):(this.Y&&$.Zq(this.Y,this.Qc,this),this.Y=a,this.pu().parent(this.Y.pu()),this.it().parent(this.Y.it()),$.L(this.Y,this.Qc,this))),this):this.Y};$.g.Qc=function(){this.ta(2)};$.g.Qg=$.Wq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};
$.g.Md=function(){var a=[this.ma];this.Y&&(a=$.Ga(a,this.Y.Md()));return a};$.g.Ld=function(){var a=[this.Ma];this.Y&&(a=$.Ga(a,this.Y.Ld()));return a};$.g.pu=function(a){this.f||(this.f=new tK,$.W(this,"thumb",this.f),$.L(this.f,this.FJ,this));return $.n(a)?(this.f.K(a),this):this.f};$.g.it=function(a){this.b||(this.b=new tK,$.W(this,"connectorThumb",this.b),$.L(this.b,this.FJ,this));return $.n(a)?(this.b.K(a),this):this.b};$.g.FJ=function(){this.ta(2)};
$.g.X=function(a,b){uK.u.X.call(this,a,b);this.pu().ia(!!b,a.thumb);this.it().ia(!!b,a.connectorThumb)};$.g.F=function(){var a=uK.u.F.call(this);a.thumb=this.pu().F();a.connectorThumb=this.it().F();return a};$.g.R=function(){this.Y&&($.Zq(this.Y,this.Qc,this),this.Y=null);this.Rb=null;$.Zq(this.f,this.FJ,this);$.Zq(this.b,this.FJ,this);$.td(this.f,this.b);this.b=this.f=null;uK.u.R.call(this)};var qM=uK.prototype;qM.thumb=qM.pu;qM.connectorThumb=qM.it;$.H(vK,$.Yq);vK.prototype.qa=2;vK.prototype.sa=$.Yq.prototype.sa;var rM={};$.hq(rM,[[1,"fill",$.Eq],[1,"stroke",$.Dq],[0,"enabled",$.Nq]]);$.U(vK,rM);$.g=vK.prototype;$.g.i=function(a){var b=$.Xq.call(this,a);"enabled"==a&&(b=null!=b?b:this.D.i("enabled"));return b};$.g.Qg=$.Wq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Md=function(){var a=[this.ma];this.Y&&(a=$.Ga(a,this.Y.Md()));return a};$.g.Ld=function(){var a=[this.Ma];this.Y&&(a=$.Ga(a,this.Y.Ld()));return a};
$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(this.Rb=null,null===a?($.Zq(this.Y,this.hz),this.ax().parent(null),this.qx().parent(null),this.start().parent(null),this.end().parent(null),this.Y=null):(this.Y&&$.Zq(this.Y,this.hz,this),this.Y=a,this.ax().parent(this.Y.ax()),this.qx().parent(this.Y.qx()),this.start().parent(this.Y.start()),this.end().parent(this.Y.end()),$.L(this.Y,this.hz,this))),this.start().Vf(null),this.end().Vf(null),this):this.Y};
$.g.ax=function(a){this.g||(this.g=new tK,$.W(this,"thumbs",this.g),$.L(this.g,this.hz,this));return $.n(a)?(this.g.K(a),this):this.g};$.g.qx=function(a){this.j||(this.j=new tK,$.W(this,"connectorThumbs",this.j),$.L(this.j,this.hz,this));return $.n(a)?(this.j.K(a),this):this.j};$.g.start=function(a){this.f||(this.f=new uK,$.W(this,"start",this.f),this.f.pu().parent(this.ax()),this.f.it().parent(this.qx()),$.L(this.f,this.hz,this));return $.n(a)?(this.f.K(a),this):this.f};
$.g.end=function(a){this.b||(this.b=new uK,$.W(this,"end",this.b),this.b.pu().parent(this.ax()),this.b.it().parent(this.qx()),$.L(this.b,this.hz,this));return $.n(a)?(this.b.K(a),this):this.b};$.g.hz=function(){this.ta(2)};$.g.Ce=function(a,b){var c=this.Od(b);return c?(a?this.ma.enabled=c.enabled:this.enabled(c.enabled),!0):!1};$.g.Od=function(a){return $.da(a)||null===a?{enabled:!!a}:null};
$.g.X=function(a,b){vK.u.X.call(this,a,b);$.zq(this,rM,a,b);"thumbs"in a&&this.ax().ia(!!b,a.thumbs);"connectorThumbs"in a&&this.qx().ia(!!b,a.connectorThumbs);"start"in a&&this.start().ia(!!b,a.start);"end"in a&&this.end().ia(!!b,a.end)};$.g.F=function(){var a=vK.u.F.call(this);$.Hq(this,rM,a,void 0,void 0,!0);this.th("enabled")&&null!==a.enabled||delete a.enabled;a.thumbs=this.ax().F();a.connectorThumbs=this.qx().F();a.start=this.start().F();a.end=this.end().F();return a};
$.g.R=function(){$.td(this.g,this.j,this.f,this.b);this.b=this.f=this.j=this.g=null;vK.u.R.call(this)};var sM=vK.prototype;sM.thumbs=sM.ax;sM.connectorThumbs=sM.qx;sM.start=sM.start;sM.end=sM.end;$.H(wK,$.Yq);wK.prototype.qa=3;var AL={};$.hq(AL,[$.Z.u7,$.Z.wP,$.Z.vP,$.Z.az,$.Z.Jn,$.Z.HX,$.Z.bY,$.Z.AP,$.Z.mP,[0,"type",$.Ik]]);$.U(wK,AL);$.g=wK.prototype;$.g.i=$.Xq;$.g.Qg=$.Wq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Md=function(){var a=[this.ma];this.Y&&(a=$.Ga(a,this.Y.Md()));return a};$.g.Ld=function(){var a=[this.Ma];this.Y&&(a=$.Ga(a,this.Y.Ld()));return a};
$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(this.Rb=null,null===a?($.Zq(this.Y,this.Qc,this),this.Y=null):(this.Y&&$.Zq(this.Y,this.Qc,this),this.Y=a,$.L(this.Y,this.Qc,this))),this):this.Y};$.g.Qc=function(a){$.X(a,2)&&this.Hs()};$.g.Hs=function(){this.b=null;this.ta(2,!0)};$.g.Od=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.Ce=function(a,b){var c=this.Od(b);return c?(a?this.ma.enabled=c.enabled:this.enabled(c.enabled),!0):!1};
$.g.X=function(a,b){wK.u.X.call(this,a,b);$.zq(this,AL,a,b)};$.g.F=function(){var a=wK.u.F.call(this);$.Hq(this,AL,a,void 0,void 0,!0);return a};yK.prototype.Xc=function(a,b,c,d){return this.element.vf.Xc(this.item,this.tag,a,b,c,d,this.periodIndex,this.b)};$.H(zK,$.Yq);zK.prototype.qa=1;zK.prototype.sa=$.Yq.prototype.sa;var tM={};$.gq(tM,0,"drawer",$.Vq);$.gq(tM,0,"shapes",$.tq);$.U(zK,tM);$.g=zK.prototype;$.g.i=$.Xq;$.g.Qg=$.Wq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Md=function(){var a=[this.ma];this.Y&&(a=$.Ga(a,this.Y.Md()));return a};$.g.Ld=function(){var a=[this.Ma];this.Y&&(a=$.Ga(a,this.Y.Ld()));return a};
$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(this.Rb=null,null===a?($.Zq(this.Y,this.Qc,this),this.Y=null):(this.Y&&$.Zq(this.Y,this.Qc,this),this.Y=a,$.L(this.Y,this.Qc,this))),this):this.Y};$.g.Qc=function(){this.ta(1)};$.g.F=function(){var a=zK.u.F.call(this);$.Hq(this,tM,a,void 0,void 0,!0);return a};$.g.X=function(a,b){zK.u.X.call(this,a);b?$.yq(this.ma,tM,a):$.zq(this,tM,a)};$.g.R=function(){this.Y&&($.Zq(this.Y,this.Qc,this),delete this.Y);this.Rb=null;zK.u.R.call(this)};$.H(BK,$.od);BK.prototype.Wu=function(){var a,b;this.CO={};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,$.zg)&&(d.clear(),d.jc(1,0,0,1,0,0))}this.j[a]=0;c.length=0}};
BK.prototype.Xc=function(a,b,c,d,e,f,h,k){var l={};d=d||this.g;var m=$.oa(a)+($.n(h)?"_"+String(h):"");if("milestones-preview"==b.type){for(var p=a;p.getParent();)p=p.getParent(),m+="_"+$.oa(p);$.n(k)&&(m+="_"+k)}this.CO[m]=b;for(var q in d)if("none"==d[q].Mb&&f)$.K(f,$.ng)&&(l[q]=CK(this,q,a,e||0,f,c,h),l[q].tag=b);else{k=q;m=void 0;p=q;var r=a,t=e||0,u=c,v=h,w=this.g[p],x=w.Mb;this.f[x].length>this.j[x]?m=this.f[x][this.j[x]]:this.f[x].push(m=w.aR());this.j[x]++;this.b[x].push(m);m=CK(this,p,r,
t,m,u,v);l[k]=m;l[q].tag=b}return l};BK.prototype.R=function(){for(var a in this.f)$.td(this.f[a]),this.f[a].length=0,this.b[a].length=0;this.CO=this.g=this.Dd=null;BK.u.R.call(this)};$.H(DK,$.Yq);$.xq(DK,["fill","stroke"],"normal");DK.prototype.qa=12291;DK.prototype.sa=$.Yq.prototype.sa;var uM={};$.gq(uM,0,"height",$.Qq);$.gq(uM,0,"anchor",function(a){if(null===a)return null;a=$.Bk(a,"left-center");return"auto"==a?"auto":$.Do(a)?"left-top":$.Eo(a)?"left-bottom":"left-center"});$.gq(uM,0,"position",function(a){if(null===a)return null;a=$.Ck(a,"left-center");return $.Do(a)?"left-top":$.Eo(a)?"left-bottom":"left-center"});$.gq(uM,0,"offset",$.Qq);$.gq(uM,0,"enabled",$.Nq);
$.U(DK,uM);$.g=DK.prototype;$.g.i=$.Xq;$.g.Qg=$.Wq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Md=function(){var a=[this.ma];this.Y&&(a=$.Ga(a,this.Y.Md()));return a};$.g.Ld=function(){var a=[this.Ma];this.Y&&(a=$.Ga(a,this.Y.Ld()));return a};
$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(this.Rb=null,null===a?($.Zq(this.Y,this.Qc,this),this.kj().parent(null),this.bf().parent(null),this.Xa().parent(null),this.HI().parent(null),this.bG().parent(null),this.Y=null):(this.Y&&$.Zq(this.Y,this.Qc,this),this.Y=a,this.kj().parent(this.Y.kj()),this.bf().parent(this.Y.bf()),this.Xa().parent(this.Y.Xa()),this.HI().parent(this.Y.HI()),this.bG().parent(this.Y.bG()),$.L(this.Y,this.Qc,this))),this):this.Y};$.g.Qc=function(){};
$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.ld=function(){this.ca.Fa(this.ma);$.W(this,"normal",this.ca);this.ca.ia(!0,{});$.W(this,"selected",this.Ca);this.Ca.ia(!0,{})};$.g.yv=function(){return this.Rl||(this.Rl=[])};$.g.Ae=function(a,b,c,d){b={sourceColor:"stroke"==b?this.dT(c):this.cT(c),item:a,itemIndex:a.o("index")};$.n(d)&&(b.period=a.get("periods")[d],b.periodIndex=d);return b};
$.g.lG=function(a,b,c,d){var e,f=b===$.Zl,h="stroke"==c?$.Rl:$.Tl,k=xK(this,a,d);k&&(e=f?k[c]:"object"==$.ka(k.selected)?k.selected[c]:void 0);e?e=h(e):(e=(f?this.Sa():this.selected()).i(c),$.E(e)?(a=this.Ae(a,c,b,d),e=h(e.call(a,a))):e=h(e));return e};$.g.Dt=function(){return"blue"};$.g.xv=function(){return"blue"};$.g.ZS=function(){return this.Zn().nc(2)};$.g.$S=function(){return $.Il(this.Zn().nc(2))};$.g.cT=function(a){return a==$.Zl?this.Dt():this.ZS()};
$.g.dT=function(a){return a==$.Zl?this.xv():this.$S()};$.g.Zn=function(){return this.Sf().Db.cc()};$.g.Xa=function(a){this.gb||(this.gb=new $.iw(0),"all"!=this.Na()&&this.gb.Ye(),$.W(this.Kh,"tooltip",this.gb),$.W(this,"tooltip",this.gb),$.mw(this.gb,this.Kh),"all"==this.Na()&&(this.gb.Ra=!0,$.ww(this.gb)));return $.n(a)?(this.gb.K(a),this):this.gb};
$.g.bf=function(a){this.Ci||(this.Ci=new vK(this.Kh.bf()),$.W(this,"edit",this.Ci),$.L(this.Ci,this.dN,this));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Ci.K(a),this):this.Ci};$.g.dN=function(){this.ta(2)};$.g.HI=function(a){this.II||(this.II=new wK,$.W(this,"startMarker",this.II),$.L(this.II,this.B4,this));return $.n(a)?("object"!==$.ka(a)||"enabled"in a||(a.enabled=!0),this.II.K(a),this):this.II};
$.g.bG=function(a){this.cG||(this.cG=new wK,$.W(this,"endMarker",this.cG),$.L(this.cG,this.B4,this));return $.n(a)?("object"!==$.ka(a)||"enabled"in a||(a.enabled=!0),this.cG.K(a),this):this.cG};$.g.B4=function(a){$.X(a,1)&&this.ta(1)};$.g.Na=function(){return"all"};$.g.Sf=function(){return this.Kh};$.g.Gm=function(a,b,c){return this.lG(a,b,"fill",c)};$.g.bl=function(a,b,c){return this.lG(a,b,"stroke",c)};
$.g.LD=function(){$.qd(this.vf);var a=this.Gs.i("shapes");a=this.vf=new BK(this.Sf(),this,a);var b=vJ(this.Sf());if(a.Dd!=b){a.Dd=b;for(var c in a.b)for(var d=a.b[c],e=0;e<d.length;e++)d[e].parent(b)}};$.g.ej=function(a,b,c){a:{if(c=xK(this,b,c))if(c=c[a],null!=c){b=c;break a}b=b.get(a)}return null!=b?b:this.i(a)};$.g.ud=function(a,b){return this.ej("height",a,b)};$.g.MC=function(a,b){return this.ej("offset",a,b)};
$.g.labels=function(a){this.Da||(this.Da=new $.Du,$.L(this.Da,this.Zd,this),this.Da.Ye(),$.W(this,"labels",this.Da));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Da.K(a),this):this.Da};$.g.Zd=function(){this.ta(4096)};$.g.kj=function(a){this.Gs||(this.Gs=new zK(this.Kh,this),$.W(this,"rendering",this.Gs),$.L(this.Gs,this.G3,this));return $.n(a)?(this.Gs!=a&&this.Gs.K(a),this):this.Gs};$.g.G3=function(){this.LD();this.ta(1)};
$.g.vG=function(a){var b=this.parent();return b?b[a&$.qo?"selected":"normal"]():null};$.g.Od=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.Ce=function(a,b){var c=this.Od(b);return c?(a?this.ma.enabled=c.enabled:this.enabled(c.enabled),!0):!1};
$.g.X=function(a,b){DK.u.X.call(this,a,b);$.zq(this,uM,a,b);this.labels().ia(!!b,a.labels);this.Sa().ia(!!b,a);this.Sa().ia(!!b,a.normal);this.selected().ia(!!b,a.selected);this.kj().ia(!!b,a.rendering);this.bf().ia(!!b,a.edit);this.Xa().ia(!!b,a.tooltip)};
$.g.F=function(){var a=DK.u.F.call(this);$.Hq(this,uM,a,void 0,void 0,!0);a.labels=this.labels().F();a.rendering=this.kj().F();a.normal=this.Sa().F();a.selected=this.selected().F();a.edit=this.bf().F();var b=this.Xa().F();$.Jc(b)||(a.tooltip=b);return a};
$.g.R=function(){$.Zq(this.Gs,this.G3,this);$.qd(this.Gs);delete this.Gs;this.Y&&($.Zq(this.Y,this.Qc,this),delete this.Y);this.Rb=null;$.td(this.ca,this.Ca,this.Da,this.uH,this.vf,this.Ci,this.gb);this.uH&&(this.uH.length=0);this.gb=this.Ci=this.vf=this.Da=this.Ca=this.ca=null;DK.u.R.call(this)};var vM=DK.prototype;vM.rendering=vM.kj;vM.normal=vM.Sa;vM.selected=vM.selected;vM.labels=vM.labels;vM.edit=vM.bf;vM.tooltip=vM.Xa;vM.startMarker=vM.HI;vM.endMarker=vM.bG;$.H(EK,DK);var wM={};$.gq(wM,0,"drawOverEnd",$.uq);$.U(EK,wM);EK.prototype.Na=function(){return"progress"};EK.prototype.Dt=function(){return this.Zn().nc(1)};EK.prototype.xv=function(){return $.Ul};EK.prototype.yv=function(){return this.Rl||(this.Rl=[this.Na()])};$.H(FK,EK);FK.prototype.Na=function(){return"baseline-progress"};FK.prototype.Dt=function(){return"green"};FK.prototype.yv=function(){return this.Rl||(this.Rl=[this.Na(),"baselineProgress"])};$.H(GK,DK);var xM={};$.gq(xM,0,"above",$.uq);$.gq(xM,0,"disableWithRelatedTask",$.uq);$.U(GK,xM);$.g=GK.prototype;$.g.Na=function(){return"baselines"};$.g.Dt=function(){return $.Hl(this.Zn().nc(1),.7)};$.g.xv=function(){return $.Il($.Hl(this.Zn().nc(1),.7))};$.g.yv=function(){return this.Rl||(this.Rl=[this.Na(),"baseline"])};$.g.kI=function(a){var b=0;$.X(a,4096)&&(b|=4096);$.X(a,1)&&(b|=1);$.X(a,8192)&&(b|=8192);this.ta(b)};
$.g.Ed=function(a){if(!this.mi){this.mi=new FK(this.Sf());$.W(this,"progress",this.mi);this.mi.ld();var b=this.Sf().elements();this.mi.parent(b);this.mi.bf().parent(this.bf());$.L(this.mi,this.kI,this)}return $.n(a)?(this.mi.K(a),this):this.mi};$.g.X=function(a,b){GK.u.X.call(this,a,b);$.zq(this,xM,a,b);this.Ed().ia(!!b,a.progress)};$.g.F=function(){var a=GK.u.F.call(this);$.Hq(this,xM,a,void 0,void 0,!0);a.progress=this.Ed().F();return a};var yM=GK.prototype;yM.progress=yM.Ed;$.H(HK,$.Yq);$.xq(HK,["fill","stroke"],"normal");HK.prototype.qa=8194;HK.prototype.sa=$.Yq.prototype.sa;var zM={};$.hq(zM,[[1,"previewStroke",$.Dq]]);$.U(HK,zM);$.g=HK.prototype;$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.ld=function(){this.ca.Fa(this.ma);$.W(this,"normal",this.ca);this.ca.ia(!0,{});$.W(this,"selected",this.Ca);this.Ca.ia(!0,{})};
$.g.Ae=function(a,b,c,d,e,f,h){c={sourceColor:"stroke"==d?this.dT(c):this.cT(c),fromItem:a,fromItemIndex:a.o("index"),toItem:b,toItemIndex:b.o("index"),connType:e||"finish-start"};$.n(f)&&(c.fromPeriod=a.get("periods")[f],c.fromPeriodIndex=f);$.n(h)&&(c.toPeriod=b.get("periods")[h],c.toPeriodIndex=h);return c};$.g.lG=function(a,b,c,d,e,f,h){var k=(c===$.Zl?this.Sa():this.selected()).i(d),l="stroke"==d?$.Rl:$.Tl;$.E(k)?(a=this.Ae(a,b,c,d,e,f,h),k=l(k.call(a,a))):k=l(k);return k};$.g.Dt=function(){return"#545f69"};
$.g.xv=function(){return"#545f69"};$.g.ZS=function(){return"#545f69"};$.g.$S=function(){return $.Ol($.Hl(this.Zn().nc(2)),2)};$.g.cT=function(a){return a==$.Zl?this.Dt():this.ZS()};$.g.dT=function(a){return a==$.Zl?this.xv():this.$S()};$.g.Zn=function(){return this.Sf().Db.cc()};$.g.Na=function(){return"connectors"};$.g.Sf=function(){return this.Kh};$.g.Gm=function(a,b,c,d,e,f){return this.lG(a,b,c,"fill",d,e,f)};$.g.bl=function(a,b,c,d,e,f){return this.lG(a,b,c,"stroke",d,e,f)};
$.g.X=function(a,b){HK.u.X.call(this,a,b);$.zq(this,zM,a,b);this.Sa().ia(!!b,a);this.Sa().ia(!!b,a.normal);this.selected().ia(!!b,a.selected)};$.g.F=function(){var a=HK.u.F.call(this);$.Hq(this,zM,a,void 0,void 0,!0);a.normal=this.Sa().F();a.selected=this.selected().F();return a};$.g.R=function(){$.td(this.ca,this.Ca);HK.u.R.call(this)};var AM=HK.prototype;AM.normal=AM.Sa;AM.selected=AM.selected;$.H(IK,DK);$.g=IK.prototype;$.g.Na=function(){return"grouping-tasks"};$.g.Dt=function(){return this.Zn().nc(4)};$.g.xv=function(){return $.Hl(this.Zn().nc(4))};$.g.yv=function(){return this.Rl||(this.Rl=[this.Na()])};$.g.Ed=function(a){if(!this.mi){this.mi=new EK(this.Sf());$.W(this,"progress",this.mi);$.L(this.mi,this.kI,this);var b=this.Sf().elements();this.mi.parent(b);this.mi.bf().parent(this.bf())}return $.n(a)?(this.mi.K(a),this):this.mi};
$.g.kI=function(a){var b=0;$.X(a,4096)&&(b|=4096);$.X(a,1)&&(b|=1);$.X(a,8192)&&(b|=8192);this.ta(b)};$.g.F=function(){var a=IK.u.F.call(this);a.progress=this.Ed().F();return a};$.g.X=function(a,b){IK.u.X.call(this,a,b);this.Ed().ia(!!b,a.progress)};var BM=IK.prototype;BM.progress=BM.Ed;$.H(JK,DK);var CM={};$.hq(CM,[[0,"markerType",$.Ik]]);$.U(JK,CM);$.g=JK.prototype;$.g.Na=function(){return"milestones"};$.g.Dt=function(){return this.Zn().nc(9)};$.g.xv=function(){return $.Il(this.Zn().nc(9))};$.g.yv=function(){return this.Rl||(this.Rl=[this.Na(),"milestone","actual"])};$.g.qm=function(a){if("milestones-preview"==this.Na())return null;this.Tl||(this.Tl=new KK(this.Sf()),$.W(this,"preview",this.Tl),this.Tl.ld(),this.Tl.parent(this));return $.n(a)?(this.Tl.K(a),this):this.Tl};
$.g.F=function(){var a=JK.u.F.call(this);"milestones"==this.Na()&&(a.preview=this.qm().F());return a};$.g.X=function(a,b){JK.u.X.call(this,a,b);"milestones"==this.Na()&&this.qm().ia(!!b,a.preview)};$.g.R=function(){$.td(this.Tl);JK.u.R.call(this)};$.H(KK,JK);var DM={};$.gq(DM,0,"depth",$.mq);$.U(KK,DM);KK.prototype.Na=function(){return"milestones-preview"};KK.prototype.yv=function(){this.Rl||(this.Rl=[this.Na()],this.Rl.push.apply(this.Rl,this.parent().yv()));return this.Rl};
KK.prototype.X=function(a,b){KK.u.X.call(this,a,b);$.zq(this,DM,a,b)};KK.prototype.F=function(){var a=KK.u.F.call(this);$.Hq(this,DM,a,void 0,void 0,!0);return a};var EM=JK.prototype;EM.preview=EM.qm;EM=KK.prototype;EM.preview=void 0;$.H(LK,DK);LK.prototype.Na=function(){return"periods"};LK.prototype.Dt=function(){return this.Zn().nc(0)};LK.prototype.xv=function(){return $.Hl(this.Zn().nc(0))};LK.prototype.ud=function(a,b){var c=xK(this,a,b);return c&&(c=c.height,null!=c)?c:LK.u.ud.call(this,a,b)};$.H(MK,DK);$.g=MK.prototype;$.g.Na=function(){return"tasks"};$.g.Dt=function(){return this.Zn().nc(0)};$.g.xv=function(){return $.Hl(this.Zn().nc(0))};$.g.kI=function(a){var b=0;$.X(a,4096)&&(b|=4096);$.X(a,1)&&(b|=1);$.X(a,8192)&&(b|=8192);this.ta(b)};$.g.yv=function(){return this.Rl||(this.Rl=[this.Na(),"actual"])};
$.g.Ed=function(a){if(!this.mi){this.mi=new EK(this.Sf());$.W(this,"progress",this.mi);this.mi.ld();var b=this.Sf().elements();this.mi.parent(b);this.mi.bf().parent(this.bf());$.L(this.mi,this.kI,this)}return $.n(a)?(this.mi.K(a),this):this.mi};$.g.F=function(){var a=MK.u.F.call(this);a.progress=this.Ed().F();return a};$.g.X=function(a,b){MK.u.X.call(this,a,b);this.Ed().ia(!!b,a.progress)};var FM=MK.prototype;FM.progress=FM.Ed;$.H(NK,$.Y);NK.prototype.sa=$.Y.prototype.sa|976;NK.prototype.qa=$.Y.prototype.qa;var GM={};$.hq(GM,[[0,"enabled",$.Nq],$.Z.Jn,$.Z.lJ]);$.U(NK,GM);$.xq(NK,YL,"labels");$.xq(NK,["fill"],"background");$.g=NK.prototype;$.g.background=function(a){this.Ka||(this.Ka=new $.ku,this.Ka.Ye(),this.Ka.parent(this.Dk.background()),$.L(this.Ka,this.gg,this));return $.n(a)?(this.Ka.K(a),this):this.Ka};$.g.gg=function(a){$.X(a,1)&&this.B(256,1)};
$.g.uf=function(a){var b=this.xb;if(b.left!=a.left||b.top!=a.top||b.width!=a.width||b.height!=a.height)this.xb=a,this.B(4);return this};$.g.UY=function(a){if($.n(a)&&this.g!=a){this.g=a;OK(this);if(this.b){a=this.b;var b=this.g;$.n(b)&&a.b!=b&&(a.b=b,a.reset(),$.Py(a),a.ta($.oE|$.pE))}this.B(576,1);return this}return this.g};
$.g.labels=function(a){this.Da||(this.Da=new $.ux,this.Da.Fa("ganttDefaultSimpleLabelsSettings","defaultLevelsLabelsSettings"),this.Da.parent(this.Dk.labels()),$.L(this.Da,this.Zd,this));return $.n(a)?(this.Da.K(a),this.B(64,1),this):this.Da};$.g.Zd=function(a){var b=!1;this.b||(OK(this),b=!!this.b);b&&(this.b.ta($.oE|$.pE),this.b.dr(a));this.B(64,1)};
$.g.im=function(a,b){var c=a.start,d=a.end,e=$.js(c,b),f=$.js(d,b),h=e,k=this.na.wS();e=this.na.vS();if(1<k)if("year"===this.ng||"semester"===this.ng||"quarter"===this.ng)1<k?(h=new Date(c),e=Date.UTC(h.getUTCFullYear()+(e||0),h.getUTCMonth()-(k-1),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds())):e=c,h=$.js(e,b);else if(-1!=b.indexOf("y")||-1!=b.indexOf("Q"))k=(new $.In(new Date(c))).getMonth()+1<k?-1:0,e=$.No("year",e+k),k=new $.In(new Date(c)),k.add(e),
e=k.getTime(),h=$.js(e,b);return $.av(new $.rw({value:{value:h,type:"string"},tickValue:{value:c,type:"number"},scale:{value:this.na,type:""},end:{value:d,type:"number"},endValue:{value:f,type:"string"},unit:{value:this.ng,type:"string"},count:{value:this.count,type:"number"}}))};$.g.oM=function(){this.Wa||(this.Wa=$.lk(),this.background().P(this.Wa),this.nm=$.kg().Jq(),this.Fh=new $.Uh(this.nm),this.Fh.zIndex(1),this.Fh.parent(this.Wa),this.f=this.Wa.path(),this.f.zIndex(2))};
$.g.$=function(){if(this.Bc()){var a;this.oM();this.J(2)&&(this.Wa.parent(this.P()),this.I(2));this.J(4)&&(this.B(896),this.I(4));if(this.J(256)){var b=this.background();$.V(b);b.ja(this.xb);b.$();b.da(!1);this.I(256)}if(this.J(512)){if(null!=this.g)this.D=$.A(this.g)?this.g:[this.g];else{a:{b=this.Dk.f;for(var c=this.wd;c<b.length;c++)if(a=b[c+1]){b=a;break a}b=null}if(b){var d=b.ng;d!=this.ng&&(d=$.mp(d,-1))}this.D=$.is($.es(this.ng,d,"timeline"))}this.j=this.D[0]||this.j;this.B(128);this.I(512)}if(this.J(128)){this.hb=
this.na.rn(window.NaN,window.NaN,this.ng,this.count);b=this.hb[0];d=this.xb.left+this.na.transform(b.start)*this.xb.width;b=this.xb.left+this.na.transform(b.end)*this.xb.width;b=Math.ceil(this.labels().padding().wg(b-d));c=this.b||this.Dk.b;$.Qy(c);a=!1;var e=window.Infinity,f=this.j;for(d=0;d<this.D.length;d++){var h=this.D[d],k=c.Qz;if(h in k){k=Math.ceil(k[h].width);if(k<=b){this.j=h;a=!0;break}k<=e&&(e=k,f=h)}}a||(this.j=f);this.B(80);this.I(128)}if(this.J(64)){for(d=0;d<this.hb.length;d++)b=
this.hb[d],c=this.re[d]||(this.re[d]=new $.vx),a=this.im(b,this.j),a=this.labels().$n(a),c.text(a),c.style(this.labels().flatten()),$.Cx(c),$.Dx(c,this.nm),a=Math.max(0,this.na.transform(b.start)),a=this.xb.left+a*this.xb.width,a+=this.labels().padding().i("left"),b=this.xb.left+this.na.transform(b.end)*this.xb.width,e=this.labels().padding().i("right"),b=Math.max(0,b-a-e),$.Kx(c,new $.J(a,this.xb.top,b,this.xb.height),this.P().Ha());for(b=this.re.length;d<b;d++)c=this.re[d],$.Dx(c,null),$.Fx(c);
this.I(64)}if(this.J(16)){this.f.clear();d=this.i("stroke")||this.Dk.i("stroke");c=$.Wo(d);e=$.R(this.xb.top,c);this.f.stroke(d).moveTo(this.xb.left,e).lineTo(this.xb.left+this.xb.width,e);for(d=0;d<this.hb.length;d++)b=this.hb[d],a=this.xb.left+this.na.transform(b.start)*this.xb.width,a=$.R(a,c),this.f.moveTo(a,e).lineTo(a,this.xb.top+this.xb.height);this.I(16)}}};$.g.remove=function(){this.Wa&&this.Wa.parent(null)};
$.g.F=function(){var a=NK.u.F.call(this);$.Hq(this,GM,a);$.Jc(this.background().Ma)||(a.background=this.background().F());var b=this.labels().F();$.Jc(b)||(a.labels=b);this.g&&(a.formats=this.g);return a};$.g.X=function(a,b){NK.u.X.call(this,a,b);$.zq(this,GM,a,b);$.V(this.labels());for(var c=0;c<YL.length;c++){var d=YL[c];if(d in a)this.labels()[d](a[d])}this.Da.da(!0);this.background().ia(!!b,a.background);this.Da.ia(!!b,a.labels);"formats"in a&&this.UY(a.formats)};
$.g.R=function(){$.td(this.f,this.Ka);this.b&&$.qd(this.b);this.b=this.na=this.Dk=this.Ka=this.f=null;for(var a=0;a<this.re.length;a++)this.re[a].cd();NK.u.R.call(this)};var HM=NK.prototype;HM.labels=HM.labels;HM.background=HM.background;HM.formats=HM.UY;$.H(PK,$.Y);PK.prototype.sa=$.Y.prototype.sa|528;PK.prototype.qa=$.Y.prototype.qa;var IM={};$.hq(IM,[[1,"stroke",$.Dq],[0,"levelHeight",$.Qq]]);$.U(PK,IM);$.xq(PK,YL,"labels");$.xq(PK,["fill"],"background");$.g=PK.prototype;$.g.background=function(a){this.Ka||(this.Ka=new $.ku,this.Ka.il(!0),this.Ka.Fa("defaultGanttHeader.background"),$.L(this.Ka,this.gg,this));return $.n(a)?(this.Ka.K(a),this):this.Ka};$.g.gg=function(a){$.X(a,1)&&this.B(16,1)};
$.g.labels=function(a){this.Da||(this.Da=new $.ux,this.Da.Fa("ganttDefaultSimpleLabelsSettings","defaultLevelsLabelsSettings"),this.Da.il(!0),$.L(this.Da,this.Zd,this));return $.n(a)?(this.Da.K(a),this.B(512,1),this):this.Da};$.g.Zd=function(){this.B(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 NK(this,c),e.labels().parent(this.labels()),$.L(e,this.bfa,this),e.Fa("defaultLevelSettings"));return $.n(d)?(e.K(d),this):e};$.g.bfa=function(a){var b=0,c=0;$.X(a,32776)&&(this.O=null,b|=512,c|=1);$.X(a,1)&&(b|=512,c|=1);this.B(b,c)};
$.g.tW=function(a){for(var b=0;b<a.length;b++){var c=a[b],d=this.f[b]||this.level(b);if(d.ng!=c.unit||d.count!=c.count)d.ng=c.unit,d.count=c.count,d.B(512);d.B(128)}this.B(512,1)};$.g.afa=function(){this.O=null};$.g.uf=function(a){var b=this.xb;if(b.left!=a.left||b.top!=a.top||b.width!=a.width||b.height!=a.height)this.xb=a,this.B(4,9);return this};$.g.lb=function(){return this.xb};$.g.dA=function(a){return $.n(a)?(this.D.K(a),this):this.D};
$.g.Mz=function(){this.g||(this.g=$.lk(),this.Nf=$.qk(),this.g.clip(this.Nf),this.j=this.g.Dd())};
$.g.$=function(){if(this.Bc()){var a,b;this.Mz();this.J(2)&&(this.g.parent(this.P()),this.I(2));this.J(8)&&(this.g.zIndex(this.zIndex()),this.I(8));this.J(4)&&($.Qy(this.b),this.Nf.shape(this.xb),this.O=null,this.B(512),this.I(4));var c=!1;if(this.J(512)){c=!0;if(null==this.O){var d=0,e=0;this.G=[];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.xb.height),this.G[a]=b,d+=b):(this.G[a]=null,e++));this.O=e?Math.max(0,(this.xb.height-
d)/e):0}d=this.xb.top+this.xb.height;for(a=0;a<this.f.length;a++)if(b=this.f[a])if(b.enabled()){$.V(b);b.P(this.j);e=this.G[a];e=null!=e?e:this.O;var f=new $.J(this.xb.left,d-e,this.xb.width,e);$.Po(f,0);b.uf(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.B(272);this.I(16)}if(c)for(a=0;a<this.f.length;a++)(b=this.f[a])&&b.$()}};
$.g.F=function(){var a=PK.u.F.call(this);$.Hq(this,IM,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.X=function(a,b){PK.u.X.call(this,a,b);$.zq(this,IM,a,b);this.background().ia(!!b,a.background);this.labels().ia(!!b,a.labels);var c=a.levels;if($.A(c))for(var d=0;d<c.length;d++)this.level(d,c[d])};
$.g.R=function(){this.U=null;$.td(this.f,this.b,this.D,this.N);this.f.length=0;this.b=this.N=this.D=null;PK.u.R.call(this)};var JM=PK.prototype;JM.background=JM.background;JM.level=JM.level;JM.labels=JM.labels;JM.getPixelBounds=JM.lb;$.H(UK,jJ);UK.prototype.qa=jJ.prototype.qa;UK.prototype.sa=jJ.prototype.sa|14848;var LL={millisecond:0,second:1,minute:2,hour:3,day:4,week:5,"third-of-month":6,month:7,quarter:8,semester:9,year:10},KM={};$.hq(KM,[[0,"cropLabels",$.uq],[0,"zoomOnMouseWheel",$.uq],[1,"columnStroke",$.Dq],[1,"workingFill",$.Eq],[1,"notWorkingFill",$.Eq],[1,"holidaysFill",$.Eq],[1,"weekendsFill",$.Eq]]);$.U(UK,KM);$.g=UK.prototype;
$.g.elements=function(a){this.Bx||(this.Bx=new DK(this),$.W(this,"elements",this.Bx),this.Bx.ld(),$.L(this.Bx,this.Qy,this));return $.n(a)?(this.Bx.K(a),this):this.Bx};$.g.Ds=function(a){this.mw||(this.mw=new LK(this),$.W(this,"periods",this.mw),this.mw.ld(),this.mw.parent(this.elements()),$.L(this.mw,this.Qy,this));return $.n(a)?(this.mw.K(a),this):this.mw};
$.g.Jc=function(a){this.pk||(this.pk=new MK(this),$.W(this,"tasks",this.pk),this.pk.ld(),this.pk.parent(this.elements()),$.L(this.pk,this.Qy,this));return $.n(a)?(this.pk.K(a),this):this.pk};$.g.Pc=function(a){this.Pj||(this.Pj=new JK(this),$.W(this,"milestones",this.Pj),this.Pj.ld(),this.Pj.parent(this.elements()),$.L(this.Pj,this.Qy,this),$.L(this.Pj.qm(),this.Qy,this));return $.n(a)?(this.Pj.K(a),this):this.Pj};
$.g.Yp=function(a){this.Ev||(this.Ev=new IK(this),$.W(this,"groupingTasks",this.Ev),this.Ev.ld(),this.Ev.parent(this.elements()),$.L(this.Ev,this.Qy,this));return $.n(a)?(this.Ev.K(a),this):this.Ev};$.g.Nn=function(a){this.Ou||(this.Ou=new GK(this),$.W(this,"baselines",this.Ou),this.Ou.ld(),this.Ou.parent(this.elements()),$.L(this.Ou,this.Qy,this));return $.n(a)?(this.Ou.K(a),this):this.Ou};
$.g.Sn=function(a){this.xm||(this.xm=new HK(this),$.W(this,"connectors",this.xm),this.xm.ld(),$.L(this.xm,this.Qy,this));return $.n(a)?(this.xm.K(a),this):this.xm};
$.g.Ep=function(a,b,c,d){var e=a.get("id"),f=b.Na();var h=b.uH||(b.uH=[b.labels(),b.Sf().elements().labels(),b.Sf().labels()]);var k;(b=xK(b,a,d))&&(k=b.label);b=this.controller.Wl()+c.top-this.bk()-this.ea.top;var l=this.controller.mg();b=II(this.controller,(this.controller.b[l-1]||0)+b);c={jH:!0,id:e,type:f,item:a,labels:h,Za:c,zU:k,hf:b};$.n(d)&&(c.lq=d,a=a.get("periods"),c.vb=a[d]);return c};
$.g.Qy=function(a){if(!$.X(a,2)){var b=0;$.X(a,4096)&&(b|=2048);$.X(a,1)&&(b|=64);$.X(a,8192)&&(b|=128);this.B(b,1)}};$.g.scale=function(a){return $.n(a)?(this.na.K(a),this):this.na};$.g.Vh=function(a){var b=0;$.X(a,4)&&(b|=4608);$.X(a,2)&&(b|=8192);this.B(b,1)};$.g.zv=function(){return this.na};$.g.cA=function(a){this.Dk||(this.Dk=new PK(this),this.Dk.zIndex(80),$.L(this.Dk,this.r1,this),this.Dk.b.ta($.oE|$.pE));return $.n(a)?(this.Dk.K(a),this):this.Dk};$.g.r1=function(a){$.X(a,1)&&this.B(512,1)};
$.g.LK=function(a){return $.n(a)?(this.ER=a,this):this.ER||{}};$.g.MK=function(a){return $.n(a)?(this.GR=a,this):this.GR||{}};$.g.QK=function(a){return $.n(a)?(this.IR=a,this):this.IR||{}};$.g.Jm=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.pA[c];e||(e=new lK(this.na),e.Fa(this.ma.defaultLineMarkerSettings),e.ib(this),this.pA[c]=e,$.L(e,this.oy,this),this.B(4096,1));return $.n(d)?(e.K(d),this):e};
$.g.Sm=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.HA[c];e||(e=new mK(this.na),e.Fa(this.ma.defaultRangeMarkerSettings),e.ib(this),this.HA[c]=e,$.L(e,this.oy,this),this.B(4096,1));return $.n(d)?(e.K(d),this):e};
$.g.Xm=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.eB[c];e||(e=new nK(this.na),e.Fa(this.ma.defaultTextMarkerSettings),e.ib(this),this.eB[c]=e,$.L(e,this.oy,this),this.B(4096,1));return $.n(d)?(e.K(d),this):e};$.g.oy=function(){this.B(4096,1)};
$.g.labels=function(a){this.eh||(this.eh=new $.Du,this.eh.ib(this),$.L(this.eh,this.Zd,this),$.W(this,"labels",this.eh));if($.n(a)){var b=!0;$.K(a,$.Du)?this.eh.K(a.F()):$.D(a)?this.eh.K(a):$.Vo(a)?this.eh.enabled(!1):b=!1;b&&this.B(64,1);return this}return this.eh};$.g.Eb=function(a){this.Ut||(this.Ut=new $.Px,this.Ut.Fa("defaultTimeline.markers"),this.Ut.ib(this));if($.n(a)){var b=!0;$.K(a,$.Px)?this.Ut.K(a.F()):$.D(a)?this.Ut.K(a):$.Vo(a)?this.Ut.enabled(!1):b=!1;b&&this.B(64,1);return this}return this.Ut};
$.g.Ica=function(a){this.rt=new oK(ZK(this));this.rt.ra("start",this.Q_,!1,this);this.rt.ra("drag",this.R_,!1,this);this.rt.ra("end",this.S_,!1,this);this.rt.Tj(a.Vj)};$.g.Jca=function(a){this.st=new pK($K(this));this.st.ra("start",this.U_,!1,this);this.st.ra("drag",this.V_,!1,this);this.st.ra("end",this.T_,!1,this);this.st.Tj(a.Vj)};$.g.zca=function(a){this.ZF=new qK(aL(this));this.ZF.ra("start",this.Aca,!1,this);this.ZF.ra("drag",this.Bca,!1,this);this.ZF.ra("end",this.yca,!1,this);this.ZF.Tj(a.Vj)};
$.g.Hca=function(a){this.qt=new sK(bL(this),!0);this.qt.ra("start",this.P_,!1,this);this.qt.ra("drag",this.mL,!1,this);this.qt.ra("end",this.lL,!1,this);this.qt.Tj(a.Vj)};$.g.Kca=function(a){this.tt=new sK(cL(this),!1);this.tt.ra("start",this.W_,!1,this);this.tt.ra("drag",this.mL,!1,this);this.tt.ra("end",this.lL,!1,this);this.tt.Tj(a.Vj)};$.g.Lca=function(a){this.ut=new rK(this,dL(this),!0);this.ut.ra("start",this.jL,!1,this);this.ut.ra("drag",this.kL,!1,this);this.ut.ra("end",this.iL,!1,this);this.ut.Tj(a.Vj)};
$.g.Cca=function(a){this.pt=new rK(this,eL(this),!1);this.pt.ra("start",this.jL,!1,this);this.pt.ra("drag",this.kL,!1,this);this.pt.ra("end",this.iL,!1,this);this.pt.Tj(a.Vj)};$.g.Q_=function(){this.Jg&&this.Jg.lj(!1);this.Ts=this.Xa().enabled();this.Xa().Oc();this.Xa().enabled(!1);this.Db.fo();$K(this).clear();aL(this).clear();bL(this).clear();cL(this).clear();dL(this).clear();eL(this).clear();$.uf($.Bp.body,"cursor","ew-resize");sJ(this,!0)};
$.g.R_=function(){this.di=!0;this.lm=!1;this.lo=this.UR=!0};
$.g.S_=function(a){if(this.di){this.Jg&&this.Jg.lj(!0);var b=ZK(this).pb();gL(this);var c=a.target.element;a=c.tag.item;var d=this.controller.data();$.V(d);b=$.st(this.na,"milestones"==c.tag.type||"milestones-preview"==c.tag.type?(b.left+b.width/2-this.ea.left)/this.ea.width:(b.left-this.ea.left)/this.ea.width);if(!(0,window.isNaN)(b))switch(c.tag.type){case "milestones":case "milestones-preview":if(this.controller.g){c=c.tag.lq;var e=a.Yn("periods",c,"start");e=$.n(e)?"start":"end";a.set("periods",
c,e,b);a.Hn("periods",c,e,b)}else a.set("actualStart",b),a.o("actualStart",b),$.n(a.get("actualEnd"))&&(a.set("actualEnd",b),a.o("actualEnd",b));break;case "periods":c=c.tag.lq;e=a.Yn("periods",c,"start");e=a.Yn("periods",c,"end")+(b-e);(0,window.isNaN)(e)||(a.set("periods",c,"start",b),a.Hn("periods",c,"start",b),a.set("periods",c,"end",e),a.Hn("periods",c,"end",e));break;case "baselines":c=a.o("baselineStart");e=a.o("baselineEnd");c=b-c;(0,window.isNaN)(e+c)||(a.set("baselineStart",b),a.o("baselineStart",
b));a.set("baselineEnd",e+c);a.o("baselineEnd",e+c);break;default:c=kJ(a),e=c.end,c=b-c.start,c=e+c,(0,window.isNaN)(c)||(a.set("actualStart",b),a.o("actualStart",b),a.set("actualEnd",c),a.o("actualEnd",c))}d.da(!0);NL(this);this.UR=this.di=!1;(0,window.clearInterval)(this.Fn);this.Fn=null}$.uf($.Bp.body,"cursor","");sJ(this,!1)};
$.g.U_=function(){this.Jg&&this.Jg.lj(!1);this.SF=!0;this.Ts=this.Xa().enabled();this.Xa().Oc();this.Xa().enabled(!1);bL(this).clear();cL(this).clear();dL(this).clear();eL(this).clear();ZK(this).clear();aL(this).clear()};$.g.V_=function(){this.di=!0;this.lm=!1;this.lo=!0};$.g.T_=function(a){if(this.di){this.Jg&&this.Jg.lj(!0);gL(this);a=a.target;var b=a.element.tag.item;(0,window.isNaN)(a.Ed)||b.set("progressValue",$.Qm(a.Ed,2));this.di=!1;(0,window.clearInterval)(this.Fn);this.Fn=null;this.SF=!1}};
$.g.Aca=function(){this.Jg&&this.Jg.lj(!1);this.SF=!0;var a=this.Xa();this.Ts=a.enabled();a.Oc();a.enabled(!1);bL(this).clear();cL(this).clear();dL(this).clear();eL(this).clear();ZK(this).clear();$K(this).clear()};$.g.Bca=function(){this.di=!0;this.lm=!1;this.lo=!0};
$.g.yca=function(a){if(this.di){this.Jg&&this.Jg.lj(!0);gL(this);a=a.target;var b=a.element.tag.item;(0,window.isNaN)(a.Ed)||b.set("baselineProgressValue",$.Qm(a.Ed,2));this.di=!1;(0,window.clearInterval)(this.Fn);this.Fn=null;this.SF=!1}};
$.g.W_=function(){this.Jg&&this.Jg.lj(!1);this.Ts=this.Xa().enabled();this.Xa().Oc();this.Xa().enabled(!1);$K(this).clear();aL(this).clear();bL(this).clear();cL(this).clear();dL(this).clear();eL(this).clear();$.uf($.Bp.body,"cursor","col-resize");this.Qp.cursor("col-resize");sJ(this,!0)};
$.g.P_=function(){this.Jg&&this.Jg.lj(!1);this.Ts=this.Xa().enabled();this.Xa().Oc();this.Xa().enabled(!1);$K(this).clear();aL(this).clear();bL(this).clear();cL(this).clear();dL(this).clear();eL(this).clear();$.uf($.Bp.body,"cursor","col-resize");this.Qp.cursor("col-resize");sJ(this,!0)};$.g.mL=function(a){this.di=!0;this.lm=!1;this.ux=a.target;this.lo=!0;iL(this,a)};
$.g.lL=function(a){if(this.di){this.Jg&&this.Jg.lj(!0);var b=this.Qp.pb();this.Ur.push(this.Qp);gL(this);a=a.target.element;var c=a.tag.item,d=a.tag.lq,e=this.controller.data();$.V(e);var f=(b.left+b.width-this.ea.left)/this.ea.width;b=$.st(this.na,(b.left-this.ea.left)/this.ea.width);f=$.st(this.na,f);if(!(0,window.isNaN)(b)&&!(0,window.isNaN)(f))switch(a.tag.type){case "periods":c.set("periods",d,"start",b);c.Hn("periods",d,"start",b);c.set("periods",d,"end",f);c.Hn("periods",d,"end",f);break;case "baselines":c.set("baselineStart",
b);c.o("baselineStart",b);c.set("baselineEnd",f);c.o("baselineEnd",f);break;default:c.set("actualStart",b),c.o("actualStart",b),c.set("actualEnd",f),c.o("actualEnd",f)}e.da(!0);NL(this);this.ux=null;this.di=!1;(0,window.clearInterval)(this.Fn);this.Fn=null}$.uf($.Bp.body,"cursor","");this.Qp.cursor("ew-resize");sJ(this,!1)};$.g.jL=function(a){this.Jg&&this.Jg.lj(!1);this.Db.fo();this.Ho=a.target;gL(this);this.Ts=this.Xa().enabled();this.Xa().Oc();this.Xa().enabled(!1);sJ(this,!0)};
$.g.kL=function(a){this.wx=this.di=!0;this.lm=this.rS=!1;this.Ho.b=a.clientX;this.Ho.g=a.clientY;this.lo=!0};$.g.iL=function(){this.di&&(this.Jg&&this.Jg.lj(!0),this.Xa().enabled(this.Ts),this.Ts=void 0,fL(this).clear(),this.wx=this.di=!1,this.rS=!0,(0,window.clearInterval)(this.Fn),this.Fn=null);sJ(this,!1)};
$.g.vY=function(a,b){if(this.di){if(this.wx)if(a&&this.Ho){var c=a.originalEvent.domTarget;if(c&&c.tag&&c.tag.jH){c=c.tag;var d=c.item;if("baselines"!=c.type&&"connectors"!=c.type&&"milestones-preview"!=c.type){var e=this.Ho.element.tag;var f=e.item,h=e.index;var k=a.period;var l=a.periodIndex;k?(e={item:f,period:e.vb,index:h,periodIndex:e.lq},d={item:d,period:k,index:a.hoveredIndex+this.controller.mg(),periodIndex:l}):(e={item:f,index:h},d={item:d,index:a.hoveredIndex+this.controller.mg()});k=b.clientX-
$.Wj(this.P().Ha()).x;c=c.Za;c=.5>(k-c.left)/c.width;c=this.Ho.jy?c?"start-start":"start-finish":c?"finish-start":"finish-finish";fL(this).clear();JL(this,e,d,c,void 0,fL(this))}else kL(this,b)}else kL(this,b)}else kL(this,b)}else if(a&&a.originalEvent){e=a.originalEvent;if((e=e.domTarget)&&e.tag&&e.tag.jH){if(k=e.tag,l=k.item,f=l.get("id"),$.n(this.IM)||(this.IM=f),d=a.periodIndex,$.n(d)&&(0,window.isNaN)(this.JM)&&(this.JM=d),this.IM!=f&&this.JM!=d&&(gL(this,!0),this.IM=f,$.n(d)&&(this.JM=d)),k.Za){if("baseline-progress"!=
k.type){var m=k.type;f=k.Za;var p=k.item;gL(this,!0);h=nL(this,m).bf();h.i("enabled")&&(m=WK(p,null,m,f,d),p=ZK(this),p.tag=m,p.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.Ur.push(p))}if(l)if("tasks"==k.type||"grouping-tasks"==k.type||"progress"==k.type){if(m=k.Za,p=k.item,f=nL(this,k.type).Ed().bf(),f.i("enabled")){var q=WK(p,null,"progress",m,void 0);h=$K(this);
h.tag=q;p=$.n(p.o("progressValue"))?p.o("progressValue"):p.o("autoProgress");p=m.left+(p||0)*m.width;m=m.top+m.height;h.fill(f.i("fill")).stroke(f.i("stroke")).clear().moveTo(p,m-5).lineTo(p+5,m).lineTo(p+5,m+5).lineTo(p-5,m+5).lineTo(p-5,m).close();this.Ur.push(h)}}else{if("baselines"==k.type||"baseline-progress"==k.type)m=k.Za,p=k.item,f=nL(this,k.type).Ed().bf(),f.i("enabled")&&(q=WK(p,null,"baseline-progress",m,void 0),h=aL(this),h.tag=q,p=p.get("baselineProgressValue")||0,p=$.oo(p)?(0,window.parseFloat)(p)/
100:+p,p=m.left+p*m.width,m=m.top+m.height,h.fill(f.i("fill")).stroke(f.i("stroke")).clear().moveTo(p,m-5).lineTo(p+5,m).lineTo(p+5,m+5).lineTo(p-5,m+5).lineTo(p-5,m).close(),this.Ur.push(h))}else $K(this).clear(),aL(this).clear();if(l&&"milestones"!=k.type&&"milestones-preview"!=k.type){m=k.type;f=k.Za;p=k.item;h=nL(this,m).bf();m=WK(p,null,m,f,d);p=h.start().pu();q=h.end().pu();var r=f.left+f.width;if(h.i("enabled")&&p.i("enabled")){var t=bL(this);t.tag=m;var u=p.i("size");t.fill(p.i("fill")).stroke(p.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.Ur.push(t)}h.i("enabled")&&q.i("enabled")&&(t=cL(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.Ur.push(t))}else bL(this).clear(),cL(this).clear();l&&"baselines"!=k.type&&"milestones-preview"!=k.type?(f=a.hoveredIndex+this.controller.mg(),h=k.type,l=
k.Za,m=k.item,k=nL(this,h).bf(),d=WK(m,f,h,l,d),f=l.left+l.width,h=k.start().it(),m=k.end().it(),u=l.top+l.height/2,k.i("enabled")&&h.i("enabled")&&(p=dL(this),p.tag=d,p.fill(h.i("fill")).stroke(h.i("stroke")),t=$.qp(h.i("type")),q=h.i("size")/2,t.call(null,p,l.left-q+h.i("horizontalOffset"),u+h.i("verticalOffset"),q),this.Ur.push(p)),k.i("enabled")&&m.i("enabled")&&(p=eL(this),p.tag=d,p.fill(m.i("fill")).stroke(m.i("stroke")),t=$.qp(m.i("type")),q=m.i("size")/2,t.call(null,p,f+q+m.i("horizontalOffset"),
u+m.i("verticalOffset"),q),this.Ur.push(p))):(eL(this).clear(),dL(this).clear())}}else!e||e.tag&&e.tag.Qea||gL(this,!0);if(d=mL(this,a))this.Db.dispatchEvent(d),this.VG=e.o;else if(this.VG){if(a&&a.originalEvent){e={type:"connectormouseout",actualTarget:a.originalEvent.target,target:this,originalEvent:a.originalEvent};for(c in this.VG)e[c]=this.VG[c];d=e}else d=null;this.Db.dispatchEvent(d);this.VG=null}}else gL(this,!1)};$.g.pI=function(a){this.fV(a)};
$.g.PN=function(){this.Xa().enabled(this.Ts);this.Ts=void 0};$.g.fV=function(a){this.elements().bf().i("enabled")&&(this.Zi=a.item)};$.g.uY=function(a){a&&(a=mL(this,a))&&this.Db.dispatchEvent(a)};
$.g.wY=function(a){if(this.rS&&(this.rS=!1,a)){var b=a.item,c=a.periodIndex,d=a.originalEvent,e=d.domTarget;if((e=e?e.tag:void 0)&&e.jH&&"baselines"!=e.type&&"milestones-preview"!=e.type){d=d.clientX-$.Wj(this.P().Ha()).x;e=e.Za;var f=this.Ho.jy?this.iv:this.fv;e=.5>(d-e.left)/e.width;d=f.tag.item;e=this.Ho.jy?e?"start-start":"start-finish":e?"finish-start":"finish-finish";f=f.tag.lq;e=e||"finish-start";$.K(d,$.Qt)||$.K(d,$.Mt)||(d=this.controller.data().op("id",d),d=d.length?d[0]:null);if(d&&($.K(b,
$.Qt)||$.K(b,$.Mt)||(b=this.controller.data().op("id",b),b=b.length?b[0]:null),b)){$.V(this.controller.data());var h=!1;if(this.controller.g){var k=d.get("periods")[f],l=b.get("periods")[c];if($.n(k)&&$.n(l)){var m=k.connector;var p={};p.connectTo=l.id;p.connectorType=e;if(m)if($.A(m))m=m.length;else{h=$.Qc(m);var q={};q.connectTo=k.connectTo;q.connectorType=k.connectorType||"finish-start";$.Sc(q,h);m=1;h=!0}else m=k.connectTo,$.n(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.Db.dispatchEvent(c)&&(h&&d.set("periods",f,"connector",[q]),d.set("periods",f,"connector",m,p))}}else m=d.get("connector"),p={},p.connectTo=b.get("id"),p.connectorType=e,m?$.A(m)?m=m.length:(h=$.Qc(m),q={},q.connectTo=d.get("connectTo"),q.connectorType=d.get("connectorType")||"finish-start",$.Sc(q,h),m=1,h=!0):(m=d.get("connectTo"),$.n(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.Db.dispatchEvent(c)&&(h&&d.set("connector",[q]),d.set("connector",m,p));this.controller.data().da(!0)}}}(a=mL(this,a))?this.Db.dispatchEvent(a):fL(this).clear();this.wx=!1;this.Ho=null;this.lm=!0};
$.g.gV=function(a){if(this.di&&!this.SF&&(this.hu||this.Bw)){var b=0,c=0;this.hu&&(b=0<this.hu?30:-30);(this.wx||this.Zi)&&this.Bw&&(c=0<this.Bw?30:-30);this.scroll(b,c,!0)&&(iL(this,a,this.hu),kL(this,a,this.hu,this.Bw))}};$.g.Xa=function(a){return $.n(a)?(this.elements().Xa(a),this):this.elements().Xa()};$.g.QL=function(a,b,c){return b?pL(this,b,c):this.Xa()};
$.g.ON=function(a){if(!qL(this,a)&&(a=a.item)&&nJ(a)){var b=!a.o("collapsed");this.Db.dispatchEvent({type:"rowcollapseexpand",item:a,collapsed:b})&&a.o("collapsed",b)}};$.g.QN=function(a){sL(this,a)||(rL(this,a),uL(this,a.item,a.periodIndex)&&(a=$.Qc(a),a.type="rowSelect",this.Db.dispatchEvent(a)))};
$.g.cs=function(a){var b=UK.u.cs.call(this,a),c=b&&b.originalEvent?b.originalEvent.domTarget:null;if(b&&c){var d=this.lb();d=Math.abs(d.left-a.offsetX)/d.width;var e=$.st(this.scale(),d);if(c.tag&&$.n(c.tag.type))var f=c.tag.type;b.hoverRatio=d;b.hoverDateTime=e;f&&(b.elementType=f,"milestones-preview"===f&&(b.tooltipItem=b.originalEvent.domTarget.tag.item));this.controller.g&&c.tag&&(b.period=c.tag.vb,b.periodIndex=c.tag.lq);if(a=Dea(this,a))this.controller.g?(b.period=a.vb,b.periodIndex=a.lq,b.elementType=
a.type):b.tooltipItem=a.item}return b};$.g.aL=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.Yn("markers",e,"value");if(null!==h){var k=$.rt(this.na,h);if(0<=k&&1>=k){h=.7*c;k=Math.round(this.ea.left+this.ea.width*k);var l=Math.round(b+c/2);k=this.Eb().add({value:{x:k,y:l}});k.pa("size",h/2);k.K(f)}}}}};$.g.bS=function(){var a=UK.u.bS.call(this);a.top+=this.bk();vJ(this).clip(a);return a};$.g.Ir=function(a){UK.u.Ir.call(this,a);XK(this).clip(a)};
$.g.oM=function(){yJ(this).zIndex(33);this.Eb().P(wJ(this));this.labels().P(wJ(this));this.cA().P(tJ(this));NL(this)};$.g.Mr=function(){this.cA().uf({left:this.ea.left,top:this.ea.top,width:this.ea.width,height:this.bk()});this.B(4096);this.nI=!0};$.g.Iu=function(){YK(this).stroke(IJ("columnStroke",2)(this,0))};$.g.ZT=function(a){a.fc(uJ(this)).fc(XK(this)).fc(OL(this)).fc(vJ(this)).fc(PL(this)).fc(wJ(this)).fc(xJ(this)).fc(yJ(this)).fc(zJ(this))};$.g.dr=function(){this.J(2048)&&(this.xx(),this.I(2048))};
$.g.MW=function(){var a=this.cA();this.J(512)&&(this.nI=this.Ay=!0,a.B(512),this.B(8192),this.I(512));var b=$.tt(this.na);if(this.nI){$.V(a);a.tW(b);for(var c=[],d=0;d<b.length;d++)if(a.level(d).enabled()){b=b[d];this.iC=b.unit;c=this.na.rn(window.NaN,window.NaN,b.unit,b.count);break}a.$();a.da(!1);a=c;if(a.length){b=YK(this).clear();c=b.stroke();c=$.Wo(c);d=this.ea.top+this.bk()+1;for(var e=this.ea.top+this.ea.height,f=0,h=a.length;f<h;f++){var k=$.rt(this.na,a[f].start);k=this.ea.left+this.ea.width*
k;k=$.R(k,c);b.moveTo(k,d).lineTo(k,e)}}b=this.na.dj();c=this.na.cj();a=$.rt(this.na,b.min)*this.ea.width;d=$.rt(this.na,b.max)*this.ea.width;b=$.rt(this.na,c.min)*this.ea.width;c=$.rt(this.na,c.max)*this.ea.width;this.Dh&&(a=new $.J(a,0,d-a,0),b=new $.J(b,0,c-b,0),$.V(this.Dh).To(!1).Xf(a).WO(b).$().To(!0).da(!1),this.Dh.P()&&this.Dh.$())}if(this.J(8192)){QK(this).clear();RK(this).clear();SK(this).clear();TK(this).clear();if(this.na.be&&this.iC&&LL.day>=LL[this.iC])for(a=this.na.PC(),b=0;b<a.length;b++)c=
a[b],d=c.start,e=c.end,f=c.isWeekend,c.isHoliday?"day"===this.iC?KL(this,SK(this),d,e):ML(this,c):f?KL(this,TK(this),d,e):ML(this,c);this.I(8192)}};
$.g.i3=function(){if(this.Ay||this.nI){for(var a=VK(this),b=0;b<a.length;b++){var c=a[b];c.vf||c.LD();c.vf.Wu()}vJ(this).Ki();this.cJ=0;this.Eb().clear();if(this.controller.g){if(this.Ds().i("enabled"))for(var d=this.ea.top+this.bk()+1-this.controller.Wl(),e=this.controller.D,f=this.controller.mg();f<=this.controller.wj();f++){var h=e[f];if(!h)break;var k=xI(this.controller,h),l=d+k,m=h,p=d,q=k,r=m.get("periods");if(r)for(var t=0;t<r.length;t++){var u=pJ(m,t),v=u.start,w=u.end;if(u.sU){var x=$.rt(this.na,
v),y=$.rt(this.na,w);if(0<y&&1>x){var B=this.ea.left+this.ea.width*x,G=this.ea.left+this.ea.width*y-B,C=this.Ds(),I=C.ud(m,t),P=$.M(I,q),Q=new $.J(B,p,G,q),S=C.i("anchor"),sa=C.i("position");"auto"==S&&(S=hL(this,sa,"periods"));var va=C.MC(m,t),Oa=$.M(va,q),vb=$.xo(Q,sa),mc=vb.y+($.Do(S)?0:$.Eo(S)?-P:-P/2)+Oa,kb=hJ(this.Db.Sk(),m,t),Qb=yL(C,new $.J(vb.x,mc,G,P),m,t,kb),Gb=this.Ep(m,C,Qb,t);zL(this,m,Qb,t);AK(C.kj(),m,Qb,Gb,t,kb);CL(this,m,C,Qb,t)}}else u.CM&&EL(this,m,p,q,u,t)}this.aL(h,d,k);d=l+
this.oo}}else for(var ic=this.ea.top+this.bk()+1-this.controller.Wl(),ie=this.controller.D,Rb=this.controller.mg();Rb<=this.controller.wj();Rb++){var Fc=ie[Rb];if(!Fc)break;var Wb=xI(this.controller,Fc),Ie=ic+Wb;if(mJ(Fc)){var dd=void 0,Lc=void 0,hb=void 0,zc=Fc,Je=ic,nh=Wb,je=kJ(zc),oh=je.uM||nJ(zc),ve=oh?this.Yp():this.Jc(),Yd=this.Nn(),we=gJ(this.Db.Sk(),zc),af=je.start,rd=je.end;oh&&(rd=(0,window.isNaN)(rd)?af:rd,af=(0,window.isNaN)(af)?rd:af);var ph=je.MZ,ld=je.KZ,Gg=$.rt(this.na,af),Kg=$.rt(this.na,
rd),cm=$.rt(this.na,ph),xe=$.rt(this.na,ld),ke=ve.i("enabled"),sf=Yd.i("disableWithRelatedTask"),If=Yd.i("enabled")&&(sf?ke:!0),zj=0<Kg&&1>Gg&&ke,dm=0<xe&&1>cm&&If;if(zj||dm){var Mc=this.ea;if(zj){var Ui=Mc.left+Mc.width*Gg;hb=xL(this,ve,new $.J(Ui,Je,Mc.left+Mc.width*Kg-Ui,nh),zc,!0)}if(dm){var vi=Mc.left+Mc.width*cm;Lc=xL(this,Yd,new $.J(vi,Je,Mc.left+Mc.width*xe-vi,nh),zc,!0)}hb&&Lc&&DL(this,hb,Lc,ve,zc);if(Lc){Lc=yL(Yd,Lc,zc,void 0,we);var $g=this.Ep(zc,Yd,Lc);AK(Yd.kj(),zc,Lc,$g,void 0,we);CL(this,
zc,Yd,Lc)}if(hb){if(oh&&!hb.width){var wi=hb.height;hb.left-=wi/2;hb.width=wi;je.pH=!0}hb=yL(ve,hb,zc,void 0,we);var ye=this.Ep(zc,ve,hb);oh&&this.Pc().qm().i("enabled")&&0!=this.Pc().qm().i("depth")&&FL(this,0,zc,Je,nh,$.oa(zc));zL(this,zc,hb);if(je.pH){AK(ve.kj(),zc,hb,ye,void 0,we);CL(this,zc,ve,hb);var Jf=ve.Ed();if(je.tU&&Jf.i("enabled")){var Aj=wL(je.Ed,hb.width,Jf),Bj=xL(this,Jf,new $.J(hb.left,hb.top,Aj,hb.height),zc),Vi=this.Ep(zc,Jf,Bj);AK(Jf.kj(),zc,Bj,Vi,void 0,we);Aj&&CL(this,zc,Jf,Bj)}}}Lc?
dd=Lc:hb&&(dd=hb.clone(),dd.top=Je,dd.height=nh,dd=xL(this,Yd,dd,zc,!0),dd.top+=.5,DL(this,hb,dd,ve,zc));if(dd){var ze=Yd.Ed();if(je.NQ&&ze.i("enabled")){var em=wL(je.LZ,dd.width,ze),Cj=xL(this,ze,new $.J(dd.left,dd.top,em,dd.height),zc),Wi=this.Ep(zc,ze,Cj);AK(ze.kj(),zc,Cj,Wi,void 0,we);em&&CL(this,zc,ze,Cj)}}}}else if(nJ(Fc)||Fc.get("anychartIsLoadable")){var Gd=Fc,Xh=ic,Xi=Wb,ah=kJ(Gd);if(this.Yp().i("enabled")&&(ah.pH||ah.Rea||ah.uM)){this.Pc().qm().i("enabled")&&0!=this.Pc().qm().i("depth")&&
FL(this,0,Gd,Xh,Xi,$.oa(Gd));var Yh=ah.start,rh=ah.end;rh=(0,window.isNaN)(rh)?Yh:rh;Yh=(0,window.isNaN)(Yh)?rh:Yh;var bh=$.rt(this.na,Yh),Ke=$.rt(this.na,rh);if(0<Ke&&1>bh){var uk=this.ea,vg=this.Yp(),Kf=uk.left+uk.width*bh,Cd=uk.left+uk.width*Ke-Kf,Qd=xL(this,vg,new $.J(Kf,Xh,Cd,Xi),Gd);if(!Qd.width){var md=Qd.height;Qd.left-=md/2;Cd=md;Qd.width=Cd}var wg=gJ(this.Db.Sk(),Gd);Qd=yL(vg,Qd,Gd,void 0,wg);var Zh=this.Ep(Gd,vg,Qd);zL(this,Gd,Qd);AK(vg.kj(),Gd,Qd,Zh,void 0,wg);CL(this,Gd,vg,Qd);var $h=
vg.Ed();if(ah.tU&&$h.i("enabled")){var Nb=wL(ah.Ed,Cd,$h),Rd=xL(this,$h,new $.J(Qd.left,Qd.top,Nb,Qd.height),Gd),ai=this.Ep(Gd,$h,Rd);AK($h.kj(),Gd,Rd,ai,void 0,wg);Nb&&CL(this,Gd,$h,Rd)}}}}else if(lJ(Fc))EL(this,Fc,ic,Wb);else{var Lf=Fc,Ae=ic,Zd=Wb,sh=kJ(Lf),ch=this.Jc();if(ch.i("enabled")&&sh.pH){var xi=sh.end,bi=$.rt(this.na,sh.start),dh=$.rt(this.na,xi);if(0<dh&&1>bi){var Dj=this.ea,Yi=Dj.left+Dj.width*bi,fm=Dj.left+Dj.width*dh-Yi,Ej=xL(this,ch,new $.J(Yi,Ae,fm,Zd),Lf),rq=gJ(this.Db.Sk(),Lf);
Ej=yL(ch,Ej,Lf,void 0,rq);var xu=this.Ep(Lf,ch,Ej);zL(this,Lf,Ej);AK(ch.kj(),Lf,Ej,xu,void 0,rq);CL(this,Lf,ch,Ej);var gm=ch.Ed();if(sh.tU&&gm.i("enabled")){var hm=wL(sh.Ed,fm,gm),vk=xL(this,gm,new $.J(Ej.left,Ej.top,hm,Ej.height),Lf),im=this.Ep(Lf,gm,vk);AK(gm.kj(),Lf,vk,im,void 0,rq);hm&&CL(this,Lf,gm,vk)}}}}this.aL(Fc,ic,Wb);ic=Ie+this.oo}this.Eb().$();for(var yu=this.controller.ga,Zi=yu.length,sq,dB=this.controller.g?this.controller.ka:this.controller.ya;Zi--;){sq=yu[Zi];var th=sq.to;$.D(th)||
(th=dB[th]);$.n(th)?(sq.to=th,JL(this,sq.from,th,sq.type,sq.connSettings)):$.Ca(yu,Zi,1)}for(var gs=this.cJ,hs=this.dJ.length;gs<hs;gs++)this.dJ[gs].reset();this.B(2048);this.nI=!1}};
$.g.q2=function(){if(this.J(4096)){for(var a=$.Ga(this.pA,this.HA,this.eB),b=this.ea.top+this.bk()+1,c=new $.J(this.ea.left,b,this.ea.width,this.ea.height-this.bk()-1),d=0,e=a.length;d<e;d++){var f=a[d];if(f){var h=c,k=OL(this);$.K(f,nK)&&(h=new $.J(this.ea.left,b,this.ea.width,this.d5),k=PL(this));$.V(f);f.B(4);f.ja(h);f.P(k);f.B(2);f.$();f.da(!1)}}this.I(4096)}};$.g.Zd=function(){this.B(2048,1)};
$.g.xx=function(){$.V(this.labels());this.labels().clear();this.hE=[];for(var a=this.i("cropLabels"),b=VK(this),c=0;c<b.length;c++){var d=b[c];if(d.i("enabled")){d.vf||d.LD();var e=d.vf.CO;for(u in e)if(e.hasOwnProperty(u)){var f=e[u];if(f.jH){var h=this.Ec(f.item,f.vb,f.lq);f.label=this.labels().add(h,{value:{x:0,y:0}});var k=f.zU,l=f.labels,m=l&&l[0]?l[0]:null,p=this.elements().labels(),q=this.labels(),r=k&&$.n(k.enabled)?k.enabled:null;p=d&&$.n(p.enabled())?p.enabled():null;m=m&&$.n(m.enabled())?
m.enabled():null;var t=!1;null===r?null===p?null===m?t=q.enabled():t=m:t=p:t=r;if(t){f.label.oi();f.label.enabled(!0);f.label.state("labelOwnSettings",f.label.Ma,0);f.label.state("pointState",k,1);k=l.length;for(q=0;q<k;q++)p=l[q],r=2+q,f.label.state("st"+r,p,r);for(q=0;q<k;q++)p=l[q],r=2+q+k,f.label.state("st"+r,p.ma,r);l=$.Bk(f.label.ic("position"));l={value:$.xo(f.Za,l)};f.label.uc(l);$.$u(h).label={value:f.label,type:""};$.av(h);f.label.lf(h);$.V(this.controller.data());f.item.o("label",f.label);
this.controller.data().da(!1)}else f.label.enabled(!1);f.label.$();$.A(this.hE[f.hf])||(this.hE[f.hf]=[]);h="periods"===f.type||"milestones"===f.type;l="milestones-preview"===f.type;((k=this.controller.g)&&h||!k&&l)&&$.Ua(this.hE[f.hf],f,Eea)}}}}if(a)for(c=this.controller.mg(),a=this.controller.wj();c<=a;c++)for(d=this.hE[c]||[],e=0;e<d.length;e++){h=d[e-1]||null;var u=d[e];k=d[e+1]||null;f=tL(u.label);l=u;k?(q=k.Za.qb()-l.Za.$a(),r=tL(k.label),l=l.Za.$a()+q/2,l=r.qb()<k.Za.qb()&&0<q?r.qb()<=l?l:
r.qb():k.Za.qb()):l=window.Infinity;(k=h)?(h=k.Za.$a(),k.label.enabled()?(k.label.$(),k=tL(k.label).$a(),k=Math.max(h,k)):k=h):k=-window.Infinity;h=Math.min(l,f.$a());l=Math.max(k,f.qb());k=h-l;"center"===u.label.ic("anchor").split("-")[0]&&(k=u.label.ic("position").split("-")[0],k=$.xo(u.Za,k),k=2*Math.min(k.x-l,h-k.x));20<=k&&k<f.width?(u.label.width(k),u.label.height(f.height)):20>k&&u.label.enabled(!1)}this.labels().da(!0);this.labels().$();this.elements().labels().I(4294967295);for(a=0;a<b.length;a++)b[a].labels().I(4294967295)};
$.g.NF=function(){var a=this.Db.Sk();if(a.f&&this.elements().bf().i("enabled")){var b=a.f,c=b.hda,d=b.Mia,e=b.e_,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.g){d=b.h0;var l=h.get("periods")[d];f=l.connector;b=b.Y4;var m=k.get("periods")[b];k=m.id;c.fromPeriodIndex=d;c.fromPeriod=l;c.toPeriodIndex=b;c.toPeriod=m;if($.A(f))for(b=0;b<f.length;b++){if(l=f[b])m=l.connectorType||"finish-start",l.connectTo==
k&&m==e&&this.Db.dispatchEvent(c)&&(h.Mq("periods",d,"connector",b),iJ(a,null))}else this.Db.dispatchEvent(c)&&(h.Mq("periods",d,"connector"),h.Mq("periods",d,"connectorType"),h.Mq("periods",d,"connectTo"),iJ(a,null))}else if(d=k.get("id"),f=h.get("connector"),$.A(f))for(b=0;b<f.length;b++){if(k=f[b])l=k.connectorType||"finish-start",d==k.connectTo&&l==e&&this.Db.dispatchEvent(c)&&(h.Mq("connector",b),iJ(a,null))}else this.Db.dispatchEvent(c)&&(h.Mq("connector"),h.Mq("connectorType"),h.Mq("connectTo"),
iJ(a,null))}};$.g.Sw=function(a){return $.n(a)?(QI(this.controller).K(a),this):QI(this.controller)};$.g.Zp=function(a){if(!this.Dh){this.Dh=new gI;this.Dh.X($.wm("defaultScrollBar"));this.Dh.pe("horizontal");var b=this.na;this.Dh.ra("scrollchange",function(a){var c=a.startRatio;a=a.endRatio;var e=b.dj(),f=e.min;e=e.max-f;b.qr(Math.round(f+c*e),Math.round(f+a*e))});$.L(this.Dh,this.iW,this)}return $.n(a)?(this.Dh.K(a),this):this.Dh};$.g.iW=function(a){$.X(a,8)&&this.B(4,1)};
$.g.scroll=function(a,b,c){if(a||b){$.kr(this,this.na,this.controller);c||(this.di=!1,(0,window.clearInterval)(this.Fn),this.Fn=null,gL(this));var d=this.controller.mg(),e=this.controller.b,f=this.controller.Wl();RI(this.controller,(d?e[d-1]:0)+(f+b));a/=this.ea.width;if(c&&!this.wx&&(this.ux||this.UR))c=this.na,a&&!c.Dj()&&($.qt(c),c.dj(),b=Math.round((c.Pe-c.Qe)*a),a=c.Qe+b,b=c.Pe+b,!(0,window.isNaN)(c.Lm)&&a<c.Lm||!(0,window.isNaN)(c.Km)&&b>c.Km||(c.Ch=window.NaN,c.Qe=a,c.Bh=window.NaN,c.Pe=b,
c.ta(4)));else if(this.wx||this.di&&this.Zi||!this.di)c=this.na,a&&!c.Dj()&&($.qt(c),b=c.dj(),a=Math.round((c.Pe-c.Qe)*a),a=0<=a?Math.min(b.max-c.Pe,a):Math.max(b.min-c.Qe,a),c.qr(c.Qe+a,c.Pe+a));$.mr(this.na,this.controller,this);this.B(4608,1);return!0}return!1};$.g.HG=function(a){a=$.Za(a,-100,100);return 1.05+Math.abs(a)/100};
$.g.ly=function(a){if(this.i("zoomOnMouseWheel")){a.preventDefault();JJ(this);this.Xa().Oc();var b=a.deltaY,c=this.HG(b);a=a.clientX;var d=$.Wj(this.P().Ha()).x;a=(a-this.xb.left()-d)/this.Za().width();0>b?this.na.Cr(c,a):this.na.Dr(c,a)}else UK.u.ly.call(this,a)};
$.g.F=function(){var a=UK.u.F.call(this);a.scale=this.na.F();a.labels=this.labels().F();a.markers=this.Eb().F();a.header=this.cA().F();$.Hq(this,KM,a,void 0,void 0,!0);a.elements=this.elements().F();a.connectors=this.Sn().F();a.milestones=this.Pc().F();this.controller.g?a.periods=this.Ds().F():(a.tasks=this.Jc().F(),a.groupingTasks=this.Yp().F(),a.baselines=this.Nn().F());var b,c=[];for(b=0;b<this.pA.length;b++){var d=this.pA[b];d&&c.push(d.F())}c.length&&(a.lineAxesMarkers=c);c=[];for(b=0;b<this.HA.length;b++)(d=
this.HA[b])&&c.push(d.F());c.length&&(a.rangeAxesMarkers=c);c=[];for(b=0;b<this.eB.length;b++)(d=this.eB[b])&&c.push(d.F());c.length&&(a.textAxesMarkers=c);this.Dh&&(a.horizontalScrollBar=this.Zp().F());a.verticalScrollBar=this.Sw().F();return a};
$.g.X=function(a,b){UK.u.X.call(this,a,b);"scale"in a&&this.na.K(a.scale);this.labels().ia(!!b,a.labels);"markers"in a&&this.Eb(a.markers);"header"in a&&!b&&this.cA().ia(!1,a.header);$.zq(this,KM,a,b);this.elements().ia(!!b,a.elements);this.Pc().ia(!!b,a.milestones);this.Sn().ia(!!b,a.connectors);this.controller.g?this.Ds().ia(!!b,a.periods):(this.Jc().ia(!!b,a.tasks),this.Yp().ia(!!b,a.groupingTasks),this.Nn().ia(!!b,a.baselines));"defaultLineMarkerSettings"in a&&this.LK(a.defaultLineMarkerSettings);
"defaultRangeMarkerSettings"in a&&this.MK(a.defaultRangeMarkerSettings);"defaultTextMarkerSettings"in a&&this.QK(a.defaultTextMarkerSettings);var c=a.lineAxesMarkers,d=a.rangeAxesMarkers,e=a.textAxesMarkers,f;if($.A(c))for(f=0;f<c.length;f++)this.Jm(f,c[f]);if($.A(d))for(f=0;f<d.length;f++)this.Sm(f,d[f]);if($.A(e))for(f=0;f<e.length;f++)this.Xm(f,e[f]);"horizontalScrollBar"in a&&this.Zp(a.horizontalScrollBar);"verticalScrollBar"in a&&this.Sw(a.verticalScrollBar)};
$.g.R=function(){$.qd(this.Dh);this.Dh=null;$.Zq(this.na,this.Vh);this.Dk&&$.Zq(this.Dk,this.r1);for(var a=$.Ga(this.pA,this.eB,this.HA),b=0;b<a.length;b++){var c=a[b];c&&($.Zq(c,this.oy),$.qd(c))}this.rt&&(this.rt.ac("start",this.Q_,!1,this),this.rt.ac("drag",this.R_,!1,this),this.rt.ac("end",this.S_,!1,this));this.st&&(this.st.ac("start",this.U_,!1,this),this.st.ac("drag",this.V_,!1,this),this.st.ac("end",this.T_,!1,this));this.qt&&(this.qt.ac("start",this.P_,!1,this),this.qt.ac("drag",this.mL,
!1,this),this.qt.ac("end",this.lL,!1,this));this.tt&&(this.tt.ac("start",this.W_,!1,this),this.tt.ac("drag",this.mL,!1,this),this.tt.ac("end",this.lL,!1,this));this.ut&&(this.ut.ac("start",this.jL,!1,this),this.ut.ac("drag",this.kL,!1,this),this.ut.ac("end",this.iL,!1,this));this.pt&&(this.pt.ac("start",this.jL,!1,this),this.pt.ac("drag",this.kL,!1,this),this.pt.ac("end",this.iL,!1,this));$.td(this.Bx,this.mw,this.pk,this.Ev,this.Pj,this.Ou,this.xm,this.na,this.Dk,this.WD,this.Qp,this.Lz,this.gv,
this.hv,this.iv,this.fv,this.wC,this.rt,this.st,this.qt,this.tt,this.ut,this.pt,this.eh,this.Ut);this.xm=this.Ut=this.eh=null;this.pA.length=0;this.HA.length=0;this.eB.length=0;UK.u.R.call(this)};$.H(QL,UK);$.ju(QL,UK);$.H(RL,UK);$.ju(RL,UK);var LM=UK.prototype;LM.edit=LM.bf;LM.horizontalScrollBar=LM.Zp;LM.verticalScrollBar=LM.Sw;LM.tooltip=LM.Xa;LM.labels=LM.labels;LM.markers=LM.Eb;LM.scale=LM.scale;LM.textMarker=LM.Xm;LM.lineMarker=LM.Jm;LM.rangeMarker=LM.Sm;LM.header=LM.cA;LM.elements=LM.elements;
LM.connectors=LM.Sn;LM.tasks=LM.Jc;LM.milestones=LM.Pc;LM.groupingTasks=LM.Yp;LM.baselines=LM.Nn;LM.periods=LM.Ds;LM=QL.prototype;$.F("anychart.standalones.projectTimeline",function(){var a=new QL;a.K($.mm("standalones.projectTimeline"));return a});$.F("anychart.standalones.resourceTimeline",function(){var a=new RL;a.K($.mm("standalones.resourceTimeline"));return a});LM.draw=LM.$;LM.data=LM.data;LM.parentBounds=LM.ja;LM.container=LM.P;LM.headerHeight=LM.bk;LM.defaultRowHeight=LM.Fu;LM.palette=LM.cc;
LM=RL.prototype;LM.draw=LM.$;LM.data=LM.data;LM.parentBounds=LM.ja;LM.container=LM.P;LM.headerHeight=LM.bk;LM.defaultRowHeight=LM.Fu;LM.palette=LM.cc;$.H(TL,$.ox);TL.prototype.Na=function(){return this.O?"gantt-resource":"gantt-project"};TL.prototype.sa=$.ox.prototype.sa|12288;TL.prototype.qa=$.ox.prototype.qa;var Fea=20;$.g=TL.prototype;$.g.Te=function(){return[]};$.g.Ig=function(){return null};$.g.Mi=function(){return this};$.g.Hi=function(){return this};$.g.Fl=function(a){return $.n(a)?(a=$.yk(a),a!=this.N&&(this.N=a),this):this.N};$.g.h_=function(a){$.X(a,2)&&this.B(8192,1)};$.g.Qha=function(a){$.X(a,1)&&a.target.$();$.X(a,8)&&this.B(4,1)};
$.g.$ba=function(a){$.X(a,32768)&&this.B(4,1);PI(this.g)};$.g.data=function(a,b){return $.n(a)?($.K(a,$.Nt)||$.K(a,$.Kt)?this.oa!=a&&(this.oa=a,this.B(4352,1)):(this.oa=new $.Nt(a,b),this.B(4352,1)),this):this.oa};$.g.Fu=function(a){return $.n(a)?(wI(this.g,a),this):wI(this.g)};$.g.yH=function(a){this.f.yH(a);this.b.yH(a)};var MM={};$.gq(MM,0,"headerHeight",$.tq);$.gq(MM,0,"splitterPosition",$.tq);$.gq(MM,1,"rowHoverFill",$.Bq);$.gq(MM,1,"rowSelectedFill",$.Bq);$.gq(MM,1,"columnStroke",$.Dq);
$.gq(MM,1,"rowStroke",$.Dq);$.U(TL,MM);$.g=TL.prototype;$.g.XE=function(a){return $.n(a)?(SL(this).enabled(a),this):SL(this)};$.g.Sf=function(){if(!this.b){this.b=new UK(this.g,this.O);$.W(this,"timeline",this.b);this.b.zIndex($.wm("defaulTimeline").zIndex);rJ(this.b,this);var a=this;$.L(this.b,function(){PI(a.g)},this.g)}return this.b};$.g.Cr=function(a){this.Sf().zv().Cr(a);return this};$.g.Dr=function(a){this.Sf().zv().Dr(a);return this};$.g.Ui=function(a,b,c){this.Sf().zv().Ui(a,b,c);return this};
$.g.Cm=function(){this.Sf().zv().Cm();return this};
$.g.$ca=function(a){var b=this.b.ea;if(b&&b.width){var c=this.oa.op("id",a);if(c.length){c=c[0];var d=c.o("actualStart"),e=c.o("actualEnd");if(!$.n(d)||((0,window.isNaN)(d)||$.n(e))&&d!=e){if(this.Sf().zv().qr(d,e),0<b.width&&(a=c.o("relBounds"),c=c.o("label")))if(d=this.b.labels().measure(c,c.uc()),a&&d){c=d.left<a.left;a=d.left+d.width>a.left+a.width;if(d.width<b.width){b=b.width/(b.width-d.width);if(c&&!a){var f=$.st(this.b.scale(),1-b);var h=$.st(this.b.scale(),1)}a&&!c&&(f=$.st(this.b.scale(),
0),h=$.st(this.b.scale(),b))}else f=$.st(this.b.scale(),0),h=$.st(this.b.scale(),d.width/b.width);this.Sf().zv().qr(f,h)}}else $.el(11,null,[a])}else $.el(404,null,["Task",a])}return this};$.g.c$=function(a){return $.n(a)?(RI(this.g,a),this):RI(this.g)};$.g.e$=function(a){$.V(this.g).mg(a).Wl(0).da(!0);return this};$.g.Va=function(a){return $.n(a)?(this.Sf().scale(a),this):this.Sf().scale()};$.g.d$=function(a){var b=this.g;a=a||b.b.length-1;b.wj(a);return this};$.g.a$=function(){SI(this.g,!0);return this};
$.g.b$=function(){SI(this.g,!1);return this};$.g.oda=function(){return this.g.nb};$.g.Rca=function(a){return UL(this,a,!1)};$.g.Jba=function(a){return UL(this,a,!0)};$.g.TY=function(){this.ga||(this.ga=new $.qx,this.ga.ra("statechange",function(){this.b.B(128,1);this.f.B(128,1)},void 0,this));return this.ga};$.g.bm=function(){return[]};$.g.Q3=function(a){this.QN(a)};$.g.R3=function(a){this.ON(a)};$.g.fo=function(a,b,c){this.f.fo(a,b,c);this.b.fo(a,b,c)};
$.g.jv=function(a,b,c){this.f.jv(a,b,c);this.b.jv(a,b,c)};$.g.Sk=function(){return this.U};
$.g.U3=function(a){var b=a.target;if(!b.di&&!b.wx){this.fo(a.hoveredIndex,a.startY,a.endY);var c=a.tooltipItem?a.tooltipItem:a.item;var d=b.QL(void 0,c,a.periodIndex);if($.K(b,dK)){var e=pL(this.b,c),f=e.i("format");e=e.i("titleFormat");d.Ga.format=f;d.Ga.titleFormat=e}else $.ow(b.Xa());d.enabled()&&(b=b.Ec(c,a.period,a.periodIndex,a.elementType,a.hoverRatio,a.hoverDateTime),d.parent()&&$.ow(d.parent()),$.Aw(d,a.originalEvent.clientX,a.originalEvent.clientY,b))}};
$.g.V3=function(a){this.fo();this.f.QL().Oc();this.b.QL(void 0,a.item,a.periodIndex).Oc()};$.g.QN=function(a){if(!sL(this.b,a)){var b=a.item,c=a.period,d=a.periodIndex,e=this.Sk(),f=this.O?hJ(e,b,d):gJ(e,b);b&&!f&&(f={type:"rowSelect",item:b,prevItem:e.b},$.n(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)&&(rL(this.b,a),OJ(this.f,b),uL(this.b,b,d)))}};
$.g.ON=function(a){if(a&&!qL(this.b,a)&&(a=a.item)&&nJ(a)){var b=!a.o("collapsed");this.dispatchEvent({type:"rowcollapseexpand",item:a,collapsed:b})&&a.o("collapsed",b)}};$.g.pI=function(a){a.target.pI(a)};$.g.qI=function(a){var b=this.Sk(),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.f.qI(a),this.b.qI(a));rL(this.b,a)};$.g.PN=function(a){a.target.PN(a)};
$.g.pN=function(a){var b=a.event,c=a.target;$.K(c,jJ)&&(a.interactivityEvent=c.cs(b));return a};$.g.bf=function(a){this.Ci||(this.Ci=new dJ,$.W(this,"edit",this.Ci));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Ci.K(a),this):this.Ci};$.g.NF=function(a){this.f.NF(a);this.b.NF(a)};
$.g.ei=function(a){$.kr(SL(this),this.Sf(),VL(this),this.g);this.j.P()||(this.f.P(this.La),this.b.P(this.La),this.j.P(this.La),this.G.P(this.La));var b=this.f.i("fixedColumns"),c=this.i("headerHeight");if(this.J(4)&&0<a.width){if(this.f.enabled()){var d=b?hK(this.f):Math.round($.M(this.i("splitterPosition"),a.width));this.j.Za(a);if(b){var e=hK(this.f,!0);if(e){var f=this.j;e+=fM;f.D=e;f.U=e;f.B(64)}else UI(this.j)}else UI(this.j);d=$.Za(d/a.width,0,1);this.j.To(!1);this.j.position(d);this.j.$();
this.j.To(!0);b&&this.j.position()!=d&&(this.j.To(!1),this.j.position(d),this.j.$(),this.j.To(!0))}else this.b.Za().set(a);b=a.height-c-1;KI(this.g)!=b&&(this.b.bk(c),this.f.bk(c),KI(this.g,b));b=this.f.enabled();this.j.enabled(b);b&&(b=this.j,b.Ya||(b.Ya=b.lb()),d=b.ba?b.b:0,b=VI(b)?new $.J($.Qm(b.Ya.qb(),1),$.Qm(b.Ya.bc(),1),$.Qm((b.Ya.Xd()-d)*b.Re,1),$.Qm(b.Ya.ud(),1)):new $.J($.Qm(b.Ya.qb(),1),$.Qm(b.Ya.bc(),1),$.Qm(b.Ya.Xd(),1),$.Qm((b.Ya.ud()-d)*b.Re,1)),d=rea(this.j),this.f.Za().set(b),this.b.Za().set(d));
b=this.b.lb();d=this.G.TB();this.G.Za(a.left+a.width-d-1,b.top+c+d+1,d,b.height-c-2*d-2)}this.J(4096)&&(this.g.data(this.oa),this.B(8192),this.I(4096));$.lr(this.f,this.b,this.j,this.g);$.Ep()&&this.f.il(!0);PI(this.g);0<a.width&&VL(this).$();this.J(8192)&&this.I(8192)};$.g.qk=function(a,b){return $.cu(this.data(),b)};$.g.Ej=function(){return this.oa?!this.oa.Zb():!0};
$.g.cc=function(a){if($.K(a,$.ys))return this.Ic($.ys,a),this;if($.K(a,$.vs))return this.Ic($.vs,a),this;$.D(a)&&"range"==a.type?this.Ic($.ys):($.D(a)||null==this.Ea)&&this.Ic($.vs);return $.n(a)?(this.Ea.K(a),this):this.Ea};$.g.Ic=function(a,b){if($.K(this.Ea,a))b&&this.Ea.K(b);else{var c=!!this.Ea;$.qd(this.Ea);this.Ea=new a;b&&this.Ea.K(b);$.L(this.Ea,this.If,this);c&&(SL(this).B(128),this.Sf().B(128),this.B(8192,1))}};
$.g.If=function(a){$.X(a,2)&&(SL(this).B(128),this.Sf().B(128),this.B(8192,1))};$.g.F=function(){var a=TL.u.F.call(this);$.Hq(this,MM,a,void 0,void 0,!0);a.defaultRowHeight=this.Fu();a.controller=this.g.F();a.dataGrid=this.XE().F();a.timeline=this.Sf().F();a.edit=this.bf().F();a.palette=this.cc().F();return{gantt:a}};
$.g.X=function(a,b){TL.u.X.call(this,a,b);"controller"in a&&this.g.X(a.controller,b);this.data(this.g.data());"dataGrid"in a&&this.XE().X(a.dataGrid,b);"timeline"in a&&this.Sf().X(a.timeline,b);this.cc(a.palette);$.zq(this,MM,a,b);this.Fu(a.defaultRowHeight);"edit"in a&&this.bf().ia(!!b,a.edit)};$.g.R=function(){$.Zq(this.g,this.h_,this);$.td(this.Ea,this.g,this.G,this.f,this.b,this.j,this.Ci,this.U);this.U=this.Ci=this.j=this.b=this.f=this.G=this.g=this.Ea=null;TL.u.R.call(this)};var NM=TL.prototype;
NM.data=NM.data;NM.dataGrid=NM.XE;NM.getTimeline=NM.Sf;NM.zoomIn=NM.Cr;NM.zoomOut=NM.Dr;NM.zoomTo=NM.Ui;NM.fitAll=NM.Cm;NM.fitToTask=NM.$ca;NM.scrollTo=NM.c$;NM.scrollToRow=NM.e$;NM.scrollToEnd=NM.d$;NM.collapseAll=NM.a$;NM.expandAll=NM.b$;NM.expandTask=NM.Rca;NM.collapseTask=NM.Jba;NM.getType=NM.Na;NM.edit=NM.bf;NM.toCsv=NM.qk;NM.xScale=NM.Va;NM.defaultRowHeight=NM.Fu;NM.palette=NM.cc;NM.rowsColoring=NM.TY;NM.statefulColoring=NM.TY;NM.getCollapsedItemsMap=NM.oda;$.Lp["gantt-resource"]=XL;$.Lp["gantt-project"]=WL;$.F("anychart.ganttProject",WL);$.F("anychart.ganttResource",XL);}).call(this,$)}
