var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(h,k,f){if(null==h)throw new TypeError("The 'this' value for String.prototype."+f+" must not be null or undefined");if(k instanceof RegExp)throw new TypeError("First argument to String.prototype."+f+" must not be a regular expression");return h+""};$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(h,k,f){if(h==Array.prototype||h==Object.prototype)return h;h[k]=f.value;return h};
$jscomp.getGlobal=function(h){h=["object"==typeof globalThis&&globalThis,h,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<h.length;++k){var f=h[k];if(f&&f.Math==Math)return f}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(h,k){var f=$jscomp.propertyToPolyfillSymbol[k];if(null==f)return h[k];f=h[f];return void 0!==f?f:h[k]};$jscomp.polyfill=function(h,k,f,n){k&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(h,k,f,n):$jscomp.polyfillUnisolated(h,k,f,n))};
$jscomp.polyfillUnisolated=function(h,k,f,n){f=$jscomp.global;h=h.split(".");for(n=0;n<h.length-1;n++){var a=h[n];if(!(a in f))return;f=f[a]}h=h[h.length-1];n=f[h];k=k(n);k!=n&&null!=k&&$jscomp.defineProperty(f,h,{configurable:!0,writable:!0,value:k})};
$jscomp.polyfillIsolated=function(h,k,f,n){var a=h.split(".");h=1===a.length;n=a[0];n=!h&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var b=0;b<a.length-1;b++){var c=a[b];if(!(c in n))return;n=n[c]}a=a[a.length-1];f=$jscomp.IS_SYMBOL_NATIVE&&"es6"===f?n[a]:null;k=k(f);null!=k&&(h?$jscomp.defineProperty($jscomp.polyfills,a,{configurable:!0,writable:!0,value:k}):k!==f&&(void 0===$jscomp.propertyToPolyfillSymbol[a]&&(f=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[a]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(a):$jscomp.POLYFILL_PREFIX+f+"$"+a),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[a],{configurable:!0,writable:!0,value:k})))};$jscomp.polyfill("String.prototype.startsWith",function(h){return h?h:function(k,f){var n=$jscomp.checkStringArgs(this,k,"startsWith");k+="";var a=n.length,b=k.length;f=Math.max(0,Math.min(f|0,n.length));for(var c=0;c<b&&f<a;)if(n[f++]!=k[c++])return!1;return c>=b}},"es6","es3");
$jscomp.polyfill("String.prototype.endsWith",function(h){return h?h:function(k,f){var n=$jscomp.checkStringArgs(this,k,"endsWith");k+="";void 0===f&&(f=n.length);f=Math.max(0,Math.min(f|0,n.length));for(var a=k.length;0<a&&0<f;)if(n[--f]!=k[--a])return!1;return 0>=a}},"es6","es3");
(function(){function h(a){return a&&a.startsWith("0")&&!zk.parseInt(a)}function k(a,b){var c="",d=a._spacing,e=h(d),l=a.isVertical();d=d&&"auto"!=d?(l?"height:":"width:")+d:"";c+="<t"+(l?"r":"d")+' id="'+b.uuid+'-chdex2" class="'+a.$s("separator")+'"';a=d;if(e||!b.isVisible())a="display:none;"+a;a&&(c+=' style="'+a+'"');return c+=">"+(l?"<td>":"")+zUtl.img0+(l?"</td></tr>":"</td>")}function f(){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&&0<b._nhflex)b.setFlexSize_({width:"auto"});else if(c&&this._isStretchAlign()){var d=c.style.width;if(d){var e=c.offsetWidth;c.style.width="";c.offsetWidth>e&&(c.style.width=d)}}!b.$instanceof(zul.wgt.Cell)&&this._nhflex&&(c=b.$n("chdex"),c.style.width="")}else b._nvflex&&0<b._nvflex?b.setFlexSize_({height:"auto"}):c&&this._isStretchAlign()&&(d=c.style.height)&&(e=c.offsetHeight,c.style.height="",c.offsetHeight>e&&(c.style.height=d)),
!b.$instanceof(zul.wgt.Cell)&&this._nvflex&&(c=b.$n("chdex"),c.style.height="")}var l;zk.webkit&&!a&&(l=this.$n().style.height)&&(a=this.$n("frame"),a.style.height="",a.style.height=0<l.indexOf("%")?jq.px0(a.offsetHeight):l)}var n=zul.box.Box=zk.$extends(zul.Widget,{_mold:"vertical",_align:"start",_pack:"start",_sizedByContent:!0,$define:{align:_zkf=function(){this.rerender()},pack:_zkf,spacing:_zkf,sizedByContent:_zkf,widths:_zkf=function(a){this._sizes=a;this.rerender()}},setHeights:function(a){this.setWidths(a)},
getHeights:function(){return this.getWidths()},isVertical:function(){return"vertical"==this._mold},getOrient:function(){return this._mold},getZclass:function(){var a=this._zclass;return null!=a?a:this.isVertical()?"z-vbox":"z-hbox"},onChildVisible_:function(a){this.$supers("onChildVisible_",arguments);this.desktop&&this._fixChildDomVisible(a,a._visible)},replaceChildHTML_:function(a){this.$supers("replaceChildHTML_",arguments);this._fixChildDomVisible(a,a._visible);if(a.$instanceof(zul.box.Splitter)){var b=
this._chdextr(a);b&&(b.style.height="",b.style.width="");zUtl.fireSized(this,-1)}},_fixChildDomVisible:function(a,b){var c=this._chdextr(a);c&&(c.style.display=b?"":"none");if(c=a.$n("chdex2"))c.style.display=b&&!h(this._spacing)?"":"none";this.lastChild==a&&(c=a.previousSibling)&&(c=c.$n("chdex2"))&&(c.style.display=b?"":"none")},_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=this.$n("real");var d=
b.tBodies;d&&d.length||b.appendChild(document.createElement("tbody"));jq(this.isVertical()?d[0]:d[0].rows[0]).append(this.encloseChildHTML_(a,!0))}a.bind(c)},removeChildHTML_:function(a){this.$supers("removeChildHTML_",arguments);jq(a.uuid+"-chdex",zk).remove();jq(a.uuid+"-chdex2",zk).remove();var b;this.lastChild==a&&(b=a.previousSibling)&&jq(b.uuid+"-chdex2",zk).remove()},encloseChildHTML_:function(a,b,c){var d=[],e=a.$instanceof(zul.wgt.Cell);if(this.isVertical()){d.push('<tr id="',a.uuid,'-chdex"',
this._childOuterAttrs(a),">");if(!e){d.push("<td",this._childInnerAttrs(a));var l=this.getAlign();l&&"stretch"!=l&&d.push(' align="',zul.box.Box._toHalign(l),'"');d.push(">")}a.redraw(d);e||d.push("</td>");d.push("</tr>")}else e||d.push('<td id="',a.uuid,'-chdex"',this._childOuterAttrs(a),this._childInnerAttrs(a),">"),a.redraw(d),e||d.push("</td>");(e=a.nextSibling)&&!e.$instanceof(zul.wgt.Popup)?d.push(k(this,a)):b&&(a=a.previousSibling)&&d.unshift(k(this,a));if(!c)return d.join("");a=0;for(b=d.length;a<
b;++a)c.push(d[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 d=a.$n("chdex");if(d){var e;(e=a.$n())&&(e.scrollTop||e.scrollLeft)||(d.style.height=c&&b<c.length?c[b]:"",d.style.width="")}}}else for(a=this.firstChild;a;a=a.nextSibling)!c||a.$instanceof(zul.box.Splitter)||
a.$instanceof(zul.wgt.Cell)||++b,a._nhflex&&"min"!=a.getHflex()&&(a.setFlexSize_({height:"",width:""}),!(d=a.$n("chdex"))||(e=a.$n())&&(e.scrollTop||e.scrollLeft)||(d.style.width=c&&b<c.length?c[b]:"",d.style.height=""))},afterResetChildSize_:function(){for(var a=this.firstChild,b=this.isVertical();a;a=a.nextSibling)if(a.desktop){var c=b?a.$n("chdex").firstChild:a.$n("chdex");c&&(c.style.minWidth="1px")}},resetSize_:function(a){this.$supers(zul.Widget,"resetSize_",arguments);if(!zk.ie){var b=this.$n();
b.scrollTop||b.scrollLeft||(this.$n("frame").style["w"==a?"width":"height"]="")}var c=this.isVertical();b=-1;var d=this._sizes;if(c)for(c=this.firstChild;c;c=c.nextSibling){if(!d||c.$instanceof(zul.box.Splitter)||c.$instanceof(zul.wgt.Cell)||++b,c._nvflex&&"min"!=c.getVflex()){var e=c.$n("chdex");e&&("h"==a&&(e.style.height=d&&b<d.length?d[b]:""),"w"==a&&(e.style.width=""))}}else for(c=this.firstChild;c;c=c.nextSibling)if(!d||c.$instanceof(zul.box.Splitter)||c.$instanceof(zul.wgt.Cell)||++b,c._nhflex&&
"min"!=c.getHflex()&&(e=c.$n("chdex")))"w"==a&&(e.style.width=d&&b<d.length?d[b]:""),"h"==a&&(e.style.height="")},_getContentSize:function(){var a=this.$n();a=zk(a);var b=void 0!==this._vflexsz?this._vflexsz-a.padBorderHeight()-a.marginHeight():a.contentHeight(!0),c=void 0!==this._hflexsz?this._hflexsz-a.padBorderWidth()-a.marginWidth():a.contentWidth(!0);return a?{height:b,width:c}:{height:0,width:0}},beforeChildrenFlex_:function(a){a._flexFixed=!0;var b=this.isVertical(),c=[],d=b?0:1,e=[],l=b?1:
0,p=a.$n("chdex"),m=p?p.parentNode:a.$n().parentNode;p=this.$n();var q=zk(p),w=this._getContentSize(),x=w.height;w=w.width;m=m.firstChild;var r=-1,t=this._sizes,g;zk.mounting||this._resetBoxSize(b);q.hasVScroll()&&(w-=g=jq.scrollbarWidth());for(q.hasHScroll()&&(x-=g||jq.scrollbarWidth());m;m=m.nextSibling){for(var u=m.id&&m.id.endsWith("-chdex")?b?m.firstChild.id?m.firstChild:m.firstChild.firstChild:m.firstChild:m;u&&1!=u.nodeType;u=u.nextSibling);var v=zk(u),y=!1;if(v.isVisible()){q=u.id?u.id.indexOf("-"):
1;g=0>q?zk.Widget.$(u.id):null;q=this._hflexsz;var z=zk.chrome&&q;t&&g&&!g.$instanceof(zul.box.Splitter)&&!g.$instanceof(zul.wgt.Cell)&&(++r,r<t.length&&t[r]&&(b&&!g._nvflex||!b&&!g._nhflex)&&(u=m,v=zk(u),y=t[r].endsWith("px")));z&&(p.style.width="");var A=y&&b?zk.parseInt(t[r]):11>zk.ie&&m.id&&m.id.endsWith("-chdex2")&&m.style.height&&m.style.height.endsWith("px")?zk.parseInt(m.style.height):v.offsetHeight();y=(y&&!b?zk.parseInt(t[r]):v.offsetWidth())+v.marginWidth();v=A+v.marginHeight();z&&(p.style.width=
jq.px0(q));g&&g._nvflex?(g!==a&&(g._flexFixed=!0),"min"==g._vflex?(g.fixMinFlex_(u,"h"),b&&(x-=v)):(c.push(g),b&&(d+=g._nvflex))):b&&(x-=v);g&&g._nhflex?(g!==a&&(g._flexFixed=!0),"min"==g._hflex?(g.fixMinFlex_(u,"w"),b||(w-=y)):(e.push(g),b||(l+=g._nhflex))):b||(w-=y)}}m=0<x?x:0;for(q=c.length-1;0<q;--q)g=c.shift(),v=u=g._nvflex*x/d|0,p=g.$n("chdex"),r=zk(p),t=r.padBorderHeight(),g.setFlexSize_({height:v-t}),g._vflexsz=u-t,g.$instanceof(zul.wgt.Cell)||(p.style.height=jq.px0(u-r.marginHeight())),b&&
(m-=u);c.length&&(g=c.shift(),v=m,p=g.$n("chdex"),r=zk(p),t=r.padBorderHeight(),g.setFlexSize_({height:v-t}),g._vflexsz=m-t,g.$instanceof(zul.wgt.Cell)||(p.style.height=jq.px0(m-r.marginHeight())));m=0<w?w:0;for(q=e.length-1;0<q;--q)g=e.shift(),c=g._nhflex*w/l|0,p=g.$n("chdex"),r=zk(p),t=r.padBorderWidth(),g.setFlexSize_({width:c-t}),g._hflexsz=c-t,g.$instanceof(zul.wgt.Cell)||(p.style.width=jq.px0(c-r.marginWidth())),b||(m-=c);e.length&&(g=e.shift(),p=g.$n("chdex"),r=zk(p),t=r.padBorderWidth(),g.setFlexSize_({width:m-
t}),g._hflexsz=m-t,g.$instanceof(zul.wgt.Cell)||(p.style.width=jq.px0(m-r.marginWidth())));a.parent.afterChildrenFlex_(a);return a._flexFixed=!1},_childOuterAttrs:function(a){if(a.$instanceof(zul.box.Splitter))var b=' class="'+a.$s("outer")+'"';else if(this.isVertical())this._isStretchPack()?(b=this._pack2,b=' valign="'+(b?zul.box.Box._toValign(b):"top")+'"'):b=' valign="top"';else return"";a.isVisible()||(b+=' style="display:none"');return b},_childInnerAttrs:function(a){var b="",c=this.isVertical(),
d=zul.box.Splitter;if(a.$instanceof(d))return"";if(this._isStretchPack()){var e=c?this.getAlign():this._pack2;e&&(b+=' align="'+zul.box.Box._toHalign(e)+'"')}e="";var l=this._sizes;if(l)for(var p=0,m=l.length,q=this.firstChild;q&&p<m;q=q.nextSibling){if(a==q){e=(c?"height:":"width:")+l[p];break}q.$instanceof(d)||++p}c||a.isVisible()||(e+=e?";display:none":"display:none");c||(e+=e?";height:100%":"height:100%");return e?b+' style="'+e+'"':b},_isStretchPack:function(){return this._splitterKid||this._stretchPack},
_isStretchAlign:function(){return"stretch"==this._align},_bindWatch:function(){this._watchBound||(this._watchBound=!0,zWatch.listen({onSize:this,onHide:this}))},_unbindWatch:function(){this._watchBound&&(zWatch.unlisten({onSize:this,onHide:this}),delete this._watchBound)},bind_:function(){this.$supers(n,"bind_",arguments);this._bindFixTd();this._isStretchAlign()&&this._bindAlign();this._splitterKid&&this._bindWatch()},unbind_:function(){this._unbindWatch();this._unbindAlign();this._unbindFixTd();
this.$supers(n,"unbind_",arguments)},_bindAlign:function(){this._watchAlign||(this._watchAlign=!0,zWatch.listen({onSize:[this,this._fixAlign],onHide:[this,this._fixAlign]}))},_unbindAlign:function(){this._watchAlign&&(zWatch.unlisten({onSize:[this,this._fixAlign],onHide:[this,this._fixAlign]}),delete this._watchAlign)},_fixAlign:function(){if(this._isStretchAlign()){var a=this.isVertical(),b=this.$n("frame"),c=zk(b);b=a?c.revisedWidth(b.offsetWidth):c.revisedHeight(b.offsetHeight);c=this.firstChild;
for(var d;c;c=c.nextSibling)c.isVisible()&&(d=c.$n())&&(a?d.style.width=zk(d).revisedWidth(b,!zk.webkit)+"px":d.style.height=zk(d).revisedHeight(b-(11>zk.ie&&0<d.offsetTop?2*d.offsetTop:0),!zk.webkit)+"px")}},_bindFixTd:function(){this._watchTd||(this._watchTd=!0,zWatch.listen({onSize:[this,f],onHide:[this,f]}))},_unbindFixTd:function(){this._watchTd&&(zWatch.unlisten({onSize:[this,f],onHide:[this,f]}),delete this._watchTd)},_configPack:function(){var a=this._pack;a?(a=a.split(","),"stretch"==a[0].trim()?
(this._stretchPack=!0,this._pack2=1<a.length?a[1].trim():null):(this._stretchPack=1<a.length&&"stretch"==a[1].trim(),this._pack2=a[0].trim())):(delete this._pack2,delete this._stretchPack)},onSize:_zkf=function(){if(this._splitterKid){var a=this.isVertical(),b=this.$n("real");b.style.height=b.style.width="100%";var c=a?b.rows:b.rows[0].cells;b=a?zk(b).revisedHeight(b.offsetHeight):zk(b).revisedWidth(b.offsetWidth);for(var d=this._sizes,e=c.length;e--;){var l=c[e];if(zk(l).isVisible()){if(a){var p=
l.offsetHeight;if(l.id&&!l.id.endsWith("-chdex2"))if(l.cells.length){var m=l.cells[0];m.style.height=zk(m).revisedHeight(e?p:b)+"px";l.style.height=""}else l.style.height=zk(l).revisedHeight(e?p:b)+"px"}else p=l.offsetWidth,d||!l.id||l.id.endsWith("-chdex2")||(l.style.width=zk(l).revisedWidth(e?p:b)+"px");b-=p}}}},onHide:_zkf,getFlexContainer_:function(){return null}},{_toValign:function(a){return a?"start"==a?"top":"center"==a?"middle":"end"==a?"bottom":a:null},_toHalign:function(a){return a?"start"==
a?"left":"end"==a?"right":a:null}})})();
