if(!_.gantt_base){_.gantt_base=1;(function($){var SH,TH,lea,UH;$.PH=function(){$.Yq.call(this);this.B(4294967295);$.T(this.ua,[["id"],["className"]])};$.QH=function(){$.Yq.call(this);this.Pa=new $.tu;$.L(this.Pa,this.vk,this);this.Rb=this.Y=null;this.I(4294967295);$.vq(this.ua,0,0,9,1);$.T(this.ua,[["fill",0,1],["format",20,9]])};
$.RH=function(){$.Y.call(this);this.Ya=this.b=null;this.G=new $.PH;$.L(this.G,this.V9,this);this.Ka=new $.ku;$.L(this.Ka,this.T9,this);this.Pa=new $.tu;$.L(this.Pa,this.Pl,this);this.D=new $.QH;this.D.parent(this);$.L(this.D,this.Bea,this);this.Rb=this.Y=this.cb=null;this.Da=[];this.N=[];$.vq(this.ua,20,20,9,1);$.T(this.ua,[["format",20,9],["stroke",16,1],["fill",16,1],["levelHeight",16,1],["drawTopLine",256,1],["drawRightLine",256,1],["drawBottomLine",256,1],["drawLeftLine",256,1]])};
SH=function(a,b,c){var d=a.Da[b]||null;if(!d&&c){a.Mz();c=$.mm("defaultLabelFactory.format");var e=$.mm("defaultLabelFactory.positionFormatter");d=new $.Du;d.format(c);d.positionFormatter(e);d.Ye();d.enabled(!0);d.P(a.Fh);a.Da[b]=d}return d};TH=function(a,b,c){return(a=a.N[b])?a.dd(c):void 0};lea=function(a,b,c,d,e,f){for(var h=0,k=f.length;h<k;h++){var l=f[h];d.width=null;d.height=null;if(c.measure(a.im(b,l),void 0,d).width<e.width)return h}return k-1};
UH=function(a,b){$.Yq.call(this);this.Dk=a;this.wd=b;$.vq(this.ua,20,20,9,1);$.T(this.ua,[["format",20,9],["enabled",512,1],["stroke",16,1],["fill",16,1],["height",16,1]])};$.H($.PH,$.Yq);$.PH.prototype.sa=23;$.PH.prototype.qa=$.Yq.prototype.qa|1;var VH={};$.gq(VH,0,"id",$.oq);$.gq(VH,0,"className",$.oq);$.U($.PH,VH);$.g=$.PH.prototype;$.g.enabled=function(a){return $.n(a)?(this.Ma.enabled!=a&&(a=this.Ma.enabled=a,this.B(1,1),a?this.da(!0):(0,window.isNaN)(this.wo)&&$.V(this)),this):this.i("enabled")};
$.g.target=function(a){return $.n(a)?(this.b!=a&&(this.b=a,this.B(2)),this):this.b};$.g.Ta=function(){return this.Jd};$.g.uf=function(a){this.xb=a;this.B(4)};$.g.th=function(a){return null!=this.Ma[a]};$.g.EL=function(){return 16};$.g.fs=function(){return 1};$.g.Bc=function(){if(this.ef()||this.fd)return!1;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.B(2)),!1;if(!this.target())return this.remove(),this.B(2),$.cl(1),!1;this.I(1);return!0};
$.g.$=function(){if(!this.Bc())return this;this.Jd||(this.Jd=$.Ne("DIV"),$.uf(this.Jd,{position:"absolute","pointer-events":"none"}));this.J(2)&&(this.b.appendChild(this.Jd),this.I(2));if(this.J(16)){var a=this.i("id");$.n(a)&&this.Jd.setAttribute("id",a);a=this.i("className");$.n(a)&&(this.Jd.className=a);this.I(16)}this.J(4)&&($.Bf(this.Jd,this.xb.left,this.xb.top),$.Hf(this.Jd,this.xb.width,this.xb.height),this.I(4));return this};$.g.remove=function(){this.Jd&&$.Xe(this.Jd)};
$.g.Ce=function(a,b){return $.da(b)||null===b?(a?this.ma.enabled=!!b:this.enabled(!!b),!0):!1};$.g.F=function(){var a=$.PH.u.F.call(this);$.Hq(this,VH,a,"Overlay ui element");var b=$.Yq.prototype.i.call(this,"enabled");a.enabled=$.n(b)?b:null;return a};$.g.X=function(a,b){$.PH.u.X.call(this,a,b);b?($.yq(this.ma,VH,a),"enabled"in a&&(this.ma.enabled=a.enabled)):($.zq(this,VH,a),this.enabled(a.enabled))};$.g.R=function(){$.PH.u.R.call(this)};var WH=$.PH.prototype;WH.getElement=WH.Ta;WH.enabled=WH.enabled;$.H($.QH,$.Yq);$.g=$.QH.prototype;$.g.qa=$.Yq.prototype.qa|9;$.g.i=$.Xq;$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Qg=$.Wq;$.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.Y&&$.Zq(this.Y,this.Qc,this),(this.Y=a)&&$.L(this.Y,this.Qc,this),this.Pa.parent(this.Y.padding())),this):this.Y};
$.g.Qc=function(a){var b=0,c=0;$.X(a,1)&&(b|=16,c|=1);$.X(a,8)&&(c|=8);$.X(a,32768)&&(b|=1,c|=9);this.B(b,c)};var XH=$.kq();$.gq(XH,0,"format",$.Pq);$.U($.QH,XH);var YH={};$.gq(YH,1,"fill",$.Eq);$.U($.QH,YH);$.g=$.QH.prototype;$.g.padding=function(a,b,c,d){return $.n(a)?(this.Pa.K.apply(this.Pa,arguments),this):this.Pa};$.g.vk=function(a){$.X(a,2)&&this.B(4,9)};$.g.X=function(a,b){b?($.yq(this.ma,YH,a),$.yq(this.ma,XH,a)):($.zq(this,XH,a),$.zq(this,YH,a));this.padding().ia(!!b,a.padding)};
$.g.F=function(){var a={};a.padding=this.padding().F();$.Hq(this,XH,a,"Time line holidays settings text props");$.Hq(this,YH,a,"Time line holidays settings props");return a};$.g.R=function(){$.QH.u.R.call(this);$.qd(this.Pa);this.Pa=null};var ZH=$.QH.prototype;ZH.padding=ZH.padding;$.H($.RH,$.iu);$.RH.prototype.sa=$.iu.prototype.sa|2E3;$.RH.prototype.qa=$.iu.prototype.qa;var $H=$.kq();$.gq($H,0,"format",$.Pq);$.U($.RH,$H);var aI={};$.hq(aI,[[1,"stroke",$.Dq],[1,"fill",$.Eq],[0,"levelHeight",$.Qq],[0,"drawTopLine",$.uq],[0,"drawRightLine",$.uq],[0,"drawBottomLine",$.uq],[0,"drawLeftLine",$.uq]]);$.U($.RH,aI);$.g=$.RH.prototype;$.g.Va=function(a){return $.n(a)?(this.cb!=a&&(this.cb&&$.Zq(this.cb,this.PY,this),(this.cb=a)&&$.L(this.cb,this.PY,this),this.B(128,1)),this):this.cb};
$.g.tW=function(a){this.f=a;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.N[c];e||(this.N[c]=e=new UH(this,c));return $.n(d)?(e.K(d),this):e};$.g.background=function(a){return $.n(a)?(this.Ka.K(a),this):this.Ka};$.g.padding=function(a,b,c,d){return $.n(a)?(this.Pa.K.apply(this.Pa,arguments),this):this.Pa};$.g.dA=function(a){return $.n(a)?(this.D.K(a),this):this.D};$.g.U9=function(a){return $.n(a)?(this.G.K(a),this.B(1024,1),this):this.G};
$.g.th=function(a){return null!=this.Ma[a]};$.g.Vf=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Qg=$.Wq;$.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.Y&&$.Zq(this.Y,this.Qc,this),(this.Y=a)&&$.L(this.Y,this.Qc,this)),this):this.Y};
$.g.Qc=function(a){var b=0,c=0;$.X(a,1)&&(b|=16,c|=1);$.X(a,8)&&(c|=8);$.X(a,32768)&&(b|=1,c|=9);this.B(b,c)};$.g.PY=function(a){var b=0;$.X(a,4)&&(b|=512);$.X(a,2)&&(b|=384);this.B(b,1)};$.g.T9=function(){this.B(64,1)};$.g.Pl=function(a){$.X(a,2)&&this.B(4,9)};$.g.Bea=function(){this.B(16,1)};$.g.V9=function(){this.B(1024,1)};$.g.im=function(a,b){var c=$.js(a,b);return $.av(new $.rw({value:{value:c,type:"string"},tickValue:{value:a,type:"number"},scale:{value:this.cb,type:""}}))};
$.g.fi=function(a){var b=this.Da[a];a=this.ba[a]?this.ba[a]:this.ba[a]=this.ka[a][this.ya];for(var c=0,d=b.tH();c<d;c++){var e=b.Vd(c),f=e.lf().tickValue;e.lf(this.im(f,a));f=b.measure(e);var h=e.ic("hAlign");"left"==h||"start"==h?f.left=e.j.left:"right"==h||"end"==h?f.left=e.j.$a()-f.width:f.left=e.j.left+(e.j.width-f.width)/2;h=e.ic("vAlign");"top"==h?f.top=e.j.top:"bottom"==h?f.top=e.j.Ua()-f.height:f.top=e.j.top+(e.j.height-f.height)/2;f.left=Math.max(e.N.left,Math.min(f.left,e.N.$a()-f.width));
f.top=Math.max(e.N.top,Math.min(f.top,e.N.Ua()-f.height));e.uc({value:{x:f.left,y:f.top}})}$.Mu(b);b.$()};
$.g.$=function(){if(this.Bc()){var a=!1,b=!1,c;this.Mz();this.J(2)&&(this.b.parent(this.P()),this.I(2));this.J(8)&&(this.b.zIndex(this.zIndex()),this.Ka.zIndex(0),this.j.zIndex(1),this.Fh.zIndex(2),this.I(8));this.J(4)&&(this.Ya=this.lb(),$.Po(this.Ya,0),this.Nf.shape(this.Ya),this.ba.length=0,this.B(1472),this.I(4));if(this.J(512)){var d=this.f.length;var e=this.U.length;this.ba.length=0;this.ka.length=0;this.eb.length=0;this.Ra.length=0;var f=this.g.length=0,h=0;d=Math.max(d,e);for(c=0;c<d;c++){var k=
this.f[c];var l=this.U[c];e=this.ga[c];var m=this.Ja[c];var p=this.Ga[c];var q=TH(this,c,"enabled");if(!k||!q&&$.n(q)){l&&l.clear().parent(null);e&&e.clear().parent(null);m&&m.clear().parent(null);p&&p.clear().parent(null);var r=SH(this,c,!1)}else{var t=$.Ro(TH(this,c,"height"),k.height,this.i("levelHeight"),null);null===t?(this.g[c]=null,h++):(this.g[c]=$.M(t,this.Ya.height),f+=this.g[c]);if("formats"in k)this.ka[c]=k.formats;else{t=k.unit;var u=void 0;this.f[c+1]&&(u=this.f[c+1].unit,u!=t&&(u=$.mp(u,
-1)));this.ka[c]=$.is($.es(k.unit,u,"timeline"))}l?l.clear().parent(this.j):(l=this.j.path(),this.U[c]=l);e?e.clear().parent(this.j):(e=this.j.path(),this.ga[c]=e);m?m.clear().parent(this.j):(m=this.j.path(),this.Ja[c]=m);p?p.clear().parent(this.j):(p=this.j.path(),this.Ga[c]=p);r=SH(this,c,!0)}r&&r.clear()}this.O=(this.Ya.height-f)/h;this.B(400);this.I(512)}if(this.J(16)){f=$.mm("defaultLabelFactory");h={};$.Hq(this,$H,h);h.format=this.i("format");h.padding=this.padding();t={};$.Hq(this.D,$H,t);
t.padding=this.D.padding();d=this.f.length;for(c=0;c<d;c++)if(k=this.f[c],q=TH(this,c,"enabled"),k&&(q||!$.n(q))){l=this.U[c];e=this.ga[c];m=this.Ja[c];p=this.Ga[c];var v={};$.Sc(v,f);$.Sc(v,h);u={};$.yq(u,$H,k);"padding"in k&&(u.padding=k.padding);$.Sc(v,u);this.N[c]&&$.yq(v,$H,this.N[c].Ma);v.enabled=!0;v.width=null;v.height=null;this.eb[c]=v;v={};$.Sc(v,f);$.Sc(v,h);$.Sc(v,t);$.Sc(v,u);if(u=k.holiday)$.yq(v,$H,u),"padding"in u&&(v.padding=u.padding);v.enabled=!0;v.width=null;v.height=null;this.Ra[c]=
v;v=$.Ro(TH(this,c,"stroke"),k.stroke,this.i("stroke"));q=$.Ro(TH(this,c,"fill"),k.fill,this.i("fill"));m.fill(null).stroke(v);l.fill(q).stroke(null);(l=$.Ro(TH(this,c,"fill"),u&&u.fill,this.D.dd("fill")))||(l=q);p.fill(null).stroke(v);e.fill(l).stroke(null)}this.B(256);this.I(16)}this.J(64)&&(this.Ka.ja(this.Ya),this.Ka.P(this.b),this.Ka.$(),this.I(64));this.J(128)&&(a=!0,this.I(128));this.J(256)&&(b=!0,this.I(256));this.J(1024)&&(this.G.target(this.P().Ha().Bl()),this.G.uf(this.lb()),this.G.$(),
this.I(1024));if(this.cb&&(a||b))for(d=this.f.length,a=d-1,c=this.Ya.height+this.Ya.top,f=!!this.i("drawTopLine"),h=!!this.i("drawRightLine"),t=!!this.i("drawBottomLine"),u=!!this.i("drawLeftLine"),v=0;v<d;v++)if(k=this.f[v],q=TH(this,v,"enabled"),k&&(q||!$.n(q))){q=v==a;var w=null===this.g[v]?this.g[v]=this.O:this.g[v];l=this.U[v].clear();e=this.ga[v].clear();m=this.Ja[v].clear();p=this.Ga[v].clear();b&&(r=this.Da[v],r.clear());k=this.cb.rn(0,this.Ya.width,k.unit,k.count);r=k.length;var x=r-1,y=
$.bc(m.stroke());var B=!v&&t?y/2:v?Math.ceil(y/2):0;c=$.R(c-B,y);var G=q&&f?y/2:q?0:Math.floor(y/2);w-=(v?B/2:B)+(q?G:G/2);w=$.R(c-w,y,!0);for(B=this.ya=0;B<r;B++){var C=B==x,I=k[B],P=I.holiday,Q=P?p:m;y=$.bc(Q.stroke());G=$.R(this.gn(I.start),y);y=$.R(this.gn(I.end),y);var S=Math.floor(G),sa=Math.ceil(y),va=f||!q?Math.ceil(w):Math.floor(w),Oa=t&&!v?Math.floor(c):Math.ceil(c);u&&!B&&Q.moveTo(G,va).lineTo(G,Oa);!h&&C||Q.moveTo(y,va).lineTo(y,Oa);!f&&q||Q.moveTo(S,w).lineTo(sa,w);t&&!v&&Q.moveTo(S,
c).lineTo(sa,c);(P?e:l).moveTo(S,Oa).lineTo(sa,Oa).lineTo(sa,va).lineTo(S,va).close();b&&(C=v,P=P?this.Ra[C]:this.eb[C],sa=this.g[C],Q=this.Da[C],S=$.gn(G,w,y-G,sa),G=Math.max(G,this.Ya.left),G=$.gn(G,w,Math.min(y,this.Ya.$a())-G,sa),y=Q.add({tickValue:I.start},null,B),(sa=P.padding)?($.K(sa,$.tu)||(this.ab||(this.ab=new $.tu),this.ab.K(P.padding),sa=this.ab),y.N=sa.nj(G),y.j=sa.nj(S)):(y.N=G,y.j=S),P.anchor="left-top",y.ii().clip(y.N),y.kd(P),y.padding(0),this.ba[C]||this.ya==this.ka[C].length-1||
(this.ya=Math.max(this.ya,lea(this,I.start,Q,P,y.j,this.ka[C]))))}b&&this.fi(v);c=w}}};$.g.Mz=function(){this.b||(this.b=$.lk(),this.Nf=$.qk(),this.b.clip(this.Nf),this.j=this.b.Dd(),this.U=[],this.ga=[],this.Ja=[],this.Ga=[],this.Fh=this.b.Dd(),this.g=[],this.eb=[],this.Ra=[],this.ka=[],this.ba=[])};$.g.gn=function(a){return(this.cb.gn?this.cb.gn(a):this.cb.transform(a)*this.Ya.width)+this.Ya.left};$.g.remove=function(){this.b&&this.b.parent(null)};
$.g.F=function(){var a=$.RH.u.F.call(this);$.Hq(this,aI,a,"Resource Timeline");$.Hq(this,$H,a,"Resource Timeline text settings");a.background=this.Ka.F();a.padding=this.Pa.F();a.holidays=this.D.F();a.overlay=this.G.F();this.N.length&&(a.levels=(0,$.Wa)(this.N,function(a){return a?a.F():{}}));return a};
$.g.X=function(a,b){$.RH.u.X.call(this,a,b);b?($.yq(this.ma,aI,a),$.yq(this.ma,$H,a)):($.zq(this,aI,a),$.zq(this,$H,a));"background"in a&&this.Ka.ia(!!b,a.background);"padding"in a&&this.Pa.ia(!!b,a.padding);"holidays"in a&&this.D.X(a.holidays,b);"overlay"in a&&this.G.ia(!!b,a.overlay);var c=a.levels;if($.A(c))for(var d=0;d<c.length;d++)this.level(d,c[d])};
$.g.R=function(){$.qd(this.b);this.b=null;$.qd(this.Ka);this.Ka=null;$.qd(this.Pa);this.Pa=null;$.qd(this.Nf);this.Nf=null;$.qd(this.D);this.D=null;$.td(this.U);this.U=null;$.td(this.ga);this.ga=null;$.td(this.Da);this.Da=null;$.qd(this.G);this.G=null;$.td(this.N);this.Fh=this.j=this.N=null;$.RH.u.R.call(this)};$.H(UH,$.Yq);$.U(UH,$H);var bI={};$.hq(bI,[[0,"enabled",$.uq],[1,"stroke",$.Dq],[1,"fill",$.Eq],[0,"height",$.Qq]]);$.U(UH,bI);$.g=UH.prototype;$.g.B=function(a,b){return this.Dk.B(a,b)};
$.g.mf=function(a){return"enabled"==a?!0:this.Dk.i("height"==a?"levelHeight":a)};$.g.F=function(){var a=UH.u.F.call(this);$.Hq(this,bI,a,"TimeLine Header Level",void 0,!0);$.Hq(this,$H,a,"TimeLine Header Level text settings",void 0,!0);return a};$.g.Ce=function(a,b){return $.da(b)||null===b?(this.enabled(!!b),!0):!1};$.g.X=function(a){UH.u.X.call(this,a);$.zq(this,bI,a);if($.D(a.labels)){var b=this.dd("enabled");$.zq(this,$H,a.labels);this.pa("enabled",b)}$.zq(this,$H,a)};
$.g.R=function(){this.Dk=null;UH.u.R.call(this)};var cI=$.RH.prototype;cI.background=cI.background;cI.padding=cI.padding;cI.holidays=cI.dA;cI.overlay=cI.U9;cI.level=cI.level;cI=UH.prototype;}).call(this,$)}
