var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(e,k,h){if(null==e)throw new TypeError("The 'this' value for String.prototype."+h+" must not be null or undefined");if(k instanceof RegExp)throw new TypeError("First argument to String.prototype."+h+" must not be a regular expression");return e+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,k,h){e!=Array.prototype&&e!=Object.prototype&&(e[k]=h.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(e,k,h,m){if(k){h=$jscomp.global;e=e.split(".");for(m=0;m<e.length-1;m++){var l=e[m];l in h||(h[l]={});h=h[l]}e=e[e.length-1];m=h[e];k=k(m);k!=m&&null!=k&&$jscomp.defineProperty(h,e,{configurable:!0,writable:!0,value:k})}};
$jscomp.polyfill("String.prototype.startsWith",function(e){return e?e:function(e,h){var k=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var l=k.length,q=e.length;h=Math.max(0,Math.min(h|0,k.length));for(var r=0;r<q&&h<l;)if(k[h++]!=e[r++])return!1;return r>=q}},"es6","es3");
$jscomp.polyfill("String.prototype.endsWith",function(e){return e?e:function(e,h){var k=$jscomp.checkStringArgs(this,e,"endsWith");e+="";void 0===h&&(h=k.length);h=Math.max(0,Math.min(h|0,k.length));for(var l=e.length;0<l&&0<h;)if(k[--h]!=e[--l])return!1;return 0>=l}},"es6","es3");
(function(){function e(a){zAu.processing()||(t=[],zk.clientinfo||zk.endProcessing(a),zAu.doneTime=jq.now())}function k(a,b){for(var c=0,d=b?b.length:0;c<d;++c){var f=b[c],g=f[0];f=f[1];g?a.push({cmd:g,data:f||[]}):zAu.showError("ILLEGAL_RESPONSE","command required")}n.push(a)}function h(a,b){for(var c=b.length,d,f;c--;)if(d=b[c]&&b[c].$u){if(!(f=p.$(d)))return zk.afterMount(function(){do if(d=b[c]&&b[c].$u)b[c]=p.$(d);while(c--);m(a,b)},-1),!0;b[c]=f}}function m(a,b){if(!h(a,b)){zAu.processPhase||
(zAu.processPhase=a);var c=zAu.cmd1[a];if(c){if(!b.length)return zAu.showError("ILLEGAL_RESPONSE","uuid required",a);b[0]=p.$(b[0]);if(!b[0]&&"invoke"!=a&&"addChd"!=a)return;"setAttr"==a&&(zAu.doAfterProcessWgts||(zAu.doAfterProcessWgts=[]),zAu.doAfterProcessWgts.push(b[0]))}else if(c=zAu.cmd0[a],!c)return zAu.showError("ILLEGAL_RESPONSE","Unknown",a);c.apply(zAu,b);zAu.processPhase=null}}function l(){var a=zAu.pendingReqInf;a&&(zAu.pendingReqInf=null,zAu.seqId==a.sid&&E(a))}function q(a){var b=a.message||
a,c="";a.name&&(c=" "+a.name);return b+(c?" ("+c.substring(1)+")":c)}function r(a,b,c){if(!a){for(a=b.target.parent;!a.desktop;)a=a.parent;a=a.desktop}zAu.addAuRequest(a,b);v(a,c)}function v(a,b){b||(b=0);a&&0<=b&&setTimeout(function(){zAu.sendNow(a)},b)}function E(a){var b=zAu.ajaxSettings,c=b.xhr();zAu.sentTime=jq.now();try{zk.ausending=!0;c.onreadystatechange=zAu._onResponseReady;c.open("POST",a.uri,!0);c.setRequestHeader("Content-Type",b.contentType);c.setRequestHeader("ZK-SID",a.sid);zAu._errCode&&
(c.setRequestHeader("ZK-Error-Report",zAu._errCode),zAu._errCode=null);var d=a.forceAjax;zk.pfmeter&&zAu._pfsend(a.dt,c,!1,d);zAu.ajaxReq=c;zAu.ajaxReqInf=a;!d&&"undefined"!=typeof zWs&&zWs.ready?zWs.send(c,a):(c.send(a.content),a.implicit||zk.startProcessing(zk.procDelay,a.sid))}catch(f){try{"function"==typeof c.abort&&c.abort()}catch(g){zk.debugLog(g.message||g)}a.ignorable||zk.unloading||(b=q(f),zAu._errCode="[Send] "+b,zAu.confirmRetry("FAILED_TO_SEND",b)&&ajaxReqResend(a))}}function L(a){var b=
a.rtags||{},c;try{for(;a&&a.length;){if(zk.mounting)return!1;var d=a.shift();try{m(d.cmd,d.data)}catch(f){zk.mounting=!1,zAu.showError("FAILED_TO_PROCESS",null,d.cmd,f),c||(c=f)}}zAu.doAfterProcessWgts&&(zAu.doAfterProcessWgts.forEach(function(a){a.doAfterProcessRerenderArgs&&(a.rerender.apply(a,a.doAfterProcessRerenderArgs),a.doAfterProcessRerenderArgs=null)}),zAu.doAfterProcessWgts=null)}finally{a&&a.length||(zk.afterMount(function(){zWatch.fire("onCommandReady",null,{timeout:-1,rtags:b});zWatch.fire("onResponse",
null,{timeout:0,rtags:b})},-1),b.onClientInfo&&(setTimeout(zk.endProcessing,50),delete zk.clientinfo)),zk.ausending=!1,zk.doAfterAuResponse()}if(c)throw c;return!0}function z(a){jq(document.body).append(a)}function M(){zAu.cmd0.clientInfo()}function N(){zAu.send(new zk.Event(null,"dummy",null,{ignorable:!0,serverAlive:!0,rtags:{isDummy:!0},forceAjax:!0}));zk.isTimeout=!0}function F(a,b){b[a.uuid]=a;for(a=a.firstChild;a;a=a.nextSibling)F(a,b)}function w(a,b){var c;if(a._visible&&(c=a.actions_[b]))return a.z$display=
"none",c}function x(a,b){if(b)return delete a.z$display,b[0].call(a,a.$n(),b[1]),!0}var G={},A=[],n=[],B,u,H=[],y,O=0,t=[],p=zk.Widget,C={0:!0,180:!0},I=jq.innerWidth()>jq.innerHeight(),J=C[window.orientation],K=[];zAu={_resetTimeout:function(){y&&(clearTimeout(y),y=null);0<zk.timeout&&(y=setTimeout(N,1E3*zk.timeout))},_onClientInfo:function(){zAu._cInfoReg&&setTimeout(M,20)},_wgt$:function(a){for(var b=t.wgts=t.wgts||{},c;c=t.shift();)F(c,b);return b[a]},_onVisibilityChange:function(){zk.visibilitychange&&
zAu.cmd0.visibilityChange()},_storeStub:function(a){a&&t.push(a)},onError:function(a){A.push(a)},unError:function(a){A.$remove(a)},confirmRetry:function(a,b){var c=msgzk[a];return jq.confirm((c?c:a)+"\n"+msgzk.TRY_AGAIN+(b?"\n\n("+b+")":""))},showError:function(a,b,c,d){var f=msgzk[a];zk.error((f?f:a)+"\n"+(b?b+": ":"")+(c||"")+(d?"\n"+q(d):""))},getErrorURI:function(a){return zAu._errURIs[""+a]},setErrorURI:function(a,b){if(1==arguments.length)for(var c in a)zAu.setErrorURI(c,a[c]);else zAu._errURIs[""+
a]=b},getPushErrorURI:function(a){return G[""+a]},setPushErrorURI:function(a,b){if(1==arguments.length)for(var c in a)zAu.setPushErrorURI(c,a[c]);else G[""+a]=b},processing:function(){return zk.mounting||n.length||zAu.ajaxReq||zAu.pendingReqInf},send:function(a,b){if(!zk.unloading||!zk.rmDesktoping){0>b&&(a.opts=zk.copy(a.opts,{defer:!0}));var c=a.target;if(c)r("zk.Desktop"==c.className?c:c.desktop,a,b);else{c=zk.Desktop.all;for(var d in c)r(c[d],a,b)}}},sendAhead:function(a,b){var c=a.target;if(c){var d=
"zk.Desktop"==c.className?c:c.desktop;zAu.getAuRequests(d).unshift(a);v(d,b)}else{c=zk.Desktop.all;for(var f in c)zAu.getAuRequests(d).unshift(a),v(c[f],b)}},_rmDesktop:function(a,b){jq.ajax(zk.$default({url:zk.ajaxURI(null,{desktop:a,au:!0}),data:{dtid:a.id,cmd_0:b?"dummy":"rmDesktop",opt_0:"i"},beforeSend:function(b){zk.pfmeter&&zAu._pfsend(a,b,!0,!1)},async:!!zk.ie},zAu.ajaxSettings),null,!0);!b&&zk.portlet2Data&&zk.portlet2Data[a.id]&&delete zk.portlet2Data[a.id]},process:function(a,b){m(a,b?
jq.evalJSON(b):[])},shallIgnoreESC:function(){return zAu.ajaxReq},doCmds:function(a,b){var c=[];c.dt=zk.Desktop.$(a);k(c,b);zAu._doCmds()},_doCmds:function(a){for(var b;b=H.shift();)b();for(var c,d=0,f=u;d<n.length;++d){if(zk.mounting)return;var g=n[d];if(f==g.rid||!f||!g.rid||1<zk.Desktop._ndt){n.splice(d,1);var D=f;g.rid&&(1E3<=(f=g.rid+1)&&(f=1),u=f);try{if(L(g))d=-1,zk.pfmeter&&(b=function(){zAu._pfdone(g.dt,g.pfIds)},zk.mounting?H.push(b):b());else{u=D;n.splice(d,0,g);return}}catch(P){c||(c=
P),d=-1}}}n.length?setTimeout(function(){if(n.length&&f==u){var b=n[0].rid;for(d=1;d<n.length;++d){var c=n[d].rid,g=c-b;if(500<g||0>g&&-500<g)b=c}u=b;zAu._doCmds(a)}},3600):e(a);if(c)throw c;},beforeSend:function(a,b){var c,d;(c=b.target)&&(d=c.autag)&&(d="/"+encodeURIComponent(d),0>a.indexOf("/_/")&&((b=(b=c.desktop)?b.requestPath:"")&&"/"!=b.charAt(0)&&(b="/"+b),d="/_"+b+d),b=a.lastIndexOf(";"),a=0<=b?a.substring(0,b)+d+a.substring(b):a+d);return a},encode:function(a,b,c){var d=b.target,f=b.opts||
{},g="";zk.portlet2Data&&zk.portlet2Data[c.id]&&(g=zk.portlet2Data[c.id].namespace||"");c=a?"":g+"dtid="+c.id;c+="&"+g+"cmd_"+a+"="+b.name;!f.implicit&&!f.ignorable||f.serverAlive||(c+="&"+g+"opt_"+a+"=i");d&&"zk.Desktop"!=d.className&&(c+="&"+g+"uuid_"+a+"="+d.uuid);b=b.data;f=typeof b;if("string"==f||"number"==f||"boolean"==f||jq.isArray(b))b={"":b};b&&(c+="&"+g+"data_"+a+"="+encodeURIComponent(zAu.toJSON(d,b)));return c},sendNow:function(a){if(zAu.disabledRequest)return!1;var b=zAu.getAuRequests(a);
if(0==b.length)return!1;if(zk.mounting)return zk.afterMount(function(){zAu.sendNow(a)}),!0;if(zAu.ajaxReq||zAu.pendingReqInf)return B=!0;for(var c,d,f=0,g=b.length;f<g;++f){var e=b[f];e=e.opts||{};if(e.uri!=d){if(f)break;d=e.uri}if(!(c=e.ignorable||e.implicit||e.defer))break}try{zWatch.fire("onSend",null,c)}catch(Q){zAu.showError("FAILED_TO_SEND",null,null,Q)}var h=!0;f=0;for(g=b.length;f<g&&(e=b[f],e=e.opts||{},e.uri==d&&(h=h&&e.ignorable));++f);var k=!1;f=0;for(g=b.length;f<g;++f)if(e=b[f],e=e.opts||
{},e.forceAjax){k=!0;break}var m={},l=d||zk.ajaxURI(null,{desktop:a,au:!0}),n="undefined"!=typeof zWs&&zWs.ready;var p=!k&&n?{}:"";f=0;for(g=b.length;g;++f,--g){e=b.shift();if((e.opts||{}).uri!=d){b.unshift(e);break}l=zAu.beforeSend(l,e,a);!k&&n?zk.copy(p,zWs.encode(f,e,a)):p+=zAu.encode(f,e,a);zk.copy(m,(e.opts||{}).rtags)}zk.portlet2Data&&zk.portlet2Data[a.id]&&(l=zk.portlet2Data[a.id].resourceURL);p&&E({sid:zAu.seqId,uri:l,dt:a,content:p,implicit:c,ignorable:h,tmout:0,rtags:m,forceAjax:k});return!0},
addAuRequest:function(a,b){a._aureqs.push(b)},getAuRequests:function(a){return a._aureqs},ajaxSettings:zk.$default({global:!1,contentType:"application/x-www-form-urlencoded;charset=UTF-8"},jq.ajaxSettings),_pfrecv:function(a,b){zAu.pfAddIds(a,"_pfRecvIds",b)},_pfdone:function(a,b){zAu.pfAddIds(a,"_pfDoneIds",b)},_pfsend:function(a,b,c,d){d=!d&&"undefined"!=typeof zWs&&zWs.ready;c||(c=a.id+"-"+O++ +"="+Math.round(jq.now()),b.setRequestHeader("ZK-Client-Start",c),d&&zWs.setRequestHeaders("ZK-Client-Start",
c));if(c=a._pfRecvIds)b.setRequestHeader("ZK-Client-Receive",c),d&&zWs.setRequestHeaders("ZK-Client-Receive",c),a._pfRecvIds=null;if(c=a._pfDoneIds)b.setRequestHeader("ZK-Client-Complete",c),d&&zWs.setRequestHeaders("ZK-Client-Complete",c),a._pfDoneIds=null},createWidgets:function(a,b,c){var d=[],f=a.length;if(0<f)for(var e=0;e<f;++e)zkx_(a[e],function(a){d.push(a);d.length==f&&b(d)},c);else b(d)},wrongValue_:function(a,b){!1!==b&&jq.alert(b)},_onResponseReady:function(){var a=zAu.ajaxReq,b=zAu.ajaxReqInf;
try{if(a&&4==a.readyState){zAu.ajaxReq=zAu.ajaxReqInf=null;zk.pfmeter&&zAu._pfrecv(b.dt,zAu.pfGetIds(a));var c=a.getResponseHeader("ZK-SID");var d;if(200==(d=a.status)){if(zAu._respSuccess(a,b,c))return}else if(!(c&&c!=zAu.seqId||zAu.onResponseError(a,zAu._errCode=d))&&zAu._respFailure(a,b,d))return}}catch(f){if(zAu._respException(a,b,f))return}zAu.afterResponse(c)},_respSuccess:function(a,b,c){if(c&&c!=zAu.seqId)return zAu._errCode="ZK-SID "+(c?"mismatch":"required"),zAu.afterResponse(),!0;var d;
if((d=a.getResponseHeader("ZK-Error"))&&!zAu.onResponseError(a,d=zk.parseInt(d)||d)&&(5501==d||5502==d)&&zAu.confirmRetry("FAILED_TO_RESPONSE",5501==d?"Request out of sequence":"Activation timeout"))return zAu.ajaxReqResend(b),!0;410==d||b.rtags&&b.rtags.isDummy||b.rtags&&b.rtags.onTimer&&!zk.timerAlive||zAu._resetTimeout();zAu.pushReqCmds(b,a)&&(c&&9999<++zAu.seqId&&(zAu.seqId=1),zAu.ajaxReqTries=0,zAu.pendingReqInf=null)},_respFailure:function(a,b,c){var d=zAu._errURIs[""+c];if("string"==typeof d)return zUtl.go(d),
!0;if("function"==typeof zAu.ajaxErrorHandler){if(zAu.ajaxReqTries=zAu.ajaxErrorHandler(a,c,a.statusText,zAu.ajaxReqTries),0<zAu.ajaxReqTries)return zAu.ajaxReqTries--,zAu.ajaxReqResend(b,zk.resendTimeout),!0}else{switch(c){default:if(!zAu.ajaxReqTries)break;case 12002:case 12030:case 12031:case 12152:case 12159:case 13030:case 503:if(zAu.ajaxReqTries||(zAu.ajaxReqTries=3),--zAu.ajaxReqTries)return zAu.ajaxReqResend(b,zk.resendTimeout),!0}if(!b.ignorable&&!zk.unloading&&(a=a.statusText,zAu.confirmRetry("FAILED_TO_RESPONSE",
c+(a?": "+a:""))))return zAu.ajaxReqTries=2,zAu.ajaxReqResend(b),!0}},_respException:function(a,b,c){if(!window.zAu)return!0;zAu.ajaxReq=zAu.ajaxReqInf=null;try{a&&"function"==typeof a.abort&&a.abort()}catch(d){zk.debugLog(d.message||d)}if(b&&!b.ignorable&&!zk.unloading&&(a=q(c),zAu._errCode="[Receive] "+a,zAu.confirmRetry("FAILED_TO_RESPONSE",a&&0>a.indexOf("NOT_AVAILABLE")?a:"")))return zAu.ajaxReqResend(b),!0},pushReqCmds:function(a,b){var c=a.dt,d=b.responseText;if(!d)return zk.pfmeter&&zAu._pfdone(c,
zAu.pfGetIds(b)),!1;var f=[];f.rtags=a.rtags;zk.pfmeter&&(f.dt=c,f.pfIds=zAu.pfGetIds(b));d=jq.evalJSON(d);if(a=d.rid)a=parseInt(a),isNaN(a)||(f.rid=a);k(f,d.rs);return!0},afterResponse:function(a){zAu._doCmds(a);if(B&&!zAu.ajaxReq&&!zAu.pendingReqInf){B=!1;a=zk.Desktop.all;for(var b in a)v(a[b],0)}},toJSON:function(a,b){if(!jq.isArray(b)){null!=b.pageX&&null==b.x&&(a=a&&a.desktop?a.fromPageCoord(b.pageX,b.pageY):[b.pageX,b.pageY],b.x=a[0],b.y=a[1]);var c,d;for(d in b)(c=b[d])instanceof DateImpl&&
(b[d]="$z!t#d:"+jq.d2j(c))}return jq.toJSON(b)},ajaxReq:null,ajaxReqInf:null,ajaxReqTries:null,seqId:jq.now()%9999+1,pendingReqInf:null,_errCode:null,_errURIs:{},pfGetIds:function(a){return a.getResponseHeader("ZK-Client-Complete")},pfAddIds:function(a,b,c){c&&(c=c.trim())&&(c=c+"="+Math.round(jq.now()),a[b]=a[b]?a[b]+(","+c):c)},ajaxReqResend:function(a,b){zAu.seqId==a.sid&&(zAu.pendingReqInf=a,setTimeout(l,b?b:0))},onResponseError:function(a,b){for(var c=A.$clone(),d;d=c.shift();)if(d(a,b))return!0}};
zAu.cmd0={bookmark:function(a,b){zk.bmk.bookmark(a,b)},obsolete:function(a,b){if(b.startsWith("script:"))return $eval(b.substring(7));if(!zk._isReloadingInObsolete){var c=zk.Desktop.$(a);c&&(c=c.requestPath)&&(b=b.replace(a,c+" ("+a+")"));zAu.disabledRequest=!0;jq.alert(b,{icon:"ERROR",button:{Reload:function(){zk._isReloadingInObsolete=!0;location.reload()},Cancel:!0}})}},alert:function(a,b,c,d){d&&(zAu.disabledRequest=!0);jq.alert(a,{icon:c||"ERROR",title:b})},redirect:function(a,b){try{zUtl.go(a,
{target:b});var c;if(a&&!a.startsWith("/")&&0<=(c=a.indexOf("#"))){var d=a.substring(0,c);a.substring(c+1);var f=window.location.hash,e=window.location.href;f&&(e=e.substring(0,e.length-f.length));if(e.endsWith(d))return}b||(zAu.disabledRequest=!0)}catch(D){if(!zk.confirmClose)throw D;}},title:function(a){document.title=a},log:zk.log,script:function(a){jq.globalEval(a)},echo:function(a){a=zk.Desktop.$(a);for(var b=zAu.getAuRequests(a),c=0,d=b.length;c<d;c++){var f=b[c];if((!f.target||f.target.$instanceof(zk.Desktop))&&
"dummy"==f.name)return}zAu.send(new zk.Event(a,"dummy",null,{ignorable:!0,rtags:{isDummy:!0}}))},clientInfo:function(a){zAu._cInfoReg=!0;var b="",c=1;if(zk.mobile){if(I&&J||!I&&!J)C={"-90":!0,90:!0};b=C[window.orientation]?"portrait":"landscape"}else b=jq.innerWidth()>jq.innerHeight()?"landscape":"portrait";window.devicePixelRatio&&(c=window.devicePixelRatio);var d=[(new Date).getTimezoneOffset(),screen.width,screen.height,screen.colorDepth,jq.innerWidth(),jq.innerHeight(),jq.innerX(),jq.innerY(),
c.toFixed(1),b];b=zAu._clientInfo;b&&b.every(function(a,b){return a===d[b]})||(zAu._clientInfo=d,zAu.send(new zk.Event(zk.Desktop.$(a),"onClientInfo",zAu._clientInfo,{implicit:!0,rtags:{onClientInfo:1}})))},visibilityChange:function(a){var b=!(!document.hidden&&!document[zk.vendor_+"Hidden"]),c=document.visibilityState||document[zk.vendor_+"VisibilityState"];zAu.send(new zk.Event(zk.Desktop.$(a),"onVisibilityChange",{hidden:b,visibilityState:c},{implicit:!0,ignorable:!0}))},download:function(a){if(a){var b=
jq("#zk_download")[0];b?b.src=a:(a='<iframe src="'+a+'" id="zk_download" name="zk_download" style="display:none;width:0;height:0;border:0" frameborder="0"></iframe>',jq(document.body).append(a))}},print:function(){window.print()},scrollBy:function(a,b){window.scrollBy(a,b)},scrollTo:function(a,b){window.scrollTo(a,b)},resizeBy:function(a,b){window.resizeBy(a,b)},resizeTo:function(a,b){window.resizeTo(a,b)},moveBy:function(a,b){window.moveBy(a,b)},moveTo:function(a,b){window.moveTo(a,b)},cfmClose:function(a){zk.confirmClose=
a},showNotification:function(a,b,c,d,f,e,h,k){var g=zul&&zul.wgt?zul.wgt.Notification:null;if(g){var l={ref:d,pos:f,off:e,dur:h,type:b,closable:k};zk.delayFunction(d?d.uuid:"nouuid",function(){g.show(a,c,l)})}else jq.alert(a)},showBusy:function(a,b){1==arguments.length&&(b=a,a=null);zAu.cmd0.clearBusy(a);var c=a?p.$(a):null;a?c&&zk.delayFunction(a,function(){c.effects_.showBusy=new zk.eff.Mask({id:c.uuid+"-shby",anchor:c.$n(),message:b})}):zUtl.progressbox("zk_showBusy",b||msgzk.PLEASE_WAIT,!0,null,
{busy:!0})},clearBusy:function(a){a?zk.delayFunction(a,function(){var b=p.$(a);(b=b?b.effects_:null)&&b.showBusy&&(b.showBusy.destroy(),delete b.showBusy)}):zUtl.destroyProgressbox("zk_showBusy",{busy:!0})},clearWrongValue:function(){for(var a=arguments.length;a--;){var b=p.$(arguments[a]);b&&zk.delayFunction(b.uuid,function(a){return function(){a.clearErrorMessage?a.clearErrorMessage():zAu.wrongValue_(a,!1)}}(b))}},wrongValue:function(){for(var a=arguments,b=0,c=a.length-1;b<c;b+=2){var d=a[b],f=
a[b+1],e=p.$(d);e?zk.delayFunction(d,function(a,b){return function(){a.setErrorMessage?a.setErrorMessage(b):zAu.wrongValue_(a,b)}}(e,f)):d||jq.alert(f)}},submit:function(a){setTimeout(function(){var b=p.$(a);b&&b.submit?b.submit():zk(a).submit()},50)},scrollIntoView:function(a){if(a){var b=p.$(a);if(b)zk.delayFunction(b.uuid,function(){b.scrollIntoView()});else{var c=zk(a);c.$()&&zk.delayFunction(c.$().uuid,function(){c.scrollIntoView()})}}},loadScript:function(a,b,c){jq.ajax({dataType:"script",cache:c,
url:a}).done(function(){jq.isFunction(b)?b():jq.globalEval(b)})},loadCSS:zk.loadCSS,historyState:function(a,b,c,d){a&&window.history.replaceState&&window.history.replaceState(b,c,d);!a&&window.history.pushState&&window.history.pushState(b,c,d)},syncAllErrorbox:function(){jq(".z-errorbox").toArray().forEach(function(a){a=jq(a).zk.$();a.reposition();a._fixarrow()})}};zAu.cmd1={setAttr:function(a,b,c){a&&("z$al"==b?zk.afterLoad(function(){for(b in c)a.set(b,c[b](),!0)}):(a.rerenderNow_(null),a.set(b,
c,!0)))},outer:function(a,b){zkx_(b,function(b){var c=w(b,"invalidate");a.replaceWidget(b);x(b,c)},function(b){for(var c=b;c;c=c.parent)if(c==a)return null;return b})},addAft:function(a){for(var b=function(b){var c=a.parent,d=w(b,"show");c?(c.insertBefore(b,a.nextSibling),c.$instanceof(zk.Desktop)&&z(b)):(c=a.$n())?jq(c).after(b,a.desktop):z(b);x(b,d)||b.z_rod||zUtl.fireSized(b)},c=arguments,d=c.length;--d;)zkx_(c[d],b)},addBfr:function(a){for(var b=function(b){var c=w(b,"show");a.parent.insertBefore(b,
a);x(b,c)||b.z_rod||zUtl.fireSized(b)},c=arguments,d=1;d<c.length;++d)zkx_(c[d],b)},addChd:function(a){if(a)for(var b=function(b){var c=w(b,"show"),d=a.shallFireSizedLaterWhenAddChd_();a.appendChild(b);x(b,c)||b.z_rod||d||zUtl.fireSized(b)},c=arguments,d=1;d<c.length;++d)zkx_(c[d],b);else for(c=arguments,d=1;d<c.length;++d)zkx_(c[d],z)},rm:function(a){a&&(a.detach(),t.push(a))},uuid:function(a,b){a&&zk._wgtutl.setUuid(a,b)},focus:function(a){a&&setTimeout(function(){zk.afterAnimate(function(){zk.ie9_?
a.focus(100):a.focus(0)},-1)})},select:function(a,b,c){a.select&&a.select(b,c)},invoke:function(a,b){for(var c=[],d=arguments.length;1<--d;)c.unshift(arguments[d]);a?a[b].apply(a,c):((d=zk.$import(b))||zk.error("not found: "+b),d.apply(null,c))},echo2:function(a,b,c){zAu.send(new zk.Event(a,"echo",null!=c?[b,c]:[b],{ignorable:!0}))},resizeWgt:function(a){zUtl.fireSized(a,1)},syncErrorbox:function(a){a._errbox&&(a._errbox.reposition(),a._errbox._fixarrow())}};zk.afterAuResponse=function(a){a&&K.push(a)};
zk.doAfterAuResponse=function(){for(var a;a=K.shift();)a()}})();function onIframeURLChange(e,k){zk.unloading||(e=zk.Widget.$(e))&&e.fire("onURIChange",k)};
