var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(d,f,e){if(null==d)throw new TypeError("The 'this' value for String.prototype."+e+" must not be null or undefined");if(f instanceof RegExp)throw new TypeError("First argument to String.prototype."+e+" must not be a regular expression");return d+""};$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(d,f,e){d!=Array.prototype&&d!=Object.prototype&&(d[f]=e.value)};$jscomp.getGlobal=function(d){return"undefined"!=typeof window&&window===d?d:"undefined"!=typeof global&&null!=global?global:d};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(d,f,e,h){if(f){e=$jscomp.global;d=d.split(".");for(h=0;h<d.length-1;h++){var k=d[h];k in e||(e[k]={});e=e[k]}d=d[d.length-1];h=e[d];f=f(h);f!=h&&null!=f&&$jscomp.defineProperty(e,d,{configurable:!0,writable:!0,value:f})}};
$jscomp.polyfill("String.prototype.startsWith",function(d){return d?d:function(d,e){var f=$jscomp.checkStringArgs(this,d,"startsWith");d+="";var k=f.length,m=d.length;e=Math.max(0,Math.min(e|0,f.length));for(var n=0;n<m&&e<k;)if(f[e++]!=d[n++])return!1;return n>=m}},"es6","es3");$jscomp.findInternal=function(d,f,e){d instanceof String&&(d=String(d));for(var h=d.length,k=0;k<h;k++){var m=d[k];if(f.call(e,m,k,d))return{i:k,v:m}}return{i:-1,v:void 0}};
$jscomp.polyfill("Array.prototype.find",function(d){return d?d:function(d,e){return $jscomp.findInternal(this,d,e).v}},"es6","es3");
(function(d){function f(a){var b;return a&&3==a.nodeType&&(b=a.nodeValue)&&!b.trim().length}function e(a,b,c,g){if("function"!=typeof c){c||(c=N[b])||(N[b]=c="_do"+b.substring(2));var d=a[c];if(!d)throw"Listener "+c+" not found in "+a.className;c=d}(d=O[b])||(d=O[b]=b.substring(2).toLowerCase());b=d;a:{d=a._$evproxs;var e;d||(a._$evproxs=d={});if(g)c.__keyword=g;else if(e=d[c]){a=e;break a}a=d[c]=h(a,c,g)}return[b,a]}function h(a,b,c){return function(g){var u=g;g=jq.Event.zk(u,a);switch(u.type){case "focus":if(zk._focusByClearBusy)return;
if(a.canActivate()){zk.currentFocus=a;zWatch.fire("onFloatUp",a,{triggerByFocus:!0});break}return;case "blur":zk._cfByMD||(zk.currentFocus=null);break;case "click":case "dblclick":case "mouseup":if(zk.Draggable.ignoreClick())return}if(c){var e=[].slice.call(arguments);e.push(c)}else e=arguments;e=b.apply(a,e);e===d&&(e=g.returnValue);g.domStopped&&u.stop();g.stopped&&u.originalEvent&&(u.originalEvent.zkstopped=!0);return"dblclick"==u.type&&e===d?!1:e}}function k(a,b){var c=b.previousSibling,g=b.nextSibling;
c?c.nextSibling=g:a.firstChild=g;g?g.previousSibling=c:a.lastChild=c;b.nextSibling=b.previousSibling=b.parent=null;--a.nChildren}function m(a,b){var c=b.parent=a.parent,g=b.previousSibling=a.previousSibling;g?g.nextSibling=b:c&&(c.firstChild=b);(g=b.nextSibling=a.nextSibling)?g.previousSibling=b:c&&(c.lastChild=b)}function n(a,b){a.bindLevel=b++;for(a=a.firstChild;a;a=a.nextSibling)n(a,b)}function q(a){var b=a.parent;(b=b?b.$o():null)&&w(a,b)}function w(a,b){a.id&&(b._fellows[a.id]=a);if(!a._fellows)for(a=
a.firstChild;a;a=a.nextSibling)w(a,b)}function B(a){var b=a.parent;(b=b?b.$o():null)&&P(a,b)}function P(a,b){a.id&&delete b._fellows[a.id];if(!a._fellows)for(a=a.firstChild;a;a=a.nextSibling)P(a,b)}function Q(a){if(document.getElementById(a.uuid))return!0;for(a=a.firstChild;a;a=a.nextSibling)if(Q(a))return!0}function F(a,b){return a.shallIgnoreClick_(b)||a.fireX(b).stopped||!b.shallStop?!b.stopped:(b.stop(),!1)}function R(a,b){var c;a._visible&&(c=a.actions_.hide)?(a._rmAftAnm=function(){jq(b).remove()},
b.style.visibility="",c[0].call(a,b,c[1])):jq(b).remove()}function G(a,b){var c;return a&&(c=a.parent)&&c.dragControl&&(!b||c.dragControl(a))}function S(a){var b=zk.currentFocus;if(b&&zUtl.isAncestor(a,b))return zk.currentFocus=null,{focus:b,range:T(b)}}function T(a){return 11>zk.ie&&zk.cfrg?(a=zk.cfrg,delete zk.cfrg,a):a.getInputNode&&(a=a.getInputNode())&&zk(a).getSelectionRange()}function H(a){var b;if(a&&(b=a.focus)&&b.desktop&&!zk.currentFocus){I=!0;try{b.focus(),a.range&&b.getInputNode&&(b=
b.getInputNode())&&zk(b).isRealVisible()&&zk(b).setSelectionRange(a.range[0],a.range[1])}finally{I=!1}}}function J(a){if(!a._flexListened){zk.ie&&(a._cssflex=!1);var b=a.parent;a._cssflex&&(b.$instanceof(zk.Page)||null!=b.getFlexContainer_())?zWatch.listen({onSize:[a,zFlex.fixCSSFlex]}):zWatch.listen({onSize:[a,zFlex.onSize]});zWatch.listen({beforeSize:[a,zFlex.beforeSize]});"min"==a._hflex||"min"==a._vflex?a.listenOnFitSize_():a.unlistenOnFitSize_();a._flexListened=!0}}function K(a){if(a._flexListened){var b=
a.parent;a._cssflex&&(b.$instanceof(zk.Page)||null!=b.getFlexContainer_())?zWatch.unlisten({onSize:[a,zFlex.fixCSSFlex]}):zWatch.unlisten({onSize:[a,zFlex.onSize]});zWatch.listen({beforeSize:[a,zFlex.beforeSize]});a.unlistenOnFitSize_();delete a._flexListened}}function U(a){if(a){var b;if(b=a._lastDrop)a._lastDrop=null,b.dropEffect_();a._lastDropTo=null}}function V(a,b){return zk.ios?[a.pageX-50,a.pageY-b-30]:[a.pageX+7,a.pageY+5]}function W(a){for(var b=document.body;a&&a!=b;a=a.parentNode){var c=
jq(a).css("position");if("absolute"==c||"relative"==c)return a}}function X(a,b){for(;b;b=b.parent){if(b==a)return!0;if(!b.isVisible())break}return!1}function L(a){a:{var b=null;if(document.fullscreenElement)b=":fullscreen";else if(document.mozFullScreen){b=2147483648;break a}else document.webkitIsFullScreen&&(b=":-webkit-full-screen");b?(b=jq.css(jq(b)[0],"zIndex"),b="auto"==b?2147483648:++b):b=1800}for(var c=p.length;c--;){var g=p[c].widget,d=zk.parseInt(g.getFloatZIndex_(p[c].node));d>=b&&!zUtl.isAncestor(a,
g)&&g.isVisible()&&(b=d+1)}return b}function Y(a,b){for(a=a.firstChild;a;a=a.nextSibling){var c=a.$n();c?b.push(c):Y(a,b)}}function Z(a){if(a._z$rd&&(delete a._z$rd,a._norenderdefer=!0,a.replaceHTML("#"+a.uuid,a.parent?a.parent.desktop:null,null,!0),a.parent))a.parent.onChildRenderDefer_(a)}function da(){x=null;var a;a:for(;a=r.shift();)if(a.desktop){for(var b=r.length;b--;)if(zUtl.isAncestor(a,r[b]))r.splice(b,1);else if(zUtl.isAncestor(r[b],a))continue a;a.rerender(-1)}}function aa(a,b){for(var c=
r.length;c--;)zUtl.isAncestor(a,r[c])&&(b&&b.skipped(a,r[c])||r.splice(c,1))}function C(a,b,c){if(a)for(var g;g=b.pop();)a[g.uuid]=c;return c}var t={},y={},p=[],ea=0,N={},O={onDoubleClick:"dblclick"},M={},E=[],z,A,D,r=[],x,I,fa=/\"/g;zk.DnD={getDropTarget:function(a,b){var c;zk.ff&&"visible"!==jq(a.domTarget).css("overflow")||(8<zk.ie||zk.edge)&&jq.nodeName(a.domTarget,"img")?(a=document.elementFromPoint(a.domEvent.clientX,a.domEvent.clientY))&&(c=zk.$(a)):c=a.target;return c},getDrop:function(a,
b,c){return(b=this.getDropTarget(c,a))?b.getDrop_(a.control):null},ghost:function(a,b,c){if(null!=c)return c&&(c='<span class="z-drop-text">'+c+"</span>"),jq(document.body).append('<div id="zk_ddghost" class="z-drop-ghost z-drop-disallow" style="position:absolute;top:'+b[1]+"px;left:"+b[0]+'px;"><div class="z-drop-content"><span id="zk_ddghost-img" class="z-drop-icon"></span>'+c+"</div></div>"),a._dragImg=jq("#zk_ddghost-img")[0],jq("#zk_ddghost")[0];a=jq(a.node).clone()[0];a.id="zk_ddghost";zk.copy(a.style,
{position:"absolute",left:b[0]+"px",top:b[1]+"px"});jq(a).addClass("z-drag-ghost");document.body.appendChild(a);return a}};var ha={starteffect:zk.$void,endeffect:function(a,b){U(a);var c=zk.DnD.getDrop(a,[b.pageX,b.pageY],b);if(c)c.onDrop_(a,b)},change:function(a,b,c){var g;if(c&&(g=zk.DnD.getDropTarget(c))!=a._lastDropTo){b=(c=zk.DnD.getDrop(a,b,c))&&c==a._lastDrop;b||(U(a),c&&(a._lastDrop=c,c.dropEffect_(!0),b=!0));if(c=a._dragImg)b?(jq(a.node).removeClass("z-drop-disallow").addClass("z-drop-allow"),
jq(c).removeClass("z-icon-ban").addClass("z-icon-plus-circle")):(jq(a.node).removeClass("z-drop-allow").addClass("z-drop-disallow"),jq(c).removeClass("z-icon-plus-circle").addClass("z-icon-ban"));a._lastDropTo=g;zk.mobile&&zk(a.node).redoCSS()}},ghosting:function(a,b,c){return a.control.cloneDrag_(a,V(c,jq(a.node).height()))},endghosting:function(a,b){a.control.uncloneDrag_(a);a._dragImg=null},constraint:function(a,b,c){return V(c,jq(a.node).height())},ignoredrag:function(a,b,c){return a.control.ignoreDrag_(b,
c,a)},zIndex:88800},v=zk.Widget=zk.$extends(zk.Object,{_visible:!0,nChildren:0,bindLevel:-1,_mold:"default",className:"zk.Widget",widgetName:"widget",actions_:{},_floating:!1,$init:function(a){this._asaps={};this._lsns={};this._bklsns={};this._subnodes={};this.effects_={};this._subzcls={};a!==zkac&&this.afterInit(function(){if(a&&"object"==typeof a&&!a.$oid)for(var b in a)this.set(b,a[b]);(zk.spaceless||this.rawId)&&this.id&&(this.uuid=this.id);this.uuid||(this.uuid=v.nextUuid())})},$define:{mold:function(){this.rerender()},
style:function(){this.updateDomStyle_()},sclass:function(){this.updateDomClass_()},zclass:function(){this._subzcls={};this.rerender()},width:function(a){if(!this._nhflex){var b=this.$n();b&&(b.style.width=a||"")}},height:function(a){if(!this._nvflex){var b=this.$n();b&&(b.style.height=a||"")}},left:function(a){var b=this.$n();b&&(b.style.left=a||"")},top:function(a){var b=this.$n();b&&(b.style.top=a||"")},tooltiptext:function(a){var b=this.$n();b&&(b.title=a||"")},droppable:[function(a){return a&&
"false"!=a?a:null},function(a){if(a&&"true"!=a){var b=a.split(",");for(a=b.length;a--;)(b[a]=b[a].trim())||b.splice(a,1)}this._dropTypes=b}],vflex:function(a){this.setVflex_(a);var b;this.desktop&&(b=this.parent)&&!b.isBinding()&&zUtl.fireSized(b,-1)},hflex:function(a){this.setHflex_(a);var b;this.desktop&&(b=this.parent)&&!b.isBinding()&&zUtl.fireSized(b,-1)},renderdefer:null,action:function(a){this.actions_={};if(a)for(var b=a.split(";"),c=b.length;c--;){var g=b[c],d=g.indexOf(":");if(0<=d){var e=
g.substring(0,d).trim();g=g.substring(d+1).trim();var f,l,h;if(e&&g){d=g.indexOf("(");0<=d&&((h=g.lastIndexOf(")"))>d&&(f=jq.evalJSON(g.substring(d+1,h))),g=g.substring(0,d));(l=zk.eff.Actions[g])?this.actions_[e]=[l,f]:zk.error("Unknown action: "+g);continue}}zk.error("Illegal action: "+a+", "+this.className)}},tabindex:function(a){var b=this.$n();b&&(null==a?b.removeAttribute("tabindex"):b.tabIndex=a)},cssflex:function(){this.desktop&&this.rerender()}},setHflex_:function(a){this._nhflex=!0===a||
"true"==a?1:"min"==a?-65500:zk.parseInt(a);0>this._nhflex&&"min"!=a&&(this._nhflex=0);this.desktop&&(this._nhflex?(this._cssflex&&delete this._cssFlexFixed,J(this)):(this._cssflex&&"min"!=this._hflex?zFlex.clearCSSFlex(this,"h"):this.setFlexSize_({width:"auto"}),delete this._hflexsz,this._hflex=d,this._nvflex||K(this)))},setVflex_:function(a){this._nvflex=!0===a||"true"==a?1:"min"==a?-65500:zk.parseInt(a);0>this._nvflex&&"min"!=a&&(this._nvflex=0);this.desktop&&(this._nvflex?(this._cssflex&&delete this._cssFlexFixed,
J(this)):(this._cssflex&&"min"!=this._vflex?zFlex.clearCSSFlex(this,"v"):this.setFlexSize_({height:"auto"}),delete this._vflexsz,this._vflex=d,this._nhflex||K(this)))},afterAnima_:function(a){if(a=this._rmAftAnm)this._rmAftAnm=null,a()},setDraggable:function(a){a||null==a||(a="false");this._draggable=a;this.desktop&&!G(this,!0)&&(a&&"false"!=a?this.initDrag_():this.cleanDrag_())},getDraggable:function(){var a=this._draggable;return a?a:G(this)?"true":"false"},$o:function(){for(var a=this;a;a=a.parent)if(a._fellows)return a},
$f:function(a,b){var c=this.$o();if(!arguments.length)return c?c._fellows:{};for(var g=a.split("/"),d=0,e=g.length;d<e;++d)if(a=g[d]){c&&(c=c._fellows[a]);!c&&b&&(c=y[a])&&(c=c[0]);if(!c||zk.spaceless)break;b=!1}return c},getId:function(){return this.id},setId:function(a){if(a!=this.id){if(this.id){this._fellows&&delete this._fellows[this.id];var b=this.parent;b&&(b=b.$o())&&delete b._fellows[this.id];this.$class._rmGlobal(this)}a&&(zk.spaceless||this.rawId)&&zk._wgtutl.setUuid(this,a);if(this.id=
a)this._fellows&&(this._fellows[this.id]=this),(a=this.parent)&&(a=a.$o())&&(a._fellows[this.id]=this),(this.desktop||this.z_rod)&&this.$class._addGlobal(this)}return this},set:function(){function a(a){var c={name:"set"+a.charAt(0).toUpperCase()+a.substring(1)},d;"$"==(d=a.charAt(0))?c.func=function(a,b,c,g){a._setServerListener(b,c)||zk._set2(a,null,b,c,g);return a}:"o"==d&&"n"==a.charAt(1)&&"Z">=(d=a.charAt(2))&&"A"<=d?c.func=function(a,b,c,g){a.setListener(b,c);return a}:c.func=function(a,b,g,
d){var e;if(e=a[c.name])return zk._set2(a,e,null,g,d),a;zk._set2(a,null,b,g,d);return a};return b[a]=c}var b={};return function(c,g,d){var e;if((e=g&&g.$u)&&!(g=v.$(e))){var u=this;zk.afterMount(function(){var a=v.$(e);a?zk._set(u,c,a,d):setTimeout(function(){zk._set(u,c,v.$(e),d)})},-1);return this}return(b[c]||a(c)).func.call(this,this,c,g,d)}}(),_setServerListener:function(a,b){if(a.startsWith("$$")){if(a.startsWith("$$on")){var c=this.$class;var g=c._importantEvts;(g||(c._importantEvts={}))[a.substring(2)]=
b;return this}if(a.startsWith("$$0on"))return c=this.$class,g=c._duplicateIgnoreEvts,(g||(c._duplicateIgnoreEvts={}))[a.substring(3)]=b,this;if(a.startsWith("$$1on"))return c=this.$class,g=c._repeatIgnoreEvts,(g||(c._repeatIgnoreEvts={}))[a.substring(3)]=b,this}else if(a.startsWith("$on"))return this._asaps[a.substring(1)]=b,this},get:function(a){return zk.get(this,a)},getChildAt:function(a){if(0<=a&&a<this.nChildren)for(var b=this.firstChild;b;b=b.nextSibling)if(0>--a)return b},getChildIndex:function(){var a=
this.parent,b=0;if(a)for(a=a.firstChild;a;a=a.nextSibling,++b)if(a==this)return b;return 0},setChildren:function(a){if(a)for(var b=0,c=a.length;b<c;)this.appendChild(a[b++]);return this},appendChild:function(a,b){if(a==this.lastChild)return!1;var c;(c=a.parent)!=this&&a.beforeParentChanged_(this);if(c){A=!0;try{c.removeChild(a)}finally{A=!1}}a.parent=this;var g=this.lastChild;g?(g.nextSibling=a,a.previousSibling=g,this.lastChild=a):this.firstChild=this.lastChild=a;++this.nChildren;(a.id||a.firstChild)&&
q(a);b||(this.shallChildROD_(a)?this.$class._bindrod(a):(b=this.desktop)&&this.insertChildHTML_(a,null,b));a.afterParentChanged_(c);if(!z)this.onChildAdded_(a);return!0},shallChildROD_:function(a){return a.z_rod||this.z_rod},insertBefore:function(a,b,c){if(!b||b.parent!=this){this.insertingBefore_=!0;try{return this.appendChild(a,c)}finally{this.insertingBefore_=!1}}if(a==b||a.nextSibling==b)return!1;var g;(g=a.parent)!=this&&a.beforeParentChanged_(this);if(g){A=!0;try{g.removeChild(a)}finally{A=
!1}}a.parent=this;var d=b.previousSibling;d?(a.previousSibling=d,d.nextSibling=a):this.firstChild=a;b.previousSibling=a;a.nextSibling=b;++this.nChildren;q(a);c||(this.shallChildROD_(a)?this.$class._bindrod(a):(c=this.desktop)&&this.insertChildHTML_(a,b,c));a.afterParentChanged_(g);if(!z)this.onChildAdded_(a);return!0},removeChild:function(a,b){var c;if(!(c=a.parent)||this!=c)return!1;B(a);a.z_rod?(this.$class._unbindrod(a),jq(a.uuid,zk).remove()):a.desktop&&this.removeChildHTML_(a,b);A||a.beforeParentChanged_(null);
k(this,a);A||a.afterParentChanged_(c);if(!z)this.onChildRemoved_(a);return!0},detach:function(){if(this.parent)this.parent.removeChild(this);else{var a=zk.currentFocus;a&&zUtl.isAncestor(this,a)&&(zk.currentFocus=null);if(a=this.$n())this.unbind(),R(this,a)}},clear:function(){for(;this.lastChild;)this.removeChild(this.lastChild)},replaceWidget:function(a){m(this,a);B(this);q(a);var b=zk.currentFocus;if(b&&zUtl.isAncestor(this,b)){var c=b.uuid;var g=T(b);zk.currentFocus=null}b=this.$n();var d=this.parent,
e,f=a.desktop||this.desktop;this.z_rod?(this.$class._unbindrod(this),(e=(f=f||(d?d.desktop:d))&&(b=jq("#"+this.uuid)))||this.$class._bindrod(a)):e=f;var l=[];e&&(b?a.replaceHTML(b,f,null,!0,l):(this.unbind(),a.bind(f)),n(a,d?d.bindLevel+1:0),zWatch.fire("onBindLevelMove",a));if(d)d.onChildReplaced_(this,a);this.parent=this.nextSibling=this.previousSibling=null;if(l&&l.length)for(var h;(h=l.shift())&&jq.isFunction(h);)h();c&&(b=zk.Widget.$(c))&&zUtl.isAncestor(a,b)&&H({focus:b,range:g})},replaceCavedChildren_:function(a,
b,c,g){var d;z=!0;try{var e=this.$n(a);var f=[];for(var l=this.firstChild;l;){var h=l.nextSibling;jq.isAncestor(e,l.$n())&&(d&&d!=l||(d=h),this.removeChild(l,!0),f.push(l));l=h}a=0;for(var k=b.length;a<k;++a)this.insertBefore(b[a],d,!0)}finally{z=!1}if(d=this.desktop){l=new zk.Buffer;c&&l.push(c);a=0;for(k=b.length;a<k;++a)b[a].redraw(l);g&&l.push(g);jq(e).html(l.join(""));a=0;for(k=b.length;a<k;++a)b[a].bind(d),c=this._nrows,this.onChildReplaced_(f[a],b[a]),this._nrows=c}},beforeParentChanged_:function(){},
afterParentChanged_:function(){},isRealVisible:function(a){var b=a&&a.dom,c=a&&a.cache,g=[],e,f=this;if(!f.desktop)return!1;for(;f;){if(c&&(e=f.uuid)&&(e=c[e])!==d)return C(c,g,e);c&&g.push(f);if(b&&!f.z_virnd){if(!zk(f.$n()).isVisible(a.strict))return C(c,g,!1)}else if(!f.isVisible())return C(c,g,!1);var h=f.parent,l,k;if(h&&h._visible&&(k=f.$n())&&(l=zk(k).vparentNode(!0)))for(;l&&l!=k;){if(l.style&&"none"==l.style.display)return C(c,g,!1);l=zk(l).vparentNode(!0)}if(a&&a.until==f)break;f=h}return C(c,
g,!0)},isVisible:function(a){var b=this._visible;return a&&b?(a=this.$n())&&zk(a).isVisible():b},setVisible:function(a){if(this._visible!=a){this._visible=a;var b=this.parent,c;if(this.desktop){var g=!b||b.isRealVisible(),d=this.$n(),e=this._floating;if(g)if(a){var f;e&&this.setZIndex(f=L(this),{fire:!0,floatZIndex:!0});this.setDomVisible_(d,!0);g=0;for(c=p.length;g<c;++g)a=p[g].widget,d=p[g].node,this==a?a.setDomVisible_(d,!0,{visibility:1}):X(this,a)&&(f=0<=f?++f:L(a),a.setFloatZIndex_(d,f),a.setDomVisible_(d,
!0,{visibility:1}));if(c=b)b.onChildVisible_(this);this.fire("onShow");var l=this;zk.afterAnimate(function(){zUtl.fireShown(l)},-1)}else{this.fire("onHide");l=this;zWatch.fireDown("onHide",this);g=p.length;for(f=this.bindLevel;g--;){a=p[g].widget;if(f>=a.bindLevel)break;X(this,a)&&a.setDomVisible_(p[g].node,!1,{visibility:1})}this.setDomVisible_(d,!1);(l._nvflex||l._nhflex)&&zk.afterAnimate(function(){l.parent&&zUtl.fireSized(l.parent)},-1)}else e||this.setDomVisible_(d,a)}if(b&&!c)b.onChildVisible_(this);
jq.onSyncScroll(this)}return this},zsync:function(){for(var a in this.effects_){var b=this.effects_[a];b&&b.sync&&b.sync()}},show:function(){return this.setVisible(!0)},hide:function(){return this.setVisible(!1)},setDomVisible_:function(a,b,c){if(!c||c.display){var g;(g=this.actions_[b?"show":"hide"])?g[0].call(this,a,g[1]):a.style.display=b?"":"none"}c&&c.visibility&&(a.style.visibility=b?"visible":"hidden")},onChildAdded_:function(){if(this.desktop)jq.onSyncScroll(this)},onChildRemoved_:function(){if(this.desktop)jq.onSyncScroll(this)},
onChildReplaced_:function(a,b){this.childReplacing_=!0;try{if(a)this.onChildRemoved_(a);if(b)this.onChildAdded_(b)}finally{this.childReplacing_=!1}},onChildVisible_:function(){},onChildRenderDefer_:function(){},setTopmost:function(){if(!this.desktop)return-1;if(!this._userZIndex){for(var a=this;a;a=a.parent)if(a._floating){for(var b=L(a),c=0,g=p.length;c<g;++c){var d=p[c].widget,e=p[c].node;a==d?d.setFloatZIndex_(e,b):zUtl.isAncestor(a,d)&&d.isVisible()&&d.setFloatZIndex_(e,++b)}return b}return-1}},
setFloatZIndex_:function(a,b){a!=this.$n()?a.style.zIndex=b:this.setZIndex(b,{fire:!0,floatZIndex:!0})},getFloatZIndex_:function(a){return a!=this.$n()?a.style.zIndex:this._zIndex},getTopWidget:function(){for(var a=this;a;a=a.parent)if(a._floating)return a},isFloating_:function(){return this._floating},setFloating_:function(a,b){if(this._floating!=a)if(a){a={widget:this,node:b&&b.node?b.node:this.$n()};b=this.bindLevel;for(var c=p.length;;){if(0>--c){p.unshift(a);break}if(b>=p[c].widget.bindLevel){p.splice(c+
1,0,a);break}}this._floating=!0}else{for(c=p.length;c--;)p[c].widget==this&&p.splice(c,1);this._floating=!1}return this},getZIndex:_zkf=function(){return this._zIndex},getZindex:_zkf,setZIndex:_zkf=function(a,b){if(!b.floatZIndex||!this._userZIndex){b.floatZIndex||(this._userZIndex=!0);a||(this._userZIndex=!1);if(this._zIndex!=a){this._zIndex=a;var c=this.$n();c&&(c.style.zIndex=0<=a?a:"",b&&b.fire&&this.fire("onZIndex",0<a||0===a?a:-1,{ignorable:!0}))}return this}},setZindex:_zkf,getScrollTop:function(){var a=
this.$n();return a?a.scrollTop:0},getScrollLeft:function(){var a=this.$n();return a?a.scrollLeft:0},setScrollTop:function(a){var b=this.$n();b&&(b.scrollTop=a);return this},setScrollLeft:function(a){var b=this.$n();b&&(b.scrollLeft=a);return this},scrollIntoView:function(){zk(this.$n()).scrollIntoView();return this},redraw:function(a){if(!this.deferRedraw_(a)){var b;(b=this.prolog)&&a.push(b);if((b=this.$class.molds)&&(b=b[this._mold]))return b.apply(this,arguments);zk.error("Mold "+this._mold+" not found in "+
this.className)}},deferRedraw_:function(a){var b;if(0<=(b=this._renderdefer)){if(!this._norenderdefer){this.z_rod=this._z$rd=!0;this.deferRedrawHTML_(a);a=null;var c=this;setTimeout(function(){Z(c)},b);return!0}delete this._norenderdefer;delete this.z_rod}return!1},deferRedrawHTML_:function(a){a.push("<div",this.domAttrs_({domClass:1}),' class="z-renderdefer"></div>')},forcerender:function(){Z(this)},updateDomClass_:function(){if(this.desktop){var a=this.$n();a&&(a.className=this.domClass_());this.zsync()}},
updateDomStyle_:function(){if(this.desktop){var a=jq.parseStyle(this.domStyle_()),b=this.$n();!a.width&&this._hflex&&(a.width=b.style.width);!a.height&&this._vflex&&(a.height=b.style.height);zk(b).clearStyles().jq.css(a);var c=this.getTextNode();c&&c!=b&&(a=this._domTextStyle(c,a),zk(c).clearStyles().jq.css(a));this.zsync()}},_domTextStyle:function(a,b){b=jq.filterTextStyle(b);a.style.width&&(b.width=a.style.width);a.style.height&&(b.height=a.style.height);return b},getZclass:function(){var a=this._zclass;
return null!=a?a:"z-"+this.widgetName},getTextNode:function(){},domStyle_:function(a){var b="",c;(c=this.z$display)?b+="display:"+c+";":this.isVisible()||a&&a.visible||(b+="display:none;");a&&a.style||!(c=this.getStyle())||(c=c.replace(fa,"'"),b+=c,";"!=c.charAt(c.length-1)&&(b+=";"));a&&a.width||!(c=this.getWidth())||(b+="width:"+c+";");a&&a.height||!(c=this.getHeight())||(b+="height:"+c+";");a&&a.left||!(c=this.getLeft())||(b+="left:"+c+";");a&&a.top||!(c=this.getTop())||(b+="top:"+c+";");a&&a.zIndex||
!(0<=(c=this.getZIndex()))||(b+="z-index:"+c+";");return b},domClass_:function(a){var b,c;a&&a.sclass||(b=this.getSclass());a&&a.zclass||(c=this.getZclass());return b?c?b+" "+c:b:c||""},domAttrs_:function(a){var b="",c;if(a)!a.id&&(c=this.uuid)&&(b+=' id="'+c+'"'),!a.domStyle&&(c=this.domStyle_(a))&&(b+=' style="'+c+'"'),!a.domClass&&(c=this.domClass_(a))&&(b+=' class="'+c+'"'),!a.tooltiptext&&(c=this.domTooltiptext_())&&(b+=' title="'+zUtl.encodeXML(c)+'"'),a.tabindex||(c=this.getTabindex())==d||
(b+=' tabindex="'+c+'"');else{if(c=this.uuid)b+=' id="'+c+'"';if(c=this.domStyle_(a))b+=' style="'+c+'"';if(c=this.domClass_(a))b+=' class="'+c+'"';if(c=this.domTooltiptext_())b+=' title="'+zUtl.encodeXML(c)+'"';(c=this.getTabindex())!=d&&(b+=' tabindex="'+c+'"')}this.domExtraAttrs&&(b+=this.domExtraAttrs_());return b},domExtraAttrs_:function(){var a={},b=!1,c="",g;for(g in attrs=this.domExtraAttrs)zk.hasDataHandler(g)&&(b=!0,a[g]=attrs[g]),c+=" "+g+'="'+zUtl.encodeXMLAttribute(attrs[g]||"")+'"';
b&&!this.z_isDataHandlerBound&&(this.z_isDataHandlerBound=function(){for(var b in a)zk.getDataHandler(b).run(this,a[b])},this.listen({onBind:this.z_isDataHandlerBound}));return c},domTooltiptext_:function(){return this.getTooltiptext()},domTextStyleAttr_:function(){var a=this.getStyle();return a?zUtl.appendAttr("style",jq.filterTextStyle(a)):a},replaceHTML:function(a,b,c,g,d){b||(b=this.desktop,zk.Desktop._ndt||zk.stateless());var e=c?null:S(this),f=this.parent;f?f.replaceChildHTML_(this,a,b,c,g):
((f=this.getOldWidget_(a))?f.unbind(c):this.z_rod&&this.$class._unbindrod(this),jq(a).replaceWith(this.redrawHTML_(c,g)),this.bind(b,c));if(!c)if(jq.isArray(d)){var u=this;d.push(function(){zUtl.fireSized(u)})}else zUtl.fireSized(this);H(e);return this},getOldWidget_:function(a){return v.$(a,{strict:!0})},redrawHTML_:function(a,b){var c=new zk.Buffer;this.redraw(c,a);c=c.join("");return b?c.trim():c},rerender:function(a){if(this.desktop){if(!a||0<a)return a=a||0,x&&clearTimeout(x),r.push(this),x=
setTimeout(da,a),this;0>a&&(a=null);var b=this.$n();if(b)try{zk._avoidRod=!0;var c;if(a&&(c=a.skip(this))){var g=S(this);this.replaceHTML(b,null,a,!0);a.restore(this,c);zWatch.fireDown("onRestore",this);zUtl.fireSized(this);H(g)}c||this.replaceHTML(b,null,null,!0)}finally{delete zk._avoidRod}}return this},rerenderLater_:function(){"setAttr"==zAu.processPhase?this.doAfterProcessRerenderArgs=arguments:this.rerender.apply(this,arguments)},replaceChildHTML_:function(a,b,c,g,d){var e=a.getOldWidget_(b),
f;if(e){var u=(f=e._outerPartialSubId)?e.$n(f):null;e.unbind(g)}else this.shallChildROD_(a)&&this.$class._unbindrod(a);d=a.redrawHTML_(g,d);u?jq(u).replaceWith(jq(d).find("#"+e.uuid+"-"+f)):jq(b).replaceWith(d);a.bind(c,g)},insertChildHTML_:function(a,b,c){var d,e=a.redrawHTML_();if(b){if(b.$instanceof(zk.Native)&&(d=b.previousSibling)&&(d==a&&(d=d.previousSibling),d&&(d=d.$n()))){jq(d).after(e);a.bind(c);return}b=b.getFirstNode_()}if(!b)for(var h=this;!(d=h.getCaveNode());){var k=h.nextSibling;if(k&&
(b=k.getFirstNode_()))break;if(!(h=h.parent)){d=document.body;break}}b?(d=b.previousSibling,f(d)&&(b=d),jq(b).before(e)):jq(d).append(e);a.bind(c)},getCaveNode:function(){return this.$n("cave")||this.$n()},getFirstNode_:function(){for(var a=this;a;a=a.nextSibling){a:{var b=a;var c=b.$n();if(!c){for(b=b.firstChild;b;b=b.nextSibling)if(c=b.getFirstNode_())break a;c=void 0}}if(c)return c}},removeChildHTML_:function(a,b){var c=zk.currentFocus;c&&zUtl.isAncestor(a,c)&&(zk.currentFocus=null);if(c=a.$n()){var d=
c.previousSibling;a.prolog&&f(d)&&jq(d).remove()}else Y(a,c=[]);a.unbind();b||a.removeHTML_(c)},removeHTML_:function(a){R(this,a);this.clearCache()},$n:function(a){if(a){var b=this._subnodes[a];!b&&this.desktop&&(b=jq(this.uuid+"-"+a,zk)[0],this._subnodes[a]=b?b:"n/a");return"n/a"==b?null:b}b=this._node;b||!this.desktop||this._nodeSolved||(this._node=b=jq(this.uuid,zk)[0],this._nodeSolved=!0);return b},$service:function(){for(var a=this;a&&!a.$ZKAUS$;a=a.parent);return a?(a._$service||(a._$service=
new zk.Service(a,this)),a._$service):null},$afterCommand:function(a,b){var c=this.$service();c&&c.$doAfterCommand(a,b)},isRealElement:function(){return!0},$s:function(a){if(a){var b=this._subzcls[a];b||(b=this._subzcls[a]=this.getZclass()+"-"+a);return b}return this.getZclass()},clearCache:function(){this._node=null;this._subnodes={};this._nodeSolved=!1},getPage:function(){var a,b;for(a=this.parent;a;a=a.parent)if(a.$instanceof(zk.Page))return a;return(a=(b=this.desktop)._bpg)?a:b._bpg=new zk.Body(b)},
isBinding:function(){if(this.desktop)for(var a=this;a;a=a.parent)if(a._binding)return!0},rerenderNow_:function(a){for(var b=[],c=r.length;c--;)zUtl.isAncestor(this,r[c])&&(a&&a.skipped(this,r[c])||(b=b.concat(r.splice(c,1))));!r.length&&x&&(clearTimeout(x),x=null);a:for(;a=b.shift();)if(a.desktop){for(c=b.length;c--;)if(zUtl.isAncestor(a,b[c]))b.splice(c,1);else if(zUtl.isAncestor(b[c],a))continue a;a.rerender(-1)}},bind:function(a,b){this._binding=!0;aa(this,b);if(this.z_rod)this.$class._bindrod(this);
else{var c=[];for(this.bind_(a,b,c);a=c.shift();)a()}delete this._binding;return this},unbind:function(a,b){this._$service&&(this._$service.destroy(),this._$service=null);aa(this,a);if(this.z_rod)this.$class._unbindrod(this,b);else{var c=[];this.unbind_(a,c,b);a=0;for(b=c.length;a<b;)c[a++]()}return this},bind_:function(a,b,c){this.$class._bind0(this);this.desktop=a||(a=zk.Desktop.$(this.parent));var d=this.parent,e;this.bindLevel=d?d.bindLevel+1:0;(e=this._draggable)&&"false"!=e&&!G(this)&&this.initDrag_();
(this._nvflex||this._nhflex)&&J(this);this.bindChildren_(a,b,c);var f=this;this.isListen("onBind")&&zk.afterMount(function(){f.desktop&&f.fire("onBind")});this.isListen("onAfterSize")&&zWatch.listen({onSize:this});zk.mobile&&c.push(function(){setTimeout(function(){f.bindSwipe_();f.bindDoubleTap_();f.bindTapHold_()},300)})},bindChildren_:function(a,b,c){for(var d=this.firstChild,e;d;d=e)e=d.nextSibling,b&&b.skipped(this,d)||(d.z_rod?this.$class._bindrod(d):d.bind_(a,null,c))},unbind_:function(a,b,
c){this.$class._unbind0(this);K(this);this.unbindChildren_(a,b,c);this.cleanDrag_();this.unbindSwipe_();this.unbindDoubleTap_();this.unbindTapHold_();this.isListen("onAfterSize")&&zWatch.unlisten({onSize:this});if(this.isListen("onUnbind")){var d=this;zk.afterMount(function(){d.desktop||d.fire("onUnbind")})}for(var e in this.effects_)(a=this.effects_[e])&&a.destroy();this.effects_={}},unbindChildren_:function(a,b,c){for(var d=this.firstChild,e;d;d=e)e=d.nextSibling,a&&a.skipped(this,d)||(d.z_rod?
this.$class._unbindrod(d,c):d.desktop&&(d.unbind_(null,b,c),d.$instanceof(zk.Native)&&zAu._storeStub(d)))},extraBind_:function(a,b){0==b?delete t[a]:t[a]=this},setFlexSize_:function(a,b){if(!this._cssflex||null==this.parent.getFlexContainer_()||b){var c=this.$n(),g=zk(c);a.height!==d&&("auto"==a.height?c.style.height="":""!=a.height||0===a.height&&!this.isFloating_()?this.setFlexSizeH_(c,g,a.height,b):c.style.height=this._height||"");a.width!==d&&("auto"==a.width?c.style.width="":""!=a.width||0===
a.width&&!this.isFloating_()?this.setFlexSizeW_(c,g,a.width,b):c.style.width=this._width||"")}},setFlexSizeH_:function(a,b,c,d){a.style.height=jq.px0(c-(d?0:b.marginHeight()))},setFlexSizeW_:function(a,b,c,d){a.style.width=jq.px0(c-(d?0:b.marginWidth()))},beforeChildrenFlex_:function(a){return!0},afterChildrenFlex_:function(a){},afterChildMinFlexChanged_:function(a,b){},ignoreFlexSize_:function(a){return!1},ignoreChildNodeOffset_:function(a){return!1},beforeMinFlex_:function(a){return null},beforeParentMinFlex_:function(a){},
afterChildrenMinFlex_:function(){},afterResetChildSize_:function(){},isExcludedHflex_:function(){return"absolute"==jq(this.$n()).css("position")},isExcludedVflex_:function(){return"absolute"==jq(this.$n()).css("position")},getChildMinSize_:function(a,b){return"w"==a?(a=zjq.minWidth(b),8<zk.ie&&zk.isLoaded("zul.wgt")&&b.$instanceof(zul.wgt.Image)&&(a=zk(b).offsetWidth()),a):zk(b).offsetHeight()},getParentSize_:function(a){a=zk(a);return{height:a.contentHeight(),width:a.contentWidth()}},getMarginSize_:function(a){return zk(this).sumStyles("h"==
a?"tb":"lr",jq.margins)},getContentEdgeHeight_:function(a){a=this.$n();var b=document.body,c=this.firstChild;for(c=c&&zk.isLoaded("zul.wgt")&&c.$instanceof(zul.wgt.Caption)?c.nextSibling:c;c&&c.ignoreFlexSize_("h");)c=c.nextSibling;c=c&&c.$n()||a.firstChild;var d=zk(a).padBorderHeight();if(c)for(c=c.parentNode;c&&1==c.nodeType&&a!=c&&c!=b;){var e=zk(c);d+=e.padBorderHeight()+e.sumStyles("tb",jq.margins);c=c.parentNode}return d},getContentEdgeWidth_:function(a){a=this.$n();var b=document.body,c=this.firstChild;
for(c=c&&zk.isLoaded("zul.wgt")&&c.$instanceof(zul.wgt.Caption)?c.nextSibling:c;c&&c.ignoreFlexSize_("w");)c=c.nextSibling;c=c&&c.$n()||a.firstChild;var d=zk(a).padBorderWidth();if(c)for(c=c.parentNode;c&&1==c.nodeType&&a!=c&&c!=b;){var e=zk(c);d+=e.padBorderWidth()+e.sumStyles("lr",jq.margins);c=c.parentNode}return d},fixFlex_:function(){zFlex.fixFlex(this)},fixMinFlex_:function(a,b){return zFlex.fixMinFlex(this,a,b)},clearCachedSize_:function(){delete this._hflexsz;delete this._vflexsz},resetSize_:function(a){var b=
this.$n(),c=jq(b);if(-1==jq.inArray(c.css("overflow-y"),["auto","scroll"])&&-1==jq.inArray(c.css("overflow-x"),["auto","scroll"])||!b.scrollTop&&!b.scrollLeft)b.style["w"==a?"width":"height"]=""},getFlexContainer_:function(){return this.getCaveNode()},getFlexDirection_:function(){return null},afterClearFlex_:function(){},initDrag_:function(){var a=this.getDragNode();a&&(this._drag=new zk.Draggable(this,a,this.getDragOptions_(ha)),zk.ie9&&jq.nodeName(a,"img")&&jq(a).bind("mousedown",zk.$void))},cleanDrag_:function(){var a=
this._drag;if(a){var b;zk.ie9&&(b=this.getDragNode())&&jq.nodeName(b,"img")&&jq(b).unbind("mousedown",zk.$void);this._drag=null;a.destroy()}},getDragNode:function(){return this.$n()},getDragOptions_:function(a){return a},ignoreDrag_:function(a){return!1},getDrop_:function(a){if(this==a)return null;var b=this._droppable,c=a._draggable;if("true"==b)return this;if(b&&"true"!=c){b=this._dropTypes;for(var d=b.length;d--;)if(c==b[d])return this}return this.parent?this.parent.getDrop_(a):null},dropEffect_:function(a){jq(this.$n()||
[])[a?"addClass":"removeClass"]("z-drag-over")},getDragMessage_:function(){if(jq.nodeName(this.getDragNode(),"tr","td","th")){var a=this.$n("real")||this.getCaveNode();return(a=a?a.innerText||"":"")?zUtl.encodeXML(a):a}},onDrop_:function(a,b){a=zk.copy({dragged:a.control},b.data);this.fire("onDrop",a,null,v.auDelay)},cloneDrag_:function(a,b){var c=this.getDragMessage_();"string"==typeof c&&9<c.length&&(c=c.substring(0,9)+"...");b=zk.DnD.ghost(a,b,c);a._orgcursor=document.body.style.cursor;document.body.style.cursor=
"pointer";jq(this.getDragNode()).addClass("z-dragged");return b},uncloneDrag_:function(a){document.body.style.cursor=a._orgcursor||"";jq(this.getDragNode()).removeClass("z-dragged")},onSize:function(){},onAfterSize:function(){if(this.desktop&&this.isListen("onAfterSize")){var a=this.getCaveNode(),b=a.offsetWidth;a=a.offsetHeight;if(this._preWidth!=b||this._preHeight!=a)this._preWidth=b,this._preHeight=a,this.fire("onAfterSize",{width:b,height:a})}},bindSwipe_:zk.$void,unbindSwipe_:zk.$void,bindDoubleTap_:zk.$void,
unbindDoubleTap_:zk.$void,bindTapHold_:zk.$void,unbindTapHold_:zk.$void,focus:function(a){return this.canActivate({checkOnly:!0})&&zk(this.$n()).isRealVisible()&&this.focus_(a)},focus_:function(a){if(zk(this.$n()).focus(a))return this.setTopmost(),!0;for(var b=this.firstChild;b;b=b.nextSibling)if(b.isRealVisible()&&b.focus_(a))return!0;return!1},canActivate:function(a){if(I)return!0;if(zk.busy&&(!a||!a.checkOnly))return jq.focusOut(),!1;var b=zk.currentModal;if(b&&!zUtl.isAncestor(b,this)&&!jq.isAncestor(b.$n(),
this.$n())){var c=this.getTopWidget();if(c&&c!=b&&c.getZIndex()>b.getZIndex())return!0;if(!a||!a.checkOnly){if((a=zk.currentFocus)&&zUtl.isAncestor(b,a)&&a.focus(0))return!0;b.focus(0)}return!1}return!0},smartUpdate:function(a,b,c){zAu.send(new zk.Event(this,"setAttr",[a,b]),0<=c?c:-1);return this},fireX:function(a,b){var c,d=a.currentTarget;a.currentTarget=this;try{var e=a.name,f=this._lsns[e],h=f?f.length:0;if(h)for(var l=0;l<h;){var k=f[l++],m=k[0];(k[1]||m[e]).call(m,a);if(a.stopped)return a}if(!a.auStopped){var p=
a.opts&&a.opts.toServer;if(p||this.inServer&&this.desktop){var n=p||this._asaps[e];null==n&&(c=this.$class._importantEvts)&&(c=c[e],null!=c&&(n=c));(null!=n||a.opts.sendAhead)&&this.sendAU_(a,n?0<=b?b:v.auDelay:-1)}}return a}finally{a.currentTarget=d}},beforeSendAU_:function(a,b){a=b.name;if("onClick"==a||"onRightClick"==a||"onDoubleClick"==a){var c=(a=b.domTarget)?zk.Widget.$(a):null;a&&(c.$instanceof(zk.Native)||zk.isLoaded("zhtml")&&c.$instanceof(zhtml.Widget)||zk.isLoaded("zul.wgt")&&c.$instanceof(zul.wgt.Html))||
(b.shallStop=!0)}},sendAU_:function(a,b,c){(a.target||this).beforeSendAU_(this,a);a=new zk.Event(this,a.name,a.data,a.opts,a.domEvent);a.opts.sendAhead?zAu.sendAhead(a,b):zAu.send(a,b)},shallIgnoreClick_:function(a){},fire:function(a,b,c,d){return this.fireX(new zk.Event(this,a,b,c),d)},listen:function(a,b){b=b?b:0;for(var c in a){var d=a[c];d=jq.isArray(d)?[d[0]||this,d[1]]:"function"==typeof d?[this,d]:[d||this,null];d.priority=b;var e=this._lsns[c];if(e)for(var f=e.length;;){if(0>--f||e[f].priority>=
b){e.splice(f+1,0,d);break}}else this._lsns[c]=[d]}return this},unlisten:function(a){var b;a:for(b in a)for(var c=a[b],d=this._lsns[b],e,f=d?d.length:0;f--;)if(e=d[f],c=jq.isArray(c)?[c[0]||this,c[1]]:"function"==typeof c?[this,c]:[c||this,null],e[0]==c[0]&&e[1]==c[1]){d.splice(f,1);continue a}return this},isListen:function(a,b){var c=this._asaps[a];if(c)return!0;if(b){if(b.asapOnly)return(c=this.$class._importantEvts)&&c[a];if(b.any&&(null!=c||(c=this.$class._importantEvts)&&null!=c[a]))return!0}return(a=
this._lsns[a])&&a.length},setListeners:function(a){for(var b in a)this.setListener(b,a[b])},setListeners0:function(a){for(var b in a)this.setListener0(b,a[b])},setListener:function(a,b){jq.isArray(a)&&(b=a[1],a=a[0]);var c=this._bklsns,d=c[a],e={};d&&(delete c[a],e[a]=d,this.unlisten(e));b&&(e[a]=c[a]="function"!=typeof b?new Function("var event=arguments[0];"+b):b,this.listen(e))},setListener0:function(a,b){jq.isArray(a)&&(b=a[1],a=a[0]);var c=this._bklsns,d={};b&&(d[a]=c[a]="function"!=typeof b?
new Function("var event=arguments[0];"+b):b,this.listen(d))},setOverride:function(a,b){jq.isArray(a)&&(b=a[1],a=a[0]);if(b){var c="$"+a;null==this[c]&&this[a]&&(this[c]=this[a]);this[a]=b}else c="$"+a,this[a]=this[c],delete this[c]},setOverrides:function(a){for(var b in a)this.setOverride(b,a[b])},doSelect_:function(a){if(!a.stopped){var b=this.parent;b&&b.doSelect_(a)}},doTooltipOver_:function(a){if(!a.stopped){var b=this.parent;b&&b.doTooltipOver_(a)}},doTooltipOut_:function(a){if(!a.stopped){var b=
this.parent;b&&b.doTooltipOut_(a)}},doClick_:function(a){if(F(this,a)){var b=this.parent;b&&b.doClick_(a)}},doDoubleClick_:function(a){if(F(this,a)){var b=this.parent;b&&b.doDoubleClick_(a)}},doRightClick_:function(a){if(F(this,a)){var b=this.parent;b&&b.doRightClick_(a)}},doMouseOver_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doMouseOver_(a)}},doMouseOut_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doMouseOut_(a)}},doMouseDown_:function(a){if(!this.fireX(a).stopped){var b=
this.parent;b&&b.doMouseDown_(a)}},doMouseUp_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doMouseUp_(a)}},doMouseMove_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doMouseMove_(a)}},doKeyDown_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doKeyDown_(a)}},doKeyUp_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doKeyUp_(a)}},doKeyPress_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doKeyPress_(a)}},doPaste_:function(a){if(!this.fireX(a).stopped){var b=
this.parent;b&&b.doPaste_(a)}},doSwipe_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doSwipe_(a)}},doFocus_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doFocus_(a)}},doBlur_:function(a){if(!this.fireX(a).stopped){var b=this.parent;b&&b.doBlur_(a)}},doResizeScroll_:function(){var a=this.parent;a&&a.doResizeScroll_()},domListen_:function(a,b,c,d){this.$weave||(b=e(this,b,c,d),jq(a,zk).bind(b[0],b[1]));return this},domUnlisten_:function(a,b,c,d){this.$weave||(b=e(this,
b,c,d),jq(a,zk).unbind(b[0],b[1]));return this},listenOnFitSize_:function(){this._fitSizeListened||"min"!=this._hflex&&"min"!=this._vflex||(zWatch.listen({onFitSize:[this,zFlex.onFitSize]}),this._fitSizeListened=!0)},unlistenOnFitSize_:function(){this._fitSizeListened&&(zWatch.unlisten({onFitSize:[this,zFlex.onFitSize]}),delete this._fitSizeListened)},fromPageCoord:function(a,b){var c=zk(this).revisedOffset();return[a-c[0],b-c[1]]},isWatchable_:function(a,b,c){a="onShow"!=a;if(b)return this.isRealVisible({dom:!0,
strict:a,until:b,cache:c});for(b=this;b.$instanceof(zk.Native);){if(!b._visible)return!1;if(!(b=b.parent))return!0}return zk(b.$n()).isRealVisible(a)},toJSON:function(){return this.uuid},ignoreDescendantFloatUp_:function(a){return!1},getDomEvtInf_:function(a,b,c,d){return e(a,b,c,d)},shallFireSizedLaterWhenAddChd_:function(){return!1}},{disableChildCallback:function(){z=!0},enableChildCallback:function(){z=!1},$:function(a,b){a&&a.zk&&a.zk.jq==a&&(a=a[0]);if(!a||v.isInstance(a))return a;var c,d;if("string"==
typeof a){if("#"==(d=a.charAt(0)))a=a.substring(1);else if("$"==d)return(d=y[a.substring(1)])?d[0]:null;(c=t[a])||(c=0<=(d=a.indexOf("-"))?t[a.substring(0,d)]:null);return c?c:jq(a).zk.$()}if(!a.nodeType){var e,f;a=((e=a.originalEvent)?e.z$target:null)||((e=a.target)&&(f=e.z$proxy)?f:e)||a}b=b||{};if(b.exact)return t[a.id];for(;a;a=zk(a).vparentNode(!0)){try{if((d=a.id||(a.getAttribute?a.getAttribute("id"):""))&&"string"==typeof d){if(c=t[d])return c;var h=d.indexOf("-");if(0<=h&&(c=t[d=d.substring(0,
h)])){if(!b.child)return c;var l=c.$n();if(l&&jq.isAncestor(l,a))return c}}}catch(ba){zk.debugLog(ba.message||ba)}if(b.strict)break}return null},mimicMouseDown_:function(a,b,c){var d=zk.currentModal;d&&!a?(b=zk.currentFocus)&&zUtl.isAncestor(d,b)?b.focus(0):d.focus(0):a&&!a.canActivate()||b||(zk._prevFocus=zk.currentFocus,zk.currentFocus=a,zk._cfByMD=!0,setTimeout(function(){zk._cfByMD=!1;zk._prevFocus=null},0));if(a)zWatch.fire("onFloatUp",a,{triggerByClick:c});else for(var e in zk.Desktop.all)zWatch.fire("onFloatUp",
zk.Desktop.all[e])},getElementsByName:function(a){var b=[],c;for(c in t)if("*"==a||a==t[c].widgetName){var d=t[c].$n(),e;d&&(e=v.$(t[c]))&&b.push({n:d,w:e})}if(b.length){b.sort(function(a,b){a=a.w;b=b.w;if(a.bindLevel<b.bindLevel){do b=b.parent;while(a&&a.bindLevel<b.bindLevel)}else if(a.bindLevel>b.bindLevel){do a=a.parent;while(b&&a.bindLevel>b.bindLevel)}for(var c=a.parent,d=b.parent;c&&d&&c!=d;)a=c,b=d,c=c.parent,d=d.parent;return a&&b?a.getChildIndex()-b.getChildIndex():0});a=[];for(c=b.length;c--;)a.unshift(b[c].n);
b=a}return b},getElementsById:function(a){for(var b=[],c=y[a],d=c?c.length:0;d--;)(a=c[d].$n())&&b.unshift(a);return b},uuid:function(a){var b="object"==typeof a?a.id||"":a,c=b.indexOf("-");return 0<=c?b.substring(0,c):a},nextUuid:function(){return"_z_"+ea++},isAutoId:function(a){return!a},register:function(a,b){var c=zk.$import(a);c.prototype.className=a;var d=a.lastIndexOf(".");0<=d&&(a=a.substring(d+1));M[c.prototype.widgetName=a.toLowerCase()]=c;b&&(c.prototype.blankPreserved=!0)},getClass:function(a){return M[a]},
newInstance:function(a,b){var c=M[a];if(!c)throw zk.error(c="Unknown widget: "+a),c;return new c(b)},auDelay:38,_bindrod:function(a){this._bind0(a);a.z_rod||(a.z_rod=9);for(a=a.firstChild;a;a=a.nextSibling)this._bindrod(a)},_bind0:function(a){t[a.uuid]=a;a.id&&this._addGlobal(a)},_addGlobal:function(a){var b=y[a.id];b?b.push(a):y[a.id]=[a]},_unbindrod:function(a,b,c){this._unbind0(a);if(!b||9===a.z_rod)for(c||delete a.z_rod,a=a.firstChild;a;a=a.nextSibling)this._unbindrod(a,!0,c),a.$instanceof(zk.Native)&&
zAu._storeStub(a)},_unbind0:function(a){a.id&&this._rmGlobal(a);delete t[a.uuid];a.desktop=null;a.clearCache()},_rmGlobal:function(a){var b=y[a.id];b&&(b.$remove(a),b.length||delete y[a.id])}});zk.$=function(a,b){return zk.Widget.$(a,b)};zkreg=v.register;zk.RefWidget=zk.$extends(zk.Widget,{className:"zk.RefWidget",widgetName:"refWidget",bind_:function(){var a=v.$(this.uuid);if(a){var b;(b=a.parent)&&k(b,a);m(this,a);this.parent=this.nextSibling=this.previousSibling=null;q(a)}else zk.error("RefWidget not found: "+
this.uuid)}});zk.Desktop=zk.$extends(zk.Widget,{z_virnd:!0,bindLevel:0,className:"zk.Desktop",widgetName:"desktop",$init:function(a,b,c,d,e){this.$super("$init",{uuid:a});var f=zk.Desktop,g=f.all,h;this._aureqs=[];(h=g[a])?(null!=c&&(h.updateURI=c),null!=b&&(h.contextURI=b)):(this.uuid=this.id=a,this.updateURI=null!=c?c:zk.updateURI,this.contextURI=null!=b?b:zk.contextURI,this.requestPath=d||"",this.stateless=e,g[a]=this,++f._ndt);f._dt=h||this;f.sync(6E4)},bind_:zk.$void,unbind_:zk.$void,setId:zk.$void,
isRealVisible:function(){return!0}},{$:function(a){var b=zk.Desktop,c;if(a){if(b.isInstance(a))return a;if(c=b.all[a])return c;for(c=v.$(a);c;c=c.parent){if(c.desktop)return c.desktop;if(c.$instanceof(b))return c}return null}if(c=b._dt)return c;for(a in b.all)return b.all[a]},all:{},_ndt:0,sync:function(a){var b=zk.Desktop,c=b.all,d;D&&(clearTimeout(D),D=null);if(0<=a)D=setTimeout(function(){D=null;b.sync()},a);else{for(var e in c)!Q(d=c[e])&&d.firstChild&&(delete c[e],--b._ndt,b._dt==d&&(b._dt=null),
zAu._rmDesktop(d));if(!b._dt)for(e in c){b._dt=c[e];break}}return b._dt}});zk._wgtutl={setUuid:function(a,b){b||(b=v.nextUuid());if(b!=a.uuid){var c=a.$n();if(c){if(!a.rawId)throw"id immutable after bound";c.id=b;delete t[a.uuid];t[b]=a;a.clearCache()}a.uuid=b}},replace:function(a,b,c){m(a,b);a.parent=a.nextSibling=a.previousSibling=null;if(c){b.lastChild=a.lastChild;for(c=b.firstChild=a.firstChild;c;c=c.nextSibling)c.parent=b;b.nChildren=a.nChildren;a.firstChild=a.lastChild=null;a.nChildren=0}a.nChildren=
0},autohide:function(){if(p.length)for(var a=["IFRAME","APPLET"],b=2;b--;){var c=document.getElementsByTagName(a[b]),d=c.length;a:for(;d--;){var e=c[d];var f=zk(e),h;if(((h=f.isVisible(!0))||E.$contains(e))&&(b||e.getAttribute("z_autohide")||e.getAttribute("z.autohide"))){for(var k=W(e),m=p.length;m--;){var n=p[m].node;var q=W(n);if(q==k||(q?zk.parseInt(q.style.zIndex):0)<(k?zk.parseInt(k.style.zIndex):0)||!f.isOverlapped(n))n=void 0;else{if(h){E.push(e);try{e.setAttribute("z_ahvis",e.style.visibility)}catch(ca){zk.debugLog(ca.message||
ca)}e.style.visibility="hidden"}n=!0}if(n)continue a}E.$remove(e)&&(e.style.visibility=e.getAttribute("z_ahvis")||"")}}}else for(;e=E.shift();)e.style.visibility=e.getAttribute("z_ahvis")||""}}})();
zk.Page=zk.$extends(zk.Widget,{z_virnd:!0,_style:"width:100%;height:100%",className:"zk.Page",widgetName:"page",$init:function(d,f){this._fellows={};this.$super("$init",d);f&&zk.Page.contained.push(this)},redraw:_zkf=function(d){d.push("<div",this.domAttrs_(),">");for(var f=this.firstChild;f;f=f.nextSibling)f.redraw(d);d.push("</div>")}},{$redraw:_zkf,contained:[]});zkreg("zk.Page",!0);
zk.Body=zk.$extends(zk.Page,{$init:function(d){this.$super("$init",{});this.desktop=d},$n:function(d){return d?null:document.body},redraw:zk.$void});
zk.Native=zk.$extends(zk.Widget,{z_virnd:!0,className:"zk.Native",widgetName:"native",$n:function(d){return!d&&this.id?jq("#"+this.id):this.$supers("$n",arguments)},redraw:_zkf=function(d){var f=this.prolog,e;if(f){if(this.$instanceof(zk.Native)&&!this.id&&(e=this.parent)&&!e.z_virnd){e=0;var h=f.length,k,m;for(k={whitespace:1};e<h&&"<"!=(m=f.charAt(e));++e)if(!zUtl.isChar(m,k)){e=h;break}if(e<h){for(k={upper:1,lower:1,digit:1,"-":1};++e<h&&zUtl.isChar(f.charAt(e),k););f=f.substring(0,e)+' id="'+
this.uuid+'"'+f.substring(e)}}this.domExtraAttrs&&(e=-1==f.indexOf("/>")?">":"/>",f=f.replace(e,this.domExtraAttrs_()+e));d.push(zk.Native.replaceScriptContent(f.replace(/ sclass=/ig," class=")));this.value&&f.startsWith("<textarea")&&d.push(this.value)}for(f=this.firstChild;f;f=f.nextSibling)f.redraw(d);(f=this.epilog)&&d.push(f)}},{$redraw:_zkf,replaceScriptContent:function(){var d=new RegExp(/<script[^>]*>([\s\S]*?)<\/script>/g),f=new RegExp(/<\/(?=script>)/ig);return function(e){try{var h=e.match(d);
if(h)for(var k=0,m=h.length;k<m;k++){var n=h[k];if(17<=n.length){var q=n.substring(8,n.length-9),w=zk.Native.replaceScriptContent(q);q!=w&&(e=e.replace(q,w))}}else return e.replace(f,"<\\/");return e}catch(B){zk.debugLog(B.message||B)}return e}}()});
zk.Macro=zk.$extends(zk.Widget,{className:"zk.Macro",widgetName:"macro",_enclosingTag:"div",$init:function(){this._fellows={};this.$supers("$init",arguments)},$define:{enclosingTag:function(){this.rerender()}},redraw:function(d){d.push("<",this._enclosingTag,this.domAttrs_(),">");for(var f=this.firstChild;f;f=f.nextSibling)f.redraw(d);d.push("</",this._enclosingTag,">")}});zkservice={$:function(d,f){if(f=zk.Widget.$(d,f))return f.$service();zk.error("Not found ZK Service with ["+d+"]")}};
(function(){zk.Service=zk.$extends(zk.Object,{$init:function(d,f){this.$supers("$init",arguments);this.$view=d;this.$currentTarget=f;this._aftercmd={}},after:function(d,f){!f&&jq.isFunction(d)&&(f=d,d=this._lastcmd);var e=this._aftercmd[d];e?e.push(f):this._aftercmd[d]=[f];return this},unAfter:function(d,f){for(var e=(d=this._aftercmd[d])?d.length:0;e--;)d[e]==f&&d.splice(e,1);return this},destroy:function(){this.$currentTarget=this.$view=this._aftercmd=null},command:function(d,f,e,h){var k=this.$view;
if(e){if(e.duplicateIgnore&&e.duplicateIgnore){var m={};m["onAuServiceCommand$"+d]=!0;e.duplicateIgnore=m}e.repeatIgnore&&e.repeatIgnore&&(m={},m["onAuServiceCommand$"+d]=!0,e.repeatIgnore=m)}zAu.send(new zk.Event(k,"onAuServiceCommand$"+d,{cmd:d,args:f},zk.copy({toServer:!0},e)),void 0!=h?h:38);this._lastcmd=d;return this},$doAfterCommand:function(d,f){d=this._aftercmd[d];for(var e=0,h=d?d.length:0;e<h;e++)d[e].apply(this,[f])}})})();
zk.Skipper=zk.$extends(zk.Object,{skipped:function(d,f){return d.caption!=f},skip:function(d,f){if((d=jq(f||d.getCaveNode(),zk)[0])&&d.firstChild){var e=(f=zk.currentFocus)&&f.getInputNode;e&&11>zk.ie&&(zk.cfrg=zk(f.getInputNode()).getSelectionRange());d.parentNode.removeChild(d);e&&zk.chrome&&(zk.currentFocus=f);return d}},restore:function(d,f){if(f){d=jq(f.id,zk)[0];for(var e;e=f.firstChild;)f.removeChild(e),d.appendChild(e),zjq._fixIframe(e)}}});zk.Skipper.nonCaptionSkipper=new zk.Skipper;
zk.NoDOM={bind_:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();this.$supers("bind_",d.args);var f=this.$n("tmp"),e=this.getZclass()+" "+this.uuid,h=e+" end";if(f){e=document.createComment(e+" start");h=document.createComment(h);var k=f.parentNode;k.insertBefore(e,f);var m=f,n=this.lastChild;if(n)if("nodom"==n.getMold())m=n._endNode;else{var q=n.$n();q||(q=jq(n.uuid,zk)[0]);q&&(m=q)}k.insertBefore(h,m.nextSibling);this._startNode=e;this._endNode=h;e=jq("#_z_nodomfs0");
0==e.length&&(e=document.createElement("div"),e.id="_z_nodomfs0",document.body.appendChild(e),e=jq("#_z_nodomfs0"));f.id=this.uuid+"-fake";e.append(f)}d.stop=!0}},removeHTML_:function(d){if("nodom"==this.getMold()){for(var f=this.$getInterceptorContext$(),e=this._startNode?this._startNode.nextSibling:null;e&&e!=this._endNode;)next=e.nextSibling,jq(e).remove(),e=next;jq(this._startNode).remove();jq(this._endNode).remove();jq(d).remove();this.clearCache();f.stop=!0}},setDomVisible_:function(d,f,e){if("nodom"==
this.getMold()){d=this.$getInterceptorContext$();for(var h=this.firstChild;h;h=h.nextSibling)f?h.setDomVisible_(h.$n(),h.isVisible(),e):h.setDomVisible_(h.$n(),f,e);d.stop=!0}},isRealVisible:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();d.result=this._visible&&(this.parent?this.parent.isRealVisible():!0);d.stop=!0}},getFirstNode_:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();d.result=this._startNode;d.stop=!0}},insertChildHTML_:function(d,
f,e){"nodom"!=this.getMold()||f||(f=this.$getInterceptorContext$(),jq(this._endNode).before(d.redrawHTML_()),d.bind(e),f.stop=!0)},detach:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();if(this.parent)this.parent.removeChild(this);else{var f=zk.currentFocus;f&&zUtl.isAncestor(this,f)&&(zk.currentFocus=null);this.$n()&&(this.removeHTML_(),this.unbind())}d.stop=!0}},getOldWidget_:function(d){"nodom"==this.getMold()&&(d=this.$getInterceptorContext$(),d.result=this._oldWgt,
d.stop=!0)},replaceHTML:function(d,f,e,h,k){if("nodom"==this.getMold()){var m=this.$getInterceptorContext$();f||(f=this.desktop,zk.Desktop._ndt||zk.stateless());var n=this.getOldWidget_(d);if(n){for(var q=n.firstChild;q;q=q.nextSibling)n.removeChildHTML_(q,!1);n.unbind(e)}jq(this._endNode).remove();jq(d).remove();jq(this._startNode).replaceWith(this.redrawHTML_(e,h));this.bind(f,e);if(!e)if(jq.isArray(k)){var w=this;k.push(function(){zUtl.fireSized(w)})}else zUtl.fireSized(this);m.result=this;m.stop=
!0}},replaceWidget:function(d){"nodom"==this.getMold()&&(this.$getInterceptorContext$(),d._startNode=this._startNode,d._endNode=this._endNode,d._oldWgt=this)},$n:function(d){if(!d&&"nodom"==this.getMold()){d=this.$getInterceptorContext$();var f=this._node;f||!this.desktop||this._nodeSolved||(this._node=f=jq(this.uuid+"-fake",zk)[0],this._nodeSolved=!0);d.result=f;d.stop=!0}},redraw:function(d){if("nodom"==this.getMold()){var f=this.$getInterceptorContext$();d.push('<div id="',this.uuid,"-tmp",'" style="display:none"></div>');
for(var e=this.firstChild;e;e=e.nextSibling)e.redraw(d);f.stop=!0}},ignoreFlexSize_:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();d.stop=!0;d.result=!0}},ignoreChildNodeOffset_:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();d.stop=!0;d.result=!0}},isExcludedHflex_:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();d.stop=!0;d.result=!0}},isExcludedVflex_:function(){if("nodom"==this.getMold()){var d=this.$getInterceptorContext$();
d.stop=!0;d.result=!0}}};
function zkopt(d){for(var f in d){var e=d[f];switch(f){case "pd":zk.procDelay=e;break;case "td":zk.tipDelay=e;break;case "art":zk.resendTimeout=e;break;case "dj":zk.debugJS=e;break;case "kd":zk.keepDesktop=e;break;case "pf":zk.pfmeter=e;break;case "ta":zk.timerAlive=e;break;case "gd":zk.groupingDenied=e;break;case "to":zk.timeout=e;zAu._resetTimeout();break;case "ed":switch(e){case "e":zk.feature.ee=!0;case "p":zk.feature.pe=!0}break;case "eu":zAu.setErrorURI(e);break;case "ppos":zk.progPos=e;break;
case "hs":zk.historystate.enabled=e;break;case "eup":zAu.setPushErrorURI(e)}}};
