@dlhsoft/ganttcharthyperlibrary
Version:
Gantt Chart library for JavaScript and TypeScript with Angular, React, and Vue extensions
96 lines • 316 kB
JavaScript
var DlhSoft;"undefined"===typeof DlhSoft&&(DlhSoft={assemblies:[],buildReleaseDate:new Date(1,0,1)});DlhSoft.assemblies.push({assembly:"DlhSoft.ProjectData.GanttChart.HTML.Controls",company:"DlhSoft",product:"Project Data Modern Library",version:"5.3.20.21",copyright:"Copyright \u00a9 2012-2025 DlhSoft",title:"Project Data Gantt Chart HTML Controls",description:"Project Data Gantt Chart related HTML client components"});
DlhSoft.buildReleaseDate=function(d,O,U){d=new Date(d,O-1,U);return d>DlhSoft.buildReleaseDate?d:DlhSoft.buildReleaseDate}(2025,2,7);var _0x5c25="Licensing{undefined{string{DlhSoft.Controls: DlhSoft internal usage only. Customers may purchase standard product usage licenses from http://DlhSoft.com/Purchase.{.{length{license{push{type{content{:{lastIndexOf{substr{buildReleaseDate{charCodeAt{pow{toUpperCase{DlhSoft Component Licensing Warning{http://DlhSoft.com/Purchase.aspx{?Assemblies={,{http://www.componentsource.com/features/dlhsoft{ (version {){This component is currently licensed to be used for testing purposes only{The component is part of this assembly{To purchase a standard license for a product that includes this assembly you can use the Purchase page{ownerDocument{div{createElement{style{position: absolute; left: 24px; top: 24px; width: 480px; display: block; z-index: 1; color: Black; background-color: #ffffc0; border: solid 1px Blue; overflow: auto{setAttribute{padding: 6px; padding-top: 8px; font-family: Arial; font-size: small{font-weight: bold; margin-bottom: 4px{appendChild{createTextNode{color: Red; margin-top: 2px; margin-bottom: 2px{margin-top: 4px{a{color: Blue; text-decoration: underline{href{target{_blank{Purchase license{margin-left: 4px; color: Blue; text-decoration: underline{javascript://{Continue trial{click{removeChild{addEventListener{\n\n{: {:\n".split("{");
void 0==DlhSoft[_0x5c25[0]]&&(DlhSoft[_0x5c25[0]]=function(){var d=_0x5c25[1],O=_0x5c25[2],U=[],aa=[],ba=_0x5c25[3],sa=function(v,Q){if(typeof v!==O||typeof Q!==O)return!1;if(Q==ba)return!0;var L=Q[_0x5c25[11]](_0x5c25[10]);if(0<=L){var X=Q[_0x5c25[12]](0,L),H,M=X[_0x5c25[11]](_0x5c25[10]);if(0<=M)try{H=new Date(parseInt(X[_0x5c25[12]](M+1)))}catch(N){}typeof H===d&&(H=new Date(2013,11,31));if(DlhSoft[_0x5c25[13]]>H)return!1;X=X+_0x5c25[10]+v;for(i=H=0;i<X[_0x5c25[5]];i++)M=X[_0x5c25[14]](i),H=(H<<
5)-H+M,H&=H;0>H&&(H=Math[_0x5c25[15]](2,32)-H);X=H.toString(16)[_0x5c25[16]]();L=Q[_0x5c25[12]](L+1);if(X==L)return!0}return!1},v=function(v,Q,L,X,H){var M=_0x5c25[17],N=_0x5c25[18],W=typeof ComponentSource===d||!ComponentSource?N+_0x5c25[19]+X+_0x5c25[20]+H:_0x5c25[21],U=X+_0x5c25[22]+H+_0x5c25[23],O=_0x5c25[24],fa=_0x5c25[25],ba=_0x5c25[26];setTimeout(function(){var d=v[_0x5c25[27]],t=d[_0x5c25[29]](_0x5c25[28]);t[_0x5c25[32]](_0x5c25[30],_0x5c25[31]);var m=d[_0x5c25[29]](_0x5c25[28]);m[_0x5c25[32]](_0x5c25[30],
_0x5c25[33]);var s=d[_0x5c25[29]](_0x5c25[28]);s[_0x5c25[32]](_0x5c25[30],_0x5c25[34]);m[_0x5c25[35]](s);s[_0x5c25[35]](d[_0x5c25[36]](M));m[_0x5c25[35]](d[_0x5c25[36]](O+_0x5c25[10]));s=d[_0x5c25[29]](_0x5c25[28]);s[_0x5c25[32]](_0x5c25[30],_0x5c25[37]);s[_0x5c25[35]](d[_0x5c25[36]](Q));m[_0x5c25[35]](s);m[_0x5c25[35]](d[_0x5c25[36]](fa+_0x5c25[10]));s=d[_0x5c25[29]](_0x5c25[28]);s[_0x5c25[32]](_0x5c25[30],_0x5c25[37]);s[_0x5c25[35]](d[_0x5c25[36]](U));m[_0x5c25[35]](s);m[_0x5c25[35]](d[_0x5c25[36]](ba+
_0x5c25[10]));s=d[_0x5c25[29]](_0x5c25[28]);s[_0x5c25[32]](_0x5c25[30],_0x5c25[38]);var h=d[_0x5c25[29]](_0x5c25[39]);h[_0x5c25[32]](_0x5c25[30],_0x5c25[40]);h[_0x5c25[32]](_0x5c25[41],W);h[_0x5c25[32]](_0x5c25[42],_0x5c25[43]);h[_0x5c25[35]](d[_0x5c25[36]](_0x5c25[44]));s[_0x5c25[35]](h);h=d[_0x5c25[29]](_0x5c25[39]);h[_0x5c25[32]](_0x5c25[30],_0x5c25[45]);h[_0x5c25[32]](_0x5c25[41],_0x5c25[46]);h[_0x5c25[35]](d[_0x5c25[36]](_0x5c25[47]));h[_0x5c25[50]](_0x5c25[48],function(){v[_0x5c25[49]](t);aa[_0x5c25[7]](L)},
!1);s[_0x5c25[35]](h);m[_0x5c25[35]](s);t[_0x5c25[35]](m);v[_0x5c25[35]](t)},0);setTimeout(function(){alert(M+_0x5c25[51]+O+_0x5c25[52]+Q+_0x5c25[51]+fa+_0x5c25[53]+U+_0x5c25[51]+ba+_0x5c25[4])},600000)};return{setLicense:function(d,v){U[_0x5c25[7]]({type:d,content:v})},validate:function(T,Q,L,X,H,M,N){for(var Q=Q+_0x5c25[4]+L,W=0;W<aa[_0x5c25[5]];W++)if(aa[W]==Q)return;a:if(typeof M!==O&&typeof N!==d&&(N[_0x5c25[6]]!==d&&(M=N[_0x5c25[6]]),typeof N===O&&(M=N)),typeof M!==O)for(N=0;N<U[_0x5c25[5]];N++)if(W=
U[N],W[_0x5c25[8]]==Q&&typeof W[_0x5c25[9]]===O){M=W[_0x5c25[9]];break a}sa(Q,M)?T[_0x5c25[6]]=M:v(T,L,Q,X,H)}}}());void 0==DlhSoft.Controls&&(DlhSoft.Controls={});
void 0==DlhSoft.Controls.GanttChartView&&(DlhSoft.Controls.GanttChartView=function(){var d="undefined",O=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],U=["January","February","March","April","May","June","July","August","September","October","November","December"],aa=[31,28,31,30,31,30,31,31,30,31,30,31],ba=new Date(259200000),sa=new Date(315576259200000),v=function(a,c,e,b,f){a.internalEventListeners&&a.internalEventListeners.push({object:c,event:e,handler:b,useCapture:f});
return b},T=function(a,c){var e=document.createEvent("MouseEvents");e.initMouseEvent(c,true,true,document.defaultView,0,0,0,0,0,false,false,false,false,0,a);a.dispatchEvent(e)},Q=function(a,c,e,b){function f(c){if(typeof u.x!==d&&!(a.offsetWidth<=0)){var c=u.gridWidth+(c.clientX-u.x),b=a.offsetWidth-c-3,f=Math.max(1,e.minGridWidth),g=Math.max(1,e.minChartWidth);if(c<f){b=b-(f-c);c=f}else if(b<g){c=c-(g-b);b=g}c<1&&(c=1);b<1&&(b=1);typeof I.percent!==d&&delete I.percent;c=Math.ceil(c*1000000/a.offsetWidth)/
10000;I.style.width=c+"%";j.style.width=100-c+"%";e.gridWidth=I.offsetWidth+"px";e.chartWidth=j.offsetWidth+"px";Ma(u,I,e);typeof e.splitterPositionChangeHandler!==d&&setTimeout(function(){e.splitterPositionChangeHandler(I.offsetWidth,j.offsetWidth)},0)}}if(typeof a.ownerDocument.createElementNS===d||typeof a.ownerDocument.addEventListener===d)alert("The required HTML5 features are not supported by the application host. Some features will be unavailable. Consider upgrading.");else{var g=["DlhSoft.Controls",
"GanttChartView","DlhSoft.ProjectData.GanttChart.HTML.Controls","5","validate","Licensing"];DlhSoft[g[5]][g[4]](a,g[0],g[1],g[2],g[3],b,e);a.isInitializing=true;if(typeof a.initializedItems!==d){a.initializedItems.forEach(function(a){a.gridItemContainer&&a.gridItemContainer.parentNode&&a.gridItemContainer.parentNode.removeChild(a.gridItemContainer);a.chartItemArea&&a.chartItemArea.parentNode&&a.chartItemArea.parentNode.removeChild(a.chartItemArea);delete a.ganttChartView;delete a.chartItem;delete a.chartItemArea;
delete a.gridItem;delete a.gridItemContent;delete a.gridItemSelectionContainer;delete a.gridItemContainer;delete a.alternativeContentContainer;delete a.toggleButton;delete a.parent;delete a.children;delete a.selectionInput;delete a.contentInput;delete a.startInput;delete a.finishInput;delete a.milestoneInput;delete a.assignmentsContentInput;delete a.completedInput;delete a.dependsOf;delete a.touchMoveHandler;delete a.touchEndHandler});typeof a.draggableItems!==d&&delete a.draggableItems;typeof a.draggableDependencyItems!==
d&&delete a.draggableDependencyItems;typeof a.draggableOrderingItems!==d&&delete a.draggableOrderingItems}a.initializedItems=c.slice();a.internalEventListeners&&a.internalEventListeners.forEach(function(a){a.object.removeEventListener(a.event,a.handler,a.useCapture)});a.internalEventListeners=[];typeof a.settings!==d&&typeof a.settings.toggleButtonAreaWidth!==d&&delete a.settings.toggleButtonAreaWidth;if(typeof a.items!==d)for(b=0;b<a.items.length;b++)delete a.items[b].successors;typeof e!=="object"&&
(e={});M(c,e);H(e,c,a);Hc(a,c,e);b=e.columns;g=e.scales;Ic(b,a,e);ha(c,a);Sa(c,e,a);if(typeof e.visibilityFilter!==d){Jc(c,e.visibilityFilter);for(var q=0,o=0;o<c.length;o++){var k=c[o];if(typeof k.ganttChartItems!==d){if(!k.isHidden)k.scheduleChartVisibilityIndex=q++;for(var n=0;n<k.ganttChartItems.length;n++){var l=k.ganttChartItems[n];if(k.isHidden)l.isHidden=true;l.displayRowIndex=k.scheduleChartVisibilityIndex}}}}var J=N(a,c,e),z=a.ownerDocument,q=z.createElement("div");q.setAttribute("style",
"font-family: "+(e.classic?"Arial":"system-ui, Arial")+"; font-size: "+(e.classic?"small":"12px")+"; overflow: auto");o=z.createElement("div");typeof e.containerClass!==d&&o.setAttribute("class",e.containerClass);typeof e.containerStyle!==d&&o.setAttribute("style",e.containerStyle);q.appendChild(o);k=z.createElement("div");k.setAttribute("style","border: solid 1px "+e.border+"; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; overflow: auto");
o.appendChild(k);var I=z.createElement("div");I.setAttribute("style","overflow: auto; float: left; border-right: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: "+e.gridWidth);e.isGridVisible&&k.appendChild(I);var j=z.createElement("div");j.setAttribute("style","overflow: auto; float: right; width: "+e.chartWidth);k.appendChild(j);var u=z.createElement("div");u.setAttribute("style","position: relative; opacity: 0; left: 0px; width: "+
e.splitterWidth*2+"px; height: 0px; border-left: solid "+e.splitterWidth+"px "+e.splitterBackground+"; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: ew-resize; -ms-touch-action: pinch-zoom; touch-action: auto");u.addEventListener("mouseover",v(a,u,"mouseover",function(){u.style.opacity=1;u.isWaiting!==d&&delete u.isWaiting},true),true);u.addEventListener("mouseout",v(a,u,"mouseout",function(){if(typeof u.isWaiting===d){u.isWaiting=true;setTimeout(function(){if(typeof u.isWaiting!==
d){delete u.isWaiting;if(typeof u.x===d)u.style.opacity=0}},250)}},true),true);u.addEventListener("mousedown",v(a,u,"mousedown",function(a){if(a.button==0){u.style.opacity=1;u.x=a.clientX;u.gridWidth=I.offsetWidth}},true),true);u.addEventListener("touchstart",v(a,u,"touchstart",function(a){a=a.touches[0];u.style.opacity=1;u.x=a.clientX;u.gridWidth=I.offsetWidth},true),true);z.addEventListener("mousemove",v(a,z,"mousemove",function(a){f(a)},true),true);z.addEventListener("touchmove",v(a,z,"touchmove",
function(a){f(a.touches[0])},true),true);z.addEventListener("mouseup",v(a,z,"mouseup",function(){if(typeof u.x!==d){delete u.x;u.style.opacity=0}if(DlhSoft.Controls.ToolTip&&(e.useUpdatingToolTips||e.useInlineToolTips)){if(toolTip=a.toolTip){toolTip.disable();toolTip.hide()}if(toolTip=a.resourceRoolTip){toolTip.disable();toolTip.hide()}}},true),true);z.addEventListener("touchend",v(a,z,"touchend",function(){if(typeof u.x!==d){delete u.x;u.style.opacity=0}},true),true);e.isGridVisible&&e.isSplitterEnabled&&
k.appendChild(u);o=z.createElement("div");o.setAttribute("style","float: right; background: "+e.headerBackground+"; width: 0px; height: "+e.headerHeight+"px");I.appendChild(o);k=z.createElement("div");k.setAttribute("style","overflow: hidden; background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: "+e.headerHeight+"px");I.appendChild(k);n=z.createElement("div");n.setAttribute("style","float: right; background: "+
e.headerBackground+"; width: 0px; height: "+e.headerHeight+"px");j.appendChild(n);l=z.createElement("div");l.setAttribute("style","overflow: hidden; background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: "+e.headerHeight+"px");j.appendChild(l);var m=z.createElement("div");m.setAttribute("style","overflow-x: "+(typeof e.isExport===d||!e.isExport?"scroll":"hidden")+"; overflow-y: "+(typeof e.isExport===
d||!e.isExport?"auto":"hidden")+"; height: "+J);I.appendChild(m);var h=z.createElement("div");h.setAttribute("style","overflow-x: "+(typeof e.isExport===d||!e.isExport?"scroll":"hidden")+"; overflow-y: "+(typeof e.isExport===d||!e.isExport?"auto":"hidden")+"; height: "+J);j.appendChild(h);var J=pb(b),G=z.createElement("div");G.setAttribute("style","background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: "+
J+"px; overflow: hidden; height: "+e.headerHeight+"px");k.appendChild(G);var p=z.createElement("div");p.setAttribute("style","float: left; width: "+J+"px; overflow: auto"+(e.horizontalGridLines?"; border-bottom: 1px solid "+e.horizontalGridLines+"; margin-bottom: -1px; ; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box":""));m.appendChild(p);if(typeof e.extraSpaceHeight!==d){var t=z.createElement("div");t.setAttribute("style","overflow: hidden; width: "+J+"px; height: "+
e.extraSpaceHeight+"px");m.appendChild(t)}var da=F(e.timelineFinish,e),r=z.createElement("div");r.setAttribute("style","background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: "+da+"px; height: "+e.headerHeight+"px");var y,s;if(e.extendTimelineToEntireWeeks)l.appendChild(r);else{J=z.createElement("div");l.appendChild(J);y={workingWeekStart:e.visibleWeekStart,workingWeekFinish:e.visibleWeekFinish,
workingDayStart:e.visibleDayStart,workingDayFinish:e.visibleDayFinish};s=K(e.timelineStart,e.intendedTimelineStart,e,y)/3600000*e.hourWidth;y=s+K(e.intendedTimelineStart,e.intendedTimelineFinish,e,y)/3600000*e.hourWidth;J.setAttribute("style","overflow-x: hidden; width: "+y+"px; transform: translateX(-"+s+"px);");J.appendChild(r)}var x=z.createElement("div");x.setAttribute("style","float: left; overflow: hidden; width: "+da+"px; height: 0px");if(e.extendTimelineToEntireWeeks)h.appendChild(x);else{J=
z.createElement("div");h.appendChild(J);J.setAttribute("style","overflow-x: hidden; width: "+y+"px; transform: translateX(-"+s+"px); clip-path: xywh(0 0 "+y+"px 100%);");J.appendChild(x)}var w=z.createElementNS("http://www.w3.org/2000/svg","svg");w.setAttribute("style","width: "+da+"px; height: 0px");s=e.styleDefinitionTemplate(a);w.appendChild(s);w.chartAreaDefinitions=s;s=z.createElementNS("http://www.w3.org/2000/svg","g");w.appendChild(s);x.chartAreaAlternativeRows=s;s=function(){setTimeout(function(){try{var a=
x.chartArea,c=a.chartAreaDefinitions;a.removeChild(c);a.childNodes.length>0?a.insertBefore(c,a.childNodes[0]):a.appendChild(c)}catch(b){}},0)};w.addEventListener("mousedown",v(a,w,"mousedown",s,true),true);z.addEventListener("mouseup",v(a,z,"mouseup",s,true),true);a.resetChartAreaDefinitions=s;x.appendChild(w);x.chartArea=w;if(typeof e.extraSpaceHeight!==d){s=z.createElement("div");s.setAttribute("style","overflow: hidden; width: "+da+"px; height: "+e.extraSpaceHeight+"px");h.appendChild(s);h.chartExtraSpace=
s}var E,D,A,C;setTimeout(function(){D=screen.deviceXDPI;E=a.isInitialized?-1:a.offsetWidth;A=a.isInitialized?-1:a.offsetHeight;C=j.offsetHeight},0);typeof a.splitterUpdateTimer!==d&&clearInterval(a.splitterUpdateTimer);a.splitterUpdateTimer=setInterval(function(){try{if(typeof u.x===d&&!(a.offsetWidth<=0)&&a.settings.isGridVisible){var c=a.offsetWidth,b=j.offsetHeight,f=screen.deviceXDPI;if(c!=E||f!=D){var g=typeof I.percent!==d?I.percent*c:I.offsetWidth,o=j.offsetWidth,k=Math.max(1,e.minGridWidth),
n=Math.max(1,e.minChartWidth);if(g<k){o=o-(k-g);g=k}else if(o<n){g=g-(n-o);o=n}g<1&&(g=1);o<1&&(o=1);var l=Math.ceil(g*100/c);I.percent=l/100;I.style.width=l+"%";j.style.width=100-l+"%";e.gridWidth=I.offsetWidth+"px";e.chartWidth=j.offsetWidth+"px";Ma(u,I,e);if(typeof e.splitterPositionChangeHandler!==d){var q=I.offsetWidth,z=j.offsetWidth;q>0&&z>0&&setTimeout(function(){e.splitterPositionChangeHandler(q,z)},0)}E=c;A=b;D=f}else if(b!=C){Ma(u,I,e);C=b}}}catch(J){try{clearInterval(a.splitterUpdateTimer)}catch(h){}}},
100);typeof a.heightUpdateTimer!==d&&clearInterval(a.heightUpdateTimer);a.heightUpdateTimer=setInterval(function(){try{if(!(a.clientHeight<=0)){var b=a.clientHeight;if(b!=A){var f=N(a,c,e);m.style.height=f;h.style.height=f;Ma(u,I,e);if(h.style.height!="auto")x.availableHeight=h.clientHeight;Aa(x,Ba(c,e));Ca(c,h,e);A=b=a.clientHeight}}}catch(d){try{clearInterval(a.heightUpdateTimer)}catch(g){}}},100);typeof a.scaleUpdateTimer!==d&&clearInterval(a.scaleUpdateTimer);a.chartScale=1;a.scaleUpdateTimer=
setInterval(function(){try{var c=a.getItemsHeight(),b=a.gridContent.clientHeight/c;if(b>0){a.chartScale=b;a.chartContent.style.transform="scaleY("+b+") translateY(-"+(c-a.gridContent.clientHeight)/2+"px)"}}catch(e){}},1000);var B=function(b,f,g,o,k,n){var l;if(e.mouseHandler||e.mouseMoveHandler&&n=="mousemove"||e.mouseDownHandler&&n=="mousedown"||(e.clickHandler||e.itemClickHandler||e.chartClickHandler||e.chartItemClickHandler)&&n=="click"||(e.doubleClickHandler||e.itemDoubleClickHandler||e.chartDoubleClickHandler||
e.chartItemDoubleClickHandler)&&n=="dblclick"){var q=b.which;!q&&b.button&&(b.button&1?q=1:b.button&4?q=2:b.button&2&&(q=3));l=k.getBoundingClientRect();var u=z.body,J=z.documentElement,k=l.left+(window.pageXOffset||J.scrollLeft||u.scrollLeft)-(J.clientLeft||u.clientLeft||0);l=Math.round(l.top+(window.pageYOffset||J.scrollTop||u.scrollTop)-(J.clientTop||u.clientTop||0));var k=Math.round(k),k=b.pageX-k,J=(b.pageY-l)/a.chartScale,j=l=0,I,ga;if(g)for(u=0;u<c.length;u++){j=c[u];if(j.isVisible&&!(typeof j.isHidden!==
d&&j.isHidden)){j=j.itemTop+e.itemHeight;if(J<=j){I=c[u];break}}}else if(f){for(var h=e.scales,m=0,pa,u=0;u<h.length;u++){pa=h[u];(typeof pa.isHeaderVisible===d||pa.isHeaderVisible)&&m++}var G=e.headerHeight;m>0&&(G=e.headerHeight/m);for(u=0;u<h.length;u++){pa=h[u];if(typeof pa.isHeaderVisible===d||pa.isHeaderVisible){m=G;if(typeof pa.headerHeight!==d)m=pa.headerHeight;j=j+m;if(J<=j){I=pa;break}}}}if(f)ga=Na(k,e);else{J=e.columns;for(u=0;u<J.length;u++){j=J[u];l=l+(j.width?j.width:0);if(k<=l){ga=
j;break}}}e.mouseHandler&&e.mouseHandler(n,g,f,I,ga,q,o,b);e.mouseMoveHandler&&n=="mousemove"&&e.mouseMoveHandler(g,f,I,ga);e.mouseDownHandler&&n=="mousedown"&&e.mouseDownHandler(g,f,I,ga,q);e.clickHandler&&n=="click"&&e.clickHandler(g,f,I,ga);e.doubleClickHandler&&n=="dblclick"&&e.doubleClickHandler(g,f,I,ga);e.itemClickHandler&&(n=="click"&&g&&I)&&e.itemClickHandler(f,I,ga);e.itemDoubleClickHandler&&(n=="dblclick"&&g&&I)&&e.itemDoubleClickHandler(f,I,ga);e.chartClickHandler&&(n=="click"&&f)&&e.chartClickHandler(g,
I,ga);e.chartDoubleClickHandler&&(n=="dblclick"&&f)&&e.chartDoubleClickHandler(g,I,ga);e.chartItemClickHandler&&(n=="click"&&g&&f)&&e.chartItemClickHandler(I,ga);e.chartItemDoubleClickHandler&&(n=="dblclick"&&g&&f)&&e.chartItemDoubleClickHandler(I,ga)}};G.addEventListener("mousemove",v(a,G,"mousemove",function(a){B(a,false,false,0,G,"mousemove")}));G.addEventListener("mousedown",v(a,G,"mousedown",function(a){B(a,false,false,1,G,"mousedown")}));G.addEventListener("click",v(a,G,"click",function(a){B(a,
false,false,1,G,"click")}));G.addEventListener("dblclick",v(a,G,"dblclick",function(a){B(a,false,false,2,G,"dblclick")}));p.addEventListener("mousemove",v(a,p,"mousemove",function(a){B(a,false,true,0,p,"mousemove")}));p.addEventListener("mousedown",v(a,p,"mousedown",function(a){B(a,false,true,1,p,"mousedown")}));p.addEventListener("click",v(a,p,"click",function(a){B(a,false,true,1,p,"click")}));p.addEventListener("dblclick",v(a,p,"dblclick",function(a){B(a,false,true,2,p,"dblclick")}));r.addEventListener("mousemove",
v(a,r,"mousemove",function(a){B(a,true,false,0,r,"mousemove")}));r.addEventListener("mousedown",v(a,r,"mousedown",function(a){B(a,true,false,1,r,"mousedown")}));r.addEventListener("click",v(a,r,"click",function(a){B(a,true,false,1,r,"click")}));r.addEventListener("dblclick",v(a,r,"dblclick",function(a){B(a,true,false,2,r,"dblclick")}));x.addEventListener("mousemove",v(a,x,"mousemove",function(a){B(a,true,true,0,x,"mousemove")}));x.addEventListener("mousedown",v(a,x,"mousedown",function(a){B(a,true,
true,1,x,"mousedown")}));x.addEventListener("click",v(a,x,"click",function(a){B(a,true,true,1,x,"click")}));x.addEventListener("dblclick",v(a,x,"dblclick",function(a){B(a,true,true,2,x,"dblclick")}));x.addEventListener("touchmove",v(a,x,"touchmove",function(c){a.draggingItem&&c.preventDefault()},true),true);p.container=m;x.container=h;G.container=k;r.container=l;a.gridContainer=I;a.chartContainer=j;a.gridContent=p;a.chartContent=x;a.gridContentContainer=m;a.chartContentContainer=h;a.gridHeader=G;
a.chartHeader=r;a.gridHeaderContainer=k;a.chartHeaderContainer=l;a.splitter=u;h.isInitializing=true;s=W(c,e);Kc(a,q);if(h.style.height!="auto")x.availableHeight=h.clientHeight;Lc(G,b,e,a);qb(r,w,g,e);Mc(w,c,e);Nc(p,x,w,c,b,s,e,a);Ma(u,I,e);h.isInitializing=false;Ca(c,h,e);h.scrollLeft=F(e.displayedTime,e);if(l.scrollLeft!=h.scrollLeft)l.scrollLeft=h.scrollLeft;Oc(a,m,I,k,o,p,h,l,j,n,x,u,c,e);var P=false,qa=function(a,b){typeof b===d&&(b=0);if(e.hourWidth!=a){P=true;var f=h.scrollLeft,g=b,o=e.hourWidth;
e.hourWidth=a;typeof e.hourWidthChangeHandler!==d&&setTimeout(function(){e.hourWidthChangeHandler(e.hourWidth)},0);da=F(e.timelineFinish,e);r.style.width=da+"px";x.style.width=da+"px";w.style.width=da+"px";if(typeof h.chartExtraSpace!==d)h.chartExtraSpace.style.width=da+"px";var k;for(k=r.childNodes.length;k-- >0;)r.removeChild(r.childNodes[k]);var n=[];for(k=w.childNodes.length;k-- >1;){var l=w.childNodes[k];if(l!=x.chartAreaAlternativeRows){l.tag!="Scale-Highlighting"&&(l.tag!="Scale-Highlighting-CurrentTime"&&
l.tag!="Scale-Separator"&&l.tag!="Scale-Separator-CurrentTime")&&n.push(l);w.removeChild(l)}}qb(r,w,e.scales,e);for(k=0;k<c.length;k++){l=c[k];if(!e.isVirtualizing||typeof l.isVirtuallyVisible!==d&&l.isVirtuallyVisible){ia(l.chartPredecessorItems,l,e);ja(l.chartItem,l,e)}}for(k=n.length;k-- >0;)w.appendChild(n[k]);Aa(x,Ba(c,e));h.scrollLeft=g*(a/o)-(g-f);setTimeout(function(){P=false},200)}};a.setHourWidth=qa;if(e.classic?typeof e.isMouseWheelZoomEnabled===d||e.isMouseWheelZoomEnabled:e.isMouseWheelZoomEnabled){b=
function(c){c.preventDefault();c.stopPropagation();if(!P){var b=typeof c.wheelDelta!==d?c.wheelDelta>=0?1:-1:typeof c.detail!==d?-c.detail>=0?1:-1:0,e=a.settings,f=e.hourWidth,g=typeof e.isMouseWheelZoomEnabledMinHourWidth!==d?e.isMouseWheelZoomEnabledMinHourWidth:1;if(b<0)f=f/(1.2*-b);else if(b>0){f=f*1.2*b;b=typeof e.isMouseWheelZoomEnabledMaxHourWidth!==d?e.isMouseWheelZoomEnabledMaxHourWidth:20;f>b&&(f=b)}f<g&&(f=g);qa(f,c.offsetX)}};w.addEventListener("mousewheel",v(a,w,"mousewheel",b));w.addEventListener("DOMMouseScroll",
v(a,w,"DOMMouseScroll",b))}a.isInitializing=false;a.isInitialized=true;return a}},L=function(a){a.settings.timelineStart=a.settings.intendedTimelineStart;delete a.settings.intendedTimelineStart;a.settings.timelineFinish=a.settings.intendedTimelineFinish;delete a.settings.intendedTimelineFinish;Q(a,a.items,a.settings,a.license)},X=function(a){if(typeof a.dateTimePickerType===d)a.dateTimePickerType="text";if(typeof a.useDatePicker===d)a.useDatePicker=true;if(typeof a.useTimePicker===d)a.useTimePicker=
true;if(typeof a.useResourceSelector===d)a.useResourceSelector=true;if(typeof a.useInlineToolTips===d)a.useInlineToolTips=true;if(typeof a.useInlineToolTipsForDependencies===d)a.useInlineToolTipsForDependencies=true;if(typeof a.useUpdatingToolTips===d)a.useUpdatingToolTips=true;if(typeof a.dateFormatter===d)a.dateFormatter=fa;if(typeof a.dateTimeFormatter===d)a.dateTimeFormatter=na;if(typeof a.dateTimeParser===d)a.dateTimeParser=t;if(typeof a.itemPropertyChangeHandler===d)a.itemPropertyChangeHandler=
function(){};if(typeof a.target===d)a.target="Standard";if(typeof a.theme===d)a.theme="Modern";if(typeof a.isGridVisible===d)switch(a.target){default:a.isGridVisible=true;break;case "Phone":a.isGridVisible=false}if(typeof a.interaction===d)a.interaction=a.target!="Phone"?"Standard":"TouchEnabled";if(typeof a.isSplitterEnabled===d)a.isSplitterEnabled=true;if(typeof a.isReadOnly===d)a.isReadOnly=false;if(typeof a.isGridReadOnly===d)a.isGridReadOnly=false;if(typeof a.isChartReadOnly===d)a.isChartReadOnly=
false;if(typeof a.isContentReadOnly===d)a.isContentReadOnly=false;if(typeof a.isAssignmentsContentReadOnly===d)a.isAssignmentsContentReadOnly=false;if(typeof a.isIndividualItemNonworkingTimeHighlighted===d)a.isIndividualItemNonworkingTimeHighlighted=false;if(typeof a.areTaskInterruptionsHighlighted===d)a.areTaskInterruptionsHighlighted=false;if(typeof a.areTaskDependencyConstraintsEnabled===d)a.areTaskDependencyConstraintsEnabled=false;if(typeof a.alwaysHandleInvalidDependencies===d)a.alwaysHandleInvalidDependencies=
false;if(typeof a.selectionMode===d)a.selectionMode="Focus";if(typeof a.isVirtualizing===d)a.isVirtualizing=true},H=function(a,c,e){X(a);if(typeof a.gridWidth===d)a.gridWidth="35%";if(typeof a.chartWidth===d)a.chartWidth=a.isGridVisible?"65%":"100%";if(typeof a.minGridWidth===d)a.minGridWidth=32;if(typeof a.minColumnWidth===d)a.minColumnWidth=32;if(typeof a.minChartWidth===d)a.minChartWidth=36;if(typeof a.border===d)switch(a.theme){default:a.border="#e0e0e0";break;case "ModernBordered":case "Aero":a.border=
"#9a9a9a"}if(typeof a.splitterWidth===d)a.splitterWidth=4;if(typeof a.splitterBackground===d)a.splitterBackground=a.border;if(typeof a.indentationLevelWidth===d)a.indentationLevelWidth=16;if(typeof a.itemHeight===d)a.itemHeight=a.classic?21:28;if(typeof a.headerBackground===d)a.headerBackground=a.classic?"#f4f4f4":"white";if(typeof a.headerHeight===d)a.headerHeight=(a.classic?21:31)*2;if(typeof a.columns===d)a.columns=h(c,a);if(typeof a.toggleButtonStyle===d&&a.toggleButtonClass==null)a.toggleButtonStyle=
"fill: Gray";if(typeof a.toggleButtonHoveringStyle===d&&a.toggleButtonHoveringClass==null)a.toggleButtonHoveringStyle="fill: Black";if(typeof a.collapsedToggleButtonTemplate===d)a.collapsedToggleButtonTemplate=Mb(e,a);if(typeof a.expandedToggleButtonTemplate===d)a.expandedToggleButtonTemplate=Nb(e,a);if(typeof a.gridLines!==d){if(typeof a.horizontalGridLines===d)a.horizontalGridLines=a.gridLines;if(typeof a.verticalGridLines===d)a.verticalGridLines=a.gridLines;if(typeof a.horizontalChartLines===d)a.horizontalChartLines=
a.gridLines}if(!a.classic&&typeof a.verticalGridHeaderLines===d)a.verticalGridHeaderLines=a.verticalGridLines?a.verticalGridLines:"#e0e0e0";if(typeof a.itemStyle===d&&typeof a.horizontalGridLines!==d){a.itemStyle="border-top: solid 1px "+a.horizontalGridLines+"; margin-top: -1px; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box";if(typeof a.cellStyle===d)a.cellStyle=typeof a.verticalGridLines!==d?"border-right: solid 1px "+a.verticalGridLines+"; height: "+a.itemHeight+
"px; padding-top: 2px; padding-left: 2px":"height: "+a.itemHeight+"px; padding-top: 2px"}if(typeof a.cellStyle===d&&typeof a.verticalGridLines!==d)a.cellStyle="border-right: solid 1px "+a.verticalGridLines+"; height: "+a.itemHeight+"px; padding-top: 3px; padding-left: 2px";if(!a.classic&&typeof a.cellStyle===d){a.cellStyle="padding-left: 2px;";if(typeof a.columnHeaderStyle===d)a.columnHeaderStyle="padding-left: 2px"}if(typeof a.selectedItemStyle===d&&a.selectedItemClass==null)if(a.classic)switch(a.theme){default:a.selectedItemStyle=
typeof a.horizontalGridLines!==d||typeof a.verticalGridLines===d?"background-color: #f4f4f4; border-top: solid 1px "+(typeof a.horizontalGridLines!==d?a.horizontalGridLines:"White")+"; margin-top: -1px; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box":"background-color: #f4f4f4";break;case "Aero":a.selectedItemStyle=typeof a.horizontalGridLines!==d||typeof a.verticalGridLines===d?"background-color: LightBlue; border-top: solid 1px "+(typeof a.horizontalGridLines!==
d?a.horizontalGridLines:"White")+"; margin-top: -1px; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box":"background-color: LightBlue"}else a.selectedItemStyle="background-color: #8dd2ff60;";if(typeof a.summaryItemStyle===d&&a.summaryItemClass==null)a.summaryItemStyle="font-weight: bold";if(typeof a.daysOfWeek===d)a.daysOfWeek=O;if(typeof a.months===d)a.months=U;if(typeof a.weekStartDay===d)a.weekStartDay=0;if(typeof a.currentTime===d)a.currentTime=new Date;else if(typeof a.currentTime===
"string")try{a.currentTime=new Date(a.currentTime)}catch(b){a.currentTime=new Date(parseInt(a.currentTime))}if(typeof a.displayedTime==="string")try{a.displayedTime=new Date(a.displayedTime)}catch(f){a.displayedTime=new Date(parseInt(a.displayedTime))}if(typeof a.timelineStart==="string")try{a.timelineStart=new Date(a.timelineStart)}catch(g){a.timelineStart=new Date(parseInt(a.timelineStart))}if(typeof a.timelineFinish==="string")try{a.timelineFinish=new Date(a.timelineFinish)}catch(q){a.timelineFinish=
new Date(parseInt(a.timelineFinish))}if(!a.classic&&typeof a.scales===d)a.scales=[{scaleType:"NonworkingTime",isHeaderVisible:false,isHighlightingVisible:true,highlightingStyle:"stroke-width: 0; fill: "+(a.nonworkingBackground?a.nonworkingBackground:"#f8f8f8")+"; fill-opacity: 0.65"},{scaleType:"Weeks",headerTextFormat:"Date",headerStyle:"padding: 7px 5px; border-right: 1px solid "+(a.headerBorder?a.headerBorder:"#e8e8e8")+"; border-bottom: 1px solid "+(a.headerBorder?a.headerBorder:"#e8e8e8")+(a.headerForeground?
"; color: "+a.headerForeground:""),isSeparatorVisible:true,separatorStyle:"stroke: "+(a.scaleSeparatorBorder?a.scaleSeparatorBorder:"#c8bfe7")+"; stroke-width: 0.5px"},{scaleType:"Days",headerTextFormat:"DayOfWeekAbbreviation",headerStyle:"padding: 7px 5px; border-right: 1px solid "+(a.headerBorder?a.headerBorder:"#e8e8e8")+(a.headerForeground?"; color: "+a.headerForeground:"")},{scaleType:"CurrentTime",isHeaderVisible:false,isSeparatorVisible:true,separatorStyle:"stroke: "+(a.currentTimeStroke?a.currentTimeStroke:
"#e31d3b")+"; stroke-width: 0.5px"}];if(!a.classic){if(typeof a.alternativeItemStyle===d)a.alternativeItemStyle="background-color: #8080800c;";if(typeof a.alternativeChartItemStyle===d)a.alternativeChartItemStyle="fill: #8080800c;"}if(!a.classic&&typeof a.arrowSize===d)a.arrowSize=1.5;if(typeof a.isRelativeToTimezone===d||a.isRelativeToTimezone){a.currentTime=new Date(a.currentTime.valueOf()-a.currentTime.getTimezoneOffset()*60000);if(typeof a.displayedTime!==d)a.displayedTime=new Date(a.displayedTime.valueOf()-
a.displayedTime.getTimezoneOffset()*60000);if(typeof a.timelineStart!==d)a.timelineStart=new Date(a.timelineStart.valueOf()-a.timelineStart.getTimezoneOffset()*60000);if(typeof a.timelineFinish!==d)a.timelineFinish=new Date(a.timelineFinish.valueOf()-a.timelineFinish.getTimezoneOffset()*60000);if(typeof a.scales!==d)for(c=0;c<a.scales.length;c++){var o=a.scales[c];if(typeof o.intervals!==d)for(var k=0;k<o.intervals.length;k++){var n=o.intervals[k];if(typeof n.start!==d)n.start=new Date(n.start.valueOf()-
n.start.getTimezoneOffset()*60000);if(typeof n.finish!==d)n.finish=new Date(n.finish.valueOf()-n.finish.getTimezoneOffset()*60000)}}a.isRelativeToTimezone=false}if(typeof a.schedule!==d&&a.schedule!=null){if(a.schedule!=a.previousSchedule||a.schedule.workingWeekStart!=a.previousSchedule.workingWeekStart)a.workingWeekStart=a.schedule.workingWeekStart;if(a.schedule!=a.previousSchedule||a.schedule.workingWeekFinish!=a.previousSchedule.workingWeekFinish)a.workingWeekFinish=a.schedule.workingWeekFinish;
if(a.schedule!=a.previousSchedule||a.schedule.workingDayStart!=a.previousSchedule.workingDayStart)a.visibleDayStart=a.schedule.workingDayStart;if(a.schedule!=a.previousSchedule||a.schedule.workingDayFinish!=a.previousSchedule.workingDayFinish)a.visibleDayFinish=a.schedule.workingDayFinish;if(a.schedule!=a.previousSchedule||a.schedule.specialNonworkingDays!=a.previousSchedule.specialNonworkingDays)a.specialNonworkingDays=a.schedule.specialNonworkingDays}if(typeof a.extendTimelineToEntireWeeks===d)a.extendTimelineToEntireWeeks=
true;a.intendedTimelineStart=a.timelineStart;a.intendedTimelineFinish=a.timelineFinish;a.timelineStart=typeof a.timelineStart===d?new Date(Da(a.currentTime,a.weekStartDay).valueOf()-604800000):Da(a.timelineStart,a.weekStartDay);a.timelineFinish=typeof a.timelineFinish===d?new Date(Da(a.currentTime,a.weekStartDay).valueOf()+32054400000):rb(a.timelineFinish,a.weekStartDay);if(typeof a.intendedTimelineStart===d)a.intendedTimelineStart=a.timelineStart;if(typeof a.intendedTimelineFinish===d)a.intendedTimelineFinish=
a.timelineFinish;if(!a.isExport&&typeof a.specialNonworkingDays!==d&&typeof a.specialNonworkingDays!=="function")for(c=0;c<a.specialNonworkingDays.length;c++)a.specialNonworkingDays[c]=Y(new Date(a.specialNonworkingDays[c].valueOf()-(a.specialNonworkingDays[c].getTimezoneOffset()<0?a.specialNonworkingDays[c].getTimezoneOffset():0)*60000));if(!a.isExport&&typeof a.resourceSchedules!==d)for(o=0;o<a.resourceSchedules.length;o++){k=a.resourceSchedules[o].value;if(typeof k.specialNonworkingDays!==d)for(c=
0;c<k.specialNonworkingDays.length;c++)k.specialNonworkingDays[c]=Y(new Date(k.specialNonworkingDays[c].valueOf()-(k.specialNonworkingDays[c].getTimezoneOffset()<0?k.specialNonworkingDays[c].getTimezoneOffset():0)*60000))}if(typeof a.scales===d)a.scales=Ob(a);if(typeof a.updateScale===d)a.updateScale=900000;if(typeof a.hourWidth===d)a.hourWidth=a.classic?2.5:5;if(typeof a.displayedTime===d){a.displayedTime=a.currentTime;setTimeout(function(){var c=e.chartContentContainer.scrollLeft-a.hourWidth*12;
if(e.chartContentContainer.scrollLeft-c<e.chartContentContainer.clientWidth/3)e.chartContentContainer.scrollLeft=Math.max(0,c)},0)}a.previousSchedule=a.schedule;if(typeof a.visibleDayStart===d)a.visibleDayStart=28800000;if(typeof a.visibleDayFinish===d)a.visibleDayFinish=57600000;if(a.visibleDayStart>=a.visibleDayFinish){a.visibleWeekStart=0;a.visibleWeekFinish=86400000}if(typeof a.visibleWeekStart===d)a.visibleWeekStart=0;if(typeof a.visibleWeekFinish===d)a.visibleWeekFinish=6;if(a.visibleWeekStart>
a.visibleWeekFinish)if(a.visibleWeekStart==a.visibleWeekFinish+1){a.visibleWeekStart=0;a.visibleWeekFinish=6}else a.visibleWeekFinish=a.visibleWeekStart;if(typeof a.workingWeekStart===d)a.workingWeekStart=1;if(typeof a.workingWeekFinish===d)a.workingWeekFinish=5;if(a.workingWeekStart>a.workingWeekFinish)if(a.workingWeekStart==a.workingWeekFinish+1){a.workingWeekStart=0;a.workingWeekFinish=6}else a.workingWeekFinish=a.workingWeekStart;a.workingDayStart=a.visibleDayStart;a.workingDayFinish=a.visibleDayFinish;
if(!a.classic&&typeof a.barMargin===d)a.barMargin=4;if(typeof a.barHeight===d)a.barHeight=typeof a.barMargin===d?a.itemHeight/2:a.itemHeight-2*a.barMargin;if(typeof a.barMargin===d)a.barMargin=(a.itemHeight-a.barHeight)/2;if(typeof a.barCornerRadius===d)if(a.classic)switch(a.theme){default:a.barCornerRadius=0;break;case "Aero":a.barCornerRadius=3}else a.barCornerRadius=2;if(!a.classic&&typeof a.completedBarMargin===d)a.completedBarMargin=1;if(typeof a.completedBarMargin===d)a.completedBarMargin=a.barHeight/
2.5;if(typeof a.completedBarHeight===d)a.completedBarHeight=a.barHeight-a.completedBarMargin*2;if(typeof a.completedBarCornerRadius===d)a.completedBarCornerRadius=0;a.completedBarCornerRadius=Math.min(a.completedBarCornerRadius,Math.max(0,a.barCornerRadius-1));if(typeof a.styleDefinitionTemplate===d)a.styleDefinitionTemplate=Pb(e,a);if(typeof a.standardBarStyle===d&&a.standardBarClass==null)if(a.classic)switch(a.theme){default:a.standardBarStyle="fill: #8abbed; fill-opacity: 0.8; stroke: #8abbed; stroke-width: 0.65px";
break;case "ModernBordered":a.standardBarStyle="fill: #8abbed; fill-opacity: 0.8; stroke: Blue; stroke-width: 0.65px";break;case "Aero":a.standardBarStyle="fill: url(#BlueGradient); fill-opacity: 0.8; stroke: Blue"}else a.standardBarStyle="fill: #8dd2ff; fill-opacity: 0.8; stroke: #3b87d9; stroke-width: 0.65px;";if(typeof a.standardCompletedBarStyle===d&&a.standardCompletedBarClass==null)if(a.classic)switch(a.theme){default:a.standardCompletedBarStyle="fill: #3b87d9; stroke: #3b87d9; stroke-width: 0.65px";
break;case "Aero":a.standardCompletedBarStyle="fill: #808080; stroke: #202020; stroke-width: 0.65px"}else a.standardCompletedBarStyle="fill: #1ca3ec; stroke: #1ca3ec; stroke-width: 0.5px;";if(typeof a.summaryBarStyle===d&&a.summaryBarClass==null)switch(a.theme){default:a.summaryBarStyle="fill: #607080; stroke: #607080; stroke-width: 0.65px";break;case "ModernBordered":a.summaryBarStyle="fill: #607080; stroke: #202020; stroke-width: 0.65px";break;case "Aero":a.summaryBarStyle="fill: url(#BlackGradient); stroke: Black"}if(typeof a.summaryCompletedBarStyle===
d&&a.summaryCompletedBarClass==null)switch(a.theme){default:a.summaryCompletedBarStyle="fill: #404040; stroke: #404040; stroke-width: 0.65px";break;case "Aero":a.summaryCompletedBarStyle="fill: #a0a0a0; stroke: #303030; stroke-width: 0.65px"}if(typeof a.collapsedSummaryLineStyle===d&&a.collapsedSummaryLineClass==null)a.collapsedSummaryLineStyle="stroke: #3b87d9; stroke-width: 0.65px; stroke-dasharray: 2 2";if(typeof a.milestoneBarStyle===d&&a.milestoneBarClass==null)if(a.classic)switch(a.theme){default:a.milestoneBarStyle=
"fill: #607080; stroke: #607080; stroke-width: 0.65px";break;case "ModernBordered":a.milestoneBarStyle="fill: #607080; stroke: #202020; stroke-width: 0.65px";break;case "Aero":a.milestoneBarStyle="fill: url(#BlackGradient); stroke: Black"}else a.milestoneBarStyle="fill: #f8c758; stroke: #3b87d9; stroke-width: 0.65px;";if(typeof a.completedBarThumbStyle===d&&a.completedBarThumbClass==null)a.completedBarThumbStyle="fill: White; stroke: #a0a0a0; stroke-width: 1px; transform: translateY(3px);";if(typeof a.baselineBarStyle===
d&&a.baselineBarClass==null)switch(a.theme){default:a.baselineBarStyle="fill: none; stroke: #3b87d9; stroke-width: 0.65px; stroke-dasharray: 2, 2";break;case "Aero":a.baselineBarStyle="fill: none; stroke: Blue; stroke-dasharray: 2, 2"}if(typeof a.dependencyPointerStyle===d&&a.dependencyPointerClass==null)if(a.classic)switch(a.theme){default:a.dependencyPointerStyle="fill: #3b87d9; stroke: #3b87d9; stroke-width: 0.65px";break;case "Aero":a.dependencyPointerStyle="fill: Blue; stroke: Blue"}else a.dependencyPointerStyle=
"fill: White; stroke: #a0a0a0; stroke-width: 1px;";if(typeof a.dependencyLineStyle===d&&a.dependencyLineClass==null)if(a.classic)switch(a.theme){default:a.dependencyLineStyle="stroke: #3b87d9; stroke-width: 0.65px; fill: none; marker-end: url(#ArrowMarker)";break;case "Aero":a.dependencyLineStyle="stroke: Blue; stroke-width: 0.65px; fill: none; marker-end: url(#ArrowMarker)"}else a.dependencyLineStyle="stroke: #3b87d9; stroke-width: 0.65px; fill: none; marker-end: url(#ArrowMarker);";if(typeof a.dependencyLineZoneStyle===
d&&a.dependencyLineZoneClass==null)a.dependencyLineZoneStyle="stroke: White; stroke-opacity: 0; stroke-width: 4px; fill: none";if(typeof a.temporaryDependencyLineStyle===d&&a.temporaryDependencyLineClass==null)switch(a.theme){default:a.temporaryDependencyLineStyle="stroke: #3b87d9; stroke-width: 0.65px; stroke-dasharray: 2, 2; fill: none; marker-end: url(#ArrowMarker)";break;case "Aero":a.temporaryDependencyLineStyle="stroke: Blue; stroke-width: 0.65px; stroke-dasharray: 2, 2; fill: none; marker-end: url(#ArrowMarker)"}if(typeof a.assignmentsStyle===
d&&a.assignmentsClass==null)a.assignmentsStyle="stroke-width: 0.25px; font-size: "+(a.classic?"x-small":"12px");if(!a.classic)a.assignmentsStyle=a.assignmentsStyle+"; transform: translateX(10px) translateY(-1px);";if(typeof a.standardTaskTemplate===d)a.standardTaskTemplate=Qb();if(typeof a.summaryTaskTemplate===d)a.summaryTaskTemplate=Rb();if(typeof a.milestoneTaskTemplate===d)a.milestoneTaskTemplate=Sb();if(typeof a.horizontalChartLines!==d){var l=a.internalPreTaskTemplate;a.internalPreTaskTemplate=
function(c){if(typeof c.scheduleChartItem!==d)return typeof l!==d?l(c):null;var b=c.ganttChartView.ownerDocument,e=b.createElementNS("http://www.w3.org/2000/svg","g");typeof l!==d&&e.appendChild(l(c));var f=b.createElementNS("http://www.w3.org/2000/svg","line");f.setAttribute("x1",0);f.setAttribute("y1",-0.5);f.setAttribute("x2",F(a.timelineFinish,a));f.setAttribute("y2",-0.5);f.setAttribute("style","stroke: "+a.horizontalChartLines+"; stroke-width: 0.5px");e.appendChild(f);if(c.index==c.ganttChartView.items.length-
1){f=b.createElementNS("http://www.w3.org/2000/svg","line");f.setAttribute("x1",0);f.setAttribute("y1",a.itemHeight);f.setAttribute("x2",F(a.timelineFinish,a));f.setAttribute("y2",a.itemHeight);f.setAttribute("style","stroke: "+a.horizontalChartLines+"; stroke-width: 0.5px");e.appendChild(f)}return e}}if(typeof a.isTaskToolTipVisible===d)switch(a.target){default:a.isTaskToolTipVisible=true;break;case "Phone":a.isTaskToolTipVisible=false}if(typeof a.itemTemplate===d)a.itemTemplate=Tb(a);if(typeof a.areTaskAssignmentsVisible===
d)a.areTaskAssignmentsVisible=true;if(typeof a.assignmentsTemplate===d)a.assignmentsTemplate=Ub();if(typeof a.isTaskCompletedEffortVisible===d)a.isTaskCompletedEffortVisible=true;if(typeof a.areTaskDependenciesVisible===d)a.areTaskDependenciesVisible=true;if(typeof a.dependencyLineTemplate===d)a.dependencyLineTemplate=Vb();if(typeof a.isDependencyToolTipVisible===d)a.isDependencyToolTipVisible=a.isTaskToolTipVisible;if(typeof a.predecessorItemTemplate===d)a.predecessorItemTemplate=Wb(a);if(typeof a.isDraggingTaskStartEndsEnabled===
d)a.isDraggingTaskStartEndsEnabled=true;if(typeof a.areTaskDependencyConstraintsEnabledWhileDragging===d)a.areTaskDependencyConstraintsEnabledWhileDragging=false;if(typeof a.isTaskStartReadOnly===d)a.isTaskStartReadOnly=false;if(typeof a.isTaskEffortReadOnly===d)a.isTaskEffortReadOnly=false;if(typeof a.isTaskCompletionReadOnly===d)a.isTaskCompletionReadOnly=false;if(typeof a.areTaskPredecessorsReadOnly===d)a.areTaskPredecessorsReadOnly=false;if(typeof a.isBaselineVisible===d)a.isBaselineVisible=true;
if(typeof a.areStandardTaskLabelsVisible===void 0)a.areStandardTaskLabelsVisible=false;if(typeof a.areSummaryTaskLabelsVisible===void 0)a.areSummaryTaskLabelsVisible=false;if(typeof a.areMilestoneTaskLabelsVisible===void 0)a.areMilestoneTaskLabelsVisible=false;if(typeof a.isSummaryTaskCompletedEffortVisible===d)a.isSummaryTaskCompletedEffortVisible=false;var J=null;if(a.isIndividualItemNonworkingTimeHighlighted||a.areTaskInterruptionsHighlighted)for(c=0;c<a.scales.length;c++)if(a.scales[c].scaleType==
"NonworkingTime"){J=a.scales[c];break}if(J!=null&&a.isIndividualItemNonworkingTimeHighlighted){var z=a.internalPreTaskTemplate;a.internalPreTaskTemplate=function(c){if(typeof c.scheduleChartItem!==d&&(c.content||!c.schedule))return typeof z!==d?z(c):null;var b;b=D(c);if(typeof b===d)b=null;else{var e=[],f,g;f=Oa(a.timelineStart,typeof b.workingWeekFinish!==d?b.workingWeekFinish:a.workingWeekFinish);for(g=sb(f,typeof b.workingWeekStart!==d?b.workingWeekStart:a.workingWeekStart);f<a.timelineFinish;f=
ta(f),g=ta(g)){e.push({start:f,finish:g});var o=ta(f),k;for(dd=g;dd<o;dd=k){b.workingDayStart>a.visibleDayStart&&e.push({start:dd,finish:new Date(dd.valueOf()+b.workingDayStart)});k=V(dd);b.workingDayFinish<a.visibleDayFinish&&e.push({start:new Date(dd.valueOf()+b.workingDayFinish),finish:k})}}if(typeof b.specialNonworkingDays!==d)if(typeof b.specialNonworkingDays==="function"){f=Oa(a.timelineStart,a.workingWeekFinish);for(g=V(f);f<a.timelineFinish;f=V(f),g=V(g))b.specialNonworkingDays(f)&&e.push({start:f,
finish:g})}else for(o=0;o<b.specialNonworkingDays.length;o++){f=b.specialNonworkingDays[o];g=V(f);e.push({start:f,finish:g})}b=e}if(b==null||b.length==0)return typeof z!==d?z(c):null;e=c.ganttChartView.ownerDocument;f=e.createElementNS("http://www.w3.org/2000/svg","g");for(g=0;g<b.length;g++){o=b[g];k=o.finish;o=F(o.start,a);k=F(k,a)-o;if(!(k<=0)){var n=e.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("x",o-1);n.setAttribute("y",0);n.setAttribute("width",k);n.setAttribute("height",
a.itemHeight);n.setAttribute("class",J.highlightingClass);n.setAttribute("style",J.highlightingStyle);f.appendChild(n)}}typeof z!==d&&f.appendChild(z(c));return f}}if(J!=null&&a.areTaskInterruptionsHighlighted){var j=a.internalExtraTaskTemplate;a.internalExtraTaskTemplate=function(c){if(typeof c.scheduleChartItem!==d)return typeof j!==d?j(c):null;var b;if(c.hasChildren&&(typeof c.isSummaryEnabled===d||c.isSummaryEnabled)||c.isMilestone)b=null;else{var e=D(c);b=[];var f,g;f=Oa(Y(c.start),typeof e!==
d&&typeof e.workingWeekFinish!==d?e.workingWeekFinish:a.workingWeekFinish);for(g=sb(f,typeof e!==d&&typeof e.workingWeekStart!==d?e.workingWeekStart:a.workingWeekStart);f<c.finish;f=ta(f),g=ta(g))b.push({start:f>=c.start?f:c.start,finish:g<=c.finish?g:c.finish});var o=typeof e!==d&&typeof e.specialNonworkingDays!==d?e.specialNonworkingDays:a.specialNonworkingDays;if(typeof o!==d)if(typeof o==="function"){f=Oa(Y(c.start),typeof e!==d&&typeof e.workingWeekFinish!==d?e.workingWeekFinish:a.workingWeekFinish);
for(g=V(f);f<Y(c.finish);f=V(f),g=V(g))e.specialNonworkingDays(f)&&b.push({start:f,finish:g})}else for(e=0;e<o.length;e++){f=o[e];g=V(f);f>=c.start&&g<=c.finish&&b.push({start:f,finish:g})}}if(b==null||b.length==0)return typeof j!==d?j(c):null;f=c.ganttChartView.ownerDocument;g=f.createElementNS("http://www.w3.org/2000/svg","g");for(o=0;o<b.length;o++){var e=b[o],k=e.finish,e=F(e.start,a),k=F(k,a)-e;if(!(k<=0)){var n=f.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("x",e-1);n.setAttribute("y",
a.barMargin);n.setAttribute("width",k);n.setAttribute("height",a.barHeight);n.setAttribute("class",J.highlightingClass);n.setAttribute("style",J.highlightingStyle);g.appendChild(n)}}typeof j!==d&&g.appendChild(j(c));return g}}if(typeof a.enableHorizontalScrollingDuringDragging===d)a.enableHorizontalScrollingDuringDragging=true;if(typeof a.horizontalScrollingDragAreaWidth===d)a.horizontalScrollingDragAreaWidth=24;if(typeof a.horizontalScrollingDragAmount===d)a.horizontalScrollingDragAmount=20;if(typeof a.enableVerticalScrollingDuringDragging===
d)a.enableVerticalScrollingDuringDragging=true;if(typeof a.verticalScrollingDragAreaHeight===d)a.verticalScrollingDragAreaHeight=24;if(typeof a.verticalScrollingDragAmount===d)a.verticalScrollingDragAmount=20},M=function(a,c){for(var e=0;e<a.length;e++){var b=a[e];if(typeof b==="string"){b={content:b};a[e]=b}if(typeof b.indentation==="string")b.indentation=parseInt(b.indentation);if(typeof b.isExpanded==="string")b.isExpanded=b.isExpanded.toLowerCase()=="true";if(typeof b.start==="string"){try{b.start=
new Date(b.start)}catch(f){b.start=new Date(parseInt(b.start))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.start=new Date(b.start.valueOf()+b.start.getTimezoneOffset()*60000);b.preferredStart=b.start}if(typeof b.finish==="string"){try{b.finish=new Date(b.finish)}catch(g){b.finish=new Date(parseInt(b.finish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.finish=new Date(b.finish.valueOf()+b.finish.getTimezoneOffset()*60000)}if(typeof b.completedFinish==="string"){try{b.completedFinish=
new Date(b.completedFinish)}catch(q){b.completedFinish=new Date(parseInt(b.completedFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.completedFinish=new Date(b.completedFinish.valueOf()+b.completedFinish.getTimezoneOffset()*60000)}if(typeof b.isMilestone==="string")b.isMilestone=b.isMilestone.toLowerCase()=="true";if(typeof b.baselineStart==="string"){try{b.baselineStart=new Date(b.baselineStart)}catch(o){b.baselineStart=new Date(parseInt(b.baselineStart))}if(typeof c.isRelativeToTimezone===
d||c.isRelativeToTimezone)b.baselineStart=new Date(b.baselineStart.valueOf()+b.baselineStart.getTimezoneOffset()*60000)}if(typeof b.baselineFinish==="string"){try{b.baselineFinish=new Date(b.baselineFinish)}catch(k){b.baselineFinish=new Date(parseInt(b.baselineFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.baselineFinish=new Date(b.baselineFinish.valueOf()+b.baselineFinish.getTimezoneOffset()*60000)}if(typeof b.minStart==="string"){try{b.minStart=new Date(b.minStart)}catch(n){b.minStart=
new Date(parseInt(b.minStart))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.minStart=new Date(b.minStart.valueOf()+b.minStart.getTimezoneOffset()*60000)}if(typeof b.maxStart==="string"){try{b.maxStart=new Date(b.maxStart)}catch(l){b.maxStart=new Date(parseInt(b.maxStart))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.maxStart=new Date(b.maxStart.valueOf()+b.maxStart.getTimezoneOffset()*60000)}if(typeof b.minFinish==="string"){try{b.minFinish=new Date(b.minFinish)}catch(J){b.minFinish=
new Date(parseInt(b.minFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.minFinish=new Date(b.minFinish.valueOf()+b.minFinish.getTimezoneOffset()*60000)}if(typeof b.maxFinish==="string"){try{b.maxFinish=new Date(b.maxFinish)}catch(z){b.maxFinish=new Date(parseInt(b.maxFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.maxFinish=new Date(b.maxFinish.valueOf()+b.maxFinish.getTimezoneOffset()*60000)}if(typeof b.predecessors!==d){if(typeof b.predecessors==="string")b.predecessors=
b.predecessors.split(",");for(var j=0;j<b.predecessors.length;j++){var h=b.predecessors[j];if(typeof h==="string"){h={item:h};b.predecessors[j]=h}if(typeof h.item==="string"){var u=parseInt(h.item)-1;h.item=u>=0&&u<a.length?a[u]:null}if(typeof h.lag==="string")h.lag=parseFloat(h.lag)}}if(typeof b.schedule!==d&&typeof b.schedule.specialNonworkingDays!==d&&typeof c.specialNonworkingDays!=="function")for(j=0;j<b.schedule.specialNonworkingDays.length;j++)b.schedule.specialNonworkingDays[j]=Y(new Date(b.schedule.specialNonworkingDays[j].valueOf()-
b.schedule.specialNonworkingDays[j].getTimezoneOffset()*60000));typeof b.wasGridItemContentLoaded!==d&&delete b.wasGridItemContentLoaded}},N=function(a,c,e){var b;if(a.isContentHeightInitialized&&a.isContentHeightAuto)b=c.length>0?"auto":e.itemHeight+"px";else{var f=a.clientHeight-e.headerHeight-2;f<0&&(f=0);b=f+"px";if(f<e.itemHeight){if(!a.isContentHeigh