function Tc(){this.Init()}v("AdfIE11EditingAgent",Tc);z.l(Tc,Uc);
Tc.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{var e=this.jf(a);if(e==n){e=this.Jc(a);d=e.createElement("div");d.innerHTML=b;for(var d=d.childNodes,f=d.length,e=e.body,f=f-1;0<=f;f--){var g=d[f];e.insertBefore(g,e.firstChild)}}else{0<e.toString().length&&e.deleteContents();e.cloneRange();d=a.contentDocument.createElement("div");
d.innerHTML=b;for(var d=d.childNodes,f=d.length,h=n,f=f-1;0<=f;f--)g=d[f],h==n&&(h=g),e.insertNode(g);h!=n&&(e.selectNode(h),e.setStartAfter(h))}}};z.a("AdfIE11EditingAgent.prototype.insertHtmlAtSelection",{fm:Tc.prototype.fm});Tc.prototype.wq=function(a,b){return Qc.prototype.wq.call(this,a,b)};z.a("AdfIE11EditingAgent.prototype.IsNodeWrappingRange",{wq:Tc.prototype.wq});Tc.prototype.jf=function(a){return(a=this.Ro(a))&&0<a.rangeCount?a.getRangeAt(0):n};
z.a("AdfIE11EditingAgent.prototype.getSelectionRange",{jf:Tc.prototype.jf});Tc.prototype.setSelectionRange=function(a,b){var d=this.Ro(a);d.removeAllRanges();d.addRange(b)};z.a("AdfIE11EditingAgent.prototype.setSelectionRange",{setSelectionRange:Tc.prototype.setSelectionRange});Tc.prototype.Ro=function(a){return this.Jc(a).getSelection()};Tc.prototype.Fn=function(a){return a.toString()};z.a("AdfIE11EditingAgent.prototype.getSelectionRangeString",{Fn:Tc.prototype.Fn});