var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,f,e){c instanceof String&&(c=String(c));for(var a=c.length,b=0;b<a;b++){var d=c[b];if(f.call(e,d,b,c))return{i:b,v:d}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,f,e){if(c==Array.prototype||c==Object.prototype)return c;c[f]=e.value;return c};$jscomp.getGlobal=function(c){c=["object"==typeof globalThis&&globalThis,c,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var f=0;f<c.length;++f){var e=c[f];if(e&&e.Math==Math)return e}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(c,f){var e=$jscomp.propertyToPolyfillSymbol[f];if(null==e)return c[f];e=c[e];return void 0!==e?e:c[f]};
$jscomp.polyfill=function(c,f,e,a){f&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(c,f,e,a):$jscomp.polyfillUnisolated(c,f,e,a))};$jscomp.polyfillUnisolated=function(c,f,e,a){e=$jscomp.global;c=c.split(".");for(a=0;a<c.length-1;a++){var b=c[a];if(!(b in e))return;e=e[b]}c=c[c.length-1];a=e[c];f=f(a);f!=a&&null!=f&&$jscomp.defineProperty(e,c,{configurable:!0,writable:!0,value:f})};
$jscomp.polyfillIsolated=function(c,f,e,a){var b=c.split(".");c=1===b.length;a=b[0];a=!c&&a in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var d=0;d<b.length-1;d++){var h=b[d];if(!(h in a))return;a=a[h]}b=b[b.length-1];e=$jscomp.IS_SYMBOL_NATIVE&&"es6"===e?a[b]:null;f=f(e);null!=f&&(c?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:f}):f!==e&&(void 0===$jscomp.propertyToPolyfillSymbol[b]&&(e=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[b]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(b):$jscomp.POLYFILL_PREFIX+e+"$"+b),$jscomp.defineProperty(a,$jscomp.propertyToPolyfillSymbol[b],{configurable:!0,writable:!0,value:f})))};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(f,e){return $jscomp.findInternal(this,f,e).v}},"es6","es3");
(function(){function c(a){a=a.getMeshWidget();var b;if(a&&(b=a.frozen))if(a._nativebar)b._syncFrozen();else if(a=a.ehdfaker)b._scrollScale=a.childNodes.length-b._columns-1,b._shallSyncScale=!1}var f=zk.opera?function(a){return(a=a.parent)&&a.rerender()}:zk.$void,e=zul.mesh.HeadWidget=zk.$extends(zul.Widget,{$init:function(){this.$supers("$init",arguments);this.listen({onColSize:this},-1E3)},$define:{sizable:function(){this.rerender()},visible:function(){this.rerender();var a=this.getMeshWidget();
setTimeout(function(){if(a&&a.desktop){var b=a.$n("foot"),d=a.$n("pgib");b=zk(a).contentHeight()-a.$n("head").offsetHeight-(b?b.offsetHeight:0)-(d?d.offsetHeight:0)-(a._nativebar&&a.frozen?a.frozen.$n().offsetHeight:0);a.ebody.style.height=jq.px0(b)}},0)}},removeChildHTML_:function(a){this.$supers("removeChildHTML_",arguments);if(!this.$instanceof(zul.mesh.Auxhead))for(var b=a.$class._faker,d=b.length;d--;)jq(a.uuid+"-"+b[d],zk).remove()},setVflex:function(a){this.$super(e,"setVflex",!1)},setHflex:function(a){this.$super(e,
"setHflex",!1)},getMeshWidget:function(){return this.parent},onColSize:function(a){var b=this.parent;a=a.widths;var d=0;if(a){for(var h=0;h<a.length;h++)d+=parseInt(a[h]);0!=d&&(d=jq.px0(d))}b._innerWidth=d||b.eheadtbl.width||b.eheadtbl.style.width;b.fire("onInnerWidth",b._innerWidth);b.fireOnRender(zk.gecko?200:60);b.disableAutoSizing_()},bind_:function(a,b,d){this.$supers(e,"bind_",arguments);var h=this;d.push(function(){c(h)})},unbind_:function(){jq(this.hdfaker).remove();jq(this.bdfaker).remove();
jq(this.ftfaker).remove();this.$supers(e,"unbind_",arguments)},insertChildHTML_:function(a){zk.ie9&&this.$n("bar")&&(this.$n("bar").style.display="none");this.$supers("insertChildHTML_",arguments)},onChildAdded_:function(a){this.$supers("onChildAdded_",arguments);if(this.desktop){var b=zul.mesh.MeshWidget._getWidth,d=this.getMeshWidget();!f(this)&&d&&d._fixHeaders()&&d._syncSize(!0);c(this);d._minWd=null;var h=d?d.frozen:null;if(h)h.onSize();if(!this.$instanceof(zul.mesh.Auxhead)){h=!h&&!!d._nativebar;
for(var m=["hdfaker","bdfaker","ftfaker"],k=0;k<m.length;k++){var l=m[k],r=jq(d["e"+l]);if(null!=r[0]){var n=jq(d).find("."+this.$s("bar")),g=n[0],q=jq(this.$n("hdfaker")).find("[id*=hdfaker-bar]"),p=q[0],u="",t="";if("hdfaker"==l&&g){if(g=g.style)u+=g.width?"width:"+g.width+";":"";n.remove();this._subnodes.bar=null;h&&p&&(g=p.style)&&(t=g.display?"display:"+g.display+";":"",t+=g.width?"width:"+g.width+";":"");q.remove();this._subnodes["hdfaker-bar"]=null}r.find(a.$n(l)).length||(n=(n=b(a,a._hflexWidth?
a._hflexWidth+"px":a.getWidth()))?"width:"+n+";":"",n='<col id="'+a.uuid+"-"+l+'" style="'+n+'"></col>',q=a.getChildIndex(),0<q?jq(r.find("col")[q-1]).after(n):r.append(n));n=jq(d).find("."+this.$s("bar"));g=n[0];q=jq(this.$n("hdfaker")).find("[id*=hdfaker-bar]");p=q[0];"hdfaker"==l&&!g&&h&&(p||jq(this.$n("hdfaker")).append('<col id="'+this.uuid+'-hdfaker-bar" style="'+t+'" ></col>'),jq(this).append('<th id="'+this.uuid+'-bar" class="'+this.$s("bar")+'" style="'+u+'" ></th>'))}}}}},onChildRemoved_:function(){this.$supers("onChildRemoved_",
arguments);if(this.desktop){if(!f(this)&&!this.childReplacing_&&this.parent._fixHeaders())this.parent.onSize();this.parent._minWd=null;this.getMeshWidget().rerender(1)}},beforeChildrenFlex_:function(a){if(a&&!a._flexFixed){var b=this.parent;a=b.ehdfaker;b=b.ebdfaker;a=a?a.firstChild:null;b=b?b.firstChild:null;for(var d=this.firstChild;d;d=d.nextSibling)d.isVisible()&&0<d._nhflex&&(a&&(a.style.width=""),b&&(b.style.width="")),a&&(a=a.nextSibling),b&&(b=b.nextSibling)}return!0},afterChildrenFlex_:function(a){var b=
this.parent,d=b.ebody,h=b.ehead;a=b.efoot;var m=b._currentLeft;if(b)if(b._cssflex&&b.isChildrenFlex()){m=b._calcMinWds().wds;var k=!1;d=!0;h.style.display="";var l=0,r=b.isSizedByContent(),n=0,g=-1;for(a=this.firstChild;a;a=a.nextSibling,n++){var q=a.$n();"min"==a._hflex||!a._nhflex&&r?g=m[n]:a._width?g=parseInt(a._width):0<a._nhflex&&(k=!0);a.isVisible()||(q.style.display="none");0<=g&&(q.style.flex="0 1 "+jq.px(g),k||(l+=g),g=-1);if(a.getLabel()||a.getImage()||a.nChildren)d=!1}a=b.eheadtbl;m=b.ebodytbl;
g=b.efoottbl;l=jq.px0(l);a&&(a.style.width=k?"100%":l,m&&(m.style.width=k?"100%":l),g&&(g.style.width=k?"100%":l));l=b.ebdfaker;a=b.eftfaker;k=l.firstChild;b=b.$class.WIDTH0;if(a)var p=a.firstChild;m={};for(a=this.firstChild;a&&k;a=a.nextSibling)m[a.uuid]=a.$n().getBoundingClientRect().width,k=k.nextSibling;k=l.firstChild;for(a=this.firstChild;a&&k;a=a.nextSibling)g=m[a.uuid],l=jq.px0(g),a.isVisible()&&void 0!==l?(k.style.width=l,p&&(p.style.width=l)):(k.style.width=b,p&&(p.style.width=b)),k=k.nextSibling,
p&&(p=p.nextSibling);h.style.display=d?"none":""}else b._adjFlexWd(),b._adjSpanWd(),b.frozen&&!b._isAllWidths()&&b._calcSize(),zk(d).hasHScroll()&&m!=d.scrollLeft&&(d.scrollLeft=m,h&&(h.scrollLeft=m),a&&(a.scrollLeft=m))},deferRedrawHTML_:function(a){a.push("<tr",this.domAttrs_({domClass:1}),' class="z-renderdefer"></tr>')},getFlexDirection_:function(){return"row"},afterClearFlex_:function(){var a=this.parent;a._cssflex&&(a.ehdfaker.style.display="")}},{redraw:function(a){a.push("<tr",this.domAttrs_(),
' style="text-align: left;">');for(var b=this.firstChild;b;b=b.nextSibling)b.redraw(a);(b=this.getMeshWidget())&&b._nativebar&&a.push('<th id="',this.uuid,'-bar" class="',this.$s("bar"),'" ></th>');a.push("</tr>")}})})();
