text: /**
   * Copyright (c) 2016, Oracle and/or its affiliates.
   * The Universal Permissive License (UPL), Version 1.0
   */
  "use strict";
  define(['./DvtToolkit', './DvtTimeComponent', './DvtTimeAxis'], function(dvt) {
    // Internal use only.  All APIs and functionality are subject to change at any time.
  
  var p;function ba(a,b){0==a.indexOf("dvt.")&&(a=a.substring(4));var c=a.split("."),d=eval("dvt");c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}Math.floor(2147483648*Math.random()).toString(36);
  (function(a){function b(a,b,c){this.Init(a,b,c)}function c(a,b,c,d){this.Init(a,b,c,d)}function d(a,b,c,d,e){this.Init(a,b,c,d,e)}function e(a,b,c,d,e){this.Init(a,b,c,d,e)}function f(a){this.Init(a)}function h(){}function k(a,b){this.Init(a,b)}function l(a){l.C.constructor.call(this,a)}function n(){this.Init({alta:n.lh})}function m(a){this.ae=a}function r(a,b,c,d,e,f){this.Init(a,b,c,d,e,f)}function q(a,b,c,d,e,f,k){this.Init(a,b,c,d,e,f,k)}a.PF=function(){};a.v.F(a.PF,a.v);a.PF.Yhb=function(b,c){var d,
  e;null!=c&&null!=b&&(d=a.K.El(b,"class"),e=a.PF.aoa(d,c),-1==e&&a.K.Y(b,"class",d?c+" "+d:c))};a.PF.rxb=function(b,c){var d,e,f;d=!1;null!=c&&null!=b&&(e=a.K.El(b,"class"),f=a.PF.aoa(e,c),-1!=f&&(d=f+c.length,f=0==f?null:e.substring(0,f),e=d==e.length?null:e.substring(d+1),a.K.Y(b,"class",null==f?null==e?"":e:null==e?f:f+e),d=!0));return d};a.PF.Awb=function(b,c){return null!=c&&null!=b?-1!=a.PF.aoa(b.className,c):!1};a.PF.aoa=function(a,b){var c,d,e,f,k,h;if(!a||!a.indexOf)return-1;if(b===a)return 0;
  c=b.length;d=a.length;e=a.indexOf(b);if(0<=e){f=0==e||" "==a.charAt(e-1);k=e+c;k=k==d||" "==a.charAt(k);if(f&&k)return e;h=a.lastIndexOf(b);if(h!=e)return f=a.charAt(h-1),k=h+c,k=k==d||" "==a.charAt(k),f&&k?h:a.indexOf(" "+b+" ")}return-1};a.v.F(q,a.vb);q.prototype.Init=function(b,c,d,e,f,k,h){this.zc=c;this.ed=d;this.dt=e;this.oP=f;this.KH=null!=k?k:0;this.Zcb=a.B.ca(b);q.C.Init.call(this,b,this.Mta(this.zc,this.ed,this.dt,this.oP,this.KH),h)};q.prototype.Mta=function(a,b,c,d,e){return this.Zcb?
  "M"+(a-e)+" "+b+" H"+(a-c+e)+" A"+e+" "+e+" 0 0 0 "+(a-c)+" "+(b+e)+" V"+(b+d-e)+" A"+e+" "+e+" 0 0 0 "+(a-c+e)+" "+(b+d)+" H"+(a-e)+" A"+e+" "+e+" 0 0 0 "+a+" "+(b+d-e)+" V"+(b+e)+" A"+e+" "+e+" 0 0 0 "+(a-e)+" "+b:"M"+(a+e)+" "+b+" H"+(a+c-e)+" A"+e+" "+e+" 0 0 1 "+(a+c)+" "+(b+e)+" V"+(b+d-e)+" A"+e+" "+e+" 0 0 1 "+(a+c-e)+" "+(b+d)+" H"+(a+e)+" A"+e+" "+e+" 0 0 1 "+a+" "+(b+d-e)+" V"+(b+e)+" A"+e+" "+e+" 0 0 1 "+(a+e)+" "+b};q.prototype.getWidth=function(){return this.dt};q.prototype.Xa=function(a){this.dt=
  a;this.Vi(this.Mta(this.zc,this.ed,this.dt,this.oP,this.KH))};q.prototype.getHeight=function(){return this.oP};q.prototype.qb=function(a){this.oP=a;this.Vi(this.Mta(this.zc,this.ed,this.dt,this.oP,this.KH))};q.prototype.Va=function(){return this.ra()};q.prototype.Aa=function(a){this.ha(a)};q.prototype.kb=function(){return this.pa()};q.prototype.eb=function(a){this.va(a)};a.v.F(r,a.da);r.prototype.Init=function(a,b,c,d,e,f){r.C.Init.call(this,a,b,c,d,f);this.zcb=e;a=this.oy();this.QE();this.FA(a)};
  r.prototype.Qc=function(b){var c=null!=this.Xe()?this.Xe():"",d=this.Wq(),e=this.oy();r.Bc||(r.Bc=new a.Cache);var f=this.Jd(),k=null!=f?f.Uea():"",k=0<c.length?c+k:"",h=r.Bc.get(k);if(null==h){a.B.ce()||this.Sh();this.QE();var H=h="normal",z=this.u().JK,E=this.u().IK;if(null!=f){var m=f.M(a.j.ls);m&&(E=m);(m=f.M(a.j.gi))&&(z=m);(m=f.M(a.j.NS))&&(h=m);(f=f.M(a.j.FN))&&(H=f)}f=h+" normal "+H+" "+z+" / normal "+E;h=this.zcb.getContext("2d");h.font=f;c=h.measureText(c);a.B.ce()||this.wy(d);this.FA(e);
  h=new a.Z(this.Va(),this.kb(),c.width,a.Ba.vj(this).b);r.Bc.put(k,h)}d===a.da.Jl?h.x-=h.a:d===a.da.Mk&&(h.x-=h.a/2);e===a.da.nr?h.y-=0:e===a.da.ap?h.y-=h.b:e===a.da.xi&&(h.y-=h.b/2);return b&&b!==this?this.kj(h,b):h};var v={};a.v.F(v,a.v);v.m4a="height: 3px; color: #9E9E9E; background-color: #F0F0F0";v.R4a="width: 3px; color: #9E9E9E; background-color: #F0F0F0";v.or="#ffffff";v.pr="#d6d7d8";v.nO=31;v.FT=10.5;v.w8=9;v.L4a=5;v.M4a=5;v.d4a=23;v.o6a=a.B.Wa()?8:4;v.m6a=10;v.gmb=function(){return v.m4a};
  v.dob=function(){return v.R4a};v.Hea=function(){return v.M4a};v.FUa=function(){return v.L4a};v.lF=function(){return v.d4a};v.xUa=function(){return v.o6a};v.hva=function(){return v.m6a};v.Unb=function(a){return(a=a._resources)?a.taskLabelFontProp:""};v.iva=function(a){return(a=a._resources)?a.rowLabelFontProp:""};v.jlb=function(b){if(b=b._resources)if(b=b.chartArea)if(b=b.strokeWidth)return a.j.nk(b);return 1};v.Bua=function(b){return b._resources?a.j.nk(b._resources.horizontalGridlineWidth):1};v.Nva=
  function(a){return a.zoomIn_bgc?a.zoomIn_bgc:v.or};v.Lva=function(a){return a.zoomIn_a_bgc?a.zoomIn_a_bgc:v.or};v.Rva=function(a){return a.zoomIn_h_bgc?a.zoomIn_h_bgc:v.or};v.Pva=function(a){return a.zoomIn_d_bgc?a.zoomIn_d_bgc:v.or};v.Ova=function(a){return a.zoomIn_bc?a.zoomIn_bc:v.pr};v.Mva=function(a){return a.zoomIn_a_bc?a.zoomIn_a_bc:v.pr};v.Sva=function(a){return a.zoomIn_h_bc?a.zoomIn_h_bc:v.pr};v.Qva=function(a){return a.zoomIn_d_bc?a.zoomIn_d_bc:v.pr};v.Vva=function(a){return a.zoomOut_bgc?
  a.zoomOut_bgc:v.or};v.Tva=function(a){return a.zoomOut_a_bgc?a.zoomOut_a_bgc:v.or};v.Zva=function(a){return a.zoomOut_h_bgc?a.zoomOut_h_bgc:v.or};v.Xva=function(a){return a.zoomOut_d_bgc?a.zoomOut_d_bgc:v.or};v.Wva=function(a){return a.zoomOut_bc?a.zoomOut_bc:v.pr};v.Uva=function(a){return a.zoomOut_a_bc?a.zoomOut_a_bc:v.pr};v.$va=function(a){return a.zoomOut_h_bc?a.zoomOut_h_bc:v.pr};v.Yva=function(a){return a.zoomOut_d_bc?a.zoomOut_d_bc:v.pr};v.my=function(a,b){if("string"==typeof a){if("%"==a.slice(-1))return b*
  Number(a.slice(0,-1))/100;if("px"==a.slice(-2))return Number(a.slice(0,-2));a=Number(a)}return"number"==typeof a?1>=a?b*a:a:0};a.Oc=function(a,b,c){this.Init(a,b,c)};a.v.F(a.Oc,a.We);a.Oc.newInstance=function(b,c,d){return new a.Oc(b,c,d)};a.Oc.prototype.Init=function(b,c,d){a.Oc.C.Init.call(this,b,c,d);this.Xg=new n;this.H=new l(this);this.H.Lf(this);a.B.Wa()?this.gE=null:(this.gE=new k(this,this.H),this.H.cs(this.gE))};a.Oc.prototype.yf=function(b){a.Oc.C.yf.call(this,b);this.xy(this.W.selectionMode)};
  a.Oc.prototype.oh=function(){this.Rd||(this.Rd=new m(this));return this.Rd};a.Oc.prototype.Xw=function(a){var b=this.u().styleClasses;return null!=b?b[a]:a};a.Oc.prototype.oD=function(a){this.gw=new h;return this.gw.parse(a)};a.Oc.prototype.Dv=function(b){this.dU=b.oRa;this.nw=b.aS;this.xcb=b.gVa;this.Ghb=b.UXa;this.yc=b.Eya;this.Td=b.Dya;this.kPa=b.rows;this.qpa=b.ywa;this.Gaa=b.swa;this.ygb=b.Orb;this.jPa=b.Prb;this.xgb=b.Nrb;this.wgb=b.Mrb;a.Oc.C.Dv.call(this,b)};a.Oc.prototype.Q9=function(a,b){var c=
  this.Al;c.axisClass=this.Xw(b);c.axisSeparatorClass=this.Xw(b+"Ticks");c.axisLabelClass=this.Xw(b+"Labels");c={start:a.start,end:a.end,_resources:c,shortDesc:a.shortDesc,orientation:"horizontal"};if(a[b]){var d=a[b];d.scale&&(c.scale=d.scale);d.converter&&(c.converter=d.converter);d.zoomOrder&&(c.zoomOrder=d.zoomOrder)}return c};a.Oc.prototype.iH=function(b,c){return new a.xj(b,c)};a.Oc.prototype.ta=function(b,c,d){if(b){this.yf(b);a.Oc.C.ta.call(this,b,c,d);this.IC()?x.Heb(this):this.getParent().removeChild(this.AE);
  c=this.dU;if(b.minorAxis){d=this.Q9(this.W,"minorAxis");null==this.aq&&(this.aq=new a.Vb(this.u(),null,null),"top"==c?this.aq.cS(!1,!1,!0,!1):this.aq.cS(!0,!1,!1,!1),this.aw=this.aq);this.aq.Rxa();var e=this.aq.wea(d,this.Af)}if(b=b.majorAxis)b.scale?(d=this.Q9(this.W,"majorAxis"),null==this.Gr&&(this.Gr=new a.Vb(this.u(),null,null),"top"==c?this.Gr.cS(!1,!1,!0,!1):this.Gr.cS(!0,!1,!1,!1),this.Zs=this.Gr),this.Gr.Rxa(),b=this.Gr.wea(d,this.Af),e&&b>e&&(this.aw=this.Gr,this.Zs=this.aq,e=b)):this.Gr=
  null;e&&this.yF(e);(this.aq||this.Gr)&&this.xfa();this.Geb();x.urb(this);this.vya();this.lr();this.Wm="none";this.Xb||this.Aq()}else this.jH(c,d)};a.Oc.prototype.Geb=function(){this.Bq();this.Wm="none";this.Vm=.5;if(this.W._resources){var b=this.W._resources.animationDuration;b&&(this.Vm=a.Ta.Vr(b)/1E3)}this.li?this.Gaa&&(this.Wm="dataChange"):this.qpa&&(this.Wm="onDisplay");"onDisplay"===this.Wm?(this.ZBa=[],this.sia=this.CK(a.Me.sF)):"dataChange"===this.Wm&&(this.Cxa=[],this.a5=[],this.rib=this.CK(a.Me.sF),
  this.Y2=[],this.YR=[],this.ZVa=this.CK(a.Me.sF),this.mVa=this.CK(a.Me.e3),this.nVa=this.CK(a.Me.e3),this.Mxa=this.CK(a.Me.sF),this.pfa=this.CK(a.Me.sF),this.Lta=[],this.Vwa=this.CK(a.Me.sF))};a.Oc.prototype.CK=function(b){var c=new a.jd(this.u(),this,this.Vm);c.zp(b);return c};a.Oc.prototype.vya=function(){this.Bq();var b=this.u();if("onDisplay"===this.Wm){var c=[this.sia,new a.hh(b,this.ZBa,this.Vm,0)];this.Xb=b=new a.jh(b,c,this.Vm,0)}else if("dataChange"===this.Wm){var c=new a.Wi(b,this.Cxa,this.Vm,
  0),d=new a.Wi(b,this.a5,this.Vm,0),e=new a.Wi(b,this.YR,this.Vm,0);this.Feb();a.bb.Ib(e,this.Gqa,this);c=new a.jh(b,[e,c,d],this.Vm,0);d=new a.hh(b,this.Y2,this.Vm,0);this.jOa(this.Y2,d);e=new a.hh(b,this.Lta,this.Vm,0);this.jOa(this.Lta,e);d=new a.jh(b,[this.Vwa,e,this.rib,d],this.Vm,0);e=new a.jh(b,[this.nVa,this.mVa,this.Mxa,this.ZVa,this.pfa],this.Vm,0);b=new a.jh(b,[c,e,d],this.Vm,0);a.bb.Ib(b,this.Wdb,this);this.Xb=b}this.Xb&&(this.H.Pj(this),a.bb.Ib(this.Xb,this.cw,this),this.Xb.play())};a.Oc.prototype.Feb=
  function(){for(var a=0;a<this.YR.length;a++){var b=this.YR[a];"refurbished"===b.aj&&b.kRa()}};a.Oc.prototype.Gqa=function(){for(var a=0;a<this.YR.length;a++){var b=this.YR[a];"delete"===b.aj&&b.getParent()?b.getParent().removeChild(b):"refurbished"===b.aj&&b.iRa()}};a.Oc.prototype.Wdb=function(){for(var a=0;a<this.a5.length;a++){var b=this.a5[a];b.getParent()&&b.getParent().removeChild(b)}};a.Oc.prototype.jOa=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d.ySa&&"new"!==d.aj||b.SA(d)}};a.Oc.prototype.cw=
  function(){this.em||this.Aq();this.H.Lf(this);this.Xb=null;this.em=!1};a.Oc.prototype.nZ=function(b,c){b.type==a.Av.ye&&(b=this.Pba(b,c));b&&this.dispatchEvent(b)};a.Oc.prototype.Pba=function(a,b){var c=a.s1,d=a.WMa;b==this.cm&&(this.yc=c,this.Td=d,this.DA(this.je/(this.Ic-this.ac)*(this.ac-this.yc)),this.KW(),c=this.Yx(),this.dispatchEvent(c));b==this.fo&&(this.YG.va(d),this.IC()&&this.AE.va(d))};a.Oc.prototype.Yx=function(){return a.$a.Zpb(this.yc,this.Td,this.Zs?this.Zs.qf:null,this.yR().qf)};
  a.Oc.prototype.jH=function(a,b){this.xb=a;this.Kb=b;this.RE();this.IC()&&x.KQa(this);this.xfa();x.Mr(this);x.YOa(this);if(this.Uu()){this.Hfa(this.li);this.IC()&&x.lOa(this);this.RXa();var c=this.Tl;x.nra(this,c);x.zra(this,c);x.m2(this);x.LQa(this);x.cca(this)}else x.NH(this)};a.Oc.prototype.RE=function(){var b=a.B.ca(this.u()),c=v.xUa();this.Sk=v.jlb(this.W);var d=2*this.Sk;this.OQ=0;this.uga=new a.j(v.gmb());this.vga=new a.j(v.dob());this.Fs=this.xb;this.dz=this.Kb;this.dz=this.dz-a.j.nk(this.uga.getHeight())-
  3*c;c*=3;this.Fs=this.Fs-a.j.nk(this.vga.getWidth())-c;b&&(this.OQ=c-this.Sk);this.lga(this.OQ+this.Sk);this.xXa(this.Sk);this.Af=this.Fs-d;this.Ii=this.dz-d};a.Oc.prototype.RXa=function(){var a,b=this.kw;if(null!=b){x.EQa(this,this.YG);this.IC()&&(a=this.AE);for(var c=0;c<b.length;c++)b[c].ta(this.YG,a)}};a.Oc.prototype.pZ=function(b){a.Oc.C.pZ.call(this,b);this.Uu()&&(!b||b.ctrlKey||a.B.Wa()?b.xga&&this.FM(this.je*b.xga,b.bYa,b.$Xa,!0):(this.Ti(-(b.wheelDeltaX?b.wheelDeltaX*a.We.yja:0),-(b.wheelDelta?
  b.wheelDelta*a.We.yja:0)),b.wheelDeltaX&&(b=this.Yx(),this.dispatchEvent(b))))};a.Oc.prototype.FM=function(b,c,d,e){b>this.aw.f1?(b=this.aw.f1,this.RW(!0)):this.Ada(!0);this.Af>b?(b=this.Af,this.RW(!1)):this.Ada(!1);var f=this.je<=b;a.Oc.C.FM.call(this,b,c,d,e);b=this.aw.DW;if(f)for(;0<this.aw.np&&(this.Zs?0<this.Zs.np:1);)if(f=b[this.aw.np-1],this.je>=f)this.aw.nS(this.aw.np-1),this.aw.xta(),this.Zs&&(this.Zs.nS(this.Zs.np-1),this.Zs.xta());else break;else for(;this.aw.np<b.length-1&&(this.Zs?this.Zs.np<
  this.Zs.DW.length-1:1);)if(f=b[this.aw.np],this.je<f)this.aw.nS(this.aw.np+1),this.aw.nwa(),this.Zs&&(this.Zs.nS(this.Zs.np+1),this.Zs.nwa());else break;this.cm.Om(this.yc,this.Td);x.nra(this,this.Tl);this.RXa();x.zra(this,this.Tl);e&&(e=this.Yx(),this.dispatchEvent(e))};a.Oc.prototype.gtb=function(a){this.Mdb=a};a.Oc.prototype.yR=function(){return this.aq?this.aq:this.Gr};a.Oc.prototype.xsb=function(a){this.YG=a};a.Oc.prototype.aXa=function(a){this.oz=a};a.Oc.prototype.Itb=function(a){this.Vbb=a};
  a.Oc.prototype.k5=function(a){this.$m=a};a.Oc.prototype.irb=function(){this.$m&&this.$m.getParent()&&(this.$m.getParent().removeChild(this.$m),delete this.$m,this.$m=null)};a.Oc.prototype.xtb=function(a){this.kw=a};a.Oc.prototype.wsb=function(a){this.i$a=a};a.Oc.prototype.Kda=function(){return v.lF()};a.Oc.prototype.Qi=function(){return this.ac};a.Oc.prototype.hl=function(){return this.Ic};a.Oc.prototype.K3=function(){return"none"};a.Oc.prototype.xwa=function(){return"visible"==this.xcb};a.Oc.prototype.vpb=
  function(){return"visible"==this.Ghb};a.Oc.prototype.WE=function(){return this.t9a};a.Oc.prototype.ssb=function(a){this.t9a=a};a.Oc.prototype.WW=function(){if(null==this.cHa){var a=0;this.Gr&&(a+=this.Gr.te());this.aq&&(a+=this.aq.te());this.cHa=a}return this.cHa};a.Oc.prototype.IC=function(){return"on"==this.ygb};a.Oc.prototype.lpb=function(){return"normal"==this.wgb};a.Oc.prototype.vtb=function(a){this.AE=a};a.Oc.prototype.Trb=function(a){var b=this.WW(),c=this.Tl,d=a.ra(),e=a.pa(),f=a.getWidth();
  a=a.getHeight();var c=0-c.ra(),k=0-(this.YG.pa()-this.oz),h=this.Af,b=this.Ii-b,z=0,E=0;d<c?z=d-c:d+f>c+h&&(z=d+f-(c+h));e<k?E=e-k:e+a>k+b&&(E=e+a-(k+b));this.Ti(z,E,!0)};a.Oc.prototype.Ti=function(b,c,d){d="undefined"!==typeof d?d:!1;0!=b&&(d||Math.abs(b)>Math.abs(c))&&a.Oc.C.Ti.call(this,b,0);if(0!=c&&(d||Math.abs(c)>Math.abs(b))){d=b=this.oz;var e=0;this.WE()+this.oz>=this.Ii&&("bottom"==this.dU&&(e=this.WW()),d=-(this.WE()-this.Ii+e));c=this.YG.pa()-c;c<d?c=d:c>b&&(c=b);this.YG.va(c);this.IC()&&
  this.AE.va(c);this.fo.Om(c-(this.Ii-this.oz-e),c)}this.cm.Om(this.yc,this.Td)};a.Oc.prototype.RQ=function(b,c){a.Oc.C.RQ.call(this,b,c);this.l$a=this.yc;this.k$a=this.Td};a.Oc.prototype.hI=function(b,c){this.l$a==this.yc&&this.k$a==this.Td&&(this.ZH=!1);a.Oc.C.hI.call(this,b,c)};a.Oc.prototype.yXa=function(a,b){var c=this.kw;if(null!=c)for(var d=0;d<c.length;d++){var e=c[d].kA();if(null!=e)for(var f=0;f<e.length;f++)a!=e[f]&&(b?e[f].Xjb():e[f].Nib())}};a.Oc.prototype.Uu=function(){var a=this.Gr?this.Gr.Uu():
  !0,b=this.aq&&this.aq.Uu(),c=this.ac&&this.Ic&&this.Ic>this.ac,d=this.yc&&this.Td?this.Td>this.yc:!0,e=this.yc?this.yc>=this.ac&&this.yc<this.Ic:!0,f=this.Td?this.Td>this.ac&&this.Td<=this.Ic:!0;return a&&b&&c&&d&&e&&f};a.Oc.prototype.hm=function(){return a.I.Ef(this.D(),"componentName",a.I.Ia,"GANTT")};a.Oc.prototype.Th=function(){return this.Yc};a.Oc.prototype.No=function(){return this.Yc?!0:!1};a.Oc.prototype.xy=function(b){this.Yc="single"==b?new a.Sc(a.Sc.Yy):"multiple"==b?new a.Sc(a.Sc.Xy):
  null;this.Za().EA(this.Yc)};a.Oc.prototype.TB=function(){if(null!=this.kw&&0!=this.kw.length){var a=this.W.selection;if(a&&this.No()){for(var b=[],c=0;c<this.kw.length;c++){var d=this.kw[c].kA();if(null!=d&&0<d.length)for(var e=0;e<d.length;e++)b.push(d[e])}this.Th().At(a,b)}}};a.Oc.prototype.rZ=function(){};a.v.F(m,a.Rd);m.prototype.Cn=function(a){var c=this.ae.Za().mb(a);if(c&&c instanceof b){var f=c.Ko();a=this.ae.kw.indexOf(f);c=f.kA().indexOf(c);return"taskbar["+a+"]["+c+"]"}return c&&(c instanceof
  e||c instanceof d)?(a=c.ik(),"rowLabel["+a+"]"):null};m.prototype.ph=function(a){var b=a.indexOf("["),c=a.indexOf("]"),d=a.substring(0,b);if(-1<b&&-1<c)if("taskbar"==d){var d=a.indexOf("[",b+1),e=a.indexOf("]",d+1);if(-1<d&&-1<e){b=parseInt(a.substring(b+1,c));a=parseInt(a.substring(d+1,e));if(isNaN(b)||isNaN(a))return null;c=this.ae.kw;if(null!=c&&c.length>b&&(b=c[b].kA(),null!=b&&b.length>a&&(a=b[a].Yh,null!=a)))return a.Ua()}}else if("rowLabel"==d&&(b=parseInt(a.substring(b+1,c)),c=this.ae.kw,
  null!=c&&c.length>b&&(a=c[b].JL,null!=a)))return a.Ua();return null};a.v.F(n,a.fb);n.lh={axisPosition:"top",animationOnDataChange:"none",animationOnDisplay:"none",scrollbar:{horizontal:"off",vertical:"off"},gridlines:{horizontal:"hidden",vertical:"visible"},selectionMode:"none",taskDefaults:{labelPosition:"end",borderRadius:2,height:22},rowAxis:{rendered:"off",width:"auto",maxWidth:"none",whiteSpace:"nowrap"}};a.v.F(l,a.Xh);l.prototype.Ow=function(a){l.C.Ow.call(this,a);this.mj.Trb(a)};a.v.F(k,a.jO);
  k.prototype.Init=function(a,b){k.C.Init.call(this,b);this.ae=a};k.Mna=function(a,b,c){b=b.kA();return null==b||0==b.length?0==c?null:k.Mna(a,a[c-1],c-1):b[b.length-1]};k.Kna=function(a,b,c){b=b.kA();return null==b||0==b.length?c==a.length-1?null:k.Kna(a,a[c+1],c+1):b[0]};k.Fd=function(c,d,e){if(d instanceof b){var f=d.Ko(),h=c.kw,m=f.kA();if(null==m||0==m.length)return;c=a.B.ca(c.u());f=h.indexOf(f);switch(e.keyCode){case c?a.KeyboardEvent.xf:a.KeyboardEvent.Nf:d=m.indexOf(d);if(0==d){if(0<f)return k.Mna(h,
  h[f-1],f-1)}else return m[d-1];break;case c?a.KeyboardEvent.Nf:a.KeyboardEvent.xf:d=m.indexOf(d);if(d==m.length-1){if(f<h.length-1)return k.Kna(h,h[f+1],f+1)}else return m[d+1];break;case a.KeyboardEvent.kh:if(0<f&&(d=k.Mna(h,h[f-1],f-1),null!=d))return d.Ko().kA()[0];break;case a.KeyboardEvent.Uf:if(f<h.length-1&&(d=k.Kna(h,h[f+1],f+1),null!=d))return d.Ko().kA()[0]}}return null};k.prototype.mk=function(b){if(b.keyCode==a.KeyboardEvent.Nh){var c=this.yb.nf();if(c)return a.H.sc(b),c;c=this.ae.kw;
  if(null!=c&&0<c.length&&(c=c[0].kA(),null!=c&&0<c.length))return a.H.sc(b),this.oI(c)}return k.C.mk.call(this,b)};a.v.F(h,a.v);h.prototype.parse=function(a){var b={};b.start=(new Date(a.start)).getTime();b.end=(new Date(a.end)).getTime();b.rows=a.rows;a.viewportStart&&(b.Eya=(new Date(a.viewportStart)).getTime());a.viewportEnd&&(b.Dya=(new Date(a.viewportEnd)).getTime());b.oRa="top";null!=a.axisPosition&&(b.oRa=a.axisPosition);b.aS="none";null!=a.selectionMode&&(b.aS=a.selectionMode);b.gVa="hidden";
  b.UXa="hidden";null!=a.gridlines&&(null!=a.gridlines.horizontal&&(b.gVa=a.gridlines.horizontal),null!=a.gridlines.vertical&&(b.UXa=a.gridlines.vertical));b.cm="off";b.fo="off";a.scrollbars&&(a.scrollbars.horizontal&&(b.cm=a.scrollbars.horizontal),a.scrollbars.vertical&&(b.fo=a.scrollbars.vertical));b.ywa="auto"==a.animationOnDisplay;b.swa="auto"==a.animationOnDataChange;null!=a.rowAxis&&(b.Orb=a.rowAxis.rendered,b.Prb=a.rowAxis.width,b.Nrb=a.rowAxis.maxWidth,b.Mrb=a.rowAxis.whiteSpace);b.zxb=a.className;
  b.EX=a.style;return b};var x={};a.v.F(x,a.v);x.urb=function(a){var b=a.u();a.mF||(a.DX=document.createElement("canvas"),a.DX.width=0,a.DX.height=0,a.DX.style.width=0,a.DX.style.height=0,a.mF=document.createElement("div"),a.mF.style.fontFamily=b.IK,a.mF.style.fontSize=b.JK,a.mF.style.width=0,a.mF.style.height=0,a.mF.style.visibility="hidden",a.mF.setAttribute("aria-hidden","true"),a.mF.appendChild(a.DX));b.su.contains(a.mF)||b.su.appendChild(a.mF);x.Mr(a);x.YOa(a);x.k2(a);"onDisplay"===a.Wm&&a.ZBa.push(a.li);
  a.irb();a.Uu()?(a.Hfa(a.li),b=a.Tl,x.nra(a,b),x.zra(a,b),a.IC()&&x.lOa(a),x.igb(a,b,a.AE),x.m2(a),x.LQa(a),a.TB(),x.cca(a)):x.NH(a)};x.bra=function(b,c,d){var e=d.a,f=a.j.nk(b.uga.getHeight());b.cm=new a.As(b.u(),b.nZ,b);c.A(b.cm);a.Gn.position(d,"bottom",b.cm,e,f,0);return new a.xj(e,f)};x.cra=function(b,c,d){var e=a.j.nk(b.vga.getWidth()),f=d.b;b.fo=new a.As(b.u(),b.nZ,b);c.A(b.fo);a.Gn.position(d,a.B.ca(b.u())?"left":"right",b.fo,e,f,0);return new a.xj(e,f)};x.cca=function(b){var c=b.YG;if(null!=
  c){var d=b.oz,e=b.u(),f=b.getParent(),k=v.xUa();null==f.t2?(f.t2=new a.ma(e,"sbCanvas"),f.A(f.t2)):f.t2.Gl();var h=b.Af,H=b.Kb-k,e=x.bra(b,f.t2,new a.Z(0,0,h,H)),h=b.xb-k,H=b.Ii-b.WW(),f=x.cra(b,f.t2,new a.Z(0,0,h,H));b.cm&&(k={},k.color=b.uga.M(a.j.mc),k.backgroundColor=b.uga.M(a.j.Mb),k.min=b.ac,k.max=b.Ic,k.isHorizontal=!0,k.isReversed=a.B.ca(b.u()),b.cm.ha(b.al),b.cm.ta(k,e.a,e.b),b.cm.Om(b.yc,b.Td));b.fo&&(k={},k.color=b.vga.M(a.j.mc),k.backgroundColor=b.vga.M(a.j.Mb),k.min=-(Math.max(b.WE(),
  f.b)-d),k.max=d,k.isHorizontal=!1,k.isReversed=!0,b.fo.va(d+b.Sl),b.fo.ta(k,f.a,f.b),e=0,"bottom"==b.dU&&(e=b.WW()),b.fo.Om(c.pa()-(b.Ii-d-e),c.pa()))}};x.Heb=function(a){var b=a.AE;b||(b=new f(a),a.vtb(b));x.KQa(a)};x.KQa=function(b){var c=a.B.ca(b.u());b.lca=Math.ceil(b.AE.knb(b.xb-v.hva()));var d=b.lca+v.hva();b.Fs-=d;c||(b.OQ+=d,b.lga(b.al+d));b.Af-=d};x.lOa=function(b){var c=a.B.ca(b.u()),d=b.AE;if(null!=d){d.hd();var e=b.lca,f=b.Ii-b.WW();c?d.ha(b.al+b.Af+b.Sk+v.hva()):d.ha(0);var c=b.oz,k=
  new a.wd;k.Ge(d.ra(),c+b.Sl,e,f);d.oe(k);d.getParent()!=b.getParent()&&b.getParent().A(d)}};x.Mr=function(b){var c=b.Fs,d=b.dz;b.Eb?(b.Eb.oe(null),b.Eb.Xa(c),b.Eb.qb(d),b.Eb.Aa(b.OQ)):b.Eb=new a.Rect(b.u(),b.OQ,0,c,d,"bg");b.Eb.Ok("style","stroke-width:"+2*b.Sk+"px");a.K.Y(b.Eb.Ua(),"class",b.Xw("databody"));b.Eb.hd();b.Eb.setCursor("move");var e=new a.wd;e.Ge(b.OQ,0,c,d);b.Eb.oe(e);b.Eb.getParent()!=b&&b.A(b.Eb)};x.YOa=function(b){var c=b.Af;b.UB?(b.UB.Xa(c),b.UB.Aa(b.al),b.UB.eb(b.Sl)):b.UB=new a.Rect(b.u(),
  b.al,b.Sl,c,0);a.K.Y(b.UB.Ua(),"class",b.Xw("row"));b.UB.hd();b.UB.setCursor("move");var d=new a.wd;d.Ge(b.al,b.Sl,c,b.Ii);b.UB.oe(d);b.UB.getParent()!=b&&b.A(b.UB)};x.LQa=function(b){var c=b.kw;if(null!=c&&0<c.length){var d=0;b.xwa()&&(d=v.Bua(b.D()));var e=b.UB;e.eb(b.oz);c=c[c.length-1].Vx+c[c.length-1].BE+d;"dataChange"===b.Wm?b.pfa.ka.N(a.G.V,e,e.getHeight,e.qb,c):e.qb(c)}};x.k2=function(b){b.li||(b.li=new a.ma(b.u(),"canvas"),b.A(b.li))};x.nra=function(a,b){var c=a.Gr,d=a.aq;if("top"==a.dU){var e=
  0;c&&(x.MH(a,b,c,e,a.Kda()),e+=c.te());d&&(x.MH(a,b,d,e,a.Kda()),e+=d.te());a.aXa(e)}else e=a.Ii,c&&(x.MH(a,b,c,null,a.Kda()),e-=c.te(),x.DL(c,e)),d&&(x.MH(a,b,d,e,a.Kda()),e-=d.te(),x.DL(d,e)),a.aXa(0)};x.MH=function(a,b,c,d,e){c.getParent()!==b&&b.A(c);c.ta(null,a.je,e);null!=d&&x.DL(c,d)};x.DL=function(b,c){var d=new a.Ub(1,0,0,1,0,c);b.rb(d)};x.m2=function(b){var c=b.Al,d=a.B.ca(b.u()),c={zoomInProps:{imageSize:16,cssUrl:c.zoomIn,cssUrlHover:c.zoomIn_h,cssUrlActive:c.zoomIn_a,cssUrlDisabled:c.zoomIn_d,
  enabledBackgroundColor:v.Nva(c),enabledBorderColor:v.Ova(c),hoverBackgroundColor:v.Rva(c),hoverBorderColor:v.Sva(c),activeBackgroundColor:v.Lva(c),activeBorderColor:v.Mva(c),disabledBackgroundColor:v.Pva(c),disabledBorderColor:v.Qva(c)},zoomOutProps:{imageSize:16,cssUrl:c.zoomOut,cssUrlHover:c.zoomOut_h,cssUrlActive:c.zoomOut_a,cssUrlDisabled:c.zoomOut_d,enabledBackgroundColor:v.Vva(c),enabledBorderColor:v.Wva(c),hoverBackgroundColor:v.Zva(c),hoverBorderColor:v.$va(c),activeBackgroundColor:v.Tva(c),
  activeBorderColor:v.Uva(c),disabledBackgroundColor:v.Xva(c),disabledBorderColor:v.Yva(c)}},d=d?b.al+v.FT:b.Af+b.al-(v.FT+v.nO);c.zoomInProps.posX=d;c.zoomOutProps.posX=d;var d=b.Sl+v.FT,e="top"==b.dU?d:b.dz-d;"top"==b.dU?(d=e,e=e+v.nO+v.w8):(d=e-2*v.nO-v.w8,e-=v.nO);c.zoomInProps.posY=d;c.zoomOutProps.posY=e;b.LWa(c)};x.NH=function(b){var c=a.I.wa(a.I.Ia,"NO_DATA",null),c=a.Ba.yp(b.li,c,new a.Z(0,0,b.Fs,b.dz),b.H,null);a.K.Y(c.Ua(),"class",b.Xw("nodata"));b.k5(c)};x.Efb=function(b,c){var d=b.YG;null==
  d&&(d=new a.ma(b.u(),"db"),c.A(d),b.xsb(d));d.va(b.oz);b.IC()&&b.AE.va(b.oz+b.Sl);x.EQa(b,d)};x.EQa=function(b,c){var d=b.Ii,e=b.Gr,f=b.aq;e&&(d-=e.te());f&&(d-=f.te());e=new a.wd;e.Ge(0,b.oz,b.je,d);c.oe(e)};x.zra=function(b,c){var d=b.Vbb;null!=d&&d.Gl();if(b.vpb()){null==d&&(d=new a.ma(b.u()),c.A(d),b.Itb(d));var e=b.Xw("vgridline"),f=b.Gr;if(null==f||b.D().minorGridline)f=b.aq;for(var f=f.Ua().getElementsByTagName("line"),k=0;k<f.length;k++){var h=a.K.El(f[k],"x1"),h=new a.Gc(b.u(),h,b.oz,h,b.oz+
  b.Ii-b.WW());h.hd();a.K.Y(h.Ua(),"class",e);d.A(h)}}};x.igb=function(a,b,d){var e=a.D(),f=e.rows,k=x.Keb(f);if(a.IC())var h=a.AE.Nra;if(0!=f.length&&k){x.Efb(a,b);b=0;var k=a.YG,H=0;a.xwa()&&(H=v.Bua(e));e={};if(a.kw)for(z=x.jab(a),E=0;E<z.length;E++)m=z[E],m.pga(b),h&&(l=h[E],d&&null!=m.JL&&d.removeChild(m.JL),m.wXa(l)),a.Gaa?m.ta(k,d,E):m.ta(k,d),e[m.getId()]=m,b=b+m.BE+H;else for(var z=[],E=0;E<f.length;E++){var m=new c(a,f[E],E,b);if(h){var l=h[E];d&&null!=m.JL&&d.removeChild(m.JL);m.wXa(l)}m.ta(k,
  d);z.push(m);e[m.getId()]=m;b=b+m.BE+H}b-=H;a.gtb(e);a.xtb(z);a.ssb(b)}else x.NH(a)};x.Keb=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(null==c.id){var d=c.tasks;if(1==d.length)c.id=d[0].id;else return!1}}return!0};x.jab=function(b){for(var d=b.kw,e=b.Mdb,f="dataChange"===b.Wm,k={},h={},y=[],H={},z=b.kPa,E=b.D().taskDefaults,m=0;m<z.length;m++){for(var l=z[m],n=l.id,q=l.tasks,r=0;r<q.length;r++){var v=q[r];h[v.id]={rowId:n,taskProps:a.bc.Vd(v,E)}}(r=e[n])?(r.r5(l),r.UUa(),r.wF("same"),y.push(r),
  k[n]=r,delete e[r.getId()]):(y.push(0),H[m]=l,k[n]=!0)}var r=Object.keys(e),x;for(x in H)H.hasOwnProperty(x)&&(l=H[x],0<r.length?(m=r.pop(),m=e[m],m.r5(l),m.UUa(),m.wF("refurbished"),m.remove()):m=new c(b,l,0),k[l.id]=m,y[x]=m);for(m=0;m<r.length;m++)b=e[r[m]],b.wF("delete"),b.remove();b={};for(m=0;m<d.length;m++)for(H=d[m],l=H.kA(),r=0;r<l.length;r++)x=l[r],x.Grb(),(E=h[x.getId()])?H.getId()==E.rowId&&H.Mwa(E.taskProps)?(x.r5(E.taskProps),x.wF("same"),delete h[x.getId()]):(x.wF("moved"),f&&(b[x.getId()]=
  x.Iva()),e[H.getId()]||H.WQa(x)):e[H.getId()]||(x.wF("refurbished"),x.BWa(),H.WQa(x));for(var ea in h)if(h.hasOwnProperty(ea)){d=h[ea];m=d.taskProps;e=k[d.rowId];d=e.Nla;if(0<d.length){if(e.Mwa(m)){var P=d.pop();P.r5(m)}}else(P=e.$Ra(m))&&e.vib(P);f&&P&&b[ea]&&(P.BWa(b[ea]),P.wF("migrate"))}for(m=0;m<z.length;m++)for(l=z[m],n=l.id,f=k[n],d=f.Nla;0<d.length;)h=d.pop(),f.mrb(h),h.remove();return y};a.v.F(f,a.ma);f.prototype.Init=function(a){f.C.Init.call(this,a.u());this.ae=a};f.prototype.knb=function(b){this.iab();
  var c=this.ae.xgb,d=this.ae.jPa,e,f;null!=c&&"none"!==c&&(e=Math.min(v.my(c,b),b));e=null==e||isNaN(e)?b:e;null!=d&&"auto"!==d&&(f=v.my(this.ae.jPa,b));f=null==f||isNaN(f)?a.Ba.gy(this.Nra).a:f;return Math.min(f,e)};f.prototype.iab=function(){var b=this.ae.kPa;this.Nra=[];for(var c=0;c<b.length;c++){var f=b[c],k=null!=f.label?f.label:"",k=this.ae.lpb()?new d(this.ae.u(),k,0,0):new e(this.ae.u(),k,0,0);k.gN(c);a.K.Y(k.Ua(),"class",this.ae.Xw("rowLabel"));var h=new a.j(v.iva(this.ae.D())),f=f.labelStyle;
  null!=f&&(h.Ui(f),"string"===typeof f?k.Ua().style.cssText=f:a.K.Y(k,"style",f));k.Ab(h);this.Nra.push(k)}};a.v.F(e,a.da);e.prototype.Init=function(a,b,c,d,f){e.C.Init.call(this,a,b,c,d,f)};e.prototype.Ko=function(){return this.Ora};e.prototype.oya=function(a){this.Ora=a};e.prototype.ik=function(){return this.VB};e.prototype.gN=function(a){this.VB=a};a.v.F(d,a.$b);d.prototype.Init=function(a,b,c,e,f){d.C.Init.call(this,a,b,c,e,f)};d.prototype.Ko=function(){return this.Ora};d.prototype.oya=function(a){this.Ora=
  a};d.prototype.ik=function(){return this.VB};d.prototype.gN=function(a){this.VB=a};a.v.F(c,a.ma);c.prototype.Init=function(a,b,d,e){c.C.Init.call(this,a.u(),null,b.id);this.ae=a;this.kg=b;this.gp=d;this.Vx=e;this.BE=0;this.Nla=[];this.aj="new"};c.prototype.r5=function(a){this.kg=a};c.prototype.lb=function(){return this.gp};c.prototype.pga=function(a){this.Vx=a};c.prototype.getId=function(){return this.kg.id};c.prototype.me=function(){return this.kg.label};c.prototype.uf=function(){return this.kg.labelPosition};
  c.prototype.wXa=function(a){this.JL=a};c.prototype.WQa=function(a){this.Nla.push(a)};c.prototype.Mwa=function(a){var b=this.ae.Qi(),c=this.ae.hl();a.start=this.bKa(a.start);a.end=this.bKa(a.end);return null==a.start&&null==a.end||a.start&&a.end&&((a.end?a.end:a.start)<b||a.start>c)?!1:!0};c.prototype.$Ra=function(a){return this.Mwa(a)?new b(this.ae,this,a):null};c.prototype.kA=function(){var b=this.kg.tasks;if(b&&null==this.gC){this.gC=[];for(var c=0;c<b.length;c++){var d=b[c],d=a.bc.Vd(d,this.ae.D().taskDefaults);
  (d=this.$Ra(d))&&this.gC.push(d)}this.GXa()}return this.gC};c.prototype.vib=function(a){null==this.gC?this.gC=[a]:this.gC.push(a)};c.prototype.mrb=function(a){null!=this.gC&&(a=this.gC.indexOf(a),-1<a&&this.gC.splice(a,1))};c.prototype.GXa=function(){null!=this.gC&&this.gC.sort(function(a,b){return(a.Qi()?a.Qi():a.hl())-(b.Qi()?b.Qi():b.hl())})};c.prototype.ta=function(a,c,d){this.GXa();var e=this.kA();if(null!=e)for(var f=[],k=0;k<e.length;k++){var h=0,H=e[k],z=f.length,E=null;if(0===z)f.push(H);
  else{for(var m=!0,l=0;l<z;l++){var n=f[l];if(b.epb(n,H))h+=n.Aua();else{E=f[l];f[l]=H;m=!1;break}}m&&f.push(H)}H.pga(h);H.ta(this,E)}this.hgb(this.ae,this.JL,c);this.getParent()!=a&&(null!=d?a.Hb(this,d):a.A(this));this.Pfb(this.ae,this,this)};c.prototype.hgb=function(b,c,d){if(b.IC()&&d){var e=a.B.ca(b.u());e||c.Ah();c.vn()&&c.cg(c.pq());var f=a.Ba.fd(c,b.lca,this.BE,d,1),k=a.Ba.vj(c),k=(this.Vx+(this.Vx+this.BE)-k.b)/2,e=e?0:b.lca,h={textString:c.Xe(),x:e,y:k};0<c.Xe().length&&f&&(b.Za().nb(c,c),
  c.oya(this),d.A(c),"dataChange"===b.Wm?"new"===this.aj||"refurbished"===this.aj?(b.Y2.push(c),c.eb(k),c.Aa(e)):"same"===this.aj?(d=this.zgb,c.eb(d.y),c.Aa(d.x),b=b.pfa.ka,b.N(a.G.V,c,c.Va,c.Aa,e),b.N(a.G.V,c,c.kb,c.eb,k)):(c.eb(k),c.Aa(e)):(c.eb(k),c.Aa(e)));this.Zqb(h)}};c.prototype.Pfb=function(b,c,d){if(b.xwa())if(this.Ps){c=this.Vx+this.BE;this.Ps.yn(b.je);var e=this.aj;"dataChange"===b.Wm?"refurbished"===e?(b.Y2.push(this.Ps),this.Ps.Hl(c),this.Ps.Il(c)):"same"===e?(b=b.pfa.ka,b.N(a.G.V,this.Ps,
  this.Ps.Xr,this.Ps.Hl,c),b.N(a.G.V,this.Ps,this.Ps.wt,this.Ps.Il,c)):(this.Ps.Hl(c),this.Ps.Il(c)):(this.Ps.Hl(c),this.Ps.Il(c))}else{var e=b.Xw("hgridline"),f=v.Bua(b.D())%2*.5;d=d.Vx+d.BE+f;d=new a.Gc(b.u(),0,d,b.je,d);d.hd();a.K.Y(d.Ua(),"class",e);c.A(d);this.Ps=d;"dataChange"===b.Wm&&"new"===this.aj&&b.Y2.push(this.Ps)}};c.prototype.wF=function(a){this.aj=a};c.prototype.ySa=function(){return this.aj};c.prototype.Zqb=function(a){this.zgb=a};c.prototype.remove=function(){"dataChange"===this.ae.Wm?
  "refurbished"===this.aj?this.ae.Cxa.push(this):"delete"===this.aj?this.ae.a5.push(this):this.getParent()&&this.getParent().removeChild(this):this.getParent().removeChild(this);this.kfb()};c.prototype.kfb=function(){var a=this.JL;a&&("dataChange"===this.ae.Wm?"refurbished"===this.aj?this.ae.Cxa.push(a):"delete"===this.aj?this.ae.a5.push(a):a.getParent()&&a.getParent().removeChild(a):a.getParent()&&a.getParent().removeChild(a))};c.prototype.wtb=function(a){a>this.BE&&(this.BE=a)};c.prototype.UUa=function(){this.BE=
  0};c.prototype.bKa=function(a){return null==a?null:a.getTime?a.getTime():isNaN(a)?(new Date(a)).getTime()+0:a};a.v.F(b,a.ma);b.QF=2;b.Oza=.35;b.prototype.Init=function(a,c,d){b.C.Init.call(this,a.u(),null,d.id);this.ae=a;this.kca=c;this.kg=d;this.lJa=!1;this.aj="new"};b.prototype.Grb=function(){this.wb()&&this.lc(!1);this.wF("new")};b.prototype.r5=function(a){this.kg=a};b.prototype.Ko=function(){return this.kca};b.prototype.oya=function(a){this.kca=a};b.prototype.getId=function(){return this.kg.id};
  b.prototype.Qi=function(){return this.kg.start};b.prototype.hl=function(){return this.kg.end};b.prototype.me=function(){return this.kg.label};b.prototype.uf=function(){return this.TU("labelPosition")};b.prototype.sI=function(){return this.TU("labelStyle")};b.prototype.ZQ=function(){return this.TU("borderRadius")};b.prototype.getHeight=function(){return this.TU("height")};b.prototype.Aua=function(){return this.getHeight()+2*v.Hea()};b.prototype.M=function(){return this.TU("style")};b.prototype.Ku=
  function(){return this.TU("className")};b.prototype.Xa=function(a){this.zb=a};b.prototype.getWidth=function(){return this.zb};b.prototype.pga=function(a){this.Vx=a};b.prototype.nI=function(){return this.Yh.getWidth()};b.prototype.Xkb=function(){return this.Yh.getHeight()};b.prototype.bS=function(a){this.Yh.Xa(a);this.Tz&&this.Tz.Xa(a+2*b.QF);this.Ar&&this.Ar.Xa(a+2*b.QF)};b.prototype.hsb=function(a){this.Yh.qb(a);this.Tz&&this.Tz.qb(a+2*b.QF);this.Ar&&this.Ar.qb(a+2*b.QF)};b.prototype.lt=function(){null==
  this.zr&&(this.zr=b.Vab(this.ae,this.Yh));return this.zr};b.prototype.kXa=function(a){this.iE=a};b.prototype.wF=function(a){this.aj=a};b.prototype.ySa=function(){return this.aj};b.prototype.TU=function(a){return this.kg[a]};b.prototype.remove=function(){"dataChange"===this.ae.Wm&&"moved"!==this.aj?(this.wF("delete"),this.ae.YR.push(this)):this.kca&&this.kca.removeChild(this)};b.prototype.ta=function(c,d){this.getParent()!=c&&c.A(this);this.bg("img");a.Vb.zn()&&this.Nr(this.Ko().lb());"dataChange"===
  this.ae.Wm&&("refurbished"===this.aj&&this.ae.YR.push(this),"new"!==this.aj&&"refurbished"!==this.aj||this.ae.Lta.push(this));b.qfb(this.ae,this);b.OH(this.ae,this,d);this.lJa||(this.ae.Za().nb(this,this),this.lJa=!0);if("dataChange"===this.ae.Wm)if("refurbished"===this.aj)this.zxa();else if("migrate"===this.aj){this.zxa();this.kRa();var e=this.ae.ZVa.ka,f=this.ae.mVa.ka;e.N(a.G.V,this,this.nI,this.bS,this.HK.bar.width);e.N(a.G.V,this,this.Xkb,this.hsb,this.HK.bar.height);f.N(a.G.V,this,this.ra,this.ha,
  this.HK.task.translateX);f.N(a.G.V,this,this.pa,this.va,this.HK.task.translateY);f=this.iE;null!=f&&(e.N(a.G.V,f,f.Va,f.Aa,this.HK.label.x),e.N(a.G.V,f,f.kb,f.eb,this.HK.label.y));a.bb.Ib(e,function(){this.iRa()},this)}};b.prototype.Iva=function(){var a=this.Yh,b=this.iE,a={task:{width:this.getWidth(),top:this.Vx,translateX:this.ra(),translateY:this.pa()},bar:{width:a.getWidth(),height:a.getHeight()}};null!=b&&(a.label={textString:b.Xe(),x:b.Va(),y:b.kb()});return a};b.prototype.lRa=function(a){var b=
  this.Yh,c=this.iE,d=a.task;this.Xa(d.width);this.pga(d.top);this.ha(d.translateX);this.va(d.translateY);d=a.bar;b.Xa(d.width);b.qb(d.height);null!=c&&(a=a.label,c.cg(a.textString),c.Aa(a.x),c.eb(a.y))};b.prototype.BWa=function(a){this.Meb=a?a:this.Iva()};b.prototype.kRa=function(){this.lRa(this.Meb)};b.prototype.zxa=function(a){this.HK=a?a:this.Iva()};b.prototype.iRa=function(){this.lRa(this.HK)};b.epb=function(a,b){var c=a.Qi(),d=a.hl();null==c?c=d:null==d&&(d=c);var e=b.Qi(),f=b.hl();null==e?e=
  f:null==f&&(f=e);return c<f&&e<d};b.Doa=function(b,c,d){var e=b.Qi(),f=b.hl();b=b.je;var k=c.Qi();c=c.hl();null==k?k=c:null==c&&(c=k);k=a.Vb.gf(e,f,k,b);e=a.Vb.gf(e,f,c,b);d&&(k=b-k,e=b-e);return{nN:k,jI:e}};b.qfb=function(c,d){var e=a.B.ca(c.u()),f=b.Doa(c,d,e),e=f.nN,k=d.Vx,f=Math.max(0,Math.abs(f.jI-e)),h=d.Yh;if(h)"dataChange"===c.Wm?"same"!==d.aj&&d.bS(f):d.bS(f);else{var h=c.u(),y=d.ZQ();"onDisplay"===c.Wm?(h=new q(h,0,v.Hea(),0,d.getHeight(),y),c.sia.ka.N(a.G.V,d,d.nI,d.bS,f)):h=new q(h,0,
  v.Hea(),f,d.getHeight(),y);(y=d.M())&&a.K.Y(h.Ua(),"style",y);var y=c.Xw("task"),H=d.Ku();H?a.K.Y(h.Ua(),"class",y+" "+H):a.K.Y(h.Ua(),"class",y);d.A(h);d.Yh=h}h=d.Ko();h.wtb(k+d.Aua());d.Xa(f);"dataChange"===c.Wm?"same"===d.aj?(y=c.nVa.ka,y.N(a.G.V,d,d.ra,d.ha,e),y.N(a.G.V,d,d.pa,d.va,h.Vx+k),c.Mxa.ka.N(a.G.V,d,d.nI,d.bS,f)):"new"===d.aj||"refurbished"===d.aj?(d.ha(e),d.va(h.Vx+k),d.bS(0),c.Vwa.ka.N(a.G.V,d,d.nI,d.bS,f)):(d.ha(e),d.va(h.Vx+k)):(d.ha(e),d.va(h.Vx+k))};b.OH=function(c,d,e){var f=d.me(),
  k=d.iE,h=d.uf(),y=a.B.ca(c.u());if(null!=f){null==k?(k=new r(c.u(),f,0,0,c.DX),a.K.Y(k.Ua(),"class",c.Xw("taskLabel")),d.A(k)):k.cg(f);y&&k.Ah();d.kXa(k);var f=new a.j(v.Unb(c.D())),H=d.sI();null!=H&&(f.Ui(H),"string"===typeof H?k.Ua().style.cssText=H:a.K.Y(k,"style",H));k.Ab(f);b.vhb(d,e);f=a.Ba.vj(k);k.eb((d.Aua()-f.b)/2);e=v.FUa();switch(h){case "start":y?k.Sh():k.Ah();h=-e;break;case "end":y?k.Ah():k.Sh();h=d.getWidth()+e;break;case "innerStart":y?k.Ah():k.Sh();h=e;break;case "innerEnd":h=d.getWidth();
  f.a<h?(y?k.Sh():k.Ah(),h=d.getWidth()-e):(y?k.Ah():k.Sh(),f=k.aa(),h=Math.max(e,h-f.a-e));break;case "innerCenter":h=d.getWidth();f.a<h?(k.Xf(),h=d.getWidth()/2):(y?k.Ah():k.Sh(),f=k.aa(),h=Math.max(e,(h-f.a)/2));break;default:y?k.Sh():k.Ah(),h=-e}y&&(h=-h);"onDisplay"===c.Wm?(k.Aa(0),c.sia.ka.N(a.G.V,k,k.Va,k.Aa,h)):"dataChange"===c.Wm?"same"===d.aj?c.Mxa.ka.N(a.G.V,k,k.Va,k.Aa,h):"new"===d.aj||"refurbished"===d.aj?(k.Aa(0),c.Vwa.ka.N(a.G.V,k,k.Va,k.Aa,h)):k.Aa(h):k.Aa(h)}else null!=k&&d.removeChild(k),
  d.kXa(null)};b.vhb=function(c,d){var e=c.uf(),f=c.iE;f.vn()&&f.cg(f.pq());var k=v.FUa();if("innerStart"==e||"innerEnd"==e||"innerCenter"==e){a.Ba.fd(f,c.getWidth()-k,c.getHeight(),c,1);var h=a.O.Vl(c.lt());null!=h&&f.qa(new a.Yb(h))}else{var y=c.ae,H=y.Qi(),z=y.hl(),E=y.je,m=b.Doa(y,c,!1);if(d){var l=d.uf(),h=d.iE,n=b.Doa(y,d,!1);"end"==l&&h.vn()&&h.cg(h.pq())}if("start"==e){y=a.Vb.gf(H,z,H,E)+k;d&&(y="end"==l?(m.nN-k-(n.jI+k))/2+k:n.jI+k);var q=m.nN-k-y}else"end"==e&&(y=a.Vb.gf(H,z,z,E)-k,q=y-(m.jI+
  k));f=a.Ba.fd(f,q,c.getHeight(),c,1);d&&"end"==l&&(y="start"==e?(m.nN-k-(n.jI+k))/2-k:m.nN-k,q=y-(n.jI+k),(f=a.Ba.fd(h,q,d.getHeight(),d,1))&&"migrate"===d.aj&&(e=d.HK,e.label.textString=h.Xe(),d.zxa(e)))}};b.Vab=function(a,b){if(null==b)return null;var c=b.Ua().cloneNode(!1),d=a.u().Ob;d.appendChild(c);try{var e=window.getComputedStyle(c).fill;if(String.prototype.startsWith?!e.startsWith("url("):0!=e.indexOf("url("))return e}finally{d.removeChild(c)}return null};b.prototype.kua=function(a){if(null==
  a)return"";a=new Date(a);var b=this.ae.aq.qf;return"hours"==b||"minutes"==b||"seconds"==b?a.toLocaleString():a.toLocaleDateString()};b.prototype.jt=function(b,c){var d=this.ae.D(),e=c-b,f=this.ae.aq.qf;if("hours"==f||"minutes"==f||"seconds"==f)return e=Math.round(e/36E5*100)/100,a.I.Ef(d,"accessibleDurationHours",a.I.Ia,"DURATION_HOURS",[e]);e=Math.round(e/864E5*100)/100;return a.I.Ef(d,"accessibleDurationDays",a.I.Ia,"DURATION_DAYS",[e])};b.prototype.Ed=function(b){var c=[],d=this.ae.D();this.tb()&&
  c.push(a.I.Ef(d,this.wb()?"stateSelected":"stateUnselected",a.I.Ia,this.wb()?"STATE_SELECTED":"STATE_UNSELECTED"));var e=this.Qi(),f=this.hl();if(null==e||null==f||e==f)var k=a.I.Ef(d,"accessibleMilestoneInfo",a.I.Ia,"MILESTONE_INFO",[this.kua(null!=e?e:f)]);else var k=this.kua(e),h=this.kua(f),e=this.jt(e,f),k=a.I.Ef(d,"accessibleTaskInfo",a.I.Ia,"TASK_INFO",[k,h,e]);h=this.me();null!=h&&(k=h+", "+k);h=this.Ko().getId();if(this.ae.i$a!=h){if(null==b)for(h=this.Ko().Ua(),e=h.parentNode.childNodes,
  f=0;f<e.length;f++)if(e[f]==h){b=f;break}b=a.I.Ef(d,"accessibleRowInfo",a.I.Ia,"ROW_INFO",[b+1]);this.ae.IC()&&(d=this.Ko().JL.Xe(),null!=d&&(b=b+", "+d));k=b+", "+k}c=a.oa.Ik(k,c);b=this.Pkb();return null!=b&&-1<b.indexOf(c)?null:c};b.prototype.Nr=function(a){this.Gd("label",this.Ed(a));this.hRa()};b.prototype.tb=function(){return"none"!=this.ae.D().selectionMode};b.prototype.wb=function(){return this.Lg};b.prototype.lc=function(a){this.Lg=a;this.Neb(a);this.Nr();this.ae.wsb(this.Ko().getId())};
  b.prototype.Neb=function(a){a?null==this.Tz&&(a=this.qIa("selected"),this.Hb(a,0),this.Tz=a,this.getParent().A(this)):(null!=this.Tz&&this.removeChild(this.Tz),this.Tz=null)};b.prototype.qIa=function(c){var d=a.B.ca(this.ae.u())?b.QF:-b.QF,e=v.Hea()-b.QF,f=this.Yh.getWidth()+2*b.QF,k=this.Yh.getHeight()+2*b.QF,h=this.ZQ(),d=new q(this.ae.u(),d,e,f,k,h);a.K.Y(d.Ua(),"class",this.ae.Xw("task"));a.K.Y(d.Ua(),"style","fill:none");a.PF.Yhb(d.Ua(),this.ae.Xw(c));return d};b.prototype.GPa=function(b){if(null==
  this.jca){b=this.qIa(b);this.Hb(b,this.pi(this.Yh));this.jca=b;var c=this.lt();null!=c&&b.Ga(a.Wt.Ojb(c));this.getParent().A(this);"dim"==this.ae.K3()&&this.ae.yXa(this,!0)}};b.prototype.pd=function(){this.GPa("hover")};b.prototype.Jc=function(){null!=this.jca&&(this.removeChild(this.jca),this.jca=null,this.wb()||this.getParent().Hb(this,0));"dim"==this.ae.K3()&&this.ae.yXa(null,!1)};b.prototype.Xjb=function(){null!=this.Yh&&this.Yh.T(b.Oza);null!=this.Tz&&this.Tz.T(b.Oza)};b.prototype.Nib=function(){null!=
  this.Yh&&this.Yh.T(1);null!=this.Tz&&this.Tz.T(1)};b.prototype.Fd=function(b){var c=this.ae.Za().Cb;return b.type==a.MouseEvent.Ce||c.Vu(b)?this:c.Si(b)?k.Fd(this.ae,this,b):null};b.prototype.tf=function(a){return this.aa(a)};b.prototype.Mm=function(){return this.Yh.Ua()};b.prototype.Tf=function(){this.dd=!0;this.GPa("focus")};b.prototype.Qd=function(){this.Kd()&&(this.dd=!1,this.Jc())};b.prototype.Kd=function(){return this.dd};a.Ha(a,"Gantt",a.Oc);a.Ha(a.Oc,"newInstance",a.Oc.newInstance);a.Ha(a.Oc.prototype,
  "destroy",a.Oc.prototype.ya);a.Ha(a.Oc.prototype,"getAutomation",a.Oc.prototype.oh);a.Ha(a.Oc.prototype,"render",a.Oc.prototype.ta);a.Ha(m.prototype,"getDomElementForSubId",m.prototype.ph);a.Ha(m.prototype,"GetSubIdForDomElement",m.prototype.Cn)})(dvt);
    return dvt;
  });
  