/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var c=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,g={timestamp:"I3G8",version:"4.8.0",revision:"230f715",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:c},status:"unloaded",basePath:function(){var e=window.CKEDITOR_BASEPATH||"";if(!e)for(var f=document.getElementsByTagName("script"),g=0;g<f.length;g++){var b=f[g].src.match(c);if(b){e=b[1];break}}-1==e.indexOf(":/")&&"//"!=e.slice(0,
2)&&(e=0===e.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+e:location.href.match(/^[^\?]*\/(?:)/)[0]+e);if(!e)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return e}(),getUrl:function(e){-1==e.indexOf(":/")&&0!==e.indexOf("/")&&(e=this.basePath+e);this.timestamp&&"/"!=e.charAt(e.length-1)&&!/[&?]t=/.test(e)&&(e+=(0<=e.indexOf("?")?"\x26":"?")+"t\x3d"+this.timestamp);return e},
domReady:function(){function e(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",e,!1),f()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",e),f())}catch(b){}}function f(){for(var b;b=c.shift();)b()}var c=[];return function(b){function h(){try{document.documentElement.doScroll("left")}catch(a){setTimeout(h,1);return}e()}c.push(b);"complete"===document.readyState&&setTimeout(e,1);if(1==c.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",
e,!1),window.addEventListener("load",e,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",e);window.attachEvent("onload",e);b=!1;try{b=!window.frameElement}catch(d){}document.documentElement.doScroll&&b&&h()}}}()},f=window.CKEDITOR_GETURL;if(f){var e=g.getUrl;g.getUrl=function(c){return f.call(g,c)||e.call(g,c)}}return g}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(c){var g=CKEDITOR.event.prototype,f;for(f in g)null==c[f]&&(c[f]=g[f])},
CKEDITOR.event.prototype=function(){function c(e){var c=g(this);return c[e]||(c[e]=new f(e))}var g=function(e){e=e.getPrivate&&e.getPrivate()||e._||(e._={});return e.events||(e.events={})},f=function(e){this.name=e;this.listeners=[]};f.prototype={getListenerIndex:function(e){for(var c=0,f=this.listeners;c<f.length;c++)if(f[c].fn==e)return c;return-1}};return{define:function(e,f){var g=c.call(this,e);CKEDITOR.tools.extend(g,f,!0)},on:function(e,f,g,l,b){function h(a,n,b,h){a={name:e,sender:this,editor:a,
data:n,listenerData:l,stop:b,cancel:h,removeListener:d};return!1===f.call(g,a)?!1:a.data}function d(){n.removeListener(e,f)}var a=c.call(this,e);if(0>a.getListenerIndex(f)){a=a.listeners;g||(g=this);isNaN(b)&&(b=10);var n=this;h.fn=f;h.priority=b;for(var t=a.length-1;0<=t;t--)if(a[t].priority<=b)return a.splice(t+1,0,h),{removeListener:d};a.unshift(h)}return{removeListener:d}},once:function(){var e=Array.prototype.slice.call(arguments),f=e[1];e[1]=function(e){e.removeListener();return f.apply(this,
arguments)};return this.on.apply(this,e)},capture:function(){CKEDITOR.event.useCapture=1;var e=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return e},fire:function(){var e=0,f=function(){e=1},c=0,l=function(){c=1};return function(b,h,d){var a=g(this)[b];b=e;var n=c;e=c=0;if(a){var t=a.listeners;if(t.length)for(var t=t.slice(0),p,x=0;x<t.length;x++){if(a.errorProof)try{p=t[x].call(this,d,h,f,l)}catch(r){}else p=t[x].call(this,d,h,f,l);!1===p?c=1:"undefined"!=typeof p&&(h=p);if(e||c)break}}h=
c?!1:"undefined"==typeof h?!0:h;e=b;c=n;return h}}(),fireOnce:function(e,c,f){c=this.fire(e,c,f);delete g(this)[e];return c},removeListener:function(e,c){var f=g(this)[e];if(f){var l=f.getListenerIndex(c);0<=l&&f.listeners.splice(l,1)}},removeAllListeners:function(){var e=g(this),c;for(c in e)delete e[c]},hasListeners:function(e){return(e=g(this)[e])&&0<e.listeners.length}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=
function(c,g){c in{instanceReady:1,loaded:1}&&(this[c]=!0);return CKEDITOR.event.prototype.fire.call(this,c,g,this)},CKEDITOR.editor.prototype.fireOnce=function(c,g){c in{instanceReady:1,loaded:1}&&(this[c]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,c,g,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var c=navigator.userAgent.toLowerCase(),g=c.match(/edge[ \/](\d+.?\d*)/),f=-1<c.indexOf("trident/"),f=!(!g&&!f),f={ie:f,edge:!!g,webkit:!f&&
-1<c.indexOf(" applewebkit/"),air:-1<c.indexOf(" adobeair/"),mac:-1<c.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<c.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(c),isCustomDomain:function(){if(!this.ie)return!1;var e=document.domain,c=window.location.hostname;return e!=c&&e!="["+c+"]"},secure:"https:"==location.protocol};f.gecko="Gecko"==navigator.product&&!f.webkit&&!f.ie;f.webkit&&(-1<c.indexOf("chrome")?f.chrome=
!0:f.safari=!0);var e=0;f.ie&&(e=g?parseFloat(g[1]):f.quirks||!document.documentMode?parseFloat(c.match(/msie (\d+)/)[1]):document.documentMode,f.ie9Compat=9==e,f.ie8Compat=8==e,f.ie7Compat=7==e,f.ie6Compat=7>e||f.quirks);f.gecko&&(g=c.match(/rv:([\d\.]+)/))&&(g=g[1].split("."),e=1E4*g[0]+100*(g[1]||0)+1*(g[2]||0));f.air&&(e=parseFloat(c.match(/ adobeair\/(\d+)/)[1]));f.webkit&&(e=parseFloat(c.match(/ applewebkit\/(\d+)/)[1]));f.version=e;f.isCompatible=!(f.ie&&7>e)&&!(f.gecko&&4E4>e)&&!(f.webkit&&
534>e);f.hidpi=2<=window.devicePixelRatio;f.needsBrFiller=f.gecko||f.webkit||f.ie&&10<e;f.needsNbspFiller=f.ie&&11>e;f.cssClass="cke_browser_"+(f.ie?"ie":f.gecko?"gecko":f.webkit?"webkit":"unknown");f.quirks&&(f.cssClass+=" cke_browser_quirks");f.ie&&(f.cssClass+=" cke_browser_ie"+(f.quirks?"6 cke_browser_iequirks":f.version));f.air&&(f.cssClass+=" cke_browser_air");f.iOS&&(f.cssClass+=" cke_browser_ios");f.hidpi&&(f.cssClass+=" cke_hidpi");return f}()),"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 c=document.createElement("script");c.type="text/javascript";c.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(c)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(c){(this._.pending||(this._.pending=[])).push(c)};(function(){CKEDITOR.domReady(function(){var c=CKEDITOR.loadFullCore,g=CKEDITOR.loadFullCoreTimeout;c&&(CKEDITOR.status=
"basic_ready",c&&c._load?c():g&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1E3*g))})})();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(c,g){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:c,additionalData:g})},CKEDITOR.error=function(c,g){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",
{type:"error",errorCode:c,additionalData:g})},CKEDITOR.on("log",function(c){if(window.console&&window.console.log){var g=console[c.data.type]?c.data.type:"log",f=c.data.errorCode;if(c=c.data.additionalData)console[g]("[CKEDITOR] Error code: "+f+".",c);else console[g]("[CKEDITOR] Error code: "+f+".");console[g]("[CKEDITOR] For more information about this error go to https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_errors-section-"+f)}},null,null,999),CKEDITOR.dom={},function(){var c=[],g=CKEDITOR.env.gecko?
"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",f=/&/g,e=/>/g,k=/</g,m=/"/g,l=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,b={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:"­"},h=function(d,a){return"#"==a[0]?String.fromCharCode(parseInt(a.slice(1),10)):b[a]};CKEDITOR.on("reset",function(){c=[]});CKEDITOR.tools={arrayCompare:function(d,a){if(!d&&!a)return!0;if(!d||!a||d.length!=a.length)return!1;for(var n=0;n<d.length;n++)if(d[n]!=a[n])return!1;return!0},getIndex:function(d,a){for(var n=
0;n<d.length;++n)if(a(d[n]))return n;return-1},clone:function(d){var a;if(d&&d instanceof Array){a=[];for(var n=0;n<d.length;n++)a[n]=CKEDITOR.tools.clone(d[n]);return a}if(null===d||"object"!=typeof d||d instanceof String||d instanceof Number||d instanceof Boolean||d instanceof Date||d instanceof RegExp||d.nodeType||d.window===d)return d;a=new d.constructor;for(n in d)a[n]=CKEDITOR.tools.clone(d[n]);return a},capitalize:function(d,a){return d.charAt(0).toUpperCase()+(a?d.slice(1):d.slice(1).toLowerCase())},
extend:function(d){var a=arguments.length,n,b;"boolean"==typeof(n=arguments[a-1])?a--:"boolean"==typeof(n=arguments[a-2])&&(b=arguments[a-1],a-=2);for(var h=1;h<a;h++){var e=arguments[h],c;for(c in e)if(!0===n||null==d[c])if(!b||c in b)d[c]=e[c]}return d},prototypedCopy:function(d){var a=function(){};a.prototype=d;return new a},copy:function(d){var a={},n;for(n in d)a[n]=d[n];return a},isArray:function(d){return"[object Array]"==Object.prototype.toString.call(d)},isEmpty:function(d){for(var a in d)if(d.hasOwnProperty(a))return!1;
return!0},cssVendorPrefix:function(d,a,n){if(n)return g+d+":"+a+";"+d+":"+a;n={};n[d]=a;n[g+d]=a;return n},cssStyleToDomStyle:function(){var d=document.createElement("div").style,a="undefined"!=typeof d.cssFloat?"cssFloat":"undefined"!=typeof d.styleFloat?"styleFloat":"float";return function(d){return"float"==d?a:d.replace(/-./g,function(a){return a.substr(1).toUpperCase()})}}(),buildStyleHtml:function(d){d=[].concat(d);for(var a,n=[],b=0;b<d.length;b++)if(a=d[b])/@import|[{}]/.test(a)?n.push("\x3cstyle\x3e"+
a+"\x3c/style\x3e"):n.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+a+'"\x3e');return n.join("")},htmlEncode:function(d){return void 0===d||null===d?"":String(d).replace(f,"\x26amp;").replace(e,"\x26gt;").replace(k,"\x26lt;")},htmlDecode:function(d){return d.replace(l,h)},htmlEncodeAttr:function(d){return CKEDITOR.tools.htmlEncode(d).replace(m,"\x26quot;")},htmlDecodeAttr:function(d){return CKEDITOR.tools.htmlDecode(d)},transformPlainTextToHtml:function(d,a){var n=a==CKEDITOR.ENTER_BR,
b=this.htmlEncode(d.replace(/\r\n/g,"\n")),b=b.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),h=a==CKEDITOR.ENTER_P?"p":"div";if(!n){var e=/\n{2}/g;if(e.test(b))var c="\x3c"+h+"\x3e",f="\x3c/"+h+"\x3e",b=c+b.replace(e,function(){return f+c})+f}b=b.replace(/\n/g,"\x3cbr\x3e");n||(b=b.replace(new RegExp("\x3cbr\x3e(?\x3d\x3c/"+h+"\x3e)"),function(a){return CKEDITOR.tools.repeat(a,2)}));b=b.replace(/^ | $/g,"\x26nbsp;");return b=b.replace(/(>|\s) /g,function(a,d){return d+"\x26nbsp;"}).replace(/ (?=<)/g,
"\x26nbsp;")},getNextNumber:function(){var d=0;return function(){return++d}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var d="e",a=0;8>a;a++)d+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return d},override:function(d,a){var n=a(d);n.prototype=d.prototype;return n},setTimeout:function(d,a,n,b,h){h||(h=window);n||(n=h);return h.setTimeout(function(){b?d.apply(n,[].concat(b)):d.apply(n)},a||0)},trim:function(){var d=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;
return function(a){return a.replace(d,"")}}(),ltrim:function(){var d=/^[ \t\n\r]+/g;return function(a){return a.replace(d,"")}}(),rtrim:function(){var d=/[ \t\n\r]+$/g;return function(a){return a.replace(d,"")}}(),indexOf:function(d,a){if("function"==typeof a)for(var n=0,b=d.length;n<b;n++){if(a(d[n]))return n}else{if(d.indexOf)return d.indexOf(a);n=0;for(b=d.length;n<b;n++)if(d[n]===a)return n}return-1},search:function(d,a){var n=CKEDITOR.tools.indexOf(d,a);return 0<=n?d[n]:null},bind:function(d,
a){return function(){return d.apply(a,arguments)}},createClass:function(d){var a=d.$,n=d.base,b=d.privates||d._,h=d.proto;d=d.statics;!a&&(a=function(){n&&this.base.apply(this,arguments)});if(b)var e=a,a=function(){var a=this._||(this._={}),d;for(d in b){var n=b[d];a[d]="function"==typeof n?CKEDITOR.tools.bind(n,this):n}e.apply(this,arguments)};n&&(a.prototype=this.prototypedCopy(n.prototype),a.prototype.constructor=a,a.base=n,a.baseProto=n.prototype,a.prototype.base=function(){this.base=n.prototype.base;
n.apply(this,arguments);this.base=arguments.callee});h&&this.extend(a.prototype,h,!0);d&&this.extend(a,d,!0);return a},addFunction:function(d,a){return c.push(function(){return d.apply(a||this,arguments)})-1},removeFunction:function(d){c[d]=null},callFunction:function(d){var a=c[d];return a&&a.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var d=/^-?\d+\.?\d*px$/,a;return function(n){a=CKEDITOR.tools.trim(n+"")+"px";return d.test(a)?a:n||""}}(),convertToPx:function(){var d;
return function(a){d||(d=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(d));return/%$/.test(a)?a:(d.setStyle("width",a),d.$.clientWidth)}}(),repeat:function(d,a){return Array(a+1).join(d)},tryThese:function(){for(var d,a=0,n=arguments.length;a<n;a++){var b=arguments[a];try{d=b();break}catch(h){}}return d},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},
defer:function(d){return function(){var a=arguments,b=this;window.setTimeout(function(){d.apply(b,a)},0)}},normalizeCssText:function(d,a){var b=[],h,e=CKEDITOR.tools.parseCssText(d,!0,a);for(h in e)b.push(h+":"+e[h]);b.sort();return b.length?b.join(";")+";":""},convertRgbToHex:function(d){return d.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,d,b,h){a=[d,b,h];for(d=0;3>d;d++)a[d]=("0"+parseInt(a[d],10).toString(16)).slice(-2);return"#"+a.join("")})},normalizeHex:function(d){return d.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,
function(a,d,b,h){a=d.toLowerCase();3==a.length&&(a=a.split(""),a=[a[0],a[0],a[1],a[1],a[2],a[2]].join(""));return"#"+a+h})},parseCssText:function(d,a,b){var h={};b&&(d=(new CKEDITOR.dom.element("span")).setAttribute("style",d).getAttribute("style")||"");d&&(d=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(d)));if(!d||";"==d)return h;d.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(d,b,n){a&&(b=b.toLowerCase(),"font-family"==b&&(n=n.replace(/\s*,\s*/g,
",")),n=CKEDITOR.tools.trim(n));h[b]=n});return h},writeCssText:function(d,a){var b,h=[];for(b in d)h.push(b+":"+d[b]);a&&h.sort();return h.join("; ")},objectCompare:function(d,a,b){var h;if(!d&&!a)return!0;if(!d||!a)return!1;for(h in d)if(d[h]!=a[h])return!1;if(!b)for(h in a)if(d[h]!=a[h])return!1;return!0},objectKeys:function(d){var a=[],b;for(b in d)a.push(b);return a},convertArrayToObject:function(d,a){var b={};1==arguments.length&&(a=!0);for(var h=0,e=d.length;h<e;++h)b[d[h]]=a;return b},fixDomain:function(){for(var d;;)try{d=
window.parent.document.domain;break}catch(a){d=d?d.replace(/.+?(?:\.|$)/,""):document.domain;if(!d)break;document.domain=d}return!!d},eventsBuffer:function(d,a,b){function h(){c=(new Date).getTime();e=!1;b?a.call(b):a()}var e,c=0;return{input:function(){if(!e){var a=(new Date).getTime()-c;a<d?e=setTimeout(h,d-a):h()}},reset:function(){e&&clearTimeout(e);e=c=0}}},enableHtml5Elements:function(d,a){for(var b="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(" "),
h=b.length,e;h--;)e=d.createElement(b[h]),a&&d.appendChild(e)},checkIfAnyArrayItemMatches:function(d,a){for(var b=0,h=d.length;b<h;++b)if(d[b].match(a))return!0;return!1},checkIfAnyObjectPropertyMatches:function(d,a){for(var b in d)if(b.match(a))return!0;return!1},keystrokeToString:function(d,a){var b=this.keystrokeToArray(d,a);b.display=b.display.join("+");b.aria=b.aria.join("+");return b},keystrokeToArray:function(d,a){var b=a&16711680,h=a&65535,e=CKEDITOR.env.mac,c=[],f=[];b&CKEDITOR.CTRL&&(c.push(e?
"⌘":d[17]),f.push(e?d[224]:d[17]));b&CKEDITOR.ALT&&(c.push(e?"⌥":d[18]),f.push(d[18]));b&CKEDITOR.SHIFT&&(c.push(e?"⇧":d[16]),f.push(d[16]));h&&(d[h]?(c.push(d[h]),f.push(d[h])):(c.push(String.fromCharCode(h)),f.push(String.fromCharCode(h))));return{display:c,aria:f}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d",getCookie:function(d){d=d.toLowerCase();for(var a=document.cookie.split(";"),b,h,e=0;e<a.length;e++)if(b=a[e].split("\x3d"),
h=decodeURIComponent(CKEDITOR.tools.trim(b[0]).toLowerCase()),h===d)return decodeURIComponent(1<b.length?b[1]:"");return null},setCookie:function(d,a){document.cookie=encodeURIComponent(d)+"\x3d"+encodeURIComponent(a)+";path\x3d/"},getCsrfToken:function(){var d=CKEDITOR.tools.getCookie("ckCsrfToken");if(!d||40!=d.length){var d=[],a="";if(window.crypto&&window.crypto.getRandomValues)d=new Uint8Array(40),window.crypto.getRandomValues(d);else for(var b=0;40>b;b++)d.push(Math.floor(256*Math.random()));
for(b=0;b<d.length;b++)var h="abcdefghijklmnopqrstuvwxyz0123456789".charAt(d[b]%36),a=a+(.5<Math.random()?h.toUpperCase():h);d=a;CKEDITOR.tools.setCookie("ckCsrfToken",d)}return d},escapeCss:function(d){return d?window.CSS&&CSS.escape?CSS.escape(d):isNaN(parseInt(d.charAt(0),10))?d:"\\3"+d.charAt(0)+" "+d.substring(1,d.length):""},getMouseButton:function(d){var a=(d=d.data)&&d.$;return d&&a?CKEDITOR.env.ie&&9>CKEDITOR.env.version?4===a.button?CKEDITOR.MOUSE_BUTTON_MIDDLE:1===a.button?CKEDITOR.MOUSE_BUTTON_LEFT:
CKEDITOR.MOUSE_BUTTON_RIGHT:a.button:!1},convertHexStringToBytes:function(d){var a=[],b=d.length/2,h;for(h=0;h<b;h++)a.push(parseInt(d.substr(2*h,2),16));return a},convertBytesToBase64:function(d){var a="",b=d.length,h;for(h=0;h<b;h+=3){var e=d.slice(h,h+3),c=e.length,f=[],k;if(3>c)for(k=c;3>k;k++)e[k]=0;f[0]=(e[0]&252)>>2;f[1]=(e[0]&3)<<4|e[1]>>4;f[2]=(e[1]&15)<<2|(e[2]&192)>>6;f[3]=e[2]&63;for(k=0;4>k;k++)a=k<=c?a+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f[k]):a+
"\x3d"}return a},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",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(d){var a={},b=this._findColor(d);b.length&&(a.color=b[0],CKEDITOR.tools.array.forEach(b,function(a){d=d.replace(a,"")}));if(d=CKEDITOR.tools.trim(d))a.unprocessed=d;return a},margin:function(d){function a(a){b.top=h[a[0]];b.right=
h[a[1]];b.bottom=h[a[2]];b.left=h[a[3]]}var b={},h=d.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g)||["0px"];switch(h.length){case 1:a([0,0,0,0]);break;case 2:a([0,1,0,1]);break;case 3:a([0,1,2,1]);break;case 4:a([0,1,2,3])}return b},border:function(d){var a={};d=d.split(/\s+/);CKEDITOR.tools.array.forEach(d,function(d){if(!a.color){var b=CKEDITOR.tools.style.parse._findColor(d);if(b.length){a.color=b[0];return}}a.style||-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,
d)?!a.width&&CKEDITOR.tools.style.parse._widthRegExp.test(d)&&(a.width=d):a.style=d});return a},_findColor:function(d){var a=[],b=CKEDITOR.tools.array,a=a.concat(d.match(this._rgbaRegExp)||[]),a=a.concat(d.match(this._hslaRegExp)||[]);return a=a.concat(b.filter(d.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(d,a,b){var h=[];this.forEach(d,function(e,c){a.call(b,e,c,d)&&h.push(e)});return h},
forEach:function(d,a,b){var h=d.length,e;for(e=0;e<h;e++)a.call(b,d[e],e,d)},map:function(d,a,b){for(var h=[],e=0;e<d.length;e++)h.push(a.call(b,d[e],e,d));return h},reduce:function(d,a,b,h){for(var e=0;e<d.length;e++)b=a.call(h,b,d[e],e,d);return b},every:function(d,a,b){if(!d.length)return!0;a=this.filter(d,a,b);return d.length===a.length}},object:{findKey:function(d,a){if("object"!==typeof d)return null;for(var b in d)if(d[b]===a)return b;return null},merge:function(d,a){var b=CKEDITOR.tools,h=
b.clone(d),e=b.clone(a);b.array.forEach(b.objectKeys(e),function(a){h[a]="object"===typeof e[a]&&"object"===typeof h[a]?b.object.merge(h[a],e[a]):e[a]});return h}}};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 c=CKEDITOR.tools.extend,g=function(d,a){for(var b=CKEDITOR.tools.clone(d),h=1;h<arguments.length;h++){a=arguments[h];
for(var e in a)delete b[e]}return b},f={},e={},k={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},l={},b={"#":1},h={center:1,dir:1,noframes:1};c(f,{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},b,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});c(e,k,f,h);g={a:g(f,{a:1,button:1}),abbr:f,address:e,area:l,article:e,aside:e,audio:c({source:1,track:1},e),b:f,base:l,bdi:f,bdo:f,blockquote:e,body:e,br:l,button:g(f,{a:1,button:1}),canvas:f,caption:e,
cite:f,code:f,col:l,colgroup:{col:1},command:l,datalist:c({option:1},f),dd:e,del:f,details:c({summary:1},e),dfn:f,div:e,dl:{dt:1,dd:1},dt:e,em:f,embed:l,fieldset:c({legend:1},e),figcaption:e,figure:c({figcaption:1},e),footer:e,form:e,h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,head:c({title:1,base:1},m),header:e,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:l,html:c({head:1,body:1},e,m),i:f,iframe:b,img:l,input:l,ins:f,kbd:f,keygen:l,label:f,legend:f,li:e,link:l,main:e,map:e,mark:f,menu:c({li:1},e),meta:l,meter:g(f,
{meter:1}),nav:e,noscript:c({link:1,meta:1,style:1},f),object:c({param:1},f),ol:{li:1},optgroup:{option:1},option:b,output:f,p:f,param:l,pre:f,progress:g(f,{progress:1}),q:f,rp:f,rt:f,ruby:c({rp:1,rt:1},f),s:f,samp:f,script:b,section:e,select:{optgroup:1,option:1},small:f,source:l,span:f,strong:f,style:b,sub:f,summary:c({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},f),sup:f,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:e,textarea:b,tfoot:{tr:1},th:e,thead:{tr:1},time:g(f,{time:1}),title:b,
tr:{th:1,td:1},track:l,u:f,ul:{li:1},"var":f,video:c({source:1,track:1},e),wbr:l,acronym:f,applet:c({param:1},e),basefont:l,big:f,center:e,dialog:l,dir:{li:1},font:f,isindex:l,noframes:e,strike:f,tt:f};c(g,{$block:c({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},k,h),$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:f,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:c({body:1,head:1,html:1},g.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 g}(),CKEDITOR.dom.event=function(c){this.$=c},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var c=this.getKey();if(this.$.ctrlKey||this.$.metaKey)c+=
CKEDITOR.CTRL;this.$.shiftKey&&(c+=CKEDITOR.SHIFT);this.$.altKey&&(c+=CKEDITOR.ALT);return c},preventDefault:function(c){var g=this.$;g.preventDefault?g.preventDefault():g.returnValue=!1;c&&this.stopPropagation()},stopPropagation:function(){var c=this.$;c.stopPropagation?c.stopPropagation():c.cancelBubble=!0},getTarget:function(){var c=this.$.target||this.$.srcElement;return c?new CKEDITOR.dom.node(c):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var c=this.getTarget().getDocument().$;
return{x:this.$.pageX||this.$.clientX+(c.documentElement.scrollLeft||c.body.scrollLeft),y:this.$.pageY||this.$.clientY+(c.documentElement.scrollTop||c.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(c){c&&(this.$=c)},CKEDITOR.dom.domObject.prototype=function(){var c=function(c,f){return function(e){"undefined"!=typeof CKEDITOR&&c.fire(f,
new CKEDITOR.dom.event(e))}};return{getPrivate:function(){var c;(c=this.getCustomData("_"))||this.setCustomData("_",c={});return c},on:function(g){var f=this.getCustomData("_cke_nativeListeners");f||(f={},this.setCustomData("_cke_nativeListeners",f));f[g]||(f=f[g]=c(this,g),this.$.addEventListener?this.$.addEventListener(g,f,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+g,f));return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(c){CKEDITOR.event.prototype.removeListener.apply(this,
arguments);if(!this.hasListeners(c)){var f=this.getCustomData("_cke_nativeListeners"),e=f&&f[c];e&&(this.$.removeEventListener?this.$.removeEventListener(c,e,!1):this.$.detachEvent&&this.$.detachEvent("on"+c,e),delete f[c])}},removeAllListeners:function(){var c=this.getCustomData("_cke_nativeListeners"),f;for(f in c){var e=c[f];this.$.detachEvent?this.$.detachEvent("on"+f,e):this.$.removeEventListener&&this.$.removeEventListener(f,e,!1);delete c[f]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),
function(c){var g={};CKEDITOR.on("reset",function(){g={}});c.equals=function(c){try{return c&&c.$===this.$}catch(e){return!1}};c.setCustomData=function(c,e){var k=this.getUniqueId();(g[k]||(g[k]={}))[c]=e;return this};c.getCustomData=function(c){var e=this.$["data-cke-expando"];return(e=e&&g[e])&&c in e?e[c]:null};c.removeCustomData=function(c){var e=this.$["data-cke-expando"],e=e&&g[e],k,m;e&&(k=e[c],m=c in e,delete e[c]);return m?k:null};c.clearCustomData=function(){this.removeAllListeners();var c=
this.$["data-cke-expando"];c&&delete g[c]};c.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(c)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(c){return c?new CKEDITOR.dom[c.nodeType==CKEDITOR.NODE_DOCUMENT?"document":c.nodeType==CKEDITOR.NODE_ELEMENT?"element":c.nodeType==CKEDITOR.NODE_TEXT?"text":c.nodeType==CKEDITOR.NODE_COMMENT?"comment":c.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?
"documentFragment":"domObject"](c):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(c,g){c.append(this,g);
return c},clone:function(c,g){function f(e){e["data-cke-expando"]&&(e["data-cke-expando"]=!1);if(e.nodeType==CKEDITOR.NODE_ELEMENT||e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(g||e.nodeType!=CKEDITOR.NODE_ELEMENT||e.removeAttribute("id",!1),c){e=e.childNodes;for(var k=0;k<e.length;k++)f(e[k])}}function e(f){if(f.type==CKEDITOR.NODE_ELEMENT||f.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(f.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var k=f.getName();":"==k[0]&&f.renameNode(k.substring(1))}if(c)for(k=0;k<
f.getChildCount();k++)e(f.getChild(k))}}var k=this.$.cloneNode(c);f(k);k=new CKEDITOR.dom.node(k);CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&e(k);return k},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(c){c.$.parentNode.insertBefore(this.$,c.$.nextSibling);return c},insertBefore:function(c){c.$.parentNode.insertBefore(this.$,c.$);return c},insertBeforeMe:function(c){this.$.parentNode.insertBefore(c.$,
this.$);return c},getAddress:function(c){for(var g=[],f=this.getDocument().$.documentElement,e=this.$;e&&e!=f;){var k=e.parentNode;k&&g.unshift(this.getIndex.call({$:e},c));e=k}return g},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(c){function g(e,b){var h=b?e.nextSibling:e.previousSibling;return h&&h.nodeType==CKEDITOR.NODE_TEXT?f(h)?g(h,b):h:null}function f(e){return!e.nodeValue||e.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}
var e=this.$,k=-1,m;if(!this.$.parentNode||c&&e.nodeType==CKEDITOR.NODE_TEXT&&f(e)&&!g(e)&&!g(e,!0))return-1;do c&&e!=this.$&&e.nodeType==CKEDITOR.NODE_TEXT&&(m||f(e))||(k++,m=e.nodeType==CKEDITOR.NODE_TEXT);while(e=e.previousSibling);return k},getNextSourceNode:function(c,g,f){if(f&&!f.call){var e=f;f=function(c){return!c.equals(e)}}c=!c&&this.getFirst&&this.getFirst();var k;if(!c){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0))return null;c=this.getNext()}for(;!c&&(k=(k||this).getParent());){if(f&&
!1===f(k,!0))return null;c=k.getNext()}return!c||f&&!1===f(c)?null:g&&g!=c.type?c.getNextSourceNode(!1,g,f):c},getPreviousSourceNode:function(c,g,f){if(f&&!f.call){var e=f;f=function(c){return!c.equals(e)}}c=!c&&this.getLast&&this.getLast();var k;if(!c){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0))return null;c=this.getPrevious()}for(;!c&&(k=(k||this).getParent());){if(f&&!1===f(k,!0))return null;c=k.getPrevious()}return!c||f&&!1===f(c)?null:g&&c.type!=g?c.getPreviousSourceNode(!1,g,f):
c},getPrevious:function(c){var g=this.$,f;do f=(g=g.previousSibling)&&10!=g.nodeType&&new CKEDITOR.dom.node(g);while(f&&c&&!c(f));return f},getNext:function(c){var g=this.$,f;do f=(g=g.nextSibling)&&new CKEDITOR.dom.node(g);while(f&&c&&!c(f));return f},getParent:function(c){var g=this.$.parentNode;return g&&(g.nodeType==CKEDITOR.NODE_ELEMENT||c&&g.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(g):null},getParents:function(c){var g=this,f=[];do f[c?"push":"unshift"](g);while(g=g.getParent());
return f},getCommonAncestor:function(c){if(c.equals(this))return this;if(c.contains&&c.contains(this))return c;var g=this.contains?this:this.getParent();do if(g.contains(c))return g;while(g=g.getParent());return null},getPosition:function(c){var g=this.$,f=c.$;if(g.compareDocumentPosition)return g.compareDocumentPosition(f);if(g==f)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&c.type==CKEDITOR.NODE_ELEMENT){if(g.contains){if(g.contains(f))return CKEDITOR.POSITION_CONTAINS+
CKEDITOR.POSITION_PRECEDING;if(f.contains(g))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in g)return 0>g.sourceIndex||0>f.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:g.sourceIndex<f.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}g=this.getAddress();c=c.getAddress();for(var f=Math.min(g.length,c.length),e=0;e<f;e++)if(g[e]!=c[e])return g[e]<c[e]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return g.length<c.length?CKEDITOR.POSITION_CONTAINS+
CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(c,g){var f=this.$,e,k;g||(f=f.parentNode);"function"==typeof c?(k=!0,e=c):(k=!1,e=function(e){e="string"==typeof e.nodeName?e.nodeName.toLowerCase():"";return"string"==typeof c?e==c:e in c});for(;f;){if(e(k?new CKEDITOR.dom.node(f):f))return new CKEDITOR.dom.node(f);try{f=f.parentNode}catch(m){f=null}}return null},hasAscendant:function(c,g){var f=this.$;g||(f=f.parentNode);for(;f;){if(f.nodeName&&
f.nodeName.toLowerCase()==c)return!0;f=f.parentNode}return!1},move:function(c,g){c.append(this.remove(),g)},remove:function(c){var g=this.$,f=g.parentNode;if(f){if(c)for(;c=g.firstChild;)f.insertBefore(g.removeChild(c),g);f.removeChild(g)}return this},replace:function(c){this.insertBefore(c);c.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var c;this.getFirst&&(c=this.getFirst());){if(c.type==CKEDITOR.NODE_TEXT){var g=CKEDITOR.tools.ltrim(c.getText()),f=c.getLength();if(g)g.length<
f&&(c.split(f-g.length),this.$.removeChild(this.$.firstChild));else{c.remove();continue}}break}},rtrim:function(){for(var c;this.getLast&&(c=this.getLast());){if(c.type==CKEDITOR.NODE_TEXT){var g=CKEDITOR.tools.rtrim(c.getText()),f=c.getLength();if(g)g.length<f&&(c.split(g.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{c.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(c=this.$.lastChild)&&1==c.type&&"br"==c.nodeName.toLowerCase()&&c.parentNode.removeChild(c)},isReadOnly:function(c){var g=
this;this.type!=CKEDITOR.NODE_ELEMENT&&(g=this.getParent());CKEDITOR.env.edge&&g&&g.is("textarea","input")&&(c=!0);if(!c&&g&&"undefined"!=typeof g.$.isContentEditable)return!(g.$.isContentEditable||g.data("cke-editable"));for(;g;){if(g.data("cke-editable"))return!1;if(g.hasAttribute("contenteditable"))return"false"==g.getAttribute("contenteditable");g=g.getParent()}return!0}}),CKEDITOR.dom.window=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,
CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var c=this.$.document,g="CSS1Compat"==c.compatMode;return{width:(g?c.documentElement.clientWidth:c.body.clientWidth)||0,height:(g?c.documentElement.clientHeight:c.body.clientHeight)||0}},getScrollPosition:function(){var c=this.$;if("pageXOffset"in c)return{x:c.pageXOffset||0,y:c.pageYOffset||0};c=c.document;return{x:c.documentElement.scrollLeft||c.body.scrollLeft||0,y:c.documentElement.scrollTop||
c.body.scrollTop||0}},getFrame:function(){var c=this.$.frameElement;return c?new CKEDITOR.dom.element.get(c):null}}),CKEDITOR.dom.document=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(c){if(this.$.createStyleSheet)this.$.createStyleSheet(c);else{var g=new CKEDITOR.dom.element("link");g.setAttributes({rel:"stylesheet",type:"text/css",
href:c});this.getHead().append(g)}},appendStyleText:function(c){if(this.$.createStyleSheet){var g=this.$.createStyleSheet("");g.cssText=c}else{var f=new CKEDITOR.dom.element("style",this);f.append(new CKEDITOR.dom.text(c,this));this.getHead().append(f)}return g||f.$.sheet},createElement:function(c,g){var f=new CKEDITOR.dom.element(c,this);g&&(g.attributes&&f.setAttributes(g.attributes),g.styles&&f.setStyles(g.styles));return f},createText:function(c){return new CKEDITOR.dom.text(c,this)},focus:function(){this.getWindow().focus()},
getActive:function(){var c;try{c=this.$.activeElement}catch(g){return null}return new CKEDITOR.dom.element(c)},getById:function(c){return(c=this.$.getElementById(c))?new CKEDITOR.dom.element(c):null},getByAddress:function(c,g){for(var f=this.$.documentElement,e=0;f&&e<c.length;e++){var k=c[e];if(g)for(var m=-1,l=0;l<f.childNodes.length;l++){var b=f.childNodes[l];if(!0!==g||3!=b.nodeType||!b.previousSibling||3!=b.previousSibling.nodeType)if(m++,m==k){f=b;break}}else f=f.childNodes[k]}return f?new CKEDITOR.dom.node(f):
null},getElementsByTag:function(c,g){CKEDITOR.env.ie&&8>=document.documentMode||!g||(c=g+":"+c);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(c))},getHead:function(){var c=this.$.getElementsByTagName("head")[0];return c=c?new CKEDITOR.dom.element(c):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(c){this.$.open("text/html","replace");CKEDITOR.env.ie&&(c=c.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(c);this.$.close()},find:function(c){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(c))},findOne:function(c){return(c=this.$.querySelector(c))?new CKEDITOR.dom.element(c):null},_getHtml5ShivFrag:function(){var c=this.getCustomData("html5ShivFrag");c||
(c=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(c,!0),this.setCustomData("html5ShivFrag",c));return c}}),CKEDITOR.dom.nodeList=function(c){this.$=c},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(c){return 0>c||c>=this.$.length?null:(c=this.$[c])?new CKEDITOR.dom.node(c):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(c){return new CKEDITOR.dom.node(c)})}},CKEDITOR.dom.element=function(c,g){"string"==typeof c&&
(c=(g?g.$:document).createElement(c));CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.element.get=function(c){return(c="string"==typeof c?document.getElementById(c)||document.getElementsByName(c)[0]:c)&&(c.$?c:new CKEDITOR.dom.element(c))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(c,g){var f=new CKEDITOR.dom.element("div",g);f.setHtml(c);return f.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(c,g,f,e){var k=g.getCustomData("list_marker_id")||
g.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),m=g.getCustomData("list_marker_names")||g.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");c[k]=g;m[f]=1;return g.setCustomData(f,e)},CKEDITOR.dom.element.clearAllMarkers=function(c){for(var g in c)CKEDITOR.dom.element.clearMarkers(c,c[g],1)},CKEDITOR.dom.element.clearMarkers=function(c,g,f){var e=g.getCustomData("list_marker_names"),k=g.getCustomData("list_marker_id"),m;for(m in e)g.removeCustomData(m);
g.removeCustomData("list_marker_names");f&&(g.removeCustomData("list_marker_id"),delete c[k])},function(){function c(b,h){return-1<(" "+b+" ").replace(m," ").indexOf(" "+h+" ")}function g(b){var h=!0;b.$.id||(b.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),h=!1);return function(){h||b.removeAttribute("id")}}function f(b,h){var d=CKEDITOR.tools.escapeCss(b.$.id);return"#"+d+" "+h.split(/,\s*/).join(", #"+d+" ")}function e(b){for(var h=0,d=0,a=l[b].length;d<a;d++)h+=parseFloat(this.getComputedStyle(l[b][d])||
0,10)||0;return h}var k=document.createElement("_").classList,k="undefined"!==typeof k&&null!==String(k.add).match(/\[Native code\]/gi),m=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:k?function(b){this.$.classList.add(b);return this}:function(b){var h=this.$.className;h&&(c(h,b)||(h+=" "+b));this.$.className=h||b;return this},removeClass:k?function(b){var h=this.$;h.classList.remove(b);h.className||h.removeAttribute("class");return this}:function(b){var h=
this.getAttribute("class");h&&c(h,b)&&((h=h.replace(new RegExp("(?:^|\\s+)"+b+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",h):this.removeAttribute("class"));return this},hasClass:function(b){return c(this.$.className,b)},append:function(b,h){"string"==typeof b&&(b=this.getDocument().createElement(b));h?this.$.insertBefore(b.$,this.$.firstChild):this.$.appendChild(b.$);return b},appendHtml:function(b){if(this.$.childNodes.length){var h=new CKEDITOR.dom.element("div",this.getDocument());
h.setHtml(b);h.moveChildren(this)}else this.setHtml(b)},appendText:function(b){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=b:this.append(new CKEDITOR.dom.text(b))},appendBogus:function(b){if(b||CKEDITOR.env.needsBrFiller){for(b=this.getLast();b&&b.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(b.getText());)b=b.getPrevious();b&&b.is&&b.is("br")||(b=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&b.setAttribute("type","_moz"),this.append(b))}},breakParent:function(b,
h){var d=new CKEDITOR.dom.range(this.getDocument());d.setStartAfter(this);d.setEndAfter(b);var a=d.extractContents(!1,h||!1),e;d.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(d=new CKEDITOR.dom.element("div");e=a.getFirst();)e.$.style.backgroundColor&&(e.$.style.backgroundColor=e.$.style.backgroundColor),d.append(e);d.insertAfter(this);d.remove(!0)}else a.insertAfterNode(this)},contains:document.compareDocumentPosition?function(b){return!!(this.$.compareDocumentPosition(b.$)&
16)}:function(b){var h=this.$;return b.type!=CKEDITOR.NODE_ELEMENT?h.contains(b.getParent().$):h!=b.$&&h.contains(b.$)},focus:function(){function b(){try{this.$.focus()}catch(b){}}return function(h){h?CKEDITOR.tools.setTimeout(b,100,this):b.call(this)}}(),getHtml:function(){var b=this.$.innerHTML;return CKEDITOR.env.ie?b.replace(/<\?[^>]*>/g,""):b},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var b=this.$.ownerDocument.createElement("div");b.appendChild(this.$.cloneNode(!0));
return b.innerHTML},getClientRect:function(){var b=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!b.width&&(b.width=b.right-b.left);!b.height&&(b.height=b.bottom-b.top);return b},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(b){try{var h=this.$;if(this.getParent())return h.innerHTML=b;var d=this.getDocument()._getHtml5ShivFrag();d.appendChild(h);h.innerHTML=b;d.removeChild(h);return b}catch(a){this.$.innerHTML="";h=new CKEDITOR.dom.element("body",this.getDocument());h.$.innerHTML=
b;for(h=h.getChildren();h.count();)this.append(h.getItem(0));return b}}:function(b){return this.$.innerHTML=b},setText:function(){var b=document.createElement("p");b.innerHTML="x";b=b.textContent;return function(h){this.$[b?"textContent":"innerText"]=h}}(),getAttribute:function(){var b=function(b){return this.$.getAttribute(b,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b){switch(b){case "class":b="className";break;case "http-equiv":b="httpEquiv";break;case "name":return this.$.name;
case "tabindex":return b=this.$.getAttribute(b,2),0!==b&&0===this.$.tabIndex&&(b=null),b;case "checked":return b=this.$.attributes.getNamedItem(b),(b.specified?b.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[b];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(b,2)}:b}(),getAttributes:function(b){var h=
{},d=this.$.attributes,a;b=CKEDITOR.tools.isArray(b)?b:[];for(a=0;a<d.length;a++)-1===CKEDITOR.tools.indexOf(b,d[a].name)&&(h[d[a].name]=d[a].value);return h},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(b){var h=this.getWindow().$.getComputedStyle(this.$,null);return h?h.getPropertyValue(b):""}:function(b){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(b)]},getDtd:function(){var b=
CKEDITOR.dtd[this.getName()];this.getDtd=function(){return b};return b},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var b=this.$.tabIndex;return 0!==b||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?b:-1},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||
null},getName:function(){var b=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var h=this.$.scopeName;"HTML"!=h&&(b=h.toLowerCase()+":"+b)}this.getName=function(){return b};return this.getName()},getValue:function(){return this.$.value},getFirst:function(b){var h=this.$.firstChild;(h=h&&new CKEDITOR.dom.node(h))&&b&&!b(h)&&(h=h.getNext(b));return h},getLast:function(b){var h=this.$.lastChild;(h=h&&new CKEDITOR.dom.node(h))&&b&&!b(h)&&(h=h.getPrevious(b));return h},getStyle:function(b){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(b)]},
is:function(){var b=this.getName();if("object"==typeof arguments[0])return!!arguments[0][b];for(var h=0;h<arguments.length;h++)if(arguments[h]==b)return!0;return!1},isEditable:function(b){var h=this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[h]||CKEDITOR.dtd.$empty[h]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==b?(b=CKEDITOR.dtd[h]||
CKEDITOR.dtd.span,!(!b||!b["#"])):!0},isIdentical:function(b){var h=this.clone(0,1);b=b.clone(0,1);h.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(h.$.isEqualNode)return h.$.style.cssText=CKEDITOR.tools.normalizeCssText(h.$.style.cssText),b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText),h.$.isEqualNode(b.$);h=h.getOuterHtml();b=
b.getOuterHtml();if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var d=this.getParent();d.type==CKEDITOR.NODE_ELEMENT&&(d=d.clone(),d.setHtml(h),h=d.getHtml(),d.setHtml(b),b=d.getHtml())}return h==b},isVisible:function(){var b=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),h,d;b&&CKEDITOR.env.webkit&&(h=this.getWindow(),!h.equals(CKEDITOR.document.getWindow())&&(d=h.$.frameElement)&&(b=(new CKEDITOR.dom.element(d)).isVisible()));return!!b},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;
for(var b=this.getChildren(),h=0,d=b.count();h<d;h++){var a=b.getItem(h);if(a.type!=CKEDITOR.NODE_ELEMENT||!a.data("cke-bookmark"))if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEmptyInlineRemoveable()||a.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(a.getText()))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var b=this.$.attributes,h=0;h<b.length;h++){var d=b[h];switch(d.nodeName){case "class":if(this.getAttribute("class"))return!0;case "data-cke-expando":continue;
default:if(d.specified)return!0}}return!1}:function(){var b=this.$.attributes,h=b.length,d={"data-cke-expando":1,_moz_dirty:1};return 0<h&&(2<h||!d[b[0].nodeName]||2==h&&!d[b[1].nodeName])},hasAttribute:function(){function b(b){var d=this.$.attributes.getNamedItem(b);if("input"==this.getName())switch(b){case "class":return 0<this.$.className.length;case "checked":return!!this.$.checked;case "value":return b=this.getAttribute("type"),"checkbox"==b||"radio"==b?"on"!=this.$.value:!!this.$.value}return d?
d.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(h){return"name"==h?!!this.$.name:b.call(this,h)}:b:function(b){return!!this.$.attributes.getNamedItem(b)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(b,h){var d=this.$;b=b.$;if(d!=b){var a;if(h)for(;a=d.lastChild;)b.insertBefore(d.removeChild(a),b.firstChild);else for(;a=d.firstChild;)b.appendChild(d.removeChild(a))}},mergeSiblings:function(){function b(b,d,a){if(d&&d.type==CKEDITOR.NODE_ELEMENT){for(var e=
[];d.data("cke-bookmark")||d.isEmptyInlineRemoveable();)if(e.push(d),d=a?d.getNext():d.getPrevious(),!d||d.type!=CKEDITOR.NODE_ELEMENT)return;if(b.isIdentical(d)){for(var c=a?b.getLast():b.getFirst();e.length;)e.shift().move(b,!a);d.moveChildren(b,!a);d.remove();c&&c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings()}}}return function(h){if(!1===h||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))b(this,this.getNext(),!0),b(this,this.getPrevious())}}(),show:function(){this.setStyles({display:"",
visibility:""})},setAttribute:function(){var b=function(b,d){this.$.setAttribute(b,d);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(h,d){"class"==h?this.$.className=d:"style"==h?this.$.style.cssText=d:"tabindex"==h?this.$.tabIndex=d:"checked"==h?this.$.checked=d:"contenteditable"==h?b.call(this,"contentEditable",d):b.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(h,d){if("src"==h&&d.match(/^http:\/\//))try{b.apply(this,
arguments)}catch(a){}else b.apply(this,arguments);return this}:b}(),setAttributes:function(b){for(var h in b)this.setAttribute(h,b[h]);return this},setValue:function(b){this.$.value=b;return this},removeAttribute:function(){var b=function(b){this.$.removeAttribute(b)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b){"class"==b?b="className":"tabindex"==b?b="tabIndex":"contenteditable"==b&&(b="contentEditable");this.$.removeAttribute(b)}:b}(),removeAttributes:function(b){if(CKEDITOR.tools.isArray(b))for(var h=
0;h<b.length;h++)this.removeAttribute(b[h]);else for(h in b=b||this.getAttributes(),b)b.hasOwnProperty(h)&&this.removeAttribute(h)},removeStyle:function(b){var h=this.$.style;if(h.removeProperty||"border"!=b&&"margin"!=b&&"padding"!=b)h.removeProperty?h.removeProperty(b):h.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(b)),this.$.style.cssText||this.removeAttribute("style");else{var d=["top","left","right","bottom"],a;"border"==b&&(a=["color","style","width"]);for(var h=[],e=0;e<d.length;e++)if(a)for(var c=
0;c<a.length;c++)h.push([b,d[e],a[c]].join("-"));else h.push([b,d[e]].join("-"));for(b=0;b<h.length;b++)this.removeStyle(h[b])}},setStyle:function(b,e){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(b)]=e;return this},setStyles:function(b){for(var e in b)this.setStyle(e,b[e]);return this},setOpacity:function(b){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(b=Math.round(100*b),this.setStyle("filter",100<=b?"":"progid:DXImageTransform.Microsoft.Alpha(opacity\x3d"+b+")")):this.setStyle("opacity",b)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select",
"none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var b,e=this.getElementsByTag("*"),d=0,a=e.count();d<a;d++)b=e.getItem(d),b.setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var b=this;"html"!=b.getName();){if("static"!=b.getComputedStyle("position"))return b;b=b.getParent()}return null},getDocumentPosition:function(b){var e=0,d=0,a=this.getDocument(),c=a.getBody(),f="BackCompat"==a.$.compatMode;if(document.documentElement.getBoundingClientRect&&(CKEDITOR.env.ie?
8!==CKEDITOR.env.version:1)){var k=this.$.getBoundingClientRect(),g=a.$.documentElement,m=g.clientTop||c.$.clientTop||0,q=g.clientLeft||c.$.clientLeft||0,l=!0;CKEDITOR.env.ie&&(l=a.getDocumentElement().contains(this),a=a.getBody().contains(this),l=f&&a||!f&&l);l&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(e=c.$.scrollLeft||g.scrollLeft,d=c.$.scrollTop||g.scrollTop):(d=f?c.$:g,e=d.scrollLeft,d=d.scrollTop),e=k.left+e-q,d=k.top+d-m)}else for(m=this,q=null;m&&"body"!=m.getName()&&
"html"!=m.getName();){e+=m.$.offsetLeft-m.$.scrollLeft;d+=m.$.offsetTop-m.$.scrollTop;m.equals(this)||(e+=m.$.clientLeft||0,d+=m.$.clientTop||0);for(;q&&!q.equals(m);)e-=q.$.scrollLeft,d-=q.$.scrollTop,q=q.getParent();q=m;m=(k=m.$.offsetParent)?new CKEDITOR.dom.element(k):null}b&&(k=this.getWindow(),m=b.getWindow(),!k.equals(m)&&k.$.frameElement&&(b=(new CKEDITOR.dom.element(k.$.frameElement)).getDocumentPosition(b),e+=b.x,d+=b.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||
f||(e+=this.$.clientLeft?1:0,d+=this.$.clientTop?1:0);return{x:e,y:d}},scrollIntoView:function(b){var e=this.getParent();if(e){do if((e.$.clientWidth&&e.$.clientWidth<e.$.scrollWidth||e.$.clientHeight&&e.$.clientHeight<e.$.scrollHeight)&&!e.is("body")&&this.scrollIntoParent(e,b,1),e.is("html")){var d=e.getWindow();try{var a=d.$.frameElement;a&&(e=new CKEDITOR.dom.element(a))}catch(c){}}while(e=e.getParent())}},scrollIntoParent:function(b,e,d){var a,c,f,k;function g(a,d){/body|html/.test(b.getName())?
b.getWindow().$.scrollBy(a,d):(b.$.scrollLeft+=a,b.$.scrollTop+=d)}function m(a,d){var b={x:0,y:0};if(!a.is(l?"body":"html")){var e=a.$.getBoundingClientRect();b.x=e.left;b.y=e.top}e=a.getWindow();e.equals(d)||(e=m(CKEDITOR.dom.element.get(e.$.frameElement),d),b.x+=e.x,b.y+=e.y);return b}function q(a,d){return parseInt(a.getComputedStyle("margin-"+d)||0,10)||0}!b&&(b=this.getWindow());f=b.getDocument();var l="BackCompat"==f.$.compatMode;b instanceof CKEDITOR.dom.window&&(b=l?f.getBody():f.getDocumentElement());
CKEDITOR.env.webkit&&(f=this.getEditor(!1))&&(f._.previousScrollTop=null);f=b.getWindow();c=m(this,f);var v=m(b,f),z=this.$.offsetHeight;a=this.$.offsetWidth;var w=b.$.clientHeight,B=b.$.clientWidth;f=c.x-q(this,"left")-v.x||0;k=c.y-q(this,"top")-v.y||0;a=c.x+a+q(this,"right")-(v.x+B)||0;c=c.y+z+q(this,"bottom")-(v.y+w)||0;(0>k||0<c)&&g(0,!0===e?k:!1===e?c:0>k?k:c);d&&(0>f||0<a)&&g(0>f?f:a,0)},setState:function(b,e,d){e=e||"cke";switch(b){case CKEDITOR.TRISTATE_ON:this.addClass(e+"_on");this.removeClass(e+
"_off");this.removeClass(e+"_disabled");d&&this.setAttribute("aria-pressed",!0);d&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(e+"_disabled");this.removeClass(e+"_off");this.removeClass(e+"_on");d&&this.setAttribute("aria-disabled",!0);d&&this.removeAttribute("aria-pressed");break;default:this.addClass(e+"_off"),this.removeClass(e+"_on"),this.removeClass(e+"_disabled"),d&&this.removeAttribute("aria-pressed"),d&&this.removeAttribute("aria-disabled")}},
getFrameDocument:function(){var b=this.$;try{b.contentWindow.document}catch(e){b.src=b.src}return b&&new CKEDITOR.dom.document(b.contentWindow.document)},copyAttributes:function(b,e){var d=this.$.attributes;e=e||{};for(var a=0;a<d.length;a++){var c=d[a],f=c.nodeName.toLowerCase(),k;if(!(f in e))if("checked"==f&&(k=this.getAttribute(f)))b.setAttribute(f,k);else if(!CKEDITOR.env.ie||this.hasAttribute(f))k=this.getAttribute(f),null===k&&(k=c.nodeValue),b.setAttribute(f,k)}""!==this.$.style.cssText&&
(b.$.style.cssText=this.$.style.cssText)},renameNode:function(b){if(this.getName()!=b){var e=this.getDocument();b=new CKEDITOR.dom.element(b,e);this.copyAttributes(b);this.moveChildren(b);this.getParent(!0)&&this.$.parentNode.replaceChild(b.$,this.$);b.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=b.$;delete this.getName}},getChild:function(){function b(b,d){var a=b.childNodes;if(0<=d&&d<a.length)return a[d]}return function(e){var d=this.$;if(e.slice)for(e=e.slice();0<e.length&&d;)d=b(d,
e.shift());else d=b(d,e);return d?new CKEDITOR.dom.node(d):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function b(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(e){e.data.getTarget().getAscendant(b,!0)||e.data.preventDefault()})},getDirection:function(b){return b?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||
"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(b,e){b="data-"+b;if(void 0===e)return this.getAttribute(b);!1===e?this.removeAttribute(b):this.setAttribute(b,e);return null},getEditor:function(b){var e=CKEDITOR.instances,d,a,c;b=b||void 0===b;for(d in e)if(a=e[d],a.element.equals(this)&&a.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!b&&(c=a.editable())&&(c.equals(this)||c.contains(this)))return a;return null},find:function(b){var e=g(this);b=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(f(this,
b)));e();return b},findOne:function(b){var e=g(this);b=this.$.querySelector(f(this,b));e();return b?new CKEDITOR.dom.element(b):null},forEach:function(b,e,d){if(!(d||e&&this.type!=e))var a=b(this);if(!1!==a){d=this.getChildren();for(var c=0;c<d.count();c++)a=d.getItem(c),a.type==CKEDITOR.NODE_ELEMENT?a.forEach(b,e):e&&a.type!=e||b(a)}}});var l={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};
CKEDITOR.dom.element.prototype.setSize=function(b,c,d){"number"==typeof c&&(!d||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(c-=e.call(this,b)),this.setStyle(b,c+"px"))};CKEDITOR.dom.element.prototype.getSize=function(b,c){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(b)],this.$["client"+CKEDITOR.tools.capitalize(b)])||0;c&&(d-=e.call(this,b));return d}}(),CKEDITOR.dom.documentFragment=function(c){c=c||CKEDITOR.document;this.$=c.type==CKEDITOR.NODE_DOCUMENT?c.$.createDocumentFragment():c},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,
CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(c){c=c.$;c.parentNode.insertBefore(this.$,c.nextSibling)},getHtml:function(){var c=new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(c);return c.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,
getChildCount:1,getChild:1,getChildren:1}),function(){function c(a,d){var b=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(b.collapsed)return this.end(),null;b.optimize()}var e,c=b.startContainer;e=b.endContainer;var f=b.startOffset,h=b.endOffset,n,k=this.guard,g=this.type,m=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var l=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),y=e.type==CKEDITOR.NODE_ELEMENT?e.getChild(h):e.getNext();this._.guardLTR=function(a,
d){return(!d||!l.equals(a))&&(!y||!a.equals(y))&&(a.type!=CKEDITOR.NODE_ELEMENT||!d||!a.equals(b.root))}}if(a&&!this._.guardRTL){var F=c.type==CKEDITOR.NODE_ELEMENT?c:c.getParent(),E=c.type==CKEDITOR.NODE_ELEMENT?f?c.getChild(f-1):null:c.getPrevious();this._.guardRTL=function(a,d){return(!d||!F.equals(a))&&(!E||!a.equals(E))&&(a.type!=CKEDITOR.NODE_ELEMENT||!d||!a.equals(b.root))}}var G=a?this._.guardRTL:this._.guardLTR;n=k?function(a,d){return!1===G(a,d)?!1:k(a,d)}:G;this.current?e=this.current[m](!1,
g,n):(a?e.type==CKEDITOR.NODE_ELEMENT&&(e=0<h?e.getChild(h-1):!1===n(e,!0)?null:e.getPreviousSourceNode(!0,g,n)):(e=c,e.type==CKEDITOR.NODE_ELEMENT&&((e=e.getChild(f))||(e=!1===n(c,!0)?null:c.getNextSourceNode(!0,g,n)))),e&&!1===n(e)&&(e=null));for(;e&&!this._.end;){this.current=e;if(!this.evaluator||!1!==this.evaluator(e)){if(!d)return e}else if(d&&this.evaluator)return!1;e=e[m](!1,g,n)}this.end();return this.current=null}function g(a){for(var d,b=null;d=c.call(this,a);)b=d;return b}CKEDITOR.dom.walker=
CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return c.call(this)},previous:function(){return c.call(this,1)},checkForward:function(){return!1!==c.call(this,0,1)},checkBackward:function(){return!1!==c.call(this,1,1)},lastForward:function(){return g.call(this)},lastBackward:function(){return g.call(this,1)},reset:function(){delete this.current;this._={}}}});var f={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,
"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},e={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return"none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in e||!f[this.getComputedStyle("display")]?!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a)):!0};CKEDITOR.dom.walker.blockBoundary=function(a){return function(d){return!(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=
function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,d){function b(a){return a&&a.getName&&"span"==a.getName()&&a.data("cke-bookmark")}return function(e){var c,f;c=e&&e.type!=CKEDITOR.NODE_ELEMENT&&(f=e.getParent())&&b(f);c=a?c:c||b(e);return!!(d^c)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(d){var b;d&&d.type==CKEDITOR.NODE_TEXT&&(b=!CKEDITOR.tools.trim(d.getText())||CKEDITOR.env.webkit&&d.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE);
return!!(a^b)}};CKEDITOR.dom.walker.invisible=function(a){var d=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.env.webkit?1:0;return function(e){d(e)?e=1:(e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),e=e.$.offsetWidth<=b);return!!(a^e)}};CKEDITOR.dom.walker.nodeType=function(a,d){return function(b){return!!(d^b.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function d(a){return!m(a)&&!l(a)}return function(b){var e=CKEDITOR.env.needsBrFiller?b.is&&b.is("br"):b.getText&&k.test(b.getText());e&&(e=b.getParent(),
b=b.getNext(d),e=e.isBlockBoundary()&&(!b||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()));return!!(a^e)}};CKEDITOR.dom.walker.temp=function(a){return function(d){d.type!=CKEDITOR.NODE_ELEMENT&&(d=d.getParent());d=d&&d.hasAttribute("data-cke-temp");return!!(a^d)}};var k=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,m=CKEDITOR.dom.walker.whitespaces(),l=CKEDITOR.dom.walker.bookmark(),b=CKEDITOR.dom.walker.temp(),h=function(a){return l(a)||m(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty)};
CKEDITOR.dom.walker.ignored=function(a){return function(d){d=m(d)||l(d)||b(d);return!!(a^d)}};var d=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(b){for(var e=0,c=b.getChildCount();e<c;++e)if(!d(b.getChild(e)))return!!a;return!a}};var a=CKEDITOR.dom.walker.empty(),n=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var d={},b;for(b in a)CKEDITOR.dtd[b]["#"]&&(d[b]=1);return d}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=
function(b){return function(e){e=d(e)?!1:e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&(e.is(CKEDITOR.dtd.$inline)||e.is("hr")||"false"==e.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&e.is(n)&&a(e))?!0:!1;return!!(b^e)}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(h(a));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&k.test(a.getText()))?a:!1}}(),CKEDITOR.dom.range=function(c){this.endOffset=this.endContainer=
this.startOffset=this.startContainer=null;this.collapsed=!0;var g=c instanceof CKEDITOR.dom.document;this.document=g?c:c.getDocument();this.root=g?c.getBody():c},function(){function c(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset}function g(a,d,b,e,c){function f(a,d,b,e){var h=b?a.getPrevious():a.getNext();if(e&&g)return h;w||e?d.append(a.clone(!0,c),b):(a.remove(),m&&d.append(a,b));return h}function h(){var a,d,b,e=Math.min(K.length,
D.length);for(a=0;a<e;a++)if(d=K[a],b=D[a],!d.equals(b))return a;return a-1}function k(){var d=S-1,b=G&&I&&!l.equals(A);d<N-1||d<P-1||b?(b?a.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START):P==d+1&&E?a.moveToPosition(D[d],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(D[d+1],CKEDITOR.POSITION_BEFORE_START),e&&(d=K[d+1])&&d.type==CKEDITOR.NODE_ELEMENT&&(b=CKEDITOR.dom.element.createFromHtml('\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e',a.document),b.insertAfter(d),
d.mergeSiblings(!1),a.moveToBookmark({startNode:b}))):a.collapse(!0)}a.optimizeBookmark();var g=0===d,m=1==d,w=2==d;d=w||m;var l=a.startContainer,A=a.endContainer,C=a.startOffset,y=a.endOffset,F,E,G,I,H,L;if(w&&A.type==CKEDITOR.NODE_TEXT&&(l.equals(A)||l.type===CKEDITOR.NODE_ELEMENT&&l.getFirst().equals(A)))b.append(a.document.createText(A.substring(C,y)));else{A.type==CKEDITOR.NODE_TEXT?w?L=!0:A=A.split(y):0<A.getChildCount()?y>=A.getChildCount()?(A=A.getChild(y-1),E=!0):A=A.getChild(y):I=E=!0;l.type==
CKEDITOR.NODE_TEXT?w?H=!0:l.split(C):0<l.getChildCount()?0===C?(l=l.getChild(C),F=!0):l=l.getChild(C-1):G=F=!0;for(var K=l.getParents(),D=A.getParents(),S=h(),N=K.length-1,P=D.length-1,J=b,U,Y,Z,aa=-1,M=S;M<=N;M++){Y=K[M];Z=Y.getNext();for(M!=N||Y.equals(D[M])&&N<P?d&&(U=J.append(Y.clone(0,c))):F?f(Y,J,!1,G):H&&J.append(a.document.createText(Y.substring(C)));Z;){if(Z.equals(D[M])){aa=M;break}Z=f(Z,J)}J=U}J=b;for(M=S;M<=P;M++)if(b=D[M],Z=b.getPrevious(),b.equals(K[M]))d&&(J=J.getChild(0));else{M!=
P||b.equals(K[M])&&P<N?d&&(U=J.append(b.clone(0,c))):E?f(b,J,!1,I):L&&J.append(a.document.createText(b.substring(0,y)));if(M>aa)for(;Z;)Z=f(Z,J,!0);J=U}w||k()}}function f(){var a=!1,d=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(!0),e=CKEDITOR.dom.walker.bogus();return function(c){return b(c)||d(c)?!0:e(c)&&!a?a=!0:c.type==CKEDITOR.NODE_TEXT&&(c.hasAscendant("pre")||CKEDITOR.tools.trim(c.getText()).length)||c.type==CKEDITOR.NODE_ELEMENT&&!c.is(m)?!1:!0}}function e(a){var d=CKEDITOR.dom.walker.whitespaces(),
b=CKEDITOR.dom.walker.bookmark(1);return function(e){return b(e)||d(e)?!0:!a&&l(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty)}}function k(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&d(a)&&(b=a);return h(a)&&!(l(a)&&a.equals(b))})}}var m={abbr:1,acronym:1,b: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,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},l=CKEDITOR.dom.walker.bogus(),
b=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,h=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset;a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){a?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),
this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(a){var d=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||g(this,2,d,!1,"undefined"==typeof a?!0:a);return d},deleteContents:function(a){this.collapsed||g(this,0,null,a)},extractContents:function(a,d){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||g(this,1,b,a,"undefined"==typeof d?!0:d);return b},createBookmark:function(a){var d,b,e,c,f=this.collapsed;d=this.document.createElement("span");
d.data("cke-bookmark",1);d.setStyle("display","none");d.setHtml("\x26nbsp;");a&&(e="cke_bm_"+CKEDITOR.tools.getNextNumber(),d.setAttribute("id",e+(f?"C":"S")));f||(b=d.clone(),b.setHtml("\x26nbsp;"),a&&b.setAttribute("id",e+"E"),c=this.clone(),c.collapse(),c.insertNode(b));c=this.clone();c.collapse(!0);c.insertNode(d);b?(this.setStartAfter(d),this.setEndBefore(b)):this.moveToPosition(d,CKEDITOR.POSITION_AFTER_END);return{startNode:a?e+(f?"C":"S"):d,endNode:a?e+"E":b,serializable:a,collapsed:f}},createBookmark2:function(){function a(a){var d=
a.container,e=a.offset,c;c=d;var f=e;c=c.type!=CKEDITOR.NODE_ELEMENT||0===f||f==c.getChildCount()?0:c.getChild(f-1).type==CKEDITOR.NODE_TEXT&&c.getChild(f).type==CKEDITOR.NODE_TEXT;c&&(d=d.getChild(e-1),e=d.getLength());if(d.type==CKEDITOR.NODE_ELEMENT&&0<e){a:{for(c=d;e--;)if(f=c.getChild(e).getIndex(!0),0<=f){e=f;break a}e=-1}e+=1}if(d.type==CKEDITOR.NODE_TEXT){c=d;for(f=0;(c=c.getPrevious())&&c.type==CKEDITOR.NODE_TEXT;)f+=c.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;
c=f;d.getText()?e+=c:(f=d.getPrevious(b),c?(e=c,d=f?f.getNext():d.getParent().getFirst()):(d=d.getParent(),e=f?f.getIndex(!0)+1:0))}a.container=d;a.offset=e}function d(a,b){var e=b.getCustomData("cke-fillingChar");if(e){var c=a.container;e.equals(c)&&(a.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=a.offset&&(a.offset=c.getIndex(),a.container=c.getParent()))}}var b=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(b){var e=this.collapsed,c={container:this.startContainer,
offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};b&&(a(c),d(c,this.root),e||(a(f),d(f,this.root)));return{start:c.container.getAddress(b),end:e?null:f.container.getAddress(b),startOffset:c.offset,endOffset:f.offset,normalized:b,collapsed:e,is2:!0}}}(),moveToBookmark:function(a){if(a.is2){var d=this.document.getByAddress(a.start,a.normalized),b=a.startOffset,e=a.end&&this.document.getByAddress(a.end,a.normalized);a=a.endOffset;this.setStart(d,b);e?this.setEnd(e,a):this.collapse(!0)}else d=
(b=a.serializable)?this.document.getById(a.startNode):a.startNode,a=b?this.document.getById(a.endNode):a.endNode,this.setStartBefore(d),d.remove(),a?(this.setEndBefore(a),a.remove()):this.collapse(!0)},getBoundaryNodes:function(){var a=this.startContainer,d=this.endContainer,b=this.startOffset,e=this.endOffset,c;if(a.type==CKEDITOR.NODE_ELEMENT)if(c=a.getChildCount(),c>b)a=a.getChild(b);else if(1>c)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=
a.getNextSourceNode()||a}if(d.type==CKEDITOR.NODE_ELEMENT)if(c=d.getChildCount(),c>e)d=d.getChild(e).getPreviousSourceNode(!0);else if(1>c)d=d.getPreviousSourceNode();else{for(d=d.$;d.lastChild;)d=d.lastChild;d=new CKEDITOR.dom.node(d)}a.getPosition(d)&CKEDITOR.POSITION_FOLLOWING&&(a=d);return{startNode:a,endNode:d}},getCommonAncestor:function(a,d){var b=this.startContainer,e=this.endContainer,b=b.equals(e)?a&&b.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?b.getChild(this.startOffset):
b:b.getCommonAncestor(e);return d&&!b.is?b.getParent():b},optimize:function(){var a=this.startContainer,d=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(d?d>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;d=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(d?d>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,d=this.endContainer;a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);
d&&d.is&&d.is("span")&&d.data("cke-bookmark")&&this.setEndAt(d,CKEDITOR.POSITION_AFTER_END)},trim:function(a,d){var b=this.startContainer,e=this.startOffset,c=this.collapsed;if((!a||c)&&b&&b.type==CKEDITOR.NODE_TEXT){if(e)if(e>=b.getLength())e=b.getIndex()+1,b=b.getParent();else{var f=b.split(e),e=b.getIndex()+1,b=b.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(f,this.endOffset-this.startOffset):b.equals(this.endContainer)&&(this.endOffset+=1)}else e=b.getIndex(),b=b.getParent();
this.setStart(b,e);if(c){this.collapse(!0);return}}b=this.endContainer;e=this.endOffset;d||c||!b||b.type!=CKEDITOR.NODE_TEXT||(e?(e>=b.getLength()||b.split(e),e=b.getIndex()+1):e=b.getIndex(),b=b.getParent(),this.setEnd(b,e))},enlarge:function(a,d){function b(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var e=new RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var c=1;case CKEDITOR.ENLARGE_ELEMENT:var f=function(a,d){var b=new CKEDITOR.dom.range(k);
b.setStart(a,d);b.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);var b=new CKEDITOR.dom.walker(b),c;for(b.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};c=b.next();){if(c.type!=CKEDITOR.NODE_TEXT)return!1;F=c!=a?c.getText():c.substring(d);if(e.test(F))return!1}return!0};if(this.collapsed)break;var h=this.getCommonAncestor(),k=this.root,g,m,w,l,A,C=!1,y,F;y=this.startContainer;var E=this.startOffset;y.type==CKEDITOR.NODE_TEXT?(E&&(y=!CKEDITOR.tools.trim(y.substring(0,E)).length&&
y,C=!!y),y&&((l=y.getPrevious())||(w=y.getParent()))):(E&&(l=y.getChild(E-1)||y.getLast()),l||(w=y));for(w=b(w);w||l;){if(w&&!l){!A&&w.equals(h)&&(A=!0);if(c?w.isBlockBoundary():!k.contains(w))break;C&&"inline"==w.getComputedStyle("display")||(C=!1,A?g=w:this.setStartBefore(w));l=w.getPrevious()}for(;l;)if(y=!1,l.type==CKEDITOR.NODE_COMMENT)l=l.getPrevious();else{if(l.type==CKEDITOR.NODE_TEXT)F=l.getText(),e.test(F)&&(l=null),y=/[\s\ufeff]$/.test(F);else if((l.$.offsetWidth>(CKEDITOR.env.webkit?1:
0)||d&&l.is("br"))&&!l.data("cke-bookmark"))if(C&&CKEDITOR.dtd.$removeEmpty[l.getName()]){F=l.getText();if(e.test(F))l=null;else for(var E=l.$.getElementsByTagName("*"),G=0,I;I=E[G++];)if(!CKEDITOR.dtd.$removeEmpty[I.nodeName.toLowerCase()]){l=null;break}l&&(y=!!F.length)}else l=null;y&&(C?A?g=w:w&&this.setStartBefore(w):C=!0);if(l){y=l.getPrevious();if(!w&&!y){w=l;l=null;break}l=y}else w=null}w&&(w=b(w.getParent()))}y=this.endContainer;E=this.endOffset;w=l=null;A=C=!1;y.type==CKEDITOR.NODE_TEXT?
CKEDITOR.tools.trim(y.substring(E)).length?C=!0:(C=!y.getLength(),E==y.getLength()?(l=y.getNext())||(w=y.getParent()):f(y,E)&&(w=y.getParent())):(l=y.getChild(E))||(w=y);for(;w||l;){if(w&&!l){!A&&w.equals(h)&&(A=!0);if(c?w.isBlockBoundary():!k.contains(w))break;C&&"inline"==w.getComputedStyle("display")||(C=!1,A?m=w:w&&this.setEndAfter(w));l=w.getNext()}for(;l;){y=!1;if(l.type==CKEDITOR.NODE_TEXT)F=l.getText(),f(l,0)||(l=null),y=/^[\s\ufeff]/.test(F);else if(l.type==CKEDITOR.NODE_ELEMENT){if((0<l.$.offsetWidth||
d&&l.is("br"))&&!l.data("cke-bookmark"))if(C&&CKEDITOR.dtd.$removeEmpty[l.getName()]){F=l.getText();if(e.test(F))l=null;else for(E=l.$.getElementsByTagName("*"),G=0;I=E[G++];)if(!CKEDITOR.dtd.$removeEmpty[I.nodeName.toLowerCase()]){l=null;break}l&&(y=!!F.length)}else l=null}else y=1;y&&C&&(A?m=w:this.setEndAfter(w));if(l){y=l.getNext();if(!w&&!y){w=l;l=null;break}l=y}else w=null}w&&(w=b(w.getParent()))}g&&m&&(h=g.contains(m)?m:g,this.setStartBefore(h),this.setEndAfter(h));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:w=
new CKEDITOR.dom.range(this.root);k=this.root;w.setStartAt(k,CKEDITOR.POSITION_AFTER_START);w.setEnd(this.startContainer,this.startOffset);w=new CKEDITOR.dom.walker(w);var H,L,K=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),D=null,S=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&"false"==a.getAttribute("contenteditable"))if(D){if(D.equals(a)){D=null;return}}else D=a;else if(D)return;var d=K(a);d||(H=a);return d},c=function(a){var d=S(a);!d&&a.is&&a.is("br")&&
(L=a);return d};w.guard=S;w=w.lastBackward();H=H||k;this.setStartAt(H,!H.is("br")&&(!w&&this.checkStartOfBlock()||w&&H.contains(w))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){w=this.clone();w=new CKEDITOR.dom.walker(w);var N=CKEDITOR.dom.walker.whitespaces(),P=CKEDITOR.dom.walker.bookmark();w.evaluator=function(a){return!N(a)&&!P(a)};if((w=w.previous())&&w.type==CKEDITOR.NODE_ELEMENT&&w.is("br"))break}w=this.clone();w.collapse();w.setEndAt(k,
CKEDITOR.POSITION_BEFORE_END);w=new CKEDITOR.dom.walker(w);w.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?c:S;H=D=L=null;w=w.lastForward();H=H||k;this.setEndAt(H,!w&&this.checkEndOfBlock()||w&&H.contains(w)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);L&&this.setEndAfter(L)}},shrink:function(a,d,b){var e="boolean"===typeof b?b:b&&"boolean"===typeof b.shrinkOnBlockBoundary?b.shrinkOnBlockBoundary:!0,c=b&&b.skipBogus;if(!this.collapsed){a=a||CKEDITOR.SHRINK_TEXT;var f=this.clone(),h=
this.startContainer,k=this.endContainer,g=this.startOffset,l=this.endOffset,m=b=1;h&&h.type==CKEDITOR.NODE_TEXT&&(g?g>=h.getLength()?f.setStartAfter(h):(f.setStartBefore(h),b=0):f.setStartBefore(h));k&&k.type==CKEDITOR.NODE_TEXT&&(l?l>=k.getLength()?f.setEndAfter(k):(f.setEndAfter(k),m=0):f.setEndBefore(k));var f=new CKEDITOR.dom.walker(f),B=CKEDITOR.dom.walker.bookmark(),A=CKEDITOR.dom.walker.bogus();f.evaluator=function(d){return d.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};
var C;f.guard=function(d,b){if(c&&A(d)||B(d))return!0;if(a==CKEDITOR.SHRINK_ELEMENT&&d.type==CKEDITOR.NODE_TEXT||b&&d.equals(C)||!1===e&&d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()||d.type==CKEDITOR.NODE_ELEMENT&&d.hasAttribute("contenteditable"))return!1;b||d.type!=CKEDITOR.NODE_ELEMENT||(C=d);return!0};b&&(h=f[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(h,d?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);m&&(f.reset(),(f=f[a==CKEDITOR.SHRINK_ELEMENT?
"lastBackward":"previous"]())&&this.setEndAt(f,d?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!b&&!m)}},insertNode:function(a){this.optimizeBookmark();this.trim(!1,!0);var d=this.startContainer,b=d.getChild(this.startOffset);b?a.insertBefore(b):d.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,d){this.setStartAt(a,d);this.collapse(!0)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);
this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(a,d){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(d=a.getIndex(),a=a.getParent());this._setStartContainer(a);this.startOffset=d;this.endContainer||(this._setEndContainer(a),this.endOffset=d);c(this)},setEnd:function(a,d){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(d=a.getIndex()+
1,a=a.getParent());this._setEndContainer(a);this.endOffset=d;this.startContainer||(this._setStartContainer(a),this.startOffset=d);c(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(a,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);
break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}c(this)},setEndAt:function(a,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);
break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}c(this)},fixBlock:function(a,d){var b=this.createBookmark(),e=this.document.createElement(d);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(e);e.trim();this.insertNode(e);var c=e.getBogus();c&&c.remove();e.appendBogus();this.moveToBookmark(b);return e},splitBlock:function(a,d){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),e=new CKEDITOR.dom.elementPath(this.endContainer,this.root),
c=b.block,f=e.block,h=null;if(!b.blockLimit.equals(e.blockLimit))return null;"br"!=a&&(c||(c=this.fixBlock(!0,a),f=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),f||(f=this.fixBlock(!1,a)));b=c&&this.checkStartOfBlock();e=f&&this.checkEndOfBlock();this.deleteContents();c&&c.equals(f)&&(e?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END),f=null):b?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(c,
CKEDITOR.POSITION_BEFORE_START),c=null):(f=this.splitElement(c,d||!1),c.is("ul","ol")||c.appendBogus()));return{previousBlock:c,nextBlock:f,wasStartOfBlock:b,wasEndOfBlock:e,elementPath:h}},splitElement:function(a,d){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(!1,d||!1),e=a.clone(!1,d||!1);b.appendTo(e);e.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return e},removeEmptyBlocksAtEnd:function(){function a(a){return function(e){return d(e)||
b(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.isEmptyInlineRemoveable()||a.is("table")&&e.is("caption")?!1:!0}}var d=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(!1);return function(d){for(var b=this.createBookmark(),e=this[d?"endPath":"startPath"](),c=e.block||e.blockLimit,f;c&&!c.equals(e.root)&&!c.getFirst(a(c));)f=c.getParent(),this[d?"setEndAt":"setStartAt"](c,CKEDITOR.POSITION_AFTER_END),c.remove(1),c=f;this.moveToBookmark(b)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,
this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,d){var b=d==CKEDITOR.START,c=this.clone();c.collapse(b);c[b?"setStartAt":"setEndAt"](a,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=e(b);return c[b?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,d=this.startOffset;CKEDITOR.env.ie&&d&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.ltrim(a.substring(0,
d)),b.test(a)&&this.trim(0,1));this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);d=this.clone();d.collapse(!0);d.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(d);a.evaluator=f();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,d=this.endOffset;CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.rtrim(a.substring(d)),b.test(a)&&this.trim(1,0));this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,
this.root);d=this.clone();d.collapse(!1);d.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(d);a.evaluator=f();return a.checkForward()},getPreviousNode:function(a,d,b){var e=this.clone();e.collapse(1);e.setStartAt(b||this.root,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(e);b.evaluator=a;b.guard=d;return b.previous()},getNextNode:function(a,d,b){var e=this.clone();e.collapse();e.setEndAt(b||this.root,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(e);
b.evaluator=a;b.guard=d;return b.next()},checkReadOnly:function(){function a(a,d){for(;a;){if(a.type==CKEDITOR.NODE_ELEMENT){if("false"==a.getAttribute("contentEditable")&&!a.data("cke-editable"))return 0;if(a.is("html")||"true"==a.getAttribute("contentEditable")&&(a.contains(d)||a.equals(d)))break}a=a.getParent()}return 1}return function(){var d=this.startContainer,b=this.endContainer;return!(a(d,b)&&a(b,d))}}(),moveToElementEditablePosition:function(a,e){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(!1))return this.moveToPosition(a,
e?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var c=0;a;){if(a.type==CKEDITOR.NODE_TEXT){e&&this.endContainer&&this.checkEndOfBlock()&&b.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,e?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);c=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable())this.moveToPosition(a,e?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),c=1;else if(e&&a.is("br")&&this.endContainer&&
this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);else if("false"==a.getAttribute("contenteditable")&&a.is(CKEDITOR.dtd.$block))return this.setStartBefore(a),this.setEndAfter(a),!0;var f=a,h=c,k=void 0;f.type==CKEDITOR.NODE_ELEMENT&&f.isEditable(!1)&&(k=f[e?"getLast":"getFirst"](d));h||k||(k=f[e?"getPrevious":"getNext"](d));a=k}return!!c},moveToClosestEditablePosition:function(a,d){var b,e=0,c,f,h=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(b=new CKEDITOR.dom.range(this.root),
b.moveToPosition(a,h[d?0:1])):b=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))e=1;else if(c=b[d?"getNextEditableNode":"getPreviousEditableNode"]())e=1,(f=c.type==CKEDITOR.NODE_ELEMENT)&&c.is(CKEDITOR.dtd.$block)&&"false"==c.getAttribute("contenteditable")?(b.setStartAt(c,CKEDITOR.POSITION_BEFORE_START),b.setEndAt(c,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&f&&c.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(b.setEnd(c,0),b.collapse()):b.moveToPosition(c,h[d?1:0]);e&&this.moveToRange(b);
return!!e},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,!0)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),d=CKEDITOR.dom.walker.bookmark(!1,!0),b=CKEDITOR.dom.walker.whitespaces(!0);a.evaluator=function(a){return b(a)&&d(a)};var e=a.next();
a.reset();return e&&e.equals(a.previous())?e:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:k(),getPreviousEditableNode:k(1),_getTableElement:function(a){a=a||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var d=this.startContainer,b=
this.endContainer,e=d.getAscendant("table",!0),c=b.getAscendant("table",!0);return CKEDITOR.env.safari&&e&&b.equals(this.root)?d.getAscendant(a,!0):this.getEnclosedNode()?this.getEnclosedNode().getAscendant(a,!0):e&&c&&(e.equals(c)||e.contains(c)||c.contains(e))?d.getAscendant(a,!0):null},scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),d,b,e,c=this.clone();c.optimize();(e=c.startContainer.type==CKEDITOR.NODE_TEXT)?(b=c.startContainer.getText(),
d=c.startContainer.split(c.startOffset),a.insertAfter(c.startContainer)):c.insertNode(a);a.scrollIntoView();e&&(c.startContainer.setText(b),d.remove());a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a},_find:function(a,d){var b=this.getCommonAncestor(),e=this.getBoundaryNodes(),c=[],f,h,k,g;if(b&&b.find)for(h=b.find(a),f=0;f<h.count();f++)if(b=h.getItem(f),d||!b.isReadOnly())k=b.getPosition(e.startNode)&CKEDITOR.POSITION_FOLLOWING||
e.startNode.equals(b),g=b.getPosition(e.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED||e.endNode.equals(b),k&&g&&c.push(b);return c}};CKEDITOR.dom.range.mergeRanges=function(a){return CKEDITOR.tools.array.reduce(a,function(a,d){var b=a[a.length-1],e=!1;d=d.clone();d.enlarge(CKEDITOR.ENLARGE_ELEMENT);if(b){var c=new CKEDITOR.dom.range(d.root),e=new CKEDITOR.dom.walker(c),f=CKEDITOR.dom.walker.whitespaces();c.setStart(b.endContainer,b.endOffset);c.setEnd(d.startContainer,d.startOffset);
for(c=e.next();f(c)||d.endContainer.equals(c);)c=e.next();e=!c}e?b.setEnd(d.endContainer,d.endOffset):a.push(d);return a},[])}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,"use strict",function(){function c(d){1>
arguments.length||(this.range=d,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function g(d){var a=[];d.forEach(function(d){if("true"==d.getAttribute("contenteditable"))return a.push(d),!1},CKEDITOR.NODE_ELEMENT,!0);return a}function f(d,a,b,e){a:{null==e&&(e=g(b));for(var c;c=e.shift();)if(c.getDtd().p){e={element:c,remaining:e};break a}e=null}if(!e)return 0;if((c=CKEDITOR.filter.instances[e.element.data("cke-filter")])&&!c.check(a))return f(d,a,b,e.remaining);
a=new CKEDITOR.dom.range(e.element);a.selectNodeContents(e.element);a=a.createIterator();a.enlargeBr=d.enlargeBr;a.enforceRealBlocks=d.enforceRealBlocks;a.activeFilter=a.filter=c;d._.nestedEditable={element:e.element,container:b,remaining:e.remaining,iterator:a};return 1}function e(d,a,b){if(!a)return!1;d=d.clone();d.collapse(!b);return d.checkBoundaryOfElement(a,b?CKEDITOR.START:CKEDITOR.END)}var k=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),l=CKEDITOR.dom.walker.whitespaces(!0),b=function(d){return m(d)&&
l(d)},h={dd:1,dt:1,li:1};c.prototype={getNextParagraph:function(d){var a,c,g,l,x;d=d||"p";if(this._.nestedEditable){if(a=this._.nestedEditable.iterator.getNextParagraph(d))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,a;this.activeFilter=this.filter;if(f(this,d,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(d);this._.nestedEditable=null}if(!this.range.root.getDtd()[d])return null;
if(!this._.started){var r=this.range.clone();c=r.startPath();var q=r.endPath(),u=!r.collapsed&&e(r,c.block),v=!r.collapsed&&e(r,q.block,1);r.shrink(CKEDITOR.SHRINK_ELEMENT,!0);u&&r.setStartAt(c.block,CKEDITOR.POSITION_BEFORE_END);v&&r.setEndAt(q.block,CKEDITOR.POSITION_AFTER_START);c=r.endContainer.hasAscendant("pre",!0)||r.startContainer.hasAscendant("pre",!0);r.enlarge(this.forceBrBreak&&!c||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);r.collapsed||(c=new CKEDITOR.dom.walker(r.clone()),
q=CKEDITOR.dom.walker.bookmark(!0,!0),c.evaluator=q,this._.nextNode=c.next(),c=new CKEDITOR.dom.walker(r.clone()),c.evaluator=q,c=c.previous(),this._.lastNode=c.getNextSourceNode(!0,null,r.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(q=this.range.clone(),q.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),q.checkEndOfBlock()&&(q=new CKEDITOR.dom.elementPath(q.endContainer,
q.root),this._.lastNode=(q.block||q.blockLimit).getNextSourceNode(!0))),this._.lastNode&&r.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=r.document.createText(""),this._.lastNode.insertAfter(c)),r=null);this._.started=1;c=r}q=this._.nextNode;r=this._.lastNode;for(this._.nextNode=null;q;){var u=0,v=q.hasAscendant("pre"),z=q.type!=CKEDITOR.NODE_ELEMENT,w=0;if(z)q.type==CKEDITOR.NODE_TEXT&&k.test(q.getText())&&(z=0);else{var B=q.getName();if(CKEDITOR.dtd.$block[B]&&"false"==q.getAttribute("contenteditable")){a=
q;f(this,d,a);break}else if(q.isBlockBoundary(this.forceBrBreak&&!v&&{br:1})){if("br"==B)z=1;else if(!c&&!q.getChildCount()&&"hr"!=B){a=q;g=q.equals(r);break}c&&(c.setEndAt(q,CKEDITOR.POSITION_BEFORE_START),"br"!=B&&(this._.nextNode=q));u=1}else{if(q.getFirst()){c||(c=this.range.clone(),c.setStartAt(q,CKEDITOR.POSITION_BEFORE_START));q=q.getFirst();continue}z=1}}z&&!c&&(c=this.range.clone(),c.setStartAt(q,CKEDITOR.POSITION_BEFORE_START));g=(!u||z)&&q.equals(r);if(c&&!u)for(;!q.getNext(b)&&!g;){B=
q.getParent();if(B.isBlockBoundary(this.forceBrBreak&&!v&&{br:1})){u=1;z=0;g||B.equals(r);c.setEndAt(B,CKEDITOR.POSITION_BEFORE_END);break}q=B;z=1;g=q.equals(r);w=1}z&&c.setEndAt(q,CKEDITOR.POSITION_AFTER_END);q=this._getNextSourceNode(q,w,r);if((g=!q)||u&&c)break}if(!a){if(!c)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;a=new CKEDITOR.dom.elementPath(c.startContainer,c.root);q=a.blockLimit;u={div:1,th:1,td:1};a=a.block;!a&&q&&!this.enforceRealBlocks&&u[q.getName()]&&
c.checkStartOfBlock()&&c.checkEndOfBlock()&&!q.equals(c.root)?a=q:!a||this.enforceRealBlocks&&a.is(h)?(a=this.range.document.createElement(d),c.extractContents().appendTo(a),a.trim(),c.insertNode(a),l=x=!0):"li"!=a.getName()?c.checkStartOfBlock()&&c.checkEndOfBlock()||(a=a.clone(!1),c.extractContents().appendTo(a),a.trim(),x=c.splitBlock(),l=!x.wasStartOfBlock,x=!x.wasEndOfBlock,c.insertNode(a)):g||(this._.nextNode=a.equals(r)?null:this._getNextSourceNode(c.getBoundaryNodes().endNode,1,r))}l&&(l=
a.getPrevious())&&l.type==CKEDITOR.NODE_ELEMENT&&("br"==l.getName()?l.remove():l.getLast()&&"br"==l.getLast().$.nodeName.toLowerCase()&&l.getLast().remove());x&&(l=a.getLast())&&l.type==CKEDITOR.NODE_ELEMENT&&"br"==l.getName()&&(!CKEDITOR.env.needsBrFiller||l.getPrevious(m)||l.getNext(m))&&l.remove();this._.nextNode||(this._.nextNode=g||a.equals(r)||!r?null:this._getNextSourceNode(a,1,r));return a},_getNextSourceNode:function(d,a,b){function e(a){return!(a.equals(b)||a.equals(c))}var c=this.range.root;
for(d=d.getNextSourceNode(a,null,e);!m(d);)d=d.getNextSourceNode(a,null,e);return d}};CKEDITOR.dom.range.prototype.createIterator=function(){return new c(this)}}(),CKEDITOR.command=function(c,g){this.uiItems=[];this.exec=function(e){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&c.focus();return!1===this.fire("exec")?!0:!1!==g.exec.call(this,c,e)};this.refresh=function(e,c){if(!this.readOnly&&e.readOnly)return!0;if(this.context&&!c.isContextFor(this.context)||
!this.checkAllowed(!0))return this.disable(),!0;this.startDisabled||this.enable();this.modes&&!this.modes[e.mode]&&this.disable();return!1===this.fire("refresh",{editor:e,path:c})?!0:g.refresh&&!1!==g.refresh.apply(this,arguments)};var f;this.checkAllowed=function(e){return e||"boolean"!=typeof f?f=c.activeFilter.checkFeature(this):f};CKEDITOR.tools.extend(this,g,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!g.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype=
{enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(c){if(this.state==c||c!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=c;this.fire("state");return!0},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):
this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"\x3c!DOCTYPE html\x3e",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),
extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function c(a,d,b,e,c){var f,h;a=[];for(f in d){h=d[f];h="boolean"==typeof h?{}:"function"==typeof h?{match:h}:G(h);"$"!=f.charAt(0)&&(h.elements=f);b&&(h.featureName=b.toLowerCase());var k=h;k.elements=l(k.elements,/\s+/)||null;k.propertiesOnly=k.propertiesOnly||!0===k.elements;var g=/\s*,\s*/,n=void 0;for(n in L){k[n]=l(k[n],
g)||null;var q=k,m=K[n],w=l(k[K[n]],g),D=k[n],B=[],N=!0,r=void 0;w?N=!1:w={};for(r in D)"!"==r.charAt(0)&&(r=r.slice(1),B.push(r),w[r]=!0,N=!1);for(;r=B.pop();)D[r]=D["!"+r],delete D["!"+r];q[m]=(N?!1:w)||null}k.match=k.match||null;e.push(h);a.push(h)}d=c.elements;c=c.generic;var t;b=0;for(e=a.length;b<e;++b){f=G(a[b]);h=!0===f.classes||!0===f.styles||!0===f.attributes;k=f;n=m=g=void 0;for(g in L)k[g]=u(k[g]);q=!0;for(n in K){g=K[n];m=k[g];w=[];D=void 0;for(D in m)-1<D.indexOf("*")?w.push(new RegExp("^"+
D.replace(/\*/g,".*")+"$")):w.push(D);m=w;m.length&&(k[g]=m,q=!1)}k.nothingRequired=q;k.noProperties=!(k.attributes||k.classes||k.styles);if(!0===f.elements||null===f.elements)c[h?"unshift":"push"](f);else for(t in k=f.elements,delete f.elements,k)if(d[t])d[t][h?"unshift":"push"](f);else d[t]=[f]}}function g(a,d,e,c){if(!a.match||a.match(d))if(c||b(a,d))if(a.propertiesOnly||(e.valid=!0),e.allAttributes||(e.allAttributes=f(a.attributes,d.attributes,e.validAttributes)),e.allStyles||(e.allStyles=f(a.styles,
d.styles,e.validStyles)),!e.allClasses){a=a.classes;d=d.classes;c=e.validClasses;if(a)if(!0===a)a=!0;else{for(var h=0,k=d.length,g;h<k;++h)g=d[h],c[g]||(c[g]=a(g));a=!1}else a=!1;e.allClasses=a}}function f(a,d,b){if(!a)return!1;if(!0===a)return!0;for(var e in d)b[e]||(b[e]=a(e));return!1}function e(a,d,b){if(!a.match||a.match(d)){if(a.noProperties)return!1;b.hadInvalidAttribute=k(a.attributes,d.attributes)||b.hadInvalidAttribute;b.hadInvalidStyle=k(a.styles,d.styles)||b.hadInvalidStyle;a=a.classes;
d=d.classes;if(a){for(var e=!1,c=!0===a,f=d.length;f--;)if(c||a(d[f]))d.splice(f,1),e=!0;a=e}else a=!1;b.hadInvalidClass=a||b.hadInvalidClass}}function k(a,d){if(!a)return!1;var b=!1,e=!0===a,c;for(c in d)if(e||a(c))delete d[c],b=!0;return b}function m(a,d,b){if(a.disabled||a.customConfig&&!b||!d)return!1;a._.cachedChecks={};return!0}function l(a,d){if(!a)return!1;if(!0===a)return a;if("string"==typeof a)return a=I(a),"*"==a?!0:CKEDITOR.tools.convertArrayToObject(a.split(d));if(CKEDITOR.tools.isArray(a))return a.length?
CKEDITOR.tools.convertArrayToObject(a):!1;var b={},e=0,c;for(c in a)b[c]=a[c],e++;return e?b:!1}function b(a,d){if(a.nothingRequired)return!0;var b,e,c,f;if(c=a.requiredClasses)for(f=d.classes,b=0;b<c.length;++b)if(e=c[b],"string"==typeof e){if(-1==CKEDITOR.tools.indexOf(f,e))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(f,e))return!1;return h(d.styles,a.requiredStyles)&&h(d.attributes,a.requiredAttributes)}function h(a,d){if(!d)return!0;for(var b=0,e;b<d.length;++b)if(e=d[b],"string"==
typeof e){if(!(e in a))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,e))return!1;return!0}function d(a){if(!a)return{};a=a.split(/\s*,\s*/).sort();for(var d={};a.length;)d[a.shift()]="cke-test";return d}function a(a){var d,b,e,c,f={},h=1;for(a=I(a);d=a.match(D);)(b=d[2])?(e=n(b,"styles"),c=n(b,"attrs"),b=n(b,"classes")):e=c=b=null,f["$"+h++]={elements:d[1],classes:b,styles:e,attributes:c},a=a.slice(d[0].length);return f}function n(a,d){var b=a.match(S[d]);return b?I(b[1]):null}
function t(a){var d=a.styleBackup=a.attributes.style,b=a.classBackup=a.attributes["class"];a.styles||(a.styles=CKEDITOR.tools.parseCssText(d||"",1));a.classes||(a.classes=b?b.split(/\s+/):[])}function p(a,d,b,c){var f=0,h;c.toHtml&&(d.name=d.name.replace(N,"$1"));if(c.doCallbacks&&a.elementCallbacks){a:{h=a.elementCallbacks;for(var k=0,n=h.length,l;k<n;++k)if(l=h[k](d)){h=l;break a}h=void 0}if(h)return h}if(c.doTransform&&(h=a._.transformations[d.name])){t(d);for(k=0;k<h.length;++k)B(a,d,h[k]);r(d)}if(c.doFilter){a:{k=
d.name;n=a._;a=n.allowedRules.elements[k];h=n.allowedRules.generic;k=n.disallowedRules.elements[k];n=n.disallowedRules.generic;l=c.skipRequired;var m={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1},w,D;if(a||h){t(d);if(k)for(w=0,D=k.length;w<D;++w)if(!1===e(k[w],d,m)){a=null;break a}if(n)for(w=0,D=n.length;w<D;++w)e(n[w],d,m);if(a)for(w=0,D=a.length;w<D;++w)g(a[w],d,m,l);if(h)for(w=
0,D=h.length;w<D;++w)g(h[w],d,m,l);a=m}else a=null}if(!a||!a.valid)return b.push(d),1;D=a.validAttributes;var K=a.validStyles;h=a.validClasses;var k=d.attributes,u=d.styles,n=d.classes;l=d.classBackup;var A=d.styleBackup,v,E,C=[],m=[],x=/^data-cke-/;w=!1;delete k.style;delete k["class"];delete d.classBackup;delete d.styleBackup;if(!a.allAttributes)for(v in k)D[v]||(x.test(v)?v==(E=v.replace(/^data-cke-saved-/,""))||D[E]||(delete k[v],w=!0):(delete k[v],w=!0));if(!a.allStyles||a.hadInvalidStyle){for(v in u)a.allStyles||
K[v]?C.push(v+":"+u[v]):w=!0;C.length&&(k.style=C.sort().join("; "))}else A&&(k.style=A);if(!a.allClasses||a.hadInvalidClass){for(v=0;v<n.length;++v)(a.allClasses||h[n[v]])&&m.push(n[v]);m.length&&(k["class"]=m.sort().join(" "));l&&m.length<l.split(/\s+/).length&&(w=!0)}else l&&(k["class"]=l);w&&(f=1);if(!c.skipFinalValidation&&!q(d))return b.push(d),1}c.toHtml&&(d.name=d.name.replace(P,"cke:$1"));return f}function x(a){var d=[],b;for(b in a)-1<b.indexOf("*")&&d.push(b.replace(/\*/g,".*"));return d.length?
new RegExp("^(?:"+d.join("|")+")$"):null}function r(a){var d=a.attributes,b;delete d.style;delete d["class"];if(b=CKEDITOR.tools.writeCssText(a.styles,!0))d.style=b;a.classes.length&&(d["class"]=a.classes.sort().join(" "))}function q(a){switch(a.name){case "a":if(!(a.children.length||a.attributes.name||a.attributes.id))return!1;break;case "img":if(!a.attributes.src)return!1}return!0}function u(a){if(!a)return!1;if(!0===a)return!0;var d=x(a);return function(b){return b in a||d&&b.match(d)}}function v(){return new CKEDITOR.htmlParser.element("br")}
function z(a){return a.type==CKEDITOR.NODE_ELEMENT&&("br"==a.name||E.$block[a.name])}function w(a,d,b){var e=a.name;if(E.$empty[e]||!a.children.length)"hr"==e&&"br"==d?a.replaceWith(v()):(a.parent&&b.push({check:"it",el:a.parent}),a.remove());else if(E.$block[e]||"tr"==e)if("br"==d)a.previous&&!z(a.previous)&&(d=v(),d.insertBefore(a)),a.next&&!z(a.next)&&(d=v(),d.insertAfter(a)),a.replaceWithChildren();else{var e=a.children,c;b:{c=E[d];for(var f=0,h=e.length,k;f<h;++f)if(k=e[f],k.type==CKEDITOR.NODE_ELEMENT&&
!c[k.name]){c=!1;break b}c=!0}if(c)a.name=d,a.attributes={},b.push({check:"parent-down",el:a});else{c=a.parent;for(var f=c.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==c.name,g,n,h=e.length;0<h;)k=e[--h],f&&(k.type==CKEDITOR.NODE_TEXT||k.type==CKEDITOR.NODE_ELEMENT&&E.$inline[k.name])?(g||(g=new CKEDITOR.htmlParser.element(d),g.insertAfter(a),b.push({check:"parent-down",el:g})),g.add(k,0)):(g=null,n=E[c.name]||E.span,k.insertAfter(a),c.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||k.type!=CKEDITOR.NODE_ELEMENT||
n[k.name]||b.push({check:"el-up",el:k}));a.remove()}}else e in{style:1,script:1}?a.remove():(a.parent&&b.push({check:"it",el:a.parent}),a.replaceWithChildren())}function B(a,d,b){var e,c;for(e=0;e<b.length;++e)if(c=b[e],!(c.check&&!a.check(c.check,!1)||c.left&&!c.left(d))){c.right(d,J);break}}function A(a,d){var b=d.getDefinition(),e=b.attributes,c=b.styles,f,h,k,g;if(a.name!=b.element)return!1;for(f in e)if("class"==f)for(b=e[f].split(/\s+/),k=a.classes.join("|");g=b.pop();){if(-1==k.indexOf(g))return!1}else if(a.attributes[f]!=
e[f])return!1;for(h in c)if(a.styles[h]!=c[h])return!1;return!0}function C(a,d){var b,e;"string"==typeof a?b=a:a instanceof CKEDITOR.style?e=a:(b=a[0],e=a[1]);return[{element:b,left:e,right:function(a,b){b.transform(a,d)}}]}function y(a){return function(d){return A(d,a)}}function F(a){return function(d,b){b[a](d)}}var E=CKEDITOR.dtd,G=CKEDITOR.tools.copy,I=CKEDITOR.tools.trim,H=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a){this.allowedContent=[];this.disallowedContent=
[];this.elementCallbacks=null;this.disabled=!1;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{},cachedChecks:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=!0;var d=a.config.allowedContent;!0===d?this.disabled=!0:(d||(this.customConfig=!1),this.allow(d,"config",1),this.allow(a.config.extraAllowedContent,"extra",
1),this.allow(H[a.enterMode]+" "+H[a.shiftEnterMode],"default",1),this.disallow(a.config.disallowedContent))}else this.customConfig=!1,this.allow(a,"default",1)};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(d,b,e){if(!m(this,d,e))return!1;var f,h;if("string"==typeof d)d=a(d);else if(d instanceof CKEDITOR.style){if(d.toAllowedContentRules)return this.allow(d.toAllowedContentRules(this.editor),b,e);f=d.getDefinition();d={};e=f.attributes;d[f.element]=f={styles:f.styles,requiredStyles:f.styles&&
CKEDITOR.tools.objectKeys(f.styles)};e&&(e=G(e),f.classes=e["class"]?e["class"].split(/\s+/):null,f.requiredClasses=f.classes,delete e["class"],f.attributes=e,f.requiredAttributes=e&&CKEDITOR.tools.objectKeys(e))}else if(CKEDITOR.tools.isArray(d)){for(f=0;f<d.length;++f)h=this.allow(d[f],b,e);return h}c(this,d,b,this.allowedContent,this._.allowedRules);return!0},applyTo:function(a,d,b,e){if(this.disabled)return!1;var c=this,f=[],h=this.editor&&this.editor.config.protectedSource,k,g=!1,n={doFilter:!b,
doTransform:!0,doCallbacks:!0,toHtml:d};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if("off"==a.attributes["data-cke-filter"])return!1;if(!d||"span"!=a.name||!~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-"))if(k=p(c,a,f,n),k&1)g=!0;else if(k&2)return!1}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var b;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));b=[];var l,q,m;if(h)for(q=0;q<h.length;++q)if((m=e.match(h[q]))&&
m[0].length==e.length){b=!0;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);1==e.children.length&&(l=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&p(c,l,b,n);b=!b.length}b||f.push(a)}},null,!0);f.length&&(g=!0);var l;a=[];e=H[e||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var m;b=f.pop();)b.type==CKEDITOR.NODE_ELEMENT?w(b,e,a):b.remove();for(;l=a.pop();)if(b=l.el,b.parent)switch(m=E[b.parent.name]||E.span,l.check){case "it":E.$removeEmpty[b.name]&&!b.children.length?w(b,e,a):q(b)||
w(b,e,a);break;case "el-up":b.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||m[b.name]||w(b,e,a);break;case "parent-down":b.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||m[b.name]||w(b.parent,e,a)}return g},checkFeature:function(a){if(this.disabled||!a)return!0;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=!0},disallow:function(d){if(!m(this,d,!0))return!1;"string"==typeof d&&(d=a(d));c(this,d,null,this.disallowedContent,
this._.disallowedRules);return!0},addContentForms:function(a){if(!this.disabled&&a){var d,b,e=[],c;for(d=0;d<a.length&&!c;++d)b=a[d],("string"==typeof b||b instanceof CKEDITOR.style)&&this.check(b)&&(c=b);if(c){for(d=0;d<a.length;++d)e.push(C(a[d],c));this.addTransformations(e)}}},addElementCallback:function(a){this.elementCallbacks||(this.elementCallbacks=[]);this.elementCallbacks.push(a)},addFeature:function(a){if(this.disabled||!a)return!0;a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,
a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return a.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(a.requiredContent):!0},addTransformations:function(a){var d,b;if(!this.disabled&&a){var e=this._.transformations,c;for(c=0;c<a.length;++c){d=a[c];var f=void 0,h=void 0,k=void 0,g=void 0,n=void 0,l=void 0;b=[];for(h=0;h<d.length;++h)k=d[h],"string"==typeof k?(k=k.split(/\s*:\s*/),g=k[0],n=null,l=k[1]):(g=k.check,n=k.left,
l=k.right),f||(f=k,f=f.element?f.element:g?g.match(/^([a-z0-9]+)/i)[0]:f.left.getDefinition().element),n instanceof CKEDITOR.style&&(n=y(n)),b.push({check:g==f?null:g,left:n,right:"string"==typeof l?F(l):l});d=f;e[d]||(e[d]=[]);e[d].push(b)}}},check:function(b,e,c){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(b)){for(var f=b.length;f--;)if(this.check(b[f],e,c))return!0;return!1}var h,k;if("string"==typeof b){k=b+"\x3c"+(!1===e?"0":"1")+(c?"1":"0")+"\x3e";if(k in this._.cachedChecks)return this._.cachedChecks[k];
f=a(b).$1;h=f.styles;var g=f.classes;f.name=f.elements;f.classes=g=g?g.split(/\s*,\s*/):[];f.styles=d(h);f.attributes=d(f.attributes);f.children=[];g.length&&(f.attributes["class"]=g.join(" "));h&&(f.attributes.style=CKEDITOR.tools.writeCssText(f.styles));h=f}else f=b.getDefinition(),h=f.styles,g=f.attributes||{},h&&!CKEDITOR.tools.isEmpty(h)?(h=G(h),g.style=CKEDITOR.tools.writeCssText(h,!0)):h={},h={name:f.element,attributes:g,classes:g["class"]?g["class"].split(/\s+/):[],styles:h,children:[]};var g=
CKEDITOR.tools.clone(h),n=[],l;if(!1!==e&&(l=this._.transformations[h.name])){for(f=0;f<l.length;++f)B(this,h,l[f]);r(h)}p(this,g,n,{doFilter:!0,doTransform:!1!==e,skipRequired:!c,skipFinalValidation:!c});e=0<n.length?!1:CKEDITOR.tools.objectCompare(h.attributes,g.attributes,!0)?!0:!1;"string"==typeof b&&(this._.cachedChecks[k]=e);return e},getAllowedEnterMode:function(){var a=["p","div","br"],d={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(b,e){var c=a.slice(),
f;if(this.check(H[b]))return b;for(e||(c=c.reverse());f=c.pop();)if(this.check(f))return d[f];return CKEDITOR.ENTER_BR}}(),clone:function(){var a=new CKEDITOR.filter,d=CKEDITOR.tools.clone;a.allowedContent=d(this.allowedContent);a._.allowedRules=d(this._.allowedRules);a.disallowedContent=d(this.disallowedContent);a._.disallowedRules=d(this._.disallowedRules);a._.transformations=d(this._.transformations);a.disabled=this.disabled;a.editor=this.editor;return a},destroy:function(){delete CKEDITOR.filter.instances[this.id];
delete this._;delete this.allowedContent;delete this.disallowedContent}};var L={styles:1,attributes:1,classes:1},K={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},D=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,S={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},N=/^cke:(object|embed|param)$/,P=/^(object|embed|param)$/,J;J=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,
"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,d,b){b=b||d;if(!(b in a.styles)){var e=a.attributes[d];e&&(/^\d+$/.test(e)&&(e+="px"),a.styles[b]=e)}delete a.attributes[d]},lengthToAttribute:function(a,d,b){b=b||d;if(!(b in a.attributes)){var e=a.styles[d],c=e&&e.match(/^(\d+)(?:\.\d*)?px$/);c?a.attributes[b]=c[1]:"cke-test"==e&&(a.attributes[b]="cke-test")}delete a.styles[d]},alignmentToStyle:function(a){if(!("float"in
a.styles)){var d=a.attributes.align;if("left"==d||"right"==d)a.styles["float"]=d}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var d=a.styles["float"];if("left"==d||"right"==d)a.attributes.align=d}delete a.styles["float"]},splitBorderShorthand:function(a){function d(e){a.styles["border-top-width"]=b[e[0]];a.styles["border-right-width"]=b[e[1]];a.styles["border-bottom-width"]=b[e[2]];a.styles["border-left-width"]=b[e[3]]}if(a.styles.border){var b=a.styles.border.match(/([\.\d]+\w+)/g)||
["0px"];switch(b.length){case 1:a.styles["border-width"]=b[0];break;case 2:d([0,1,0,1]);break;case 3:d([0,1,2,1]);break;case 4:d([0,1,2,3])}a.styles["border-style"]=a.styles["border-style"]||(a.styles.border.match(/(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit)/)||[])[0];a.styles["border-style"]||delete a.styles["border-style"];delete a.styles.border}},listTypeToStyle:function(a){if(a.attributes.type)switch(a.attributes.type){case "a":a.styles["list-style-type"]=
"lower-alpha";break;case "A":a.styles["list-style-type"]="upper-alpha";break;case "i":a.styles["list-style-type"]="lower-roman";break;case "I":a.styles["list-style-type"]="upper-roman";break;case "1":a.styles["list-style-type"]="decimal";break;default:a.styles["list-style-type"]=a.attributes.type}},splitMarginShorthand:function(a){function d(e){a.styles["margin-top"]=b[e[0]];a.styles["margin-right"]=b[e[1]];a.styles["margin-bottom"]=b[e[2]];a.styles["margin-left"]=b[e[3]]}if(a.styles.margin){var b=
a.styles.margin.match(/(\-?[\.\d]+\w+)/g)||["0px"];switch(b.length){case 1:d([0,0,0,0]);break;case 2:d([0,1,0,1]);break;case 3:d([0,1,2,1]);break;case 4:d([0,1,2,3])}delete a.styles.margin}},matchesStyle:A,transform:function(a,d){if("string"==typeof d)a.name=d;else{var b=d.getDefinition(),e=b.styles,c=b.attributes,f,h,k,g;a.name=b.element;for(f in c)if("class"==f)for(b=a.classes.join("|"),k=c[f].split(/\s+/);g=k.pop();)-1==b.indexOf(g)&&a.classes.push(g);else a.attributes[f]=c[f];for(h in e)a.styles[h]=
e[h]}}}}(),function(){CKEDITOR.focusManager=function(c){if(c.focusManager)return c.focusManager;this.hasFocus=!1;this.currentActive=null;this._={editor:c};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(c){this._.timer&&clearTimeout(this._.timer);c&&(this.currentActive=c);this.hasFocus||this._.locked||((c=CKEDITOR.currentInstance)&&c.focusManager.blur(1),this.hasFocus=!0,(c=this._.editor.container)&&c.addClass("cke_focus"),this._.editor.fire("focus"))},
lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(c){function g(){if(this.hasFocus){this.hasFocus=!1;var e=this._.editor.container;e&&e.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var f=CKEDITOR.focusManager._.blurDelay;c||!f?g.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;g.call(this)},f,this)}},add:function(c,g){var f=c.getCustomData("focusmanager");if(!f||
f!=this){f&&f.remove(c);var f="focus",e="blur";g&&(CKEDITOR.env.ie?(f="focusin",e="focusout"):CKEDITOR.event.useCapture=1);var k={blur:function(){c.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(c)}};c.on(f,k.focus,this);c.on(e,k.blur,this);g&&(CKEDITOR.event.useCapture=0);c.setCustomData("focusmanager",this);c.setCustomData("focusmanager_handlers",k)}},remove:function(c){c.removeCustomData("focusmanager");var g=c.removeCustomData("focusmanager_handlers");c.removeListener("blur",
g.blur);c.removeListener("focus",g.focus)}}}(),CKEDITOR.keystrokeHandler=function(c){if(c.keystrokeHandler)return c.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:c};return this},function(){var c,g=function(e){e=e.data;var f=e.getKeystroke(),g=this.keystrokes[f],l=this._.editor;c=!1===l.fire("key",{keyCode:f,domEvent:e});c||(g&&(c=!1!==l.execCommand(g,{from:"keystrokeHandler"})),c||(c=!!this.blockedKeystrokes[f]));c&&e.preventDefault(!0);return!c},f=function(e){c&&(c=
!1,e.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(e){e.on("keydown",g,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)e.on("keypress",f,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,az:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,oc:1,pl:1,
"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(c,g,f){c&&CKEDITOR.lang.languages[c]||(c=this.detect(g,c));var e=this;g=function(){e[c].dir=e.rtl[c]?"rtl":"ltr";f(c,e[c])};this[c]?g():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+c+".js"),g,this)},detect:function(c,g){var f=this.languages;g=g||navigator.userLanguage||navigator.language||c;var e=g.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),
k=e[1],e=e[2];f[k+"-"+e]?k=k+"-"+e:f[k]||(k=null);CKEDITOR.lang.detect=k?function(){return k}:function(e){return e};return k||c}}}(),CKEDITOR.scriptLoader=function(){var c={},g={};return{load:function(f,e,k,m){var l="string"==typeof f;l&&(f=[f]);k||(k=CKEDITOR);var b=f.length,h=[],d=[],a=function(a){e&&(l?e.call(k,a):e.call(k,h,d))};if(0===b)a(!0);else{var n=function(e,c){(c?h:d).push(e);0>=--b&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),a(c))},t=function(a,d){c[a]=1;var b=g[a];
delete g[a];for(var e=0;e<b.length;e++)b[e](a,d)},p=function(a){if(c[a])n(a,!0);else{var d=g[a]||(g[a]=[]);d.push(n);if(!(1<d.length)){var b=new CKEDITOR.dom.element("script");b.setAttributes({type:"text/javascript",src:a});e&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?b.$.onreadystatechange=function(){if("loaded"==b.$.readyState||"complete"==b.$.readyState)b.$.onreadystatechange=null,t(a,!0)}:(b.$.onload=function(){setTimeout(function(){t(a,!0)},0)},b.$.onerror=function(){t(a,
!1)}));b.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var x=0;x<b;x++)p(f[x])}},queue:function(){function c(){var f;(f=e[0])&&this.load(f.scriptUrl,f.callback,CKEDITOR,0)}var e=[];return function(k,g){var l=this;e.push({scriptUrl:k,callback:function(){g&&g.apply(this,arguments);e.shift();c.call(l)}});1==e.length&&c.call(this)}}()}}(),CKEDITOR.resourceManager=function(c,g){this.basePath=c;this.fileName=g;this.registered={};this.loaded=
{};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(c,g){if(this.registered[c])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+c+'" is already registered.');var f=this.registered[c]=g||{};f.name=c;f.path=this.getPath(c);CKEDITOR.fire(c+CKEDITOR.tools.capitalize(this.fileName)+"Ready",f);return this.get(c)},get:function(c){return this.registered[c]||null},getPath:function(c){var g=this.externals[c];return CKEDITOR.getUrl(g&&g.dir||this.basePath+
c+"/")},getFilePath:function(c){var g=this.externals[c];return CKEDITOR.getUrl(this.getPath(c)+(g?g.file:this.fileName+".js"))},addExternal:function(c,g,f){c=c.split(",");for(var e=0;e<c.length;e++){var k=c[e];f||(g=g.replace(/[^\/]+$/,function(e){f=e;return""}));this.externals[k]={dir:g,file:f||this.fileName+".js"}}},load:function(c,g,f){CKEDITOR.tools.isArray(c)||(c=c?[c]:[]);for(var e=this.loaded,k=this.registered,m=[],l={},b={},h=0;h<c.length;h++){var d=c[h];if(d)if(e[d]||k[d])b[d]=this.get(d);
else{var a=this.getFilePath(d);m.push(a);a in l||(l[a]=[]);l[a].push(d)}}CKEDITOR.scriptLoader.load(m,function(a,d){if(d.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+l[d[0]].join(",")+'" was not found at "'+d[0]+'".');for(var c=0;c<a.length;c++)for(var h=l[a[c]],k=0;k<h.length;k++){var q=h[k];b[q]=this.get(q);e[q]=1}g.call(f,b)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(c){var g=
{};return function(f,e,k){var m={},l=function(b){c.call(this,b,function(b){CKEDITOR.tools.extend(m,b);var d=[],a;for(a in b){var c=b[a],f=c&&c.requires;if(!g[a]){if(c.icons)for(var p=c.icons.split(","),x=p.length;x--;)CKEDITOR.skin.addIcon(p[x],c.path+"icons/"+(CKEDITOR.env.hidpi&&c.hidpi?"hidpi/":"")+p[x]+".png");g[a]=1}if(f)for(f.split&&(f=f.split(",")),c=0;c<f.length;c++)m[f[c]]||d.push(f[c])}if(d.length)l.call(this,d);else{for(a in m)c=m[a],c.onLoad&&!c.onLoad._called&&(!1===c.onLoad()&&delete m[a],
c.onLoad._called=1);e&&e.call(k||window,m)}},this)};l.call(this,f)}}),CKEDITOR.plugins.setLang=function(c,g,f){var e=this.get(c);c=e.langEntries||(e.langEntries={});e=e.lang||(e.lang=[]);e.split&&(e=e.split(","));-1==CKEDITOR.tools.indexOf(e,g)&&e.push(g);c[g]=f},CKEDITOR.ui=function(c){if(c.ui)return c.ui;this.items={};this.instances={};this.editor=c;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(c,g,f){f.name=c.toLowerCase();var e=this.items[c]={type:g,command:f.command||
null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(e,f)},get:function(c){return this.instances[c]},create:function(c){var g=this.items[c],f=g&&this._.handlers[g.type],e=g&&g.command&&this.editor.getCommand(g.command),f=f&&f.create.apply(this,g.args);this.instances[c]=f;e&&e.uiItems.push(f);f&&!f.type&&(f.type=g.type);return f},addHandler:function(c,g){this._.handlers[c]=g},space:function(c){return CKEDITOR.document.getById(this.spaceId(c))},spaceId:function(c){return this.editor.id+
"_"+c}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function c(a,d,c){CKEDITOR.event.call(this);a=a&&CKEDITOR.tools.clone(a);if(void 0!==d){if(!(d instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!c)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&c==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!f(d,c))throw Error('The specified element mode is not supported on element: "'+
d.getName()+'".');this.element=d;this.elementMode=c;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(d.getId()||d.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||g();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);
this.on("readOnly",e);this.on("selectionChange",function(a){m(this,a.data.path)});this.on("activeFilterChange",function(){m(this,this.elementPath(),!0)});this.on("mode",e);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){"destroyed"!==this.status?b(this,a):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function g(){do var a="editor"+ ++x;while(CKEDITOR.instances[a]);return a}
function f(a,d){return d==CKEDITOR.ELEMENT_MODE_INLINE?a.is(CKEDITOR.dtd.$editable)||a.is("textarea"):d==CKEDITOR.ELEMENT_MODE_REPLACE?!a.is(CKEDITOR.dtd.$nonBodyContent):1}function e(){var a=this.commands,d;for(d in a)k(this,a[d])}function k(a,d){d[d.startDisabled?"disable":a.readOnly&&!d.readOnly?"disable":d.modes[a.mode]?"enable":"disable"]()}function m(a,d,b){if(d){var e,c,f=a.commands;for(c in f)e=f[c],(b||e.contextSensitive)&&e.refresh(a,d)}}function l(a){var d=a.config.customConfig;if(!d)return!1;
var d=CKEDITOR.getUrl(d),b=r[d]||(r[d]={});b.fn?(b.fn.call(a,a.config),CKEDITOR.getUrl(a.config.customConfig)!=d&&l(a)||a.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(d,function(){b.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};l(a)});return!0}function b(a,d){a.on("customConfigLoaded",function(){if(d){if(d.on)for(var b in d.on)a.on(b,d.on[b]);CKEDITOR.tools.extend(a.config,d,!0);delete a.config.on}b=a.config;a.readOnly=b.readOnly?!0:a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?
a.element.is("textarea")?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):!1;a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p):!1;a.tabIndex=b.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:b.enterMode;
a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:b.shiftEnterMode;b.skin&&(CKEDITOR.skinName=b.skin);a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);h(a)});d&&null!=d.customConfig&&(a.config.customConfig=d.customConfig);l(a)||a.fireOnce("customConfigLoaded")}function h(a){CKEDITOR.skin.loadPart("editor",function(){d(a)})}function d(d){CKEDITOR.lang.load(d.config.language,d.config.defaultLanguage,function(b,
e){var c=d.config.title;d.langCode=b;d.lang=CKEDITOR.tools.prototypedCopy(e);d.title="string"==typeof c||!1===c?c:[d.lang.editor,d.name].join(", ");d.config.contentsLangDirection||(d.config.contentsLangDirection=d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?d.element.getDirection(1):d.lang.dir);d.fire("langLoaded");a(d)})}function a(a){a.getStylesSet(function(d){a.once("loaded",function(){a.fire("stylesSet",{styles:d})},null,null,1);n(a)})}function n(a){var d=a.config,b=d.plugins,e=d.extraPlugins,c=
d.removePlugins;if(e)var f=new RegExp("(?:^|,)(?:"+e.replace(/\s*,\s*/g,"|")+")(?\x3d,|$)","g"),b=b.replace(f,""),b=b+(","+e);if(c)var h=new RegExp("(?:^|,)(?:"+c.replace(/\s*,\s*/g,"|")+")(?\x3d,|$)","g"),b=b.replace(h,"");CKEDITOR.env.air&&(b+=",adobeair");CKEDITOR.plugins.load(b.split(","),function(b){var e=[],c=[],f=[];a.plugins=b;for(var k in b){var g=b[k],n=g.lang,l=null,m=g.requires,w;CKEDITOR.tools.isArray(m)&&(m=m.join(","));if(m&&(w=m.match(h)))for(;m=w.pop();)CKEDITOR.error("editor-plugin-required",
{plugin:m.replace(",",""),requiredBy:k});n&&!a.lang[k]&&(n.split&&(n=n.split(",")),0<=CKEDITOR.tools.indexOf(n,a.langCode)?l=a.langCode:(l=a.langCode.replace(/-.*/,""),l=l!=a.langCode&&0<=CKEDITOR.tools.indexOf(n,l)?l:0<=CKEDITOR.tools.indexOf(n,"en")?"en":n[0]),g.langEntries&&g.langEntries[l]?(a.lang[k]=g.langEntries[l],l=null):f.push(CKEDITOR.getUrl(g.path+"lang/"+l+".js")));c.push(l);e.push(g)}CKEDITOR.scriptLoader.load(f,function(){for(var b=["beforeInit","init","afterInit"],f=0;f<b.length;f++)for(var h=
0;h<e.length;h++){var k=e[h];0===f&&c[h]&&k.lang&&k.langEntries&&(a.lang[k.name]=k.langEntries[c[h]]);if(k[b[f]])k[b[f]](a)}a.fireOnce("pluginsLoaded");d.keystrokes&&a.setKeystroke(a.config.keystrokes);for(h=0;h<a.config.blockedKeystrokes.length;h++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[h]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function t(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var d=this.getData();
this.config.htmlEncodeOutput&&(d=CKEDITOR.tools.htmlEncode(d));a.is("textarea")?a.setValue(d):a.setHtml(d);return!0}return!1}function p(a,d){function b(a){var d=a.startContainer,e=a.endContainer;return d.is&&(d.is("tr")||d.is("td")&&d.equals(e)&&a.endOffset===d.getChildCount())?!0:!1}function e(a){var d=a.startContainer;return d.is("tr")?a.cloneContents():d.clone(!0)}for(var c=new CKEDITOR.dom.documentFragment,f,h,k,g=0;g<a.length;g++){var n=a[g],l=n.startContainer.getAscendant("tr",!0);b(n)?(f||
(f=l.getAscendant("table").clone(),f.append(l.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),c.append(f),f=f.findOne("thead, tbody, tfoot")),h&&h.equals(l)||(h=l,k=l.clone(),f.append(k)),k.append(e(n))):c.append(n.cloneContents())}return f?c:d.getHtmlFromRange(a[0])}c.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=c;var x=0,r={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,d){d.name=a.toLowerCase();var b=new CKEDITOR.command(this,d);this.mode&&k(this,b);return this.commands[a]=
b},_attachToForm:function(){function a(d){b.updateElement();b._.required&&!e.getValue()&&!1===b.fire("required")&&d.data.preventDefault()}function d(a){return!!(a&&a.call&&a.apply)}var b=this,e=b.element,c=new CKEDITOR.dom.element(e.$.form);e.is("textarea")&&c&&(c.on("submit",a),d(c.$.submit)&&(c.$.submit=CKEDITOR.tools.override(c.$.submit,function(d){return function(){a();d.apply?d.apply(this):d()}})),b.on("destroy",function(){c.removeListener("submit",a)}))},destroy:function(a){this.fire("beforeDestroy");
!a&&t.call(this);this.editable(null);this.filter&&(this.filter.destroy(),delete this.filter);delete this.activeFilter;this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,
d){var b=this.getCommand(a),e={name:a,commandData:d||{},command:b};return b&&b.state!=CKEDITOR.TRISTATE_DISABLED&&!1!==this.fire("beforeCommandExec",e)&&(e.returnValue=b.exec(e.commandData),!b.async&&!1!==this.fire("afterCommandExec",e))?e.returnValue:!1},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var d=this._.data;"string"!=typeof d&&(d=(d=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?d.is("textarea")?d.getValue():d.getHtml():
"");d={dataValue:d};!a&&this.fire("getData",d);return d.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");"string"!=typeof a&&(a=(a=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.is("textarea")?a.getValue():a.getHtml():"");return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,d,b){var e=!0,c=d;d&&"object"==typeof d&&(b=d.internal,c=d.callback,e=!d.noSnapshot);!b&&e&&this.fire("saveSnapshot");if(c||!b)this.once("dataReady",function(a){!b&&
e&&this.fire("saveSnapshot");c&&c.call(a.editor)});a={dataValue:a};!b&&this.fire("setData",a);this._.data=a.dataValue;!b&&this.fire("afterSetData",a)},setReadOnly:function(a){a=null==a||a;this.readOnly!=a&&(this.readOnly=a,this.keystrokeHandler.blockedKeystrokes[8]=+a,this.editable().setReadOnly(a),this.fire("readOnly"))},insertHtml:function(a,d,b){this.fire("insertHtml",{dataValue:a,mode:d,range:b})},insertText:function(a){this.fire("insertText",a)},insertElement:function(a){this.fire("insertElement",
a)},getSelectedHtml:function(a){var d=this.editable(),b=this.getSelection(),b=b&&b.getRanges();if(!d||!b||0===b.length)return null;d=p(b,d);return a?d.getHtml():d},extractSelectedHtml:function(a,d){var b=this.editable(),e=this.getSelection().getRanges(),c=new CKEDITOR.dom.documentFragment,f;if(!b||0===e.length)return null;for(f=0;f<e.length;f++)c.append(b.extractHtmlFromRange(e[f],d));d||this.getSelection().selectRanges([e[0]]);return a?c.getHtml():c},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==
this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return t.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,d=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],b,e,c=d.length;c--;)b=d[c],e=0,CKEDITOR.tools.isArray(b)&&(e=b[1],b=b[0]),e?a[b]=e:delete a[b]},getCommandKeystroke:function(a){if(a="string"===typeof a?this.getCommand(a):a){var d=CKEDITOR.tools.object.findKey(this.commands,
a),b=this.keystrokeHandler.keystrokes,e;if(a.fakeKeystroke)return a.fakeKeystroke;for(e in b)if(b.hasOwnProperty(e)&&b[e]==d)return e}return null},addFeature:function(a){return this.filter.addFeature(a)},setActiveFilter:function(a){a||(a=this.filter);this.activeFilter!==a&&(this.activeFilter=a,this.fire("activeFilterChange"),a===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(a.getAllowedEnterMode(this.enterMode),a.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(a,
d){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;d=d?this.blockless?CKEDITOR.ENTER_BR:d:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=d)this.activeEnterMode=a,this.activeShiftEnterMode=d,this.fire("activeEnterModeChange")},showNotification:function(a){alert(a)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},
function(){var c=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,g={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(f){for(var e,k,m=0,l;e=this._.htmlPartsRegex.exec(f);){k=e.index;if(k>m)if(m=f.substring(m,k),l)l.push(m);else this.onText(m);
m=this._.htmlPartsRegex.lastIndex;if(k=e[1])if(k=k.toLowerCase(),l&&CKEDITOR.dtd.$cdata[k]&&(this.onCDATA(l.join("")),l=null),!l){this.onTagClose(k);continue}if(l)l.push(e[0]);else if(k=e[3]){if(k=k.toLowerCase(),!/="/.test(k)){var b={},h,d=e[4];e=!!e[5];if(d)for(;h=c.exec(d);){var a=h[1].toLowerCase();h=h[2]||h[3]||h[4]||"";b[a]=!h&&g[a]?a:CKEDITOR.tools.htmlDecodeAttr(h)}this.onTagOpen(k,b,e);!l&&CKEDITOR.dtd.$cdata[k]&&(l=[])}}else if(k=e[2])this.onComment(k)}if(f.length>m)this.onText(f.substring(m,
f.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(c){this._.output.push("\x3c",c)},openTagClose:function(c,g){g?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(c,g){"string"==typeof g&&(g=CKEDITOR.tools.htmlEncodeAttr(g));this._.output.push(" ",c,'\x3d"',g,'"')},closeTag:function(c){this._.output.push("\x3c/",c,"\x3e")},text:function(c){this._.output.push(c)},comment:function(c){this._.output.push("\x3c!--",
c,"--\x3e")},write:function(c){this._.output.push(c)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(c){var g=this._.output.join("");c&&this.reset();return g}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var c=this.parent.children,g=CKEDITOR.tools.indexOf(c,this),f=this.previous,e=this.next;f&&(f.next=e);e&&(e.previous=f);c.splice(g,1);this.parent=null},replaceWith:function(c){var g=this.parent.children,
f=CKEDITOR.tools.indexOf(g,this),e=c.previous=this.previous,k=c.next=this.next;e&&(e.next=c);k&&(k.previous=c);g[f]=c;c.parent=this.parent;this.parent=null},insertAfter:function(c){var g=c.parent.children,f=CKEDITOR.tools.indexOf(g,c),e=c.next;g.splice(f+1,0,this);this.next=c.next;this.previous=c;c.next=this;e&&(e.previous=this);this.parent=c.parent},insertBefore:function(c){var g=c.parent.children,f=CKEDITOR.tools.indexOf(g,c);g.splice(f,0,this);this.next=c;(this.previous=c.previous)&&(c.previous.next=
this);c.previous=this;this.parent=c.parent},getAscendant:function(c){var g="function"==typeof c?c:"string"==typeof c?function(e){return e.name==c}:function(e){return e.name in c},f=this.parent;for(;f&&f.type==CKEDITOR.NODE_ELEMENT;){if(g(f))return f;f=f.parent}return null},wrapWith:function(c){this.replaceWith(c);c.add(this);return c},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(c){return c||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=
function(c){this.value=c;this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(c,g){var f=this.value;if(!(f=c.onComment(g,f,this)))return this.remove(),!1;if("string"!=typeof f)return this.replaceWith(f),!1;this.value=f;return!0},writeHtml:function(c,g){g&&this.filter(g);c.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(c){this.value=c;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=
CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(c,g){if(!(this.value=c.onText(g,this.value,this)))return this.remove(),!1},writeHtml:function(c,g){g&&this.filter(g);c.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(c){this.value=c};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(c){c.write(this.value)}})}(),"use strict",
CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function c(e){return e.attributes["data-cke-survive"]?!1:"a"==e.name&&e.attributes.href||CKEDITOR.dtd.$removeEmpty[e.name]}var g=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),f={ol:1,ul:1},e=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),k={ul:"li",
ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(m,l,b){function h(a){var b;if(0<q.length)for(var e=0;e<q.length;e++){var c=q[e],f=c.name,h=CKEDITOR.dtd[f],k=v.name&&CKEDITOR.dtd[v.name];k&&!k[f]||a&&h&&!h[a]&&CKEDITOR.dtd[a]?f==v.name&&(n(v,v.parent,1),e--):(b||(d(),b=1),c=c.clone(),c.parent=v,v=c,q.splice(e,1),e--)}}function d(){for(;u.length;)n(u.shift(),v)}function a(a){if(a._.isBlockLike&&"pre"!=a.name&&"textarea"!=a.name){var d=
a.children.length,b=a.children[d-1],e;b&&b.type==CKEDITOR.NODE_TEXT&&((e=CKEDITOR.tools.rtrim(b.value))?b.value=e:a.children.length=d-1)}}function n(d,e,f){e=e||v||r;var h=v;void 0===d.previous&&(t(e,d)&&(v=e,x.onTagOpen(b,{}),d.returnPoint=e=v),a(d),c(d)&&!d.children.length||e.add(d),"pre"==d.name&&(w=!1),"textarea"==d.name&&(z=!1));d.returnPoint?(v=d.returnPoint,delete d.returnPoint):v=f?e:h}function t(a,d){if((a==r||"body"==a.name)&&b&&(!a.name||CKEDITOR.dtd[a.name][b])){var e,c;return(e=d.attributes&&
(c=d.attributes["data-cke-real-element-type"])?c:d.name)&&e in CKEDITOR.dtd.$inline&&!(e in CKEDITOR.dtd.head)&&!d.isOrphan||d.type==CKEDITOR.NODE_TEXT}}function p(a,d){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==d||"dt"==a&&"dd"==d||"dd"==a&&"dt"==d:!1}var x=new CKEDITOR.htmlParser,r=l instanceof CKEDITOR.htmlParser.element?l:"string"==typeof l?new CKEDITOR.htmlParser.element(l):new CKEDITOR.htmlParser.fragment,q=[],u=[],v=r,z="textarea"==r.name,w="pre"==r.name;x.onTagOpen=
function(a,b,k,l){b=new CKEDITOR.htmlParser.element(a,b);b.isUnknown&&k&&(b.isEmpty=!0);b.isOptionalClose=l;if(c(b))q.push(b);else{if("pre"==a)w=!0;else{if("br"==a&&w){v.add(new CKEDITOR.htmlParser.text("\n"));return}"textarea"==a&&(z=!0)}if("br"==a)u.push(b);else{for(;!(l=(k=v.name)?CKEDITOR.dtd[k]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):e,b.isUnknown||v.isUnknown||l[a]);)if(v.isOptionalClose)x.onTagClose(k);else if(a in f&&k in f)k=v.children,(k=k[k.length-1])&&"li"==k.name||n(k=new CKEDITOR.htmlParser.element("li"),
v),!b.returnPoint&&(b.returnPoint=v),v=k;else if(a in CKEDITOR.dtd.$listItem&&!p(a,k))x.onTagOpen("li"==a?"ul":"dl",{},0,1);else if(k in g&&!p(a,k))!b.returnPoint&&(b.returnPoint=v),v=v.parent;else if(k in CKEDITOR.dtd.$inline&&q.unshift(v),v.parent)n(v,v.parent,1);else{b.isOrphan=1;break}h(a);d();b.parent=v;b.isEmpty?n(b):v=b}}};x.onTagClose=function(a){for(var e=q.length-1;0<=e;e--)if(a==q[e].name){q.splice(e,1);return}for(var c=[],f=[],h=v;h!=r&&h.name!=a;)h._.isBlockLike||f.unshift(h),c.push(h),
h=h.returnPoint||h.parent;if(h!=r){for(e=0;e<c.length;e++){var k=c[e];n(k,k.parent)}v=h;h._.isBlockLike&&d();n(h,h.parent);h==v&&(v=v.parent);q=q.concat(f)}"body"==a&&(b=!1)};x.onText=function(a){if(!(v._.hasInlineStarted&&!u.length||w||z)&&(a=CKEDITOR.tools.ltrim(a),0===a.length))return;var c=v.name,f=c?CKEDITOR.dtd[c]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):e;if(!z&&!f["#"]&&c in g)x.onTagOpen(k[c]||""),x.onText(a);else{d();h();w||z||(a=a.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));a=
new CKEDITOR.htmlParser.text(a);if(t(v,a))this.onTagOpen(b,{},0,1);v.add(a)}};x.onCDATA=function(a){v.add(new CKEDITOR.htmlParser.cdata(a))};x.onComment=function(a){d();h();v.add(new CKEDITOR.htmlParser.comment(a))};x.parse(m);for(d();v!=r;)n(v,v.parent,1);a(r);return r};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(e,c){isNaN(c)&&(c=this.children.length);var b=0<c?this.children[c-1]:null;if(b){if(e._.isBlockLike&&b.type==CKEDITOR.NODE_TEXT&&(b.value=CKEDITOR.tools.rtrim(b.value),
0===b.value.length)){this.children.pop();this.add(e);return}b.next=e}e.previous=b;e.parent=this;this.children.splice(c,0,e);this._.hasInlineStarted||(this._.hasInlineStarted=e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&!e._.isBlockLike)},filter:function(e,c){c=this.getFilterContext(c);e.onRoot(c,this);this.filterChildren(e,!1,c)},filterChildren:function(e,c,b){if(this.childrenFilteredBy!=e.id){b=this.getFilterContext(b);if(c&&!this.parent)e.onRoot(b,this);this.childrenFilteredBy=e.id;
for(c=0;c<this.children.length;c++)!1===this.children[c].filter(e,b)&&c--}},writeHtml:function(e,c){c&&this.filter(c);this.writeChildrenHtml(e)},writeChildrenHtml:function(e,c,b){var f=this.getFilterContext();if(b&&!this.parent&&c)c.onRoot(f,this);c&&this.filterChildren(c,!1,f);c=0;b=this.children;for(f=b.length;c<f;c++)b[c].writeHtml(e)},forEach:function(e,c,b){if(!(b||c&&this.type!=c))var f=e(this);if(!1!==f){b=this.children;for(var d=0;d<b.length;d++)f=b[d],f.type==CKEDITOR.NODE_ELEMENT?f.forEach(e,
c):c&&f.type!=c||e(f)}},getFilterContext:function(e){return e||{}}}}(),"use strict",function(){function c(){this.rules=[]}function g(f,e,k,g){var l,b;for(l in e)(b=f[l])||(b=f[l]=new c),b.add(e[l],k,g)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(f){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new c;this.attributeNameRules=new c;this.elementsRules={};this.attributesRules={};this.textRules=new c;this.commentRules=new c;this.rootRules=new c;f&&this.addRules(f,10)},
proto:{addRules:function(c,e){var k;"number"==typeof e?k=e:e&&"priority"in e&&(k=e.priority);"number"!=typeof k&&(k=10);"object"!=typeof e&&(e={});c.elementNames&&this.elementNameRules.addMany(c.elementNames,k,e);c.attributeNames&&this.attributeNameRules.addMany(c.attributeNames,k,e);c.elements&&g(this.elementsRules,c.elements,k,e);c.attributes&&g(this.attributesRules,c.attributes,k,e);c.text&&this.textRules.add(c.text,k,e);c.comment&&this.commentRules.add(c.comment,k,e);c.root&&this.rootRules.add(c.root,
k,e)},applyTo:function(c){c.filter(this)},onElementName:function(c,e){return this.elementNameRules.execOnName(c,e)},onAttributeName:function(c,e){return this.attributeNameRules.execOnName(c,e)},onText:function(c,e,k){return this.textRules.exec(c,e,k)},onComment:function(c,e,k){return this.commentRules.exec(c,e,k)},onRoot:function(c,e){return this.rootRules.exec(c,e)},onElement:function(c,e){for(var k=[this.elementsRules["^"],this.elementsRules[e.name],this.elementsRules.$],g,l=0;3>l;l++)if(g=k[l]){g=
g.exec(c,e,this);if(!1===g)return null;if(g&&g!=e)return this.onNode(c,g);if(e.parent&&!e.name)break}return e},onNode:function(c,e){var k=e.type;return k==CKEDITOR.NODE_ELEMENT?this.onElement(c,e):k==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(c,e.value)):k==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(c,e.value)):null},onAttribute:function(c,e,k,g){return(k=this.attributesRules[k])?k.exec(c,g,e,this):g}}});CKEDITOR.htmlParser.filterRulesGroup=c;c.prototype=
{add:function(c,e,k){this.rules.splice(this.findIndex(e),0,{value:c,priority:e,options:k})},addMany:function(c,e,k){for(var g=[this.findIndex(e),0],l=0,b=c.length;l<b;l++)g.push({value:c[l],priority:e,options:k});this.rules.splice.apply(this.rules,g)},findIndex:function(c){for(var e=this.rules,k=e.length-1;0<=k&&c<e[k].priority;)k--;return k+1},exec:function(c,e){var k=e instanceof CKEDITOR.htmlParser.node||e instanceof CKEDITOR.htmlParser.fragment,g=Array.prototype.slice.call(arguments,1),l=this.rules,
b=l.length,h,d,a,n;for(n=0;n<b;n++)if(k&&(h=e.type,d=e.name),a=l[n],!(c.nonEditable&&!a.options.applyToAll||c.nestedEditable&&a.options.excludeNestedEditable)){a=a.value.apply(null,g);if(!1===a||k&&a&&(a.name!=d||a.type!=h))return a;null!=a&&(g[0]=e=a)}return e},execOnName:function(c,e){for(var k=0,g=this.rules,l=g.length,b;e&&k<l;k++)b=g[k],c.nonEditable&&!b.options.applyToAll||c.nestedEditable&&b.options.excludeNestedEditable||(e=e.replace(b.value[0],b.value[1]));return e}}}(),function(){function c(a,
d){function b(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function c(a,d){return function(c){if(c.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var k=[],g=f(c),l,w;if(g)for(h(g,1)&&k.push(g);g;)m(g)&&(l=e(g))&&h(l)&&((w=e(l))&&!m(w)?k.push(l):(b(n).insertAfter(l),l.remove())),g=g.previous;for(g=0;g<k.length;g++)k[g].remove();if(k=!a||!1!==("function"==typeof d?d(c):d))n||CKEDITOR.env.needsBrFiller||c.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT?
n||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||c.name in CKEDITOR.dtd.tr||c.name in CKEDITOR.dtd.$listItem)?(k=f(c),k=!k||"form"==c.name&&"input"==k.name):k=!1:k=!1;k&&c.add(b(a))}}}function h(a,d){if((!n||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&"br"==a.name&&!a.attributes["data-cke-eol"])return!0;var b;return a.type==CKEDITOR.NODE_TEXT&&(b=a.value.match(q))&&(b.index&&((new CKEDITOR.htmlParser.text(a.value.substring(0,b.index))).insertBefore(a),a.value=b[0]),!CKEDITOR.env.needsBrFiller&&
n&&(!d||a.parent.name in D)||!n&&((b=a.previous)&&"br"==b.name||!b||m(b)))?!0:!1}var g={elements:{}},n="html"==d,D=CKEDITOR.tools.extend({},w),K;for(K in D)"#"in v[K]||delete D[K];for(K in D)g.elements[K]=c(n,a.config.fillEmptyBlocks);g.root=c(n,!1);g.elements.br=function(a){return function(d){if(d.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=d.attributes;if("data-cke-bogus"in c||"data-cke-eol"in c)delete c["data-cke-bogus"];else{for(c=d.next;c&&k(c);)c=c.next;var f=e(d);!c&&m(d.parent)?l(d.parent,
b(a)):m(c)&&f&&!m(f)&&b(a).insertBefore(c)}}}}(n);return g}function g(a,d){return a!=CKEDITOR.ENTER_BR&&!1!==d?a==CKEDITOR.ENTER_DIV?"div":"p":!1}function f(a){for(a=a.children[a.children.length-1];a&&k(a);)a=a.previous;return a}function e(a){for(a=a.previous;a&&k(a);)a=a.previous;return a}function k(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function m(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in
w||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function l(a,d){var b=a.children[a.children.length-1];a.children.push(d);d.parent=a;b&&(b.next=d,d.previous=b)}function b(a){a=a.attributes;"false"!=a.contenteditable&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function h(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function d(a){return a.replace(F,function(a,d,b){return"\x3c"+d+b.replace(E,
function(a,d){return G.test(d)&&-1==b.indexOf("data-cke-saved-"+d)?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+"\x3e"})}function a(a,d){return a.replace(d,function(a,d,b){0===a.indexOf("\x3ctextarea")&&(a=d+p(b).replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function n(a){return a.replace(L,function(a,d){return decodeURIComponent(d)})}function t(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,
function(a){return"\x3c!--"+u+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function p(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,d){return decodeURIComponent(d)})}function x(a,d){var b=d._.dataStore;return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,d){return decodeURIComponent(d)}).replace(/\{cke_protected_(\d+)\}/g,function(a,d){return b&&b[d]||""})}function r(a,d){var b=[],e=d.config.protectedSource,c=d._.dataStore||(d._.dataStore=
{id:1}),f=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,e=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(e);a=a.replace(/\x3c!--[\s\S]*?--\x3e/g,function(a){return"\x3c!--{cke_tempcomment}"+(b.push(a)-1)+"--\x3e"});for(var h=0;h<e.length;h++)a=a.replace(e[h],function(a){a=a.replace(f,function(a,d,e){return b[e]});return/cke_temp(comment)?/.test(a)?a:"\x3c!--{cke_temp}"+(b.push(a)-1)+"--\x3e"});a=a.replace(f,function(a,d,e){return"\x3c!--"+u+(d?"{C}":
"")+encodeURIComponent(b[e]).replace(/--/g,"%2D%2D")+"--\x3e"});a=a.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(a){return a.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(a,d){c[c.id]=decodeURIComponent(d);return"{cke_protected_"+c.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,b,e,c){return"\x3c"+b+e+"\x3e"+x(p(c),d)+"\x3c/"+b+"\x3e"})}CKEDITOR.htmlDataProcessor=function(b){var e,
f,h=this;this.editor=b;this.dataFilter=e=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;e.addRules(B);e.addRules(A,{applyToAll:!0});e.addRules(c(b,"data"),{applyToAll:!0});f.addRules(C);f.addRules(y,{applyToAll:!0});f.addRules(c(b,"html"),{applyToAll:!0});b.on("toHtml",function(e){e=e.data;var c=e.dataValue,f,c=r(c,b),c=a(c,H),c=d(c),c=a(c,I),c=c.replace(K,"$1cke:$2"),c=c.replace(S,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),
c=c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),c=c.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");f=e.context||b.editable().getName();var h;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==f&&(f="div",c="\x3cpre\x3e"+c+"\x3c/pre\x3e",h=1);f=b.document.createElement(f);f.setHtml("a"+c);c=f.getHtml().substr(1);c=c.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");h&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(D,"$1$2");c=n(c);c=p(c);f=!1===e.fixForBody?!1:
g(e.enterMode,b.config.autoParagraph);c=CKEDITOR.htmlParser.fragment.fromHtml(c,e.context,f);f&&(h=c,!h.children.length&&CKEDITOR.dtd[h.name][f]&&(f=new CKEDITOR.htmlParser.element(f),h.add(f)));e.dataValue=c},null,null,5);b.on("toHtml",function(a){a.data.filter.applyTo(a.data.dataValue,!0,a.data.dontFilter,a.data.enterMode)&&b.fire("dataFiltered")},null,null,6);b.on("toHtml",function(a){a.data.dataValue.filterChildren(h.dataFilter,!0)},null,null,10);b.on("toHtml",function(a){a=a.data;var d=a.dataValue,
b=new CKEDITOR.htmlParser.basicWriter;d.writeChildrenHtml(b);d=b.getHtml(!0);a.dataValue=t(d)},null,null,15);b.on("toDataFormat",function(a){var d=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/^<br *\/?>/i,""));a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(d,a.data.context,g(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",function(a){a.data.dataValue.filterChildren(h.htmlFilter,!0)},null,null,10);b.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,
!1,!0)},null,null,11);b.on("toDataFormat",function(a){var d=a.data.dataValue,e=h.writer;e.reset();d.writeChildrenHtml(e);d=e.getHtml(!0);d=p(d);d=x(d,b);a.data.dataValue=d},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,d,b,e){var c=this.editor,f,h,k,g;d&&"object"==typeof d?(f=d.context,b=d.fixForBody,e=d.dontFilter,h=d.filter,k=d.enterMode,g=d.protectedWhitespaces):f=d;f||null===f||(f=c.editable().getName());return c.fire("toHtml",{dataValue:a,context:f,fixForBody:b,dontFilter:e,
filter:h||c.filter,enterMode:k||c.enterMode,protectedWhitespaces:g}).dataValue},toDataFormat:function(a,d){var b,e,c;d&&(b=d.context,e=d.filter,c=d.enterMode);b||null===b||(b=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:e||this.editor.filter,context:b,enterMode:c||this.editor.enterMode}).dataValue}};var q=/(?:&nbsp;|\xa0)$/,u="{cke_protected}",v=CKEDITOR.dtd,z="caption colgroup col thead tfoot tbody".split(" "),w=CKEDITOR.tools.extend({},v.$blockLimit,
v.$block),B={elements:{input:b,textarea:b}},A={attributeNames:[[/^on/,"data-cke-pa-on"],[/^srcdoc/,"data-cke-pa-srcdoc"],[/^data-cke-expando$/,""]],elements:{iframe:function(a){if(a.attributes&&a.attributes.src){var d=a.attributes.src.toLowerCase().replace(/[^a-z]/gi,"");if(0===d.indexOf("javascript")||0===d.indexOf("data"))a.attributes["data-cke-pa-src"]=a.attributes.src,delete a.attributes.src}}}},C={elements:{embed:function(a){var d=a.parent;if(d&&"object"==d.name){var b=d.attributes.width,d=d.attributes.height;
b&&(a.attributes.width=b);d&&(a.attributes.height=d)}},a:function(a){var d=a.attributes;if(!(a.children.length||d.name||d.id||a.attributes["data-cke-saved-name"]))return!1}}},y={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var d=a.attributes;if(d){if(d["data-cke-temp"])return!1;for(var b=["name","href","src"],e,c=0;c<b.length;c++)e="data-cke-saved-"+b[c],e in d&&delete d[b[c]]}return a},
table:function(a){a.children.slice(0).sort(function(a,d){var b,e;a.type==CKEDITOR.NODE_ELEMENT&&d.type==a.type&&(b=CKEDITOR.tools.indexOf(z,a.name),e=CKEDITOR.tools.indexOf(z,d.name));-1<b&&-1<e&&b!=e||(b=a.parent?a.getIndex():-1,e=d.parent?d.getIndex():-1);return b>e?1:-1})},param:function(a){a.children=[];a.isEmpty=!0;return a},span:function(a){"Apple-style-span"==a.attributes["class"]&&delete a.name},html:function(a){delete a.attributes.contenteditable;delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;
delete a.attributes.contenteditable},style:function(a){var d=a.children[0];d&&d.value&&(d.value=CKEDITOR.tools.trim(d.value));a.attributes.type||(a.attributes.type="text/css")},title:function(a){var d=a.children[0];!d&&l(a,d=new CKEDITOR.htmlParser.text);d.value=a.attributes["data-cke-title"]||""},input:h,textarea:h},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(y.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,
function(a){return a.toLowerCase()})});var F=/<(a|area|img|input|source)\b([^>]*)>/gi,E=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,G=/^(href|src|name)$/i,I=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,H=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,L=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,K=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,D=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,S=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),
"use strict",CKEDITOR.htmlParser.element=function(c,g){this.name=c;this.attributes=g||{};this.children=[];var f=c||"",e=f.match(/^cke:(.*)/);e&&(f=e[1]);f=!!(CKEDITOR.dtd.$nonBodyContent[f]||CKEDITOR.dtd.$block[f]||CKEDITOR.dtd.$listItem[f]||CKEDITOR.dtd.$tableContent[f]||CKEDITOR.dtd.$nonEditable[f]||"br"==f);this.isEmpty=!!CKEDITOR.dtd.$empty[c];this.isUnknown=!CKEDITOR.dtd[c];this._={isBlockLike:f,hasInlineStarted:this.isEmpty||!f}},CKEDITOR.htmlParser.cssStyle=function(c){var g={};((c instanceof
CKEDITOR.htmlParser.element?c.attributes.style:c)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,e,k){"font-family"==e&&(k=k.replace(/["']/g,""));g[e.toLowerCase()]=k});return{rules:g,populate:function(c){var e=this.toString();e&&(c instanceof CKEDITOR.dom.element?c.setAttribute("style",e):c instanceof CKEDITOR.htmlParser.element?c.attributes.style=e:c.style=e)},toString:function(){var c=[],e;for(e in g)g[e]&&c.push(e,":",g[e],";");return c.join("")}}},function(){function c(e){return function(c){return c.type==
CKEDITOR.NODE_ELEMENT&&("string"==typeof e?c.name==e:c.name in e)}}var g=function(e,c){e=e[0];c=c[0];return e<c?-1:e>c?1:0},f=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:f.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(e,c){var f=this,g,b;c=f.getFilterContext(c);if(c.off)return!0;if(!f.parent)e.onRoot(c,f);for(;;){g=f.name;if(!(b=
e.onElementName(c,g)))return this.remove(),!1;f.name=b;if(!(f=e.onElement(c,f)))return this.remove(),!1;if(f!==this)return this.replaceWith(f),!1;if(f.name==g)break;if(f.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(f),!1;if(!f.name)return this.replaceWithChildren(),!1}g=f.attributes;var h,d;for(h in g){for(b=g[h];;)if(d=e.onAttributeName(c,h))if(d!=h)delete g[h],h=d;else break;else{delete g[h];break}d&&(!1===(b=e.onAttribute(c,f,d,b))?delete g[d]:g[d]=b)}f.isEmpty||this.filterChildren(e,!1,
c);return!0},filterChildren:f.filterChildren,writeHtml:function(e,c){c&&this.filter(c);var f=this.name,l=[],b=this.attributes,h,d;e.openTag(f,b);for(h in b)l.push([h,b[h]]);e.sortAttributes&&l.sort(g);h=0;for(d=l.length;h<d;h++)b=l[h],e.attribute(b[0],b[1]);e.openTagClose(f,this.isEmpty);this.writeChildrenHtml(e);this.isEmpty||e.closeTag(f)},writeChildrenHtml:f.writeChildrenHtml,replaceWithChildren:function(){for(var e=this.children,c=e.length;c;)e[--c].insertAfter(this);this.remove()},forEach:f.forEach,
getFirst:function(e){if(!e)return this.children.length?this.children[0]:null;"function"!=typeof e&&(e=c(e));for(var f=0,g=this.children.length;f<g;++f)if(e(this.children[f]))return this.children[f];return null},getHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(e);return e.getHtml()},setHtml:function(e){e=this.children=CKEDITOR.htmlParser.fragment.fromHtml(e).children;for(var c=0,f=e.length;c<f;++c)e[c].parent=this},getOuterHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;
this.writeHtml(e);return e.getHtml()},split:function(e){for(var c=this.children.splice(e,this.children.length-e),f=this.clone(),g=0;g<c.length;++g)c[g].parent=f;f.children=c;c[0]&&(c[0].previous=null);0<e&&(this.children[e-1].next=null);this.parent.add(f,this.getIndex()+1);return f},find:function(e,c){void 0===c&&(c=!1);var f=[],g;for(g=0;g<this.children.length;g++){var b=this.children[g];"function"==typeof e&&e(b)?f.push(b):"string"==typeof e&&b.name===e&&f.push(b);c&&b.find&&(f=f.concat(b.find(e,
c)))}return f},addClass:function(e){if(!this.hasClass(e)){var c=this.attributes["class"]||"";this.attributes["class"]=c+(c?" ":"")+e}},removeClass:function(e){var c=this.attributes["class"];c&&((c=CKEDITOR.tools.trim(c.replace(new RegExp("(?:\\s+|^)"+e+"(?:\\s+|$)")," ")))?this.attributes["class"]=c:delete this.attributes["class"])},hasClass:function(e){var c=this.attributes["class"];return c?(new RegExp("(?:^|\\s)"+e+"(?\x3d\\s|$)")).test(c):!1},getFilterContext:function(e){var c=[];e||(e={off:!1,
nonEditable:!1,nestedEditable:!1});e.off||"off"!=this.attributes["data-cke-processor"]||c.push("off",!0);e.nonEditable||"false"!=this.attributes.contenteditable?e.nonEditable&&!e.nestedEditable&&"true"==this.attributes.contenteditable&&c.push("nestedEditable",!0):c.push("nonEditable",!0);if(c.length){e=CKEDITOR.tools.copy(e);for(var f=0;f<c.length;f+=2)e[c[f]]=c[f+1]}return e}},!0)}(),function(){var c=/{([^}]+)}/g;CKEDITOR.template=function(c){this.source=String(c)};CKEDITOR.template.prototype.output=
function(g,f){var e=this.source.replace(c,function(e,c){return void 0!==g[c]?g[c]:e});return f?f.push(e):e}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(c){CKEDITOR.instances[c.name]=c;c.on("focus",function(){CKEDITOR.currentInstance!=c&&(CKEDITOR.currentInstance=c,CKEDITOR.fire("currentInstance"))});c.on("blur",function(){CKEDITOR.currentInstance==c&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))});
CKEDITOR.fire("instance",null,c)},CKEDITOR.remove=function(c){delete CKEDITOR.instances[c.name]},function(){var c={};CKEDITOR.addTemplate=function(g,f){var e=c[g];if(e)return e;e={name:g,source:f};CKEDITOR.fire("template",e);return c[g]=new CKEDITOR.template(e.source)};CKEDITOR.getTemplate=function(g){return c[g]}}(),function(){var c=[];CKEDITOR.addCss=function(g){c.push(g)};CKEDITOR.getCss=function(){return c.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&
CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline=function(c,g){if(!CKEDITOR.env.isCompatible)return null;c=CKEDITOR.dom.element.get(c);if(c.getEditor())throw'The editor instance "'+c.getEditor().name+'" is already attached to the provided element.';var f=new CKEDITOR.editor(g,c,CKEDITOR.ELEMENT_MODE_INLINE),e=c.is("textarea")?c:null;e?(f.setData(e.getValue(),null,!0),c=CKEDITOR.dom.element.createFromHtml('\x3cdiv contenteditable\x3d"'+
!!f.readOnly+'" class\x3d"cke_textarea_inline"\x3e'+e.getValue()+"\x3c/div\x3e",CKEDITOR.document),c.insertAfter(e),e.hide(),e.$.form&&f._attachToForm()):f.setData(c.getHtml(),null,!0);f.on("loaded",function(){f.fire("uiReady");f.editable(c);f.container=c;f.ui.contentsElement=c;f.setData(f.getData(1));f.resetDirty();f.fire("contentDom");f.mode="wysiwyg";f.fire("mode");f.status="ready";f.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,f)},null,null,1E4);f.on("destroy",function(){e&&(f.container.clearCustomData(),
f.container.remove(),e.show());f.element.clearCustomData();delete f.element});return f};CKEDITOR.inlineAll=function(){var c,g,f;for(f in CKEDITOR.dtd.$editable)for(var e=CKEDITOR.document.getElementsByTag(f),k=0,m=e.count();k<m;k++)c=e.getItem(k),"true"==c.getAttribute("contenteditable")&&(g={element:c,config:{}},!1!==CKEDITOR.fire("inline",g)&&CKEDITOR.inline(c,g.config))};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function c(e,
c,m,l){if(!CKEDITOR.env.isCompatible)return null;e=CKEDITOR.dom.element.get(e);if(e.getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var b=new CKEDITOR.editor(c,e,l);l==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.setStyle("visibility","hidden"),b._.required=e.hasAttribute("required"),e.removeAttribute("required"));m&&b.setData(m,null,!0);b.on("loaded",function(){f(b);l==CKEDITOR.ELEMENT_MODE_REPLACE&&b.config.autoUpdateElement&&e.$.form&&b._attachToForm();
b.setMode(b.config.startupMode,function(){b.resetDirty();b.status="ready";b.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,b)})});b.on("destroy",g);return b}function g(){var e=this.container,c=this.element;e&&(e.clearCustomData(),e.remove());c&&(c.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(c.show(),this._.required&&c.setAttribute("required","required")),delete this.element)}function f(e){var c=e.name,f=e.element,g=e.elementMode,b=e.fire("uiSpace",{space:"top",
html:""}).html,h=e.fire("uiSpace",{space:"bottom",html:""}).html,d=new CKEDITOR.template('\x3c{outerEl} id\x3d"cke_{name}" class\x3d"{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'"  dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"application"'+(e.title?' aria-labelledby\x3d"cke_{name}_arialbl"':"")+"\x3e"+(e.title?'\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e':"")+'\x3c{outerEl} class\x3d"cke_inner cke_reset" role\x3d"presentation"\x3e{topHtml}\x3c{outerEl} id\x3d"{contentId}" class\x3d"cke_contents cke_reset" role\x3d"presentation"\x3e\x3c/{outerEl}\x3e{bottomHtml}\x3c/{outerEl}\x3e\x3c/{outerEl}\x3e'),
c=CKEDITOR.dom.element.createFromHtml(d.output({id:e.id,name:c,langDir:e.lang.dir,langCode:e.langCode,voiceLabel:e.title,topHtml:b?'\x3cspan id\x3d"'+e.ui.spaceId("top")+'" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e'+b+"\x3c/span\x3e":"",contentId:e.ui.spaceId("contents"),bottomHtml:h?'\x3cspan id\x3d"'+e.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+h+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));g==CKEDITOR.ELEMENT_MODE_REPLACE?
(f.hide(),c.insertAfter(f)):f.append(c);e.container=c;e.ui.contentsElement=e.ui.space("contents");b&&e.ui.space("top").unselectable();h&&e.ui.space("bottom").unselectable();f=e.config.width;g=e.config.height;f&&c.setStyle("width",CKEDITOR.tools.cssLength(f));g&&e.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(g));c.disableContextMenu();CKEDITOR.env.webkit&&c.on("focus",function(){e.focus()});e.fireOnce("uiReady")}CKEDITOR.replace=function(e,f){return c(e,f,null,CKEDITOR.ELEMENT_MODE_REPLACE)};
CKEDITOR.appendTo=function(e,f,g){return c(e,f,g,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var e=document.getElementsByTagName("textarea"),c=0;c<e.length;c++){var f=null,g=e[c];if(g.name||g.id){if("string"==typeof arguments[0]){if(!(new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)")).test(g.className))continue}else if("function"==typeof arguments[0]&&(f={},!1===arguments[0](g,f)))continue;this.replace(g,f)}}};CKEDITOR.editor.prototype.addMode=function(e,c){(this._.modes||(this._.modes=
{}))[e]=c};CKEDITOR.editor.prototype.setMode=function(c,f){var g=this,l=this._.modes;if(c!=g.mode&&l&&l[c]){g.fire("beforeSetMode",c);if(g.mode){var b=g.checkDirty(),l=g._.previousModeData,h,d=0;g.fire("beforeModeUnload");g.editable(0);g._.previousMode=g.mode;g._.previousModeData=h=g.getData(1);"source"==g.mode&&l==h&&(g.fire("lockSnapshot",{forceUpdate:!0}),d=1);g.ui.space("contents").setHtml("");g.mode=""}else g._.previousModeData=g.getData(1);this._.modes[c](function(){g.mode=c;void 0!==b&&!b&&
g.resetDirty();d?g.fire("unlockSnapshot"):"wysiwyg"==c&&g.fire("saveSnapshot");setTimeout(function(){g.fire("mode");f&&f.call(g)},0)})}};CKEDITOR.editor.prototype.resize=function(c,f,g,l){var b=this.container,h=this.ui.space("contents"),d=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;l=l?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):b;l.setSize("width",c,!0);d&&(d.style.width="1%");var a=(l.$.offsetHeight||0)-(h.$.clientHeight||
0),b=Math.max(f-(g?0:a),0);f=g?f+a:f;h.setStyle("height",b+"px");d&&(d.style.width="100%");this.fire("resize",{outerHeight:f,contentsHeight:b,outerWidth:c||l.getSize("width")})};CKEDITOR.editor.prototype.getResizable=function(c){return c?this.ui.space("contents"):this.container};CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function c(a){var d=a.editor,b=a.data.path,c=b.blockLimit,f=a.data.selection,
h=f.getRanges()[0],k;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(f=g(f,b))f.appendBogus(),k=CKEDITOR.env.ie;l(d,b.block,c)&&h.collapsed&&!h.getCommonAncestor().isReadOnly()&&(b=h.clone(),b.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),c=new CKEDITOR.dom.walker(b),c.guard=function(a){return!e(a)||a.type==CKEDITOR.NODE_COMMENT||a.isReadOnly()},!c.checkForward()||b.checkStartOfBlock()&&b.checkEndOfBlock())&&(d=h.fixBlock(!0,d.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||
(d=d.getFirst(e))&&d.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(d.getText()).match(/^(?:&nbsp;|\xa0)$/)&&d.remove(),k=1,a.cancel());k&&h.select()}function g(a,d){if(a.isFake)return 0;var b=d.block||d.blockLimit,c=b&&b.getLast(e);if(!(!b||!b.isBlockBoundary()||c&&c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()||b.is("pre")||b.getBogus()))return b}function f(a){var d=a.data.getTarget();d.is("input")&&(d=d.getAttribute("type"),"submit"!=d&&"reset"!=d||a.data.preventDefault())}function e(d){return a(d)&&
n(d)}function k(a,d){return function(b){var c=b.data.$.toElement||b.data.$.fromElement||b.data.$.relatedTarget;(c=c&&c.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(c):null)&&(d.equals(c)||d.contains(c))||a.call(this,b)}}function m(a){function d(a){return function(d,c){c&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(f)&&(b=d);if(!(c||!e(d)||a&&p(d)))return!1}}var b,c=a.getRanges()[0];a=a.root;var f={table:1,ul:1,ol:1,dl:1};if(c.startPath().contains(f)){var h=c.clone();h.collapse(1);h.setStartAt(a,
CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(h);a.guard=d();a.checkBackward();if(b)return h=c.clone(),h.collapse(),h.setEndAt(b,CKEDITOR.POSITION_AFTER_END),a=new CKEDITOR.dom.walker(h),a.guard=d(!0),b=!1,a.checkForward(),b}return null}function l(a,d,b){return!1!==a.config.autoParagraph&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(b)&&!d||d&&"true"==d.getAttribute("contenteditable"))}function b(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==a.config.autoParagraph?
a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":!1}function h(a){var d=a.editor;d.getSelection().scrollIntoView();setTimeout(function(){d.fire("saveSnapshot")},0)}function d(a,d,b){var c=a.getCommonAncestor(d);for(d=a=b?d:a;(a=a.getParent())&&!c.equals(a)&&1==a.getChildCount();)d=a;d.remove()}var a,n,t,p,x,r,q,u,v,z;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,d){this.base(d.$||d);this.editor=a;this.status="unloaded";this.hasFocus=!1;this.setup()},proto:{focus:function(){var a;
if(CKEDITOR.env.webkit&&!this.hasFocus&&(a=this.editor._.previousActive||this.getDocument().getActive(),this.contains(a))){a.focus();return}CKEDITOR.env.edge&&14<CKEDITOR.env.version&&!this.hasFocus&&this.getDocument().equals(CKEDITOR.document)&&(this.editor._.previousScrollTop=this.$.scrollTop);try{if(!CKEDITOR.env.ie||CKEDITOR.env.edge&&14<CKEDITOR.env.version||!this.getDocument().equals(CKEDITOR.document))if(CKEDITOR.env.chrome){var d=this.$.scrollTop;this.$.focus();this.$.scrollTop=d}else this.$.focus();
else this.$.setActive()}catch(b){if(!CKEDITOR.env.ie)throw b;}CKEDITOR.env.safari&&!this.isInline()&&(a=CKEDITOR.document.getActive(),a.equals(this.getWindow().getFrame())||this.getWindow().focus())},on:function(a,d){var b=Array.prototype.slice.call(arguments,0);CKEDITOR.env.ie&&/^focus|blur$/.exec(a)&&(a="focus"==a?"focusin":"focusout",d=k(d,this),b[0]=a,b[1]=d);return CKEDITOR.dom.element.prototype.on.apply(this,b)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var d=Array.prototype.slice.call(arguments,
1),d=a.on.apply(a,d);this._.listeners.push(d);return d},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(d){}},restoreAttrs:function(){var a=this._.attrChanges,d,b;for(b in a)a.hasOwnProperty(b)&&(d=a[b],null!==d?this.setAttribute(b,d):this.removeAttribute(b))},attachClass:function(a){var d=this.getCustomData("classes");this.hasClass(a)||(!d&&(d=[]),d.push(a),this.setCustomData("classes",d),this.addClass(a))},changeAttr:function(a,d){var b=this.getAttribute(a);
d!==b&&(!this._.attrChanges&&(this._.attrChanges={}),a in this._.attrChanges||(this._.attrChanges[a]=b),this.setAttribute(a,d))},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),"text")},transformPlainTextToHtml:function(a){var d=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,d)},insertHtml:function(a,d,b){var c=this.editor;c.focus();c.fire("saveSnapshot");
b||(b=c.getSelection().getRanges()[0]);r(this,d||"html",a,b);b.select();h(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,d,b){r(this,b||"html",a,d);this.editor.fire("afterInsertHtml",{intoRange:d})},insertElement:function(a,d){var b=this.editor;b.focus();b.fire("saveSnapshot");var c=b.activeEnterMode,b=b.getSelection(),f=a.getName(),f=CKEDITOR.dtd.$block[f];d||(d=b.getRanges()[0]);this.insertElementIntoRange(a,d)&&(d.moveToPosition(a,CKEDITOR.POSITION_AFTER_END),f&&((f=
a.getNext(function(a){return e(a)&&!p(a)}))&&f.type==CKEDITOR.NODE_ELEMENT&&f.is(CKEDITOR.dtd.$block)?f.getDtd()["#"]?d.moveToElementEditStart(f):d.moveToElementEditEnd(a):f||c==CKEDITOR.ENTER_BR||(f=d.fixBlock(!0,c==CKEDITOR.ENTER_DIV?"div":"p"),d.moveToElementEditStart(f))));b.selectRanges([d]);h(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,d){var b=this.editor,c=b.config.enterMode,e=a.getName(),f=CKEDITOR.dtd.$block[e];if(d.checkReadOnly())return!1;
d.deleteContents(1);d.startContainer.type==CKEDITOR.NODE_ELEMENT&&(d.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?q(d):d.startContainer.is(CKEDITOR.dtd.$list)&&u(d));var h,g;if(f)for(;(h=d.getCommonAncestor(0,1))&&(g=CKEDITOR.dtd[h.getName()])&&(!g||!g[e]);)h.getName()in CKEDITOR.dtd.span?d.splitElement(h):d.checkStartOfBlock()&&d.checkEndOfBlock()?(d.setStartBefore(h),d.collapse(!0),h.remove()):d.splitBlock(c==CKEDITOR.ENTER_DIV?"div":"p",b.editable());d.insertNode(a);return!0},setData:function(a,
d){d||(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.fixInitialSelection();"unloaded"==this.status&&(this.status="ready");this.editor.fire("dataReady")},getData:function(a){var d=this.getHtml();a||(d=this.editor.dataProcessor.toDataFormat(d));return d},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");this.status="detached";var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},
fixInitialSelection:function(){function a(){var d=b.getDocument().$,c=d.getSelection(),e;a:if(c.anchorNode&&c.anchorNode==b.$)e=!0;else{if(CKEDITOR.env.webkit&&(e=b.getDocument().getActive())&&e.equals(b)&&!c.anchorNode){e=!0;break a}e=void 0}e&&(e=new CKEDITOR.dom.range(b),e.moveToElementEditStart(b),d=d.createRange(),d.setStart(e.startContainer.$,e.startOffset),d.collapse(!0),c.removeAllRanges(),c.addRange(d))}function d(){var a=b.getDocument().$,c=a.selection,e=b.getDocument().getActive();"None"==
c.type&&e.equals(b)&&(c=new CKEDITOR.dom.range(b),a=a.body.createTextRange(),c.moveToElementEditStart(b),c=c.startContainer,c.type!=CKEDITOR.NODE_ELEMENT&&(c=c.getParent()),a.moveToElementText(c.$),a.collapse(!0),a.select())}var b=this;if(CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks))this.hasFocus&&(this.focus(),d());else if(this.hasFocus)this.focus(),a();else this.once("focus",function(){a()},null,null,-999)},getHtmlFromRange:function(a){if(a.collapsed)return new CKEDITOR.dom.documentFragment(a.document);
a={doc:this.getDocument(),range:a.clone()};v.eol.detect(a,this);v.bogus.exclude(a);v.cell.shrink(a);a.fragment=a.range.cloneContents();v.tree.rebuild(a,this);v.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,d){var b=z,c={range:a,doc:a.document},e=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),e;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.table.detectPurge(c);c.bookmark=a.createBookmark();delete c.range;var f=this.editor.createRange();
f.moveToPosition(c.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);c.targetBookmark=f.createBookmark();b.list.detectMerge(c,this);b.table.detectRanges(c,this);b.block.detectMerge(c,this);c.tableContentsRanges?(b.table.deleteRanges(c),a.moveToBookmark(c.bookmark),c.range=a):(a.moveToBookmark(c.bookmark),c.range=a,a.extractContents(b.detectExtractMerge(c)));a.moveToBookmark(c.targetBookmark);a.optimize();b.fixUneditableRangePosition(a);b.list.merge(c,this);b.table.purge(c,this);b.block.merge(c,this);
if(d){b=a.startPath();if(c=a.checkStartOfBlock()&&a.checkEndOfBlock()&&b.block&&!a.root.equals(b.block)){a:{var c=b.block.getElementsByTag("span"),f=0,h;if(c)for(;h=c.getItem(f++);)if(!n(h)){c=!0;break a}c=!1}c=!c}c&&(a.moveToPosition(b.block,CKEDITOR.POSITION_BEFORE_START),b.block.remove())}else b.autoParagraph(this.editor,a),t(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return e},setup:function(){var b=this.editor;this.attachListener(b,"beforeGetData",function(){var a=
this.getData();this.is("textarea")||!1!==b.config.ignoreEmptyParagraph&&(a=a.replace(x,function(a,d){return d}));b.setData(a,null,1)},this);this.attachListener(b,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(b,"afterSetData",function(){this.setData(b.getData(1))},this);this.attachListener(b,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(b,"beforeFocus",function(){var a=b.getSelection();(a=a&&a.getNative())&&"Control"==a.type||this.focus()},
this);this.attachListener(b,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(b,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(b,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(b.readOnly);this.attachClass("cke_editable");b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):b.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&b.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||
this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+b.config.contentsLangDirection);b.keystrokeHandler.blockedKeystrokes[8]=+b.readOnly;b.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=!1},null,null,-1);this.on("focus",function(){this.hasFocus=!0},null,null,-1);if(CKEDITOR.env.webkit)this.on("scroll",function(){b._.previousScrollTop=b.editable().$.scrollTop},null,null,-1);if(CKEDITOR.env.edge&&14<CKEDITOR.env.version){var c=function(){var a=b.editable();
null!=b._.previousScrollTop&&a.getDocument().equals(CKEDITOR.document)&&(a.$.scrollTop=b._.previousScrollTop,b._.previousScrollTop=null,this.removeListener("scroll",c))};this.on("scroll",c)}b.focusManager.add(this);this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,b.once("contentDom",function(){b.focusManager.focus(this)},this));this.isInline()&&this.changeAttr("tabindex",b.tabIndex);if(!this.is("textarea")){b.document=this.getDocument();b.window=this.getWindow();var h=b.document;this.changeAttr("spellcheck",
!b.config.disableNativeSpellChecker);var g=b.config.contentsLangDirection;this.getDirection(1)!=g&&this.changeAttr("dir",g);var k=CKEDITOR.getCss();if(k){var g=h.getHead(),n=g.getCustomData("stylesheet");n?k!=n.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?n.$.styleSheet.cssText=k:n.setText(k)):(k=h.appendStyleText(k),k=new CKEDITOR.dom.element(k.ownerNode||k.owningElement),g.setCustomData("stylesheet",k),k.data("cke-temp",1))}g=h.getCustomData("stylesheet_ref")||0;h.setCustomData("stylesheet_ref",
g+1);this.setCustomData("cke_includeReadonly",!b.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){a=a.data;var d=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");d&&2!=a.$.button&&d.isReadOnly()&&a.preventDefault()});var l={8:1,46:1};this.attachListener(b,"key",function(d){if(b.readOnly)return!0;var c=d.data.domEvent.getKey(),e;d=b.getSelection();if(0!==d.getRanges().length){if(c in l){var f,h=d.getRanges()[0],g=h.startPath(),k,n,q,c=8==c;CKEDITOR.env.ie&&
11>CKEDITOR.env.version&&(f=d.getSelectedElement())||(f=m(d))?(b.fire("saveSnapshot"),h.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),f.remove(),h.select(),b.fire("saveSnapshot"),e=1):h.collapsed&&((k=g.block)&&(q=k[c?"getPrevious":"getNext"](a))&&q.type==CKEDITOR.NODE_ELEMENT&&q.is("table")&&h[c?"checkStartOfBlock":"checkEndOfBlock"]()?(b.fire("saveSnapshot"),h[c?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove(),h["moveToElementEdit"+(c?"End":"Start")](q),h.select(),b.fire("saveSnapshot"),
e=1):g.blockLimit&&g.blockLimit.is("td")&&(n=g.blockLimit.getAscendant("table"))&&h.checkBoundaryOfElement(n,c?CKEDITOR.START:CKEDITOR.END)&&(q=n[c?"getPrevious":"getNext"](a))?(b.fire("saveSnapshot"),h["moveToElementEdit"+(c?"End":"Start")](q),h.checkStartOfBlock()&&h.checkEndOfBlock()?q.remove():h.select(),b.fire("saveSnapshot"),e=1):(n=g.contains(["td","th","caption"]))&&h.checkBoundaryOfElement(n,c?CKEDITOR.START:CKEDITOR.END)&&(e=1))}return!e}});b.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&
this.attachListener(this,"keyup",function(a){a.data.getKeystroke()in l&&!this.getFirst(e)&&(this.appendBogus(),a=b.createRange(),a.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),a.select())});this.attachListener(this,"dblclick",function(a){if(b.readOnly)return!1;a={element:a.data.getTarget()};b.fire("doubleclick",a)});CKEDITOR.env.ie&&this.attachListener(this,"click",f);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(a){var d=a.data.getTarget();d.is("img","hr",
"input","textarea","select")&&!d.isReadOnly()&&(b.getSelection().selectElement(d),d.is("input","textarea","select")&&a.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(a){(a=a.data.getTarget())&&a.is("img")&&b.getSelection().selectElement(a)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(a){if(2==a.data.$.button&&(a=a.data.getTarget(),!a.getOuterHtml().replace(x,""))){var d=b.createRange();d.moveToElementEditStart(a);d.select(!0)}});CKEDITOR.env.webkit&&
(this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()}),this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&a.data.preventDefault()}));CKEDITOR.env.webkit&&this.attachListener(b,"key",function(a){if(b.readOnly)return!0;var c=a.data.domEvent.getKey();if(c in l&&(a=b.getSelection(),0!==a.getRanges().length)){var c=8==c,e=a.getRanges()[0];a=e.startPath();if(e.collapsed)a:{var f=a.block;if(f&&e[c?"checkStartOfBlock":
"checkEndOfBlock"]()&&e.moveToClosestEditablePosition(f,!c)&&e.collapsed){if(e.startContainer.type==CKEDITOR.NODE_ELEMENT){var h=e.startContainer.getChild(e.startOffset-(c?1:0));if(h&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("hr")){b.fire("saveSnapshot");h.remove();a=!0;break a}}e=e.startPath().block;if(!e||e&&e.contains(f))a=void 0;else{b.fire("saveSnapshot");var g;(g=(c?e:f).getBogus())&&g.remove();g=b.getSelection();h=g.createBookmarks();(c?f:e).moveChildren(c?e:f,!1);a.lastElement.mergeSiblings();
d(f,e,!c);g.selectBookmarks(h);a=!0}}else a=!1}else c=e,g=a.block,e=c.endPath().block,g&&e&&!g.equals(e)?(b.fire("saveSnapshot"),(f=g.getBogus())&&f.remove(),c.enlarge(CKEDITOR.ENLARGE_INLINE),c.deleteContents(),e.getParent()&&(e.moveChildren(g,!1),a.lastElement.mergeSiblings(),d(g,e,!0)),c=b.getSelection().getRanges()[0],c.collapse(1),c.optimize(),""===c.startContainer.getHtml()&&c.startContainer.appendBogus(),c.select(),a=!0):a=!1;if(!a)return;b.getSelection().scrollIntoView();b.fire("saveSnapshot");
return!1}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var a;if(a=this.removeCustomData("classes"))for(;a.length;)this.removeClass(a.pop());if(!this.is("textarea")){a=this.getDocument();var d=a.getHead();if(d.getCustomData("stylesheet")){var b=a.getCustomData("stylesheet_ref");--b?a.setCustomData("stylesheet_ref",b):(a.removeCustomData("stylesheet_ref"),d.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload");
delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var d=this._.editable;if(d&&a)return 0;arguments.length&&(d=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(d&&d.detach(),null));return d};CKEDITOR.on("instanceLoaded",function(a){var d=a.editor;d.on("insertElement",function(a){a=a.data;a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))&&("false"!=a.getAttribute("contentEditable")&&a.data("cke-editable",a.hasAttribute("contenteditable")?
"true":"1"),a.setAttribute("contentEditable",!1))});d.on("selectionChange",function(a){if(!d.readOnly){var b=d.getSelection();b&&!b.isLocked&&(b=d.checkDirty(),d.fire("lockSnapshot"),c(a),d.fire("unlockSnapshot"),!b&&d.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var d=a.editor;d.on("mode",function(){var a=d.editable();if(a&&a.isInline()){var b=d.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",b);b&&a.changeAttr("title",b);var c=d.fire("ariaEditorHelpLabel",{}).label;
if(c&&(b=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var e=CKEDITOR.tools.getNextId(),c=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+e+'" class\x3d"cke_voice_label"\x3e'+c+"\x3c/span\x3e");b.append(c);a.changeAttr("aria-describedby",e)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");a=CKEDITOR.dom.walker.whitespaces(!0);n=CKEDITOR.dom.walker.bookmark(!1,!0);t=CKEDITOR.dom.walker.empty();
p=CKEDITOR.dom.walker.bogus();x=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;r=function(){function a(d){return d.type==CKEDITOR.NODE_ELEMENT}function d(b,c){var e,f,h,g,k=[],l=c.range.startContainer;e=c.range.startPath();for(var l=n[l.getName()],m=0,q=b.getChildren(),t=q.count(),r=-1,E=-1,u=0,x=e.contains(n.$list);m<t;++m)e=q.getItem(m),a(e)?(h=e.getName(),x&&h in CKEDITOR.dtd.$list?k=k.concat(d(e,c)):(g=!!l[h],
"br"!=h||!e.data("cke-eol")||m&&m!=t-1||(u=(f=m?k[m-1].node:q.getItem(m+1))&&(!a(f)||!f.is("br")),f=f&&a(f)&&n.$block[f.getName()]),-1!=r||g||(r=m),g||(E=m),k.push({isElement:1,isLineBreak:u,isBlock:e.isBlockBoundary(),hasBlockSibling:f,node:e,name:h,allowed:g}),f=u=0)):k.push({isElement:0,node:e,allowed:1});-1<r&&(k[r].firstNotAllowed=1);-1<E&&(k[E].lastNotAllowed=1);return k}function c(d,b){var e=[],f=d.getChildren(),h=f.count(),g,k=0,l=n[b],m=!d.is(n.$inline)||d.is("br");for(m&&e.push(" ");k<h;k++)g=
f.getItem(k),a(g)&&!g.is(l)?e=e.concat(c(g,b)):e.push(g);m&&e.push(" ");return e}function f(d){return a(d.startContainer)&&d.startContainer.getChild(d.startOffset-1)}function h(d){return d&&a(d)&&(d.is(n.$removeEmpty)||d.is("a")&&!d.isBlockBoundary())}function g(d,b,c,e){var f=d.clone(),h,k;f.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);(h=(new CKEDITOR.dom.walker(f)).next())&&a(h)&&m[h.getName()]&&(k=h.getPrevious())&&a(k)&&!k.getParent().equals(d.startContainer)&&c.contains(k)&&e.contains(h)&&h.isIdentical(k)&&
(h.moveChildren(k),h.remove(),g(d,b,c,e))}function k(d,b){function c(d,b){if(b.isBlock&&b.isElement&&!b.node.is("br")&&a(d)&&d.is("br"))return d.remove(),1}var e=b.endContainer.getChild(b.endOffset),f=b.endContainer.getChild(b.endOffset-1);e&&c(e,d[d.length-1]);f&&c(f,d[0])&&(b.setEnd(b.endContainer,b.endOffset-1),b.collapse())}var n=CKEDITOR.dtd,m={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},q={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},t=CKEDITOR.tools.extend({},
n.$inline);delete t.br;return function(m,D,r,u){var x=m.editor,v=!1;"unfiltered_html"==D&&(D="html",v=!0);if(!u.checkReadOnly()){var p=(new CKEDITOR.dom.elementPath(u.startContainer,u.root)).blockLimit||u.root;m={type:D,dontFilter:v,editable:m,editor:x,range:u,blockLimit:p,mergeCandidates:[],zombies:[]};D=m.range;u=m.mergeCandidates;var I,z;"text"==m.type&&D.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(I=CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",D.document),D.insertNode(I),
D.setStartAfter(I));v=new CKEDITOR.dom.elementPath(D.startContainer);m.endPath=p=new CKEDITOR.dom.elementPath(D.endContainer);if(!D.collapsed){var x=p.block||p.blockLimit,aa=D.getCommonAncestor();x&&!x.equals(aa)&&!x.contains(aa)&&D.checkEndOfBlock()&&m.zombies.push(x);D.deleteContents()}for(;(z=f(D))&&a(z)&&z.isBlockBoundary()&&v.contains(z);)D.moveToPosition(z,CKEDITOR.POSITION_BEFORE_END);g(D,m.blockLimit,v,p);I&&(D.setEndBefore(I),D.collapse(),I.remove());I=D.startPath();if(x=I.contains(h,!1,
1))D.splitElement(x),m.inlineStylesRoot=x,m.inlineStylesPeak=I.lastElement;I=D.createBookmark();(x=I.startNode.getPrevious(e))&&a(x)&&h(x)&&u.push(x);(x=I.startNode.getNext(e))&&a(x)&&h(x)&&u.push(x);for(x=I.startNode;(x=x.getParent())&&h(x);)u.push(x);D.moveToBookmark(I);if(I=r){I=m.range;if("text"==m.type&&m.inlineStylesRoot){z=m.inlineStylesPeak;D=z.getDocument().createText("{cke-peak}");for(u=m.inlineStylesRoot.getParent();!z.equals(u);)D=D.appendTo(z.clone()),z=z.getParent();r=D.getOuterHtml().split("{cke-peak}").join(r)}z=
m.blockLimit.getName();if(/^\s+|\s+$/.test(r)&&"span"in CKEDITOR.dtd[z]){var M='\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e';r=M+r+M}r=m.editor.dataProcessor.toHtml(r,{context:null,fixForBody:!1,protectedWhitespaces:!!M,dontFilter:m.dontFilter,filter:m.editor.activeFilter,enterMode:m.editor.activeEnterMode});z=I.document.createElement("body");z.setHtml(r);M&&(z.getFirst().remove(),z.getLast().remove());if((M=I.startPath().block)&&(1!=M.getChildCount()||!M.getBogus()))a:{var R;if(1==
z.getChildCount()&&a(R=z.getFirst())&&R.is(q)&&!R.hasAttribute("contenteditable")){M=R.getElementsByTag("*");I=0;for(u=M.count();I<u;I++)if(D=M.getItem(I),!D.is(t))break a;R.moveChildren(R.getParent(1));R.remove()}}m.dataWrapper=z;I=r}if(I){R=m.range;I=R.document;var O;z=m.blockLimit;u=0;var V,M=[],T,Q;r=x=0;var X,da;D=R.startContainer;var v=m.endPath.elements[0],W,p=v.getPosition(D),aa=!!v.getCommonAncestor(D)&&p!=CKEDITOR.POSITION_IDENTICAL&&!(p&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);
D=d(m.dataWrapper,m);for(k(D,R);u<D.length;u++){p=D[u];if(O=p.isLineBreak){O=R;X=z;var ca=void 0,ea=void 0;p.hasBlockSibling?O=1:(ca=O.startContainer.getAscendant(n.$block,1))&&ca.is({div:1,p:1})?(ea=ca.getPosition(X),ea==CKEDITOR.POSITION_IDENTICAL||ea==CKEDITOR.POSITION_CONTAINS?O=0:(X=O.splitElement(ca),O.moveToPosition(X,CKEDITOR.POSITION_AFTER_START),O=1)):O=0}if(O)r=0<u;else{O=R.startPath();!p.isBlock&&l(m.editor,O.block,O.blockLimit)&&(Q=b(m.editor))&&(Q=I.createElement(Q),Q.appendBogus(),
R.insertNode(Q),CKEDITOR.env.needsBrFiller&&(V=Q.getBogus())&&V.remove(),R.moveToPosition(Q,CKEDITOR.POSITION_BEFORE_END));if((O=R.startPath().block)&&!O.equals(T)){if(V=O.getBogus())V.remove(),M.push(O);T=O}p.firstNotAllowed&&(x=1);if(x&&p.isElement){O=R.startContainer;for(X=null;O&&!n[O.getName()][p.name];){if(O.equals(z)){O=null;break}X=O;O=O.getParent()}if(O)X&&(da=R.splitElement(X),m.zombies.push(da),m.zombies.push(X));else{X=z.getName();W=!u;O=u==D.length-1;X=c(p.node,X);for(var ca=[],ea=X.length,
fa=0,ga=void 0,ha=0,ia=-1;fa<ea;fa++)ga=X[fa]," "==ga?(ha||W&&!fa||(ca.push(new CKEDITOR.dom.text(" ")),ia=ca.length),ha=1):(ca.push(ga),ha=0);O&&ia==ca.length&&ca.pop();W=ca}}if(W){for(;O=W.pop();)R.insertNode(O);W=0}else R.insertNode(p.node);p.lastNotAllowed&&u<D.length-1&&((da=aa?v:da)&&R.setEndAt(da,CKEDITOR.POSITION_AFTER_START),x=0);R.collapse()}}1!=D.length?V=!1:(V=D[0],V=V.isElement&&"false"==V.node.getAttribute("contenteditable"));V&&(r=!0,O=D[0].node,R.setStartAt(O,CKEDITOR.POSITION_BEFORE_START),
R.setEndAt(O,CKEDITOR.POSITION_AFTER_END));m.dontMoveCaret=r;m.bogusNeededBlocks=M}V=m.range;var ba;da=m.bogusNeededBlocks;for(W=V.createBookmark();T=m.zombies.pop();)T.getParent()&&(Q=V.clone(),Q.moveToElementEditStart(T),Q.removeEmptyBlocksAtEnd());if(da)for(;T=da.pop();)CKEDITOR.env.needsBrFiller?T.appendBogus():T.append(V.document.createText(" "));for(;T=m.mergeCandidates.pop();)T.mergeSiblings();V.moveToBookmark(W);if(!m.dontMoveCaret){for(T=f(V);T&&a(T)&&!T.is(n.$empty);){if(T.isBlockBoundary())V.moveToPosition(T,
CKEDITOR.POSITION_BEFORE_END);else{if(h(T)&&T.getHtml().match(/(\s|&nbsp;)$/g)){ba=null;break}ba=V.clone();ba.moveToPosition(T,CKEDITOR.POSITION_BEFORE_END)}T=T.getLast(e)}ba&&V.moveToRange(ba)}}}}();q=function(){function a(d){d=new CKEDITOR.dom.walker(d);d.guard=function(a,d){if(d)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};d.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return d}function d(a,b,c){b=a.getDocument().createElement(b);a.append(b,
c);return b}function b(a){var d=a.count(),c;for(d;0<d--;)c=a.getItem(d),CKEDITOR.tools.trim(c.getHtml())||(c.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&c.getChildCount()&&c.getFirst().remove())}return function(c){var e=c.startContainer,f=e.getAscendant("table",1),h=!1;b(f.getElementsByTag("td"));b(f.getElementsByTag("th"));f=c.clone();f.setStart(e,0);f=a(f).lastBackward();f||(f=c.clone(),f.setEndAt(e,CKEDITOR.POSITION_BEFORE_END),f=a(f).lastForward(),h=!0);f||(f=e);f.is("table")?(c.setStartAt(f,
CKEDITOR.POSITION_BEFORE_START),c.collapse(!0),f.remove()):(f.is({tbody:1,thead:1,tfoot:1})&&(f=d(f,"tr",h)),f.is("tr")&&(f=d(f,f.getParent().is("thead")?"th":"td",h)),(e=f.getBogus())&&e.remove(),c.moveToPosition(f,h?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}();u=function(){function a(d){d=new CKEDITOR.dom.walker(d);d.guard=function(a,d){if(d)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$list)||a.is(CKEDITOR.dtd.$listItem)};d.evaluator=function(a){return a.type==
CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$listItem)};return d}return function(d){var b=d.startContainer,c=!1,e;e=d.clone();e.setStart(b,0);e=a(e).lastBackward();e||(e=d.clone(),e.setEndAt(b,CKEDITOR.POSITION_BEFORE_END),e=a(e).lastForward(),c=!0);e||(e=b);e.is(CKEDITOR.dtd.$list)?(d.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),d.collapse(!0),e.remove()):((b=e.getBogus())&&b.remove(),d.moveToPosition(e,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),d.select())}}();v={eol:{detect:function(a,
d){var b=a.range,c=b.clone(),e=b.clone(),f=new CKEDITOR.dom.elementPath(b.startContainer,d),h=new CKEDITOR.dom.elementPath(b.endContainer,d);c.collapse(1);e.collapse();f.block&&c.checkBoundaryOfElement(f.block,CKEDITOR.END)&&(b.setStartAfter(f.block),a.prependEolBr=1);h.block&&e.checkBoundaryOfElement(h.block,CKEDITOR.START)&&(b.setEndBefore(h.block),a.appendEolBr=1)},fix:function(a,d){var b=d.getDocument(),c;a.appendEolBr&&(c=this.createEolBr(b),a.fragment.append(c));!a.prependEolBr||c&&!c.getPrevious()||
a.fragment.append(this.createEolBr(b),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(a){var d=a.range.getBoundaryNodes(),b=d.startNode,d=d.endNode;!d||!p(d)||b&&b.equals(d)||a.range.setEndBefore(d)}},tree:{rebuild:function(a,d){var b=a.range,c=b.getCommonAncestor(),e=new CKEDITOR.dom.elementPath(c,d),f=new CKEDITOR.dom.elementPath(b.startContainer,d),b=new CKEDITOR.dom.elementPath(b.endContainer,d),h;c.type==CKEDITOR.NODE_TEXT&&(c=
c.getParent());if(e.blockLimit.is({tr:1,table:1})){var g=e.contains("table").getParent();h=function(a){return!a.equals(g)}}else if(e.block&&e.block.is(CKEDITOR.dtd.$listItem)&&(f=f.contains(CKEDITOR.dtd.$list),b=b.contains(CKEDITOR.dtd.$list),!f.equals(b))){var k=e.contains(CKEDITOR.dtd.$list).getParent();h=function(a){return!a.equals(k)}}h||(h=function(a){return!a.equals(e.block)&&!a.equals(e.blockLimit)});this.rebuildFragment(a,d,c,h)},rebuildFragment:function(a,d,b,c){for(var e;b&&!b.equals(d)&&
c(b);)e=b.clone(0,1),a.fragment.appendTo(e),a.fragment=e,b=b.getParent()}},cell:{shrink:function(a){a=a.range;var d=a.startContainer,b=a.endContainer,c=a.startOffset,e=a.endOffset;d.type==CKEDITOR.NODE_ELEMENT&&d.equals(b)&&d.is("tr")&&++c==e&&a.shrink(CKEDITOR.SHRINK_TEXT)}}};z=function(){function a(d,b){var c=d.getParent();if(c.is(CKEDITOR.dtd.$inline))d[b?"insertBefore":"insertAfter"](c)}function d(b,c,e){a(c);a(e,1);for(var f;f=e.getNext();)f.insertAfter(c),c=f;t(b)&&b.remove()}function c(a,d){var b=
new CKEDITOR.dom.range(a);b.setStartAfter(d.startNode);b.setEndBefore(d.endNode);return b}return{list:{detectMerge:function(a,d){var b=c(d,a.bookmark),e=b.startPath(),f=b.endPath(),h=e.contains(CKEDITOR.dtd.$list),g=f.contains(CKEDITOR.dtd.$list);a.mergeList=h&&g&&h.getParent().equals(g.getParent())&&!h.equals(g);a.mergeListItems=e.block&&f.block&&e.block.is(CKEDITOR.dtd.$listItem)&&f.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)b=b.clone(),b.setStartBefore(a.bookmark.startNode),
b.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=b.createBookmark()},merge:function(a,b){if(a.mergeListBookmark){var c=a.mergeListBookmark.startNode,e=a.mergeListBookmark.endNode,f=new CKEDITOR.dom.elementPath(c,b),h=new CKEDITOR.dom.elementPath(e,b);if(a.mergeList){var g=f.contains(CKEDITOR.dtd.$list),k=h.contains(CKEDITOR.dtd.$list);g.equals(k)||(k.moveChildren(g),k.remove())}a.mergeListItems&&(f=f.contains(CKEDITOR.dtd.$listItem),h=h.contains(CKEDITOR.dtd.$listItem),f.equals(h)||d(h,c,e));
c.remove();e.remove()}}},block:{detectMerge:function(a,d){if(!a.tableContentsRanges&&!a.mergeListBookmark){var b=new CKEDITOR.dom.range(d);b.setStartBefore(a.bookmark.startNode);b.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=b.createBookmark()}},merge:function(a,b){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var c=a.mergeBlockBookmark.startNode,e=a.mergeBlockBookmark.endNode,f=new CKEDITOR.dom.elementPath(c,b),h=new CKEDITOR.dom.elementPath(e,b),f=f.block,h=h.block;f&&h&&!f.equals(h)&&
d(h,c,e);c.remove();e.remove()}}},table:function(){function a(c){var e=[],f,h=new CKEDITOR.dom.walker(c),g=c.startPath().contains(b),k=c.endPath().contains(b),n={};h.guard=function(a,h){if(a.type==CKEDITOR.NODE_ELEMENT){var l="visited_"+(h?"out":"in");if(a.getCustomData(l))return;CKEDITOR.dom.element.setMarker(n,a,l,1)}if(h&&g&&a.equals(g))f=c.clone(),f.setEndAt(g,CKEDITOR.POSITION_BEFORE_END),e.push(f);else if(!h&&k&&a.equals(k))f=c.clone(),f.setStartAt(k,CKEDITOR.POSITION_AFTER_START),e.push(f);
else{if(l=!h)l=a.type==CKEDITOR.NODE_ELEMENT&&a.is(b)&&(!g||d(a,g))&&(!k||d(a,k));if(!l&&(l=h))if(a.is(b))var l=g&&g.getAscendant("table",!0),m=k&&k.getAscendant("table",!0),q=a.getAscendant("table",!0),l=l&&l.contains(q)||m&&m.contains(q);else l=void 0;l&&(f=c.clone(),f.selectNodeContents(a),e.push(f))}};h.lastForward();CKEDITOR.dom.element.clearAllMarkers(n);return e}function d(a,b){var c=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,e=a.getPosition(b);return e===CKEDITOR.POSITION_IDENTICAL?
!1:0===(e&c)}var b={td:1,th:1,caption:1};return{detectPurge:function(a){var d=a.range,c=d.clone();c.enlarge(CKEDITOR.ENLARGE_ELEMENT);var c=new CKEDITOR.dom.walker(c),e=0;c.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(b)&&++e};c.checkForward();if(1<e){var c=d.startPath().contains("table"),f=d.endPath().contains("table");c&&f&&d.checkBoundaryOfElement(c,CKEDITOR.START)&&d.checkBoundaryOfElement(f,CKEDITOR.END)&&(d=a.range.clone(),d.setStartBefore(c),d.setEndAfter(f),a.purgeTableBookmark=
d.createBookmark())}},detectRanges:function(e,f){var h=c(f,e.bookmark),g=h.clone(),k,n,l=h.getCommonAncestor();l.is(CKEDITOR.dtd.$tableContent)&&!l.is(b)&&(l=l.getAscendant("table",!0));n=l;l=new CKEDITOR.dom.elementPath(h.startContainer,n);n=new CKEDITOR.dom.elementPath(h.endContainer,n);l=l.contains("table");n=n.contains("table");if(l||n)l&&n&&d(l,n)?(e.tableSurroundingRange=g,g.setStartAt(l,CKEDITOR.POSITION_AFTER_END),g.setEndAt(n,CKEDITOR.POSITION_BEFORE_START),g=h.clone(),g.setEndAt(l,CKEDITOR.POSITION_AFTER_END),
k=h.clone(),k.setStartAt(n,CKEDITOR.POSITION_BEFORE_START),k=a(g).concat(a(k))):l?n||(e.tableSurroundingRange=g,g.setStartAt(l,CKEDITOR.POSITION_AFTER_END),h.setEndAt(l,CKEDITOR.POSITION_AFTER_END)):(e.tableSurroundingRange=g,g.setEndAt(n,CKEDITOR.POSITION_BEFORE_START),h.setStartAt(n,CKEDITOR.POSITION_AFTER_START)),e.tableContentsRanges=k?k:a(h)},deleteRanges:function(a){for(var d;d=a.tableContentsRanges.pop();)d.extractContents(),t(d.startContainer)&&d.startContainer.appendBogus();a.tableSurroundingRange&&
a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var d=a.doc,b=a.range.clone(),d=d.createElement("p");d.insertBefore(a.purgeTableBookmark.startNode);b.moveToBookmark(a.purgeTableBookmark);b.deleteContents();a.range.moveToPosition(d,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&&a.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||
a.moveToClosestEditablePosition(null,!0)},autoParagraph:function(a,d){var c=d.startPath(),e;l(a,c.block,c.blockLimit)&&(e=b(a))&&(e=d.document.createElement(e),e.appendBogus(),d.insertNode(e),d.moveToPosition(e,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function c(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function g(a,d){if(0===a.length||c(a[0].getEnclosedNode()))return!1;var b,e;if((b=!d&&1===a.length)&&!(b=a[0].collapsed)){var f=a[0];b=f.startContainer.getAscendant({td:1,
th:1},!0);var h=f.endContainer.getAscendant({td:1,th:1},!0);e=CKEDITOR.tools.trim;b&&b.equals(h)&&!b.findOne("td, th, tr, tbody, table")?(f=f.cloneContents(),b=f.getFirst()?e(f.getFirst().getText())!==e(b.getText()):!0):b=!1}if(b)return!1;for(e=0;e<a.length;e++)if(b=a[e]._getTableElement(),!b)return!1;return!0}function f(a){function d(a){a=a.find("td, th");var b=[],c;for(c=0;c<a.count();c++)b.push(a.getItem(c));return b}var b=[],c,e;for(e=0;e<a.length;e++)c=a[e]._getTableElement(),c.is&&c.is({td:1,
th:1})?b.push(c):b=b.concat(d(c));return b}function e(a){a=f(a);var d="",b=[],c,e;for(e=0;e<a.length;e++)c&&!c.equals(a[e].getAscendant("tr"))?(d+=b.join("\t")+"\n",c=a[e].getAscendant("tr"),b=[]):0===e&&(c=a[e].getAscendant("tr")),b.push(a[e].getText());return d+=b.join("\t")}function k(a){var d=this.root.editor,b=d.getSelection(1);this.reset();w=!0;b.root.once("selectionchange",function(a){a.cancel()},null,null,0);b.selectRanges([a[0]]);b=this._.cache;b.ranges=new CKEDITOR.dom.rangeList(a);b.type=
CKEDITOR.SELECTION_TEXT;b.selectedElement=a[0]._getTableElement();b.selectedText=e(a);b.nativeSel=null;this.isFake=1;this.rev=u++;d._.fakeSelection=this;w=!1;this.root.fire("selectionchange")}function m(){var a=this._.fakeSelection,d;if(a){d=this.getSelection(1);var b;if(!(b=!d)&&(b=!d.isHidden())){b=a;var e=d.getRanges(),f=b.getRanges(),h=e.length&&e[0]._getTableElement()&&e[0]._getTableElement().getAscendant("table",!0),k=f.length&&f[0]._getTableElement()&&f[0]._getTableElement().getAscendant("table",
!0),n=1===e.length&&e[0]._getTableElement()&&e[0]._getTableElement().is("table"),l=1===f.length&&f[0]._getTableElement()&&f[0]._getTableElement().is("table");if(c(b.getSelectedElement()))b=!1;else{var m=1===e.length&&e[0].collapsed,f=g(e,!!CKEDITOR.env.webkit)&&g(f);h=h&&k?h.equals(k)||k.contains(h):!1;h&&(m||f)?(n&&!l&&b.selectRanges(e),b=!0):b=!1}b=!b}b&&(a.reset(),a=0)}if(!a&&(a=d||this.getSelection(1),!a||a.getType()==CKEDITOR.SELECTION_NONE))return;this.fire("selectionCheck",a);d=this.elementPath();
d.compare(this._.selectionPreviousPath)||(b=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(d.blockLimit),CKEDITOR.env.webkit&&!b&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=d,this.fire("selectionChange",{selection:a,path:d}))}function l(){A=!0;B||(b.call(this),B=CKEDITOR.tools.setTimeout(b,200,this))}function b(){B=null;A&&(CKEDITOR.tools.setTimeout(m,0,this),A=!1)}function h(a){return C(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?
!0:!1}function d(a){function d(b,c){return b&&b.type!=CKEDITOR.NODE_TEXT?a.clone()["moveToElementEdit"+(c?"End":"Start")](b):!1}if(!(a.root instanceof CKEDITOR.editable))return!1;var b=a.startContainer,c=a.getPreviousNode(h,null,b),e=a.getNextNode(h,null,b);return d(c)||d(e,1)||!(c||e||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()&&b.getBogus())?!0:!1}function a(a){n(a,!1);var d=a.getDocument().createText(v);a.setCustomData("cke-fillingChar",d);return d}function n(a,d){var b=a&&a.removeCustomData("cke-fillingChar");
if(b){if(!1!==d){var c=a.getDocument().getSelection().getNative(),e=c&&"None"!=c.type&&c.getRangeAt(0),f=v.length;if(b.getLength()>f&&e&&e.intersectsNode(b.$)){var h=[{node:c.anchorNode,offset:c.anchorOffset},{node:c.focusNode,offset:c.focusOffset}];c.anchorNode==b.$&&c.anchorOffset>f&&(h[0].offset-=f);c.focusNode==b.$&&c.focusOffset>f&&(h[1].offset-=f)}}b.setText(t(b.getText(),1));h&&(b=a.getDocument().$,c=b.getSelection(),b=b.createRange(),b.setStart(h[0].node,h[0].offset),b.collapse(!0),c.removeAllRanges(),
c.addRange(b),c.extend(h[1].node,h[1].offset))}}function t(a,d){return d?a.replace(z,function(a,d){return d?" ":""}):a.replace(v,"")}function p(a,d){var b=d&&CKEDITOR.tools.htmlEncode(d)||"\x26nbsp;",b=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-hidden-sel\x3d"1" data-cke-temp\x3d"1" style\x3d"'+(CKEDITOR.env.ie&&14>CKEDITOR.env.version?"display:none":"position:fixed;top:0;left:-1000px")+'"\x3e'+b+"\x3c/div\x3e",a.document);a.fire("lockSnapshot");a.editable().append(b);var c=a.getSelection(1),
e=a.createRange(),f=c.root.on("selectionchange",function(a){a.cancel()},null,null,0);e.setStartAt(b,CKEDITOR.POSITION_AFTER_START);e.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);c.selectRanges([e]);f.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=b}function x(a){var d={37:1,39:1,8:1,46:1};return function(b){var c=b.data.getKeystroke();if(d[c]){var e=a.getSelection().getRanges(),f=e[0];1==e.length&&f.collapsed&&(c=f[38>c?"getPreviousEditableNode":"getNextEditableNode"]())&&c.type==
CKEDITOR.NODE_ELEMENT&&"false"==c.getAttribute("contenteditable")&&(a.getSelection().fake(c),b.data.preventDefault(),b.cancel())}}}function r(a){for(var d=0;d<a.length;d++){var b=a[d];b.getCommonAncestor().isReadOnly()&&a.splice(d,1);if(!b.collapsed){if(b.startContainer.isReadOnly())for(var c=b.startContainer,e;c&&!((e=c.type==CKEDITOR.NODE_ELEMENT)&&c.is("body")||!c.isReadOnly());)e&&"false"==c.getAttribute("contentEditable")&&b.setStartAfter(c),c=c.getParent();c=b.startContainer;e=b.endContainer;
var f=b.startOffset,h=b.endOffset,g=b.clone();c&&c.type==CKEDITOR.NODE_TEXT&&(f>=c.getLength()?g.setStartAfter(c):g.setStartBefore(c));e&&e.type==CKEDITOR.NODE_TEXT&&(h?g.setEndAfter(e):g.setEndBefore(e));c=new CKEDITOR.dom.walker(g);c.evaluator=function(c){if(c.type==CKEDITOR.NODE_ELEMENT&&c.isReadOnly()){var e=b.clone();b.setEndBefore(c);b.collapsed&&a.splice(d--,1);c.getPosition(g.endContainer)&CKEDITOR.POSITION_CONTAINS||(e.setStartAfter(c),e.collapsed||a.splice(d+1,0,e));return!0}return!1};c.next()}}return a}
var q="function"!=typeof window.getSelection,u=1,v=CKEDITOR.tools.repeat("​",7),z=new RegExp(v+"( )?","g"),w,B,A,C=CKEDITOR.dom.walker.invisible(1),y=function(){function a(d){return function(a){var b=a.editor.createRange();b.moveToClosestEditablePosition(a.selected,d)&&a.editor.getSelection().selectRanges([b]);return!1}}function d(a){return function(d){var b=d.editor,c=b.createRange(),e;(e=c.moveToClosestEditablePosition(d.selected,a))||(e=c.moveToClosestEditablePosition(d.selected,!a));e&&b.getSelection().selectRanges([c]);
b.fire("saveSnapshot");d.selected.remove();e||(c.moveToElementEditablePosition(b.editable()),b.getSelection().selectRanges([c]));b.fire("saveSnapshot");return!1}}var b=a(),c=a(1);return{37:b,38:b,39:c,40:c,8:d(),46:d(1)}}();CKEDITOR.on("instanceCreated",function(a){function d(){var a=b.getSelection();a&&a.removeAllRanges()}var b=a.editor;b.on("contentDom",function(){function a(){u=new CKEDITOR.dom.selection(b.getSelection());u.lock()}function d(){f.removeListener("mouseup",d);k.removeListener("mouseup",
d);var a=CKEDITOR.document.$.selection,b=a.createRange();"None"!=a.type&&b.parentElement()&&b.parentElement().ownerDocument==e.$&&b.select()}function c(a){if(CKEDITOR.env.ie){var d=(a=a.getRanges()[0])?a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&("false"==a.getAttribute("contenteditable")||"true"==a.getAttribute("contenteditable"))},!0):null;return a&&"false"==d.getAttribute("contenteditable")&&d}}var e=b.document,f=CKEDITOR.document,h=b.editable(),g=e.getBody(),
k=e.getDocumentElement(),r=h.isInline(),t,u;CKEDITOR.env.gecko&&h.attachListener(h,"focus",function(a){a.removeListener();0!==t&&(a=b.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==h.$&&(a=b.createRange(),a.moveToElementEditStart(h),a.select())},null,null,-2);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){t&&CKEDITOR.env.webkit&&(t=b._.previousActive&&b._.previousActive.equals(e.getActive()))&&null!=b._.previousScrollTop&&b._.previousScrollTop!=h.$.scrollTop&&(h.$.scrollTop=
b._.previousScrollTop);b.unlockSelection(t);t=0},null,null,-1);h.attachListener(h,"mousedown",function(){t=0});if(CKEDITOR.env.ie||r)q?h.attachListener(h,"beforedeactivate",a,null,null,-1):h.attachListener(b,"selectionCheck",a,null,null,-1),h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){b.lockSelection(u);t=1},null,null,-1),h.attachListener(h,"mousedown",function(){t=0});if(CKEDITOR.env.ie&&!r){var w;h.attachListener(h,"mousedown",function(a){2==a.data.$.button&&((a=b.document.getSelection())&&
a.getType()!=CKEDITOR.SELECTION_NONE||(w=b.window.getScrollPosition()))});h.attachListener(h,"mouseup",function(a){2==a.data.$.button&&w&&(b.document.$.documentElement.scrollLeft=w.x,b.document.$.documentElement.scrollTop=w.y);w=null});if("BackCompat"!=e.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var v,p;k.on("mousedown",function(a){function d(a){a=a.data.$;if(v){var b=g.$.createTextRange();try{b.moveToPoint(a.clientX,a.clientY)}catch(c){}v.setEndPoint(0>p.compareEndPoints("StartToStart",
b)?"EndToEnd":"StartToStart",b);v.select()}}function b(){k.removeListener("mousemove",d);f.removeListener("mouseup",b);k.removeListener("mouseup",b);v.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<k.$.clientHeight&&a.$.x<k.$.clientWidth){v=g.$.createTextRange();try{v.moveToPoint(a.$.clientX,a.$.clientY)}catch(c){}p=v.duplicate();k.on("mousemove",d);f.on("mouseup",b);k.on("mouseup",b)}})}if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version)k.on("mousedown",function(a){a.data.getTarget().is("html")&&
(f.on("mouseup",d),k.on("mouseup",d))})}}h.attachListener(h,"selectionchange",m,b);h.attachListener(h,"keyup",l,b);h.attachListener(h,"keydown",function(a){var d=this.getSelection(1);c(d)&&(d.selectElement(c(d)),a.data.preventDefault())},b);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){b.forceNextSelectionCheck();b.selectionChange(1)});if(r&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var z;h.attachListener(h,"mousedown",function(){z=1});h.attachListener(e.getDocumentElement(),
"mouseup",function(){z&&l.call(b);z=0})}else h.attachListener(CKEDITOR.env.ie?h:e.getDocumentElement(),"mouseup",l,b);CKEDITOR.env.webkit&&h.attachListener(e,"keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:h.hasFocus&&n(h)}},null,null,-1);h.attachListener(h,"keydown",x(b),null,null,-1)});b.on("setData",function(){b.unlockSelection();CKEDITOR.env.webkit&&d()});b.on("contentDomUnload",function(){b.unlockSelection()});if(CKEDITOR.env.ie9Compat)b.on("beforeDestroy",
d,null,null,9);b.on("dataReady",function(){delete b._.fakeSelection;delete b._.hiddenSelectionContainer;b.selectionChange(1)});b.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),d=b.editable().getLast(a);d&&d.hasAttribute("data-cke-hidden-sel")&&(d.remove(),CKEDITOR.env.gecko&&(a=b.editable().getFirst(a))&&a.is("br")&&a.getAttribute("_moz_editor_bogus_node")&&a.remove())},null,null,100);b.on("key",function(a){if("wysiwyg"==b.mode){var d=b.getSelection();if(d.isFake){var c=
y[a.data.keyCode];if(c)return c({editor:b,selected:d.getSelectedElement(),selection:d,keyEvent:a})}}})});if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(a){var d=a.editor;d.on("selectionChange",function(){var a=d.editable(),b=a.getCustomData("cke-fillingChar");b&&(b.getCustomData("ready")?(n(a),a.editor.fire("selectionCheck")):b.setCustomData("ready",1))},null,null,-1);d.on("beforeSetMode",function(){n(d.editable())},null,null,-1);d.on("getSnapshot",function(a){a.data&&(a.data=t(a.data))},
d,null,20);d.on("toDataFormat",function(a){a.data.dataValue=t(a.data.dataValue)},null,null,0)});CKEDITOR.editor.prototype.selectionChange=function(a){(a?m:l).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){return!this._.savedSelection&&!this._.fakeSelection||a?(a=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(a):null:this._.savedSelection||this._.fakeSelection};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);return a.getType()!=CKEDITOR.SELECTION_NONE?
(!a.isLocked&&a.lock(),this._.savedSelection=a,!0):!1};CKEDITOR.editor.prototype.unlockSelection=function(a){var d=this._.savedSelection;return d?(d.unlock(a),delete this._.savedSelection,!0):!1};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():
new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection){var d=a;a=a.root}var b=a instanceof CKEDITOR.dom.element;this.rev=d?d.rev:u++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=b?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(d)return CKEDITOR.tools.extend(this._.cache,d._.cache),
this.isFake=d.isFake,this.isLocked=d.isLocked,this;a=this.getNative();var c,e;if(a)if(a.getRangeAt)c=(e=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(e.commonAncestorContainer);else{try{e=a.createRange()}catch(f){}c=e&&CKEDITOR.dom.element.get(e.item&&e.item(0)||e.parentElement())}if(!c||c.type!=CKEDITOR.NODE_ELEMENT&&c.type!=CKEDITOR.NODE_TEXT||!this.root.equals(c)&&!this.root.contains(c))this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=
null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList;return this};var F={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.tools.extend(CKEDITOR.dom.selection,{_removeFillingCharSequenceString:t,_createFillingCharSequenceNode:a,FILLING_CHAR_SEQUENCE:v});CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=
q?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:q?function(){var a=this._.cache;if(a.type)return a.type;var d=CKEDITOR.SELECTION_NONE;try{var b=this.getNative(),c=b.type;"Text"==c&&(d=CKEDITOR.SELECTION_TEXT);"Control"==c&&(d=CKEDITOR.SELECTION_ELEMENT);b.createRange().parentElement()&&(d=CKEDITOR.SELECTION_TEXT)}catch(e){}return a.type=d}:function(){var a=this._.cache;if(a.type)return a.type;var d=CKEDITOR.SELECTION_TEXT,b=this.getNative();if(!b||!b.rangeCount)d=CKEDITOR.SELECTION_NONE;
else if(1==b.rangeCount){var b=b.getRangeAt(0),c=b.startContainer;c==b.endContainer&&1==c.nodeType&&1==b.endOffset-b.startOffset&&F[c.childNodes[b.startOffset].nodeName.toLowerCase()]&&(d=CKEDITOR.SELECTION_ELEMENT)}return a.type=d},getRanges:function(){var a=q?function(){function a(d){return(new CKEDITOR.dom.node(d)).getIndex()}var d=function(d,b){d=d.duplicate();d.collapse(b);var c=d.parentElement();if(!c.hasChildNodes())return{container:c,offset:0};for(var e=c.children,f,h,g=d.duplicate(),k=0,
n=e.length-1,l=-1,m,q;k<=n;)if(l=Math.floor((k+n)/2),f=e[l],g.moveToElementText(f),m=g.compareEndPoints("StartToStart",d),0<m)n=l-1;else if(0>m)k=l+1;else return{container:c,offset:a(f)};if(-1==l||l==e.length-1&&0>m){g.moveToElementText(c);g.setEndPoint("StartToStart",d);g=g.text.replace(/(\r\n|\r)/g,"\n").length;e=c.childNodes;if(!g)return f=e[e.length-1],f.nodeType!=CKEDITOR.NODE_TEXT?{container:c,offset:e.length}:{container:f,offset:f.nodeValue.length};for(c=e.length;0<g&&0<c;)h=e[--c],h.nodeType==
CKEDITOR.NODE_TEXT&&(q=h,g-=h.nodeValue.length);return{container:q,offset:-g}}g.collapse(0<m?!0:!1);g.setEndPoint(0<m?"StartToStart":"EndToStart",d);g=g.text.replace(/(\r\n|\r)/g,"\n").length;if(!g)return{container:c,offset:a(f)+(0<m?0:1)};for(;0<g;)try{h=f[0<m?"previousSibling":"nextSibling"],h.nodeType==CKEDITOR.NODE_TEXT&&(g-=h.nodeValue.length,q=h),f=h}catch(r){return{container:c,offset:a(f)}}return{container:q,offset:0<m?-g:q.nodeValue.length+g}};return function(){var a=this.getNative(),b=a&&
a.createRange(),c=this.getType();if(!a)return[];if(c==CKEDITOR.SELECTION_TEXT)return a=new CKEDITOR.dom.range(this.root),c=d(b,!0),a.setStart(new CKEDITOR.dom.node(c.container),c.offset),c=d(b),a.setEnd(new CKEDITOR.dom.node(c.container),c.offset),a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse(),[a];if(c==CKEDITOR.SELECTION_ELEMENT){for(var c=[],e=0;e<b.length;e++){for(var f=b.item(e),h=f.parentNode,g=0,a=new CKEDITOR.dom.range(this.root);g<
h.childNodes.length&&h.childNodes[g]!=f;g++);a.setStart(new CKEDITOR.dom.node(h),g);a.setEnd(new CKEDITOR.dom.node(h),g+1);c.push(a)}return c}return[]}}():function(){var a=[],d,b=this.getNative();if(!b)return a;for(var c=0;c<b.rangeCount;c++){var e=b.getRangeAt(c);d=new CKEDITOR.dom.range(this.root);d.setStart(new CKEDITOR.dom.node(e.startContainer),e.startOffset);d.setEnd(new CKEDITOR.dom.node(e.endContainer),e.endOffset);a.push(d)}return a};return function(d){var b=this._.cache,c=b.ranges;c||(b.ranges=
c=new CKEDITOR.dom.rangeList(a.call(this)));return d?r(new CKEDITOR.dom.rangeList(c.slice())):c}}(),getStartElement:function(){var a=this._.cache;if(void 0!==a.startElement)return a.startElement;var d;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var b=this.getRanges()[0];if(b){if(b.collapsed)d=b.startContainer,d.type!=CKEDITOR.NODE_ELEMENT&&(d=d.getParent());else{for(b.optimize();d=b.startContainer,b.startOffset==(d.getChildCount?
d.getChildCount():d.getLength())&&!d.isBlockBoundary();)b.setStartAfter(d);d=b.startContainer;if(d.type!=CKEDITOR.NODE_ELEMENT)return d.getParent();if((d=d.getChild(b.startOffset))&&d.type==CKEDITOR.NODE_ELEMENT)for(b=d.getFirst();b&&b.type==CKEDITOR.NODE_ELEMENT;)d=b,b=b.getFirst();else d=b.startContainer}d=d.$}}return a.startElement=d?new CKEDITOR.dom.element(d):null},getSelectedElement:function(){var a=this._.cache;if(void 0!==a.selectedElement)return a.selectedElement;var d=this,b=CKEDITOR.tools.tryThese(function(){return d.getNative().createRange().item(0)},
function(){for(var a=d.getRanges()[0].clone(),b,c,e=2;e&&!((b=a.getEnclosedNode())&&b.type==CKEDITOR.NODE_ELEMENT&&F[b.getName()]&&(c=b));e--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return c&&c.$});return a.selectedElement=b?new CKEDITOR.dom.element(b):null},getSelectedText:function(){var a=this._.cache;if(void 0!==a.selectedText)return a.selectedText;var d=this.getNative(),d=q?"Control"==d.type?"":d.createRange().text:d.toString();return a.selectedText=d},lock:function(){this.getRanges();this.getStartElement();
this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var d=this.getSelectedElement(),b=this.getRanges(),c=this.isFake;this.isLocked=0;this.reset();a&&(a=d||b[0]&&b[0].getCommonAncestor())&&a.getAscendant("body",1)&&(g(b)?k.call(this,b):c?this.fake(d):d?this.selectElement(d):this.selectRanges(b))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection)if(this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;
var d=a._.hiddenSelectionContainer;if(d){var b=a.checkDirty();a.fire("lockSnapshot");d.remove();a.fire("unlockSnapshot");!b&&a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=u++},selectElement:function(a){var d=new CKEDITOR.dom.range(this.root);d.setStartBefore(a);d.setEndAfter(a);this.selectRanges([d])},selectRanges:function(b){var c=this.root.editor,e=c&&c._.hiddenSelectionContainer;this.reset();if(e)for(var e=this.root,f,h=0;h<b.length;++h)f=
b[h],f.endContainer.equals(e)&&(f.endOffset=Math.min(f.endOffset,e.getChildCount()));if(b.length)if(this.isLocked){var l=CKEDITOR.document.getActive();this.unlock();this.selectRanges(b);this.lock();l&&!l.equals(this.root)&&l.focus()}else{var m;a:{var r,t;if(1==b.length&&!(t=b[0]).collapsed&&(m=t.getEnclosedNode())&&m.type==CKEDITOR.NODE_ELEMENT&&(t=t.clone(),t.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(r=t.getEnclosedNode())&&r.type==CKEDITOR.NODE_ELEMENT&&(m=r),"false"==m.getAttribute("contenteditable")))break a;
m=void 0}if(m)this.fake(m);else if(c&&c.plugins.tableselection&&CKEDITOR.plugins.tableselection.isSupportedEnvironment&&g(b)&&!w)k.call(this,b);else{if(q){r=CKEDITOR.dom.walker.whitespaces(!0);m=/\ufeff|\u00a0/;t={table:1,tbody:1,tr:1};1<b.length&&(c=b[b.length-1],b[0].setEnd(c.endContainer,c.endOffset));c=b[0];b=c.collapsed;var u,x,v;if((e=c.getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in F&&(!e.is("a")||!e.getText()))try{v=e.$.createControlRange();v.addElement(e.$);v.select();return}catch(p){}if(c.startContainer.type==
CKEDITOR.NODE_ELEMENT&&c.startContainer.getName()in t||c.endContainer.type==CKEDITOR.NODE_ELEMENT&&c.endContainer.getName()in t)c.shrink(CKEDITOR.NODE_ELEMENT,!0),b=c.collapsed;v=c.createBookmark();t=v.startNode;b||(l=v.endNode);v=c.document.$.body.createTextRange();v.moveToElementText(t.$);v.moveStart("character",1);l?(m=c.document.$.body.createTextRange(),m.moveToElementText(l.$),v.setEndPoint("EndToEnd",m),v.moveEnd("character",-1)):(u=t.getNext(r),x=t.hasAscendant("pre"),u=!(u&&u.getText&&u.getText().match(m))&&
(x||!t.hasPrevious()||t.getPrevious().is&&t.getPrevious().is("br")),x=c.document.createElement("span"),x.setHtml("\x26#65279;"),x.insertBefore(t),u&&c.document.createText("﻿").insertBefore(t));c.setStartBefore(t);t.remove();b?(u?(v.moveStart("character",-1),v.select(),c.document.$.selection.clear()):v.select(),c.moveToPosition(x,CKEDITOR.POSITION_BEFORE_START),x.remove()):(c.setEndBefore(l),l.remove(),v.select())}else{l=this.getNative();if(!l)return;this.removeAllRanges();for(v=0;v<b.length;v++){if(v<
b.length-1&&(u=b[v],x=b[v+1],m=u.clone(),m.setStart(u.endContainer,u.endOffset),m.setEnd(x.startContainer,x.startOffset),!m.collapsed&&(m.shrink(CKEDITOR.NODE_ELEMENT,!0),c=m.getCommonAncestor(),m=m.getEnclosedNode(),c.isReadOnly()||m&&m.isReadOnly()))){x.setStart(u.startContainer,u.startOffset);b.splice(v--,1);continue}c=b[v];x=this.document.$.createRange();c.collapsed&&CKEDITOR.env.webkit&&d(c)&&(m=a(this.root),c.insertNode(m),(u=m.getNext())&&!m.getPrevious()&&u.type==CKEDITOR.NODE_ELEMENT&&"br"==
u.getName()?(n(this.root),c.moveToPosition(u,CKEDITOR.POSITION_BEFORE_START)):c.moveToPosition(m,CKEDITOR.POSITION_AFTER_END));x.setStart(c.startContainer.$,c.startOffset);try{x.setEnd(c.endContainer.$,c.endOffset)}catch(z){if(0<=z.toString().indexOf("NS_ERROR_ILLEGAL_VALUE"))c.collapse(1),x.setEnd(c.endContainer.$,c.endOffset);else throw z;}l.addRange(x)}}this.reset();this.root.fire("selectionchange")}}},fake:function(a,d){var b=this.root.editor;void 0===d&&a.hasAttribute("aria-label")&&(d=a.getAttribute("aria-label"));
this.reset();p(b,d);var c=this._.cache,e=new CKEDITOR.dom.range(this.root);e.setStartBefore(a);e.setEndAfter(a);c.ranges=new CKEDITOR.dom.rangeList(e);c.selectedElement=c.startElement=a;c.type=CKEDITOR.SELECTION_ELEMENT;c.selectedText=c.nativeSel=null;this.isFake=1;this.rev=u++;b._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))},isInTable:function(a){return g(this.getRanges(),
a)},isCollapsed:function(){var a=this.getRanges();return 1===a.length&&a[0].collapsed},createBookmarks:function(a){a=this.getRanges().createBookmarks(a);this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var d=[],b,c=0;c<a.length;c++){var e=new CKEDITOR.dom.range(this.root);e.moveToBookmark(a[c]);d.push(e)}a.isFake&&(b=g(d)?d[0]._getTableElement():d[0].getEnclosedNode(),b&&b.type==
CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),a.isFake=0));a.isFake&&!g(d)?this.fake(b):this.selectRanges(d);return this},getCommonAncestor:function(){var a=this.getRanges();return a.length?a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer):null},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[q?"empty":"removeAllRanges"]()}catch(d){}this.reset()}}}}(),
"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function c(a,d){for(var b,c;(a=a.getParent())&&!a.equals(d);)if(a.getAttribute("data-nostyle"))b=a;else if(!c){var e=a.getAttribute("contentEditable");"false"==e?b=a:"true"==e&&(c=1)}return b}function g(a,d,b,c){return(a.getPosition(d)|c)==c&&(!b.childRule||b.childRule(a))}function f(a){var d=a.document;if(a.collapsed)d=u(this,d),a.insertNode(d),a.moveToPosition(d,CKEDITOR.POSITION_BEFORE_END);else{var b=
this.element,e=this._.definition,h,n=e.ignoreReadonly,l=n||e.includeReadonly;null==l&&(l=a.root.getCustomData("cke_includeReadonly"));var m=CKEDITOR.dtd[b];m||(h=!0,m=CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var q=a.createBookmark(),t=q.startNode,r=q.endNode,v=t,w;if(!n){var p=a.getCommonAncestor(),n=c(t,p),p=c(r,p);n&&(v=n.getNextSourceNode(!0));p&&(r=p)}for(v.getPosition(r)==CKEDITOR.POSITION_FOLLOWING&&(v=0);v;){n=!1;if(v.equals(r))v=null,n=!0;else{var Q=v.type==CKEDITOR.NODE_ELEMENT?
v.getName():null,p=Q&&"false"==v.getAttribute("contentEditable"),z=Q&&v.getAttribute("data-nostyle");if(Q&&v.data("cke-bookmark")){v=v.getNextSourceNode(!0);continue}if(p&&l&&CKEDITOR.dtd.$block[Q])for(var B=v,W=k(B),A=void 0,y=W.length,fa=0,B=y&&new CKEDITOR.dom.range(B.getDocument());fa<y;++fa){var A=W[fa],C=CKEDITOR.filter.instances[A.data("cke-filter")];if(C?C.check(this):1)B.selectNodeContents(A),f.call(this,B)}W=Q?!m[Q]||z?0:p&&!l?0:g(v,r,e,L):1;if(W)if(A=v.getParent(),W=e,y=b,fa=h,!A||!(A.getDtd()||
CKEDITOR.dtd.span)[y]&&!fa||W.parentRule&&!W.parentRule(A))n=!0;else{if(w||Q&&CKEDITOR.dtd.$removeEmpty[Q]&&(v.getPosition(r)|L)!=L||(w=a.clone(),w.setStartBefore(v)),Q=v.type,Q==CKEDITOR.NODE_TEXT||p||Q==CKEDITOR.NODE_ELEMENT&&!v.getChildCount()){for(var Q=v,E;(n=!Q.getNext(I))&&(E=Q.getParent(),m[E.getName()])&&g(E,t,e,K);)Q=E;w.setEndAfter(Q)}}else n=!0;v=v.getNextSourceNode(z||p)}if(n&&w&&!w.collapsed){for(var n=u(this,d),p=n.hasAttributes(),z=w.getCommonAncestor(),Q={},W={},A={},y={},F,ba,H;n&&
z;){if(z.getName()==b){for(F in e.attributes)!y[F]&&(H=z.getAttribute(ba))&&(n.getAttribute(F)==H?W[F]=1:y[F]=1);for(ba in e.styles)!A[ba]&&(H=z.getStyle(ba))&&(n.getStyle(ba)==H?Q[ba]=1:A[ba]=1)}z=z.getParent()}for(F in W)n.removeAttribute(F);for(ba in Q)n.removeStyle(ba);p&&!n.hasAttributes()&&(n=null);n?(w.extractContents().appendTo(n),w.insertNode(n),x.call(this,n),n.mergeSiblings(),CKEDITOR.env.ie||n.$.normalize()):(n=new CKEDITOR.dom.element("span"),w.extractContents().appendTo(n),w.insertNode(n),
x.call(this,n),n.remove(!0));w=null}}a.moveToBookmark(q);a.shrink(CKEDITOR.SHRINK_TEXT);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function e(a){function d(){for(var a=new CKEDITOR.dom.elementPath(c.getParent()),b=new CKEDITOR.dom.elementPath(l.getParent()),e=null,f=null,h=0;h<a.elements.length;h++){var g=a.elements[h];if(g==a.block||g==a.blockLimit)break;m.checkElementRemovable(g,!0)&&(e=g)}for(h=0;h<b.elements.length;h++){g=b.elements[h];if(g==b.block||g==b.blockLimit)break;m.checkElementRemovable(g,!0)&&
(f=g)}f&&l.breakParent(f);e&&c.breakParent(e)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var b=a.createBookmark(),c=b.startNode,e=this._.definition.alwaysRemoveElement;if(a.collapsed){for(var f=new CKEDITOR.dom.elementPath(c.getParent(),a.root),h,g=0,k;g<f.elements.length&&(k=f.elements[g])&&k!=f.block&&k!=f.blockLimit;g++)if(this.checkElementRemovable(k)){var n;!e&&a.collapsed&&(a.checkBoundaryOfElement(k,CKEDITOR.END)||(n=a.checkBoundaryOfElement(k,CKEDITOR.START)))?(h=k,h.match=n?"start":"end"):(k.mergeSiblings(),
k.is(this.element)?p.call(this,k):r(k,w(this)[k.getName()]))}if(h){e=c;for(g=0;;g++){k=f.elements[g];if(k.equals(h))break;else if(k.match)continue;else k=k.clone();k.append(e);e=k}e["start"==h.match?"insertBefore":"insertAfter"](h)}}else{var l=b.endNode,m=this;d();for(f=c;!f.equals(l);)h=f.getNextSourceNode(),f.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(f)&&(f.getName()==this.element?p.call(this,f):r(f,w(this)[f.getName()]),h.type==CKEDITOR.NODE_ELEMENT&&h.contains(c)&&(d(),h=c.getNext())),
f=h}a.moveToBookmark(b);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}function k(a){var d=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return d.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return d}function m(a){var d=a.getEnclosedNode()||a.getCommonAncestor(!1,!0);(a=(new CKEDITOR.dom.elementPath(d,a.root)).contains(this.element,1))&&!a.isReadOnly()&&v(a,this)}function l(a){var d=a.getCommonAncestor(!0,!0);if(a=(new CKEDITOR.dom.elementPath(d,a.root)).contains(this.element,1)){var d=this._.definition,
b=d.attributes;if(b)for(var c in b)a.removeAttribute(c,b[c]);if(d.styles)for(var e in d.styles)d.styles.hasOwnProperty(e)&&a.removeStyle(e)}}function b(a){var b=a.createBookmark(!0),c=a.createIterator();c.enforceRealBlocks=!0;this._.enterMode&&(c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var e,f=a.document,h;e=c.getNextParagraph();)!e.isReadOnly()&&(c.activeFilter?c.activeFilter.check(this):1)&&(h=u(this,f,e),d(e,h));a.moveToBookmark(b)}function h(a){var b=a.createBookmark(1),c=a.createIterator();
c.enforceRealBlocks=!0;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var e,f;e=c.getNextParagraph();)this.checkElementRemovable(e)&&(e.is("pre")?((f=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&e.copyAttributes(f),d(e,f)):p.call(this,e));a.moveToBookmark(b)}function d(d,b){var c=!b;c&&(b=d.getDocument().createElement("div"),d.copyAttributes(b));var e=b&&b.is("pre"),f=d.is("pre"),h=!e&&f;if(e&&!f){f=b;(h=d.getBogus())&&h.remove();
h=d.getHtml();h=n(h,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");h=h.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");h=h.replace(/([ \t\n\r]+|&nbsp;)/g," ");h=h.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var g=d.getDocument().createElement("div");g.append(f);f.$.outerHTML="\x3cpre\x3e"+h+"\x3c/pre\x3e";f.copyAttributes(g.getFirst());f=g.getFirst().remove()}else f.setHtml(h);b=f}else h?b=t(c?[d.getHtml()]:a(d),b):d.moveChildren(b);b.replace(d);if(e){var c=b,k;(k=c.getPrevious(H))&&k.type==CKEDITOR.NODE_ELEMENT&&
k.is("pre")&&(e=n(k.getHtml(),/\n$/,"")+"\n\n"+n(c.getHtml(),/^\n/,""),CKEDITOR.env.ie?c.$.outerHTML="\x3cpre\x3e"+e+"\x3c/pre\x3e":c.setHtml(e),k.remove())}else c&&q(b)}function a(a){var d=[];n(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,d,b){return d+"\x3c/pre\x3e"+b+"\x3cpre\x3e"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,b){d.push(b)});return d}function n(a,d,b){var c="",e="";a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,
function(a,d,b){d&&(c=d);b&&(e=b);return""});return c+a.replace(d,b)+e}function t(a,d){var b;1<a.length&&(b=new CKEDITOR.dom.documentFragment(d.getDocument()));for(var c=0;c<a.length;c++){var e=a[c],e=e.replace(/(\r\n|\r)/g,"\n"),e=n(e,/^[ \t]*\n/,""),e=n(e,/\n$/,""),e=n(e,/^[ \t]+|[ \t]+$/g,function(a,d){return 1==a.length?"\x26nbsp;":d?" "+CKEDITOR.tools.repeat("\x26nbsp;",a.length-1):CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "}),e=e.replace(/\n/g,"\x3cbr\x3e"),e=e.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("\x26nbsp;",
a.length-1)+" "});if(b){var f=d.clone();f.setHtml(e);b.append(f)}else d.setHtml(e)}return b||d}function p(a,d){var b=this._.definition,c=b.attributes,b=b.styles,e=w(this)[a.getName()],f=CKEDITOR.tools.isEmpty(c)&&CKEDITOR.tools.isEmpty(b),h;for(h in c)if("class"!=h&&!this._.definition.fullMatch||a.getAttribute(h)==B(h,c[h]))d&&"data-"==h.slice(0,5)||(f=a.hasAttribute(h),a.removeAttribute(h));for(var g in b)this._.definition.fullMatch&&a.getStyle(g)!=B(g,b[g],!0)||(f=f||!!a.getStyle(g),a.removeStyle(g));
r(a,e,y[a.getName()]);f&&(this._.definition.alwaysRemoveElement?q(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?q(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function x(a){for(var d=w(this),b=a.getElementsByTag(this.element),c,e=b.count();0<=--e;)c=b.getItem(e),c.isReadOnly()||p.call(this,c,!0);for(var f in d)if(f!=this.element)for(b=a.getElementsByTag(f),e=b.count()-1;0<=e;e--)c=b.getItem(e),c.isReadOnly()||r(c,d[f])}function r(a,
d,b){if(d=d&&d.attributes)for(var c=0;c<d.length;c++){var e=d[c][0],f;if(f=a.getAttribute(e)){var h=d[c][1];(null===h||h.test&&h.test(f)||"string"==typeof h&&f==h)&&a.removeAttribute(e)}}b||q(a)}function q(a,d){if(!a.hasAttributes()||d)if(CKEDITOR.dtd.$block[a.getName()]){var b=a.getPrevious(H),c=a.getNext(H);!b||b.type!=CKEDITOR.NODE_TEXT&&b.isBlockBoundary({br:1})||a.append("br",1);!c||c.type!=CKEDITOR.NODE_TEXT&&c.isBlockBoundary({br:1})||a.append("br");a.remove(!0)}else b=a.getFirst(),c=a.getLast(),
a.remove(!0),b&&(b.type==CKEDITOR.NODE_ELEMENT&&b.mergeSiblings(),c&&!b.equals(c)&&c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings())}function u(a,d,b){var c;c=a.element;"*"==c&&(c="span");c=new CKEDITOR.dom.element(c,d);b&&b.copyAttributes(c);c=v(c,a);d.getCustomData("doc_processing_style")&&c.hasAttribute("id")?c.removeAttribute("id"):d.setCustomData("doc_processing_style",1);return c}function v(a,d){var b=d._.definition,c=b.attributes,b=CKEDITOR.style.getStyleText(b);if(c)for(var e in c)a.setAttribute(e,
c[e]);b&&a.setAttribute("style",b);return a}function z(a,d){for(var b in a)a[b]=a[b].replace(G,function(a,b){return d[b]})}function w(a){if(a._.overrides)return a._.overrides;var d=a._.overrides={},b=a._.definition.overrides;if(b){CKEDITOR.tools.isArray(b)||(b=[b]);for(var c=0;c<b.length;c++){var e=b[c],f,h;"string"==typeof e?f=e.toLowerCase():(f=e.element?e.element.toLowerCase():a.element,h=e.attributes);e=d[f]||(d[f]={});if(h){var e=e.attributes=e.attributes||[],g;for(g in h)e.push([g.toLowerCase(),
h[g]])}}}return d}function B(a,d,b){var c=new CKEDITOR.dom.element("span");c[b?"setStyle":"setAttribute"](a,d);return c[b?"getStyle":"getAttribute"](a)}function A(a,d){function b(a,d){return"font-family"==d.toLowerCase()?a.replace(/["']/g,""):a}"string"==typeof a&&(a=CKEDITOR.tools.parseCssText(a));"string"==typeof d&&(d=CKEDITOR.tools.parseCssText(d,!0));for(var c in a)if(!(c in d)||b(d[c],c)!=b(a[c],c)&&"inherit"!=a[c]&&"inherit"!=d[c])return!1;return!0}function C(a,d,b){var c=a.document,e=a.getRanges();
d=d?this.removeFromRange:this.applyToRange;var f,h;if(a.isFake&&a.isInTable())for(f=[],h=0;h<e.length;h++)f.push(e[h].clone());for(var g=e.createIterator();h=g.getNextRange();)d.call(this,h,b);a.selectRanges(f||e);c.removeCustomData("doc_processing_style")}var y={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},F={a:1,blockquote:1,
embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},E=/\s*(?:;\s*|$)/,G=/#\((.+?)\)/g,I=CKEDITOR.dom.walker.bookmark(0,1),H=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(a,d){if("string"==typeof a.type)return new CKEDITOR.style.customHandlers[a.type](a);var b=a.attributes;b&&b.style&&(a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(b.style)),delete b.style);d&&(a=CKEDITOR.tools.clone(a),z(a.attributes,d),z(a.styles,
d));b=this.element=a.element?"string"==typeof a.element?a.element.toLowerCase():a.element:"*";this.type=a.type||(y[b]?CKEDITOR.STYLE_BLOCK:F[b]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT);this._={definition:a}};CKEDITOR.style.prototype={apply:function(a){if(a instanceof CKEDITOR.dom.document)return C.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var d=this._.enterMode;d||(this._.enterMode=a.activeEnterMode);
C.call(this,a.getSelection(),0,a);this._.enterMode=d}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return C.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var d=this._.enterMode;d||(this._.enterMode=a.activeEnterMode);C.call(this,a.getSelection(),1,a);this._.enterMode=d}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?f:this.type==CKEDITOR.STYLE_BLOCK?b:this.type==CKEDITOR.STYLE_OBJECT?m:null;return this.applyToRange(a)},removeFromRange:function(a){this.removeFromRange=
this.type==CKEDITOR.STYLE_INLINE?e:this.type==CKEDITOR.STYLE_BLOCK?h:this.type==CKEDITOR.STYLE_OBJECT?l:null;return this.removeFromRange(a)},applyToObject:function(a){v(a,this)},checkActive:function(a,d){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,!0,d);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var b=a.elements,c=0,e;c<b.length;c++)if(e=b[c],this.type!=CKEDITOR.STYLE_INLINE||e!=a.block&&e!=a.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var f=
e.getName();if(!("string"==typeof this.element?f==this.element:f in this.element))continue}if(this.checkElementRemovable(e,!0,d))return!0}}return!1},checkApplicable:function(a,d,b){d&&d instanceof CKEDITOR.filter&&(b=d);if(b&&!b.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!a.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!a.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(a,d){var b=this._.definition;if(!a||!b.ignoreReadonly&&a.isReadOnly())return!1;
var c=a.getName();if("string"==typeof this.element?c==this.element:c in this.element){if(!d&&!a.hasAttributes())return!0;if(c=b._AC)b=c;else{var c={},e=0,f=b.attributes;if(f)for(var h in f)e++,c[h]=f[h];if(h=CKEDITOR.style.getStyleText(b))c.style||e++,c.style=h;c._length=e;b=b._AC=c}if(b._length){for(var g in b)if("_length"!=g)if(c=a.getAttribute(g)||"","style"==g?A(b[g],c):b[g]==c){if(!d)return!0}else if(d)return!1;if(d)return!0}else return!0}return!1},checkElementRemovable:function(a,d,b){if(this.checkElementMatch(a,
d,b))return!0;if(d=w(this)[a.getName()]){var c;if(!(d=d.attributes))return!0;for(b=0;b<d.length;b++)if(c=d[b][0],c=a.getAttribute(c)){var e=d[b][1];if(null===e)return!0;if("string"==typeof e){if(c==e)return!0}else if(e.test(c))return!0}}return!1},buildPreview:function(a){var d=this._.definition,b=[],c=d.element;"bdo"==c&&(c="span");var b=["\x3c",c],e=d.attributes;if(e)for(var f in e)b.push(" ",f,'\x3d"',e[f],'"');(e=CKEDITOR.style.getStyleText(d))&&b.push(' style\x3d"',e,'"');b.push("\x3e",a||d.name,
"\x3c/",c,"\x3e");return b.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var d=a._ST;if(d)return d;var d=a.styles,b=a.attributes&&a.attributes.style||"",c="";b.length&&(b=b.replace(E,";"));for(var e in d){var f=d[e],h=(e+":"+f).replace(E,";");"inherit"==f?c+=h:b+=h}b.length&&(b=CKEDITOR.tools.normalizeCssText(b,!0));return a._ST=b+c};CKEDITOR.style.customHandlers={};CKEDITOR.style.addCustomHandler=function(a){var d=function(a){this._={definition:a};
this.setup&&this.setup(a)};d.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},a,!0);return this.customHandlers[a.type]=d};var L=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,K=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(c,g){this.requiredContent=this.allowedContent=this.style=c;CKEDITOR.tools.extend(this,g,!0)},
CKEDITOR.styleCommand.prototype.exec=function(c){c.focus();this.state==CKEDITOR.TRISTATE_OFF?c.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&c.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(c,g,f){CKEDITOR.stylesSet.addExternal(c,g,"");CKEDITOR.stylesSet.load(c,f)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(c,
g){var f=this._.styleStateChangeCallbacks;f||(f=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(c){for(var g=0;g<f.length;g++){var m=f[g],l=m.style.checkActive(c.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;m.fn.call(this,l)}}));f.push({style:c,fn:g})},applyStyle:function(c){c.apply(this)},removeStyle:function(c){c.remove(this)},getStylesSet:function(c){if(this._.stylesDefinitions)c(this._.stylesDefinitions);else{var g=this,f=g.config.stylesCombo_stylesSet||g.config.stylesSet;
if(!1===f)c(null);else if(f instanceof Array)g._.stylesDefinitions=f,c(f);else{f||(f="default");var f=f.split(":"),e=f[0];CKEDITOR.stylesSet.addExternal(e,f[1]?f.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(e,function(f){g._.stylesDefinitions=f[e];c(g._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(c,g){"string"==typeof c&&(c=(g?g.$:document).createComment(c));CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,
{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"\x3c!--"+this.$.nodeValue+"--\x3e"}}),"use strict",function(){var c={},g={},f;for(f in CKEDITOR.dtd.$blockLimit)f in CKEDITOR.dtd.$list||(c[f]=1);for(f in CKEDITOR.dtd.$block)f in CKEDITOR.dtd.$blockLimit||f in CKEDITOR.dtd.$empty||(g[f]=1);CKEDITOR.dom.elementPath=function(e,f){var m=null,l=null,b=[],h=e,d;f=f||e.getDocument().getBody();h||(h=f);do if(h.type==CKEDITOR.NODE_ELEMENT){b.push(h);if(!this.lastElement&&(this.lastElement=h,h.is(CKEDITOR.dtd.$object)||
"false"==h.getAttribute("contenteditable")))continue;if(h.equals(f))break;if(!l&&(d=h.getName(),"true"==h.getAttribute("contenteditable")?l=h:!m&&g[d]&&(m=h),c[d])){if(d=!m&&"div"==d){a:{d=h.getChildren();for(var a=0,n=d.count();a<n;a++){var t=d.getItem(a);if(t.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[t.getName()]){d=!0;break a}}d=!1}d=!d}d?m=h:l=h}}while(h=h.getParent());l||(l=f);this.block=m;this.blockLimit=l;this.root=f;this.elements=b}}(),CKEDITOR.dom.elementPath.prototype={compare:function(c){var g=
this.elements;c=c&&c.elements;if(!c||g.length!=c.length)return!1;for(var f=0;f<g.length;f++)if(!g[f].equals(c[f]))return!1;return!0},contains:function(c,g,f){var e=0,k;"string"==typeof c&&(k=function(b){return b.getName()==c});c instanceof CKEDITOR.dom.element?k=function(b){return b.equals(c)}:CKEDITOR.tools.isArray(c)?k=function(b){return-1<CKEDITOR.tools.indexOf(c,b.getName())}:"function"==typeof c?k=c:"object"==typeof c&&(k=function(b){return b.getName()in c});var m=this.elements,l=m.length;g&&
(f?e+=1:--l);f&&(m=Array.prototype.slice.call(m,0),m.reverse());for(;e<l;e++)if(k(m[e]))return m[e];return null},isContextFor:function(c){var g;return c in CKEDITOR.dtd.$block?(g=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!g.getDtd()[c]):!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(c,g){"string"==typeof c&&(c=(g?g.$:document).createTextNode(c));this.$=c},CKEDITOR.dom.text.prototype=
new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(c){this.$.nodeValue=c},split:function(c){var g=this.$.parentNode,f=g.childNodes.length,e=this.getLength(),k=this.getDocument(),m=new CKEDITOR.dom.text(this.$.splitText(c),k);g.childNodes.length==f&&(c>=e?(m=k.createText(""),m.insertAfter(this)):(c=k.createText(""),c.insertAfter(m),c.remove()));
return m},substring:function(c,g){return"number"!=typeof g?this.$.nodeValue.substr(c):this.$.nodeValue.substring(c,g)}}),function(){function c(c,e,g){var m=c.serializable,l=e[g?"endContainer":"startContainer"],b=g?"endOffset":"startOffset",h=m?e.document.getById(c.startNode):c.startNode;c=m?e.document.getById(c.endNode):c.endNode;l.equals(h.getPrevious())?(e.startOffset=e.startOffset-l.getLength()-c.getPrevious().getLength(),l=c.getNext()):l.equals(c.getPrevious())&&(e.startOffset-=l.getLength(),
l=c.getNext());l.equals(h.getParent())&&e[b]++;l.equals(c.getParent())&&e[b]++;e[g?"endContainer":"startContainer"]=l;return e}CKEDITOR.dom.rangeList=function(c){if(c instanceof CKEDITOR.dom.rangeList)return c;c?c instanceof CKEDITOR.dom.range&&(c=[c]):c=[];return CKEDITOR.tools.extend(c,g)};var g={createIterator:function(){var c=this,e=CKEDITOR.dom.walker.bookmark(),g=[],m;return{getNextRange:function(l){m=void 0===m?0:m+1;var b=c[m];if(b&&1<c.length){if(!m)for(var h=c.length-1;0<=h;h--)g.unshift(c[h].createBookmark(!0));
if(l)for(var d=0;c[m+d+1];){var a=b.document;l=0;h=a.getById(g[d].endNode);for(a=a.getById(g[d+1].startNode);;){h=h.getNextSourceNode(!1);if(a.equals(h))l=1;else if(e(h)||h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary())continue;break}if(!l)break;d++}for(b.moveToBookmark(g.shift());d--;)h=c[++m],h.moveToBookmark(g.shift()),b.setEnd(h.endContainer,h.endOffset)}return b}}},createBookmarks:function(f){for(var e=[],g,m=0;m<this.length;m++){e.push(g=this[m].createBookmark(f,!0));for(var l=m+1;l<this.length;l++)this[l]=
c(g,this[l]),this[l]=c(g,this[l],!0)}return e},createBookmarks2:function(c){for(var e=[],g=0;g<this.length;g++)e.push(this[g].createBookmark2(c));return e},moveToBookmarks:function(c){for(var e=0;e<this.length;e++)this[e].moveToBookmark(c[e])}}}(),function(){function c(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function g(d){var a=CKEDITOR.skin["ua_"+d],b=CKEDITOR.env;if(a)for(var a=a.split(",").sort(function(a,d){return a>d?-1:1}),e=0,
f;e<a.length;e++)if(f=a[e],b.ie&&(f.replace(/^ie/,"")==b.version||b.quirks&&"iequirks"==f)&&(f="ie"),b[f]){d+="_"+a[e];break}return CKEDITOR.getUrl(c()+d+".css")}function f(d,a){m[d]||(CKEDITOR.document.appendStyleSheet(g(d)),m[d]=1);a&&a()}function e(d){var a=d.getById(l);a||(a=d.getHead().append("style"),a.setAttribute("id",l),a.setAttribute("type","text/css"));return a}function k(d,a,b){var c,e,f;if(CKEDITOR.env.webkit)for(a=a.split("}").slice(0,-1),e=0;e<a.length;e++)a[e]=a[e].split("{");for(var h=
0;h<d.length;h++)if(CKEDITOR.env.webkit)for(e=0;e<a.length;e++){f=a[e][1];for(c=0;c<b.length;c++)f=f.replace(b[c][0],b[c][1]);d[h].$.sheet.addRule(a[e][0],f)}else{f=a;for(c=0;c<b.length;c++)f=f.replace(b[c][0],b[c][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?d[h].$.styleSheet.cssText+=f:d[h].$.innerHTML+=f}}var m={};CKEDITOR.skin={path:c,loadPart:function(d,a){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c()+"skin.js"),function(){f(d,a)}):f(d,a)},
getPath:function(d){return CKEDITOR.getUrl(g(d))},icons:{},addIcon:function(d,a,b,c){d=d.toLowerCase();this.icons[d]||(this.icons[d]={path:a,offset:b||0,bgsize:c||"16px"})},getIconStyle:function(d,a,b,c,e){var f;d&&(d=d.toLowerCase(),a&&(f=this.icons[d+"-rtl"]),f||(f=this.icons[d]));d=b||f&&f.path||"";c=c||f&&f.offset;e=e||f&&f.bgsize||"16px";d&&(d=d.replace(/'/g,"\\'"));return d&&"background-image:url('"+CKEDITOR.getUrl(d)+"');background-position:0 "+c+"px;background-size:"+e+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,
{getUiColor:function(){return this.uiColor},setUiColor:function(d){var a=e(CKEDITOR.document);return(this.setUiColor=function(d){this.uiColor=d;var c=CKEDITOR.skin.chameleon,e="",f="";"function"==typeof c&&(e=c(this,"editor"),f=c(this,"panel"));d=[[h,d]];k([a],e,d);k(b,f,d)}).call(this,d)}});var l="cke_ui_color",b=[],h=/\$color/g;CKEDITOR.on("instanceLoaded",function(d){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var a=d.editor;d=function(d){d=(d.data[0]||d.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();
if(!d.getById("cke_ui_color")){d=e(d);b.push(d);var c=a.getUiColor();c&&k([d],CKEDITOR.skin.chameleon(a,"panel"),[[h,c]])}};a.on("panelShow",d);a.on("menuShow",d);a.config.uiColor&&a.setUiColor(a.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var c=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"\x3e\x3c/div\x3e',CKEDITOR.document);c.appendTo(CKEDITOR.document.getHead());
try{var g=c.getComputedStyle("border-top-color"),f=c.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!g||g!=f)}catch(e){CKEDITOR.env.hc=!1}c.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(c=CKEDITOR._.pending)for(delete CKEDITOR._.pending,g=0;g<c.length;g++)CKEDITOR.editor.prototype.constructor.apply(c[g][0],c[g][1]),CKEDITOR.add(c[g][0])}(),CKEDITOR.skin.name=
"moono-lisa",CKEDITOR.skin.ua_editor="ie,iequirks,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie8",CKEDITOR.skin.chameleon=function(){var c=function(){return function(c,e){for(var g=c.match(/[^#]./g),m=0;3>m;m++){var l=m,b;b=parseInt(g[m],16);b=("0"+(0>e?0|b*(1+e):0|b+(255-b)*e).toString(16)).slice(-2);g[l]=b}return"#"+g.join("")}}(),g={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_bottom [background-color:{defaultBackground};border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [background-color:{defaultBackground};outline-color:{defaultBorder};] {id} .cke_dialog_tab [background-color:{dialogTab};border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [background-color:{lightBackground};] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} a.cke_button_off:hover,{id} a.cke_button_off:focus,{id} a.cke_button_off:active [background-color:{darkBackground};border-color:{toolbarElementsBorder};] {id} .cke_button_on [background-color:{ckeButtonOn};border-color:{toolbarElementsBorder};] {id} .cke_toolbar_separator,{id} .cke_toolgroup a.cke_button:last-child:after,{id} .cke_toolgroup a.cke_button.cke_button_disabled:hover:last-child:after [background-color: {toolbarElementsBorder};border-color: {toolbarElementsBorder};] {id} a.cke_combo_button:hover,{id} a.cke_combo_button:focus,{id} .cke_combo_on a.cke_combo_button [border-color:{toolbarElementsBorder};background-color:{darkBackground};] {id} .cke_combo:after [border-color:{toolbarElementsBorder};] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover,{id} a.cke_path_item:focus,{id} a.cke_path_item:active [background-color:{darkBackground};] {id}.cke_panel [border-color:{defaultBorder};] "),
panel:new CKEDITOR.template(".cke_panel_grouptitle [background-color:{lightBackground};border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover,.cke_menubutton:focus,.cke_menubutton:active [background-color:{menubuttonHover};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menubutton_disabled:hover .cke_menubutton_icon,.cke_menubutton_disabled:focus .cke_menubutton_icon,.cke_menubutton_disabled:active .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};
return function(f,e){var k=c(f.uiColor,.4),k={id:"."+f.id,defaultBorder:c(k,-.2),toolbarElementsBorder:c(k,-.25),defaultBackground:k,lightBackground:c(k,.8),darkBackground:c(k,-.15),ckeButtonOn:c(k,.4),ckeResizer:c(k,-.4),ckeColorauto:c(k,.8),dialogBody:c(k,.7),dialogTab:c(k,.65),dialogTabSelected:"#FFF",dialogTabSelectedBorder:"#FFF",elementsPathColor:c(k,-.6),menubuttonHover:c(k,.1),menubuttonIcon:c(k,.5),menubuttonIconHover:c(k,.3)};return g[e].output(k).replace(/\[/g,"{").replace(/\]/g,"}")}}(),
CKEDITOR.plugins.add("dialogui",{onLoad:function(){var c=function(b){this._||(this._={});this._["default"]=this._.initValue=b["default"]||"";this._.required=b.required||!1;for(var d=[this._],a=1;a<arguments.length;a++)d.push(arguments[a]);d.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,d);return this._},g={build:function(b,d,a){return new CKEDITOR.ui.dialog.textInput(b,d,a)}},f={build:function(b,d,a){return new CKEDITOR.ui.dialog[d.type](b,d,a)}},e={isChanged:function(){return this.getValue()!=
this.getInitValue()},reset:function(b){this.setValue(this.getInitValue(),b)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},k=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(b,d){this._.domOnChangeRegistered||(b.on("load",function(){this.getInputElement().on("change",function(){b.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},
this)},this),this._.domOnChangeRegistered=!0);this.on("change",d)}},!0),m=/^on([A-Z]\w+)/,l=function(b){for(var d in b)(m.test(d)||"title"==d||"type"==d)&&delete b[d];return b},b=function(b){b=b.data.getKeystroke();b==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):b==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(b,d,a,e){if(!(4>arguments.length)){var f=c.call(this,d);f.labelId=CKEDITOR.tools.getNextId()+
"_label";this._.children=[];var g={role:d.role||"presentation"};d.includeLabel&&(g["aria-labelledby"]=f.labelId);CKEDITOR.ui.dialog.uiElement.call(this,b,d,a,"div",null,g,function(){var a=[],c=d.required?" cke_required":"";"horizontal"!=d.labelLayout?a.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" ',' id\x3d"'+f.labelId+'"',f.inputId?' for\x3d"'+f.inputId+'"':"",(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",d.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"',
d.controlStyle?' style\x3d"'+d.controlStyle+'"':"",' role\x3d"presentation"\x3e',e.call(this,b,d),"\x3c/div\x3e"):(c={type:"hbox",widths:d.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" id\x3d"'+f.labelId+'" for\x3d"'+f.inputId+'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(d.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(d.controlStyle?' style\x3d"'+d.controlStyle+
'"':"")+"\x3e"+e.call(this,b,d)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,c,a));return a.join("")})}},textInput:function(e,d,a){if(!(3>arguments.length)){c.call(this,d);var f=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",g={"class":"cke_dialog_ui_input_"+d.type,id:f,type:d.type};d.validate&&(this.validate=d.validate);d.maxLength&&(g.maxlength=d.maxLength);d.size&&(g.size=d.size);d.inputStyle&&(g.style=d.inputStyle);var k=this,l=!1;e.on("load",function(){k.getInputElement().on("keydown",
function(a){13==a.data.getKeystroke()&&(l=!0)});k.getInputElement().on("keyup",function(a){13==a.data.getKeystroke()&&l&&(e.getButton("ok")&&setTimeout(function(){e.getButton("ok").click()},0),l=!1);k.bidi&&b.call(k,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,e,d,a,function(){var a=['\x3cdiv class\x3d"cke_dialog_ui_input_',d.type,'" role\x3d"presentation"'];d.width&&a.push('style\x3d"width:'+d.width+'" ');a.push("\x3e\x3cinput ");g["aria-labelledby"]=this._.labelId;this._.required&&
(g["aria-required"]=this._.required);for(var b in g)a.push(b+'\x3d"'+g[b]+'" ');a.push(" /\x3e\x3c/div\x3e");return a.join("")})}},textarea:function(e,d,a){if(!(3>arguments.length)){c.call(this,d);var f=this,g=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",k={};d.validate&&(this.validate=d.validate);k.rows=d.rows||5;k.cols=d.cols||20;k["class"]="cke_dialog_ui_input_textarea "+(d["class"]||"");"undefined"!=typeof d.inputStyle&&(k.style=d.inputStyle);d.dir&&(k.dir=d.dir);if(f.bidi)e.on("load",
function(){f.getInputElement().on("keyup",b)},f);CKEDITOR.ui.dialog.labeledElement.call(this,e,d,a,function(){k["aria-labelledby"]=this._.labelId;this._.required&&(k["aria-required"]=this._.required);var a=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',g,'" '],d;for(d in k)a.push(d+'\x3d"'+CKEDITOR.tools.htmlEncode(k[d])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(f._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(b,
d,a){if(!(3>arguments.length)){var e=c.call(this,d,{"default":!!d["default"]});d.validate&&(this.validate=d.validate);CKEDITOR.ui.dialog.uiElement.call(this,b,d,a,"span",null,null,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),c=[],f=CKEDITOR.tools.getNextId()+"_label",g={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":f};l(a);d["default"]&&(g.checked="checked");"undefined"!=typeof a.inputStyle&&(a.style=a.inputStyle);
e.checkbox=new CKEDITOR.ui.dialog.uiElement(b,a,c,"input",null,g);c.push(' \x3clabel id\x3d"',f,'" for\x3d"',g.id,'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(d.label),"\x3c/label\x3e");return c.join("")})}},radio:function(b,d,a){if(!(3>arguments.length)){c.call(this,d);this._["default"]||(this._["default"]=this._.initValue=d.items[0][1]);d.validate&&(this.validate=d.validate);var e=[],f=this;d.role="radiogroup";d.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this,
b,d,a,function(){for(var a=[],c=[],g=(d.id?d.id:CKEDITOR.tools.getNextId())+"_radio",k=0;k<d.items.length;k++){var m=d.items[k],v=void 0!==m[2]?m[2]:m[0],z=void 0!==m[1]?m[1]:m[0],w=CKEDITOR.tools.getNextId()+"_radio_input",B=w+"_label",w=CKEDITOR.tools.extend({},d,{id:w,title:null,type:null},!0),v=CKEDITOR.tools.extend({},w,{title:v},!0),A={type:"radio","class":"cke_dialog_ui_radio_input",name:g,value:z,"aria-labelledby":B},C=[];f._["default"]==z&&(A.checked="checked");l(w);l(v);"undefined"!=typeof w.inputStyle&&
(w.style=w.inputStyle);w.keyboardFocusable=!0;e.push(new CKEDITOR.ui.dialog.uiElement(b,w,C,"input",null,A));C.push(" ");new CKEDITOR.ui.dialog.uiElement(b,v,C,"label",null,{id:B,"for":A.id},m[0]);a.push(C.join(""))}new CKEDITOR.ui.dialog.hbox(b,e,a,c);return c.join("")});this._.children=e}},button:function(b,d,a){if(arguments.length){"function"==typeof d&&(d=d(b.getParentEditor()));c.call(this,d,{disabled:d.disabled||!1});CKEDITOR.event.implementOn(this);var e=this;b.on("load",function(){var a=this.getElement();
(function(){a.on("click",function(a){e.click();a.data.preventDefault()});a.on("keydown",function(a){a.data.getKeystroke()in{32:1}&&(e.click(),a.data.preventDefault())})})();a.unselectable()},this);var f=CKEDITOR.tools.extend({},d);delete f.style;var g=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,b,f,a,"a",null,{style:d.style,href:"javascript:void(0)",title:d.label,hidefocus:"true","class":d["class"],role:"button","aria-labelledby":g},'\x3cspan id\x3d"'+g+'" class\x3d"cke_dialog_ui_button"\x3e'+
CKEDITOR.tools.htmlEncode(d.label)+"\x3c/span\x3e")}},select:function(b,d,a){if(!(3>arguments.length)){var e=c.call(this,d);d.validate&&(this.validate=d.validate);e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,d,a,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),c=[],f=[],g={id:e.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};c.push('\x3cdiv class\x3d"cke_dialog_ui_input_',
d.type,'" role\x3d"presentation"');d.width&&c.push('style\x3d"width:'+d.width+'" ');c.push("\x3e");void 0!==d.size&&(g.size=d.size);void 0!==d.multiple&&(g.multiple=d.multiple);l(a);for(var k=0,m;k<d.items.length&&(m=d.items[k]);k++)f.push('\x3coption value\x3d"',CKEDITOR.tools.htmlEncode(void 0!==m[1]?m[1]:m[0]).replace(/"/g,"\x26quot;"),'" /\x3e ',CKEDITOR.tools.htmlEncode(m[0]));"undefined"!=typeof a.inputStyle&&(a.style=a.inputStyle);e.select=new CKEDITOR.ui.dialog.uiElement(b,a,c,"select",null,
g,f.join(""));c.push("\x3c/div\x3e");return c.join("")})}},file:function(b,d,a){if(!(3>arguments.length)){void 0===d["default"]&&(d["default"]="");var e=CKEDITOR.tools.extend(c.call(this,d),{definition:d,buttons:[]});d.validate&&(this.validate=d.validate);b.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,d,a,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['\x3ciframe frameborder\x3d"0" allowtransparency\x3d"0" class\x3d"cke_dialog_ui_input_file" role\x3d"presentation" id\x3d"',
e.frameId,'" title\x3d"',d.label,'" src\x3d"javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"\x3e\x3c/iframe\x3e');return a.join("")})}},fileButton:function(b,d,a){var e=this;if(!(3>arguments.length)){c.call(this,d);d.validate&&(this.validate=d.validate);var f=CKEDITOR.tools.extend({},d),g=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(a){var c=
d["for"];g&&!1===g.call(this,a)||(b.getContentElement(c[0],c[1]).submit(),this.disable())};b.on("load",function(){b.getContentElement(d["for"][0],d["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,b,f,a)}},html:function(){var b=/^\s*<[\w:]+\s+([^>]*)?>/,d=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,a=/\/$/;return function(c,e,f){if(!(3>arguments.length)){var g=[],k=e.html;"\x3c"!=k.charAt(0)&&(k="\x3cspan\x3e"+k+"\x3c/span\x3e");var l=e.focus;if(l){var m=this.focus;this.focus=function(){("function"==
typeof l?l:m).call(this);this.fire("focus")};e.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,c,e,g,"span",null,null,"");g=g.join("").match(b);k=k.match(d)||["","",""];a.test(k[1])&&(k[1]=k[1].slice(0,-1),k[2]="/"+k[2]);f.push([k[1]," ",g[1]||"",k[2]].join(""))}}}(),fieldset:function(b,d,a,c,e){var f=e.label;this._={children:d};CKEDITOR.ui.dialog.uiElement.call(this,b,e,c,"fieldset",null,null,function(){var d=[];f&&d.push("\x3clegend"+
(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e"+f+"\x3c/legend\x3e");for(var b=0;b<a.length;b++)d.push(a[b]);return d.join("")})}},!0);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(b){var d=CKEDITOR.document.getById(this._.labelId);1>d.getChildCount()?(new CKEDITOR.dom.text(b,CKEDITOR.document)).appendTo(d):d.getChild(0).$.nodeValue=b;return this},getLabel:function(){var b=
CKEDITOR.document.getById(this._.labelId);return!b||1>b.getChildCount()?"":b.getChild(0).getText()},eventProcessors:k},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return this._.disabled?!1:this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var b=this.getElement();b&&b.removeClass("cke_disabled")},disable:function(){this._.disabled=!0;this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},
isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(b,d){this.on("click",function(){d.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},
focus:function(){var b=this.selectParentTab();setTimeout(function(){var d=b.getInputElement();d&&d.$.focus()},0)},select:function(){var b=this.selectParentTab();setTimeout(function(){var d=b.getInputElement();d&&(d.$.focus(),d.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(b){if(this.bidi){var d=b&&b.charAt(0);(d="‪"==d?"ltr":"‫"==d?"rtl":null)&&(b=b.slice(1));this.setDirectionMarker(d)}b||(b="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},
getValue:function(){var b=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&b){var d=this.getDirectionMarker();d&&(b=("ltr"==d?"‪":"‫")+b)}return b},setDirectionMarker:function(b){var d=this.getInputElement();b?d.setAttributes({dir:b,"data-cke-dir-marker":b}):this.getDirectionMarker()&&d.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},e,!0);CKEDITOR.ui.dialog.textarea.prototype=
new CKEDITOR.ui.dialog.textInput;CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(b,d,a){var c=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),e=this.getInputElement().$;c.$.text=b;c.$.value=void 0===d||null===d?b:d;void 0===a||null===a?CKEDITOR.env.ie?e.add(c.$):e.add(c.$,null):e.add(c.$,a);return this},remove:function(b){this.getInputElement().$.remove(b);
return this},clear:function(){for(var b=this.getInputElement().$;0<b.length;)b.remove(0);return this},keyboardFocusable:!0},e,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(b,d){this.getInputElement().$.checked=b;!d&&this.fire("change",{value:b})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(b,
d){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return k.onChange.apply(this,arguments);b.on("load",function(){var a=this._.checkbox.getElement();a.on("propertychange",function(d){d=d.data.$;"checked"==d.propertyName&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",d);return null}},keyboardFocusable:!0},e,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(b,d){for(var a=this._.children,c,e=0;e<a.length&&(c=a[e]);e++)c.getElement().$.checked=
c.getValue()==b;!d&&this.fire("change",{value:b})},getValue:function(){for(var b=this._.children,d=0;d<b.length;d++)if(b[d].getElement().$.checked)return b[d].getValue();return null},accessKeyUp:function(){var b=this._.children,d;for(d=0;d<b.length;d++)if(b[d].getElement().$.checked){b[d].getElement().focus();return}b[0].getElement().focus()},eventProcessors:{onChange:function(b,d){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return k.onChange.apply(this,arguments);b.on("load",function(){for(var a=
this._.children,b=this,d=0;d<a.length;d++)a[d].getElement().on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.$.checked&&b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",d);return null}}},e,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,e,{getInputElement:function(){var b=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<b.$.forms.length?new CKEDITOR.dom.element(b.$.forms[0].elements[0]):
this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(b){var d=/^on([A-Z]\w+)/,a,c=function(a,b,d,c){a.on("formLoaded",function(){a.getInputElement().on(d,c,a)})},e;for(e in b)if(a=e.match(d))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,b[e]):c(this,this._.dialog,a[1].toLowerCase(),b[e]);return this},reset:function(){function b(){a.$.open();
var h="";c.size&&(h=c.size-(CKEDITOR.env.ie?7:0));var m=d.frameId+"_input";a.$.write(['\x3chtml dir\x3d"'+k+'" lang\x3d"'+l+'"\x3e\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d"margin: 0; overflow: hidden; background: transparent;"\x3e','\x3cform enctype\x3d"multipart/form-data" method\x3d"POST" dir\x3d"'+k+'" lang\x3d"'+l+'" action\x3d"',CKEDITOR.tools.htmlEncode(c.action),'"\x3e\x3clabel id\x3d"',d.labelId,'" for\x3d"',m,'" style\x3d"display:none"\x3e',CKEDITOR.tools.htmlEncode(c.label),
'\x3c/label\x3e\x3cinput style\x3d"width:100%" id\x3d"',m,'" aria-labelledby\x3d"',d.labelId,'" type\x3d"file" name\x3d"',CKEDITOR.tools.htmlEncode(c.id||"cke_upload"),'" size\x3d"',CKEDITOR.tools.htmlEncode(0<h?h:""),'" /\x3e\x3c/form\x3e\x3c/body\x3e\x3c/html\x3e\x3cscript\x3e',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+f+");","window.onbeforeunload \x3d function() {window.parent.CKEDITOR.tools.callFunction("+g+")}","\x3c/script\x3e"].join(""));
a.$.close();for(h=0;h<e.length;h++)e[h].enable()}var d=this._,a=CKEDITOR.document.getById(d.frameId).getFrameDocument(),c=d.definition,e=d.buttons,f=this.formLoadedNumber,g=this.formUnloadNumber,k=d.dialog._.editor.lang.dir,l=d.dialog._.editor.langCode;f||(f=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),g=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(f);
CKEDITOR.tools.removeFunction(g)}));CKEDITOR.env.gecko?setTimeout(b,500):b()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(b,d){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0);this.on("change",d)}},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.fileButton.prototype=
new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",g);CKEDITOR.dialog.addUIElement("password",g);CKEDITOR.dialog.addUIElement("textarea",f);CKEDITOR.dialog.addUIElement("checkbox",f);CKEDITOR.dialog.addUIElement("radio",f);CKEDITOR.dialog.addUIElement("button",f);CKEDITOR.dialog.addUIElement("select",f);CKEDITOR.dialog.addUIElement("file",f);CKEDITOR.dialog.addUIElement("fileButton",f);CKEDITOR.dialog.addUIElement("html",
f);CKEDITOR.dialog.addUIElement("fieldset",{build:function(b,d,a){for(var c=d.children,e,f=[],g=[],k=0;k<c.length&&(e=c[k]);k++){var l=[];f.push(l);g.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(b,e,l))}return new CKEDITOR.ui.dialog[d.type](b,g,f,a,d)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function c(){for(var a=this._.tabIdList.length,
b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,d=b-1;d>b-a;d--)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function g(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),d=b+1;d<b+a;d++)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function f(a,b){for(var d=a.$.getElementsByTagName("input"),c=0,e=d.length;c<e;c++){var f=new CKEDITOR.dom.element(d[c]);
"text"==f.getAttribute("type").toLowerCase()&&(b?(f.setAttribute("value",f.getCustomData("fake_value")||""),f.removeCustomData("fake_value")):(f.setCustomData("fake_value",f.getAttribute("value")),f.setAttribute("value","")))}}function e(a,b){var d=this.getInputElement();d&&(a?d.removeAttribute("aria-invalid"):d.setAttribute("aria-invalid",!0));a||(this.select?this.select():this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function k(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}
function m(a){var b=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",r).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode,editorDialogClass:"cke_editor_"+a.name.replace(/\./g,"\\.")+"_dialog",closeTitle:a.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),d=b.getChild([0,0,0,0,0]),c=d.getChild(0),e=d.getChild(1);a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(d);!CKEDITOR.env.ie||CKEDITOR.env.quirks||
CKEDITOR.env.edge||(a="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('\x3ciframe frameBorder\x3d"0" class\x3d"cke_iframe_shim" src\x3d"'+a+'" tabIndex\x3d"-1"\x3e\x3c/iframe\x3e').appendTo(d.getParent()));c.unselectable();e.unselectable();return{element:b,parts:{dialog:b.getChild(0),title:c,close:e,tabs:d.getChild(2),contents:d.getChild([3,0,0,0]),footer:d.getChild([3,0,1,0])}}}function l(a,
b,d){this.element=b;this.focusIndex=d;this.tabIndex=0;this.isFocusable=function(){return!b.getAttribute("disabled")&&b.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};b.on("keydown",function(a){a.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")});b.on("blur",function(){this.fire("mouseout")})}function b(a){function b(){a.layout()}var d=CKEDITOR.document.getWindow();d.on("resize",b);a.on("hide",function(){d.removeListener("resize",
b)})}function h(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function d(a){function b(d){var k=a.getSize(),l=CKEDITOR.document.getWindow().getViewPaneSize(),n=d.data.$.screenX,m=d.data.$.screenY,q=n-c.x,v=m-c.y;c={x:n,y:m};e.x+=q;e.y+=v;a.move(e.x+g[3]<h?-g[3]:e.x-g[1]>l.width-k.width-h?l.width-k.width+("rtl"==f.lang.dir?0:g[1]):e.x,e.y+g[0]<h?-g[0]:e.y-g[2]>l.height-k.height-h?l.height-k.height+g[2]:e.y,1);d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mousemove",
b);CKEDITOR.document.removeListener("mouseup",d);if(CKEDITOR.env.ie6Compat){var a=C.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",d)}}var c=null,e=null,f=a.getParentEditor(),h=f.config.dialog_magnetDistance,g=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof h&&(h=20);a.parts.title.on("mousedown",function(f){c={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);e=a.getPosition();if(CKEDITOR.env.ie6Compat){var h=
C.getChild(0).getFrameDocument();h.on("mousemove",b);h.on("mouseup",d)}f.data.preventDefault()},a)}function a(a){function b(d){var m="rtl"==f.lang.dir,q=n.width,v=n.height,r=q+(d.data.$.screenX-l.x)*(m?-1:1)*(a._.moved?1:2),u=v+(d.data.$.screenY-l.y)*(a._.moved?1:2),w=a._.element.getFirst(),w=m&&w.getComputedStyle("right"),t=a.getPosition();t.y+u>k.height&&(u=k.height-t.y);(m?w:t.x)+r>k.width&&(r=k.width-(m?w:t.x));if(e==CKEDITOR.DIALOG_RESIZE_WIDTH||e==CKEDITOR.DIALOG_RESIZE_BOTH)q=Math.max(c.minWidth||
0,r-h);if(e==CKEDITOR.DIALOG_RESIZE_HEIGHT||e==CKEDITOR.DIALOG_RESIZE_BOTH)v=Math.max(c.minHeight||0,u-g);a.resize(q,v);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",b);m&&(m.remove(),m=null);if(CKEDITOR.env.ie6Compat){var a=C.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",b)}}var c=a.definition,e=c.resizable;if(e!=CKEDITOR.DIALOG_RESIZE_NONE){var f=a.getParentEditor(),
h,g,k,l,n,m,q=CKEDITOR.tools.addFunction(function(c){n=a.getSize();var e=a.parts.contents;e.$.getElementsByTagName("iframe").length&&(m=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%;"\x3e\x3c/div\x3e'),e.append(m));g=n.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));h=n.width-a.parts.contents.getSize("width",1);l={x:c.screenX,y:c.screenY};k=CKEDITOR.document.getWindow().getViewPaneSize();
CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);CKEDITOR.env.ie6Compat&&(e=C.getChild(0).getFrameDocument(),e.on("mousemove",b),e.on("mouseup",d));c.preventDefault&&c.preventDefault()});a.on("load",function(){var b="";e==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":e==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+b+" cke_resizer_"+f.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(f.lang.common.resize)+
'" onmousedown\x3d"CKEDITOR.tools.callFunction('+q+', event )"\x3e'+("ltr"==f.lang.dir?"◢":"◣")+"\x3c/div\x3e");a.parts.footer.append(b,1)});f.on("destroy",function(){CKEDITOR.tools.removeFunction(q)})}}function n(a){a.data.preventDefault(1)}function t(a){var b=CKEDITOR.document.getWindow(),d=a.config,c=CKEDITOR.skinName||a.config.skin,e=d.dialog_backgroundCoverColor||("moono-lisa"==c?"black":"white"),c=d.dialog_backgroundCoverOpacity,f=d.baseFloatZIndex,d=CKEDITOR.tools.genKey(e,c,f),h=A[d];h?h.show():
(f=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",f,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+e,'" class\x3d"cke_dialog_background_cover"\x3e'],CKEDITOR.env.ie6Compat&&(e="\x3chtml\x3e\x3cbody style\x3d\\'background-color:"+e+";\\'\x3e\x3c/body\x3e\x3c/html\x3e",f.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),f.push("void((function(){"+encodeURIComponent("document.open();("+
CKEDITOR.tools.fixDomain+")();document.write( '"+e+"' );document.close();")+"})())"),f.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')),f.push("\x3c/div\x3e"),h=CKEDITOR.dom.element.createFromHtml(f.join("")),h.setOpacity(void 0!==c?c:.5),h.on("keydown",n),h.on("keypress",n),h.on("keyup",n),h.appendTo(CKEDITOR.document.getBody()),A[d]=h);a.focusManager.add(h);C=h;a=function(){var a=b.getViewPaneSize();
h.setStyles({width:a.width+"px",height:a.height+"px"})};var g=function(){var a=b.getScrollPosition(),d=CKEDITOR.dialog._.currentTop;h.setStyles({left:a.x+"px",top:a.y+"px"});if(d){do a=d.getPosition(),d.move(a.x,a.y);while(d=d._.parentDialog)}};B=a;b.on("resize",a);a();CKEDITOR.env.mac&&CKEDITOR.env.webkit||h.focus();if(CKEDITOR.env.ie6Compat){var k=function(){g();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){k.prevScrollHandler=window.onscroll||function(){};
window.onscroll=k},0);g()}}function p(a){C&&(a.focusManager.remove(C),a=CKEDITOR.document.getWindow(),C.hide(),a.removeListener("resize",B),CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),B=null)}var x=CKEDITOR.tools.cssLength,r='\x3cdiv class\x3d"cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"dialog" aria-labelledby\x3d"cke_dialog_title_{id}"\x3e\x3ctable class\x3d"cke_dialog '+
CKEDITOR.env.cssClass+' cke_{langDir}" style\x3d"position:absolute" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_dialog_body" role\x3d"presentation"\x3e\x3cdiv id\x3d"cke_dialog_title_{id}" class\x3d"cke_dialog_title" role\x3d"presentation"\x3e\x3c/div\x3e\x3ca id\x3d"cke_dialog_close_button_{id}" class\x3d"cke_dialog_close_button" href\x3d"javascript:void(0)" title\x3d"{closeTitle}" role\x3d"button"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e\x3cdiv id\x3d"cke_dialog_tabs_{id}" class\x3d"cke_dialog_tabs" role\x3d"tablist"\x3e\x3c/div\x3e\x3ctable class\x3d"cke_dialog_contents" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_contents_{id}" class\x3d"cke_dialog_contents_body" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_footer_{id}" class\x3d"cke_dialog_footer" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e';
CKEDITOR.dialog=function(b,f){function h(){var a=y._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,d=0;d<b;d++)a[d].focusIndex=d}function l(a){var b=y._.focusList;a=a||0;if(!(1>b.length)){var d=y._.currentFocusIndex;y._.tabBarMode&&0>a&&(d=0);try{b[d].getInputElement().$.blur()}catch(c){}var e=d,f=1<y._.pageCount;do{e+=a;if(f&&!y._.tabBarMode&&(e==b.length||-1==e)){y._.tabBarMode=!0;y._.tabs[y._.currentTabId][0].focus();
y._.currentFocusIndex=-1;return}e=(e+b.length)%b.length;if(e==d)break}while(a&&!b[e].isFocusable());b[e].focus();"text"==b[e].type&&b[e].select()}}function n(a){if(y==CKEDITOR.dialog._.currentTop){var d=a.data.getKeystroke(),e="rtl"==b.lang.dir,f=[37,38,39,40];B=p=0;if(9==d||d==CKEDITOR.SHIFT+9)l(d==CKEDITOR.SHIFT+9?-1:1),B=1;else if(d==CKEDITOR.ALT+121&&!y._.tabBarMode&&1<y.getPageCount())y._.tabBarMode=!0,y._.tabs[y._.currentTabId][0].focus(),y._.currentFocusIndex=-1,B=1;else if(-1!=CKEDITOR.tools.indexOf(f,
d)&&y._.tabBarMode)d=-1!=CKEDITOR.tools.indexOf([e?39:37,38],d)?c.call(y):g.call(y),y.selectPage(d),y._.tabs[d][0].focus(),B=1;else if(13!=d&&32!=d||!y._.tabBarMode)if(13==d)d=a.data.getTarget(),d.is("a","button","select","textarea")||d.is("input")&&"button"==d.$.type||((d=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(d.click,0,d),B=1),p=1;else if(27==d)(d=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(d.click,0,d):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),p=1;else return;else this.selectPage(this._.currentTabId),
this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1),B=1;v(a)}}function v(a){B?a.data.preventDefault(1):p&&a.data.stopPropagation()}var r=CKEDITOR.dialog._.dialogDefinitions[f],u=CKEDITOR.tools.clone(q),t=b.config.dialog_buttonsOrder||"OS",x=b.lang.dir,z={},B,p;("OS"==t&&CKEDITOR.env.mac||"rtl"==t&&"ltr"==x||"ltr"==t&&"rtl"==x)&&u.buttons.reverse();r=CKEDITOR.tools.extend(r(b),u);r=CKEDITOR.tools.clone(r);r=new w(this,r);u=m(b);this._={editor:b,element:u.element,name:f,contentSize:{width:0,height:0},
size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1};this.parts=u.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);u={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};u["rtl"==x?"right":"left"]=0;this.parts.dialog.setStyles(u);CKEDITOR.event.call(this);this.definition=r=CKEDITOR.fire("dialogDefinition",
{name:f,definition:r},b).definition;if(!("removeDialogTabs"in b._)&&b.config.removeDialogTabs){u=b.config.removeDialogTabs.split(";");for(x=0;x<u.length;x++)if(t=u[x].split(":"),2==t.length){var A=t[0];z[A]||(z[A]=[]);z[A].push(t[1])}b._.removeDialogTabs=z}if(b._.removeDialogTabs&&(z=b._.removeDialogTabs[f]))for(x=0;x<z.length;x++)r.removeContents(z[x]);if(r.onLoad)this.on("load",r.onLoad);if(r.onShow)this.on("show",r.onShow);if(r.onHide)this.on("hide",r.onHide);if(r.onOk)this.on("ok",function(a){b.fire("saveSnapshot");
setTimeout(function(){b.fire("saveSnapshot")},0);!1===r.onOk.call(this,a)&&(a.data.hide=!1)});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(r.onCancel)this.on("cancel",function(a){!1===r.onCancel.call(this,a)&&(a.data.hide=!1)});var y=this,Q=function(a){var b=y._.contents,d=!1,c;for(c in b)for(var e in b[c])if(d=a.call(this,b[c][e]))return};this.on("ok",function(a){Q(function(b){if(b.validate){var d=b.validate(this),c="string"==typeof d||!1===d;c&&(a.data.hide=!1,a.stop());e.call(b,!c,"string"==typeof d?
d:void 0);return c}})},this,null,0);this.on("cancel",function(a){Q(function(d){if(d.isChanged())return b.config.dialog_noConfirmCancel||confirm(b.lang.common.confirmCancel)||(a.data.hide=!1),!0})},this,null,0);this.parts.close.on("click",function(a){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide();a.data.preventDefault()},this);this.changeFocus=l;var X=this._.element;b.focusManager.add(X,1);this.on("show",function(){X.on("keydown",n,this);if(CKEDITOR.env.gecko)X.on("keypress",v,this)});this.on("hide",
function(){X.removeListener("keydown",n);CKEDITOR.env.gecko&&X.removeListener("keypress",v);Q(function(a){k.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",n,this,null,0)});this.on("show",function(){h();var a=1<y._.pageCount;b.config.dialog_startupFocusTab&&a?(y._.tabBarMode=!0,y._.tabs[y._.currentTabId][0].focus(),y._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=a?-1:this._.focusList.length-1,r.onFocus?
(a=r.onFocus.call(this))&&a.focus():l(1))},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},this);d(this);a(this);(new CKEDITOR.dom.text(r.title,CKEDITOR.document)).appendTo(this.parts.title);for(x=0;x<r.contents.length;x++)(z=r.contents[x])&&this.addPage(z);this.parts.tabs.on("click",function(a){var b=a.data.getTarget();b.hasClass("cke_dialog_tab")&&(b=b.$.id,this.selectPage(b.substring(4,b.lastIndexOf("_"))),
this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1)),a.data.preventDefault())},this);x=[];z=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:r.buttons},x).getChild();this.parts.footer.setHtml(x.join(""));for(x=0;x<z.length;x++)this._.buttons[z[x].id]=z[x]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(a,b){this._.contentSize&&this._.contentSize.width==
a&&this._.contentSize.height==b||(CKEDITOR.dialog.fire("resize",{dialog:this,width:a,height:b},this._.editor),this.fire("resize",{width:a,height:b},this._.editor),this.parts.contents.setStyles({width:a+"px",height:b+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:a,height:b})}}(),getSize:function(){var a=this._.element.getFirst();
return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||0}},move:function(a,b,d){var c=this._.element.getFirst(),e="rtl"==this._.editor.lang.dir,f="fixed"==c.getComputedStyle("position");CKEDITOR.env.ie&&c.setStyle("zoom","100%");f&&this._.position&&this._.position.x==a&&this._.position.y==b||(this._.position={x:a,y:b},f||(f=CKEDITOR.document.getWindow().getScrollPosition(),a+=f.x,b+=f.y),e&&(f=this.getSize(),a=CKEDITOR.document.getWindow().getViewPaneSize().width-f.width-a),b={top:(0<b?b:0)+"px"},
b[e?"right":"left"]=(0<a?a:0)+"px",c.setStyles(b),d&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,d=this.definition;a.getParent()&&a.getParent().equals(CKEDITOR.document.getBody())?a.setStyle("display","block"):a.appendTo(CKEDITOR.document.getBody());this.resize(this._.contentSize&&this._.contentSize.width||d.width||d.minWidth,this._.contentSize&&this._.contentSize.height||d.height||d.minHeight);this.reset();null===
this._.currentTabId&&this.selectPage(this.definition.contents[0].id);null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,t(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/
2),CKEDITOR.dialog._.currentTop=this);a.on("keydown",F);a.on("keyup",E);this._.hasFocus=!1;for(var c in d.contents)if(d.contents[c]){var a=d.contents[c],e=this._.tabs[a.id],f=a.requiredContent,h=0;if(e){for(var g in this._.contents[a.id]){var k=this._.contents[a.id][g];"hbox"!=k.type&&"vbox"!=k.type&&k.getInputElement()&&(k.requiredContent&&!this._.editor.activeFilter.check(k.requiredContent)?k.disable():(k.enable(),h++))}!h||f&&!this._.editor.activeFilter.check(f)?e[0].addClass("cke_dialog_tab_disabled"):
e[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();b(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(a){a.setInitValue&&a.setInitValue()})},100,this)},layout:function(){var a=this.parts.dialog,b=this.getSize(),d=CKEDITOR.document.getWindow().getViewPaneSize(),c=
(d.width-b.width)/2,e=(d.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(0<e?e:0)>d.height||b.width+(0<c?c:0)>d.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:c,this._.moved?this._.position.y:e)},foreach:function(a){for(var b in this._.contents)for(var d in this._.contents[b])a.call(this,this._.contents[b][d]);return this},reset:function(){var a=function(a){a.reset&&a.reset(1)};return function(){this.foreach(a);return this}}(),
setupContent:function(){var a=arguments;this.foreach(function(b){b.setup&&b.setup.apply(b,a)})},commitContent:function(){var a=arguments;this.foreach(function(b){CKEDITOR.env.ie&&this._.currentFocusIndex==b.focusIndex&&b.getInputElement().$.blur();b.commit&&b.commit.apply(b,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility",
"hidden");for(I(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var b=this._.parentDialog.getElement().getFirst();b.setStyle("z-index",parseInt(b.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else p(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",F);a.removeListener("keyup",E);var d=this._.editor;
d.focus();setTimeout(function(){d.focusManager.unlock();CKEDITOR.env.iOS&&d.window.focus()},0)}delete this._.parentDialog;this.foreach(function(a){a.resetInitValue&&a.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var b=[],d=a.label?' title\x3d"'+CKEDITOR.tools.htmlEncode(a.label)+'"':"",c=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",
children:a.elements,expand:!!a.expand,padding:a.padding,style:a.style||"width: 100%;"},b),e=this._.contents[a.id]={},f=c.getChild(),h=0;c=f.shift();)c.notAllowed||"hbox"==c.type||"vbox"==c.type||h++,e[c.id]=c,"function"==typeof c.getChild&&f.push.apply(f,c.getChild());h||(a.hidden=!0);b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");c=CKEDITOR.env;e="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();d=CKEDITOR.dom.element.createFromHtml(['\x3ca class\x3d"cke_dialog_tab"',
0<this._.pageCount?" cke_last":"cke_first",d,a.hidden?' style\x3d"display:none"':"",' id\x3d"',e,'"',c.gecko&&!c.hc?"":' href\x3d"javascript:void(0)"',' tabIndex\x3d"-1" hidefocus\x3d"true" role\x3d"tab"\x3e',a.label,"\x3c/a\x3e"].join(""));b.setAttribute("aria-labelledby",e);this._.tabs[a.id]=[d,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=d;this.updateStyle();b.setAttribute("name",a.id);b.appendTo(this.parts.contents);d.unselectable();this.parts.tabs.append(d);a.accessKey&&
(G(this,this,"CTRL+"+a.accessKey,L,H),this._.accessKeyMap["CTRL+"+a.accessKey]=a.id)}},selectPage:function(a){if(this._.currentTabId!=a&&!this._.tabs[a][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:a,currentPage:this._.currentTabId})){for(var b in this._.tabs){var d=this._.tabs[b][0],c=this._.tabs[b][1];b!=a&&(d.removeClass("cke_dialog_tab_selected"),c.hide());c.setAttribute("aria-hidden",b!=a)}var e=this._.tabs[a];e[0].addClass("cke_dialog_tab_selected");CKEDITOR.env.ie6Compat||
CKEDITOR.env.ie7Compat?(f(e[1]),e[1].show(),setTimeout(function(){f(e[1],1)},0)):e[1].show();this._.currentTabId=a;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,a)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(a){var b=this._.tabs[a]&&this._.tabs[a][0];b&&1!=this._.pageCount&&b.isVisible()&&(a==this._.currentTabId&&this.selectPage(c.call(this)),b.hide(),this._.pageCount--,this.updateStyle())},showPage:function(a){if(a=
this._.tabs[a]&&this._.tabs[a][0])a.show(),this._.pageCount++,this.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(a,b){var d=this._.contents[a];return d&&d[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},setValueOf:function(a,b,d){return this.getContentElement(a,b).setValue(d)},getButton:function(a){return this._.buttons[a]},click:function(a){return this._.buttons[a].click()},disableButton:function(a){return this._.buttons[a].disable()},
enableButton:function(a){return this._.buttons[a].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,b){if("undefined"==typeof b)b=this._.focusList.length,this._.focusList.push(new l(this,a,b));else{this._.focusList.splice(b,0,new l(this,a,b));for(var d=b+1;d<this._.focusList.length;d++)this._.focusList[d].focusIndex++}},
setState:function(a){if(this.state!=a){this.state=a;if(a==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var b=this.getParentEditor().lang.dir,d={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==b?"right":"left"}};d.styles["margin-"+("rtl"==b?"left":"right")]="8px";this.parts.spinner=CKEDITOR.document.createElement("div",d);this.parts.spinner.setHtml("\x26#8987;");this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show();this.getButton("ok").disable()}else a==
CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",a)}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(a,b){this._.dialogDefinitions[a]&&"function"!=typeof b||(this._.dialogDefinitions[a]=b)},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,b,d){a=a.config.removeDialogTabs;return!(a&&a.match(new RegExp("(?:^|;)"+b+":"+d+"(?:$|;)",
"i")))},okButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;!1!==a.fire("ok",{hide:!0}).hide&&a.hide()}},b,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d,b)},{type:"button"},!0)};return a}(),cancelButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",label:a.lang.common.cancel,
"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;!1!==a.fire("cancel",{hide:!0}).hide&&a.hide()}},b,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d,b)},{type:"button"},!0)};return a}(),addUIElement:function(a,b){this._.uiElementBuilders[a]=b}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);
var q={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},u=function(a,b,d){for(var c=0,e;e=a[c];c++)if(e.id==b||d&&e[d]&&(e=u(e[d],b,d)))return e;return null},v=function(a,b,d,c,e){if(d){for(var f=0,h;h=a[f];f++){if(h.id==d)return a.splice(f,0,b),b;if(c&&h[c]&&(h=v(h[c],b,d,c,!0)))return h}if(e)return null}a.push(b);return b},z=function(a,b,d){for(var c=0,e;e=a[c];c++){if(e.id==b)return a.splice(c,1);if(d&&e[d]&&(e=z(e[d],
b,d)))return e}return null},w=function(a,b){this.dialog=a;for(var d=b.contents,c=0,e;e=d[c];c++)d[c]=e&&new h(a,e);CKEDITOR.tools.extend(this,b)};w.prototype={getContents:function(a){return u(this.contents,a)},getButton:function(a){return u(this.buttons,a)},addContents:function(a,b){return v(this.contents,a,b)},addButton:function(a,b){return v(this.buttons,a,b)},removeContents:function(a){z(this.contents,a)},removeButton:function(a){z(this.buttons,a)}};h.prototype={get:function(a){return u(this.elements,
a,"children")},add:function(a,b){return v(this.elements,a,b,"children")},remove:function(a){z(this.elements,a,"children")}};var B,A={},C,y={},F=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,c=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);(b=y[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+e])&&b.length&&(b=b[b.length-1],b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key),a.data.preventDefault())},E=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,
c=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);(b=y[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+e])&&b.length&&(b=b[b.length-1],b.keyup&&(b.keyup.call(b.uiElement,b.dialog,b.key),a.data.preventDefault()))},G=function(a,b,d,c,e){(y[d]||(y[d]=[])).push({uiElement:a,dialog:b,key:d,keyup:e||a.accessKeyUp,keydown:c||a.accessKeyDown})},I=function(a){for(var b in y){for(var d=y[b],c=d.length-1;0<=c;c--)d[c].dialog!=a&&d[c].uiElement!=a||d.splice(c,1);0===d.length&&delete y[b]}},H=function(a,
b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])},L=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,d,c,e,f,h){if(!(4>arguments.length)){var g=(c.call?c(b):c)||"div",k=["\x3c",g," "],l=(e&&e.call?e(b):e)||{},n=(f&&f.call?f(b):f)||{},m=(h&&h.call?h.call(this,a,b):h)||"",q=this.domId=n.id||CKEDITOR.tools.getNextId()+"_uiElement";b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)&&(l.display="none",this.notAllowed=!0);n.id=q;var r={};b.type&&(r["cke_dialog_ui_"+
b.type]=1);b.className&&(r[b.className]=1);b.disabled&&(r.cke_disabled=1);for(var v=n["class"]&&n["class"].split?n["class"].split(" "):[],q=0;q<v.length;q++)v[q]&&(r[v[q]]=1);v=[];for(q in r)v.push(q);n["class"]=v.join(" ");b.title&&(n.title=b.title);r=(b.style||"").split(";");b.align&&(v=b.align,l["margin-left"]="left"==v?0:"auto",l["margin-right"]="right"==v?0:"auto");for(q in l)r.push(q+":"+l[q]);b.hidden&&r.push("display:none");for(q=r.length-1;0<=q;q--)""===r[q]&&r.splice(q,1);0<r.length&&(n.style=
(n.style?n.style+"; ":"")+r.join("; "));for(q in n)k.push(q+'\x3d"'+CKEDITOR.tools.htmlEncode(n[q])+'" ');k.push("\x3e",m,"\x3c/",g,"\x3e");d.push(k.join(""));(this._||(this._={})).dialog=a;"boolean"==typeof b.isChanged&&(this.isChanged=function(){return b.isChanged});"function"==typeof b.isChanged&&(this.isChanged=b.isChanged);"function"==typeof b.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(d){a.call(this,b.setValue.call(this,d))}}));"function"==typeof b.getValue&&
(this.getValue=CKEDITOR.tools.override(this.getValue,function(a){return function(){return b.getValue.call(this,a.call(this))}}));CKEDITOR.event.implementOn(this);this.registerEvents(b);this.accessKeyUp&&this.accessKeyDown&&b.accessKey&&G(this,a,"CTRL+"+b.accessKey);var u=this;a.on("load",function(){var b=u.getInputElement();if(b){var d=u.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=!1;a._.hasFocus=!0;u.fire("focus");
d&&this.addClass(d)});b.on("blur",function(){u.fire("blur");d&&this.removeClass(d)})}});CKEDITOR.tools.extend(this,b);this.keyboardFocusable&&(this.tabIndex=b.tabIndex||0,this.focusIndex=a._.focusList.push(this)-1,this.on("focus",function(){a._.currentFocusIndex=u.focusIndex}))}},hbox:function(a,b,d,c,e){if(!(4>arguments.length)){this._||(this._={});var f=this._.children=b,h=e&&e.widths||null,g=e&&e.height||null,k,l={role:"presentation"};e&&e.align&&(l.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,
a,e||{type:"hbox"},c,"table",{},l,function(){var a=['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(k=0;k<d.length;k++){var b="cke_dialog_ui_hbox_child",c=[];0===k&&(b="cke_dialog_ui_hbox_first");k==d.length-1&&(b="cke_dialog_ui_hbox_last");a.push('\x3ctd class\x3d"',b,'" role\x3d"presentation" ');h?h[k]&&c.push("width:"+x(h[k])):c.push("width:"+Math.floor(100/d.length)+"%");g&&c.push("height:"+x(g));e&&void 0!==e.padding&&c.push("padding:"+x(e.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&
f[k].align&&c.push("text-align:"+f[k].align);0<c.length&&a.push('style\x3d"'+c.join("; ")+'" ');a.push("\x3e",d[k],"\x3c/td\x3e")}a.push("\x3c/tr\x3e\x3c/tbody\x3e");return a.join("")})}},vbox:function(a,b,d,c,e){if(!(3>arguments.length)){this._||(this._={});var f=this._.children=b,h=e&&e.width||null,g=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},c,"div",null,{role:"presentation"},function(){var b=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];
b.push('style\x3d"');e&&e.expand&&b.push("height:100%;");b.push("width:"+x(h||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align\x3d"',CKEDITOR.tools.htmlEncode(e&&e.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');b.push("\x3e\x3ctbody\x3e");for(var c=0;c<d.length;c++){var k=[];b.push('\x3ctr\x3e\x3ctd role\x3d"presentation" ');h&&k.push("width:"+x(h||"100%"));g?k.push("height:"+x(g[c])):e&&e.expand&&k.push("height:"+Math.floor(100/d.length)+"%");
e&&void 0!==e.padding&&k.push("padding:"+x(e.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&f[c].align&&k.push("text-align:"+f[c].align);0<k.length&&b.push('style\x3d"',k.join("; "),'" ');b.push(' class\x3d"cke_dialog_ui_vbox_child"\x3e',d[c],"\x3c/td\x3e\x3c/tr\x3e")}b.push("\x3c/tbody\x3e\x3c/table\x3e");return b.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},
setValue:function(a,b){this.getInputElement().setValue(a);!b&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var a=this.getInputElement();(a=a.getParent())&&-1==a.$.className.search("cke_dialog_page_contents"););if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();
return this},registerEvents:function(a){var b=/^on([A-Z]\w+)/,d,c=function(a,b,d,c){b.on("load",function(){a.getInputElement().on(d,c,a)})},e;for(e in a)if(d=e.match(b))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):c(this,this._.dialog,d[1].toLowerCase(),a[e]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},
disable:function(){var a=this.getElement();this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return this.isEnabled()&&this.isVisible()?!0:!1}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,
{getChild:function(a){if(1>arguments.length)return this._.children.concat();a.splice||(a=[a]);return 2>a.length?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild?this._.children[a[0]].getChild(a.slice(1,a.length)):null}},!0);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,b,d){for(var c=b.children,e,f=[],h=[],g=0;g<c.length&&(e=c[g]);g++){var k=[];f.push(k);h.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,k))}return new CKEDITOR.ui.dialog[b.type](a,
h,f,d,b)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,b){this.dialogName=a;CKEDITOR.tools.extend(this,b,!0)};CKEDITOR.dialogCommand.prototype={exec:function(a){var b=this.tabId;a.openDialog(this.dialogName,function(a){b&&a.selectPage(b)})},canUndo:!1,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,d=/^\d*(?:\.\d+)?$/,c=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,
f=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var a=arguments;return function(){var b=this&&this.getValue?this.getValue():a[0],d,c=CKEDITOR.VALIDATE_AND,e=[],f;for(f=0;f<a.length;f++)if("function"==typeof a[f])e.push(a[f]);else break;f<a.length&&"string"==typeof a[f]&&(d=a[f],f++);f<a.length&&"number"==typeof a[f]&&(c=a[f]);var h=c==CKEDITOR.VALIDATE_AND?!0:!1;for(f=0;f<e.length;f++)h=c==CKEDITOR.VALIDATE_AND?h&&
e[f](b):h||e[f](b);return h?!0:d}},regex:function(a,b){return function(d){d=this&&this.getValue?this.getValue():d;return a.test(d)?!0:b}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b,a)},number:function(a){return this.regex(d,a)},cssLength:function(a){return this.functions(function(a){return e.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return c.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return f.test(CKEDITOR.tools.trim(a))},
a)},equals:function(a,b){return this.functions(function(b){return b==a},b)},notEqual:function(a,b){return this.functions(function(b){return b!=a},b)}};CKEDITOR.on("instanceDestroyed",function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var b;b=CKEDITOR.dialog._.currentTop;)b.hide();for(var d in A)A[d].remove();A={}}a=a.editor._.storedDialogs;for(var c in a)a[c].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var d=null,c=CKEDITOR.dialog._.dialogDefinitions[a];
null===CKEDITOR.dialog._.currentTop&&t(this);if("function"==typeof c)d=this._.storedDialogs||(this._.storedDialogs={}),d=d[a]||(d[a]=new CKEDITOR.dialog(this,a)),b&&b.call(d,d),d.show();else{if("failed"==c)throw p(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');"string"==typeof c&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[a]&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,
b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return d}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(c){c.on("doubleclick",function(g){g.data.dialog&&c.openDialog(g.data.dialog)},null,null,999)}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,
ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(c){var g=this;c.addCommand("a11yHelp",{exec:function(){var f=c.langCode,f=g.availableLangs[f]?f:g.availableLangs[f.replace(/-.*/,"")]?f.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(g.path+"dialogs/lang/"+f+".js"),function(){c.lang.a11yhelp=g.langEntries[f];c.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},
readOnly:1,canUndo:!1});c.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");c.on("ariaEditorHelpLabel",function(f){f.data.label=c.lang.common.editorHelp})}})}(),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(c){var g=c.addCommand("about",new CKEDITOR.dialogCommand("about"));g.modes={wysiwyg:1,source:1};g.canUndo=!1;g.readOnly=1;c.ui.addButton&&c.ui.addButton("About",{label:c.lang.about.dlgTitle,command:"about",toolbar:"about"});
CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),"use strict",function(){function c(c){function f(){m=c.document;l=m[CKEDITOR.env.ie?"getBody":"getDocumentElement"]();b=CKEDITOR.env.quirks?m.getBody():m.getDocumentElement();var a=CKEDITOR.env.quirks?b:b.findOne("body");a&&(a.setStyle("height","auto"),a.setStyle("min-height",CKEDITOR.env.safari?"0%":"auto"));h=CKEDITOR.dom.element.createFromHtml('\x3cspan style\x3d"margin:0;padding:0;border:0;clear:both;width:1px;height:1px;display:block;"\x3e'+
(CKEDITOR.env.webkit?"\x26nbsp;":"")+"\x3c/span\x3e",m)}function e(){t&&b.setStyle("overflow-y","hidden");var e=c.window.getViewPaneSize().height,f;l.append(h);f=h.getDocumentPosition(m).y+h.$.offsetHeight;h.remove();f+=d;f=Math.max(f,a);f=Math.min(f,n);f!=e&&k!=f&&(f=c.fire("autoGrow",{currentHeight:e,newHeight:f}).newHeight,c.resize(c.container.getStyle("width"),f,!0),k=f);t||(f<n&&b.$.scrollHeight>b.$.clientHeight?b.setStyle("overflow-y","hidden"):b.removeStyle("overflow-y"))}var k,m,l,b,h,d=c.config.autoGrow_bottomSpace||
0,a=void 0!==c.config.autoGrow_minHeight?c.config.autoGrow_minHeight:200,n=c.config.autoGrow_maxHeight||Infinity,t=!c.config.autoGrow_maxHeight;c.addCommand("autogrow",{exec:e,modes:{wysiwyg:1},readOnly:1,canUndo:!1,editorFocus:!1});var p={contentDom:1,key:1,selectionChange:1,insertElement:1,mode:1},x;for(x in p)c.on(x,function(a){"wysiwyg"==a.editor.mode&&setTimeout(function(){var a=c.getCommand("maximize");!c.window||a&&a.state==CKEDITOR.TRISTATE_ON?k=null:(e(),t||e())},100)});c.on("afterCommandExec",
function(a){"maximize"==a.data.name&&"wysiwyg"==a.editor.mode&&(a.data.command.state==CKEDITOR.TRISTATE_ON?b.removeStyle("overflow-y"):e())});c.on("contentDom",f);f();c.config.autoGrow_onStartup&&c.editable().isVisible()&&c.execCommand("autogrow")}CKEDITOR.plugins.add("autogrow",{init:function(g){if(g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE)g.on("instanceReady",function(){g.editable().isInline()?g.ui.space("contents").setStyle("height","auto"):c(g)})}})}(),CKEDITOR.plugins.add("basicstyles",{init:function(c){var g=
0,f=function(f,b,h,d){if(d){d=new CKEDITOR.style(d);var a=e[h];a.unshift(d);c.attachStyleStateChange(d,function(a){!c.readOnly&&c.getCommand(h).setState(a)});c.addCommand(h,new CKEDITOR.styleCommand(d,{contentForms:a}));c.ui.addButton&&c.ui.addButton(f,{label:b,command:h,toolbar:"basicstyles,"+(g+=10)})}},e={bold:["strong","b",["span",function(c){c=c.styles["font-weight"];return"bold"==c||700<=+c}]],italic:["em","i",["span",function(c){return"italic"==c.styles["font-style"]}]],underline:["u",["span",
function(c){return"underline"==c.styles["text-decoration"]}]],strike:["s","strike",["span",function(c){return"line-through"==c.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},k=c.config,m=c.lang.basicstyles;f("Bold",m.bold,"bold",k.coreStyles_bold);f("Italic",m.italic,"italic",k.coreStyles_italic);f("Underline",m.underline,"underline",k.coreStyles_underline);f("Strike",m.strike,"strike",k.coreStyles_strike);f("Subscript",m.subscript,"subscript",k.coreStyles_subscript);f("Superscript",
m.superscript,"superscript",k.coreStyles_superscript);c.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},
function(){var c={exec:function(c){var f=c.getCommand("blockquote").state,e=c.getSelection(),k=e&&e.getRanges()[0];if(k){var m=e.createBookmarks();if(CKEDITOR.env.ie){var l=m[0].startNode,b=m[0].endNode,h;if(l&&"blockquote"==l.getParent().getName())for(h=l;h=h.getNext();)if(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary()){l.move(h,!0);break}if(b&&"blockquote"==b.getParent().getName())for(h=b;h=h.getPrevious();)if(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary()){b.move(h);break}}var d=k.createIterator();
d.enlargeBr=c.config.enterMode!=CKEDITOR.ENTER_BR;if(f==CKEDITOR.TRISTATE_OFF){for(l=[];f=d.getNextParagraph();)l.push(f);1>l.length&&(f=c.document.createElement(c.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),b=m.shift(),k.insertNode(f),f.append(new CKEDITOR.dom.text("﻿",c.document)),k.moveToBookmark(b),k.selectNodeContents(f),k.collapse(!0),b=k.createBookmark(),l.push(f),m.unshift(b));h=l[0].getParent();k=[];for(b=0;b<l.length;b++)f=l[b],h=h.getCommonAncestor(f.getParent());for(f={table:1,tbody:1,
tr:1,ol:1,ul:1};f[h.getName()];)h=h.getParent();for(b=null;0<l.length;){for(f=l.shift();!f.getParent().equals(h);)f=f.getParent();f.equals(b)||k.push(f);b=f}for(;0<k.length;)if(f=k.shift(),"blockquote"==f.getName()){for(b=new CKEDITOR.dom.documentFragment(c.document);f.getFirst();)b.append(f.getFirst().remove()),l.push(b.getLast());b.replace(f)}else l.push(f);k=c.document.createElement("blockquote");for(k.insertBefore(l[0]);0<l.length;)f=l.shift(),k.append(f)}else if(f==CKEDITOR.TRISTATE_ON){b=[];
for(h={};f=d.getNextParagraph();){for(l=k=null;f.getParent();){if("blockquote"==f.getParent().getName()){k=f.getParent();l=f;break}f=f.getParent()}k&&l&&!l.getCustomData("blockquote_moveout")&&(b.push(l),CKEDITOR.dom.element.setMarker(h,l,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(h);f=[];l=[];for(h={};0<b.length;)d=b.shift(),k=d.getParent(),d.getPrevious()?d.getNext()?(d.breakParent(d.getParent()),l.push(d.getNext())):d.remove().insertAfter(k):d.remove().insertBefore(k),k.getCustomData("blockquote_processed")||
(l.push(k),CKEDITOR.dom.element.setMarker(h,k,"blockquote_processed",!0)),f.push(d);CKEDITOR.dom.element.clearAllMarkers(h);for(b=l.length-1;0<=b;b--){k=l[b];a:{h=k;for(var d=0,a=h.getChildCount(),n=void 0;d<a&&(n=h.getChild(d));d++)if(n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()){h=!1;break a}h=!0}h&&k.remove()}if(c.config.enterMode==CKEDITOR.ENTER_BR)for(k=!0;f.length;)if(d=f.shift(),"div"==d.getName()){b=new CKEDITOR.dom.documentFragment(c.document);!k||!d.getPrevious()||d.getPrevious().type==
CKEDITOR.NODE_ELEMENT&&d.getPrevious().isBlockBoundary()||b.append(c.document.createElement("br"));for(k=d.getNext()&&!(d.getNext().type==CKEDITOR.NODE_ELEMENT&&d.getNext().isBlockBoundary());d.getFirst();)d.getFirst().remove().appendTo(b);k&&b.append(c.document.createElement("br"));b.replace(d);k=!1}}e.selectBookmarks(m);c.focus()}},refresh:function(c,f){this.setState(c.elementPath(f.block||f.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",
requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(g){g.blockless||(g.addCommand("blockquote",c),g.ui.addButton&&g.ui.addButton("Blockquote",{label:g.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})}(),"use strict",function(){function c(c,e){CKEDITOR.tools.extend(this,e,{editor:c,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:c._.notificationArea});e.type||(this.type="info");this.element=this._createElement();c.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}
function g(c){var e=this;this.editor=c;this.notifications=[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,this);c.on("destroy",function(){e._removeListeners();e.element.remove()})}CKEDITOR.plugins.add("notification",{init:function(c){function e(c){var e=new CKEDITOR.dom.element("div");e.setStyles({position:"fixed","margin-left":"-9999px"});e.setAttributes({"aria-live":"assertive",
"aria-atomic":"true"});e.setText(c);CKEDITOR.document.getBody().append(e);setTimeout(function(){e.remove()},100)}c._.notificationArea=new g(c);c.showNotification=function(e,g,l){var b,h;"progress"==g?b=l:h=l;e=new CKEDITOR.plugins.notification(c,{message:e,type:g,progress:b,duration:h});e.show();return e};c.on("key",function(g){if(27==g.data.keyCode){var m=c._.notificationArea.notifications;m.length&&(e(c.lang.notification.closed),m[m.length-1].hide(),g.cancel())}})}});c.prototype={show:function(){!1!==
this.editor.fire("notificationShow",{notification:this})&&(this.area.add(this),this._hideAfterTimeout())},update:function(c){var e=!0;!1===this.editor.fire("notificationUpdate",{notification:this,options:c})&&(e=!1);var g=this.element,m=g.findOne(".cke_notification_message"),l=g.findOne(".cke_notification_progress"),b=c.type;g.removeAttribute("role");c.progress&&"progress"!=this.type&&(b="progress");b&&(g.removeClass(this._getClass()),g.removeAttribute("aria-label"),this.type=b,g.addClass(this._getClass()),
g.setAttribute("aria-label",this.type),"progress"!=this.type||l?"progress"!=this.type&&l&&l.remove():(l=this._createProgressElement(),l.insertBefore(m)));void 0!==c.message&&(this.message=c.message,m.setHtml(this.message));void 0!==c.progress&&(this.progress=c.progress,l&&l.setStyle("width",this._getPercentageProgress()));e&&c.important&&(g.setAttribute("role","alert"),this.isVisible()||this.area.add(this));this.duration=c.duration;this._hideAfterTimeout()},hide:function(){!1!==this.editor.fire("notificationHide",
{notification:this})&&this.area.remove(this)},isVisible:function(){return 0<=CKEDITOR.tools.indexOf(this.area.notifications,this)},_createElement:function(){var c=this,e,g,m=this.editor.lang.common.close;e=new CKEDITOR.dom.element("div");e.addClass("cke_notification");e.addClass(this._getClass());e.setAttributes({id:this.id,role:"alert","aria-label":this.type});"progress"==this.type&&e.append(this._createProgressElement());g=new CKEDITOR.dom.element("p");g.addClass("cke_notification_message");g.setHtml(this.message);
e.append(g);g=CKEDITOR.dom.element.createFromHtml('\x3ca class\x3d"cke_notification_close" href\x3d"javascript:void(0)" title\x3d"'+m+'" role\x3d"button" tabindex\x3d"-1"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e');e.append(g);g.on("click",function(){c.editor.focus();c.hide()});return e},_getClass:function(){return"progress"==this.type?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var c=new CKEDITOR.dom.element("span");c.addClass("cke_notification_progress");
c.setStyle("width",this._getPercentageProgress());return c},_getPercentageProgress:function(){return Math.round(100*(this.progress||0))+"%"},_hideAfterTimeout:function(){var c=this,e;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);if("number"==typeof this.duration)e=this.duration;else if("info"==this.type||"success"==this.type)e="number"==typeof this.editor.config.notification_duration?this.editor.config.notification_duration:5E3;e&&(c._hideTimeoutId=setTimeout(function(){c.hide()},e))}};g.prototype=
{add:function(c){this.notifications.push(c);this.element.append(c.element);1==this.element.getChildCount()&&(CKEDITOR.document.getBody().append(this.element),this._attachListeners());this._layout()},remove:function(c){var e=CKEDITOR.tools.indexOf(this.notifications,c);0>e||(this.notifications.splice(e,1),c.element.remove(),this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var c=this.editor,e=c.config,g=new CKEDITOR.dom.element("div");g.addClass("cke_notifications_area");
g.setAttribute("id","cke_notifications_area_"+c.name);g.setStyle("z-index",e.baseFloatZIndex-2);return g},_attachListeners:function(){var c=CKEDITOR.document.getWindow(),e=this.editor;c.on("scroll",this._uiBuffer.input);c.on("resize",this._uiBuffer.input);e.on("change",this._changeBuffer.input);e.on("floatingSpaceLayout",this._layout,this,null,20);e.on("blur",this._layout,this,null,20)},_removeListeners:function(){var c=CKEDITOR.document.getWindow(),e=this.editor;c.removeListener("scroll",this._uiBuffer.input);
c.removeListener("resize",this._uiBuffer.input);e.removeListener("change",this._changeBuffer.input);e.removeListener("floatingSpaceLayout",this._layout);e.removeListener("blur",this._layout)},_layout:function(){function c(){e.setStyle("left",u(v+m.width-n-t))}var e=this.element,g=this.editor,m=g.ui.contentsElement.getClientRect(),l=g.ui.contentsElement.getDocumentPosition(),b,h,d=e.getClientRect(),a,n=this._notificationWidth,t=this._notificationMargin;a=CKEDITOR.document.getWindow();var p=a.getScrollPosition(),
x=a.getViewPaneSize(),r=CKEDITOR.document.getBody(),q=r.getDocumentPosition(),u=CKEDITOR.tools.cssLength;n&&t||(a=this.element.getChild(0),n=this._notificationWidth=a.getClientRect().width,t=this._notificationMargin=parseInt(a.getComputedStyle("margin-left"),10)+parseInt(a.getComputedStyle("margin-right"),10));g.toolbar&&(b=g.ui.space("top"),h=b.getClientRect());b&&b.isVisible()&&h.bottom>m.top&&h.bottom<m.bottom-d.height?e.setStyles({position:"fixed",top:u(h.bottom)}):0<m.top?e.setStyles({position:"absolute",
top:u(l.y)}):l.y+m.height-d.height>p.y?e.setStyles({position:"fixed",top:0}):e.setStyles({position:"absolute",top:u(l.y+m.height-d.height)});var v="fixed"==e.getStyle("position")?m.left:"static"!=r.getComputedStyle("position")?l.x-q.x:l.x;m.width<n+t?l.x+n+t>p.x+x.width?c():e.setStyle("left",u(v)):l.x+n+t>p.x+x.width?e.setStyle("left",u(v)):l.x+m.width/2+n/2+t>p.x+x.width?e.setStyle("left",u(v-l.x+p.x+x.width-n-t)):0>m.left+m.width-n-t?c():0>m.left+m.width/2-n/2?e.setStyle("left",u(v-l.x+p.x)):e.setStyle("left",
u(v+m.width/2-n/2-t/2))}};CKEDITOR.plugins.notification=c}(),function(){var c='\x3ca id\x3d"{id}" class\x3d"cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+' title\x3d"{title}" tabindex\x3d"-1" hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasArrow}" aria-disabled\x3d"{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(c+=
' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(c+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var c=c+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{style}"'),c=c+'\x3e\x26nbsp;\x3c/span\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_button_label cke_button__{name}_label" aria-hidden\x3d"false"\x3e{label}\x3c/span\x3e\x3cspan id\x3d"{id}_description" class\x3d"cke_button_label" aria-hidden\x3d"false"\x3e{ariaShortcut}\x3c/span\x3e{arrowHtml}\x3c/a\x3e',
g=CKEDITOR.addTemplate("buttonArrow",'\x3cspan class\x3d"cke_button_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":"")+"\x3c/span\x3e"),f=CKEDITOR.addTemplate("button",c);CKEDITOR.plugins.add("button",{beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(c){CKEDITOR.tools.extend(this,c,{title:c.label,click:c.click||function(f){f.execCommand(c.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(c){return new CKEDITOR.ui.button(c)}};
CKEDITOR.ui.button.prototype={render:function(c,k){function m(){var a=c.mode;a&&(a=this.modes[a]?void 0!==u[a]?u[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,a=c.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a,this.setState(a),this.refresh&&this.refresh())}var l=CKEDITOR.env,b=this._.id=CKEDITOR.tools.getNextId(),h="",d=this.command,a,n,t;this._.editor=c;var p={id:b,button:this,editor:c,focus:function(){CKEDITOR.document.getById(b).focus()},execute:function(){this.button.click(c)},attach:function(a){this.button.attach(a)}},
x=CKEDITOR.tools.addFunction(function(a){if(p.onkey)return a=new CKEDITOR.dom.event(a),!1!==p.onkey(p,a.getKeystroke())}),r=CKEDITOR.tools.addFunction(function(a){var b;p.onfocus&&(b=!1!==p.onfocus(p,new CKEDITOR.dom.event(a)));return b}),q=0;p.clickFn=a=CKEDITOR.tools.addFunction(function(){q&&(c.unlockSelection(1),q=0);p.execute();l.iOS&&c.focus()});if(this.modes){var u={};c.on("beforeModeUnload",function(){c.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(u[c.mode]=this._.state)},this);c.on("activeFilterChange",
m,this);c.on("mode",m,this);!this.readOnly&&c.on("readOnly",m,this)}else d&&(d=c.getCommand(d))&&(d.on("state",function(){this.setState(d.state)},this),h+=d.state==CKEDITOR.TRISTATE_ON?"on":d.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");if(this.directional)c.on("contentDirChanged",function(a){var b=CKEDITOR.document.getById(this._.id),d=b.getFirst();a=a.data;a!=c.lang.dir?b.addClass("cke_"+a):b.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",CKEDITOR.skin.getIconStyle(v,
"rtl"==a,this.icon,this.iconOffset))},this);d?(n=c.getCommandKeystroke(d))&&(t=CKEDITOR.tools.keystrokeToString(c.lang.common.keyboard,n)):h+="off";var v=n=this.name||this.command;this.icon&&!/\./.test(this.icon)&&(v=this.icon,this.icon=null);h={id:b,name:n,iconName:v,label:this.label,cls:this.className||"",state:h,ariaDisabled:"disabled"==h?"true":"false",title:this.title+(t?" ("+t.display+")":""),ariaShortcut:t?c.lang.common.keyboardShortcut+" "+t.aria:"",titleJs:l.gecko&&!l.hc?"":(this.title||
"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:x,focusFn:r,clickFn:a,style:CKEDITOR.skin.getIconStyle(v,"rtl"==c.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow?g.output():""};f.output(h,k);if(this.onRender)this.onRender();return p},setState:function(c){if(this._.state==c)return!1;this._.state=c;var f=CKEDITOR.document.getById(this._.id);return f?(f.setState(c,"cke_button"),c==CKEDITOR.TRISTATE_DISABLED?f.setAttribute("aria-disabled",!0):f.removeAttribute("aria-disabled"),
this.hasArrow?(c=c==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label,CKEDITOR.document.getById(this._.id+"_label").setText(c)):c==CKEDITOR.TRISTATE_ON?f.setAttribute("aria-pressed",!0):f.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(c){if(this._.feature)return this._.feature;var f=this;this.allowedContent||this.requiredContent||!this.command||(f=c.getCommand(this.command)||f);return this._.feature=
f}};CKEDITOR.ui.prototype.addButton=function(c,f){this.add(c,CKEDITOR.UI_BUTTON,f)}}(),function(){function c(c){function e(){for(var a=f(),d=CKEDITOR.tools.clone(c.config.toolbarGroups)||g(c),h=0;h<d.length;h++){var m=d[h];if("/"!=m){"string"==typeof m&&(m=d[h]={name:m});var r,q=m.groups;if(q)for(var u=0;u<q.length;u++)r=q[u],(r=a[r])&&b(m,r);(r=a[m.name])&&b(m,r)}}return d}function f(){var a={},b,d,e;for(b in c.ui.items)d=c.ui.items[b],e=d.toolbar||"others",e=e.split(","),d=e[0],e=parseInt(e[1]||
-1,10),a[d]||(a[d]=[]),a[d].push({name:b,order:e});for(d in a)a[d]=a[d].sort(function(a,b){return a.order==b.order?0:0>b.order?-1:0>a.order?1:a.order<b.order?-1:1});return a}function b(a,b){if(b.length){a.items?a.items.push(c.ui.create("-")):a.items=[];for(var e;e=b.shift();)e="string"==typeof e?e:e.name,d&&-1!=CKEDITOR.tools.indexOf(d,e)||(e=c.ui.create(e))&&c.addFeature(e)&&a.items.push(e)}}function h(a){var d=[],c,e,f;for(c=0;c<a.length;++c)e=a[c],f={},"/"==e?d.push(e):CKEDITOR.tools.isArray(e)?
(b(f,CKEDITOR.tools.clone(e)),d.push(f)):e.items&&(b(f,CKEDITOR.tools.clone(e.items)),f.name=e.name,d.push(f));return d}var d=c.config.removeButtons,d=d&&d.split(","),a=c.config.toolbar;"string"==typeof a&&(a=c.config["toolbar_"+a]);return c.toolbar=a?h(a):e()}function g(c){return c._.toolbarGroups||(c._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",
{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var f=function(){this.toolbars=[];this.focusCommandExecuted=!1};f.prototype.focus=function(){for(var c=0,e;e=this.toolbars[c++];)for(var f=0,b;b=e.items[f++];)if(b.focus){b.focus();return}};var e={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(c){c.toolbox&&(c.toolbox.focusCommandExecuted=
!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){c.toolbox.focus()},100):c.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(g){var m,l=function(b,c){var d,a="rtl"==g.lang.dir,e=g.config.toolbarGroupCycling,f=a?37:39,a=a?39:37,e=void 0===e||e;switch(c){case 9:case CKEDITOR.SHIFT+9:for(;!d||!d.items.length;)if(d=9==c?(d?d.next:b.toolbar.next)||g.toolbox.toolbars[0]:(d?d.previous:b.toolbar.previous)||g.toolbox.toolbars[g.toolbox.toolbars.length-1],d.items.length)for(b=
d.items[m?d.items.length-1:0];b&&!b.focus;)(b=m?b.previous:b.next)||(d=0);b&&b.focus();return!1;case f:d=b;do d=d.next,!d&&e&&(d=b.toolbar.items[0]);while(d&&!d.focus);d?d.focus():l(b,9);return!1;case 40:return b.button&&b.button.hasArrow?b.execute():l(b,40==c?f:a),!1;case a:case 38:d=b;do d=d.previous,!d&&e&&(d=b.toolbar.items[b.toolbar.items.length-1]);while(d&&!d.focus);d?d.focus():(m=1,l(b,CKEDITOR.SHIFT+9),m=0);return!1;case 27:return g.focus(),!1;case 13:case 32:return b.execute(),!1}return!0};
g.on("uiSpace",function(b){if(b.data.space==g.config.toolbarLocation){b.removeListener();g.toolbox=new f;var e=CKEDITOR.tools.getNextId(),d=['\x3cspan id\x3d"',e,'" class\x3d"cke_voice_label"\x3e',g.lang.toolbar.toolbars,"\x3c/span\x3e",'\x3cspan id\x3d"'+g.ui.spaceId("toolbox")+'" class\x3d"cke_toolbox" role\x3d"group" aria-labelledby\x3d"',e,'" onmousedown\x3d"return false;"\x3e'],e=!1!==g.config.toolbarStartupExpanded,a,n;g.config.toolbarCanCollapse&&g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&
d.push('\x3cspan class\x3d"cke_toolbox_main"'+(e?"\x3e":' style\x3d"display:none"\x3e'));for(var m=g.toolbox.toolbars,p=c(g),x=p.length,r=0;r<x;r++){var q,u=0,v,z=p[r],w="/"!==z&&("/"===p[r+1]||r==x-1),B;if(z)if(a&&(d.push("\x3c/span\x3e"),n=a=0),"/"===z)d.push('\x3cspan class\x3d"cke_toolbar_break"\x3e\x3c/span\x3e');else{B=z.items||z;for(var A=0;A<B.length;A++){var C=B[A],y;if(C){var F=function(a){a=a.render(g,d);E=u.items.push(a)-1;0<E&&(a.previous=u.items[E-1],a.previous.next=a);a.toolbar=u;a.onkey=
l;a.onfocus=function(){g.toolbox.focusCommandExecuted||g.focus()}};if(C.type==CKEDITOR.UI_SEPARATOR)n=a&&C;else{y=!1!==C.canGroup;if(!u){q=CKEDITOR.tools.getNextId();u={id:q,items:[]};v=z.name&&(g.lang.toolbar.toolbarGroups[z.name]||z.name);d.push('\x3cspan id\x3d"',q,'" class\x3d"cke_toolbar'+(w?' cke_toolbar_last"':'"'),v?' aria-labelledby\x3d"'+q+'_label"':"",' role\x3d"toolbar"\x3e');v&&d.push('\x3cspan id\x3d"',q,'_label" class\x3d"cke_voice_label"\x3e',v,"\x3c/span\x3e");d.push('\x3cspan class\x3d"cke_toolbar_start"\x3e\x3c/span\x3e');
var E=m.push(u)-1;0<E&&(u.previous=m[E-1],u.previous.next=u)}y?a||(d.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'),a=1):a&&(d.push("\x3c/span\x3e"),a=0);n&&(F(n),n=0);F(C)}}}a&&(d.push("\x3c/span\x3e"),n=a=0);u&&d.push('\x3cspan class\x3d"cke_toolbar_end"\x3e\x3c/span\x3e\x3c/span\x3e')}}g.config.toolbarCanCollapse&&d.push("\x3c/span\x3e");if(g.config.toolbarCanCollapse&&g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var G=CKEDITOR.tools.addFunction(function(){g.execCommand("toolbarCollapse")});
g.on("destroy",function(){CKEDITOR.tools.removeFunction(G)});g.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b=a.ui.space("toolbar_collapser"),d=b.getPrevious(),c=a.ui.space("contents"),e=d.getParent(),f=parseInt(c.$.style.height,10),h=e.$.offsetHeight,g=b.hasClass("cke_toolbox_collapser_min");g?(d.show(),b.removeClass("cke_toolbox_collapser_min"),b.setAttribute("title",a.lang.toolbar.toolbarCollapse)):(d.hide(),b.addClass("cke_toolbox_collapser_min"),b.setAttribute("title",a.lang.toolbar.toolbarExpand));
b.getFirst().setText(g?"▲":"◀");c.setStyle("height",f-(e.$.offsetHeight-h)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:c.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});g.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");d.push('\x3ca title\x3d"'+(e?g.lang.toolbar.toolbarCollapse:g.lang.toolbar.toolbarExpand)+'" id\x3d"'+g.ui.spaceId("toolbar_collapser")+'" tabIndex\x3d"-1" class\x3d"cke_toolbox_collapser');
e||d.push(" cke_toolbox_collapser_min");d.push('" onclick\x3d"CKEDITOR.tools.callFunction('+G+')"\x3e','\x3cspan class\x3d"cke_arrow"\x3e\x26#9650;\x3c/span\x3e',"\x3c/a\x3e")}d.push("\x3c/span\x3e");b.data.html+=d.join("")}});g.on("destroy",function(){if(this.toolbox){var b,c=0,d,a,e;for(b=this.toolbox.toolbars;c<b.length;c++)for(a=b[c].items,d=0;d<a.length;d++)e=a[d],e.clickFn&&CKEDITOR.tools.removeFunction(e.clickFn),e.keyDownFn&&CKEDITOR.tools.removeFunction(e.keyDownFn)}});g.on("uiReady",function(){var b=
g.ui.space("toolbox");b&&g.focusManager.add(b,1)});g.addCommand("toolbarFocus",e);g.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");g.ui.add("-",CKEDITOR.UI_SEPARATOR,{});g.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(b,c){c.push('\x3cspan class\x3d"cke_toolbar_separator" role\x3d"separator"\x3e\x3c/span\x3e');return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=function(c,e,f){var b=g(this.editor),h=0===e,d={name:c};if(f){if(f=CKEDITOR.tools.search(b,function(a){return a.name==
f})){!f.groups&&(f.groups=[]);if(e&&(e=CKEDITOR.tools.indexOf(f.groups,e),0<=e)){f.groups.splice(e+1,0,c);return}h?f.groups.splice(0,0,c):f.groups.push(c);return}e=null}e&&(e=CKEDITOR.tools.indexOf(b,function(a){return a.name==e}));h?b.splice(0,0,c):"number"==typeof e?b.splice(e+1,0,d):b.push(c)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top","use strict",function(){function c(a,b,d){b.type||(b.type="auto");if(d&&!1===a.fire("beforePaste",b)||!b.dataValue&&b.dataTransfer.isEmpty())return!1;
b.dataValue||(b.dataValue="");if(CKEDITOR.env.gecko&&"drop"==b.method&&a.toolbox)a.once("afterPaste",function(){a.toolbox.focus()});return a.fire("paste",b)}function g(a){function b(){var d=a.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var c=function(b){a.readOnly&&"cut"==b.name||y.initPasteDataTransfer(b,a);b.data.preventDefault()};d.on("copy",c);d.on("cut",c);d.on("cut",function(){a.readOnly||a.extractSelectedHtml()},null,null,999)}d.on(y.mainPasteEvent,function(a){"beforepaste"==
y.mainPasteEvent&&F||B(a)});"beforepaste"==y.mainPasteEvent&&(d.on("paste",function(a){E||(f(),a.data.preventDefault(),B(a),g("paste"))}),d.on("contextmenu",h,null,null,0),d.on("beforepaste",function(a){!a.data||a.data.$.ctrlKey||a.data.$.shiftKey||h()},null,null,0));d.on("beforecut",function(){!F&&k(a)});var e;d.attachListener(CKEDITOR.env.ie?d:a.document.getDocumentElement(),"mouseup",function(){e=setTimeout(function(){A()},0)});a.on("destroy",function(){clearTimeout(e)});d.on("keyup",A)}function d(b){return{type:b,
canUndo:"cut"==b,startDisabled:!0,fakeKeystroke:"cut"==b?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){"cut"==this.type&&k();var b;var d=this.type;if(CKEDITOR.env.ie)b=g(d);else try{b=a.document.$.execCommand(d,!1,null)}catch(c){b=!1}b||a.showNotification(a.lang.clipboard[this.type+"Error"]);return b}}}function e(){return{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(a,b){function d(b,h){h="undefined"!==typeof h?h:!0;b?(b.method="paste",b.dataTransfer||(b.dataTransfer=y.initPasteDataTransfer()),
c(a,b,h)):f&&a.showNotification(k,"info",a.config.clipboard_notificationDuration);a.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!b})}b="undefined"!==typeof b&&null!==b?b:{};var e=this,f="undefined"!==typeof b.notification?b.notification:!0,h=b.type,g=CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,a.getCommandKeystroke(this)),k="string"===typeof f?f:a.lang.clipboard.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+g.aria+'"\x3e'+g.display+"\x3c/kbd\x3e"),g="string"===
typeof b?b:b.dataValue;h?a._.nextPasteType=h:delete a._.nextPasteType;"string"===typeof g?d({dataValue:g}):a.getClipboardData(d)}}}function f(){E=1;setTimeout(function(){E=0},100)}function h(){F=1;setTimeout(function(){F=0},10)}function g(b){var d=a.document,c=d.getBody(),e=!1,f=function(){e=!0};c.on(b,f);7<CKEDITOR.env.version?d.$.execCommand(b):d.$.selection.createRange().execCommand(b);c.removeListener(b,f);return e}function k(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),
d,c,e;b.getType()==CKEDITOR.SELECTION_ELEMENT&&(d=b.getSelectedElement())&&(c=b.getRanges()[0],e=a.document.createText(""),e.insertBefore(d),c.setStartBefore(e),c.setEndAfter(d),b.selectRanges([c]),setTimeout(function(){d.getParent()&&(e.remove(),b.selectElement(d))},0))}}function l(b,d){var c=a.document,e=a.editable(),f=function(a){a.cancel()},h;if(!c.getById("cke_pastebin")){var g=a.getSelection(),k=g.createBookmarks();CKEDITOR.env.ie&&g.root.fire("selectionchange");var n=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&
!e.is("body")||CKEDITOR.env.ie?"div":"body",c);n.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var m=0,c=c.getWindow();CKEDITOR.env.webkit?(e.append(n),n.addClass("cke_editable"),e.is("body")||(m="static"!=e.getComputedStyle("position")?e:CKEDITOR.dom.element.get(e.$.offsetParent),m=m.getDocumentPosition().y)):e.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(n);n.setStyles({position:"absolute",top:c.getScrollPosition().y-m+10+"px",width:"1px",height:Math.max(1,c.getViewPaneSize().height-
20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&n.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(m=n.getParent().isReadOnly())?(n.setOpacity(0),n.setAttribute("contenteditable",!0)):n.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-10000px");a.on("selectionChange",f,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)h=e.once("blur",f,null,null,-100);m&&n.focus();m=new CKEDITOR.dom.range(n);m.selectNodeContents(n);var q=m.select();CKEDITOR.env.ie&&
(h=e.once("blur",function(){a.lockSelection(q)}));var v=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=v);h&&h.removeListener();CKEDITOR.env.ie&&e.focus();g.selectBookmarks(k);n.remove();var b;CKEDITOR.env.webkit&&(b=n.getFirst())&&b.is&&b.hasClass("Apple-style-span")&&(n=b);a.removeListener("selectionChange",f);d(n.getHtml())},0)}}function m(){if("paste"==y.mainPasteEvent)return a.fire("beforePaste",{type:"auto",
method:"paste"}),!1;a.focus();f();var b=a.focusManager;b.lock();if(a.editable().fire(y.mainPasteEvent)&&!g("paste"))return b.unlock(),!1;b.unlock();return!0}function w(b){if("wysiwyg"==a.mode)switch(b.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:b=a.editable();f();"paste"==y.mainPasteEvent&&b.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:a.fire("saveSnapshot"),setTimeout(function(){a.fire("saveSnapshot")},50)}}function B(b){var d={type:"auto",method:"paste",
dataTransfer:y.initPasteDataTransfer(b)};d.dataTransfer.cacheData();var e=!1!==a.fire("beforePaste",d);e&&y.canClipboardApiBeTrusted(d.dataTransfer,a)?(b.data.preventDefault(),setTimeout(function(){c(a,d)},0)):l(b,function(b){d.dataValue=b.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");e&&c(a,d)})}function A(){if("wysiwyg"==a.mode){var b=C("paste");a.getCommand("cut").setState(C("cut"));a.getCommand("copy").setState(C("copy"));a.getCommand("paste").setState(b);a.fire("pasteState",b)}}function C(b){if(G&&
b in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==b)return CKEDITOR.TRISTATE_OFF;b=a.getSelection();var d=b.getRanges();return b.getType()==CKEDITOR.SELECTION_NONE||1==d.length&&d[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var y=CKEDITOR.plugins.clipboard,F=0,E=0,G=0;(function(){a.on("key",w);a.on("contentDom",b);a.on("selectionChange",function(a){G=a.data.selection.getRanges()[0].checkReadOnly();A()});a.contextMenu&&a.contextMenu.addListener(function(a,b){G=b.getRanges()[0].checkReadOnly();
return{cut:C("cut"),copy:C("copy"),paste:C("paste")}})})();(function(){function b(d,c,e,f,h){var g=a.lang.clipboard[c];a.addCommand(c,e);a.ui.addButton&&a.ui.addButton(d,{label:g,command:c,toolbar:"clipboard,"+f});a.addMenuItems&&a.addMenuItem(c,{label:g,command:c,group:"clipboard",order:h})}b("Cut","cut",d("cut"),10,1);b("Copy","copy",d("copy"),20,4);b("Paste","paste",e(),30,8)})();a.getClipboardData=function(b,d){function c(a){a.removeListener();a.cancel();d(a.data)}d||(d=b,b=null);a.on("paste",
c,null,null,0);!1===m()&&(a.removeListener("paste",c),d(null))}}function f(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!a.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";return"htmlifiedtext"}function e(a,b){function d(a){return CKEDITOR.tools.repeat("\x3c/p\x3e\x3cp\x3e",
~~(a/2))+(1==a%2?"\x3cbr\x3e":"")}b=b.replace(/\s+/g," ").replace(/> +</g,"\x3e\x3c").replace(/<br ?\/>/gi,"\x3cbr\x3e");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;CKEDITOR.env.webkit&&-1<b.indexOf("\x3cdiv\x3e")&&(b=b.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"\x3cbr\x3e").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"\x3cdiv\x3e\x3c/div\x3e"),b.match(/<div>(<br>|)<\/div>/)&&(b="\x3cp\x3e"+b.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return d(a.split("\x3c/div\x3e\x3cdiv\x3e").length+
1)})+"\x3c/p\x3e"),b=b.replace(/<\/div><div>/g,"\x3cbr\x3e"),b=b.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(b=b.replace(/^<br><br>$/,"\x3cbr\x3e")),-1<b.indexOf("\x3cbr\x3e\x3cbr\x3e")&&(b="\x3cp\x3e"+b.replace(/(<br>){2,}/g,function(a){return d(a.length/4)})+"\x3c/p\x3e"));return l(a,b)}function k(){function a(){var a={},b;for(b in CKEDITOR.dtd)"$"!=b.charAt(0)&&"div"!=b&&"span"!=b&&(a[b]=1);return a}var b={};return{get:function(d){return"plain-text"==
d?b.plainText||(b.plainText=new CKEDITOR.filter("br")):"semantic-content"==d?((d=b.semanticContent)||(d=new CKEDITOR.filter,d.allow({$1:{elements:a(),attributes:!0,styles:!1,classes:!1}}),d=b.semanticContent=d),d):d?new CKEDITOR.filter(d):null}}}function m(a,b,d){b=CKEDITOR.htmlParser.fragment.fromHtml(b);var c=new CKEDITOR.htmlParser.basicWriter;d.applyTo(b,!0,!1,a.activeEnterMode);b.writeHtml(c);return c.getHtml()}function l(a,b){a.enterMode==CKEDITOR.ENTER_BR?b=b.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("\x3cbr\x3e",
a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(b=b.replace(/<(\/)?p>/g,"\x3c$1div\x3e"));return b}function b(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function h(a){var b=CKEDITOR.plugins.clipboard;a.on("contentDom",function(){function d(b,e,f){e.select();c(a,{dataTransfer:f,method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(b);f.sourceEditor.getSelection().selectRanges([b]);f.sourceEditor.fire("saveSnapshot")}
function e(d,f){d.select();c(a,{dataTransfer:f,method:"drop"},1);b.resetDragDataTransfer()}function f(b,d,c){var e={$:b.data.$,target:b.data.getTarget()};d&&(e.dragRange=d);c&&(e.dropRange=c);!1===a.fire(b.name,e)&&b.data.preventDefault()}function h(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}var g=a.editable(),k=CKEDITOR.plugins.clipboard.getDropTarget(a),l=a.ui.space("top"),m=a.ui.space("bottom");b.preventDefaultDropOnElement(l);b.preventDefaultDropOnElement(m);
g.attachListener(k,"dragstart",f);g.attachListener(a,"dragstart",b.resetDragDataTransfer,b,null,1);g.attachListener(a,"dragstart",function(d){b.initDragDataTransfer(d,a)},null,null,2);g.attachListener(a,"dragstart",function(){var d=b.dragRange=a.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(b.dragStartContainerChildCount=d?h(d.startContainer):null,b.dragEndContainerChildCount=d?h(d.endContainer):null)},null,null,100);g.attachListener(k,"dragend",f);g.attachListener(a,"dragend",
b.initDragDataTransfer,b,null,1);g.attachListener(a,"dragend",b.resetDragDataTransfer,b,null,100);g.attachListener(k,"dragover",function(a){if(CKEDITOR.env.edge)a.data.preventDefault();else{var b=a.data.getTarget();b&&b.is&&b.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files")&&a.data.preventDefault()}});g.attachListener(k,"drop",function(d){if(!d.data.$.defaultPrevented){d.data.preventDefault();var c=d.data.getTarget();
if(!c.isReadOnly()||c.type==CKEDITOR.NODE_ELEMENT&&c.is("html")){var c=b.getRangeAtDropPosition(d,a),e=b.dragRange;c&&f(d,e,c)}}},null,null,9999);g.attachListener(a,"drop",b.initDragDataTransfer,b,null,1);g.attachListener(a,"drop",function(c){if(c=c.data){var f=c.dropRange,h=c.dragRange,g=c.dataTransfer;g.getTransferType(a)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){b.internalDrop(h,f,g,a)},0):g.getTransferType(a)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?d(h,f,g):e(f,g)}},null,null,9999)})}
var d;CKEDITOR.plugins.add("clipboard",{requires:"notification,toolbar",init:function(a){var b,d=k();a.config.forcePasteAsPlainText?b="plain-text":a.config.pasteFilter?b=a.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in a.config||(b="semantic-content");a.pasteFilter=d.get(b);g(a);h(a);if(CKEDITOR.env.gecko){var c=["image/png","image/jpeg","image/gif"],l;a.on("paste",function(b){var d=b.data,e=d.dataTransfer;if(!d.dataValue&&"paste"==d.method&&e&&1==e.getFilesCount()&&l!=e.id&&(e=e.getFile(0),
-1!=CKEDITOR.tools.indexOf(c,e.type))){var f=new FileReader;f.addEventListener("load",function(){b.data.dataValue='\x3cimg src\x3d"'+f.result+'" /\x3e';a.fire("paste",b.data)},!1);f.addEventListener("abort",function(){a.fire("paste",b.data)},!1);f.addEventListener("error",function(){a.fire("paste",b.data)},!1);f.readAsDataURL(e);l=d.dataTransfer.id;b.stop()}},null,null,1)}a.on("paste",function(b){b.data.dataTransfer||(b.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!b.data.dataValue){var d=
b.data.dataTransfer,c=d.getData("text/html");if(c)b.data.dataValue=c,b.data.type="html";else if(c=d.getData("text/plain"))b.data.dataValue=a.editable().transformPlainTextToHtml(c),b.data.type="text"}},null,null,1);a.on("paste",function(a){var b=a.data.dataValue,d=CKEDITOR.dtd.$block;-1<b.indexOf("Apple-")&&(b=b.replace(/<span class="Apple-converted-space">&nbsp;<\/span>/gi," "),"html"!=a.data.type&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g,
"\x26nbsp;\x26nbsp; \x26nbsp;")})),-1<b.indexOf('\x3cbr class\x3d"Apple-interchange-newline"\x3e')&&(a.data.startsWithEOL=1,a.data.preSniffing="html",b=b.replace(/<br class="Apple-interchange-newline">/,"")),b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(b.match(/^<[^<]+cke_(editable|contents)/i)){var c,e,f=new CKEDITOR.dom.element("div");for(f.setHtml(b);1==f.getChildCount()&&(c=f.getFirst())&&c.type==CKEDITOR.NODE_ELEMENT&&(c.hasClass("cke_editable")||c.hasClass("cke_contents"));)f=e=c;
e&&(b=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,c){return c.toLowerCase()in d?(a.data.preSniffing="html","\x3c"+c):b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,c){return c in d?(a.data.endsWithEOL=1,"\x3c/"+c+"\x3e"):b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);a.on("paste",function(b){b=b.data;var c=a._.nextPasteType||b.type,h=b.dataValue,g,k=a.config.clipboard_defaultContentType||
"html",l=b.dataTransfer.getTransferType(a);g="html"==c||"html"==b.preSniffing?"html":f(h);delete a._.nextPasteType;"htmlifiedtext"==g&&(h=e(a.config,h));"text"==c&&"html"==g?h=m(a,h,d.get("plain-text")):l==CKEDITOR.DATA_TRANSFER_EXTERNAL&&a.pasteFilter&&!b.dontFilter&&(h=m(a,h,a.pasteFilter));b.startsWithEOL&&(h='\x3cbr data-cke-eol\x3d"1"\x3e'+h);b.endsWithEOL&&(h+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==c&&(c="html"==g||"html"==k?"html":"text");b.type=c;b.dataValue=h;delete b.preSniffing;delete b.startsWithEOL;
delete b.endsWithEOL},null,null,6);a.on("paste",function(b){b=b.data;b.dataValue&&(a.insertHtml(b.dataValue,b.type,b.range),setTimeout(function(){a.fire("afterPaste")},0))},null,null,1E3)}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:(!CKEDITOR.env.ie||16<=CKEDITOR.env.version)&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie||16<=CKEDITOR.env.version,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":
"paste",canClipboardApiBeTrusted:function(a,b){return a.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!a.isEmpty()||CKEDITOR.env.gecko&&(a.getData("text/html")||a.getFilesCount())||CKEDITOR.env.safari&&603<=CKEDITOR.env.version&&!CKEDITOR.env.iOS||CKEDITOR.env.edge&&16<=CKEDITOR.env.version?!0:!1},getDropTarget:function(a){var b=a.editable();return CKEDITOR.env.ie&&9>CKEDITOR.env.version||b.isInline()?b:a.document},fixSplitNodesAfterDrop:function(a,b,d,c){function e(a,
d,c){var f=a;f.type==CKEDITOR.NODE_TEXT&&(f=a.getParent());if(f.equals(d)&&c!=d.getChildCount())return a=b.startContainer.getChild(b.startOffset-1),d=b.startContainer.getChild(b.startOffset),a&&a.type==CKEDITOR.NODE_TEXT&&d&&d.type==CKEDITOR.NODE_TEXT&&(c=a.getLength(),a.setText(a.getText()+d.getText()),d.remove(),b.setStart(a,c),b.collapse(!0)),!0}var f=b.startContainer;"number"==typeof c&&"number"==typeof d&&f.type==CKEDITOR.NODE_ELEMENT&&(e(a.startContainer,f,d)||e(a.endContainer,f,c))},isDropRangeAffectedByDragRange:function(a,
b){var d=b.startContainer,c=b.endOffset;return a.endContainer.equals(d)&&a.endOffset<=c||a.startContainer.getParent().equals(d)&&a.startContainer.getIndex()<c||a.endContainer.getParent().equals(d)&&a.endContainer.getIndex()<c?!0:!1},internalDrop:function(a,b,d,e){var f=CKEDITOR.plugins.clipboard,h=e.editable(),g,k;e.fire("saveSnapshot");e.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(a,b,f.dragStartContainerChildCount,f.dragEndContainerChildCount);
(k=this.isDropRangeAffectedByDragRange(a,b))||(g=a.createBookmark(!1));f=b.clone().createBookmark(!1);k&&(g=a.createBookmark(!1));a=g.startNode;b=g.endNode;k=f.startNode;b&&a.getPosition(k)&CKEDITOR.POSITION_PRECEDING&&b.getPosition(k)&CKEDITOR.POSITION_FOLLOWING&&k.insertBefore(a);a=e.createRange();a.moveToBookmark(g);h.extractHtmlFromRange(a,1);b=e.createRange();b.moveToBookmark(f);c(e,{dataTransfer:d,method:"drop",range:b},1);e.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var d=
a.data.$,c=d.clientX,e=d.clientY,f=b.getSelection(!0).getRanges()[0],h=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint&&b.document.$.caretRangeFromPoint(c,e))d=b.document.$.caretRangeFromPoint(c,e),h.setStart(CKEDITOR.dom.node(d.startContainer),d.startOffset),h.collapse(!0);else if(d.rangeParent)h.setStart(CKEDITOR.dom.node(d.rangeParent),d.rangeOffset),h.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&f&&b.editable().hasFocus)return f;if(document.body.createTextRange){b.focus();
d=b.document.getBody().$.createTextRange();try{for(var g=!1,k=0;20>k&&!g;k++){if(!g)try{d.moveToPoint(c,e-k),g=!0}catch(l){}if(!g)try{d.moveToPoint(c,e+k),g=!0}catch(m){}}if(g){var B="cke-temp-"+(new Date).getTime();d.pasteHTML('\x3cspan id\x3d"'+B+'"\x3e​\x3c/span\x3e');var A=b.document.getById(B);h.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START);A.remove()}else{var C=b.document.$.elementFromPoint(c,e),y=new CKEDITOR.dom.element(C),F;if(y.equals(b.editable())||"html"==y.getName())return f&&f.startContainer&&
!f.startContainer.equals(b.editable())?f:null;F=y.getClientRect();c<F.left?h.setStartAt(y,CKEDITOR.POSITION_AFTER_START):h.setStartAt(y,CKEDITOR.POSITION_BEFORE_END);h.collapse(!0)}}catch(E){return null}}else return null}return h},initDragDataTransfer:function(a,b){var d=a.data.$?a.data.$.dataTransfer:null,c=new this.dataTransfer(d,b);"dragstart"===a.name&&c.storeId();d?this.dragData&&c.id==this.dragData.id?c=this.dragData:this.dragData=c:this.dragData?c=this.dragData:this.dragData=c;a.data.dataTransfer=
c},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(a,b){if(this.isCustomCopyCutSupported){if(a&&a.data&&a.data.$){var d=a.data.$.clipboardData,c=new this.dataTransfer(d,b);"copy"!==a.name&&"cut"!==a.name||c.storeId();this.copyCutData&&c.id==this.copyCutData.id?(c=this.copyCutData,c.$=d):this.copyCutData=c;return c}return new this.dataTransfer(null,b)}return new this.dataTransfer(CKEDITOR.env.edge&&a&&a.data.$&&a.data.$.clipboardData||null,b)},preventDefaultDropOnElement:function(a){a&&
a.on("dragover",b)}};d=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a,b){a&&(this.$=a);this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/\x3c!--(?:Start|End)Fragment--\x3e/g,data:{},files:[],nativeHtmlCache:"",normalizeType:function(a){a=a.toLowerCase();return"text"==a||"text/plain"==a?"Text":"url"==a?"URL":a}};this._.fallbackDataTransfer=new CKEDITOR.plugins.clipboard.fallbackDataTransfer(this);
this.id=this.getData(d);this.id||(this.id="Text"==d?"":"cke-"+CKEDITOR.tools.getUniqueId());b&&(this.sourceEditor=b,this.setData("text/html",b.getSelectedHtml(1)),"Text"==d||this.getData("text/plain")||this.setData("text/plain",b.getSelection().getSelectedText()))};CKEDITOR.DATA_TRANSFER_INTERNAL=1;CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2;CKEDITOR.DATA_TRANSFER_EXTERNAL=3;CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(a,b){a=this._.normalizeType(a);var d="text/html"==a&&b?this._.nativeHtmlCache:
this._.data[a];if(void 0===d||null===d||""===d){if(this._.fallbackDataTransfer.isRequired())d=this._.fallbackDataTransfer.getData(a,b);else try{d=this.$.getData(a)||""}catch(c){d=""}"text/html"!=a||b||(d=this._stripHtml(d))}"Text"==a&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==d.substring(0,7)&&(d="");if("string"===typeof d)var e=d.indexOf("\x3c/html\x3e"),d=-1!==e?d.substring(0,e+7):d;return d},setData:function(a,b){a=this._.normalizeType(a);"text/html"==a?(this._.data[a]=this._stripHtml(b),
this._.nativeHtmlCache=b):this._.data[a]=b;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==a||"Text"==a)if("Text"==d&&"Text"==a&&(this.id=b),this._.fallbackDataTransfer.isRequired())this._.fallbackDataTransfer.setData(a,b);else try{this.$.setData(a,b)}catch(c){}},storeId:function(){"Text"!==d&&this.setData(d,this.id)},getTransferType:function(a){return this.sourceEditor?this.sourceEditor==a?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},
cacheData:function(){function a(a){a=b._.normalizeType(a);var d=b.getData(a);"text/html"==a&&(b._.nativeHtmlCache=b.getData(a,!0),d=b._stripHtml(d));d&&(b._.data[a]=d)}if(this.$){var b=this,d,c;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;d<this.$.types.length;d++)a(this.$.types[d])}else a("Text"),a("URL");c=this._getImageFromClipboard();if(this.$&&this.$.files||c){this._.files=[];if(this.$.files&&this.$.files.length)for(d=0;d<this.$.files.length;d++)this._.files.push(this.$.files[d]);
0===this._.files.length&&c&&this._.files.push(c)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(a){return this._.files.length?this._.files[a]:this.$&&this.$.files&&this.$.files.length?this.$.files[a]:0===a?this._getImageFromClipboard():void 0},isEmpty:function(){var a={},b;if(this.getFilesCount())return!1;CKEDITOR.tools.array.forEach(CKEDITOR.tools.objectKeys(this._.data),
function(b){a[b]=1});if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var c=0;c<this.$.types.length;c++)a[this.$.types[c]]=1}else a.Text=1,a.URL=1;"Text"!=d&&(a[d]=0);for(b in a)if(a[b]&&""!==this.getData(b))return!1;return!0},_getImageFromClipboard:function(){var a;if(this.$&&this.$.items&&this.$.items[0])try{if((a=this.$.items[0].getAsFile())&&a.type)return a}catch(b){}},_stripHtml:function(a){if(a&&a.length){a=a.replace(this._.metaRegExp,"");var b=this._.bodyRegExp.exec(a);
b&&b.length&&(a=b[1],a=a.replace(this._.fragmentRegExp,""))}return a}};CKEDITOR.plugins.clipboard.fallbackDataTransfer=function(a){this._dataTransfer=a;this._customDataFallbackType="text/html"};CKEDITOR.plugins.clipboard.fallbackDataTransfer._isCustomMimeTypeSupported=null;CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes=[];CKEDITOR.plugins.clipboard.fallbackDataTransfer.prototype={isRequired:function(){var a=CKEDITOR.plugins.clipboard.fallbackDataTransfer,b=this._dataTransfer.$;if(null===
a._isCustomMimeTypeSupported)if(b){a._isCustomMimeTypeSupported=!1;try{b.setData("cke/mimetypetest","cke test value"),a._isCustomMimeTypeSupported="cke test value"===b.getData("cke/mimetypetest"),b.clearData("cke/mimetypetest")}catch(d){}}else return!1;return!a._isCustomMimeTypeSupported},getData:function(a,b){var d=this._getData(this._customDataFallbackType,!0);if(b)return d;var d=this._extractDataComment(d),c=null,c=a===this._customDataFallbackType?d.content:d.data&&d.data[a]?d.data[a]:this._getData(a,
!0);return null!==c?c:""},setData:function(a,b){var d=a===this._customDataFallbackType;d&&(b=this._applyDataComment(b,this._getFallbackTypeData()));var c=b,e=this._dataTransfer.$;try{e.setData(a,c),d&&(this._dataTransfer._.nativeHtmlCache=c)}catch(f){if(this._isUnsupportedMimeTypeError(f)){d=CKEDITOR.plugins.clipboard.fallbackDataTransfer;-1===CKEDITOR.tools.indexOf(d._customTypes,a)&&d._customTypes.push(a);var d=this._getFallbackTypeContent(),h=this._getFallbackTypeData();h[a]=c;try{c=this._applyDataComment(d,
h),e.setData(this._customDataFallbackType,c),this._dataTransfer._.nativeHtmlCache=c}catch(g){c=""}}}return c},_getData:function(a,b){var d=this._dataTransfer._.data;if(!b&&d[a])return d[a];try{return this._dataTransfer.$.getData(a)}catch(c){return null}},_getFallbackTypeContent:function(){var a=this._dataTransfer._.data[this._customDataFallbackType];a||(a=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).content);return a},_getFallbackTypeData:function(){var a=CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes,
b=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).data||{},d=this._dataTransfer._.data;CKEDITOR.tools.array.forEach(a,function(a){void 0!==d[a]?b[a]=d[a]:void 0!==b[a]&&(b[a]=b[a])},this);return b},_isUnsupportedMimeTypeError:function(a){return a.message&&-1!==a.message.search(/element not found/gi)},_extractDataComment:function(a){var b={data:null,content:a||""};if(a&&16<a.length){var d;(d=/\x3c!--cke-data:(.*?)--\x3e/g.exec(a))&&d[1]&&(b.data=JSON.parse(decodeURIComponent(d[1])),
b.content=a.replace(d[0],""))}return b},_applyDataComment:function(a,b){var d="";b&&CKEDITOR.tools.objectKeys(b).length&&(d="\x3c!--cke-data:"+encodeURIComponent(JSON.stringify(b))+"--\x3e");return d+(a&&a.length?a:"")}}}(),CKEDITOR.config.clipboard_notificationDuration=1E4,function(){CKEDITOR.plugins.add("panel",{beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(c,f){f&&CKEDITOR.tools.extend(this,f);CKEDITOR.tools.extend(this,
{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=c;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(c){return new CKEDITOR.ui.panel(c)}};var c=CKEDITOR.addTemplate("panel",'\x3cdiv lang\x3d"{langCode}" id\x3d"{id}" dir\x3d{dir} class\x3d"cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style\x3d"z-index:{z-index}" role\x3d"presentation"\x3e{frame}\x3c/div\x3e'),g=CKEDITOR.addTemplate("panel-frame",
'\x3ciframe id\x3d"{id}" class\x3d"cke_panel_frame" role\x3d"presentation" frameborder\x3d"0" src\x3d"{src}"\x3e\x3c/iframe\x3e'),f=CKEDITOR.addTemplate("panel-frame-inner",'\x3c!DOCTYPE html\x3e\x3chtml class\x3d"cke_panel_container {env}" dir\x3d"{dir}" lang\x3d"{langCode}"\x3e\x3chead\x3e{css}\x3c/head\x3e\x3cbody class\x3d"cke_{dir}" style\x3d"margin:0;padding:0" onload\x3d"{onload}"\x3e\x3c/body\x3e\x3c/html\x3e');CKEDITOR.ui.panel.prototype={render:function(e,k){this.getHolderElement=function(){var b=
this._.holder;if(!b){if(this.isFramed){var b=this.document.getById(this.id+"_frame"),c=b.getParent(),b=b.getFrameDocument();CKEDITOR.env.iOS&&c.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});c=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this));b.write(f.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+c+");"},m)));b.getWindow().$.CKEDITOR=CKEDITOR;
b.on("keydown",function(b){var a=b.data.getKeystroke(),c=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(a)?b.data.preventDefault():(27==a||a==("rtl"==c?39:37))&&this.onEscape&&!1===this.onEscape(a)&&b.data.preventDefault()},this);b=b.getBody();b.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(c)}else b=this.document.getById(this.id);this._.holder=b}return b};var m={editorId:e.id,id:this.id,langCode:e.langCode,dir:e.lang.dir,cls:this.className,
frame:"",env:CKEDITOR.env.cssClass,"z-index":e.config.baseFloatZIndex+1};if(this.isFramed){var l=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";m.frame=g.output({id:this.id+"_frame",src:l})}l=c.output(m);k&&k.push(l);return l},addBlock:function(c,f){f=this._.blocks[c]=f instanceof CKEDITOR.ui.panel.block?f:new CKEDITOR.ui.panel.block(this.getHolderElement(),f);this._.currentBlock||
this.showBlock(c);return f},getBlock:function(c){return this._.blocks[c]},showBlock:function(c){c=this._.blocks[c];var f=this._.currentBlock,g=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");f&&f.hide();this._.currentBlock=c;CKEDITOR.fire("ariaWidget",g);c._.focusIndex=-1;this._.onKeyDown=c.onKeyDown&&CKEDITOR.tools.bind(c.onKeyDown,c);c.show();return c},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(c,
f){this.element=c.append(c.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));f&&CKEDITOR.tools.extend(this,f);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(c){-1!=c&&(c=this.element.getElementsByTag("a").getItem(this._.focusIndex=
c),CKEDITOR.env.webkit&&c.getDocument().getWindow().focus(),c.focus(),this.onMark&&this.onMark(c))},markFirstDisplayed:function(c){for(var f=function(b){return b.type==CKEDITOR.NODE_ELEMENT&&"none"==b.getStyle("display")},g=this._.getItems(),l,b,h=g.count()-1;0<=h;h--)if(l=g.getItem(h),l.getAscendant(f)||(b=l,this._.focusIndex=h),"true"==l.getAttribute("aria-selected")){b=l;this._.focusIndex=h;break}b&&(c&&c(),CKEDITOR.env.webkit&&b.getDocument().getWindow().focus(),b.focus(),this.onMark&&this.onMark(b))},
getItems:function(){return this.element.getElementsByTag("a")}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(c,f){var g=this.keys[c];switch(g){case "next":for(var l=this._.focusIndex,g=this.element.getElementsByTag("a"),b;b=g.getItem(++l);)if(b.getAttribute("_cke_focus")&&b.$.offsetWidth){this._.focusIndex=l;b.focus();break}return b||f?!1:(this._.focusIndex=-1,this.onKeyDown(c,
1));case "prev":l=this._.focusIndex;for(g=this.element.getElementsByTag("a");0<l&&(b=g.getItem(--l));){if(b.getAttribute("_cke_focus")&&b.$.offsetWidth){this._.focusIndex=l;b.focus();break}b=null}return b||f?!1:(this._.focusIndex=g.count(),this.onKeyDown(c,1));case "click":case "mouseup":return l=this._.focusIndex,(b=0<=l&&this.element.getElementsByTag("a").getItem(l))&&(b.$[g]?b.$[g]():b.$["on"+g]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function c(c,
e,k,m,l){l=CKEDITOR.tools.genKey(e.getUniqueId(),k.getUniqueId(),c.lang.dir,c.uiColor||"",m.css||"",l||"");var b=g[l];b||(b=g[l]=new CKEDITOR.ui.panel(e,m),b.element=k.append(CKEDITOR.dom.element.createFromHtml(b.render(c),e)),b.element.setStyles({display:"none",position:"absolute"}));return b}var g={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(f,e,g,m){function l(){a.hide()}g.forceIFrame=1;g.toolbarRelated&&f.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e=CKEDITOR.document.getById("cke_"+
f.name));var b=e.getDocument();m=c(f,b,e,g,m||0);var h=m.element,d=h.getFirst(),a=this;h.disableContextMenu();this.element=h;this._={editor:f,panel:m,parentElement:e,definition:g,document:b,iframe:d,children:[],dir:f.lang.dir,showBlockParams:null};f.on("mode",l);f.on("resize",l);b.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(c,e){return this._.panel.addBlock(c,e)},addListBlock:function(c,e){return this._.panel.addListBlock(c,e)},getBlock:function(c){return this._.panel.getBlock(c)},
showBlock:function(c,e,g,m,l,b){var h=this._.panel,d=h.showBlock(c);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(!1);var a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var n=this.element,a=this._.iframe,a=CKEDITOR.env.ie&&!CKEDITOR.env.edge?a:new CKEDITOR.dom.window(a.$.contentWindow),t=n.getDocument(),p=this._.parentElement.getPositionedAncestor(),x=e.getDocumentPosition(t),t=p?p.getDocumentPosition(t):
{x:0,y:0},r="rtl"==this._.dir,q=x.x+(m||0)-t.x,u=x.y+(l||0)-t.y;!r||1!=g&&4!=g?r||2!=g&&3!=g||(q+=e.$.offsetWidth-1):q+=e.$.offsetWidth;if(3==g||4==g)u+=e.$.offsetHeight-1;this._.panel._.offsetParentId=e.getId();n.setStyles({top:u+"px",left:0,display:""});n.setOpacity(0);n.getFirst().removeStyle("width");this._.editor.focusManager.add(a);this._.blurSet||(CKEDITOR.event.useCapture=!0,a.on("blur",function(a){function b(){delete this._.returnFocus;this.hide()}this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&
this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(b,0,this)):b.call(this))},this),a.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(a.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),a.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1);h.onEscape=CKEDITOR.tools.bind(function(a){if(this.onEscape&&
!1===this.onEscape(a))return!1},this);CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.tools.bind(function(){var a=n;a.removeStyle("width");if(d.autoSize){var c=d.element.getDocument(),c=(CKEDITOR.env.webkit||CKEDITOR.env.edge?d.element:c.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<c&&(c+=(a.$.offsetWidth||0)-(a.$.clientWidth||0)+3);a.setStyle("width",c+10+"px");c=d.element.$.scrollHeight;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<c&&(c+=(a.$.offsetHeight||0)-(a.$.clientHeight||
0)+3);a.setStyle("height",c+"px");h._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");r&&(q-=n.$.offsetWidth);n.setStyle("left",q+"px");var c=h.element.getWindow(),a=n.$.getBoundingClientRect(),c=c.getViewPaneSize(),e=a.width||a.right-a.left,f=a.height||a.bottom-a.top,g=r?a.right:c.width-a.left,k=r?c.width-a.right:a.left;r?g<e&&(q=k>e?q+e:c.width>e?q-a.left:q-a.right+c.width):g<e&&(q=k>e?q-e:c.width>e?q-a.right+c.width:q-a.left);e=a.top;c.height-
a.top<f&&(u=e>f?u-f:c.height>f?u-a.bottom+c.height:u-a.top);CKEDITOR.env.ie&&(c=a=new CKEDITOR.dom.element(n.$.offsetParent),"html"==c.getName()&&(c=c.getDocument().getBody()),"rtl"==c.getComputedStyle("direction")&&(q=CKEDITOR.env.ie8Compat?q-2*n.getDocument().getDocumentElement().$.scrollLeft:q-(a.$.scrollWidth-a.$.clientWidth)));var a=n.getFirst(),l;(l=a.getCustomData("activePanel"))&&l.onHide&&l.onHide.call(this,1);a.setCustomData("activePanel",this);n.setStyles({top:u+"px",left:q+"px"});n.setOpacity(1);
b&&b()},this);h.isLoaded?a():h.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();d.element.focus();CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=a);this.allowBlur(!0);CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(function(){d.markFirstDisplayed?d.markFirstDisplayed():d._.markFirstDisplayed()},0):d.markFirstDisplayed?d.markFirstDisplayed():d._.markFirstDisplayed();this._.editor.fire("panelShow",this)},
0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},reposition:function(){var c=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,c))},focus:function(){if(CKEDITOR.env.webkit){var c=CKEDITOR.document.getActive();c&&!c.equals(this._.iframe)&&c.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var c=this._.iframe.getFrameDocument().getActive();c&&c.is("a")&&(this._.lastFocused=
c)},hide:function(c){if(this.visible&&(!this.onHide||!0!==this.onHide.call(this))){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(c=c&&this._.returnFocus)CKEDITOR.env.webkit&&c.type&&c.getWindow().$.focus(),c.focus();delete this._.lastFocused;this._.showBlockParams=null;this._.editor.fire("panelHide",this)}},allowBlur:function(c){var e=this._.panel;
void 0!==c&&(e.allowBlur=c);return e.allowBlur},showAsChild:function(c,e,g,m,l,b){if(this._.activeChild!=c||c._.panel._.offsetParentId!=g.getId())this.hideChild(),c.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=c,this._.focused=!1,c.showBlock(e,g,m,l,b),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){c.element.getChild(0).$.style.cssText+=""},100)},hideChild:function(c){var e=
this._.activeChild;e&&(delete e.onHide,delete this._.activeChild,e.hide(),c&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var c=CKEDITOR.tools.isEmpty(CKEDITOR.instances),e;for(e in g){var k=g[e];c?k.destroy():k.element.hide()}c&&(g={})})}(),CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(c){for(var g=c.config.menu_groups.split(","),f=c._.menuGroups={},e=c._.menuItems={},k=0;k<g.length;k++)f[g[k]]=k+1;c.addMenuGroup=function(c,e){f[c]=e||100};c.addMenuItem=function(c,
g){f[g.group]&&(e[c]=new CKEDITOR.menuItem(this,c,g))};c.addMenuItems=function(c){for(var e in c)this.addMenuItem(e,c[e])};c.getMenuItem=function(c){return e[c]};c.removeMenuItem=function(c){delete e[c]}}}),function(){function c(c){c.sort(function(c,b){return c.group<b.group?-1:c.group>b.group?1:c.order<b.order?-1:c.order>b.order?1:0})}var g='\x3cspan class\x3d"cke_menuitem"\x3e\x3ca id\x3d"{id}" class\x3d"cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href\x3d"{href}" title\x3d"{title}" tabindex\x3d"-1" _cke_focus\x3d1 hidefocus\x3d"true" role\x3d"{role}" aria-label\x3d"{label}" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasPopup}" aria-disabled\x3d"{disabled}" {ariaChecked} draggable\x3d"false"';
CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(g+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(g+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;" ondragstart\x3d"return false;"');var g=g+(' onmouseover\x3d"CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout\x3d"CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},{index}); return false;"\x3e'),f=CKEDITOR.addTemplate("menuItem",
g+'\x3cspan class\x3d"cke_menubutton_inner"\x3e\x3cspan class\x3d"cke_menubutton_icon"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{iconStyle}"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"cke_menubutton_label"\x3e{label}\x3c/span\x3e{shortcutHtml}{arrowHtml}\x3c/span\x3e\x3c/a\x3e\x3cspan id\x3d"{id}_description" class\x3d"cke_voice_label" aria-hidden\x3d"false"\x3e{ariaShortcut}\x3c/span\x3e\x3c/span\x3e'),e=CKEDITOR.addTemplate("menuArrow",'\x3cspan class\x3d"cke_menuarrow"\x3e\x3cspan\x3e{label}\x3c/span\x3e\x3c/span\x3e'),
k=CKEDITOR.addTemplate("menuShortcut",'\x3cspan class\x3d"cke_menubutton_label cke_menubutton_shortcut"\x3e{shortcut}\x3c/span\x3e');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(c,e){e=this._.definition=e||{};this.id=CKEDITOR.tools.getNextId();this.editor=c;this.items=[];this._.listeners=[];this._.level=e.level||1;var b=CKEDITOR.tools.extend({},e.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),f=b.block.attributes=b.attributes||{};!f.role&&(f.role="menu");this._.panelDefinition=
b},_:{onShow:function(){var c=this.editor.getSelection(),e=c&&c.getStartElement(),b=this.editor.elementPath(),f=this._.listeners;this.removeAll();for(var d=0;d<f.length;d++){var a=f[d](e,c,b);if(a)for(var g in a){var k=this.editor.getMenuItem(g);!k||k.command&&!this.editor.getCommand(k.command).state||(k.state=a[g],this.add(k))}}},onClick:function(c){this.hide();if(c.onClick)c.onClick();else c.command&&this.editor.execCommand(c.command)},onEscape:function(c){var e=this.parent;e?e._.panel.hideChild(1):
27==c&&this.hide(1);return!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(c){var e=this._.subMenu,b=this.items[c];if(b=b.getItems&&b.getItems()){e?e.removeAll():(e=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),e.parent=this,e._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var f in b){var d=this.editor.getMenuItem(f);d&&(d.state=b[f],e.add(d))}var a=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+
String(c));setTimeout(function(){e.show(a,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(c){c.order||(c.order=this.items.length);this.items.push(c)},removeAll:function(){this.items=[]},show:function(e,f,b,h){if(!this.parent&&(this._.onShow(),!this.items.length))return;f=f||("rtl"==this.editor.lang.dir?2:1);var d=this.items,a=this.editor,g=this._.panel,k=this._.element;if(!g){g=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);
g.onEscape=CKEDITOR.tools.bind(function(a){if(!1===this._.onEscape(a))return!1},this);g.onShow=function(){g._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};g.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);k=g.addBlock(this.id,this._.panelDefinition.block);k.autoSize=!0;var p=k.keys;p[40]="next";p[9]="next";p[38]="prev";p[CKEDITOR.SHIFT+9]="prev";p["rtl"==a.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click";p[32]=CKEDITOR.env.ie?"mouseup":
"click";CKEDITOR.env.ie&&(p[13]="mouseup");k=this._.element=k.element;p=k.getDocument();p.getBody().setStyle("overflow","hidden");p.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(b){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,a.config.menu_subMenuDelay||400,this,[b])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this);
this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var b=this.items[a];if(b.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(b.getItems)this._.showSubMenu(a);else this._.onClick(b)},this)}c(d);for(var p=a.elementPath(),p=['\x3cdiv class\x3d"cke_menu'+(p&&p.direction()!=a.lang.dir?" cke_mixed_dir_content":"")+'" role\x3d"presentation"\x3e'],x=d.length,r=x&&d[0].group,q=0;q<x;q++){var u=d[q];r!=u.group&&(p.push('\x3cdiv class\x3d"cke_menuseparator" role\x3d"separator"\x3e\x3c/div\x3e'),
r=u.group);u.render(this,q,p)}p.push("\x3c/div\x3e");k.setHtml(p.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(g,this.id,e,f,b,h):g.showBlock(this.id,e,f,b,h);a.fire("menuShow",[g])},addListener:function(c){this._.listeners.push(c)},hide:function(c){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(c)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(c,e,b){CKEDITOR.tools.extend(this,b,{order:0,className:"cke_menubutton__"+e});this.group=
c._.menuGroups[this.group];this.editor=c;this.name=e},proto:{render:function(c,g,b){var h=c.id+String(g),d="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,a="",n=this.editor,t,p,x=d==CKEDITOR.TRISTATE_ON?"on":d==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(a=' aria-checked\x3d"'+(d==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var r=this.getItems,q="\x26#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",u=this.name;this.icon&&!/\./.test(this.icon)&&
(u=this.icon);this.command&&(t=n.getCommand(this.command),(t=n.getCommandKeystroke(t))&&(p=CKEDITOR.tools.keystrokeToString(n.lang.common.keyboard,t)));c={id:h,name:this.name,iconName:u,label:this.label,cls:this.className||"",state:x,hasPopup:r?"true":"false",disabled:d==CKEDITOR.TRISTATE_DISABLED,title:this.label+(p?" ("+p.display+")":""),ariaShortcut:p?n.lang.common.keyboardShortcut+" "+p.aria:"",href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:c._.itemOverFn,moveOutFn:c._.itemOutFn,
clickFn:c._.itemClickFn,index:g,iconStyle:CKEDITOR.skin.getIconStyle(u,"rtl"==this.editor.lang.dir,u==this.icon?null:this.icon,this.iconOffset),shortcutHtml:p?k.output({shortcut:p.display}):"",arrowHtml:r?e.output({label:q}):"",role:this.role?this.role:"menuitem",ariaChecked:a};f.output(c,b)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",
CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(c){this.base.call(this,c,{panel:{className:"cke_menu_panel",attributes:{"aria-label":c.lang.contextmenu.options}}})},proto:{addTarget:function(c,g){c.on("contextmenu",function(c){c=c.data;var e=CKEDITOR.env.webkit?f:CKEDITOR.env.mac?c.$.metaKey:c.$.ctrlKey;if(!g||!e){c.preventDefault();if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var e=this.editor,
l=(new CKEDITOR.dom.elementPath(c.getTarget(),e.editable())).contains(function(a){return a.hasAttribute("contenteditable")},!0);l&&"false"==l.getAttribute("contenteditable")&&e.getSelection().fake(l)}var l=c.getTarget().getDocument(),b=c.getTarget().getDocument().getDocumentElement(),e=!l.equals(CKEDITOR.document),l=l.getWindow().getScrollPosition(),h=e?c.$.clientX:c.$.pageX||l.x+c.$.clientX,d=e?c.$.clientY:c.$.pageY||l.y+c.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(b,null,h,d)},CKEDITOR.env.ie?
200:0,this)}},this);if(CKEDITOR.env.webkit){var f,e=function(){f=0};c.on("keydown",function(c){f=CKEDITOR.env.mac?c.data.$.metaKey:c.data.$.ctrlKey});c.on("keyup",e);c.on("contextmenu",e)}},open:function(c,g,f,e){!1!==this.editor.config.enableContextMenu&&(this.editor.focus(),c=c||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(c,g,f,e))}}})},beforeInit:function(c){var g=c.contextMenu=new CKEDITOR.plugins.contextMenu(c);c.on("contentDom",function(){g.addTarget(c.editable(),
!1!==c.config.browserContextMenuOnCtrl)});c.addCommand("contextMenu",{exec:function(){c.contextMenu.open(c.document.getBody())}});c.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");c.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){function c(c,f){function l(b){b=a.list[b];var d;b.equals(c.editable())||"true"==b.getAttribute("contenteditable")?(d=c.createRange(),d.selectNodeContents(b),d=d.select()):(d=c.getSelection(),d.selectElement(b));CKEDITOR.env.ie&&c.fire("selectionChange",
{selection:d,path:new CKEDITOR.dom.elementPath(b)});c.focus()}function b(){d&&d.setHtml('\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');delete a.list}var h=c.ui.spaceId("path"),d,a=c._.elementsPath,n=a.idBase;f.html+='\x3cspan id\x3d"'+h+'_label" class\x3d"cke_voice_label"\x3e'+c.lang.elementspath.eleLabel+'\x3c/span\x3e\x3cspan id\x3d"'+h+'" class\x3d"cke_path" role\x3d"group" aria-labelledby\x3d"'+h+'_label"\x3e\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e\x3c/span\x3e';
c.on("uiReady",function(){var a=c.ui.space("path");a&&c.focusManager.add(a,1)});a.onClick=l;var t=CKEDITOR.tools.addFunction(l),p=CKEDITOR.tools.addFunction(function(b,d){var e=a.idBase,f;d=new CKEDITOR.dom.event(d);f="rtl"==c.lang.dir;switch(d.getKeystroke()){case f?39:37:case 9:return(f=CKEDITOR.document.getById(e+(b+1)))||(f=CKEDITOR.document.getById(e+"0")),f.focus(),!1;case f?37:39:case CKEDITOR.SHIFT+9:return(f=CKEDITOR.document.getById(e+(b-1)))||(f=CKEDITOR.document.getById(e+(a.list.length-
1))),f.focus(),!1;case 27:return c.focus(),!1;case 13:case 32:return l(b),!1}return!0});c.on("selectionChange",function(b){for(var f=[],g=a.list=[],l=[],m=a.filters,z=!0,w=b.data.path.elements,B=w.length;B--;){var A=w[B],C=0;b=A.data("cke-display-name")?A.data("cke-display-name"):A.data("cke-real-element-type")?A.data("cke-real-element-type"):A.getName();(z=A.hasAttribute("contenteditable")?"true"==A.getAttribute("contenteditable"):z)||A.hasAttribute("contenteditable")||(C=1);for(var y=0;y<m.length;y++){var F=
m[y](A,b);if(!1===F){C=1;break}b=F||b}C||(g.unshift(A),l.unshift(b))}g=g.length;for(m=0;m<g;m++)b=l[m],z=c.lang.elementspath.eleTitle.replace(/%1/,b),b=e.output({id:n+m,label:z,text:b,jsTitle:"javascript:void('"+b+"')",index:m,keyDownFn:p,clickFn:t}),f.unshift(b);d||(d=CKEDITOR.document.getById(h));l=d;l.setHtml(f.join("")+'\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');c.fire("elementsPathUpdate",{space:l})});c.on("readOnly",b);c.on("contentDomUnload",b);c.addCommand("elementsPathFocus",
g.toolbarFocus);c.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var g={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(c){(c=CKEDITOR.document.getById(c._.elementsPath.idBase+"0"))&&c.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},f="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(f+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(f+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var e=CKEDITOR.addTemplate("pathItem",'\x3ca id\x3d"{id}" href\x3d"{jsTitle}" tabindex\x3d"-1" class\x3d"cke_path_item" title\x3d"{label}"'+
f+' hidefocus\x3d"true"  onkeydown\x3d"return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick\x3d"CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role\x3d"button" aria-label\x3d"{label}"\x3e{text}\x3c/a\x3e');CKEDITOR.plugins.add("elementspath",{init:function(e){e._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};e.on("uiSpace",function(f){"bottom"==f.data.space&&c(e,f.data)})}})}(),function(){function c(d,a,c){c=d.config.forceEnterMode||
c;if("wysiwyg"==d.mode){a||(a=d.activeEnterMode);var e=d.elementPath();e&&!e.isContextFor("p")&&(a=CKEDITOR.ENTER_BR,c=1);d.fire("saveSnapshot");a==CKEDITOR.ENTER_BR?l(d,a,null,c):b(d,a,null,c);d.fire("saveSnapshot")}}function g(b){b=b.getSelection().getRanges(!0);for(var a=b.length-1;0<a;a--)b[a].deleteContents();return b[0]}function f(b){var a=b.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"true"==a.getAttribute("contenteditable")},!0);if(b.root.equals(a))return b;
a=new CKEDITOR.dom.range(a);a.moveToRange(b);return a}CKEDITOR.plugins.add("enterkey",{init:function(b){b.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){c(a)}});b.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){c(a,a.activeShiftEnterMode,1)}});b.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var e=CKEDITOR.dom.walker.whitespaces(),k=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(b,a,c,m){if(c=c||g(b)){c=
f(c);var p=c.document,x=c.checkStartOfBlock(),r=c.checkEndOfBlock(),q=b.elementPath(c.startContainer),u=q.block,v=a==CKEDITOR.ENTER_DIV?"div":"p",z;if(x&&r){if(u&&(u.is("li")||u.getParent().is("li"))){u.is("li")||(u=u.getParent());c=u.getParent();z=c.getParent();m=!u.hasPrevious();var w=!u.hasNext(),v=b.getSelection(),B=v.createBookmarks(),x=u.getDirection(1),r=u.getAttribute("class"),A=u.getAttribute("style"),C=z.getDirection(1)!=x;b=b.enterMode!=CKEDITOR.ENTER_BR||C||A||r;if(z.is("li"))m||w?(m&&
w&&c.remove(),u[w?"insertAfter":"insertBefore"](z)):u.breakParent(z);else{if(b)if(q.block.is("li")?(z=p.createElement(a==CKEDITOR.ENTER_P?"p":"div"),C&&z.setAttribute("dir",x),A&&z.setAttribute("style",A),r&&z.setAttribute("class",r),u.moveChildren(z)):z=q.block,m||w)z[m?"insertBefore":"insertAfter"](c);else u.breakParent(c),z.insertAfter(c);else if(u.appendBogus(!0),m||w)for(;p=u[m?"getFirst":"getLast"]();)p[m?"insertBefore":"insertAfter"](c);else for(u.breakParent(c);p=u.getLast();)p.insertAfter(c);
u.remove()}v.selectBookmarks(B);return}if(u&&u.getParent().is("blockquote")){u.breakParent(u.getParent());u.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||u.getPrevious().remove();u.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||u.getNext().remove();c.moveToElementEditStart(u);c.select();return}}else if(u&&u.is("pre")&&!r){l(b,a,c,m);return}if(x=c.splitBlock(v)){a=x.previousBlock;u=x.nextBlock;q=x.wasStartOfBlock;b=x.wasEndOfBlock;u?(B=u.getParent(),B.is("li")&&(u.breakParent(B),
u.move(u.getNext(),1))):a&&(B=a.getParent())&&B.is("li")&&(a.breakParent(B),B=a.getNext(),c.moveToElementEditStart(B),a.move(a.getPrevious()));if(q||b){if(a){if(a.is("li")||!h.test(a.getName())&&!a.is("pre"))z=a.clone()}else u&&(z=u.clone());z?m&&!z.is("li")&&z.renameNode(v):B&&B.is("li")?z=B:(z=p.createElement(v),a&&(w=a.getDirection())&&z.setAttribute("dir",w));if(p=x.elementPath)for(m=0,v=p.elements.length;m<v;m++){B=p.elements[m];if(B.equals(p.block)||B.equals(p.blockLimit))break;CKEDITOR.dtd.$removeEmpty[B.getName()]&&
(B=B.clone(),z.moveChildren(B),z.append(B))}z.appendBogus();z.getParent()||c.insertNode(z);z.is("li")&&z.removeAttribute("value");!CKEDITOR.env.ie||!q||b&&a.getChildCount()||(c.moveToElementEditStart(b?a:z),c.select());c.moveToElementEditStart(q&&!b?u:z)}else u.is("li")&&(z=c.clone(),z.selectNodeContents(u),z=new CKEDITOR.dom.walker(z),z.evaluator=function(a){return!(k(a)||e(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))},(B=z.next())&&
B.type==CKEDITOR.NODE_ELEMENT&&B.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?p.createElement("br"):p.createText(" ")).insertBefore(B)),u&&c.moveToElementEditStart(u);c.select();c.scrollIntoView()}}},enterBr:function(d,a,c,e){if(c=c||g(d)){var f=c.document,k=c.checkEndOfBlock(),l=new CKEDITOR.dom.elementPath(d.getSelection().getStartElement()),m=l.block,u=m&&l.block.getName();e||"li"!=u?(!e&&k&&h.test(u)?(k=m.getDirection())?(f=f.createElement("div"),f.setAttribute("dir",k),f.insertAfter(m),c.setStart(f,
0)):(f.createElement("br").insertAfter(m),CKEDITOR.env.gecko&&f.createText("").insertAfter(m),c.setStartAt(m.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(d="pre"==u&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?f.createText("\r"):f.createElement("br"),c.deleteContents(),c.insertNode(d),CKEDITOR.env.needsBrFiller?(f.createText("﻿").insertAfter(d),k&&(m||l.blockLimit).appendBogus(),d.getNext().$.nodeValue="",c.setStartAt(d.getNext(),CKEDITOR.POSITION_AFTER_START)):
c.setStartAt(d,CKEDITOR.POSITION_AFTER_END)),c.collapse(!0),c.select(),c.scrollIntoView()):b(d,a,c,e)}}};var m=CKEDITOR.plugins.enterkey,l=m.enterBr,b=m.enterBlock,h=/^h[1-6]$/}(),function(){function c(c,f){var e={},k=[],m={nbsp:" ",shy:"­",gt:"\x3e",lt:"\x3c",amp:"\x26",apos:"'",quot:'"'};c=c.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(b,a){var c=f?"\x26"+a+";":m[a];e[c]=f?m[a]:"\x26"+a+";";k.push(c);return""});if(!f&&c){c=c.split(",");var l=document.createElement("div"),b;l.innerHTML=
"\x26"+c.join(";\x26")+";";b=l.innerHTML;l=null;for(l=0;l<b.length;l++){var h=b.charAt(l);e[h]="\x26"+c[l]+";";k.push(h)}}e.regex=k.join(f?"|":"");return e}CKEDITOR.plugins.add("entities",{afterInit:function(g){function f(a){return h[a]}function e(a){return"force"!=k.entities_processNumerical&&l[a]?l[a]:"\x26#"+a.charCodeAt(0)+";"}var k=g.config;if(g=(g=g.dataProcessor)&&g.htmlFilter){var m=[];!1!==k.basicEntities&&m.push("nbsp,gt,lt,amp");k.entities&&(m.length&&m.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),
k.entities_latin&&m.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),k.entities_greek&&m.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),
k.entities_additional&&m.push(k.entities_additional));var l=c(m.join(",")),b=l.regex?"["+l.regex+"]":"a^";delete l.regex;k.entities&&k.entities_processNumerical&&(b="[^ -~]|"+b);var b=new RegExp(b,"g"),h=c("nbsp,gt,lt,amp,shy",!0),d=new RegExp(h.regex,"g");g.addRules({text:function(a){return a.replace(d,f).replace(b,e)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,
CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(c,g,f,e){g=g||"80%";f=f||"70%";"string"==typeof g&&1<g.length&&"%"==g.substr(g.length-1,1)&&(g=parseInt(window.screen.width*parseInt(g,10)/100,10));"string"==typeof f&&1<f.length&&"%"==f.substr(f.length-1,1)&&(f=parseInt(window.screen.height*parseInt(f,10)/100,10));640>g&&(g=640);420>f&&(f=420);var k=parseInt((window.screen.height-f)/2,10),m=parseInt((window.screen.width-
g)/2,10);e=(e||"location\x3dno,menubar\x3dno,toolbar\x3dno,dependent\x3dyes,minimizable\x3dno,modal\x3dyes,alwaysRaised\x3dyes,resizable\x3dyes,scrollbars\x3dyes")+",width\x3d"+g+",height\x3d"+f+",top\x3d"+k+",left\x3d"+m;var l=window.open("",null,e,!0);if(!l)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(l.moveTo(m,k),l.resizeTo(g,f)),l.focus(),l.location.href=c}catch(b){window.open(c,null,e,!0)}return!0}}),function(){function c(b,d){var a=[];if(d)for(var c in d)a.push(c+
"\x3d"+encodeURIComponent(d[c]));else return b;return b+(-1!=b.indexOf("?")?"\x26":"?")+a.join("\x26")}function g(b){b+="";return b.charAt(0).toUpperCase()+b.substr(1)}function f(){var b=this.getDialog(),d=b.getParentEditor();d._.filebrowserSe=this;var a=d.config["filebrowser"+g(b.getName())+"WindowWidth"]||d.config.filebrowserWindowWidth||"80%",b=d.config["filebrowser"+g(b.getName())+"WindowHeight"]||d.config.filebrowserWindowHeight||"70%",e=this.filebrowser.params||{};e.CKEditor=d.name;e.CKEditorFuncNum=
d._.filebrowserFn;e.langCode||(e.langCode=d.langCode);e=c(this.filebrowser.url,e);d.popup(e,a,b,d.config.filebrowserWindowFeatures||d.config.fileBrowserWindowFeatures)}function e(){var b=this.getDialog();b.getParentEditor()._.filebrowserSe=this;return b.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value&&b.getContentElement(this["for"][0],this["for"][1]).getAction()?!0:!1}function k(b,d,a){var e=a.params||{};e.CKEditor=b.name;e.CKEditorFuncNum=b._.filebrowserFn;e.langCode||
(e.langCode=b.langCode);d.action=c(a.url,e);d.filebrowser=a}function m(b,d,a,c){if(c&&c.length)for(var l,p=c.length;p--;)if(l=c[p],"hbox"!=l.type&&"vbox"!=l.type&&"fieldset"!=l.type||m(b,d,a,l.children),l.filebrowser)if("string"==typeof l.filebrowser&&(l.filebrowser={action:"fileButton"==l.type?"QuickUpload":"Browse",target:l.filebrowser}),"Browse"==l.filebrowser.action){var x=l.filebrowser.url;void 0===x&&(x=b.config["filebrowser"+g(d)+"BrowseUrl"],void 0===x&&(x=b.config.filebrowserBrowseUrl));
x&&(l.onClick=f,l.filebrowser.url=x,l.hidden=!1)}else if("QuickUpload"==l.filebrowser.action&&l["for"]&&(x=l.filebrowser.url,void 0===x&&(x=b.config["filebrowser"+g(d)+"UploadUrl"],void 0===x&&(x=b.config.filebrowserUploadUrl)),x)){var r=l.onClick;l.onClick=function(a){var b=a.sender;if(r&&!1===r.call(b,a))return!1;if(e.call(b,a)){a=b.getDialog().getContentElement(this["for"][0],this["for"][1]).getInputElement();if(b=new CKEDITOR.dom.element(a.$.form))(a=b.$.elements.ckCsrfToken)?a=new CKEDITOR.dom.element(a):
(a=new CKEDITOR.dom.element("input"),a.setAttributes({name:"ckCsrfToken",type:"hidden"}),b.append(a)),a.setAttribute("value",CKEDITOR.tools.getCsrfToken());return!0}return!1};l.filebrowser.url=x;l.hidden=!1;k(b,a.getContents(l["for"][0]).get(l["for"][1]),l.filebrowser)}}function l(b,d,a){if(-1!==a.indexOf(";")){a=a.split(";");for(var c=0;c<a.length;c++)if(l(b,d,a[c]))return!0;return!1}return(b=b.getContents(d).get(a).filebrowser)&&b.url}function b(b,c){var a=this._.filebrowserSe.getDialog(),e=this._.filebrowserSe["for"],
f=this._.filebrowserSe.filebrowser.onSelect;e&&a.getContentElement(e[0],e[1]).reset();if("function"!=typeof c||!1!==c.call(this._.filebrowserSe))if(!f||!1!==f.call(this._.filebrowserSe,b,c))if("string"==typeof c&&c&&alert(c),b&&(e=this._.filebrowserSe,a=e.getDialog(),e=e.filebrowser.target||null))if(e=e.split(":"),f=a.getContentElement(e[0],e[1]))f.setValue(b),a.selectPage(e[0])}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(c){c._.filebrowserFn=CKEDITOR.tools.addFunction(b,c);
c.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(b){if(b.editor.plugins.filebrowser)for(var c=b.data.definition,a,e=0;e<c.contents.length;++e)if(a=c.contents[e])m(b.editor,b.data.name,c,a.elements),a.hidden&&a.filebrowser&&(a.hidden=!l(c,a.id,a.filebrowser))})}(),function(){function c(c){var k=c.config,m=c.fire("uiSpace",{space:"top",html:""}).html,l=function(){function a(b,c,d){h.setStyle(c,f(d));h.setStyle("position",b)}function b(c){var e=
m.getDocumentPosition();switch(c){case "top":a("absolute","top",e.y-v-B);break;case "pin":a("fixed","top",C);break;case "bottom":a("absolute","top",e.y+(q.height||q.bottom-q.top)+B)}d=c}var d,m,r,q,u,v,z,w=k.floatSpaceDockedOffsetX||0,B=k.floatSpaceDockedOffsetY||0,A=k.floatSpacePinnedOffsetX||0,C=k.floatSpacePinnedOffsetY||0;return function(a){if(m=c.editable()){var n=a&&"focus"==a.name;n&&h.show();c.fire("floatingSpaceLayout",{show:n});h.removeStyle("left");h.removeStyle("right");r=h.getClientRect();
q=m.getClientRect();u=g.getViewPaneSize();v=r.height;z="pageXOffset"in g.$?g.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;d?(v+B<=q.top?b("top"):v+B>u.height-q.bottom?b("pin"):b("bottom"),a=u.width/2,a=k.floatSpacePreferRight?"right":0<q.left&&q.right<u.width&&q.width>r.width?"rtl"==k.contentsLangDirection?"right":"left":a-q.left>q.right-a?"left":"right",r.width>u.width?(a="left",n=0):(n="left"==a?0<q.left?q.left:0:q.right<u.width?u.width-q.right:0,n+r.width>u.width&&(a="left"==a?
"right":"left",n=0)),h.setStyle(a,f(("pin"==d?A:w)+n+("pin"==d?0:"left"==a?z:-z)))):(d="pin",b("pin"),l(a))}}}();if(m){var b=new CKEDITOR.template('\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"application" style\x3d"{style}"'+(c.title?' aria-labelledby\x3d"cke_{name}_arialbl"':" ")+"\x3e"+(c.title?'\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e':
" ")+'\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{topId}" class\x3d"cke_top" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),h=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(b.output({content:m,id:c.id,langDir:c.lang.dir,langCode:c.langCode,name:c.name,style:"display:none;z-index:"+(k.baseFloatZIndex-1),topId:c.ui.spaceId("top"),voiceLabel:c.title}))),d=CKEDITOR.tools.eventsBuffer(500,l),a=CKEDITOR.tools.eventsBuffer(100,l);h.unselectable();h.on("mousedown",
function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});c.on("focus",function(b){l(b);c.on("change",d.input);g.on("scroll",a.input);g.on("resize",a.input)});c.on("blur",function(){h.hide();c.removeListener("change",d.input);g.removeListener("scroll",a.input);g.removeListener("resize",a.input)});c.on("destroy",function(){g.removeListener("scroll",a.input);g.removeListener("resize",a.input);h.clearCustomData();h.remove()});c.focusManager.hasFocus&&h.show();c.focusManager.add(h,
1)}}var g=CKEDITOR.document.getWindow(),f=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(e){e.on("loaded",function(){c(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var c=CKEDITOR.addTemplate("panel-list",'\x3cul role\x3d"presentation" class\x3d"cke_panel_list"\x3e{items}\x3c/ul\x3e'),g=CKEDITOR.addTemplate("panel-list-item",'\x3cli id\x3d"{id}" class\x3d"cke_panel_listItem" role\x3dpresentation\x3e\x3ca id\x3d"{id}_option" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"{title}" href\x3d"javascript:void(\'{val}\')"  {onclick}\x3d"CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role\x3d"option"\x3e{text}\x3c/a\x3e\x3c/li\x3e'),
f=CKEDITOR.addTemplate("panel-list-group",'\x3ch1 id\x3d"{id}" class\x3d"cke_panel_grouptitle" role\x3d"presentation" \x3e{label}\x3c/h1\x3e'),e=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(c,e){return this.addBlock(c,new CKEDITOR.ui.listBlock(this.getHolderElement(),e))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(c,e){e=e||{};var f=e.attributes||(e.attributes={});(this.multiSelect=!!e.multiSelect)&&(f["aria-multiselectable"]=!0);!f.role&&
(f.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",f.role);f=this.keys;f[40]="next";f[9]="next";f[38]="prev";f[CKEDITOR.SHIFT+9]="prev";f[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(f[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var e=c.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(e);delete this._.started}},getClick:function(){this._.click||
(this._.click=CKEDITOR.tools.addFunction(function(c){var e=this.toggle(c);if(this.onClick)this.onClick(c,e)},this));return this._.click}},proto:{add:function(c,f,l){var b=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[c]=b;var h;h=CKEDITOR.tools.htmlEncodeAttr(c).replace(e,"\\'");c={id:b,val:h,onclick:CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(l||c),text:f||c};
this._.pendingList.push(g.output(c))},startGroup:function(c){this._.close();var e=CKEDITOR.tools.getNextId();this._.groups[c]=e;this._.pendingHtml.push(f.output({id:e,label:c}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(c){var e=this.isMarked(c);e?this.unmark(c):this.mark(c);return!e},hideGroup:function(c){var e=(c=this.element.getDocument().getById(this._.groups[c]))&&c.getNext();c&&(c.setStyle("display",
"none"),e&&"ul"==e.getName()&&e.setStyle("display","none"))},hideItem:function(c){this.element.getDocument().getById(this._.items[c]).setStyle("display","none")},showAll:function(){var c=this._.items,e=this._.groups,f=this.element.getDocument(),b;for(b in c)f.getById(c[b]).setStyle("display","");for(var g in e)c=f.getById(e[g]),b=c.getNext(),c.setStyle("display",""),b&&"ul"==b.getName()&&b.setStyle("display","")},mark:function(c){this.multiSelect||this.unmarkAll();c=this._.items[c];var e=this.element.getDocument().getById(c);
e.addClass("cke_selected");this.element.getDocument().getById(c+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(e)},markFirstDisplayed:function(){var c=this;this._.markFirstDisplayed(function(){c.multiSelect||c.unmarkAll()})},unmark:function(c){var e=this.element.getDocument();c=this._.items[c];var f=e.getById(c);f.removeClass("cke_selected");e.getById(c+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(f)},unmarkAll:function(){var c=this._.items,e=this.element.getDocument(),
f;for(f in c){var b=c[f];e.getById(b).removeClass("cke_selected");e.getById(b+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(c){return this.element.getDocument().getById(this._.items[c]).hasClass("cke_selected")},focus:function(c){this._.focusIndex=-1;var e=this.element.getElementsByTag("a"),f,b=-1;if(c)for(f=this.element.getDocument().getById(this._.items[c]).getFirst();c=e.getItem(++b);){if(c.equals(f)){this._.focusIndex=b;break}}else this.element.focus();
f&&setTimeout(function(){f.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var c='\x3cspan id\x3d"{id}" class\x3d"cke_combo cke_combo__{name} {cls}" role\x3d"presentation"\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_combo_label"\x3e{label}\x3c/span\x3e\x3ca class\x3d"cke_combo_button" title\x3d"{title}" tabindex\x3d"-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?
"":" href\x3d\"javascript:void('{titleJs}')\"")+' hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-haspopup\x3d"true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(c+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(c+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var c=c+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':
"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan id\x3d"{id}_text" class\x3d"cke_combo_text cke_combo_inlinelabel"\x3e{label}\x3c/span\x3e\x3cspan class\x3d"cke_combo_open"\x3e\x3cspan class\x3d"cke_combo_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":CKEDITOR.env.air?"\x26nbsp;":"")+"\x3c/span\x3e\x3c/span\x3e\x3c/a\x3e\x3c/span\x3e"),g=CKEDITOR.addTemplate("combo",c);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(c){CKEDITOR.tools.extend(this,
c,{canGroup:!1,title:c.label,modes:{wysiwyg:1},editorFocus:1});c=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=c.parent&&c.parent.getDocument()||CKEDITOR.document;c.className="cke_combopanel";c.block={multiSelect:c.multiSelect,attributes:c.attributes};c.toolbarRelated=!0;this._={panelDefinition:c,items:{}}},proto:{renderHtml:function(c){var e=[];this.render(c,e);return e.join("")},render:function(c,e){function k(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var a=
this.modes[c.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;c.readOnly&&!this.readOnly&&(a=CKEDITOR.TRISTATE_DISABLED);this.setState(a);this.setValue("");a!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var m=CKEDITOR.env,l="cke_"+this.id,b=CKEDITOR.tools.addFunction(function(a){t&&(c.unlockSelection(1),t=0);d.execute(a)},this),h=this,d={id:l,combo:this,focus:function(){CKEDITOR.document.getById(l).getChild(1).focus()},execute:function(a){var b=h._;if(b.state!=CKEDITOR.TRISTATE_DISABLED)if(h.createPanel(c),
b.on)b.panel.hide();else{h.commit();var d=h.getValue();d?b.list.mark(d):b.list.unmarkAll();b.panel.showBlock(h.id,new CKEDITOR.dom.element(a),4)}},clickFn:b};c.on("activeFilterChange",k,this);c.on("mode",k,this);c.on("selectionChange",k,this);!this.readOnly&&c.on("readOnly",k,this);var a=CKEDITOR.tools.addFunction(function(a,c){a=new CKEDITOR.dom.event(a);var e=a.getKeystroke();switch(e){case 13:case 32:case 40:CKEDITOR.tools.callFunction(b,c);break;default:d.onkey(d,e)}a.preventDefault()}),n=CKEDITOR.tools.addFunction(function(){d.onfocus&&
d.onfocus()}),t=0;d.keyDownFn=a;m={id:l,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:m.gecko&&!m.hc?"":(this.title||"").replace("'",""),keydownFn:a,focusFn:n,clickFn:b};g.output(m,e);if(this.onRender)this.onRender();return d},createPanel:function(c){if(!this._.panel){var e=this._.panelDefinition,g=this._.panelDefinition.block,m=e.parent||CKEDITOR.document.getBody(),l="cke_combopanel__"+this.name,b=new CKEDITOR.ui.floatPanel(c,m,e),e=b.addListBlock(this.id,
g),h=this;b.onShow=function(){this.element.addClass(l);h.setState(CKEDITOR.TRISTATE_ON);h._.on=1;h.editorFocus&&!c.focusManager.hasFocus&&c.focus();if(h.onOpen)h.onOpen()};b.onHide=function(b){this.element.removeClass(l);h.setState(h.modes&&h.modes[c.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);h._.on=0;if(!b&&h.onClose)h.onClose()};b.onEscape=function(){b.hide(1)};e.onClick=function(c,a){h.onClick&&h.onClick.call(h,c,a);b.hide()};this._.panel=b;this._.list=e;b.getBlock(this.id).onHide=
function(){h._.on=0;h.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(c,e){this._.value=c;var g=this.document.getById("cke_"+this.id+"_text");g&&(c||e?g.removeClass("cke_combo_inlinelabel"):(e=this.label,g.addClass("cke_combo_inlinelabel")),g.setText("undefined"!=typeof e?e:c))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(c){this._.list.mark(c)},hideItem:function(c){this._.list.hideItem(c)},hideGroup:function(c){this._.list.hideGroup(c)},
showAll:function(){this._.list.showAll()},add:function(c,e,g){this._.items[c]=g||c;this._.list.add(c,e,g)},startGroup:function(c){this._.list.startGroup(c)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));this._.committed=1},setState:function(c){if(this._.state!=c){var e=this.document.getById("cke_"+this.id);e.setState(c,"cke_combo");c==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",!0):e.removeAttribute("aria-disabled");this._.state=
c}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}},statics:{handler:{create:function(c){return new CKEDITOR.ui.richCombo(c)}}}});CKEDITOR.ui.prototype.addRichCombo=function(c,e){this.add(c,CKEDITOR.UI_RICHCOMBO,e)}}(),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(c){if(!c.blockless){for(var g=
c.config,f=c.lang.format,e=g.format_tags.split(";"),k={},m=0,l=[],b=0;b<e.length;b++){var h=e[b],d=new CKEDITOR.style(g["format_"+h]);if(!c.filter.customConfig||c.filter.check(d))m++,k[h]=d,k[h]._.enterMode=c.config.enterMode,l.push(d)}0!==m&&c.ui.addRichCombo("Format",{label:f.label,title:f.panelTitle,toolbar:"styles,20",allowedContent:l,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(g.contentsCss),multiSelect:!1,attributes:{"aria-label":f.panelTitle}},init:function(){this.startGroup(f.panelTitle);
for(var a in k){var b=f["tag_"+a];this.add(a,k[a].buildPreview(b),b)}},onClick:function(a){c.focus();c.fire("saveSnapshot");a=k[a];var b=c.elementPath();a.checkActive(b,c)||c.applyStyle(a);setTimeout(function(){c.fire("saveSnapshot")},0)},onRender:function(){c.on("selectionChange",function(a){var b=this.getValue();a=a.data.path;this.refresh();for(var d in k)if(k[d].checkActive(a,c)){d!=b&&this.setValue(d,c.lang.format["tag_"+d]);return}this.setValue("")},this)},onOpen:function(){this.showAll();for(var a in k)c.activeFilter.check(k[a])||
this.hideItem(a)},refresh:function(){var a=c.elementPath();if(a){if(a.isContextFor("p"))for(var b in k)if(c.activeFilter.check(k[b]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},
CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},function(){var c={canUndo:!1,exec:function(c){var f=c.document.createElement("hr");c.insertElement(f)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(g){g.blockless||(g.addCommand("horizontalrule",c),g.ui.addButton&&g.ui.addButton("HorizontalRule",{label:g.lang.horizontalrule.toolbar,command:"horizontalrule",
toolbar:"insert,40"}))}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(c){var g=new CKEDITOR.htmlWriter;g.forceSimpleAmpersand=c.config.forceSimpleAmpersand;g.indentationChars=c.config.dataIndentationChars||"\t";c.dataProcessor.writer=g}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base();this.indentationChars="\t";this.selfClosingEnd=" /\x3e";this.lineBreakChars="\n";this.sortAttributes=1;this._.indent=0;this._.indentation="";this._.inPre=
0;this._.rules={};var c=CKEDITOR.dtd,g;for(g in CKEDITOR.tools.extend({},c.$nonBodyContent,c.$block,c.$listItem,c.$tableContent))this.setRules(g,{indent:!c[g]["#"],breakBeforeOpen:1,breakBeforeClose:!c[g]["#"],breakAfterClose:1,needsSpace:g in c.$block&&!(g in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1});this.setRules("title",{indent:0,breakAfterOpen:0});this.setRules("style",{indent:0,breakBeforeClose:1});this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(c){var g=
this._.rules[c];this._.afterCloser&&g&&g.needsSpace&&this._.needsSpace&&this._.output.push("\n");this._.indent?this.indentation():g&&g.breakBeforeOpen&&(this.lineBreak(),this.indentation());this._.output.push("\x3c",c);this._.afterCloser=0},openTagClose:function(c,g){var f=this._.rules[c];g?(this._.output.push(this.selfClosingEnd),f&&f.breakAfterClose&&(this._.needsSpace=f.needsSpace)):(this._.output.push("\x3e"),f&&f.indent&&(this._.indentation+=this.indentationChars));f&&f.breakAfterOpen&&this.lineBreak();
"pre"==c&&(this._.inPre=1)},attribute:function(c,g){"string"==typeof g&&(this.forceSimpleAmpersand&&(g=g.replace(/&amp;/g,"\x26")),g=CKEDITOR.tools.htmlEncodeAttr(g));this._.output.push(" ",c,'\x3d"',g,'"')},closeTag:function(c){var g=this._.rules[c];g&&g.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length));this._.indent?this.indentation():g&&g.breakBeforeClose&&(this.lineBreak(),this.indentation());this._.output.push("\x3c/",c,"\x3e");"pre"==c&&(this._.inPre=0);g&&
g.breakAfterClose&&(this.lineBreak(),this._.needsSpace=g.needsSpace);this._.afterCloser=1},text:function(c){this._.indent&&(this.indentation(),!this._.inPre&&(c=CKEDITOR.tools.ltrim(c)));this._.output.push(c)},comment:function(c){this._.indent&&this.indentation();this._.output.push("\x3c!--",c,"--\x3e")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars);this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation);
this._.indent=0},reset:function(){this._.output=[];this._.indent=0;this._.indentation="";this._.afterCloser=0;this._.inPre=0;this._.needsSpace=0},setRules:function(c,g){var f=this._.rules[c];f?CKEDITOR.tools.extend(f,g,!0):this._.rules[c]=g}}}),"use strict",function(){function c(b,c){CKEDITOR.tools.extend(this,{editor:b,editable:b.editable(),doc:b.document,win:b.window},c,!0);this.inline=this.editable.isInline();this.inline||(this.frame=this.win.getFrame());this.target=this[this.inline?"editable":
"doc"]}function g(b,c){CKEDITOR.tools.extend(this,c,{editor:b},!0)}function f(b,c){var a=b.editable();CKEDITOR.tools.extend(this,{editor:b,editable:a,inline:a.isInline(),doc:b.document,win:b.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},c,!0);this.hidden={};this.visible={};this.inline||(this.frame=this.win.getFrame());this.queryViewport();var e=CKEDITOR.tools.bind(this.queryViewport,this),f=CKEDITOR.tools.bind(this.hideVisible,this),g=CKEDITOR.tools.bind(this.removeAll,
this);a.attachListener(this.winTop,"resize",e);a.attachListener(this.winTop,"scroll",e);a.attachListener(this.winTop,"resize",f);a.attachListener(this.win,"scroll",f);a.attachListener(this.inline?a:this.frame,"mouseout",function(a){var b=a.data.$.clientX;a=a.data.$.clientY;this.queryViewport();(b<=this.rect.left||b>=this.rect.right||a<=this.rect.top||a>=this.rect.bottom)&&this.hideVisible();(0>=b||b>=this.winTopPane.width||0>=a||a>=this.winTopPane.height)&&this.hideVisible()},this);a.attachListener(b,
"resize",e);a.attachListener(b,"mode",g);b.on("destroy",g);this.lineTpl=(new CKEDITOR.template('\x3cdiv data-cke-lineutils-line\x3d"1" class\x3d"cke_reset_all" style\x3d"{lineStyle}"\x3e\x3cspan style\x3d"{tipLeftStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3cspan style\x3d"{tipRightStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3c/div\x3e')).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},m,this.lineStyle,!0)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},k,{left:"0px","border-left-color":"red",
"border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},k,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,!0))})}function e(c){var d;if(d=c&&c.type==CKEDITOR.NODE_ELEMENT)d=!(l[c.getComputedStyle("float")]||l[c.getAttribute("align")]);return d&&!b[c.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;
CKEDITOR.LINEUTILS_INSIDE=4;c.prototype={start:function(b){var c=this,a=this.editor,e=this.doc,f,g,k,l,m=CKEDITOR.tools.eventsBuffer(50,function(){a.readOnly||"wysiwyg"!=a.mode||(c.relations={},(g=e.$.elementFromPoint(k,l))&&g.nodeType&&(f=new CKEDITOR.dom.element(g),c.traverseSearch(f),isNaN(k+l)||c.pixelSearch(f,k,l),b&&b(c.relations,k,l)))});this.listener=this.editable.attachListener(this.target,"mousemove",function(a){k=a.data.$.clientX;l=a.data.$.clientY;m.input()});this.editable.attachListener(this.inline?
this.editable:this.frame,"mouseout",function(){m.reset()})},stop:function(){this.listener&&this.listener.removeListener()},getRange:function(){var b={};b[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START;b[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END;b[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START;return function(c){var a=this.editor.createRange();a.moveToPosition(this.relations[c.uid].element,b[c.type]);return a}}(),store:function(){function b(c,a,e){var f=c.getUniqueId();
f in e?e[f].type|=a:e[f]={element:c,type:a}}return function(c,a){var f;a&CKEDITOR.LINEUTILS_AFTER&&e(f=c.getNext())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),a^=CKEDITOR.LINEUTILS_AFTER);a&CKEDITOR.LINEUTILS_INSIDE&&e(f=c.getFirst())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),a^=CKEDITOR.LINEUTILS_INSIDE);b(c,a,this.relations)}}(),traverseSearch:function(b){var c,a,f;do if(f=b.$["data-cke-expando"],!(f&&f in this.relations)){if(b.equals(this.editable))break;
if(e(b))for(c in this.lookups)(a=this.lookups[c](b))&&this.store(b,a)}while((!b||b.type!=CKEDITOR.NODE_ELEMENT||"true"!=b.getAttribute("contenteditable"))&&(b=b.getParent()))},pixelSearch:function(){function b(a,f,g,h,k){for(var l=0,m;k(g);){g+=h;if(25==++l)break;if(m=this.doc.$.elementFromPoint(f,g))if(m==a)l=0;else if(c(a,m)&&(l=0,e(m=new CKEDITOR.dom.element(m))))return m}}var c=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a,b){return a.contains(b)}:function(a,b){return!!(a.compareDocumentPosition(b)&
16)};return function(a,c,d){var f=this.win.getViewPaneSize().height,g=b.call(this,a.$,c,d,-1,function(a){return 0<a});c=b.call(this,a.$,c,d,1,function(a){return a<f});if(g)for(this.traverseSearch(g);!g.getParent().equals(a);)g=g.getParent();if(c)for(this.traverseSearch(c);!c.getParent().equals(a);)c=c.getParent();for(;g||c;){g&&(g=g.getNext(e));if(!g||g.equals(c))break;this.traverseSearch(g);c&&(c=c.getPrevious(e));if(!c||c.equals(g))break;this.traverseSearch(c)}}}(),greedySearch:function(){this.relations=
{};for(var b=this.editable.getElementsByTag("*"),c=0,a,f,g;a=b.getItem(c++);)if(!a.equals(this.editable)&&a.type==CKEDITOR.NODE_ELEMENT&&(a.hasAttribute("contenteditable")||!a.isReadOnly())&&e(a)&&a.isVisible())for(g in this.lookups)(f=this.lookups[g](a))&&this.store(a,f);return this.relations}};g.prototype={locate:function(){function b(c,a){var f=c.element[a===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return f&&e(f)?(c.siblingRect=f.getClientRect(),a==CKEDITOR.LINEUTILS_BEFORE?(c.siblingRect.bottom+
c.elementRect.top)/2:(c.elementRect.bottom+c.siblingRect.top)/2):a==CKEDITOR.LINEUTILS_BEFORE?c.elementRect.top:c.elementRect.bottom}return function(c){var a;this.locations={};for(var e in c)a=c[e],a.elementRect=a.element.getClientRect(),a.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(e,CKEDITOR.LINEUTILS_BEFORE,b(a,CKEDITOR.LINEUTILS_BEFORE)),a.type&CKEDITOR.LINEUTILS_AFTER&&this.store(e,CKEDITOR.LINEUTILS_AFTER,b(a,CKEDITOR.LINEUTILS_AFTER)),a.type&CKEDITOR.LINEUTILS_INSIDE&&this.store(e,CKEDITOR.LINEUTILS_INSIDE,
(a.elementRect.top+a.elementRect.bottom)/2);return this.locations}}(),sort:function(){var b,c,a,e;return function(f,g){b=this.locations;c=[];for(var k in b)for(var l in b[k])if(a=Math.abs(f-b[k][l]),c.length){for(e=0;e<c.length;e++)if(a<c[e].dist){c.splice(e,0,{uid:+k,type:l,dist:a});break}e==c.length&&c.push({uid:+k,type:l,dist:a})}else c.push({uid:+k,type:l,dist:a});return"undefined"!=typeof g?c.slice(0,g):c}}(),store:function(b,c,a){this.locations[b]||(this.locations[b]={});this.locations[b][c]=
a}};var k={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},m={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999};f.prototype={removeAll:function(){for(var b in this.hidden)this.hidden[b].remove(),delete this.hidden[b];for(b in this.visible)this.visible[b].remove(),delete this.visible[b]},hideLine:function(b){var c=b.getUniqueId();b.hide();this.hidden[c]=b;delete this.visible[c]},showLine:function(b){var c=
b.getUniqueId();b.show();this.visible[c]=b;delete this.hidden[c]},hideVisible:function(){for(var b in this.visible)this.hideLine(this.visible[b])},placeLine:function(b,c){var a,e,f;if(a=this.getStyle(b.uid,b.type)){for(f in this.visible)if(this.visible[f].getCustomData("hash")!==this.hash){e=this.visible[f];break}if(!e)for(f in this.hidden)if(this.hidden[f].getCustomData("hash")!==this.hash){this.showLine(e=this.hidden[f]);break}e||this.showLine(e=this.addLine());e.setCustomData("hash",this.hash);
this.visible[e.getUniqueId()]=e;e.setStyles(a);c&&c(e)}},getStyle:function(b,c){var a=this.relations[b],e=this.locations[b][c],f={};f.width=a.siblingRect?Math.max(a.siblingRect.width,a.elementRect.width):a.elementRect.width;f.top=this.inline?e+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+e;if(f.top-this.winTopScroll.y<this.rect.top||f.top-this.winTopScroll.y>this.rect.bottom)return!1;this.inline?f.left=a.elementRect.left-this.rect.relativeX:(0<a.elementRect.left?f.left=
this.rect.left+a.elementRect.left:(f.width+=a.elementRect.left,f.left=this.rect.left),0<(a=f.left+f.width-(this.rect.left+this.winPane.width))&&(f.width-=a));f.left+=this.winTopScroll.x;for(var g in f)f[g]=CKEDITOR.tools.cssLength(f[g]);return f},addLine:function(){var b=CKEDITOR.dom.element.createFromHtml(this.lineTpl);b.appendTo(this.container);return b},prepare:function(b,c){this.relations=b;this.locations=c;this.hash=Math.random()},cleanup:function(){var b,c;for(c in this.visible)b=this.visible[c],
b.getCustomData("hash")!==this.hash&&this.hideLine(b)},queryViewport:function(){this.winPane=this.win.getViewPaneSize();this.winTopScroll=this.winTop.getScrollPosition();this.winTopPane=this.winTop.getViewPaneSize();this.rect=this.getClientRect(this.inline?this.editable:this.frame)},getClientRect:function(b){b=b.getClientRect();var c=this.container.getDocumentPosition(),a=this.container.getComputedStyle("position");b.relativeX=b.relativeY=0;"static"!=a&&(b.relativeY=c.y,b.relativeX=c.x,b.top-=b.relativeY,
b.bottom-=b.relativeY,b.left-=b.relativeX,b.right-=b.relativeX);return b}};var l={left:1,right:1,center:1},b={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:c,locator:g,liner:f}}(),function(){function c(c){return c.getName&&!c.hasAttribute("data-cke-temp")}CKEDITOR.plugins.add("widgetselection",{init:function(c){if(CKEDITOR.env.webkit){var f=CKEDITOR.plugins.widgetselection;c.on("contentDom",function(c){c=c.editor;var g=c.document,m=c.editable();m.attachListener(g,"keydown",function(c){var b=
c.data.$;65==c.data.getKey()&&(CKEDITOR.env.mac&&b.metaKey||!CKEDITOR.env.mac&&b.ctrlKey)&&CKEDITOR.tools.setTimeout(function(){f.addFillers(m)||f.removeFillers(m)},0)},null,null,-1);c.on("selectionCheck",function(c){f.removeFillers(c.editor.editable())});c.on("paste",function(c){c.data.dataValue=f.cleanPasteData(c.data.dataValue)});"selectall"in c.plugins&&f.addSelectAllIntegration(c)})}}});CKEDITOR.plugins.widgetselection={startFiller:null,endFiller:null,fillerAttribute:"data-cke-filler-webkit",
fillerContent:"\x26nbsp;",fillerTagName:"div",addFillers:function(g){var f=g.editor;if(!this.isWholeContentSelected(g)&&0<g.getChildCount()){var e=g.getFirst(c),k=g.getLast(c);e&&e.type==CKEDITOR.NODE_ELEMENT&&!e.isEditable()&&(this.startFiller=this.createFiller(),g.append(this.startFiller,1));k&&k.type==CKEDITOR.NODE_ELEMENT&&!k.isEditable()&&(this.endFiller=this.createFiller(!0),g.append(this.endFiller,0));if(this.hasFiller(g))return f=f.createRange(),f.selectNodeContents(g),f.select(),!0}return!1},
removeFillers:function(c){if(this.hasFiller(c)&&!this.isWholeContentSelected(c)){var f=c.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dstart]"),e=c.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dend]");this.startFiller&&f&&this.startFiller.equals(f)?this.removeFiller(this.startFiller,c):this.startFiller=f;this.endFiller&&e&&this.endFiller.equals(e)?this.removeFiller(this.endFiller,c):this.endFiller=e}},cleanPasteData:function(c){c&&c.length&&(c=c.replace(this.createFillerRegex(),
"").replace(this.createFillerRegex(!0),""));return c},isWholeContentSelected:function(c){var f=c.editor.getSelection().getRanges()[0];return!f||f&&f.collapsed?!1:(f=f.clone(),f.enlarge(CKEDITOR.ENLARGE_ELEMENT),!!(f&&c&&f.startContainer&&f.endContainer&&0===f.startOffset&&f.endOffset===c.getChildCount()&&f.startContainer.equals(c)&&f.endContainer.equals(c)))},hasFiller:function(c){return 0<c.find(this.fillerTagName+"["+this.fillerAttribute+"]").count()},createFiller:function(c){var f=new CKEDITOR.dom.element(this.fillerTagName);
f.setHtml(this.fillerContent);f.setAttribute(this.fillerAttribute,c?"end":"start");f.setAttribute("data-cke-temp",1);f.setStyles({display:"block",width:0,height:0,padding:0,border:0,margin:0,position:"absolute",top:0,left:"-9999px",opacity:0,overflow:"hidden"});return f},removeFiller:function(c,f){if(c){var e=f.editor,k=f.editor.getSelection().getRanges()[0].startPath(),m=e.createRange(),l,b;k.contains(c)&&(l=c.getHtml(),b=!0);k="start"==c.getAttribute(this.fillerAttribute);c.remove();l&&0<l.length&&
l!=this.fillerContent?(f.insertHtmlIntoRange(l,e.getSelection().getRanges()[0]),m.setStartAt(f.getChild(f.getChildCount()-1),CKEDITOR.POSITION_BEFORE_END),e.getSelection().selectRanges([m])):b&&(k?m.setStartAt(f.getFirst().getNext(),CKEDITOR.POSITION_AFTER_START):m.setEndAt(f.getLast().getPrevious(),CKEDITOR.POSITION_BEFORE_END),f.editor.getSelection().selectRanges([m]))}},createFillerRegex:function(c){var f=this.createFiller(c).getOuterHtml().replace(/style="[^"]*"/gi,'style\x3d"[^"]*"').replace(/>[^<]*</gi,
"\x3e[^\x3c]*\x3c");return new RegExp((c?"":"^")+f+(c?"$":""))},addSelectAllIntegration:function(c){var f=this;c.editable().attachListener(c,"beforeCommandExec",function(e){var k=c.editable();"selectAll"==e.data.name&&k&&f.addFillers(k)},null,null,9999)}}}(),"use strict",function(){function c(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};F(this);y(this);this.on("checkWidgets",
l);this.editor.on("contentDomInvalidated",this.checkWidgets,this);C(this);w(this);B(this);z(this);A(this)}function g(a,b,c,d,e){var f=a.editor;CKEDITOR.tools.extend(this,d,{editor:f,id:b,inline:"span"==c.getParent().getName(),element:c,data:CKEDITOR.tools.extend({},"function"==typeof d.defaults?d.defaults():d.defaults),dataReady:!1,inited:!1,ready:!1,edit:g.prototype.edit,focusedEditable:null,definition:d,repository:a,draggable:!1!==d.draggable,_:{downcastFn:d.downcast&&"string"==typeof d.downcast?
d.downcasts[d.downcast]:d.downcast}},!0);a.fire("instanceCreated",this);aa(this,d);this.init&&this.init();this.inited=!0;(a=this.element.data("cke-widget-data"))&&this.setData(JSON.parse(decodeURIComponent(a)));e&&this.setData(e);this.data.classes||this.setData("classes",this.getClasses());this.dataReady=!0;R(this);this.fire("data",this.data);this.isInited()&&f.editable().contains(this.wrapper)&&(this.ready=!0,this.fire("ready"))}function f(a,b,c){CKEDITOR.dom.element.call(this,b.$);this.editor=a;
this._={};b=this.filter=c.filter;CKEDITOR.dtd[this.getName()].p?(this.enterMode=b?b.getAllowedEnterMode(a.enterMode):a.enterMode,this.shiftEnterMode=b?b.getAllowedEnterMode(a.shiftEnterMode,!0):a.shiftEnterMode):this.enterMode=this.shiftEnterMode=CKEDITOR.ENTER_BR}function e(a,b){a.addCommand(b.name,{exec:function(a,c){function d(){a.widgets.finalizeCreation(h)}var e=a.widgets.focused;if(e&&e.name==b.name)e.edit();else if(b.insert)b.insert();else if(b.template){var e="function"==typeof b.defaults?
b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e)),f,g=a.widgets.wrapElement(e,b.name),h=new CKEDITOR.dom.documentFragment(g.getDocument());h.append(g);(f=a.widgets.initOn(e,b,c&&c.startupData))?(e=f.once("edit",function(b){if(b.data.dialog)f.once("dialog",function(b){b=b.data;var c,e;c=b.once("ok",d,null,null,20);e=b.once("cancel",function(b){b.data&&!1===b.data.hide||a.widgets.destroy(f,!0)});b.once("hide",function(){c.removeListener();e.removeListener()})});else d()},
null,null,999),f.edit(),e.removeListener()):d()}},allowedContent:b.allowedContent,requiredContent:b.requiredContent,contentForms:b.contentForms,contentTransformations:b.contentTransformations})}function k(a,b){function c(a,d){var e=b.upcast.split(","),f,g;for(g=0;g<e.length;g++)if(f=e[g],f===a.name)return b.upcasts[f].call(this,a,d);return!1}function d(b,c,e){var f=CKEDITOR.tools.getIndex(a._.upcasts,function(a){return a[2]>e});0>f&&(f=a._.upcasts.length);a._.upcasts.splice(f,0,[CKEDITOR.tools.bind(b,
c),c.name,e])}var e=b.upcast,f=b.upcastPriority||10;e&&("string"==typeof e?d(c,b,f):d(e,b,f))}function m(a,b){a.focused=null;if(b.isInited()){var c=b.editor.checkDirty();a.fire("widgetBlurred",{widget:b});b.setFocused(!1);!c&&b.editor.resetDirty()}}function l(a){a=a.data;if("wysiwyg"==this.editor.mode){var b=this.editor.editable(),c=this.instances,d,e,f,h;if(b){for(d in c)c[d].isReady()&&!b.contains(c[d].wrapper)&&this.destroy(c[d],!0);if(a&&a.initOnlyNew)c=this.initOnAll();else{var k=b.find(".cke_widget_wrapper"),
c=[];d=0;for(e=k.count();d<e;d++){f=k.getItem(d);if(h=!this.getByElement(f,!0)){a:{h=r;for(var l=f;l=l.getParent();)if(h(l)){h=!0;break a}h=!1}h=!h}h&&b.contains(f)&&(f.addClass("cke_widget_new"),c.push(this.initOn(f.getFirst(g.isDomWidgetElement))))}}a&&a.focusInited&&1==c.length&&c[0].focus()}}}function b(a){if("undefined"!=typeof a.attributes&&a.attributes["data-widget"]){var b=h(a),c=d(a),e=!1;b&&b.value&&b.value.match(/^\s/g)&&(b.parent.attributes["data-cke-white-space-first"]=1,b.value=b.value.replace(/^\s/g,
"\x26nbsp;"),e=!0);c&&c.value&&c.value.match(/\s$/g)&&(c.parent.attributes["data-cke-white-space-last"]=1,c.value=c.value.replace(/\s$/g,"\x26nbsp;"),e=!0);e&&(a.attributes["data-cke-widget-white-space"]=1)}}function h(a){return a.find(function(a){return 3===a.type},!0).shift()}function d(a){return a.find(function(a){return 3===a.type},!0).pop()}function a(a,b,c){if(!c.allowedContent&&!c.disallowedContent)return null;var d=this._.filters[a];d||(this._.filters[a]=d={});a=d[b];a||(a=c.allowedContent?
new CKEDITOR.filter(c.allowedContent):this.editor.filter.clone(),d[b]=a,c.disallowedContent&&a.disallow(c.disallowedContent));return a}function n(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,iterator:function(a){var e,f,h,k,l;if("data-cke-widget-wrapper"in a.attributes)return(a=a.getFirst(g.isParserWidgetElement))&&b.push([a]),!1;if("data-widget"in a.attributes)return b.push([a]),!1;if(l=c.length){if(a.attributes["data-cke-widget-upcasted"])return!1;k=0;for(e=d.length;k<e;++k)if(!1===
d[k](a))return;for(k=0;k<l;++k)if(e=c[k],h={},f=e[0](a,h))return f instanceof CKEDITOR.htmlParser.element&&(a=f),a.attributes["data-cke-widget-data"]=encodeURIComponent(JSON.stringify(h)),a.attributes["data-cke-widget-upcasted"]=1,b.push([a,e[1]]),!1}}}}function t(a,b){return{tabindex:-1,contenteditable:"false","data-cke-widget-wrapper":1,"data-cke-filter":"off","class":"cke_widget_wrapper cke_widget_new cke_widget_"+(a?"inline":"block")+(b?" cke_widget_"+b:"")}}function p(a,b,c){if(a.type==CKEDITOR.NODE_ELEMENT){var d=
CKEDITOR.dtd[a.name];if(d&&!d[c.name]){var d=a.split(b),e=a.parent;b=d.getIndex();a.children.length||(--b,a.remove());d.children.length||d.remove();return p(e,b,c)}}a.add(c,b)}function x(a,b){return"boolean"==typeof a.inline?a.inline:!!CKEDITOR.dtd.$inline[b]}function r(a){return a.hasAttribute("data-cke-temp")}function q(a,b,c,d){var e=a.editor;e.fire("lockSnapshot");c?(d=c.data("cke-widget-editable"),d=b.editables[d],a.widgetHoldingFocusedEditable=b,b.focusedEditable=d,c.addClass("cke_widget_editable_focused"),
d.filter&&e.setActiveFilter(d.filter),e.setActiveEnterMode(d.enterMode,d.shiftEnterMode)):(d||b.focusedEditable.removeClass("cke_widget_editable_focused"),b.focusedEditable=null,a.widgetHoldingFocusedEditable=null,e.setActiveFilter(null),e.setActiveEnterMode(null,null));e.fire("unlockSnapshot")}function u(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,!0))return b.fire("contextMenu",{})})}function v(a,b){return CKEDITOR.tools.trim(b)}function z(a){var b=a.editor,
c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;g.isDomDragHandler(d)&&(d=a.getByElement(d),c.data.dataTransfer.setData("cke/widget-id",d.id),b.focus(),d.focus())});b.on("drop",function(c){var d=c.data.dataTransfer,e=d.getData("cke/widget-id"),f=d.getTransferType(b),d=b.createRange();""!==e&&f===CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?c.cancel():""!==e&&f==CKEDITOR.DATA_TRANSFER_INTERNAL&&(e=a.instances[e])&&(d.setStartBefore(e.wrapper),d.setEndAfter(e.wrapper),c.data.dragRange=
d,delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount,delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount,c.data.dataTransfer.setData("text/html",b.editable().getHtmlFromRange(d).getHtml()),b.widgets.destroy(e,!0))});b.on("contentDom",function(){var d=b.editable();CKEDITOR.tools.extend(a,{finder:new c.finder(b,{lookups:{"default":function(b){if(!b.is(CKEDITOR.dtd.$listItem)&&b.is(CKEDITOR.dtd.$block)&&!g.isDomNestedEditable(b)&&!a._.draggedWidget.wrapper.contains(b)){var c=g.getNestedEditable(d,
b);if(c){b=a._.draggedWidget;if(a.getByElement(c)==b)return;c=CKEDITOR.filter.instances[c.data("cke-filter")];b=b.requiredContent;if(c&&b&&!c.check(b))return}return CKEDITOR.LINEUTILS_BEFORE|CKEDITOR.LINEUTILS_AFTER}}}}),locator:new c.locator(b),liner:new c.liner(b,{lineStyle:{cursor:"move !important","border-top-color":"#666"},tipLeftStyle:{"border-left-color":"#666"},tipRightStyle:{"border-right-color":"#666"}})},!0)})}function w(a){var b=a.editor;b.on("contentDom",function(){var c=b.editable(),
d=c.isInline()?c:b.document,e,f;c.attachListener(d,"mousedown",function(c){var d=c.data.getTarget();e=d instanceof CKEDITOR.dom.element?a.getByElement(d):null;f=0;e&&(e.inline&&d.type==CKEDITOR.NODE_ELEMENT&&d.hasAttribute("data-cke-widget-drag-handler")?(f=1,a.focused!=e&&b.getSelection().removeAllRanges()):g.getNestedEditable(e.wrapper,d)?e=null:(c.data.preventDefault(),CKEDITOR.env.ie||e.focus()))});c.attachListener(d,"mouseup",function(){f&&e&&e.wrapper&&(f=0,e.focus())});CKEDITOR.env.ie&&c.attachListener(d,
"mouseup",function(){setTimeout(function(){e&&e.wrapper&&c.contains(e.wrapper)&&(e.focus(),e=null)})})});b.on("doubleclick",function(b){var c=a.getByElement(b.data.element);if(c&&!g.getNestedEditable(c.wrapper,b.data.element))return c.fire("doubleclick",{element:b.data.element})},null,null,1)}function B(a){a.editor.on("key",function(b){var c=a.focused,d=a.widgetHoldingFocusedEditable,e;c?e=c.fire("key",{keyCode:b.data.keyCode}):d&&(c=b.data.keyCode,b=d.focusedEditable,c==CKEDITOR.CTRL+65?(c=b.getBogus(),
d=d.editor.createRange(),d.selectNodeContents(b),c&&d.setEndAt(c,CKEDITOR.POSITION_BEFORE_START),d.select(),e=!1):8==c||46==c?(e=d.editor.getSelection().getRanges(),d=e[0],e=!(1==e.length&&d.collapsed&&d.checkBoundaryOfElement(b,CKEDITOR[8==c?"START":"END"]))):e=void 0);return e},null,null,1)}function A(a){function b(c){a.focused&&H(a.focused,"cut"==c.name)}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,"copy",b);a.attachListener(a,"cut",b)})}function C(a){var b=
a.editor;b.on("selectionCheck",function(){a.fire("checkSelection")});a.on("checkSelection",a.checkSelection,a);b.on("selectionChange",function(c){var d=(c=g.getNestedEditable(b.editable(),c.data.selection.getStartElement()))&&a.getByElement(c),e=a.widgetHoldingFocusedEditable;e?e===d&&e.focusedEditable.equals(c)||(q(a,e,null),d&&c&&q(a,d,c)):d&&c&&q(a,d,c)});b.on("dataReady",function(){E(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&m(a,b);(b=a.widgetHoldingFocusedEditable)&&q(a,b,null)})}
function y(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var e=CKEDITOR.tools.getNextNumber(),f=[];b.data.downcastingSessionId=e;c[e]=f;b.data.dataValue.forEach(function(b){var c=b.attributes,e;if("data-cke-widget-white-space"in c){e=h(b);var k=d(b);e.parent.attributes["data-cke-white-space-first"]&&(e.value=e.value.replace(/^&nbsp;/g," "));k.parent.attributes["data-cke-white-space-last"]&&(k.value=k.value.replace(/&nbsp;$/g," "))}if("data-cke-widget-id"in c){if(c=a.instances[c["data-cke-widget-id"]])e=
b.getFirst(g.isParserWidgetElement),f.push({wrapper:b,element:e,widget:c,editables:{}}),"1"!=e.attributes["data-cke-widget-keep-attr"]&&delete e.attributes["data-widget"]}else if("data-cke-widget-editable"in c)return f[f.length-1].editables[c["data-cke-widget-editable"]]=b,!1},CKEDITOR.NODE_ELEMENT,!0)},null,null,8);b.on("toDataFormat",function(a){if(a.data.downcastingSessionId){a=c[a.data.downcastingSessionId];for(var b,d,e,f,g,h;b=a.shift();){d=b.widget;e=b.element;f=d._.downcastFn&&d._.downcastFn.call(d,
e);for(h in b.editables)g=b.editables[h],delete g.attributes.contenteditable,g.setHtml(d.editables[h].getData());f||(f=e);b.wrapper.replaceWith(f)}}},null,null,13);b.on("contentDomUnload",function(){a.destroyAll(!0)})}function F(a){var b=a.editor,c,d;b.on("toHtml",function(b){var d=n(a),e;for(b.data.dataValue.forEach(d.iterator,CKEDITOR.NODE_ELEMENT,!0);e=d.toBeWrapped.pop();){var f=e[0],h=f.parent;h.type==CKEDITOR.NODE_ELEMENT&&h.attributes["data-cke-widget-wrapper"]&&h.replaceWith(f);a.wrapElement(e[0],
e[1])}c=b.data.protectedWhitespaces?3==b.data.dataValue.children.length&&g.isParserWidgetWrapper(b.data.dataValue.children[1]):1==b.data.dataValue.children.length&&g.isParserWidgetWrapper(b.data.dataValue.children[0])},null,null,8);b.on("dataReady",function(){if(d)for(var c=b.editable().find(".cke_widget_wrapper"),e,f,h=0,k=c.count();h<k;++h)e=c.getItem(h),f=e.getFirst(g.isDomWidgetElement),f.type==CKEDITOR.NODE_ELEMENT&&f.data("widget")?(f.replace(e),a.wrapElement(f)):e.remove();d=0;a.destroyAll(!0);
a.initOnAll()});b.on("loadSnapshot",function(b){/data-cke-widget/.test(b.data)&&(d=1);a.destroyAll(!0)},null,null,9);b.on("paste",function(a){a=a.data;a.dataValue=a.dataValue.replace(V,v);a.range&&(a=g.getNestedEditable(b.editable(),a.range.startContainer))&&(a=CKEDITOR.filter.instances[a.data("cke-filter")])&&b.setActiveFilter(a)});b.on("afterInsertHtml",function(d){d.data.intoRange?a.checkWidgets({initOnlyNew:!0}):(b.fire("lockSnapshot"),a.checkWidgets({initOnlyNew:!0,focusInited:c}),b.fire("unlockSnapshot"))})}
function E(a){var b=a.selected,c=[],d=b.slice(0),e=null;return{select:function(a){0>CKEDITOR.tools.indexOf(b,a)&&c.push(a);a=CKEDITOR.tools.indexOf(d,a);0<=a&&d.splice(a,1);return this},focus:function(a){e=a;return this},commit:function(){var f=a.focused!==e,g,h;a.editor.fire("lockSnapshot");for(f&&(g=a.focused)&&m(a,g);g=d.pop();)b.splice(CKEDITOR.tools.indexOf(b,g),1),g.isInited()&&(h=g.editor.checkDirty(),g.setSelected(!1),!h&&g.editor.resetDirty());f&&e&&(h=a.editor.checkDirty(),a.focused=e,a.fire("widgetFocused",
{widget:e}),e.setFocused(!0),!h&&a.editor.resetDirty());for(;g=c.pop();)b.push(g),g.setSelected(!0);a.editor.fire("unlockSnapshot")}}}function G(a,b,c){var d=0;b=L(b);var e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)c?e[f]||(d=e[f]=1):e[f]&&(delete e[f],d=1);d&&a.setData("classes",e)}}function I(a){a.cancel()}function H(a,b){var c=a.editor,d=c.document,e=CKEDITOR.env.edge&&16<=CKEDITOR.env.version;if(!d.getById("cke_copybin")){var f=!c.blockless&&!CKEDITOR.env.ie||e?"div":
"span",e=d.createElement(f),g=d.createElement(f),f=CKEDITOR.env.ie&&9>CKEDITOR.env.version;g.setAttributes({id:"cke_copybin","data-cke-temp":"1"});e.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});e.setStyle("ltr"==c.config.contentsLangDirection?"left":"right","-5000px");var h=c.createRange();h.setStartBefore(a.wrapper);h.setEndAfter(a.wrapper);e.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e​\x3c/span\x3e'+c.editable().getHtmlFromRange(h).getHtml()+'\x3cspan data-cke-copybin-end\x3d"1"\x3e​\x3c/span\x3e');
c.fire("saveSnapshot");c.fire("lockSnapshot");g.append(e);c.editable().append(g);var k=c.on("selectionChange",I,null,null,0),l=a.repository.on("checkSelection",I,null,null,0);if(f)var m=d.getDocumentElement().$,n=m.scrollTop;h=c.createRange();h.selectNodeContents(e);h.select();f&&(m.scrollTop=n);setTimeout(function(){b||a.focus();g.remove();k.removeListener();l.removeListener();c.fire("unlockSnapshot");b&&(a.repository.del(a),c.fire("saveSnapshot"))},100)}}function L(a){return(a=(a=a.getDefinition().attributes)&&
a["class"])?a.split(/\s+/):null}function K(){var a=CKEDITOR.document.getActive(),b=this.editor,c=b.editable();(c.isInline()?c:b.document.getWindow().getFrame()).equals(a)&&b.focusManager.focus(c)}function D(){CKEDITOR.env.gecko&&this.editor.unlockSelection();CKEDITOR.env.webkit||(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function S(a){var b=null;a.on("data",function(){var a=this.data.classes,c;if(b!=a){for(c in b)a&&a[c]||this.removeClass(c);for(c in a)this.addClass(c);
b=a}})}function N(a){a.on("data",function(){if(a.wrapper){var b=this.getLabel?this.getLabel():this.editor.lang.widget.label.replace(/%1/,this.pathName||this.element.getName());a.wrapper.setAttribute("role","region");a.wrapper.setAttribute("aria-label",b)}},null,null,9999)}function P(a){if(a.draggable){var b=a.editor,c=a.wrapper.getLast(g.isDomDragHandlerContainer),d;c?d=c.findOne("img"):(c=new CKEDITOR.dom.element("span",b.document),c.setAttributes({"class":"cke_reset cke_widget_drag_handler_container",
style:"background:rgba(220,220,220,0.5);background-image:url("+b.plugins.widget.path+"images/handle.png)"}),d=new CKEDITOR.dom.element("img",b.document),d.setAttributes({"class":"cke_reset cke_widget_drag_handler","data-cke-widget-drag-handler":"1",src:CKEDITOR.tools.transparentImageData,width:15,title:b.lang.widget.move,height:15,role:"presentation"}),a.inline&&d.setAttribute("draggable","true"),c.append(d),a.wrapper.append(c));a.wrapper.on("dragover",function(a){a.data.preventDefault()});a.wrapper.on("mouseenter",
a.updateDragHandlerPosition,a);setTimeout(function(){a.on("data",a.updateDragHandlerPosition,a)},50);if(!a.inline&&(d.on("mousedown",J,a),CKEDITOR.env.ie&&9>CKEDITOR.env.version))d.on("dragstart",function(a){a.data.preventDefault(!0)});a.dragHandlerContainer=c}}function J(a){function b(){var c;for(q.reset();c=h.pop();)c.removeListener();var d=k;c=a.sender;var e=this.repository.finder,f=this.repository.liner,g=this.editor,l=this.editor.editable();CKEDITOR.tools.isEmpty(f.visible)||(d=e.getRange(d[0]),
this.focus(),g.fire("drop",{dropRange:d,target:d.startContainer}));l.removeClass("cke_widget_dragging");f.hideVisible();g.fire("dragend",{target:c})}if(CKEDITOR.tools.getMouseButton(a)===CKEDITOR.MOUSE_BUTTON_LEFT){var c=this.repository.finder,d=this.repository.locator,e=this.repository.liner,f=this.editor,g=f.editable(),h=[],k=[],l,m;this.repository._.draggedWidget=this;var n=c.greedySearch(),q=CKEDITOR.tools.eventsBuffer(50,function(){l=d.locate(n);k=d.sort(m,1);k.length&&(e.prepare(n,l),e.placeLine(k[0]),
e.cleanup())});g.addClass("cke_widget_dragging");h.push(g.on("mousemove",function(a){m=a.data.$.clientY;q.input()}));f.fire("dragstart",{target:a.sender});h.push(f.document.once("mouseup",b,this));g.isInline()||h.push(CKEDITOR.document.once("mouseup",b,this))}}function U(a){var b,c,d=a.editables;a.editables={};if(a.editables)for(b in d)c=d[b],a.initEditable(b,"string"==typeof c?{selector:c}:c)}function Y(a){if(a.mask){var b=a.wrapper.findOne(".cke_widget_mask");b||(b=new CKEDITOR.dom.element("img",
a.editor.document),b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"}),a.wrapper.append(b));a.mask=b}}function Z(a){if(a.parts){var b={},c,d;for(d in a.parts)c=a.wrapper.findOne(a.parts[d]),b[d]=c;a.parts=b}}function aa(a,b){M(a);Z(a);U(a);Y(a);P(a);S(a);N(a);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)a.wrapper.on("dragstart",function(b){var c=b.data.getTarget();g.getNestedEditable(a,c)||a.inline&&g.isDomDragHandler(c)||b.data.preventDefault()});a.wrapper.removeClass("cke_widget_new");
a.element.addClass("cke_widget_element");a.on("key",function(b){b=b.data.keyCode;if(13==b)a.edit();else{if(b==CKEDITOR.CTRL+67||b==CKEDITOR.CTRL+88){H(a,b==CKEDITOR.CTRL+88);return}if(b in T||CKEDITOR.CTRL&b||CKEDITOR.ALT&b)return}return!1},null,null,999);a.on("doubleclick",function(b){a.edit()&&b.cancel()});if(b.data)a.on("data",b.data);if(b.edit)a.on("edit",b.edit)}function M(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function R(a){a.element.data("cke-widget-data",
encodeURIComponent(JSON.stringify(a.data)))}function O(){function a(){}function b(a,c,d){return d&&this.checkElement(a)?(a=d.widgets.getByElement(a,!0))&&a.checkStyleActive(this):!1}var c={};CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget;if(this.group="string"==typeof a.group?[a.group]:a.group){a=this.widget;var b;c[a]||(c[a]={});for(var d=0,e=this.group.length;d<e;d++)b=this.group[d],c[a][b]||(c[a][b]=[]),c[a][b].push(this)}},apply:function(a){var b;a instanceof
CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&(b=a.widgets.focused,this.group&&this.removeStylesFromSameGroup(a),b.applyStyle(this))},remove:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.removeStyle(this)},removeStylesFromSameGroup:function(a){var b,d,e=!1;if(!(a instanceof CKEDITOR.editor))return!1;d=a.elementPath();if(this.checkApplicable(d,a))for(var f=0,g=this.group.length;f<g;f++){b=c[this.widget][this.group[f]];for(var h=0;h<
b.length;h++)b[h]!==this&&b[h].checkActive(d,a)&&(a.widgets.focused.removeStyle(b[h]),e=!0)}return e},checkActive:function(a,b){return this.checkElementMatch(a.lastElement,0,b)},checkApplicable:function(a,b){return b instanceof CKEDITOR.editor?this.checkElement(a.lastElement):!1},checkElementMatch:b,checkElementRemovable:b,checkElement:function(a){return g.isDomWidgetWrapper(a)?(a=a.getFirst(g.isDomWidgetElement))&&a.data("widget")==this.widget:!1},buildPreview:function(a){return a||this._.definition.name},
toAllowedContentRules:function(a){if(!a)return null;a=a.widgets.registered[this.widget];var b,c={};if(!a)return null;if(a.styleableElements){b=this.getClassesArray();if(!b)return null;c[a.styleableElements]={classes:b,propertiesOnly:!0};return c}return a.styleToAllowedContentRules?a.styleToAllowedContentRules(this):null},getClassesArray:function(){var a=this._.definition.attributes&&this._.definition.attributes["class"];return a?CKEDITOR.tools.trim(a).split(/\s+/):null},applyToRange:a,removeFromRange:a,
applyToObject:a})}CKEDITOR.plugins.add("widget",{requires:"lineutils,clipboard,widgetselection",onLoad:function(){void 0!==CKEDITOR.document.$.querySelectorAll&&(CKEDITOR.addCss(".cke_widget_wrapper{position:relative;outline:none}.cke_widget_inline{display:inline-block}.cke_widget_wrapper:hover\x3e.cke_widget_element{outline:2px solid yellow;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid yellow}.cke_widget_wrapper.cke_widget_focused\x3e.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #ace}.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:15px;height:0;display:none;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover\x3e.cke_widget_drag_handler_container{height:15px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:15px;height:15px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}"),
O())},beforeInit:function(a){void 0!==CKEDITOR.document.$.querySelectorAll&&(a.widgets=new c(a))},afterInit:function(a){if(void 0!==CKEDITOR.document.$.querySelectorAll){var b=a.widgets.registered,c,d,e;for(d in b)c=b[d],(e=c.button)&&a.ui.addButton&&a.ui.addButton(CKEDITOR.tools.capitalize(c.name,!0),{label:e,command:c.name,toolbar:"insert,10"});u(a)}}});c.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(a,b){b=CKEDITOR.tools.prototypedCopy(b);b.name=a;b._=b._||{};this.editor.fire("widgetDefinition",
b);b.template&&(b.template=new CKEDITOR.template(b.template));e(this.editor,b);k(this,b);return this.registered[a]=b},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=E(this),d;if(b&&(d=this.getByElement(b,!0)))return c.focus(d).select(d).commit();a=a.getRanges()[0];if(!a||a.collapsed)return c.commit();a=new CKEDITOR.dom.walker(a);for(a.evaluator=g.isDomWidgetWrapper;b=a.next();)c.select(this.getByElement(b));
c.commit()},checkWidgets:function(a){this.fire("checkWidgets",CKEDITOR.tools.copy(a||{}))},del:function(a){if(this.focused===a){var b=a.editor,c=b.createRange(),d;(d=c.moveToClosestEditablePosition(a.wrapper,!0))||(d=c.moveToClosestEditablePosition(a.wrapper,!1));d&&b.getSelection().selectRanges([c])}a.wrapper.remove();this.destroy(a,!0)},destroy:function(a,b){this.widgetHoldingFocusedEditable===a&&q(this,a,null,b);a.destroy(b);delete this.instances[a.id];this.fire("instanceDestroyed",a)},destroyAll:function(a,
b){var c,d,e=this.instances;if(b&&!a){d=b.find(".cke_widget_wrapper");for(var e=d.count(),f=0;f<e;++f)(c=this.getByElement(d.getItem(f),!0))&&this.destroy(c)}else for(d in e)c=e[d],this.destroy(c,a)},finalizeCreation:function(a){(a=a.getFirst())&&g.isDomWidgetWrapper(a)&&(this.editor.insertElement(a),a=this.getByElement(a),a.ready=!0,a.fire("ready"),a.focus())},getByElement:function(){function a(c){return c.is(b)&&c.data("cke-widget-id")}var b={div:1,span:1};return function(b,c){if(!b)return null;
var d=a(b);if(!c&&!d){var e=this.editor.editable();do b=b.getParent();while(b&&!b.equals(e)&&!(d=a(b)))}return this.instances[d]||null}}(),initOn:function(a,b,c){b?"string"==typeof b&&(b=this.registered[b]):b=this.registered[a.data("widget")];if(!b)return null;var d=this.wrapElement(a,b.name);return d?d.hasClass("cke_widget_new")?(a=new g(this,this._.nextId++,a,b,c),a.isInited()?this.instances[a.id]=a:null):this.getByElement(a):null},initOnAll:function(a){a=(a||this.editor.editable()).find(".cke_widget_new");
for(var b=[],c,d=a.count();d--;)(c=this.initOn(a.getItem(d).getFirst(g.isDomWidgetElement)))&&b.push(c);return b},onWidget:function(a){var b=Array.prototype.slice.call(arguments);b.shift();for(var c in this.instances){var d=this.instances[c];d.name==a&&d.on.apply(d,b)}this.on("instanceCreated",function(c){c=c.data;c.name==a&&c.on.apply(c,b)})},parseElementClasses:function(a){if(!a)return null;a=CKEDITOR.tools.trim(a).split(/\s+/);for(var b,c={},d=0;b=a.pop();)-1==b.indexOf("cke_")&&(c[b]=d=1);return d?
c:null},wrapElement:function(a,c){var d=null,e,f;if(a instanceof CKEDITOR.dom.element){c=c||a.data("widget");e=this.registered[c];if(!e)return null;if((d=a.getParent())&&d.type==CKEDITOR.NODE_ELEMENT&&d.data("cke-widget-wrapper"))return d;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);a.data("widget",c);(f=x(e,a.getName()))&&b(a);d=new CKEDITOR.dom.element(f?"span":"div");d.setAttributes(t(f,c));d.data("cke-display-name",e.pathName?e.pathName:a.getName());
a.getParent(!0)&&d.replace(a);a.appendTo(d)}else if(a instanceof CKEDITOR.htmlParser.element){c=c||a.attributes["data-widget"];e=this.registered[c];if(!e)return null;if((d=a.parent)&&d.type==CKEDITOR.NODE_ELEMENT&&d.attributes["data-cke-widget-wrapper"])return d;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);c&&(a.attributes["data-widget"]=c);(f=x(e,a.name))&&b(a);d=new CKEDITOR.htmlParser.element(f?"span":"div",t(f,c));d.attributes["data-cke-display-name"]=
e.pathName?e.pathName:a.name;e=a.parent;var g;e&&(g=a.getIndex(),a.remove());d.add(a);e&&p(e,g,d)}return d},_tests_createEditableFilter:a};CKEDITOR.event.implementOn(c.prototype);g.prototype={addClass:function(a){this.element.addClass(a);this.wrapper.addClass(g.WRAPPER_CLASS_PREFIX+a)},applyStyle:function(a){G(this,a,1)},checkStyleActive:function(a){a=L(a);var b;if(!a)return!1;for(;b=a.pop();)if(!this.hasClass(b))return!1;return!0},destroy:function(a){this.fire("destroy");if(this.editables)for(var b in this.editables)this.destroyEditable(b,
a);a||("0"==this.element.data("cke-widget-keep-attr")&&this.element.removeAttribute("data-widget"),this.element.removeAttributes(["data-cke-widget-data","data-cke-widget-keep-attr"]),this.element.removeClass("cke_widget_element"),this.element.replace(this.wrapper));this.wrapper=null},destroyEditable:function(a,b){var c=this.editables[a];c.removeListener("focus",D);c.removeListener("blur",K);this.editor.focusManager.remove(c);b||(this.repository.destroyAll(!1,c),c.removeClass("cke_widget_editable"),
c.removeClass("cke_widget_editable_focused"),c.removeAttributes(["contenteditable","data-cke-widget-editable","data-cke-enter-mode"]));delete this.editables[a]},edit:function(){var a={dialog:this.dialog},b=this;if(!1===this.fire("edit",a)||!a.dialog)return!1;this.editor.openDialog(a.dialog,function(a){var c,d;!1!==b.fire("dialog",a)&&(c=a.on("show",function(){a.setupContent(b)}),d=a.on("ok",function(){var c,d=b.on("data",function(a){c=1;a.cancel()},null,null,0);b.editor.fire("saveSnapshot");a.commitContent(b);
d.removeListener();c&&(b.fire("data",b.data),b.editor.fire("saveSnapshot"))}),a.once("hide",function(){c.removeListener();d.removeListener()}))});return!0},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},hasClass:function(a){return this.element.hasClass(a)},initEditable:function(b,c){var d=this._findOneNotNested(c.selector);return d&&d.is(CKEDITOR.dtd.$editable)?(d=new f(this.editor,d,{filter:a.call(this.repository,this.name,b,c)}),this.editables[b]=
d,d.setAttributes({contenteditable:"true","data-cke-widget-editable":b,"data-cke-enter-mode":d.enterMode}),d.filter&&d.data("cke-filter",d.filter.id),d.addClass("cke_widget_editable"),d.removeClass("cke_widget_editable_focused"),c.pathName&&d.data("cke-display-name",c.pathName),this.editor.focusManager.add(d),d.on("focus",D,this),CKEDITOR.env.ie&&d.on("blur",K,this),d._.initialSetData=!0,d.setData(d.getHtml()),!0):!1},_findOneNotNested:function(a){a=this.wrapper.find(a);for(var b,c,d=0;d<a.count();d++)if(b=
a.getItem(d),c=b.getAscendant(g.isDomWidgetWrapper),this.wrapper.equals(c))return b;return null},isInited:function(){return!(!this.wrapper||!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var a=this.editor.getSelection();if(a){var b=this.editor.checkDirty();a.fake(this.wrapper);!b&&this.editor.resetDirty()}this.editor.focus()},removeClass:function(a){this.element.removeClass(a);this.wrapper.removeClass(g.WRAPPER_CLASS_PREFIX+a)},removeStyle:function(a){G(this,
a,0)},setData:function(a,b){var c=this.data,d=0;if("string"==typeof a)c[a]!==b&&(c[a]=b,d=1);else{var e=a;for(a in e)c[a]!==e[a]&&(d=1,c[a]=e[a])}d&&this.dataReady&&(R(this),this.fire("data",c));return this},setFocused:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_focused");this.fire(a?"focus":"blur");return this},setSelected:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_selected");this.fire(a?"select":"deselect");return this},updateDragHandlerPosition:function(){var a=
this.editor,b=this.element.$,c=this._.dragHandlerOffset,b={x:b.offsetLeft,y:b.offsetTop-15};c&&b.x==c.x&&b.y==c.y||(c=a.checkDirty(),a.fire("lockSnapshot"),this.dragHandlerContainer.setStyles({top:b.y+"px",left:b.x+"px",display:"block"}),a.fire("unlockSnapshot"),!c&&a.resetDirty(),this._.dragHandlerOffset=b)}};CKEDITOR.event.implementOn(g.prototype);g.getNestedEditable=function(a,b){return!b||b.equals(a)?null:g.isDomNestedEditable(b)?b:g.getNestedEditable(a,b.getParent())};g.isDomDragHandler=function(a){return a.type==
CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};g.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")};g.isDomNestedEditable=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")};g.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};g.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};
g.isDomWidget=function(a){return a?this.isDomWidgetWrapper(a)||this.isDomWidgetElement(a):!1};g.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};g.isParserWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-cke-widget-wrapper"]};g.WRAPPER_CLASS_PREFIX="cke_widget_wrapper_";f.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.dom.element.prototype),{setData:function(a){this._.initialSetData||
this.editor.widgets.destroyAll(!1,this);this._.initialSetData=!1;a=this.editor.dataProcessor.toHtml(a,{context:this.getName(),filter:this.filter,enterMode:this.enterMode});this.setHtml(a);this.editor.widgets.initOnAll(this)},getData:function(){return this.editor.dataProcessor.toDataFormat(this.getHtml(),{context:this.getName(),filter:this.filter,enterMode:this.enterMode})}});var V=/^(?:<(?:div|span)(?: data-cke-temp="1")?(?: id="cke_copybin")?(?: data-cke-temp="1")?>)?(?:<(?:div|span)(?: style="[^"]+")?>)?<span [^>]*data-cke-copybin-start="1"[^>]*>.?<\/span>([\s\S]+)<span [^>]*data-cke-copybin-end="1"[^>]*>.?<\/span>(?:<\/(?:div|span)>)?(?:<\/(?:div|span)>)?$/i,
T={37:1,38:1,39:1,40:1,8:1,46:1};CKEDITOR.plugins.widget=g;g.repository=c;g.nestedEditable=f}(),"use strict",function(){function c(b){function c(){this.deflated||(b.widgets.focused==this.widget&&(this.focused=!0),b.widgets.destroy(this.widget),this.deflated=!0)}function e(){var a=b.editable(),c=b.document;if(this.deflated)this.widget=b.widgets.initOn(this.element,"image",this.widget.data),this.widget.inline&&!(new CKEDITOR.dom.elementPath(this.widget.wrapper,a)).block&&(a=c.createElement(b.activeEnterMode==
CKEDITOR.ENTER_P?"p":"div"),a.replace(this.widget.wrapper),this.widget.wrapper.move(a)),this.focused&&(this.widget.focus(),delete this.focused),delete this.deflated;else{var d=this.widget,a=h,c=d.wrapper,f=d.data.align,d=d.data.hasCaption;if(a){for(var g=3;g--;)c.removeClass(a[g]);"center"==f?d&&c.addClass(a[1]):"none"!=f&&c.addClass(a[p[f]])}else"center"==f?(d?c.setStyle("text-align","center"):c.removeStyle("text-align"),c.removeStyle("float")):("none"==f?c.removeStyle("float"):c.setStyle("float",
f),c.removeStyle("text-align"))}}var h=b.config.image2_alignClasses,k=b.config.image2_captionedClass;return{allowedContent:d(b),requiredContent:"img[src,alt]",features:a(b),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href,target]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:'\x3cimg alt\x3d"" src\x3d"" /\x3e',data:function(){var a=this.features;
this.data.hasCaption&&!b.filter.checkFeature(a.caption)&&(this.data.hasCaption=!1);"none"==this.data.align||b.filter.checkFeature(a.align)||(this.data.align="none");this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:c,inflate:e});this.data.link?this.parts.link||(this.parts.link=this.parts.image.getParent()):this.parts.link&&delete this.parts.link;this.parts.image.setAttributes({src:this.data.src,"data-cke-saved-src":this.data.src,alt:this.data.alt});if(this.oldData&&
!this.oldData.hasCaption&&this.data.hasCaption)for(var d in this.data.classes)this.parts.image.removeClass(d);if(b.filter.checkFeature(a.dimension)){a=this.data;a={width:a.width,height:a.height};d=this.parts.image;for(var f in a)a[f]?d.setAttribute(f,a[f]):d.removeAttribute(f)}this.oldData=CKEDITOR.tools.extend({},this.data)},init:function(){var a=CKEDITOR.plugins.image2,c=this.parts.image,d={hasCaption:!!this.parts.caption,src:c.getAttribute("src"),alt:c.getAttribute("alt")||"",width:c.getAttribute("width")||
"",height:c.getAttribute("height")||"",lock:this.ready?a.checkHasNaturalRatio(c):!0},e=c.getAscendant("a");e&&this.wrapper.contains(e)&&(this.parts.link=e);d.align||(c=d.hasCaption?this.element:c,h?(c.hasClass(h[0])?d.align="left":c.hasClass(h[2])&&(d.align="right"),d.align?c.removeClass(h[p[d.align]]):d.align="none"):(d.align=c.getStyle("float")||"none",c.removeStyle("float")));b.plugins.link&&this.parts.link&&(d.link=a.getLinkAttributesParser()(b,this.parts.link),(c=d.link.advanced)&&c.advCSSClasses&&
(c.advCSSClasses=CKEDITOR.tools.trim(c.advCSSClasses.replace(/cke_\S+/,""))));this.wrapper[(d.hasCaption?"remove":"add")+"Class"]("cke_image_nocaption");this.setData(d);b.filter.checkFeature(this.features.dimension)&&!0!==b.config.image2_disableResizer&&1!=b.readOnly&&m(this);this.shiftState=a.stateShifter(this.editor);this.on("contextMenu",function(a){a.data.image=CKEDITOR.TRISTATE_OFF;if(this.parts.link||this.wrapper.getAscendant("a"))a.data.link=a.data.unlink=CKEDITOR.TRISTATE_OFF});this.on("dialog",
function(a){a.data.widget=this},this)},addClass:function(a){n(this).addClass(a)},hasClass:function(a){return n(this).hasClass(a)},removeClass:function(a){n(this).removeClass(a)},getClasses:function(){var a=new RegExp("^("+[].concat(k,h).join("|")+")$");return function(){var b=this.repository.parseElementClasses(n(this).getAttribute("class")),c;for(c in b)a.test(c)&&delete b[c];return b}}(),upcast:g(b),downcast:f(b),getLabel:function(){return this.editor.lang.widget.label.replace(/%1/,(this.data.alt||
"")+" "+this.pathName)}}}function g(a){var b=e(a),c=a.config.image2_captionedClass;return function(a,d){var e={width:1,height:1},f=a.name,g;if(!a.attributes["data-cke-realelement"]&&(b(a)?("div"==f&&(g=a.getFirst("figure"))&&(a.replaceWith(g),a=g),d.align="center",g=a.getFirst("img")||a.getFirst("a").getFirst("img")):"figure"==f&&a.hasClass(c)?g=a.getFirst("img")||a.getFirst("a").getFirst("img"):k(a)&&(g="a"==a.name?a.children[0]:a),g)){for(var h in e)(e=g.attributes[h])&&e.match(x)&&delete g.attributes[h];
return a}}}function f(a){var b=a.config.image2_alignClasses;return function(a){var c="a"==a.name?a.getFirst():a,d=c.attributes,e=this.data.align;if(!this.inline){var f=a.getFirst("span");f&&f.replaceWith(f.getFirst({img:1,a:1}))}e&&"none"!=e&&(f=CKEDITOR.tools.parseCssText(d.style||""),"center"==e&&"figure"==a.name?a=a.wrapWith(new CKEDITOR.htmlParser.element("div",b?{"class":b[1]}:{style:"text-align:center"})):e in{left:1,right:1}&&(b?c.addClass(b[p[e]]):f["float"]=e),b||CKEDITOR.tools.isEmpty(f)||
(d.style=CKEDITOR.tools.writeCssText(f)));return a}}function e(a){var b=a.config.image2_captionedClass,c=a.config.image2_alignClasses,d={figure:1,a:1,img:1};return function(e){if(!(e.name in{div:1,p:1}))return!1;var f=e.children;if(1!==f.length)return!1;f=f[0];if(!(f.name in d))return!1;if("p"==e.name){if(!k(f))return!1}else if("figure"==f.name){if(!f.hasClass(b))return!1}else if(a.enterMode==CKEDITOR.ENTER_P||!k(f))return!1;return(c?e.hasClass(c[1]):"center"==CKEDITOR.tools.parseCssText(e.attributes.style||
"",!0)["text-align"])?!0:!1}}function k(a){return"img"==a.name?!0:"a"==a.name?1==a.children.length&&a.getFirst("img"):!1}function m(a){var b=a.editor,c=b.editable(),d=b.document,e=a.resizer=d.createElement("span");e.addClass("cke_image_resizer");e.setAttribute("title",b.lang.image2.resizer);e.append(new CKEDITOR.dom.text("​",d));if(a.inline)a.wrapper.append(e);else{var f=a.parts.link||a.parts.image,g=f.getParent(),h=d.createElement("span");h.addClass("cke_image_resizer_wrapper");h.append(f);h.append(e);
a.element.append(h,!0);g.is("span")&&g.remove()}e.on("mousedown",function(f){function g(a,b,c){var e=CKEDITOR.document,f=[];d.equals(e)||f.push(e.on(a,b));f.push(d.on(a,b));if(c)for(a=f.length;a--;)c.push(f.pop())}function h(){U=x+m*aa;Y=Math.round(U/A)}function k(){Y=B-M;U=Math.round(Y*A)}var l=a.parts.image,m="right"==a.data.align?-1:1,n=f.data.$.screenX,w=f.data.$.screenY,x=l.$.clientWidth,B=l.$.clientHeight,A=x/B,t=[],p="cke_image_s"+(~m?"e":"w"),J,U,Y,Z,aa,M,R;b.fire("saveSnapshot");g("mousemove",
function(a){J=a.data.$;aa=J.screenX-n;M=w-J.screenY;R=Math.abs(aa/M);1==m?0>=aa?0>=M?h():R>=A?h():k():0>=M?R>=A?k():h():k():0>=aa?0>=M?R>=A?k():h():k():0>=M?h():R>=A?h():k();15<=U&&15<=Y?(l.setAttributes({width:U,height:Y}),Z=!0):Z=!1},t);g("mouseup",function(){for(var d;d=t.pop();)d.removeListener();c.removeClass(p);e.removeClass("cke_image_resizing");Z&&(a.setData({width:U,height:Y}),b.fire("saveSnapshot"));Z=!1},t);c.addClass(p);e.addClass("cke_image_resizing")});a.on("data",function(){e["right"==
a.data.align?"addClass":"removeClass"]("cke_image_resizer_left")})}function l(a){var b=[],c;return function(d){var e=a.getCommand("justify"+d);if(e){b.push(function(){e.refresh(a,a.elementPath())});if(d in{right:1,left:1,center:1})e.on("exec",function(c){var e=h(a);if(e){e.setData("align",d);for(e=b.length;e--;)b[e]();c.cancel()}});e.on("refresh",function(b){var e=h(a),f={right:1,left:1,center:1};e&&(void 0===c&&(c=a.filter.checkFeature(a.widgets.registered.image.features.align)),c?this.setState(e.data.align==
d?CKEDITOR.TRISTATE_ON:d in f?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_DISABLED),b.cancel())})}}}function b(a){a.plugins.link&&(CKEDITOR.on("dialogDefinition",function(b){b=b.data;if("link"==b.name){b=b.definition;var c=b.onShow,d=b.onOk;b.onShow=function(){var b=h(a),d=this.getContentElement("info","linkDisplayText").getElement().getParent().getParent();b&&(b.inline?!b.wrapper.getAscendant("a"):1)?(this.setupContent(b.data.link||{}),d.hide()):(d.show(),c.apply(this,
arguments))};b.onOk=function(){var b=h(a);if(b&&(b.inline?!b.wrapper.getAscendant("a"):1)){var c={};this.commitContent(c);b.setData("link",c)}else d.apply(this,arguments)}}}),a.getCommand("unlink").on("exec",function(b){var c=h(a);c&&c.parts.link&&(c.setData("link",null),this.refresh(a,a.elementPath()),b.cancel())}),a.getCommand("unlink").on("refresh",function(b){var c=h(a);c&&(this.setState(c.data.link||c.wrapper.getAscendant("a")?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),b.cancel())}))}
function h(a){return(a=a.widgets.focused)&&"image"==a.name?a:null}function d(a){var b=a.config.image2_alignClasses;a={div:{match:e(a)},p:{match:e(a)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+a.config.image2_captionedClass},figcaption:!0};b?(a.div.classes=b[1],a.p.classes=a.div.classes,a.img.classes=b[0]+","+b[2],a.figure.classes+=","+a.img.classes):(a.div.styles="text-align",a.p.styles="text-align",a.img.styles="float",a.figure.styles="float,display");return a}function a(a){a=
a.config.image2_alignClasses;return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+(a?"("+a[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function n(a){return a.data.hasCaption?a.element:a.parts.image}var t=new CKEDITOR.template('\x3cfigure class\x3d"{captionedClass}"\x3e\x3cimg alt\x3d"" src\x3d"" /\x3e\x3cfigcaption\x3e{captionPlaceholder}\x3c/figcaption\x3e\x3c/figure\x3e'),p={left:0,center:1,right:2},x=/^\s*(\d+\%)\s*$/i;CKEDITOR.plugins.add("image2",
{requires:"widget,dialog",icons:"image",hidpi:!0,onLoad:function(){CKEDITOR.addCss(".cke_image_nocaption{line-height:0}.cke_editable.cke_image_sw, .cke_editable.cke_image_sw *{cursor:sw-resize !important}.cke_editable.cke_image_se, .cke_editable.cke_image_se *{cursor:se-resize !important}.cke_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.cke_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.cke_image_resizer.cke_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.cke_widget_wrapper:hover .cke_image_resizer,.cke_image_resizer.cke_image_resizing{display:block}.cke_widget_wrapper\x3ea{display:inline-block}")},
init:function(a){var b=a.config,d=a.lang.image2,e=c(a);b.filebrowserImage2BrowseUrl=b.filebrowserImageBrowseUrl;b.filebrowserImage2UploadUrl=b.filebrowserImageUploadUrl;e.pathName=d.pathName;e.editables.caption.pathName=d.pathNameCaption;a.widgets.add("image",e);a.ui.addButton&&a.ui.addButton("Image",{label:a.lang.common.image,command:"image",toolbar:"insert,10"});a.contextMenu&&(a.addMenuGroup("image",10),a.addMenuItem("image",{label:d.menu,command:"image",group:"image"}));CKEDITOR.dialog.add("image2",
this.path+"dialogs/image2.js")},afterInit:function(a){var c={left:1,right:1,center:1,block:1},d=l(a),e;for(e in c)d(e);b(a)}});CKEDITOR.plugins.image2={stateShifter:function(a){function b(a,f){var g={};e?g.attributes={"class":e[1]}:g.styles={"text-align":"center"};g=d.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div",g);c(g,f);f.move(g);return g}function c(b,d){if(d.getParent()){var e=a.createRange();e.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();g.insertElementIntoRange(b,
e)}else b.replace(d)}var d=a.document,e=a.config.image2_alignClasses,f=a.config.image2_captionedClass,g=a.editable(),h=["hasCaption","align","link"],k={align:function(c,d,f){var g=c.element;c.changed.align?c.newData.hasCaption||("center"==f&&(c.deflate(),c.element=b(a,g)),c.changed.hasCaption||"center"!=d||"center"==f||(c.deflate(),d=g.findOne("a,img"),d.replace(g),c.element=d)):"center"==f&&c.changed.hasCaption&&!c.newData.hasCaption&&(c.deflate(),c.element=b(a,g));!e&&g.is("figure")&&("center"==
f?g.setStyle("display","inline-block"):g.removeStyle("display"))},hasCaption:function(b,e,g){b.changed.hasCaption&&(e=b.element.is({img:1,a:1})?b.element:b.element.findOne("a,img"),b.deflate(),g?(g=CKEDITOR.dom.element.createFromHtml(t.output({captionedClass:f,captionPlaceholder:a.lang.image2.captionPlaceholder}),d),c(g,b.element),e.replace(g.findOne("img")),b.element=g):(e.replace(b.element),b.element=e))},link:function(b,c,e){if(b.changed.link){var f=b.element.is("img")?b.element:b.element.findOne("img"),
g=b.element.is("a")?b.element:b.element.findOne("a"),h=b.element.is("a")&&!e||b.element.is("img")&&e,k;h&&b.deflate();e?(c||(k=d.createElement("a",{attributes:{href:b.newData.link.url}}),k.replace(f),f.move(k)),e=CKEDITOR.plugins.image2.getLinkAttributesGetter()(a,e),CKEDITOR.tools.isEmpty(e.set)||(k||g).setAttributes(e.set),e.removed.length&&(k||g).removeAttributes(e.removed)):(e=g.findOne("img"),e.replace(g),k=e);h&&(b.element=k)}}};return function(a){var b,c;a.changed={};for(c=0;c<h.length;c++)b=
h[c],a.changed[b]=a.oldData?a.oldData[b]!==a.newData[b]:!1;for(c=0;c<h.length;c++)b=h[c],k[b](a,a.oldData?a.oldData[b]:null,a.newData[b]);a.inflate()}},checkHasNaturalRatio:function(a){var b=a.$;a=this.getNatural(a);return Math.round(b.clientWidth/a.width*a.height)==b.clientHeight||Math.round(b.clientHeight/a.height*a.width)==b.clientWidth},getNatural:function(a){if(a.$.naturalWidth)a={width:a.$.naturalWidth,height:a.$.naturalHeight};else{var b=new Image;b.src=a.getAttribute("src");a={width:b.width,
height:b.height}}return a},getLinkAttributesGetter:function(){return CKEDITOR.plugins.link.getLinkAttributes},getLinkAttributesParser:function(){return CKEDITOR.plugins.link.parseLinkAttributes}}}(),CKEDITOR.config.image2_captionedClass="image",function(){function c(c,k){var m,l;k.on("refresh",function(b){var c=[g],d;for(d in b.data.states)c.push(b.data.states[d]);this.setState(CKEDITOR.tools.search(c,f)?f:g)},k,null,100);k.on("exec",function(b){m=c.getSelection();l=m.createBookmarks(1);b.data||(b.data=
{});b.data.done=!1},k,null,0);k.on("exec",function(){c.forceNextSelectionCheck();m.selectBookmarks(l)},k,null,100)}var g=CKEDITOR.TRISTATE_DISABLED,f=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(e){var f=CKEDITOR.plugins.indent.genericDefinition;c(e,e.addCommand("indent",new f(!0)));c(e,e.addCommand("outdent",new f));e.ui.addButton&&(e.ui.addButton("Indent",{label:e.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),e.ui.addButton("Outdent",{label:e.lang.indent.outdent,
command:"outdent",directional:!0,toolbar:"indent,10"}));e.on("dirChanged",function(c){var f=e.createRange(),b=c.data.node;f.setStartBefore(b);f.setEndAfter(b);for(var g=new CKEDITOR.dom.walker(f),d;d=g.next();)if(d.type==CKEDITOR.NODE_ELEMENT)if(!d.equals(b)&&d.getDirection())f.setStartAfter(d),g=new CKEDITOR.dom.walker(f);else{var a=e.config.indentClasses;if(a)for(var k="ltr"==c.data.dir?["_rtl",""]:["","_rtl"],t=0;t<a.length;t++)d.hasClass(a[t]+k[0])&&(d.removeClass(a[t]+k[0]),d.addClass(a[t]+k[1]));
a=d.getStyle("margin-right");k=d.getStyle("margin-left");a?d.setStyle("margin-left",a):d.removeStyle("margin-left");k?d.setStyle("margin-right",k):d.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(c){this.isIndent=!!c;this.startDisabled=!this.isIndent},specificDefinition:function(c,f,g){this.name=f;this.editor=c;this.jobs={};this.enterBr=c.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!g;this.relatedGlobal=g?"indent":"outdent";this.indentKey=g?9:CKEDITOR.SHIFT+
9;this.database={}},registerCommands:function(c,f){c.on("pluginsLoaded",function(){for(var c in f)(function(c,b){var e=c.getCommand(b.relatedGlobal),d;for(d in b.jobs)e.on("exec",function(a){a.data.done||(c.fire("lockSnapshot"),b.execJob(c,d)&&(a.data.done=!0),c.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(b.database))},this,null,d),e.on("refresh",function(a){a.data.states||(a.data.states={});a.data.states[b.name+"@"+d]=b.refreshJob(c,d,a.data.path)},this,null,d);c.addFeature(b)})(this,
f[c])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(c,f){var m=this.jobs[f];if(m.state!=g)return m.exec.call(this,c)},refreshJob:function(c,f,m){f=this.jobs[f];c.activeFilter.checkFeature(this)?f.state=f.refresh.call(this,c,m):f.state=g;return f.state},getContext:function(c){return c.contains(this.context)}}}(),function(){function c(b){function c(g){for(var h=k.startContainer,l=k.endContainer;h&&
!h.getParent().equals(g);)h=h.getParent();for(;l&&!l.getParent().equals(g);)l=l.getParent();if(!h||!l)return!1;for(var m=[],w=!1;!w;)h.equals(l)&&(w=!0),m.push(h),h=h.getNext();if(1>m.length)return!1;h=g.getParents(!0);for(l=0;l<h.length;l++)if(h[l].getName&&e[h[l].getName()]){g=h[l];break}for(var h=d.isIndent?1:-1,l=m[0],m=m[m.length-1],w=CKEDITOR.plugins.list.listToArray(g,a),x=w[m.getCustomData("listarray_index")].indent,l=l.getCustomData("listarray_index");l<=m.getCustomData("listarray_index");l++)if(w[l].indent+=
h,0<h){for(var r=w[l].parent,C=l-1;0<=C;C--)if(w[C].indent===h){r=w[C].parent;break}w[l].parent=new CKEDITOR.dom.element(r.getName(),r.getDocument())}for(l=m.getCustomData("listarray_index")+1;l<w.length&&w[l].indent>x;l++)w[l].indent+=h;h=CKEDITOR.plugins.list.arrayToList(w,a,null,b.config.enterMode,g.getDirection());if(!d.isIndent){var y;if((y=g.getParent())&&y.is("li"))for(var m=h.listNode.getChildren(),p=[],E,l=m.count()-1;0<=l;l--)(E=m.getItem(l))&&E.is&&E.is("li")&&p.push(E)}h&&h.listNode.replace(g);
if(p&&p.length)for(l=0;l<p.length;l++){for(E=g=p[l];(E=E.getNext())&&E.is&&E.getName()in e;)CKEDITOR.env.needsNbspFiller&&!g.getFirst(f)&&g.append(k.document.createText(" ")),g.append(E);g.insertAfter(y)}h&&b.fire("contentDomInvalidated");return!0}for(var d=this,a=this.database,e=this.context,k,l=b.getSelection(),l=(l&&l.getRanges()).createIterator();k=l.getNextRange();){for(var m=k.getCommonAncestor();m&&(m.type!=CKEDITOR.NODE_ELEMENT||!e[m.getName()]);){if(b.editable().equals(m)){m=!1;break}m=m.getParent()}m||
(m=k.startPath().contains(e))&&k.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);if(!m){var r=k.getEnclosedNode();r&&r.type==CKEDITOR.NODE_ELEMENT&&r.getName()in e&&(k.setStartAt(r,CKEDITOR.POSITION_AFTER_START),k.setEndAt(r,CKEDITOR.POSITION_BEFORE_END),m=r)}m&&k.startContainer.type==CKEDITOR.NODE_ELEMENT&&k.startContainer.getName()in e&&(r=new CKEDITOR.dom.walker(k),r.evaluator=g,k.startContainer=r.next());m&&k.endContainer.type==CKEDITOR.NODE_ELEMENT&&k.endContainer.getName()in e&&(r=new CKEDITOR.dom.walker(k),
r.evaluator=g,k.endContainer=r.previous());if(m)return c(m)}return 0}function g(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.is("li")}function f(b){return e(b)&&k(b)}var e=CKEDITOR.dom.walker.whitespaces(!0),k=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,l=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(b){function e(a){d.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];a.on("key",function(b){var c=a.elementPath();
if("wysiwyg"==a.mode&&b.data.keyCode==this.indentKey&&c){var d=this.getContext(c);!d||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,c,d)||(a.execCommand(this.relatedGlobal),b.cancel())}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),d=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return c&&this.isIndent&&!d?l:m}:function(a,b){return!this.getContext(b)||this.isIndent?m:l},exec:CKEDITOR.tools.bind(c,this)}}
var d=CKEDITOR.plugins.indent;d.registerCommands(b,{indentlist:new e(b,"indentlist",!0),outdentlist:new e(b,"outdentlist")});CKEDITOR.tools.extend(e.prototype,d.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(b,c,d){var a=c.contains(g);d||(d=c.contains(b));return d&&a&&a.equals(d.getFirst(g))}}(),function(){function c(c,f){f=void 0===f||f;var g;if(f)g=c.getComputedStyle("text-align");else{for(;!c.hasAttribute||
!c.hasAttribute("align")&&!c.getStyle("text-align");){g=c.getParent();if(!g)break;c=g}g=c.getStyle("text-align")||c.getAttribute("align")||""}g&&(g=g.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!g&&f&&(g="rtl"==c.getComputedStyle("direction")?"right":"left");return g}function g(c,f,g){this.editor=c;this.name=f;this.value=g;this.context="p";f=c.config.justifyClasses;var l=c.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(f){switch(g){case "left":this.cssClassName=f[0];break;case "center":this.cssClassName=
f[1];break;case "right":this.cssClassName=f[2];break;case "justify":this.cssClassName=f[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+f.join("|")+")(?\x3d$|\\s)");this.requiredContent=l+"("+this.cssClassName+")"}else this.requiredContent=l+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};c.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function f(c){var f=
c.editor,g=f.createRange();g.setStartBefore(c.data.node);g.setEndAfter(c.data.node);for(var l=new CKEDITOR.dom.walker(g),b;b=l.next();)if(b.type==CKEDITOR.NODE_ELEMENT)if(!b.equals(c.data.node)&&b.getDirection())g.setStartAfter(b),l=new CKEDITOR.dom.walker(g);else{var h=f.config.justifyClasses;h&&(b.hasClass(h[0])?(b.removeClass(h[0]),b.addClass(h[2])):b.hasClass(h[2])&&(b.removeClass(h[2]),b.addClass(h[0])));h=b.getStyle("text-align");"left"==h?b.setStyle("text-align","right"):"right"==h&&b.setStyle("text-align",
"left")}}g.prototype={exec:function(e){var f=e.getSelection(),g=e.config.enterMode;if(f){for(var l=f.createBookmarks(),b=f.getRanges(),h=this.cssClassName,d,a,n=e.config.useComputedState,n=void 0===n||n,t=b.length-1;0<=t;t--)for(d=b[t].createIterator(),d.enlargeBr=g!=CKEDITOR.ENTER_BR;a=d.getNextParagraph(g==CKEDITOR.ENTER_P?"p":"div");)if(!a.isReadOnly()){var p=a.getName(),x;x=e.activeFilter.check(p+"{text-align}");if((p=e.activeFilter.check(p+"("+h+")"))||x){a.removeAttribute("align");a.removeStyle("text-align");
var r=h&&(a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.cssClassRegex,""))),q=this.state==CKEDITOR.TRISTATE_OFF&&(!n||c(a,!0)!=this.value);h&&p?q?a.addClass(h):r||a.removeAttribute("class"):q&&x&&a.setStyle("text-align",this.value)}}e.focus();e.forceNextSelectionCheck();f.selectBookmarks(l)}},refresh:function(e,f){var g=f.block||f.blockLimit,l=g.getName(),b=g.equals(e.editable()),l=this.cssClassName?e.activeFilter.check(l+"("+this.cssClassName+")"):e.activeFilter.check(l+"{text-align}");
b&&1===f.elements.length?this.setState(CKEDITOR.TRISTATE_OFF):!b&&l?this.setState(c(g,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}};CKEDITOR.plugins.add("justify",{init:function(c){if(!c.blockless){var k=new g(c,"justifyleft","left"),m=new g(c,"justifycenter","center"),l=new g(c,"justifyright","right"),b=new g(c,"justifyblock","justify");c.addCommand("justifyleft",k);c.addCommand("justifycenter",m);c.addCommand("justifyright",
l);c.addCommand("justifyblock",b);c.ui.addButton&&(c.ui.addButton("JustifyLeft",{label:c.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),c.ui.addButton("JustifyCenter",{label:c.lang.justify.center,command:"justifycenter",toolbar:"align,20"}),c.ui.addButton("JustifyRight",{label:c.lang.justify.right,command:"justifyright",toolbar:"align,30"}),c.ui.addButton("JustifyBlock",{label:c.lang.justify.block,command:"justifyblock",toolbar:"align,40"}));c.on("dirChanged",f)}}})}(),CKEDITOR.plugins.add("menubutton",
{requires:"button,menu",onLoad:function(){var c=function(c){var f=this._,e=f.menu;f.state!==CKEDITOR.TRISTATE_DISABLED&&(f.on&&e?e.hide():(f.previousState=f.state,e||(e=f.menu=new CKEDITOR.menu(c,{panel:{className:"cke_menu_panel",attributes:{"aria-label":c.lang.common.options}}}),e.onHide=CKEDITOR.tools.bind(function(){var e=this.command?c.getCommand(this.command).modes:this.modes;this.setState(!e||e[c.mode]?f.previousState:CKEDITOR.TRISTATE_DISABLED);f.on=0},this),this.onMenu&&e.addListener(this.onMenu)),
this.setState(CKEDITOR.TRISTATE_ON),f.on=1,setTimeout(function(){e.show(CKEDITOR.document.getById(f.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(g){delete g.panel;this.base(g);this.hasArrow=!0;this.click=c},statics:{handler:{create:function(c){return new CKEDITOR.ui.menuButton(c)}}}})},beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton","use strict",function(){CKEDITOR.plugins.add("language",
{requires:"menubutton",init:function(c){var g=c.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],f=this,e=c.lang.language,k={},m,l,b,h;c.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(b,a){var c=k["language_"+a];if(c)b[c.style.checkActive(b.elementPath(),b)?"removeStyle":"applyStyle"](c.style)},refresh:function(b){this.setState(f.getCurrentLangElement(b)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(h=
0;h<g.length;h++)m=g[h].split(":"),l=m[0],b="language_"+l,k[b]={label:m[1],langId:l,group:"language",order:h,ltr:"rtl"!=(""+m[2]).toLowerCase(),onClick:function(){c.execCommand("language",this.langId)},role:"menuitemcheckbox"},k[b].style=new CKEDITOR.style({element:"span",attributes:{lang:l,dir:k[b].ltr?"ltr":"rtl"}});k.language_remove={label:e.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:k.length,onClick:function(){var b=f.getCurrentLangElement(c);b&&c.execCommand("language",
b.getAttribute("lang"))}};c.addMenuGroup("language",1);c.addMenuGroup("language_remove");c.addMenuItems(k);c.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:e.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var b={},a=f.getCurrentLangElement(c),e;for(e in k)b[e]=CKEDITOR.TRISTATE_OFF;b.language_remove=a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a&&(b["language_"+a.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return b}});
c.addRemoveFormatFilter&&c.addRemoveFormatFilter(function(b){return!(b.is("span")&&b.getAttribute("dir")&&b.getAttribute("lang"))})},getCurrentLangElement:function(c){var g=c.elementPath();c=g&&g.elements;var f;if(g)for(var e=0;e<c.length;e++)g=c[e],!f&&"span"==g.getName()&&g.hasAttribute("dir")&&g.hasAttribute("lang")&&(f=g);return f}})}(),function(){function c(a,b,c){function d(c){if(!(!(l=k[c?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(m=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||
m.is&&m.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](l)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];(h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&(f.push(h),CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",!0))}h=null;for(g=0;g<f.length;g++)h=f[g].getCustomData("listarray_index"),e[h].indent=-1;for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+
1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;)e[g].indent+=f,g++;g--}var k=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;d(!0);d();k.replace(b.root);a.fire("contentDomInvalidated")}function g(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function f(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](p);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),c?e[d?"insertBefore":
"insertAfter"](c):b.append(e,d)}function e(b){function c(d){var e=b[d?"getPrevious":"getNext"](a);e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(b.getName())&&(f(b,e,null,!d),b.remove(),b=e)}c();c(1)}function k(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function m(b,c,d){b.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var g=d.extractContents();c.trim(!1,!0);var h=c.createBookmark(),
k=new CKEDITOR.dom.elementPath(c.startContainer),m=k.block,k=k.lastElement.getAscendant("li",1)||m,B=new CKEDITOR.dom.elementPath(d.startContainer),A=B.contains(CKEDITOR.dtd.$listItem),B=B.contains(CKEDITOR.dtd.$list);m?(m=m.getBogus())&&m.remove():B&&(m=B.getPrevious(a))&&n(m)&&m.remove();(m=g.getLast())&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("br")&&m.remove();(m=c.startContainer.getChild(c.startOffset))?g.insertBefore(m):c.startContainer.append(g);A&&(g=l(A))&&(k.contains(A)?(f(g,A.getParent(),A),
g.remove()):k.append(g));for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){B=d.startPath();g=B.block;if(!g)break;g.is("li")&&(k=g.getParent(),g.equals(k.getLast(a))&&g.equals(k.getFirst(a))&&(g=k));d.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove()}d=d.clone();g=b.editable();d.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(b){return a(b)&&!n(b)};(d=d.next())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list&&e(d);c.moveToBookmark(h);
c.select();b.fire("saveSnapshot")}function l(c){return(c=c.getLast(a))&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in b?c:null}var b={ol:1,ul:1},h=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(),a=function(a){return!(h(a)||d(a))},n=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,c,d,e,f){if(!b[a.getName()])return[];e||(e=0);d||(d=[]);for(var g=0,h=a.getChildCount();g<h;g++){var k=a.getChild(g);k.type==CKEDITOR.NODE_ELEMENT&&k.getName()in CKEDITOR.dtd.$list&&
CKEDITOR.plugins.list.listToArray(k,c,d,e+1);if("li"==k.$.nodeName.toLowerCase()){var l={parent:a,indent:e,element:k,contents:[]};f?l.grandparent=f:(l.grandparent=a.getParent(),l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=l.grandparent.getParent()));c&&CKEDITOR.dom.element.setMarker(c,k,"listarray_index",d.length);d.push(l);for(var m=0,n=k.getChildCount(),t;m<n;m++)t=k.getChild(m),t.type==CKEDITOR.NODE_ELEMENT&&b[t.getName()]?CKEDITOR.plugins.list.listToArray(t,c,d,
e+1,l.grandparent):l.contents.push(t)}}return d},arrayToList:function(c,e,f,g,h){f||(f=0);if(!c||c.length<f+1)return null;for(var k,l=c[f].parent.getDocument(),m=new CKEDITOR.dom.documentFragment(l),n=null,C=f,y=Math.max(c[f].indent,0),t=null,p,G,I=g==CKEDITOR.ENTER_P?"p":"div";;){var H=c[C];k=H.grandparent;p=H.element.getDirection(1);if(H.indent==y){n&&c[C].parent.getName()==n.getName()||(n=c[C].parent.clone(!1,1),h&&n.setAttribute("dir",h),m.append(n));t=n.append(H.element.clone(0,1));p!=n.getDirection(1)&&
t.setAttribute("dir",p);for(k=0;k<H.contents.length;k++)t.append(H.contents[k].clone(1,1));C++}else if(H.indent==Math.max(y,0)+1)H=c[C-1].element.getDirection(1),C=CKEDITOR.plugins.list.arrayToList(c,null,C,g,H!=p?p:null),!t.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=l.$.documentMode&&t.append(l.createText(" ")),t.append(C.listNode),C=C.nextIndex;else if(-1==H.indent&&!f&&k){b[k.getName()]?(t=H.element.clone(!1,!0),p!=k.getDirection(1)&&t.setAttribute("dir",p)):t=new CKEDITOR.dom.documentFragment(l);
var n=k.getDirection(1)!=p,L=H.element,K=L.getAttribute("class"),D=L.getAttribute("style"),S=t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(g!=CKEDITOR.ENTER_BR||n||D||K),N,P=H.contents.length,J;for(k=0;k<P;k++)if(N=H.contents[k],d(N)&&1<P)S?J=N.clone(1,1):t.append(N.clone(1,1));else if(N.type==CKEDITOR.NODE_ELEMENT&&N.isBlockBoundary()){n&&!N.getDirection()&&N.setAttribute("dir",p);G=N;var U=L.getAttribute("style");U&&G.setAttribute("style",U.replace(/([^;])$/,"$1;")+(G.getAttribute("style")||""));K&&
N.addClass(K);G=null;J&&(t.append(J),J=null);t.append(N.clone(1,1))}else S?(G||(G=l.createElement(I),t.append(G),n&&G.setAttribute("dir",p)),D&&G.setAttribute("style",D),K&&G.setAttribute("class",K),J&&(G.append(J),J=null),G.append(N.clone(1,1))):t.append(N.clone(1,1));J&&((G||t).append(J),J=null);t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&C!=c.length-1&&(CKEDITOR.env.needsBrFiller&&(p=t.getLast())&&p.type==CKEDITOR.NODE_ELEMENT&&p.is("br")&&p.remove(),(p=t.getLast(a))&&p.type==CKEDITOR.NODE_ELEMENT&&
p.is(CKEDITOR.dtd.$block)||t.append(l.createElement("br")));p=t.$.nodeName.toLowerCase();"div"!=p&&"p"!=p||t.appendBogus();m.append(t);n=null;C++}else return null;G=null;if(c.length<=C||Math.max(c[C].indent,0)<y)break}if(e)for(c=m.getFirst();c;){if(c.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(e,c),c.getName()in CKEDITOR.dtd.$listItem&&(f=c,l=h=g=void 0,g=f.getDirection()))){for(h=f.getParent();h&&!(l=h.getDirection());)h=h.getParent();g==l&&f.removeAttribute("dir")}c=c.getNextSourceNode()}return{listNode:m,
nextIndex:C}}};var t=/^h[1-6]$/,p=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);g.prototype={exec:function(d){this.refresh(d,d.elementPath());var f=d.config,g=d.getSelection(),h=g&&g.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var k=d.editable();if(k.getFirst(a)){var l=1==h.length&&h[0];(f=l&&l.getEnclosedNode())&&f.is&&this.type==f.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else f.enterMode==CKEDITOR.ENTER_BR?k.appendBogus():h[0].fixBlock(1,f.enterMode==CKEDITOR.ENTER_P?"p":"div"),
g.selectRanges(h)}for(var f=g.createBookmarks(!0),k=[],m={},h=h.createIterator(),n=0;(l=h.getNextRange())&&++n;){var A=l.getBoundaryNodes(),p=A.startNode,y=A.endNode;p.type==CKEDITOR.NODE_ELEMENT&&"td"==p.getName()&&l.setStartAt(A.startNode,CKEDITOR.POSITION_AFTER_START);y.type==CKEDITOR.NODE_ELEMENT&&"td"==y.getName()&&l.setEndAt(A.endNode,CKEDITOR.POSITION_BEFORE_END);l=l.createIterator();for(l.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;A=l.getNextParagraph();)if(!A.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(m,
A,"list_block",1);for(var F=d.elementPath(A),p=F.elements,y=0,F=F.blockLimit,E,G=p.length-1;0<=G&&(E=p[G]);G--)if(b[E.getName()]&&F.contains(E)){F.removeCustomData("list_group_object_"+n);(p=E.getCustomData("list_group_object"))?p.contents.push(A):(p={root:E,contents:[A]},k.push(p),CKEDITOR.dom.element.setMarker(m,E,"list_group_object",p));y=1;break}y||(y=F,y.getCustomData("list_group_object_"+n)?y.getCustomData("list_group_object_"+n).contents.push(A):(p={root:y,contents:[A]},CKEDITOR.dom.element.setMarker(m,
y,"list_group_object_"+n,p),k.push(p)))}}for(E=[];0<k.length;)if(p=k.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(b[p.root.getName()]){h=d;n=p;p=m;l=E;y=CKEDITOR.plugins.list.listToArray(n.root,p);F=[];for(A=0;A<n.contents.length;A++)G=n.contents[A],(G=G.getAscendant("li",!0))&&!G.getCustomData("list_item_processed")&&(F.push(G),CKEDITOR.dom.element.setMarker(p,G,"list_item_processed",!0));for(var G=n.root.getDocument(),I=void 0,H=void 0,A=0;A<F.length;A++){var L=F[A].getCustomData("listarray_index"),
I=y[L].parent;I.is(this.type)||(H=G.createElement(this.type),I.copyAttributes(H,{start:1,type:1}),H.removeStyle("list-style-type"),y[L].parent=H)}p=CKEDITOR.plugins.list.arrayToList(y,p,null,h.config.enterMode);y=void 0;F=p.listNode.getChildCount();for(A=0;A<F&&(y=p.listNode.getChild(A));A++)y.getName()==this.type&&l.push(y);p.listNode.replace(n.root);h.fire("contentDomInvalidated")}else{y=d;l=p;A=E;F=l.contents;h=l.root.getDocument();n=[];1==F.length&&F[0].equals(l.root)&&(p=h.createElement("div"),
F[0].moveChildren&&F[0].moveChildren(p),F[0].append(p),F[0]=p);l=l.contents[0].getParent();for(G=0;G<F.length;G++)l=l.getCommonAncestor(F[G].getParent());I=y.config.useComputedState;y=p=void 0;I=void 0===I||I;for(G=0;G<F.length;G++)for(H=F[G];L=H.getParent();){if(L.equals(l)){n.push(H);!y&&H.getDirection()&&(y=1);H=H.getDirection(I);null!==p&&(p=p&&p!=H?null:H);break}H=L}if(!(1>n.length)){F=n[n.length-1].getNext();G=h.createElement(this.type);A.push(G);for(I=A=void 0;n.length;)A=n.shift(),I=h.createElement("li"),
H=A,H.is("pre")||t.test(H.getName())||"false"==H.getAttribute("contenteditable")?A.appendTo(I):(A.copyAttributes(I),p&&A.getDirection()&&(I.removeStyle("direction"),I.removeAttribute("dir")),A.moveChildren(I),A.remove()),I.appendTo(G);p&&y&&G.setAttribute("dir",p);F?G.insertBefore(F):G.appendTo(l)}}else this.state==CKEDITOR.TRISTATE_ON&&b[p.root.getName()]&&c.call(this,d,p,m);for(G=0;G<E.length;G++)e(E[G]);CKEDITOR.dom.element.clearAllMarkers(m);g.selectBookmarks(f);d.focus()},refresh:function(a,
c){var d=c.contains(b,1),e=c.blockLimit||c.root;d&&e.contains(d)?this.setState(d.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(c){c.blockless||(c.addCommand("numberedlist",new g("numberedlist","ol")),c.addCommand("bulletedlist",new g("bulletedlist","ul")),c.ui.addButton&&(c.ui.addButton("NumberedList",{label:c.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),
c.ui.addButton("BulletedList",{label:c.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),c.on("key",function(d){var e=d.data.domEvent.getKey(),f;if("wysiwyg"==c.mode&&e in{8:1,46:1}){var g=c.getSelection().getRanges()[0],h=g&&g.startPath();if(g&&g.collapsed){var w=8==e,B=c.editable(),p=new CKEDITOR.dom.walker(g.clone());p.evaluator=function(b){return a(b)&&!n(b)};p.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};e=g.clone();if(w){var t;
(t=h.contains(b))&&g.checkBoundaryOfElement(t,CKEDITOR.START)&&(t=t.getParent())&&t.is("li")&&(t=l(t))?(f=t,t=t.getPrevious(a),e.moveToPosition(t&&n(t)?t:f,CKEDITOR.POSITION_BEFORE_START)):(p.range.setStartAt(B,CKEDITOR.POSITION_AFTER_START),p.range.setEnd(g.startContainer,g.startOffset),(t=p.previous())&&t.type==CKEDITOR.NODE_ELEMENT&&(t.getName()in b||t.is("li"))&&(t.is("li")||(p.range.selectNodeContents(t),p.reset(),p.evaluator=k,t=p.previous()),f=t,e.moveToElementEditEnd(f),e.moveToPosition(e.endPath().block,
CKEDITOR.POSITION_BEFORE_END)));if(f)m(c,e,g),d.cancel();else{var y=h.contains(b);y&&g.checkBoundaryOfElement(y,CKEDITOR.START)&&(f=y.getFirst(a),g.checkBoundaryOfElement(f,CKEDITOR.START)&&(t=y.getPrevious(a),l(f)?t&&(g.moveToElementEditEnd(t),g.select()):c.execCommand("outdent"),d.cancel()))}}else if(f=h.contains("li")){if(p.range.setEndAt(B,CKEDITOR.POSITION_BEFORE_END),w=(B=f.getLast(a))&&k(B)?B:f,h=0,(t=p.next())&&t.type==CKEDITOR.NODE_ELEMENT&&t.getName()in b&&t.equals(B)?(h=1,t=p.next()):g.checkBoundaryOfElement(w,
CKEDITOR.END)&&(h=2),h&&t){g=g.clone();g.moveToElementEditStart(t);if(1==h&&(e.optimize(),!e.startContainer.equals(f))){for(f=e.startContainer;f.is(CKEDITOR.dtd.$inline);)y=f,f=f.getParent();y&&e.moveToPosition(y,CKEDITOR.POSITION_AFTER_END)}2==h&&(e.moveToPosition(e.endPath().block,CKEDITOR.POSITION_BEFORE_END),g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START));m(c,e,g);d.cancel()}}else p.range.setEndAt(B,CKEDITOR.POSITION_BEFORE_END),(t=p.next())&&t.type==CKEDITOR.NODE_ELEMENT&&
t.is(b)&&(t=t.getFirst(a),h.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(h.block.remove(),g.moveToElementEditStart(t),g.select()):l(t)?(g.moveToElementEditStart(t),g.select()):(g=g.clone(),g.moveToElementEditStart(t),m(c,e,g)),d.cancel());setTimeout(function(){c.selectionChange(1)})}}}))}})}(),"use strict",function(){function c(a,b,c){return n(b)&&n(c)&&c.equals(b.getNext(function(a){return!(da(a)||W(a)||t(a))}))}function g(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}
function f(a){var b=a.element;if(b&&n(b)&&(b=b.getAscendant(a.triggers,!0))&&a.editable.contains(b)){var c=l(b);if("true"==c.getAttribute("contenteditable"))return b;if(c.is(a.triggers))return c}return null}function e(a,b,c){w(a,b);w(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function k(b,c,d){return c=c[d?"getPrevious":"getNext"](function(c){return c&&c.type==CKEDITOR.NODE_TEXT&&!da(c)||n(c)&&!t(c)&&!a(b,c)})}function m(a,b,c){return a>b&&a<c}function l(a,b){if(a.data("cke-editable"))return null;
for(b||(a=a.getParent());a&&!a.data("cke-editable");){if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function b(a){var b=a.doc,c=E('\x3cspan contenteditable\x3d"false" style\x3d"'+V+"position:absolute;border-top:1px dashed "+a.boxColor+'"\x3e\x3c/span\x3e',b),d=CKEDITOR.getUrl(this.path+"images/"+(G.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");y(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},lineChildren:[y(E('\x3cspan title\x3d"'+
a.editor.lang.magicline.title+'" contenteditable\x3d"false"\x3e\x26#8629;\x3c/span\x3e',b),{base:V+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+d+") center no-repeat "+a.boxColor+";cursor:pointer;"+(G.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(G.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),y(E(Q,b),{base:T+
"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),y(E(Q,b),{base:T+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){w(a,this);var b=a.holdDistance,c=this.size;return c&&m(a.mouse.y,
c.top-b,c.bottom+b)&&m(a.mouse.x,c.left-b,c.right+b)?!0:!1},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),k={};this.trigger=d;e&&w(a,e,!0);f&&w(a,f,!0);w(a,h,!0);a.inInlineMode&&B(a,!0);h.equals(c)?(k.left=b.scroll.x,k.right=-b.scroll.x,k.width=""):(k.left=g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0),k.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x,k.right="");e&&f?
k.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top:e?f||(k.top=e.size.bottom+e.size.margin.bottom):k.top=f.size.top-f.size.margin.top;d.is(P)||m(k.top,b.scroll.y-15,b.scroll.y+5)?(k.top=a.inInlineMode?0:b.scroll.y,this.look(P)):d.is(J)||m(k.top,b.pane.bottom-5,b.pane.bottom+15)?(k.top=a.inInlineMode?b.editable.height+b.editable.padding.top+
b.editable.padding.bottom:b.pane.bottom-1,this.look(J)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),this.look(U));a.inInlineMode&&(k.top--,k.top+=b.editable.scroll.top,k.left+=b.editable.scroll.left);for(var l in k)k[l]=CKEDITOR.tools.cssLength(k[l]);this.setStyles(k)},look:function(a){if(this.oldLook!=a){for(var b=this.lineChildren.length,c;b--;)(c=this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new F("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);
c.look(U);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();h(a,function(b){var c=a.line.trigger;b[c.is(K)?"insertBefore":"insertAfter"](c.is(K)?c.lower:c.upper)},!0);a.editor.focus();G.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();b.data.preventDefault(!0)});c.on("mousedown",function(a){a.data.preventDefault(!0)});a.line=c}function h(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;G.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(Y):
(f=(f=l(a.element,!0))&&f.data("cke-enter-mode")||a.enterMode,f=new F(L[f],a.doc),f.is("br")||a.doc.createText(Y).appendTo(f));c&&e.fire("saveSnapshot");b(f);d.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}function d(a,b){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function c(d){var e=G.ie&&9>G.version?" ":Y,f=a.hotNode&&a.hotNode.getText()==e&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!b;h(a,function(c){f&&
a.hotNode&&a.hotNode.remove();c[b?"insertAfter":"insertBefore"](d);c.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!b});a.lastCmdDirection=!!b});G.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(d){d=d.getSelection().getStartElement();var e;d=d.getAscendant(R,1);if(!r(a,d)&&d&&!d.equals(a.editable)&&!d.contains(a.editable)){(e=l(d))&&"false"==e.getAttribute("contenteditable")&&(d=e);a.element=d;e=k(a,d,!b);var g;n(e)&&e.is(a.triggers)&&
e.is(M)&&(!k(a,e,!b)||(g=k(a,e,!b))&&n(g)&&g.is(a.triggers))?c(e):(g=f(a,d),n(g)&&(k(a,g,!b)?(d=k(a,g,!b))&&n(d)&&d.is(a.triggers)&&c(g):c(g)))}}}()}}function a(a,b){if(!b||b.type!=CKEDITOR.NODE_ELEMENT||!b.$)return!1;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function n(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function t(a){if(!n(a))return!1;var b;(b=p(a))||(n(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function p(a){return!!{absolute:1,
fixed:1}[a.getComputedStyle("position")]}function x(a,b){return n(b)?b.is(a.triggers):null}function r(a,b){if(!b)return!1;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return!0;return!1}function q(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(aa)});if(!b)return!1;w(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function u(b){var c=b.editable,d=b.mouse,e=b.view,f=b.triggerOffset;B(b);var h=d.y>
(b.inInlineMode?e.editable.top+e.editable.height/2:Math.min(e.editable.height,e.pane.height)/2),c=c[h?"getLast":"getFirst"](function(a){return!(da(a)||W(a))});if(!c)return null;a(b,c)&&(c=b.line.wrap[h?"getPrevious":"getNext"](function(a){return!(da(a)||W(a))}));if(!n(c)||t(c)||!x(b,c))return null;w(b,c);return!h&&0<=c.size.top&&m(d.y,0,c.size.top+f)?(b=b.inInlineMode||0===e.scroll.y?P:U,new g([null,c,K,N,b])):h&&c.size.bottom<=e.pane.height&&m(d.y,c.size.bottom-f,e.pane.height)?(b=b.inInlineMode||
m(c.size.bottom,e.pane.height-f,e.pane.height)?J:U,new g([c,null,D,N,b])):null}function v(a){var b=a.mouse,c=a.view,d=a.triggerOffset,e=f(a);if(!e)return null;w(a,e);var d=Math.min(d,0|e.size.outerHeight/2),h=[],l,v;if(m(b.y,e.size.top-1,e.size.top+d))v=!1;else if(m(b.y,e.size.bottom-d,e.size.bottom+1))v=!0;else return null;if(t(e)||q(a,e,v)||e.getParent().is(Z))return null;var u=k(a,e,!v);if(u){if(u&&u.type==CKEDITOR.NODE_TEXT)return null;if(n(u)){if(t(u)||!x(a,u)||u.getParent().is(Z))return null;
h=[u,e][v?"reverse":"concat"]().concat([S,N])}}else e.equals(a.editable[v?"getLast":"getFirst"](a.isRelevant))?(B(a),v&&m(b.y,e.size.bottom-d,c.pane.height)&&m(e.size.bottom,c.pane.height-d,c.pane.height)?l=J:m(b.y,0,e.size.top+d)&&(l=P)):l=U,h=[null,e][v?"reverse":"concat"]().concat([v?D:K,N,l,e.equals(a.editable[v?"getLast":"getFirst"](a.isRelevant))?v?J:P:U]);return 0 in h?new g(h):null}function z(a,b,c,d){for(var e=b.getDocumentPosition(),f={},g={},h={},k={},l=ea.length;l--;)f[ea[l]]=parseInt(b.getComputedStyle.call(b,
"border-"+ea[l]+"-width"),10)||0,h[ea[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+ea[l]),10)||0,g[ea[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+ea[l]),10)||0;c&&!d||A(a,d);k.top=e.y-(c?0:a.view.scroll.y);k.left=e.x-(c?0:a.view.scroll.x);k.outerWidth=b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(h.top+h.bottom+f.top+f.bottom);k.width=k.outerWidth-(h.left+h.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,
left:b.$.scrollLeft});return y({border:f,padding:h,margin:g,ignoreScroll:c},k,!0)}function w(a,b,c){if(!n(b))return b.size=null;if(!b.size)b.size={};else if(b.size.ignoreScroll==c&&b.size.date>new Date-O)return null;return y(b.size,z(a,b,c),{date:+new Date},!0)}function B(a,b){a.view.editable=z(a,a.editable,b,!0)}function A(a,b){a.view||(a.view={});var c=a.view;if(!(!b&&c&&c.date>new Date-O)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();y(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-
d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},!0)}}function C(a,b,c,d){for(var e=d,f=d,h=0,k=!1,l=!1,m=a.view.pane.height,n=a.mouse;n.y+h<m&&0<n.y-h;){k||(k=b(e,d));l||(l=b(f,d));!k&&0<n.y-h&&(e=c(a,{x:n.x,y:n.y-h}));!l&&n.y+h<m&&(f=c(a,{x:n.x,y:n.y+h}));if(k&&l)break;h+=2}return new g([e,f,null,null])}CKEDITOR.plugins.add("magicline",{init:function(c){var e=c.config,l=e.magicline_triggerOffset||30,m={editor:c,
enterMode:e.enterMode,triggerOffset:l,holdDistance:0|l*(e.magicline_holdDistance||.5),boxColor:e.magicline_color||"#ff0000",rtl:"rtl"==e.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(e.magicline_tabuList||[]),triggers:e.magicline_everywhere?R:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},q,w,x;m.isRelevant=function(b){return n(b)&&!a(m,b)&&!t(b)};c.on("contentDom",function(){var l=c.editable(),n=c.document,t=c.window;y(m,{editable:l,inInlineMode:l.isInline(),doc:n,win:t,
hotNode:null},!0);m.boundary=m.inInlineMode?m.editable:m.doc.getDocumentElement();l.is(H.$inline)||(m.inInlineMode&&!p(l)&&l.setStyles({position:"relative",top:null,left:null}),b.call(this,m),A(m),l.attachListener(c,"beforeUndoImage",function(){m.line.detach()}),l.attachListener(c,"beforeGetData",function(){m.line.wrap.getParent()&&(m.line.detach(),c.once("getData",function(){m.line.attach()},null,null,1E3))},null,null,0),l.attachListener(m.inInlineMode?n:n.getWindow().getFrame(),"mouseout",function(a){if("wysiwyg"==
c.mode)if(m.inInlineMode){var b=a.data.$.clientX;a=a.data.$.clientY;A(m);B(m,!0);var d=m.view.editable,e=m.view.scroll;b>d.left-e.x&&b<d.right-e.x&&a>d.top-e.y&&a<d.bottom-e.y||(clearTimeout(x),x=null,m.line.detach())}else clearTimeout(x),x=null,m.line.detach()}),l.attachListener(l,"keyup",function(){m.hiddenMode=0}),l.attachListener(l,"keydown",function(a){if("wysiwyg"==c.mode)switch(a.data.getKeystroke()){case 2228240:case 16:m.hiddenMode=1,m.line.detach()}}),l.attachListener(m.inInlineMode?l:n,
"mousemove",function(a){w=!0;if("wysiwyg"==c.mode&&!c.readOnly&&!x){var b={x:a.data.$.clientX,y:a.data.$.clientY};x=setTimeout(function(){m.mouse=b;x=m.trigger=null;A(m);w&&!m.hiddenMode&&c.focusManager.hasFocus&&!m.line.mouseNear()&&(m.element=X(m,!0))&&((m.trigger=u(m)||v(m)||ca(m))&&!r(m,m.trigger.upper||m.trigger.lower)?m.line.attach().place():(m.trigger=null,m.line.detach()),w=!1)},30)}}),l.attachListener(t,"scroll",function(){"wysiwyg"==c.mode&&(m.line.detach(),G.webkit&&(m.hiddenMode=1,clearTimeout(q),
q=setTimeout(function(){m.mouseDown||(m.hiddenMode=0)},50)))}),l.attachListener(I?n:t,"mousedown",function(){"wysiwyg"==c.mode&&(m.line.detach(),m.hiddenMode=1,m.mouseDown=1)}),l.attachListener(I?n:t,"mouseup",function(){m.hiddenMode=0;m.mouseDown=0}),c.addCommand("accessPreviousSpace",d(m)),c.addCommand("accessNextSpace",d(m,!0)),c.setKeystroke([[e.magicline_keystrokePrevious,"accessPreviousSpace"],[e.magicline_keystrokeNext,"accessNextSpace"]]),c.on("loadSnapshot",function(){var a,b,d,e;for(e in{p:1,
br:1,div:1})for(a=c.document.getElementsByTag(e),d=a.count();d--;)if((b=a.getItem(d)).data("cke-magicline-hot")){m.hotNode=b;m.lastCmdDirection="true"===b.data("cke-magicline-dir")?!0:!1;return}}),this.backdoor={accessFocusSpace:h,boxTrigger:g,isLine:a,getAscendantTrigger:f,getNonEmptyNeighbour:k,getSize:z,that:m,triggerEdge:v,triggerEditable:u,triggerExpand:ca})},this)}});var y=CKEDITOR.tools.extend,F=CKEDITOR.dom.element,E=F.createFromHtml,G=CKEDITOR.env,I=CKEDITOR.env.ie&&9>CKEDITOR.env.version,
H=CKEDITOR.dtd,L={},K=128,D=64,S=32,N=16,P=4,J=2,U=1,Y=" ",Z=H.$listItem,aa=H.$tableContent,M=y({},H.$nonEditable,H.$empty),R=H.$block,O=100,V="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",T=V+"border-color:transparent;display:block;border-style:solid;",Q="\x3cspan\x3e"+Y+"\x3c/span\x3e";L[CKEDITOR.ENTER_BR]="br";L[CKEDITOR.ENTER_P]="p";L[CKEDITOR.ENTER_DIV]="div";g.prototype={set:function(a,b,c){this.properties=
a+b+(c||U);return this},is:function(a){return(this.properties&a)==a}};var X=function(){function b(a,c){var d=a.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(c,d,e){if(!c.mouse)return null;var f=c.doc,g=c.line.wrap;e=e||c.mouse;var h=b(f,e);d&&a(c,h)&&(g.hide(),h=b(f,e),g.show());return!h||h.type!=CKEDITOR.NODE_ELEMENT||!h.$||G.ie&&9>G.version&&!c.boundary.equals(h)&&!c.boundary.contains(h)?null:h}}(),da=CKEDITOR.dom.walker.whitespaces(),W=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),
ca=function(){function b(a){var f=a.element,g,h,k;if(!n(f)||f.contains(a.editable)||f.isReadOnly())return null;k=C(a,function(a,b){return!b.equals(a)},function(a,b){return X(a,!0,b)},f);g=k.upper;h=k.lower;if(c(a,g,h))return k.set(S,8);if(g&&f.contains(g))for(;!g.getParent().equals(f);)g=g.getParent();else g=f.getFirst(function(b){return d(a,b)});if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getLast(function(b){return d(a,b)});if(!g||!h)return null;w(a,g);w(a,h);if(!m(a.mouse.y,
g.size.top,h.size.bottom))return null;for(var f=Number.MAX_VALUE,l,q,v,u;h&&!h.equals(g)&&(q=g.getNext(a.isRelevant));)l=Math.abs(e(a,g,q)-a.mouse.y),l<f&&(f=l,v=g,u=q),g=q,w(a,g);if(!v||!u||!m(a.mouse.y,v.size.top,u.size.bottom))return null;k.upper=v;k.lower=u;return k.set(S,8)}function d(b,c){return!(c&&c.type==CKEDITOR.NODE_TEXT||W(c)||t(c)||a(b,c)||c.type==CKEDITOR.NODE_ELEMENT&&c.$&&c.is("br"))}return function(a){var d=b(a),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||t(f)||t(e)||f.equals(e)||
e.equals(f)||f.contains(e)||e.contains(f)?!1:x(a,e)&&x(a,f)&&c(a,e,f)?!0:!1}return e?d:null}}(),ea=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function c(c){if(!c||c.type!=CKEDITOR.NODE_ELEMENT||"form"!=c.getName())return[];for(var e=[],b=["style","className"],f=0;f<b.length;f++){var d=c.$.elements.namedItem(b[f]);d&&(d=new CKEDITOR.dom.element(d),e.push([d,
d.nextSibling]),d.remove())}return e}function g(c,e){if(c&&c.type==CKEDITOR.NODE_ELEMENT&&"form"==c.getName()&&0<e.length)for(var b=e.length-1;0<=b;b--){var f=e[b][0],d=e[b][1];d?f.insertBefore(d):f.appendTo(c)}}function f(e,f){var b=c(e),h={},d=e.$;f||(h["class"]=d.className||"",d.className="");h.inline=d.style.cssText||"";f||(d.style.cssText="position: static; overflow: visible");g(b);return h}function e(e,f){var b=c(e),h=e.$;"class"in f&&(h.className=f["class"]);"inline"in f&&(h.style.cssText=
f.inline);g(b)}function k(c){if(!c.editable().isInline()){var e=CKEDITOR.instances,b;for(b in e){var f=e[b];"wysiwyg"!=f.mode||f.readOnly||(f=f.document.getBody(),f.setAttribute("contentEditable",!1),f.setAttribute("contentEditable",!0))}c.editable().hasFocus&&(c.toolbox.focus(),c.focus())}}CKEDITOR.plugins.add("maximize",{init:function(c){function g(){var a=d.getViewPaneSize();c.resize(a.width,a.height,null,!0)}if(c.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var b=c.lang,h=CKEDITOR.document,d=h.getWindow(),
a,n,t,p=CKEDITOR.TRISTATE_OFF;c.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var x=c.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),r=c.ui.space("contents");if("wysiwyg"==c.mode){var q=c.getSelection();a=q&&q.getRanges();n=d.getScrollPosition()}else{var u=c.editable().$;a=!CKEDITOR.env.ie&&[u.selectionStart,u.selectionEnd];n=[u.scrollLeft,u.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){d.on("resize",
g);t=d.getScrollPosition();for(q=c.container;q=q.getParent();)q.setCustomData("maximize_saved_styles",f(q)),q.setStyle("z-index",c.config.baseFloatZIndex-5);r.setCustomData("maximize_saved_styles",f(r,!0));x.setCustomData("maximize_saved_styles",f(x,!0));r={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};h.getDocumentElement().setStyles(r);!CKEDITOR.env.gecko&&h.getDocumentElement().setStyle("position","fixed");CKEDITOR.env.gecko&&CKEDITOR.env.quirks||h.getBody().setStyles(r);CKEDITOR.env.ie?
setTimeout(function(){d.$.scrollTo(0,0)},0):d.$.scrollTo(0,0);x.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");x.$.offsetLeft;x.setStyles({"z-index":c.config.baseFloatZIndex-5,left:"0px",top:"0px"});x.addClass("cke_maximized");g();r=x.getDocumentPosition();x.setStyles({left:-1*r.x+"px",top:-1*r.y+"px"});CKEDITOR.env.gecko&&k(c)}else if(this.state==CKEDITOR.TRISTATE_ON){d.removeListener("resize",g);for(var q=[r,x],v=0;v<q.length;v++)e(q[v],q[v].getCustomData("maximize_saved_styles")),
q[v].removeCustomData("maximize_saved_styles");for(q=c.container;q=q.getParent();)e(q,q.getCustomData("maximize_saved_styles")),q.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(t.x,t.y)},0):d.$.scrollTo(t.x,t.y);x.removeClass("cke_maximized");CKEDITOR.env.webkit&&(x.setStyle("display","inline"),setTimeout(function(){x.setStyle("display","block")},0));c.fire("resize",{outerHeight:c.container.$.offsetHeight,contentsHeight:r.$.offsetHeight,outerWidth:c.container.$.offsetWidth})}this.toggleState();
if(q=this.uiItems[0])r=this.state==CKEDITOR.TRISTATE_OFF?b.maximize.maximize:b.maximize.minimize,q=CKEDITOR.document.getById(q._.id),q.getChild(1).setHtml(r),q.setAttribute("title",r),q.setAttribute("href",'javascript:void("'+r+'");');"wysiwyg"==c.mode?a?(CKEDITOR.env.gecko&&k(c),c.getSelection().selectRanges(a),(u=c.getSelection().getStartElement())&&u.scrollIntoView(!0)):d.$.scrollTo(n.x,n.y):(a&&(u.selectionStart=a[0],u.selectionEnd=a[1]),u.scrollLeft=n[0],u.scrollTop=n[1]);a=n=null;p=this.state;
c.fire("maximize",this.state)},canUndo:!1});c.ui.addButton&&c.ui.addButton("Maximize",{label:b.maximize.maximize,command:"maximize",toolbar:"tools,10"});c.on("mode",function(){var a=c.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:p)},null,null,100)}}})}(),function(){function c(c,f,e){var k=CKEDITOR.cleanWord;k?e():(c=CKEDITOR.getUrl(c.config.pasteFromWordCleanupFile||f+"filter/default.js"),CKEDITOR.scriptLoader.load(c,e,null,!0));return!k}CKEDITOR.plugins.add("pastefromword",
{requires:"clipboard",init:function(g){function f(c){var b=CKEDITOR.plugins.pastefromword&&CKEDITOR.plugins.pastefromword.images,e,d=[];if(b&&c.editor.filter.check("img[src]")&&(e=b.extractTagsFromHtml(c.data.dataValue),0!==e.length&&(b=b.extractFromRtf(c.data.dataTransfer["text/rtf"]),0!==b.length&&(CKEDITOR.tools.array.forEach(b,function(a){d.push(a.type?"data:"+a.type+";base64,"+CKEDITOR.tools.convertBytesToBase64(CKEDITOR.tools.convertHexStringToBytes(a.hex)):null)},this),e.length===d.length))))for(b=
0;b<e.length;b++)0===e[b].indexOf("file://")&&d[b]&&(c.data.dataValue=c.data.dataValue.replace(e[b],d[b]))}var e=0,k=this.path,m=void 0===g.config.pasteFromWord_inlineImages?!0:g.config.pasteFromWord_inlineImages;g.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(c,b){e=1;c.execCommand("paste",{type:"html",notification:b&&"undefined"!==typeof b.notification?b.notification:!0})}});g.ui.addButton&&g.ui.addButton("PasteFromWord",{label:g.lang.pastefromword.toolbar,command:"pastefromword",
toolbar:"clipboard,50"});g.on("paste",function(f){var b=f.data,h=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?b.dataTransfer.getData("text/html",!0):null,d=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?b.dataTransfer.getData("text/rtf"):null,h=h||b.dataValue,a={dataValue:h,dataTransfer:{"text/rtf":d}},d=/(class=\"?Mso|style=(?:\"|\')[^\"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,d=/<meta\s*name=(?:\"|\')?generator(?:\"|\')?\s*content=(?:\"|\')?microsoft/gi.test(h)||d.test(h);if(h&&
(e||d)&&(!1!==g.fire("pasteFromWord",a)||e)){b.dontFilter=!0;var m=c(g,k,function(){if(m)g.fire("paste",b);else if(!g.config.pasteFromWordPromptCleanup||e||confirm(g.lang.pastefromword.confirmCleanup))a.dataValue=CKEDITOR.cleanWord(a.dataValue,g),g.fire("afterPasteFromWord",a),b.dataValue=a.dataValue;e=0});m&&f.cancel()}},null,null,3);if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&m)g.on("afterPasteFromWord",f)}})}(),function(){var c={canUndo:!1,async:!0,exec:function(c,f){var e=c.lang,
k=CKEDITOR.tools.keystrokeToString(e.common.keyboard,c.getCommandKeystroke(CKEDITOR.env.ie?c.commands.paste:this)),m=f&&"undefined"!==typeof f.notification?f.notification:!f||!f.from||"keystrokeHandler"===f.from&&CKEDITOR.env.ie,e=m&&"string"===typeof m?m:e.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+k.aria+'"\x3e'+k.display+"\x3c/kbd\x3e");c.execCommand("paste",{type:"text",notification:m?e:!1})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(g){var f=
CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;g.addCommand("pastetext",c);g.setKeystroke(f,"pastetext");g.ui.addButton&&g.ui.addButton("PasteText",{label:g.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(g.config.forcePasteAsPlainText)g.on("beforePaste",function(c){"html"!=c.data.type&&(c.data.type="text")});g.on("pasteState",function(c){g.getCommand("pastetext").setState(c.data)})}})}(),CKEDITOR.plugins.add("removeformat",{init:function(c){c.addCommand("removeFormat",
CKEDITOR.plugins.removeformat.commands.removeformat);c.ui.addButton&&c.ui.addButton("RemoveFormat",{label:c.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(c){for(var g=c._.removeFormatRegex||(c._.removeFormatRegex=new RegExp("^(?:"+c.config.removeFormatTags.replace(/,/g,"|")+")$","i")),f=c._.removeAttributes||(c._.removeAttributes=c.config.removeFormatAttributes.split(",")),e=CKEDITOR.plugins.removeformat.filter,
k=c.getSelection().getRanges(),m=k.createIterator(),l=function(a){return a.type==CKEDITOR.NODE_ELEMENT},b;b=m.getNextRange();){b.collapsed||b.enlarge(CKEDITOR.ENLARGE_ELEMENT);var h=b.createBookmark(),d=h.startNode,a=h.endNode,n=function(a){for(var b=c.elementPath(a),d=b.elements,f=1,h;(h=d[f])&&!h.equals(b.block)&&!h.equals(b.blockLimit);f++)g.test(h.getName())&&e(c,h)&&a.breakParent(h)};n(d);if(a)for(n(a),d=d.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);d&&!d.equals(a);)if(d.isReadOnly()){if(d.getPosition(a)&
CKEDITOR.POSITION_CONTAINS)break;d=d.getNext(l)}else n=d.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==d.getName()&&d.data("cke-realelement")||!e(c,d)||(g.test(d.getName())?d.remove(1):(d.removeAttributes(f),c.fire("removeFormatCleanup",d))),d=n;b.moveToBookmark(h)}c.forceNextSelectionCheck();c.getSelection().selectRanges(k)}}},filter:function(c,g){for(var f=c._.removeFormatFilters||[],e=0;e<f.length;e++)if(!1===f[e](g))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(c){this._.removeFormatFilters||
(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(c)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){function c(c,e,k){var m,l;if(k="string"==typeof k?CKEDITOR.document.getById(k):new CKEDITOR.dom.element(k))if(m=c.fire("uiSpace",{space:e,html:""}).html)c.on("uiSpace",function(b){b.data.space==e&&b.cancel()},
null,null,1),l=k.append(CKEDITOR.dom.element.createFromHtml(g.output({id:c.id,name:c.name,langDir:c.lang.dir,langCode:c.langCode,space:e,spaceId:c.ui.spaceId(e),content:m}))),k.getCustomData("cke_hasshared")?l.hide():k.setCustomData("cke_hasshared",1),l.unselectable(),l.on("mousedown",function(b){b=b.data;b.getTarget().hasAscendant("a",1)||b.preventDefault()}),c.focusManager.add(l,1),c.on("focus",function(){for(var b=0,c,d=k.getChildren();c=d.getItem(b);b++)c.type==CKEDITOR.NODE_ELEMENT&&!c.equals(l)&&
c.hasClass("cke_shared")&&c.hide();l.show()}),c.on("destroy",function(){l.remove()})}var g=CKEDITOR.addTemplate("sharedcontainer",'\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{spaceId}" class\x3d"cke_{space}" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
CKEDITOR.plugins.add("sharedspace",{init:function(f){f.on("loaded",function(){var e=f.config.sharedSpaces;if(e)for(var g in e)c(f,g,e[g])},null,null,9)}})}(),function(){var c={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(c){this.toggleState();this.refresh(c)},refresh:function(c){if(c.document){var f=this.state!=CKEDITOR.TRISTATE_ON||c.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!c.focusManager.hasFocus?"removeClass":"attachClass";c.editable()[f]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",
{onLoad:function(){var c="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),f,e,k,m,l=CKEDITOR.getUrl(this.path),b=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),h=b?":not([contenteditable\x3dfalse]):not(.cke_show_blocks_off)":"",d,a;for(f=e=k=m="";d=c.pop();)a=c.length?",":"",f+=".cke_show_blocks "+d+h+a,k+=".cke_show_blocks.cke_contents_ltr "+d+h+a,m+=".cke_show_blocks.cke_contents_rtl "+d+h+a,e+=".cke_show_blocks "+d+h+"{background-image:url("+CKEDITOR.getUrl(l+"images/block_"+d+".png")+")}";
CKEDITOR.addCss((f+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(e,k+"{background-position:top left;padding-left:8px}",m+"{background-position:top right;padding-right:8px}"));b||CKEDITOR.addCss(".cke_show_blocks [contenteditable\x3dfalse],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},
init:function(g){function f(){e.refresh(g)}if(!g.blockless){var e=g.addCommand("showblocks",c);e.canUndo=!1;g.config.startupOutlineBlocks&&e.setState(CKEDITOR.TRISTATE_ON);g.ui.addButton&&g.ui.addButton("ShowBlocks",{label:g.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});g.on("mode",function(){e.state!=CKEDITOR.TRISTATE_DISABLED&&e.refresh(g)});g.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(g.on("focus",f),g.on("blur",f));g.on("contentDom",function(){e.state!=CKEDITOR.TRISTATE_DISABLED&&
e.refresh(g)})}}})}(),function(){var c={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(c){this.toggleState();this.refresh(c)},refresh:function(c){if(c.document){var f=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";c.editable()[f]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var c;c=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 \x3e tr \x3e td, .%1 table.%2 \x3e tr \x3e th,;.%1 table.%2 \x3e tbody \x3e tr \x3e td, .%1 table.%2 \x3e tbody \x3e tr \x3e th,;.%1 table.%2 \x3e thead \x3e tr \x3e td, .%1 table.%2 \x3e thead \x3e tr \x3e th,;.%1 table.%2 \x3e tfoot \x3e tr \x3e td, .%1 table.%2 \x3e tfoot \x3e tr \x3e th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,
"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(c)},init:function(g){var f=g.addCommand("showborders",c);f.canUndo=!1;!1!==g.config.startupShowBorders&&f.setState(CKEDITOR.TRISTATE_ON);g.on("mode",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(g)},null,null,100);g.on("contentDom",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(g)});g.on("removeFormatCleanup",function(c){c=c.data;g.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&c.is("table")&&(!c.hasAttribute("border")||
0>=parseInt(c.getAttribute("border"),10))&&c.addClass("cke_show_border")})},afterInit:function(c){var f=c.dataProcessor;c=f&&f.dataFilter;f=f&&f.htmlFilter;c&&c.addRules({elements:{table:function(c){c=c.attributes;var f=c["class"],g=parseInt(c.border,10);g&&!(0>=g)||f&&-1!=f.indexOf("cke_show_border")||(c["class"]=(f||"")+" cke_show_border")}}});f&&f.addRules({elements:{table:function(c){c=c.attributes;var f=c["class"];f&&(c["class"]=f.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,
""))}}})}});CKEDITOR.on("dialogDefinition",function(c){var f=c.data.name;if("table"==f||"tableProperties"==f)if(c=c.data.definition,f=c.getContents("info").get("txtBorder"),f.commit=CKEDITOR.tools.override(f.commit,function(c){return function(f,g){c.apply(this,arguments);var l=parseInt(this.getValue(),10);g[!l||0>=l?"addClass":"removeClass"]("cke_show_border")}}),c=(c=c.getContents("advanced"))&&c.get("advCSSClasses"))c.setup=CKEDITOR.tools.override(c.setup,function(c){return function(){c.apply(this,
arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),c.commit=CKEDITOR.tools.override(c.commit,function(c){return function(f,g){c.apply(this,arguments);parseInt(g.getAttribute("border"),10)||g.addClass("cke_show_border")}})})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(g){function f(){var c=k&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+
"px");this.show();c&&this.focus()}if(g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var e=CKEDITOR.plugins.sourcearea;g.addMode("source",function(e){var k=g.ui.space("contents").getDocument().createElement("textarea");k.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",g.config.sourceAreaTabSize||4)));k.setAttribute("dir","ltr");k.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");
g.ui.space("contents").append(k);k=g.editable(new c(g,k));k.setData(g.getData(1));CKEDITOR.env.ie&&(k.attachListener(g,"resize",f,k),k.attachListener(CKEDITOR.document.getWindow(),"resize",f,k),CKEDITOR.tools.setTimeout(f,0,k));g.fire("ariaWidget",this);e()});g.addCommand("source",e.commands.source);g.ui.addButton&&g.ui.addButton("Source",{label:g.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});g.on("mode",function(){g.getCommand("source").setState("source"==g.mode?CKEDITOR.TRISTATE_ON:
CKEDITOR.TRISTATE_OFF)});var k=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var c=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(c){this.setValue(c);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(c){this[(c?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){c.baseProto.detach.call(this);this.clearCustomData();
this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(c){"wysiwyg"==c.mode&&c.fire("saveSnapshot");c.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);c.setMode("source"==c.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("sourcedialog",{requires:"dialog",init:function(c){c.addCommand("sourcedialog",new CKEDITOR.dialogCommand("sourcedialog"));CKEDITOR.dialog.add("sourcedialog",this.path+"dialogs/sourcedialog.js");
c.ui.addButton&&c.ui.addButton("Sourcedialog",{label:c.lang.sourcedialog.toolbar,command:"sourcedialog",toolbar:"mode,10"})}}),CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},
requires:"dialog",init:function(c){var g=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");c.addCommand("specialchar",{exec:function(){var f=c.langCode,f=g.availableLangs[f]?f:g.availableLangs[f.replace(/-.*/,"")]?f.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(g.path+"dialogs/lang/"+f+".js"),function(){CKEDITOR.tools.extend(c.lang.specialchar,g.langEntries[f]);c.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});c.ui.addButton&&c.ui.addButton("SpecialChar",
{label:c.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;".split(" "),
function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(c){var g=c.config,f=c.lang.stylescombo,e={},k=[],m=[];c.on("stylesSet",function(f){if(f=f.data.styles){for(var b,h,d,a=0,n=f.length;a<n;a++)(b=f[a],c.blockless&&b.element in CKEDITOR.dtd.$block||"string"==typeof b.type&&!CKEDITOR.style.customHandlers[b.type]||(h=b.name,b=new CKEDITOR.style(b),c.filter.customConfig&&!c.filter.check(b)))||(b._name=h,b._.enterMode=g.enterMode,b._.type=d=b.assignedTo||b.type,b._.weight=
a+1E3*(d==CKEDITOR.STYLE_OBJECT?1:d==CKEDITOR.STYLE_BLOCK?2:3),e[h]=b,k.push(b),m.push(b));k.sort(function(a,b){return a._.weight-b._.weight})}});c.ui.addRichCombo("Styles",{label:f.label,title:f.panelTitle,toolbar:"styles,10",allowedContent:m,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(g.contentsCss),multiSelect:!0,attributes:{"aria-label":f.panelTitle}},init:function(){var c,b,e,d,a,g;a=0;for(g=k.length;a<g;a++)c=k[a],b=c._name,d=c._.type,d!=e&&(this.startGroup(f["panelTitle"+String(d)]),
e=d),this.add(b,c.type==CKEDITOR.STYLE_OBJECT?b:c.buildPreview(),b);this.commit()},onClick:function(f){c.focus();c.fire("saveSnapshot");f=e[f];var b=c.elementPath();if(f.group&&f.removeStylesFromSameGroup(c))c.applyStyle(f);else c[f.checkActive(b,c)?"removeStyle":"applyStyle"](f);c.fire("saveSnapshot")},onRender:function(){c.on("selectionChange",function(f){var b=this.getValue();f=f.data.path.elements;for(var g=0,d=f.length,a;g<d;g++){a=f[g];for(var k in e)if(e[k].checkElementRemovable(a,!0,c)){k!=
b&&this.setValue(k);return}}this.setValue("")},this)},onOpen:function(){var g=c.getSelection(),g=g.getSelectedElement()||g.getStartElement()||c.editable(),g=c.elementPath(g),b=[0,0,0,0];this.showAll();this.unmarkAll();for(var h in e){var d=e[h],a=d._.type;d.checkApplicable(g,c,c.activeFilter)?b[a]++:this.hideItem(h);d.checkActive(g,c)&&this.mark(h)}b[CKEDITOR.STYLE_BLOCK]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]);b[CKEDITOR.STYLE_INLINE]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_INLINE)]);
b[CKEDITOR.STYLE_OBJECT]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var f=c.elementPath();if(f){for(var b in e)if(e[b].checkApplicable(f,c,c.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){e={};k=[]}})}})}(),function(){function c(c){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(e){if(e.editable().hasFocus){var f=e.getSelection(),b;if(b=(new CKEDITOR.dom.elementPath(f.getCommonAncestor(),f.root)).contains({td:1,
th:1},1)){var f=e.createRange(),g=CKEDITOR.tools.tryThese(function(){var a=b.getParent().$.cells[b.$.cellIndex+(c?-1:1)];a.parentNode.parentNode;return a},function(){var a=b.getParent(),a=a.getAscendant("table").$.rows[a.$.rowIndex+(c?-1:1)];return a.cells[c?a.cells.length-1:0]});if(g||c)if(g)g=new CKEDITOR.dom.element(g),f.moveToElementEditStart(g),f.checkStartOfBlock()&&f.checkEndOfBlock()||f.selectNodeContents(g);else return!0;else{for(var d=b.getAscendant("table").$,g=b.getParent().$.cells,d=
new CKEDITOR.dom.element(d.insertRow(-1),e.document),a=0,n=g.length;a<n;a++)d.append((new CKEDITOR.dom.element(g[a],e.document)).clone(!1,!1)).appendBogus();f.moveToElementEditStart(d)}f.select(!0);return!0}}return!1}}}var g={editorFocus:!1,modes:{wysiwyg:1,source:1}},f={exec:function(c){c.container.focusNext(!0,c.tabIndex)}},e={exec:function(c){c.container.focusPrevious(!0,c.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(k){for(var m=!1!==k.config.enableTabKeyTools,l=k.config.tabSpaces||0,
b="";l--;)b+=" ";if(b)k.on("key",function(c){9==c.data.keyCode&&(k.insertText(b),c.cancel())});if(m)k.on("key",function(b){(9==b.data.keyCode&&k.execCommand("selectNextCell")||b.data.keyCode==CKEDITOR.SHIFT+9&&k.execCommand("selectPreviousCell"))&&b.cancel()});k.addCommand("blur",CKEDITOR.tools.extend(f,g));k.addCommand("blurBack",CKEDITOR.tools.extend(e,g));k.addCommand("selectNextCell",c());k.addCommand("selectPreviousCell",c(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(c,g){var f=
void 0===g?this.getTabIndex():g,e,k,m,l,b,h;if(0>=f)for(b=this.getNextSourceNode(c,CKEDITOR.NODE_ELEMENT);b;){if(b.isVisible()&&0===b.getTabIndex()){m=b;break}b=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(b=this.getDocument().getBody().getFirst();b=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!e)if(!k&&b.equals(this)){if(k=!0,c){if(!(b=b.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;e=1}}else k&&!this.contains(b)&&(e=1);if(b.isVisible()&&!(0>(h=b.getTabIndex()))){if(e&&h==f){m=
b;break}h>f&&(!m||!l||h<l)?(m=b,l=h):m||0!==h||(m=b,l=h)}}m&&m.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(c,g){for(var f=void 0===g?this.getTabIndex():g,e,k,m,l=0,b,h=this.getDocument().getBody().getLast();h=h.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!e)if(!k&&h.equals(this)){if(k=!0,c){if(!(h=h.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;e=1}}else k&&!this.contains(h)&&(e=1);if(h.isVisible()&&!(0>(b=h.getTabIndex())))if(0>=f){if(e&&0===b){m=h;break}b>l&&
(m=h,l=b)}else{if(e&&b==f){m=h;break}b<f&&(!m||b>l)&&(m=h,l=b)}}m&&m.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(c){function g(c){return CKEDITOR.tools.extend(c||{},{contextSensitive:1,refresh:function(c,e){this.setState(e.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!c.blockless){var f=c.lang.table;c.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+
(c.plugins.dialogadvtab?"table"+c.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(c){if(c.styles){var f;if(c.styles.border)f=CKEDITOR.tools.style.parse.border(c.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var g=c.styles;g["border-left"]&&g["border-left"]===g["border-right"]&&g["border-right"]===g["border-top"]&&
g["border-top"]===g["border-bottom"]&&(f=CKEDITOR.tools.style.parse.border(g["border-top"]))}f&&f.style&&"solid"===f.style&&f.width&&0!==parseFloat(f.width)&&(c.attributes.border=1);"collapse"==c.styles["border-collapse"]&&(c.attributes.cellspacing=0)}}}]]}));c.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",g()));c.addCommand("tableDelete",g({exec:function(c){var f=c.elementPath().contains("table",1);if(f){var g=f.getParent(),l=c.editable();1!=g.getChildCount()||g.is("td",
"th")||g.equals(l)||(f=g);c=c.createRange();c.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove();c.select()}}}));c.ui.addButton&&c.ui.addButton("Table",{label:f.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");c.addMenuItems&&c.addMenuItems({table:{label:f.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:f.deleteTable,command:"tableDelete",group:"table",
order:1}});c.on("doubleclick",function(c){c.data.element.is("table")&&(c.data.dialog="tableProperties")});c.contextMenu&&c.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function c(a,b){function c(a){return b?b.contains(a)&&a.getAscendant("table",!0).equals(b):!0}function d(a){0<e.length||a.type!=CKEDITOR.NODE_ELEMENT||!x.test(a.getName())||a.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(f,a,"selected_cell",
!0),e.push(a))}var e=[],f={};if(!a)return e;for(var g=a.getRanges(),h=0;h<g.length;h++){var k=g[h];if(k.collapsed)(k=k.getCommonAncestor().getAscendant({td:1,th:1},!0))&&c(k)&&e.push(k);else{var k=new CKEDITOR.dom.walker(k),l;for(k.guard=d;l=k.next();)l.type==CKEDITOR.NODE_ELEMENT&&l.is(CKEDITOR.dtd.table)||(l=l.getAscendant({td:1,th:1},!0))&&!l.getCustomData("selected_cell")&&c(l)&&(CKEDITOR.dom.element.setMarker(f,l,"selected_cell",!0),e.push(l))}}CKEDITOR.dom.element.clearAllMarkers(f);return e}
function g(a,b){for(var d=r(a)?a:c(a),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),g=d[0].getParent(),h=g.$.rowIndex,d=d[d.length-1],k=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[k]),h=b?h:k,g=b?g:d,d=CKEDITOR.tools.buildTableMap(f),f=d[h],h=b?d[h-1]:d[h+1],d=d[0].length,e=e.createElement("tr"),k=0;f[k]&&k<d;k++){var l;1<f[k].rowSpan&&h&&f[k]==h[k]?(l=f[k],l.rowSpan+=1):(l=(new CKEDITOR.dom.element(f[k])).clone(),l.removeAttribute("rowSpan"),l.appendBogus(),e.append(l),
l=l.$);k+=l.colSpan-1}b?e.insertBefore(g):e.insertAfter(g);return e}function f(a){if(a instanceof CKEDITOR.dom.selection){var b=a.getRanges(),d=c(a),e=d[0].getAscendant("table"),g=CKEDITOR.tools.buildTableMap(e),h=d[0].getParent().$.rowIndex,d=d[d.length-1],k=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[];a.reset();for(a=h;a<=k;a++){for(var l=g[a],m=new CKEDITOR.dom.element(e.$.rows[a]),n=0;n<l.length;n++){var p=new CKEDITOR.dom.element(l[n]),t=p.getParent().$.rowIndex;1==p.$.rowSpan?p.remove():(--p.$.rowSpan,
t==a&&(t=g[a+1],t[n-1]?p.insertAfter(new CKEDITOR.dom.element(t[n-1])):(new CKEDITOR.dom.element(e.$.rows[a+1])).append(p,1)));n+=p.$.colSpan-1}d.push(m)}g=e.$.rows;b[0].moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);h=new CKEDITOR.dom.element(g[k+1]||(0<h?g[h-1]:null)||e.$.parentNode);for(a=d.length;0<=a;a--)f(d[a]);return e.$.parentNode?h:(b[0].select(),null)}a instanceof CKEDITOR.dom.element&&(e=a.getAscendant("table"),1==e.$.rows.length?e.remove():a.remove());return null}function e(a){for(var b=
a.getParent().$.cells,c=0,d=0;d<b.length;d++){var e=b[d],c=c+e.colSpan;if(e==a.$)break}return c-1}function k(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var f=e(a[d]);if(b?f<c:f>c)c=f}return c}function m(a,b){for(var d=r(a)?a:c(a),e=d[0].getAscendant("table"),f=k(d,1),d=k(d),g=b?f:d,h=CKEDITOR.tools.buildTableMap(e),e=[],f=[],d=[],l=h.length,m=0;m<l;m++)e.push(h[m][g]),f.push(b?h[m][g-1]:h[m][g+1]);for(m=0;m<l;m++)e[m]&&(1<e[m].colSpan&&f[m]==e[m]?(h=e[m],h.colSpan+=1):(g=new CKEDITOR.dom.element(e[m]),
h=g.clone(),h.removeAttribute("colSpan"),h.appendBogus(),h[b?"insertBefore":"insertAfter"].call(h,g),d.push(h),h=h.$),m+=h.rowSpan-1);return d}function l(a){function b(a){var c,d,e;c=a.getRanges();if(1!==c.length)return a;c=c[0];if(c.collapsed||0!==c.endOffset)return a;d=c.endContainer;e=d.getName().toLowerCase();if("td"!==e&&"th"!==e)return a;for((e=d.getPrevious())||(e=d.getParent().getPrevious().getLast());e.type!==CKEDITOR.NODE_TEXT&&"br"!==e.getName().toLowerCase();)if(e=e.getLast(),!e)return a;
c.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);return c.select()}CKEDITOR.env.webkit&&!a.isFake&&(a=b(a));var d=a.getRanges(),e=c(a),f=e[0],g=e[e.length-1],e=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(e),k,l,m=[];a.reset();var n=0;for(a=h.length;n<a;n++)for(var p=0,t=h[n].length;p<t;p++)void 0===k&&h[n][p]==f.$&&(k=p),h[n][p]==g.$&&(l=p);for(n=k;n<=l;n++)for(p=0;p<h.length;p++)g=h[p],f=new CKEDITOR.dom.element(e.$.rows[p]),g=new CKEDITOR.dom.element(g[n]),g.$&&(1==g.$.colSpan?g.remove():--g.$.colSpan,
p+=g.$.rowSpan-1,f.$.cells.length||m.push(f));k=h[0].length-1>l?new CKEDITOR.dom.element(h[0][l+1]):k&&-1!==h[0][k-1].cellIndex?new CKEDITOR.dom.element(h[0][k-1]):new CKEDITOR.dom.element(e.$.parentNode);m.length==a&&(d[0].moveToPosition(e,CKEDITOR.POSITION_AFTER_END),d[0].select(),e.remove());return k}function b(a,b){var c=a.getStartElement().getAscendant({td:1,th:1},!0);if(c){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function h(a){if(a instanceof CKEDITOR.dom.selection){var b=
a.getRanges(),e=c(a),f=e[0]&&e[0].getAscendant("table"),g;a:{var k=0;g=e.length-1;for(var l={},m,n;m=e[k++];)CKEDITOR.dom.element.setMarker(l,m,"delete_cell",!0);for(k=0;m=e[k++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l);g=n;break a}CKEDITOR.dom.element.clearAllMarkers(l);k=e[0].getParent();(k=k.getPrevious())?g=k.getLast():(k=e[g].getParent(),g=(k=k.getNext())?k.getChild(0):null)}a.reset();for(a=
e.length-1;0<=a;a--)h(e[a]);g?d(g,!0):f&&(b[0].moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),b[0].select(),f.remove())}else a instanceof CKEDITOR.dom.element&&(b=a.getParent(),1==b.getChildCount()?b.remove():a.remove())}function d(a,b){var c=a.getDocument(),d=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(d.focus(),c.focus());c=new CKEDITOR.dom.range(c);c["moveToElementEdit"+(b?"End":"Start")](a)||(c.selectNodeContents(a),c.collapse(b?!1:!0));c.select(!0)}function a(a,b,c){a=a[b];
if("undefined"==typeof c)return a;for(b=0;a&&b<a.length;b++){if(c.is&&a[b]==c.$)return b;if(b==c)return new CKEDITOR.dom.element(a[b])}return c.is?-1:null}function n(b,d,e){var f=c(b),g;if((d?1!=f.length:2>f.length)||(g=b.getCommonAncestor())&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("table"))return!1;var h;b=f[0];g=b.getAscendant("table");var k=CKEDITOR.tools.buildTableMap(g),l=k.length,m=k[0].length,n=b.getParent().$.rowIndex,p=a(k,n,b);if(d){var t;try{var r=parseInt(b.getAttribute("rowspan"),10)||1;
h=parseInt(b.getAttribute("colspan"),10)||1;t=k["up"==d?n-r:"down"==d?n+r:n]["left"==d?p-h:"right"==d?p+h:p]}catch(x){return!1}if(!t||b.$==t)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(t))}d=b.getDocument();var L=n,r=t=0,K=!e&&new CKEDITOR.dom.documentFragment(d),D=0;for(d=0;d<f.length;d++){h=f[d];var S=h.getParent(),N=h.getFirst(),P=h.$.colSpan,J=h.$.rowSpan,S=S.$.rowIndex,U=a(k,S,h),D=D+P*J,r=Math.max(r,U-p+P);t=Math.max(t,S-n+J);e||(P=h,(J=P.getBogus())&&J.remove(),
P.trim(),h.getChildren().count()&&(S==L||!N||N.isBlockBoundary&&N.isBlockBoundary({br:1})||(L=K.getLast(CKEDITOR.dom.walker.whitespaces(!0)),!L||L.is&&L.is("br")||K.append("br")),h.moveChildren(K)),d?h.remove():h.setHtml(""));L=S}if(e)return t*r==D;K.moveChildren(b);b.appendBogus();r>=m?b.removeAttribute("rowSpan"):b.$.rowSpan=t;t>=l?b.removeAttribute("colSpan"):b.$.colSpan=r;e=new CKEDITOR.dom.nodeList(g.$.rows);f=e.count();for(d=f-1;0<=d;d--)g=e.getItem(d),g.$.cells.length||(g.remove(),f++);return b}
function t(b,d){var e=c(b);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(g),k=f.$.rowIndex,l=a(h,k,e),m=e.$.rowSpan,n;if(1<m){n=Math.ceil(m/2);for(var m=Math.floor(m/2),f=k+n,g=new CKEDITOR.dom.element(g.$.rows[f]),h=a(h,f),p,f=e.clone(),k=0;k<h.length;k++)if(p=h[k],p.parentNode==g.$&&k>l){f.insertBefore(new CKEDITOR.dom.element(p));break}else p=null;p||g.append(f)}else for(m=n=1,g=f.clone(),g.insertAfter(f),g.append(f=e.clone()),
p=a(h,k),l=0;l<p.length;l++)p[l].rowSpan++;f.appendBogus();e.$.rowSpan=n;f.$.rowSpan=m;1==n&&e.removeAttribute("rowSpan");1==m&&f.removeAttribute("rowSpan");return f}function p(b,d){var e=c(b);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(g),h=a(g,f.$.rowIndex,e),k=e.$.colSpan;if(1<k)f=Math.ceil(k/2),k=Math.floor(k/2);else{for(var k=f=1,l=[],m=0;m<g.length;m++){var n=g[m];l.push(n[h]);1<n[h].rowSpan&&(m+=n[h].rowSpan-1)}for(g=
0;g<l.length;g++)l[g].colSpan++}g=e.clone();g.insertAfter(e);g.appendBogus();e.$.colSpan=f;g.$.colSpan=k;1==f&&e.removeAttribute("colSpan");1==k&&g.removeAttribute("colSpan");return g}var x=/^(?:td|th)$/,r=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(a){function e(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function k(b,
c){var d=a.addCommand(b,c);a.addFeature(d)}var r=a.lang.table,x=CKEDITOR.tools.style.parse;k("cellProperties",new CKEDITOR.dialogCommand("cellProperties",e({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table",contentTransformations:[[{element:"td",left:function(a){return a.styles.background&&x.background(a.styles.background).color},right:function(a){a.styles["background-color"]=x.background(a.styles.background).color}},
{element:"td",check:"td{vertical-align}",left:function(a){return a.attributes&&a.attributes.valign},right:function(a){a.styles["vertical-align"]=a.attributes.valign;delete a.attributes.valign}}],[{element:"tr",check:"td{height}",left:function(a){return a.styles&&a.styles.height},right:function(a){CKEDITOR.tools.array.forEach(a.children,function(b){b.name in{td:1,th:1}&&(b.attributes["cke-row-height"]=a.styles.height)});delete a.styles.height}}],[{element:"td",check:"td{height}",left:function(a){return(a=
a.attributes)&&a["cke-row-height"]},right:function(a){a.styles.height=a.attributes["cke-row-height"];delete a.attributes["cke-row-height"]}}]]})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");k("rowDelete",e({requiredContent:"table",exec:function(a){a=a.getSelection();(a=f(a))&&d(a)}}));k("rowInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);g(a,!0)}}));k("rowInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);
g(a)}}));k("columnDelete",e({requiredContent:"table",exec:function(a){a=a.getSelection();(a=l(a))&&d(a,!0)}}));k("columnInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);m(a,!0)}}));k("columnInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();a=c(a);m(a)}}));k("cellDelete",e({requiredContent:"table",exec:function(a){a=a.getSelection();h(a)}}));k("cellMerge",e({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a,
b){b.cell=n(a.getSelection());d(b.cell,!0)}}));k("cellMergeRight",e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a,b){b.cell=n(a.getSelection(),"right");d(b.cell,!0)}}));k("cellMergeDown",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a,b){b.cell=n(a.getSelection(),"down");d(b.cell,!0)}}));k("cellVerticalSplit",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){d(p(a.getSelection()))}}));k("cellHorizontalSplit",
e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){d(t(a.getSelection()))}}));k("cellInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();b(a,!0)}}));k("cellInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();b(a)}}));a.addMenuItems&&a.addMenuItems({tablecell:{label:r.cell.menu,group:"tablecell",order:1,getItems:function(){var b=a.getSelection(),d=c(b);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,
tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:n(b,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:n(b,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:n(b,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:p(b,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:t(b,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<d.length?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:r.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:r.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:r.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:r.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:r.cell.mergeRight,group:"tablecell",command:"cellMergeRight",
order:17},tablecell_merge_down:{label:r.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:r.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:r.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:r.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:r.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,
tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:r.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:r.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:r.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:r.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,
tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:r.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:r.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:r.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});a.contextMenu&&a.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},
1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getCellColIndex:e,insertRow:g,insertColumn:m,getSelectedCells:c};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(c,g,f,e,k){c=c.$.rows;f=f||0;e="number"===typeof e?e:c.length-1;k="number"===typeof k?k:-1;var m=-1,l=[];for(g=g||0;g<=e;g++){m++;!l[m]&&(l[m]=[]);for(var b=-1,h=f;h<=(-1===k?c[g].cells.length-1:k);h++){var d=
c[g].cells[h];if(!d)break;for(b++;l[m][b];)b++;for(var a=isNaN(d.colSpan)?1:d.colSpan,d=isNaN(d.rowSpan)?1:d.rowSpan,n=0;n<d&&!(g+n>e);n++){l[m+n]||(l[m+n]=[]);for(var t=0;t<a;t++)l[m+n][b+t]=c[g].cells[h]}b+=a-1;if(-1!==k&&b>=k)break}}return l},function(){function c(b){return CKEDITOR.env.ie?b.$.clientWidth:parseInt(b.getComputedStyle("width"),10)}function g(b,a){var c=b.getComputedStyle("border-"+a+"-width"),e={thin:"0px",medium:"1px",thick:"2px"};0>c.indexOf("px")&&(c=c in e&&"none"!=b.getComputedStyle("border-style")?
e[c]:0);return parseInt(c,10)}function f(b){b=b.$.rows;for(var a=0,c,e,f,g=0,h=b.length;g<h;g++)f=b[g],c=f.cells.length,c>a&&(a=c,e=f);return e}function e(b){function a(a){a&&(a=new CKEDITOR.dom.element(a),h+=a.$.offsetHeight,k||(k=a.getDocumentPosition()))}var c=[],e=-1,h=0,k=null,l="rtl"==b.getComputedStyle("direction"),m=f(b);a(b.$.tHead);a(b.$.tBodies[0]);a(b.$.tFoot);if(m)for(var u=0,v=m.cells.length;u<v;u++){var z=new CKEDITOR.dom.element(m.cells[u]),w=m.cells[u+1]&&new CKEDITOR.dom.element(m.cells[u+
1]),e=e+(z.$.colSpan||1),B,A,C=z.getDocumentPosition().x;l?A=C+g(z,"left"):B=C+z.$.offsetWidth-g(z,"right");w?(C=w.getDocumentPosition().x,l?B=C+w.$.offsetWidth-g(w,"right"):A=C+g(w,"left")):(C=b.getDocumentPosition().x,l?B=C:A=C+b.$.offsetWidth);z=Math.max(A-B,3);c.push({table:b,index:e,x:B,y:k.y,width:z,height:h,rtl:l})}return c}function k(b){(b.data||b).preventDefault()}function m(d){function a(){v=0;u.setOpacity(0);w&&e();var a=r.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},
0);q.removeListener("dragstart",k)}function e(){for(var a=r.rtl,f=a?C.length:A.length,h=0,k=0;k<f;k++){var l=A[k],m=C[k],n=r.table;CKEDITOR.tools.setTimeout(function(c,e,g,k,l,m){c&&c.setStyle("width",b(Math.max(e+m,1)));g&&g.setStyle("width",b(Math.max(k-m,1)));l&&n.setStyle("width",b(l+m*(a?-1:1)));++h==f&&d.fire("saveSnapshot")},0,this,[l,l&&c(l),m,m&&c(m),(!l||!m)&&c(n)+g(n,"left")+g(n,"right"),w])}}function f(a){k(a);d.fire("saveSnapshot");a=r.index;for(var b=CKEDITOR.tools.buildTableMap(r.table),
e=[],g=[],h=Number.MAX_VALUE,n=h,t=r.rtl,B=0,N=b.length;B<N;B++){var P=b[B],J=P[a+(t?1:0)],P=P[a+(t?0:1)],J=J&&new CKEDITOR.dom.element(J),P=P&&new CKEDITOR.dom.element(P);J&&P&&J.equals(P)||(J&&(h=Math.min(h,c(J))),P&&(n=Math.min(n,c(P))),e.push(J),g.push(P))}A=e;C=g;y=r.x-h;F=r.x+n;u.setOpacity(.5);z=parseInt(u.getStyle("left"),10);w=0;v=1;u.on("mousemove",m);q.on("dragstart",k);q.on("mouseup",l,this)}function l(b){b.removeListener();a()}function m(a){B(a.data.getPageOffset().x)}var r,q,u,v,z,w,
B,A,C,y,F;q=d.document;u=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-temp\x3d1 contenteditable\x3dfalse unselectable\x3don style\x3d"position:absolute;cursor:col-resize;filter:alpha(opacity\x3d0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"\x3e\x3c/div\x3e',q);d.on("destroy",function(){u.remove()});h||q.getDocumentElement().append(u);this.attachTo=function(a){v||(h&&(q.getBody().append(u),w=0),r=a,u.setStyles({width:b(a.width),height:b(a.height),
left:b(a.x),top:b(a.y)}),h&&u.setOpacity(.25),u.on("mousedown",f,this),q.getBody().setStyle("cursor","col-resize"),u.show())};B=this.move=function(a){if(!r)return 0;if(!v&&(a<r.x||a>r.x+r.width))return r=null,v=w=0,q.removeListener("mouseup",l),u.removeListener("mousedown",f),u.removeListener("mousemove",m),q.getBody().setStyle("cursor","auto"),h?u.remove():u.hide(),0;a-=Math.round(u.$.offsetWidth/2);if(v){if(a==y||a==F)return 1;a=Math.max(a,y);a=Math.min(a,F);w=a-z}u.setStyle("left",b(a));return 1}}
function l(b){var a=b.data.getTarget();if("mouseout"==b.name){if(!a.is("table"))return;for(var c=new CKEDITOR.dom.element(b.data.$.relatedTarget||b.data.$.toElement);c&&c.$&&!c.equals(a)&&!c.is("body");)c=c.getParent();if(!c||c.equals(a))return}a.getAscendant("table",1).removeCustomData("_cke_table_pillars");b.removeListener()}var b=CKEDITOR.tools.cssLength,h=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(b){b.on("contentDom",
function(){var a,c=b.editable();c.attachListener(c.isInline()?c:b.document,"mousemove",function(c){c=c.data;var f=c.getTarget();if(f.type==CKEDITOR.NODE_ELEMENT){var g=c.getPageOffset().x;if(a&&a.move(g))k(c);else if(f.is("table")||f.getAscendant({thead:1,tbody:1,tfoot:1},1))if(f=f.getAscendant("table",1),b.editable().contains(f)){(c=f.getCustomData("_cke_table_pillars"))||(f.setCustomData("_cke_table_pillars",c=e(f)),f.on("mouseout",l),f.on("mousedown",l));a:{for(var f=0,h=c.length;f<h;f++){var n=
c[f];if(g>=n.x&&g<=n.x+n.width){g=n;break a}}g=null}g&&(!a&&(a=new m(b)),a.attachTo(g))}}})})}})}(),"use strict",function(){var c=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],g={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(b){function e(b){a.enabled&&!1!==b.data.command.canUndo&&a.save()}function d(){a.enabled=b.readOnly?!1:"wysiwyg"==b.mode;a.onChange()}var a=b.undoManager=new f(b),g=a.editingHandler=new m(a),k=b.addCommand("undo",{exec:function(){a.undo()&&(b.selectionChange(),
this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),l=b.addCommand("redo",{exec:function(){a.redo()&&(b.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});b.setKeystroke([[c[0],"undo"],[c[1],"redo"],[c[2],"redo"]]);a.onChange=function(){k.setState(a.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);l.setState(a.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};b.on("beforeCommandExec",e);b.on("afterCommandExec",e);b.on("saveSnapshot",function(b){a.save(b.data&&
b.data.contentOnly)});b.on("contentDom",g.attachListeners,g);b.on("instanceReady",function(){b.fire("saveSnapshot")});b.on("beforeModeUnload",function(){"wysiwyg"==b.mode&&a.save(!0)});b.on("mode",d);b.on("readOnly",d);b.ui.addButton&&(b.ui.addButton("Undo",{label:b.lang.undo.undo,command:"undo",toolbar:"undo,10"}),b.ui.addButton("Redo",{label:b.lang.undo.redo,command:"redo",toolbar:"undo,20"}));b.resetUndo=function(){a.reset();b.fire("saveSnapshot")};b.on("updateSnapshot",function(){a.currentImage&&
a.update()});b.on("lockSnapshot",function(b){b=b.data;a.lock(b&&b.dontUpdate,b&&b.forceUpdate)});b.on("unlockSnapshot",a.unlock,a)}});CKEDITOR.plugins.undo={};var f=CKEDITOR.plugins.undo.UndoManager=function(b){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=b.config.undoStackSize||20;this.strokesLimit=25;this.editor=b;this.reset()};f.prototype={type:function(b,c){var d=f.getKeyGroup(b),a=this.strokesRecorded[d]+1;c=c||a>=this.strokesLimit;this.typing||(this.hasUndo=
this.typing=!0,this.hasRedo=!1,this.onChange());c?(a=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[d]=a;this.previousKeyGroup=d},keyGroupChanged:function(b){return f.getKeyGroup(b)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=
!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(b,c,d){var a=this.editor;if(this.locked||"ready"!=a.status||"wysiwyg"!=a.mode)return!1;var f=a.editable();if(!f||"ready"!=f.status)return!1;f=this.snapshots;c||(c=new e(a));if(!1===c.contents)return!1;if(this.currentImage)if(c.equalsContent(this.currentImage)){if(b||c.equalsSelection(this.currentImage))return!1}else!1!==d&&a.fire("change");f.splice(this.index+1,f.length-this.index-1);f.length==
this.limit&&f.shift();this.index=f.push(c)-1;this.currentImage=c;!1!==d&&this.refreshState();return!0},restoreImage:function(b){var c=this.editor,d;b.bookmarks&&(c.focus(),d=c.getSelection());this.locked={level:999};this.editor.loadSnapshot(b.contents);b.bookmarks?d.selectBookmarks(b.bookmarks):CKEDITOR.env.ie&&(d=this.editor.document.getBody().$.createTextRange(),d.collapse(!0),d.select());this.locked=null;this.index=b.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();
c.fire("change")},getNextImage:function(b){var c=this.snapshots,d=this.currentImage,a;if(d)if(b)for(a=this.index-1;0<=a;a--){if(b=c[a],!d.equalsContent(b))return b.index=a,b}else for(a=this.index+1;a<c.length;a++)if(b=c[a],!d.equalsContent(b))return b.index=a,b;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var b=this.getNextImage(!0);if(b)return this.restoreImage(b),!0}return!1},
redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var b=this.getNextImage(!1);if(b)return this.restoreImage(b),!0}return!1},update:function(b){if(!this.locked){b||(b=new e(this.editor));for(var c=this.index,d=this.snapshots;0<c&&this.currentImage.equalsContent(d[c-1]);)--c;d.splice(c,this.index-c+1,b);this.index=c;this.currentImage=b}},updateSelection:function(b){if(!this.snapshots.length)return!1;var c=this.snapshots,d=c[c.length-1];return d.equalsContent(b)&&!d.equalsSelection(b)?
(this.currentImage=c[c.length-1]=b,!0):!1},lock:function(b,c){if(this.locked)this.locked.level++;else if(b)this.locked={level:1};else{var d=null;if(c)d=!0;else{var a=new e(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(a)&&(d=a)}this.locked={update:d,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var b=this.locked.update;this.locked=null;if(!0===b)this.update();else if(b){var c=new e(this.editor,!0);b.equalsContent(c)||this.update()}}}};f.navigationKeyCodes=
{37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};f.keyGroups={PRINTABLE:0,FUNCTIONAL:1};f.isNavigationKey=function(b){return!!f.navigationKeyCodes[b]};f.getKeyGroup=function(b){var c=f.keyGroups;return g[b]?c.FUNCTIONAL:c.PRINTABLE};f.getOppositeKeyGroup=function(b){var c=f.keyGroups;return b==c.FUNCTIONAL?c.PRINTABLE:c.FUNCTIONAL};f.ieFunctionalKeysBug=function(b){return CKEDITOR.env.ie&&f.getKeyGroup(b)==f.keyGroups.FUNCTIONAL};var e=CKEDITOR.plugins.undo.Image=function(b,c){this.editor=b;b.fire("beforeUndoImage");
var d=b.getSnapshot();CKEDITOR.env.ie&&d&&(d=d.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=d;c||(this.bookmarks=(d=d&&b.getSelection())&&d.createBookmarks2(!0));b.fire("afterUndoImage")},k=/\b(?:href|src|name)="[^"]*?"/gi;e.prototype={equalsContent:function(b){var c=this.contents;b=b.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(c=c.replace(k,""),b=b.replace(k,""));return c!=b?!1:!0},equalsSelection:function(b){var c=this.bookmarks;b=b.bookmarks;if(c||b){if(!c||
!b||c.length!=b.length)return!1;for(var d=0;d<c.length;d++){var a=c[d],e=b[d];if(a.startOffset!=e.startOffset||a.endOffset!=e.endOffset||!CKEDITOR.tools.arrayCompare(a.start,e.start)||!CKEDITOR.tools.arrayCompare(a.end,e.end))return!1}}return!0}};var m=CKEDITOR.plugins.undo.NativeEditingHandler=function(b){this.undoManager=b;this.ignoreInputEvent=!1;this.keyEventsStack=new l;this.lastKeydownImage=null};m.prototype={onKeydown:function(b){var g=b.data.getKey();if(229!==g)if(-1<CKEDITOR.tools.indexOf(c,
b.data.getKeystroke()))b.data.preventDefault();else if(this.keyEventsStack.cleanUp(b),b=this.undoManager,this.keyEventsStack.getLast(g)||this.keyEventsStack.push(g),this.lastKeydownImage=new e(b.editor),f.isNavigationKey(g)||this.undoManager.keyGroupChanged(g))if(b.strokesRecorded[0]||b.strokesRecorded[1])b.save(!1,this.lastKeydownImage,!1),b.resetType()},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var b=this.keyEventsStack.getLast();b||(b=this.keyEventsStack.push(0));
this.keyEventsStack.increment(b.keyCode);this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(b.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(b){var c=this.undoManager;b=b.data.getKey();var d=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(b);if(!(f.ieFunctionalKeysBug(b)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new e(c.editor,!0))))if(0<d)c.type(b);else if(f.isNavigationKey(b))this.onNavigationKey(!0)},
onNavigationKey:function(b){var c=this.undoManager;!b&&c.save(!0,null,!1)||c.updateSelection(new e(c.editor));c.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},activateInputEventListener:function(){this.ignoreInputEvent=!1},attachListeners:function(){var b=this.undoManager.editor,c=b.editable(),d=this;c.attachListener(c,"keydown",function(a){d.onKeydown(a);if(f.ieFunctionalKeysBug(a.data.getKey()))d.onInput()},null,null,999);c.attachListener(c,CKEDITOR.env.ie?"keypress":
"input",d.onInput,d,null,999);c.attachListener(c,"keyup",d.onKeyup,d,null,999);c.attachListener(c,"paste",d.ignoreInputEventListener,d,null,999);c.attachListener(c,"drop",d.ignoreInputEventListener,d,null,999);b.on("afterPaste",d.activateInputEventListener,d,null,999);c.attachListener(c.isInline()?c:b.document.getDocumentElement(),"click",function(){d.onNavigationKey()},null,null,999);c.attachListener(this.undoManager.editor,"blur",function(){d.keyEventsStack.remove(9)},null,null,999)}};var l=CKEDITOR.plugins.undo.KeyEventsStack=
function(){this.stack=[]};l.prototype={push:function(b){b=this.stack.push({keyCode:b,inputs:0});return this.stack[b-1]},getLastIndex:function(b){if("number"!=typeof b)return this.stack.length-1;for(var c=this.stack.length;c--;)if(this.stack[c].keyCode==b)return c;return-1},getLast:function(b){b=this.getLastIndex(b);return-1!=b?this.stack[b]:null},increment:function(b){this.getLast(b).inputs++},remove:function(b){b=this.getLastIndex(b);-1!=b&&this.stack.splice(b,1)},resetInputs:function(b){if("number"==
typeof b)this.getLast(b).inputs=0;else for(b=this.stack.length;b--;)this.stack[b].inputs=0},getTotalInputs:function(){for(var b=this.stack.length,c=0;b--;)c+=this.stack[b].inputs;return c},cleanUp:function(b){b=b.data.$;b.ctrlKey||b.metaKey||this.remove(17);b.shiftKey||this.remove(16);b.altKey||this.remove(18)}}}(),function(){function c(c){function e(c){var d=!1;a.attachListener(a,"keydown",function(){var a=b.getBody().getElementsByTag(c);if(!d){for(var e=0;e<a.count();e++)a.getItem(e).setCustomData("retain",
!0);d=!0}},null,null,1);a.attachListener(a,"keyup",function(){var a=b.getElementsByTag(c);d&&(1==a.count()&&!a.getItem(0).getCustomData("retain")&&CKEDITOR.tools.isEmpty(a.getItem(0).getAttributes())&&a.getItem(0).remove(1),d=!1)})}var f=this.editor,b=c.document,h=b.body,d=b.getElementById("cke_actscrpt");d&&d.parentNode.removeChild(d);(d=b.getElementById("cke_shimscrpt"))&&d.parentNode.removeChild(d);(d=b.getElementById("cke_basetagscrpt"))&&d.parentNode.removeChild(d);h.contentEditable=!0;CKEDITOR.env.ie&&
(h.hideFocus=!0,h.disabled=!0,h.removeAttribute("disabled"));delete this._.isLoadingData;this.$=h;b=new CKEDITOR.dom.document(b);this.setup();this.fixInitialSelection();var a=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&b.getDocumentElement().addClass(b.$.compatMode);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&f.enterMode!=CKEDITOR.ENTER_P?e("p"):CKEDITOR.env.edge&&15>CKEDITOR.env.version&&f.enterMode!=CKEDITOR.ENTER_DIV&&e("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)b.getDocumentElement().on("mousedown",
function(a){a.data.getTarget().is("html")&&setTimeout(function(){f.editable().focus()})});g(f);try{f.document.$.execCommand("2D-position",!1,!0)}catch(n){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==f.document.$.compatMode)&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(33==b||34==b)if(CKEDITOR.env.ie)setTimeout(function(){f.getSelection().scrollIntoView()},0);else if(f.window.$.innerHeight>this.$.offsetHeight){var c=f.createRange();c[33==b?"moveToElementEditStart":
"moveToElementEditEnd"](this);c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(b,"blur",function(){try{b.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(b,"touchend",function(){c.focus()});h=f.document.getElementsByTag("title").getItem(0);h.data("cke-title",h.getText());CKEDITOR.env.ie&&(f.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");f.fire("contentDom");this._.isPendingFocus&&
(f.focus(),this._.isPendingFocus=!1);setTimeout(function(){f.fire("dataReady")},0)},0,this)}function g(c){function e(){var b;c.editable().attachListener(c,"selectionChange",function(){var a=c.getSelection().getSelectedElement();a&&(b&&(b.detachEvent("onresizestart",f),b=null),a.$.attachEvent("onresizestart",f),b=a.$)})}function f(b){b.returnValue=!1}if(CKEDITOR.env.gecko)try{var b=c.document.$;b.execCommand("enableObjectResizing",!1,!c.config.disableObjectResizing);b.execCommand("enableInlineTableEditing",
!1,!c.config.disableNativeTableHandles)}catch(g){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&c.config.disableObjectResizing&&e(c)}function f(){var c=[];if(8<=CKEDITOR.document.$.documentMode){c.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var e=[],f;for(f in CKEDITOR.dtd.$removeEmpty)e.push("html.CSS1Compat "+f+"[contenteditable\x3dfalse]");c.push(e.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(c.push("html{height:100% !important}"),c.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));
c.push("html{cursor:text;*cursor:auto}");c.push("img,input,textarea{cursor:default}");return c.join("\n")}var e;CKEDITOR.plugins.add("wysiwygarea",{init:function(c){c.config.fullPage&&c.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});c.addMode("wysiwyg",function(f){function g(a){a&&a.removeListener();c.editable(new e(c,h.$.contentWindow.document.body));c.setData(c.getData(1),f)}var b="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+
")();":"")+"document.close();",b=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(b)+"}())":"",h=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+b+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');h.setStyles({width:"100%",height:"100%"});h.addClass("cke_wysiwyg_frame").addClass("cke_reset");b=c.ui.space("contents");b.append(h);var d=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(d)h.on("load",g);var a=c.title,
n=c.fire("ariaEditorHelpLabel",{}).label;a&&(CKEDITOR.env.ie&&n&&(a+=", "+n),h.setAttribute("title",a));if(n){var a=CKEDITOR.tools.getNextId(),t=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+a+'" class\x3d"cke_voice_label"\x3e'+n+"\x3c/span\x3e");b.append(t,1);h.setAttribute("aria-describedby",a)}c.on("beforeModeUnload",function(a){a.removeListener();t&&t.remove()});h.setAttributes({tabIndex:c.tabIndex,allowTransparency:"true"});!d&&g();c.fire("ariaWidget",h)})}});CKEDITOR.editor.prototype.addContentsCss=
function(c){var e=this.config,f=e.contentsCss;CKEDITOR.tools.isArray(f)||(e.contentsCss=f?[f]:[]);e.contentsCss.push(c)};e=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(e){CKEDITOR.tools.setTimeout(c,0,this,e)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(c,e){var g=this.editor;if(e)this.setHtml(c),this.fixInitialSelection(),g.fire("dataReady");
else{this._.isLoadingData=!0;g._.dataStore={id:1};var b=g.config,h=b.fullPage,d=b.docType,a=CKEDITOR.tools.buildStyleHtml(f()).replace(/<style>/,'\x3cstyle data-cke-temp\x3d"1"\x3e');h||(a+=CKEDITOR.tools.buildStyleHtml(g.config.contentsCss));var n=b.baseHref?'\x3cbase href\x3d"'+b.baseHref+'" data-cke-temp\x3d"1" /\x3e':"";h&&(c=c.replace(/<!DOCTYPE[^>]*>/i,function(a){g.docType=d=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){g.xmlDeclaration=a;return""}));c=g.dataProcessor.toHtml(c);h?(/<body[\s|>]/.test(c)||
(c="\x3cbody\x3e"+c),/<html[\s|>]/.test(c)||(c="\x3chtml\x3e"+c+"\x3c/html\x3e"),/<head[\s|>]/.test(c)?/<title[\s|>]/.test(c)||(c=c.replace(/<head[^>]*>/,"$\x26\x3ctitle\x3e\x3c/title\x3e")):c=c.replace(/<html[^>]*>/,"$\x26\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e"),n&&(c=c.replace(/<head[^>]*?>/,"$\x26"+n)),c=c.replace(/<\/head\s*>/,a+"$\x26"),c=d+c):c=b.docType+'\x3chtml dir\x3d"'+b.contentsLangDirection+'" lang\x3d"'+(b.contentsLanguage||g.langCode)+'"\x3e\x3chead\x3e\x3ctitle\x3e'+
this._.docTitle+"\x3c/title\x3e"+n+a+"\x3c/head\x3e\x3cbody"+(b.bodyId?' id\x3d"'+b.bodyId+'"':"")+(b.bodyClass?' class\x3d"'+b.bodyClass+'"':"")+"\x3e"+c+"\x3c/body\x3e\x3c/html\x3e";CKEDITOR.env.gecko&&(c=c.replace(/<body/,'\x3cbody contenteditable\x3d"true" '),2E4>CKEDITOR.env.version&&(c=c.replace(/<body[^>]*>/,"$\x26\x3c!-- cke-content-start --\x3e")));b='\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"'+(CKEDITOR.env.ie?' defer\x3d"defer" ':"")+"\x3evar wasLoaded\x3d0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+
this._.frameLoadedHandler+",window);wasLoaded\x3d1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"\x3c/script\x3e";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(b+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e');n&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(b+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');
c=c.replace(/(?=\s*<\/(:?head)>)/,b);this.clearCustomData();this.clearListeners();g.fire("contentDomUnload");var t=this.getDocument();try{t.write(c)}catch(p){setTimeout(function(){t.write(c)},0)}}},getData:function(c){if(c)return this.getHtml();c=this.editor;var e=c.config,f=e.fullPage,b=f&&c.docType,g=f&&c.xmlDeclaration,d=this.getDocument(),f=f?d.getDocumentElement().getOuterHtml():d.getBody().getHtml();CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(f=f.replace(/<br>(?=\s*(:?$|<\/body>))/,
""));f=c.dataProcessor.toDataFormat(f);g&&(f=g+"\n"+f);b&&(f=b+"\n"+f);return f},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:e.baseProto.focus.call(this)},detach:function(){var c=this.editor,f=c.document,g;try{g=c.window.getFrame()}catch(b){}e.baseProto.detach.call(this);this.clearCustomData();f.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);g&&g.getParent()?(g.clearCustomData(),(c=g.removeCustomData("onResize"))&&c.removeListener(),
g.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,autogrow,basicstyles,blockquote,notification,button,toolbar,clipboard,panel,floatpanel,menu,contextmenu,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,horizontalrule,htmlwriter,lineutils,widgetselection,widget,image2,indent,indentlist,justify,menubutton,language,list,magicline,maximize,pastefromword,pastetext,removeformat,sharedspace,showblocks,showborders,sourcearea,sourcedialog,specialchar,stylescombo,tab,table,tabletools,tableresize,undo,wysiwygarea",
CKEDITOR.config.skin="moono-lisa",function(){var c=function(c,f){var e=CKEDITOR.getUrl("plugins/"+f);c=c.split(",");for(var k=0;k<c.length;k++)CKEDITOR.skin.icons[c[k]]={path:e,offset:-c[++k],bgsize:c[++k]}};CKEDITOR.env.hidpi?c("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,blockquote,168,,copy-rtl,192,,copy,216,,cut-rtl,240,,cut,264,,paste-rtl,288,,paste,312,,horizontalrule,336,,image,360,,indent-rtl,384,,indent,408,,outdent-rtl,432,,outdent,456,,justifyblock,480,,justifycenter,504,,justifyleft,528,,justifyright,552,,language,576,,bulletedlist-rtl,600,,bulletedlist,624,,numberedlist-rtl,648,,numberedlist,672,,maximize,696,,pastefromword-rtl,720,,pastefromword,744,,pastetext-rtl,768,,pastetext,792,,removeformat,816,,showblocks-rtl,840,,showblocks,864,,source-rtl,888,,source,912,,sourcedialog-rtl,936,,sourcedialog,960,,specialchar,984,,table,1008,,redo-rtl,1032,,redo,1056,,undo-rtl,1080,,undo,1104,,simplebox,2256,auto",
"icons_hidpi.png"):c("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,blockquote,168,auto,copy-rtl,192,auto,copy,216,auto,cut-rtl,240,auto,cut,264,auto,paste-rtl,288,auto,paste,312,auto,horizontalrule,336,auto,image,360,auto,indent-rtl,384,auto,indent,408,auto,outdent-rtl,432,auto,outdent,456,auto,justifyblock,480,auto,justifycenter,504,auto,justifyleft,528,auto,justifyright,552,auto,language,576,auto,bulletedlist-rtl,600,auto,bulletedlist,624,auto,numberedlist-rtl,648,auto,numberedlist,672,auto,maximize,696,auto,pastefromword-rtl,720,auto,pastefromword,744,auto,pastetext-rtl,768,auto,pastetext,792,auto,removeformat,816,auto,showblocks-rtl,840,auto,showblocks,864,auto,source-rtl,888,auto,source,912,auto,sourcedialog-rtl,936,auto,sourcedialog,960,auto,specialchar,984,auto,table,1008,auto,redo-rtl,1032,auto,redo,1056,auto,undo-rtl,1080,auto,undo,1104,auto,simplebox,1128,auto",
"icons.png")}())})();