var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var g=a[e];if(b.call(c,g,e,a))return{i:e,v:g}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};
$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
$jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var g=0;g<e.length-1;g++){var f=e[g];if(!(f in d))return;d=d[f]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(b,c){return $jscomp.findInternal(this,b,c).v}},"es6","es3");var _sCompat_=document.compatMode,bIsCSS1Compat="CSS1Compat"==_sCompat_,cnTabDivSpan=2,cnWidthScroll=16,cnTabRBodyMargin=10,cnTabBBodyMargin=5,__bInResizing=!1;
function ganttResize(a,b){var c=document.getElementById("GantBody");a=document.getElementById("X1");var d=document.getElementById("X2");if(null!=c&&null!=a&&null!=d){var e=a.getElementsByTagName("TABLE"),g=d.getElementsByTagName("TABLE");if(0!=e.length&&0!=g.length){e=e[0];g=g[0];if(__bInResizing)return!1;__bInResizing=!0;var f=(b||1)&4?cnWidthScroll:0;b=getClientWidth();c=getClientHeight()-(c.offsetTop+cnTabBBodyMargin);f=e.offsetWidth+f+2;b-=f;20<c&&20<f&&20<b&&(f=e.offsetTop,e=e.offsetHeight,a.style.height=
e+2*cnTabDivSpan+f<c-cnWidthScroll?e+2*cnTabDivSpan+f+"px":c-cnWidthScroll+"px",d.style.width=b-cnTabRBodyMargin+"px",e=g.offsetHeight,d.style.height=e+2*cnTabDivSpan+f<c-cnWidthScroll?e+2*cnTabDivSpan+cnWidthScroll+f+"px":c+"px",d.clientWidth==d.scrollWidth&&(a.style.height=a.offsetHeight+cnWidthScroll+"px"));__bInResizing=!1;$(".breaktime").height($("#divHlr").height()-$("#divHlr th").height()-6)}}}
function heightReset(a){var b=document.getElementById("X1");a=document.getElementById("X2");if(null!=b&&null!=a){b=b.getElementsByTagName("TABLE");var c=a.getElementsByTagName("TABLE");if(0!=b.length&&0!=c.length){b=b[0];c=c[0];a=b.rows;b=c.rows;var d=c=0,e=a.length,g=document.defaultView?!0:!1,f;for(f=0;f<e;f++){if(g){var h=$(a[f]).height()+.5;var k=$(b[f]).height()+.5}else{if("auto"!=a[f].currentStyle.height)continue;h=a[f].offsetHeight;k=b[f].offsetHeight}c<h&&(c=h);c<k&&(c=k);d++;if(5<=d)break}if(0<
c)for(f=0;f<e;f++)if(g||"auto"==a[f].currentStyle.height)a[f].style.height=c+"px",b[f].style.height=c+"px"}}}function getClientHeight(){return bIsCSS1Compat?document.documentElement.clientHeight:document.body.clientHeight}function getClientWidth(){return bIsCSS1Compat?document.documentElement.clientWidth:document.body.clientWidth}
function breakAdjust(){var a=document.getElementById("X1"),b=document.getElementById("X2");if(null!=a&&null!=b){a=$(a).find("TABLE")[0];var c=$(b).find("TABLE")[0];if(null!=a&&null!=c){a=$(c).find("SPAN");var d=b.style.position;b=(d=d&&("absolute"==d||"relative"==d))?b:c;c=c.offsetHeight;for(var e,g,f=0;f<a.length;f++)if(e=a[f],"500000px"==e.currentStyle.height){g=0;for(var h=e;h!=b;)g+=h.offsetTop,h=d?h.offsetParent:h.parentNode;e.style.pixelHeight=c-g}}}}
var acnViewSpan=[48,24,12,8,4,3,2,1,.5,.33,3.43,25,33,0,0,0,0,0,0,0,48,24,24,12,12,6,8,4,6,3,48,24],acnNotchMag=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1],cnFDTick=86400,acnDSecSpan=[cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick,cnFDTick/4,cnFDTick/4,cnFDTick/4,cnFDTick/24,cnFDTick/4,cnFDTick/4,cnFDTick/4,cnFDTick/4,cnFDTick/4,cnFDTick/4,cnFDTick/
2,cnFDTick/2],cnViewUnknown=-1,nViewIndex=cnViewUnknown,cnBunkatu=3,cnMNone=0,cnMLeft=1,cnMMiddle=2,cnMRight=3,nLeftRightLimit=2,nMAction,cnGanttUnknown=-1,cnGanttBlock=0,cnGanttStone=1,cnGanttKaku=2,nGanttType,nOldMX,nOldMY,oBlockHilight=null,oGanttSlider=null,csIdGanttInfo="GanttSlider",ganttAttrs={beginInput:"beginInput",endInput:"endInput",moveable:"moveable",chboxid:"chboxid",ganttType:"ganttType",view:"view",beginDate:"beginDate",endDate:"endDate"};
function s2d(a,b){a+=(b||"")+"000000";return new Date(parseInt(a.substr(0,4),10),parseInt(a.substr(4,2),10)-1,parseInt(a.substr(6,2),10),parseInt(a.substr(8,2),10),parseInt(a.substr(10,2),10),parseInt(a.substr(12,2),10))}
function d2s(a,b){b=b||8;return(a.getFullYear().toString()+("00"+(a.getMonth()+1).toString()).slice(-2)+("00"+a.getDate().toString()).slice(-2)+("00"+a.getHours().toString()).slice(-2)+("00"+a.getMinutes().toString()).slice(-2)+("00"+a.getSeconds().toString()).slice(-2)).substr(0,b)}function getGanttType(a){return(a=a.getAttribute(ganttAttrs.ganttType,1))?parseInt(a,10):cnGanttBlock}function getGanttSlider(a){return document.getElementById(csIdGanttInfo)}
function hms2st(a){a+="000000";return 3600*parseInt(a.substr(0,2),10)+60*parseInt(a.substr(2,2),10)+parseInt(a.substr(4,2),10)}
function getGanttInfo(a){var b={},c=parseInt(a.getAttribute(ganttAttrs.view,1),10);b.nVIndex=c;if(acnDSecSpan[c]>=cnFDTick)b.nDateLen=8,b.nLowNick=0,b.nHighNick=cnFDTick,b.nDSTicks=cnFDTick;else{var d=a.daySpan||"0700-2000",e=d.indexOf("-");b.nDateLen=8+e;b.nLowNick=hms2st(d.substr(0,e));b.nHighNick=hms2st(d.substr(e+1));b.nLowNick>=b.nHighNick&&(b.nHighNick+=cnFDTick);b.nDSTicks=Math.ceil((b.nHighNick-b.nLowNick)/(acnDSecSpan[c]*acnNotchMag[c]))*acnDSecSpan[c]*acnNotchMag[c]}a=s2d(a.getAttribute(ganttAttrs.beginDate,
1));b.dBegin=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,b.nLowNick);return b}function ps2ss(a,b,c,d){a=Math.round(c/acnViewSpan[a])*acnDSecSpan[a]+(d||0);c=Math.floor(a/b);return c*cnFDTick+a-c*b}
function performDateChange(a,b,c,d){var e=oGanttSlider.oGanttInfo,g=e.dBegin,f=e.nDateLen;e=e.nDSTicks;b=getCurrentInfo(a,b,c,d);a=b.left;b=b.width;switch(nGanttType){case cnGanttBlock:var h=new Date(g.getTime());h.setSeconds(h.getSeconds()+ps2ss(c,e,a));setInputFields(d.getAttribute(ganttAttrs.beginInput,1),d2s(h,f));h=new Date(g.getTime());h.setSeconds(h.getSeconds()+ps2ss(c,e,a+b,-1));setInputFields(d.getAttribute(ganttAttrs.endInput,1),d2s(h,f));break;case cnGanttStone:h=new Date(g.getTime()),
h.setSeconds(h.getSeconds()+ps2ss(c,e,a+(b>>>2))),setInputFields(d.getAttribute(ganttAttrs.beginInput,1),d2s(h,f)),setInputFields(d.getAttribute(ganttAttrs.endInput,1),d2s(h,f))}(c=d.getAttribute(ganttAttrs.chboxid,1))&&""!=c&&setRowChecked(null,c)}function setInputFields(a,b){var c=document.getElementsByName(a);if(null!=c)for(a=0;a<c.length;a++){var d=c[a],e=d.tagName;if("INPUT"==e)d.value=b;else if("DIV"==e||"SPAN"==e)d.innerHTML=b}}
function getSerialIndex(a,b){var c=a.name.indexOf(b);0<=c&&(c=parseInt(a.name.substr(c+b.length),10));return c}function setRowSelected2(a){var b=getSerialIndex(a,"__");0<=b&&setRowSelected(a.form,b)}function setRowSelected(a,b){var c=document.getElementsByName("h_rowSel");if(null!=c)for(a=0;a<c.length;a++){var d=c[a];if("INPUT"==d.tagName&&"checkbox"==d.type&&b==d.value){d.checked||(d.checked=!0);break}}}
function setRowChecked(a,b,c){b=document.getElementsByName(b);if(null!=b)for(a=0;a<b.length;a++){var d=b[a];"INPUT"!=d.tagName||"checkbox"!=d.type&&"radio"!=d.type||(d.checked=void 0==c?!0:c)}}
function getCurrentInfo(a,b,c,d){a=parseInt(d.style.left,10);d=d.offsetWidth;var e=acnViewSpan[c]/2;var g=a;var f=d;switch(nGanttType){case cnGanttBlock:switch(b){case cnMLeft:b=d%acnViewSpan[c];b<e?(f=d-b,g=a+b):(f=d+(acnViewSpan[c]-b),g=a-(acnViewSpan[c]-b));break;case cnMRight:b=d%acnViewSpan[c];f=b>e?d+(acnViewSpan[c]-b):d-b;break;case cnMMiddle:b=a%acnViewSpan[c],g=b>e?a+(acnViewSpan[c]-b):a-b}break;case cnGanttStone:switch(b){case cnMMiddle:g=Math.floor((a+(d>>>2))/acnViewSpan[c])*acnViewSpan[c]+
(acnViewSpan[c]-d>>2)}}f=Math.max(f,2*cnBunkatu);return{left:g,width:f}}
function fnMouseDown(a){a=a?a:window.event?window.event:null;var b=a.target||a.srcElement;1==(a.button||a.which)&&b.getAttribute(ganttAttrs.beginInput,1)&&(oBlockHilight=b,cnGanttKaku!=getGanttType(b)&&(oGanttSlider=getGanttSlider(oBlockHilight),oGanttSlider.oGanttInfo||(oGanttSlider.oGanttInfo=getGanttInfo(oGanttSlider))));b=b.getAttribute(ganttAttrs.moveable,1);!b||"0"!=b&&"false"!=b.toLowerCase()||(oBlockHilight=null);if(null!=oBlockHilight){b=oBlockHilight;var c=b.offsetWidth;nMAction=cnMNone;
nGanttType=getGanttType(b);nLeftRightLimit=Math.min(Math.max(c/cnBunkatu,2),20);nOldMX=a.screenX;nOldMY=a.screenY;var d="undefined"==typeof a.offsetX?a.layerX:a.offsetX;switch(nGanttType){case cnGanttBlock:d<=nLeftRightLimit?(nMAction=cnMLeft,b.style.cursor="E-resize"):d>c-nLeftRightLimit?(nMAction=cnMRight,b.style.cursor="E-resize"):(nMAction=cnMMiddle,b.style.cursor="move");break;case cnGanttStone:nMAction=cnMMiddle,b.style.cursor="move"}b.setCapture&&b.setCapture();a.preventDefault&&a.preventDefault()}}
function fnMouseUp(a){if(null!=oBlockHilight){a=oBlockHilight;a.style.cursor="auto";a.releaseCapture&&a.releaseCapture();var b=getCurrentInfo(nGanttType,nMAction,oGanttSlider.oGanttInfo.nVIndex,a);a.style.width=b.width+"px";a.style.left=b.left+"px";nMAction=cnMNone;nGanttType=cnGanttUnknown;oGanttSlider=oBlockHilight=null}}
function fnTrackMouse(a){var b=a?a:window.event?window.event:null;if(null!=oBlockHilight){var c;a=b.screenX;b=b.screenY;var d=oBlockHilight,e=oGanttSlider.oGanttInfo.nVIndex,g=d.offsetWidth,f=parseInt(d.style.left,10);for(c=d;;){var h=c.parentNode.clientWidth;if(0!=h)break;c=c.parentNode}switch(nGanttType){case cnGanttBlock:switch(nMAction){case cnMLeft:var k=-(a-nOldMX);c=f+(a-nOldMX);0>c?(c=0,g=f+g):acnViewSpan[e]>g+k?(c=f+g-acnViewSpan[e],g=acnViewSpan[e]):g+=k;d.style.left=c+"px";d.style.width=
g+"px";break;case cnMRight:k=a-nOldMX;g=g+k<acnViewSpan[e]?acnViewSpan[e]:f+g+k>h?h-f:g+k;d.style.width=g+"px";break;case cnMMiddle:c=f+(a-nOldMX),0>c&&(c=0),c+g>=h&&(c=h-g),d.style.left=c+"px"}break;case cnGanttStone:switch(nMAction){case cnMMiddle:c=f+(a-nOldMX),0>c&&(c=0),c+g>=h&&(c=h-g),d.style.left=c+"px"}}nOldMX=a;nOldMY=b;performDateChange(nGanttType,nMAction,e,d)}};
