var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(c,d,e){if(null==c)throw new TypeError("The 'this' value for String.prototype."+e+" must not be null or undefined");if(d instanceof RegExp)throw new TypeError("First argument to String.prototype."+e+" 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.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,e){c!=Array.prototype&&c!=Object.prototype&&(c[d]=e.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(c,d,e,a){if(d){e=$jscomp.global;c=c.split(".");for(a=0;a<c.length-1;a++){var b=c[a];b in e||(e[b]={});e=e[b]}c=c[c.length-1];a=e[c];d=d(a);d!=a&&null!=d&&$jscomp.defineProperty(e,c,{configurable:!0,writable:!0,value:d})}};
$jscomp.polyfill("String.prototype.startsWith",function(c){return c?c:function(c,e){var a=$jscomp.checkStringArgs(this,c,"startsWith");c+="";var b=a.length,f=c.length;e=Math.max(0,Math.min(e|0,a.length));for(var d=0;d<f&&e<b;)if(a[e++]!=c[d++])return!1;return d>=f}},"es6","es3");
(function(){function c(a){var b;if(b=a._upload)a._uplder=new zul.Upload(a,null,b)}function d(a){var b;if(b=a._uplder)a._uplder=null,b.destroy()}var e=zul.wgt.Button=zk.$extends(zul.LabelImageWidget,{_orient:"horizontal",_dir:"normal",_type:"button",$define:{href:null,target:null,dir:_zkf=function(){this.updateDomContent_()},orient:_zkf,type:_zkf,disabled:[function(a,b){b&&b.adbs?this._adbs=!0:b&&void 0!==b.adbs||(this._adbs=!1);if(!a)if(this._adbs)this._adbs=!1;else if(b&&!1===b.adbs)return this._disabled;
return a},function(a){var b=this,f=function(){b.desktop&&(jq(b.$n()).attr("disabled",a),b._upload&&(a?d(b):c(b)))};"submit"==this._type?setTimeout(f,50):f()}],autodisable:null,upload:function(a){this.$n()&&!this._disabled&&(d(this),a&&"false"!=a&&c(this))}},focus_:function(a){var b=this;if(this.$n().disabled)return b._delayFocus||(b._delayFocus=!0,setTimeout(function(){b.desktop&&!b.isDisabled()&&(zk.focusBackFix&&b._upload||zk(b.$n()).focus(a));b._delayFocus=null},0)),!1;zk.focusBackFix&&this._upload||
zk(this.$n()).focus(a);return!0},domContent_:function(){var a=zUtl.encodeXML(this.getLabel()),b=this.getImage(),c=this.domIcon_();if(!b&&!c)return a;b=b?'<img class="'+this.$s("image")+'" src="'+b+'" />'+(c?" "+c:""):c;c="vertical"==this.getOrient()?"<br/>":" ";return"reverse"==this.getDir()?a+c+b:b+c+a},onShow:function(){this.$n()&&!this._disabled&&this._uplder&&this._uplder.sync()},bind_:function(){this.$supers(e,"bind_",arguments);var a=this.$n();this.domListen_(a,"onFocus","doFocus_").domListen_(a,
"onBlur","doBlur_");zWatch.listen({onShow:this});!this._disabled&&this._upload&&c(this)},unbind_:function(){d(this);var a=this.$n();this.domUnlisten_(a,"onFocus","doFocus_").domUnlisten_(a,"onBlur","doBlur_");zWatch.unlisten({onShow:this});this.$supers(e,"unbind_",arguments)},doClick_:function(a){if(a.domEvent&&!this._disabled&&(this._upload?(!zk.ie||10<zk.ie)&&this._uplder.openFileDialog():zul.wgt.ADBS.autodisable(this),this.fireX(a),!a.stopped)){var b=this._href,c=b?b.toLowerCase().startsWith("mailto:"):
!1;b&&(c?(b=jq.newFrame("mailtoFrame",b,null),jq(b).remove()):zUtl.go(b,{target:this._target||(a.data.ctrlKey?"_blank":"")}));this.$super("doClick_",a,!0)}},setFlexSize_:function(a){var b=this.$n();void 0!==a.height&&(b.style.height="auto"==a.height?"":""!=a.height?jq.px0(a.height):this._height?this._height:"");void 0!==a.width&&(b.style.width="auto"==a.width?"":""!=a.width?jq.px0(a.width):this._width?this._width:"")}});zul.wgt.ADBS=zk.$extends(zk.Object,{$init:function(a){this._ads=a},onResponse:function(){for(var a=
this._ads,b;b=a.shift();)b.setDisabled(!1,{adbs:!1,skip:!0}),zk.chrome&&b.domListen_(b.$n(),"onBlur","doBlur_");zWatch.unlisten({onResponse:this})}},{autodisable:function(a){var b=a._autodisable,c;if(b){zk.chrome&&a.domUnlisten_(a.$n(),"onBlur","doBlur_");b=b.split(",");for(var e=b.length;e--;){var d=b[e].trim();if(d){var h;if(h="+"==d.charAt(0))d=d.substring(1);d="self"==d?a:a.$f(d);if(d==a){var g=a._uplder;a._uplder=null;a._autodisable_self=!0}d&&!d._disabled&&(d.setDisabled(!0,{adbs:!0,skip:!0}),
a.inServer&&(h?d.smartUpdate("disabled",!0):c?c.push(d):c=[d]))}}}c&&(c=new zul.wgt.ADBS(c),g?(g._aded=c,a._uplder=g):a.isListen("onClick",{asapOnly:!0})?zWatch.listen({onResponse:c}):setTimeout(function(){c.onResponse()},800))}})})();
