zk.load('zul,zul.wgt',function(){if(zk._p=zkpi('zul.box'))try{
zul.box.Layout=zk.$extends(zk.Widget,{_spacing:"5px",$define:{spacing:function(){var a=this.$n(),b=this.isVertical_(),c=this._spacing;a&&jq(a).children("div:not(:last-child)").css("padding-"+(b?"bottom":"right"),c&&"auto"!=c?c:"")}},_chdextr:function(a){return a.$n("chdex")||a.$n()},insertChildHTML_:function(a,b,c){if(b)jq(this._chdextr(b)).before(this.encloseChildHTML_(a));else{b=jq(this.$n());var e=this._spacing;b.children("div:last-child").css("padding-"+(this.isVertical_()?"bottom":"right"),e&&
"auto"!=e?e:"");b.append(this.encloseChildHTML_(a))}a.bind(c)},bind_:function(){this.$supers(zul.box.Layout,"bind_",arguments);zWatch.listen({onResponse:this})},unbind_:function(){zWatch.unlisten({onResponse:this});this.$supers(zul.box.Layout,"unbind_",arguments)},syncSize:function(){this._shallSize=!1;if(this.desktop)for(var a=this.firstChild;a;a=a.nextSibling)if(a._nvflex||a._nhflex){zUtl.fireSized(this);break}},onResponse:function(){this._shallSize&&this.syncSize()},onChildVisible_:function(a){this.$supers("onChildVisible_",
arguments);if(this.desktop){var b=a.$n("chdex");this._shallSize=!0;b&&(b.style.display=a.isVisible()?"":"none")}},onChildAdded_:function(a){this.$supers("onChildAdded_",arguments);if(this.desktop){var b=a.$n("chdex");this._shallSize=!0;b&&(b.style.display=a.isVisible()?"":"none")}},onChildRemoved_:function(){this.$supers("onChildRemoved_",arguments);this.desktop&&(this._shallSize=!0)},removeChildHTML_:function(a){this.$supers("removeChildHTML_",arguments);jq(a.uuid+"-chdex",zk).remove();"auto"!=this._spacing&&
this.lastChild==a&&jq(this.$n()).children("div:last-child").css("padding-"+(this.isVertical_()?"bottom":"right"),"")},encloseChildHTML_:function(a,b){var c=new zk.Buffer,e=this.isVertical_(),n=this._spacing;c.push('
");a.redraw(c);
c.push("
");if(!b)return c.join("");b.push(c.join(""))},isVertical_:zk.$void,_resetBoxSize:function(a){for(var b=this.firstChild;b;b=b.nextSibling){var c=b.$n("chdex");if(c){if(a&&b._nvflex&&"min"!=b.getVflex()){var e;(e=b.$n())&&(e.scrollTop||e.scrollLeft)||b.setFlexSize_({height:"",width:""});c&&(c.style.height="")}!a&&b._nhflex&&"min"!=b.getHflex()&&((e=b.$n())&&(e.scrollTop||e.scrollLeft)||b.setFlexSize_({height:"",width:""}),c&&(c.style.width=""))}}},afterResetChildSize_:function(a){for(var b=
this.firstChild;b;b=b.nextSibling){var c=b.$n("chdex");c&&("h"==a&&(c.style.height=""),"w"==a&&(c.style.width=""),c.style.minWidth="1px")}},resetSize_:function(a){this.$supers(zul.box.Layout,"resetSize_",arguments);for(var b=this.isVertical_(),c=this.firstChild;c;c=c.nextSibling)if(b?c._nvflex&&"min"!=c.getVflex():c._nhflex&&"min"!=c.getHflex()){var e=c.$n("chdex");e&&("h"==a&&(e.style.height=""),"w"==a&&(e.style.width=""))}},getChildMinSize_:function(a,b){var c=b.$n();if("w"==a&&b._hflex&&this.isVertical_()){a=
b.nextSibling;for(b=0;a;a=a.nextSibling)a._hflex||(c=zjq.minWidth(a.$n()),b=c>b?c:b);return b}return"h"==a?zk(c.parentNode).contentHeight():zjq.minWidth(c)},getContentEdgeHeight_:function(){for(var a=0,b=this.firstChild;b;b=b.nextSibling)a+=zk(b.$n("chdex")).paddingHeight();return a},getContentEdgeWidth_:function(){for(var a=0,b=this.firstChild;b;b=b.nextSibling)a+=zk(b.$n("chdex")).paddingWidth();return a},beforeChildrenFlex_:function(a){this._shallSize=!1;a._flexFixed=!0;var b=this.isVertical_(),
c=[],e=b?0:1,n=[],q=b?1:0,l=this.$n(),m=a.getParentSize_(l),f=zk(l);l=m.height;m=m.width;var h=this.firstChild,d;zk.mounting||this._resetBoxSize(b);f.hasVScroll()&&(m-=d=jq.scrollbarWidth());for(f.hasHScroll()&&(l-=d||jq.scrollbarWidth());h;h=h.nextSibling){var k;if("nodom"==h.getMold()){if(d=h.firstChild)d=d.$n().parentNode,f=zk(d),b?l-=f.offsetHeightDoubleValue()+f.marginHeight():m-=d.offsetWidth+f.marginWidth()}else if(h.isVisible()&&!(k=zk(h)).hasVParent()){d=h;var p=d.$n();f=p.parentNode;var g=
zk(f);if(h&&h._nvflex)if(d!==a&&(d._flexFixed=!0),"min"==d._vflex){d.fixMinFlex_(p,"h");var r=p.offsetHeight+k.marginHeight()+g.padBorderHeight();f.style.height=jq.px0(r);b&&(l-=f.offsetHeight+g.marginHeight())}else c.push(d),b&&(e+=d._nvflex,l-=g.marginHeight());else b&&(l-=g.offsetHeightDoubleValue()+g.marginHeight());d&&d._nhflex?(d!==a&&(d._flexFixed=!0),"min"==d._hflex?(d.fixMinFlex_(p,"w"),d=p.offsetWidth+k.marginWidth()+g.padBorderWidth(),f.style.width=jq.px0(g.revisedWidth(d)),b||(m-=f.offsetWidth+
g.marginWidth())):(n.push(d),b||(q+=d._nhflex,m-=g.marginWidth()))):b||(m-=f.offsetWidth+g.marginWidth())}}for(k=0zk.ie&&0zk.ie&&0c&&(c=e);b.style.height=jq.px0(c)}else if(this.isVertical_()){c=0;for(a=b.firstChild;a;a=a.nextSibling)e=a.firstChild.offsetWidth+zk(a.firstChild).marginWidth(),e>c&&(c=e);8=b}},"es6","es3");
$jscomp.polyfill("String.prototype.endsWith",function(d){return d?d:function(d,e){var f=$jscomp.checkStringArgs(this,d,"endsWith");d+="";void 0===e&&(e=f.length);e=Math.max(0,Math.min(e|0,f.length));for(var a=d.length;0=a}},"es6","es3");
(function(){function d(a){return a&&a.startsWith("0")&&!zk.parseInt(a)}function f(a,b){var c="",k=a._spacing,y=d(k),e=a.isVertical();k=k&&"auto"!=k?(e?"height:":"width:")+k:"";c+=""+(e?"":"")+zUtl.img0+(e?" | ":"")}function e(){var a=this.isVertical();if(this._isStretchAlign()||a&&this._nhflex||!a&&this._nvflex)for(var b=this.firstChild;b;b=
b.nextSibling)if(b.isVisible()){var c=b.$n();if(a){if(b._nhflex&&0d&&(c.style.width=k)}}!b.$instanceof(zul.wgt.Cell)&&this._nhflex&&(c=b.$n("chdex"),c.style.width="")}else b._nvflex&&0d&&(c.style.height=k)),
!b.$instanceof(zul.wgt.Cell)&&this._nvflex&&(c=b.$n("chdex"),c.style.height="")}var e;zk.webkit&&!a&&(e=this.$n().style.height)&&(a=this.$n("frame"),a.style.height="",a.style.height=0");if(!d){k.push("")}a.redraw(k);d||k.push(" | ");k.push("")}else d||k.push('"),a.redraw(k),d||k.push(" | ");(d=a.nextSibling)&&!d.$instanceof(zul.wgt.Popup)?k.push(f(this,a)):b&&(a=a.previousSibling)&&k.unshift(f(this,a));if(!c)return k.join("");a=0;for(b=k.length;a<
b;++a)c.push(k[a])},_resetBoxSize:function(a){a=this.isVertical();var b=-1,c=this._sizes;if(!zk.mounting)if(a)for(a=this.firstChild;a;a=a.nextSibling){if(!c||a.$instanceof(zul.box.Splitter)||a.$instanceof(zul.wgt.Cell)||++b,a._nvflex&&"min"!=a.getVflex()){a.setFlexSize_({height:"",width:""});var k=a.$n("chdex");if(k){var d;(d=a.$n())&&(d.scrollTop||d.scrollLeft)||(k.style.height=c&&bg?zk.Widget.$(q.id):null;g=this._hflexsz;var x=zk.chrome&&g;p&&h&&!h.$instanceof(zul.box.Splitter)&&!h.$instanceof(zul.wgt.Cell)&&(++n,nzk.ie&&l.id&&l.id.endsWith("-chdex2")&&l.style.height&&l.style.height.endsWith("px")?zk.parseInt(l.style.height):r.offsetHeight();v=(v&&!b?zk.parseInt(p[n]):r.offsetWidth())+r.marginWidth();r=z+r.marginHeight();x&&(m.style.width=
jq.px0(g));h&&h._nvflex?(h!==a&&(h._flexFixed=!0),"min"==h._vflex?(h.fixMinFlex_(q,"h"),b&&(u-=r)):(c.push(h),b&&(d+=h._nvflex))):b&&(u-=r);h&&h._nhflex?(h!==a&&(h._flexFixed=!0),"min"==h._hflex?(h.fixMinFlex_(q,"w"),b||(t-=v)):(e.push(h),b||(f+=h._nhflex))):b||(t-=v)}}l=0zk.ie&&0');for(a=this.firstChild;a;a=a.nextSibling)this.encloseChildHTML_(a,!1,b);b.push("
|
")};
;zk._m['vertical']=vbox$mold$=function(b){delete this._splitterKid;for(var a=this.firstChild;a;a=a.nextSibling)if(a.$instanceof(zul.box.Splitter)){this._splitterKid=!0;break}this._configPack();b.push("');for(a=this.firstChild;a;a=a.nextSibling)this.encloseChildHTML_(a,!1,b);b.push(" |
")};
;zkmld(zk._p.p.Box,zk._m);
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(c,a,b){if(null==c)throw new TypeError("The 'this' value for String.prototype."+b+" must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype."+b+" must not be a regular expression");return c+""};$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.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,a,b){c!=Array.prototype&&c!=Object.prototype&&(c[a]=b.value)};$jscomp.getGlobal=function(c){c=["object"==typeof globalThis&&globalThis,c,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var a=0;a=e}},"es6","es3");
(function(){function c(a,b,d){var e=a.getCollapse();if(e&&"none"!=e){var c=a.$n("chdex"),h=a.isVertical(),g=a.$class,n="before"==e;e=n?g._prev(c):g._next(c);var k=zk.Widget.$(e),l=h?"height":"width",f=0;if(e){b||zWatch.fireDown("onHide",k);k.setDomVisible_(e,b);k.parent._fixChildDomVisible(k,b);var m=h&&e.cells.length?e.cells[0]:e;f=zk.parseInt(m.style[l]);!n&&k&&!k.nextSibling&&(m=a.$n("chdex2"))&&(m.style.display=b?"":"none",f+=zk.parseInt(m.style[l]))}if(c=n?g._next(c):g._prev(c))m=h&&c.cells.length?
c.cells[0]:c,(h=m.style[l])&&-1f&&(f=0),m.style[l]=f+"px");e&&b&&zUtl.fireShown(k);c&&zUtl.fireSized(zk.Widget.$(c),-1);a._fixNSDomClass();a._fixbtn();a._fixszAll();d&&!d.sendOnOpen||a.fire("onOpen",{open:b})}}zul.box.Splitter=zk.$extends(zul.Widget,{_collapse:"none",_open:!0,$define:{open:function(a,b){this.desktop&&c(this,a,b)}},isVertical:function(){var a=this.parent;return!a||a.isVertical()},getOrient:function(){var a=this.parent;return a?
a.getOrient():"vertical"},getCollapse:function(){return this._collapse},setCollapse:function(a){if(this._collapse!=a){var b=this._open;b||this.setOpen(!0,{sendOnOpen:!1});this._collapse=a;this.desktop&&(this._fixbtn(),this._fixsz());b||this.setOpen(!1,{sendOnOpen:!1})}},domClass_:function(a){var b=this.$supers("domClass_",arguments);a&&a.zclass||(b+=" "+this.$s("vertical"==this.getOrient()?"vertical":"horizontal"));return b},setZclass:function(){this.$supers("setZclass",arguments);this.desktop&&this._fixDomClass(!0)},
bind_:function(){this.$supers(zul.box.Splitter,"bind_",arguments);var a=this.parent;a&&!a._splitterKid&&a._bindWatch();zWatch.listen({onSize:this,beforeSize:this});this._fixDomClass();a=this.$n();var b=this.$class;if(!this.$weave)jq(this.$n("btn")).on("click",b.onclick);this._fixbtn();this._drag=new zk.Draggable(this,a,{constraint:this.getOrient(),ignoredrag:b._ignoresizing,ghosting:b._ghostsizing,overlay:!0,zIndex:12E3,initSensitivity:0,snap:b._snap,endeffect:b._endDrag});this._shallClose=!this._open},
unbind_:function(){zWatch.unlisten({onSize:this,beforeSize:this});var a=this.$class,b;(b=this.$n("btn"))&&jq(b).off("click",a.onclick);this._drag.destroy();this._drag=null;this.$supers(zul.box.Splitter,"unbind_",arguments)},_fixDomClass:function(a){var b=this.$n().parentNode;b&&(this.isVertical()&&(b=b.parentNode),b&&b.id.endsWith("chdex")&&(b.className=this.$s("outer")));a&&this._fixbtn()},_fixNSDomClass:function(){jq(this.$n())[this._open?"removeClass":"addClass"](this.$s("nosplitter"))},_fixbtn:function(){var a=
jq(this.$n("btn")),b=jq(this.$n("icon")),d=this.getCollapse();d&&"none"!=d?(d="before"==d,this._open||(d=!d),this.isVertical()?jq(this.$n("icon")).removeClass(d?"z-icon-caret-down":"z-icon-caret-up").addClass(d?"z-icon-caret-up":"z-icon-caret-down"):jq(this.$n("icon")).removeClass(d?"z-icon-caret-right":"z-icon-caret-left").addClass(d?"z-icon-caret-left":"z-icon-caret-right"),a.removeClass(this.$s("button-disabled")),b.show()):(a.addClass(this.$s("button-disabled")),b.hide())},setBtnPos_:function(a){var b=
this.$n("btn"),d=this.$n();a?b.style.marginLeft=(d.offsetWidth-b.offsetWidth)/2+"px":b.style.marginTop=(d.offsetHeight-b.offsetHeight)/2+"px"},_fixsz:_zkf=function(){if(this.isRealVisible()){var a=this.$n(),b=a.parentNode;b&&(b.style.width="",this.getCollapse(),this.isVertical()?(a.style.width="100%",this.setBtnPos_(!0)):(a.style.height=(zk.webkit?b.parentNode.clientHeight:b.clientHeight)+"px",this.setBtnPos_()));this._shallClose&&(delete this._shallClose,c(this,!1,{sendOnOpen:!1}))}},onSize:_zkf,
beforeSize:function(){this.$n().style[this.isVertical()?"width":"height"]="";this.$n("btn").style[this.isVertical()?"margin-left":"margin-top"]=""},_fixszAll:function(){for(var a,b=this;b=b.parent;)b.$instanceof(zul.box.Box)&&(a=b);a?this.$class._fixKidSplts(a):this._fixsz()}},{onclick:function(a){a=zk.Widget.$(a);var b=a.getCollapse();b&&"none"!=b&&a.setOpen(!a._open)},_ignoresizing:function(a,b,d){b=a.control;if(!b._open||b.$n("icon")==d.domTarget)return!0;a=a.run={};d=b.$n();var e=b.$n("chdex"),
c=zul.box.Splitter;a.prev=c._prev(e);a.next=c._next(e);if(!a.prev||!a.next)return!0;a.prevwgt=b.previousSibling;a.nextwgt=b.nextSibling;a.z_offset=zk(d).cmOffset();return!1},_ghostsizing:function(a,b,d){a=zk(a.node.parentNode);jq(document.body).append('');return jq("#zk_ddghost")[0]},_endDrag:function(a){var b=
a.control,d=b.isVertical();b.$n();var e=zul.box.Splitter,c=e._fixLayout(b),h="before"==b.getCollapse(),g=a.run;if(d){var n=g.z_point[1];g.next&&g.next.cells.length&&(g.next=g.next.cells[0]);g.prev&&g.prev.cells.length&&(g.prev=g.prev.cells[0])}else n=g.z_point[0];var k=g.next,l=g.prev,f=g.nextwgt,m=g.prevwgt;0>n&&(k=g.prev,l=g.next,n=-n,h=!h);n&&(k&&l&&e._doDragEndResize(d,[f,m],l,k,n,h),e._unfixLayout(c),b._fixszAll(),a.run=null)},_doDragEndResize:function(a,b,d,e,c,h){for(var g=[],n=[],k=[],l=["width",
"height"],f=0;2>f;f++)g[f]=l[f].charAt(0).toUpperCase()+l[f].slice(1);var m=a?g[1]:g[0],q=e["client"+m],r=q+d["client"+m];f=0;for(var p;2>f;f++)if(p=b[f])p.getHflex()&&(p.setHflex("false"),n[f]=!0),p.getVflex()&&(p.setVflex("false"),k[f]=!0),zWatch.fireDown("_preBeforeSizeReadOnly",p),zWatch.fireDown("beforeSize",p);q-=c;0>q&&(q=0);c=r-q;a=a?l[1]:l[0];e.style[a]=q+"px";d.style[a]=c+"px";h?d.style.overflow="hidden":e.style.overflow="hidden";for(f=0;2>f;f++){if((p=b[f])&&n[f])p["set"+g[0]]("100%");
if(p&&k[f])p["set"+g[1]]("100%");zUtl.fireSized(p,-1)}b=e["client"+m];r-=b;b!=q&&(e.style[a]=b+"px");r!=c&&(d.style[a]=r+"px")},_snap:function(a,b){var d=a.run,c=a.control;a=b[0];b=b[1];c.isVertical()?b<=d.z_offset[1]-d.prev.offsetHeight?b=d.z_offset[1]-d.prev.offsetHeight:(c=d.z_offset[1]+d.next.offsetHeight-c.$n().offsetHeight,b>c&&(b=c)):a<=d.z_offset[0]-d.prev.offsetWidth?a=d.z_offset[0]-d.prev.offsetWidth:(c=d.z_offset[0]+d.next.offsetWidth-c.$n().offsetWidth,a>c&&(a=c));d.z_point=[a-d.z_offset[0],
b-d.z_offset[1]];return[a,b]},_next:function(a){return jq(a).next().next()[0]},_prev:function(a){return jq(a).prev().prev()[0]},_fixKidSplts:function(a){if(a.isVisible()){var b=zul.box.Splitter;a.$instanceof(b)&&a._fixsz();for(a=a.firstChild;a;a=a.nextSibling)b._fixKidSplts(a)}}});zk.opera?(zul.box.Splitter._fixLayout=function(a){a=a.parent.$n();if("fixed"!=a.style.tableLayout){var b=[a,a.style.tableLayout];a.style.tableLayout="fixed";return b}},zul.box.Splitter._unfixLayout=function(a){a&&(a[0].style.tableLayout=
a[1])}):zul.box.Splitter._fixLayout=zul.box.Splitter._unfixLayout=zk.$void})();
zkreg('zul.box.Splitter');
zk._m={};
zk._m['os']=splitter$mold$=function(c){var a=this.$s("icon"),b=" z-icon-ellipsis-"+("vertical"==this.getOrient()?"h":"v");c.push("','','','',"
")};
;zk._m['default']=[zk._p.p.Splitter,'os'];
zkmld(zk._p.p.Splitter,zk._m);
zul.box.Hlayout=zk.$extends(zul.box.Layout,{_valign:"top",$define:{valign:function(){this.updateDomClass_()}},bind_:function(){this.$supers(zul.box.Hlayout,"bind_",arguments);zWatch.listen({_beforeSizeForRead:this,beforeSize:this,onFitSize:this})},unbind_:function(){zWatch.unlisten({_beforeSizeForRead:this,beforeSize:this,onFitSize:this});this.$supers(zul.box.Hlayout,"unbind_",arguments)},isVertical_:function(){return!1},domClass_:function(){var a=this.$supers("domClass_",arguments),b;"middle"==(b=
this._valign)?a+=" z-valign-middle":"bottom"==b&&(a+=" z-valign-bottom");return a},getFlexDirection_:function(){return"row"},_beforeSizeForRead:function(){var a=this.$n();this._beforeSizeWidth=a?a.offsetWidth:0;for(var b=this.firstChild;b;b=b.nextSibling)a=b.$n(),b._beforeSizeWidth=a?a.offsetWidth:0},beforeSize:function(){var a=this.firstChild,b=this._beforeSizeWidth,c=null!=b?b:this.$n().offsetWidth,e=0;for(b=[];a;a=a.nextSibling){if(a.isVisible()&&!zk(a).hasVParent()){var d=a._nhflex,f=a.$n();d?
(b.push({wgt:a,flex:d}),e+=d):f&&(d=a._beforeSizeWidth,f=null!=d?d:f.offsetWidth,c-=f,a.$n("chdex").style.width=jq.px0(f))}delete a._beforeSizeWidth}if(0");for(var a=this.firstChild;a;a=a.nextSibling)this.encloseChildHTML_(a,b);b.push("")};
;zkmld(zk._p.p.Hlayout,zk._m);
zul.box.Vlayout=zk.$extends(zul.box.Layout,{isVertical_:function(){return!0},getFlexDirection_:function(){return"column"}});
zkreg('zul.box.Vlayout');
zk._m={};
zk._m['default']=[zk._p.p.Hlayout,'default'];
zkmld(zk._p.p.Vlayout,zk._m);
}finally{zk.setLoaded(zk._p.n);}});zk.setLoaded('zul.box',1);