You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/NzbDrone.Web/Scripts/2010.3.1318/telerik.editor.min.js

1 line
67 KiB

(function(s){var ap=s.telerik;function F(a1){var a0={};for(var aZ=0;aZ<a1.length;aZ++){a0[a1[aZ]]=true}return a0}var aJ=F("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(","));var G="div,p,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,pre,script,table,tbody,td,tfoot,th,thead,tr,ul".split(",");var L=F(G);var aS=F("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var".split(","));var K=F("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(","));function g(aZ){if(aZ.nodeType==1){aZ.normalize()}}function p(aZ){var a0=0;while(aZ=aZ.previousSibling){a0++}return a0}function ad(aZ){return aZ&&aZ.nodeValue!==null&&aZ.data!==null}function k(aZ,a0){try{return !ad(aZ)&&(s.contains(aZ,ad(a0)?a0.parentNode:a0)||a0.parentNode==aZ)}catch(a1){return false}}function y(a0,aZ){return k(a0,aZ)||a0==aZ}function az(a0,aZ){if(k(a0,aZ)){while(aZ&&aZ.parentNode!=a0){aZ=aZ.parentNode}}return aZ}function aE(aZ){return ad(aZ)?aZ.length:aZ.childNodes.length}function at(aZ,a1){var a0=aZ.cloneNode(false);aZ.deleteData(a1,aZ.length);a0.deleteData(0,a1);C.insertAfter(a0,aZ)}function A(a0,a1){for(var a2 in a1){var aZ=a0[a2];if(a2=="float"){aZ=a0[s.support.cssFloat?"cssFloat":"styleFloat"]}if(typeof aZ=="object"){if(!A(aZ,a1[a2])){return false}}else{if(aZ!=a1[a2]){return false}}}return true}var aB=/^\s+$/;var e=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i;var af=("color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height").split(",");var C={blockParentOrBody:function(aZ){return C.parentOfType(aZ,G)||aZ.ownerDocument.body},toHex:function(aZ){var a0=e.exec(aZ);if(!a0){return aZ}return"#"+s.map(a0.slice(1),function(a1){return a1=parseInt(a1).toString(16),a1.length>1?a1:"0"+a1}).join("")},encode:function(aZ){return aZ.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00a0/g,"&nbsp;")},name:function(aZ){return aZ.nodeName.toLowerCase()},significantChildNodes:function(aZ){return s.grep(aZ.childNodes,function(a0){return a0.nodeType!=3||!C.isWhitespace(a0)})},lastTextNode:function(a0){if(a0.nodeType==3){return a0}var aZ=null;for(var a1=a0.lastChild;a1;a1=a1.previousSibling){if(aZ=C.lastTextNode(a1)){return aZ}}return aZ},is:function(aZ,a0){return C.name(aZ)==a0},isMarker:function(aZ){return aZ.className=="t-marker"},isWhitespace:function(aZ){return aB.test(aZ.nodeValue)},isBlock:function(aZ){return L[C.name(aZ)]},isEmpty:function(aZ){return aJ[C.name(aZ)]},isInline:function(aZ){return aS[C.name(aZ)]},scrollTo:function(aZ){aZ.ownerDocument.body.scrollTop=s(ad(aZ)?aZ.parentNode:aZ).offset().top},insertAt:function(a0,aZ,a1){a0.insertBefore(aZ,a0.childNodes[a1]||null)},insertBefore:function(aZ,a0){if(a0.parentNode){return a0.parentNode.insertBefore(aZ,a0)}else{return a0}},insertAfter:function(aZ,a0){return a0.parentNode.insertBefore(aZ,a0.nextSibling)},remove:function(aZ){aZ.parentNode.removeChild(aZ)},trim:function(a0){for(var aZ=a0.childNodes.length-1;aZ>=0;aZ--){var a1=a0.childNodes[aZ];if(ad(a1)){if(a1.nodeValue.replace(/\ufeff/g,"").length==0){C.remove(a1)}if(C.isWhitespace(a1)){C.insertBefore(a1,a0)}}else{if(a1.className!="t-marker"){C.trim(a1);if(a1.childNodes.length==0&&!C.isEmpty(a1)){C.remove(a1)}}}}return a0},parentOfType:function(aZ,a0){do{aZ=aZ.parentNode}while(aZ&&!(C.ofType(aZ,a0)));return aZ},ofType:function(aZ,a0){return s.inArray(C.name(aZ),a0)>=0},changeTag:function(a3,a0){var a2=C.create(a3.ownerDocumen