var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$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(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
$jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(a,c){var b=$jscomp.checkStringArgs(this,a,"startsWith");a+="";var e=b.length,g=a.length;c=Math.max(0,Math.min(c|0,b.length));for(var f=0;f<g&&c<e;)if(b[c++]!=a[f++])return!1;return f>=g}},"es6","es3");
zul.wgt.A=zk.$extends(zul.LabelImageWidget,{_dir:"normal",$define:{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){this.desktop&&jq(this.$n()).attr("disabled",a)}],dir:_zkf=function(){var a=this.$n();a&&(a.innerHTML=this.domContent_())},href:function(a){var b=this.$n();b&&(b.href=a||"")},target:function(a){var b=this.$n();b&&(b.target=a||"")},autodisable:null},bind_:function(){this.$supers(zul.wgt.A,
"bind_",arguments);if(!this._disabled){var a=this.$n();this.domListen_(a,"onFocus","doFocus_").domListen_(a,"onBlur","doBlur_")}},unbind_:function(){var a=this.$n();this.domUnlisten_(a,"onFocus","doFocus_").domUnlisten_(a,"onBlur","doBlur_");this.$supers(zul.wgt.A,"unbind_",arguments)},domContent_:function(){var a=zUtl.encodeXML(this.getLabel()),b=this.getImage(),c=this.domIcon_();if(!b&&!c)return a;b=b?'<img src="'+b+'" align="absmiddle" />'+(c?" "+c:""):c;return"reverse"==this.getDir()?a+b:b+a},
domAttrs_:function(a){var b=this.$supers("domAttrs_",arguments),c;if(c=this.getTarget())b+=' target="'+c+'"';b=(c=this.getHref())?b+(' href="'+c+'"'):b+' href="javascript:;"';this._disabled&&(b+=' disabled="disabled"');return b},doClick_:function(a){var b=this.getHref();if(b&&b.toLowerCase().startsWith("mailto:")){var c=jq.newFrame("mailtoFrame",b,null);zk.chrome?setTimeout(function(){jq(c).remove()},100):jq(c).remove();a.stop()}11>zk.ie&&!b&&a.stop({dom:!0});this._disabled?a.stop():(zul.wgt.ADBS.autodisable(this),
this.fireX(a),a.stopped||this.$super("doClick_",a,!0))}});
