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 h=a[e];if(b.call(c,h,e,a))return{i:e,v:h}}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 h=0;h<e.length-1;h++){var f=e[h];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");
function showModalDialog(a,b,c,d,e,h){c=c||{};var f=c.closeIcon||"../image/close.gif";f=absolutePath(f);a=absolutePath(a);var l=frame_check(window),k=l.document.body,g=function(){};k.popParent=window;(function(){var m=$("<div>").addClass("popcover").appendTo(k);var q=function(){$("input").first().focus().blur();null!=getPopParent()&&(d?d.focus():getPopParent().focus());0==arguments.length&&g();null!=p&&($(p.contentWindow).empty(),p.attr("src","about:blank"),p.empty(),p.remove(),p=null);n.remove();
m.remove();k.popParent=null};var n=$("<div>").addClass("popdialog").css({width:c.width||"85%",height:c.height||"85%",left:c.left||"5%",top:c.top||"5%",display:"none"}).appendTo(k);var t=$("<div>").addClass("popresize").css({position:"absolute",bottom:"0px",right:"0px",padding:"0",margin:"0",cursor:"nw-resize"}).appendTo(n);$("<div>").addClass("pophead").css({position:"absolute",top:"0px",right:"0px"}).bind("click",function(){q()}).mousedown(function(){return!1}).appendTo(n);var p=$("<iframe>").appendTo(n).attr("src",
a).bind("load",function(){n.css({display:"block"})});$("<div>").addClass("closeButton").css({width:"100%",left:"0px",top:"0px"}).appendTo(m).bind("click",function(){q()}).append('<img src="'+f+'" style="left:'+n.css("left")+';"/>');showModalDialog.dialogArguments=b;showModalDialog.returnValue=function(r){q(r);ogPchangeData(r,d,e,h)};showModalDialog.cancel=function(){q()};showModalDialog.setCallback=function(r){g=r};showModalDialog.getPopParent=function(){return k.popParent};$(k.popParent).unload(function(){q(1)});
hybsDraggable(n,l);hybsResizable(t,k)})()}function getPopParent(){return parent.document.body.popParent?parent.document.body.popParent:parent.parent.document.body.popParent?parent.parent.document.body.popParent:parent.parent.parent.document.body.popParent?parent.parent.parent.document.body.popParent:null}function getPopArgs(){if("undefined"!=typeof window.dialogArguments)return window.dialogArguments;var a=getPopParent();if(null!=a)return a.showModalDialog.dialogArguments}
function setPopCallback(a){var b=getPopParent();null!=b&&b.showModalDialog.setCallback(a)}function popClose(){var a=getPopParent();null!=a&&a.showModalDialog.cancel()}function frame_check(a){if(a.parent.document.URL==a.document.URL)return a;try{$(a.parent.document.body);var b=frame_check(a.parent);return 0<b.document.body.getElementsByTagName("frame").length?a:0<$(b.document.body).find(".popcover").length?a:b}catch(c){return a}}
function absolutePath(a){var b=document.createElement("span");b.innerHTML='<a href="'+a+'" />';return b.firstChild.href}
function ogPchangeData(a,b,c,d){null!=a&&"object"!==typeof a&&(a=Array(a));var e=function(g){g.focus();if(void 0!=document.selection){var m=document.selection.createRange();m.moveStart("character",-g.value.length);return m.text.length}return g.selectionStart},h=[];if(null!=a&&null!=c)for(j=0;j<c.length&&j<a.length;j++)if(""!=c[j]&&(tmp=$(b).closest("form").get(0).elements[c[j]],null!=tmp))if(0==c[j].indexOf("h_")&&tmp.length)for(var f=0;f<tmp.length;f++){var l=tmp[f].value;if("true"==d){var k=e(tmp[f]);
tmp[f].value=tmp[f].value.substring(0,k)+a[j]+tmp[f].value.substring(k,tmp[f].value.length)}else tmp[f].value=a[j];l!=a[j]&&(h[h.length]=tmp[f])}else l=tmp.value,"true"==d?(k=e(tmp),tmp.value=tmp.value.substring(0,k)+a[j]+tmp.value.substring(k,tmp.value.length)):tmp.value=a[j],l!=a[j]&&(h[h.length]=tmp);for(i=0;i<h.length;i++)$(h[i]).change();null!=a&&"_RENEW"==a[0]&&(0<a[1].indexOf("?")?location.href=a[1]+"&command=RENEW":location.href=a[1]+"?command=RENEW")}
function hybsDraggable(a,b){var c=!1,d,e,h,f,l=b.document.body,k;$(a).mousedown(function(g){d=g.offsetX||g.layerX;e=g.offsetY||g.layerY;if(c)c=!1;else return c=!0,$(this).offset(),k=$("<div>").addClass("resizecover").css({width:"99%",height:"99%",left:"0px",top:"20px",position:"absolute",background:"transparent"}).appendTo(this).click(function(){$(this).remove()}),!1});$(l).mouseup(function(g){c&&(c=!1,g=$(a).offset(),0>g.left&&$(a).css("left","0px"),0>g.top&&$(a).css("top","0px"),k.remove())});$(l).mousemove(function(g){if(c)return h=
b.pageXOffset||b.document.documentElement.scrollLeft,f=b.pageYOffset||b.document.documentElement.scrollTop,$(a).css("left",g.clientX-d+h+"px"),$(a).css("top",g.clientY-e+f+"px"),!1})}
function hybsResizable(a,b){var c=!1,d,e,h,f,l,k;$(a).mousedown(function(g){h=g.clientX;f=g.clientY;d=this.parentNode;l=$(d).height();k=$(d).width();if(!c)return c=!0,e=$("<div>").addClass("resizecover").css({width:"99%",height:"99%",left:"0px",top:"0px",position:"absolute",background:"transparent"}).appendTo(d).click(function(){$(this).remove()}),g.stopPropagation(),!1;g.stopPropagation()});$(b).mouseup(function(g){c&&(c=!1,50>$(d).width()&&$(d).width("50px"),50>$(d).height()&&$(d).height("50px"),
e.remove())});$(b).mousemove(function(g){if(c){var m=h-g.clientX;g=f-g.clientY;$(d).width(k-m+"px");$(d).height(l-g+"px");return!1}})}function rtnPopup(a){window.returnValue=a;var b=getPopParent();null!=b&&b.showModalDialog.returnValue(a)}
function ogPopup(a,b,c,d,e,h,f,l,k){b=b?parseInt(b,10)+"px":"85%";c=c?parseInt(c,10)+"px":"85%";a=a+"?command="+(f?f:"NEW");f={};f.height=b;f.width=c;if(null!=d)for(b=0;b<d.length;b+=2)a=a+"&"+d[b]+"="+encodeURIComponent(d[b+1]);d="";null!=h&&document.getElementById(h[0])&&(d=document.getElementById(h[0]).value);showModalDialog(a,d,f,e,h,l)};
