function Vc(){this.Init();this.Bd=w.b.cd()[w.Vc]!=w.Wc}v("AdfSafariEditingAgent",Vc);z.l(Vc,Qc);Vc.prototype.An=function(a,b){if(this.Bd&&w.b.G()==w.Fc&&a.contentWindow==n)return"";var d=this.Jc(a).body;if(!b){var e=d.childNodes;if(e&&1==e.length&&(e=e[0],"P"==e.nodeName&&""==e.innerText))return""}return d.innerHTML};z.a("AdfSafariEditingAgent.prototype.getInlineFrameContent",{An:Vc.prototype.An});Vc.prototype.xn=t("\x3cbr\x3e");z.a("AdfSafariEditingAgent.prototype.getDefaultContent",{xn:Vc.prototype.xn});
Vc.prototype.fm=function(a,b){if("TEXTAREA"==a.nodeName||"INPUT"==a.nodeName){var d=a.selectionStart+b.length;a.value=a.value.substr(0,a.selectionStart)+b+a.value.substr(a.selectionEnd);a.selectionStart=d;a.selectionEnd=d}else if(d=this.jf(a),d==n){var e=this.Jc(a),f=e.createElement("div");f.innerHTML=b;for(var f=f.childNodes,g=f.length,d=e.body,g=g-1;0<=g;g--)e=f[g],d.insertBefore(e,d.firstChild)}else{0<d.toString().length&&d.deleteContents();e=this.Jc(a);f=e.createElement("div");f.innerHTML=b;for(var f=
f.childNodes,g=f.length,h=n,g=g-1;0<=g;g--)e=f[g],h==n&&(h=e),d.insertNode(e);h!=n&&(d.selectNode(h),d.setStartAfter(h))}};z.a("AdfSafariEditingAgent.prototype.insertHtmlAtSelection",{fm:Vc.prototype.fm});Vc.prototype.Xy=function(a){if(this.hm(a))return p;var b=Vc.f.Xy.call(this,a);this.hm(a)&&this.execCommand(n,a,"styleWithCSS",l);return b};z.a("AdfSafariEditingAgent.prototype.setInlineFrameContentEditable",{Xy:Vc.prototype.Xy});Vc.prototype.gq=r("Bd");
z.a("AdfSafariEditingAgent.prototype.useContentEditable",{gq:Vc.prototype.gq});Vc.prototype.Ap=function(a){B.p(a,"IFRAME");a=this.Jc(a).body;a.tabIndex=0;return a};z.a("AdfSafariEditingAgent.prototype.getFocusBlurElement",{Ap:Vc.prototype.Ap});Vc.prototype.jf=function(a){B.p(a,"IFRAME");if((a=this.Ro(a))&&0<a.rangeCount)return a.getRangeAt(0)};z.a("AdfSafariEditingAgent.prototype.getSelectionRange",{jf:Vc.prototype.jf});
Vc.prototype.setSelectionRange=function(a,b){B.p(a,"IFRAME");var d=this.Ro(a);d&&(d.removeAllRanges(),d.addRange(b))};z.a("AdfSafariEditingAgent.prototype.setSelectionRange",{setSelectionRange:Vc.prototype.setSelectionRange});Vc.prototype.Ro=function(a){B.p(a,"IFRAME");return this.Jc(a).defaultView.getSelection()};Vc.prototype.Hn=function(a,b){b.shiftKey?(w.b.preventDefault(b),O.Qh(a)):(w.b.preventDefault(b),O.Ud(a,n,l))};z.a("AdfSafariEditingAgent.prototype.handleTab",{Hn:Vc.prototype.Hn});
Vc.prototype.queryCommandValue=function(a,b){if(this.hm(a))return Vc.f.queryCommandValue.call(this,a,b)};z.a("AdfSafariEditingAgent.prototype.queryCommandValue",{queryCommandValue:Vc.prototype.queryCommandValue});Vc.prototype.queryCommandState=function(a,b){if(this.hm(a))return Vc.f.queryCommandState.call(this,a,b)};z.a("AdfSafariEditingAgent.prototype.queryCommandState",{queryCommandState:Vc.prototype.queryCommandState});Vc.prototype.Tp=function(a,b){return!this.hm(a)?p:Vc.f.Tp.call(this,a,b)};
z.a("AdfSafariEditingAgent.prototype.queryCommandIndeterminate",{Tp:Vc.prototype.Tp});Vc.prototype.queryCommandEnabled=function(a,b,d){return!this.hm(b)?p:Vc.f.queryCommandEnabled.call(this,a,b,d)};z.a("AdfSafariEditingAgent.prototype.queryCommandEnabled",{queryCommandEnabled:Vc.prototype.queryCommandEnabled});Vc.prototype.Cs=function(a,b,d){var e=w.b;this.Bd&&e.G()==w.Fc&&536>e.nb()?(this.nn||(this.nn=[]),a=this.nn.length,0<a&&this.nn[a-1]==d||this.nn.push(d)):Vc.f.Cs.call(this,a,b,d)};
z.a("AdfSafariEditingAgent.prototype.updateValueHistory",{Cs:Vc.prototype.Cs});Vc.prototype.nq=function(a,b,d){var e=w.b;this.Bd&&e.G()==w.Fc&&536>e.nb()?(this.fn||(this.fn=[]),this.nn&&0<this.nn.length&&(a=this.nn.pop(),this.fn.push(a),0<this.nn.length&&this.jS(b,this.nn[this.nn.length-1]))):Vc.f.nq.call(this,a,b,d)};z.a("AdfSafariEditingAgent.prototype.ExecuteUndo",{nq:Vc.prototype.nq});
Vc.prototype.mq=function(a,b,d){var e=w.b;this.Bd&&e.G()==w.Fc&&536>e.nb()?this.fn&&0<this.fn.length&&this.jS(b,this.fn.pop()):Vc.f.mq.call(this,a,b,d)};z.a("AdfSafariEditingAgent.prototype.ExecuteRedo",{mq:Vc.prototype.mq});Vc.prototype.Bq=function(a,b){var d=w.b;return this.Bd&&d.G()==w.Fc&&536>d.nb()?this.nn&&0<this.nn.length?l:p:Vc.f.Bq.call(this,a,b)};z.a("AdfSafariEditingAgent.prototype.QueryUndoEnabled",{Bq:Vc.prototype.Bq});
Vc.prototype.Aq=function(a,b){var d=w.b;return this.Bd&&d.G()==w.Fc&&536>d.nb()?this.fn&&0<this.fn.length?l:p:Vc.f.Aq.call(this,a,b)};z.a("AdfSafariEditingAgent.prototype.QueryRedoEnabled",{Aq:Vc.prototype.Aq});