UNPKG

ct-ckeditor

Version:
101 lines 740 kB
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ (function(){if(!window.CKEDITOR||!window.CKEDITOR.dom){window.CKEDITOR||(window.CKEDITOR=function(){var b=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,f={timestamp:"KAS7",version:"4.16.0 (Full)",revision:"d0588e4fc3",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:b},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var d=document.getElementsByTagName("script"),h=0;h<d.length;h++){var l=d[h].src.match(b);if(l){a=l[1];break}}-1==a.indexOf(":/")&& "//"!=a.slice(0,2)&&(a=0===a.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return a}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&"/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a)&&(a+=(0<=a.indexOf("?")?"\x26":"?")+"t\x3d"+this.timestamp); return a},domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",a,!1),window.removeEventListener("load",a,!1),b()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),window.detachEvent("onload",a),b())}catch(l){}}function b(){for(var a;a=d.shift();)a()}var d=[];return function(b){function e(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(e,1);return}a()}d.push(b);"complete"=== document.readyState&&setTimeout(a,1);if(1==d.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);b=!1;try{b=!window.frameElement}catch(k){}document.documentElement.doScroll&&b&&e()}}}()},d=window.CKEDITOR_GETURL;if(d){var a=f.getUrl;f.getUrl=function(b){return d.call(f,b)||a.call(f,b)}}return f}());CKEDITOR.event||(CKEDITOR.event= function(){},CKEDITOR.event.implementOn=function(b){var f=CKEDITOR.event.prototype,d;for(d in f)null==b[d]&&(b[d]=f[d])},CKEDITOR.event.prototype=function(){function b(a){var b=f(this);return b[a]||(b[a]=new d(a))}var f=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},d=function(a){this.name=a;this.listeners=[]};d.prototype={getListenerIndex:function(a){for(var b=0,d=this.listeners;b<d.length;b++)if(d[b].fn==a)return b;return-1}};return{define:function(a,c){var d= b.call(this,a);CKEDITOR.tools.extend(d,c,!0)},on:function(a,c,d,h,l){function e(b,g,n,e){b={name:a,sender:this,editor:b,data:g,listenerData:h,stop:n,cancel:e,removeListener:k};return!1===c.call(d,b)?!1:b.data}function k(){n.removeListener(a,c)}var g=b.call(this,a);if(0>g.getListenerIndex(c)){g=g.listeners;d||(d=this);isNaN(l)&&(l=10);var n=this;e.fn=c;e.priority=l;for(var f=g.length-1;0<=f;f--)if(g[f].priority<=l)return g.splice(f+1,0,e),{removeListener:k};g.unshift(e)}return{removeListener:k}},once:function(){var a= Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,b=function(){a=1},d=0,h=function(){d=1};return function(l,e,k){var g=f(this)[l];l=a;var n=d;a=d=0;if(g){var q=g.listeners;if(q.length)for(var q=q.slice(0),w,r=0;r<q.length;r++){if(g.errorProof)try{w=q[r].call(this, k,e,b,h)}catch(p){}else w=q[r].call(this,k,e,b,h);!1===w?d=1:"undefined"!=typeof w&&(e=w);if(a||d)break}}e=d?!1:"undefined"==typeof e?!0:e;a=l;d=n;return e}}(),fireOnce:function(a,b,d){b=this.fire(a,b,d);delete f(this)[a];return b},removeListener:function(a,b){var d=f(this)[a];if(d){var h=d.getListenerIndex(b);0<=h&&d.listeners.splice(h,1)}},removeAllListeners:function(){var a=f(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=f(this)[a])&&0<a.listeners.length}}}());CKEDITOR.editor|| (CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(b,f){b in{instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fire.call(this,b,f,this)},CKEDITOR.editor.prototype.fireOnce=function(b,f){b in{instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,b,f,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype));CKEDITOR.env||(CKEDITOR.env=function(){var b= navigator.userAgent.toLowerCase(),f=b.match(/edge[ \/](\d+.?\d*)/),d=-1<b.indexOf("trident/"),d=!(!f&&!d),d={ie:d,edge:!!f,webkit:!d&&-1<b.indexOf(" applewebkit/"),air:-1<b.indexOf(" adobeair/"),mac:-1<b.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<b.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return!1;var a=document.domain,b=window.location.hostname;return a!=b&&a!="["+b+"]"}, secure:"https:"==location.protocol};d.gecko="Gecko"==navigator.product&&!d.webkit&&!d.ie;d.webkit&&(-1<b.indexOf("chrome")?d.chrome=!0:d.safari=!0);var a=0;d.ie&&(a=f?parseFloat(f[1]):d.quirks||!document.documentMode?parseFloat(b.match(/msie (\d+)/)[1]):document.documentMode,d.ie9Compat=9==a,d.ie8Compat=8==a,d.ie7Compat=7==a,d.ie6Compat=7>a||d.quirks);d.gecko&&(f=b.match(/rv:([\d\.]+)/))&&(f=f[1].split("."),a=1E4*f[0]+100*(f[1]||0)+1*(f[2]||0));d.air&&(a=parseFloat(b.match(/ adobeair\/(\d+)/)[1])); d.webkit&&(a=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]));d.version=a;d.isCompatible=!(d.ie&&7>a)&&!(d.gecko&&4E4>a)&&!(d.webkit&&534>a);d.hidpi=2<=window.devicePixelRatio;d.needsBrFiller=d.gecko||d.webkit||d.ie&&10<a;d.needsNbspFiller=d.ie&&11>a;d.cssClass="cke_browser_"+(d.ie?"ie":d.gecko?"gecko":d.webkit?"webkit":"unknown");d.quirks&&(d.cssClass+=" cke_browser_quirks");d.ie&&(d.cssClass+=" cke_browser_ie"+(d.quirks?"6 cke_browser_iequirks":d.version));d.air&&(d.cssClass+=" cke_browser_air"); d.iOS&&(d.cssClass+=" cke_browser_ios");d.hidpi&&(d.cssClass+=" cke_hidpi");return d}());"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var b=document.createElement("script");b.type="text/javascript";b.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(b)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add= function(b){(this._.pending||(this._.pending=[])).push(b)};(function(){CKEDITOR.domReady(function(){var b=CKEDITOR.loadFullCore,f=CKEDITOR.loadFullCoreTimeout;b&&(CKEDITOR.status="basic_ready",b&&b._load?b():f&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1E3*f))})})();CKEDITOR.status="basic_loaded"}();"use strict";CKEDITOR.VERBOSITY_WARN=1;CKEDITOR.VERBOSITY_ERROR=2;CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR;CKEDITOR.warn=function(b,f){CKEDITOR.verbosity& CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:b,additionalData:f})};CKEDITOR.error=function(b,f){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:b,additionalData:f})};CKEDITOR.on("log",function(b){if(window.console&&window.console.log){var f=console[b.data.type]?b.data.type:"log",d=b.data.errorCode;if(b=b.data.additionalData)console[f]("[CKEDITOR] Error code: "+d+".",b);else console[f]("[CKEDITOR] Error code: "+d+".");console[f]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+ d)}},null,null,999);CKEDITOR.dom={};(function(){function b(a,b,g){this._minInterval=a;this._context=g;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(b,g||{});var e=this;this.input=function(){function a(){e._lastOutput=(new Date).getTime();e._scheduledTimer=0;e._call()}if(!e._scheduledTimer||!1!==e._reschedule()){var b=(new Date).getTime()-e._lastOutput;b<e._minInterval?e._scheduledTimer=setTimeout(a,e._minInterval-b):a()}}}function f(a,g,e){b.call(this,a,g,e);this._args= [];var c=this;this.input=CKEDITOR.tools.override(this.input,function(a){return function(){c._args=Array.prototype.slice.call(arguments);a.call(this)}})}var d=[],a=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",c=/&/g,m=/>/g,h=/</g,l=/"/g,e=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,k={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:"­"},g=function(a,b){return"#"==b[0]?String.fromCharCode(parseInt(b.slice(1),10)):k[b]};CKEDITOR.on("reset",function(){d=[]});CKEDITOR.tools= {arrayCompare:function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!=b.length)return!1;for(var g=0;g<a.length;g++)if(a[g]!=b[g])return!1;return!0},getIndex:function(a,b){for(var g=0;g<a.length;++g)if(b(a[g]))return g;return-1},clone:function(a){var b;if(a&&a instanceof Array){b=[];for(var g=0;g<a.length;g++)b[g]=CKEDITOR.tools.clone(a[g]);return b}if(null===a||"object"!=typeof a||a instanceof String||a instanceof Number||a instanceof Boolean||a instanceof Date||a instanceof RegExp||a.nodeType||a.window=== a)return a;b=new a.constructor;for(g in a)b[g]=CKEDITOR.tools.clone(a[g]);return b},capitalize:function(a,b){return a.charAt(0).toUpperCase()+(b?a.slice(1):a.slice(1).toLowerCase())},extend:function(a){var b=arguments.length,g,e;"boolean"==typeof(g=arguments[b-1])?b--:"boolean"==typeof(g=arguments[b-2])&&(e=arguments[b-1],b-=2);for(var c=1;c<b;c++){var k=arguments[c]||{};CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(k),function(b){if(!0===g||null==a[b])if(!e||b in e)a[b]=k[b]})}return a}, prototypedCopy:function(a){var b=function(){};b.prototype=a;return new b},copy:function(a){var b={},g;for(g in a)b[g]=a[g];return b},isArray:function(a){return"[object Array]"==Object.prototype.toString.call(a)},isEmpty:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0},cssVendorPrefix:function(b,g,e){if(e)return a+b+":"+g+";"+b+":"+g;e={};e[b]=g;e[a+b]=g;return e},cssStyleToDomStyle:function(){var a=document.createElement("div").style,b="undefined"!=typeof a.cssFloat?"cssFloat": "undefined"!=typeof a.styleFloat?"styleFloat":"float";return function(a){return"float"==a?b:a.replace(/-./g,function(a){return a.substr(1).toUpperCase()})}}(),buildStyleHtml:function(a){a=[].concat(a);for(var b,g=[],e=0;e<a.length;e++)if(b=a[e])/@import|[{}]/.test(b)?g.push("\x3cstyle\x3e"+b+"\x3c/style\x3e"):g.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+b+'"\x3e');return g.join("")},htmlEncode:function(a){return void 0===a||null===a?"":String(a).replace(c,"\x26amp;").replace(m, "\x26gt;").replace(h,"\x26lt;")},htmlDecode:function(a){return a.replace(e,g)},htmlEncodeAttr:function(a){return CKEDITOR.tools.htmlEncode(a).replace(l,"\x26quot;")},htmlDecodeAttr:function(a){return CKEDITOR.tools.htmlDecode(a)},transformPlainTextToHtml:function(a,b){var g=b==CKEDITOR.ENTER_BR,e=this.htmlEncode(a.replace(/\r\n/g,"\n")),e=e.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),c=b==CKEDITOR.ENTER_P?"p":"div";if(!g){var k=/\n{2}/g;if(k.test(e))var d="\x3c"+c+"\x3e",l="\x3c/"+c+"\x3e",e=d+ e.replace(k,function(){return l+d})+l}e=e.replace(/\n/g,"\x3cbr\x3e");g||(e=e.replace(new RegExp("\x3cbr\x3e(?\x3d\x3c/"+c+"\x3e)"),function(a){return CKEDITOR.tools.repeat(a,2)}));e=e.replace(/^ | $/g,"\x26nbsp;");return e=e.replace(/(>|\s) /g,function(a,b){return b+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var a="e",b=0;8>b;b++)a+=Math.floor(65536* (1+Math.random())).toString(16).substring(1);return a},override:function(a,b){var g=b(a);g.prototype=a.prototype;return g},setTimeout:function(a,b,g,e,c){c||(c=window);g||(g=c);return c.setTimeout(function(){e?a.apply(g,[].concat(e)):a.apply(g)},b||0)},throttle:function(a,b,g){return new this.buffers.throttle(a,b,g)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(b){return b.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g;return function(b){return b.replace(a,"")}}(), rtrim:function(){var a=/[ \t\n\r]+$/g;return function(b){return b.replace(a,"")}}(),indexOf:function(a,b){if("function"==typeof b)for(var g=0,e=a.length;g<e;g++){if(b(a[g]))return g}else{if(a.indexOf)return a.indexOf(b);g=0;for(e=a.length;g<e;g++)if(a[g]===b)return g}return-1},search:function(a,b){var g=CKEDITOR.tools.indexOf(a,b);return 0<=g?a[g]:null},bind:function(a,b){var g=Array.prototype.slice.call(arguments,2);return function(){return a.apply(b,g.concat(Array.prototype.slice.call(arguments)))}}, createClass:function(a){var b=a.$,g=a.base,e=a.privates||a._,c=a.proto;a=a.statics;!b&&(b=function(){g&&this.base.apply(this,arguments)});if(e)var k=b,b=function(){var a=this._||(this._={}),b;for(b in e){var g=e[b];a[b]="function"==typeof g?CKEDITOR.tools.bind(g,this):g}k.apply(this,arguments)};g&&(b.prototype=this.prototypedCopy(g.prototype),b.prototype.constructor=b,b.base=g,b.baseProto=g.prototype,b.prototype.base=function t(){this.base=g.prototype.base;g.apply(this,arguments);this.base=t});c&& this.extend(b.prototype,c,!0);a&&this.extend(b,a,!0);return b},addFunction:function(a,b){return d.push(function(){return a.apply(b||this,arguments)})-1},removeFunction:function(a){d[a]=null},callFunction:function(a){var b=d[a];return b&&b.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a=/^-?\d+\.?\d*px$/,b;return function(g){b=CKEDITOR.tools.trim(g+"")+"px";return a.test(b)?b:g||""}}(),convertToPx:function(){var a;return function(b){a||(a=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"\x3e\x3c/div\x3e', CKEDITOR.document),CKEDITOR.document.getBody().append(a));if(!/%$/.test(b)){var g=0>parseFloat(b);g&&(b=b.replace("-",""));a.setStyle("width",b);b=a.$.clientWidth;return g?-b:b}return b}}(),repeat:function(a,b){return Array(b+1).join(a)},tryThese:function(){for(var a,b=0,g=arguments.length;b<g;b++){var e=arguments[b];try{a=e();break}catch(c){}}return a},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var b=arguments,g=this;window.setTimeout(function(){a.apply(g, b)},0)}},normalizeCssText:function(a,b){var g=[],e,c=CKEDITOR.tools.parseCssText(a,!0,b);for(e in c)g.push(e+":"+c[e]);g.sort();return g.length?g.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,b,g,e){a=[b,g,e];for(b=0;3>b;b++)a[b]=("0"+parseInt(a[b],10).toString(16)).slice(-2);return"#"+a.join("")})},normalizeHex:function(a){return a.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(a,b,g,e){a=b.toLowerCase();3==a.length&& (a=a.split(""),a=[a[0],a[0],a[1],a[1],a[2],a[2]].join(""));return"#"+a+e})},_isValidColorFormat:function(a){if(!a)return!1;a=a.replace(/\s+/g,"");return/^[a-z0-9()#%,./]+$/i.test(a)},parseCssText:function(a,b,g){var e={};g&&(a=(new CKEDITOR.dom.element("span")).setAttribute("style",a).getAttribute("style")||"");a&&(a=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(a)));if(!a||";"==a)return e;a.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,g,c){b&&(g= g.toLowerCase(),"font-family"==g&&(c=c.replace(/\s*,\s*/g,",")),c=CKEDITOR.tools.trim(c));e[g]=c});return e},writeCssText:function(a,b){var g,e=[];for(g in a)e.push(g+":"+a[g]);b&&e.sort();return e.join("; ")},objectCompare:function(a,b,g){var e;if(!a&&!b)return!0;if(!a||!b)return!1;for(e in a)if(a[e]!=b[e])return!1;if(!g)for(e in b)if(a[e]!=b[e])return!1;return!0},objectKeys:function(a){return CKEDITOR.tools.object.keys(a)},convertArrayToObject:function(a,b){var g={};1==arguments.length&&(b=!0); for(var e=0,c=a.length;e<c;++e)g[a[e]]=b;return g},getStyledSpans:function(a,b){var g=CKEDITOR.env.ie&&8==CKEDITOR.env.version?a.toUpperCase():a,g=b.find("span[style*\x3d"+g+"]").toArray();return CKEDITOR.tools.array.filter(g,function(b){return!!b.getStyle(a)})},fixDomain:function(){for(var a;;)try{a=window.parent.document.domain;break}catch(b){a=a?a.replace(/.+?(?:\.|$)/,""):document.domain;if(!a)break;document.domain=a}return!!a},eventsBuffer:function(a,b,g){return new this.buffers.event(a,b,g)}, enableHtml5Elements:function(a,b){for(var g="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video".split(" "),e=g.length,c;e--;)c=a.createElement(g[e]),b&&a.appendChild(c)},checkIfAnyArrayItemMatches:function(a,b){for(var g=0,e=a.length;g<e;++g)if(a[g].match(b))return!0;return!1},checkIfAnyObjectPropertyMatches:function(a,b){for(var g in a)if(g.match(b))return!0;return!1},keystrokeToString:function(a, b){var g=this.keystrokeToArray(a,b);g.display=g.display.join("+");g.aria=g.aria.join("+");return g},keystrokeToArray:function(a,b){var g=b&16711680,e=b&65535,c=CKEDITOR.env.mac,k=[],d=[];g&CKEDITOR.CTRL&&(k.push(c?"⌘":a[17]),d.push(c?a[224]:a[17]));g&CKEDITOR.ALT&&(k.push(c?"⌥":a[18]),d.push(a[18]));g&CKEDITOR.SHIFT&&(k.push(c?"⇧":a[16]),d.push(a[16]));e&&(a[e]?(k.push(a[e]),d.push(a[e])):(k.push(String.fromCharCode(e)),d.push(String.fromCharCode(e))));return{display:k,aria:d}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d", getCookie:function(a){a=a.toLowerCase();for(var b=document.cookie.split(";"),g,e,c=0;c<b.length;c++)if(g=b[c].split("\x3d"),e=decodeURIComponent(CKEDITOR.tools.trim(g[0]).toLowerCase()),e===a)return decodeURIComponent(1<g.length?g[1]:"");return null},setCookie:function(a,b){document.cookie=encodeURIComponent(a)+"\x3d"+encodeURIComponent(b)+";path\x3d/"},getCsrfToken:function(){var a=CKEDITOR.tools.getCookie("ckCsrfToken");if(!a||40!=a.length){var a=[],b="";if(window.crypto&&window.crypto.getRandomValues)a= new Uint8Array(40),window.crypto.getRandomValues(a);else for(var g=0;40>g;g++)a.push(Math.floor(256*Math.random()));for(g=0;g<a.length;g++)var e="abcdefghijklmnopqrstuvwxyz0123456789".charAt(a[g]%36),b=b+(.5<Math.random()?e.toUpperCase():e);a=b;CKEDITOR.tools.setCookie("ckCsrfToken",a)}return a},escapeCss:function(a){return a?window.CSS&&CSS.escape?CSS.escape(a):isNaN(parseInt(a.charAt(0),10))?a:"\\3"+a.charAt(0)+" "+a.substring(1,a.length):""},getMouseButton:function(a){return(a=a&&a.data?a.data.$: a)?CKEDITOR.tools.normalizeMouseButton(a.button):!1},normalizeMouseButton:function(a,b){if(!CKEDITOR.env.ie||9<=CKEDITOR.env.version&&!CKEDITOR.env.ie6Compat)return a;for(var g=[[CKEDITOR.MOUSE_BUTTON_LEFT,1],[CKEDITOR.MOUSE_BUTTON_MIDDLE,4],[CKEDITOR.MOUSE_BUTTON_RIGHT,2]],e=0;e<g.length;e++){var c=g[e];if(c[0]===a&&b)return c[1];if(!b&&c[1]===a)return c[0]}},convertHexStringToBytes:function(a){var b=[],g=a.length/2,e;for(e=0;e<g;e++)b.push(parseInt(a.substr(2*e,2),16));return b},convertBytesToBase64:function(a){var b= "",g=a.length,e;for(e=0;e<g;e+=3){var c=a.slice(e,e+3),k=c.length,d=[],l;if(3>k)for(l=k;3>l;l++)c[l]=0;d[0]=(c[0]&252)>>2;d[1]=(c[0]&3)<<4|c[1]>>4;d[2]=(c[1]&15)<<2|(c[2]&192)>>6;d[3]=c[2]&63;for(l=0;4>l;l++)b=l<=k?b+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(d[l]):b+"\x3d"}return b},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD", blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F", darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082", ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6", magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA", palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F", steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",windowtext:"windowtext",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "),_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi, background:function(a){var b={},g=this._findColor(a);g.length&&(b.color=g[0],CKEDITOR.tools.array.forEach(g,function(b){a=a.replace(b,"")}));if(a=CKEDITOR.tools.trim(a))b.unprocessed=a;return b},margin:function(a){return CKEDITOR.tools.style.parse.sideShorthand(a,function(a){return a.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||["0px"]})},sideShorthand:function(a,b){function g(a){e.top=c[a[0]];e.right=c[a[1]];e.bottom=c[a[2]];e.left=c[a[3]]}var e={},c=b?b(a):a.split(/\s+/); switch(c.length){case 1:g([0,0,0,0]);break;case 2:g([0,1,0,1]);break;case 3:g([0,1,2,1]);break;case 4:g([0,1,2,3])}return e},border:function(a){return CKEDITOR.tools.style.border.fromCssRule(a)},_findColor:function(a){var b=[],g=CKEDITOR.tools.array,b=b.concat(a.match(this._rgbaRegExp)||[]),b=b.concat(a.match(this._hslaRegExp)||[]);return b=b.concat(g.filter(a.split(/\s+/),function(a){return a.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:a.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}}, array:{filter:function(a,b,g){var e=[];this.forEach(a,function(c,k){b.call(g,c,k,a)&&e.push(c)});return e},find:function(a,b,g){for(var e=a.length,c=0;c<e;){if(b.call(g,a[c],c,a))return a[c];c++}},forEach:function(a,b,g){var e=a.length,c;for(c=0;c<e;c++)b.call(g,a[c],c,a)},map:function(a,b,g){for(var e=[],c=0;c<a.length;c++)e.push(b.call(g,a[c],c,a));return e},reduce:function(a,b,g,e){for(var c=0;c<a.length;c++)g=b.call(e,g,a[c],c,a);return g},every:function(a,b,g){if(!a.length)return!0;b=this.filter(a, b,g);return a.length===b.length},some:function(a,b,g){for(var e=0;e<a.length;e++)if(b.call(g,a[e],e,a))return!0;return!1},zip:function(a,b){return CKEDITOR.tools.array.map(a,function(a,g){return[a,b[g]]})},unique:function(a){return this.filter(a,function(b,g){return g===CKEDITOR.tools.array.indexOf(a,b)})}},object:{DONT_ENUMS:"toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),entries:function(a){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(a), function(b){return[b,a[b]]})},values:function(a){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(a),function(b){return a[b]})},keys:function(a){var b=Object.prototype.hasOwnProperty,g=[],e=CKEDITOR.tools.object.DONT_ENUMS;if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(!a||"object"!==typeof a)){b=[];if("string"===typeof a)for(g=0;g<a.length;g++)b.push(String(g));return b}for(var c in a)g.push(c);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)for(c=0;c<e.length;c++)b.call(a,e[c])&&g.push(e[c]); return g},findKey:function(a,b){if("object"!==typeof a)return null;for(var g in a)if(a[g]===b)return g;return null},merge:function(a,b){var g=CKEDITOR.tools,e=g.clone(a),c=g.clone(b);g.array.forEach(g.object.keys(c),function(a){e[a]="object"===typeof c[a]&&"object"===typeof e[a]?g.object.merge(e[a],c[a]):c[a]});return e}},getAbsoluteRectPosition:function(a,b){function g(a){if(a){var b=a.getClientRect();e.top+=b.top;e.left+=b.left;"x"in e&&"y"in e&&(e.x+=b.x,e.y+=b.y);g(a.getWindow().getFrame())}} var e=CKEDITOR.tools.copy(b);g(a.getFrame());var c=CKEDITOR.document.getWindow().getScrollPosition();e.top+=c.y;e.left+=c.x;"x"in e&&"y"in e&&(e.y+=c.y,e.x+=c.x);e.right=e.left+e.width;e.bottom=e.top+e.height;return e}};b.prototype={reset:function(){this._lastOutput=0;this._clearTimer()},_reschedule:function(){return!1},_call:function(){this._output()},_clearTimer:function(){this._scheduledTimer&&clearTimeout(this._scheduledTimer);this._scheduledTimer=0}};f.prototype=CKEDITOR.tools.prototypedCopy(b.prototype); f.prototype._reschedule=function(){this._scheduledTimer&&this._clearTimer()};f.prototype._call=function(){this._output.apply(this._context,this._args)};CKEDITOR.tools.buffers={};CKEDITOR.tools.buffers.event=b;CKEDITOR.tools.buffers.throttle=f;CKEDITOR.tools.style.border=CKEDITOR.tools.createClass({$:function(a){a=a||{};this.width=a.width;this.style=a.style;this.color=a.color;this._.normalize()},_:{normalizeMap:{color:[[/windowtext/g,"black"]]},normalize:function(){for(var a in this._.normalizeMap){var b= this[a];b&&(this[a]=CKEDITOR.tools.array.reduce(this._.normalizeMap[a],function(a,b){return a.replace(b[0],b[1])},b))}}},proto:{toString:function(){return CKEDITOR.tools.array.filter([this.width,this.style,this.color],function(a){return!!a}).join(" ")}},statics:{fromCssRule:function(a){var b={},g=a.split(/\s+/g);a=CKEDITOR.tools.style.parse._findColor(a);a.length&&(b.color=a[0]);CKEDITOR.tools.array.forEach(g,function(a){b.style||-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle, a)?!b.width&&CKEDITOR.tools.style.parse._widthRegExp.test(a)&&(b.width=a):b.style=a});return new CKEDITOR.tools.style.border(b)},splitCssValues:function(a,b){b=b||{};var g=CKEDITOR.tools.array.reduce(["width","style","color"],function(g,e){var c=a["border-"+e]||b[e];g[e]=c?CKEDITOR.tools.style.parse.sideShorthand(c):null;return g},{});return CKEDITOR.tools.array.reduce(["top","right","bottom","left"],function(b,e){var c={},k;for(k in g){var d=a["border-"+e+"-"+k];c[k]=d?d:g[k]&&g[k][e]}b["border-"+ e]=new CKEDITOR.tools.style.border(c);return b},{})}}});CKEDITOR.tools.array.indexOf=CKEDITOR.tools.indexOf;CKEDITOR.tools.array.isArray=CKEDITOR.tools.isArray;CKEDITOR.MOUSE_BUTTON_LEFT=0;CKEDITOR.MOUSE_BUTTON_MIDDLE=1;CKEDITOR.MOUSE_BUTTON_RIGHT=2})();CKEDITOR.dtd=function(){var b=CKEDITOR.tools.extend,f=function(a,b){for(var e=CKEDITOR.tools.clone(a),c=1;c<arguments.length;c++){b=arguments[c];for(var d in b)delete e[d]}return e},d={},a={},c={address:1,article:1,aside:1,blockquote:1,details:1,div:1, dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},m={command:1,link:1,meta:1,noscript:1,script:1,style:1},h={},l={"#":1},e={center:1,dir:1,noframes:1};b(d,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1, q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},l,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});b(a,c,d,e);f={a:f(d,{a:1,button:1}),abbr:d,address:a,area:h,article:a,aside:a,audio:b({source:1,track:1},a),b:d,base:h,bdi:d,bdo:d,blockquote:a,body:a,br:h,button:f(d,{a:1,button:1}),canvas:d,caption:a,cite:d,code:d,col:h,colgroup:{col:1},command:h,datalist:b({option:1},d),dd:a,del:d,details:b({summary:1}, a),dfn:d,div:a,dl:{dt:1,dd:1},dt:a,em:d,embed:h,fieldset:b({legend:1},a),figcaption:a,figure:b({figcaption:1},a),footer:a,form:a,h1:d,h2:d,h3:d,h4:d,h5:d,h6:d,head:b({title:1,base:1},m),header:a,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:h,html:b({head:1,body:1},a,m),i:d,iframe:l,img:h,input:h,ins:d,kbd:d,keygen:h,label:d,legend:d,li:a,link:h,main:a,map:a,mark:d,menu:b({li:1},a),meta:h,meter:f(d,{meter:1}),nav:a,noscript:b({link:1,meta:1,style:1},d),object:b({param:1},d),ol:{li:1},optgroup:{option:1}, option:l,output:d,p:d,param:h,pre:d,progress:f(d,{progress:1}),q:d,rp:d,rt:d,ruby:b({rp:1,rt:1},d),s:d,samp:d,script:l,section:a,select:{optgroup:1,option:1},small:d,source:h,span:d,strong:d,style:l,sub:d,summary:b({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},d),sup:d,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:a,textarea:l,tfoot:{tr:1},th:a,thead:{tr:1},time:f(d,{time:1}),title:l,tr:{th:1,td:1},track:h,u:d,ul:{li:1},"var":d,video:b({source:1,track:1},a),wbr:h,acronym:d,applet:b({param:1}, a),basefont:h,big:d,center:a,dialog:h,dir:{li:1},font:d,isindex:h,noframes:a,strike:d,tt:d};b(f,{$block:b({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},c,e),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1, footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:d,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:b({body:1,head:1,html:1},f.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1, button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1, ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return f}();CKEDITOR.dom.event=function(b){this.$=b};CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var b=this.getKey();if(this.$.ctrlKey||this.$.metaKey)b+=CKEDITOR.CTRL;this.$.shiftKey&&(b+=CKEDITOR.SHIFT);this.$.altKey&&(b+=CKEDITOR.ALT);return b}, preventDefault:function(b){var f=this.$;f.preventDefault?f.preventDefault():f.returnValue=!1;b&&this.stopPropagation()},stopPropagation:function(){var b=this.$;b.stopPropagation?b.stopPropagation():b.cancelBubble=!0},getTarget:function(){var b=this.$.target||this.$.srcElement;return b?new CKEDITOR.dom.node(b):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var b=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(b.documentElement.scrollLeft||b.body.scrollLeft), y:this.$.pageY||this.$.clientY+(b.documentElement.scrollTop||b.body.scrollTop)}}};CKEDITOR.CTRL=1114112;CKEDITOR.SHIFT=2228224;CKEDITOR.ALT=4456448;CKEDITOR.EVENT_PHASE_CAPTURING=1;CKEDITOR.EVENT_PHASE_AT_TARGET=2;CKEDITOR.EVENT_PHASE_BUBBLING=3;CKEDITOR.dom.domObject=function(b){b&&(this.$=b)};CKEDITOR.dom.domObject.prototype=function(){var b=function(b,d){return function(a){"undefined"!=typeof CKEDITOR&&b.fire(d,new CKEDITOR.dom.event(a))}};return{getPrivate:function(){var b;(b=this.getCustomData("_"))|| this.setCustomData("_",b={});return b},on:function(f){var d=this.getCustomData("_cke_nativeListeners");d||(d={},this.setCustomData("_cke_nativeListeners",d));d[f]||(d=d[f]=b(this,f),this.$.addEventListener?this.$.addEventListener(f,d,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+f,d));return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(b){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(b)){var d=this.getCustomData("_cke_nativeListeners"), a=d&&d[b];a&&(this.$.removeEventListener?this.$.removeEventListener(b,a,!1):this.$.detachEvent&&this.$.detachEvent("on"+b,a),delete d[b])}},removeAllListeners:function(){try{var b=this.getCustomData("_cke_nativeListeners"),d;for(d in b){var a=b[d];this.$.detachEvent?this.$.detachEvent("on"+d,a):this.$.removeEventListener&&this.$.removeEventListener(d,a,!1);delete b[d]}}catch(c){if(!CKEDITOR.env.edge||-2146828218!==c.number)throw c;}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}();(function(b){var f= {};CKEDITOR.on("reset",function(){f={}});b.equals=function(b){try{return b&&b.$===this.$}catch(a){return!1}};b.setCustomData=function(b,a){var c=this.getUniqueId();(f[c]||(f[c]={}))[b]=a;return this};b.getCustomData=function(b){var a=this.$["data-cke-expando"];return(a=a&&f[a])&&b in a?a[b]:null};b.removeCustomData=function(b){var a=this.$["data-cke-expando"],a=a&&f[a],c,m;a&&(c=a[b],m=b in a,delete a[b]);return m?c:null};b.clearCustomData=function(){this.removeAllListeners();var b=this.getUniqueId(); b&&delete f[b]};b.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(b)})(CKEDITOR.dom.domObject.prototype);CKEDITOR.dom.node=function(b){return b?new CKEDITOR.dom[b.nodeType==CKEDITOR.NODE_DOCUMENT?"document":b.nodeType==CKEDITOR.NODE_ELEMENT?"element":b.nodeType==CKEDITOR.NODE_TEXT?"text":b.nodeType==CKEDITOR.NODE_COMMENT?"comment":b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](b): this};CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject;CKEDITOR.NODE_ELEMENT=1;CKEDITOR.NODE_DOCUMENT=9;CKEDITOR.NODE_TEXT=3;CKEDITOR.NODE_COMMENT=8;CKEDITOR.NODE_DOCUMENT_FRAGMENT=11;CKEDITOR.POSITION_IDENTICAL=0;CKEDITOR.POSITION_DISCONNECTED=1;CKEDITOR.POSITION_FOLLOWING=2;CKEDITOR.POSITION_PRECEDING=4;CKEDITOR.POSITION_IS_CONTAINED=8;CKEDITOR.POSITION_CONTAINS=16;CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(b,f){b.append(this,f);return b},clone:function(b,f){function d(a){a["data-cke-expando"]&& (a["data-cke-expando"]=!1);if(a.nodeType==CKEDITOR.NODE_ELEMENT||a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(f||a.nodeType!=CKEDITOR.NODE_ELEMENT||a.removeAttribute("id",!1),b){a=a.childNodes;for(var c=0;c<a.length;c++)d(a[c])}}function a(c){if(c.type==CKEDITOR.NODE_ELEMENT||c.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(c.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var d=c.getName();":"==d[0]&&c.renameNode(d.substring(1))}if(b)for(d=0;d<c.getChildCount();d++)a(c.getChild(d))}}var c=this.$.cloneNode(b); d(c);c=new CKEDITOR.dom.node(c);CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&a(c);return c},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(b){b.$.parentNode.insertBefore(this.$,b.$.nextSibling);return b},insertBefore:function(b){b.$.parentNode.insertBefore(this.$,b.$);return b},insertBeforeMe:function(b){this.$.parentNode.insertBefore(b.$,this.$); return b},getAddress:function(b){for(var f=[],d=this.getDocument().$.documentElement,a=this;a&&a!=d;){var c=a.getParent();c&&f.unshift(this.getIndex.call(a,b));a=c}return f},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(b){function f(a,b){var c=b?a.getNext():a.getPrevious();return c&&c.type==CKEDITOR.NODE_TEXT?c.isEmpty()?f(c,b):c:null}var d=this,a=-1,c;if(!this.getParent()||b&&d.type==CKEDITOR.NODE_TEXT&&d.isEmpty()&& !f(d)&&!f(d,!0))return-1;do if(!b||d.equals(this)||d.type!=CKEDITOR.NODE_TEXT||!c&&!d.isEmpty())a++,c=d.type==CKEDITOR.NODE_TEXT;while(d=d.getPrevious());return a},getNextSourceNode:function(b,f,d){if(d&&!d.call){var a=d;d=function(b){return!b.equals(a)}}b=!b&&this.getFirst&&this.getFirst();var c;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&d&&!1===d(this,!0))return null;b=this.getNext()}for(;!b&&(c=(c||this).getParent());){if(d&&!1===d(c,!0))return null;b=c.getNext()}return!b||d&&!1===d(b)?null:f&& f!=b.type?b.getNextSourceNode(!1,f,d):b},getPreviousSourceNode:function(b,f,d){if(d&&!d.call){var a=d;d=function(b){return!b.equals(a)}}b=!b&&this.getLast&&this.getLast();var c;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&d&&!1===d(this,!0))return null;b=this.getPrevious()}for(;!b&&(c=(c||this).getParent());){if(d&&!1===d(c,!0))return null;b=c.getPrevious()}return!b||d&&!1===d(b)?null:f&&b.type!=f?b.getPreviousSourceNode(!1,f,d):b},getPrevious:function(b){var f=this.$,d;do d=(f=f.previousSibling)&& 10!=f.nodeType&&new CKEDITOR.dom.node(f);while(d&&b&&!b(d));return d},getNext:function(b){var f=this.$,d;do d=(f=f.nextSibling)&&new CKEDITOR.dom.node(f);while(d&&b&&!b(d));return d},getParent:function(b){var f=this.$.parentNode;return f&&(f.nodeType==CKEDITOR.NODE_ELEMENT||b&&f.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(f):null},getParents:function(b){var f=this,d=[];do d[b?"push":"unshift"](f);while(f=f.getParent());return d},getCommonAncestor:function(b){if(b.equals(this))return this; if(b.contains&&b.contains(this))return b;var f=this.contains?this:this.getParent();do if(f.contains(b))return f;while(f=f.getParent());return null},getPosition:function(b){var f=this.$,d=b.$;if(f.compareDocumentPosition)return f.compareDocumentPosition(d);if(f==d)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&b.type==CKEDITOR.NODE_ELEMENT){if(f.contains){if(f.contains(d))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(d.contains(f))return CKEDITOR.POSITION_IS_CONTAINED+ CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in f)return 0>f.sourceIndex||0>d.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:f.sourceIndex<d.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}f=this.getAddress();b=b.getAddress();for(var d=Math.min(f.length,b.length),a=0;a<d;a++)if(f[a]!=b[a])return f[a]<b[a]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return f.length<b.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}, getAscendant:function(b,f){var d=this.$,a,c;f||(d=d.parentNode);"function"==typeof b?(c=!0,a=b):(c=!1,a=function(a){a="string"==typeof a.nodeName?a.nodeName.toLowerCase():"";return"string"==typeof b?a==b:a in b});for(;d;){if(a(c?new CKEDITOR.dom.node(d):d))return new CKEDITOR.dom.node(d);try{d=d.parentNode}catch(m){d=null}}return null},hasAscendant:function(b,f){var d=this.$;f||(d=d.parentNode);for(;d;){if(d.nodeName&&d.nodeName.toLowerCase()==b)return!0;d=d.parentNode}return!1},move:function(b,f){b.append(this.remove(), f)},remove:function(b){var f=this.$,d=f.parentNode;if(d){if(b)for(;b=f.firstChild;)d.insertBefore(f.removeChild(b),f);d.removeChild(f)}return this},replace:function(b){this.insertBefore(b);b.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var b;this.getFirst&&(b=this.getFirst());){if(b.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.ltrim(b.getText()),d=b.getLength();if(f)f.length<d&&(b.split(d-f.length),this.$.removeChild(this.$.firstChild));else{b.remove();continue}}break}}, rtrim:function(){for(var b;this.getLast&&(b=this.getLast());){if(b.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.rtrim(b.getText()),d=b.getLength();if(f)f.length<d&&(b.split(f.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{b.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(b=this.$.lastChild)&&1==b.type&&"br"==b.nodeName.toLowerCase()&&b.parentNode.removeChild(b)},isReadOnly:function(b){var f=this;this.type!=CKEDITOR.NODE_ELEMENT&&(f=this.getParent());CKEDITOR.env.edge&& f&&f.is("textarea","input")&&(b=!0);if(!b&&f&&"undefined"!=typeof f.$.isContentEditable)return!(f.$.isContentEditable||f.data("cke-editable"));for(;f;){if(f.data("cke-editable"))return!1;if(f.hasAttribute("contenteditable"))return"false"==f.getAttribute("contenteditable");f=f.getParent()}return!0}});CKEDITOR.dom.window=function(b){CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject;CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()}, getViewPaneSize:function(){var b=this.$.document,f="CSS1Compat"==b.compatMode;return{width:(f?b.documentElement.clientWidth:b.body.clientWidth)||0,height:(f?b.documentElement.clientHeight:b.body.clientHeight)||0}},getScrollPosition:function(){var b=this.$;if("pageXOffset"in b)return{x:b.pageXOffset||0,y:b.pageYOffset||0};b=b.document;return{x:b.documentElement.scrollLeft||b.body.scrollLeft||0,y:b.documentElement.scrollTop||b.body.scrollTop||0}},getFrame:function(){var b=this.$.frameElement;return b? new CKEDITOR.dom.element.get(b):null}});CKEDITOR.dom.document=function(b){CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject;CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(b){if(this.$.createStyleSheet)this.$.createStyleSheet(b);else{var f=new CKEDITOR.dom.element("link");f.setAttributes({rel:"stylesheet",type:"text/css",href:b});this.getHead().append(f)}},appendStyleText:function(b){if(this.$.createStyleSheet){var f= this.$.createStyleSheet("");f.cssText=b}else{var d=new CKEDITOR.dom.element("style",this);d.append(new CKEDITOR.dom.text(b,this));this.getHead().append(d)}return f||d.$.sheet},createElement:function(b,f){var d=new CKEDITOR.dom.element(b,this);f&&(f.attributes&&d.setAttributes(f.attributes),f.styles&&d.setStyles(f.styles));return d},createText:function(b){return new CKEDITOR.dom.text(b,this)},focus:function(){this.getWindow().focus()},getActive:function(){var b;try{b=this.$.activeElement}catch(f){return null}return new CKEDITOR.dom.element(b)}, getById:function(b){return(b=this.$.getElementById(b))?new CKEDITOR.dom.element(b):null},getByAddress:function(b,f){for(var d=this.$.documentElement,a=0;d&&a<b.length;a++){var c=b[a];if(f)for(var m=-1,h=0;h<d.childNodes.length;h++){var l=d.childNodes[h];if(!0!==f||3!=l.nodeType||!l.previousSibling||3!=l.previousSibling.nodeType)if(m++,m==c){d=l;break}}else d=d.childNodes[c]}return d?new CKEDITOR.dom.node(d):null},getElementsByTag:function(b,f){CKEDITOR.env.ie&&8>=document.documentMode||!f||(b=f+":"+ b);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=this.$.getElementsByTagName("head")[0];return b=b?new CKEDITOR.dom.element(b):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(b){this.$.open("text/html", "replace");CKEDITOR.env.ie&&(b=b.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(b);this.$.close()},find:function(b){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b))},findOne:function(b){return(b=this.$.querySelector(b))?new CKEDITOR.dom.element(b):null},_getHtml5ShivFrag:function(){var b=this.getCustomData("html5ShivFrag");b||(b=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(b, !0),this.setCustomData("html5ShivFrag",b));return b}});CKEDITOR.dom.nodeList=function(b){this.$=b};CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(b){return 0>b||b>=this.$.length?null:(b=this.$[b])?new CKEDITOR.dom.node(b):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(b){return new CKEDITOR.dom.node(b)})}};CKEDITOR.dom.element=function(b,f){"string"==typeof b&&(b=(f?f.$:document).createElement(b));CKEDITOR.dom.domObject.call(this, b)};CKEDITOR.dom.element.get=function(b){return(b="string"==typeof b?document.getElementById(b)||document.getElementsByName(b)[0]:b)&&(b.$?b:new CKEDITOR.dom.element(b))};CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node;CKEDITOR.dom.element.createFromHtml=function(b,f){var d=new CKEDITOR.dom.element("div",f);d.setHtml(b);return d.getFirst().remove()};CKEDITOR.dom.element.setMarker=function(b,f,d,a){var c=f.getCustomData("list_marker_id")||f.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"), m=f.getCustomData("list_marker_names")||f.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");b[c]=f;m[d]=1;return f.setCustomData(d,a)};CKEDITOR.dom.element.clearAllMarkers=function(b){for(var f in b)CKEDITOR.dom.element.clearMarkers(b,b[f],1)};CKEDITOR.dom.element.clearMarkers=function(b,f,d){var a=f.getCustomData("list_marker_names"),c=f.getCustomData("list_marker_id"),m;for(m in a)f.removeCustomData(m);f.removeCustomData("list_marker_names");d&&(f.removeCustomData("list_marker_id"), delete b[c])};(function(){function b(a,b){return-1<(" "+a+" ").replace(m," ").indexOf(" "+b+" ")}function f(a){var b=!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),b=!1);return function(){b||a.removeAttribute("id")}}function d(a,b){var c=CKEDITOR.tools.escapeCss(a.$.id);return"#"+c+" "+b.split(/,\s*/).join(", #"+c+" ")}function a(a){for(var b=0,c=0,g=h[a].length;c<g;c++)b+=parseFloat(this.getComputedStyle(h[a][c])||0,10)||0;return b}var c=document.createElement("_").classList,c="undefined"!== typeof c&&null!==String(c.add).match(/\[Native code\]/gi),m=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:c?function(a){this.$.classList.add(a);return this}:function(a){var e=this.$.className;e&&(b(e,a)||(e+=" "+a));this.$.className=e||a;return this},removeClass:c?function(a){var b=this.$;b.classList.remove(a);b.className||b.removeAttribute("class");return this}:function(a){var e=this.getAttribute("class");e&&b(e,a)&&((e=e.replace(new RegExp("(?:^|\\s+)"+ a+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",e):this.removeAttribute("class"));return this},hasClass:function(a){return b(this.$.className,a)},append:function(a,b){"string"==typeof a&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){null!= this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();a&&a.is&&a.is("br")||(a=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&a.setAttribute("type","_moz"),this.append(a))}},breakParent:function(a,b){var c=new CKEDITOR.dom.range(this.getDocument());c.setStartAfter(this);c.setEndAfter(a); var g=c.extractContents(!1,b||!1),d;c.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(c=new CKEDITOR.dom.element("div");d=g.getFirst();)d.$.style.backgroundColor&&(d.$.style.backgroundColor=d.$.style.backgroundColor),c.append(d);c.insertAfter(this);c.remove(!0)}else g.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&16)}:function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$): b!=a.$&&b.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(b){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.app