/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom){window.CKEDITOR||(window.CKEDITOR=function(){var b=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,g={timestamp:"L7C8",version:"4.16.2 (Full)",revision:"4e64f67219",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:b},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var d=document.getElementsByTagName("script"),k=0;k<d.length;k++){var l=d[k].src.match(b);if(l){a=l[1];break}}-1==a.indexOf(":/")&&
"//"!=a.slice(0,2)&&(a=0===a.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return a}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&"/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a)&&(a+=(0<=a.indexOf("?")?"\x26":"?")+"t\x3d"+this.timestamp);
return a},domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",a,!1),window.removeEventListener("load",a,!1),b()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),window.detachEvent("onload",a),b())}catch(l){}}function b(){for(var a;a=d.shift();)a()}var d=[];return function(b){function e(){try{document.documentElement.doScroll("left")}catch(h){setTimeout(e,1);return}a()}d.push(b);"complete"===
document.readyState&&setTimeout(a,1);if(1==d.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);b=!1;try{b=!window.frameElement}catch(c){}document.documentElement.doScroll&&b&&e()}}}()},d=window.CKEDITOR_GETURL;if(d){var a=g.getUrl;g.getUrl=function(b){return d.call(g,b)||a.call(g,b)}}return g}());(function(){var b={};CKEDITOR.event||
(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(b){var d=CKEDITOR.event.prototype,a;for(a in d)null==b[a]&&(b[a]=d[a])},CKEDITOR.event.prototype=function(){function g(b){var m=d(this);return m[b]||(m[b]=new a(b))}var d=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},a=function(a){this.name=a;this.listeners=[]};a.prototype={getListenerIndex:function(a){for(var b=0,d=this.listeners;b<d.length;b++)if(d[b].fn==a)return b;return-1}};return{define:function(a,
b){var d=g.call(this,a);CKEDITOR.tools.extend(d,b,!0)},on:function(a,d,k,l,e){function c(e,n,c,r){e={name:a,sender:this,editor:e,data:n,listenerData:l,stop:c,cancel:r,removeListener:h};return!1===d.call(k,e)?b:e.data}function h(){n.removeListener(a,d)}var n=this,r=g.call(this,a);if(0>r.getListenerIndex(d)){r=r.listeners;k||(k=this);isNaN(e)&&(e=10);c.fn=d;c.priority=e;for(var u=r.length-1;0<=u;u--)if(r[u].priority<=e)return r.splice(u+1,0,c),{removeListener:h};r.unshift(c)}return{removeListener:h}},
once:function(){var a=Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,m=function(){a=1},k=0,l=function(){k=1};return function(e,c,h){var n=d(this)[e];e=a;var r=k;a=k=0;if(n){var g=n.listeners;if(g.length)for(var g=g.slice(0),p,t=0;t<g.length;t++){if(n.errorProof)try{p=
g[t].call(this,h,c,m,l)}catch(v){}else p=g[t].call(this,h,c,m,l);p===b?k=1:"undefined"!=typeof p&&(c=p);if(a||k)break}}c=k?!1:"undefined"==typeof c?!0:c;a=e;k=r;return c}}(),fireOnce:function(a,b,k){b=this.fire(a,b,k);delete d(this)[a];return b},removeListener:function(a,b){var k=d(this)[a];if(k){var l=k.getListenerIndex(b);0<=l&&k.listeners.splice(l,1)}},removeAllListeners:function(){var a=d(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=d(this)[a])&&0<a.listeners.length}}}())})();
CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(b,g){b in{instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fire.call(this,b,g,this)},CKEDITOR.editor.prototype.fireOnce=function(b,g){b in{instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,b,g,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype));CKEDITOR.env||(CKEDITOR.env=
function(){var b=navigator.userAgent.toLowerCase(),g=b.match(/edge[ \/](\d+.?\d*)/),d=-1<b.indexOf("trident/"),d=!(!g&&!d),d={ie:d,edge:!!g,webkit:!d&&-1<b.indexOf(" applewebkit/"),air:-1<b.indexOf(" adobeair/"),mac:-1<b.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<b.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return!1;var a=document.domain,b=window.location.hostname;return a!=
b&&a!="["+b+"]"},secure:"https:"==location.protocol};d.gecko="Gecko"==navigator.product&&!d.webkit&&!d.ie;d.webkit&&(-1<b.indexOf("chrome")?d.chrome=!0:d.safari=!0);var a=0;d.ie&&(a=g?parseFloat(g[1]):d.quirks||!document.documentMode?parseFloat(b.match(/msie (\d+)/)[1]):document.documentMode,d.ie9Compat=9==a,d.ie8Compat=8==a,d.ie7Compat=7==a,d.ie6Compat=7>a||d.quirks);d.gecko&&(g=b.match(/rv:([\d\.]+)/))&&(g=g[1].split("."),a=1E4*g[0]+100*(g[1]||0)+1*(g[2]||0));d.air&&(a=parseFloat(b.match(/ adobeair\/(\d+)/)[1]));
d.webkit&&(a=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]));d.version=a;d.isCompatible=!(d.ie&&7>a)&&!(d.gecko&&4E4>a)&&!(d.webkit&&534>a);d.hidpi=2<=window.devicePixelRatio;d.needsBrFiller=d.gecko||d.webkit||d.ie&&10<a;d.needsNbspFiller=d.ie&&11>a;d.cssClass="cke_browser_"+(d.ie?"ie":d.gecko?"gecko":d.webkit?"webkit":"unknown");d.quirks&&(d.cssClass+=" cke_browser_quirks");d.ie&&(d.cssClass+=" cke_browser_ie"+(d.quirks?"6 cke_browser_iequirks":d.version));d.air&&(d.cssClass+=" cke_browser_air");
d.iOS&&(d.cssClass+=" cke_browser_ios");d.hidpi&&(d.cssClass+=" cke_hidpi");return d}());"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var b=document.createElement("script");b.type="text/javascript";b.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(b)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=
function(b){(this._.pending||(this._.pending=[])).push(b)};(function(){CKEDITOR.domReady(function(){var b=CKEDITOR.loadFullCore,g=CKEDITOR.loadFullCoreTimeout;b&&(CKEDITOR.status="basic_ready",b&&b._load?b():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(b,g){CKEDITOR.verbosity&
CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:b,additionalData:g})};CKEDITOR.error=function(b,g){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:b,additionalData:g})};CKEDITOR.on("log",function(b){if(window.console&&window.console.log){var g=console[b.data.type]?b.data.type:"log",d=b.data.errorCode;if(b=b.data.additionalData)console[g]("[CKEDITOR] Error code: "+d+".",b);else console[g]("[CKEDITOR] Error code: "+d+".");console[g]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+
d)}},null,null,999);CKEDITOR.dom={};(function(){function b(a,h,b){this._minInterval=a;this._context=b;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(h,b||{});var e=this;this.input=function(){function a(){e._lastOutput=(new Date).getTime();e._scheduledTimer=0;e._call()}if(!e._scheduledTimer||!1!==e._reschedule()){var h=(new Date).getTime()-e._lastOutput;h<e._minInterval?e._scheduledTimer=setTimeout(a,e._minInterval-h):a()}}}function g(a,h,e){b.call(this,a,h,e);this._args=
[];var c=this;this.input=CKEDITOR.tools.override(this.input,function(a){return function(){c._args=Array.prototype.slice.call(arguments);a.call(this)}})}var d=[],a=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",f=/&/g,m=/>/g,k=/</g,l=/"/g,e=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,c={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:"­"},h=function(a,h){return"#"==h[0]?String.fromCharCode(parseInt(h.slice(1),10)):c[h]};CKEDITOR.on("reset",function(){d=[]});CKEDITOR.tools=
{arrayCompare:function(a,h){if(!a&&!h)return!0;if(!a||!h||a.length!=h.length)return!1;for(var b=0;b<a.length;b++)if(a[b]!=h[b])return!1;return!0},getIndex:function(a,h){for(var b=0;b<a.length;++b)if(h(a[b]))return b;return-1},clone:function(a){var h;if(a&&a instanceof Array){h=[];for(var b=0;b<a.length;b++)h[b]=CKEDITOR.tools.clone(a[b]);return h}if(null===a||"object"!=typeof a||a instanceof String||a instanceof Number||a instanceof Boolean||a instanceof Date||a instanceof RegExp||a.nodeType||a.window===
a)return a;h=new a.constructor;for(b in a)h[b]=CKEDITOR.tools.clone(a[b]);return h},capitalize:function(a,h){return a.charAt(0).toUpperCase()+(h?a.slice(1):a.slice(1).toLowerCase())},extend:function(a){var h=arguments.length,b,e;"boolean"==typeof(b=arguments[h-1])?h--:"boolean"==typeof(b=arguments[h-2])&&(e=arguments[h-1],h-=2);for(var c=1;c<h;c++){var l=arguments[c]||{};CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(l),function(h){if(!0===b||null==a[h])if(!e||h in e)a[h]=l[h]})}return a},
prototypedCopy:function(a){var h=function(){};h.prototype=a;return new h},copy:function(a){var h={},b;for(b in a)h[b]=a[b];return h},isArray:function(a){return"[object Array]"==Object.prototype.toString.call(a)},isEmpty:function(a){for(var h in a)if(a.hasOwnProperty(h))return!1;return!0},cssVendorPrefix:function(h,b,e){if(e)return a+h+":"+b+";"+h+":"+b;e={};e[h]=b;e[a+h]=b;return e},cssStyleToDomStyle:function(){var a=document.createElement("div").style,h="undefined"!=typeof a.cssFloat?"cssFloat":
"undefined"!=typeof a.styleFloat?"styleFloat":"float";return function(a){return"float"==a?h:a.replace(/-./g,function(a){return a.substr(1).toUpperCase()})}}(),buildStyleHtml:function(a){a=[].concat(a);for(var h,b=[],e=0;e<a.length;e++)if(h=a[e])/@import|[{}]/.test(h)?b.push("\x3cstyle\x3e"+h+"\x3c/style\x3e"):b.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+h+'"\x3e');return b.join("")},htmlEncode:function(a){return void 0===a||null===a?"":String(a).replace(f,"\x26amp;").replace(m,
"\x26gt;").replace(k,"\x26lt;")},htmlDecode:function(a){return a.replace(e,h)},htmlEncodeAttr:function(a){return CKEDITOR.tools.htmlEncode(a).replace(l,"\x26quot;")},htmlDecodeAttr:function(a){return CKEDITOR.tools.htmlDecode(a)},transformPlainTextToHtml:function(a,h){var b=h==CKEDITOR.ENTER_BR,e=this.htmlEncode(a.replace(/\r\n/g,"\n")),e=e.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),c=h==CKEDITOR.ENTER_P?"p":"div";if(!b){var l=/\n{2}/g;if(l.test(e))var f="\x3c"+c+"\x3e",d="\x3c/"+c+"\x3e",e=f+
e.replace(l,function(){return d+f})+d}e=e.replace(/\n/g,"\x3cbr\x3e");b||(e=e.replace(new RegExp("\x3cbr\x3e(?\x3d\x3c/"+c+"\x3e)"),function(a){return CKEDITOR.tools.repeat(a,2)}));e=e.replace(/^ | $/g,"\x26nbsp;");return e=e.replace(/(>|\s) /g,function(a,h){return h+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var a="e",h=0;8>h;h++)a+=Math.floor(65536*
(1+Math.random())).toString(16).substring(1);return a},override:function(a,h){var b=h(a);b.prototype=a.prototype;return b},setTimeout:function(a,h,b,e,c){c||(c=window);b||(b=c);return c.setTimeout(function(){e?a.apply(b,[].concat(e)):a.apply(b)},h||0)},throttle:function(a,h,b){return new this.buffers.throttle(a,h,b)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(h){return h.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g;return function(h){return h.replace(a,"")}}(),
rtrim:function(){var a=/[ \t\n\r]+$/g;return function(h){return h.replace(a,"")}}(),indexOf:function(a,h){if("function"==typeof h)for(var b=0,e=a.length;b<e;b++){if(h(a[b]))return b}else{if(a.indexOf)return a.indexOf(h);b=0;for(e=a.length;b<e;b++)if(a[b]===h)return b}return-1},search:function(a,h){var b=CKEDITOR.tools.indexOf(a,h);return 0<=b?a[b]:null},bind:function(a,h){var b=Array.prototype.slice.call(arguments,2);return function(){return a.apply(h,b.concat(Array.prototype.slice.call(arguments)))}},
createClass:function(a){var h=a.$,b=a.base,e=a.privates||a._,c=a.proto;a=a.statics;!h&&(h=function(){b&&this.base.apply(this,arguments)});if(e)var l=h,h=function(){var a=this._||(this._={}),h;for(h in e){var b=e[h];a[h]="function"==typeof b?CKEDITOR.tools.bind(b,this):b}l.apply(this,arguments)};b&&(h.prototype=this.prototypedCopy(b.prototype),h.prototype.constructor=h,h.base=b,h.baseProto=b.prototype,h.prototype.base=function q(){this.base=b.prototype.base;b.apply(this,arguments);this.base=q});c&&
this.extend(h.prototype,c,!0);a&&this.extend(h,a,!0);return h},addFunction:function(a,h){return d.push(function(){return a.apply(h||this,arguments)})-1},removeFunction:function(a){d[a]=null},callFunction:function(a){var h=d[a];return h&&h.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a=/^-?\d+\.?\d*px$/,h;return function(b){h=CKEDITOR.tools.trim(b+"")+"px";return a.test(h)?h:b||""}}(),convertToPx:function(){var a;return function(h){a||(a=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"\x3e\x3c/div\x3e',
CKEDITOR.document),CKEDITOR.document.getBody().append(a));if(!/%$/.test(h)){var b=0>parseFloat(h);b&&(h=h.replace("-",""));a.setStyle("width",h);h=a.$.clientWidth;return b?-h:h}return h}}(),repeat:function(a,h){return Array(h+1).join(a)},tryThese:function(){for(var a,h=0,b=arguments.length;h<b;h++){var e=arguments[h];try{a=e();break}catch(c){}}return a},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var h=arguments,b=this;window.setTimeout(function(){a.apply(b,
h)},0)}},normalizeCssText:function(a,h){var b=[],e,c=CKEDITOR.tools.parseCssText(a,!0,h);for(e in c)b.push(e+":"+c[e]);b.sort();return b.length?b.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,h,b,e){a=[h,b,e];for(h=0;3>h;h++)a[h]=("0"+parseInt(a[h],10).toString(16)).slice(-2);return"#"+a.join("")})},normalizeHex:function(a){return a.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(a,h,b,e){a=h.toLowerCase();3==a.length&&
(a=a.split(""),a=[a[0],a[0],a[1],a[1],a[2],a[2]].join(""));return"#"+a+e})},_isValidColorFormat:function(a){if(!a)return!1;a=a.replace(/\s+/g,"");return/^[a-z0-9()#%,./]+$/i.test(a)},parseCssText:function(a,h,b){var e={};b&&(a=(new CKEDITOR.dom.element("span")).setAttribute("style",a).getAttribute("style")||"");a&&(a=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(a)));if(!a||";"==a)return e;a.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,b,c){h&&(b=
b.toLowerCase(),"font-family"==b&&(c=c.replace(/\s*,\s*/g,",")),c=CKEDITOR.tools.trim(c));e[b]=c});return e},writeCssText:function(a,h){var b,e=[];for(b in a)e.push(b+":"+a[b]);h&&e.sort();return e.join("; ")},objectCompare:function(a,h,b){var e;if(!a&&!h)return!0;if(!a||!h)return!1;for(e in a)if(a[e]!=h[e])return!1;if(!b)for(e in h)if(a[e]!=h[e])return!1;return!0},objectKeys:function(a){return CKEDITOR.tools.object.keys(a)},convertArrayToObject:function(a,h){var b={};1==arguments.length&&(h=!0);
for(var e=0,c=a.length;e<c;++e)b[a[e]]=h;return b},getStyledSpans:function(a,h){var b=CKEDITOR.env.ie&&8==CKEDITOR.env.version?a.toUpperCase():a,b=h.find("span[style*\x3d"+b+"]").toArray();return CKEDITOR.tools.array.filter(b,function(h){return!!h.getStyle(a)})},fixDomain:function(){for(var a;;)try{a=window.parent.document.domain;break}catch(h){a=a?a.replace(/.+?(?:\.|$)/,""):document.domain;if(!a)break;document.domain=a}return!!a},eventsBuffer:function(a,h,b){return new this.buffers.event(a,h,b)},
enableHtml5Elements:function(a,h){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(" "),e=b.length,c;e--;)c=a.createElement(b[e]),h&&a.appendChild(c)},checkIfAnyArrayItemMatches:function(a,h){for(var b=0,e=a.length;b<e;++b)if(a[b].match(h))return!0;return!1},checkIfAnyObjectPropertyMatches:function(a,h){for(var b in a)if(b.match(h))return!0;return!1},keystrokeToString:function(a,
h){var b=this.keystrokeToArray(a,h);b.display=b.display.join("+");b.aria=b.aria.join("+");return b},keystrokeToArray:function(a,h){var b=h&16711680,e=h&65535,c=CKEDITOR.env.mac,l=[],f=[];b&CKEDITOR.CTRL&&(l.push(c?"⌘":a[17]),f.push(c?a[224]:a[17]));b&CKEDITOR.ALT&&(l.push(c?"⌥":a[18]),f.push(a[18]));b&CKEDITOR.SHIFT&&(l.push(c?"⇧":a[16]),f.push(a[16]));e&&(a[e]?(l.push(a[e]),f.push(a[e])):(l.push(String.fromCharCode(e)),f.push(String.fromCharCode(e))));return{display:l,aria:f}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d",
getCookie:function(a){a=a.toLowerCase();for(var h=document.cookie.split(";"),b,e,c=0;c<h.length;c++)if(b=h[c].split("\x3d"),e=decodeURIComponent(CKEDITOR.tools.trim(b[0]).toLowerCase()),e===a)return decodeURIComponent(1<b.length?b[1]:"");return null},setCookie:function(a,h){document.cookie=encodeURIComponent(a)+"\x3d"+encodeURIComponent(h)+";path\x3d/"},getCsrfToken:function(){var a=CKEDITOR.tools.getCookie("ckCsrfToken");if(!a||40!=a.length){var a=[],h="";if(window.crypto&&window.crypto.getRandomValues)a=
new Uint8Array(40),window.crypto.getRandomValues(a);else for(var b=0;40>b;b++)a.push(Math.floor(256*Math.random()));for(b=0;b<a.length;b++)var e="abcdefghijklmnopqrstuvwxyz0123456789".charAt(a[b]%36),h=h+(.5<Math.random()?e.toUpperCase():e);a=h;CKEDITOR.tools.setCookie("ckCsrfToken",a)}return a},escapeCss:function(a){if(a)if(window.CSS&&CSS.escape)a=CSS.escape(a);else{a=String(a);for(var h=a.length,b=-1,e,c="",l=a.charCodeAt(0);++b<h;)e=a.charCodeAt(b),c=0==e?c+"�":127==e||1<=e&&31>=e||0==b&&48<=
e&&57>=e||1==b&&48<=e&&57>=e&&45==l?c+("\\"+e.toString(16)+" "):0==b&&1==h&&45==e?c+("\\"+a.charAt(b)):128<=e||45==e||95==e||48<=e&&57>=e||65<=e&&90>=e||97<=e&&122>=e?c+a.charAt(b):c+("\\"+a.charAt(b));a=c}else a="";return a},getMouseButton:function(a){return(a=a&&a.data?a.data.$:a)?CKEDITOR.tools.normalizeMouseButton(a.button):!1},normalizeMouseButton:function(a,h){if(!CKEDITOR.env.ie||9<=CKEDITOR.env.version&&!CKEDITOR.env.ie6Compat)return a;for(var b=[[CKEDITOR.MOUSE_BUTTON_LEFT,1],[CKEDITOR.MOUSE_BUTTON_MIDDLE,
4],[CKEDITOR.MOUSE_BUTTON_RIGHT,2]],e=0;e<b.length;e++){var c=b[e];if(c[0]===a&&h)return c[1];if(!h&&c[1]===a)return c[0]}},convertHexStringToBytes:function(a){var h=[],b=a.length/2,e;for(e=0;e<b;e++)h.push(parseInt(a.substr(2*e,2),16));return h},convertBytesToBase64:function(a){var h="",b=a.length,e;for(e=0;e<b;e+=3){var c=a.slice(e,e+3),l=c.length,f=[],d;if(3>l)for(d=l;3>d;d++)c[d]=0;f[0]=(c[0]&252)>>2;f[1]=(c[0]&3)<<4|c[1]>>4;f[2]=(c[1]&15)<<2|(c[2]&192)>>6;f[3]=c[2]&63;for(d=0;4>d;d++)h=d<=l?
h+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f[d]):h+"\x3d"}return h},style:{parse:{_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "),_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi,background:function(a){var h={},b=this._findColor(a);
b.length&&(h.color=b[0],CKEDITOR.tools.array.forEach(b,function(h){a=a.replace(h,"")}));if(a=CKEDITOR.tools.trim(a))h.unprocessed=a;return h},margin:function(a){return CKEDITOR.tools.style.parse.sideShorthand(a,function(a){return a.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||["0px"]})},sideShorthand:function(a,h){function b(a){e.top=c[a[0]];e.right=c[a[1]];e.bottom=c[a[2]];e.left=c[a[3]]}var e={},c=h?h(a):a.split(/\s+/);switch(c.length){case 1:b([0,0,0,0]);break;case 2:b([0,
1,0,1]);break;case 3:b([0,1,2,1]);break;case 4:b([0,1,2,3])}return e},border:function(a){return CKEDITOR.tools.style.border.fromCssRule(a)},_findColor:function(a){var h=[],b=CKEDITOR.tools.array,h=h.concat(a.match(this._rgbaRegExp)||[]),h=h.concat(a.match(this._hslaRegExp)||[]);return h=h.concat(b.filter(a.split(/\s+/),function(a){return a.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:a.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(a,h,b){var e=[];this.forEach(a,
function(c,l){h.call(b,c,l,a)&&e.push(c)});return e},find:function(a,h,b){for(var e=a.length,c=0;c<e;){if(h.call(b,a[c],c,a))return a[c];c++}},forEach:function(a,h,b){var e=a.length,c;for(c=0;c<e;c++)h.call(b,a[c],c,a)},map:function(a,h,b){for(var e=[],c=0;c<a.length;c++)e.push(h.call(b,a[c],c,a));return e},reduce:function(a,h,b,e){for(var c=0;c<a.length;c++)b=h.call(e,b,a[c],c,a);return b},every:function(a,h,b){if(!a.length)return!0;h=this.filter(a,h,b);return a.length===h.length},some:function(a,
h,b){for(var e=0;e<a.length;e++)if(h.call(b,a[e],e,a))return!0;return!1},zip:function(a,h){return CKEDITOR.tools.array.map(a,function(a,b){return[a,h[b]]})},unique:function(a){return this.filter(a,function(h,b){return b===CKEDITOR.tools.array.indexOf(a,h)})}},object:{DONT_ENUMS:"toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),entries:function(a){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(a),function(h){return[h,a[h]]})},values:function(a){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(a),
function(h){return a[h]})},keys:function(a){var h=Object.prototype.hasOwnProperty,b=[],e=CKEDITOR.tools.object.DONT_ENUMS;if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(!a||"object"!==typeof a)){h=[];if("string"===typeof a)for(b=0;b<a.length;b++)h.push(String(b));return h}for(var c in a)b.push(c);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)for(c=0;c<e.length;c++)h.call(a,e[c])&&b.push(e[c]);return b},findKey:function(a,h){if("object"!==typeof a)return null;for(var b in a)if(a[b]===h)return b;return null},
merge:function(a,h){var b=CKEDITOR.tools,e=b.clone(a),c=b.clone(h);b.array.forEach(b.object.keys(c),function(a){e[a]="object"===typeof c[a]&&"object"===typeof e[a]?b.object.merge(e[a],c[a]):c[a]});return e}},getAbsoluteRectPosition:function(a,h){function b(a){if(a){var h=a.getClientRect();e.top+=h.top;e.left+=h.left;"x"in e&&"y"in e&&(e.x+=h.x,e.y+=h.y);b(a.getWindow().getFrame())}}var e=CKEDITOR.tools.copy(h);b(a.getFrame());var c=CKEDITOR.document.getWindow().getScrollPosition();e.top+=c.y;e.left+=
c.x;"x"in e&&"y"in e&&(e.y+=c.y,e.x+=c.x);e.right=e.left+e.width;e.bottom=e.top+e.height;return e}};b.prototype={reset:function(){this._lastOutput=0;this._clearTimer()},_reschedule:function(){return!1},_call:function(){this._output()},_clearTimer:function(){this._scheduledTimer&&clearTimeout(this._scheduledTimer);this._scheduledTimer=0}};g.prototype=CKEDITOR.tools.prototypedCopy(b.prototype);g.prototype._reschedule=function(){this._scheduledTimer&&this._clearTimer()};g.prototype._call=function(){this._output.apply(this._context,
this._args)};CKEDITOR.tools.buffers={};CKEDITOR.tools.buffers.event=b;CKEDITOR.tools.buffers.throttle=g;CKEDITOR.tools.style.border=CKEDITOR.tools.createClass({$:function(a){a=a||{};this.width=a.width;this.style=a.style;this.color=a.color;this._.normalize()},_:{normalizeMap:{color:[[/windowtext/g,"black"]]},normalize:function(){for(var a in this._.normalizeMap){var h=this[a];h&&(this[a]=CKEDITOR.tools.array.reduce(this._.normalizeMap[a],function(a,h){return a.replace(h[0],h[1])},h))}}},proto:{toString:function(){return CKEDITOR.tools.array.filter([this.width,
this.style,this.color],function(a){return!!a}).join(" ")}},statics:{fromCssRule:function(a){var h={},b=a.split(/\s+/g);a=CKEDITOR.tools.style.parse._findColor(a);a.length&&(h.color=a[0]);CKEDITOR.tools.array.forEach(b,function(a){h.style||-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,a)?!h.width&&CKEDITOR.tools.style.parse._widthRegExp.test(a)&&(h.width=a):h.style=a});return new CKEDITOR.tools.style.border(h)},splitCssValues:function(a,h){h=h||{};var b=CKEDITOR.tools.array.reduce(["width",
"style","color"],function(b,e){var c=a["border-"+e]||h[e];b[e]=c?CKEDITOR.tools.style.parse.sideShorthand(c):null;return b},{});return CKEDITOR.tools.array.reduce(["top","right","bottom","left"],function(h,e){var c={},l;for(l in b){var f=a["border-"+e+"-"+l];c[l]=f?f:b[l]&&b[l][e]}h["border-"+e]=new CKEDITOR.tools.style.border(c);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 b=CKEDITOR.tools.extend,g=function(a,h){for(var b=CKEDITOR.tools.clone(a),e=1;e<arguments.length;e++){h=arguments[e];for(var l in h)delete b[l]}return b},d={},a={},f={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},k={},
l={"#":1},e={center:1,dir:1,noframes:1};b(d,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},l,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});b(a,f,d,e);g=
{a:g(d,{a:1,button:1}),abbr:d,address:a,area:k,article:a,aside:a,audio:b({source:1,track:1},a),b:d,base:k,bdi:d,bdo:d,blockquote:a,body:a,br:k,button:g(d,{a:1,button:1}),canvas:d,caption:a,cite:d,code:d,col:k,colgroup:{col:1},command:k,datalist:b({option:1},d),dd:a,del:d,details:b({summary:1},a),dfn:d,div:a,dl:{dt:1,dd:1},dt:a,em:d,embed:k,fieldset:b({legend:1},a),figcaption:a,figure:b({figcaption:1},a),footer:a,form:a,h1:d,h2:d,h3:d,h4:d,h5:d,h6:d,head:b({title:1,base:1},m),header:a,hgroup:{h1:1,
h2:1,h3:1,h4:1,h5:1,h6:1},hr:k,html:b({head:1,body:1},a,m),i:d,iframe:l,img:k,input:k,ins:d,kbd:d,keygen:k,label:d,legend:d,li:a,link:k,main:a,map:a,mark:d,menu:b({li:1},a),meta:k,meter:g(d,{meter:1}),nav:a,noscript:b({link:1,meta:1,style:1},d),object:b({param:1},d),ol:{li:1},optgroup:{option:1},option:l,output:d,p:d,param:k,pre:d,progress:g(d,{progress:1}),q:d,rp:d,rt:d,ruby:b({rp:1,rt:1},d),s:d,samp:d,script:l,section:a,select:{optgroup:1,option:1},small:d,source:k,span:d,strong:d,style:l,sub:d,
summary:b({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},d),sup:d,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:a,textarea:l,tfoot:{tr:1},th:a,thead:{tr:1},time:g(d,{time:1}),title:l,tr:{th:1,td:1},track:k,u:d,ul:{li:1},"var":d,video:b({source:1,track:1},a),wbr:k,acronym:d,applet:b({param:1},a),basefont:k,big:d,center:a,dialog:k,dir:{li:1},font:d,isindex:k,noframes:a,strike:d,tt:d};b(g,{$block:b({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},f,e),$blockLimit:{article:1,aside:1,audio:1,
body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,
keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:d,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:b({body:1,head:1,html:1},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(b){this.$=b};CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var b=this.getKey();if(this.$.ctrlKey||this.$.metaKey)b+=CKEDITOR.CTRL;this.$.shiftKey&&(b+=CKEDITOR.SHIFT);this.$.altKey&&(b+=CKEDITOR.ALT);return b},preventDefault:function(b){var g=this.$;g.preventDefault?g.preventDefault():g.returnValue=!1;b&&this.stopPropagation()},stopPropagation:function(){var b=this.$;b.stopPropagation?b.stopPropagation():
b.cancelBubble=!0},getTarget:function(){var b=this.$.target||this.$.srcElement;return b?new CKEDITOR.dom.node(b):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var b=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(b.documentElement.scrollLeft||b.body.scrollLeft),y:this.$.pageY||this.$.clientY+(b.documentElement.scrollTop||b.body.scrollTop)}}};CKEDITOR.CTRL=1114112;CKEDITOR.SHIFT=2228224;CKEDITOR.ALT=4456448;CKEDITOR.EVENT_PHASE_CAPTURING=1;
CKEDITOR.EVENT_PHASE_AT_TARGET=2;CKEDITOR.EVENT_PHASE_BUBBLING=3;CKEDITOR.dom.domObject=function(b){b&&(this.$=b)};CKEDITOR.dom.domObject.prototype=function(){var b=function(b,d){return function(a){"undefined"!=typeof CKEDITOR&&b.fire(d,new CKEDITOR.dom.event(a))}};return{getPrivate:function(){var b;(b=this.getCustomData("_"))||this.setCustomData("_",b={});return b},on:function(g){var d=this.getCustomData("_cke_nativeListeners");d||(d={},this.setCustomData("_cke_nativeListeners",d));d[g]||(d=d[g]=
b(this,g),this.$.addEventListener?this.$.addEventListener(g,d,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+g,d));return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(b){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(b)){var d=this.getCustomData("_cke_nativeListeners"),a=d&&d[b];a&&(this.$.removeEventListener?this.$.removeEventListener(b,a,!1):this.$.detachEvent&&this.$.detachEvent("on"+b,a),delete d[b])}},
removeAllListeners:function(){try{var b=this.getCustomData("_cke_nativeListeners"),d;for(d in b){var a=b[d];this.$.detachEvent?this.$.detachEvent("on"+d,a):this.$.removeEventListener&&this.$.removeEventListener(d,a,!1);delete b[d]}}catch(f){if(!CKEDITOR.env.edge||-2146828218!==f.number)throw f;}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}();(function(b){var g={};CKEDITOR.on("reset",function(){g={}});b.equals=function(b){try{return b&&b.$===this.$}catch(a){return!1}};b.setCustomData=function(b,
a){var f=this.getUniqueId();(g[f]||(g[f]={}))[b]=a;return this};b.getCustomData=function(b){var a=this.$["data-cke-expando"];return(a=a&&g[a])&&b in a?a[b]:null};b.removeCustomData=function(b){var a=this.$["data-cke-expando"],a=a&&g[a],f,m;a&&(f=a[b],m=b in a,delete a[b]);return m?f:null};b.clearCustomData=function(){this.removeAllListeners();var b=this.getUniqueId();b&&delete g[b]};b.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};
CKEDITOR.event.implementOn(b)})(CKEDITOR.dom.domObject.prototype);CKEDITOR.dom.node=function(b){return b?new CKEDITOR.dom[b.nodeType==CKEDITOR.NODE_DOCUMENT?"document":b.nodeType==CKEDITOR.NODE_ELEMENT?"element":b.nodeType==CKEDITOR.NODE_TEXT?"text":b.nodeType==CKEDITOR.NODE_COMMENT?"comment":b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](b):this};CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject;CKEDITOR.NODE_ELEMENT=1;CKEDITOR.NODE_DOCUMENT=9;CKEDITOR.NODE_TEXT=
3;CKEDITOR.NODE_COMMENT=8;CKEDITOR.NODE_DOCUMENT_FRAGMENT=11;CKEDITOR.POSITION_IDENTICAL=0;CKEDITOR.POSITION_DISCONNECTED=1;CKEDITOR.POSITION_FOLLOWING=2;CKEDITOR.POSITION_PRECEDING=4;CKEDITOR.POSITION_IS_CONTAINED=8;CKEDITOR.POSITION_CONTAINS=16;CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(b,g){b.append(this,g);return b},clone:function(b,g){function d(a){a["data-cke-expando"]&&(a["data-cke-expando"]=!1);if(a.nodeType==CKEDITOR.NODE_ELEMENT||a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(g||
a.nodeType!=CKEDITOR.NODE_ELEMENT||a.removeAttribute("id",!1),b){a=a.childNodes;for(var f=0;f<a.length;f++)d(a[f])}}function a(f){if(f.type==CKEDITOR.NODE_ELEMENT||f.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(f.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var d=f.getName();":"==d[0]&&f.renameNode(d.substring(1))}if(b)for(d=0;d<f.getChildCount();d++)a(f.getChild(d))}}var f=this.$.cloneNode(b);d(f);f=new CKEDITOR.dom.node(f);CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==
CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&a(f);return f},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(b){b.$.parentNode.insertBefore(this.$,b.$.nextSibling);return b},insertBefore:function(b){b.$.parentNode.insertBefore(this.$,b.$);return b},insertBeforeMe:function(b){this.$.parentNode.insertBefore(b.$,this.$);return b},getAddress:function(b){for(var g=[],d=this.getDocument().$.documentElement,a=this;a&&a!=d;){var f=a.getParent();
f&&g.unshift(this.getIndex.call(a,b));a=f}return g},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(b){function g(a,b){var l=b?a.getNext():a.getPrevious();return l&&l.type==CKEDITOR.NODE_TEXT?l.isEmpty()?g(l,b):l:null}var d=this,a=-1,f;if(!this.getParent()||b&&d.type==CKEDITOR.NODE_TEXT&&d.isEmpty()&&!g(d)&&!g(d,!0))return-1;do if(!b||d.equals(this)||d.type!=CKEDITOR.NODE_TEXT||!f&&!d.isEmpty())a++,f=d.type==CKEDITOR.NODE_TEXT;
while(d=d.getPrevious());return a},getNextSourceNode:function(b,g,d){if(d&&!d.call){var a=d;d=function(b){return!b.equals(a)}}b=!b&&this.getFirst&&this.getFirst();var f;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&d&&!1===d(this,!0))return null;b=this.getNext()}for(;!b&&(f=(f||this).getParent());){if(d&&!1===d(f,!0))return null;b=f.getNext()}return!b||d&&!1===d(b)?null:g&&g!=b.type?b.getNextSourceNode(!1,g,d):b},getPreviousSourceNode:function(b,g,d){if(d&&!d.call){var a=d;d=function(b){return!b.equals(a)}}b=
!b&&this.getLast&&this.getLast();var f;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&d&&!1===d(this,!0))return null;b=this.getPrevious()}for(;!b&&(f=(f||this).getParent());){if(d&&!1===d(f,!0))return null;b=f.getPrevious()}return!b||d&&!1===d(b)?null:g&&b.type!=g?b.getPreviousSourceNode(!1,g,d):b},getPrevious:function(b){var g=this.$,d;do d=(g=g.previousSibling)&&10!=g.nodeType&&new CKEDITOR.dom.node(g);while(d&&b&&!b(d));return d},getNext:function(b){var g=this.$,d;do d=(g=g.nextSibling)&&new CKEDITOR.dom.node(g);
while(d&&b&&!b(d));return d},getParent:function(b){var g=this.$.parentNode;return g&&(g.nodeType==CKEDITOR.NODE_ELEMENT||b&&g.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(g):null},getParents:function(b){var g=this,d=[];do d[b?"push":"unshift"](g);while(g=g.getParent());return d},getCommonAncestor:function(b){if(b.equals(this))return this;if(b.contains&&b.contains(this))return b;var g=this.contains?this:this.getParent();do if(g.contains(b))return g;while(g=g.getParent());return null},
getPosition:function(b){var g=this.$,d=b.$;if(g.compareDocumentPosition)return g.compareDocumentPosition(d);if(g==d)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&b.type==CKEDITOR.NODE_ELEMENT){if(g.contains){if(g.contains(d))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(d.contains(g))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in g)return 0>g.sourceIndex||0>d.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:g.sourceIndex<
d.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}g=this.getAddress();b=b.getAddress();for(var d=Math.min(g.length,b.length),a=0;a<d;a++)if(g[a]!=b[a])return g[a]<b[a]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return g.length<b.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(b,g){var d=this.$,a,f;g||(d=d.parentNode);"function"==typeof b?(f=!0,a=b):(f=!1,a=function(a){a=
"string"==typeof a.nodeName?a.nodeName.toLowerCase():"";return"string"==typeof b?a==b:a in b});for(;d;){if(a(f?new CKEDITOR.dom.node(d):d))return new CKEDITOR.dom.node(d);try{d=d.parentNode}catch(m){d=null}}return null},hasAscendant:function(b,g){var d=this.$;g||(d=d.parentNode);for(;d;){if(d.nodeName&&d.nodeName.toLowerCase()==b)return!0;d=d.parentNode}return!1},move:function(b,g){b.append(this.remove(),g)},remove:function(b){var g=this.$,d=g.parentNode;if(d){if(b)for(;b=g.firstChild;)d.insertBefore(g.removeChild(b),
g);d.removeChild(g)}return this},replace:function(b){this.insertBefore(b);b.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var b;this.getFirst&&(b=this.getFirst());){if(b.type==CKEDITOR.NODE_TEXT){var g=CKEDITOR.tools.ltrim(b.getText()),d=b.getLength();if(g)g.length<d&&(b.split(d-g.length),this.$.removeChild(this.$.firstChild));else{b.remove();continue}}break}},rtrim:function(){for(var b;this.getLast&&(b=this.getLast());){if(b.type==CKEDITOR.NODE_TEXT){var g=CKEDITOR.tools.rtrim(b.getText()),
d=b.getLength();if(g)g.length<d&&(b.split(g.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{b.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(b=this.$.lastChild)&&1==b.type&&"br"==b.nodeName.toLowerCase()&&b.parentNode.removeChild(b)},isReadOnly:function(b){var g=this;this.type!=CKEDITOR.NODE_ELEMENT&&(g=this.getParent());CKEDITOR.env.edge&&g&&g.is("textarea","input")&&(b=!0);if(!b&&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(b){CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject;CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var b=this.$.document,g="CSS1Compat"==b.compatMode;return{width:(g?b.documentElement.clientWidth:b.body.clientWidth)||
0,height:(g?b.documentElement.clientHeight:b.body.clientHeight)||0}},getScrollPosition:function(){var b=this.$;if("pageXOffset"in b)return{x:b.pageXOffset||0,y:b.pageYOffset||0};b=b.document;return{x:b.documentElement.scrollLeft||b.body.scrollLeft||0,y:b.documentElement.scrollTop||b.body.scrollTop||0}},getFrame:function(){var b=this.$.frameElement;return b?new CKEDITOR.dom.element.get(b):null}});CKEDITOR.dom.document=function(b){CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.document.prototype=
new CKEDITOR.dom.domObject;CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(b){if(this.$.createStyleSheet)this.$.createStyleSheet(b);else{var g=new CKEDITOR.dom.element("link");g.setAttributes({rel:"stylesheet",type:"text/css",href:b});this.getHead().append(g)}},appendStyleText:function(b){if(this.$.createStyleSheet){var g=this.$.createStyleSheet("");g.cssText=b}else{var d=new CKEDITOR.dom.element("style",this);d.append(new CKEDITOR.dom.text(b,
this));this.getHead().append(d)}return g||d.$.sheet},createElement:function(b,g){var d=new CKEDITOR.dom.element(b,this);g&&(g.attributes&&d.setAttributes(g.attributes),g.styles&&d.setStyles(g.styles));return d},createText:function(b){return new CKEDITOR.dom.text(b,this)},focus:function(){this.getWindow().focus()},getActive:function(){var b;try{b=this.$.activeElement}catch(g){return null}return new CKEDITOR.dom.element(b)},getById:function(b){return(b=this.$.getElementById(b))?new CKEDITOR.dom.element(b):
null},getByAddress:function(b,g){for(var d=this.$.documentElement,a=0;d&&a<b.length;a++){var f=b[a];if(g)for(var m=-1,k=0;k<d.childNodes.length;k++){var l=d.childNodes[k];if(!0!==g||3!=l.nodeType||!l.previousSibling||3!=l.previousSibling.nodeType)if(m++,m==f){d=l;break}}else d=d.childNodes[f]}return d?new CKEDITOR.dom.node(d):null},getElementsByTag:function(b,g){CKEDITOR.env.ie&&8>=document.documentMode||!g||(b=g+":"+b);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=
this.$.getElementsByTagName("head")[0];return b=b?new CKEDITOR.dom.element(b):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(b){this.$.open("text/html","replace");CKEDITOR.env.ie&&(b=b.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,
'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(b);this.$.close()},find:function(b){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b))},findOne:function(b){return(b=this.$.querySelector(b))?new CKEDITOR.dom.element(b):null},_getHtml5ShivFrag:function(){var b=this.getCustomData("html5ShivFrag");b||(b=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(b,!0),this.setCustomData("html5ShivFrag",b));return b}});CKEDITOR.dom.nodeList=
function(b){this.$=b};CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(b){return 0>b||b>=this.$.length?null:(b=this.$[b])?new CKEDITOR.dom.node(b):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(b){return new CKEDITOR.dom.node(b)})}};CKEDITOR.dom.element=function(b,g){"string"==typeof b&&(b=(g?g.$:document).createElement(b));CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.element.get=function(b){return(b="string"==typeof b?document.getElementById(b)||
document.getElementsByName(b)[0]:b)&&(b.$?b:new CKEDITOR.dom.element(b))};CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node;CKEDITOR.dom.element.createFromHtml=function(b,g){var d=new CKEDITOR.dom.element("div",g);d.setHtml(b);return d.getFirst().remove()};CKEDITOR.dom.element.setMarker=function(b,g,d,a){var f=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");b[f]=g;m[d]=1;return g.setCustomData(d,a)};CKEDITOR.dom.element.clearAllMarkers=function(b){for(var g in b)CKEDITOR.dom.element.clearMarkers(b,b[g],1)};CKEDITOR.dom.element.clearMarkers=function(b,g,d){var a=g.getCustomData("list_marker_names"),f=g.getCustomData("list_marker_id"),m;for(m in a)g.removeCustomData(m);g.removeCustomData("list_marker_names");d&&(g.removeCustomData("list_marker_id"),delete b[f])};(function(){function b(a,b){return-1<(" "+a+" ").replace(m,
" ").indexOf(" "+b+" ")}function g(a){var b=!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),b=!1);return function(){b||a.removeAttribute("id")}}function d(a,b){var c=CKEDITOR.tools.escapeCss(a.$.id);return"#"+c+" "+b.split(/,\s*/).join(", #"+c+" ")}function a(a){for(var b=0,c=0,h=k[a].length;c<h;c++)b+=parseFloat(this.getComputedStyle(k[a][c])||0,10)||0;return b}var f=document.createElement("_").classList,f="undefined"!==typeof f&&null!==String(f.add).match(/\[Native code\]/gi),m=/[\n\t\r]/g;
CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:f?function(a){this.$.classList.add(a);return this}:function(a){var e=this.$.className;e&&(b(e,a)||(e+=" "+a));this.$.className=e||a;return this},removeClass:f?function(a){var b=this.$;b.classList.remove(a);b.className||b.removeAttribute("class");return this}:function(a){var e=this.getAttribute("class");e&&b(e,a)&&((e=e.replace(new RegExp("(?:^|\\s+)"+a+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",
e):this.removeAttribute("class"));return this},hasClass:function(a){return b(this.$.className,a)},append:function(a,b){"string"==typeof a&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?
this.$.text+=a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();a&&a.is&&a.is("br")||(a=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&a.setAttribute("type","_moz"),this.append(a))}},breakParent:function(a,b){var c=new CKEDITOR.dom.range(this.getDocument());c.setStartAfter(this);c.setEndAfter(a);var h=c.extractContents(!1,b||!1),f;c.insertNode(this.remove());
if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(c=new CKEDITOR.dom.element("div");f=h.getFirst();)f.$.style.backgroundColor&&(f.$.style.backgroundColor=f.$.style.backgroundColor),c.append(f);c.insertAfter(this);c.remove(!0)}else h.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&16)}:function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(b){}}
return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(!0));return a.innerHTML},getClientRect:function(a){var b=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!b.width&&(b.width=b.right-b.left);!b.height&&
(b.height=b.bottom-b.top);return a?CKEDITOR.tools.getAbsoluteRectPosition(this.getWindow(),b):b},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var c=this.getDocument()._getHtml5ShivFrag();c.appendChild(b);b.innerHTML=a;c.removeChild(b);return a}catch(h){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));return a}}:function(a){return this.$.innerHTML=
a},setText:function(){var a=document.createElement("p");a.innerHTML="x";a=a.textContent;return function(b){this.$[a?"textContent":"innerText"]=b}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":return a=this.$.getAttribute(a,2),0!==a&&0===this.$.tabIndex&&(a=null),
a;case "checked":return a=this.$.attributes.getNamedItem(a),(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getAttributes:function(a){var b={},c=this.$.attributes,h;a=CKEDITOR.tools.isArray(a)?a:[];for(h=0;h<c.length;h++)-1===
CKEDITOR.tools.indexOf(a,c[h].name)&&(b[c[h].name]=c[h].value);return b},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getClientSize:function(){return{width:this.$.clientWidth,height:this.$.clientHeight}},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var b=this.getWindow().$.getComputedStyle(this.$,null);return b?b.getPropertyValue(a):""}:function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]},getDtd:function(){var a=
CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var a=this.$.tabIndex;return 0!==a||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?a:-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 a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var b=this.$.scopeName;"HTML"!=b&&(a=b.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},
is:function(){var a=this.getName();if("object"==typeof arguments[0])return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return!0;return!1},isEditable:function(a){var b=this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==a?(a=CKEDITOR.dtd[b]||
CKEDITOR.dtd.span,!(!a||!a["#"])):!0},isIdentical:function(a){var b=this.clone(0,1);a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode)return b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText),a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText),b.$.isEqualNode(a.$);b=b.getOuterHtml();a=
a.getOuterHtml();if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var c=this.getParent();c.type==CKEDITOR.NODE_ELEMENT&&(c=c.clone(),c.setHtml(b),b=c.getHtml(),c.setHtml(a),a=c.getHtml())}return b==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),b,c;a&&CKEDITOR.env.webkit&&(b=this.getWindow(),!b.equals(CKEDITOR.document.getWindow())&&(c=b.$.frameElement)&&(a=(new CKEDITOR.dom.element(c)).isVisible()));return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;
for(var a=this.getChildren(),b=0,c=a.count();b<c;b++){var h=a.getItem(b);if(h.type!=CKEDITOR.NODE_ELEMENT||!h.data("cke-bookmark"))if(h.type==CKEDITOR.NODE_ELEMENT&&!h.isEmptyInlineRemoveable()||h.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(h.getText()))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,b=0;b<a.length;b++){var c=a[b];switch(c.nodeName){case "class":if(this.getAttribute("class"))return!0;case "data-cke-expando":continue;
default:if(c.specified)return!0}}return!1}:function(){var a=this.$.attributes,b=a.length,c={"data-cke-expando":1,_moz_dirty:1};return 0<b&&(2<b||!c[a[0].nodeName]||2==b&&!c[a[1].nodeName])},hasAttribute:function(){function a(b){var c=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 c?
c.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(b){return"name"==b?!!this.$.name:a.call(this,b)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var c=this.$;a=a.$;if(c!=a){var h;if(b)for(;h=c.lastChild;)a.insertBefore(c.removeChild(h),a.firstChild);else for(;h=c.firstChild;)a.appendChild(c.removeChild(h))}},mergeSiblings:function(){function a(b,c,h){if(c&&c.type==CKEDITOR.NODE_ELEMENT){for(var f=
[];c.data("cke-bookmark")||c.isEmptyInlineRemoveable();)if(f.push(c),c=h?c.getNext():c.getPrevious(),!c||c.type!=CKEDITOR.NODE_ELEMENT)return;if(b.isIdentical(c)){for(var d=h?b.getLast():b.getFirst();f.length;)f.shift().move(b,!h);c.moveChildren(b,!h);c.remove();d&&d.type==CKEDITOR.NODE_ELEMENT&&d.mergeSiblings()}}}return function(b){if(!1===b||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))a(this,this.getNext(),!0),a(this,this.getPrevious())}}(),show:function(){this.setStyles({display:"",
visibility:""})},setAttribute:function(){var a=function(a,b){this.$.setAttribute(a,b);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b,c){"class"==b?this.$.className=c:"style"==b?this.$.style.cssText=c:"tabindex"==b?this.$.tabIndex=c:"checked"==b?this.$.checked=c:"contenteditable"==b?a.call(this,"contentEditable",c):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,c){if("src"==b&&c.match(/^http:\/\//))try{a.apply(this,
arguments)}catch(h){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){"class"==a?a="className":"tabindex"==a?a="tabIndex":"contenteditable"==a&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=
0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a=a||this.getAttributes(),a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=this.$.style;if(b.removeProperty||"border"!=a&&"margin"!=a&&"padding"!=a)b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a)),this.$.style.cssText||this.removeAttribute("style");else{var c=["top","left","right","bottom"],h;"border"==a&&(h=["color","style","width"]);for(var b=[],f=0;f<c.length;f++)if(h)for(var d=
0;d<h.length;d++)b.push([a,c[f],h[d]].join("-"));else b.push([a,c[f]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}},setStyle:function(a,b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(a=Math.round(100*a),this.setStyle("filter",100<=a?"":"progid:DXImageTransform.Microsoft.Alpha(opacity\x3d"+a+")")):this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select",
"none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var a,b=this.getElementsByTag("*"),c=0,h=b.count();c<h;c++)a=b.getItem(c),a.setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var a=this;"html"!=a.getName();){if("static"!=a.getComputedStyle("position"))return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,c=0,h=this.getDocument(),f=h.getBody(),d="BackCompat"==h.$.compatMode;if(document.documentElement.getBoundingClientRect&&(CKEDITOR.env.ie?
8!==CKEDITOR.env.version:1)){var k=this.$.getBoundingClientRect(),g=h.$.documentElement,m=g.clientTop||f.$.clientTop||0,v=g.clientLeft||f.$.clientLeft||0,y=!0;CKEDITOR.env.ie&&(y=h.getDocumentElement().contains(this),h=h.getBody().contains(this),y=d&&h||!d&&y);y&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(b=f.$.scrollLeft||g.scrollLeft,c=f.$.scrollTop||g.scrollTop):(c=d?f.$:g,b=c.scrollLeft,c=c.scrollTop),b=k.left+b-v,c=k.top+c-m)}else for(m=this,v=null;m&&"body"!=m.getName()&&
"html"!=m.getName();){b+=m.$.offsetLeft-m.$.scrollLeft;c+=m.$.offsetTop-m.$.scrollTop;m.equals(this)||(b+=m.$.clientLeft||0,c+=m.$.clientTop||0);for(;v&&!v.equals(m);)b-=v.$.scrollLeft,c-=v.$.scrollTop,v=v.getParent();v=m;m=(k=m.$.offsetParent)?new CKEDITOR.dom.element(k):null}a&&(k=this.getWindow(),m=a.getWindow(),!k.equals(m)&&k.$.frameElement&&(a=(new CKEDITOR.dom.element(k.$.frameElement)).getDocumentPosition(a),b+=a.x,c+=a.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||
d||(b+=this.$.clientLeft?1:0,c+=this.$.clientTop?1:0);return{x:b,y:c}},scrollIntoView:function(a){var b=this.getParent();if(b){do if((b.$.clientWidth&&b.$.clientWidth<b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1),b.is("html")){var c=b.getWindow();try{var h=c.$.frameElement;h&&(b=new CKEDITOR.dom.element(h))}catch(f){}}while(b=b.getParent())}},scrollIntoParent:function(a,b,c){var h,f,d,k;function m(b,h){/body|html/.test(a.getName())?
a.getWindow().$.scrollBy(b,h):(a.$.scrollLeft+=b,a.$.scrollTop+=h)}function g(a,b){var h={x:0,y:0};if(!a.is(y?"body":"html")){var e=a.$.getBoundingClientRect();h.x=e.left;h.y=e.top}e=a.getWindow();e.equals(b)||(e=g(CKEDITOR.dom.element.get(e.$.frameElement),b),h.x+=e.x,h.y+=e.y);return h}function v(a,b){return parseInt(a.getComputedStyle("margin-"+b)||0,10)||0}!a&&(a=this.getWindow());d=a.getDocument();var y="BackCompat"==d.$.compatMode;a instanceof CKEDITOR.dom.window&&(a=y?d.getBody():d.getDocumentElement());
CKEDITOR.env.webkit&&(d=this.getEditor(!1))&&(d._.previousScrollTop=null);d=a.getWindow();f=g(this,d);var q=g(a,d),B=this.$.offsetHeight;h=this.$.offsetWidth;var w=a.$.clientHeight,z=a.$.clientWidth;d=f.x-v(this,"left")-q.x||0;k=f.y-v(this,"top")-q.y||0;h=f.x+h+v(this,"right")-(q.x+z)||0;f=f.y+B+v(this,"bottom")-(q.y+w)||0;(0>k||0<f)&&m(0,!0===b?k:!1===b?f:0>k?k:f);c&&(0>d||0<h)&&m(0>d?d:h,0)},setState:function(a,b,c){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+
"_off");this.removeClass(b+"_disabled");c&&this.setAttribute("aria-pressed",!0);c&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");c&&this.setAttribute("aria-disabled",!0);c&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off"),this.removeClass(b+"_on"),this.removeClass(b+"_disabled"),c&&this.removeAttribute("aria-pressed"),c&&this.removeAttribute("aria-disabled")}},
getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,b){var c=this.$.attributes;b=b||{};for(var h=0;h<c.length;h++){var f=c[h],d=f.nodeName.toLowerCase(),k;if(!(d in b))if("checked"==d&&(k=this.getAttribute(d)))a.setAttribute(d,k);else if(!CKEDITOR.env.ie||this.hasAttribute(d))k=this.getAttribute(d),null===k&&(k=f.nodeValue),a.setAttribute(d,k)}""!==this.$.style.cssText&&
(a.$.style.cssText=this.$.style.cssText)},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument();a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);this.moveChildren(a);this.getParent(!0)&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,c){var h=b.childNodes;if(0<=c&&c<h.length)return h[c]}return function(b){var c=this.$;if(b.slice)for(b=b.slice();0<b.length&&c;)c=a(c,
b.shift());else c=a(c,b);return c?new CKEDITOR.dom.node(c):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(b){b.data.getTarget().getAscendant(a,!0)||b.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||
"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(void 0===b)return this.getAttribute(a);!1===b?this.removeAttribute(a):this.setAttribute(a,b);return null},getEditor:function(a){var b=CKEDITOR.instances,c,h,f;a=a||void 0===a;for(c in b)if(h=b[c],h.element.equals(this)&&h.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!a&&(f=h.editable())&&(f.equals(this)||f.contains(this)))return h;return null},find:function(a){var b=g(this);a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(d(this,
a)));b();return a},findOne:function(a){var b=g(this);a=this.$.querySelector(d(this,a));b();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,c){if(!(c||b&&this.type!=b))var h=a(this);if(!1!==h){c=this.getChildren();for(var f=0;f<c.count();f++)h=c.getItem(f),h.type==CKEDITOR.NODE_ELEMENT?h.forEach(a,b):b&&h.type!=b||a(h)}},fireEventHandler:function(a,b){var c="on"+a,h=this.$;if(CKEDITOR.env.ie&&9>CKEDITOR.env.version){var f=h.ownerDocument.createEventObject(),d;for(d in b)f[d]=b[d];h.fireEvent(c,
f)}else h[h[a]?a:c](b)},isDetached:function(){var a=this.getDocument(),b=a.getDocumentElement();return b.equals(this)||b.contains(this)?!CKEDITOR.env.ie||8<CKEDITOR.env.version&&!CKEDITOR.env.quirks?!a.$.defaultView:!1:!0}});var k={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,e,c){"number"==typeof e&&(!c||CKEDITOR.env.ie&&CKEDITOR.env.quirks||
(e-=a.call(this,b)),this.setStyle(b,e+"px"))};CKEDITOR.dom.element.prototype.getSize=function(b,e){var c=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(b)],this.$["client"+CKEDITOR.tools.capitalize(b)])||0;e&&(c-=a.call(this,b));return c}})();CKEDITOR.dom.documentFragment=function(b){b=b||CKEDITOR.document;this.$=b.type==CKEDITOR.NODE_DOCUMENT?b.$.createDocumentFragment():b};CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,
insertAfterNode:function(b){b=b.$;b.parentNode.insertBefore(this.$,b.nextSibling)},getHtml:function(){var b=new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(b);return b.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});CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,
CKEDITOR.dom.document.prototype,!0,{find:1,findOne:1});(function(){function b(a,b){var h=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(h.collapsed)return this.end(),null;h.optimize()}var c,e=h.startContainer;c=h.endContainer;var f=h.startOffset,d=h.endOffset,k,m=this.guard,g=this.type,n=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var l=c.type==CKEDITOR.NODE_ELEMENT?c:c.getParent(),D=c.type==CKEDITOR.NODE_ELEMENT?c.getChild(d):c.getNext();this._.guardLTR=
function(a,b){return(!b||!l.equals(a))&&(!D||!a.equals(D))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(h.root))}}if(a&&!this._.guardRTL){var F=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),G=e.type==CKEDITOR.NODE_ELEMENT?f?e.getChild(f-1):null:e.getPrevious();this._.guardRTL=function(a,b){return(!b||!F.equals(a))&&(!G||!a.equals(G))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(h.root))}}var I=a?this._.guardRTL:this._.guardLTR;k=m?function(a,b){return!1===I(a,b)?!1:m(a,b)}:I;this.current?c=this.current[n](!1,
g,k):(a?c.type==CKEDITOR.NODE_ELEMENT&&(c=0<d?c.getChild(d-1):!1===k(c,!0)?null:c.getPreviousSourceNode(!0,g,k)):(c=e,c.type==CKEDITOR.NODE_ELEMENT&&((c=c.getChild(f))||(c=!1===k(e,!0)?null:e.getNextSourceNode(!0,g,k)))),c&&!1===k(c)&&(c=null));for(;c&&!this._.end;){this.current=c;if(!this.evaluator||!1!==this.evaluator(c)){if(!b)return c}else if(b&&this.evaluator)return!1;c=c[n](!1,g,k)}this.end();return this.current=null}function g(a){for(var h,c=null;h=b.call(this,a);)c=h;return c}CKEDITOR.dom.walker=
CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return b.call(this)},previous:function(){return b.call(this,1)},checkForward:function(){return!1!==b.call(this,0,1)},checkBackward:function(){return!1!==b.call(this,1,1)},lastForward:function(){return g.call(this)},lastBackward:function(){return g.call(this,1)},reset:function(){delete this.current;this._={}}}});var d={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},a={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(b){return"none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in a||!d[this.getComputedStyle("display")]?!!(this.is(CKEDITOR.dtd.$block)||b&&this.is(b)):!0};CKEDITOR.dom.walker.blockBoundary=function(a){return function(b){return!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=
function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,b){function h(a){return a&&a.getName&&"span"==a.getName()&&a.data("cke-bookmark")}return function(c){var e,f;e=c&&c.type!=CKEDITOR.NODE_ELEMENT&&(f=c.getParent())&&h(f);e=a?e:e||h(c);return!!(b^e)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var h;b&&b.type==CKEDITOR.NODE_TEXT&&(h=!CKEDITOR.tools.trim(b.getText())||CKEDITOR.env.webkit&&b.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE);
return!!(a^h)}};CKEDITOR.dom.walker.invisible=function(a){var b=CKEDITOR.dom.walker.whitespaces(),h=CKEDITOR.env.webkit?1:0;return function(c){b(c)?c=1:(c.type==CKEDITOR.NODE_TEXT&&(c=c.getParent()),c=c.$.offsetWidth<=h);return!!(a^c)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(h){return!!(b^h.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function b(a){return!m(a)&&!k(a)}return function(h){var c=CKEDITOR.env.needsBrFiller?h.is&&h.is("br"):h.getText&&f.test(h.getText());c&&(c=h.getParent(),
h=h.getNext(b),c=c.isBlockBoundary()&&(!h||h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary()));return!!(a^c)}};CKEDITOR.dom.walker.temp=function(a){return function(b){b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b=b&&b.hasAttribute("data-cke-temp");return!!(a^b)}};var f=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,m=CKEDITOR.dom.walker.whitespaces(),k=CKEDITOR.dom.walker.bookmark(),l=CKEDITOR.dom.walker.temp(),e=function(a){return k(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(b){b=m(b)||k(b)||l(b);return!!(a^b)}};var c=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(b){for(var h=0,e=b.getChildCount();h<e;++h)if(!c(b.getChild(h)))return!!a;return!a}};var h=CKEDITOR.dom.walker.empty(),n=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var b={},h;for(h in a)CKEDITOR.dtd[h]["#"]&&(b[h]=1);return b}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=
function(a){return function(b){b=c(b)?!1:b.type==CKEDITOR.NODE_TEXT||b.type==CKEDITOR.NODE_ELEMENT&&(b.is(CKEDITOR.dtd.$inline)||b.is("hr")||"false"==b.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&b.is(n)&&h(b))?!0:!1;return!!(a^b)}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(e(a));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&f.test(a.getText()))?a:!1}})();CKEDITOR.dom.range=function(b){this.endOffset=this.endContainer=
this.startOffset=this.startContainer=null;this.collapsed=!0;var g=b instanceof CKEDITOR.dom.document;this.document=g?b:b.getDocument();this.root=g?b.getBody():b};(function(){function b(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset}function g(a,b,c,e,f){function d(a,b,h,c){var e=h?a.getPrevious():a.getNext();if(c&&g)return e;w||c?b.append(a.clone(!0,f),h):(a.remove(),l&&b.append(a,h));return e}function k(){var a,b,h,c=Math.min(J.length,
L.length);for(a=0;a<c;a++)if(b=J[a],h=L[a],!b.equals(h))return a;return a-1}function m(){var b=Q-1,c=I&&M&&!z.equals(A);b<N-1||b<K-1||c?(c?a.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START):K==b+1&&G?a.moveToPosition(L[b],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(L[b+1],CKEDITOR.POSITION_BEFORE_START),e&&(b=J[b+1])&&b.type==CKEDITOR.NODE_ELEMENT&&(c=CKEDITOR.dom.element.createFromHtml('\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e',a.document),c.insertAfter(b),
b.mergeSiblings(!1),a.moveToBookmark({startNode:c}))):a.collapse(!0)}a.optimizeBookmark();var g=0===b,l=1==b,w=2==b;b=w||l;var z=a.startContainer,A=a.endContainer,C=a.startOffset,D=a.endOffset,F,G,I,M,E,R;if(w&&A.type==CKEDITOR.NODE_TEXT&&(z.equals(A)||z.type===CKEDITOR.NODE_ELEMENT&&z.getFirst().equals(A)))c.append(a.document.createText(A.substring(C,D)));else{A.type==CKEDITOR.NODE_TEXT?w?R=!0:A=A.split(D):0<A.getChildCount()?D>=A.getChildCount()?(A=A.getChild(D-1),G=!0):A=A.getChild(D):M=G=!0;z.type==
CKEDITOR.NODE_TEXT?w?E=!0:z.split(C):0<z.getChildCount()?0===C?(z=z.getChild(C),F=!0):z=z.getChild(C-1):I=F=!0;for(var J=z.getParents(),L=A.getParents(),Q=k(),N=J.length-1,K=L.length-1,O=c,Y,U,Z,ia=-1,X=Q;X<=N;X++){U=J[X];Z=U.getNext();for(X!=N||U.equals(L[X])&&N<K?b&&(Y=O.append(U.clone(0,f))):F?d(U,O,!1,I):E&&O.append(a.document.createText(U.substring(C)));Z;){if(Z.equals(L[X])){ia=X;break}Z=d(Z,O)}O=Y}O=c;for(X=Q;X<=K;X++)if(c=L[X],Z=c.getPrevious(),c.equals(J[X]))b&&(O=O.getChild(0));else{X!=
K||c.equals(J[X])&&K<N?b&&(Y=O.append(c.clone(0,f))):G?d(c,O,!1,M):R&&O.append(a.document.createText(c.substring(0,D)));if(X>ia)for(;Z;)Z=d(Z,O,!0);O=Y}w||m()}}function d(){var a=!1,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!0),e=CKEDITOR.dom.walker.bogus();return function(f){return c(f)||b(f)?!0:e(f)&&!a?a=!0:f.type==CKEDITOR.NODE_TEXT&&(f.hasAscendant("pre")||CKEDITOR.tools.trim(f.getText()).length)||f.type==CKEDITOR.NODE_ELEMENT&&!f.is(m)?!1:!0}}function a(a){var b=CKEDITOR.dom.walker.whitespaces(),
c=CKEDITOR.dom.walker.bookmark(1);return function(e){return c(e)||b(e)?!0:!a&&k(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty)}}function f(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&c(a)&&(b=a);return e(a)&&!(k(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},k=CKEDITOR.dom.walker.bogus(),
l=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,e=CKEDITOR.dom.walker.editable(),c=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 b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||g(this,2,b,!1,"undefined"==typeof a?!0:a);return b},deleteContents:function(a){this.collapsed||g(this,0,null,a)},extractContents:function(a,b){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||g(this,1,c,a,"undefined"==typeof b?!0:b);return c},equals:function(a){return this.startOffset===a.startOffset&&this.endOffset===a.endOffset&&
this.startContainer.equals(a.startContainer)&&this.endContainer.equals(a.endContainer)},createBookmark:function(a){function b(a){return a.getAscendant(function(a){var b;if(b=a.data&&a.data("cke-temp"))b=-1===CKEDITOR.tools.array.indexOf(["cke_copybin","cke_pastebin"],a.getAttribute("id"));return b},!0)}var c=this.startContainer,e=this.endContainer,f=this.collapsed,d,k,m,g;d=this.document.createElement("span");d.data("cke-bookmark",1);d.setStyle("display","none");d.setHtml("\x26nbsp;");a&&(m="cke_bm_"+
CKEDITOR.tools.getNextNumber(),d.setAttribute("id",m+(f?"C":"S")));f||(k=d.clone(),k.setHtml("\x26nbsp;"),a&&k.setAttribute("id",m+"E"),g=this.clone(),b(e)&&(e=b(e),g.moveToPosition(e,CKEDITOR.POSITION_AFTER_END)),g.collapse(),g.insertNode(k));g=this.clone();b(c)&&(e=b(c),g.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START));g.collapse(!0);g.insertNode(d);k?(this.setStartAfter(d),this.setEndBefore(k)):this.moveToPosition(d,CKEDITOR.POSITION_AFTER_END);return{startNode:a?m+(f?"C":"S"):d,endNode:a?m+
"E":k,serializable:a,collapsed:f}},createBookmark2:function(){function a(b){var h=b.container,e=b.offset,f;f=h;var d=e;f=f.type!=CKEDITOR.NODE_ELEMENT||0===d||d==f.getChildCount()?0:f.getChild(d-1).type==CKEDITOR.NODE_TEXT&&f.getChild(d).type==CKEDITOR.NODE_TEXT;f&&(h=h.getChild(e-1),e=h.getLength());if(h.type==CKEDITOR.NODE_ELEMENT&&0<e){a:{for(f=h;e--;)if(d=f.getChild(e).getIndex(!0),0<=d){e=d;break a}e=-1}e+=1}if(h.type==CKEDITOR.NODE_TEXT){f=h;for(d=0;(f=f.getPrevious())&&f.type==CKEDITOR.NODE_TEXT;)d+=
f.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;f=d;h.isEmpty()?(d=h.getPrevious(c),f?(e=f,h=d?d.getNext():h.getParent().getFirst()):(h=h.getParent(),e=d?d.getIndex(!0)+1:0)):e+=f}b.container=h;b.offset=e}function b(a,h){var c=h.getCustomData("cke-fillingChar");if(c){var e=a.container;c.equals(e)&&(a.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=a.offset&&(a.offset=e.getIndex(),a.container=e.getParent()))}}var c=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,
!0);return function(c){var e=this.collapsed,f={container:this.startContainer,offset:this.startOffset},d={container:this.endContainer,offset:this.endOffset};c&&(a(f),b(f,this.root),e||(a(d),b(d,this.root)));return{start:f.container.getAddress(c),end:e?null:d.container.getAddress(c),startOffset:f.offset,endOffset:d.offset,normalized:c,collapsed:e,is2:!0}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,e=a.end&&this.document.getByAddress(a.end,
a.normalized);a=a.endOffset;this.setStart(b,c);e?this.setEnd(e,a):this.collapse(!0)}else b=(c=a.serializable)?this.document.getById(a.startNode):a.startNode,a=c?this.document.getById(a.endNode):a.endNode,this.setStartBefore(b),b.remove(),a?(this.setEndBefore(a),a.remove()):this.collapse(!0)},getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,c=this.startOffset,e=this.endOffset,f;if(a.type==CKEDITOR.NODE_ELEMENT)if(f=a.getChildCount(),f>c)a=a.getChild(c);else if(1>f)a=a.getPreviousSourceNode();
else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}if(b.type==CKEDITOR.NODE_ELEMENT)if(f=b.getChildCount(),f>e)b=b.getChild(e).getPreviousSourceNode(!0);else if(1>f)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b)}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var c=this.startContainer,e=this.endContainer,c=c.equals(e)?a&&c.type==CKEDITOR.NODE_ELEMENT&&
this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(e);return b&&!c.is?c.getParent():c},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&a.is("span")&&
a.data("cke-bookmark")&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&b.is&&b.is("span")&&b.data("cke-bookmark")&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var c=this.startContainer,e=this.startOffset,f=this.collapsed;if((!a||f)&&c&&c.type==CKEDITOR.NODE_TEXT){if(e)if(e>=c.getLength())e=c.getIndex()+1,c=c.getParent();else{var d=c.split(e),e=c.getIndex()+1,c=c.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(d,this.endOffset-this.startOffset):c.equals(this.endContainer)&&
(this.endOffset+=1)}else e=c.getIndex(),c=c.getParent();this.setStart(c,e);if(f){this.collapse(!0);return}}c=this.endContainer;e=this.endOffset;b||f||!c||c.type!=CKEDITOR.NODE_TEXT||(e?(e>=c.getLength()||c.split(e),e=c.getIndex()+1):e=c.getIndex(),c=c.getParent(),this.setEnd(c,e))},enlarge:function(a,b){function c(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 f=1;case CKEDITOR.ENLARGE_ELEMENT:var d=
function(a,b){var h=new CKEDITOR.dom.range(m);h.setStart(a,b);h.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);var h=new CKEDITOR.dom.walker(h),c;for(h.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};c=h.next();){if(c.type!=CKEDITOR.NODE_TEXT)return!1;F=c!=a?c.getText():c.substring(b);if(e.test(F))return!1}return!0};if(this.collapsed)break;var k=this.getCommonAncestor(),m=this.root,g,l,w,z,A,C=!1,D,F;D=this.startContainer;var G=this.startOffset;D.type==CKEDITOR.NODE_TEXT?
(G&&(D=!CKEDITOR.tools.trim(D.substring(0,G)).length&&D,C=!!D),D&&((z=D.getPrevious())||(w=D.getParent()))):(G&&(z=D.getChild(G-1)||D.getLast()),z||(w=D));for(w=c(w);w||z;){if(w&&!z){!A&&w.equals(k)&&(A=!0);if(f?w.isBlockBoundary():!m.contains(w))break;C&&"inline"==w.getComputedStyle("display")||(C=!1,A?g=w:this.setStartBefore(w));z=w.getPrevious()}for(;z;)if(D=!1,z.type==CKEDITOR.NODE_COMMENT)z=z.getPrevious();else{if(z.type==CKEDITOR.NODE_TEXT)F=z.getText(),e.test(F)&&(z=null),D=/[\s\ufeff]$/.test(F);
else if((z.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||b&&z.is("br"))&&!z.data("cke-bookmark"))if(C&&CKEDITOR.dtd.$removeEmpty[z.getName()]){F=z.getText();if(e.test(F))z=null;else for(var G=z.$.getElementsByTagName("*"),I=0,M;M=G[I++];)if(!CKEDITOR.dtd.$removeEmpty[M.nodeName.toLowerCase()]){z=null;break}z&&(D=!!F.length)}else z=null;D&&(C?A?g=w:w&&this.setStartBefore(w):C=!0);if(z){D=z.getPrevious();if(!w&&!D){w=z;z=null;break}z=D}else w=null}w&&(w=c(w.getParent()))}D=this.endContainer;G=this.endOffset;
w=z=null;A=C=!1;D.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(D.substring(G)).length?C=!0:(C=!D.getLength(),G==D.getLength()?(z=D.getNext())||(w=D.getParent()):d(D,G)&&(w=D.getParent())):(z=D.getChild(G))||(w=D);for(;w||z;){if(w&&!z){!A&&w.equals(k)&&(A=!0);if(f?w.isBlockBoundary():!m.contains(w))break;C&&"inline"==w.getComputedStyle("display")||(C=!1,A?l=w:w&&this.setEndAfter(w));z=w.getNext()}for(;z;){D=!1;if(z.type==CKEDITOR.NODE_TEXT)F=z.getText(),d(z,0)||(z=null),D=/^[\s\ufeff]/.test(F);else if(z.type==
CKEDITOR.NODE_ELEMENT){if((0<z.$.offsetWidth||b&&z.is("br"))&&!z.data("cke-bookmark"))if(C&&CKEDITOR.dtd.$removeEmpty[z.getName()]){F=z.getText();if(e.test(F))z=null;else for(G=z.$.getElementsByTagName("*"),I=0;M=G[I++];)if(!CKEDITOR.dtd.$removeEmpty[M.nodeName.toLowerCase()]){z=null;break}z&&(D=!!F.length)}else z=null}else D=1;D&&C&&(A?l=w:this.setEndAfter(w));if(z){D=z.getNext();if(!w&&!D){w=z;z=null;break}z=D}else w=null}w&&(w=c(w.getParent()))}g&&l&&(k=g.contains(l)?l:g,this.setStartBefore(k),
this.setEndAfter(k));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:w=new CKEDITOR.dom.range(this.root);m=this.root;w.setStartAt(m,CKEDITOR.POSITION_AFTER_START);w.setEnd(this.startContainer,this.startOffset);w=new CKEDITOR.dom.walker(w);var E,R,J=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),L=null,Q=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&"false"==a.getAttribute("contenteditable"))if(L){if(L.equals(a)){L=null;return}}else L=
a;else if(L)return;var b=J(a);b||(E=a);return b},f=function(a){var b=Q(a);!b&&a.is&&a.is("br")&&(R=a);return b};w.guard=Q;w=w.lastBackward();E=E||m;this.setStartAt(E,!E.is("br")&&(!w&&this.checkStartOfBlock()||w&&E.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(),K=CKEDITOR.dom.walker.bookmark();w.evaluator=function(a){return!N(a)&&!K(a)};if((w=w.previous())&&
w.type==CKEDITOR.NODE_ELEMENT&&w.is("br"))break}w=this.clone();w.collapse();w.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);w=new CKEDITOR.dom.walker(w);w.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?f:Q;E=L=R=null;w=w.lastForward();E=E||m;this.setEndAt(E,!w&&this.checkEndOfBlock()||w&&E.contains(w)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);R&&this.setEndAfter(R)}},shrink:function(a,b,c){var e="boolean"===typeof c?c:c&&"boolean"===typeof c.shrinkOnBlockBoundary?c.shrinkOnBlockBoundary:
!0,f=c&&c.skipBogus;if(!this.collapsed){a=a||CKEDITOR.SHRINK_TEXT;var d=this.clone(),k=this.startContainer,m=this.endContainer,g=this.startOffset,l=this.endOffset,w=c=1;k&&k.type==CKEDITOR.NODE_TEXT&&(g?g>=k.getLength()?d.setStartAfter(k):(d.setStartBefore(k),c=0):d.setStartBefore(k));m&&m.type==CKEDITOR.NODE_TEXT&&(l?l>=m.getLength()?d.setEndAfter(m):(d.setEndAfter(m),w=0):d.setEndBefore(m));var d=new CKEDITOR.dom.walker(d),z=CKEDITOR.dom.walker.bookmark(),A=CKEDITOR.dom.walker.bogus();d.evaluator=
function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var C;d.guard=function(b,c){if(f&&A(b)||z(b))return!0;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||c&&b.equals(C)||!1===e&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return!1;c||b.type!=CKEDITOR.NODE_ELEMENT||(C=b);return!0};c&&(k=d[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(k,b?CKEDITOR.POSITION_AFTER_START:
CKEDITOR.POSITION_BEFORE_START);w&&(d.reset(),(d=d[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(d,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!c&&!w)}},insertNode:function(a){this.optimizeBookmark();this.trim(!1,!0);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,
b);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,c){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(c=a.getIndex(),a=a.getParent());this._setStartContainer(a);this.startOffset=c;this.endContainer||(this._setEndContainer(a),this.endOffset=c);b(this)},setEnd:function(a,
c){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(c=a.getIndex()+1,a=a.getParent());this._setEndContainer(a);this.endOffset=c;this.startContainer||(this._setStartContainer(a),this.startOffset=c);b(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,
c){switch(c){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)}b(this)},setEndAt:function(a,c){switch(c){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)}b(this)},fixBlock:function(a,b){var c=this.createBookmark(),e=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(e);e.trim();this.insertNode(e);var f=e.getBogus();f&&f.remove();e.appendBogus();this.moveToBookmark(c);return e},splitBlock:function(a,b){var c=
new CKEDITOR.dom.elementPath(this.startContainer,this.root),e=new CKEDITOR.dom.elementPath(this.endContainer,this.root),f=c.block,d=e.block,k=null;if(!c.blockLimit.equals(e.blockLimit))return null;"br"!=a&&(f||(f=this.fixBlock(!0,a),d=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),d||(d=this.fixBlock(!1,a)));c=f&&this.checkStartOfBlock();e=d&&this.checkEndOfBlock();this.deleteContents();f&&f.equals(d)&&(e?(k=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(d,
CKEDITOR.POSITION_AFTER_END),d=null):c?(k=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),f=null):(d=this.splitElement(f,b||!1),f.is("ul","ol")||f.appendBogus()));return{previousBlock:f,nextBlock:d,wasStartOfBlock:c,wasEndOfBlock:e,elementPath:k}},splitElement:function(a,b){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var c=this.extractContents(!1,b||!1),e=a.clone(!1,b||!1);c.appendTo(e);e.insertAfter(a);
this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return e},removeEmptyBlocksAtEnd:function(){function a(h){return function(a){return b(a)||c(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable()||h.is("table")&&a.is("caption")?!1:!0}}var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!1);return function(b){for(var c=this.createBookmark(),e=this[b?"endPath":"startPath"](),f=e.block||e.blockLimit,d;f&&!f.equals(e.root)&&!f.getFirst(a(f));)d=f.getParent(),this[b?"setEndAt":
"setStartAt"](f,CKEDITOR.POSITION_AFTER_END),f.remove(1),f=d;this.moveToBookmark(c)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(b,c){var e=c==CKEDITOR.START,f=this.clone();f.collapse(e);f[e?"setStartAt":"setEndAt"](b,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);f=new CKEDITOR.dom.walker(f);f.evaluator=a(e);return f[e?
"checkBackward":"checkForward"]()},checkStartOfBlock:function(a){var b=this.startContainer,c=this.startOffset;CKEDITOR.env.ie&&c&&b.type==CKEDITOR.NODE_TEXT&&(b=CKEDITOR.tools.ltrim(b.substring(0,c)),l.test(b)&&this.trim(0,1));a||this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);b=this.clone();b.collapse(!0);b.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(b);a.evaluator=d();return a.checkBackward()},checkEndOfBlock:function(a){var b=
this.endContainer,c=this.endOffset;CKEDITOR.env.ie&&b.type==CKEDITOR.NODE_TEXT&&(b=CKEDITOR.tools.rtrim(b.substring(c)),l.test(b)&&this.trim(1,0));a||this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);b=this.clone();b.collapse(!1);b.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(b);a.evaluator=d();return a.checkForward()},getPreviousNode:function(a,b,c){var e=this.clone();e.collapse(1);e.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);
c=new CKEDITOR.dom.walker(e);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var e=this.clone();e.collapse();e.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(e);c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,h){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if("false"==b.getAttribute("contentEditable")&&!b.data("cke-editable"))return 0;if(b.is("html")||"true"==b.getAttribute("contentEditable")&&(b.contains(h)||b.equals(h)))break}b=
b.getParent()}return 1}return function(){var b=this.startContainer,c=this.endContainer;return!(a(b,c)&&a(c,b))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(!1))return this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var e=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&l.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:
CKEDITOR.POSITION_BEFORE_START);e=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable())this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),e=1;else if(b&&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,d=e,k=void 0;f.type==CKEDITOR.NODE_ELEMENT&&f.isEditable(!1)&&
(k=f[b?"getLast":"getFirst"](c));d||k||(k=f[b?"getPrevious":"getNext"](c));a=k}return!!e},moveToClosestEditablePosition:function(a,b){var c,e=0,f,d,k=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(c=new CKEDITOR.dom.range(this.root),c.moveToPosition(a,k[b?0:1])):c=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))e=1;else if(f=c[b?"getNextEditableNode":"getPreviousEditableNode"]())e=1,(d=f.type==CKEDITOR.NODE_ELEMENT)&&f.is(CKEDITOR.dtd.$block)&&"false"==f.getAttribute("contenteditable")?
(c.setStartAt(f,CKEDITOR.POSITION_BEFORE_START),c.setEndAt(f,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&d&&f.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(c.setEnd(f,0),c.collapse()):c.moveToPosition(f,k[b?1:0]);e&&this.moveToRange(c);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),b=CKEDITOR.dom.walker.bookmark(!1,!0),c=CKEDITOR.dom.walker.whitespaces(!0);a.evaluator=function(a){return c(a)&&b(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:f(),getPreviousEditableNode:f(1),_getTableElement:function(a){a=a||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var b=this.getTouchedStartNode(),c=this.getTouchedEndNode(),e=b.getAscendant("table",!0),c=c.getAscendant("table",!0);return e&&!this.root.contains(e)?null:this.getEnclosedNode()?this.getEnclosedNode().getAscendant(a,!0):e&&c&&(e.equals(c)||e.contains(c)||c.contains(e))?b.getAscendant(a,!0):null},scrollIntoView:function(){var a=
new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),b,c,e,f=this.clone();f.optimize();(e=f.startContainer.type==CKEDITOR.NODE_TEXT)?(c=f.startContainer.getText(),b=f.startContainer.split(f.startOffset),a.insertAfter(f.startContainer)):f.insertNode(a);a.scrollIntoView();e&&(f.startContainer.setText(c),b.remove());a.remove()},getClientRects:function(){function a(b,c){var h=CKEDITOR.tools.array.map(b,function(a){return a}),e=new CKEDITOR.dom.range(c.root),f,d,
k;c.startContainer instanceof CKEDITOR.dom.element&&(d=0===c.startOffset&&c.startContainer.hasAttribute("data-widget"));c.endContainer instanceof CKEDITOR.dom.element&&(k=(k=c.endOffset===(c.endContainer.getChildCount?c.endContainer.getChildCount():c.endContainer.length))&&c.endContainer.hasAttribute("data-widget"));d&&e.setStart(c.startContainer.getParent(),c.startContainer.getIndex());k&&e.setEnd(c.endContainer.getParent(),c.endContainer.getIndex()+1);if(d||k)c=e;e=c.cloneContents().find("[data-cke-widget-id]").toArray();
if(e=CKEDITOR.tools.array.map(e,function(a){var b=c.root.editor;a=a.getAttribute("data-cke-widget-id");return b.widgets.instances[a].element}))return e=CKEDITOR.tools.array.map(e,function(a){var b;b=a.getParent().hasClass("cke_widget_wrapper")?a.getParent():a;f=this.root.getDocument().$.createRange();f.setStart(b.getParent().$,b.getIndex());f.setEnd(b.getParent().$,b.getIndex()+1);b=f.getClientRects();b.widgetRect=a.getClientRect();return b},c),CKEDITOR.tools.array.forEach(e,function(a){function b(e){CKEDITOR.tools.array.forEach(h,
function(b,f){var d=CKEDITOR.tools.objectCompare(a[e],b);d||(d=CKEDITOR.tools.objectCompare(a.widgetRect,b));d&&(Array.prototype.splice.call(h,f,a.length-e,a.widgetRect),c=!0)});c||(e<h.length-1?b(e+1):h.push(a.widgetRect))}var c;b(0)}),h}function b(a,c,h){var f;c.collapsed?h.startContainer instanceof CKEDITOR.dom.element?(a=h.checkStartOfBlock(),f=new CKEDITOR.dom.text("​"),a?h.startContainer.append(f,!0):0===h.startOffset?f.insertBefore(h.startContainer.getFirst()):(h=h.startContainer.getChildren().getItem(h.startOffset-
1),f.insertAfter(h)),c.setStart(f.$,0),c.setEnd(f.$,0),a=c.getClientRects(),f.remove()):h.startContainer instanceof CKEDITOR.dom.text&&(""===h.startContainer.getText()?(h.startContainer.setText("​"),a=c.getClientRects(),h.startContainer.setText("")):a=[e(h.createBookmark())]):a=[e(h.createBookmark())];return a}function c(a,b,h){a=CKEDITOR.tools.extend({},a);b&&(a=CKEDITOR.tools.getAbsoluteRectPosition(h.document.getWindow(),a));!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);
return a}function e(a){var b=a.startNode;a=a.endNode;var c;b.setText("​");b.removeStyle("display");a?(a.setText("​"),a.removeStyle("display"),c=[b.getClientRect(),a.getClientRect()],a.remove()):c=[b.getClientRect(),b.getClientRect()];b.remove();return{right:Math.max(c[0].right,c[1].right),bottom:Math.max(c[0].bottom,c[1].bottom),left:Math.min(c[0].left,c[1].left),top:Math.min(c[0].top,c[1].top),width:Math.abs(c[0].left-c[1].left),height:Math.max(c[0].bottom,c[1].bottom)-Math.min(c[0].top,c[1].top)}}
return void 0!==this.document.getSelection?function(e){var f=this.root.getDocument().$.createRange(),d;f.setStart(this.startContainer.$,this.startOffset);f.setEnd(this.endContainer.$,this.endOffset);d=f.getClientRects();d=a(d,this);d.length||(d=b(d,f,this));return CKEDITOR.tools.array.map(d,function(a){return c(a,e,this)},this)}:function(a){return[c(e(this.createBookmark()),a,this)]}}(),_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a},_find:function(a,
b){var c=this.getCommonAncestor(),e=this.getBoundaryNodes(),f=[],d,k,m,g;if(c&&c.find)for(k=c.find(a),d=0;d<k.count();d++)if(c=k.getItem(d),b||!c.isReadOnly())m=c.getPosition(e.startNode)&CKEDITOR.POSITION_FOLLOWING||e.startNode.equals(c),g=c.getPosition(e.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED||e.endNode.equals(c),m&&g&&f.push(c);return f}};CKEDITOR.dom.range.mergeRanges=function(a){return CKEDITOR.tools.array.reduce(a,function(a,b){var c=a[a.length-1],h=!1;b=b.clone();
b.enlarge(CKEDITOR.ENLARGE_ELEMENT);if(c){var e=new CKEDITOR.dom.range(b.root),h=new CKEDITOR.dom.walker(e),f=CKEDITOR.dom.walker.whitespaces();e.setStart(c.endContainer,c.endOffset);e.setEnd(b.startContainer,b.startOffset);for(e=h.next();f(e)||b.endContainer.equals(e);)e=h.next();h=!e}h?c.setEnd(b.endContainer,b.endOffset):a.push(b);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 b(a){1>arguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function g(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return b}function d(a,b,e,f){a:{null==
f&&(f=g(e));for(var k;k=f.shift();)if(k.getDtd().p){f={element:k,remaining:f};break a}f=null}if(!f)return 0;if((k=CKEDITOR.filter.instances[f.element.data("cke-filter")])&&!k.check(b))return d(a,b,e,f.remaining);b=new CKEDITOR.dom.range(f.element);b.selectNodeContents(f.element);b=b.createIterator();b.enlargeBr=a.enlargeBr;b.enforceRealBlocks=a.enforceRealBlocks;b.activeFilter=b.filter=k;a._.nestedEditable={element:f.element,container:e,remaining:f.remaining,iterator:b};return 1}function a(a,b,e){if(!b)return!1;
a=a.clone();a.collapse(!e);return a.checkBoundaryOfElement(b,e?CKEDITOR.START:CKEDITOR.END)}var f=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0),l=function(a){return m(a)&&k(a)},e={dd:1,dt:1,li:1};b.prototype={getNextParagraph:function(b){var h,k,g,u,p;b=b||"p";if(this._.nestedEditable){if(h=this._.nestedEditable.iterator.getNextParagraph(b))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,h;this.activeFilter=this.filter;if(d(this,b,
this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(b);this._.nestedEditable=null}if(!this.range.root.getDtd()[b])return null;if(!this._.started){var t=this.range.clone();k=t.startPath();var v=t.endPath(),y=!t.collapsed&&a(t,k.block),q=!t.collapsed&&a(t,v.block,1);t.shrink(CKEDITOR.SHRINK_ELEMENT,!0);y&&t.setStartAt(k.block,CKEDITOR.POSITION_BEFORE_END);q&&t.setEndAt(v.block,
CKEDITOR.POSITION_AFTER_START);k=t.endContainer.hasAscendant("pre",!0)||t.startContainer.hasAscendant("pre",!0);t.enlarge(this.forceBrBreak&&!k||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);t.collapsed||(k=new CKEDITOR.dom.walker(t.clone()),v=CKEDITOR.dom.walker.bookmark(!0,!0),k.evaluator=v,this._.nextNode=k.next(),k=new CKEDITOR.dom.walker(t.clone()),k.evaluator=v,k=k.previous(),this._.lastNode=k.getNextSourceNode(!0,null,t.root),this._.lastNode&&this._.lastNode.type==
CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(v=this.range.clone(),v.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),v.checkEndOfBlock()&&(v=new CKEDITOR.dom.elementPath(v.endContainer,v.root),this._.lastNode=(v.block||v.blockLimit).getNextSourceNode(!0))),this._.lastNode&&t.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=t.document.createText(""),this._.lastNode.insertAfter(k)),t=null);this._.started=
1;k=t}v=this._.nextNode;t=this._.lastNode;for(this._.nextNode=null;v;){var y=0,q=v.hasAscendant("pre"),B=v.type!=CKEDITOR.NODE_ELEMENT,w=0;if(B)v.type==CKEDITOR.NODE_TEXT&&f.test(v.getText())&&(B=0);else{var z=v.getName();if(CKEDITOR.dtd.$block[z]&&"false"==v.getAttribute("contenteditable")){h=v;d(this,b,h);break}else if(v.isBlockBoundary(this.forceBrBreak&&!q&&{br:1})){if("br"==z)B=1;else if(!k&&!v.getChildCount()&&"hr"!=z){h=v;g=v.equals(t);break}k&&(k.setEndAt(v,CKEDITOR.POSITION_BEFORE_START),
"br"!=z&&(this._.nextNode=v));y=1}else{if(v.getFirst()){k||(k=this.range.clone(),k.setStartAt(v,CKEDITOR.POSITION_BEFORE_START));v=v.getFirst();continue}B=1}}B&&!k&&(k=this.range.clone(),k.setStartAt(v,CKEDITOR.POSITION_BEFORE_START));g=(!y||B)&&v.equals(t);if(k&&!y)for(;!v.getNext(l)&&!g;){z=v.getParent();if(z.isBlockBoundary(this.forceBrBreak&&!q&&{br:1})){y=1;B=0;g||z.equals(t);k.setEndAt(z,CKEDITOR.POSITION_BEFORE_END);break}v=z;B=1;g=v.equals(t);w=1}B&&k.setEndAt(v,CKEDITOR.POSITION_AFTER_END);
v=this._getNextSourceNode(v,w,t);if((g=!v)||y&&k)break}if(!h){if(!k)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;h=new CKEDITOR.dom.elementPath(k.startContainer,k.root);v=h.blockLimit;y={div:1,th:1,td:1};h=h.block;!h&&v&&!this.enforceRealBlocks&&y[v.getName()]&&k.checkStartOfBlock()&&k.checkEndOfBlock()&&!v.equals(k.root)?h=v:!h||this.enforceRealBlocks&&h.is(e)?(h=this.range.document.createElement(b),k.extractContents().appendTo(h),h.trim(),k.insertNode(h),u=p=!0):
"li"!=h.getName()?k.checkStartOfBlock()&&k.checkEndOfBlock()||(h=h.clone(!1),k.extractContents().appendTo(h),h.trim(),p=k.splitBlock(),u=!p.wasStartOfBlock,p=!p.wasEndOfBlock,k.insertNode(h)):g||(this._.nextNode=h.equals(t)?null:this._getNextSourceNode(k.getBoundaryNodes().endNode,1,t))}u&&(u=h.getPrevious())&&u.type==CKEDITOR.NODE_ELEMENT&&("br"==u.getName()?u.remove():u.getLast()&&"br"==u.getLast().$.nodeName.toLowerCase()&&u.getLast().remove());p&&(u=h.getLast())&&u.type==CKEDITOR.NODE_ELEMENT&&
"br"==u.getName()&&(!CKEDITOR.env.needsBrFiller||u.getPrevious(m)||u.getNext(m))&&u.remove();this._.nextNode||(this._.nextNode=g||h.equals(t)||!t?null:this._getNextSourceNode(h,1,t));return h},_getNextSourceNode:function(a,b,e){function f(a){return!(a.equals(e)||a.equals(d))}var d=this.range.root;for(a=a.getNextSourceNode(b,null,f);!m(a);)a=a.getNextSourceNode(b,null,f);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new b(this)}})();CKEDITOR.command=function(b,g){this.uiItems=
[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&b.focus();return!1===this.fire("exec")?!0:!1!==g.exec.call(this,b,a)};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!b.isContextFor(this.context)||!this.checkAllowed(!0))return this.disable(),!0;this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&this.disable();return!1===this.fire("refresh",{editor:a,path:b})?!0:g.refresh&&!1!==g.refresh.apply(this,
arguments)};var d;this.checkAllowed=function(a){return a||"boolean"!=typeof d?d=b.activeFilter.checkFeature(this):d};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(b){if(this.state==b||b!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=b;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 b(a,b,c,e,h){var f,d;a=[];for(f in b){d=b[f];d="boolean"==
typeof d?{}:"function"==typeof d?{match:d}:I(d);"$"!=f.charAt(0)&&(d.elements=f);c&&(d.featureName=c.toLowerCase());var g=d;g.elements=k(g.elements,/\s+/)||null;g.propertiesOnly=g.propertiesOnly||!0===g.elements;var m=/\s*,\s*/,l=void 0;for(l in R){g[l]=k(g[l],m)||null;var n=g,v=J[l],z=k(g[J[l]],m),r=g[l],K=[],A=!0,q=void 0;z?A=!1:z={};for(q in r)"!"==q.charAt(0)&&(q=q.slice(1),K.push(q),z[q]=!0,A=!1);for(;q=K.pop();)r[q]=r["!"+q],delete r["!"+q];n[v]=(A?!1:z)||null}g.match=g.match||null;e.push(d);
a.push(d)}b=h.elements;h=h.generic;var N;c=0;for(e=a.length;c<e;++c){f=I(a[c]);d=!0===f.classes||!0===f.styles||!0===f.attributes;g=f;l=v=m=void 0;for(m in R)g[m]=y(g[m]);n=!0;for(l in J){m=J[l];v=g[m];z=[];r=void 0;for(r in v)-1<r.indexOf("*")?z.push(new RegExp("^"+r.replace(/\*/g,".*")+"$")):z.push(r);v=z;v.length&&(g[m]=v,n=!1)}g.nothingRequired=n;g.noProperties=!(g.attributes||g.classes||g.styles);if(!0===f.elements||null===f.elements)h[d?"unshift":"push"](f);else for(N in g=f.elements,delete f.elements,
g)if(b[N])b[N][d?"unshift":"push"](f);else b[N]=[f]}}function g(a,b,c,e){if(!a.match||a.match(b))if(e||l(a,b))if(a.propertiesOnly||(c.valid=!0),c.allAttributes||(c.allAttributes=d(a.attributes,b.attributes,c.validAttributes)),c.allStyles||(c.allStyles=d(a.styles,b.styles,c.validStyles)),!c.allClasses){a=a.classes;b=b.classes;e=c.validClasses;if(a)if(!0===a)a=!0;else{for(var h=0,f=b.length,k;h<f;++h)k=b[h],e[k]||(e[k]=a(k));a=!1}else a=!1;c.allClasses=a}}function d(a,b,c){if(!a)return!1;if(!0===a)return!0;
for(var e in b)c[e]||(c[e]=a(e));return!1}function a(a,b,c){if(!a.match||a.match(b)){if(a.noProperties)return!1;c.hadInvalidAttribute=f(a.attributes,b.attributes)||c.hadInvalidAttribute;c.hadInvalidStyle=f(a.styles,b.styles)||c.hadInvalidStyle;a=a.classes;b=b.classes;if(a){for(var e=!1,h=!0===a,d=b.length;d--;)if(h||a(b[d]))b.splice(d,1),e=!0;a=e}else a=!1;c.hadInvalidClass=a||c.hadInvalidClass}}function f(a,b){if(!a)return!1;var c=!1,e=!0===a,h;for(h in b)if(e||a(h))delete b[h],c=!0;return c}function m(a,
b,c){if(a.disabled||a.customConfig&&!c||!b)return!1;a._.cachedChecks={};return!0}function k(a,b){if(!a)return!1;if(!0===a)return a;if("string"==typeof a)return a=M(a),"*"==a?!0:CKEDITOR.tools.convertArrayToObject(a.split(b));if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):!1;var c={},e=0,h;for(h in a)c[h]=a[h],e++;return e?c:!1}function l(a,b){if(a.nothingRequired)return!0;var c,h,f,d;if(f=a.requiredClasses)for(d=b.classes,c=0;c<f.length;++c)if(h=f[c],"string"==
typeof h){if(-1==CKEDITOR.tools.indexOf(d,h))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(d,h))return!1;return e(b.styles,a.requiredStyles)&&e(b.attributes,a.requiredAttributes)}function e(a,b){if(!b)return!0;for(var c=0,e;c<b.length;++c)if(e=b[c],"string"==typeof e){if(!(e in a))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,e))return!1;return!0}function c(a){if(!a)return{};a=a.split(/\s*,\s*/).sort();for(var b={};a.length;)b[a.shift()]="cke-test";return b}function h(a){var b,
c,e,h,f={},d=1;for(a=M(a);b=a.match(L);)(c=b[2])?(e=n(c,"styles"),h=n(c,"attrs"),c=n(c,"classes")):e=h=c=null,f["$"+d++]={elements:b[1],classes:c,styles:e,attributes:h},a=a.slice(b[0].length);return f}function n(a,b){var c=a.match(Q[b]);return c?M(c[1]):null}function r(a){var b=a.styleBackup=a.attributes.style,c=a.classBackup=a.attributes["class"];a.styles||(a.styles=CKEDITOR.tools.parseCssText(b||"",1));a.classes||(a.classes=c?c.split(/\s+/):[])}function u(b,c,e,h){var f=0,d;h.toHtml&&(c.name=c.name.replace(N,
"$1"));if(h.doCallbacks&&b.elementCallbacks){a:{d=b.elementCallbacks;for(var k=0,m=d.length,l;k<m;++k)if(l=d[k](c)){d=l;break a}d=void 0}if(d)return d}if(h.doTransform&&(d=b._.transformations[c.name])){r(c);for(k=0;k<d.length;++k)z(b,c,d[k]);t(c)}if(h.doFilter){a:{k=c.name;m=b._;b=m.allowedRules.elements[k];d=m.allowedRules.generic;k=m.disallowedRules.elements[k];m=m.disallowedRules.generic;l=h.skipRequired;var n={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,
allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1},A,q;if(b||d){r(c);if(k)for(A=0,q=k.length;A<q;++A)if(!1===a(k[A],c,n)){b=null;break a}if(m)for(A=0,q=m.length;A<q;++A)a(m[A],c,n);if(b)for(A=0,q=b.length;A<q;++A)g(b[A],c,n,l);if(d)for(A=0,q=d.length;A<q;++A)g(d[A],c,n,l);b=n}else b=null}if(!b||!b.valid)return e.push(c),1;q=b.validAttributes;var y=b.validStyles;d=b.validClasses;var k=c.attributes,M=c.styles,m=c.classes;l=c.classBackup;var C=c.styleBackup,P,u,G=[],n=[],w=/^data-cke-/;
A=!1;delete k.style;delete k["class"];delete c.classBackup;delete c.styleBackup;if(!b.allAttributes)for(P in k)q[P]||(w.test(P)?P==(u=P.replace(/^data-cke-saved-/,""))||q[u]||(delete k[P],A=!0):(delete k[P],A=!0));if(!b.allStyles||b.hadInvalidStyle){for(P in M)b.allStyles||y[P]?G.push(P+":"+M[P]):A=!0;G.length&&(k.style=G.sort().join("; "))}else C&&(k.style=C);if(!b.allClasses||b.hadInvalidClass){for(P=0;P<m.length;++P)(b.allClasses||d[m[P]])&&n.push(m[P]);n.length&&(k["class"]=n.sort().join(" "));
l&&n.length<l.split(/\s+/).length&&(A=!0)}else l&&(k["class"]=l);A&&(f=1);if(!h.skipFinalValidation&&!v(c))return e.push(c),1}h.toHtml&&(c.name=c.name.replace(K,"cke:$1"));return f}function p(a){var b=[],c;for(c in a)-1<c.indexOf("*")&&b.push(c.replace(/\*/g,".*"));return b.length?new RegExp("^(?:"+b.join("|")+")$"):null}function t(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,!0))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}
function v(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 y(a){if(!a)return!1;if(!0===a)return!0;var b=p(a);return function(c){return c in a||b&&c.match(b)}}function q(){return new CKEDITOR.htmlParser.element("br")}function B(a){return a.type==CKEDITOR.NODE_ELEMENT&&("br"==a.name||G.$block[a.name])}function w(a,b,c){var e=a.name;if(G.$empty[e]||!a.children.length)"hr"==e&&"br"==b?a.replaceWith(q()):
(a.parent&&c.push({check:"it",el:a.parent}),a.remove());else if(G.$block[e]||"tr"==e)if("br"==b)a.previous&&!B(a.previous)&&(b=q(),b.insertBefore(a)),a.next&&!B(a.next)&&(b=q(),b.insertAfter(a)),a.replaceWithChildren();else{var e=a.children,h;b:{h=G[b];for(var f=0,d=e.length,k;f<d;++f)if(k=e[f],k.type==CKEDITOR.NODE_ELEMENT&&!h[k.name]){h=!1;break b}h=!0}if(h)a.name=b,a.attributes={},c.push({check:"parent-down",el:a});else{h=a.parent;for(var f=h.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==h.name,
g,m,d=e.length;0<d;)k=e[--d],f&&(k.type==CKEDITOR.NODE_TEXT||k.type==CKEDITOR.NODE_ELEMENT&&G.$inline[k.name])?(g||(g=new CKEDITOR.htmlParser.element(b),g.insertAfter(a),c.push({check:"parent-down",el:g})),g.add(k,0)):(g=null,m=G[h.name]||G.span,k.insertAfter(a),h.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||k.type!=CKEDITOR.NODE_ELEMENT||m[k.name]||c.push({check:"el-up",el:k}));a.remove()}}else e in{style:1,script:1}?a.remove():(a.parent&&c.push({check:"it",el:a.parent}),a.replaceWithChildren())}function z(a,
b,c){var e,h;for(e=0;e<c.length;++e)if(h=c[e],!(h.check&&!a.check(h.check,!1)||h.left&&!h.left(b))){h.right(b,O);break}}function A(a,b){var c=b.getDefinition(),e=c.attributes,h=c.styles,f,d,k,g;if(a.name!=c.element)return!1;for(f in e)if("class"==f)for(c=e[f].split(/\s+/),k=a.classes.join("|");g=c.pop();){if(-1==k.indexOf(g))return!1}else if(a.attributes[f]!=e[f])return!1;for(d in h)if(a.styles[d]!=h[d])return!1;return!0}function C(a,b){var c,e;"string"==typeof a?c=a:a instanceof CKEDITOR.style?e=
a:(c=a[0],e=a[1]);return[{element:c,left:e,right:function(a,c){c.transform(a,b)}}]}function D(a){return function(b){return A(b,a)}}function F(a){return function(b,c){c[a](b)}}var G=CKEDITOR.dtd,I=CKEDITOR.tools.copy,M=CKEDITOR.tools.trim,E=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a,b){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;var c=this.editor=a instanceof CKEDITOR.editor?a:null;if(c&&!b){this.customConfig=!0;var e=c.config.allowedContent;!0===e?this.disabled=!0:(e||(this.customConfig=!1),this.allow(e,"config",1),this.allow(c.config.extraAllowedContent,"extra",1),this.allow(E[c.enterMode]+" "+E[c.shiftEnterMode],"default",1),this.disallow(c.config.disallowedContent))}else this.customConfig=
!1,this.allow(b||a,"default",1)};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(a,c,e){if(!m(this,a,e))return!1;var f,d;if("string"==typeof a)a=h(a);else if(a instanceof CKEDITOR.style){if(a.toAllowedContentRules)return this.allow(a.toAllowedContentRules(this.editor),c,e);f=a.getDefinition();a={};e=f.attributes;a[f.element]=f={styles:f.styles,requiredStyles:f.styles&&CKEDITOR.tools.object.keys(f.styles)};e&&(e=I(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.object.keys(e))}else if(CKEDITOR.tools.isArray(a)){for(f=0;f<a.length;++f)d=this.allow(a[f],c,e);return d}b(this,a,c,this.allowedContent,this._.allowedRules);return!0},applyTo:function(a,b,c,e){if(this.disabled)return!1;var h=this,f=[],d=this.editor&&this.editor.config.protectedSource,k,g=!1,m={doFilter:!c,doTransform:!0,doCallbacks:!0,toHtml:b};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if("off"==a.attributes["data-cke-filter"])return!1;
if(!b||"span"!=a.name||!~CKEDITOR.tools.object.keys(a.attributes).join("|").indexOf("data-cke-"))if(k=u(h,a,f,m),k&1)g=!0;else if(k&2)return!1}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));c=[];var l,n,v;if(d)for(n=0;n<d.length;++n)if((v=e.match(d[n]))&&v[0].length==e.length){c=!0;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);1==e.children.length&&(l=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&
u(h,l,c,m);c=!c.length}c||f.push(a)}},null,!0);f.length&&(g=!0);var l;a=[];e=E[e||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var n;c=f.pop();)c.type==CKEDITOR.NODE_ELEMENT?w(c,e,a):c.remove();for(;l=a.pop();)if(c=l.el,c.parent)switch(n=G[c.parent.name]||G.span,l.check){case "it":G.$removeEmpty[c.name]&&!c.children.length?w(c,e,a):v(c)||w(c,e,a);break;case "el-up":c.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||n[c.name]||w(c,e,a);break;case "parent-down":c.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||
n[c.name]||w(c.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(a){if(!m(this,a,!0))return!1;"string"==typeof a&&(a=h(a));b(this,a,null,this.disallowedContent,this._.disallowedRules);return!0},addContentForms:function(a){if(!this.disabled&&a){var b,c,e=[],h;for(b=0;b<a.length&&!h;++b)c=a[b],("string"==typeof c||c instanceof
CKEDITOR.style)&&this.check(c)&&(h=c);if(h){for(b=0;b<a.length;++b)e.push(C(a[b],h));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 b,c;if(!this.disabled&&a){var e=this._.transformations,h;for(h=0;h<a.length;++h){b=a[h];var f=void 0,d=void 0,k=void 0,g=void 0,m=void 0,l=void 0;c=[];for(d=0;d<b.length;++d)k=b[d],"string"==typeof k?(k=k.split(/\s*:\s*/),g=k[0],m=null,l=k[1]):(g=k.check,m=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),m instanceof CKEDITOR.style&&(m=D(m)),c.push({check:g==f?null:g,left:m,
right:"string"==typeof l?F(l):l});b=f;e[b]||(e[b]=[]);e[b].push(c)}}},check:function(a,b,e){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(a)){for(var f=a.length;f--;)if(this.check(a[f],b,e))return!0;return!1}var d,k;if("string"==typeof a){k=a+"\x3c"+(!1===b?"0":"1")+(e?"1":"0")+"\x3e";if(k in this._.cachedChecks)return this._.cachedChecks[k];d=h(a).$1;var g=d.styles,f=d.classes;d.name=d.elements;d.classes=f=f?f.split(/\s*,\s*/):[];d.styles=c(g);d.attributes=c(d.attributes);d.children=[];f.length&&
(d.attributes["class"]=f.join(" "));g&&(d.attributes.style=CKEDITOR.tools.writeCssText(d.styles))}else d=a.getDefinition(),g=d.styles,f=d.attributes||{},g&&!CKEDITOR.tools.isEmpty(g)?(g=I(g),f.style=CKEDITOR.tools.writeCssText(g,!0)):g={},d={name:d.element,attributes:f,classes:f["class"]?f["class"].split(/\s+/):[],styles:g,children:[]};var g=CKEDITOR.tools.clone(d),m=[],l;if(!1!==b&&(l=this._.transformations[d.name])){for(f=0;f<l.length;++f)z(this,d,l[f]);t(d)}u(this,g,m,{doFilter:!0,doTransform:!1!==
b,skipRequired:!e,skipFinalValidation:!e});0<m.length?e=!1:((b=d.attributes["class"])&&(d.attributes["class"]=d.attributes["class"].split(" ").sort().join(" ")),e=CKEDITOR.tools.objectCompare(d.attributes,g.attributes,!0),b&&(d.attributes["class"]=b));"string"==typeof a&&(this._.cachedChecks[k]=e);return e},getAllowedEnterMode:function(){var a=["p","div","br"],b={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(c,e){var h=a.slice(),f;if(this.check(E[c]))return c;for(e||
(h=h.reverse());f=h.pop();)if(this.check(f))return b[f];return CKEDITOR.ENTER_BR}}(),clone:function(){var a=new CKEDITOR.filter,b=CKEDITOR.tools.clone;a.allowedContent=b(this.allowedContent);a._.allowedRules=b(this._.allowedRules);a.disallowedContent=b(this.disallowedContent);a._.disallowedRules=b(this._.disallowedRules);a._.transformations=b(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 R={styles:1,attributes:1,classes:1},J={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},L=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,Q={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},N=/^cke:(object|embed|param)$/,K=/^(object|embed|param)$/,O;O=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,b,c){c=c||b;if(!(c in a.styles)){var e=a.attributes[b];e&&(/^\d+$/.test(e)&&(e+="px"),a.styles[c]=e)}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var e=a.styles[b],h=e&&e.match(/^(\d+)(?:\.\d*)?px$/);h?a.attributes[c]=h[1]:"cke-test"==e&&(a.attributes[c]="cke-test")}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in
a.styles)){var b=a.attributes.align;if("left"==b||"right"==b)a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];if("left"==b||"right"==b)a.attributes.align=b}delete a.styles["float"]},splitBorderShorthand:function(a){if(a.styles.border){var b=CKEDITOR.tools.style.parse.border(a.styles.border);b.color&&(a.styles["border-color"]=b.color);b.style&&(a.styles["border-style"]=b.style);b.width&&(a.styles["border-width"]=b.width);
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 b(e){a.styles["margin-top"]=
c[e[0]];a.styles["margin-right"]=c[e[1]];a.styles["margin-bottom"]=c[e[2]];a.styles["margin-left"]=c[e[3]]}if(a.styles.margin){var c=a.styles.margin.match(/(auto|0|(?:\-?[\.\d]+(?:\w+|%)))/g)||["0px"];switch(c.length){case 1:b([0,0,0,0]);break;case 2:b([0,1,0,1]);break;case 3:b([0,1,2,1]);break;case 4:b([0,1,2,3])}delete a.styles.margin}},matchesStyle:A,transform:function(a,b){if("string"==typeof b)a.name=b;else{var c=b.getDefinition(),e=c.styles,h=c.attributes,f,d,k,g;a.name=c.element;for(f in h)if("class"==
f)for(c=a.classes.join("|"),k=h[f].split(/\s+/);g=k.pop();)-1==c.indexOf(g)&&a.classes.push(g);else a.attributes[f]=h[f];for(d in e)a.styles[d]=e[d]}}}})();(function(){CKEDITOR.focusManager=function(b){if(b.focusManager)return b.focusManager;this.hasFocus=!1;this.currentActive=null;this._={editor:b};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(b){this._.timer&&clearTimeout(this._.timer);b&&(this.currentActive=b);this.hasFocus||this._.locked||
((b=CKEDITOR.currentInstance)&&b.focusManager.blur(1),this.hasFocus=!0,(b=this._.editor.container)&&b.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(b){function g(){if(this.hasFocus){this.hasFocus=!1;var a=this._.editor.container;a&&a.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var d=CKEDITOR.focusManager._.blurDelay;b||!d?g.call(this):this._.timer=
CKEDITOR.tools.setTimeout(function(){delete this._.timer;g.call(this)},d,this)}},add:function(b,g){var d=b.getCustomData("focusmanager");if(!d||d!=this){d&&d.remove(b);var d="focus",a="blur";g&&(CKEDITOR.env.ie?(d="focusin",a="focusout"):CKEDITOR.event.useCapture=1);var f={blur:function(){b.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(b)}};b.on(d,f.focus,this);b.on(a,f.blur,this);g&&(CKEDITOR.event.useCapture=0);b.setCustomData("focusmanager",this);b.setCustomData("focusmanager_handlers",
f)}},remove:function(b){b.removeCustomData("focusmanager");var g=b.removeCustomData("focusmanager_handlers");b.removeListener("blur",g.blur);b.removeListener("focus",g.focus)}}})();CKEDITOR.keystrokeHandler=function(b){if(b.keystrokeHandler)return b.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:b};return this};(function(){var b,g=function(a){a=a.data;var f=a.getKeystroke(),d=this.keystrokes[f],k=this._.editor;b=!1===k.fire("key",{keyCode:f,domEvent:a});b||(d&&(b=!1!==
k.execCommand(d,{from:"keystrokeHandler"})),b||(b=!!this.blockedKeystrokes[f]));b&&a.preventDefault(!0);return!b},d=function(a){b&&(b=!1,a.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",g,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",d,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(b,g,d){b&&CKEDITOR.lang.languages[b]||(b=this.detect(g,b));var a=this;g=function(){a[b].dir=a.rtl[b]?"rtl":"ltr";d(b,a[b])};this[b]?g():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+b+".js"),g,this)},detect:function(b,
g){var d=this.languages;g=g||navigator.userLanguage||navigator.language||b;var a=g.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),f=a[1],a=a[2];d[f+"-"+a]?f=f+"-"+a:d[f]||(f=null);CKEDITOR.lang.detect=f?function(){return f}:function(a){return a};return f||b}}})();CKEDITOR.scriptLoader=function(){var b={},g={};return{load:function(d,a,f,m){var k="string"==typeof d;k&&(d=[d]);f||(f=CKEDITOR);var l=d.length,e=l,c=[],h=[],n=function(b){a&&(k?a.call(f,b):a.call(f,c,h))};if(0===e)n(!0);else{var r=function(a,
b){(b?c:h).push(a);0>=--e&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),n(b))},u=function(a,c){b[a]=1;var e=g[a];delete g[a];for(var h=0;h<e.length;h++)e[h](a,c)},p=function(c){if(b[c])r(c,!0);else{var e=g[c]||(g[c]=[]);e.push(r);if(!(1<e.length)){var h=new CKEDITOR.dom.element("script");h.setAttributes({type:"text/javascript",src:c});a&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?h.$.onreadystatechange=function(){if("loaded"==h.$.readyState||"complete"==
h.$.readyState)h.$.onreadystatechange=null,u(c,!0)}:(h.$.onload=function(){setTimeout(function(){h.$.onload=null;h.$.onerror=null;u(c,!0)},0)},h.$.onerror=function(){h.$.onload=null;h.$.onerror=null;u(c,!1)}));h.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var t=0;t<l;t++)p(d[t])}},queue:function(){function b(){var f;(f=a[0])&&this.load(f.scriptUrl,f.callback,CKEDITOR,0)}var a=[];return function(f,g){var k=this;a.push({scriptUrl:f,
callback:function(){g&&g.apply(this,arguments);a.shift();b.call(k)}});1==a.length&&b.call(this)}}()}}();CKEDITOR.resourceManager=function(b,g){this.basePath=b;this.fileName=g;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}};CKEDITOR.resourceManager.prototype={add:function(b,g){if(this.registered[b])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+b+'" is already registered.');var d=this.registered[b]=g||{};d.name=b;d.path=this.getPath(b);CKEDITOR.fire(b+
CKEDITOR.tools.capitalize(this.fileName)+"Ready",d);return this.get(b)},get:function(b){return this.registered[b]||null},getPath:function(b){var g=this.externals[b];return CKEDITOR.getUrl(g&&g.dir||this.basePath+b+"/")},getFilePath:function(b){var g=this.externals[b];return CKEDITOR.getUrl(this.getPath(b)+(g?g.file:this.fileName+".js"))},addExternal:function(b,g,d){d||(g=g.replace(/[^\/]+$/,function(a){d=a;return""}));d=d||this.fileName+".js";b=b.split(",");for(var a=0;a<b.length;a++)this.externals[b[a]]=
{dir:g,file:d}},load:function(b,g,d){CKEDITOR.tools.isArray(b)||(b=b?[b]:[]);for(var a=this.loaded,f=this.registered,m=[],k={},l={},e=0;e<b.length;e++){var c=b[e];if(c)if(a[c]||f[c])l[c]=this.get(c);else{var h=this.getFilePath(c);m.push(h);h in k||(k[h]=[]);k[h].push(c)}}CKEDITOR.scriptLoader.load(m,function(b,c){if(c.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+k[c[0]].join(",")+'" was not found at "'+c[0]+'".');for(var e=0;e<b.length;e++)for(var h=k[b[e]],f=0;f<h.length;f++){var m=
h[f];l[m]=this.get(m);a[m]=1}g.call(d,l)},this)}};CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin");CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(b){var g={};return function(d,a,f){var m={},k=function(d){b.call(this,d,function(b){CKEDITOR.tools.extend(m,b);var c=[],h;for(h in b){var d=b[h],l=d&&d.requires;if(!g[h]){if(d.icons)for(var u=d.icons.split(","),p=u.length;p--;)CKEDITOR.skin.addIcon(u[p],d.path+"icons/"+(CKEDITOR.env.hidpi&&d.hidpi?"hidpi/":
"")+u[p]+".png");d.isSupportedEnvironment=d.isSupportedEnvironment||function(){return!0};g[h]=1}if(l)for(l.split&&(l=l.split(",")),d=0;d<l.length;d++)m[l[d]]||c.push(l[d])}if(c.length)k.call(this,c);else{for(h in m)d=m[h],d.onLoad&&!d.onLoad._called&&(!1===d.onLoad()&&delete m[h],d.onLoad._called=1);a&&a.call(f||window,m)}},this)};k.call(this,d)}});CKEDITOR.plugins.setLang=function(b,g,d){var a=this.get(b);b=a.langEntries||(a.langEntries={});a=a.lang||(a.lang=[]);a.split&&(a=a.split(","));-1==CKEDITOR.tools.indexOf(a,
g)&&a.push(g);b[g]=d};CKEDITOR.ui=function(b){if(b.ui)return b.ui;this.items={};this.instances={};this.editor=b;this._={handlers:{}};return this};CKEDITOR.ui.prototype={add:function(b,g,d){d.name=b.toLowerCase();var a=this.items[b]={type:g,command:d.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(a,d)},get:function(b){return this.instances[b]},create:function(b){var g=this.items[b],d=g&&this._.handlers[g.type],a=g&&g.command&&this.editor.getCommand(g.command),d=d&&
d.create.apply(this,g.args);this.instances[b]=d;a&&a.uiItems.push(d);d&&!d.type&&(d.type=g.type);return d},addHandler:function(b,g){this._.handlers[b]=g},space:function(b){return CKEDITOR.document.getById(this.spaceId(b))},spaceId:function(b){return this.editor.id+"_"+b}};CKEDITOR.event.implementOn(CKEDITOR.ui);(function(){function b(b,c,e){CKEDITOR.event.call(this);b=b&&CKEDITOR.tools.clone(b);if(void 0!==c){if(!(c instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");
if(!e)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&e==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!d(c,e))throw Error('The specified element mode is not supported on element: "'+c.getName()+'".');this.element=c;this.elementMode=e;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(c.getId()||c.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",a);this.on("selectionChange",function(a){m(this,a.data.path)});this.on("activeFilterChange",function(){m(this,this.elementPath(),!0)});this.on("mode",a);CKEDITOR.dom.selection.setupEditorOptimization(this);
this.on("instanceReady",function(){if(this.config.startupFocus){if("end"===this.config.startupFocus){var a=this.createRange();a.selectNodeContents(this.editable());a.shrink(CKEDITOR.SHRINK_ELEMENT,!0);a.collapse();this.getSelection().selectRanges([a])}this.focus()}});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){this.isDestroyed()||this.isDetached()||l(this,b)},0,this)}function g(){do var a="editor"+ ++p;while(CKEDITOR.instances[a]);return a}function d(a,
b){return b==CKEDITOR.ELEMENT_MODE_INLINE?a.is(CKEDITOR.dtd.$editable)||a.is("textarea"):b==CKEDITOR.ELEMENT_MODE_REPLACE?!a.is(CKEDITOR.dtd.$nonBodyContent):1}function a(){var a=this.commands,b;for(b in a)f(this,a[b])}function f(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function m(a,b,c){if(b){var e,h,f=a.commands;for(h in f)e=f[h],(c||e.contextSensitive)&&e.refresh(a,b)}}function k(a){var b=a.config.customConfig;if(!b)return!1;var b=
CKEDITOR.getUrl(b),c=t[b]||(t[b]={});c.fn?(c.fn.call(a,a.config),CKEDITOR.getUrl(a.config.customConfig)!=b&&k(a)||a.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(b,function(){c.fn=c.fn||CKEDITOR.editorConfig||function(){};k(a)});return!0}function l(a,b){a.on("customConfigLoaded",function(){if(b){if(b.on)for(var c in b.on)a.on(c,b.on[c]);CKEDITOR.tools.extend(a.config,b,!0);delete a.config.on}c=a.config;a.readOnly=c.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=c.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:c.enterMode;a.activeShiftEnterMode=
a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:c.shiftEnterMode;c.skin&&(CKEDITOR.skinName=c.skin);a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);e(a)});b&&null!=b.customConfig&&(a.config.customConfig=b.customConfig);k(a)||a.fireOnce("customConfigLoaded")}function e(a){CKEDITOR.skin.loadPart("editor",function(){c(a)})}function c(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,c){var e=a.config.title;
a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(c);a.title="string"==typeof e||!1===e?e:[a.lang.editor,a.name].join(", ");a.config.contentsLangDirection||(a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir);a.fire("langLoaded");h(a)})}function h(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);n(a)})}function n(a){function b(a){if(!a)return"";CKEDITOR.tools.isArray(a)&&(a=a.join(","));
return a.replace(/\s/g,"")}var c=a.config,e=b(c.plugins),h=b(c.extraPlugins),f=b(c.removePlugins);if(h)var d=new RegExp("(?:^|,)(?:"+h.replace(/,/g,"|")+")(?\x3d,|$)","g"),e=e.replace(d,""),e=e+(","+h);if(f)var k=new RegExp("(?:^|,)(?:"+f.replace(/,/g,"|")+")(?\x3d,|$)","g"),e=e.replace(k,"");CKEDITOR.env.air&&(e+=",adobeair");CKEDITOR.plugins.load(e.split(","),function(b){var e=[],h=[],f=[];a.plugins=CKEDITOR.tools.extend({},a.plugins,b);for(var d in b){var g=b[d],m=g.lang,l=null,n=g.requires,z;
CKEDITOR.tools.isArray(n)&&(n=n.join(","));if(n&&(z=n.match(k)))for(;n=z.pop();)CKEDITOR.error("editor-plugin-required",{plugin:n.replace(",",""),requiredBy:d});m&&!a.lang[d]&&(m.split&&(m=m.split(",")),0<=CKEDITOR.tools.indexOf(m,a.langCode)?l=a.langCode:(l=a.langCode.replace(/-.*/,""),l=l!=a.langCode&&0<=CKEDITOR.tools.indexOf(m,l)?l:0<=CKEDITOR.tools.indexOf(m,"en")?"en":m[0]),g.langEntries&&g.langEntries[l]?(a.lang[d]=g.langEntries[l],l=null):f.push(CKEDITOR.getUrl(g.path+"lang/"+l+".js")));h.push(l);
e.push(g)}CKEDITOR.scriptLoader.load(f,function(){if(!a.isDestroyed()&&!a.isDetached()){for(var b=["beforeInit","init","afterInit"],f=0;f<b.length;f++)for(var d=0;d<e.length;d++){var k=e[d];0===f&&h[d]&&k.lang&&k.langEntries&&(a.lang[k.name]=k.langEntries[h[d]]);if(k[b[f]])k[b[f]](a)}a.fireOnce("pluginsLoaded");c.keystrokes&&a.setKeystroke(a.config.keystrokes);for(d=0;d<a.config.blockedKeystrokes.length;d++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[d]]=1;a.status="loaded";a.fireOnce("loaded");
CKEDITOR.fire("instanceLoaded",null,a)}})})}function r(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return!0}return!1}function u(a,b){function c(a){var b=a.startContainer,e=a.endContainer;return b.is&&(b.is("tr")||b.is("td")&&b.equals(e)&&a.endOffset===b.getChildCount())?!0:!1}function e(a){var b=a.startContainer;return b.is("tr")?a.cloneContents():
b.clone(!0)}for(var h=new CKEDITOR.dom.documentFragment,f,d,k,g=0;g<a.length;g++){var m=a[g],l=m.startContainer.getAscendant("tr",!0);c(m)?(f||(f=l.getAscendant("table").clone(),f.append(l.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),h.append(f),f=f.findOne("thead, tbody, tfoot")),d&&d.equals(l)||(d=l,k=l.clone(),f.append(k)),k.append(e(m))):h.append(m.cloneContents())}return f?h:b.getHtmlFromRange(a[0])}b.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=b;var p=0,t={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,
{plugins:{detectConflict:function(a,b){for(var c=0;c<b.length;c++){var e=b[c];if(this[e])return CKEDITOR.warn("editor-plugin-conflict",{plugin:a,replacedWith:e}),!0}return!1}},addCommand:function(a,b){b.name=a.toLowerCase();var c=b instanceof CKEDITOR.command?b:new CKEDITOR.command(this,b);this.mode&&f(this,c);return this.commands[a]=c},_attachToForm:function(){function a(b){c.updateElement();c._.required&&!e.getValue()&&!1===c.fire("required")&&b.data.preventDefault()}function b(a){return!!(a&&a.call&&
a.apply)}var c=this,e=c.element,h=new CKEDITOR.dom.element(e.$.form);e.is("textarea")&&h&&(h.on("submit",a),b(h.$.submit)&&(h.$.submit=CKEDITOR.tools.override(h.$.submit,function(b){return function(){a();b.apply?b.apply(this):b()}})),c.on("destroy",function(){h.removeListener("submit",a)}))},destroy:function(a){var b=CKEDITOR.filter.instances,c=this;this.fire("beforeDestroy");!a&&r.call(this);this.editable(null);this.filter&&delete this.filter;CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(b),
function(a){a=b[a];c===a.editor&&a.destroy()});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,b){var c=this.getCommand(a),
e={name:a,commandData:b||{},command:c};return c&&c.state!=CKEDITOR.TRISTATE_DISABLED&&!1!==this.fire("beforeCommandExec",e)&&(e.returnValue=c.exec(e.commandData),!c.async&&!1!==this.fire("afterCommandExec",e))?e.returnValue:!1},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var b=this._.data;"string"!=typeof b&&(b=(b=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"");b={dataValue:b};!a&&this.fire("getData",
b);return b.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,b,c){var e=!0,h=b;b&&"object"==typeof b&&(c=b.internal,h=b.callback,e=!b.noSnapshot);!c&&e&&this.fire("saveSnapshot");if(h||!c)this.once("dataReady",function(a){!c&&e&&this.fire("saveSnapshot");h&&h.call(a.editor)});
a={dataValue:a};!c&&this.fire("setData",a);this._.data=a.dataValue;!c&&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,b,c){this.fire("insertHtml",{dataValue:a,mode:b,range:c})},insertText:function(a){this.fire("insertText",a)},insertElement:function(a){this.fire("insertElement",a)},getSelectedHtml:function(a){var b=this.editable(),
c=this.getSelection(),c=c&&c.getRanges();if(!b||!c||0===c.length)return null;b=u(c,b);return a?b.getHtml():b},extractSelectedHtml:function(a,b){var c=this.editable(),e=this.getSelection().getRanges(),h=new CKEDITOR.dom.documentFragment,f;if(!c||0===e.length)return null;for(f=0;f<e.length;f++)h.append(c.extractHtmlFromRange(e[f],b));b||this.getSelection().selectRanges([e[0]]);return a?h.getHtml():h},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==
this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return r.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],c,e,h=b.length;h--;)c=b[h],e=0,CKEDITOR.tools.isArray(c)&&(e=c[1],c=c[0]),e?a[c]=e:delete a[c]},getCommandKeystroke:function(a,b){var c="string"===typeof a?this.getCommand(a):a,e=[];if(c){var h=CKEDITOR.tools.object.findKey(this.commands,
c),f=this.keystrokeHandler.keystrokes;if(c.fakeKeystroke)e.push(c.fakeKeystroke);else for(var d in f)f[d]===h&&e.push(d)}return b?e:e[0]||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,
b){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=b)this.activeEnterMode=a,this.activeShiftEnterMode=b,this.fire("activeEnterModeChange")},showNotification:function(a){alert(a)},isDetached:function(){return!!this.container&&this.container.isDetached()},isDestroyed:function(){return"destroyed"===this.status}});CKEDITOR.editor._getEditorElement=function(a){if(!CKEDITOR.env.isCompatible)return null;
var b=CKEDITOR.dom.element.get(a);return b?b.getEditor()?(CKEDITOR.error("editor-element-conflict",{editorName:b.getEditor().name}),null):b:(CKEDITOR.error("editor-incorrect-element",{element:a}),null)}})();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]*?)--!?>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}};
(function(){var b=/([\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(d){for(var a,f,m=0,k;a=this._.htmlPartsRegex.exec(d);){f=a.index;if(f>m)if(m=d.substring(m,f),k)k.push(m);else this.onText(m);
m=this._.htmlPartsRegex.lastIndex;if(f=a[1])if(f=f.toLowerCase(),k&&CKEDITOR.dtd.$cdata[f]&&(this.onCDATA(k.join("")),k=null),!k){this.onTagClose(f);continue}if(k)k.push(a[0]);else if(f=a[3]){if(f=f.toLowerCase(),!/="/.test(f)){var l={},e,c=a[4];a=!!a[5];if(c)for(;e=b.exec(c);){var h=e[1].toLowerCase();e=e[2]||e[3]||e[4]||"";l[h]=!e&&g[h]?h:CKEDITOR.tools.htmlDecodeAttr(e)}this.onTagOpen(f,l,a);!k&&CKEDITOR.dtd.$cdata[f]&&(k=[])}}else if(f=a[2])this.onComment(f)}if(d.length>m)this.onText(d.substring(m,
d.length))}}})();CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(b){this._.output.push("\x3c",b)},openTagClose:function(b,g){g?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(b,g){"string"==typeof g&&(g=CKEDITOR.tools.htmlEncodeAttr(g));this._.output.push(" ",b,'\x3d"',g,'"')},closeTag:function(b){this._.output.push("\x3c/",b,"\x3e")},text:function(b){this._.output.push(b)},comment:function(b){this._.output.push("\x3c!--",
b,"--\x3e")},write:function(b){this._.output.push(b)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(b){var g=this._.output.join("");b&&this.reset();return g}}});"use strict";(function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var b=this.parent.children,g=CKEDITOR.tools.indexOf(b,this),d=this.previous,a=this.next;d&&(d.next=a);a&&(a.previous=d);b.splice(g,1);this.parent=null},replaceWith:function(b){var g=this.parent.children,
d=CKEDITOR.tools.indexOf(g,this),a=b.previous=this.previous,f=b.next=this.next;a&&(a.next=b);f&&(f.previous=b);g[d]=b;b.parent=this.parent;this.parent=null},insertAfter:function(b){var g=b.parent.children,d=CKEDITOR.tools.indexOf(g,b),a=b.next;g.splice(d+1,0,this);this.next=b.next;this.previous=b;b.next=this;a&&(a.previous=this);this.parent=b.parent},insertBefore:function(b){var g=b.parent.children,d=CKEDITOR.tools.indexOf(g,b);g.splice(d,0,this);this.next=b;(this.previous=b.previous)&&(b.previous.next=
this);b.previous=this;this.parent=b.parent},getAscendant:function(b){var g="function"==typeof b?b:"string"==typeof b?function(a){return a.name==b}:function(a){return a.name in b},d=this.parent;for(;d&&d.type==CKEDITOR.NODE_ELEMENT;){if(g(d))return d;d=d.parent}return null},wrapWith:function(b){this.replaceWith(b);b.add(this);return b},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(b){return b||{}}}})();"use strict";CKEDITOR.htmlParser.comment=
function(b){this.value=b;this._={isBlockLike:!1}};CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(b,g){var d=this.value;if(!(d=b.onComment(g,d,this)))return this.remove(),!1;if("string"!=typeof d)return this.replaceWith(d),!1;this.value=d;return!0},writeHtml:function(b,g){g&&this.filter(g);b.comment(this.value)}});"use strict";(function(){CKEDITOR.htmlParser.text=function(b){this.value=b;this._={isBlockLike:!1}};
CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(b,g){if(!(this.value=b.onText(g,this.value,this)))return this.remove(),!1},writeHtml:function(b,g){g&&this.filter(g);b.text(this.value)}})})();"use strict";(function(){CKEDITOR.htmlParser.cdata=function(b){this.value=b};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(b){b.write(this.value)}})})();
"use strict";CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}};(function(){function b(a){return a.attributes["data-cke-survive"]?!1:"a"==a.name&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.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),d={ol:1,ul:1},a=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,
script:1}),f={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(m,k,l){function e(a){var b;if(0<v.length)for(var e=0;e<v.length;e++){var h=v[e],f=h.name,d=CKEDITOR.dtd[f],k=q.name&&CKEDITOR.dtd[q.name];k&&!k[f]||a&&d&&!d[a]&&CKEDITOR.dtd[a]?f==q.name&&(n(q,q.parent,1),e--):(b||(c(),b=1),h=h.clone(),h.parent=q,q=h,v.splice(e,1),e--)}}function c(){for(;y.length;)n(y.shift(),q)}function h(a){if(a._.isBlockLike&&"pre"!=a.name&&
"textarea"!=a.name){var b=a.children.length,c=a.children[b-1],e;c&&c.type==CKEDITOR.NODE_TEXT&&((e=CKEDITOR.tools.rtrim(c.value))?c.value=e:a.children.length=b-1)}}function n(a,c,e){c=c||q||t;var f=q;void 0===a.previous&&(r(c,a)&&(q=c,p.onTagOpen(l,{}),a.returnPoint=c=q),h(a),b(a)&&!a.children.length||c.add(a),"pre"==a.name&&(w=!1),"textarea"==a.name&&(B=!1));a.returnPoint?(q=a.returnPoint,delete a.returnPoint):q=e?c:f}function r(a,b){if((a==t||"body"==a.name)&&l&&(!a.name||CKEDITOR.dtd[a.name][l])){var c,
e;return(c=b.attributes&&(e=b.attributes["data-cke-real-element-type"])?e:b.name)&&c in CKEDITOR.dtd.$inline&&!(c in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function u(a,b){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==b||"dt"==a&&"dd"==b||"dd"==a&&"dt"==b:!1}var p=new CKEDITOR.htmlParser,t=k instanceof CKEDITOR.htmlParser.element?k:"string"==typeof k?new CKEDITOR.htmlParser.element(k):new CKEDITOR.htmlParser.fragment,v=[],y=[],q=t,B="textarea"==t.name,
w="pre"==t.name;p.onTagOpen=function(h,f,k,m){f=new CKEDITOR.htmlParser.element(h,f);f.isUnknown&&k&&(f.isEmpty=!0);f.isOptionalClose=m;if(b(f))v.push(f);else{if("pre"==h)w=!0;else{if("br"==h&&w){q.add(new CKEDITOR.htmlParser.text("\n"));return}"textarea"==h&&(B=!0)}if("br"==h)y.push(f);else{for(;!(m=(k=q.name)?CKEDITOR.dtd[k]||(q._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a,f.isUnknown||q.isUnknown||m[h]);)if(q.isOptionalClose)p.onTagClose(k);else if(h in d&&k in d)k=q.children,(k=k[k.length-
1])&&"li"==k.name||n(k=new CKEDITOR.htmlParser.element("li"),q),!f.returnPoint&&(f.returnPoint=q),q=k;else if(h in CKEDITOR.dtd.$listItem&&!u(h,k))p.onTagOpen("li"==h?"ul":"dl",{},0,1);else if(k in g&&!u(h,k))!f.returnPoint&&(f.returnPoint=q),q=q.parent;else if(k in CKEDITOR.dtd.$inline&&v.unshift(q),q.parent)n(q,q.parent,1);else{f.isOrphan=1;break}e(h);c();f.parent=q;f.isEmpty?n(f):q=f}}};p.onTagClose=function(a){for(var b=v.length-1;0<=b;b--)if(a==v[b].name){v.splice(b,1);return}for(var e=[],h=
[],f=q;f!=t&&f.name!=a;)f._.isBlockLike||h.unshift(f),e.push(f),f=f.returnPoint||f.parent;if(f!=t){for(b=0;b<e.length;b++){var d=e[b];n(d,d.parent)}q=f;f._.isBlockLike&&c();n(f,f.parent);f==q&&(q=q.parent);v=v.concat(h)}"body"==a&&(l=!1)};p.onText=function(b){if(!(q._.hasInlineStarted&&!y.length||w||B)&&(b=CKEDITOR.tools.ltrim(b),0===b.length))return;var h=q.name,d=h?CKEDITOR.dtd[h]||(q._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a;if(!B&&!d["#"]&&h in g)p.onTagOpen(f[h]||""),p.onText(b);else{c();
e();w||B||(b=b.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));b=new CKEDITOR.htmlParser.text(b);if(r(q,b))this.onTagOpen(l,{},0,1);q.add(b)}};p.onCDATA=function(a){q.add(new CKEDITOR.htmlParser.cdata(a))};p.onComment=function(a){c();e();q.add(new CKEDITOR.htmlParser.comment(a))};p.parse(m);for(c();q!=t;)n(q,q.parent,1);h(t);return t};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var f=0<b?this.children[b-1]:null;if(f){if(a._.isBlockLike&&
f.type==CKEDITOR.NODE_TEXT&&(f.value=CKEDITOR.tools.rtrim(f.value),0===f.value.length)){this.children.pop();this.add(a);return}f.next=a}a.previous=f;a.parent=this;this.children.splice(b,0,a);this._.hasInlineStarted||(this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike)},filter:function(a,b){b=this.getFilterContext(b);a.onRoot(b,this);this.filterChildren(a,!1,b)},filterChildren:function(a,b,f){if(this.childrenFilteredBy!=a.id){f=this.getFilterContext(f);
if(b&&!this.parent)a.onRoot(f,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)!1===this.children[b].filter(a,f)&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,f){var e=this.getFilterContext();if(f&&!this.parent&&b)b.onRoot(e,this);b&&this.filterChildren(b,!1,e);b=0;f=this.children;for(e=f.length;b<e;b++)f[b].writeHtml(a)},forEach:function(a,b,f){if(!(f||b&&this.type!=b))var e=a(this);if(!1!==e){f=this.children;for(var c=
0;c<f.length;c++)e=f[c],e.type==CKEDITOR.NODE_ELEMENT?e.forEach(a,b):b&&e.type!=b||a(e)}},getFilterContext:function(a){return a||{}}}})();"use strict";(function(){function b(){this.rules=[]}function g(d,a,f,g){var k,l;for(k in a)(l=d[k])||(l=d[k]=new b),l.add(a[k],f,g)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(d){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new b;this.attributeNameRules=new b;this.elementsRules={};this.attributesRules={};this.textRules=new b;
this.commentRules=new b;this.rootRules=new b;d&&this.addRules(d,10)},proto:{addRules:function(b,a){var f;"number"==typeof a?f=a:a&&"priority"in a&&(f=a.priority);"number"!=typeof f&&(f=10);"object"!=typeof a&&(a={});b.elementNames&&this.elementNameRules.addMany(b.elementNames,f,a);b.attributeNames&&this.attributeNameRules.addMany(b.attributeNames,f,a);b.elements&&g(this.elementsRules,b.elements,f,a);b.attributes&&g(this.attributesRules,b.attributes,f,a);b.text&&this.textRules.add(b.text,f,a);b.comment&&
this.commentRules.add(b.comment,f,a);b.root&&this.rootRules.add(b.root,f,a)},applyTo:function(b){b.filter(this)},onElementName:function(b,a){return this.elementNameRules.execOnName(b,a)},onAttributeName:function(b,a){return this.attributeNameRules.execOnName(b,a)},onText:function(b,a,f){return this.textRules.exec(b,a,f)},onComment:function(b,a,f){return this.commentRules.exec(b,a,f)},onRoot:function(b,a){return this.rootRules.exec(b,a)},onElement:function(b,a){for(var f=[this.elementsRules["^"],this.elementsRules[a.name],
this.elementsRules.$],g,k=0;3>k;k++)if(g=f[k]){g=g.exec(b,a,this);if(!1===g)return null;if(g&&g!=a)return this.onNode(b,g);if(a.parent&&!a.name)break}return a},onNode:function(b,a){var f=a.type;return f==CKEDITOR.NODE_ELEMENT?this.onElement(b,a):f==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(b,a.value,a)):f==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(b,a.value,a)):null},onAttribute:function(b,a,f,g){return(f=this.attributesRules[f])?f.exec(b,g,a,this):g}}});
CKEDITOR.htmlParser.filterRulesGroup=b;b.prototype={add:function(b,a,f){this.rules.splice(this.findIndex(a),0,{value:b,priority:a,options:f})},addMany:function(b,a,f){for(var g=[this.findIndex(a),0],k=0,l=b.length;k<l;k++)g.push({value:b[k],priority:a,options:f});this.rules.splice.apply(this.rules,g)},findIndex:function(b){for(var a=this.rules,f=a.length-1;0<=f&&b<a[f].priority;)f--;return f+1},exec:function(b,a){var f=a instanceof CKEDITOR.htmlParser.node||a instanceof CKEDITOR.htmlParser.fragment,
g=Array.prototype.slice.call(arguments,1),k=this.rules,l=k.length,e,c,h,n;for(n=0;n<l;n++)if(f&&(e=a.type,c=a.name),h=k[n],!(b.nonEditable&&!h.options.applyToAll||b.nestedEditable&&h.options.excludeNestedEditable)){h=h.value.apply(null,g);if(!1===h||f&&h&&(h.name!=c||h.type!=e))return h;null!=h&&(g[0]=a=h)}return a},execOnName:function(b,a){for(var f=0,g=this.rules,k=g.length,l;a&&f<k;f++)l=g[f],b.nonEditable&&!l.options.applyToAll||b.nestedEditable&&l.options.excludeNestedEditable||(a=a.replace(l.value[0],
l.value[1]));return a}}})();(function(){function b(b,c){function e(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function h(b,c){return function(h){if(h.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var f=[],k=d(h),l,r;if(k)for(g(k,1)&&f.push(k);k;)m(k)&&(l=a(k))&&g(l)&&((r=a(l))&&!m(r)?f.push(l):(e(n).insertAfter(l),l.remove())),k=k.previous;for(k=0;k<f.length;k++)f[k].remove();if(f=!b||!1!==("function"==typeof c?c(h):
c))n||CKEDITOR.env.needsBrFiller||h.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT?n||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||h.name in CKEDITOR.dtd.tr||h.name in CKEDITOR.dtd.$listItem)?(f=d(h),f=!f||"form"==h.name&&"input"==f.name):f=!1:f=!1;f&&h.add(e(b))}}}function g(a,b){if((!n||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&"br"==a.name&&!a.attributes["data-cke-eol"])return!0;var c;return a.type==CKEDITOR.NODE_TEXT&&(c=a.value.match(y))&&(c.index&&((new CKEDITOR.htmlParser.text(a.value.substring(0,
c.index))).insertBefore(a),a.value=c[0]),!CKEDITOR.env.needsBrFiller&&n&&(!b||a.parent.name in r)||!n&&((c=a.previous)&&"br"==c.name||!c||m(c)))?!0:!1}var l={elements:{}},n="html"==c,r=CKEDITOR.tools.extend({},z),A;for(A in r)"#"in B[A]||delete r[A];for(A in r)l.elements[A]=h(n,b.config.fillEmptyBlocks);l.root=h(n,!1);l.elements.br=function(b){return function(c){if(c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var h=c.attributes;if("data-cke-bogus"in h||"data-cke-eol"in h)delete h["data-cke-bogus"];
else{for(h=c.next;h&&f(h);)h=h.next;var d=a(c);!h&&m(c.parent)?k(c.parent,e(b)):m(h)&&d&&!m(d)&&e(b).insertBefore(h)}}}}(n);return l}function g(a,b){return a!=CKEDITOR.ENTER_BR&&!1!==b?a==CKEDITOR.ENTER_DIV?"div":"p":!1}function d(a){for(a=a.children[a.children.length-1];a&&f(a);)a=a.previous;return a}function a(a){for(a=a.previous;a&&f(a);)a=a.previous;return a}function f(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 z||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function k(a,b){var c=a.children[a.children.length-1];a.children.push(b);b.parent=a;c&&(c.next=b,b.previous=c)}function l(a){a=a.attributes;"false"!=a.contenteditable&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function e(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function c(a){return a.replace(G,
function(a,b,c){return"\x3c"+b+c.replace(I,function(a,b){return M.test(b)&&-1==c.indexOf("data-cke-saved-"+b)?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+"\x3e"})}function h(a,b){return a.replace(b,function(a,b,c){0===a.indexOf("\x3ctextarea")&&(a=b+u(c).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(J,function(a,b){return decodeURIComponent(b)})}function r(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,
function(a){return"\x3c!--"+q+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function u(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)})}function p(a,b){var c=b._.dataStore;return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return c&&c[b]||""})}function t(a,b){var c=[],e=b.config.protectedSource,h=b._.dataStore||(b._.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}"+(c.push(a)-1)+"--\x3e"});for(var d=0;d<e.length;d++)a=a.replace(e[d],function(a){a=a.replace(f,function(a,b,e){return c[e]});return/cke_temp(comment)?/.test(a)?a:"\x3c!--{cke_temp}"+(c.push(a)-1)+"--\x3e"});a=a.replace(f,function(a,b,e){return"\x3c!--"+q+(b?"{C}":
"")+encodeURIComponent(c[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,b){h[h.id]=decodeURIComponent(b);return"{cke_protected_"+h.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,c,e,h){return"\x3c"+c+e+"\x3e"+p(u(h),b)+"\x3c/"+c+"\x3e"})}var v;CKEDITOR.htmlDataProcessor=function(a){var e,
f,d=this;this.editor=a;this.dataFilter=e=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;e.addRules(A);e.addRules(C,{applyToAll:!0});e.addRules(b(a,"data"),{applyToAll:!0});f.addRules(D);f.addRules(F,{applyToAll:!0});f.addRules(b(a,"html"),{applyToAll:!0});a.on("toHtml",function(b){b=b.data;var e=b.dataValue,f,e=v(e),e=t(e,a),e=h(e,R),e=c(e),e=h(e,E),e=e.replace(L,"$1cke:$2"),e=e.replace(N,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),
e=e.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),e=e.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");f=b.context||a.editable().getName();var d;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==f&&(f="div",e="\x3cpre\x3e"+e+"\x3c/pre\x3e",d=1);f=a.document.createElement(f);f.setHtml("a"+e);e=f.getHtml().substr(1);e=e.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");d&&(e=e.replace(/^<pre>|<\/pre>$/gi,""));e=e.replace(Q,"$1$2");e=n(e);e=u(e);f=!1===b.fixForBody?!1:
g(b.enterMode,a.config.autoParagraph);e=CKEDITOR.htmlParser.fragment.fromHtml(e,b.context,f);f&&(d=e,!d.children.length&&CKEDITOR.dtd[d.name][f]&&(f=new CKEDITOR.htmlParser.element(f),d.add(f)));b.dataValue=e},null,null,5);a.on("toHtml",function(b){b.data.filter.applyTo(b.data.dataValue,!0,b.data.dontFilter,b.data.enterMode)&&a.fire("dataFiltered")},null,null,6);a.on("toHtml",function(a){a.data.dataValue.filterChildren(d.dataFilter,!0)},null,null,10);a.on("toHtml",function(a){a=a.data;var b=a.dataValue,
c=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(c);b=c.getHtml(!0);a.dataValue=r(b)},null,null,15);a.on("toDataFormat",function(b){var c=b.data.dataValue;b.data.enterMode!=CKEDITOR.ENTER_BR&&(c=c.replace(/^<br *\/?>/i,""));b.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,b.data.context,g(b.data.enterMode,a.config.autoParagraph))},null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(d.htmlFilter,!0)},null,null,10);a.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,
!1,!0)},null,null,11);a.on("toDataFormat",function(b){var c=b.data.dataValue,e=d.writer;e.reset();c.writeChildrenHtml(e);c=e.getHtml(!0);c=u(c);c=p(c,a);b.data.dataValue=c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,c,e){var h=this.editor,f,d,k,g;b&&"object"==typeof b?(f=b.context,c=b.fixForBody,e=b.dontFilter,d=b.filter,k=b.enterMode,g=b.protectedWhitespaces):f=b;f||null===f||(f=h.editable().getName());return h.fire("toHtml",{dataValue:a,context:f,fixForBody:c,dontFilter:e,
filter:d||h.filter,enterMode:k||h.enterMode,protectedWhitespaces:g}).dataValue},toDataFormat:function(a,b){var c,e,h;b&&(c=b.context,e=b.filter,h=b.enterMode);c||null===c||(c=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:e||this.editor.filter,context:c,enterMode:h||this.editor.enterMode}).dataValue},protectSource:function(a){return t(a,this.editor)},unprotectSource:function(a){return p(a,this.editor)},unprotectRealComments:function(a){return u(a)}};var y=
/(?:&nbsp;|\xa0)$/,q="{cke_protected}",B=CKEDITOR.dtd,w="caption colgroup col thead tfoot tbody".split(" "),z=CKEDITOR.tools.extend({},B.$blockLimit,B.$block),A={elements:{input:l,textarea:l}},C={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 b=a.attributes.src.toLowerCase().replace(/[^a-z]/gi,"");if(0===b.indexOf("javascript")||0===b.indexOf("data"))a.attributes["data-cke-pa-src"]=
a.attributes.src,delete a.attributes.src}}}},D={elements:{embed:function(a){var b=a.parent;if(b&&"object"==b.name){var c=b.attributes.width,b=b.attributes.height;c&&(a.attributes.width=c);b&&(a.attributes.height=b)}},a:function(a){var b=a.attributes;if(!(a.children.length||b.name||b.id||a.attributes["data-cke-saved-name"]))return!1}}},F={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var b=
a.attributes;if(b){if(b["data-cke-temp"])return!1;for(var c=["name","href","src"],e,h=0;h<c.length;h++)e="data-cke-saved-"+c[h],e in b&&delete b[c[h]]}return a},table:function(a){a.children.slice(0).sort(function(a,b){var c,e;a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type&&(c=CKEDITOR.tools.indexOf(w,a.name),e=CKEDITOR.tools.indexOf(w,b.name));-1<c&&-1<e&&c!=e||(c=a.parent?a.getIndex():-1,e=b.parent?b.getIndex():-1);return c>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 b=a.children[0];b&&b.value&&(b.value=CKEDITOR.tools.trim(b.value));a.attributes.type||(a.attributes.type="text/css")},title:function(a){var b=a.children[0];!b&&k(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""},input:e,textarea:e},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,
""))||!1}}};CKEDITOR.env.ie&&(F.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})});var G=/<(a|area|img|input|source)\b([^>]*)>/gi,I=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,M=/^(href|src|name)$/i,E=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,R=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,J=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,L=/(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi,
Q=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,N=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;v=function(){function a(c){return CKEDITOR.tools.array.reduce(c.split(""),function(a,c){var e=c.toLowerCase(),h=c.toUpperCase(),f=b(e);e!==h&&(f+="|"+b(h));return a+("("+f+")")},"")}function b(a){var c;c=a.charCodeAt(0);var e=c.toString(16);c={htmlCode:"\x26#"+c+";?",hex:"\x26#x0*"+e+";?",entity:{"\x3c":"\x26lt;","\x3e":"\x26gt;",":":"\x26colon;"}[a]};for(var h in c)c[h]&&(a+="|"+c[h]);return a}var c=
new RegExp("("+a("\x3ccke:encoded\x3e")+"(.*?)"+a("\x3c/cke:encoded\x3e")+")|("+a("\x3c")+a("/")+"?"+a("cke:encoded\x3e")+")","gi"),e=new RegExp("(("+a("{cke_protected")+")(_[0-9]*)?"+a("}")+")","gi");return function(a){return a.replace(c,"").replace(e,"")}}()})();"use strict";CKEDITOR.htmlParser.element=function(b,g){this.name=b;this.attributes=g||{};this.children=[];var d=b||"",a=d.match(/^cke:(.*)/);a&&(d=a[1]);d=!!(CKEDITOR.dtd.$nonBodyContent[d]||CKEDITOR.dtd.$block[d]||CKEDITOR.dtd.$listItem[d]||
CKEDITOR.dtd.$tableContent[d]||CKEDITOR.dtd.$nonEditable[d]||"br"==d);this.isEmpty=!!CKEDITOR.dtd.$empty[b];this.isUnknown=!CKEDITOR.dtd[b];this._={isBlockLike:d,hasInlineStarted:this.isEmpty||!d}};CKEDITOR.htmlParser.cssStyle=function(b){var g={};((b instanceof CKEDITOR.htmlParser.element?b.attributes.style:b)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,a,f){"font-family"==a&&(f=f.replace(/["']/g,""));g[a.toLowerCase()]=f});return{rules:g,populate:function(b){var a=
this.toString();a&&(b instanceof CKEDITOR.dom.element?b.setAttribute("style",a):b instanceof CKEDITOR.htmlParser.element?b.attributes.style=a:b.style=a)},toString:function(){var b=[],a;for(a in g)g[a]&&b.push(a,":",g[a],";");return b.join("")}}};(function(){function b(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof a?b.name==a:b.name in a)}}var g=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},d=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=
CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:d.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,b){var d=this,k,g;b=d.getFilterContext(b);if(!d.parent)a.onRoot(b,d);for(;;){k=d.name;if(!(g=a.onElementName(b,k)))return this.remove(),!1;d.name=g;if(!(d=a.onElement(b,d)))return this.remove(),!1;if(d!==this)return this.replaceWith(d),!1;if(d.name==k)break;if(d.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(d),
!1;if(!d.name)return this.replaceWithChildren(),!1}k=d.attributes;var e,c;for(e in k){for(g=k[e];;)if(c=a.onAttributeName(b,e))if(c!=e)delete k[e],e=c;else break;else{delete k[e];break}c&&(!1===(g=a.onAttribute(b,d,c,g))?delete k[c]:k[c]=g)}d.isEmpty||this.filterChildren(a,!1,b);return!0},filterChildren:d.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var d=this.name,k=[],l=this.attributes,e,c;a.openTag(d,l);for(e in l)k.push([e,l[e]]);a.sortAttributes&&k.sort(g);e=0;for(c=k.length;e<c;e++)l=
k[e],a.attribute(l[0],l[1]);a.openTagClose(d,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(d)},writeChildrenHtml:d.writeChildrenHtml,replaceWithChildren:function(){for(var a=this.children,b=a.length;b;)a[--b].insertAfter(this);this.remove()},forEach:d.forEach,getFirst:function(a){if(!a)return this.children.length?this.children[0]:null;"function"!=typeof a&&(a=b(a));for(var f=0,d=this.children.length;f<d;++f)if(a(this.children[f]))return this.children[f];return null},getHtml:function(){var a=
new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children;for(var b=0,d=a.length;b<d;++b)a[b].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var b=this.children.splice(a,this.children.length-a),d=this.clone(),k=0;k<b.length;++k)b[k].parent=d;d.children=b;b[0]&&(b[0].previous=null);0<a&&(this.children[a-
1].next=null);this.parent.add(d,this.getIndex()+1);return d},find:function(a,b){void 0===b&&(b=!1);var d=[],k;for(k=0;k<this.children.length;k++){var g=this.children[k];"function"==typeof a&&a(g)?d.push(g):"string"==typeof a&&g.name===a&&d.push(g);b&&g.find&&(d=d.concat(g.find(a,b)))}return d},findOne:function(a,b){var d=null,k=CKEDITOR.tools.array.find(this.children,function(k){var e="function"===typeof a?a(k):k.name===a;if(e||!b)return e;k.children&&k.findOne&&(d=k.findOne(a,!0));return!!d});return d||
k||null},addClass:function(a){if(!this.hasClass(a)){var b=this.attributes["class"]||"";this.attributes["class"]=b+(b?" ":"")+a}},removeClass:function(a){var b=this.attributes["class"];b&&((b=CKEDITOR.tools.trim(b.replace(new RegExp("(?:\\s+|^)"+a+"(?:\\s+|$)")," ")))?this.attributes["class"]=b:delete this.attributes["class"])},hasClass:function(a){var b=this.attributes["class"];return b?(new RegExp("(?:^|\\s)"+a+"(?\x3d\\s|$)")).test(b):!1},getFilterContext:function(a){var b=[];a||(a={nonEditable:!1,
nestedEditable:!1});a.nonEditable||"false"!=this.attributes.contenteditable?a.nonEditable&&!a.nestedEditable&&"true"==this.attributes.contenteditable&&b.push("nestedEditable",!0):b.push("nonEditable",!0);if(b.length){a=CKEDITOR.tools.copy(a);for(var d=0;d<b.length;d+=2)a[b[d]]=b[d+1]}return a}},!0)})();(function(){var b=/{([^}]+)}/g;CKEDITOR.template=function(b){this.source="function"===typeof b?b:String(b)};CKEDITOR.template.prototype.output=function(g,d){var a=("function"===typeof this.source?this.source(g):
this.source).replace(b,function(a,b){return void 0!==g[b]?g[b]:a});return d?d.push(a):a}})();delete CKEDITOR.loadFullCore;CKEDITOR.instances={};CKEDITOR.document=new CKEDITOR.dom.document(document);CKEDITOR.add=function(b){function g(){CKEDITOR.currentInstance==b&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}CKEDITOR.instances[b.name]=b;b.on("focus",function(){CKEDITOR.currentInstance!=b&&(CKEDITOR.currentInstance=b,CKEDITOR.fire("currentInstance"))});b.on("blur",g);b.on("destroy",
g);CKEDITOR.fire("instance",null,b)};CKEDITOR.remove=function(b){delete CKEDITOR.instances[b.name]};(function(){var b={};CKEDITOR.addTemplate=function(g,d){var a=b[g];if(a)return a;a={name:g,source:d};CKEDITOR.fire("template",a);return b[g]=new CKEDITOR.template(a.source)};CKEDITOR.getTemplate=function(g){return b[g]}})();(function(){var b=[];CKEDITOR.addCss=function(g){b.push(g)};CKEDITOR.getCss=function(){return b.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(b,g){b=CKEDITOR.editor._getEditorElement(b);if(!b)return null;var d=new CKEDITOR.editor(g,b,CKEDITOR.ELEMENT_MODE_INLINE),a=b.is("textarea")?b:null;a?(d.setData(a.getValue(),null,!0),b=CKEDITOR.dom.element.createFromHtml('\x3cdiv contenteditable\x3d"'+!!d.readOnly+'" class\x3d"cke_textarea_inline"\x3e'+a.getValue()+"\x3c/div\x3e",CKEDITOR.document),b.insertAfter(a),
a.hide(),a.$.form&&d._attachToForm()):(g&&"undefined"!==typeof g.readOnly&&!g.readOnly&&b.setAttribute("contenteditable","true"),d.setData(b.getHtml(),null,!0));d.on("loaded",function(){d.fire("uiReady");d.editable(b);d.container=b;d.ui.contentsElement=b;d.setData(d.getData(1));d.resetDirty();d.fire("contentDom");d.mode="wysiwyg";d.fire("mode");d.status="ready";d.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,d)},null,null,1E4);d.on("destroy",function(){var b=d.container;a&&b&&(b.clearCustomData(),
b.remove());a&&a.show();d.element.clearCustomData();delete d.element});return d};CKEDITOR.inlineAll=function(){var b,g,d;for(d in CKEDITOR.dtd.$editable)for(var a=CKEDITOR.document.getElementsByTag(d),f=0,m=a.count();f<m;f++)b=a.getItem(f),"true"!=b.getAttribute("contenteditable")||b.getEditor()||(g={element:b,config:{}},!1!==CKEDITOR.fire("inline",g)&&CKEDITOR.inline(b,g.config))};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})})();CKEDITOR.replaceClass="ckeditor";
(function(){function b(a,b,m,k){a=CKEDITOR.editor._getEditorElement(a);if(!a)return null;var l=new CKEDITOR.editor(b,a,k);k==CKEDITOR.ELEMENT_MODE_REPLACE&&(a.setStyle("visibility","hidden"),l._.required=a.hasAttribute("required"),a.removeAttribute("required"));m&&l.setData(m,null,!0);l.on("loaded",function(){l.isDestroyed()||l.isDetached()||(d(l),k==CKEDITOR.ELEMENT_MODE_REPLACE&&l.config.autoUpdateElement&&a.$.form&&l._attachToForm(),l.setMode(l.config.startupMode,function(){l.resetDirty();l.status=
"ready";l.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,l)}))});l.on("destroy",g);return l}function g(){var a=this.container,b=this.element;a&&(a.clearCustomData(),a.remove());b&&(b.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(b.show(),this._.required&&b.setAttribute("required","required")),delete this.element)}function d(a){var b=a.name,d=a.element,k=a.elementMode,g=a.fire("uiSpace",{space:"top",html:""}).html,e=a.fire("uiSpace",{space:"bottom",html:""}).html,
c=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"'+(a.title?' aria-labelledby\x3d"cke_{name}_arialbl"':"")+"\x3e"+(a.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'),
b=CKEDITOR.dom.element.createFromHtml(c.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:g?'\x3cspan id\x3d"'+a.ui.spaceId("top")+'" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e'+g+"\x3c/span\x3e":"",contentId:a.ui.spaceId("contents"),bottomHtml:e?'\x3cspan id\x3d"'+a.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+e+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));k==CKEDITOR.ELEMENT_MODE_REPLACE?
(d.hide(),b.insertAfter(d)):d.append(b);a.container=b;a.ui.contentsElement=a.ui.space("contents");g&&a.ui.space("top").unselectable();e&&a.ui.space("bottom").unselectable();d=a.config.width;k=a.config.height;d&&b.setStyle("width",CKEDITOR.tools.cssLength(d));k&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(k));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(a,f){return b(a,f,null,CKEDITOR.ELEMENT_MODE_REPLACE)};
CKEDITOR.appendTo=function(a,f,d){return b(a,f,d,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),b=0;b<a.length;b++){var d=null,k=a[b];if(k.name||k.id){if("string"==typeof arguments[0]){if(!(new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)")).test(k.className))continue}else if("function"==typeof arguments[0]&&(d={},!1===arguments[0](k,d)))continue;this.replace(k,d)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes=
{}))[a]=b};CKEDITOR.editor.prototype.setMode=function(a,b){var d=this,k=this._.modes;if(a!=d.mode&&k&&k[a]){d.fire("beforeSetMode",a);if(d.mode){var g=d.checkDirty(),k=d._.previousModeData,e,c=0;d.fire("beforeModeUnload");d.editable(0);d._.previousMode=d.mode;d._.previousModeData=e=d.getData(1);"source"==d.mode&&k==e&&(d.fire("lockSnapshot",{forceUpdate:!0}),c=1);d.ui.space("contents").setHtml("");d.mode=""}else d._.previousModeData=d.getData(1);this._.modes[a](function(){d.mode=a;void 0!==g&&!g&&
d.resetDirty();c?d.fire("unlockSnapshot"):"wysiwyg"==a&&d.fire("saveSnapshot");setTimeout(function(){d.isDestroyed()||d.isDetached()||(d.fire("mode"),b&&b.call(d))},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,d,k){var g=this.container,e=this.ui.space("contents"),c=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;k=k?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):g;if(a||0===a)a=CKEDITOR.tools.convertToPx(CKEDITOR.tools.cssLength(a));
k.setSize("width",a,!0);c&&(c.style.width="1%");b=CKEDITOR.tools.convertToPx(CKEDITOR.tools.cssLength(b));var h=(k.$.offsetHeight||0)-(e.$.clientHeight||0),g=Math.max(b-(d?0:h),0);b=d?b+h:b;e.setStyle("height",CKEDITOR.tools.cssLength(g));c&&(c.style.width="100%");this.fire("resize",{outerHeight:b,contentsHeight:g,outerWidth:a||k.getSize("width")})};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&
CKEDITOR.replaceAll(CKEDITOR.replaceClass)})})();CKEDITOR.config.startupMode="wysiwyg";(function(){function b(b){var c=b.editor,e=b.data.path,h=e.blockLimit,f=b.data.selection,d=f.getRanges()[0],l;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(f=g(f,e))f.appendBogus(),l=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.edge&&c._.previousActive;k(c,e.block,h)&&d.collapsed&&!d.getCommonAncestor().isReadOnly()&&(e=d.clone(),e.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),h=new CKEDITOR.dom.walker(e),
h.guard=function(b){return!a(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()},!h.checkForward()||e.checkStartOfBlock()&&e.checkEndOfBlock())&&(c=d.fixBlock(!0,c.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(c=c.getFirst(a))&&c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()).match(/^(?:&nbsp;|\xa0)$/)&&c.remove(),l=1,b.cancel());l&&d.select()}function g(b,c){if(b.isFake)return 0;var e=c.block||c.blockLimit,h=e&&e.getLast(a);if(!(!e||!e.isBlockBoundary()||
h&&h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary()||e.is("pre")||e.getBogus()))return e}function d(a){var b=a.data.getTarget();b.is("input")&&(b=b.getAttribute("type"),"submit"!=b&&"reset"!=b||a.data.preventDefault())}function a(a){return n(a)&&r(a)}function f(a,b){return function(c){var e=c.data.$.toElement||c.data.$.fromElement||c.data.$.relatedTarget;(e=e&&e.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(e):null)&&(b.equals(e)||b.contains(e))||a.call(this,c)}}function m(b){function c(b){return function(c,
h){h&&c.type==CKEDITOR.NODE_ELEMENT&&c.is(f)&&(e=c);if(!(h||!a(c)||b&&p(c)))return!1}}var e,h=b.getRanges()[0];b=b.root;var f={table:1,ul:1,ol:1,dl:1};if(h.startPath().contains(f)){var d=h.clone();d.collapse(1);d.setStartAt(b,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(d);b.guard=c();b.checkBackward();if(e)return d=h.clone(),d.collapse(),d.setEndAt(e,CKEDITOR.POSITION_AFTER_END),b=new CKEDITOR.dom.walker(d),b.guard=c(!0),e=!1,b.checkForward(),e}return null}function k(a,b,c){return!1!==
a.config.autoParagraph&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(c)&&!b||b&&"true"==b.getAttribute("contenteditable"))}function l(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==a.config.autoParagraph?a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":!1}function e(a){a&&a.isEmptyInlineRemoveable()&&a.remove()}function c(a){var b=a.editor;b.getSelection().scrollIntoView();setTimeout(function(){b.fire("saveSnapshot")},0)}function h(a,b,c){var e=a.getCommonAncestor(b);for(b=a=c?
b:a;(a=a.getParent())&&!e.equals(a)&&1==a.getChildCount();)b=a;b.remove()}var n,r,u,p,t,v,y,q,B,w;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);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 b=this.$.scrollTop;this.$.focus();this.$.scrollTop=b}else this.$.focus();else this.$.setActive()}catch(c){if(!CKEDITOR.env.ie)throw c;}CKEDITOR.env.safari&&!this.isInline()&&(a=CKEDITOR.document.getActive(),a.equals(this.getWindow().getFrame())||this.getWindow().focus())},
on:function(a,b){var c=Array.prototype.slice.call(arguments,0);CKEDITOR.env.ie&&/^focus|blur$/.exec(a)&&(a="focus"==a?"focusin":"focusout",b=f(b,this),c[0]=a,c[1]=b);return CKEDITOR.dom.element.prototype.on.apply(this,c)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var b=Array.prototype.slice.call(arguments,1),b=a.on.apply(a,b);this._.listeners.push(b);return b},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=
this._.attrChanges,b,c;for(c in a)a.hasOwnProperty(c)&&(b=a[c],null!==b?this.setAttribute(c,b):this.removeAttribute(c))},attachClass:function(a){var b=this.getCustomData("classes");this.hasClass(a)||(!b&&(b=[]),b.push(a),this.setCustomData("classes",b),this.addClass(a))},changeAttr:function(a,b){var c=this.getAttribute(a);b!==c&&(!this._.attrChanges&&(this._.attrChanges={}),a in this._.attrChanges||(this._.attrChanges[a]=c),this.setAttribute(a,b))},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),
"text")},transformPlainTextToHtml:function(a){var b=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,b)},insertHtml:function(a,b,e){var h=this.editor;h.focus();h.fire("saveSnapshot");e||(e=h.getSelection().getRanges()[0]);v(this,b||"html",a,e);e.select();c(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,b,c){v(this,c||"html",a,b);this.editor.fire("afterInsertHtml",
{intoRange:b})},insertElement:function(b,e){var h=this.editor;h.focus();h.fire("saveSnapshot");var f=h.activeEnterMode,h=h.getSelection(),d=b.getName(),d=CKEDITOR.dtd.$block[d];e||(e=h.getRanges()[0]);this.insertElementIntoRange(b,e)&&(e.moveToPosition(b,CKEDITOR.POSITION_AFTER_END),d&&((d=b.getNext(function(b){return a(b)&&!p(b)}))&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$block)?d.getDtd()["#"]?e.moveToElementEditStart(d):e.moveToElementEditEnd(b):d||f==CKEDITOR.ENTER_BR||(d=e.fixBlock(!0,
f==CKEDITOR.ENTER_DIV?"div":"p"),e.moveToElementEditStart(d))));h.selectRanges([e]);c(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,b){var c=this.editor,h=c.config.enterMode,f=a.getName(),d=CKEDITOR.dtd.$block[f];if(b.checkReadOnly())return!1;b.deleteContents(1);b.startContainer.type==CKEDITOR.NODE_ELEMENT&&(b.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?y(b):b.startContainer.is(CKEDITOR.dtd.$list)&&q(b));var k,g;if(d)for(;(k=b.getCommonAncestor(0,
1))&&(g=CKEDITOR.dtd[k.getName()])&&(!g||!g[f]);)if(k.getName()in CKEDITOR.dtd.span){var d=b.splitElement(k),l=b.createBookmark();e(k);e(d);b.moveToBookmark(l)}else b.checkStartOfBlock()&&b.checkEndOfBlock()?(b.setStartBefore(k),b.collapse(!0),k.remove()):b.splitBlock(h==CKEDITOR.ENTER_DIV?"div":"p",c.editable());b.insertNode(a);return!0},setData:function(a,b){b||(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 b=this.getHtml();a||(b=this.editor.dataProcessor.toDataFormat(b));return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.status="detached";this.editor.setData(this.editor.getData(),{internal:!0});this.clearListeners();try{this._.cleanCustomData()}catch(a){if(!CKEDITOR.env.ie||-2146828218!==a.number)throw a;}this.editor.fire("contentDomUnload");delete this.editor.document;delete this.editor.window;delete this.editor},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},
fixInitialSelection:function(){function a(){var b=c.getDocument().$,e=b.getSelection(),h;a:if(e.anchorNode&&e.anchorNode==c.$)h=!0;else{if(CKEDITOR.env.webkit&&(h=c.getDocument().getActive())&&h.equals(c)&&!e.anchorNode){h=!0;break a}h=void 0}h&&(h=new CKEDITOR.dom.range(c),h.moveToElementEditStart(c),b=b.createRange(),b.setStart(h.startContainer.$,h.startOffset),b.collapse(!0),e.removeAllRanges(),e.addRange(b))}function b(){var a=c.getDocument().$,e=a.selection,h=c.getDocument().getActive();"None"==
e.type&&h.equals(c)&&(e=new CKEDITOR.dom.range(c),a=a.body.createTextRange(),e.moveToElementEditStart(c),e=e.startContainer,e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),a.moveToElementText(e.$),a.collapse(!0),a.select())}var c=this;if(CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks))this.hasFocus&&(this.focus(),b());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()};B.eol.detect(a,this);B.bogus.exclude(a);B.cell.shrink(a);a.fragment=a.range.cloneContents();B.tree.rebuild(a,this);B.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,b){var c=w,e={range:a,doc:a.document},h=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),h;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);c.table.detectPurge(e);e.bookmark=a.createBookmark();delete e.range;var f=this.editor.createRange();
f.moveToPosition(e.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);e.targetBookmark=f.createBookmark();c.list.detectMerge(e,this);c.table.detectRanges(e,this);c.block.detectMerge(e,this);e.tableContentsRanges?(c.table.deleteRanges(e),a.moveToBookmark(e.bookmark),e.range=a):(a.moveToBookmark(e.bookmark),e.range=a,a.extractContents(c.detectExtractMerge(e)));a.moveToBookmark(e.targetBookmark);a.optimize();c.fixUneditableRangePosition(a);c.list.merge(e,this);c.table.purge(e,this);c.block.merge(e,this);
if(b){c=a.startPath();if(e=a.checkStartOfBlock()&&a.checkEndOfBlock()&&c.block&&!a.root.equals(c.block)){a:{var e=c.block.getElementsByTag("span"),f=0,d;if(e)for(;d=e.getItem(f++);)if(!r(d)){e=!0;break a}e=!1}e=!e}e&&(a.moveToPosition(c.block,CKEDITOR.POSITION_BEFORE_START),c.block.remove())}else c.autoParagraph(this.editor,a),u(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return h},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(t,function(a,b){return b}));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 e=b.document;this.changeAttr("spellcheck",
!b.config.disableNativeSpellChecker);var f=b.config.contentsLangDirection;this.getDirection(1)!=f&&this.changeAttr("dir",f);var k=CKEDITOR.getCss();if(k){var f=e.getHead(),g=f.getCustomData("stylesheet");g?k!=g.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?g.$.styleSheet.cssText=k:g.setText(k)):(k=e.appendStyleText(k),k=new CKEDITOR.dom.element(k.ownerNode||k.owningElement),f.setCustomData("stylesheet",k),k.data("cke-temp",1))}f=e.getCustomData("stylesheet_ref")||0;e.setCustomData("stylesheet_ref",
f+1);this.setCustomData("cke_includeReadonly",!b.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){a=a.data;var b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");b&&2!=a.$.button&&b.isReadOnly()&&a.preventDefault()});var l={8:1,46:1};this.attachListener(b,"key",function(a){if(b.readOnly)return!0;var c=a.data.domEvent.getKey(),e;a=b.getSelection();if(0!==a.getRanges().length){if(c in l){var h,f=a.getRanges()[0],d=f.startPath(),k,g,r,c=8==c;CKEDITOR.env.ie&&
11>CKEDITOR.env.version&&(h=a.getSelectedElement())||(h=m(a))?(b.fire("saveSnapshot"),f.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START),h.remove(),f.select(),b.fire("saveSnapshot"),e=1):f.collapsed&&((k=d.block)&&(r=k[c?"getPrevious":"getNext"](n))&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("table")&&f[c?"checkStartOfBlock":"checkEndOfBlock"]()?(b.fire("saveSnapshot"),f[c?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove(),f["moveToElementEdit"+(c?"End":"Start")](r),f.select(),b.fire("saveSnapshot"),
e=1):d.blockLimit&&d.blockLimit.is("td")&&(g=d.blockLimit.getAscendant("table"))&&f.checkBoundaryOfElement(g,c?CKEDITOR.START:CKEDITOR.END)&&(r=g[c?"getPrevious":"getNext"](n))?(b.fire("saveSnapshot"),f["moveToElementEdit"+(c?"End":"Start")](r),f.checkStartOfBlock()&&f.checkEndOfBlock()?r.remove():f.select(),b.fire("saveSnapshot"),e=1):(g=d.contains(["td","th","caption"]))&&f.checkBoundaryOfElement(g,c?CKEDITOR.START:CKEDITOR.END)&&(e=1))}return!e}});b.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&
this.attachListener(this,"keyup",function(c){c.data.getKeystroke()in l&&!this.getFirst(a)&&(this.appendBogus(),c=b.createRange(),c.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),c.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",d);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(a){var c=a.data.getTarget();c.is("img","hr",
"input","textarea","select")&&!c.isReadOnly()&&(b.getSelection().selectElement(c),c.is("input","textarea","select")&&a.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(a){(a=a.data.getTarget())&&a.is("img")&&!a.isReadOnly()&&b.getSelection().selectElement(a)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(a){if(2==a.data.$.button&&(a=a.data.getTarget(),!a.getAscendant("table")&&!a.getOuterHtml().replace(t,""))){var c=b.createRange();c.moveToElementEditStart(a);
c.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"](!0)&&e.moveToClosestEditablePosition(f,!c)&&e.collapsed){if(e.startContainer.type==CKEDITOR.NODE_ELEMENT){var d=e.startContainer.getChild(e.startOffset-(c?1:0));if(d&&d.type==CKEDITOR.NODE_ELEMENT&&d.is("hr")){b.fire("saveSnapshot");d.remove();a=!0;break a}}e=e.startPath().block;if(!e||e&&e.contains(f))a=void 0;else{b.fire("saveSnapshot");var k;(k=(c?e:f).getBogus())&&k.remove();k=b.getSelection();d=k.createBookmarks();(c?f:e).moveChildren(c?
e:f,!1);a.lastElement.mergeSiblings();h(f,e,!c);k.selectBookmarks(d);a=!0}}else a=!1}else c=e,k=a.block,e=c.endPath().block,k&&e&&!k.equals(e)?(b.fire("saveSnapshot"),(f=k.getBogus())&&f.remove(),c.enlarge(CKEDITOR.ENLARGE_INLINE),c.deleteContents(),e.getParent()&&(e.moveChildren(k,!1),a.lastElement.mergeSiblings(),h(k,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)}},getUniqueId:function(){var a;try{this._.expandoNumber=a=CKEDITOR.dom.domObject.prototype.getUniqueId.call(this)}catch(b){a=this._&&this._.expandoNumber}return a}},_:{cleanCustomData:function(){this.removeClass("cke_editable");this.restoreAttrs();for(var a=this.removeCustomData("classes");a&&a.length;)this.removeClass(a.pop());if(!this.is("textarea")){var a=this.getDocument(),b=a.getHead();if(b.getCustomData("stylesheet")){var c=a.getCustomData("stylesheet_ref");
--c?a.setCustomData("stylesheet_ref",c):(a.removeCustomData("stylesheet_ref"),b.removeCustomData("stylesheet").remove())}}}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(!arguments.length)return b;a?b=a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(b&&b.detach(),b=null);return this._.editable=b};CKEDITOR.on("instanceLoaded",function(a){var c=a.editor;c.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))});c.on("selectionChange",function(a){if(!c.readOnly){var e=c.getSelection();e&&!e.isLocked&&(e=c.checkDirty(),c.fire("lockSnapshot"),b(a),c.fire("unlockSnapshot"),!e&&c.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var c=b.title;a.changeAttr("role",
"textbox");a.changeAttr("aria-multiline","true");a.changeAttr("aria-label",c);c&&a.changeAttr("title",c);var e=b.fire("ariaEditorHelpLabel",{}).label;if(e&&(c=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var h=CKEDITOR.tools.getNextId(),e=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+h+'" class\x3d"cke_voice_label"\x3e'+e+"\x3c/span\x3e");c.append(e);a.changeAttr("aria-describedby",h)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");
n=CKEDITOR.dom.walker.whitespaces(!0);r=CKEDITOR.dom.walker.bookmark(!1,!0);u=CKEDITOR.dom.walker.empty();p=CKEDITOR.dom.walker.bogus();t=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;v=function(){function b(a){return a.type==CKEDITOR.NODE_ELEMENT}function c(a,e){var h,f,d,k,g=[],l=e.range.startContainer;h=e.range.startPath();for(var l=n[l.getName()],m=0,r=a.getChildren(),v=r.count(),q=-1,u=-1,y=0,t=h.contains(n.$list);m<
v;++m)h=r.getItem(m),b(h)?(d=h.getName(),t&&d in CKEDITOR.dtd.$list?g=g.concat(c(h,e)):(k=!!l[d],"br"!=d||!h.data("cke-eol")||m&&m!=v-1||(y=(f=m?g[m-1].node:r.getItem(m+1))&&(!b(f)||!f.is("br")),f=f&&b(f)&&n.$block[f.getName()]),-1!=q||k||(q=m),k||(u=m),g.push({isElement:1,isLineBreak:y,isBlock:h.isBlockBoundary(),hasBlockSibling:f,node:h,name:d,allowed:k}),f=y=0)):g.push({isElement:0,node:h,allowed:1});-1<q&&(g[q].firstNotAllowed=1);-1<u&&(g[u].lastNotAllowed=1);return g}function h(a,c){var e=[],
f=a.getChildren(),d=f.count(),k,g=0,l=n[c],m=!a.is(n.$inline)||a.is("br");for(m&&e.push(" ");g<d;g++)k=f.getItem(g),b(k)&&!k.is(l)?e=e.concat(h(k,c)):e.push(k);m&&e.push(" ");return e}function f(a){return b(a.startContainer)&&a.startContainer.getChild(a.startOffset-1)}function d(a){return a&&b(a)&&(a.is(n.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function g(a,c,e,h){var f=a.clone(),d,k;f.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);(d=(new CKEDITOR.dom.walker(f)).next())&&b(d)&&r[d.getName()]&&
(k=d.getPrevious())&&b(k)&&!k.getParent().equals(a.startContainer)&&e.contains(k)&&h.contains(d)&&d.isIdentical(k)&&(d.moveChildren(k),d.remove(),g(a,c,e,h))}function m(a,c){function e(a,c){if(c.isBlock&&c.isElement&&!c.node.is("br")&&b(a)&&a.is("br"))return a.remove(),1}var h=c.endContainer.getChild(c.endOffset),f=c.endContainer.getChild(c.endOffset-1);h&&e(h,a[a.length-1]);f&&e(f,a[0])&&(c.setEnd(c.endContainer,c.endOffset-1),c.collapse())}var n=CKEDITOR.dtd,r={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},v={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},q=CKEDITOR.tools.extend({},n.$inline);delete q.br;return function(r,u,N,K){var y=r.editor,p=!1,w;"unfiltered_html"==u&&(u="html",p=!0);if(!K.checkReadOnly()){var B=(new CKEDITOR.dom.elementPath(K.startContainer,K.root)).blockLimit||K.root;u={type:u,dontFilter:p,editable:r,editor:y,range:K,blockLimit:B,mergeCandidates:[],zombies:[]};var p=u.range,B=u.mergeCandidates,E="html"===u.type,x,V,W,ba,ca;"text"==u.type&&
p.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(V=CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",p.document),p.insertNode(V),p.setStartAfter(V));W=new CKEDITOR.dom.elementPath(p.startContainer);u.endPath=ba=new CKEDITOR.dom.elementPath(p.endContainer);if(!p.collapsed){x=ba.block||ba.blockLimit;var da=p.getCommonAncestor();x&&!x.equals(da)&&!x.contains(da)&&p.checkEndOfBlock()&&u.zombies.push(x);p.deleteContents()}for(;(ca=f(p))&&b(ca)&&ca.isBlockBoundary()&&W.contains(ca);)p.moveToPosition(ca,
CKEDITOR.POSITION_BEFORE_END);g(p,u.blockLimit,W,ba);V&&(p.setEndBefore(V),p.collapse(),V.remove());V=p.startPath();if(x=V.contains(d,!1,1))w=p.splitElement(x),u.inlineStylesRoot=x,u.inlineStylesPeak=V.lastElement;V=p.createBookmark();E&&(e(x),e(w));(x=V.startNode.getPrevious(a))&&b(x)&&d(x)&&B.push(x);(x=V.startNode.getNext(a))&&b(x)&&d(x)&&B.push(x);for(x=V.startNode;(x=x.getParent())&&d(x);)B.push(x);p.moveToBookmark(V);w=r.getHtml();w=""===w||w.match(t);y.enterMode===CKEDITOR.ENTER_DIV&&w&&((y=
r.getFirst())&&y.remove(),K.setStartAt(r,CKEDITOR.POSITION_AFTER_START),K.collapse(!0));if(r=N){r=u.range;if("text"==u.type&&u.inlineStylesRoot){K=u.inlineStylesPeak;y=K.getDocument().createText("{cke-peak}");for(w=u.inlineStylesRoot.getParent();!K.equals(w);)y=y.appendTo(K.clone()),K=K.getParent();N=y.getOuterHtml().split("{cke-peak}").join(N)}K=u.blockLimit.getName();if(/^\s+|\s+$/.test(N)&&"span"in CKEDITOR.dtd[K]){var aa='\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e';N=aa+N+aa}N=
u.editor.dataProcessor.toHtml(N,{context:null,fixForBody:!1,protectedWhitespaces:!!aa,dontFilter:u.dontFilter,filter:u.editor.activeFilter,enterMode:u.editor.activeEnterMode});K=r.document.createElement("body");K.setHtml(N);aa&&(K.getFirst().remove(),K.getLast().remove());if((aa=r.startPath().block)&&(1!=aa.getChildCount()||!aa.getBogus()))a:{var S;if(1==K.getChildCount()&&b(S=K.getFirst())&&S.is(v)&&!S.hasAttribute("contenteditable")){aa=S.getElementsByTag("*");r=0;for(w=aa.count();r<w;r++)if(y=
aa.getItem(r),!y.is(q))break a;S.moveChildren(S.getParent(1));S.remove()}}u.dataWrapper=K;r=N}if(r){S=u.range;r=S.document;K=u.blockLimit;w=0;var T,aa=[],fa,H;N=V=0;var P,y=S.startContainer;ca=u.endPath.elements[0];var ea,p=ca.getPosition(y),B=!!ca.getCommonAncestor(y)&&p!=CKEDITOR.POSITION_IDENTICAL&&!(p&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),y=c(u.dataWrapper,u);for(m(y,S);w<y.length;w++){p=y[w];if(E=p.isLineBreak)E=S,x=K,ba=W=void 0,p.hasBlockSibling?E=1:(W=E.startContainer.getAscendant(n.$block,
1))&&W.is({div:1,p:1})?(ba=W.getPosition(x),ba==CKEDITOR.POSITION_IDENTICAL||ba==CKEDITOR.POSITION_CONTAINS?E=0:(x=E.splitElement(W),E.moveToPosition(x,CKEDITOR.POSITION_AFTER_START),E=1)):E=0;if(E)N=0<w;else{E=S.startPath();!p.isBlock&&k(u.editor,E.block,E.blockLimit)&&(H=l(u.editor))&&(H=r.createElement(H),H.appendBogus(),S.insertNode(H),CKEDITOR.env.needsBrFiller&&(T=H.getBogus())&&T.remove(),S.moveToPosition(H,CKEDITOR.POSITION_BEFORE_END));if((E=S.startPath().block)&&!E.equals(fa)){if(T=E.getBogus())T.remove(),
aa.push(E);fa=E}p.firstNotAllowed&&(V=1);if(V&&p.isElement){E=S.startContainer;for(x=null;E&&!n[E.getName()][p.name];){if(E.equals(K)){E=null;break}x=E;E=E.getParent()}if(E)x&&(P=S.splitElement(x),u.zombies.push(P),u.zombies.push(x));else{x=K.getName();ea=!w;E=w==y.length-1;x=h(p.node,x);W=[];ba=x.length;for(var da=0,ha=void 0,ga=0,ka=-1;da<ba;da++)ha=x[da]," "==ha?(ga||ea&&!da||(W.push(new CKEDITOR.dom.text(" ")),ka=W.length),ga=1):(W.push(ha),ga=0);E&&ka==W.length&&W.pop();ea=W}}if(ea){for(;E=ea.pop();)S.insertNode(E);
ea=0}else S.insertNode(p.node);p.lastNotAllowed&&w<y.length-1&&((P=B?ca:P)&&S.setEndAt(P,CKEDITOR.POSITION_AFTER_START),V=0);S.collapse()}}1!=y.length?T=!1:(T=y[0],T=T.isElement&&"false"==T.node.getAttribute("contenteditable"));T&&(N=!0,E=y[0].node,S.setStartAt(E,CKEDITOR.POSITION_BEFORE_START),S.setEndAt(E,CKEDITOR.POSITION_AFTER_END));u.dontMoveCaret=N;u.bogusNeededBlocks=aa}T=u.range;var ja;ea=u.bogusNeededBlocks;for(fa=T.createBookmark();H=u.zombies.pop();)H.getParent()&&(P=T.clone(),P.moveToElementEditStart(H),
P.removeEmptyBlocksAtEnd());if(ea)for(;H=ea.pop();)CKEDITOR.env.needsBrFiller?H.appendBogus():H.append(T.document.createText(" "));for(;H=u.mergeCandidates.pop();)H.mergeSiblings();CKEDITOR.env.webkit&&T.startPath()&&(H=T.startPath(),H.block?H.block.$.normalize():H.blockLimit&&H.blockLimit.$.normalize());T.moveToBookmark(fa);if(!u.dontMoveCaret){for(H=f(T);H&&b(H)&&!H.is(n.$empty);){if(H.isBlockBoundary())T.moveToPosition(H,CKEDITOR.POSITION_BEFORE_END);else{if(d(H)&&H.getHtml().match(/(\s|&nbsp;)$/g)){ja=
null;break}ja=T.clone();ja.moveToPosition(H,CKEDITOR.POSITION_BEFORE_END)}H=H.getLast(a)}ja&&T.moveToRange(ja)}}}}();y=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return b}function b(a,c,e){c=a.getDocument().createElement(c);a.append(c,e);return c}function c(a){var b=a.count(),e;for(b;0<b--;)e=a.getItem(b),CKEDITOR.tools.trim(e.getHtml())||
(e.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&e.getChildCount()&&e.getFirst().remove())}return function(e){var h=e.startContainer,f=h.getAscendant("table",1),d=!1;c(f.getElementsByTag("td"));c(f.getElementsByTag("th"));f=e.clone();f.setStart(h,0);f=a(f).lastBackward();f||(f=e.clone(),f.setEndAt(h,CKEDITOR.POSITION_BEFORE_END),f=a(f).lastForward(),d=!0);f||(f=h);f.is("table")?(e.setStartAt(f,CKEDITOR.POSITION_BEFORE_START),e.collapse(!0),f.remove()):(f.is({tbody:1,thead:1,tfoot:1})&&(f=
b(f,"tr",d)),f.is("tr")&&(f=b(f,f.getParent().is("thead")?"th":"td",d)),(h=f.getBogus())&&h.remove(),e.moveToPosition(f,d?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}();q=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$list)||a.is(CKEDITOR.dtd.$listItem)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$listItem)};return b}return function(b){var c=
b.startContainer,e=!1,h;h=b.clone();h.setStart(c,0);h=a(h).lastBackward();h||(h=b.clone(),h.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),h=a(h).lastForward(),e=!0);h||(h=c);h.is(CKEDITOR.dtd.$list)?(b.setStartAt(h,CKEDITOR.POSITION_BEFORE_START),b.collapse(!0),h.remove()):((c=h.getBogus())&&c.remove(),b.moveToPosition(h,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),b.select())}}();B={eol:{detect:function(a,b){var c=a.range,e=c.clone(),h=c.clone(),f=new CKEDITOR.dom.elementPath(c.startContainer,
b),d=new CKEDITOR.dom.elementPath(c.endContainer,b);e.collapse(1);h.collapse();f.block&&e.checkBoundaryOfElement(f.block,CKEDITOR.END)&&(c.setStartAfter(f.block),a.prependEolBr=1);d.block&&h.checkBoundaryOfElement(d.block,CKEDITOR.START)&&(c.setEndBefore(d.block),a.appendEolBr=1)},fix:function(a,b){var c=b.getDocument(),e;a.appendEolBr&&(e=this.createEolBr(c),a.fragment.append(e));!a.prependEolBr||e&&!e.getPrevious()||a.fragment.append(this.createEolBr(c),1)},createEolBr:function(a){return a.createElement("br",
{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(a){var b=a.range.getBoundaryNodes(),c=b.startNode,b=b.endNode;!b||!p(b)||c&&c.equals(b)||a.range.setEndBefore(b)}},tree:{rebuild:function(a,b){var c=a.range,e=c.getCommonAncestor(),h=new CKEDITOR.dom.elementPath(e,b),f=new CKEDITOR.dom.elementPath(c.startContainer,b),c=new CKEDITOR.dom.elementPath(c.endContainer,b),d;e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent());if(h.blockLimit.is({tr:1,table:1})){var k=h.contains("table").getParent();d=function(a){return!a.equals(k)}}else if(h.block&&
h.block.is(CKEDITOR.dtd.$listItem)&&(f=f.contains(CKEDITOR.dtd.$list),c=c.contains(CKEDITOR.dtd.$list),!f.equals(c))){var g=h.contains(CKEDITOR.dtd.$list).getParent();d=function(a){return!a.equals(g)}}d||(d=function(a){return!a.equals(h.block)&&!a.equals(h.blockLimit)});this.rebuildFragment(a,b,e,d)},rebuildFragment:function(a,b,c,e){for(var h;c&&!c.equals(b)&&e(c);)h=c.clone(0,1),a.fragment.appendTo(h),a.fragment=h,c=c.getParent()}},cell:{shrink:function(a){a=a.range;var b=a.startContainer,c=a.endContainer,
e=a.startOffset,h=a.endOffset;b.type==CKEDITOR.NODE_ELEMENT&&b.equals(c)&&b.is("tr")&&++e==h&&a.shrink(CKEDITOR.SHRINK_TEXT)}}};w=function(){function a(b,c){var e=b.getParent();if(e.is(CKEDITOR.dtd.$inline))b[c?"insertBefore":"insertAfter"](e)}function b(c,e,h){a(e);a(h,1);for(var f;f=h.getNext();)f.insertAfter(e),e=f;u(c)&&c.remove()}function c(a,b){var e=new CKEDITOR.dom.range(a);e.setStartAfter(b.startNode);e.setEndBefore(b.endNode);return e}return{list:{detectMerge:function(a,b){var e=c(b,a.bookmark),
h=e.startPath(),f=e.endPath(),d=h.contains(CKEDITOR.dtd.$list),k=f.contains(CKEDITOR.dtd.$list);a.mergeList=d&&k&&d.getParent().equals(k.getParent())&&!d.equals(k);a.mergeListItems=h.block&&f.block&&h.block.is(CKEDITOR.dtd.$listItem)&&f.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)e=e.clone(),e.setStartBefore(a.bookmark.startNode),e.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=e.createBookmark()},merge:function(a,c){if(a.mergeListBookmark){var e=a.mergeListBookmark.startNode,
h=a.mergeListBookmark.endNode,f=new CKEDITOR.dom.elementPath(e,c),d=new CKEDITOR.dom.elementPath(h,c);if(a.mergeList){var k=f.contains(CKEDITOR.dtd.$list),g=d.contains(CKEDITOR.dtd.$list);k.equals(g)||(g.moveChildren(k),g.remove())}a.mergeListItems&&(f=f.contains(CKEDITOR.dtd.$listItem),d=d.contains(CKEDITOR.dtd.$listItem),f.equals(d)||b(d,e,h));e.remove();h.remove()}}},block:{detectMerge:function(a,b){if(!a.tableContentsRanges&&!a.mergeListBookmark){var c=new CKEDITOR.dom.range(b);c.setStartBefore(a.bookmark.startNode);
c.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=c.createBookmark()}},merge:function(a,c){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var e=a.mergeBlockBookmark.startNode,h=a.mergeBlockBookmark.endNode,f=new CKEDITOR.dom.elementPath(e,c),d=new CKEDITOR.dom.elementPath(h,c),f=f.block,d=d.block;f&&d&&!f.equals(d)&&b(d,e,h);e.remove();h.remove()}}},table:function(){function a(c){var h=[],f,d=new CKEDITOR.dom.walker(c),k=c.startPath().contains(e),g=c.endPath().contains(e),l={};d.guard=function(a,
d){if(a.type==CKEDITOR.NODE_ELEMENT){var m="visited_"+(d?"out":"in");if(a.getCustomData(m))return;CKEDITOR.dom.element.setMarker(l,a,m,1)}if(d&&k&&a.equals(k))f=c.clone(),f.setEndAt(k,CKEDITOR.POSITION_BEFORE_END),h.push(f);else if(!d&&g&&a.equals(g))f=c.clone(),f.setStartAt(g,CKEDITOR.POSITION_AFTER_START),h.push(f);else{if(m=!d)m=a.type==CKEDITOR.NODE_ELEMENT&&a.is(e)&&(!k||b(a,k))&&(!g||b(a,g));if(!m&&(m=d))if(a.is(e))var m=k&&k.getAscendant("table",!0),n=g&&g.getAscendant("table",!0),r=a.getAscendant("table",
!0),m=m&&m.contains(r)||n&&n.contains(r);else m=void 0;m&&(f=c.clone(),f.selectNodeContents(a),h.push(f))}};d.lastForward();CKEDITOR.dom.element.clearAllMarkers(l);return h}function b(a,c){var e=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,h=a.getPosition(c);return h===CKEDITOR.POSITION_IDENTICAL?!1:0===(h&e)}var e={td:1,th:1,caption:1};return{detectPurge:function(a){var b=a.range,c=b.clone();c.enlarge(CKEDITOR.ENLARGE_ELEMENT);var c=new CKEDITOR.dom.walker(c),h=0;c.evaluator=function(a){a.type==
CKEDITOR.NODE_ELEMENT&&a.is(e)&&++h};c.checkForward();if(1<h){var c=b.startPath().contains("table"),f=b.endPath().contains("table");c&&f&&b.checkBoundaryOfElement(c,CKEDITOR.START)&&b.checkBoundaryOfElement(f,CKEDITOR.END)&&(b=a.range.clone(),b.setStartBefore(c),b.setEndAfter(f),a.purgeTableBookmark=b.createBookmark())}},detectRanges:function(h,f){var d=c(f,h.bookmark),k=d.clone(),g,l,m=d.getCommonAncestor();m.is(CKEDITOR.dtd.$tableContent)&&!m.is(e)&&(m=m.getAscendant("table",!0));l=m;m=new CKEDITOR.dom.elementPath(d.startContainer,
l);l=new CKEDITOR.dom.elementPath(d.endContainer,l);m=m.contains("table");l=l.contains("table");if(m||l)m&&l&&b(m,l)?(h.tableSurroundingRange=k,k.setStartAt(m,CKEDITOR.POSITION_AFTER_END),k.setEndAt(l,CKEDITOR.POSITION_BEFORE_START),k=d.clone(),k.setEndAt(m,CKEDITOR.POSITION_AFTER_END),g=d.clone(),g.setStartAt(l,CKEDITOR.POSITION_BEFORE_START),g=a(k).concat(a(g))):m?l||(h.tableSurroundingRange=k,k.setStartAt(m,CKEDITOR.POSITION_AFTER_END),d.setEndAt(m,CKEDITOR.POSITION_AFTER_END)):(h.tableSurroundingRange=
k,k.setEndAt(l,CKEDITOR.POSITION_BEFORE_START),d.setStartAt(l,CKEDITOR.POSITION_AFTER_START)),h.tableContentsRanges=g?g:a(d)},deleteRanges:function(a){for(var b;b=a.tableContentsRanges.pop();)b.extractContents(),u(b.startContainer)&&b.startContainer.appendBogus();a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var b=a.doc,c=a.range.clone(),b=b.createElement("p");b.insertBefore(a.purgeTableBookmark.startNode);c.moveToBookmark(a.purgeTableBookmark);
c.deleteContents();a.range.moveToPosition(b,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,b){var c=b.startPath(),e;k(a,c.block,c.blockLimit)&&(e=l(a))&&(e=b.document.createElement(e),e.appendBogus(),b.insertNode(e),b.moveToPosition(e,
CKEDITOR.POSITION_AFTER_START))}}}()})();(function(){function b(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function g(a,c){if(0===a.length||b(a[0].getEnclosedNode()))return!1;var e,h;if((e=!c&&1===a.length)&&!(e=a[0].collapsed)){var f=a[0];e=f.startContainer.getAscendant({td:1,th:1},!0);var d=f.endContainer.getAscendant({td:1,th:1},!0);h=CKEDITOR.tools.trim;e&&e.equals(d)&&!e.findOne("td, th, tr, tbody, table")?(f=f.cloneContents(),e=f.getFirst()?h(f.getFirst().getText())!==
h(e.getText()):!0):e=!1}if(e)return!1;for(h=0;h<a.length;h++)if(e=a[h]._getTableElement(),!e)return!1;return!0}function d(a){function b(a){a=a.find("td, th");var c=[],e;for(e=0;e<a.count();e++)c.push(a.getItem(e));return c}var c=[],e,h;for(h=0;h<a.length;h++)e=a[h]._getTableElement(),e.is&&e.is({td:1,th:1})?c.push(e):c=c.concat(b(e));return c}function a(a){a=d(a);var b="",c=[],e,h;for(h=0;h<a.length;h++)e&&!e.equals(a[h].getAscendant("tr"))?(b+=c.join("\t")+"\n",e=a[h].getAscendant("tr"),c=[]):0===
h&&(e=a[h].getAscendant("tr")),c.push(a[h].getText());return b+=c.join("\t")}function f(b){var c=this.root.editor,e=c.getSelection(1);this.reset();w=!0;e.root.once("selectionchange",function(a){a.cancel()},null,null,0);e.selectRanges([b[0]]);e=this._.cache;e.ranges=new CKEDITOR.dom.rangeList(b);e.type=CKEDITOR.SELECTION_TEXT;e.selectedElement=b[0]._getTableElement();e.selectedText=a(b);e.nativeSel=null;this.isFake=1;this.rev=y++;c._.fakeSelection=this;w=!1;this.root.fire("selectionchange")}function m(){var a=
this._.fakeSelection,c;if(a){c=this.getSelection(1);var e;if(!(e=!c)&&(e=!c.isHidden())){e=a;var h=c.getRanges(),f=e.getRanges(),d=h.length&&h[0]._getTableElement()&&h[0]._getTableElement().getAscendant("table",!0),k=f.length&&f[0]._getTableElement()&&f[0]._getTableElement().getAscendant("table",!0),l=1===h.length&&h[0]._getTableElement()&&h[0]._getTableElement().is("table"),m=1===f.length&&f[0]._getTableElement()&&f[0]._getTableElement().is("table");if(b(e.getSelectedElement()))e=!1;else{var n=1===
h.length&&h[0].collapsed,f=g(h,!!CKEDITOR.env.webkit)&&g(f);d=d&&k?d.equals(k)||k.contains(d):!1;d&&(n||f)?(l&&!m&&e.selectRanges(h),e=!0):e=!1}e=!e}e&&(a.reset(),a=0)}if(!a&&(a=c||this.getSelection(1),!a||a.getType()==CKEDITOR.SELECTION_NONE))return;this.fire("selectionCheck",a);c=this.elementPath();c.compare(this._.selectionPreviousPath)||(e=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(c.blockLimit),!CKEDITOR.env.webkit&&!CKEDITOR.env.gecko||e||(this._.previousActive=
this.document.getActive()),this._.selectionPreviousPath=c,this.fire("selectionChange",{selection:a,path:c}))}function k(){A=!0;z||(l.call(this),z=CKEDITOR.tools.setTimeout(l,200,this))}function l(){z=null;A&&(CKEDITOR.tools.setTimeout(m,0,this),A=!1)}function e(a){return C(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?!0:!1}function c(a){function b(c,e){return c&&c.type!=CKEDITOR.NODE_TEXT?a.clone()["moveToElementEdit"+(e?"End":"Start")](c):!1}if(!(a.root instanceof CKEDITOR.editable))return!1;
var c=a.startContainer,h=a.getPreviousNode(e,null,c),f=a.getNextNode(e,null,c);return b(h)||b(f,1)||!(h||f||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()&&c.getBogus())?!0:!1}function h(a){n(a,!1);var b=a.getDocument().createText(q);a.setCustomData("cke-fillingChar",b);return b}function n(a,b){var c=a&&a.removeCustomData("cke-fillingChar");if(c){if(!1!==b){var e=a.getDocument().getSelection().getNative(),h=e&&"None"!=e.type&&e.getRangeAt(0),f=q.length;if(c.getLength()>f&&h&&h.intersectsNode(c.$)){var d=
[{node:e.anchorNode,offset:e.anchorOffset},{node:e.focusNode,offset:e.focusOffset}];e.anchorNode==c.$&&e.anchorOffset>f&&(d[0].offset-=f);e.focusNode==c.$&&e.focusOffset>f&&(d[1].offset-=f)}}c.setText(r(c.getText(),1));d&&(c=a.getDocument().$,e=c.getSelection(),c=c.createRange(),c.setStart(d[0].node,d[0].offset),c.collapse(!0),e.removeAllRanges(),e.addRange(c),e.extend(d[1].node,d[1].offset))}}function r(a,b){return b?a.replace(B,function(a,b){return b?" ":""}):a.replace(q,"")}function u(a,b){var c=
b&&CKEDITOR.tools.htmlEncode(b)||"\x26nbsp;",c=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;width:0;height:0;overflow:hidden;")+'"\x3e'+c+"\x3c/div\x3e",a.document);a.fire("lockSnapshot");a.editable().append(c);var e=a.getSelection(1),h=a.createRange(),f=e.root.on("selectionchange",function(a){a.cancel()},null,null,0);h.setStartAt(c,CKEDITOR.POSITION_AFTER_START);
h.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);e.selectRanges([h]);f.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=c}function p(a){var b={37:1,39:1,8:1,46:1};return function(c){var e=c.data.getKeystroke();if(b[e]){var h=a.getSelection(),f=h.getRanges()[0];h.isCollapsed()&&(f=f[38>e?"getPreviousEditableNode":"getNextEditableNode"]())&&f.type==CKEDITOR.NODE_ELEMENT&&"false"==f.getAttribute("contenteditable")&&(h=h.getStartElement(),!h.isBlockBoundary()||""!==(void 0===h.$.textContent?
h.$.innerText:h.$.textContent)||8!==e&&46!==e||(h.remove(),a.fire("saveSnapshot")),a.getSelection().fake(f),c.data.preventDefault(),c.cancel())}}}function t(a){for(var b=0;b<a.length;b++){var c=a[b];c.getCommonAncestor().isReadOnly()&&a.splice(b,1);if(!c.collapsed){if(c.startContainer.isReadOnly())for(var e=c.startContainer,h;e&&!((h=e.type==CKEDITOR.NODE_ELEMENT)&&e.is("body")||!e.isReadOnly());)h&&"false"==e.getAttribute("contentEditable")&&c.setStartAfter(e),e=e.getParent();e=c.startContainer;
h=c.endContainer;var f=c.startOffset,d=c.endOffset,k=c.clone();e&&e.type==CKEDITOR.NODE_TEXT&&(f>=e.getLength()?k.setStartAfter(e):k.setStartBefore(e));h&&h.type==CKEDITOR.NODE_TEXT&&(d?k.setEndAfter(h):k.setEndBefore(h));e=new CKEDITOR.dom.walker(k);e.evaluator=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&e.isReadOnly()){var h=c.clone();c.setEndBefore(e);c.collapsed&&a.splice(b--,1);e.getPosition(k.endContainer)&CKEDITOR.POSITION_CONTAINS||(h.setStartAfter(e),h.collapsed||a.splice(b+1,0,h));return!0}return!1};
e.next()}}return a}var v="function"!=typeof window.getSelection,y=1,q=CKEDITOR.tools.repeat("​",7),B=new RegExp(q+"( )?","g"),w,z,A,C=CKEDITOR.dom.walker.invisible(1),D=function(){function a(b){return function(a){var c=a.editor.createRange();c.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([c]);return!1}}function b(a){return function(b){var c=b.editor,e=c.createRange(),h;if(!c.readOnly)return(h=e.moveToClosestEditablePosition(b.selected,a))||(h=e.moveToClosestEditablePosition(b.selected,
!a)),h&&c.getSelection().selectRanges([e]),c.fire("saveSnapshot"),b.selected.remove(),h||(e.moveToElementEditablePosition(c.editable()),c.getSelection().selectRanges([e])),c.fire("saveSnapshot"),!1}}var c=a(),e=a(1);return{37:c,38:c,39:e,40:e,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(a){function b(){var a=c.getSelection();a&&a.removeAllRanges()}var c=a.editor;c.on("contentDom",function(){function a(){y=new CKEDITOR.dom.selection(c.getSelection());y.lock()}function b(){d.removeListener("mouseup",
b);r.removeListener("mouseup",b);var a=CKEDITOR.document.$.selection,c=a.createRange();"None"!=a.type&&c.parentElement()&&c.parentElement().ownerDocument==f.$&&c.select()}function e(a){var b,c;b=(b=this.document.getActive())?"input"===b.getName()||"textarea"===b.getName():!1;b||(b=this.getSelection(1),(c=h(b))&&!c.equals(g)&&(b.selectElement(c),a.data.preventDefault()))}function h(a){a=a.getRanges()[0];return a?(a=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")},
!0))&&"false"===a.getAttribute("contenteditable")?a:null:null}var f=c.document,d=CKEDITOR.document,g=c.editable(),l=f.getBody(),r=f.getDocumentElement(),u=g.isInline(),q,y;CKEDITOR.env.gecko&&g.attachListener(g,"focus",function(a){a.removeListener();0!==q&&(a=c.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==g.$&&(a=c.createRange(),a.moveToElementEditStart(g),a.select())},null,null,-2);g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){if(q&&(CKEDITOR.env.webkit||
CKEDITOR.env.gecko)){q=c._.previousActive&&c._.previousActive.equals(f.getActive());var a=null!=c._.previousScrollTop&&c._.previousScrollTop!=g.$.scrollTop;CKEDITOR.env.webkit&&q&&a&&(g.$.scrollTop=c._.previousScrollTop)}c.unlockSelection(q);q=0},null,null,-1);g.attachListener(g,"mousedown",function(){q=0});if(CKEDITOR.env.ie||CKEDITOR.env.gecko||u)v?g.attachListener(g,"beforedeactivate",a,null,null,-1):g.attachListener(c,"selectionCheck",a,null,null,-1),g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?
"focusout":"blur",function(){var a=y&&(y.isFake||2>y.getRanges().length);CKEDITOR.env.gecko&&!u&&a||(c.lockSelection(y),q=1)},null,null,-1),g.attachListener(g,"mousedown",function(){q=0});if(CKEDITOR.env.ie&&!u){var w;g.attachListener(g,"mousedown",function(a){2==a.data.$.button&&((a=c.document.getSelection())&&a.getType()!=CKEDITOR.SELECTION_NONE||(w=c.window.getScrollPosition()))});g.attachListener(g,"mouseup",function(a){2==a.data.$.button&&w&&(c.document.$.documentElement.scrollLeft=w.x,c.document.$.documentElement.scrollTop=
w.y);w=null});if("BackCompat"!=f.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var t,A;r.on("mousedown",function(a){function b(a){a=a.data.$;if(t){var c=l.$.createTextRange();try{c.moveToPoint(a.clientX,a.clientY)}catch(e){}t.setEndPoint(0>A.compareEndPoints("StartToStart",c)?"EndToEnd":"StartToStart",c);t.select()}}function c(){r.removeListener("mousemove",b);d.removeListener("mouseup",c);r.removeListener("mouseup",c);t.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<r.$.clientHeight&&
a.$.x<r.$.clientWidth){t=l.$.createTextRange();try{t.moveToPoint(a.$.clientX,a.$.clientY)}catch(e){}A=t.duplicate();r.on("mousemove",b);d.on("mouseup",c);r.on("mouseup",c)}})}if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version)r.on("mousedown",function(a){a.data.getTarget().is("html")&&(d.on("mouseup",b),r.on("mouseup",b))})}}g.attachListener(g,"selectionchange",m,c);g.attachListener(g,"keyup",k,c);g.attachListener(g,"touchstart",k,c);g.attachListener(g,"touchend",k,c);CKEDITOR.env.ie&&g.attachListener(g,
"keydown",e,c);g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){c.forceNextSelectionCheck();c.selectionChange(1)});if(u&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var B;g.attachListener(g,"mousedown",function(){B=1});g.attachListener(f.getDocumentElement(),"mouseup",function(){B&&k.call(c);B=0})}else g.attachListener(CKEDITOR.env.ie?g:f.getDocumentElement(),"mouseup",k,c);CKEDITOR.env.webkit&&g.attachListener(f,"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:g.hasFocus&&
n(g)}},null,null,-1);g.attachListener(g,"keydown",p(c),null,null,-1)});c.on("setData",function(){c.unlockSelection();CKEDITOR.env.webkit&&b()});c.on("contentDomUnload",function(){c.unlockSelection()});if(CKEDITOR.env.ie9Compat)c.on("beforeDestroy",b,null,null,9);c.on("dataReady",function(){delete c._.fakeSelection;delete c._.hiddenSelectionContainer;c.selectionChange(1)});c.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),b=c.editable().getLast(a);b&&b.hasAttribute("data-cke-hidden-sel")&&
(b.remove(),CKEDITOR.env.gecko&&(a=c.editable().getFirst(a))&&a.is("br")&&a.getAttribute("_moz_editor_bogus_node")&&a.remove())},null,null,100);c.on("key",function(a){if("wysiwyg"==c.mode){var b=c.getSelection();if(b.isFake){var e=D[a.data.keyCode];if(e)return e({editor:c,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(a){var b=a.editor;b.on("selectionChange",function(){var a=b.editable(),c=a.getCustomData("cke-fillingChar");
c&&(c.getCustomData("ready")?(n(a),a.editor.fire("selectionCheck")):c.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){n(b.editable())},null,null,-1);b.on("getSnapshot",function(a){a.data&&(a.data=r(a.data))},b,null,20);b.on("toDataFormat",function(a){a.data.dataValue=r(a.data.dataValue)},null,null,0)});CKEDITOR.editor.prototype.selectionChange=function(a){(a?m:k).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.getSelectedRanges=function(a){var b=this.getSelection();return b&&b.getRanges(a)||[]};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 b=this._.savedSelection;return b?
(b.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 b=a;a=a.root}var c=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:y++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=c?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(b)return CKEDITOR.tools.extend(this._.cache,b._.cache),this.isFake=b.isFake,this.isLocked=b.isLocked,this;a=this.getNative();var e,h;if(a)if(a.getRangeAt)e=(h=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(h.commonAncestorContainer);
else{try{h=a.createRange()}catch(f){}e=h&&CKEDITOR.dom.element.get(h.item&&h.item(0)||h.parentElement())}if(!e||e.type!=CKEDITOR.NODE_ELEMENT&&e.type!=CKEDITOR.NODE_TEXT||!this.root.equals(e)&&!this.root.contains(e))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:r,_createFillingCharSequenceNode:h,FILLING_CHAR_SEQUENCE:q});CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=v?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:v?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;
try{var c=this.getNative(),e=c.type;"Text"==e&&(b=CKEDITOR.SELECTION_TEXT);"Control"==e&&(b=CKEDITOR.SELECTION_ELEMENT);c.createRange().parentElement()&&(b=CKEDITOR.SELECTION_TEXT)}catch(h){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,c=this.getNative();if(!c||!c.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(1==c.rangeCount){var c=c.getRangeAt(0),e=c.startContainer;e==c.endContainer&&1==e.nodeType&&1==c.endOffset-c.startOffset&&F[e.childNodes[c.startOffset].nodeName.toLowerCase()]&&
(b=CKEDITOR.SELECTION_ELEMENT)}return a.type=b},getRanges:function(){var a=v?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);var e=b.parentElement();if(!e.hasChildNodes())return{container:e,offset:0};for(var h=e.children,f,d,k=b.duplicate(),g=0,l=h.length-1,m=-1,n,r;g<=l;)if(m=Math.floor((g+l)/2),f=h[m],k.moveToElementText(f),n=k.compareEndPoints("StartToStart",b),0<n)l=m-1;else if(0>n)g=m+1;else return{container:e,offset:a(f)};
if(-1==m||m==h.length-1&&0>n){k.moveToElementText(e);k.setEndPoint("StartToStart",b);k=k.text.replace(/(\r\n|\r)/g,"\n").length;h=e.childNodes;if(!k)return f=h[h.length-1],f.nodeType!=CKEDITOR.NODE_TEXT?{container:e,offset:h.length}:{container:f,offset:f.nodeValue.length};for(e=h.length;0<k&&0<e;)d=h[--e],d.nodeType==CKEDITOR.NODE_TEXT&&(r=d,k-=d.nodeValue.length);return{container:r,offset:-k}}k.collapse(0<n?!0:!1);k.setEndPoint(0<n?"StartToStart":"EndToStart",b);k=k.text.replace(/(\r\n|\r)/g,"\n").length;
if(!k)return{container:e,offset:a(f)+(0<n?0:1)};for(;0<k;)try{d=f[0<n?"previousSibling":"nextSibling"],d.nodeType==CKEDITOR.NODE_TEXT&&(k-=d.nodeValue.length,r=d),f=d}catch(v){return{container:e,offset:a(f)}}return{container:r,offset:0<n?-k:r.nodeValue.length+k}};return function(){var a=this.getNative(),c=a&&a.createRange(),e=this.getType();if(!a)return[];if(e==CKEDITOR.SELECTION_TEXT)return a=new CKEDITOR.dom.range(this.root),e=b(c,!0),a.setStart(new CKEDITOR.dom.node(e.container),e.offset),e=b(c),
a.setEnd(new CKEDITOR.dom.node(e.container),e.offset),a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse(),[a];if(e==CKEDITOR.SELECTION_ELEMENT){for(var e=[],h=0;h<c.length;h++){for(var f=c.item(h),d=f.parentNode,k=0,a=new CKEDITOR.dom.range(this.root);k<d.childNodes.length&&d.childNodes[k]!=f;k++);a.setStart(new CKEDITOR.dom.node(d),k);a.setEnd(new CKEDITOR.dom.node(d),k+1);e.push(a)}return e}return[]}}():function(){var a=
[],b,c=this.getNative();if(!c)return a;for(var e=0;e<c.rangeCount;e++){var h=c.getRangeAt(e);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(h.startContainer),h.startOffset);b.setEnd(new CKEDITOR.dom.node(h.endContainer),h.endOffset);a.push(b)}return a};return function(b){var c=this._.cache,e=c.ranges;e||(c.ranges=e=new CKEDITOR.dom.rangeList(a.call(this)));return b?t(new CKEDITOR.dom.rangeList(e.slice())):e}}(),getStartElement:function(){var a=this._.cache;if(void 0!==a.startElement)return a.startElement;
var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var c=this.getRanges()[0];if(c){if(c.collapsed)b=c.startContainer,b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());else{for(c.optimize();b=c.startContainer,c.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary();)c.setStartAfter(b);b=c.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();if((b=b.getChild(c.startOffset))&&b.type==
CKEDITOR.NODE_ELEMENT)for(c=b.getFirst();c&&c.type==CKEDITOR.NODE_ELEMENT;)b=c,c=c.getFirst();else b=c.startContainer}b=b.$}}return a.startElement=b?new CKEDITOR.dom.element(b):null},getSelectedElement:function(){var a=this._.cache;if(void 0!==a.selectedElement)return a.selectedElement;var b=this,c=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0].clone(),c,e,h=2;h&&!((c=a.getEnclosedNode())&&c.type==CKEDITOR.NODE_ELEMENT&&F[c.getName()]&&
(e=c));h--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return e&&e.$});return a.selectedElement=c?new CKEDITOR.dom.element(c):null},getSelectedText:function(){var a=this._.cache;if(void 0!==a.selectedText)return a.selectedText;var b=this.getNative(),b=v?"Control"==b.type?"":b.createRange().text:b.toString();return a.selectedText=b},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 b=
this.getSelectedElement(),c=this.getRanges(),e=this.isFake;this.isLocked=0;this.reset();a&&(a=b||c[0]&&c[0].getCommonAncestor())&&a.getAscendant("body",1)&&((a=this.root.editor)&&a.plugins.tableselection&&a.plugins.tableselection.isSupportedEnvironment(a)&&g(c)?f.call(this,c):e?this.fake(b):b&&2>c.length?this.selectElement(b):this.selectRanges(c))}},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 b=a._.hiddenSelectionContainer;if(b){var c=a.checkDirty();a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot");!c&&a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=y++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){var b=this.root.editor,e=b&&b._.hiddenSelectionContainer;this.reset();if(e)for(var e=this.root,d,k=0;k<a.length;++k)d=
a[k],d.endContainer.equals(e)&&(d.endOffset=Math.min(d.endOffset,e.getChildCount()));if(a.length)if(this.isLocked){var l=CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();l&&!l.equals(this.root)&&l.focus()}else{var m;a:{var r,u;if(1==a.length&&!(u=a[0]).collapsed&&(m=u.getEnclosedNode())&&m.type==CKEDITOR.NODE_ELEMENT&&(u=u.clone(),u.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(r=u.getEnclosedNode())&&r.type==CKEDITOR.NODE_ELEMENT&&(m=r),"false"==m.getAttribute("contenteditable")))break a;
m=void 0}if(m)this.fake(m);else if(b&&b.plugins.tableselection&&b.plugins.tableselection.isSupportedEnvironment(b)&&g(a)&&!w&&!a[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored"))f.call(this,a);else{if(v){r=CKEDITOR.dom.walker.whitespaces(!0);m=/\ufeff|\u00a0/;u={table:1,tbody:1,tr:1};1<a.length&&(b=a[a.length-1],a[0].setEnd(b.endContainer,b.endOffset));b=a[0];a=b.collapsed;var q,y,p;if((e=b.getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in F&&(!e.is("a")||
!e.getText()))try{p=e.$.createControlRange();p.addElement(e.$);p.select();return}catch(t){}if(b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.getName()in u||b.endContainer.type==CKEDITOR.NODE_ELEMENT&&b.endContainer.getName()in u)b.shrink(CKEDITOR.NODE_ELEMENT,!0),a=b.collapsed;p=b.createBookmark();u=p.startNode;a||(l=p.endNode);p=b.document.$.body.createTextRange();p.moveToElementText(u.$);p.moveStart("character",1);l?(m=b.document.$.body.createTextRange(),m.moveToElementText(l.$),
p.setEndPoint("EndToEnd",m),p.moveEnd("character",-1)):(q=u.getNext(r),y=u.hasAscendant("pre"),q=!(q&&q.getText&&q.getText().match(m))&&(y||!u.hasPrevious()||u.getPrevious().is&&u.getPrevious().is("br")),y=b.document.createElement("span"),y.setHtml("\x26#65279;"),y.insertBefore(u),q&&b.document.createText("﻿").insertBefore(u));b.setStartBefore(u);u.remove();a?(q?(p.moveStart("character",-1),p.select(),b.document.$.selection.clear()):p.select(),b.moveToPosition(y,CKEDITOR.POSITION_BEFORE_START),y.remove()):
(b.setEndBefore(l),l.remove(),p.select())}else{l=this.getNative();if(!l)return;this.removeAllRanges();for(p=0;p<a.length;p++){if(p<a.length-1&&(q=a[p],y=a[p+1],m=q.clone(),m.setStart(q.endContainer,q.endOffset),m.setEnd(y.startContainer,y.startOffset),!m.collapsed&&(m.shrink(CKEDITOR.NODE_ELEMENT,!0),b=m.getCommonAncestor(),m=m.getEnclosedNode(),b.isReadOnly()||m&&m.isReadOnly()))){y.setStart(q.startContainer,q.startOffset);a.splice(p--,1);continue}b=a[p];y=this.document.$.createRange();b.collapsed&&
CKEDITOR.env.webkit&&c(b)&&(m=h(this.root),b.insertNode(m),(q=m.getNext())&&!m.getPrevious()&&q.type==CKEDITOR.NODE_ELEMENT&&"br"==q.getName()?(n(this.root),b.moveToPosition(q,CKEDITOR.POSITION_BEFORE_START)):b.moveToPosition(m,CKEDITOR.POSITION_AFTER_END));y.setStart(b.startContainer.$,b.startOffset);try{y.setEnd(b.endContainer.$,b.endOffset)}catch(A){if(0<=A.toString().indexOf("NS_ERROR_ILLEGAL_VALUE"))b.collapse(1),y.setEnd(b.endContainer.$,b.endOffset);else throw A;}l.addRange(y)}}this.reset();
this.root.fire("selectionchange")}}},fake:function(a,b){var c=this.root.editor;void 0===b&&a.hasAttribute("aria-label")&&(b=a.getAttribute("aria-label"));this.reset();u(c,b);var e=this._.cache,h=new CKEDITOR.dom.range(this.root);h.setStartBefore(a);h.setEndAfter(a);e.ranges=new CKEDITOR.dom.rangeList(h);e.selectedElement=e.startElement=a;e.type=CKEDITOR.SELECTION_ELEMENT;e.selectedText=e.nativeSel=null;this.isFake=1;this.rev=y++;c._.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 b=[],c,e=0;e<
a.length;e++){var h=new CKEDITOR.dom.range(this.root);h.moveToBookmark(a[e]);b.push(h)}a.isFake&&(c=g(b)?b[0]._getTableElement():b[0].getEnclosedNode(),c&&c.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),a.isFake=0));a.isFake&&!g(b)?this.fake(c):this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return a.length?a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer):null},scrollIntoView:function(){this.getType()!=CKEDITOR.SELECTION_NONE&&
this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[v?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}})();"use strict";CKEDITOR.STYLE_BLOCK=1;CKEDITOR.STYLE_INLINE=2;CKEDITOR.STYLE_OBJECT=3;(function(){function b(a,b){for(var c,e;(a=a.getParent())&&!a.equals(b);)if(a.getAttribute("data-nostyle"))c=a;else if(!e){var h=a.getAttribute("contentEditable");"false"==h?c=a:"true"==h&&(e=1)}return c}function g(a,
b,c,e){return(a.getPosition(b)|e)==e&&(!c.childRule||c.childRule(a))}function d(a){var c=a.document;if(a.collapsed)c=y(this,c),a.insertNode(c),a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_END);else{var e=this.element,h=this._.definition,k,m=h.ignoreReadonly,l=m||h.includeReadonly;null==l&&(l=a.root.getCustomData("cke_includeReadonly"));var n=CKEDITOR.dtd[e];n||(k=!0,n=CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var r=a.createBookmark(),u=r.startNode,v=r.endNode,q=u,t;if(!m){var w=
a.getCommonAncestor(),m=b(u,w),w=b(v,w);m&&(q=m.getNextSourceNode(!0));w&&(v=w)}for(q.getPosition(v)==CKEDITOR.POSITION_FOLLOWING&&(q=0);q;){m=!1;if(q.equals(v))q=null,m=!0;else{var A=q.type==CKEDITOR.NODE_ELEMENT?q.getName():null,w=A&&"false"==q.getAttribute("contentEditable"),B=A&&-1!==CKEDITOR.tools.array.indexOf(CKEDITOR.style.unstylableElements,A),B=A&&(q.getAttribute("data-nostyle")||B);if(A&&q.data("cke-bookmark")||q.type===CKEDITOR.NODE_COMMENT){q=q.getNextSourceNode(!0);continue}if(w&&l&&
CKEDITOR.dtd.$block[A])for(var z=q,C=f(z),F=void 0,H=C.length,P=0,z=H&&new CKEDITOR.dom.range(z.getDocument());P<H;++P){var F=C[P],ea=CKEDITOR.filter.instances[F.data("cke-filter")];if(ea?ea.check(this):1)z.selectNodeContents(F),d.call(this,z)}C=A?!n[A]||B?0:w&&!l?0:g(q,v,h,x):1;if(C)if(F=q.getParent(),C=h,H=e,P=k,!F||!(F.getDtd()||CKEDITOR.dtd.span)[H]&&!P||C.parentRule&&!C.parentRule(F))m=!0;else{if(t||A&&CKEDITOR.dtd.$removeEmpty[A]&&(q.getPosition(v)|x)!=x||(t=a.clone(),t.setStartBefore(q)),A=
q.type,A==CKEDITOR.NODE_TEXT||w||A==CKEDITOR.NODE_ELEMENT&&!q.getChildCount()){for(var A=q,ha;(m=!A.getNext(M))&&(ha=A.getParent(),n[ha.getName()])&&g(ha,u,h,J);)A=ha;t.setEndAfter(A)}}else m=!0;q=q.getNextSourceNode(B||w)}if(m&&t&&!t.collapsed){for(var m=y(this,c),w=m.hasAttributes(),B=t.getCommonAncestor(),A={},C={},F={},H={},ga,D,I;m&&B;){if(B.getName()==e){for(ga in h.attributes)!H[ga]&&(I=B.getAttribute(D))&&(m.getAttribute(ga)==I?C[ga]=1:H[ga]=1);for(D in h.styles)!F[D]&&(I=B.getStyle(D))&&
(m.getStyle(D)==I?A[D]=1:F[D]=1)}B=B.getParent()}for(ga in C)m.removeAttribute(ga);for(D in A)m.removeStyle(D);w&&!m.hasAttributes()&&(m=null);m?(t.extractContents().appendTo(m),t.insertNode(m),p.call(this,m),m.mergeSiblings(),CKEDITOR.env.ie||m.$.normalize()):(m=new CKEDITOR.dom.element("span"),t.extractContents().appendTo(m),t.insertNode(m),p.call(this,m),m.remove(!0));t=null}}a.moveToBookmark(r);a.shrink(CKEDITOR.SHRINK_TEXT);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function a(a){function b(){for(var a=
new CKEDITOR.dom.elementPath(e.getParent()),c=new CKEDITOR.dom.elementPath(l.getParent()),h=null,f=null,d=0;d<a.elements.length;d++){var k=a.elements[d];if(k==a.block||k==a.blockLimit)break;n.checkElementRemovable(k,!0)&&(h=k)}for(d=0;d<c.elements.length;d++){k=c.elements[d];if(k==c.block||k==c.blockLimit)break;n.checkElementRemovable(k,!0)&&(f=k)}f&&l.breakParent(f);h&&e.breakParent(h)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var c=a.createBookmark(),e=c.startNode,h=this._.definition.alwaysRemoveElement;
if(a.collapsed){for(var f=new CKEDITOR.dom.elementPath(e.getParent(),a.root),d,k=0,g;k<f.elements.length&&(g=f.elements[k])&&g!=f.block&&g!=f.blockLimit;k++)if(this.checkElementRemovable(g)){var m;!h&&a.collapsed&&(a.checkBoundaryOfElement(g,CKEDITOR.END)||(m=a.checkBoundaryOfElement(g,CKEDITOR.START)))?(d=g,d.match=m?"start":"end"):(g.mergeSiblings(),g.is(this.element)?u.call(this,g):t(g,w(this)[g.getName()]))}if(d){h=e;for(k=0;;k++){g=f.elements[k];if(g.equals(d))break;else if(g.match)continue;
else g=g.clone();g.append(h);h=g}h["start"==d.match?"insertBefore":"insertAfter"](d)}}else{var l=c.endNode,n=this;b();for(f=e;!f.equals(l);)d=f.getNextSourceNode(),f.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(f)&&(f.getName()==this.element?u.call(this,f):t(f,w(this)[f.getName()]),d.type==CKEDITOR.NODE_ELEMENT&&d.contains(e)&&(b(),d=e.getNext())),f=d}a.moveToBookmark(c);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}function f(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),
!1},CKEDITOR.NODE_ELEMENT,!0);return b}function m(a){var b=a.getEnclosedNode()||a.getCommonAncestor(!1,!0);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&q(a,this)}function k(a){var b=a.getCommonAncestor(!0,!0);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,c=b.attributes;if(c)for(var e in c)a.removeAttribute(e,c[e]);if(b.styles)for(var h in b.styles)b.styles.hasOwnProperty(h)&&a.removeStyle(h)}}function l(a){var b=
a.createBookmark(!0),e=a.createIterator();e.enforceRealBlocks=!0;this._.enterMode&&(e.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var h,f=a.document,d;h=e.getNextParagraph();)!h.isReadOnly()&&(e.activeFilter?e.activeFilter.check(this):1)&&(d=y(this,f,h),c(h,d));a.moveToBookmark(b)}function e(a){var b=a.createBookmark(1),e=a.createIterator();e.enforceRealBlocks=!0;e.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var h,f;h=e.getNextParagraph();)this.checkElementRemovable(h)&&(h.is("pre")?
((f=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&h.copyAttributes(f),c(h,f)):u.call(this,h));a.moveToBookmark(b)}function c(a,b){var c=!b;c&&(b=a.getDocument().createElement("div"),a.copyAttributes(b));var e=b&&b.is("pre"),f=a.is("pre"),d=!e&&f;if(e&&!f){f=b;(d=a.getBogus())&&d.remove();d=a.getHtml();d=n(d,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");d=d.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");d=d.replace(/([ \t\n\r]+|&nbsp;)/g,
" ");d=d.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var k=a.getDocument().createElement("div");k.append(f);f.$.outerHTML="\x3cpre\x3e"+d+"\x3c/pre\x3e";f.copyAttributes(k.getFirst());f=k.getFirst().remove()}else f.setHtml(d);b=f}else d?b=r(c?[a.getHtml()]:h(a),b):a.moveChildren(b);b.replace(a);if(e){var c=b,g;(g=c.getPrevious(E))&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("pre")&&(e=n(g.getHtml(),/\n$/,"")+"\n\n"+n(c.getHtml(),/^\n/,""),CKEDITOR.env.ie?c.$.outerHTML="\x3cpre\x3e"+e+"\x3c/pre\x3e":
c.setHtml(e),g.remove())}else c&&v(b)}function h(a){var b=[];n(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,b,c){return b+"\x3c/pre\x3e"+c+"\x3cpre\x3e"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,c){b.push(c)});return b}function n(a,b,c){var e="",h="";a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(e=b);c&&(h=c);return""});return e+a.replace(b,c)+h}function r(a,b){var c;
1<a.length&&(c=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var e=0;e<a.length;e++){var h=a[e],h=h.replace(/(\r\n|\r)/g,"\n"),h=n(h,/^[ \t]*\n/,""),h=n(h,/\n$/,""),h=n(h,/^[ \t]+|[ \t]+$/g,function(a,b){return 1==a.length?"\x26nbsp;":b?" "+CKEDITOR.tools.repeat("\x26nbsp;",a.length-1):CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "}),h=h.replace(/\n/g,"\x3cbr\x3e"),h=h.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "});if(c){var f=b.clone();f.setHtml(h);
c.append(f)}else b.setHtml(h)}return c||b}function u(a,b){var c=this._.definition,e=c.attributes,c=c.styles,h=w(this)[a.getName()],f=CKEDITOR.tools.isEmpty(e)&&CKEDITOR.tools.isEmpty(c),d;for(d in e)if("class"!=d&&!this._.definition.fullMatch||a.getAttribute(d)==z(d,e[d]))b&&"data-"==d.slice(0,5)||(f=a.hasAttribute(d),a.removeAttribute(d));for(var k in c)this._.definition.fullMatch&&a.getStyle(k)!=z(k,c[k],!0)||(f=f||!!a.getStyle(k),a.removeStyle(k));t(a,h,D[a.getName()]);f&&(this._.definition.alwaysRemoveElement?
v(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?v(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function p(a){for(var b=w(this),c=a.getElementsByTag(this.element),e,h=c.count();0<=--h;)e=c.getItem(h),e.isReadOnly()||u.call(this,e,!0);for(var f in b)if(f!=this.element)for(c=a.getElementsByTag(f),h=c.count()-1;0<=h;h--)e=c.getItem(h),e.isReadOnly()||t(e,b[f])}function t(a,b,c){if(b=b&&b.attributes)for(var e=0;e<b.length;e++){var h=b[e][0],
f;if(f=a.getAttribute(h)){var d=b[e][1];(null===d||d.test&&d.test(f)||"string"==typeof d&&f==d)&&a.removeAttribute(h)}}c||v(a)}function v(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var c=a.getPrevious(E),e=a.getNext(E);!c||c.type!=CKEDITOR.NODE_TEXT&&c.isBlockBoundary({br:1})||a.append("br",1);!e||e.type!=CKEDITOR.NODE_TEXT&&e.isBlockBoundary({br:1})||a.append("br");a.remove(!0)}else c=a.getFirst(),e=a.getLast(),a.remove(!0),c&&(c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings(),
e&&!c.equals(e)&&e.type==CKEDITOR.NODE_ELEMENT&&e.mergeSiblings())}function y(a,b,c){var e;e=a.element;"*"==e&&(e="span");e=new CKEDITOR.dom.element(e,b);c&&c.copyAttributes(e);e=q(e,a);b.getCustomData("doc_processing_style")&&e.hasAttribute("id")?e.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return e}function q(a,b){var c=b._.definition,e=c.attributes,c=CKEDITOR.style.getStyleText(c);if(e)for(var h in e)a.setAttribute(h,e[h]);c&&a.setAttribute("style",c);a.getDocument().removeCustomData("doc_processing_style");
return a}function B(a,b){for(var c in a)a[c]=a[c].replace(I,function(a,c){return b[c]})}function w(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},c=a._.definition.overrides;if(c){CKEDITOR.tools.isArray(c)||(c=[c]);for(var e=0;e<c.length;e++){var h=c[e],f,d;"string"==typeof h?f=h.toLowerCase():(f=h.element?h.element.toLowerCase():a.element,d=h.attributes);h=b[f]||(b[f]={});if(d){var h=h.attributes=h.attributes||[],k;for(k in d)h.push([k.toLowerCase(),d[k]])}}}return b}function z(a,
b,c){var e=new CKEDITOR.dom.element("span");e[c?"setStyle":"setAttribute"](a,b);return e[c?"getStyle":"getAttribute"](a)}function A(a,b){function c(a,b){return"font-family"==b.toLowerCase()?a.replace(/["']/g,""):a}"string"==typeof a&&(a=CKEDITOR.tools.parseCssText(a));"string"==typeof b&&(b=CKEDITOR.tools.parseCssText(b,!0));for(var e in a)if(!(e in b)||c(b[e],e)!=c(a[e],e)&&"inherit"!=a[e]&&"inherit"!=b[e])return!1;return!0}function C(a,b,c){var e=a.getRanges();b=b?this.removeFromRange:this.applyToRange;
for(var h,f=e.createIterator();h=f.getNextRange();)b.call(this,h,c);a.selectRanges(e)}var D={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},G=/\s*(?:;\s*|$)/,I=/#\((.+?)\)/g,M=CKEDITOR.dom.walker.bookmark(0,
1),E=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(a,b){if("string"==typeof a.type)return new CKEDITOR.style.customHandlers[a.type](a);var c=a.attributes;c&&c.style&&(a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(c.style)),delete c.style);b&&(a=CKEDITOR.tools.clone(a),B(a.attributes,b),B(a.styles,b));c=this.element=a.element?"string"==typeof a.element?a.element.toLowerCase():a.element:"*";this.type=a.type||(D[c]?CKEDITOR.STYLE_BLOCK:F[c]?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 b=this._.enterMode;b||(this._.enterMode=a.activeEnterMode);C.call(this,a.getSelection(),0,a);this._.enterMode=b}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return C.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),
a)){var b=this._.enterMode;b||(this._.enterMode=a.activeEnterMode);C.call(this,a.getSelection(),1,a);this._.enterMode=b}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?d:this.type==CKEDITOR.STYLE_BLOCK?l:this.type==CKEDITOR.STYLE_OBJECT?m:null;return this.applyToRange(a)},removeFromRange:function(b){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?a:this.type==CKEDITOR.STYLE_BLOCK?e:this.type==CKEDITOR.STYLE_OBJECT?k:null;return this.removeFromRange(b)},applyToObject:function(a){q(a,
this)},checkActive:function(a,b){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,!0,b);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var c=a.elements,e=0,h;e<c.length;e++)if(h=c[e],this.type!=CKEDITOR.STYLE_INLINE||h!=a.block&&h!=a.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var f=h.getName();if(!("string"==typeof this.element?f==this.element:f in this.element))continue}if(this.checkElementRemovable(h,!0,b))return!0}}return!1},checkApplicable:function(a,
b,c){b&&b instanceof CKEDITOR.filter&&(c=b);if(c&&!c.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,b){var c=this._.definition;if(!a||!c.ignoreReadonly&&a.isReadOnly())return!1;var e=a.getName();if("string"==typeof this.element?e==this.element:e in this.element){if(!b&&!a.hasAttributes())return!0;if(e=c._AC)c=e;else{var e={},h=0,f=c.attributes;
if(f)for(var d in f)h++,e[d]=f[d];if(d=CKEDITOR.style.getStyleText(c))e.style||h++,e.style=d;e._length=h;c=c._AC=e}if(c._length){for(var k in c)if("_length"!=k)if(e=a.getAttribute(k)||"","style"==k?A(c[k],e):c[k]==e){if(!b)return!0}else if(b)return!1;if(b)return!0}else return!0}return!1},checkElementRemovable:function(a,b,c){if(this.checkElementMatch(a,b,c))return!0;if(b=w(this)[a.getName()]){var e;if(!(b=b.attributes))return!0;for(c=0;c<b.length;c++)if(e=b[c][0],e=a.getAttribute(e)){var h=b[c][1];
if(null===h)return!0;if("string"==typeof h){if(e==h)return!0}else if(h.test(e))return!0}}return!1},buildPreview:function(a){var b=this._.definition,c=[],e=b.element;"bdo"==e&&(e="span");var c=["\x3c",e],h=b.attributes;if(h)for(var f in h)c.push(" ",f,'\x3d"',h[f],'"');(h=CKEDITOR.style.getStyleText(b))&&c.push(' style\x3d"',h,'"');c.push("\x3e",a||b.name,"\x3c/",e,"\x3e");return c.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var b=a._ST;if(b)return b;
var b=a.styles,c=a.attributes&&a.attributes.style||"",e="";c.length&&(c=c.replace(G,";"));for(var h in b){var f=b[h],d=(h+":"+f).replace(G,";");"inherit"==f?e+=d:c+=d}c.length&&(c=CKEDITOR.tools.normalizeCssText(c,!0));return a._ST=c+e};CKEDITOR.style.customHandlers={};CKEDITOR.style.unstylableElements=[];CKEDITOR.style.addCustomHandler=function(a){var b=function(a){this._={definition:a};this.setup&&this.setup(a)};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),
{assignedTo:CKEDITOR.STYLE_OBJECT},a,!0);return this.customHandlers[a.type]=b};var x=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,J=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED})();CKEDITOR.styleCommand=function(b,g){this.requiredContent=this.allowedContent=this.style=b;CKEDITOR.tools.extend(this,g,!0)};CKEDITOR.styleCommand.prototype.exec=function(b){b.focus();this.state==CKEDITOR.TRISTATE_OFF?b.applyStyle(this.style):
this.state==CKEDITOR.TRISTATE_ON&&b.removeStyle(this.style)};CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet");CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet);CKEDITOR.loadStylesSet=function(b,g,d){CKEDITOR.stylesSet.addExternal(b,g,"");CKEDITOR.stylesSet.load(b,d)};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(b,g){var d=this._.styleStateChangeCallbacks;d||(d=this._.styleStateChangeCallbacks=[],this.on("selectionChange",
function(a){for(var b=0;b<d.length;b++){var g=d[b],k=g.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;g.fn.call(this,k)}}));d.push({style:b,fn:g})},applyStyle:function(b){b.apply(this)},removeStyle:function(b){b.remove(this)},getStylesSet:function(b){if(this._.stylesDefinitions)b(this._.stylesDefinitions);else{var g=this,d=g.config.stylesCombo_stylesSet||g.config.stylesSet;if(!1===d)b(null);else if(d instanceof Array)g._.stylesDefinitions=d,b(d);else{d||(d="default");
var d=d.split(":"),a=d[0];CKEDITOR.stylesSet.addExternal(a,d[1]?d.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(a,function(f){g._.stylesDefinitions=f[a];b(g._.stylesDefinitions)})}}}});(function(){if(window.Promise)CKEDITOR.tools.promise=Promise;else{var b=CKEDITOR.getUrl("vendor/promise.js");if("function"===typeof window.define&&window.define.amd&&"function"===typeof window.require)return window.require([b],function(b){CKEDITOR.tools.promise=b});CKEDITOR.scriptLoader.load(b,
function(g){if(!g)return CKEDITOR.error("no-vendor-lib",{path:b});if("undefined"!==typeof window.ES6Promise)return CKEDITOR.tools.promise=ES6Promise})}})();(function(){function b(a,b,m){a.once("selectionCheck",function(a){if(!g){var l=a.data.getRanges()[0];m.equals(l)?a.cancel():b.equals(l)&&(d=!0)}},null,null,-1)}var g=!0,d=!1;CKEDITOR.dom.selection.setupEditorOptimization=function(a){a.on("selectionCheck",function(a){a.data&&!d&&a.data.optimizeInElementEnds();d=!1});a.on("contentDom",function(){var b=
a.editable();b&&(b.attachListener(b,"keydown",function(a){this._.shiftPressed=a.data.$.shiftKey},this),b.attachListener(b,"keyup",function(a){this._.shiftPressed=a.data.$.shiftKey},this))})};CKEDITOR.dom.selection.prototype.optimizeInElementEnds=function(){var a=this.getRanges()[0],f=this.root.editor,d;if(this.root.editor._.shiftPressed||this.isFake||a.isCollapsed||a.startContainer.equals(a.endContainer))d=!1;else if(0===a.endOffset)d=!0;else{d=a.startContainer.type===CKEDITOR.NODE_TEXT;var k=a.endContainer.type===
CKEDITOR.NODE_TEXT,l=d?a.startContainer.getLength():a.startContainer.getChildCount();d=a.startOffset===l||d^k}d&&(d=a.clone(),a.shrink(CKEDITOR.SHRINK_TEXT,!1,{skipBogus:!CKEDITOR.env.webkit}),g=!1,b(f,a,d),a.select(),g=!0)}})();(function(){function b(a,b){d(a)?a=Math.round(b*(parseFloat(a)/100)):"string"===typeof a&&a.match(/^\d+$/gm)&&(a=parseInt(a,10));return a}function g(a,b){d(a)?a=b*(parseFloat(a)/100):"string"===typeof a&&a.match(/^\d?\.\d+/gm)&&(a=parseFloat(a));return a}function d(a){return"string"===
typeof a&&a.match(/^((\d*\.\d+)|(\d+))%{1}$/gm)}function a(a,b,f){return!isNaN(a)&&a>=b&&a<=f}function f(a){a=a.toString(16);return 1==a.length?"0"+a:a}CKEDITOR.tools.color=CKEDITOR.tools.createClass({$:function(a,b){this._.initialColorCode=a;this._.defaultValue=b;this._.parseInput(a)},proto:{getHex:function(){if(!this._.isValidColor)return this._.defaultValue;var a=this._.blendAlphaColor(this._.red,this._.green,this._.blue,this._.alpha);return this._.formatHexString(a[0],a[1],a[2])},getHexWithAlpha:function(){if(!this._.isValidColor)return this._.defaultValue;
var a=Math.round(this._.alpha*CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE);return this._.formatHexString(this._.red,this._.green,this._.blue,a)},getRgb:function(){if(!this._.isValidColor)return this._.defaultValue;var a=this._.blendAlphaColor(this._.red,this._.green,this._.blue,this._.alpha);return this._.formatRgbString("rgb",a[0],a[1],a[2])},getRgba:function(){return this._.isValidColor?this._.formatRgbString("rgba",this._.red,this._.green,this._.blue,this._.alpha):this._.defaultValue},getHsl:function(){if(!this._.isValidColor)return this._.defaultValue;
var a=this._.blendAlphaColor(this._.red,this._.green,this._.blue,this._.alpha),a=this._.rgbToHsl(a[0],a[1],a[2]);return this._.formatHslString("hsl",a[0],a[1],a[2])},getHsla:function(){if(!this._.isValidColor)return this._.defaultValue;var a=this._.rgbToHsl(this._.red,this._.green,this._.blue);return this._.formatHslString("hsla",a[0],a[1],a[2],this._.alpha)},getInitialValue:function(){return this._.initialColorCode}},_:{initialColorCode:"",isValidColor:!0,red:0,green:0,blue:0,alpha:1,blendAlphaColor:function(a,
b,f,e){return CKEDITOR.tools.array.map([a,b,f],function(a){return Math.round(CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE-e*(CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE-a))})},formatHexString:function(a,b,d,e){a="#"+f(a)+f(b)+f(d);void 0!==e&&(a+=f(e));return a.toUpperCase()},formatRgbString:function(a,b,f,e,c){b=[b,f,e];void 0!==c&&b.push(c);return a+"("+b.join(",")+")"},formatHslString:function(a,b,f,e,c){return a+"("+b+","+f+"%,"+e+"%"+(void 0!==c?","+c:"")+")"},parseInput:function(a){if("string"!==
typeof a)this._.isValidColor=!1;else{a=CKEDITOR.tools.trim(a);var b=this._.matchStringToNamedColor(a);b&&(a=b);var b=this._.extractColorChannelsFromHex(a),f=this._.extractColorChannelsFromRgba(a);a=this._.extractColorChannelsFromHsla(a);(a=b||f||a)?(this._.red=a[0],this._.green=a[1],this._.blue=a[2],this._.alpha=a[3]):this._.isValidColor=!1}},matchStringToNamedColor:function(a){return CKEDITOR.tools.color.namedColors[a.toLowerCase()]||null},extractColorChannelsFromHex:function(a){a.match(CKEDITOR.tools.color.hex3CharsRegExp)&&
(a=this._.hex3ToHex6(a));if(!a.match(CKEDITOR.tools.color.hex6CharsRegExp)&&!a.match(CKEDITOR.tools.color.hex8CharsRegExp))return null;a=a.split("");var b=1;a[7]&&a[8]&&(b=parseInt(a[7]+a[8],16),b/=CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE,b=Number(b.toFixed(1)));return[parseInt(a[1]+a[2],16),parseInt(a[3]+a[4],16),parseInt(a[5]+a[6],16),b]},extractColorChannelsFromRgba:function(a){var f=this._.extractColorChannelsByPattern(a,CKEDITOR.tools.color.rgbRegExp);if(!f||(a=0===a.indexOf("rgba"))&&4!==
f.length||!a&&3!==f.length)return null;var d=b(f[0],CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE),e=b(f[1],CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE),c=b(f[2],CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE),h=1;a&&(h=g(f[3],CKEDITOR.tools.color.MAX_ALPHA_CHANNEL_VALUE));return this._.areColorChannelsValid(d,e,c,h)?[d,e,c,h]:null},extractColorChannelsFromHsla:function(a){var f=this._.extractColorChannelsByPattern(a,CKEDITOR.tools.color.hslRegExp);if(!f||(a=0===a.indexOf("hsla"))&&4!==f.length||!a&&3!==
f.length)return null;var d=b(f[0],CKEDITOR.tools.color.MAX_HUE_CHANNEL_VALUE),e=g(f[1],CKEDITOR.tools.color.MAX_SATURATION_LIGHTNESS_CHANNEL_VALUE),c=g(f[2],CKEDITOR.tools.color.MAX_SATURATION_LIGHTNESS_CHANNEL_VALUE),h=1,d=this._.hslToRgb(d,e,c);a&&(h=g(f[3],CKEDITOR.tools.color.MAX_ALPHA_CHANNEL_VALUE));d.push(h);return this._.areColorChannelsValid(d[0],d[1],d[2],d[3])?d:null},hex3ToHex6:function(a){a=a.split("");return"#"+a[1]+a[1]+a[2]+a[2]+a[3]+a[3]},extractColorChannelsByPattern:function(a,
b){var f=a.match(b);if(!f)return null;f=f[2].split(",");return f=CKEDITOR.tools.array.map(f,function(a){return CKEDITOR.tools.trim(a)})},areColorChannelsValid:function(b,f,d,e){return a(b,0,CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)&&a(f,0,CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)&&a(d,0,CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)&&a(e,0,CKEDITOR.tools.color.MAX_ALPHA_CHANNEL_VALUE)},hslToRgb:function(a,b,f){var e=function(c){var e=(c+a/30)%12;c=b*Math.min(f,1-f);e=Math.min(e-3,9-e,1);e=Math.max(-1,
e);return Math.round((f-c*e)*CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)};return[e(0),e(8),e(4)]},rgbToHsl:function(a,b,f){a/=CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE;b/=CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE;var e=f/CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE,c=Math.max(a,b,e),h=Math.min(a,b,e);f=c-h;var d=0;switch(c){case a:d=(b-e)/f%6;break;case b:d=(e-a)/f+2;break;case e:d=(a-b)/f+4}a=0===f?0:60*d;b=(c+h)/2;c=0;1!==b&&0!==b&&(c=f/(1-Math.abs(2*b-1)));a=Math.round(a);c=100*Math.round(c);return[a,
c,100*b]}},statics:{MAX_RGB_CHANNEL_VALUE:255,MAX_ALPHA_CHANNEL_VALUE:1,MAX_HUE_CHANNEL_VALUE:360,MAX_SATURATION_LIGHTNESS_CHANNEL_VALUE:1,hex3CharsRegExp:/#([0-9a-f]{3}$)/gim,hex6CharsRegExp:/#([0-9a-f]{6}$)/gim,hex8CharsRegExp:/#([0-9a-f]{8}$)/gim,rgbRegExp:/(rgb[a]?)\(([.,\d\s%]*)\)/i,hslRegExp:/(hsl[a]?)\(([.,\d\s%]*)\)/i,namedColors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",
blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",
darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",
ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",
magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",
palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",
steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",windowtext:"windowtext",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}}});CKEDITOR.tools.style.parse._colors=CKEDITOR.tools.color.namedColors})();CKEDITOR.dom.comment=function(b,g){"string"==typeof b&&(b=(g?g.$:document).createComment(b));CKEDITOR.dom.domObject.call(this,b)};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 b={},g={},d;for(d in CKEDITOR.dtd.$blockLimit)d in CKEDITOR.dtd.$list||(b[d]=1);for(d in CKEDITOR.dtd.$block)d in CKEDITOR.dtd.$blockLimit||d in CKEDITOR.dtd.$empty||(g[d]=1);CKEDITOR.dom.elementPath=function(a,f){var d=null,k=null,l=[],e=a,c;f=f||a.getDocument().getBody();e||(e=f);do if(e.type==CKEDITOR.NODE_ELEMENT){l.push(e);if(!this.lastElement&&(this.lastElement=e,e.is(CKEDITOR.dtd.$object)||
"false"==e.getAttribute("contenteditable")))continue;if(e.equals(f))break;if(!k&&(c=e.getName(),"true"==e.getAttribute("contenteditable")?k=e:!d&&g[c]&&(d=e),b[c])){if(c=!d&&"div"==c){a:{c=e.getChildren();for(var h=0,n=c.count();h<n;h++){var r=c.getItem(h);if(r.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[r.getName()]){c=!0;break a}}c=!1}c=!c}c?d=e:k=e}}while(e=e.getParent());k||(k=f);this.block=d;this.blockLimit=k;this.root=f;this.elements=l}})();CKEDITOR.dom.elementPath.prototype={compare:function(b){var g=
this.elements;b=b&&b.elements;if(!b||g.length!=b.length)return!1;for(var d=0;d<g.length;d++)if(!g[d].equals(b[d]))return!1;return!0},contains:function(b,g,d){var a=0,f;"string"==typeof b&&(f=function(a){return a.getName()==b});b instanceof CKEDITOR.dom.element?f=function(a){return a.equals(b)}:CKEDITOR.tools.isArray(b)?f=function(a){return-1<CKEDITOR.tools.indexOf(b,a.getName())}:"function"==typeof b?f=b:"object"==typeof b&&(f=function(a){return a.getName()in b});var m=this.elements,k=m.length;g&&
(d?a+=1:--k);d&&(m=Array.prototype.slice.call(m,0),m.reverse());for(;a<k;a++)if(f(m[a]))return m[a];return null},isContextFor:function(b){var g;return b in CKEDITOR.dtd.$block?(g=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!g.getDtd()[b]):!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}};CKEDITOR.dom.text=function(b,g){"string"==typeof b&&(b=(g?g.$:document).createTextNode(b));this.$=b};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(b){this.$.nodeValue=b},isEmpty:function(b){var g=this.getText();b&&(g=CKEDITOR.tools.trim(g));return!g||g===CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE},split:function(b){var g=this.$.parentNode,d=g.childNodes.length,a=this.getLength(),f=this.getDocument(),m=new CKEDITOR.dom.text(this.$.splitText(b),
f);g.childNodes.length==d&&(b>=a?(m=f.createText(""),m.insertAfter(this)):(b=f.createText(""),b.insertAfter(m),b.remove()));return m},substring:function(b,g){return"number"!=typeof g?this.$.nodeValue.substr(b):this.$.nodeValue.substring(b,g)}});(function(){function b(b,a,f){var g=b.serializable,k=a[f?"endContainer":"startContainer"],l=f?"endOffset":"startOffset",e=g?a.document.getById(b.startNode):b.startNode;b=g?a.document.getById(b.endNode):b.endNode;k.equals(e.getPrevious())?(a.startOffset=a.startOffset-
k.getLength()-b.getPrevious().getLength(),k=b.getNext()):k.equals(b.getPrevious())&&(a.startOffset-=k.getLength(),k=b.getNext());k.equals(e.getParent())&&a[l]++;k.equals(b.getParent())&&a[l]++;a[f?"endContainer":"startContainer"]=k;return a}CKEDITOR.dom.rangeList=function(b){if(b instanceof CKEDITOR.dom.rangeList)return b;b?b instanceof CKEDITOR.dom.range&&(b=[b]):b=[];return CKEDITOR.tools.extend(b,g)};var g={createIterator:function(){var b=this,a=CKEDITOR.dom.walker.bookmark(),f=[],g;return{getNextRange:function(k){g=
void 0===g?0:g+1;var l=b[g];if(l&&1<b.length){if(!g)for(var e=b.length-1;0<=e;e--)f.unshift(b[e].createBookmark(!0));if(k)for(var c=0;b[g+c+1];){var h=l.document;k=0;e=h.getById(f[c].endNode);for(h=h.getById(f[c+1].startNode);;){e=e.getNextSourceNode(!1);if(h.equals(e))k=1;else if(a(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary())continue;break}if(!k)break;c++}for(l.moveToBookmark(f.shift());c--;)e=b[++g],e.moveToBookmark(f.shift()),l.setEnd(e.endContainer,e.endOffset)}return l}}},createBookmarks:function(d){for(var a=
[],f,g=0;g<this.length;g++){a.push(f=this[g].createBookmark(d,!0));for(var k=g+1;k<this.length;k++)this[k]=b(f,this[k]),this[k]=b(f,this[k],!0)}return a},createBookmarks2:function(b){for(var a=[],f=0;f<this.length;f++)a.push(this[f].createBookmark2(b));return a},moveToBookmarks:function(b){for(var a=0;a<this.length;a++)this[a].moveToBookmark(b[a])}}})();(function(){function b(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function g(a){var e=
CKEDITOR.skin["ua_"+a],f=CKEDITOR.env;if(e)for(var e=e.split(",").sort(function(a,b){return a>b?-1:1}),d=0,k;d<e.length;d++)if(k=e[d],f.ie&&(k.replace(/^ie/,"")==f.version||f.quirks&&"iequirks"==k)&&(k="ie"),f[k]){a+="_"+e[d];break}return CKEDITOR.getUrl(b()+a+".css")}function d(a,b){m[a]||(CKEDITOR.document.appendStyleSheet(g(a)),m[a]=1);b&&b()}function a(a){var b=a.getById(k);b||(b=a.getHead().append("style"),b.setAttribute("id",k),b.setAttribute("type","text/css"));return b}function f(a,b,e){var f,
d,k;if(CKEDITOR.env.webkit)for(b=b.split("}").slice(0,-1),d=0;d<b.length;d++)b[d]=b[d].split("{");for(var g=0;g<a.length;g++)if(CKEDITOR.env.webkit)for(d=0;d<b.length;d++){k=b[d][1];for(f=0;f<e.length;f++)k=k.replace(e[f][0],e[f][1]);a[g].$.sheet.addRule(b[d][0],k)}else{k=b;for(f=0;f<e.length;f++)k=k.replace(e[f][0],e[f][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?a[g].$.styleSheet.cssText+=k:a[g].$.innerHTML+=k}}var m={};CKEDITOR.skin={path:b,loadPart:function(a,e){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?
CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(b()+"skin.js"),function(){d(a,e)}):d(a,e)},getPath:function(a){return CKEDITOR.getUrl(g(a))},icons:{},addIcon:function(a,b,e,f){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:e||0,bgsize:f||"16px"})},getIconStyle:function(a,b,e,f,d){var k;a&&(a=a.toLowerCase(),b&&(k=this.icons[a+"-rtl"]),k||(k=this.icons[a]));a=e||k&&k.path||"";f=f||k&&k.offset;d=d||k&&k.bgsize||"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+
"');background-position:0 "+f+"px;background-size:"+d+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(b){var h=a(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var b=CKEDITOR.skin.chameleon,c="",d="";"function"==typeof b&&(c=b(this,"editor"),d=b(this,"panel"));a=[[e,a]];f([h],c,a);f(l,d,a)}).call(this,b)}});var k="cke_ui_color",l=[],e=/\$color/g;CKEDITOR.on("instanceLoaded",function(b){if(!CKEDITOR.env.ie||
!CKEDITOR.env.quirks){var h=b.editor;b=function(b){b=(b.data[0]||b.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!b.getById("cke_ui_color")){var c=a(b);l.push(c);h.on("destroy",function(){l=CKEDITOR.tools.array.filter(l,function(a){return c!==a})});(b=h.getUiColor())&&f([c],CKEDITOR.skin.chameleon(h,"panel"),[[e,b]])}};h.on("panelShow",b);h.on("menuShow",b);h.config.uiColor&&h.setUiColor(h.config.uiColor)}})})();(function(){var b=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);b.appendTo(CKEDITOR.document.getHead());try{var g=b.getComputedStyle("border-top-color"),d=b.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!g||g!=d)}catch(a){CKEDITOR.env.hc=!1}b.remove();CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(b=CKEDITOR._.pending)for(delete CKEDITOR._.pending,g=0;g<b.length;g++)CKEDITOR.editor.prototype.constructor.apply(b[g][0],
b[g][1]),CKEDITOR.add(b[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 b=function(){return function(b,a){for(var f=b.match(/[^#]./g),g=0;3>g;g++){var k=g,l;l=parseInt(f[g],16);l=("0"+(0>a?0|l*(1+a):0|l+(255-l)*a).toString(16)).slice(-2);f[k]=l}return"#"+f.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(d,a){var f=b(d.uiColor,.4),f={id:"."+d.id,defaultBorder:b(f,-.2),toolbarElementsBorder:b(f,-.25),defaultBackground:f,lightBackground:b(f,.8),darkBackground:b(f,-.15),ckeButtonOn:b(f,.4),ckeResizer:b(f,-.4),ckeColorauto:b(f,.8),dialogBody:b(f,.7),dialogTab:b(f,.65),dialogTabSelected:"#FFF",dialogTabSelectedBorder:"#FFF",elementsPathColor:b(f,-.6),menubuttonHover:b(f,.1),menubuttonIcon:b(f,.5),menubuttonIconHover:b(f,.3)};return g[a].output(f).replace(/\[/g,"{").replace(/\]/g,"}")}}();
CKEDITOR.plugins.add("dialogui",{onLoad:function(){var b=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||!1;for(var b=[this._],h=1;h<arguments.length;h++)b.push(arguments[h]);b.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,b);return this._},g={build:function(a,b,h){return new CKEDITOR.ui.dialog.textInput(a,b,h)}},d={build:function(a,b,h){return new CKEDITOR.ui.dialog[b.type](a,b,h)}},a={isChanged:function(){return this.getValue()!=
this.getInitValue()},reset:function(a){this.setValue(this.getInitValue(),a)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},f=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,b){this._.domOnChangeRegistered||(a.on("load",function(){this.getInputElement().on("change",function(){a.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},
this)},this),this._.domOnChangeRegistered=!0);this.on("change",b)}},!0),m=/^on([A-Z]\w+)/,k=function(a){for(var b in a)(m.test(b)||"title"==b||"type"==b)&&delete a[b];return a},l=function(a){a=a.data.getKeystroke();a==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):a==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(a,c,h,f){if(!(4>arguments.length)){var d=b.call(this,c);d.labelId=CKEDITOR.tools.getNextId()+
"_label";this._.children=[];var k={role:c.role||"presentation"};c.includeLabel&&(k["aria-labelledby"]=d.labelId);CKEDITOR.ui.dialog.uiElement.call(this,a,c,h,"div",null,k,function(){var b=[],h=c.required?" cke_required":"";"horizontal"!=c.labelLayout?b.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+h+'" ',' id\x3d"'+d.labelId+'"',d.inputId?' for\x3d"'+d.inputId+'"':"",(c.labelStyle?' style\x3d"'+c.labelStyle+'"':"")+"\x3e",c.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"',
c.controlStyle?' style\x3d"'+c.controlStyle+'"':"",' role\x3d"presentation"\x3e',f.call(this,a,c),"\x3c/div\x3e"):(h={type:"hbox",widths:c.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+h+'" id\x3d"'+d.labelId+'" for\x3d"'+d.inputId+'"'+(c.labelStyle?' style\x3d"'+c.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(c.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(c.controlStyle?' style\x3d"'+c.controlStyle+
'"':"")+"\x3e"+f.call(this,a,c)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(a,h,b));return b.join("")})}},textInput:function(a,c,h){if(!(3>arguments.length)){b.call(this,c);var f=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",d={"class":"cke_dialog_ui_input_"+c.type,id:f,type:c.type};c.validate&&(this.validate=c.validate);c.maxLength&&(d.maxlength=c.maxLength);c.size&&(d.size=c.size);c.inputStyle&&(d.style=c.inputStyle);var k=this,g=!1;a.on("load",function(){k.getInputElement().on("keydown",
function(a){13==a.data.getKeystroke()&&(g=!0)});k.getInputElement().on("keyup",function(b){13==b.data.getKeystroke()&&g&&(a.getButton("ok")&&setTimeout(function(){a.getButton("ok").click()},0),g=!1);k.bidi&&l.call(k,b)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,a,c,h,function(){var a=['\x3cdiv class\x3d"cke_dialog_ui_input_',c.type,'" role\x3d"presentation"'];c.width&&a.push('style\x3d"width:'+c.width+'" ');a.push("\x3e\x3cinput ");d["aria-labelledby"]=this._.labelId;this._.required&&
(d["aria-required"]=this._.required);for(var b in d)a.push(b+'\x3d"'+d[b]+'" ');a.push(" /\x3e\x3c/div\x3e");return a.join("")})}},textarea:function(a,c,h){if(!(3>arguments.length)){b.call(this,c);var f=this,d=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",k={};c.validate&&(this.validate=c.validate);k.rows=c.rows||5;k.cols=c.cols||20;k["class"]="cke_dialog_ui_input_textarea "+(c["class"]||"");"undefined"!=typeof c.inputStyle&&(k.style=c.inputStyle);c.dir&&(k.dir=c.dir);if(f.bidi)a.on("load",
function(){f.getInputElement().on("keyup",l)},f);CKEDITOR.ui.dialog.labeledElement.call(this,a,c,h,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"',d,'" '],b;for(b in k)a.push(b+'\x3d"'+CKEDITOR.tools.htmlEncode(k[b])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(f._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(a,
c,h){if(!(3>arguments.length)){var f=b.call(this,c,{"default":!!c["default"]});c.validate&&(this.validate=c.validate);CKEDITOR.ui.dialog.uiElement.call(this,a,c,h,"span",null,null,function(){var b=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),h=[],d=CKEDITOR.tools.getNextId()+"_label",g={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":d};k(b);c["default"]&&(g.checked="checked");"undefined"!=typeof b.inputStyle&&(b.style=b.inputStyle);
f.checkbox=new CKEDITOR.ui.dialog.uiElement(a,b,h,"input",null,g);h.push(' \x3clabel id\x3d"',d,'" for\x3d"',g.id,'"'+(c.labelStyle?' style\x3d"'+c.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(c.label),"\x3c/label\x3e");return h.join("")})}},radio:function(a,c,h){if(!(3>arguments.length)){b.call(this,c);this._["default"]||(this._["default"]=this._.initValue=c.items[0][1]);c.validate&&(this.validate=c.validate);var f=[],d=this;c.role="radiogroup";c.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this,
a,c,h,function(){for(var b=[],h=[],g=(c.id?c.id:CKEDITOR.tools.getNextId())+"_radio",l=0;l<c.items.length;l++){var m=c.items[l],q=void 0!==m[2]?m[2]:m[0],B=void 0!==m[1]?m[1]:m[0],w=CKEDITOR.tools.getNextId()+"_radio_input",z=w+"_label",w=CKEDITOR.tools.extend({},c,{id:w,title:null,type:null},!0),q=CKEDITOR.tools.extend({},w,{title:q},!0),A={type:"radio","class":"cke_dialog_ui_radio_input",name:g,value:B,"aria-labelledby":z},C=[];d._["default"]==B&&(A.checked="checked");k(w);k(q);"undefined"!=typeof w.inputStyle&&
(w.style=w.inputStyle);w.keyboardFocusable=!0;f.push(new CKEDITOR.ui.dialog.uiElement(a,w,C,"input",null,A));C.push(" ");new CKEDITOR.ui.dialog.uiElement(a,q,C,"label",null,{id:z,"for":A.id},m[0]);b.push(C.join(""))}new CKEDITOR.ui.dialog.hbox(a,f,b,h);return h.join("")});this._.children=f}},button:function(a,c,h){if(arguments.length){"function"==typeof c&&(c=c(a.getParentEditor()));b.call(this,c,{disabled:c.disabled||!1});CKEDITOR.event.implementOn(this);var f=this;a.on("load",function(){var a=this.getElement();
(function(){a.on("click",function(a){f.click();a.data.preventDefault()});a.on("keydown",function(a){a.data.getKeystroke()in{32:1}&&(f.click(),a.data.preventDefault())})})();a.unselectable()},this);var d=CKEDITOR.tools.extend({},c);delete d.style;var k=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,d,h,"a",null,{style:c.style,href:"javascript:void(0)",title:c.label,hidefocus:"true","class":c["class"],role:"button","aria-labelledby":k},'\x3cspan id\x3d"'+k+'" class\x3d"cke_dialog_ui_button"\x3e'+
CKEDITOR.tools.htmlEncode(c.label)+"\x3c/span\x3e")}},select:function(a,c,h){if(!(3>arguments.length)){var f=b.call(this,c);c.validate&&(this.validate=c.validate);f.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,c,h,function(){var b=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),h=[],d=[],g={id:f.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};h.push('\x3cdiv class\x3d"cke_dialog_ui_input_',
c.type,'" role\x3d"presentation"');c.width&&h.push('style\x3d"width:'+c.width+'" ');h.push("\x3e");void 0!==c.size&&(g.size=c.size);void 0!==c.multiple&&(g.multiple=c.multiple);k(b);for(var l=0,m;l<c.items.length&&(m=c.items[l]);l++)d.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 b.inputStyle&&(b.style=b.inputStyle);f.select=new CKEDITOR.ui.dialog.uiElement(a,b,h,"select",null,
g,d.join(""));h.push("\x3c/div\x3e");return h.join("")})}},file:function(a,c,h){if(!(3>arguments.length)){void 0===c["default"]&&(c["default"]="");var f=CKEDITOR.tools.extend(b.call(this,c),{definition:c,buttons:[]});c.validate&&(this.validate=c.validate);a.on("load",function(){CKEDITOR.document.getById(f.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,c,h,function(){f.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"',
f.frameId,'" title\x3d"',c.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(a,c,h){var f=this;if(!(3>arguments.length)){b.call(this,c);c.validate&&(this.validate=c.validate);var d=CKEDITOR.tools.extend({},c),k=d.onClick;d.className=(d.className?d.className+" ":"")+"cke_dialog_ui_button";d.onClick=function(b){var h=
c["for"];b=k?k.call(this,b):!1;!1!==b&&("xhr"!==b&&a.getContentElement(h[0],h[1]).submit(),this.disable())};a.on("load",function(){a.getContentElement(c["for"][0],c["for"][1])._.buttons.push(f)});CKEDITOR.ui.dialog.button.call(this,a,d,h)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,h=/\/$/;return function(f,d,k){if(!(3>arguments.length)){var g=[],l=d.html;"\x3c"!=l.charAt(0)&&(l="\x3cspan\x3e"+l+"\x3c/span\x3e");var m=d.focus;if(m){var y=this.focus;
this.focus=function(){("function"==typeof m?m:y).call(this);this.fire("focus")};d.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,f,d,g,"span",null,null,"");g=g.join("").match(a);l=l.match(b)||["","",""];h.test(l[1])&&(l[1]=l[1].slice(0,-1),l[2]="/"+l[2]);k.push([l[1]," ",g[1]||"",l[2]].join(""))}}}(),fieldset:function(a,b,h,f,d){var k=d.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,d,f,"fieldset",null,null,function(){var a=
[];k&&a.push("\x3clegend"+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e"+k+"\x3c/legend\x3e");for(var b=0;b<h.length;b++)a.push(h[b]);return a.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(a){var b=CKEDITOR.document.getById(this._.labelId);1>b.getChildCount()?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(b):b.getChild(0).$.nodeValue=
a;return this},getLabel:function(){var a=CKEDITOR.document.getById(this._.labelId);return!a||1>a.getChildCount()?"":a.getChild(0).getText()},eventProcessors:f},!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 a=this.getElement();a&&a.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(a,b){this.on("click",function(){b.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 a=this.selectParentTab();setTimeout(function(){var b=a.getInputElement();b&&b.$.focus()},0)},select:function(){var a=this.selectParentTab();setTimeout(function(){var b=a.getInputElement();b&&(b.$.focus(),b.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var b=a&&a.charAt(0);(b="‪"==b?"ltr":"‫"==b?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(b)}a||(a="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},
getValue:function(){var a=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&a){var b=this.getDirectionMarker();b&&(a=("ltr"==b?"‪":"‫")+a)}return a},setDirectionMarker:function(a){var b=this.getInputElement();a?b.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&b.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},a,!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(a,b,h){var f=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),d=this.getInputElement().$;f.$.text=a;f.$.value=void 0===b||null===b?a:b;void 0===h||null===h?CKEDITOR.env.ie?d.add(f.$):d.add(f.$,null):d.add(f.$,h);return this},remove:function(a){this.getInputElement().$.remove(a);
return this},clear:function(){for(var a=this.getInputElement().$;0<a.length;)a.remove(0);return this},keyboardFocusable:!0},a,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,b){this.getInputElement().$.checked=a;!b&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,
b){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return f.onChange.apply(this,arguments);a.on("load",function(){var a=this._.checkbox.getElement();a.on("propertychange",function(b){b=b.data.$;"checked"==b.propertyName&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",b);return null}},keyboardFocusable:!0},a,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,b){for(var h=this._.children,f,d=0;d<h.length&&(f=h[d]);d++)f.getElement().$.checked=
f.getValue()==a;!b&&this.fire("change",{value:a})},getValue:function(){for(var a=this._.children,b=0;b<a.length;b++)if(a[b].getElement().$.checked)return a[b].getValue();return null},accessKeyUp:function(){var a=this._.children,b;for(b=0;b<a.length;b++)if(a[b].getElement().$.checked){a[b].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,b){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return f.onChange.apply(this,arguments);a.on("load",function(){for(var a=
this._.children,b=this,c=0;c<a.length;c++)a[c].getElement().on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.$.checked&&b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",b);return null}}},a,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,a,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<a.$.forms.length?new CKEDITOR.dom.element(a.$.forms[0].elements[0]):
this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(a){var b=/^on([A-Z]\w+)/,h,f=function(a,b,c,e){a.on("formLoaded",function(){a.getInputElement().on(c,e,a)})},d;for(d in a)if(h=d.match(b))this.eventProcessors[d]?this.eventProcessors[d].call(this,this._.dialog,a[d]):f(this,this._.dialog,h[1].toLowerCase(),a[d]);return this},reset:function(){function a(){h.$.open();
var e="";f.size&&(e=f.size-(CKEDITOR.env.ie?7:0));var q=b.frameId+"_input";h.$.write(['\x3chtml dir\x3d"'+l+'" lang\x3d"'+m+'"\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"'+l+'" lang\x3d"'+m+'" action\x3d"',CKEDITOR.tools.htmlEncode(f.action),'"\x3e\x3clabel id\x3d"',b.labelId,'" for\x3d"',q,'" style\x3d"display:none"\x3e',CKEDITOR.tools.htmlEncode(f.label),
'\x3c/label\x3e\x3cinput style\x3d"width:100%" id\x3d"',q,'" aria-labelledby\x3d"',b.labelId,'" type\x3d"file" name\x3d"',CKEDITOR.tools.htmlEncode(f.id||"cke_upload"),'" size\x3d"',CKEDITOR.tools.htmlEncode(0<e?e:""),'" /\x3e\x3c/form\x3e\x3c/body\x3e\x3c/html\x3e\x3cscript\x3e',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+k+");","window.onbeforeunload \x3d function() {window.parent.CKEDITOR.tools.callFunction("+g+")}","\x3c/script\x3e"].join(""));
h.$.close();for(e=0;e<d.length;e++)d[e].enable()}var b=this._,h=CKEDITOR.document.getById(b.frameId).getFrameDocument(),f=b.definition,d=b.buttons,k=this.formLoadedNumber,g=this.formUnloadNumber,l=b.dialog._.editor.lang.dir,m=b.dialog._.editor.langCode;k||(k=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(k);
CKEDITOR.tools.removeFunction(g)}));CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(a,b){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",b)}},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("tel",g);CKEDITOR.dialog.addUIElement("textarea",d);CKEDITOR.dialog.addUIElement("checkbox",d);CKEDITOR.dialog.addUIElement("radio",d);CKEDITOR.dialog.addUIElement("button",d);CKEDITOR.dialog.addUIElement("select",d);CKEDITOR.dialog.addUIElement("file",d);CKEDITOR.dialog.addUIElement("fileButton",
d);CKEDITOR.dialog.addUIElement("html",d);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,b,h){for(var f=b.children,d,k=[],g=[],l=0;l<f.length&&(d=f[l]);l++){var m=[];k.push(m);g.push(CKEDITOR.dialog._.uiElementBuilders[d.type].build(a,d,m))}return new CKEDITOR.ui.dialog[b.type](a,g,k,h,b)}})}});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 b(a){a._.tabBarMode=
!0;a._.tabs[a._.currentTabId][0].focus();a._.currentFocusIndex=-1}function g(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,c=b-1;c>b-a;c--)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function d(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),c=b+1;c<b+a;c++)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];
return null}function a(a,b){for(var c=a.$.getElementsByTagName("input"),e=0,h=c.length;e<h;e++){var f=new CKEDITOR.dom.element(c[e]);"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 f(a,b){var c=this.getInputElement();c&&(a?c.removeAttribute("aria-invalid"):c.setAttribute("aria-invalid",!0));a||(this.select?this.select():
this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function m(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function k(a){var b=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",M).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":""})),c=b.getChild([0,0,0,0,0]),e=c.getChild(0),
h=c.getChild(1);a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(c);!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(c.getParent()));e.unselectable();h.unselectable();return{element:b,
parts:{dialog:b.getChild(0),title:e,close:h,tabs:c.getChild(2),contents:c.getChild([3,0,0,0]),footer:c.getChild([3,0,1,0])}}}function l(a,b,c){this.element=b;this.focusIndex=c;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 e(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function c(a,b){this.dialog=a;for(var c=b.contents,e=0,f;f=c[e];e++)c[e]=f&&new h(a,f);CKEDITOR.tools.extend(this,b)}function h(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function n(a){function b(c){var g=a.getSize(),l=a.parts.dialog.getParent().getClientSize(),m=c.data.$.screenX,n=c.data.$.screenY,r=m-e.x,q=n-e.y;e={x:m,y:n};h.x+=r;h.y+=q;m=h.x+
k[3]<d?-k[3]:h.x-k[1]>l.width-g.width-d?l.width-g.width+("rtl"==f.lang.dir?0:k[1]):h.x;g=h.y+k[0]<d?-k[0]:h.y-k[2]>l.height-g.height-d?l.height-g.height+k[2]:h.y;m=Math.floor(m);g=Math.floor(g);a.move(m,g,1);c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var a=F.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var e=null,h=null,f=a.getParentEditor(),
d=f.config.dialog_magnetDistance,k=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof d&&(d=20);a.parts.title.on("mousedown",function(f){if(!a._.moved){var d=a._.element;d.getFirst().setStyle("position","absolute");d.removeStyle("display");a._.moved=!0;a.layout()}e={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);h=a.getPosition();CKEDITOR.env.ie6Compat&&(d=F.getChild(0).getFrameDocument(),d.on("mousemove",b),d.on("mouseup",c));f.data.preventDefault()},
a)}function r(a){function b(c){var n="rtl"==f.lang.dir,r=m.width,q=m.height,v=r+(c.data.$.screenX-l.x)*(n?-1:1)*(a._.moved?1:2),P=q+(c.data.$.screenY-l.y)*(a._.moved?1:2),y=a._.element.getFirst(),y=n&&parseInt(y.getComputedStyle("right"),10),w=a.getPosition();w.x=w.x||0;w.y=w.y||0;w.y+P>g.height&&(P=g.height-w.y);(n?y:w.x)+v>g.width&&(v=g.width-(n?y:w.x));P=Math.floor(P);v=Math.floor(v);if(h==CKEDITOR.DIALOG_RESIZE_WIDTH||h==CKEDITOR.DIALOG_RESIZE_BOTH)r=Math.max(e.minWidth||0,v-d);if(h==CKEDITOR.DIALOG_RESIZE_HEIGHT||
h==CKEDITOR.DIALOG_RESIZE_BOTH)q=Math.max(e.minHeight||0,P-k);a.resize(r,q);a._.moved&&u(a,a._.position.x,a._.position.y);a._.moved||a.layout();c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mouseup",c);CKEDITOR.document.removeListener("mousemove",b);n&&(n.remove(),n=null);if(CKEDITOR.env.ie6Compat){var a=F.getChild(0).getFrameDocument();a.removeListener("mouseup",c);a.removeListener("mousemove",b)}}var e=a.definition,h=e.resizable;if(h!=CKEDITOR.DIALOG_RESIZE_NONE){var f=
a.getParentEditor(),d,k,g,l,m,n,r=CKEDITOR.tools.addFunction(function(e){function h(a){return a.isVisible()}m=a.getSize();var f=a.parts.contents,r=f.$.getElementsByTagName("iframe").length,q=!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks);r&&(n=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%; left:0; top:0;"\x3e\x3c/div\x3e'),f.append(n));k=m.height-a.parts.contents.getFirst(h).getSize("height",q);
d=m.width-a.parts.contents.getFirst(h).getSize("width",1);l={x:e.screenX,y:e.screenY};g=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);CKEDITOR.env.ie6Compat&&(f=F.getChild(0).getFrameDocument(),f.on("mousemove",b),f.on("mouseup",c));e.preventDefault&&e.preventDefault()});a.on("load",function(){var b="";h==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":h==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('+r+', event )"\x3e'+("ltr"==f.lang.dir?"◢":"◣")+"\x3c/div\x3e");a.parts.footer.append(b,1)});f.on("destroy",function(){CKEDITOR.tools.removeFunction(r)})}}function u(a,b,c){var e=a.parts.dialog.getParent().getClientSize(),h=a.getSize(),f=a._.viewportRatio,d=Math.max(e.width-h.width,0),e=Math.max(e.height-h.height,0);f.width=d?b/d:f.width;f.height=e?c/e:f.height;
a._.viewportRatio=f}function p(a){a.data.preventDefault(1)}function t(a){var b=a.config,c=CKEDITOR.skinName||a.config.skin,e=b.dialog_backgroundCoverColor||("moono-lisa"==c?"black":"white"),c=b.dialog_backgroundCoverOpacity,h=b.baseFloatZIndex,b=CKEDITOR.tools.genKey(e,c,h),f=L[b];CKEDITOR.document.getBody().addClass("cke_dialog_open");f?f.show():(h=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",h,"; top: 0px; left: 0px; ","; width: 100%; height: 100%;",
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",h.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),h.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+e+"' );document.close();")+"})())"),h.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')),
h.push("\x3c/div\x3e"),f=CKEDITOR.dom.element.createFromHtml(h.join("")),f.setOpacity(void 0!==c?c:.5),f.on("keydown",p),f.on("keypress",p),f.on("keyup",p),f.appendTo(CKEDITOR.document.getBody()),L[b]=f);a.focusManager.add(f);F=f;CKEDITOR.env.mac&&CKEDITOR.env.webkit||f.focus()}function v(a){CKEDITOR.document.getBody().removeClass("cke_dialog_open");F&&(a.focusManager.remove(F),F.hide())}function y(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,e=a.data.$.shiftKey,h=String.fromCharCode(a.data.$.keyCode);
(b=Q[(b?"CTRL+":"")+(c?"ALT+":"")+(e?"SHIFT+":"")+h])&&b.length&&(b=b[b.length-1],b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key),a.data.preventDefault())}function q(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,e=a.data.$.shiftKey,h=String.fromCharCode(a.data.$.keyCode);(b=Q[(b?"CTRL+":"")+(c?"ALT+":"")+(e?"SHIFT+":"")+h])&&b.length&&(b=b[b.length-1],b.keyup&&(b.keyup.call(b.uiElement,b.dialog,b.key),a.data.preventDefault()))}function B(a,b,c,e,h){(Q[c]||(Q[c]=[])).push({uiElement:a,
dialog:b,key:c,keyup:h||a.accessKeyUp,keydown:e||a.accessKeyDown})}function w(a){for(var b in Q){for(var c=Q[b],e=c.length-1;0<=e;e--)c[e].dialog!=a&&c[e].uiElement!=a||c.splice(e,1);0===c.length&&delete Q[b]}}function z(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])}function A(){}var C=CKEDITOR.tools.cssLength,D,F,G=!1,I=!CKEDITOR.env.ie||CKEDITOR.env.edge,M='\x3cdiv class\x3d"cke_reset_all cke_dialog_container {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" style\x3d"'+(I?
"display:flex":"")+'" 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"'+(I?"margin:auto":"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(a,e){function h(){var a=C._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,c=0;c<b;c++)a[c].focusIndex=c}function l(a){var b=C._.focusList;a=a||0;if(!(1>b.length)){var c=C._.currentFocusIndex;C._.tabBarMode&&0>a&&(c=0);try{b[c].getInputElement().$.blur()}catch(e){}var h=c,f=1<C._.pageCount;do{h+=a;if(f&&!C._.tabBarMode&&(h==b.length||-1==h)){C._.tabBarMode=!0;C._.tabs[C._.currentTabId][0].focus();
C._.currentFocusIndex=-1;return}h=(h+b.length)%b.length;if(h==c)break}while(a&&!b[h].isFocusable());b[h].focus();"text"==b[h].type&&b[h].select()}}function q(c){if(C==CKEDITOR.dialog._.currentTop){var e=c.data.getKeystroke(),h="rtl"==a.lang.dir,f=[37,38,39,40];B=t=0;if(9==e||e==CKEDITOR.SHIFT+9)l(e==CKEDITOR.SHIFT+9?-1:1),B=1;else if(e==CKEDITOR.ALT+121&&!C._.tabBarMode&&1<C.getPageCount())b(C),B=1;else if(-1!=CKEDITOR.tools.indexOf(f,e)&&C._.tabBarMode)e=-1!=CKEDITOR.tools.indexOf([h?39:37,38],e)?
g.call(C):d.call(C),C.selectPage(e),C._.tabs[e][0].focus(),B=1;else if(13!=e&&32!=e||!C._.tabBarMode)if(13==e)e=c.data.getTarget(),e.is("a","button","select","textarea")||e.is("input")&&"button"==e.$.type||((e=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(e.click,0,e),B=1),t=1;else if(27==e)(e=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(e.click,0,e):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),t=1;else return;else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=
-1,l(1),B=1;v(c)}}function v(a){B?a.data.preventDefault(1):t&&a.data.stopPropagation()}var y=CKEDITOR.dialog._.dialogDefinitions[e],u=CKEDITOR.tools.clone(D),w=a.config.dialog_buttonsOrder||"OS",A=a.lang.dir,p={},B,t;("OS"==w&&CKEDITOR.env.mac||"rtl"==w&&"ltr"==A||"ltr"==w&&"rtl"==A)&&u.buttons.reverse();y=CKEDITOR.tools.extend(y(a),u);y=CKEDITOR.tools.clone(y);y=new c(this,y);u=k(a);this._={editor:a,element:u.element,name:e,model:null,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},
buttons:{},accessKeyMap:{},viewportRatio:{width:.5,height:.5},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(){a.fire("ariaWidget",this.parts.contents)},0,this);u={top:0,visibility:"hidden"};CKEDITOR.env.ie6Compat&&(u.position="absolute");u["rtl"==A?"right":"left"]=0;this.parts.dialog.setStyles(u);CKEDITOR.event.call(this);this.definition=y=CKEDITOR.fire("dialogDefinition",
{name:e,definition:y,dialog:this},a).definition;if(!("removeDialogTabs"in a._)&&a.config.removeDialogTabs){u=a.config.removeDialogTabs.split(";");for(A=0;A<u.length;A++)if(w=u[A].split(":"),2==w.length){var z=w[0];p[z]||(p[z]=[]);p[z].push(w[1])}a._.removeDialogTabs=p}if(a._.removeDialogTabs&&(p=a._.removeDialogTabs[e]))for(A=0;A<p.length;A++)y.removeContents(p[A]);if(y.onLoad)this.on("load",y.onLoad);if(y.onShow)this.on("show",y.onShow);if(y.onHide)this.on("hide",y.onHide);if(y.onOk)this.on("ok",
function(b){a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},0);!1===y.onOk.call(this,b)&&(b.data.hide=!1)});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(y.onCancel)this.on("cancel",function(a){!1===y.onCancel.call(this,a)&&(a.data.hide=!1)});var C=this,F=function(a){var b=C._.contents,c=!1,e;for(e in b)for(var h in b[e])if(c=a.call(this,b[e][h]))return};this.on("ok",function(a){F(function(b){if(b.validate){var c=b.validate(this),e="string"==typeof c||!1===c;e&&(a.data.hide=!1,a.stop());
f.call(b,!e,"string"==typeof c?c:void 0);return e}})},this,null,0);this.on("cancel",function(b){F(function(c){if(c.isChanged())return a.config.dialog_noConfirmCancel||confirm(a.lang.common.confirmCancel)||(b.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 I=this._.element;a.focusManager.add(I,1);this.on("show",function(){I.on("keydown",q,this);if(CKEDITOR.env.gecko)I.on("keypress",
v,this)});this.on("hide",function(){I.removeListener("keydown",q);CKEDITOR.env.gecko&&I.removeListener("keypress",v);F(function(a){m.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",q,this,null,0)});this.on("show",function(){h();var b=1<C._.pageCount;a.config.dialog_startupFocusTab&&b?(C._.tabBarMode=!0,C._.tabs[C._.currentTabId][0].focus(),C._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=b?-1:this._.focusList.length-
1,y.onFocus?(b=y.onFocus.call(this))&&b.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);n(this);r(this);(new CKEDITOR.dom.text(y.title,CKEDITOR.document)).appendTo(this.parts.title);for(A=0;A<y.contents.length;A++)(p=y.contents[A])&&this.addPage(p);this.parts.tabs.on("click",function(a){var c=a.data.getTarget();c.hasClass("cke_dialog_tab")&&(c=c.$.id,this.selectPage(c.substring(4,c.lastIndexOf("_"))),
b(this),a.data.preventDefault())},this);A=[];p=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:y.buttons},A).getChild();this.parts.footer.setHtml(A.join(""));for(A=0;A<p.length;A++)this._.buttons[p[A].id]=p[A]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(a,b){if(!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"});if("rtl"==this._.editor.lang.dir&&this._.position){var c=this.parts.dialog.getParent().getClientSize().width;this._.position.x=c-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,c){var e=this._.element.getFirst(),h="rtl"==this._.editor.lang.dir;CKEDITOR.env.ie&&e.setStyle("zoom","100%");var f=this.parts.dialog.getParent().getClientSize(),d=this.getSize(),k=this._.viewportRatio,g=Math.max(f.width-d.width,0),f=Math.max(f.height-d.height,0);this._.position&&this._.position.x==a&&this._.position.y==b?(a=Math.floor(g*k.width),b=Math.floor(f*k.height)):u(this,a,b);this._.position={x:a,y:b};h&&(a=g-a);b={top:(0<b?b:0)+"px"};b[h?"right":"left"]=(0<a?a:0)+"px";
e.setStyles(b);c&&(this._.moved=1)},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,b=this.definition,c=CKEDITOR.document.getBody(),h=this._.editor.config.baseFloatZIndex;a.getParent()&&a.getParent().equals(c)?a.setStyle("display",I?"flex":"block"):a.appendTo(c);this.resize(this._.contentSize&&this._.contentSize.width||b.width||b.minWidth,this._.contentSize&&this._.contentSize.height||b.height||b.minHeight);this.reset();null===this._.currentTabId&&
this.selectPage(this.definition.contents[0].id);null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=h);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);this.getElement().setStyle("z-index",CKEDITOR.dialog._.currentZIndex);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,t(this._.editor)):CKEDITOR.dialog._.currentTop!==this&&(this._.parentDialog=CKEDITOR.dialog._.currentTop,c=this._.parentDialog.getElement().getFirst(),
c.$.style.zIndex-=Math.floor(h/2),this._.parentDialog.getElement().setStyle("z-index",c.$.style.zIndex),CKEDITOR.dialog._.currentTop=this);a.on("keydown",y);a.on("keyup",q);this._.hasFocus=!1;for(var f in b.contents)if(b.contents[f]){var a=b.contents[f],h=this._.tabs[a.id],c=a.requiredContent,d=0;if(h){for(var k in this._.contents[a.id]){var g=this._.contents[a.id][k];"hbox"!=g.type&&"vbox"!=g.type&&g.getInputElement()&&(g.requiredContent&&!this._.editor.activeFilter.check(g.requiredContent)?g.disable():
(g.enable(),d++))}!d||c&&!this._.editor.activeFilter.check(c)?h[0].addClass("cke_dialog_tab_disabled"):h[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();e(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;if(this._.moved||!I){var b=this.getSize(),c=CKEDITOR.document.getWindow().getViewPaneSize(),e;this._.moved&&this._.position?(e=this._.position.x,b=this._.position.y):(e=(c.width-b.width)/2,b=(c.height-b.height)/2);CKEDITOR.env.ie6Compat||(a.setStyle("position","absolute"),a.removeStyle("margin"));e=Math.floor(e);b=Math.floor(b);this.move(e,b)}},foreach:function(a){for(var b in this._.contents)for(var c in this._.contents[b])a.call(this,this._.contents[b][c]);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(w(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var b=this._.parentDialog.getElement().getFirst();this._.parentDialog.getElement().removeStyle("z-index");b.setStyle("z-index",parseInt(b.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else v(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=
10;else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",y);a.removeListener("keyup",q);var c=this._.editor;c.focus();setTimeout(function(){c.focusManager.unlock();CKEDITOR.env.iOS&&c.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=[],c=a.label?' title\x3d"'+CKEDITOR.tools.htmlEncode(a.label)+
'"':"",e=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),h=this._.contents[a.id]={},f=e.getChild(),d=0;e=f.shift();)e.notAllowed||"hbox"==e.type||"vbox"==e.type||d++,h[e.id]=e,"function"==typeof e.getChild&&f.push.apply(f,e.getChild());d||(a.hidden=!0);b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");b.setStyle("min-height",
"100%");e=CKEDITOR.env;h="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();c=CKEDITOR.dom.element.createFromHtml(['\x3ca class\x3d"cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",c,a.hidden?' style\x3d"display:none"':"",' id\x3d"',h,'"',e.gecko&&!e.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",h);this._.tabs[a.id]=[c,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;
this._.lastTab=c;this.updateStyle();b.setAttribute("name",a.id);b.appendTo(this.parts.contents);c.unselectable();this.parts.tabs.append(c);a.accessKey&&(B(this,this,"CTRL+"+a.accessKey,A,z),this._.accessKeyMap["CTRL+"+a.accessKey]=a.id)}},selectPage:function(b){if(this._.currentTabId!=b&&!this._.tabs[b][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:b,currentPage:this._.currentTabId})){for(var c in this._.tabs){var e=this._.tabs[c][0],h=this._.tabs[c][1];c!=b&&(e.removeClass("cke_dialog_tab_selected"),
e.removeAttribute("aria-selected"),h.hide());h.setAttribute("aria-hidden",c!=b)}var f=this._.tabs[b];f[0].addClass("cke_dialog_tab_selected");f[0].setAttribute("aria-selected",!0);CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(a(f[1]),f[1].show(),setTimeout(function(){a(f[1],1)},0)):f[1].show();this._.currentTabId=b;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,b)}},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(g.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 c=this._.contents[a];return c&&c[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},
setValueOf:function(a,b,c){return this.getContentElement(a,b).setValue(c)},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 c=b+1;c<this._.focusList.length;c++)this._.focusList[c].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,c={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==b?"right":"left"}};c.styles["margin-"+("rtl"==b?"left":"right")]=
"8px";this.parts.spinner=CKEDITOR.document.createElement("div",c);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)}},getModel:function(a){return this._.model?this._.model:this.definition.getModel?this.definition.getModel(a):null},setModel:function(a){this._.model=a},getMode:function(a){if(this.definition.getMode)return this.definition.getMode(a);
a=this.getModel(a);return!a||a instanceof CKEDITOR.dom.element&&!a.getParent()?CKEDITOR.dialog.CREATION_MODE:CKEDITOR.dialog.EDITING_MODE}};CKEDITOR.tools.extend(CKEDITOR.dialog,{CREATION_MODE:0,EDITING_MODE:1,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,c){a=a.config.removeDialogTabs;return!(a&&a.match(new RegExp("(?:^|;)"+
b+":"+c+"(?:$|;)","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(c){return a(c,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(c){return a(c,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);
D={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]};var E=function(a,b,c){for(var e=0,h;h=a[e];e++)if(h.id==b||c&&h[c]&&(h=E(h[c],b,c)))return h;return null},x=function(a,b,c,e,h){if(c){for(var f=0,d;d=a[f];f++){if(d.id==c)return a.splice(f,0,b),b;if(e&&d[e]&&(d=x(d[e],b,c,e,!0)))return d}if(h)return null}a.push(b);return b},J=function(a,b,c){for(var e=0,h;h=a[e];e++){if(h.id==b)return a.splice(e,1);if(c&&h[c]&&(h=J(h[c],
b,c)))return h}return null};c.prototype={getContents:function(a){return E(this.contents,a)},getButton:function(a){return E(this.buttons,a)},addContents:function(a,b){return x(this.contents,a,b)},addButton:function(a,b){return x(this.buttons,a,b)},removeContents:function(a){J(this.contents,a)},removeButton:function(a){J(this.buttons,a)}};h.prototype={get:function(a){return E(this.elements,a,"children")},add:function(a,b){return x(this.elements,a,b,"children")},remove:function(a){J(this.elements,a,
"children")}};var L={},Q={};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,e,h,f,d){if(!(4>arguments.length)){var k=(e.call?e(b):e)||"div",g=["\x3c",k," "],l=(h&&h.call?h(b):h)||{},m=(f&&f.call?f(b):f)||{},n=(d&&d.call?d.call(this,a,b):d)||"",r=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)&&(l.display="none",this.notAllowed=!0);m.id=r;var q={};b.type&&(q["cke_dialog_ui_"+b.type]=1);b.className&&(q[b.className]=
1);b.disabled&&(q.cke_disabled=1);for(var v=m["class"]&&m["class"].split?m["class"].split(" "):[],r=0;r<v.length;r++)v[r]&&(q[v[r]]=1);v=[];for(r in q)v.push(r);m["class"]=v.join(" ");b.title&&(m.title=b.title);q=(b.style||"").split(";");b.align&&(v=b.align,l["margin-left"]="left"==v?0:"auto",l["margin-right"]="right"==v?0:"auto");for(r in l)q.push(r+":"+l[r]);b.hidden&&q.push("display:none");for(r=q.length-1;0<=r;r--)""===q[r]&&q.splice(r,1);0<q.length&&(m.style=(m.style?m.style+"; ":"")+q.join("; "));
for(r in m)g.push(r+'\x3d"'+CKEDITOR.tools.htmlEncode(m[r])+'" ');g.push("\x3e",n,"\x3c/",k,"\x3e");c.push(g.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(c){a.call(this,b.setValue.call(this,c))}}));"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&&B(this,a,"CTRL+"+b.accessKey);var y=this;a.on("load",function(){var b=y.getInputElement();if(b){var c=y.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;y.fire("focus");c&&this.addClass(c)});b.on("blur",function(){y.fire("blur");
c&&this.removeClass(c)})}});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=y.focusIndex}))}},hbox:function(a,b,c,e,h){if(!(4>arguments.length)){this._||(this._={});var f=this._.children=b,d=h&&h.widths||null,k=h&&h.height||null,g,l={role:"presentation"};h&&h.align&&(l.align=h.align);CKEDITOR.ui.dialog.uiElement.call(this,a,h||{type:"hbox"},e,"table",{},l,function(){var a=
['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(g=0;g<c.length;g++){var b="cke_dialog_ui_hbox_child",e=[];0===g&&(b="cke_dialog_ui_hbox_first");g==c.length-1&&(b="cke_dialog_ui_hbox_last");a.push('\x3ctd class\x3d"',b,'" role\x3d"presentation" ');d?d[g]&&e.push("width:"+C(d[g])):e.push("width:"+Math.floor(100/c.length)+"%");k&&e.push("height:"+C(k));h&&void 0!==h.padding&&e.push("padding:"+C(h.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&f[g].align&&e.push("text-align:"+f[g].align);
0<e.length&&a.push('style\x3d"'+e.join("; ")+'" ');a.push("\x3e",c[g],"\x3c/td\x3e")}a.push("\x3c/tr\x3e\x3c/tbody\x3e");return a.join("")})}},vbox:function(a,b,c,e,h){if(!(3>arguments.length)){this._||(this._={});var f=this._.children=b,d=h&&h.width||null,k=h&&h.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,h||{type:"vbox"},e,"div",null,{role:"presentation"},function(){var b=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];b.push('style\x3d"');h&&h.expand&&b.push("height:100%;");
b.push("width:"+C(d||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align\x3d"',CKEDITOR.tools.htmlEncode(h&&h.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');b.push("\x3e\x3ctbody\x3e");for(var e=0;e<c.length;e++){var g=[];b.push('\x3ctr\x3e\x3ctd role\x3d"presentation" ');d&&g.push("width:"+C(d||"100%"));k?g.push("height:"+C(k[e])):h&&h.expand&&g.push("height:"+Math.floor(100/c.length)+"%");h&&void 0!==h.padding&&g.push("padding:"+C(h.padding));CKEDITOR.env.ie&&
CKEDITOR.env.quirks&&f[e].align&&g.push("text-align:"+f[e].align);0<g.length&&b.push('style\x3d"',g.join("; "),'" ');b.push(' class\x3d"cke_dialog_ui_vbox_child"\x3e',c[e],"\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+)/,c,e=function(a,b,c,e){b.on("load",function(){a.getInputElement().on(c,e,a)})},h;for(h in a)if(c=h.match(b))this.eventProcessors[h]?this.eventProcessors[h].call(this,this._.dialog,a[h]):e(this,this._.dialog,c[1].toLowerCase(),a[h]);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,c){for(var e=b.children,h,f=[],d=[],k=0;k<e.length&&(h=e[k]);k++){var g=[];f.push(g);d.push(CKEDITOR.dialog._.uiElementBuilders[h.type].build(a,h,g))}return new CKEDITOR.ui.dialog[b.type](a,
d,f,c,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*$/,c=/^\d*(?:\.\d+)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,h=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,
f=/^(--|-?([a-zA-Z_]|\\))(\\|[a-zA-Z0-9-_])*\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],c,e=CKEDITOR.VALIDATE_AND,h=[],f;for(f=0;f<a.length;f++)if("function"==typeof a[f])h.push(a[f]);else break;f<a.length&&"string"==typeof a[f]&&(c=a[f],f++);f<a.length&&"number"==typeof a[f]&&(e=a[f]);var d=e==CKEDITOR.VALIDATE_AND?!0:!1;for(f=0;f<h.length;f++)d=e==
CKEDITOR.VALIDATE_AND?d&&h[f](b):d||h[f](b);return d?!0:c}},regex:function(a,b){return function(c){c=this&&this.getValue?this.getValue():c;return a.test(c)?!0:b}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b,a)},number:function(a){return this.regex(c,a)},cssLength:function(a){return this.functions(function(a){return h.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return e.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){a=
CKEDITOR.tools.trim(a).split(";");""===a[a.length-1]&&a.pop();return CKEDITOR.tools.array.every(a,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 c in L)L[c].remove();L={}}a=a.editor._.storedDialogs;
for(var e in a)a[e].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b,c){var e=null,h=CKEDITOR.dialog._.dialogDefinitions[a];null===CKEDITOR.dialog._.currentTop&&t(this);if("function"==typeof h)h=this._.storedDialogs||(this._.storedDialogs={}),e=h[a]||(h[a]=new CKEDITOR.dialog(this,a)),e.setModel(c),b&&b.call(e,e),e.show();else{if("failed"==h)throw v(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');"string"==typeof h&&
CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(h),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[a]&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,b,c)},this,0,1)}CKEDITOR.skin.loadPart("dialog");if(e)e.once("hide",function(){e.setModel(null)},null,null,999);return e}});CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(a){G||(CKEDITOR.document.appendStyleSheet(this.path+"styles/dialog.css"),G=!0);a.on("doubleclick",function(b){b.data.dialog&&a.openDialog(b.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(b){var g=this;b.addCommand("a11yHelp",
{exec:function(){var d=b.langCode,d=g.availableLangs[d]?d:g.availableLangs[d.replace(/-.*/,"")]?d.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(g.path+"dialogs/lang/"+d+".js"),function(){b.lang.a11yhelp=g.langEntries[d];b.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1});b.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");b.on("ariaEditorHelpLabel",function(d){d.data.label=b.lang.common.editorHelp})}})})();
CKEDITOR.plugins.add("about",{requires:"dialog",init:function(b){var g=b.addCommand("about",new CKEDITOR.dialogCommand("about"));g.modes={wysiwyg:1,source:1};g.canUndo=!1;g.readOnly=1;b.ui.addButton&&b.ui.addButton("About",{label:b.lang.about.dlgTitle,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}});CKEDITOR.plugins.add("basicstyles",{init:function(b){var g=0,d=function(f,d,e,c){if(c){c=new CKEDITOR.style(c);var h=a[e];h.unshift(c);b.attachStyleStateChange(c,
function(a){!b.readOnly&&b.getCommand(e).setState(a)});b.addCommand(e,new CKEDITOR.styleCommand(c,{contentForms:h}));b.ui.addButton&&b.ui.addButton(f,{label:d,command:e,toolbar:"basicstyles,"+(g+=10)})}},a={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return"bold"==a||700<=+a}]],italic:["em","i",["span",function(a){return"italic"==a.styles["font-style"]}]],underline:["u",["span",function(a){return"underline"==a.styles["text-decoration"]}]],strike:["s","strike",["span",function(a){return"line-through"==
a.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},f=b.config,m=b.lang.basicstyles;d("Bold",m.bold,"bold",f.coreStyles_bold);d("Italic",m.italic,"italic",f.coreStyles_italic);d("Underline",m.underline,"underline",f.coreStyles_underline);d("Strike",m.strike,"strike",f.coreStyles_strike);d("Subscript",m.subscript,"subscript",f.coreStyles_subscript);d("Superscript",m.superscript,"superscript",f.coreStyles_superscript);b.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(){function b(a,b,c,e){if(!a.isReadOnly()&&!a.equals(c.editable())){CKEDITOR.dom.element.setMarker(e,a,
"bidi_processed",1);e=a;for(var f=c.editable();(e=e.getParent())&&!e.equals(f);)if(e.getCustomData("bidi_processed")){a.removeStyle("direction");a.removeAttribute("dir");return}e="useComputedState"in c.config?c.config.useComputedState:1;(e?a.getComputedStyle("direction"):a.getStyle("direction")||a.hasAttribute("dir"))!=b&&(a.removeStyle("direction"),e?(a.removeAttribute("dir"),b!=a.getComputedStyle("direction")&&a.setAttribute("dir",b)):a.setAttribute("dir",b),c.forceNextSelectionCheck())}}function g(a,
b,c){var e=a.getCommonAncestor(!1,!0);a=a.clone();a.enlarge(c==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(a.checkBoundaryOfElement(e,CKEDITOR.START)&&a.checkBoundaryOfElement(e,CKEDITOR.END)){for(var f;e&&e.type==CKEDITOR.NODE_ELEMENT&&(f=e.getParent())&&1==f.getChildCount()&&!(e.getName()in b);)e=f;return e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in b&&e}}function d(a){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,
attributes:"dir"}},requiredContent:"p[dir]",refresh:function(a,b){var c=a.config.useComputedState,e,c=void 0===c||c;if(!c){e=b.lastElement;for(var h=a.editable();e&&!(e.getName()in k||e.equals(h));){var f=e.getParent();if(!f)break;e=f}}e=e||b.block||b.blockLimit;e.equals(a.editable())&&(h=a.getSelection().getRanges()[0].getEnclosedNode())&&h.type==CKEDITOR.NODE_ELEMENT&&(e=h);e&&(c=c?e.getComputedStyle("direction"):e.getStyle("direction")||e.getAttribute("dir"),a.getCommand("bidirtl").setState("rtl"==
c?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),a.getCommand("bidiltr").setState("ltr"==c?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF));c=(b.block||b.blockLimit||a.editable()).getDirection(1);c!=(a._.selDir||a.lang.dir)&&(a._.selDir=c,a.fire("contentDirChanged",c))},exec:function(c){var e=c.getSelection(),d=c.config.enterMode,k=e.getRanges();if(k&&k.length){for(var l={},v=e.createBookmarks(),k=k.createIterator(),y,q=0;y=k.getNextRange(1);){var B=y.getEnclosedNode();B&&(!B||B.type==CKEDITOR.NODE_ELEMENT&&
B.getName()in m)||(B=g(y,f,d));B&&b(B,a,c,l);var w=new CKEDITOR.dom.walker(y),z=v[q].startNode,A=v[q++].endNode;w.evaluator=function(a){var b=d==CKEDITOR.ENTER_P?"p":"div",c;if(c=(a?a.type==CKEDITOR.NODE_ELEMENT:!1)&&a.getName()in f){if(b=a.is(b))b=(b=a.getParent())?b.type==CKEDITOR.NODE_ELEMENT:!1;c=!(b&&a.getParent().is("blockquote"))}return!!(c&&a.getPosition(z)&CKEDITOR.POSITION_FOLLOWING&&(a.getPosition(A)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};
for(;B=w.next();)b(B,a,c,l);y=y.createIterator();for(y.enlargeBr=d!=CKEDITOR.ENTER_BR;B=y.getNextParagraph(d==CKEDITOR.ENTER_P?"p":"div");)b(B,a,c,l)}CKEDITOR.dom.element.clearAllMarkers(l);c.forceNextSelectionCheck();e.selectBookmarks(v);c.focus()}}}}function a(a){var b=a==l.setAttribute,c=a==l.removeAttribute,e=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(f,d){if(!this.isReadOnly()){var k;if(k=f==(b||c?"dir":"direction")||"style"==f&&(c||e.test(d))){a:{k=this;for(var g=k.getDocument().getBody().getParent();k;){if(k.equals(g)){k=
!1;break a}k=k.getParent()}k=!0}k=!k}if(k&&(k=this.getDirection(1),g=a.apply(this,arguments),k!=this.getDirection(1)))return this.getDocument().fire("dirChanged",this),g}return a.apply(this,arguments)}}var f={table:1,ul:1,ol:1,blockquote:1,div:1},m={},k={};CKEDITOR.tools.extend(m,f,{tr:1,p:1,div:1,li:1});CKEDITOR.tools.extend(k,m,{td:1});CKEDITOR.plugins.add("bidi",{init:function(a){function b(c,e,f,d,k){a.addCommand(f,new CKEDITOR.command(a,d));a.ui.addButton&&a.ui.addButton(c,{label:e,command:f,
toolbar:"bidi,"+k})}if(!a.blockless){var c=a.lang.bidi;b("BidiLtr",c.ltr,"bidiltr",d("ltr"),10);b("BidiRtl",c.rtl,"bidirtl",d("rtl"),20);a.on("contentDom",function(){a.document.on("dirChanged",function(b){a.fire("dirChanged",{node:b.data,dir:b.data.getDirection(1)})})});a.on("contentDirChanged",function(b){b=(a.lang.dir!=b.data?"add":"remove")+"Class";var c=a.ui.space(a.config.toolbarLocation);if(c)c[b]("cke_mixed_dir_content")})}}});for(var l=CKEDITOR.dom.element.prototype,e=["setStyle","removeStyle",
"setAttribute","removeAttribute"],c=0;c<e.length;c++)l[e[c]]=CKEDITOR.tools.override(l[e[c]],a)})();(function(){var b={exec:function(b){var d=b.getCommand("blockquote").state,a=b.getSelection(),f=a&&a.getRanges()[0];if(f){var m=a.createBookmarks();if(CKEDITOR.env.ie){var k=m[0].startNode,l=m[0].endNode,e;if(k&&"blockquote"==k.getParent().getName())for(e=k;e=e.getNext();)if(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()){k.move(e,!0);break}if(l&&"blockquote"==l.getParent().getName())for(e=l;e=
e.getPrevious();)if(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()){l.move(e);break}}var c=f.createIterator();c.enlargeBr=b.config.enterMode!=CKEDITOR.ENTER_BR;if(d==CKEDITOR.TRISTATE_OFF){for(k=[];d=c.getNextParagraph();)k.push(d);1>k.length&&(d=b.document.createElement(b.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),l=m.shift(),f.insertNode(d),d.append(new CKEDITOR.dom.text("﻿",b.document)),f.moveToBookmark(l),f.selectNodeContents(d),f.collapse(!0),l=f.createBookmark(),k.push(d),m.unshift(l));
e=k[0].getParent();f=[];for(l=0;l<k.length;l++)d=k[l],e=e.getCommonAncestor(d.getParent());for(d={table:1,tbody:1,tr:1,ol:1,ul:1};d[e.getName()];)e=e.getParent();for(l=null;0<k.length;){for(d=k.shift();!d.getParent().equals(e);)d=d.getParent();d.equals(l)||f.push(d);l=d}for(;0<f.length;)if(d=f.shift(),"blockquote"==d.getName()){for(l=new CKEDITOR.dom.documentFragment(b.document);d.getFirst();)l.append(d.getFirst().remove()),k.push(l.getLast());l.replace(d)}else k.push(d);f=b.document.createElement("blockquote");
for(f.insertBefore(k[0]);0<k.length;)d=k.shift(),f.append(d)}else if(d==CKEDITOR.TRISTATE_ON){l=[];for(e={};d=c.getNextParagraph();){for(k=f=null;d.getParent();){if("blockquote"==d.getParent().getName()){f=d.getParent();k=d;break}d=d.getParent()}f&&k&&!k.getCustomData("blockquote_moveout")&&(l.push(k),CKEDITOR.dom.element.setMarker(e,k,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(e);d=[];k=[];for(e={};0<l.length;)c=l.shift(),f=c.getParent(),c.getPrevious()?c.getNext()?(c.breakParent(c.getParent()),
k.push(c.getNext())):c.remove().insertAfter(f):c.remove().insertBefore(f),f.getCustomData("blockquote_processed")||(k.push(f),CKEDITOR.dom.element.setMarker(e,f,"blockquote_processed",!0)),d.push(c);CKEDITOR.dom.element.clearAllMarkers(e);for(l=k.length-1;0<=l;l--){f=k[l];a:{e=f;for(var c=0,h=e.getChildCount(),n=void 0;c<h&&(n=e.getChild(c));c++)if(n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()){e=!1;break a}e=!0}e&&f.remove()}if(b.config.enterMode==CKEDITOR.ENTER_BR)for(f=!0;d.length;)if(c=d.shift(),
"div"==c.getName()){l=new CKEDITOR.dom.documentFragment(b.document);!f||!c.getPrevious()||c.getPrevious().type==CKEDITOR.NODE_ELEMENT&&c.getPrevious().isBlockBoundary()||l.append(b.document.createElement("br"));for(f=c.getNext()&&!(c.getNext().type==CKEDITOR.NODE_ELEMENT&&c.getNext().isBlockBoundary());c.getFirst();)c.getFirst().remove().appendTo(l);f&&l.append(b.document.createElement("br"));l.replace(c);f=!1}}a.selectBookmarks(m);b.focus()}},refresh:function(b,d){this.setState(b.elementPath(d.block||
d.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",b),g.ui.addButton&&g.ui.addButton("Blockquote",{label:g.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})})();"use strict";(function(){function b(b,a){CKEDITOR.tools.extend(this,a,{editor:b,id:"cke-"+CKEDITOR.tools.getUniqueId(),
area:b._.notificationArea});a.type||(this.type="info");this.element=this._createElement();b.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function g(b){var a=this;this.editor=b;this.notifications=[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,this);b.on("destroy",function(){a._removeListeners();a.element.remove()})}CKEDITOR.plugins.add("notification",
{init:function(b){function a(a){var b=new CKEDITOR.dom.element("div");b.setStyles({position:"fixed","margin-left":"-9999px"});b.setAttributes({"aria-live":"assertive","aria-atomic":"true"});b.setText(a);CKEDITOR.document.getBody().append(b);setTimeout(function(){b.remove()},100)}b._.notificationArea=new g(b);b.showNotification=function(a,g,k){var l,e;"progress"==g?l=k:e=k;a=new CKEDITOR.plugins.notification(b,{message:a,type:g,progress:l,duration:e});a.show();return a};b.on("key",function(f){if(27==
f.data.keyCode){var g=b._.notificationArea.notifications;g.length&&(a(b.lang.notification.closed),g[g.length-1].hide(),f.cancel())}})}});b.prototype={show:function(){!1!==this.editor.fire("notificationShow",{notification:this})&&(this.area.add(this),this._hideAfterTimeout())},update:function(b){var a=!0;!1===this.editor.fire("notificationUpdate",{notification:this,options:b})&&(a=!1);var f=this.element,g=f.findOne(".cke_notification_message"),k=f.findOne(".cke_notification_progress"),l=b.type;f.removeAttribute("role");
b.progress&&"progress"!=this.type&&(l="progress");l&&(f.removeClass(this._getClass()),f.removeAttribute("aria-label"),this.type=l,f.addClass(this._getClass()),f.setAttribute("aria-label",this.type),"progress"!=this.type||k?"progress"!=this.type&&k&&k.remove():(k=this._createProgressElement(),k.insertBefore(g)));void 0!==b.message&&(this.message=b.message,g.setHtml(this.message));void 0!==b.progress&&(this.progress=b.progress,k&&k.setStyle("width",this._getPercentageProgress()));a&&b.important&&(f.setAttribute("role",
"alert"),this.isVisible()||this.area.add(this));this.duration=b.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 b=this,a,f,g=this.editor.lang.common.close;a=new CKEDITOR.dom.element("div");a.addClass("cke_notification");a.addClass(this._getClass());a.setAttributes({id:this.id,role:"alert","aria-label":this.type});
"progress"==this.type&&a.append(this._createProgressElement());f=new CKEDITOR.dom.element("p");f.addClass("cke_notification_message");f.setHtml(this.message);a.append(f);f=CKEDITOR.dom.element.createFromHtml('\x3ca class\x3d"cke_notification_close" href\x3d"javascript:void(0)" title\x3d"'+g+'" role\x3d"button" tabindex\x3d"-1"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e');a.append(f);f.on("click",function(){b.editor.focus();b.hide()});return a},_getClass:function(){return"progress"==
this.type?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var b=new CKEDITOR.dom.element("span");b.addClass("cke_notification_progress");b.setStyle("width",this._getPercentageProgress());return b},_getPercentageProgress:function(){return Math.round(100*(this.progress||0))+"%"},_hideAfterTimeout:function(){var b=this,a;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);if("number"==typeof this.duration)a=this.duration;else if("info"==this.type||"success"==
this.type)a="number"==typeof this.editor.config.notification_duration?this.editor.config.notification_duration:5E3;a&&(b._hideTimeoutId=setTimeout(function(){b.hide()},a))}};g.prototype={add:function(b){this.notifications.push(b);this.element.append(b.element);1==this.element.getChildCount()&&(CKEDITOR.document.getBody().append(this.element),this._attachListeners());this._layout()},remove:function(b){var a=CKEDITOR.tools.indexOf(this.notifications,b);0>a||(this.notifications.splice(a,1),b.element.remove(),
this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var b=this.editor,a=b.config,f=new CKEDITOR.dom.element("div");f.addClass("cke_notifications_area");f.setAttribute("id","cke_notifications_area_"+b.name);f.setStyle("z-index",a.baseFloatZIndex-2);return f},_attachListeners:function(){var b=CKEDITOR.document.getWindow(),a=this.editor;b.on("scroll",this._uiBuffer.input);b.on("resize",this._uiBuffer.input);a.on("change",this._changeBuffer.input);
a.on("floatingSpaceLayout",this._layout,this,null,20);a.on("blur",this._layout,this,null,20)},_removeListeners:function(){var b=CKEDITOR.document.getWindow(),a=this.editor;b.removeListener("scroll",this._uiBuffer.input);b.removeListener("resize",this._uiBuffer.input);a.removeListener("change",this._changeBuffer.input);a.removeListener("floatingSpaceLayout",this._layout);a.removeListener("blur",this._layout)},_layout:function(){function b(){a.setStyle("left",y(q+g.width-n-r))}var a=this.element,f=
this.editor,g=f.ui.contentsElement.getClientRect(),k=f.ui.contentsElement.getDocumentPosition(),l,e,c=a.getClientRect(),h,n=this._notificationWidth,r=this._notificationMargin;h=CKEDITOR.document.getWindow();var u=h.getScrollPosition(),p=h.getViewPaneSize(),t=CKEDITOR.document.getBody(),v=t.getDocumentPosition(),y=CKEDITOR.tools.cssLength;n&&r||(h=this.element.getChild(0),n=this._notificationWidth=h.getClientRect().width,r=this._notificationMargin=parseInt(h.getComputedStyle("margin-left"),10)+parseInt(h.getComputedStyle("margin-right"),
10));f.toolbar&&(l=f.ui.space(f.config.toolbarLocation),e=l.getClientRect());l&&l.isVisible()&&e.bottom>g.top&&e.bottom<g.bottom-c.height?a.setStyles({position:"fixed",top:y(e.bottom)}):0<g.top?a.setStyles({position:"absolute",top:y(k.y)}):k.y+g.height-c.height>u.y?a.setStyles({position:"fixed",top:0}):a.setStyles({position:"absolute",top:y(k.y+g.height-c.height)});var q="fixed"==a.getStyle("position")?g.left:"static"!=t.getComputedStyle("position")?k.x-v.x:k.x;g.width<n+r?k.x+n+r>u.x+p.width?b():
a.setStyle("left",y(q)):k.x+n+r>u.x+p.width?a.setStyle("left",y(q)):k.x+g.width/2+n/2+r>u.x+p.width?a.setStyle("left",y(q-k.x+u.x+p.width-n-r)):0>g.left+g.width-n-r?b():0>g.left+g.width/2-n/2?a.setStyle("left",y(q-k.x+u.x)):a.setStyle("left",y(q+g.width/2-n/2-r/2))}};CKEDITOR.plugins.notification=b})();(function(){var b='\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&&(b+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(b+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var g="";CKEDITOR.env.ie&&(g='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var b=b+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+g+'CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{style}"')+
'\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{ariaShortcutSpace}{ariaShortcut}\x3c/span\x3e{arrowHtml}\x3c/a\x3e',d=CKEDITOR.addTemplate("buttonArrow",'\x3cspan class\x3d"cke_button_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":"")+"\x3c/span\x3e"),a=CKEDITOR.addTemplate("button",b);CKEDITOR.plugins.add("button",
{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};CKEDITOR.ui.button.prototype={render:function(b,g){function k(){var a=b.mode;a&&(a=this.modes[a]?void 0!==l[a]?l[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,
a=b.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a,this.setState(a),this.refresh&&this.refresh())}var l=null,e=CKEDITOR.env,c=this._.id=CKEDITOR.tools.getNextId(),h="",n=this.command,r,u,p;this._.editor=b;var t={id:c,button:this,editor:b,focus:function(){CKEDITOR.document.getById(c).focus()},execute:function(){this.button.click(b)},attach:function(a){this.button.attach(a)}},v=CKEDITOR.tools.addFunction(function(a){if(t.onkey)return a=new CKEDITOR.dom.event(a),!1!==t.onkey(t,a.getKeystroke())}),
y=CKEDITOR.tools.addFunction(function(a){var b;t.onfocus&&(b=!1!==t.onfocus(t,new CKEDITOR.dom.event(a)));return b}),q=0;t.clickFn=r=CKEDITOR.tools.addFunction(function(){q&&(b.unlockSelection(1),q=0);t.execute();e.iOS&&b.focus()});this.modes?(l={},b.on("beforeModeUnload",function(){b.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(l[b.mode]=this._.state)},this),b.on("activeFilterChange",k,this),b.on("mode",k,this),!this.readOnly&&b.on("readOnly",k,this)):n&&(n=b.getCommand(n))&&(n.on("state",function(){this.setState(n.state)},
this),h+=n.state==CKEDITOR.TRISTATE_ON?"on":n.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");var B;if(this.directional)b.on("contentDirChanged",function(a){var c=CKEDITOR.document.getById(this._.id),e=c.getFirst();a=a.data;a!=b.lang.dir?c.addClass("cke_"+a):c.removeClass("cke_ltr").removeClass("cke_rtl");e.setAttribute("style",CKEDITOR.skin.getIconStyle(B,"rtl"==a,this.icon,this.iconOffset))},this);n?(u=b.getCommandKeystroke(n))&&(p=CKEDITOR.tools.keystrokeToString(b.lang.common.keyboard,u)):
h+="off";u=this.name||this.command;var w=null,z=this.icon;B=u;this.icon&&!/\./.test(this.icon)?(B=this.icon,z=null):(this.icon&&(w=this.icon),CKEDITOR.env.hidpi&&this.iconHiDpi&&(w=this.iconHiDpi));w?(CKEDITOR.skin.addIcon(w,w),z=null):w=B;h={id:c,name:u,iconName:B,label:this.label,cls:(this.hasArrow?"cke_button_expandable ":"")+(this.className||""),state:h,ariaDisabled:"disabled"==h?"true":"false",title:this.title+(p?" ("+p.display+")":""),ariaShortcutSpace:p?"\x26nbsp;":"",ariaShortcut:p?b.lang.common.keyboardShortcut+
" "+p.aria:"",titleJs:e.gecko&&!e.hc?"":(this.title||"").replace("'",""),hasArrow:"string"===typeof this.hasArrow&&this.hasArrow||(this.hasArrow?"true":"false"),keydownFn:v,focusFn:y,clickFn:r,style:CKEDITOR.skin.getIconStyle(w,"rtl"==b.lang.dir,z,this.iconOffset),arrowHtml:this.hasArrow?d.output():""};a.output(h,g);if(this.onRender)this.onRender();return t},setState:function(a){if(this._.state==a)return!1;this._.state=a;var b=CKEDITOR.document.getById(this._.id);return b?(b.setState(a,"cke_button"),
b.setAttribute("aria-disabled",a==CKEDITOR.TRISTATE_DISABLED),this.hasArrow?b.setAttribute("aria-expanded",a==CKEDITOR.TRISTATE_ON):a===CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",!0):b.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;this.allowedContent||this.requiredContent||!this.command||(b=a.getCommand(this.command)||b);return this._.feature=b}};CKEDITOR.ui.prototype.addButton=function(a,
b){this.add(a,CKEDITOR.UI_BUTTON,b)}})();(function(){function b(a){function b(){for(var c=d(),e=CKEDITOR.tools.clone(a.config.toolbarGroups)||g(a),h=0;h<e.length;h++){var m=e[h];if("/"!=m){"string"==typeof m&&(m=e[h]={name:m});var t,v=m.groups;if(v)for(var y=0;y<v.length;y++)t=v[y],(t=c[t])&&l(m,t);(t=c[m.name])&&l(m,t)}}return e}function d(){var b={},c,e,h;for(c in a.ui.items)e=a.ui.items[c],h=e.toolbar||"others",h=h.split(","),e=h[0],h=parseInt(h[1]||-1,10),b[e]||(b[e]=[]),b[e].push({name:c,order:h});
for(e in b)b[e]=b[e].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 b}function l(b,e){if(e.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var h;h=e.shift();)h="string"==typeof h?h:h.name,c&&-1!=CKEDITOR.tools.indexOf(c,h)||(h=a.ui.create(h))&&a.addFeature(h)&&b.items.push(h)}}function e(a){var b=[],c,e,h;for(c=0;c<a.length;++c)e=a[c],h={},"/"==e?b.push(e):CKEDITOR.tools.isArray(e)?(l(h,CKEDITOR.tools.clone(e)),b.push(h)):e.items&&
(l(h,CKEDITOR.tools.clone(e.items)),h.name=e.name,b.push(h));return b}var c=a.config.removeButtons,c=c&&c.split(","),h=a.config.toolbar;"string"==typeof h&&(h=a.config["toolbar_"+h]);return a.toolbar=h?e(h):b()}function g(a){return a._.toolbarGroups||(a._.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 d=function(){this.toolbars=[];this.focusCommandExecuted=!1};d.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var d=0,g;g=b.items[d++];)if(g.focus){g.focus();return}};var a={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){a.toolbox&&(a.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?
setTimeout(function(){a.toolbox.focus()},100):a.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(f){var g,k=function(a,b){var c,h="rtl"==f.lang.dir,d=f.config.toolbarGroupCycling,r=h?37:39,h=h?39:37,d=void 0===d||d;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!c||!c.items.length;)if(c=9==b?(c?c.next:a.toolbar.next)||f.toolbox.toolbars[0]:(c?c.previous:a.toolbar.previous)||f.toolbox.toolbars[f.toolbox.toolbars.length-1],c.items.length)for(a=c.items[g?c.items.length-
1:0];a&&!a.focus;)(a=g?a.previous:a.next)||(c=0);a&&a.focus();return!1;case r:c=a;do c=c.next,!c&&d&&(c=a.toolbar.items[0]);while(c&&!c.focus);c?c.focus():k(a,9);return!1;case 40:return a.button&&a.button.hasArrow?a.execute():k(a,40==b?r:h),!1;case h:case 38:c=a;do c=c.previous,!c&&d&&(c=a.toolbar.items[a.toolbar.items.length-1]);while(c&&!c.focus);c?c.focus():(g=1,k(a,CKEDITOR.SHIFT+9),g=0);return!1;case 27:return f.focus(),!1;case 13:case 32:return a.execute(),!1}return!0};f.on("uiSpace",function(a){if(a.data.space==
f.config.toolbarLocation){a.removeListener();f.toolbox=new d;var e=CKEDITOR.tools.getNextId(),c=['\x3cspan id\x3d"',e,'" class\x3d"cke_voice_label"\x3e',f.lang.toolbar.toolbars,"\x3c/span\x3e",'\x3cspan id\x3d"'+f.ui.spaceId("toolbox")+'" class\x3d"cke_toolbox" role\x3d"group" aria-labelledby\x3d"',e,'" onmousedown\x3d"return false;"\x3e'],e=!1!==f.config.toolbarStartupExpanded,h,g;f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&c.push('\x3cspan class\x3d"cke_toolbox_main"'+
(e?"\x3e":' style\x3d"display:none"\x3e'));for(var m=f.toolbox.toolbars,u=b(f),p=u.length,t=0;t<p;t++){var v,y=0,q,B=u[t],w="/"!==B&&("/"===u[t+1]||t==p-1),z;if(B)if(h&&(c.push("\x3c/span\x3e"),g=h=0),"/"===B)c.push('\x3cspan class\x3d"cke_toolbar_break"\x3e\x3c/span\x3e');else{z=B.items||B;for(var A=0;A<z.length;A++){var C=z[A],D;if(C){var F=function(a){a=a.render(f,c);G=y.items.push(a)-1;0<G&&(a.previous=y.items[G-1],a.previous.next=a);a.toolbar=y;a.onkey=k;a.onfocus=function(){f.toolbox.focusCommandExecuted||
f.focus()}};if(C.type==CKEDITOR.UI_SEPARATOR)g=h&&C;else{D=!1!==C.canGroup;if(!y){v=CKEDITOR.tools.getNextId();y={id:v,items:[]};q=B.name&&(f.lang.toolbar.toolbarGroups[B.name]||B.name);c.push('\x3cspan id\x3d"',v,'" class\x3d"cke_toolbar'+(w?' cke_toolbar_last"':'"'),q?' aria-labelledby\x3d"'+v+'_label"':"",' role\x3d"toolbar"\x3e');q&&c.push('\x3cspan id\x3d"',v,'_label" class\x3d"cke_voice_label"\x3e',q,"\x3c/span\x3e");c.push('\x3cspan class\x3d"cke_toolbar_start"\x3e\x3c/span\x3e');var G=m.push(y)-
1;0<G&&(y.previous=m[G-1],y.previous.next=y)}D?h||(c.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'),h=1):h&&(c.push("\x3c/span\x3e"),h=0);g&&(F(g),g=0);F(C)}}}h&&(c.push("\x3c/span\x3e"),g=h=0);y&&c.push('\x3cspan class\x3d"cke_toolbar_end"\x3e\x3c/span\x3e\x3c/span\x3e')}}f.config.toolbarCanCollapse&&c.push("\x3c/span\x3e");if(f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var I=CKEDITOR.tools.addFunction(function(){f.execCommand("toolbarCollapse")});
f.on("destroy",function(){CKEDITOR.tools.removeFunction(I)});f.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b=a.ui.space("toolbar_collapser"),c=b.getPrevious(),e=a.ui.space("contents"),h=c.getParent(),f=parseInt(e.$.style.height,10),d=h.$.offsetHeight,k=b.hasClass("cke_toolbox_collapser_min");k?(c.show(),b.removeClass("cke_toolbox_collapser_min"),b.setAttribute("title",a.lang.toolbar.toolbarCollapse)):(c.hide(),b.addClass("cke_toolbox_collapser_min"),b.setAttribute("title",a.lang.toolbar.toolbarExpand));
b.getFirst().setText(k?"▲":"◀");e.setStyle("height",f-(h.$.offsetHeight-d)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:e.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});f.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");c.push('\x3ca title\x3d"'+(e?f.lang.toolbar.toolbarCollapse:f.lang.toolbar.toolbarExpand)+'" id\x3d"'+f.ui.spaceId("toolbar_collapser")+'" tabIndex\x3d"-1" class\x3d"cke_toolbox_collapser');
e||c.push(" cke_toolbox_collapser_min");c.push('" onclick\x3d"CKEDITOR.tools.callFunction('+I+')"\x3e','\x3cspan class\x3d"cke_arrow"\x3e\x26#9650;\x3c/span\x3e',"\x3c/a\x3e")}c.push("\x3c/span\x3e");a.data.html+=c.join("")}});f.on("destroy",function(){if(this.toolbox){var a,b=0,c,h,f;for(a=this.toolbox.toolbars;b<a.length;b++)for(h=a[b].items,c=0;c<h.length;c++)f=h[c],f.clickFn&&CKEDITOR.tools.removeFunction(f.clickFn),f.keyDownFn&&CKEDITOR.tools.removeFunction(f.keyDownFn)}});f.on("uiReady",function(){var a=
f.ui.space("toolbox");a&&f.focusManager.add(a,1)});f.addCommand("toolbarFocus",a);f.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");f.ui.add("-",CKEDITOR.UI_SEPARATOR,{});f.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(a,b){b.push('\x3cspan class\x3d"cke_toolbar_separator" role\x3d"separator"\x3e\x3c/span\x3e');return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=function(a,b,d){var l=g(this.editor),e=0===b,c={name:a};if(d){if(d=CKEDITOR.tools.search(l,function(a){return a.name==
d})){!d.groups&&(d.groups=[]);if(b&&(b=CKEDITOR.tools.indexOf(d.groups,b),0<=b)){d.groups.splice(b+1,0,a);return}e?d.groups.splice(0,0,a):d.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(l,function(a){return a.name==b}));e?l.splice(0,0,a):"number"==typeof b?l.splice(b+1,0,c):l.push(a)}})();CKEDITOR.UI_SEPARATOR="separator";CKEDITOR.config.toolbarLocation="top";"use strict";(function(){function b(a,b,c){b.type||(b.type="auto");if(c&&!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 c(){var b=a.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var e=function(b){a.getSelection().isCollapsed()||(a.readOnly&&"cut"==b.name||D.initPasteDataTransfer(b,a),b.data.preventDefault())};b.on("copy",e);b.on("cut",e);b.on("cut",function(){a.readOnly||a.extractSelectedHtml()},null,null,999)}b.on(D.mainPasteEvent,
function(a){"beforepaste"==D.mainPasteEvent&&F||z(a)});"beforepaste"==D.mainPasteEvent&&(b.on("paste",function(a){G||(d(),a.data.preventDefault(),z(a),g("paste"))}),b.on("contextmenu",k,null,null,0),b.on("beforepaste",function(a){!a.data||a.data.$.ctrlKey||a.data.$.shiftKey||k()},null,null,0));b.on("beforecut",function(){!F&&l(a)});var f;b.attachListener(CKEDITOR.env.ie?b:a.document.getDocumentElement(),"mouseup",function(){f=setTimeout(A,0)});a.on("destroy",function(){clearTimeout(f)});b.on("keyup",
A)}function e(b){return{type:b,canUndo:"cut"==b,startDisabled:!0,fakeKeystroke:"cut"==b?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){"cut"==this.type&&l();var b;var c=this.type;if(CKEDITOR.env.ie)b=g(c);else try{b=a.document.$.execCommand(c,!1,null)}catch(e){b=!1}b||a.showNotification(a.lang.clipboard[this.type+"Error"]);return b}}}function f(){return{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(a,c){function e(c,d){d="undefined"!==typeof d?d:!0;c?(c.method="paste",c.dataTransfer||
(c.dataTransfer=D.initPasteDataTransfer()),b(a,c,d)):f&&!a._.forcePasteDialog&&a.showNotification(g,"info",a.config.clipboard_notificationDuration);a._.forcePasteDialog=!1;a.fire("afterCommandExec",{name:"paste",command:h,returnValue:!!c})}c="undefined"!==typeof c&&null!==c?c:{};var h=this,f="undefined"!==typeof c.notification?c.notification:!0,d=c.type,k=CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,a.getCommandKeystroke(this)),g="string"===typeof f?f:a.lang.clipboard.pasteNotification.replace(/%1/,
'\x3ckbd aria-label\x3d"'+k.aria+'"\x3e'+k.display+"\x3c/kbd\x3e"),k="string"===typeof c?c:c.dataValue;d&&!0!==a.config.forcePasteAsPlainText&&"allow-word"!==a.config.forcePasteAsPlainText?a._.nextPasteType=d:delete a._.nextPasteType;"string"===typeof k?e({dataValue:k}):a.getClipboardData(e)}}}function d(){G=1;setTimeout(function(){G=0},100)}function k(){F=1;setTimeout(function(){F=0},10)}function g(b){var c=a.document,e=c.getBody(),f=!1,d=function(){f=!0};e.on(b,d);7<CKEDITOR.env.version?c.$.execCommand(b):
c.$.selection.createRange().execCommand(b);e.removeListener(b,d);return f}function l(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),c,e,f;b.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=b.getSelectedElement())&&(e=b.getRanges()[0],f=a.document.createText(""),f.insertBefore(c),e.setStartBefore(f),e.setEndAfter(c),b.selectRanges([e]),setTimeout(function(){c.getParent()&&(f.remove(),b.selectElement(c))},0))}}function m(b,c){var e=a.document,f=a.editable(),d=function(a){a.cancel()},k;
if(!e.getById("cke_pastebin")){var g=a.getSelection(),l=g.createBookmarks();CKEDITOR.env.ie&&g.root.fire("selectionchange");var n=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!f.is("body")||CKEDITOR.env.ie?"div":"body",e);n.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var r=0,e=e.getWindow();CKEDITOR.env.webkit?(f.append(n),n.addClass("cke_editable"),f.is("body")||(r="static"!=f.getComputedStyle("position")?f:CKEDITOR.dom.element.get(f.$.offsetParent),r=r.getDocumentPosition().y)):f.getAscendant(CKEDITOR.env.ie?
"body":"html",1).append(n);n.setStyles({position:"absolute",top:e.getScrollPosition().y-r+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&n.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(r=n.getParent().isReadOnly())?(n.setOpacity(0),n.setAttribute("contenteditable",!0)):n.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-10000px");a.on("selectionChange",d,null,null,0);if(CKEDITOR.env.webkit||
CKEDITOR.env.gecko)k=f.once("blur",d,null,null,-100);r&&n.focus();r=new CKEDITOR.dom.range(n);r.selectNodeContents(n);var q=r.select();CKEDITOR.env.ie&&(k=f.once("blur",function(){a.lockSelection(q)}));var v=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=v);k&&k.removeListener();CKEDITOR.env.ie&&f.focus();g.selectBookmarks(l);n.remove();var b;CKEDITOR.env.webkit&&(b=n.getFirst())&&b.is&&b.hasClass("Apple-style-span")&&
(n=b);a.removeListener("selectionChange",d);c(n.getHtml())},0)}}function B(){if("paste"==D.mainPasteEvent)return a.fire("beforePaste",{type:"auto",method:"paste"}),!1;a.focus();d();var b=a.focusManager;b.lock();if(a.editable().fire(D.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();d();"paste"==D.mainPasteEvent&&b.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+
46:a.fire("saveSnapshot"),setTimeout(function(){a.fire("saveSnapshot")},50)}}function z(c){var e={type:"auto",method:"paste",dataTransfer:D.initPasteDataTransfer(c)};e.dataTransfer.cacheData();var f=!1!==a.fire("beforePaste",e);f&&D.canClipboardApiBeTrusted(e.dataTransfer,a)?(c.data.preventDefault(),setTimeout(function(){b(a,e)},0)):m(c,function(c){e.dataValue=c.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");f&&b(a,e)})}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){var c=a.getSelection(),c=c&&c.getRanges()[0];if((a.readOnly||c&&c.checkReadOnly())&&b in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==b)return CKEDITOR.TRISTATE_OFF;b=a.getSelection();c=b.getRanges();return b.getType()==CKEDITOR.SELECTION_NONE||1==c.length&&c[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var D=CKEDITOR.plugins.clipboard,F=0,G=0;(function(){a.on("key",
w);a.on("contentDom",c);a.on("selectionChange",A);if(a.contextMenu){a.contextMenu.addListener(function(){return{cut:C("cut"),copy:C("copy"),paste:C("paste")}});var b=null;a.on("menuShow",function(){b&&(b.removeListener(),b=null);var c=a.contextMenu.findItemByCommandName("paste");c&&c.element&&(b=c.element.on("touchend",function(){a._.forcePasteDialog=!0}))})}if(a.ui.addButton)a.once("instanceReady",function(){a._.pasteButtons&&CKEDITOR.tools.array.forEach(a._.pasteButtons,function(b){if(b=a.ui.get(b))if(b=
CKEDITOR.document.getById(b._.id))b.on("touchend",function(){a._.forcePasteDialog=!0})})})})();(function(){function b(c,e,f,d,k){var g=a.lang.clipboard[e];a.addCommand(e,f);a.ui.addButton&&a.ui.addButton(c,{label:g,command:e,toolbar:"clipboard,"+d});a.addMenuItems&&a.addMenuItem(e,{label:g,command:e,group:"clipboard",order:k})}b("Cut","cut",e("cut"),10,1);b("Copy","copy",e("copy"),20,4);b("Paste","paste",f(),30,8);a._.pasteButtons||(a._.pasteButtons=[]);a._.pasteButtons.push("Paste")})();a.getClipboardData=
function(b,c){function e(a){a.removeListener();a.cancel();c(a.data)}function f(a){a.removeListener();a.cancel();c({type:k,dataValue:a.data.dataValue,dataTransfer:a.data.dataTransfer,method:"paste"})}var d=!1,k="auto";c||(c=b,b=null);a.on("beforePaste",function(a){a.removeListener();d=!0;k=a.data.type},null,null,1E3);a.on("paste",e,null,null,0);!1===B()&&(a.removeListener("paste",e),a._.forcePasteDialog&&d&&a.fire("pasteDialog")?(a.on("pasteDialogCommit",f),a.on("dialogHide",function(a){a.removeListener();
a.data.removeListener("pasteDialogCommit",f);a.data._.committed||c(null)})):c(null))}}function d(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 a(a,b){function c(a){return CKEDITOR.tools.repeat("\x3c/p\x3e\x3cp\x3e",
~~(a/2))+(1==a%2?"\x3cbr\x3e":"")}b=b.replace(/(?!\u3000)\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 c(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 c(a.length/4)})+"\x3c/p\x3e"));return k(a,b)}function f(a){function b(){var a={},c;for(c in CKEDITOR.dtd)"$"!=c.charAt(0)&&"div"!=c&&"span"!=
c&&(a[c]=1);return a}var c={};return{get:function(e){return"plain-text"==e?c.plainText||(c.plainText=new CKEDITOR.filter(a,"br")):"semantic-content"==e?((e=c.semanticContent)||(e=new CKEDITOR.filter(a,{}),e.allow({$1:{elements:b(),attributes:!0,styles:!1,classes:!1}}),e=c.semanticContent=e),e):e?new CKEDITOR.filter(a,e):null}}}function m(a,b,c){b=CKEDITOR.htmlParser.fragment.fromHtml(b);var e=new CKEDITOR.htmlParser.basicWriter;c.applyTo(b,!0,!1,a.activeEnterMode);b.writeHtml(e);return e.getHtml()}
function k(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 l(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function e(a){var c=CKEDITOR.plugins.clipboard;a.on("contentDom",function(){function e(c,f,d){f.select();b(a,{dataTransfer:d,method:"drop"},1);d.sourceEditor.fire("saveSnapshot");
d.sourceEditor.editable().extractHtmlFromRange(c);d.sourceEditor.getSelection().selectRanges([c]);d.sourceEditor.fire("saveSnapshot")}function f(e,d){e.select();b(a,{dataTransfer:d,method:"drop"},1);c.resetDragDataTransfer()}function d(b,c,e){var f={$:b.data.$,target:b.data.getTarget()};c&&(f.dragRange=c);e&&(f.dropRange=e);!1===a.fire(b.name,f)&&b.data.preventDefault()}function k(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}var g=a.editable(),l=CKEDITOR.plugins.clipboard.getDropTarget(a),
m=a.ui.space("top"),B=a.ui.space("bottom");c.preventDefaultDropOnElement(m);c.preventDefaultDropOnElement(B);g.attachListener(l,"dragstart",d);g.attachListener(a,"dragstart",c.resetDragDataTransfer,c,null,1);g.attachListener(a,"dragstart",function(b){c.initDragDataTransfer(b,a)},null,null,2);g.attachListener(a,"dragstart",function(){var b=c.dragRange=a.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(c.dragStartContainerChildCount=b?k(b.startContainer):null,c.dragEndContainerChildCount=
b?k(b.endContainer):null)},null,null,100);g.attachListener(l,"dragend",d);g.attachListener(a,"dragend",c.initDragDataTransfer,c,null,1);g.attachListener(a,"dragend",c.resetDragDataTransfer,c,null,100);g.attachListener(l,"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(l,"drop",function(b){if(!b.data.$.defaultPrevented&&(b.data.preventDefault(),!a.readOnly)){var e=b.data.getTarget();if(!e.isReadOnly()||e.type==CKEDITOR.NODE_ELEMENT&&e.is("html")){var e=c.getRangeAtDropPosition(b,a),f=c.dragRange;e&&d(b,f,e)}}},null,null,9999);g.attachListener(a,"drop",c.initDragDataTransfer,c,null,1);g.attachListener(a,"drop",function(b){if(b=b.data){var d=b.dropRange,k=b.dragRange,g=b.dataTransfer;g.getTransferType(a)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){c.internalDrop(k,
d,g,a)},0):g.getTransferType(a)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?e(k,d,g):f(d,g)}},null,null,9999)})}var c;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(b){function c(a){if(!a||t===a.id)return!1;var b=a.getTypes(),b=1===b.length&&"Files"===b[0];a=1===a.getFilesCount();return b&&a}var k,l=f(b);b.config.forcePasteAsPlainText?k="plain-text":b.config.pasteFilter?k=b.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in b.config||(k="semantic-content");
b.pasteFilter=l.get(k);g(b);e(b);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));if(CKEDITOR.env.gecko){var p=["image/png","image/jpeg","image/gif"],t;b.on("paste",function(a){var e=a.data,f=e.dataTransfer;if(!e.dataValue&&"paste"==e.method&&c(f)&&(f=f.getFile(0),-1!=CKEDITOR.tools.indexOf(p,f.type))){var d=new FileReader;d.addEventListener("load",function(){a.data.dataValue='\x3cimg src\x3d"'+d.result+'" /\x3e';b.fire("paste",a.data)},!1);d.addEventListener("abort",function(){b.fire("paste",
a.data)},!1);d.addEventListener("error",function(){b.fire("paste",a.data)},!1);d.readAsDataURL(f);t=e.dataTransfer.id;a.stop()}},null,null,1)}b.on("paste",function(a){a.data.dataTransfer||(a.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!a.data.dataValue){var c=a.data.dataTransfer,e=c.getData("text/html");if(e)a.data.dataValue=e,a.data.type="html";else if(e=c.getData("text/plain"))a.data.dataValue=b.editable().transformPlainTextToHtml(e),a.data.type="text"}},null,null,1);b.on("paste",
function(a){var b=a.data.dataValue,c=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 e,f,h=new CKEDITOR.dom.element("div");for(h.setHtml(b);1==h.getChildCount()&&(e=h.getFirst())&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasClass("cke_editable")||e.hasClass("cke_contents"));)h=f=e;f&&(b=f.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,e){return e.toLowerCase()in c?(a.data.preSniffing="html","\x3c"+e):b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,e){return e in
c?(a.data.endsWithEOL=1,"\x3c/"+e+"\x3e"):b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);b.on("paste",function(c){c=c.data;var e=b._.nextPasteType||c.type,f=c.dataValue,k,g=b.config.clipboard_defaultContentType||"html",n=c.dataTransfer.getTransferType(b)==CKEDITOR.DATA_TRANSFER_EXTERNAL,r=!0===b.config.forcePasteAsPlainText;k="html"==e||"html"==c.preSniffing?"html":d(f);delete b._.nextPasteType;"htmlifiedtext"==k&&(f=a(b.config,f));if("text"==e&&"html"==k)f=
m(b,f,l.get("plain-text"));else if(n&&b.pasteFilter&&!c.dontFilter||r)f=m(b,f,b.pasteFilter);c.startsWithEOL&&(f='\x3cbr data-cke-eol\x3d"1"\x3e'+f);c.endsWithEOL&&(f+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==e&&(e="html"==k||"html"==g?"html":"text");c.type=e;c.dataValue=f;delete c.preSniffing;delete c.startsWithEOL;delete c.endsWithEOL},null,null,6);b.on("paste",function(a){a=a.data;a.dataValue&&(b.insertHtml(a.dataValue,a.type,a.range),setTimeout(function(){b.fire("afterPaste")},0))},null,null,
1E3);b.on("pasteDialog",function(a){setTimeout(function(){b.openDialog("paste",a.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:CKEDITOR.env.ie&&16>CKEDITOR.env.version||CKEDITOR.env.iOS&&605>CKEDITOR.env.version?!1:!0,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",addPasteButton:function(a,b,c){a.ui.addButton&&(a.ui.addButton(b,
c),a._.pasteButtons||(a._.pasteButtons=[]),a._.pasteButtons.push(b))},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.iOS&&605<=CKEDITOR.env.version||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,c,e){function f(a,c,e){var h=a;h.type==CKEDITOR.NODE_TEXT&&(h=a.getParent());if(h.equals(c)&&e!=c.getChildCount())return a=b.startContainer.getChild(b.startOffset-1),c=b.startContainer.getChild(b.startOffset),a&&a.type==CKEDITOR.NODE_TEXT&&c&&c.type==CKEDITOR.NODE_TEXT&&(e=a.getLength(),a.setText(a.getText()+c.getText()),c.remove(),b.setStart(a,e),b.collapse(!0)),!0}var d=b.startContainer;"number"==typeof e&&"number"==
typeof c&&d.type==CKEDITOR.NODE_ELEMENT&&(f(a.startContainer,d,c)||f(a.endContainer,d,e))},isDropRangeAffectedByDragRange:function(a,b){var c=b.startContainer,e=b.endOffset;return a.endContainer.equals(c)&&a.endOffset<=e||a.startContainer.getParent().equals(c)&&a.startContainer.getIndex()<e||a.endContainer.getParent().equals(c)&&a.endContainer.getIndex()<e?!0:!1},internalDrop:function(a,c,e,f){var d=CKEDITOR.plugins.clipboard,k=f.editable(),g,l;f.fire("saveSnapshot");f.fire("lockSnapshot",{dontUpdate:1});
CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(a,c,d.dragStartContainerChildCount,d.dragEndContainerChildCount);(l=this.isDropRangeAffectedByDragRange(a,c))||(g=a.createBookmark(!1));d=c.clone().createBookmark(!1);l&&(g=a.createBookmark(!1));a=g.startNode;c=g.endNode;l=d.startNode;c&&a.getPosition(l)&CKEDITOR.POSITION_PRECEDING&&c.getPosition(l)&CKEDITOR.POSITION_FOLLOWING&&l.insertBefore(a);a=f.createRange();a.moveToBookmark(g);k.extractHtmlFromRange(a,1);c=f.createRange();
d.startNode.getCommonAncestor(k)||(d=f.getSelection().createBookmarks()[0]);c.moveToBookmark(d);b(f,{dataTransfer:e,method:"drop",range:c},1);f.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var c=a.data.$,e=c.clientX,f=c.clientY,d=b.getSelection(!0).getRanges()[0],k=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint&&b.document.$.caretRangeFromPoint(e,f))c=b.document.$.caretRangeFromPoint(e,f),k.setStart(CKEDITOR.dom.node(c.startContainer),c.startOffset),
k.collapse(!0);else if(c.rangeParent)k.setStart(CKEDITOR.dom.node(c.rangeParent),c.rangeOffset),k.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&d&&b.editable().hasFocus)return d;if(document.body.createTextRange){b.focus();c=b.document.getBody().$.createTextRange();try{for(var g=!1,l=0;20>l&&!g;l++){if(!g)try{c.moveToPoint(e,f-l),g=!0}catch(m){}if(!g)try{c.moveToPoint(e,f+l),g=!0}catch(w){}}if(g){var z="cke-temp-"+(new Date).getTime();c.pasteHTML('\x3cspan id\x3d"'+z+'"\x3e​\x3c/span\x3e');
var A=b.document.getById(z);k.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START);A.remove()}else{var C=b.document.$.elementFromPoint(e,f),D=new CKEDITOR.dom.element(C),F;if(D.equals(b.editable())||"html"==D.getName())return d&&d.startContainer&&!d.startContainer.equals(b.editable())?d:null;F=D.getClientRect();e<F.left?k.setStartAt(D,CKEDITOR.POSITION_AFTER_START):k.setStartAt(D,CKEDITOR.POSITION_BEFORE_END);k.collapse(!0)}}catch(G){return null}}else return null}return k},initDragDataTransfer:function(a,
b){var c=a.data.$?a.data.$.dataTransfer:null,e=new this.dataTransfer(c,b);"dragstart"===a.name&&e.storeId();c?this.dragData&&e.id==this.dragData.id?e=this.dragData:this.dragData=e:this.dragData?e=this.dragData:this.dragData=e;a.data.dataTransfer=e},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(a,b){if(this.isCustomCopyCutSupported){if(a&&a.data&&a.data.$){var c=a.data.$.clipboardData,e=new this.dataTransfer(c,b);"copy"!==a.name&&"cut"!==a.name||e.storeId();this.copyCutData&&
e.id==this.copyCutData.id?(e=this.copyCutData,e.$=c):this.copyCutData=e;return e}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",l)}};c=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a,b){a&&(this.$=a);this._={metaRegExp:/^<meta.*?>/i,fragmentRegExp:/\s*\x3c!--StartFragment--\x3e|\x3c!--EndFragment--\x3e\s*/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(c);this.id||(this.id="Text"==c?"":"cke-"+CKEDITOR.tools.getUniqueId());b&&(this.sourceEditor=b,this.setData("text/html",b.getSelectedHtml(1)),"Text"==c||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 c="text/html"==a&&b?this._.nativeHtmlCache:this._.data[a];if(void 0===c||null===c||""===c){if(this._.fallbackDataTransfer.isRequired())c=this._.fallbackDataTransfer.getData(a,b);else try{c=this.$.getData(a)||""}catch(e){c=""}"text/html"!=a||b||(c=this._stripHtml(c))}"Text"==a&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==
c.substring(0,7)&&(c="");if("string"===typeof c)var f=c.indexOf("\x3c/html\x3e"),c=-1!==f?c.substring(0,f+7):c;return c},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"==c&&"Text"==a&&(this.id=b),this._.fallbackDataTransfer.isRequired())this._.fallbackDataTransfer.setData(a,b);else try{this.$.setData(a,b)}catch(e){}},storeId:function(){"Text"!==
c&&this.setData(c,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(c){c=b._.normalizeType(c);var e=b.getData(c);"text/html"==c&&(b._.nativeHtmlCache=b.getData(c,!0),e=b._stripHtml(e));e&&(b._.data[c]=e)}if(this.$){var b=this,c,e;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(c=0;c<this.$.types.length;c++)a(this.$.types[c])}else a("Text"),
a("URL");e=this._getImageFromClipboard();if(this.$&&this.$.files||e){this._.files=[];if(this.$.files&&this.$.files.length)for(c=0;c<this.$.files.length;c++)this._.files.push(this.$.files[c]);0===this._.files.length&&e&&this._.files.push(e)}}},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.object.keys(this._.data),function(b){a[b]=1});if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var e=0;e<this.$.types.length;e++)a[this.$.types[e]]=1}else a.Text=1,a.URL=1;"Text"!=c&&(a[c]=0);for(b in a)if(a[b]&&""!==this.getData(b))return!1;return!0},getTypes:function(){return this.$&&this.$.types?
[].slice.call(this.$.types):[]},_getImageFromClipboard:function(){var a;try{if(this.$&&this.$.items&&this.$.items[0]&&(a=this.$.items[0].getAsFile())&&a.type)return a}catch(b){}},_stripHtml:function(a){function b(a){var c=new CKEDITOR.htmlParser,e,f;c.onTagOpen=function(a){"body"===a&&(e=c._.htmlPartsRegex.lastIndex)};c.onTagClose=function(a){"body"===a&&(f=c._.htmlPartsRegex.lastIndex)};c.parse(a);return"number"!==typeof e||"number"!==typeof f?a:a.substring(e,f).replace(/<\/body\s*>$/gi,"")}a&&a.length&&
(a=b(a),a=a.replace(this._.metaRegExp,""),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;if(CKEDITOR.env.edge&&17<=CKEDITOR.env.version)return!0;try{b.setData("cke/mimetypetest","cke test value"),a._isCustomMimeTypeSupported="cke test value"===b.getData("cke/mimetypetest"),b.clearData("cke/mimetypetest")}catch(c){}}else return!1;return!a._isCustomMimeTypeSupported},getData:function(a,b){var c=this._getData(this._customDataFallbackType,!0);if(b)return c;var c=this._extractDataComment(c),e=null,e=a===this._customDataFallbackType?
c.content:c.data&&c.data[a]?c.data[a]:this._getData(a,!0);return null!==e?e:""},setData:function(a,b){var c=a===this._customDataFallbackType;c&&(b=this._applyDataComment(b,this._getFallbackTypeData()));var e=b,f=this._dataTransfer.$;try{f.setData(a,e),c&&(this._dataTransfer._.nativeHtmlCache=e)}catch(d){if(this._isUnsupportedMimeTypeError(d)){c=CKEDITOR.plugins.clipboard.fallbackDataTransfer;-1===CKEDITOR.tools.indexOf(c._customTypes,a)&&c._customTypes.push(a);var c=this._getFallbackTypeContent(),
k=this._getFallbackTypeData();k[a]=e;try{e=this._applyDataComment(c,k),f.setData(this._customDataFallbackType,e),this._dataTransfer._.nativeHtmlCache=e}catch(g){e=""}}}return e},_getData:function(a,b){var c=this._dataTransfer._.data;if(!b&&c[a])return c[a];try{return this._dataTransfer.$.getData(a)}catch(e){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||{},c=this._dataTransfer._.data;CKEDITOR.tools.array.forEach(a,function(a){void 0!==c[a]?b[a]=c[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 c;(c=/\x3c!--cke-data:(.*?)--\x3e/g.exec(a))&&c[1]&&(b.data=JSON.parse(decodeURIComponent(c[1])),b.content=a.replace(c[0],""))}return b},_applyDataComment:function(a,b){var c="";b&&CKEDITOR.tools.object.keys(b).length&&(c="\x3c!--cke-data:"+encodeURIComponent(JSON.stringify(b))+"--\x3e");return c+(a&&a.length?a:"")}}})();CKEDITOR.config.clipboard_notificationDuration=1E4;CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function b(b){var d=this._;d.state!=CKEDITOR.TRISTATE_DISABLED&&
(this.createPanel(b),d.on?d.panel.hide():d.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(g){var d=g.panel||{};delete g.panel;this.base(g);this.document=d.parent&&d.parent.getDocument()||CKEDITOR.document;d.block={attributes:d.attributes};d.toolbarRelated=!0;this.hasArrow="listbox";this.click=b;this._={panelDefinition:d}},statics:{handler:{create:function(b){return new CKEDITOR.ui.panelButton(b)}}},
proto:{createPanel:function(b){var d=this._;if(!d.panel){var a=this._.panelDefinition,f=this._.panelDefinition.block,m=a.parent||CKEDITOR.document.getBody(),k=this._.panel=new CKEDITOR.ui.floatPanel(b,m,a),a=k.addBlock(d.id,f),l=this,e=b.getCommand(this.command);k.onShow=function(){l.className&&this.element.addClass(l.className+"_panel");l.setState(CKEDITOR.TRISTATE_ON);d.on=1;l.editorFocus&&b.focus();if(l.onOpen)l.onOpen()};k.onHide=function(a){l.className&&this.element.getFirst().removeClass(l.className+
"_panel");!l.modes&&e?l.setStateFromCommand(e):l.setState(l.modes&&l.modes[b.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);d.on=0;if(!a&&l.onClose)l.onClose()};k.onEscape=function(){k.hide(1);l.document.getById(d.id).focus()};if(this.onBlock)this.onBlock(k,a);a.onHide=function(){d.on=0;!l.modes&&l.command?l.setStateFromCommand(e):l.setState(CKEDITOR.TRISTATE_OFF)}}},setStateFromCommand:function(b){this.setState(b.state)}}})},beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_PANELBUTTON,
CKEDITOR.ui.panelButton.handler)}});CKEDITOR.UI_PANELBUTTON="panelbutton";(function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};
var b=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'),d=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(a,f){var m={editorId:a.id,id:this.id,langCode:a.langCode,dir:a.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":a.config.baseFloatZIndex+1};this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),b=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&b.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});b=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=
!0;if(this.onLoad)this.onLoad()},this));a.write(d.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+b+");"},m)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),e=this.document.getById(this.id).getAttribute("dir");if("input"!==a.data.getTarget().getName()||37!==b&&39!==b)this._.onKeyDown&&!1===this._.onKeyDown(b)?"input"===a.data.getTarget().getName()&&32===b||a.data.preventDefault():
(27==b||b==("rtl"==e?39:37))&&this.onEscape&&!1===this.onEscape(b)&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(b)}else a=this.document.getById(this.id);this._.holder=a}return a};if(this.isFramed){var k=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";m.frame=g.output({id:this.id+"_frame",
src:k})}k=b.output(m);f&&f.push(k);return k},addBlock:function(a,b){b=this._.blocks[a]=b instanceof CKEDITOR.ui.panel.block?b:new CKEDITOR.ui.panel.block(this.getHolderElement(),b);this._.currentBlock||this.showBlock(a);return b},getBlock:function(a){return this._.blocks[a]},showBlock:function(a){a=this._.blocks[a];var b=this._.currentBlock,d=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",d);a._.focusIndex=
-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);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(a){-1!=a&&(a=this._.getItems().getItem(this._.focusIndex=a),CKEDITOR.env.webkit&&a.getDocument().getWindow().focus(),a.focus(),this.onMark&&this.onMark(a))},markFirstDisplayed:function(a){for(var b=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"none"==a.getStyle("display")},d=this._.getItems(),k,g,e=d.count()-1;0<=e;e--)if(k=d.getItem(e),k.getAscendant(b)||(g=k,this._.focusIndex=
e),"true"==k.getAttribute("aria-selected")){g=k;this._.focusIndex=e;break}g&&(a&&a(),CKEDITOR.env.webkit&&g.getDocument().getWindow().focus(),g.focus(),this.onMark&&this.onMark(g))},getItems:function(){return this.element.find("a,input")}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(a,b){var d=this.keys[a];switch(d){case "next":for(var k=this._.focusIndex,d=this._.getItems(),
g;g=d.getItem(++k);)if(g.getAttribute("_cke_focus")&&g.$.offsetWidth){this._.focusIndex=k;g.focus(!0);break}return g||b?!1:(this._.focusIndex=-1,this.onKeyDown(a,1));case "prev":k=this._.focusIndex;for(d=this._.getItems();0<k&&(g=d.getItem(--k));){if(g.getAttribute("_cke_focus")&&g.$.offsetWidth){this._.focusIndex=k;g.focus(!0);break}g=null}return g||b?!1:(this._.focusIndex=d.count(),this.onKeyDown(a,1));case "click":case "mouseup":return k=this._.focusIndex,(g=0<=k&&this._.getItems().getItem(k))&&
g.fireEventHandler(d,{button:CKEDITOR.tools.normalizeMouseButton(CKEDITOR.MOUSE_BUTTON_LEFT,!0)}),!1}return!0}}})})();CKEDITOR.plugins.add("floatpanel",{requires:"panel"});(function(){function b(b,a,f,m,k){k=CKEDITOR.tools.genKey(a.getUniqueId(),f.getUniqueId(),b.lang.dir,b.uiColor||"",m.css||"",k||"");var l=g[k];l||(l=g[k]=new CKEDITOR.ui.panel(a,m),l.element=f.append(CKEDITOR.dom.element.createFromHtml(l.render(b),a)),l.element.setStyles({display:"none",position:"absolute"}));return l}var g={};
CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(d,a,f,g){function k(){h.hide()}f.forceIFrame=1;f.toolbarRelated&&d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(a=CKEDITOR.document.getById("cke_"+d.name));var l=a.getDocument();g=b(d,l,a,f,g||0);var e=g.element,c=e.getFirst(),h=this;e.disableContextMenu();this.element=e;this._={editor:d,panel:g,parentElement:a,definition:f,document:l,iframe:c,children:[],dir:d.lang.dir,showBlockParams:null,markFirst:void 0!==f.markFirst?f.markFirst:!0};
d.on("mode",k);d.on("resize",k);l.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(b,a){return this._.panel.addBlock(b,a)},addListBlock:function(b,a){return this._.panel.addListBlock(b,a)},getBlock:function(b){return this._.panel.getBlock(b)},showBlock:function(b,a,f,g,k,l){var e=this._.panel,c=e.showBlock(b);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(!1);var h=this._.editor.editable();this._.returnFocus=h.hasFocus?h:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);
this._.hideTimeout=0;var n=this.element,h=this._.iframe,h=CKEDITOR.env.ie&&!CKEDITOR.env.edge?h:new CKEDITOR.dom.window(h.$.contentWindow),r=n.getDocument(),u=this._.parentElement.getPositionedAncestor(),p=a.getDocumentPosition(r),r=u?u.getDocumentPosition(r):{x:0,y:0},t="rtl"==this._.dir,v=p.x+(g||0)-r.x,y=p.y+(k||0)-r.y;!t||1!=f&&4!=f?t||2!=f&&3!=f||(v+=a.$.offsetWidth-1):v+=a.$.offsetWidth;if(3==f||4==f)y+=a.$.offsetHeight-1;this._.panel._.offsetParentId=a.getId();n.setStyles({top:y+"px",left:0,
display:""});n.setOpacity(0);n.getFirst().removeStyle("width");this._.editor.focusManager.add(h);this._.blurSet||(CKEDITOR.event.useCapture=!0,h.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),h.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},
this),CKEDITOR.env.iOS&&(h.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),h.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1);e.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(c.autoSize){var b=c.element.getDocument(),b=(CKEDITOR.env.webkit||CKEDITOR.env.edge?
c.element:b.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<b&&(b+=(a.$.offsetWidth||0)-(a.$.clientWidth||0)+3);a.setStyle("width",b+10+"px");b=c.element.$.scrollHeight;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<b&&(b+=(a.$.offsetHeight||0)-(a.$.clientHeight||0)+3);a.setStyle("height",b+"px");e._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");t&&(v-=n.$.offsetWidth);n.setStyle("left",v+"px");var b=e.element.getWindow(),a=n.$.getBoundingClientRect(),
b=b.getViewPaneSize(),f=a.width||a.right-a.left,d=a.height||a.bottom-a.top,h=t?a.right:b.width-a.left,k=t?b.width-a.right:a.left;t?h<f&&(v=k>f?v+f:b.width>f?v-a.left:v-a.right+b.width):h<f&&(v=k>f?v-f:b.width>f?v-a.right+b.width:v-a.left);f=a.top;b.height-a.top<d&&(y=f>d?y-d:b.height>d?y-a.bottom+b.height:y-a.top);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&((b=a=n.$.offsetParent&&new CKEDITOR.dom.element(n.$.offsetParent))&&"html"==b.getName()&&(b=b.getDocument().getBody()),b&&"rtl"==b.getComputedStyle("direction")&&
(v=CKEDITOR.env.ie8Compat?v-2*n.getDocument().getDocumentElement().$.scrollLeft:v-(a.$.scrollWidth-a.$.clientWidth)));var a=n.getFirst(),g;(g=a.getCustomData("activePanel"))&&g.onHide&&g.onHide.call(this,1);a.setCustomData("activePanel",this);n.setStyles({top:y+"px",left:v+"px"});n.setOpacity(1);l&&l()},this);e.isLoaded?a():e.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();c.element.focus();CKEDITOR.env.webkit&&
(CKEDITOR.document.getBody().$.scrollTop=a);this.allowBlur(!0);this._.markFirst&&(CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(function(){c.markFirstDisplayed?c.markFirstDisplayed():c._.markFirstDisplayed()},0):c.markFirstDisplayed?c.markFirstDisplayed():c._.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 b=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),
this.showBlock.apply(this,b))},focus:function(){if(CKEDITOR.env.webkit){var b=CKEDITOR.document.getActive();b&&!b.equals(this._.iframe)&&b.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var b=this._.iframe.getFrameDocument().getActive();b&&b.is("a")&&(this._.lastFocused=b)},hide:function(b){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(b=b&&this._.returnFocus)CKEDITOR.env.webkit&&b.type&&b.getWindow().$.focus(),b.focus();delete this._.lastFocused;this._.showBlockParams=null;this._.editor.fire("panelHide",this)}},allowBlur:function(b){var a=this._.panel;void 0!==b&&(a.allowBlur=b);return a.allowBlur},showAsChild:function(b,a,f,g,k,l){if(this._.activeChild!=b||b._.panel._.offsetParentId!=f.getId())this.hideChild(),b.onHide=
CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=b,this._.focused=!1,b.showBlock(a,f,g,k,l),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){b.element.getChild(0).$.style.cssText+=""},100)},hideChild:function(b){var a=this._.activeChild;a&&(delete a.onHide,delete this._.activeChild,a.hide(),b&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var b=CKEDITOR.tools.isEmpty(CKEDITOR.instances),
a;for(a in g){var f=g[a];b?f.destroy():f.element.hide()}b&&(g={})})})();(function(){var b,g,d;CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(a){function f(f){function h(){var b=a.config["colorButton_"+v+"Style"];b.childRule="back"==v?function(a){return k(a)}:function(a){return!(a.is("a")||a.getElementsByTag("a").count())||k(a)};return b}function n(b,c,e){var f={};b&&(f.color=b);c&&(f.colorName=c);c=!CKEDITOR.tools.isEmpty(f)&&new CKEDITOR.style(h(),f);a.execCommand(B,
{newStyle:c});if(b&&e)for(e.addColor(b.substr(1).toUpperCase()),b=G.element.find("[role\x3doption]").toArray(),e=0;e<b.length;e++)b[e].setAttributes({"aria-posinset":e+1,"aria-setsize":b.length})}var t=f.name,v=f.type,y=f.title,q=f.order,B=f.commandName;f=f.contentTransformations||{};var w=new CKEDITOR.style(e["colorButton_"+v+"Style"]),z=CKEDITOR.tools.getNextId()+"_colorBox",A={type:v},C=new CKEDITOR.style(e["colorButton_"+v+"Style"],{color:"inherit"}),D=function(){return CKEDITOR.tools.addFunction(function(b,
c,e){a.focus();a.fire("saveSnapshot");"?"==b?a.getColorFromDialog(function(a){a&&n(a,c,F)},null,A):n(b&&"#"+b,c,F);e&&(e.setAttribute("cke_colorlast",!0),a.once("selectionChange",function(){e.removeAttribute("cke_colorlast")}))})}(),F=d.getRowLimit(a)?new d(a,"back"==v?"background-color":"color",D):void 0,G;a.addCommand(B,{contextSensitive:!0,exec:function(a,b){if(!a.readOnly){var c=b.newStyle;a.removeStyle(C);a.focus();c&&a.applyStyle(c);a.fire("saveSnapshot")}},refresh:function(a,b){C.checkApplicable(b,
a,a.activeFilter)?C.checkActive(b,a)?this.setState(CKEDITOR.TRISTATE_ON):this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}});a.ui.add(t,CKEDITOR.UI_PANELBUTTON,{label:y,title:y,command:B,editorFocus:0,toolbar:"colors,"+q,allowedContent:w,requiredContent:w,contentTransformations:f,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":c.panelTitle}},select:function(a){var c=e.colorButton_colors.split(",");a=CKEDITOR.tools.array.find(c,a);a=
b.normalizeColor(a);l(G,a);G._.markFirstDisplayed()},onBlock:function(b,c){G=c;c.autoSize=!0;c.element.addClass("cke_colorblock");c.element.setHtml(g(z,D,F?F.getLength():0));c.element.getDocument().getBody().setStyle("overflow","hidden");c.element.getAscendant({html:1}).setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var e=c.keys,f="rtl"==a.lang.dir;e[f?37:39]="next";e[40]="next";e[9]="next";e[f?39:37]="prev";e[38]="prev";e[CKEDITOR.SHIFT+9]="prev";e[32]="click";F&&F.setContainer(c.element.findOne(".cke_colorhistory"))},
onOpen:function(){var c=a.getSelection(),f=c&&c.getStartElement(),d=a.elementPath(f),h="back"==v?"background-color":"color";if(d){f=d.block||d.blockLimit||a.document.getBody();do d=f&&f.getComputedStyle(h)||"transparent";while("back"==v&&"transparent"==d&&f&&(f=f.getParent()));d&&"transparent"!=d||(d="#ffffff");e.colorButton_enableAutomatic&&G.element.findOne("#"+z).setStyle("background-color",d);if(f=c&&c.getRanges()[0]){for(var c=new CKEDITOR.dom.walker(f),k=f.collapsed?f.startContainer:c.next(),
f="";k;){k.type!==CKEDITOR.NODE_ELEMENT&&(k=k.getParent());k=b.normalizeColor(k.getComputedStyle(h));f=f||k;if(f!==k){f="";break}k=c.next()}"transparent"==f&&(f="");"fore"==v&&(A.automaticTextColor="#"+b.normalizeColor(d));A.selectionColor=f?"#"+f:"";l(G,f)}return d}}})}function g(f,h,k){var l=[],m=e.colorButton_colors.split(","),n=a.plugins.colordialog&&e.colorButton_enableMore;k=m.length+k+(n?1:0);var q=1;e.colorButton_enableAutomatic&&(k+=1,q+=1,l.push('\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue',
' title\x3d"',c.auto,'"',' draggable\x3d"false"',' ondragstart\x3d"return false;"',' onclick\x3d"CKEDITOR.tools.callFunction(',h,',null);return false;"'," href\x3d\"javascript:void('",c.auto,"')\"",' role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"',k,'"\x3e','\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e',"\x3ctr\x3e",'\x3ctd colspan\x3d"',a.config.colorButton_colorsPerRow,'" align\x3d"center"\x3e','\x3cspan class\x3d"cke_colorbox" id\x3d"',f,'"\x3e\x3c/span\x3e',
c.auto,"\x3c/td\x3e","\x3c/tr\x3e","\x3c/table\x3e","\x3c/a\x3e"));l.push('\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctbody\x3e');for(f=0;f<m.length;f++){0===f%a.config.colorButton_colorsPerRow&&l.push("\x3c/tr\x3e\x3ctr\x3e");var B=m[f].split("/"),w=B[0],B=new b(a,{color:B[1]||w,label:B[1]?w:void 0},h);B.setPositionIndex(q+f,k);l.push(B.getHtml())}d.getRowLimit(a)&&d.renderContainer(l,a);n&&l.push("\x3c/tr\x3e","\x3ctr\x3e",'\x3ctd colspan\x3d"',a.config.colorButton_colorsPerRow,
'" align\x3d"center"\x3e','\x3ca class\x3d"cke_colormore" _cke_focus\x3d1 hidefocus\x3dtrue',' title\x3d"',c.more,'"',' draggable\x3d"false"',' ondragstart\x3d"return false;"',' onclick\x3d"CKEDITOR.tools.callFunction(',h,",'?');return false;\""," href\x3d\"javascript:void('",c.more,"')\"",' role\x3d"option" aria-posinset\x3d"',k,'" aria-setsize\x3d"',k,'"\x3e',c.more,"\x3c/a\x3e","\x3c/td\x3e");l.push("\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e");return l.join("")}function k(a){return"false"==a.getAttribute("contentEditable")||
a.getAttribute("data-nostyle")}function l(a,c){var e=a._.getItems(),f=a.element.findOne("[aria-selected]"),d=a.element.findOne("[cke_colorlast]");f&&f.removeAttribute("aria-selected");if(d)d.setAttribute("aria-selected",!0);else for(f=0;f<e.count();f++)if(d=e.getItem(f),c&&c==b.normalizeColor(d.getAttribute("data-value"))){d.setAttribute("aria-selected",!0);break}}var e=a.config,c=a.lang.colorbutton;if(!CKEDITOR.env.hc){f({name:"TextColor",type:"fore",commandName:"textColor",title:c.textColorTitle,
order:10,contentTransformations:[[{element:"font",check:"span{color}",left:function(a){return!!a.attributes.color},right:function(a){a.name="span";a.attributes.color&&(a.styles.color=a.attributes.color);delete a.attributes.color}}]]});var h,n=a.config.colorButton_normalizeBackground;if(void 0===n||n)h=[[{element:"span",left:function(a){var b=CKEDITOR.tools;if("span"!=a.name||!a.styles||!a.styles.background)return!1;a=b.style.parse.background(a.styles.background);return a.color&&1===b.object.keys(a).length},
right:function(b){var c=(new CKEDITOR.style(a.config.colorButton_backStyle,{color:b.styles.background})).getDefinition();b.name=c.element;b.styles=c.styles;b.attributes=c.attributes||{};return b}}]];f({name:"BGColor",type:"back",commandName:"bgColor",title:c.bgColorTitle,order:20,contentTransformations:h})}}});b=CKEDITOR.tools.createClass({$:function(a,f,d){this.$=new CKEDITOR.dom.element("td");this.color=CKEDITOR.tools._isValidColorFormat(f.color)?f.color:"";this.clickFn=d;this.label=f.label||b.colorNames(a)[this.color]||
this.color;this.setHtml()},statics:{colorNames:function(a){return a.lang.colorbutton.colors},normalizeColor:function(a){var b=/^(rgb|hsl)a\(/g.test(a),d=/^rgba\((\s*0\s*,?){4}\)$/g.test(a);return b&&!d?(a=new CKEDITOR.tools.color(a),CKEDITOR.tools.normalizeHex(a.getHex()||"").replace(/#/g,"")):CKEDITOR.tools.normalizeHex("#"+CKEDITOR.tools.convertRgbToHex(a||"")).replace(/#/g,"")}},proto:{getElement:function(){return this.$},getHtml:function(){return this.getElement().getOuterHtml()},setHtml:function(){this.getElement().setHtml('\x3ca class\x3d"cke_colorbox" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"'+
this.label+'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction('+this.clickFn+",'"+this.color+"','"+this.label+"', this); return false;\" href\x3d\"javascript:void('"+this.color+'\')" data-value\x3d"'+this.color+'" role\x3d"option"\x3e\x3cspan class\x3d"cke_colorbox" style\x3d"background-color:#'+this.color+'"\x3e\x3c/span\x3e\x3c/a\x3e')},setPositionIndex:function(a,b){this.getElement().getChild(0).setAttributes({"aria-posinset":a,"aria-setsize":b})}}});
g=CKEDITOR.tools.createClass({$:function(){this.$=new CKEDITOR.dom.element("tr");this.$.addClass("cke_colorhistory_row");this.boxes=[]},proto:{getElement:function(){return this.$},removeLastColor:function(){this.getElement().getLast().remove();return this.boxes.pop()},addNewColor:function(a){this.boxes.unshift(a);this.getElement().append(a.getElement(),!0)},extractColorBox:function(a){var b=CKEDITOR.tools.getIndex(this.boxes,function(b){return b.color===a});if(0>b)return null;this.boxes[b].getElement().remove();
return this.boxes.splice(b,1)[0]}}});d=CKEDITOR.tools.createClass({$:function(a,b,d){this.editor=a;this.cssProperty=b;this.clickFn=d;this.rows=[];this._.addNewRow();if(this.editor.config.colorButton_renderContentColors)this.editor.once("instanceReady",function(){this.renderContentColors()},this)},statics:{renderContainer:function(a,b){a.push('\x3c/tbody\x3e\x3ctbody class\x3d"cke_colorhistory" style\x3d"display:none;"\x3e',"\x3ctr\x3e",'\x3ctd colspan\x3d"',b.config.colorButton_colorsPerRow,'" align\x3d"center"\x3e',
"\x3cspan\x3e\x3chr\x3e\x3c/span\x3e","\x3c/td\x3e","\x3c/tr\x3e","\x3c/tbody\x3e\x3ctbody\x3e")},getRowLimit:function(a){return a.config.colorButton_historyRowLimit},getCapacity:function(a){return d.getRowLimit(a)*a.config.colorButton_colorsPerRow},colorList:CKEDITOR.tools.style.parse._colors},_:{countColors:function(){var a=CKEDITOR.tools.getStyledSpans(this.cssProperty,this.editor.editable());return CKEDITOR.tools.array.reduce(a,function(a,b){var k=this._.getHexCode(b,this.cssProperty,d.colorList);
a[k]=a[k]||0;a[k]+=1;return a},{},this)},getHexCode:function(a,f,d){var k=a.getStyle(f);return k in d?d[k].substr(1):b.normalizeColor(a.getComputedStyle(f)).toUpperCase()},sortByOccurrencesAscending:function(a,b){var d=[],k;for(k in a){var g={};g[b]=k;g.frequency=a[k];d.push(g)}d.sort(function(a,b){return b.frequency-a.frequency});this._.trimToCapacity(d);return d.reverse()},trimToCapacity:function(a){a.splice(d.getCapacity(this.editor))},addColors:function(a){CKEDITOR.tools.array.forEach(a,function(a){this.addColor(a.colorCode)},
this)},extractColorBox:function(a){for(var b=0;b<this.rows.length;b++){var d=this.rows[b].extractColorBox(a);if(d)return d}return null},moveToBeginning:function(a){this.rows[0].addNewColor(a)},createAtBeginning:function(a){this._.moveToBeginning(new b(this.editor,{color:a},this.clickFn))},addNewRow:function(){this.rows.push(new g);this.container&&this.container.append(this.rows[this.rows.length-1].getElement())},alignRows:function(){for(var a=0;a<d.getRowLimit(this.editor)&&!(this.rows[a].boxes.length<=
this.editor.config.colorButton_colorsPerRow);a++)this.rows[a+1]?this._.moveLastBoxToNextRow(a):a<d.getRowLimit(this.editor)-1?(this._.addNewRow(),this._.moveLastBoxToNextRow(a)):this.rows[a].removeLastColor()},moveLastBoxToNextRow:function(a){this.rows[a+1].addNewColor(this.rows[a].removeLastColor())},refreshPositions:function(){var a=this._.countPanelElements(),b=this._.calculateFirstPosition(a);CKEDITOR.tools.array.forEach(this.rows,function(d){CKEDITOR.tools.array.forEach(d.boxes,function(d){d.setPositionIndex(b,
a);b+=1})})},countPanelElements:function(){var a=this.editor.config.colorButton_colors.split(",").length+this.getLength();this.editor.plugins.colordialog&&this.editor.config.colorButton_enableMore&&(a+=1);this.editor.config.colorButton_enableAutomatic&&(a+=1);return a},calculateFirstPosition:function(a){return this.editor.plugins.colordialog&&this.editor.config.colorButton_enableMore?a-this.getLength():a-this.getLength()+1},attachRows:function(){CKEDITOR.tools.array.forEach(this.rows,function(a){this.container.append(a.getElement())},
this)}},proto:{setContainer:function(a){this.container=a;this._.attachRows();this.getLength()&&this.show()},show:function(){this.container&&this.container.show()},renderContentColors:function(){var a=this._.countColors();CKEDITOR.tools.isEmpty(a)||(a=this._.sortByOccurrencesAscending(a,"colorCode"),this._.addColors(a),this._.refreshPositions())},addColor:function(a){var b=this._.extractColorBox(a);this.container&&!this.container.isVisible()&&this.show();b?this._.moveToBeginning(b):this._.createAtBeginning(a);
this._.alignRows()},getLength:function(){return CKEDITOR.tools.array.reduce(this.rows,function(a,b){return a+b.boxes.length},0)}}})})();CKEDITOR.config.colorButton_enableMore=!0;CKEDITOR.config.colorButton_colors="1ABC9C,2ECC71,3498DB,9B59B6,4E5F70,F1C40F,16A085,27AE60,2980B9,8E44AD,2C3E50,F39C12,E67E22,E74C3C,ECF0F1,95A5A6,DDD,FFF,D35400,C0392B,BDC3C7,7F8C8D,999,000";CKEDITOR.config.colorButton_foreStyle={element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]};
CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}};CKEDITOR.config.colorButton_enableAutomatic=!0;CKEDITOR.config.colorButton_colorsPerRow=6;CKEDITOR.config.colorButton_historyRowLimit=1;CKEDITOR.config.colorButton_renderContentColors=!0;CKEDITOR.plugins.colordialog={requires:"dialog",init:function(b){var g=new CKEDITOR.dialogCommand("colordialog");g.editorFocus=!1;b.addCommand("colordialog",g);CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");
b.getColorFromDialog=function(d,a,f){var g,k,l,e;g=function(b){l(this);(b="ok"==b.name?this.getValueOf("picker","selectedColor"):null)&&!CKEDITOR.tools._isValidColorFormat(b)&&(b=null);/^[0-9a-f]{3}([0-9a-f]{3})?$/i.test(b)&&(b="#"+b);d.call(a,b)};k=function(a){f&&(a.data=f)};l=function(a){a.removeListener("ok",g);a.removeListener("cancel",g);a.removeListener("show",k)};e=function(a){a.on("ok",g);a.on("cancel",g);a.on("show",k,null,null,5)};b.execCommand("colordialog");if(b._.storedDialogs&&b._.storedDialogs.colordialog)e(b._.storedDialogs.colordialog);
else CKEDITOR.on("dialogDefinition",function(a){if("colordialog"==a.data.name){var b=a.data.definition;a.removeListener();b.onLoad=CKEDITOR.tools.override(b.onLoad,function(a){return function(){e(this);b.onLoad=a;"function"==typeof a&&a.call(this)}})}})}}};CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog);(function(){function b(a,b,e,c){var f=new CKEDITOR.dom.walker(a);if(a=a.startContainer.getAscendant(b,!0)||a.endContainer.getAscendant(b,!0))if(e(a),c)return;for(;a=f.next();)if(a=
a.getAscendant(b,!0))if(e(a),c)break}function g(b,f){var e={ul:"ol",ol:"ul"};return-1!==a(f,function(a){return a.element===b||a.element===e[b]})}function d(a){this.styles=null;this.sticky=!1;this.editor=a;this.filter=new CKEDITOR.filter(a,a.config.copyFormatting_allowRules);!0===a.config.copyFormatting_allowRules&&(this.filter.disabled=!0);a.config.copyFormatting_disallowRules&&this.filter.disallow(a.config.copyFormatting_disallowRules)}var a=CKEDITOR.tools.indexOf,f=CKEDITOR.tools.getMouseButton,
m=!1;CKEDITOR.plugins.add("copyformatting",{lang:"ar,az,bg,cs,da,de,de-ch,el,en,en-au,eo,es-mx,et,eu,fa,fr,gl,hr,hu,it,ja,ko,ku,lv,nb,nl,oc,pl,pt,pt-br,ro,ru,sk,sq,sr,sr-latn,sv,tr,uk,vi,zh,zh-cn",icons:"copyformatting",hidpi:!0,init:function(b){var d=CKEDITOR.plugins.copyformatting;d._addScreenReaderContainer();m||(CKEDITOR.document.appendStyleSheet(this.path+"styles/copyformatting.css"),m=!0);b.addContentsCss&&b.addContentsCss(this.path+"styles/copyformatting.css");b.copyFormatting=new d.state(b);
b.addCommand("copyFormatting",d.commands.copyFormatting);b.addCommand("applyFormatting",d.commands.applyFormatting);b.ui.addButton("CopyFormatting",{label:b.lang.copyformatting.label,command:"copyFormatting",toolbar:"cleanup,0"});b.on("contentDom",function(){var a=b.getCommand("copyFormatting"),c=b.editable(),d=c.isInline()?c:b.document,g=b.ui.get("CopyFormatting");c.attachListener(d,"mouseup",function(c){f(c)===CKEDITOR.MOUSE_BUTTON_LEFT&&a.state===CKEDITOR.TRISTATE_ON&&b.execCommand("applyFormatting")});
c.attachListener(CKEDITOR.document,"mouseup",function(d){f(d)!==CKEDITOR.MOUSE_BUTTON_LEFT||a.state!==CKEDITOR.TRISTATE_ON||c.contains(d.data.getTarget())||b.execCommand("copyFormatting")});g&&(d=CKEDITOR.document.getById(g._.id),c.attachListener(d,"dblclick",function(){b.execCommand("copyFormatting",{sticky:!0})}),c.attachListener(d,"mouseup",function(a){a.data.stopPropagation()}))});b.config.copyFormatting_keystrokeCopy&&b.setKeystroke(b.config.copyFormatting_keystrokeCopy,"copyFormatting");b.on("key",
function(a){var c=b.getCommand("copyFormatting");a=a.data.domEvent;a.getKeystroke&&27===a.getKeystroke()&&c.state===CKEDITOR.TRISTATE_ON&&b.execCommand("copyFormatting")});b.copyFormatting.on("extractFormatting",function(a){var c=a.data.element;if(c.contains(b.editable())||c.equals(b.editable()))return a.cancel();c=d._convertElementToStyleDef(c);if(!b.copyFormatting.filter.check(new CKEDITOR.style(c),!0,!0))return a.cancel();a.data.styleDef=c});b.copyFormatting.on("applyFormatting",function(e){if(!e.data.preventFormatStripping){var c=
e.data.range,f=d._extractStylesFromRange(b,c),m=d._determineContext(c),r,u;if(b.copyFormatting._isContextAllowed(m))for(u=0;u<f.length;u++)m=f[u],r=c.createBookmark(),-1===a(d.preservedElements,m.element)?CKEDITOR.env.webkit&&!CKEDITOR.env.chrome?f[u].removeFromRange(e.data.range,e.editor):f[u].remove(e.editor):g(m.element,e.data.styles)&&d._removeStylesFromElementInRange(c,m.element),c.moveToBookmark(r)}});b.copyFormatting.on("applyFormatting",function(a){var c=CKEDITOR.plugins.copyformatting,f=
c._determineContext(a.data.range);"list"===f&&b.copyFormatting._isContextAllowed("list")?c._applyStylesToListContext(a.editor,a.data.range,a.data.styles):"table"===f&&b.copyFormatting._isContextAllowed("table")?c._applyStylesToTableContext(a.editor,a.data.range,a.data.styles):b.copyFormatting._isContextAllowed("text")&&c._applyStylesToTextContext(a.editor,a.data.range,a.data.styles)},null,null,999)}});d.prototype._isContextAllowed=function(b){var f=this.editor.config.copyFormatting_allowedContexts;
return!0===f||-1!==a(f,b)};CKEDITOR.event.implementOn(d.prototype);CKEDITOR.plugins.copyformatting={state:d,inlineBoundary:"h1 h2 h3 h4 h5 h6 p div".split(" "),excludedAttributes:["id","style","href","data-cke-saved-href","dir"],elementsForInlineTransform:["li"],excludedElementsFromInlineTransform:["table","thead","tbody","ul","ol"],excludedAttributesFromInlineTransform:["value","type"],preservedElements:"ul ol li td th tr thead tbody table".split(" "),breakOnElements:["ul","ol","table"],_initialKeystrokePasteCommand:null,
commands:{copyFormatting:{exec:function(a,b){var e=CKEDITOR.plugins.copyformatting,c=a.copyFormatting,f=b?"keystrokeHandler"==b.from:!1,d=b?b.sticky||f:!1,g=e._getCursorContainer(a),m=CKEDITOR.document.getDocumentElement();if(this.state===CKEDITOR.TRISTATE_ON)return c.styles=null,c.sticky=!1,g.removeClass("cke_copyformatting_active"),m.removeClass("cke_copyformatting_disabled"),m.removeClass("cke_copyformatting_tableresize_cursor"),e._putScreenReaderMessage(a,"canceled"),e._detachPasteKeystrokeHandler(a),
this.setState(CKEDITOR.TRISTATE_OFF);c.styles=e._extractStylesFromElement(a,a.elementPath().lastElement);this.setState(CKEDITOR.TRISTATE_ON);f||(g.addClass("cke_copyformatting_active"),m.addClass("cke_copyformatting_tableresize_cursor"),a.config.copyFormatting_outerCursor&&m.addClass("cke_copyformatting_disabled"));c.sticky=d;e._putScreenReaderMessage(a,"copied");e._attachPasteKeystrokeHandler(a)}},applyFormatting:{editorFocus:CKEDITOR.env.ie&&!CKEDITOR.env.edge?!1:!0,exec:function(a,b){var e=a.getCommand("copyFormatting"),
c=b?"keystrokeHandler"==b.from:!1,f=CKEDITOR.plugins.copyformatting,d=a.copyFormatting,g=f._getCursorContainer(a),m=CKEDITOR.document.getDocumentElement();if(c&&!d.styles)return f._putScreenReaderMessage(a,"failed"),f._detachPasteKeystrokeHandler(a),!1;c=f._applyFormat(a,d.styles);d.sticky||(d.styles=null,g.removeClass("cke_copyformatting_active"),m.removeClass("cke_copyformatting_disabled"),m.removeClass("cke_copyformatting_tableresize_cursor"),e.setState(CKEDITOR.TRISTATE_OFF),f._detachPasteKeystrokeHandler(a));
f._putScreenReaderMessage(a,c?"applied":"canceled")}}},_getCursorContainer:function(a){return a.elementMode===CKEDITOR.ELEMENT_MODE_INLINE?a.editable():a.editable().getParent()},_convertElementToStyleDef:function(a){var b=CKEDITOR.tools,e=a.getAttributes(CKEDITOR.plugins.copyformatting.excludedAttributes),b=b.parseCssText(a.getAttribute("style"),!0,!0);return{element:a.getName(),type:CKEDITOR.STYLE_INLINE,attributes:e,styles:b}},_extractStylesFromElement:function(b,f){var e={},c=[];do if(f.type===
CKEDITOR.NODE_ELEMENT&&!f.hasAttribute("data-cke-bookmark")&&(e.element=f,b.copyFormatting.fire("extractFormatting",e,b)&&e.styleDef&&c.push(new CKEDITOR.style(e.styleDef)),f.getName&&-1!==a(CKEDITOR.plugins.copyformatting.breakOnElements,f.getName())))break;while((f=f.getParent())&&f.type===CKEDITOR.NODE_ELEMENT);return c},_extractStylesFromRange:function(a,b){for(var e=[],c=new CKEDITOR.dom.walker(b),f;f=c.next();)e=e.concat(CKEDITOR.plugins.copyformatting._extractStylesFromElement(a,f));return e},
_removeStylesFromElementInRange:function(b,f){for(var e=-1!==a(["ol","ul","table"],f),c=new CKEDITOR.dom.walker(b),d;d=c.next();)if(d=d.getAscendant(f,!0))if(d.removeAttributes(d.getAttributes()),e)break},_getSelectedWordOffset:function(b){function f(a,b){return a[b?"getPrevious":"getNext"](function(a){return a.type!==CKEDITOR.NODE_COMMENT})}function e(a){return a.type==CKEDITOR.NODE_ELEMENT?(a=a.getHtml().replace(/<span.*?>&nbsp;<\/span>/g,""),a.replace(/<.*?>/g,"")):a.getText()}function c(b,d){var h=
b,g=/\s/g,k="p br ol ul li td th div caption body".split(" "),m=!1,n=!1,r,t;do{for(r=f(h,d);!r&&h.getParent();){h=h.getParent();if(-1!==a(k,h.getName())){n=m=!0;break}r=f(h,d)}if(r&&r.getName&&-1!==a(k,r.getName())){m=!0;break}h=r}while(h&&h.getStyle&&("none"==h.getStyle("display")||!h.getText()));for(h||(h=b);h.type!==CKEDITOR.NODE_TEXT;)h=!m||d||n?h.getChild(0):h.getChild(h.getChildCount()-1);for(k=e(h);null!=(n=g.exec(k))&&(t=n.index,d););if("number"!==typeof t&&!m)return c(h,d);if(m)d?t=0:(g=
/([\.\b]*$)/,t=(n=g.exec(k))?n.index:k.length);else if(d&&(t+=1,t>k.length))return c(h);return{node:h,offset:t}}var d=/\b\w+\b/ig,g,m,u,p,t;u=p=t=b.startContainer;for(g=e(u);null!=(m=d.exec(g));)if(m.index+m[0].length>=b.startOffset)return b=m.index,d=m.index+m[0].length,0===m.index&&(m=c(u,!0),p=m.node,b=m.offset),d>=g.length&&(g=c(u),t=g.node,d=g.offset),{startNode:p,startOffset:b,endNode:t,endOffset:d};return null},_filterStyles:function(a){var b=CKEDITOR.tools.isEmpty,e=[],c,f;for(f=0;f<a.length;f++)c=
a[f]._.definition,-1!==CKEDITOR.tools.indexOf(CKEDITOR.plugins.copyformatting.inlineBoundary,c.element)&&(c.element=a[f].element="span"),"span"===c.element&&b(c.attributes)&&b(c.styles)||e.push(a[f]);return e},_determineContext:function(a){function b(e){var c=new CKEDITOR.dom.walker(a),f;if(a.startContainer.getAscendant(e,!0)||a.endContainer.getAscendant(e,!0))return!0;for(;f=c.next();)if(f.getAscendant(e,!0))return!0}return b({ul:1,ol:1})?"list":b("table")?"table":"text"},_applyStylesToTextContext:function(b,
f,e){var c=CKEDITOR.plugins.copyformatting,d=c.excludedAttributesFromInlineTransform,g,m;CKEDITOR.env.webkit&&!CKEDITOR.env.chrome&&b.getSelection().selectRanges([f]);for(g=0;g<e.length;g++)if(f=e[g],-1===a(c.excludedElementsFromInlineTransform,f.element)){if(-1!==a(c.elementsForInlineTransform,f.element))for(f.element=f._.definition.element="span",m=0;m<d.length;m++)f._.definition.attributes[d[m]]&&delete f._.definition.attributes[d[m]];f.apply(b)}},_applyStylesToListContext:function(a,f,e){var c,
d,g;for(g=0;g<e.length;g++)c=e[g],d=f.createBookmark(),"ol"===c.element||"ul"===c.element?b(f,{ul:1,ol:1},function(a){var b=c;a.getName()!==b.element&&a.renameNode(b.element);b.applyToObject(a)},!0):"li"===c.element?b(f,"li",function(a){c.applyToObject(a)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(a,f,[c]),f.moveToBookmark(d)},_applyStylesToTableContext:function(f,d,e){function c(a,b){a.getName()!==b.element&&(b=b.getDefinition(),b.element=a.getName(),b=new CKEDITOR.style(b));b.applyToObject(a)}
var h,g,m;for(m=0;m<e.length;m++)h=e[m],g=d.createBookmark(),-1!==a(["table","tr"],h.element)?b(d,h.element,function(a){h.applyToObject(a)}):-1!==a(["td","th"],h.element)?b(d,{td:1,th:1},function(a){c(a,h)}):-1!==a(["thead","tbody"],h.element)?b(d,{thead:1,tbody:1},function(a){c(a,h)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(f,d,[h]),d.moveToBookmark(g)},_applyFormat:function(a,b){var e=a.getSelection().getRanges()[0],c=CKEDITOR.plugins.copyformatting,f,d;if(!e)return!1;if(e.collapsed){d=
a.getSelection().createBookmarks();if(!(f=c._getSelectedWordOffset(e)))return;e=a.createRange();e.setStart(f.startNode,f.startOffset);e.setEnd(f.endNode,f.endOffset);e.select()}b=c._filterStyles(b);if(!a.copyFormatting.fire("applyFormatting",{styles:b,range:e,preventFormatStripping:!1},a))return!1;d&&a.getSelection().selectBookmarks(d);return!0},_putScreenReaderMessage:function(a,b){var e=this._getScreenReaderContainer();e&&e.setText(a.lang.copyformatting.notification[b])},_addScreenReaderContainer:function(){if(this._getScreenReaderContainer())return this._getScreenReaderContainer();
if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_screen_reader_only cke_copyformatting_notification"\x3e\x3cdiv aria-live\x3d"polite"\x3e\x3c/div\x3e\x3c/div\x3e')).getChild(0)},_getScreenReaderContainer:function(){if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().findOne(".cke_copyformatting_notification div[aria-live]")},_attachPasteKeystrokeHandler:function(a){var b=
a.config.copyFormatting_keystrokePaste;b&&(this._initialKeystrokePasteCommand=a.keystrokeHandler.keystrokes[b],a.setKeystroke(b,"applyFormatting"))},_detachPasteKeystrokeHandler:function(a){var b=a.config.copyFormatting_keystrokePaste;b&&a.setKeystroke(b,this._initialKeystrokePasteCommand||!1)}};CKEDITOR.config.copyFormatting_outerCursor=!0;CKEDITOR.config.copyFormatting_allowRules="b s u i em strong span p div td th ol ul li(*)[*]{*}";CKEDITOR.config.copyFormatting_disallowRules="*[data-cke-widget*,data-widget*,data-cke-realelement](cke_widget*)";
CKEDITOR.config.copyFormatting_allowedContexts=!0;CKEDITOR.config.copyFormatting_keystrokeCopy=CKEDITOR.CTRL+CKEDITOR.SHIFT+67;CKEDITOR.config.copyFormatting_keystrokePaste=CKEDITOR.CTRL+CKEDITOR.SHIFT+86})();CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(b){for(var g=b.config.menu_groups.split(","),d=b._.menuGroups={},a=b._.menuItems={},f=0;f<g.length;f++)d[g[f]]=f+1;b.addMenuGroup=function(a,b){d[a]=b||100};b.addMenuItem=function(b,f){d[f.group]&&(a[b]=new CKEDITOR.menuItem(this,
b,f))};b.addMenuItems=function(a){for(var b in a)this.addMenuItem(b,a[b])};b.getMenuItem=function(b){return a[b]};b.removeMenuItem=function(b){delete a[b]}}});(function(){function b(a){a.sort(function(a,b){return a.group<b.group?-1:a.group>b.group?1:a.order<b.order?-1:a.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"{attrLabel}" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasPopup}" aria-disabled\x3d"{disabled}" {ariaChecked} draggable\x3d"false"',
d="";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;"');CKEDITOR.env.ie&&(d='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var g=g+(' onmouseover\x3d"CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout\x3d"CKEDITOR.tools.callFunction({moveOutFn},{index});" onclick\x3d"'+d+'CKEDITOR.tools.callFunction({clickFn},{index}); return false;"\x3e')+
'\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',a=CKEDITOR.addTemplate("menuItem",g),f=CKEDITOR.addTemplate("menuArrow",
'\x3cspan class\x3d"cke_menuarrow"\x3e\x3cspan\x3e{label}\x3c/span\x3e\x3c/span\x3e'),m=CKEDITOR.addTemplate("menuShortcut",'\x3cspan class\x3d"cke_menubutton_label cke_menubutton_shortcut"\x3e{shortcut}\x3c/span\x3e');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,b){b=this._.definition=b||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=b.level||1;var e=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-
1,block:{}}),c=e.block.attributes=e.attributes||{};!c.role&&(c.role="menu");this._.panelDefinition=e},_:{onShow:function(){var a=this.editor.getSelection(),b=a&&a.getStartElement(),e=this.editor.elementPath(),c=this._.listeners;this.removeAll();for(var f=0;f<c.length;f++){var d=c[f](b,a,e);if(d)for(var g in d){var m=this.editor.getMenuItem(g);!m||m.command&&!this.editor.getCommand(m.command).state||(m.state=d[g],this.add(m))}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&
this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):27==a&&this.hide(1);return!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu,e=this.items[a];if(e=e.getItems&&e.getItems()){b?b.removeAll():(b=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),b.parent=this,b._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var c in e){var f=this.editor.getMenuItem(c);
f&&(f.state=e[c],b.add(f))}var d=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+String(a));setTimeout(function(){b.show(d,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){a.order||(a.order=this.items.length);this.items.push(a)},removeAll:function(){this.items=[]},show:function(a,f,e,c){if(!this.parent&&(this._.onShow(),!this.items.length))return;f=f||("rtl"==this.editor.lang.dir?2:1);var d=this.items,g=this.editor,m=this._.panel,u=this._.element;if(!m){m=this._.panel=
new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);m.onEscape=CKEDITOR.tools.bind(function(a){if(!1===this._.onEscape(a))return!1},this);m.onShow=function(){m._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};m.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);u=m.addBlock(this.id,this._.panelDefinition.block);u.autoSize=!0;var p=u.keys;p[40]="next";p[9]="next";p[38]="prev";p[CKEDITOR.SHIFT+
9]="prev";p["rtl"==g.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click";p[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(p[13]="mouseup");u=this._.element=u.element;p=u.getDocument();p.getBody().setStyle("overflow","hidden");p.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,g.config.menu_subMenuDelay||400,this,[a])},
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)}b(d);for(var p=g.elementPath(),p=['\x3cdiv class\x3d"cke_menu'+(p&&p.direction()!=g.lang.dir?" cke_mixed_dir_content":"")+'" role\x3d"presentation"\x3e'],t=d.length,v=t&&d[0].group,y=0;y<t;y++){var q=
d[y];v!=q.group&&(p.push('\x3cdiv class\x3d"cke_menuseparator" role\x3d"separator"\x3e\x3c/div\x3e'),v=q.group);q.render(this,y,p)}p.push("\x3c/div\x3e");u.setHtml(p.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(m,this.id,a,f,e,c):m.showBlock(this.id,a,f,e,c);g.fire("menuShow",[m])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)},findItemByCommandName:function(a){var b=CKEDITOR.tools.array.filter(this.items,
function(b){return a===b.command});return b.length?(b=b[0],{item:b,element:this._.element.findOne("."+b.className)}):null}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,e){CKEDITOR.tools.extend(this,e,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];this.editor=a;this.name=b},proto:{render:function(b,d,e){var c=b.id+String(d),h="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,g="",r=this.editor,u,p,t=h==CKEDITOR.TRISTATE_ON?"on":h==CKEDITOR.TRISTATE_DISABLED?
"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(g=' aria-checked\x3d"'+(h==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var v=this.getItems,y="\x26#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",q=this.name;this.icon&&!/\./.test(this.icon)&&(q=this.icon);this.command&&(u=r.getCommand(this.command),(u=r.getCommandKeystroke(u))&&(p=CKEDITOR.tools.keystrokeToString(r.lang.common.keyboard,u)));u=CKEDITOR.tools.htmlEncodeAttr(this.label);b={id:c,name:this.name,iconName:q,label:this.label,
attrLabel:u,cls:this.className||"",state:t,hasPopup:v?"true":"false",disabled:h==CKEDITOR.TRISTATE_DISABLED,title:u+(p?" ("+p.display+")":""),ariaShortcut:p?r.lang.common.keyboardShortcut+" "+p.aria:"",href:"javascript:void('"+(u||"").replace("'")+"')",hoverFn:b._.itemOverFn,moveOutFn:b._.itemOutFn,clickFn:b._.itemClickFn,index:d,iconStyle:CKEDITOR.skin.getIconStyle(q,"rtl"==this.editor.lang.dir,q==this.icon?null:this.icon,this.iconOffset),shortcutHtml:p?m.output({shortcut:p.display}):"",arrowHtml:v?
f.output({label:y}):"",role:this.role?this.role:"menuitem",ariaChecked:g};a.output(b,e)}}})})();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(b){this.base.call(this,b,{panel:{css:b.config.contextmenu_contentsCss,
className:"cke_menu_panel",attributes:{"aria-label":b.lang.contextmenu.options}}})},proto:{addTarget:function(b,g){function d(){f=!1}var a,f;b.on("contextmenu",function(b){b=b.data;var d=CKEDITOR.env.webkit?a:CKEDITOR.env.mac?b.$.metaKey:b.$.ctrlKey;if(!g||!d)if(b.preventDefault(),!f){if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var d=this.editor,e=(new CKEDITOR.dom.elementPath(b.getTarget(),d.editable())).contains(function(a){return a.hasAttribute("contenteditable")},!0);e&&"false"==e.getAttribute("contenteditable")&&
d.getSelection().fake(e)}var e=b.getTarget().getDocument(),c=b.getTarget().getDocument().getDocumentElement(),d=!e.equals(CKEDITOR.document),e=e.getWindow().getScrollPosition(),h=d?b.$.clientX:b.$.pageX||e.x+b.$.clientX,m=d?b.$.clientY:b.$.pageY||e.y+b.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(c,null,h,m)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var m=function(){a=0};b.on("keydown",function(b){a=CKEDITOR.env.mac?b.data.$.metaKey:b.data.$.ctrlKey});b.on("keyup",m);
b.on("contextmenu",m)}CKEDITOR.env.gecko&&!CKEDITOR.env.mac&&(b.on("keydown",function(a){a.data.$.shiftKey&&121===a.data.$.keyCode&&(f=!0)},null,null,0),b.on("keyup",d),b.on("contextmenu",d))},open:function(b,g,d,a){!1!==this.editor.config.enableContextMenu&&this.editor.getSelection().getType()!==CKEDITOR.SELECTION_NONE&&(this.editor.focus(),b=b||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(b,g,d,a))}}})},beforeInit:function(b){var g=b.contextMenu=new CKEDITOR.plugins.contextMenu(b);
b.on("contentDom",function(){g.addTarget(b.editable(),!1!==b.config.browserContextMenuOnCtrl)});b.addCommand("contextMenu",{exec:function(b){var a=0,f=0,g=b.getSelection().getRanges(),g=g[g.length-1].getClientRects(b.editable().isInline());if(g=g[g.length-1])a=g["rtl"===b.lang.dir?"left":"right"],f=g.bottom;b.contextMenu.open(b.document.getBody().getParent(),null,a,f)}});b.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");b.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}});(function(){function b(a){var b=
this.att;a=a&&a.hasAttribute(b)&&a.getAttribute(b)||"";void 0!==a&&this.setValue(a)}function g(){for(var a,b=0;b<arguments.length;b++)if(arguments[b]instanceof CKEDITOR.dom.element){a=arguments[b];break}if(a){var b=this.att,d=this.getValue();d?a.setAttribute(b,d):a.removeAttribute(b,d)}}var d={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(a){a||(a=d);var b=[];a.id&&b.push("id");a.dir&&b.push("dir");var g="";b.length&&(g+="["+b.join(",")+
"]");a.classes&&(g+="(*)");a.styles&&(g+="{*}");return g},createAdvancedTab:function(a,f,m){f||(f=d);var k=a.lang.common,l={id:"advanced",label:k.advancedTab,title:k.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},e=[];if(f.id||f.dir)f.id&&e.push({id:"advId",att:"id",type:"text",requiredContent:m?m+"[id]":null,label:k.id,setup:b,commit:g}),f.dir&&e.push({id:"advLangDir",att:"dir",type:"select",requiredContent:m?m+"[dir]":null,label:k.langDir,"default":"",style:"width:100%",items:[[k.notSet,
""],[k.langDirLTR,"ltr"],[k.langDirRTL,"rtl"]],setup:b,commit:g}),l.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(e)});if(f.styles||f.classes)e=[],f.styles&&e.push({id:"advStyles",att:"style",type:"text",requiredContent:m?m+"{cke-xyz}":null,label:k.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(k.invalidInlineStyle),onChange:function(){},getStyle:function(a,b){var e=this.getValue().match(new RegExp("(?:^|;)\\s*"+a+"\\s*:\\s*([^;]*)","i"));return e?
e[1]:b},updateStyle:function(b,e){var f=this.getValue(),d=a.document.createElement("span");d.setAttribute("style",f);d.setStyle(b,e);f=CKEDITOR.tools.normalizeCssText(d.getAttribute("style"));this.setValue(f,1)},setup:b,commit:g}),f.classes&&e.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:m?m+"(cke-xyz)":null,label:k.cssClasses,"default":"",setup:b,commit:g}]}),l.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(e)});
return l}})})();(function(){CKEDITOR.plugins.add("div",{requires:"dialog",init:function(b){if(!b.blockless){var g=b.lang.div,d="div(*)";CKEDITOR.dialog.isTabEnabled(b,"editdiv","advanced")&&(d+=";div[dir,id,lang,title]{*}");b.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:d,requiredContent:"div",contextSensitive:!0,contentTransformations:[["div: alignmentToStyle"]],refresh:function(a,b){this.setState("div"in(a.config.div_wrapTable?b.root:b.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED)}}));b.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"}));b.addCommand("removediv",{requiredContent:"div",exec:function(a){function b(e){(e=CKEDITOR.plugins.div.getSurroundDiv(a,e))&&!e.data("cke-div-added")&&(c.push(e),e.data("cke-div-added"))}for(var d=a.getSelection(),g=d&&d.getRanges(),l,e=d.createBookmarks(),c=[],h=0;h<g.length;h++)l=g[h],l.collapsed?b(d.getStartElement()):(l=new CKEDITOR.dom.walker(l),l.evaluator=b,l.lastForward());
for(h=0;h<c.length;h++)c[h].remove(!0);d.selectBookmarks(e)}});b.ui.addButton&&b.ui.addButton("CreateDiv",{label:g.toolbar,command:"creatediv",toolbar:"blocks,50"});b.addMenuItems&&(b.addMenuItems({editdiv:{label:g.edit,command:"editdiv",group:"div",order:1},removediv:{label:g.remove,command:"removediv",group:"div",order:5}}),b.contextMenu&&b.contextMenu.addListener(function(a){return!a||a.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(b)?{editdiv:CKEDITOR.TRISTATE_OFF,removediv:CKEDITOR.TRISTATE_OFF}:
null}));CKEDITOR.dialog.add("creatediv",this.path+"dialogs/div.js");CKEDITOR.dialog.add("editdiv",this.path+"dialogs/div.js")}}});CKEDITOR.plugins.div={getSurroundDiv:function(b,g){var d=b.elementPath(g);return b.elementPath(d.blockLimit).contains(function(a){return a.is("div")&&!a.isReadOnly()},1)}}})();(function(){function b(a,b){CKEDITOR.tools.array.forEach(b,function(b){a.on(b,g,null,{editor:a})})}function g(a){var b=a.listenerData.editor;a=b.focusManager.hasFocus;var g=b.editable(),k=b.config.editorplaceholder,
l=/<body.*?>((?:.|[\n\r])*?)<\/body>/i,e=b.config.fullPage,b=b.getData();e&&(l=b.match(l))&&1<l.length&&(b=l[1]);if(0!==b.length||a)return g.removeAttribute(d);g.setAttribute(d,k)}CKEDITOR.plugins.add("editorplaceholder",{isSupportedEnvironment:function(){return!CKEDITOR.env.ie||9<=CKEDITOR.env.version},onLoad:function(){CKEDITOR.addCss(CKEDITOR.plugins.editorplaceholder.styles)},init:function(a){this.isSupportedEnvironment()&&a.config.editorplaceholder&&b(a,["contentDom","focus","blur","change"])}});
var d="data-cke-editorplaceholder";CKEDITOR.plugins.editorplaceholder={styles:"["+d+"]::before {position: absolute;opacity: .8;color: #aaa;content: attr( "+d+" );}.cke_wysiwyg_div["+d+"]::before {margin-top: 1em;}"};CKEDITOR.config.editorplaceholder=""})();(function(){function b(b,d){function k(a){a=h.list[a];var c;a.equals(b.editable())||"true"==a.getAttribute("contenteditable")?(c=b.createRange(),c.selectNodeContents(a),c=c.select()):(c=b.getSelection(),c.selectElement(a));CKEDITOR.env.ie&&b.fire("selectionChange",
{selection:c,path:new CKEDITOR.dom.elementPath(a)});b.focus()}function l(){c&&c.setHtml('\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');delete h.list}var e=b.ui.spaceId("path"),c,h=b._.elementsPath,n=h.idBase;d.html+='\x3cspan id\x3d"'+e+'_label" class\x3d"cke_voice_label"\x3e'+b.lang.elementspath.eleLabel+'\x3c/span\x3e\x3cspan id\x3d"'+e+'" class\x3d"cke_path" role\x3d"group" aria-labelledby\x3d"'+e+'_label"\x3e\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e\x3c/span\x3e';
b.on("uiReady",function(){var a=b.ui.space("path");a&&b.focusManager.add(a,1)});h.onClick=k;var r=CKEDITOR.tools.addFunction(k),u=CKEDITOR.tools.addFunction(function(a,c){var e=h.idBase,d;c=new CKEDITOR.dom.event(c);d="rtl"==b.lang.dir;switch(c.getKeystroke()){case d?39:37:case 9:return(d=CKEDITOR.document.getById(e+(a+1)))||(d=CKEDITOR.document.getById(e+"0")),d.focus(),!1;case d?37:39:case CKEDITOR.SHIFT+9:return(d=CKEDITOR.document.getById(e+(a-1)))||(d=CKEDITOR.document.getById(e+(h.list.length-
1))),d.focus(),!1;case 27:return b.focus(),!1;case 13:case 32:return k(a),!1}return!0});b.on("selectionChange",function(d){for(var g=[],k=h.list=[],l=[],m=h.filters,B=!0,w=d.data.path.elements,z=w.length;z--;){var A=w[z],C=0;d=A.data("cke-display-name")?A.data("cke-display-name"):A.data("cke-real-element-type")?A.data("cke-real-element-type"):A.getName();(B=A.hasAttribute("contenteditable")?"true"==A.getAttribute("contenteditable"):B)||A.hasAttribute("contenteditable")||(C=1);for(var D=0;D<m.length;D++){var F=
m[D](A,d);if(!1===F){C=1;break}d=F||d}C||(k.unshift(A),l.unshift(d))}k=k.length;for(m=0;m<k;m++)d=l[m],B=b.lang.elementspath.eleTitle.replace(/%1/,d),d=a.output({id:n+m,label:B,text:d,jsTitle:"javascript:void('"+d+"')",index:m,keyDownFn:u,clickFn:r}),g.unshift(d);c||(c=CKEDITOR.document.getById(e));l=c;l.setHtml(g.join("")+'\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');b.fire("elementsPathUpdate",{space:l})});b.on("readOnly",l);b.on("contentDomUnload",l);b.addCommand("elementsPathFocus",
g.toolbarFocus);b.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var g={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},d="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(d+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(d+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var a=CKEDITOR.addTemplate("pathItem",'\x3ca id\x3d"{id}" href\x3d"{jsTitle}" tabindex\x3d"-1" class\x3d"cke_path_item" title\x3d"{label}"'+
d+' hidefocus\x3d"true"  draggable\x3d"false"  ondragstart\x3d"return false;" 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(a){a._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};a.on("uiSpace",function(d){"bottom"==d.data.space&&b(a,d.data)})}})})();
(function(){function b(a,b,e){e=a.config.forceEnterMode||e;if("wysiwyg"==a.mode){b||(b=a.activeEnterMode);var f=a.elementPath();f&&!f.isContextFor("p")&&(b=CKEDITOR.ENTER_BR,e=1);a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?k(a,b,null,e):l(a,b,null,e);a.fire("saveSnapshot")}}function g(a){a=a.getSelection().getRanges(!0);for(var b=a.length-1;0<b;b--)a[b].deleteContents();return a[0]}function d(a){var b=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"true"==a.getAttribute("contenteditable")},
!0);if(a.root.equals(b))return a;b=new CKEDITOR.dom.range(b);b.moveToRange(a);return b}CKEDITOR.plugins.add("enterkey",{init:function(a){a.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){b(a)}});a.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){b(a,a.activeShiftEnterMode,1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var a=CKEDITOR.dom.walker.whitespaces(),f=CKEDITOR.dom.walker.bookmark(),m,k,l,e;CKEDITOR.plugins.enterkey=
{enterBlock:function(b,h,l,m){function u(a){var b;if(a===CKEDITOR.ENTER_BR||-1===CKEDITOR.tools.indexOf(["td","th"],y.lastElement.getName())||1!==y.lastElement.getChildCount())return!1;a=y.lastElement.getChild(0).clone(!0);(b=a.getBogus())&&b.remove();return a.getText().length?!1:!0}if(l=l||g(b)){l=d(l);var p=l.document,t=l.checkStartOfBlock(),v=l.checkEndOfBlock(),y=b.elementPath(l.startContainer),q=y.block,B=h==CKEDITOR.ENTER_DIV?"div":"p",w;if(q&&t&&v){t=q.getParent();if(t.is("li")&&1<t.getChildCount()){p=
new CKEDITOR.dom.element("li");w=b.createRange();p.insertAfter(t);q.remove();w.setStart(p,0);b.getSelection().selectRanges([w]);return}if(q.is("li")||q.getParent().is("li")){q.is("li")||(q=q.getParent(),t=q.getParent());w=t.getParent();l=!q.hasPrevious();var z=!q.hasNext();m=b.getSelection();var B=m.createBookmarks(),A=q.getDirection(1),v=q.getAttribute("class"),C=q.getAttribute("style"),D=w.getDirection(1)!=A;b=b.enterMode!=CKEDITOR.ENTER_BR||D||C||v;if(w.is("li"))l||z?(l&&z&&t.remove(),q[z?"insertAfter":
"insertBefore"](w)):q.breakParent(w);else{if(b)if(y.block.is("li")?(w=p.createElement(h==CKEDITOR.ENTER_P?"p":"div"),D&&w.setAttribute("dir",A),C&&w.setAttribute("style",C),v&&w.setAttribute("class",v),q.moveChildren(w)):w=y.block,l||z)w[l?"insertBefore":"insertAfter"](t);else q.breakParent(t),w.insertAfter(t);else if(q.appendBogus(!0),l||z)for(;p=q[l?"getFirst":"getLast"]();)p[l?"insertBefore":"insertAfter"](t);else for(q.breakParent(t);p=q.getLast();)p.insertAfter(t);q.remove()}m.selectBookmarks(B);
return}if(q&&q.getParent().is("blockquote")){q.breakParent(q.getParent());q.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||q.getPrevious().remove();q.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||q.getNext().remove();l.moveToElementEditStart(q);l.select();return}}else if(q&&q.is("pre")&&!v){k(b,h,l,m);return}if(C=l.splitBlock(B)){b=C.previousBlock;q=C.nextBlock;t=C.wasStartOfBlock;v=C.wasEndOfBlock;q?(z=q.getParent(),z.is("li")&&(q.breakParent(z),q.move(q.getNext(),1))):b&&(z=b.getParent())&&
z.is("li")&&(b.breakParent(z),z=b.getNext(),l.moveToElementEditStart(z),b.move(b.getPrevious()));if(t||v)if(u(h))l.moveToElementEditStart(l.getTouchedStartNode());else{if(b){if(b.is("li")||!e.test(b.getName())&&!b.is("pre"))w=b.clone()}else q&&(w=q.clone());w?m&&!w.is("li")&&w.renameNode(B):z&&z.is("li")?w=z:(w=p.createElement(B),b&&(A=b.getDirection())&&w.setAttribute("dir",A));if(p=C.elementPath)for(h=0,m=p.elements.length;h<m;h++){B=p.elements[h];if(B.equals(p.block)||B.equals(p.blockLimit))break;
CKEDITOR.dtd.$removeEmpty[B.getName()]&&(B=B.clone(),w.moveChildren(B),w.append(B))}w.appendBogus();w.getParent()||l.insertNode(w);w.is("li")&&w.removeAttribute("value");!CKEDITOR.env.ie||!t||v&&b.getChildCount()||(l.moveToElementEditStart(v?b:w),l.select());l.moveToElementEditStart(t&&!v?q:w)}else q.is("li")&&(w=l.clone(),w.selectNodeContents(q),w=new CKEDITOR.dom.walker(w),w.evaluator=function(b){return!(f(b)||a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in CKEDITOR.dtd.$inline&&!(b.getName()in
CKEDITOR.dtd.$empty))},(z=w.next())&&z.type==CKEDITOR.NODE_ELEMENT&&z.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?p.createElement("br"):p.createText(" ")).insertBefore(z)),q&&l.moveToElementEditStart(q);l.select();l.scrollIntoView()}}},enterBr:function(a,b,f,d){if(f=f||g(a)){var k=f.document,m=f.checkEndOfBlock(),t=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),v=t.block,y=v&&t.block.getName();d||"li"!=y?(!d&&m&&e.test(y)?(m=v.getDirection())?(k=k.createElement("div"),k.setAttribute("dir",
m),k.insertAfter(v),f.setStart(k,0)):(k.createElement("br").insertAfter(v),CKEDITOR.env.gecko&&k.createText("").insertAfter(v),f.setStartAt(v.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(a="pre"==y&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?k.createText("\r"):k.createElement("br"),f.deleteContents(),f.insertNode(a),CKEDITOR.env.needsBrFiller?(k.createText("﻿").insertAfter(a),m&&(v||t.blockLimit).appendBogus(),a.getNext().$.nodeValue="",f.setStartAt(a.getNext(),
CKEDITOR.POSITION_AFTER_START)):f.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),f.collapse(!0),f.select(),f.scrollIntoView()):l(a,b,f,d)}}};m=CKEDITOR.plugins.enterkey;k=m.enterBr;l=m.enterBlock;e=/^h[1-6]$/})();(function(){function b(b,d){var a={},f=[],m={nbsp:" ",shy:"­",gt:"\x3e",lt:"\x3c",amp:"\x26",apos:"'",quot:'"'};b=b.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(b,e){var g=d?"\x26"+e+";":m[e];a[g]=d?m[e]:"\x26"+e+";";f.push(g);return""});b=b.replace(/,$/,"");if(!d&&b){b=b.split(",");
var k=document.createElement("div"),l;k.innerHTML="\x26"+b.join(";\x26")+";";l=k.innerHTML;k=null;for(k=0;k<l.length;k++){var e=l.charAt(k);a[e]="\x26"+b[k]+";";f.push(e)}}a.regex=f.join(d?"|":"");return a}CKEDITOR.plugins.add("entities",{afterInit:function(g){function d(a){return e[a]}function a(a){return"force"!=f.entities_processNumerical&&k[a]?k[a]:"\x26#"+a.charCodeAt(0)+";"}var f=g.config;if(g=(g=g.dataProcessor)&&g.htmlFilter){var m=[];!1!==f.basicEntities&&m.push("nbsp,gt,lt,amp");f.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"),
f.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"),f.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"),
f.entities_additional&&m.push(f.entities_additional));var k=b(m.join(",")),l=k.regex?"["+k.regex+"]":"a^";delete k.regex;f.entities&&f.entities_processNumerical&&(l="[^ -~]|"+l);var l=new RegExp(l,"g"),e=b("nbsp,gt,lt,amp,shy",!0),c=new RegExp(e.regex,"g");g.addRules({text:function(b){return b.replace(c,d).replace(l,a)}},{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";var la='src;getData;object;downloadFile;open;attributes;exportpdf-no-token;URL;exportpdf-stylesheets-inaccessible;apply;GET;styleSheets;lang;editable;exports;success;warn;fragment;addEventListener;destroy;responseType;create;fire;commands;setInterval;hasOwnProperty;\x3c/div\x3e;navigator;array;writeHtml;enable;map;processingDocument;send;message;forEach;token;exportPdf_appId;NODE_ELEMENT;msSaveBlob;init;application/json;refreshInterval;htmlParser;plugins;env;error;blob;isInline;srcElement;revokeObjectURL;html;showNotification;Authorization;bind;prototype;notification;href;function;addCommand;exportPdf_fileName;createElement;clearInterval;exportPdf_stylesheets;document,30;undefined;defineProperty;POST;application/octet-stream;exportPdf_tokenUrl;hide;exportPdfTokenInterval;img;ckeditor4-export-pdf.pdf;getDirection;__esModule;length;cssRules;cssText;x-cs-app-id;toolbar;exportpdf;warning;setRequestHeader;progress;status;fetchToken;fromHtml;tools;default;version;call;responseText;\x3cdiv class\x3d"cke_editable cke_contents_;once;config;Content-type;ExportPdf;exportPdf_options;add;toStringTag;200;buildStyleHtml;getAttribute;document;stringify;data;exportPdf;update;remove;loadend;basicWriter'.split(";");
(function(b,g){for(var d=++g;--d;)b.push(b.shift())})(la,356);var x=function(b,g){return la[b-0]};(function(b){function g(a){if(d[a])return d[a][x("0x6a")];var f=d[a]={i:a,l:!1,exports:{}};b[a][x("0x47")](f[x("0x6a")],f,f[x("0x6a")],g);f.l=!0;return f[x("0x6a")]}var d={};g.m=b;g.c=d;g.d=function(a,b,d){if(!g.o(a,b))Object[x("0x2e")](a,b,{enumerable:!0,get:d})};g.r=function(a){if(typeof Symbol!==x("0x2d")&&Symbol[x("0x50")])Object[x("0x2e")](a,Symbol[x("0x50")],{value:"Module"});Object[x("0x2e")](a,
x("0x37"),{value:!0})};g.t=function(a,b){b&1&&(a=g(a));if(b&8||b&4&&typeof a===x("0x5e")&&a&&a.__esModule)return a;var d=Object[x("0x1")](null);g.r(d);Object.defineProperty(d,x("0x45"),{enumerable:!0,value:a});if(b&2&&"string"!=typeof a)for(var k in a)g.d(d,k,function(b){return a[b]}[x("0x22")](null,k));return d};g.n=function(a){var b=a&&a[x("0x37")]?function(){return a["default"]}:function(){return a};g.d(b,"a",b);return b};g.o=function(a,b){return Object[x("0x23")][x("0x5")][x("0x47")](a,b)};g.p=
"";return g(g.s=0)})([function(b,g,d){b.exports=d(1)},function(b,g){(function(){CKEDITOR[x("0x18")][x("0x4f")]("exportpdf",{lang:"en",icons:x("0x3d"),hidpi:!0,isSupportedEnvironment:function(){return!CKEDITOR[x("0x19")].ie||10<CKEDITOR[x("0x19")][x("0x46")]},beforeInit:function(b){var a=b.config[x("0x31")],f=this.createTokenFetcher(b,a);f[x("0x14")]();b.on(x("0x57"),function(a){a.data[x("0x10")]=f[x("0x10")]},null,null,16)},init:function(b){function a(){return b.plugins[x("0x24")]?b[x("0x20")][x("0x65")](b,
arguments):{update:function(){},hide:function(){}}}function f(a){if(!b[x("0x4b")][x("0x2b")][x("0x38")]&&!b[x("0x69")]()[x("0x1c")]()){var c=[];a=a.$[x("0x67")];try{CKEDITOR[x("0x44")][x("0x8")][x("0xf")](a,function(a){CKEDITOR[x("0x44")][x("0x8")][x("0xf")](a[x("0x39")],function(a){c.push(a[x("0x3a")])})})}catch(e){CKEDITOR[x("0x6c")](x("0x64"),{error:e[x("0xe")]})}return c.join("")}}function g(a){var b=new (CKEDITOR.htmlParser[x("0x5b")]);a=CKEDITOR[x("0x17")][x("0x6d")][x("0x43")](a);a[x("0xf")](function(a){a.name===
x("0x34")&&(a[x("0x61")][x("0x5c")]=c(a.attributes[x("0x5c")]))},CKEDITOR[x("0x12")],!1);a[x("0x9")](b);return b.getHtml()}function k(a,c){a[x("0x6e")](x("0x40"),function(){c[x("0x58")]({progress:.8})});a[x("0x6e")](x("0x5a"),function(){a[x("0x41")]==x("0x51")?(CKEDITOR[x("0x18")][x("0x3d")][x("0x5f")](l(),a.response),c.update({message:b.lang[x("0x3d")].documentReady,type:x("0x6b"),duration:3E3,progress:1})):(e(a.response),c[x("0x32")](),b[x("0x20")](b[x("0x68")][x("0x3d")][x("0x1a")],x("0x3e")));
b[x("0x3")].exportPdf[x("0xa")]()})}function l(){var a=b[x("0x4b")][x("0x28")];return typeof a===x("0x26")?a():a}function e(a){if(a){var b=new FileReader;b[x("0x6e")]("loadend",function(a){a=JSON.parse(a[x("0x1d")].result);console[x("0x1a")](a)});b.readAsText(a)}}function c(a){var c=b[x("0x54")][x("0x29")]("a");c.$.href=a;return c.$[x("0x25")]}this.isSupportedEnvironment()&&(b[x("0x27")](x("0x57"),{exec:function(e){var l=a(e[x("0x68")].exportpdf[x("0xc")],"progress",0),r={html:e[x("0x5d")](),css:f(e.document),
options:e[x("0x4b")].exportPdf_options};this.disable();e[x("0x4a")](x("0x57"),function(a){l.update({progress:.2});a[x("0x56")][x("0x1f")]=g(a[x("0x56")][x("0x1f")]);var f=a[x("0x56")],k=x("0x1f");a=a[x("0x56")][x("0x1f")];var r=e[x("0x69")]()[x("0x36")](!0);a=(b[x("0x4b")][x("0x2b")][x("0x38")]?CKEDITOR[x("0x44")][x("0x52")](CKEDITOR[x("0x44")][x("0x8")][x("0xb")](b[x("0x4b")][x("0x2b")],c)):"")+x("0x49")+r+'"\x3e'+a+x("0x6");f[k]=a},null,null,15);e[x("0x4a")](x("0x57"),function(a){var c=a[x("0x56")][x("0x10")];
delete a[x("0x56")][x("0x10")];var f=e[x("0x4b")].exportPdf_service;a=JSON[x("0x55")](a[x("0x56")]);var g=new XMLHttpRequest,m=b[x("0x4b")][x("0x11")]||"cke4";g[x("0x60")](x("0x2f"),f);g[x("0x3f")](x("0x4c"),x("0x15"));g[x("0x3f")](x("0x3b"),m);if(c)g.setRequestHeader(x("0x21"),c);else CKEDITOR[x("0x6c")](x("0x62"));g[x("0x0")]=x("0x1b");g[x("0xd")](a);l[x("0x58")]({progress:.5});k(g,l)},null,null,20);e[x("0x2")](x("0x57"),r)},modes:{wysiwyg:1},readOnly:1,canUndo:!1}),b.ui.addButton&&b.ui.addButton(x("0x4d"),
{label:b[x("0x68")][x("0x3d")][x("0x3c")],command:x("0x57"),toolbar:x("0x2c")}))},createTokenFetcher:function(b,a){var f={refreshInterval:b[x("0x33")]||36E5,fetchToken:function(){var b=new XMLHttpRequest;b.open(x("0x66"),a);b[x("0x6e")](x("0x5a"),function(){b[x("0x48")]&&(f[x("0x10")]=b[x("0x48")])});b[x("0xd")]()},init:function(){if(a){this[x("0x42")]();var f=window[x("0x4")](this.fetchToken,this[x("0x16")]);b[x("0x4a")](x("0x6f"),function(){window[x("0x2a")](f)})}else CKEDITOR[x("0x6c")]("exportpdf-no-token-url")}};
return f}});CKEDITOR[x("0x18")].exportpdf={downloadFile:function(b,a){if(CKEDITOR[x("0x19")].ie){var f=new Blob([a],{type:x("0x30")});window[x("0x7")][x("0x13")](f,b)}else f=CKEDITOR[x("0x54")][x("0x29")]("a",{attributes:{href:window[x("0x63")].createObjectURL(a),download:b}}),f.$.click(),f[x("0x59")](),window[x("0x63")][x("0x1e")](f[x("0x53")](x("0x25")))}}})();CKEDITOR[x("0x4b")].exportPdf_service="https://pdf-converter.cke-cs.com/v1/convert";CKEDITOR[x("0x4b")][x("0x31")]="";CKEDITOR[x("0x4b")][x("0x28")]=
x("0x35");CKEDITOR[x("0x4b")][x("0x2b")]=[];CKEDITOR.config[x("0x4e")]={}}]);CKEDITOR.plugins.add("popup");CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(b,g,d,a){g=g||"80%";d=d||"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 d&&1<d.length&&"%"==d.substr(d.length-1,1)&&(d=parseInt(window.screen.height*parseInt(d,10)/100,10));640>g&&(g=640);420>d&&(d=420);var f=parseInt((window.screen.height-
d)/2,10),m=parseInt((window.screen.width-g)/2,10);a=(a||"location\x3dno,menubar\x3dno,toolbar\x3dno,dependent\x3dyes,minimizable\x3dno,modal\x3dyes,alwaysRaised\x3dyes,resizable\x3dyes,scrollbars\x3dyes")+",width\x3d"+g+",height\x3d"+d+",top\x3d"+f+",left\x3d"+m;var k=window.open("",null,a,!0);if(!k)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(k.moveTo(m,f),k.resizeTo(g,d)),k.focus(),k.location.href=b}catch(l){window.open(b,null,a,!0)}return!0}});"use strict";(function(){function b(a){this.editor=
a;this.loaders=[]}function g(a,b,g){var l=a.config.fileTools_defaultFileName;this.editor=a;this.lang=a.lang;"string"===typeof b?(this.data=b,this.file=d(this.data),this.loaded=this.total=this.file.size):(this.data=null,this.file=b,this.total=this.file.size,this.loaded=0);g?this.fileName=g:this.file.name?this.fileName=this.file.name:(a=this.file.type.split("/"),l&&(a[0]=l),this.fileName=a.join("."));this.uploaded=0;this.responseData=this.uploadTotal=null;this.status="created";this.abort=function(){this.changeStatus("abort")}}
function d(b){var d=b.match(a)[1];b=b.replace(a,"");b=atob(b);var g=[],l,e,c,h;for(l=0;l<b.length;l+=512){e=b.slice(l,l+512);c=Array(e.length);for(h=0;h<e.length;h++)c[h]=e.charCodeAt(h);e=new Uint8Array(c);g.push(e)}return new Blob(g,{type:d})}CKEDITOR.plugins.add("filetools",{beforeInit:function(a){a.uploadRepository=new b(a);a.on("fileUploadRequest",function(a){var b=a.data.fileLoader;b.xhr.open("POST",b.uploadUrl,!0);a.data.requestData.upload={file:b.file,name:b.fileName}},null,null,5);a.on("fileUploadRequest",
function(b){var d=b.data.fileLoader,g=new FormData;b=b.data.requestData;var e=a.config.fileTools_requestHeaders,c,h;for(h in b){var n=b[h];"object"===typeof n&&n.file?g.append(h,n.file,n.name):g.append(h,n)}g.append("ckCsrfToken",CKEDITOR.tools.getCsrfToken());if(e)for(c in e)d.xhr.setRequestHeader(c,e[c]);d.xhr.send(g)},null,null,999);a.on("fileUploadResponse",function(a){var b=a.data.fileLoader,f=b.xhr,e=a.data;try{var c=JSON.parse(f.responseText);c.error&&c.error.message&&(e.message=c.error.message);
if(c.uploaded)for(var d in c)e[d]=c[d];else a.cancel()}catch(g){e.message=b.lang.filetools.responseError,CKEDITOR.warn("filetools-response-error",{responseText:f.responseText}),a.cancel()}},null,null,999)}});b.prototype={create:function(a,b,d){d=d||g;var l=this.loaders.length;a=new d(this.editor,a,b);a.id=l;this.loaders[l]=a;this.fire("instanceCreated",a);return a},isFinished:function(){for(var a=0;a<this.loaders.length;++a)if(!this.loaders[a].isFinished())return!1;return!0}};g.prototype={loadAndUpload:function(a,
b){var d=this;this.once("loaded",function(g){g.cancel();d.once("update",function(a){a.cancel()},null,null,0);d.upload(a,b)},null,null,0);this.load()},load:function(){var a=this,b=this.reader=new FileReader;a.changeStatus("loading");this.abort=function(){a.reader.abort()};b.onabort=function(){a.changeStatus("abort")};b.onerror=function(){a.message=a.lang.filetools.loadError;a.changeStatus("error")};b.onprogress=function(b){a.loaded=b.loaded;a.update()};b.onload=function(){a.loaded=a.total;a.data=b.result;
a.changeStatus("loaded")};b.readAsDataURL(this.file)},upload:function(a,b){var d=b||{};a?(this.uploadUrl=a,this.xhr=new XMLHttpRequest,this.attachRequestListeners(),this.editor.fire("fileUploadRequest",{fileLoader:this,requestData:d})&&this.changeStatus("uploading")):(this.message=this.lang.filetools.noUrlError,this.changeStatus("error"))},attachRequestListeners:function(){function a(){"error"!=d.status&&(d.message=d.lang.filetools.networkError,d.changeStatus("error"))}function b(){"abort"!=d.status&&
d.changeStatus("abort")}var d=this,g=this.xhr;d.abort=function(){g.abort();b()};g.onerror=a;g.onabort=b;g.upload?(g.upload.onprogress=function(a){a.lengthComputable&&(d.uploadTotal||(d.uploadTotal=a.total),d.uploaded=a.loaded,d.update())},g.upload.onerror=a,g.upload.onabort=b):(d.uploadTotal=d.total,d.update());g.onload=function(){d.update();if("abort"!=d.status)if(d.uploaded=d.uploadTotal,200>g.status||299<g.status)d.message=d.lang.filetools["httpError"+g.status],d.message||(d.message=d.lang.filetools.httpError.replace("%1",
g.status)),d.changeStatus("error");else{for(var a={fileLoader:d},b=["message","fileName","url"],f=d.editor.fire("fileUploadResponse",a),m=0;m<b.length;m++){var r=b[m];"string"===typeof a[r]&&(d[r]=a[r])}d.responseData=a;delete d.responseData.fileLoader;!1===f?d.changeStatus("error"):d.changeStatus("uploaded")}}},changeStatus:function(a){this.status=a;if("error"==a||"abort"==a||"loaded"==a||"uploaded"==a)this.abort=function(){};this.fire(a);this.update()},update:function(){this.fire("update")},isFinished:function(){return!!this.status.match(/^(?:loaded|uploaded|error|abort)$/)}};
CKEDITOR.event.implementOn(b.prototype);CKEDITOR.event.implementOn(g.prototype);var a=/^data:(\S*?);base64,/;CKEDITOR.fileTools||(CKEDITOR.fileTools={});CKEDITOR.tools.extend(CKEDITOR.fileTools,{uploadRepository:b,fileLoader:g,getUploadUrl:function(a,b){var d=CKEDITOR.tools.capitalize;return b&&a[b+"UploadUrl"]?a[b+"UploadUrl"]:a.uploadUrl?a.uploadUrl:b&&a["filebrowser"+d(b,1)+"UploadUrl"]?a["filebrowser"+d(b,1)+"UploadUrl"]+"\x26responseType\x3djson":a.filebrowserUploadUrl?a.filebrowserUploadUrl+
"\x26responseType\x3djson":null},isTypeSupported:function(a,b){return!!a.type.match(b)},isFileUploadSupported:"function"===typeof FileReader&&"function"===typeof(new FileReader).readAsDataURL&&"function"===typeof FormData&&"function"===typeof(new FormData).append&&"function"===typeof XMLHttpRequest&&"function"===typeof Blob})})();(function(){function b(a,b){var c=[];if(b)for(var e in b)c.push(e+"\x3d"+encodeURIComponent(b[e]));else return a;return a+(-1!=a.indexOf("?")?"\x26":"?")+c.join("\x26")}
function g(a){return!a.match(/command=QuickUpload/)||a.match(/(\?|&)responseType=json/)?a:b(a,{responseType:"json"})}function d(a){a+="";return a.charAt(0).toUpperCase()+a.substr(1)}function a(){var a=this.getDialog(),c=a.getParentEditor();c._.filebrowserSe=this;var e=c.config["filebrowser"+d(a.getName())+"WindowWidth"]||c.config.filebrowserWindowWidth||"80%",a=c.config["filebrowser"+d(a.getName())+"WindowHeight"]||c.config.filebrowserWindowHeight||"70%",f=this.filebrowser.params||{};f.CKEditor=c.name;
f.CKEditorFuncNum=c._.filebrowserFn;f.langCode||(f.langCode=c.langCode);f=b(this.filebrowser.url,f);c.popup(f,e,a,c.config.filebrowserWindowFeatures||c.config.fileBrowserWindowFeatures)}function f(a){var b=new CKEDITOR.dom.element(a.$.form);b&&((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()))}function m(){var a=this.getDialog();a.getParentEditor()._.filebrowserSe=
this;return a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value&&a.getContentElement(this["for"][0],this["for"][1]).getAction()?!0:!1}function k(a,c,e){var f=e.params||{};f.CKEditor=a.name;f.CKEditorFuncNum=a._.filebrowserFn;f.langCode||(f.langCode=a.langCode);c.action=b(e.url,f);c.filebrowser=e}function l(b,c,u,p){if(p&&p.length)for(var t,v=p.length;v--;)if(t=p[v],"hbox"!=t.type&&"vbox"!=t.type&&"fieldset"!=t.type||l(b,c,u,t.children),t.filebrowser)if("string"==typeof t.filebrowser&&
(t.filebrowser={action:"fileButton"==t.type?"QuickUpload":"Browse",target:t.filebrowser}),"Browse"==t.filebrowser.action){var y=t.filebrowser.url;void 0===y&&(y=b.config["filebrowser"+d(c)+"BrowseUrl"],void 0===y&&(y=b.config.filebrowserBrowseUrl));y&&(t.onClick=a,t.filebrowser.url=y,t.hidden=!1)}else if("QuickUpload"==t.filebrowser.action&&t["for"]&&(y=t.filebrowser.url,void 0===y&&(y=b.config["filebrowser"+d(c)+"UploadUrl"],void 0===y&&(y=b.config.filebrowserUploadUrl)),y)){var q=t.onClick;t.onClick=
function(a){var c=a.sender,d=c.getDialog().getContentElement(this["for"][0],this["for"][1]).getInputElement(),k=CKEDITOR.fileTools&&CKEDITOR.fileTools.isFileUploadSupported;if(q&&!1===q.call(c,a))return!1;if(m.call(c,a)){if("form"!==b.config.filebrowserUploadMethod&&k)return a=b.uploadRepository.create(d.$.files[0]),a.on("uploaded",function(a){var b=a.sender.responseData;h.call(a.sender.editor,b.url,b.message)}),a.on("error",e.bind(this)),a.on("abort",e.bind(this)),a.loadAndUpload(g(y)),"xhr";f(d);
return!0}return!1};t.filebrowser.url=y;t.hidden=!1;k(b,u.getContents(t["for"][0]).get(t["for"][1]),t.filebrowser)}}function e(a){var b={};try{b=JSON.parse(a.sender.xhr.response)||{}}catch(c){}this.enable();alert(b.error?b.error.message:a.sender.message)}function c(a,b,e){if(-1!==e.indexOf(";")){e=e.split(";");for(var f=0;f<e.length;f++)if(c(a,b,e[f]))return!0;return!1}return(a=a.getContents(b).get(e).filebrowser)&&a.url}function h(a,b){var c=this._.filebrowserSe.getDialog(),e=this._.filebrowserSe["for"],
f=this._.filebrowserSe.filebrowser.onSelect;e&&c.getContentElement(e[0],e[1]).reset();if("function"!=typeof b||!1!==b.call(this._.filebrowserSe))if(!f||!1!==f.call(this._.filebrowserSe,a,b))if("string"==typeof b&&b&&alert(b),a&&(e=this._.filebrowserSe,c=e.getDialog(),e=e.filebrowser.target||null))if(e=e.split(":"),f=c.getContentElement(e[0],e[1]))f.setValue(a),c.selectPage(e[0])}CKEDITOR.plugins.add("filebrowser",{requires:"popup,filetools",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(h,
a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){if(a.editor.plugins.filebrowser)for(var b=a.data.definition,e,f=0;f<b.contents.length;++f)if(e=b.contents[f])l(a.editor,a.data.name,b,e.elements),e.hidden&&e.filebrowser&&(e.hidden=!c(b,e.id,e.filebrowser))})})();CKEDITOR.plugins.add("find",{requires:"dialog",init:function(b){var g=b.addCommand("find",new CKEDITOR.dialogCommand("find")),d=b.addCommand("replace",new CKEDITOR.dialogCommand("find",
{tabId:"replace"}));g.canUndo=!1;g.readOnly=1;d.canUndo=!1;b.ui.addButton&&(b.ui.addButton("Find",{label:b.lang.find.find,command:"find",toolbar:"find,10"}),b.ui.addButton("Replace",{label:b.lang.find.replace,command:"replace",toolbar:"find,20"}));CKEDITOR.dialog.add("find",this.path+"dialogs/find.js")}});CKEDITOR.config.find_highlight={element:"span",styles:{"background-color":"#004",color:"#fff"}};(function(){function b(a,b){var e=m.exec(a),c=m.exec(b);if(e){if(!e[2]&&"px"==c[2])return c[1];if("px"==
e[2]&&!c[2])return c[1]+"px"}return b}function g(f){return{elements:{$:function(g){var e=g.attributes,e=e&&e["data-cke-realelement"],c=d(f,decodeURIComponent(e));if((e=(e=e&&new CKEDITOR.htmlParser.fragment.fromHtml(c))&&e.children[0])&&g.attributes["data-cke-resizable"]){var h=(new a(g)).rules;g=e.attributes;c=h.width;h=h.height;c&&(g.width=b(g.width,c));h&&(g.height=b(g.height,h))}return e}}}}function d(a,b){var e=[],c=/^cke:/i,f=new CKEDITOR.htmlParser.filter({elements:{"^":function(a){c.test(a.name)&&
(a.name=a.name.replace(c,""),e.push(a))},iframe:function(a){a.children=[]}}}),d=a.activeFilter,g=new CKEDITOR.htmlParser.basicWriter,m=CKEDITOR.htmlParser.fragment.fromHtml(b);f.applyTo(m);d.applyTo(m);CKEDITOR.tools.array.forEach(e,function(a){a.name="cke:"+a.name});m.writeHtml(g);return g.getHtml()}var a=CKEDITOR.htmlParser.cssStyle,f=CKEDITOR.tools.cssLength,m=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i;CKEDITOR.plugins.add("fakeobjects",{init:function(a){a.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}",
"fakeobjects")},afterInit:function(a){var b=a.dataProcessor;(b=b&&b.htmlFilter)&&b.addRules(g(a),{applyToAll:!0})}});CKEDITOR.editor.prototype.createFakeElement=function(b,d,e,c){var h=this.lang.fakeobjects,h=h[e]||h.unknown;d={"class":d,"data-cke-realelement":encodeURIComponent(b.getOuterHtml()),"data-cke-real-node-type":b.type,alt:h,title:h,align:b.getAttribute("align")||""};CKEDITOR.env.hc||(d.src=CKEDITOR.tools.transparentImageData);e&&(d["data-cke-real-element-type"]=e);c&&(d["data-cke-resizable"]=
c,e=new a,c=b.getAttribute("width"),b=b.getAttribute("height"),c&&(e.rules.width=f(c)),b&&(e.rules.height=f(b)),e.populate(d));return this.document.createElement("img",{attributes:d})};CKEDITOR.editor.prototype.createFakeParserElement=function(b,d,e,c){var h=this.lang.fakeobjects,h=h[e]||h.unknown,g;g=new CKEDITOR.htmlParser.basicWriter;b.writeHtml(g);g=g.getHtml();d={"class":d,"data-cke-realelement":encodeURIComponent(g),"data-cke-real-node-type":b.type,alt:h,title:h,align:b.attributes.align||""};
CKEDITOR.env.hc||(d.src=CKEDITOR.tools.transparentImageData);e&&(d["data-cke-real-element-type"]=e);c&&(d["data-cke-resizable"]=c,c=b.attributes,b=new a,e=c.width,c=c.height,void 0!==e&&(b.rules.width=f(e)),void 0!==c&&(b.rules.height=f(c)),b.populate(d));return new CKEDITOR.htmlParser.element("img",d)};CKEDITOR.editor.prototype.restoreRealElement=function(a){if(a.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var f=decodeURIComponent(a.data("cke-realelement")),f=d(this,f),f=CKEDITOR.dom.element.createFromHtml(f,
this.document);if(a.data("cke-resizable")){var e=a.getStyle("width");a=a.getStyle("height");e&&f.setAttribute("width",b(f.getAttribute("width"),e));a&&f.setAttribute("height",b(f.getAttribute("height"),a))}return f}})();(function(){function b(a){a=a.attributes;return"application/x-shockwave-flash"==a.type||d.test(a.src||"")}function g(a,b){return a.createFakeParserElement(b,"cke_flash","flash",!0)}var d=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+
CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(a){var b="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[allowfullscreen,height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(a,"flash","properties")&&(b+=";object[align]; embed[allowscriptaccess,quality,scale,wmode]");CKEDITOR.dialog.isTabEnabled(a,"flash",
"advanced")&&(b+=";object[id]{*}; embed[bgcolor]{*}(*)");a.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:b,requiredContent:"embed"}));a.ui.addButton&&a.ui.addButton("Flash",{label:a.lang.common.flash,command:"flash",toolbar:"insert,20"});CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js");a.addMenuItems&&a.addMenuItems({flash:{label:a.lang.flash.properties,command:"flash",group:"flash"}});a.on("doubleclick",function(a){var b=a.data.element;b.is("img")&&"flash"==b.data("cke-real-element-type")&&
(a.data.dialog="flash")});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&!a.isReadOnly()&&"flash"==a.data("cke-real-element-type"))return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){var f=a.dataProcessor;(f=f&&f.dataFilter)&&f.addRules({elements:{"cke:object":function(f){var d=f.attributes;if(!(d.classid&&String(d.classid).toLowerCase()||b(f))){for(d=0;d<f.children.length;d++)if("cke:embed"==f.children[d].name){if(!b(f.children[d]))break;return g(a,f)}return null}return g(a,
f)},"cke:embed":function(f){return b(f)?g(a,f):null}}},5)}})})();CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1});(function(){function b(a){var b=a.config,m=a.fire("uiSpace",{space:"top",html:""}).html,k=function(){function c(a,b,f){e.setStyle(b,d(f));e.setStyle("position",a)}function h(a){var b=m.getDocumentPosition();switch(a){case "top":c("absolute","top",b.y-q-z);break;case "pin":c("fixed","top",C);break;case "bottom":c("absolute","top",b.y+
(v.height||v.bottom-v.top)+z)}l=a}var l,m,t,v,y,q,B,w=b.floatSpaceDockedOffsetX||0,z=b.floatSpaceDockedOffsetY||0,A=b.floatSpacePinnedOffsetX||0,C=b.floatSpacePinnedOffsetY||0;return function(c){if(m=a.editable()){var n=c&&"focus"==c.name;n&&e.show();a.fire("floatingSpaceLayout",{show:n});e.removeStyle("left");e.removeStyle("right");t=e.getClientRect();v=m.getClientRect();y=g.getViewPaneSize();q=t.height;B="pageXOffset"in g.$?g.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;l?(q+z<=
v.top?h("top"):q+z>y.height-v.bottom?h("pin"):h("bottom"),c=y.width/2,c=b.floatSpacePreferRight?"right":0<v.left&&v.right<y.width&&v.width>t.width?"rtl"==b.contentsLangDirection?"right":"left":c-v.left>v.right-c?"left":"right",t.width>y.width?(c="left",n=0):(n="left"==c?0<v.left?v.left:0:v.right<y.width?y.width-v.right:0,n+t.width>y.width&&(c="left"==c?"right":"left",n=0)),e.setStyle(c,d(("pin"==l?A:w)+n+("pin"==l?0:"left"==c?B:-B)))):(l="pin",h("pin"),k(c))}}}();if(m){var l=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}"'+(a.title?' aria-labelledby\x3d"cke_{name}_arialbl"':" ")+"\x3e"+(a.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'),e=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(l.output({content:m,
id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(b.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),c=CKEDITOR.tools.eventsBuffer(500,k),h=CKEDITOR.tools.eventsBuffer(100,k);e.unselectable();e.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){k(b);a.on("change",c.input);g.on("scroll",h.input);g.on("resize",h.input)});a.on("blur",function(){e.hide();a.removeListener("change",
c.input);g.removeListener("scroll",h.input);g.removeListener("resize",h.input)});a.on("destroy",function(){g.removeListener("scroll",h.input);g.removeListener("resize",h.input);e.clearCustomData();e.remove()});a.focusManager.hasFocus&&e.show();a.focusManager.add(e,1)}}var g=CKEDITOR.document.getWindow(),d=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){b(this)},null,null,20)}})})();CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var b=
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}" draggable\x3d"false" ondragstart\x3d"return false;" href\x3d"javascript:void(\'{val}\')"  onclick\x3d"{onclick}CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role\x3d"option"\x3e{text}\x3c/a\x3e\x3c/li\x3e'),
d=CKEDITOR.addTemplate("panel-list-group",'\x3ch1 id\x3d"{id}" draggable\x3d"false" ondragstart\x3d"return false;" class\x3d"cke_panel_grouptitle" role\x3d"presentation" \x3e{label}\x3c/h1\x3e'),a=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){b=b||{};var d=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&
(d["aria-multiselectable"]=!0);!d.role&&(d.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",d.role);d=this.keys;d[40]="next";d[9]="next";d[38]="prev";d[CKEDITOR.SHIFT+9]="prev";d[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(d[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var a=b.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);
delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(a){var b=this.toggle(a);if(this.onClick)this.onClick(a,b)},this));return this._.click}},proto:{add:function(b,d,k){var l=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[b]=l;var e;e=CKEDITOR.tools.htmlEncodeAttr(b).replace(a,"\\'");b={id:l,val:e,onclick:CKEDITOR.env.ie?'return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26':
"",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(k||b),text:d||b};this._.pendingList.push(g.output(b))},startGroup:function(a){this._.close();var b=CKEDITOR.tools.getNextId();this._.groups[a]=b;this._.pendingHtml.push(d.output({id:b,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var b=this.isMarked(a);b?this.unmark(a):this.mark(a);return!b},hideGroup:function(a){var b=(a=
this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),b&&"ul"==b.getName()&&b.setStyle("display","none"))},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},showAll:function(){var a=this._.items,b=this._.groups,d=this.element.getDocument(),g;for(g in a)d.getById(a[g]).setStyle("display","");for(var e in b)a=d.getById(b[e]),g=a.getNext(),a.setStyle("display",""),g&&"ul"==g.getName()&&g.setStyle("display",
"")},mark:function(a){this.multiSelect||this.unmarkAll();a=this._.items[a];var b=this.element.getDocument().getById(a);b.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(b)},markFirstDisplayed:function(){var a=this;this._.markFirstDisplayed(function(){a.multiSelect||a.unmarkAll()})},unmark:function(a){var b=this.element.getDocument();a=this._.items[a];var d=b.getById(a);d.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");
this.onUnmark&&this.onUnmark(d)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),d;for(d in a){var g=a[d];b.getById(g).removeClass("cke_selected");b.getById(g+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(a){return this.element.getDocument().getById(this._.items[a]).hasClass("cke_selected")},focus:function(a){this._.focusIndex=-1;var b=this.element.getElementsByTag("a"),d,g=-1;if(a)for(d=this.element.getDocument().getById(this._.items[a]).getFirst();a=
b.getItem(++g);){if(a.equals(d)){this._.focusIndex=g;break}}else this.element.focus();d&&setTimeout(function(){d.focus()},0)}}})}});CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}});(function(){var b='\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"listbox"',g="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(b+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(b+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');CKEDITOR.env.ie&&(g='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var b=b+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+
g+'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"),d=CKEDITOR.addTemplate("combo",b);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this,
a,{canGroup:!1,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};a.toolbarRelated=!0;this._={panelDefinition:a,items:{},listeners:[]}},proto:{renderHtml:function(a){var b=[];this.render(a,b);return b.join("")},render:function(a,b){function g(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var b=
this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a.readOnly&&!this.readOnly&&(b=CKEDITOR.TRISTATE_DISABLED);this.setState(b);this.setValue("");b!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var k=CKEDITOR.env,l,e,c="cke_"+this.id,h=CKEDITOR.tools.addFunction(function(b){e&&(a.unlockSelection(1),e=0);l.execute(b)},this),n=this;l={id:c,combo:this,focus:function(){CKEDITOR.document.getById(c).getChild(1).focus()},execute:function(b){var c=n._;if(c.state!=CKEDITOR.TRISTATE_DISABLED)if(n.createPanel(a),
c.on)c.panel.hide();else{n.commit();var e=n.getValue();e?c.list.mark(e):c.list.unmarkAll();c.panel.showBlock(n.id,new CKEDITOR.dom.element(b),4)}},clickFn:h};this._.listeners.push(a.on("activeFilterChange",g,this));this._.listeners.push(a.on("mode",g,this));this._.listeners.push(a.on("selectionChange",g,this));!this.readOnly&&this._.listeners.push(a.on("readOnly",g,this));var r=CKEDITOR.tools.addFunction(function(a,b){a=new CKEDITOR.dom.event(a);var c=a.getKeystroke();switch(c){case 13:case 32:case 40:CKEDITOR.tools.callFunction(h,
b);break;default:l.onkey(l,c)}a.preventDefault()}),u=CKEDITOR.tools.addFunction(function(){l.onfocus&&l.onfocus()});e=0;l.keyDownFn=r;k={id:c,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:k.gecko&&!k.hc?"":(this.title||"").replace("'",""),keydownFn:r,focusFn:u,clickFn:h};d.output(k,b);if(this.onRender)this.onRender();return l},createPanel:function(a){if(!this._.panel){var b=this._.panelDefinition,d=this._.panelDefinition.block,g=b.parent||CKEDITOR.document.getBody(),
l="cke_combopanel__"+this.name,e=new CKEDITOR.ui.floatPanel(a,g,b),b=e.addListBlock(this.id,d),c=this;e.onShow=function(){this.element.addClass(l);c.setState(CKEDITOR.TRISTATE_ON);c._.on=1;c.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(c.onOpen)c.onOpen()};e.onHide=function(b){this.element.removeClass(l);c.setState(c.modes&&c.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);c._.on=0;if(!b&&c.onClose)c.onClose()};e.onEscape=function(){e.hide(1)};b.onClick=function(a,b){c.onClick&&
c.onClick.call(c,a,b);e.hide()};this._.panel=e;this._.list=b;e.getBlock(this.id).onHide=function(){c._.on=0;c.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,b){this._.value=a;var d=this.document.getById("cke_"+this.id+"_text");d&&(a||b?d.removeClass("cke_combo_inlinelabel"):(b=this.label,d.addClass("cke_combo_inlinelabel")),d.setText("undefined"!=typeof b?b:a));var d="undefined"!=typeof b?b:a,g=this.label,d=d===g?d:d+", "+g;(g=this.document.getById("cke_"+this.id+"_label"))&&
g.setText(d)},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)},hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,b,d){this._.items[a]=d||a;this._.list.add(a,b,d)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));
this._.committed=1},setState:function(a){if(this._.state!=a){var b=this.document.getById("cke_"+this.id),d=b.getElementsByTag("a").getItem(0);b.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",!0):b.removeAttribute("aria-disabled");d&&d.setAttribute("aria-expanded",a==CKEDITOR.TRISTATE_ON);this._.state=a}},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))},destroy:function(){CKEDITOR.tools.array.forEach(this._.listeners,function(a){a.removeListener()});this._.listeners=[]},select:function(a){if(!CKEDITOR.tools.isEmpty(this._.items))for(var b in this._.items)if(a({value:b,text:this._.items[b]})){this.setValue(b);break}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,b){this.add(a,
CKEDITOR.UI_RICHCOMBO,b)}})();(function(){function b(a,b){var l=a.config,e=b.lang,c=new CKEDITOR.style(b.styleDefinition),h=new f({entries:b.entries,styleVariable:b.styleVariable,styleDefinition:b.styleDefinition}),n;a.addCommand(b.commandName,{exec:function(a,b){var c=b.newStyle,e=b.oldStyle,f=a.getSelection().getRanges()[0],h=void 0===c;if(e||c)e&&f.collapsed&&d({editor:a,range:f,style:e}),h?a.removeStyle(e):(e&&!g(e,c)&&a.removeStyle(e),a.applyStyle(c))},refresh:function(a,b){c.checkApplicable(b,
a,a.activeFilter)||this.setState(CKEDITOR.TRISTATE_DISABLED)}});n=a.getCommand(b.commandName);a.ui.addRichCombo(b.comboName,{label:e.label,title:e.panelTitle,command:b.commandName,toolbar:"styles,"+b.order,defaultValue:"cke-default",allowedContent:c,requiredContent:c,contentTransformations:"span"===b.styleDefinition.element?[[{element:"font",check:"span",left:function(a){return!!a.attributes.size||!!a.attributes.align||!!a.attributes.face},right:function(a){var b=" x-small small medium large x-large xx-large 48px".split(" ");
a.name="span";a.attributes.size&&(a.styles["font-size"]=b[a.attributes.size],delete a.attributes.size);a.attributes.align&&(a.styles["text-align"]=a.attributes.align,delete a.attributes.align);a.attributes.face&&(a.styles["font-family"]=a.attributes.face,delete a.attributes.face)}}]]:null,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(l.contentsCss),multiSelect:!1,attributes:{"aria-label":e.panelTitle}},init:function(){var b="("+a.lang.common.optionDefault+")";this.startGroup(e.panelTitle);this.add(this.defaultValue,
b,b);h.addToCombo(this)},onClick:function(c){var e=this.getValue();a.focus();a.fire("saveSnapshot");a.execCommand(b.commandName,{newStyle:h.getStyle(c),oldStyle:h.getStyle(e)});a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(c){var e=this.getValue();(c=h.getMatchingValue(a,c.data.path))?c!=e&&this.setValue(c):this.setValue("",b.defaultLabel)},this);n.on("state",function(){this.setState(n.state)},this)},refresh:function(){this.setState(n.state)}})}function g(a,b){if(!(a instanceof
CKEDITOR.style&&b instanceof CKEDITOR.style))return!1;var d=function(a,b){var e=a.getDefinition().attributes,d=b.getDefinition().attributes;return CKEDITOR.tools.objectCompare(e,d)}(a,b),e=function(a,b){return CKEDITOR.style.getStyleText(a.getDefinition())===CKEDITOR.style.getStyleText(b.getDefinition())}(a,b);return d&&e}function d(b){var d=b.editor,f=b.range,e=b.style,c,h,g;c=d.elementPath();if(b=c.contains(function(a){return e.checkElementRemovable(a)})){h=f.checkBoundaryOfElement(b,CKEDITOR.START);
g=f.checkBoundaryOfElement(b,CKEDITOR.END);if(h&&g){for(h=f.createBookmark();c=b.getFirst();)c.insertBefore(b);b.remove();f.moveToBookmark(h)}else h||g?f.moveToPosition(b,h?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(f.splitElement(b),f.moveToPosition(b,CKEDITOR.POSITION_AFTER_END)),a(f,c.elements.slice(),b);d.getSelection().selectRanges([f])}}function a(b,d,f){var e=d.pop();if(e){if(f)return a(b,d,e.equals(f)?null:f);f=e.clone();b.insertNode(f);b.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);
a(b,d)}}var f=CKEDITOR.tools.createClass({$:function(a){var b=a.entries.split(";");this._.data={};this._.names=[];for(var d=0;d<b.length;d++){var e=b[d],c,f;e?(e=e.split("/"),c=e[0],e=e[1],f={},f[a.styleVariable]=e||c,this._.data[c]=new CKEDITOR.style(a.styleDefinition,f),this._.data[c]._.definition.name=c,this._.names.push(c)):(b.splice(d,1),d--)}},proto:{getStyle:function(a){return this._.data[a]},addToCombo:function(a){for(var b=0;b<this._.names.length;b++){var d=this._.names[b];a.add(d,this.getStyle(d).buildPreview(),
d)}},getMatchingValue:function(a,b){for(var d=b.elements,e=0,c;e<d.length;e++)if(c=d[e],c=this._.findMatchingStyleName(a,c))return c;return null}},_:{findMatchingStyleName:function(a,b){return CKEDITOR.tools.array.find(this._.names,function(d){return this.getStyle(d).checkElementMatch(b,!0,a)},this)}}});CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(a){var d=a.config;b(a,{comboName:"Font",commandName:"font",styleVariable:"family",lang:a.lang.font,entries:d.font_names,defaultLabel:d.font_defaultLabel,
styleDefinition:d.font_style,order:30});b(a,{comboName:"FontSize",commandName:"fontSize",styleVariable:"size",lang:a.lang.font.fontSize,entries:d.fontSize_sizes,defaultLabel:d.fontSize_defaultLabel,styleDefinition:d.fontSize_style,order:40})}})})();CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif";
CKEDITOR.config.font_defaultLabel="";CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]};CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px";CKEDITOR.config.fontSize_defaultLabel="";CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]};CKEDITOR.plugins.add("format",
{requires:"richcombo",init:function(b){if(!b.blockless){for(var g=b.config,d=b.lang.format,a=g.format_tags.split(";"),f={},m=0,k=[],l=0;l<a.length;l++){var e=a[l],c=new CKEDITOR.style(g["format_"+e]);if(!b.filter.customConfig||b.filter.check(c))m++,f[e]=c,f[e]._.enterMode=b.config.enterMode,k.push(c)}0!==m&&b.ui.addRichCombo("Format",{label:d.label,title:d.panelTitle,toolbar:"styles,20",allowedContent:k,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(g.contentsCss),multiSelect:!1,attributes:{"aria-label":d.panelTitle}},
init:function(){this.startGroup(d.panelTitle);for(var a in f){var b=d["tag_"+a];this.add(a,f[a].buildPreview(b),b)}},onClick:function(a){b.focus();b.fire("saveSnapshot");a=f[a];var c=b.elementPath();b.fire("stylesRemove",{type:CKEDITOR.STYLE_BLOCK});a.checkActive(c,b)||b.applyStyle(a);setTimeout(function(){b.fire("saveSnapshot")},0)},onRender:function(){b.on("selectionChange",function(a){var c=this.getValue();a=a.data.path;this.refresh();for(var e in f)if(f[e].checkActive(a,b)){e!=c&&this.setValue(e,
b.lang.format["tag_"+e]);return}this.setValue("")},this)},onOpen:function(){this.showAll();for(var a in f)b.activeFilter.check(f[a])||this.hideItem(a)},refresh:function(){var a=b.elementPath();if(a){if(a.isContextFor("p"))for(var c in f)if(b.activeFilter.check(f[c]))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"};CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss(".cke_editable form{border: 1px dotted #FF0000;padding: 2px;}\n");CKEDITOR.addCss("img.cke_hidden{background-image: url("+
CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}");CKEDITOR.style.unstylableElements.push("select","option")},init:function(b){var g=b.lang,d=0,a={email:1,password:1,search:1,tel:1,text:1,url:1},f={checkbox:"input[type,name,checked,required]",radio:"input[type,name,checked,required]",textfield:"input[type,name,value,size,maxlength,required]",textarea:"textarea[cols,rows,name,required]",
select:"select[name,size,multiple,required]; option[value,selected]",button:"input[type,name,value]",form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},m={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},k=function(a,e,k){var l={allowedContent:f[e],requiredContent:m[e]};
"form"==e&&(l.context="form");b.addCommand(e,new CKEDITOR.dialogCommand(e,l));b.ui.addButton&&b.ui.addButton(a,{label:g.common[a.charAt(0).toLowerCase()+a.slice(1)],command:e,toolbar:"forms,"+(d+=10)});CKEDITOR.dialog.add(e,k)},l=this.path+"dialogs/";!b.blockless&&k("Form","form",l+"form.js");k("Checkbox","checkbox",l+"checkbox.js");k("Radio","radio",l+"radio.js");k("TextField","textfield",l+"textfield.js");k("Textarea","textarea",l+"textarea.js");k("Select","select",l+"select.js");k("Button","button",
l+"button.js");var e=b.plugins.image;e&&!b.plugins.image2&&k("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js");k("HiddenField","hiddenfield",l+"hiddenfield.js");b.addMenuItems&&(k={checkbox:{label:g.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},radio:{label:g.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:g.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:g.forms.hidden.title,
command:"hiddenfield",group:"hiddenfield"},button:{label:g.forms.button.title,command:"button",group:"button"},select:{label:g.forms.select.title,command:"select",group:"select"},textarea:{label:g.forms.textarea.title,command:"textarea",group:"textarea"}},e&&(k.imagebutton={label:g.image.titleButton,command:"imagebutton",group:"imagebutton"}),!b.blockless&&(k.form={label:g.forms.form.menu,command:"form",group:"form"}),b.addMenuItems(k));b.contextMenu&&(!b.blockless&&b.contextMenu.addListener(function(a,
b,e){if((a=e.contains("form",1))&&!a.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}}),b.contextMenu.addListener(function(b){if(b&&!b.isReadOnly()){var d=b.getName();if("select"==d)return{select:CKEDITOR.TRISTATE_OFF};if("textarea"==d)return{textarea:CKEDITOR.TRISTATE_OFF};if("input"==d){var f=b.getAttribute("type")||"text";switch(f){case "button":case "submit":case "reset":return{button:CKEDITOR.TRISTATE_OFF};case "checkbox":return{checkbox:CKEDITOR.TRISTATE_OFF};case "radio":return{radio:CKEDITOR.TRISTATE_OFF};
case "image":return e?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(a[f])return{textfield:CKEDITOR.TRISTATE_OFF}}if("img"==d&&"hiddenfield"==b.data("cke-real-element-type"))return{hiddenfield:CKEDITOR.TRISTATE_OFF}}}));b.on("doubleclick",function(c){var e=c.data.element;if(!b.blockless&&e.is("form"))c.data.dialog="form";else if(e.is("select"))c.data.dialog="select";else if(e.is("textarea"))c.data.dialog="textarea";else if(e.is("img")&&"hiddenfield"==e.data("cke-real-element-type"))c.data.dialog="hiddenfield";
else if(e.is("input")){e=e.getAttribute("type")||"text";switch(e){case "button":case "submit":case "reset":c.data.dialog="button";break;case "checkbox":c.data.dialog="checkbox";break;case "radio":c.data.dialog="radio";break;case "image":c.data.dialog="imagebutton"}a[e]&&(c.data.dialog="textfield")}})},afterInit:function(b){var g=b.dataProcessor,d=g&&g.htmlFilter,g=g&&g.dataFilter;CKEDITOR.env.ie&&d&&d.addRules({elements:{input:function(a){a=a.attributes;var b=a.type;b||(a.type="text");"checkbox"!=
b&&"radio"!=b||"on"!=a.value||delete a.value}}},{applyToAll:!0});g&&g.addRules({elements:{input:function(a){if("hidden"==a.attributes.type)return b.createFakeParserElement(a,"cke_hidden","hiddenfield")}}},{applyToAll:!0})}});CKEDITOR.plugins.forms={_setupRequiredAttribute:function(b){this.setValue(b.hasAttribute("required"))}};(function(){var b={canUndo:!1,exec:function(b){var d=b.document.createElement("hr");b.insertElement(d)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",
{init:function(g){g.blockless||(g.addCommand("horizontalrule",b),g.ui.addButton&&g.ui.addButton("HorizontalRule",{label:g.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})})();CKEDITOR.plugins.add("htmlwriter",{init:function(b){var g=new CKEDITOR.htmlWriter;g.forceSimpleAmpersand=b.config.forceSimpleAmpersand;g.indentationChars="string"===typeof b.config.dataIndentationChars?b.config.dataIndentationChars:"\t";b.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 b=CKEDITOR.dtd,g;for(g in CKEDITOR.tools.extend({},b.$nonBodyContent,b.$block,b.$listItem,b.$tableContent))this.setRules(g,{indent:!b[g]["#"],breakBeforeOpen:1,breakBeforeClose:!b[g]["#"],breakAfterClose:1,needsSpace:g in b.$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(b){var g=this._.rules[b];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",b);this._.afterCloser=0},openTagClose:function(b,g){var d=this._.rules[b];g?(this._.output.push(this.selfClosingEnd),d&&
d.breakAfterClose&&(this._.needsSpace=d.needsSpace)):(this._.output.push("\x3e"),d&&d.indent&&(this._.indentation+=this.indentationChars));d&&d.breakAfterOpen&&this.lineBreak();"pre"==b&&(this._.inPre=1)},attribute:function(b,g){"string"==typeof g&&(g=CKEDITOR.tools.htmlEncodeAttr(g),this.forceSimpleAmpersand&&(g=g.replace(/&amp;/g,"\x26")));this._.output.push(" ",b,'\x3d"',g,'"')},closeTag:function(b){var g=this._.rules[b];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/",b,"\x3e");"pre"==b&&(this._.inPre=0);g&&g.breakAfterClose&&(this.lineBreak(),this._.needsSpace=g.needsSpace);this._.afterCloser=1},text:function(b){this._.indent&&(this.indentation(),!this._.inPre&&(b=CKEDITOR.tools.ltrim(b)));this._.output.push(b)},comment:function(b){this._.indent&&this.indentation();this._.output.push("\x3c!--",b,"--\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(b,g){var d=this._.rules[b];d?CKEDITOR.tools.extend(d,g,!0):this._.rules[b]=g}}});(function(){CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_iframe{background-image: url("+
CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(b){var g=b.lang.iframe,d="iframe[align,longdesc,tabindex,frameborder,height,name,scrolling,src,title,width]";b.plugins.dialogadvtab&&(d+=";iframe"+b.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1}));CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js");b.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",
{allowedContent:d,requiredContent:"iframe"}));b.ui.addButton&&b.ui.addButton("Iframe",{label:g.toolbar,command:"iframe",toolbar:"insert,80"});b.on("doubleclick",function(a){var b=a.data.element;b.is("img")&&"iframe"==b.data("cke-real-element-type")&&(a.data.dialog="iframe")});b.addMenuItems&&b.addMenuItems({iframe:{label:g.title,command:"iframe",group:"image"}});b.contextMenu&&b.contextMenu.addListener(function(a){if(a&&a.is("img")&&"iframe"==a.data("cke-real-element-type"))return{iframe:CKEDITOR.TRISTATE_OFF}})},
afterInit:function(b){var g=b.dataProcessor;(g=g&&g.dataFilter)&&g.addRules({elements:{iframe:function(d){return b.createFakeParserElement(d,"cke_iframe","iframe",!0)}}})}})})();(function(){function b(b,a){a||(a=b.getSelection().getSelectedElement());if(a&&a.is("img")&&!a.data("cke-realelement")&&!a.isReadOnly())return a}function g(b){var a=b.getStyle("float");if("inherit"==a||"none"==a)a=0;a||(a=b.getAttribute("align"));return a}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(d){if(!d.plugins.detectConflict("image",
["easyimage","image2"])){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var a="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(d,"image","advanced")&&(a="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");d.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:a,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle",
"img[align]: alignmentToAttribute"]]}));d.ui.addButton&&d.ui.addButton("Image",{label:d.lang.common.image,command:"image",toolbar:"insert,10"});d.on("doubleclick",function(a){var b=a.data.element;!b.is("img")||b.data("cke-realelement")||b.isReadOnly()||(a.data.dialog="image")});d.addMenuItems&&d.addMenuItems({image:{label:d.lang.image.menu,command:"image",group:"image"}});d.contextMenu&&d.contextMenu.addListener(function(a){if(b(d,a))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(d){function a(a){var m=
d.getCommand("justify"+a);if(m){if("left"==a||"right"==a)m.on("exec",function(k){var l=b(d),e;l&&(e=g(l),e==a?(l.removeStyle("float"),a==g(l)&&l.removeAttribute("align")):l.setStyle("float",a),k.cancel())});m.on("refresh",function(k){var l=b(d);l&&(l=g(l),this.setState(l==a?CKEDITOR.TRISTATE_ON:"right"==a||"left"==a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),k.cancel())})}}d.plugins.image2||(a("left"),a("right"),a("center"),a("block"))}})})();CKEDITOR.config.image_removeLinkByEmptyURL=!0;(function(){function b(a,
b){var m,k;b.on("refresh",function(a){var b=[g],c;for(c in a.data.states)b.push(a.data.states[c]);this.setState(CKEDITOR.tools.search(b,d)?d:g)},b,null,100);b.on("exec",function(b){m=a.getSelection();k=m.createBookmarks(1);b.data||(b.data={});b.data.done=!1},b,null,0);b.on("exec",function(){a.forceNextSelectionCheck();m.selectBookmarks(k)},b,null,100)}var g=CKEDITOR.TRISTATE_DISABLED,d=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(a){var d=CKEDITOR.plugins.indent.genericDefinition;
b(a,a.addCommand("indent",new d(!0)));b(a,a.addCommand("outdent",new d));a.ui.addButton&&(a.ui.addButton("Indent",{label:a.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),a.ui.addButton("Outdent",{label:a.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"}));a.on("dirChanged",function(b){var d=a.createRange(),f=b.data.node;d.setStartBefore(f);d.setEndAfter(f);for(var e=new CKEDITOR.dom.walker(d),c;c=e.next();)if(c.type==CKEDITOR.NODE_ELEMENT)if(!c.equals(f)&&
c.getDirection())d.setStartAfter(c),e=new CKEDITOR.dom.walker(d);else{var h=a.config.indentClasses;if(h)for(var g="ltr"==b.data.dir?["_rtl",""]:["","_rtl"],r=0;r<h.length;r++)c.hasClass(h[r]+g[0])&&(c.removeClass(h[r]+g[0]),c.addClass(h[r]+g[1]));h=c.getStyle("margin-right");g=c.getStyle("margin-left");h?c.setStyle("margin-left",h):c.removeStyle("margin-left");g?c.setStyle("margin-right",g):c.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;
this.startDisabled=!this.isIndent},specificDefinition:function(a,b,d){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!d;this.relatedGlobal=d?"indent":"outdent";this.indentKey=d?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a,b){var e=a.getCommand(b.relatedGlobal),c;for(c in b.jobs)e.on("exec",function(e){e.data.done||(a.fire("lockSnapshot"),b.execJob(a,c)&&(e.data.done=
!0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(b.database))},this,null,c),e.on("refresh",function(e){e.data.states||(e.data.states={});e.data.states[b.name+"@"+c]=b.refreshJob(a,c,e.data.path)},this,null,c);a.addFeature(b)})(this,b[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(a,b){var d=this.jobs[b];if(d.state!=g)return d.exec.call(this,a)},refreshJob:function(a,
b,d){b=this.jobs[b];a.activeFilter.checkFeature(this)?b.state=b.refresh.call(this,a,d):b.state=g;return b.state},getContext:function(a){return a.contains(this.context)}}})();(function(){function b(a,b,e){if(!a.getCustomData("indent_processed")){var c=this.editor,d=this.isIndent;if(b){c=a.$.className.match(this.classNameRegex);e=0;c&&(c=c[1],e=CKEDITOR.tools.indexOf(b,c)+1);if(0>(e+=d?1:-1))return;e=Math.min(e,b.length);e=Math.max(e,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,
""));0<e&&a.addClass(b[e-1])}else{b=g(a,e);e=parseInt(a.getStyle(b),10);var f=c.config.indentOffset||40;isNaN(e)&&(e=0);e+=(d?1:-1)*f;if(0>e)return;e=Math.max(e,0);e=Math.ceil(e/f)*f;a.setStyle(b,e?e+(c.config.indentUnit||"px"):"");""===a.getAttribute("style")&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function g(a,b){return"ltr"==(b||a.getComputedStyle("direction"))?"margin-left":"margin-right"}var d=CKEDITOR.dtd.$listItem,a=CKEDITOR.dtd.$list,
f=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(k){function l(){e.specificDefinition.apply(this,arguments);this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:c?null:"margin-left,margin-right",classes:c||null}};this.contentTransformations=[["div: splitMarginShorthand"],["h1: splitMarginShorthand"],["h2: splitMarginShorthand"],["h3: splitMarginShorthand"],["h4: splitMarginShorthand"],["h5: splitMarginShorthand"],
["h6: splitMarginShorthand"],["ol: splitMarginShorthand"],["p: splitMarginShorthand"],["pre: splitMarginShorthand"],["ul: splitMarginShorthand"]];this.enterBr&&(this.allowedContent.div=!0);this.requiredContent=(this.enterBr?"div":"p")+(c?"("+c.join(",")+")":"{margin-left}");this.jobs={20:{refresh:function(a,b){var e=b.block||b.blockLimit;if(!e.is(d))var k=e.getAscendant(d),e=k&&b.contains(k)||e;e.is(d)&&(e=e.getParent());if(this.enterBr||this.getContext(b)){if(c){var k=c,e=e.$.className.match(this.classNameRegex),
l=this.isIndent,k=e?l?e[1]!=k.slice(-1):!0:l;return k?m:f}return this.isIndent?m:e?CKEDITOR[0>=(parseInt(e.getStyle(g(e)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:f}return f},exec:function(e){var d=e.getSelection(),d=d&&d.getRanges()[0],f;if(f=e.elementPath().contains(a))b.call(this,f,c);else for(d=d.createIterator(),e=e.config.enterMode,d.enforceRealBlocks=!0,d.enlargeBr=e!=CKEDITOR.ENTER_BR;f=d.getNextParagraph(e==CKEDITOR.ENTER_P?"p":"div");)f.isReadOnly()||b.call(this,f,c);return!0}}}}var e=
CKEDITOR.plugins.indent,c=k.config.indentClasses;e.registerCommands(k,{indentblock:new l(k,"indentblock",!0),outdentblock:new l(k,"outdentblock")});CKEDITOR.tools.extend(l.prototype,e.specificDefinition.prototype,{context:{div:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,p:1,pre:1,table:1},classNameRegex:c?new RegExp("(?:^|\\s+)("+c.join("|")+")(?\x3d$|\\s)"):null})}})})();(function(){function b(a){function b(e){for(var g=m.startContainer,q=m.endContainer;g&&!g.getParent().equals(e);)g=g.getParent();
for(;q&&!q.getParent().equals(e);)q=q.getParent();if(!g||!q)return!1;for(var B=[],w=!1;!w;)g.equals(q)&&(w=!0),B.push(g),g=g.getNext();if(1>B.length)return!1;g=e.getParents(!0);for(q=0;q<g.length;q++)if(g[q].getName&&k[g[q].getName()]){e=g[q];break}for(var g=c.isIndent?1:-1,q=B[0],B=B[B.length-1],w=CKEDITOR.plugins.list.listToArray(e,f),z=w[B.getCustomData("listarray_index")].indent,q=q.getCustomData("listarray_index");q<=B.getCustomData("listarray_index");q++)if(w[q].indent+=g,0<g){for(var A=w[q].parent,
t=q-1;0<=t;t--)if(w[t].indent===g){A=w[t].parent;break}w[q].parent=new CKEDITOR.dom.element(A.getName(),A.getDocument())}for(q=B.getCustomData("listarray_index")+1;q<w.length&&w[q].indent>z;q++)w[q].indent+=g;g=CKEDITOR.plugins.list.arrayToList(w,f,null,a.config.enterMode,e.getDirection());if(!c.isIndent){var p;if((p=e.getParent())&&p.is("li"))for(var B=g.listNode.getChildren(),F=[],u,q=B.count()-1;0<=q;q--)(u=B.getItem(q))&&u.is&&u.is("li")&&F.push(u)}g&&g.listNode.replace(e);if(F&&F.length)for(q=
0;q<F.length;q++){for(u=e=F[q];(u=u.getNext())&&u.is&&u.getName()in k;)CKEDITOR.env.needsNbspFiller&&!e.getFirst(d)&&e.append(m.document.createText(" ")),e.append(u);e.insertAfter(p)}g&&a.fire("contentDomInvalidated");return!0}for(var c=this,f=this.database,k=this.context,m,u=a.getSelection(),u=(u&&u.getRanges()).createIterator();m=u.getNextRange();){for(var p=m.getCommonAncestor();p&&(p.type!=CKEDITOR.NODE_ELEMENT||!k[p.getName()]);){if(a.editable().equals(p)){p=!1;break}p=p.getParent()}p||(p=m.startPath().contains(k))&&
m.setEndAt(p,CKEDITOR.POSITION_BEFORE_END);if(!p){var t=m.getEnclosedNode();t&&t.type==CKEDITOR.NODE_ELEMENT&&t.getName()in k&&(m.setStartAt(t,CKEDITOR.POSITION_AFTER_START),m.setEndAt(t,CKEDITOR.POSITION_BEFORE_END),p=t)}p&&m.startContainer.type==CKEDITOR.NODE_ELEMENT&&m.startContainer.getName()in k&&(t=new CKEDITOR.dom.walker(m),t.evaluator=g,m.startContainer=t.next());p&&m.endContainer.type==CKEDITOR.NODE_ELEMENT&&m.endContainer.getName()in k&&(t=new CKEDITOR.dom.walker(m),t.evaluator=g,m.endContainer=
t.previous());if(p)return b(p)}return 0}function g(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function d(b){return a(b)&&f(b)}var a=CKEDITOR.dom.walker.whitespaces(!0),f=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,k=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(a){function e(a){c.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 e=this.getContext(c);!e||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,c,e)||(a.execCommand(this.relatedGlobal),b.cancel())}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),e=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return c&&this.isIndent&&!e?k:m}:function(a,b){return!this.getContext(b)||this.isIndent?m:k},exec:CKEDITOR.tools.bind(b,this)}}var c=CKEDITOR.plugins.indent;c.registerCommands(a,
{indentlist:new e(a,"indentlist",!0),outdentlist:new e(a,"outdentlist")});CKEDITOR.tools.extend(e.prototype,c.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,c){var d=b.contains(g);c||(c=b.contains(a));return c&&d&&d.equals(c.getFirst(g))}})();(function(){function b(a,b){b=void 0===b||b;var d;if(b)d=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){d=
a.getParent();if(!d)break;a=d}d=a.getStyle("text-align")||a.getAttribute("align")||""}d&&(d=d.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!d&&b&&(d="rtl"==a.getComputedStyle("direction")?"right":"left");return d}function g(a,b,d){this.editor=a;this.name=b;this.value=d;this.context="p";b=a.config.justifyClasses;var g=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(b){switch(d){case "left":this.cssClassName=b[0];break;case "center":this.cssClassName=b[1];break;case "right":this.cssClassName=
b[2];break;case "justify":this.cssClassName=b[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+b.join("|")+")(?\x3d$|\\s)");this.requiredContent=g+"("+this.cssClassName+")"}else this.requiredContent=g+"{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}};a.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function d(a){var b=a.editor,d=b.createRange();d.setStartBefore(a.data.node);
d.setEndAfter(a.data.node);for(var g=new CKEDITOR.dom.walker(d),l;l=g.next();)if(l.type==CKEDITOR.NODE_ELEMENT)if(!l.equals(a.data.node)&&l.getDirection())d.setStartAfter(l),g=new CKEDITOR.dom.walker(d);else{var e=b.config.justifyClasses;e&&(l.hasClass(e[0])?(l.removeClass(e[0]),l.addClass(e[2])):l.hasClass(e[2])&&(l.removeClass(e[2]),l.addClass(e[0])));e=l.getStyle("text-align");"left"==e?l.setStyle("text-align","right"):"right"==e&&l.setStyle("text-align","left")}}g.prototype={exec:function(a){var d=
a.getSelection(),g=a.config.enterMode;if(d){for(var k=d.createBookmarks(),l=d.getRanges(),e=this.cssClassName,c,h,n=a.config.useComputedState,n=void 0===n||n,r=l.length-1;0<=r;r--)for(c=l[r].createIterator(),c.enlargeBr=g!=CKEDITOR.ENTER_BR;h=c.getNextParagraph(g==CKEDITOR.ENTER_P?"p":"div");)if(!h.isReadOnly()){var u=h.getName(),p;p=a.activeFilter.check(u+"{text-align}");if((u=a.activeFilter.check(u+"("+e+")"))||p){h.removeAttribute("align");h.removeStyle("text-align");var t=e&&(h.$.className=CKEDITOR.tools.ltrim(h.$.className.replace(this.cssClassRegex,
""))),v=this.state==CKEDITOR.TRISTATE_OFF&&(!n||b(h,!0)!=this.value);e&&u?v?h.addClass(e):t||h.removeAttribute("class"):v&&p&&h.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();d.selectBookmarks(k)}},refresh:function(a,d){var g=d.block||d.blockLimit,k=g.getName(),l=g.equals(a.editable()),k=this.cssClassName?a.activeFilter.check(k+"("+this.cssClassName+")"):a.activeFilter.check(k+"{text-align}");l&&!CKEDITOR.dtd.$list[d.lastElement.getName()]?this.setState(CKEDITOR.TRISTATE_OFF):
!l&&k?this.setState(b(g,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var b=new g(a,"justifyleft","left"),m=new g(a,"justifycenter","center"),k=new g(a,"justifyright","right"),l=new g(a,"justifyblock","justify");a.addCommand("justifyleft",b);a.addCommand("justifycenter",m);a.addCommand("justifyright",k);a.addCommand("justifyblock",l);a.ui.addButton&&
(a.ui.addButton("JustifyLeft",{label:a.lang.common.alignLeft,command:"justifyleft",toolbar:"align,10"}),a.ui.addButton("JustifyCenter",{label:a.lang.common.center,command:"justifycenter",toolbar:"align,20"}),a.ui.addButton("JustifyRight",{label:a.lang.common.alignRight,command:"justifyright",toolbar:"align,30"}),a.ui.addButton("JustifyBlock",{label:a.lang.common.justify,command:"justifyblock",toolbar:"align,40"}));a.on("dirChanged",d)}}})})();CKEDITOR.plugins.add("menubutton",{requires:"button,menu",
onLoad:function(){var b=function(b){var d=this._,a=d.menu;d.state!==CKEDITOR.TRISTATE_DISABLED&&(d.on&&a?a.hide():(d.previousState=d.state,a||(a=d.menu=new CKEDITOR.menu(b,{panel:{className:"cke_menu_panel",attributes:{"aria-label":b.lang.common.options}}}),a.onHide=CKEDITOR.tools.bind(function(){var a=this.command?b.getCommand(this.command).modes:this.modes;this.setState(!a||a[b.mode]?d.previousState:CKEDITOR.TRISTATE_DISABLED);d.on=0},this),this.onMenu&&a.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),
d.on=1,setTimeout(function(){a.show(CKEDITOR.document.getById(d.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(g){delete g.panel;this.base(g);this.hasArrow="menu";this.click=b},statics:{handler:{create:function(b){return new CKEDITOR.ui.menuButton(b)}}}})},beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}});CKEDITOR.UI_MENUBUTTON="menubutton";"use strict";(function(){CKEDITOR.plugins.add("language",{requires:"menubutton",
init:function(b){var g=b.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],d=this,a=b.lang.language,f={},m,k,l,e;b.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(a,b){var e=f["language_"+b];if(e)a[e.style.checkActive(a.elementPath(),a)?"removeStyle":"applyStyle"](e.style)},refresh:function(a){this.setState(d.getCurrentLangElement(a)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(e=0;e<g.length;e++)m=g[e].split(":"),
k=m[0],l="language_"+k,f[l]={label:m[1],langId:k,group:"language",order:e,ltr:"rtl"!=(""+m[2]).toLowerCase(),onClick:function(){b.execCommand("language",this.langId)},role:"menuitemcheckbox"},f[l].style=new CKEDITOR.style({element:"span",attributes:{lang:k,dir:f[l].ltr?"ltr":"rtl"}});f.language_remove={label:a.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:f.length,onClick:function(){var a=d.getCurrentLangElement(b);a&&b.execCommand("language",a.getAttribute("lang"))}};b.addMenuGroup("language",
1);b.addMenuGroup("language_remove");b.addMenuItems(f);b.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:a.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var a={},e=d.getCurrentLangElement(b),g;for(g in f)a[g]=CKEDITOR.TRISTATE_OFF;a.language_remove=e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;e&&(a["language_"+e.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return a}});b.addRemoveFormatFilter&&b.addRemoveFormatFilter(function(a){return!(a.is("span")&&
a.getAttribute("dir")&&a.getAttribute("lang"))})},getCurrentLangElement:function(b){var g=b.elementPath();b=g&&g.elements;var d;if(g)for(var a=0;a<b.length;a++)g=b[a],!d&&"span"==g.getName()&&g.hasAttribute("dir")&&g.hasAttribute("lang")&&(d=g);return d}})})();"use strict";(function(){function b(a){return a.replace(/'/g,"\\$\x26")}function g(a){for(var b=a.length,c=[],e,d=0;d<b;d++)e=a.charCodeAt(d),c.push(e);return"String.fromCharCode("+c.join(",")+")"}function d(a,c){for(var e=a.plugins.link,d=
e.compiledProtectionFunction.params,e=[e.compiledProtectionFunction.name,"("],f,g,h=0;h<d.length;h++)f=d[h].toLowerCase(),g=c[f],0<h&&e.push(","),e.push("'",g?b(encodeURIComponent(c[f])):"","'");e.push(")");return e.join("")}function a(a){a=a.config.emailProtection||"";var b;a&&"encode"!=a&&(b={},a.replace(/^([^(]+)\(([^)]+)\)$/,function(a,c,e){b.name=c;b.params=[];e.replace(/[^,\s]+/g,function(a){b.params.push(a)})}));return b}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function a(b){return c.replace(/%1/g,
"rtl"==b?"right":"left").replace(/%2/g,"cke_contents_"+b)}var b="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",c=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+b+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+b+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(a("ltr")+a("rtl"))},
init:function(b){var c="a[!href]";CKEDITOR.dialog.isTabEnabled(b,"link","advanced")&&(c=c.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type,download]{*}(*)"));CKEDITOR.dialog.isTabEnabled(b,"link","target")&&(c=c.replace("]",",target,onclick]"));b.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:c,requiredContent:"a[href]"}));b.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));b.addCommand("unlink",
new CKEDITOR.unlinkCommand);b.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);b.setKeystroke(CKEDITOR.CTRL+76,"link");b.setKeystroke(CKEDITOR.CTRL+75,"link");b.ui.addButton&&(b.ui.addButton("Link",{label:b.lang.link.toolbar,command:"link",toolbar:"links,10"}),b.ui.addButton("Unlink",{label:b.lang.link.unlink,command:"unlink",toolbar:"links,20"}),b.ui.addButton("Anchor",{label:b.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"}));CKEDITOR.dialog.add("link",this.path+"dialogs/link.js");
CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js");b.on("doubleclick",function(a){var c=a.data.element.getAscendant({a:1,img:1},!0);c&&!c.isReadOnly()&&(c.is("a")?(a.data.dialog=!c.getAttribute("name")||c.getAttribute("href")&&c.getChildCount()?"link":"anchor",a.data.link=c):CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,c)&&(a.data.dialog="anchor"))},null,null,0);b.on("doubleclick",function(a){a.data.dialog in{link:1,anchor:1}&&a.data.link&&b.getSelection().selectElement(a.data.link)},null,
null,20);b.addMenuItems&&b.addMenuItems({anchor:{label:b.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:b.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:b.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:b.lang.link.unlink,command:"unlink",group:"link",order:5}});b.contextMenu&&b.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;a=CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,a);if(!a&&!(a=
CKEDITOR.plugins.link.getSelectedLink(b)))return null;var c={};a.getAttribute("href")&&a.getChildCount()&&(c={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});a&&a.hasAttribute("name")&&(c.anchor=c.removeAnchor=CKEDITOR.TRISTATE_OFF);return c});this.compiledProtectionFunction=a(b)},afterInit:function(a){a.dataProcessor.dataFilter.addRules({elements:{a:function(b){return b.attributes.name?b.children.length?null:a.createFakeParserElement(b,"cke_anchor","anchor"):null}}});var b=a._.elementsPath&&
a._.elementsPath.filters;b&&b.push(function(b,c){if("a"==c&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,b)||b.getAttribute("name")&&(!b.getAttribute("href")||!b.getChildCount())))return"anchor"})}});var f=/^javascript:/,m=/^(?:mailto)(?:(?!\?(subject|body)=).)+/i,k=/subject=([^;?:@&=$,\/]*)/i,l=/body=([^;?:@&=$,\/]*)/i,e=/^#(.*)$/,c=/^((?:http|https|ftp|news):\/\/)?(.*)$/,h=/^(_(?:self|top|parent|blank))$/,n=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,
r=/^javascript:([^(]+)\(([^)]+)\)$/,u=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,p=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,t=/^tel:(.*)$/,v={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType","class":"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(a,b){var c=a.getSelection(),e=c.getSelectedElement(),
d=c.getRanges(),f=[],g;if(!b&&e&&e.is("a"))return e;for(e=0;e<d.length;e++)if(g=c.getRanges()[e],g.shrink(CKEDITOR.SHRINK_ELEMENT,!0,{skipBogus:!0}),(g=a.elementPath(g.getCommonAncestor()).contains("a",1))&&b)f.push(g);else if(g)return g;return b?f:null},getEditorAnchors:function(a){for(var b=a.editable(),c=b.isInline()&&!a.plugins.divarea?a.document:b,b=c.getElementsByTag("a"),c=c.getElementsByTag("img"),e=[],d=0,f;f=b.getItem(d++);)(f.data("cke-saved-name")||f.hasAttribute("name"))&&e.push({name:f.data("cke-saved-name")||
f.getAttribute("name"),id:f.getAttribute("id")});for(d=0;f=c.getItem(d++);)(f=this.tryRestoreFakeAnchor(a,f))&&e.push({name:f.getAttribute("name"),id:f.getAttribute("id")});return e},fakeAnchor:!0,tryRestoreFakeAnchor:function(a,b){if(b&&b.data("cke-real-element-type")&&"anchor"==b.data("cke-real-element-type")){var c=a.restoreRealElement(b);if(c.data("cke-saved-name"))return c}},parseLinkAttributes:function(a,b){var d=b&&(b.data("cke-saved-href")||b.getAttribute("href"))||"",g=a.plugins.link.compiledProtectionFunction,
z=a.config.emailProtection,A={},C;d.match(f)&&("encode"==z?d=d.replace(n,function(a,b,c){c=c||"";return"mailto:"+String.fromCharCode.apply(String,b.split(","))+c.replace(/\\'/g,"'")}):z&&d.replace(r,function(a,b,c){if(b==g.name){A.type="email";a=A.email={};b=/(^')|('$)/g;c=c.match(/[^,\s]+/g);for(var e=c.length,d,f,h=0;h<e;h++)d=decodeURIComponent,f=c[h].replace(b,"").replace(/\\'/g,"'"),f=d(f),d=g.params[h].toLowerCase(),a[d]=f;a.address=[a.name,a.domain].join("@")}}));if(!A.type)if(z=d.match(e))A.type=
"anchor",A.anchor={},A.anchor.name=A.anchor.id=z[1];else if(z=d.match(t))A.type="tel",A.tel=z[1];else if(z=d.match(m)){C=d.match(k);var d=d.match(l),D=A.email={};A.type="email";D.address=z[0].replace("mailto:","");C&&(D.subject=decodeURIComponent(C[1]));d&&(D.body=decodeURIComponent(d[1]))}else d&&(C=d.match(c))&&(A.type="url",A.url={},A.url.protocol=C[1],A.url.url=C[2]);if(b){if(d=b.getAttribute("target"))A.target={type:d.match(h)?d:"frame",name:d};else if(d=(d=b.data("cke-pa-onclick")||b.getAttribute("onclick"))&&
d.match(u))for(A.target={type:"popup",name:d[1]};z=p.exec(d[2]);)"yes"!=z[2]&&"1"!=z[2]||z[1]in{height:1,width:1,top:1,left:1}?isFinite(z[2])&&(A.target[z[1]]=z[2]):A.target[z[1]]=!0;null!==b.getAttribute("download")&&(A.download=!0);var d={},F;for(F in v)(z=b.getAttribute(F))&&(d[v[F]]=z);if(F=b.data("cke-saved-name")||d.advName)d.advName=F;CKEDITOR.tools.isEmpty(d)||(A.advanced=d)}return A},getLinkAttributes:function(a,c){var e=a.config.emailProtection||"",f={};switch(c.type){case "url":var e=c.url&&
void 0!==c.url.protocol?c.url.protocol:"http://",h=c.url&&CKEDITOR.tools.trim(c.url.url)||"";f["data-cke-saved-href"]=0===h.indexOf("/")?h:e+h;break;case "anchor":e=c.anchor&&c.anchor.id;f["data-cke-saved-href"]="#"+(c.anchor&&c.anchor.name||e||"");break;case "email":var k=c.email,h=k.address;switch(e){case "":case "encode":var l=encodeURIComponent(k.subject||""),m=encodeURIComponent(k.body||""),k=[];l&&k.push("subject\x3d"+l);m&&k.push("body\x3d"+m);k=k.length?"?"+k.join("\x26"):"";"encode"==e?(e=
["javascript:void(location.href\x3d'mailto:'+",g(h)],k&&e.push("+'",b(k),"'"),e.push(")")):e=["mailto:",h,k];break;default:e=h.split("@",2),k.name=e[0],k.domain=e[1],e=["javascript:",d(a,k)]}f["data-cke-saved-href"]=e.join("");break;case "tel":f["data-cke-saved-href"]="tel:"+c.tel}if(c.target)if("popup"==c.target.type){for(var e=["window.open(this.href, '",c.target.name||"","', '"],n="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" "),h=n.length,l=function(a){c.target[a]&&
n.push(a+"\x3d"+c.target[a])},k=0;k<h;k++)n[k]+=c.target[n[k]]?"\x3dyes":"\x3dno";l("width");l("left");l("height");l("top");e.push(n.join(","),"'); return false;");f["data-cke-pa-onclick"]=e.join("")}else"notSet"!=c.target.type&&c.target.name&&(f.target=c.target.name);c.download&&(f.download="");if(c.advanced){for(var t in v)(e=c.advanced[v[t]])&&(f[t]=e);f.name&&(f["data-cke-saved-name"]=f.name)}f["data-cke-saved-href"]&&(f.href=f["data-cke-saved-href"]);t={target:1,onclick:1,"data-cke-pa-onclick":1,
"data-cke-saved-name":1,download:1};c.advanced&&CKEDITOR.tools.extend(t,v);for(var r in f)delete t[r];return{set:f,removed:CKEDITOR.tools.object.keys(t)}},showDisplayTextForElement:function(a,b){var c={img:1,table:1,tbody:1,thead:1,tfoot:1,input:1,select:1,textarea:1},e=b.getSelection();return b.widgets&&b.widgets.focused||e&&1<e.getRanges().length?!1:!a||!a.getName||!a.is(c)}};CKEDITOR.unlinkCommand=function(){};CKEDITOR.unlinkCommand.prototype={exec:function(a){if(CKEDITOR.env.ie){var b=a.getSelection().getRanges()[0],
c=b.getPreviousEditableNode()&&b.getPreviousEditableNode().getAscendant("a",!0)||b.getNextEditableNode()&&b.getNextEditableNode().getAscendant("a",!0),e;b.collapsed&&c&&(e=b.createBookmark(),b.selectNodeContents(c),b.select())}c=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});a.removeStyle(c);e&&(b.moveToBookmark(e),b.select())},refresh:function(a,b){var c=b.lastElement&&b.lastElement.getAscendant("a",!0);c&&"a"==c.getName()&&c.getAttribute("href")&&c.getChildCount()?
this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]",editorFocus:1};CKEDITOR.removeAnchorCommand=function(){};CKEDITOR.removeAnchorCommand.prototype={exec:function(a){var b=a.getSelection(),c=b.createBookmarks(),e;if(b&&(e=b.getSelectedElement())&&(e.getChildCount()?e.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,e)))e.remove(1);else if(e=CKEDITOR.plugins.link.getSelectedLink(a))e.hasAttribute("href")?(e.removeAttributes({name:1,
"data-cke-saved-name":1}),e.removeClass("cke_anchor")):e.remove(1);b.selectBookmarks(c)},requiredContent:"a[name]"};CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0,linkDefaultProtocol:"http://"})})();(function(){function b(a,b,c,e){for(var d=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))}for(var h=b.root.getDocument(),k,l,g=0;g<f.length;g++){var m=f[g].getCustomData("listarray_index");k=d[m].parent;k.is(this.type)||(l=h.createElement(this.type),k.copyAttributes(l,{start:1,type:1}),l.removeStyle("list-style-type"),d[m].parent=l)}c=CKEDITOR.plugins.list.arrayToList(d,c,null,a.config.enterMode);for(var n,d=c.listNode.getChildCount(),g=0;g<d&&(n=c.listNode.getChild(g));g++)n.getName()==this.type&&e.push(n);c.listNode.replace(b.root);a.fire("contentDomInvalidated")}function g(a,b,
c){var e=b.contents,d=b.root.getDocument(),f=[];if(1==e.length&&e[0].equals(b.root)){var g=d.createElement("div");e[0].moveChildren&&e[0].moveChildren(g);e[0].append(g);e[0]=g}b=b.contents[0].getParent();for(g=0;g<e.length;g++)b=b.getCommonAncestor(e[g].getParent());a=a.config.useComputedState;var h,k;a=void 0===a||a;for(g=0;g<e.length;g++)for(var l=e[g],m;m=l.getParent();){if(m.equals(b)){f.push(l);!k&&l.getDirection()&&(k=1);l=l.getDirection(a);null!==h&&(h=h&&h!=l?null:l);break}l=m}if(!(1>f.length)){e=
f[f.length-1].getNext();g=d.createElement(this.type);for(c.push(g);f.length;)c=f.shift(),a=d.createElement("li"),l=c,l.is("pre")||p.test(l.getName())||"false"==l.getAttribute("contenteditable")?c.appendTo(a):(c.copyAttributes(a),h&&c.getDirection()&&(a.removeStyle("direction"),a.removeAttribute("dir")),c.moveChildren(a),c.remove()),a.appendTo(g);h&&k&&g.setAttribute("dir",h);e?g.insertBefore(e):g.appendTo(b)}}function d(a,b,c){function e(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 d=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"),d[h].indent=
-1;for(g=h+1;g<d.length;g++)if(d[g].indent>d[g-1].indent+1){f=d[g-1].indent+1-d[g].indent;for(h=d[g].indent;d[g]&&d[g].indent>=h;)d[g].indent+=f,g++;g--}var k=CKEDITOR.plugins.list.arrayToList(d,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;e(!0);e();k.replace(b.root);a.fire("contentDomInvalidated")}function a(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function f(a,b,c,e){for(var d,f;d=a[e?"getLast":"getFirst"](t);)(f=d.getDirection(1))!==
b.getDirection(1)&&d.setAttribute("dir",f),d.remove(),c?d[e?"insertBefore":"insertAfter"](c):b.append(d,e),c=d}function m(a){function b(c){var e=a[c?"getPrevious":"getNext"](r);e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(a.getName())&&(f(a,e,null,!c),a.remove(),a=e)}b();b(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 l(a,b,c){a.fire("saveSnapshot");c.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);
var d=c.extractContents();b.trim(!1,!0);var g=b.createBookmark(),h=new CKEDITOR.dom.elementPath(b.startContainer),k=h.block,h=h.lastElement.getAscendant("li",1)||k,l=new CKEDITOR.dom.elementPath(c.startContainer),n=l.contains(CKEDITOR.dtd.$listItem),l=l.contains(CKEDITOR.dtd.$list);k?(k=k.getBogus())&&k.remove():l&&(k=l.getPrevious(r))&&u(k)&&k.remove();(k=d.getLast())&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("br")&&k.remove();(k=b.startContainer.getChild(b.startOffset))?d.insertBefore(k):b.startContainer.append(d);
n&&(d=e(n))&&(h.contains(n)?(f(d,n.getParent(),n),d.remove()):h.append(d));for(;c.checkStartOfBlock()&&c.checkEndOfBlock();){l=c.startPath();d=l.block;if(!d)break;d.is("li")&&(h=d.getParent(),d.equals(h.getLast(r))&&d.equals(h.getFirst(r))&&(d=h));c.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove()}c=c.clone();d=a.editable();c.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=function(a){return r(a)&&!u(a)};(c=c.next())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in
CKEDITOR.dtd.$list&&m(c);b.moveToBookmark(g);b.select();a.fire("saveSnapshot")}function e(a){return(a=a.getLast(r))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in c?a:null}var c={ol:1,ul:1},h=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(),r=function(a){return!(h(a)||n(a))},u=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,e,d,f){if(!c[a.getName()])return[];d||(d=0);e||(e=[]);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,b,e,d+1);if("li"==k.$.nodeName.toLowerCase()){var l={parent:a,indent:d,element:k,contents:[]};f?l.grandparent=f:(l.grandparent=a.getParent(),l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=l.grandparent.getParent()));b&&CKEDITOR.dom.element.setMarker(b,k,"listarray_index",e.length);e.push(l);for(var m=0,n=k.getChildCount(),t;m<n;m++)t=k.getChild(m),t.type==CKEDITOR.NODE_ELEMENT&&c[t.getName()]?CKEDITOR.plugins.list.listToArray(t,
b,e,d+1,l.grandparent):l.contents.push(t)}}return e},arrayToList:function(a,b,e,d,f){e||(e=0);if(!a||a.length<e+1)return null;for(var g,h=a[e].parent.getDocument(),k=new CKEDITOR.dom.documentFragment(h),l=null,m=e,t=Math.max(a[e].indent,0),p=null,u,x,R=d==CKEDITOR.ENTER_P?"p":"div";;){var J=a[m];g=J.grandparent;u=J.element.getDirection(1);if(J.indent==t){l&&a[m].parent.getName()==l.getName()||(l=a[m].parent.clone(!1,1),f&&l.setAttribute("dir",f),k.append(l));p=l.append(J.element.clone(0,1));u!=l.getDirection(1)&&
p.setAttribute("dir",u);for(g=0;g<J.contents.length;g++)p.append(J.contents[g].clone(1,1));m++}else if(J.indent==Math.max(t,0)+1)J=a[m-1].element.getDirection(1),m=CKEDITOR.plugins.list.arrayToList(a,null,m,d,J!=u?u:null),!p.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=h.$.documentMode&&p.append(h.createText(" ")),p.append(m.listNode),m=m.nextIndex;else if(-1==J.indent&&!e&&g){c[g.getName()]?(p=J.element.clone(!1,!0),u!=g.getDirection(1)&&p.setAttribute("dir",u)):p=new CKEDITOR.dom.documentFragment(h);
var l=g.getDirection(1)!=u,L=J.element,Q=L.getAttribute("class"),N=L.getAttribute("style"),K=p.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(d!=CKEDITOR.ENTER_BR||l||N||Q),O,Y=J.contents.length,U;for(g=0;g<Y;g++)if(O=J.contents[g],n(O)&&1<Y)K?U=O.clone(1,1):p.append(O.clone(1,1));else if(O.type==CKEDITOR.NODE_ELEMENT&&O.isBlockBoundary()){l&&!O.getDirection()&&O.setAttribute("dir",u);x=O;var Z=L.getAttribute("style");Z&&x.setAttribute("style",Z.replace(/([^;])$/,"$1;")+(x.getAttribute("style")||""));Q&&
O.addClass(Q);x=null;U&&(p.append(U),U=null);p.append(O.clone(1,1))}else K?(x||(x=h.createElement(R),p.append(x),l&&x.setAttribute("dir",u)),N&&x.setAttribute("style",N),Q&&x.setAttribute("class",Q),U&&(x.append(U),U=null),x.append(O.clone(1,1))):p.append(O.clone(1,1));U&&((x||p).append(U),U=null);p.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&m!=a.length-1&&(CKEDITOR.env.needsBrFiller&&(u=p.getLast())&&u.type==CKEDITOR.NODE_ELEMENT&&u.is("br")&&u.remove(),(u=p.getLast(r))&&u.type==CKEDITOR.NODE_ELEMENT&&
u.is(CKEDITOR.dtd.$block)||p.append(h.createElement("br")));u=p.$.nodeName.toLowerCase();"div"!=u&&"p"!=u||p.appendBogus();k.append(p);l=null;m++}else return null;x=null;if(a.length<=m||Math.max(a[m].indent,0)<t)break}if(b)for(a=k.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(b,a),a.getName()in CKEDITOR.dtd.$listItem&&(e=a,h=f=d=void 0,d=e.getDirection()))){for(f=e.getParent();f&&!(h=f.getDirection());)f=f.getParent();d==h&&e.removeAttribute("dir")}a=a.getNextSourceNode()}return{listNode:k,
nextIndex:m}}};var p=/^h[1-6]$/,t=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);a.prototype={exec:function(a){function e(a){return c[a.root.getName()]&&!f(a.root,[CKEDITOR.NODE_COMMENT])}function f(a,b){return CKEDITOR.tools.array.filter(a.getChildren().toArray(),function(a){return-1===CKEDITOR.tools.array.indexOf(b,a.type)}).length}function h(a){var b=!0;if(0===a.getChildCount())return!1;a.forEach(function(a){if(a.type!==CKEDITOR.NODE_COMMENT)return b=!1},null,!0);return b}this.refresh(a,a.elementPath());
var k=a.config,l=a.getSelection(),n=l&&l.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var t=a.editable();if(t.getFirst(r)){var p=1==n.length&&n[0];(k=p&&p.getEnclosedNode())&&k.is&&this.type==k.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else k.enterMode==CKEDITOR.ENTER_BR?t.appendBogus():n[0].fixBlock(1,k.enterMode==CKEDITOR.ENTER_P?"p":"div"),l.selectRanges(n)}for(var k=l.createBookmarks(!0),t=[],u={},n=n.createIterator(),x=0;(p=n.getNextRange())&&++x;){var I=p.getBoundaryNodes(),M=I.startNode,
E=I.endNode;M.type==CKEDITOR.NODE_ELEMENT&&"td"==M.getName()&&p.setStartAt(I.startNode,CKEDITOR.POSITION_AFTER_START);E.type==CKEDITOR.NODE_ELEMENT&&"td"==E.getName()&&p.setEndAt(I.endNode,CKEDITOR.POSITION_BEFORE_END);p=p.createIterator();for(p.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;I=p.getNextParagraph();)if(!I.getCustomData("list_block")&&!h(I)){CKEDITOR.dom.element.setMarker(u,I,"list_block",1);for(var R=a.elementPath(I),M=R.elements,E=0,R=R.blockLimit,J,L=M.length-1;0<=L&&(J=M[L]);L--)if(c[J.getName()]&&
R.contains(J)){R.removeCustomData("list_group_object_"+x);(M=J.getCustomData("list_group_object"))?M.contents.push(I):(M={root:J,contents:[I]},t.push(M),CKEDITOR.dom.element.setMarker(u,J,"list_group_object",M));E=1;break}E||(E=R,E.getCustomData("list_group_object_"+x)?E.getCustomData("list_group_object_"+x).contents.push(I):(M={root:E,contents:[I]},CKEDITOR.dom.element.setMarker(u,E,"list_group_object_"+x,M),t.push(M)))}}for(J=[];0<t.length;)M=t.shift(),this.state==CKEDITOR.TRISTATE_OFF?e(M)||(c[M.root.getName()]?
b.call(this,a,M,u,J):g.call(this,a,M,J)):this.state==CKEDITOR.TRISTATE_ON&&c[M.root.getName()]&&!e(M)&&d.call(this,a,M,u);for(L=0;L<J.length;L++)m(J[L]);CKEDITOR.dom.element.clearAllMarkers(u);l.selectBookmarks(k);a.focus()},refresh:function(a,b){var e=b.contains(c,1),d=b.blockLimit||b.root;e&&d.contains(e)?this.setState(e.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(b){b.blockless||
(b.addCommand("numberedlist",new a("numberedlist","ol")),b.addCommand("bulletedlist",new a("bulletedlist","ul")),b.ui.addButton&&(b.ui.addButton("NumberedList",{label:b.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),b.ui.addButton("BulletedList",{label:b.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),b.on("key",function(a){var d=a.data.domEvent.getKey(),f;if("wysiwyg"==b.mode&&d in{8:1,46:1}){var g=b.getSelection().getRanges()[0],
h=g&&g.startPath();if(g&&g.collapsed){var m=8==d,n=b.editable(),t=new CKEDITOR.dom.walker(g.clone());t.evaluator=function(a){return r(a)&&!u(a)};t.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};d=g.clone();if(m){var p;(p=h.contains(c))&&g.checkBoundaryOfElement(p,CKEDITOR.START)&&(p=p.getParent())&&p.is("li")&&(p=e(p))?(f=p,p=p.getPrevious(r),d.moveToPosition(p&&u(p)?p:f,CKEDITOR.POSITION_BEFORE_START)):(t.range.setStartAt(n,CKEDITOR.POSITION_AFTER_START),t.range.setEnd(g.startContainer,
g.startOffset),(p=t.previous())&&p.type==CKEDITOR.NODE_ELEMENT&&(p.getName()in c||p.is("li"))&&(p.is("li")||(t.range.selectNodeContents(p),t.reset(),t.evaluator=k,p=t.previous()),f=p,d.moveToElementEditEnd(f),d.moveToPosition(d.endPath().block,CKEDITOR.POSITION_BEFORE_END)));if(f)l(b,d,g),a.cancel();else{var x=h.contains(c);x&&g.checkBoundaryOfElement(x,CKEDITOR.START)&&(f=x.getFirst(r),g.checkBoundaryOfElement(f,CKEDITOR.START)&&(p=x.getPrevious(r),e(f)?p&&(g.moveToElementEditEnd(p),g.select()):
b.execCommand("outdent"),a.cancel()))}}else if(f=h.contains("li")){if(t.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),m=(n=f.getLast(r))&&k(n)?n:f,h=0,(p=t.next())&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()in c&&p.equals(n)?(h=1,p=t.next()):g.checkBoundaryOfElement(m,CKEDITOR.END)&&(h=2),h&&p){g=g.clone();g.moveToElementEditStart(p);if(1==h&&(d.optimize(),!d.startContainer.equals(f))){for(f=d.startContainer;f.is(CKEDITOR.dtd.$inline);)x=f,f=f.getParent();x&&d.moveToPosition(x,CKEDITOR.POSITION_AFTER_END)}2==
h&&(d.moveToPosition(d.endPath().block,CKEDITOR.POSITION_BEFORE_END),g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START));l(b,d,g);a.cancel()}}else t.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),(p=t.next())&&p.type==CKEDITOR.NODE_ELEMENT&&p.is(c)&&(p=p.getFirst(r),h.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(h.block.remove(),g.moveToElementEditStart(p),g.select()):e(p)?(g.moveToElementEditStart(p),g.select()):(g=g.clone(),g.moveToElementEditStart(p),l(b,
d,g)),a.cancel());setTimeout(function(){b.selectionChange(1)})}}}))}})})();(function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(b){if(!b.blockless){var g;g=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]; li{list-style-type}[value]",contentTransformations:[["ol: listTypeToStyle"]]});g=b.addCommand("numberedListStyle",g);b.addFeature(g);CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js");
g=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}",contentTransformations:[["ul: listTypeToStyle"]]});g=b.addCommand("bulletedListStyle",g);b.addFeature(g);CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js");b.addMenuGroup("list",108);b.addMenuItems({numberedlist:{label:b.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:b.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}});
b.contextMenu.addListener(function(b){if(!b||b.isReadOnly())return null;for(;b;){var a=b.getName();if("ol"==a)return{numberedlist:CKEDITOR.TRISTATE_OFF};if("ul"==a)return{bulletedlist:CKEDITOR.TRISTATE_OFF};b=b.getParent()}return null})}}};CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle)})();"use strict";(function(){function b(a,b,c){return n(b)&&n(c)&&c.equals(b.getNext(function(a){return!(S(a)||T(a)||r(a))}))}function g(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}
function d(a){var b=a.element;if(b&&n(b)&&(b=b.getAscendant(a.triggers,!0))&&a.editable.contains(b)){var c=k(b);if("true"==c.getAttribute("contenteditable"))return b;if(c.is(a.triggers))return c}return null}function a(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 f(a,b,c){return b=b[c?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!S(b)||n(b)&&!r(b)&&!h(a,b)})}function m(a,b,c){return a>b&&a<c}function k(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 l(a){var b=a.doc,c=G('\x3cspan contenteditable\x3d"false" data-cke-magic-line\x3d"1" style\x3d"'+ba+"position:absolute;border-top:1px dashed "+a.boxColor+'"\x3e\x3c/span\x3e',b),d=CKEDITOR.getUrl(this.path+"images/"+(I.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");D(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},
lineChildren:[D(G('\x3cspan title\x3d"'+a.editor.lang.magicline.title+'" contenteditable\x3d"false"\x3e\x26#8629;\x3c/span\x3e',b),{base:ba+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+d+") center no-repeat "+a.boxColor+";cursor:pointer;"+(I.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(I.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;"]}),
D(G(da,b),{base:ca+"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"]}),D(G(da,b),{base:ca+"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,e=a.trigger,d=e.upper,f=e.lower,g=d||f,h=g.getParent(),k={};this.trigger=e;d&&w(a,d,!0);f&&w(a,f,!0);w(a,h,!0);a.inInlineMode&&z(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="");d&&f?k.top=d.size.margin.bottom===f.size.margin.top?0|d.size.bottom+d.size.margin.bottom/2:d.size.margin.bottom<f.size.margin.top?d.size.bottom+d.size.margin.bottom:d.size.bottom+d.size.margin.bottom-f.size.margin.top:d?f||(k.top=d.size.bottom+d.size.margin.bottom):k.top=f.size.top-f.size.margin.top;e.is(K)||m(k.top,b.scroll.y-15,b.scroll.y+5)?(k.top=a.inInlineMode?0:b.scroll.y,this.look(K)):e.is(O)||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(O)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),this.look(Y));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(Y);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();e(a,function(b){var c=a.line.trigger;b[c.is(J)?"insertBefore":"insertAfter"](c.is(J)?c.lower:c.upper)},!0);a.editor.focus();I.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 e(a,b,c){var e=new CKEDITOR.dom.range(a.doc),d=a.editor,f;I.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(U):
(f=(f=k(a.element,!0))&&f.data("cke-enter-mode")||a.enterMode,f=new F(R[f],a.doc),f.is("br")||a.doc.createText(U).appendTo(f));c&&d.fire("saveSnapshot");b(f);e.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);d.getSelection().selectRanges([e]);a.hotNode=f;c&&d.fire("saveSnapshot")}function c(a,b){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function c(d){var f=I.ie&&9>I.version?" ":U,g=a.hotNode&&a.hotNode.getText()==f&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!b;e(a,function(c){g&&
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});I.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(e){e=e.getSelection().getStartElement();var g;e=e.getAscendant(V,1);if(!t(a,e)&&e&&!e.equals(a.editable)&&!e.contains(a.editable)){(g=k(e))&&"false"==g.getAttribute("contenteditable")&&(e=g);a.element=e;g=f(a,e,!b);var h;n(g)&&g.is(a.triggers)&&
g.is(X)&&(!f(a,g,!b)||(h=f(a,g,!b))&&n(h)&&h.is(a.triggers))?c(g):(h=d(a,e),n(h)&&(f(a,h,!b)?(e=f(a,h,!b))&&n(e)&&e.is(a.triggers)&&c(h):c(h)))}}}()}}function h(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 r(a){if(!n(a))return!1;var b;(b=u(a))||(n(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function u(a){return!!{absolute:1,
fixed:1}[a.getComputedStyle("position")]}function p(a,b){return n(b)?b.is(a.triggers):null}function t(a,b){if(!b)return!1;for(var c=b.getParents(1),e=c.length;e--;)for(var d=a.tabuList.length;d--;)if(c[e].hasAttribute(a.tabuList[d]))return!0;return!1}function v(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(ia)});if(!b)return!1;w(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function y(a){var b=a.editable,c=a.mouse,e=a.view,d=a.triggerOffset;z(a);var f=c.y>
(a.inInlineMode?e.editable.top+e.editable.height/2:Math.min(e.editable.height,e.pane.height)/2),b=b[f?"getLast":"getFirst"](function(a){return!(S(a)||T(a))});if(!b)return null;h(a,b)&&(b=a.line.wrap[f?"getPrevious":"getNext"](function(a){return!(S(a)||T(a))}));if(!n(b)||r(b)||!p(a,b))return null;w(a,b);return!f&&0<=b.size.top&&m(c.y,0,b.size.top+d)?(a=a.inInlineMode||0===e.scroll.y?K:Y,new g([null,b,J,N,a])):f&&b.size.bottom<=e.pane.height&&m(c.y,b.size.bottom-d,e.pane.height)?(a=a.inInlineMode||
m(b.size.bottom,e.pane.height-d,e.pane.height)?O:Y,new g([b,null,L,N,a])):null}function q(a){var b=a.mouse,c=a.view,e=a.triggerOffset,h=d(a);if(!h)return null;w(a,h);var e=Math.min(e,0|h.size.outerHeight/2),k=[],l,H;if(m(b.y,h.size.top-1,h.size.top+e))H=!1;else if(m(b.y,h.size.bottom-e,h.size.bottom+1))H=!0;else return null;if(r(h)||v(a,h,H)||h.getParent().is(Z))return null;var t=f(a,h,!H);if(t){if(t&&t.type==CKEDITOR.NODE_TEXT)return null;if(n(t)){if(r(t)||!p(a,t)||t.getParent().is(Z))return null;
k=[t,h][H?"reverse":"concat"]().concat([Q,N])}}else h.equals(a.editable[H?"getLast":"getFirst"](a.isRelevant))?(z(a),H&&m(b.y,h.size.bottom-e,c.pane.height)&&m(h.size.bottom,c.pane.height-e,c.pane.height)?l=O:m(b.y,0,h.size.top+e)&&(l=K)):l=Y,k=[null,h][H?"reverse":"concat"]().concat([H?L:J,N,l,h.equals(a.editable[H?"getLast":"getFirst"](a.isRelevant))?H?O:K:Y]);return 0 in k?new g(k):null}function x(a,b,c,e){for(var d=b.getDocumentPosition(),f={},g={},h={},k={},l=H.length;l--;)f[H[l]]=parseInt(b.getComputedStyle.call(b,
"border-"+H[l]+"-width"),10)||0,h[H[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+H[l]),10)||0,g[H[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+H[l]),10)||0;c&&!e||A(a,e);k.top=d.y-(c?0:a.view.scroll.y);k.left=d.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 D({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-W)return null;return D(b.size,x(a,b,c),{date:+new Date},!0)}function z(a,b){a.view.editable=x(a,a.editable,b,!0)}function A(a,b){a.view||(a.view={});var c=a.view;if(!(!b&&c&&c.date>new Date-W)){var e=a.win,c=e.getScrollPosition(),e=e.getViewPaneSize();D(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-
e.width,height:a.doc.$.documentElement.scrollHeight-e.height},pane:{width:e.width,height:e.height,bottom:e.height+c.y},date:+new Date},!0)}}function C(a,b,c,e){for(var d=e,f=e,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(d,e));l||(l=b(f,e));!k&&0<n.y-h&&(d=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([d,f,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var b=a.config,k=b.magicline_triggerOffset||30,m={editor:a,
enterMode:b.enterMode,triggerOffset:k,holdDistance:0|k*(b.magicline_holdDistance||.5),boxColor:b.magicline_color||"#ff0000",rtl:"rtl"==b.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(b.magicline_tabuList||[]),triggers:b.magicline_everywhere?V:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},H,p,v;m.isRelevant=function(a){return n(a)&&!h(m,a)&&!r(a)};a.on("contentDom",function(){var k=a.editable(),n=a.document,r=a.window;D(m,{editable:k,inInlineMode:k.isInline(),doc:n,win:r,
hotNode:null},!0);m.boundary=m.inInlineMode?m.editable:m.doc.getDocumentElement();k.is(E.$inline)||(m.inInlineMode&&!u(k)&&k.setStyles({position:"relative",top:null,left:null}),l.call(this,m),A(m),k.attachListener(a,"beforeUndoImage",function(){m.line.detach()}),k.attachListener(a,"beforeGetData",function(){m.line.wrap.getParent()&&(m.line.detach(),a.once("getData",function(){m.line.attach()},null,null,1E3))},null,null,0),k.attachListener(m.inInlineMode?n:n.getWindow().getFrame(),"mouseout",function(b){if("wysiwyg"==
a.mode)if(m.inInlineMode){var c=b.data.$.clientX;b=b.data.$.clientY;A(m);z(m,!0);var e=m.view.editable,d=m.view.scroll;c>e.left-d.x&&c<e.right-d.x&&b>e.top-d.y&&b<e.bottom-d.y||(clearTimeout(v),v=null,m.line.detach())}else clearTimeout(v),v=null,m.line.detach()}),k.attachListener(k,"keyup",function(){m.hiddenMode=0}),k.attachListener(k,"keydown",function(b){if("wysiwyg"==a.mode)switch(b.data.getKeystroke()){case 2228240:case 16:m.hiddenMode=1,m.line.detach()}}),k.attachListener(m.inInlineMode?k:n,
"mousemove",function(b){p=!0;if("wysiwyg"==a.mode&&!a.readOnly&&!v){var c={x:b.data.$.clientX,y:b.data.$.clientY};v=setTimeout(function(){m.mouse=c;v=m.trigger=null;A(m);p&&!m.hiddenMode&&a.focusManager.hasFocus&&!m.line.mouseNear()&&(m.element=aa(m,!0))&&((m.trigger=y(m)||q(m)||fa(m))&&!t(m,m.trigger.upper||m.trigger.lower)?m.line.attach().place():(m.trigger=null,m.line.detach()),p=!1)},30)}}),k.attachListener(r,"scroll",function(){"wysiwyg"==a.mode&&(m.line.detach(),I.webkit&&(m.hiddenMode=1,clearTimeout(H),
H=setTimeout(function(){m.mouseDown||(m.hiddenMode=0)},50)))}),k.attachListener(M?n:r,"mousedown",function(){"wysiwyg"==a.mode&&(m.line.detach(),m.hiddenMode=1,m.mouseDown=1)}),k.attachListener(M?n:r,"mouseup",function(){m.hiddenMode=0;m.mouseDown=0}),a.addCommand("accessPreviousSpace",c(m)),a.addCommand("accessNextSpace",c(m,!0)),a.setKeystroke([[b.magicline_keystrokePrevious,"accessPreviousSpace"],[b.magicline_keystrokeNext,"accessNextSpace"]]),a.on("loadSnapshot",function(){var b,c,e,d;for(d in{p:1,
br:1,div:1})for(b=a.document.getElementsByTag(d),e=b.count();e--;)if((c=b.getItem(e)).data("cke-magicline-hot")){m.hotNode=c;m.lastCmdDirection="true"===c.data("cke-magicline-dir")?!0:!1;return}}),a._.magiclineBackdoor={accessFocusSpace:e,boxTrigger:g,isLine:h,getAscendantTrigger:d,getNonEmptyNeighbour:f,getSize:x,that:m,triggerEdge:q,triggerEditable:y,triggerExpand:fa})},this)}});var D=CKEDITOR.tools.extend,F=CKEDITOR.dom.element,G=F.createFromHtml,I=CKEDITOR.env,M=CKEDITOR.env.ie&&9>CKEDITOR.env.version,
E=CKEDITOR.dtd,R={},J=128,L=64,Q=32,N=16,K=4,O=2,Y=1,U=" ",Z=E.$listItem,ia=E.$tableContent,X=D({},E.$nonEditable,E.$empty),V=E.$block,W=100,ba="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",ca=ba+"border-color:transparent;display:block;border-style:solid;",da="\x3cspan\x3e"+U+"\x3c/span\x3e";R[CKEDITOR.ENTER_BR]="br";R[CKEDITOR.ENTER_P]="p";R[CKEDITOR.ENTER_DIV]="div";g.prototype={set:function(a,b,c){this.properties=
a+b+(c||Y);return this},is:function(a){return(this.properties&a)==a}};var aa=function(){function a(b,c){var e=b.$.elementFromPoint(c.x,c.y);return e&&e.nodeType?new CKEDITOR.dom.element(e):null}return function(b,c,e){if(!b.mouse)return null;var d=b.doc,f=b.line.wrap;e=e||b.mouse;var g=a(d,e);c&&h(b,g)&&(f.hide(),g=a(d,e),f.show());return!g||g.type!=CKEDITOR.NODE_ELEMENT||!g.$||I.ie&&9>I.version&&!b.boundary.equals(g)&&!b.boundary.contains(g)?null:g}}(),S=CKEDITOR.dom.walker.whitespaces(),T=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),
fa=function(){function c(d){var f=d.element,g,h,k;if(!n(f)||f.contains(d.editable)||f.isReadOnly())return null;k=C(d,function(a,b){return!b.equals(a)},function(a,b){return aa(a,!0,b)},f);g=k.upper;h=k.lower;if(b(d,g,h))return k.set(Q,8);if(g&&f.contains(g))for(;!g.getParent().equals(f);)g=g.getParent();else g=f.getFirst(function(a){return e(d,a)});if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getLast(function(a){return e(d,a)});if(!g||!h)return null;w(d,g);w(d,h);if(!m(d.mouse.y,
g.size.top,h.size.bottom))return null;for(var f=Number.MAX_VALUE,l,H,t,q;h&&!h.equals(g)&&(H=g.getNext(d.isRelevant));)l=Math.abs(a(d,g,H)-d.mouse.y),l<f&&(f=l,t=g,q=H),g=H,w(d,g);if(!t||!q||!m(d.mouse.y,t.size.top,q.size.bottom))return null;k.upper=t;k.lower=q;return k.set(Q,8)}function e(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||T(b)||r(b)||h(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(a){var e=c(a),d;if(d=e){d=e.upper;var f=e.lower;d=!d||!f||r(f)||r(d)||f.equals(d)||
d.equals(f)||f.contains(d)||d.contains(f)?!1:p(a,d)&&p(a,f)&&b(a,d,f)?!0:!1}return d?e:null}}(),H=["top","left","right","bottom"]})();CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51;CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52;(function(){function b(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())return[];for(var b=[],d=["style","className"],e=0;e<d.length;e++){var c=a.$.elements.namedItem(d[e]);c&&(c=new CKEDITOR.dom.element(c),
b.push([c,c.nextSibling]),c.remove())}return b}function g(a,b){if(a&&a.type==CKEDITOR.NODE_ELEMENT&&"form"==a.getName()&&0<b.length)for(var d=b.length-1;0<=d;d--){var e=b[d][0],c=b[d][1];c?e.insertBefore(c):e.appendTo(a)}}function d(a,d){var f=b(a),e={},c=a.$;d||(e["class"]=c.className||"",c.className="");e.inline=c.style.cssText||"";d||(c.style.cssText="position: static; overflow: visible");g(f);return e}function a(a,d){var f=b(a),e=a.$;"class"in d&&(e.className=d["class"]);"inline"in d&&(e.style.cssText=
d.inline);g(f)}function f(a){if(!a.editable().isInline()){var b=CKEDITOR.instances,d;for(d in b){var e=b[d];"wysiwyg"!=e.mode||e.readOnly||(e=e.document.getBody(),e.setAttribute("contentEditable",!1),e.setAttribute("contentEditable",!0))}a.editable().hasFocus&&(a.toolbox.focus(),a.focus())}}CKEDITOR.plugins.add("maximize",{init:function(b){function g(){var a=c.getViewPaneSize();b.resize(a.width,a.height,null,!0)}if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var l=b.lang,e=CKEDITOR.document,c=e.getWindow(),
h,n,r,u=CKEDITOR.TRISTATE_OFF;b.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var p=b.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),t=b.ui.space("contents");if("wysiwyg"==b.mode){var v=b.getSelection();h=v&&v.getRanges();n=c.getScrollPosition()}else{var y=b.editable().$;h=!CKEDITOR.env.ie&&[y.selectionStart,y.selectionEnd];n=[y.scrollLeft,y.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){c.on("resize",
g);r=c.getScrollPosition();for(v=b.container;v=v.getParent();)v.setCustomData("maximize_saved_styles",d(v)),v.setStyle("z-index",b.config.baseFloatZIndex-5);t.setCustomData("maximize_saved_styles",d(t,!0));p.setCustomData("maximize_saved_styles",d(p,!0));t={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};e.getDocumentElement().setStyles(t);!CKEDITOR.env.gecko&&e.getDocumentElement().setStyle("position","fixed");CKEDITOR.env.gecko&&CKEDITOR.env.quirks||e.getBody().setStyles(t);CKEDITOR.env.ie?
setTimeout(function(){c.$.scrollTo(0,0)},0):c.$.scrollTo(0,0);p.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");p.$.offsetLeft;p.setStyles({"z-index":b.config.baseFloatZIndex-5,left:"0px",top:"0px"});p.addClass("cke_maximized");g();t=p.getDocumentPosition();p.setStyles({left:-1*t.x+"px",top:-1*t.y+"px"});CKEDITOR.env.gecko&&f(b)}else if(this.state==CKEDITOR.TRISTATE_ON){c.removeListener("resize",g);for(var v=[t,p],q=0;q<v.length;q++)a(v[q],v[q].getCustomData("maximize_saved_styles")),
v[q].removeCustomData("maximize_saved_styles");for(v=b.container;v=v.getParent();)a(v,v.getCustomData("maximize_saved_styles")),v.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(r.x,r.y)},0):c.$.scrollTo(r.x,r.y);p.removeClass("cke_maximized");CKEDITOR.env.webkit&&(p.setStyle("display","inline"),setTimeout(function(){p.setStyle("display","block")},0));b.fire("resize",{outerHeight:b.container.$.offsetHeight,contentsHeight:t.$.offsetHeight,outerWidth:b.container.$.offsetWidth})}this.toggleState();
if(v=this.uiItems[0])t=this.state==CKEDITOR.TRISTATE_OFF?l.maximize.maximize:l.maximize.minimize,v=CKEDITOR.document.getById(v._.id),v.getChild(1).setHtml(t),v.setAttribute("title",t),v.setAttribute("href",'javascript:void("'+t+'");');"wysiwyg"==b.mode?h?(CKEDITOR.env.gecko&&f(b),b.getSelection().selectRanges(h),(y=b.getSelection().getStartElement())&&y.scrollIntoView(!0)):c.$.scrollTo(n.x,n.y):(h&&(y.selectionStart=h[0],y.selectionEnd=h[1]),y.scrollLeft=n[0],y.scrollTop=n[1]);h=n=null;u=this.state;
b.fire("maximize",this.state)},canUndo:!1});b.ui.addButton&&b.ui.addButton("Maximize",{label:l.maximize.maximize,command:"maximize",toolbar:"tools,10"});b.on("mode",function(){var a=b.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:u)},null,null,100)}}})})();CKEDITOR.plugins.add("newpage",{init:function(b){b.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(b){var d=this;b.setData(b.config.newpage_html||"",function(){b.focus();setTimeout(function(){b.fire("afterCommandExec",
{name:"newpage",command:d});b.selectionChange()},200)})},async:!0});b.ui.addButton&&b.ui.addButton("NewPage",{label:b.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}});"use strict";(function(){function b(b){return{"aria-label":b,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:b}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var b=("background:url("+CKEDITOR.getUrl(this.path+
"images/pagebreak.gif")+") no-repeat center center;clear:both;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;padding:0;height:7px;cursor:default;").replace(/;/g," !important;");CKEDITOR.addCss("div.cke_pagebreak{"+b+"}")},init:function(b){b.blockless||(b.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd),b.ui.addButton&&b.ui.addButton("PageBreak",{label:b.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"}),CKEDITOR.env.webkit&&b.on("contentDom",function(){b.document.on("click",
function(d){d=d.data.getTarget();d.is("div")&&d.hasClass("cke_pagebreak")&&b.getSelection().selectElement(d)})}))},afterInit:function(g){function d(a){CKEDITOR.tools.extend(a.attributes,b(g.lang.pagebreak.alt),!0);a.children.length=0}var a=g.dataProcessor,f=a&&a.dataFilter,a=a&&a.htmlFilter,m=/page-break-after\s*:\s*always/i,k=/display\s*:\s*none/i;a&&a.addRules({attributes:{"class":function(a,b){var c=a.replace("cke_pagebreak","");if(c!=a){var d=CKEDITOR.htmlParser.fragment.fromHtml('\x3cspan style\x3d"display: none;"\x3e\x26nbsp;\x3c/span\x3e').children[0];
b.children.length=0;b.add(d);d=b.attributes;delete d["aria-label"];delete d.contenteditable;delete d.title}return c}}},{applyToAll:!0,priority:5});f&&f.addRules({elements:{div:function(a){if(a.attributes["data-cke-pagebreak"])d(a);else if(m.test(a.attributes.style)){var b=a.children[0];b&&"span"==b.name&&k.test(b.attributes.style)&&d(a)}}}})}});CKEDITOR.plugins.pagebreakCmd={exec:function(b){b.insertElement(CKEDITOR.plugins.pagebreak.createElement(b))},context:"div",allowedContent:{div:{styles:"!page-break-after"},
span:{match:function(b){return(b=b.parent)&&"div"==b.name&&b.styles&&b.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"};CKEDITOR.plugins.pagebreak={createElement:function(g){return g.document.createElement("div",{attributes:b(g.lang.pagebreak.alt)})}}})();(function(){CKEDITOR.plugins.add("xml",{});CKEDITOR.xml=function(b){var g=null;if("object"==typeof b)g=b;else if(b=(b||"").replace(/&nbsp;/g," "),"ActiveXObject"in window){try{g=new ActiveXObject("MSXML2.DOMDocument")}catch(d){try{g=
new ActiveXObject("Microsoft.XmlDom")}catch(a){}}g&&(g.async=!1,g.resolveExternals=!1,g.validateOnParse=!1,g.loadXML(b))}else window.DOMParser&&(g=(new DOMParser).parseFromString(b,"text/xml"));this.baseXml=g};CKEDITOR.xml.prototype={selectSingleNode:function(b,g){var d=this.baseXml;if(g||(g=d)){if("selectSingleNode"in g)return g.selectSingleNode(b);if(d.evaluate)return(d=d.evaluate(b,g,null,9,null))&&d.singleNodeValue||null}return null},selectNodes:function(b,g){var d=this.baseXml,a=[];if(g||(g=
d)){if("selectNodes"in g)return g.selectNodes(b);if(d.evaluate&&(d=d.evaluate(b,g,null,5,null)))for(var f;f=d.iterateNext();)a.push(f)}return a},getInnerXml:function(b,g){var d=this.selectSingleNode(b,g),a=[];if(d)for(d=d.firstChild;d;)d.xml?a.push(d.xml):window.XMLSerializer&&a.push((new XMLSerializer).serializeToString(d)),d=d.nextSibling;return a.length?a.join(""):null}}})();(function(){CKEDITOR.plugins.add("ajax",{requires:"xml"});CKEDITOR.ajax=function(){function b(){if(!CKEDITOR.env.ie||"file:"!=
location.protocol)try{return new XMLHttpRequest}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(b){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}return null}function g(a,b){if(4!=a.readyState||!(200<=a.status&&300>a.status||304==a.status||0===a.status||1223==a.status))return null;switch(b){case "text":return a.responseText;case "xml":var d=a.responseXML;return new CKEDITOR.xml(d&&d.firstChild?d:a.responseText);case "arraybuffer":return a.response;default:return null}}
function d(a,d,k){var l=!!d,e=b();if(!e)return null;l&&"text"!==k&&"xml"!==k&&(e.responseType=k);e.open("GET",a,l);l&&(e.onreadystatechange=function(){4==e.readyState&&(d(g(e,k)),e=null)});e.send(null);return l?"":g(e,k)}function a(a,d,k,l,e){var c=b();if(!c)return null;c.open("POST",a,!0);c.onreadystatechange=function(){4==c.readyState&&(l&&l(g(c,e)),c=null)};c.setRequestHeader("Content-type",k||"application/x-www-form-urlencoded; charset\x3dUTF-8");c.send(d)}return{load:function(a,b,g){return d(a,
b,g||"text")},post:function(b,d,g,l){return a(b,d,g,l,"text")},loadXml:function(a,b){return d(a,b,"xml")},loadText:function(a,b){return d(a,b,"text")},loadBinary:function(a,b){return d(a,b,"arraybuffer")}}}()})();(function(){function b(a,b){return CKEDITOR.tools.array.filter(a,function(a){return a.canHandle(b)}).sort(function(a,b){return a.priority===b.priority?0:a.priority-b.priority})}function g(a,b){var e=a.shift();e&&e.handle(b,function(){g(a,b)})}function d(a){var b=CKEDITOR.tools.array.reduce(a,
function(a,b){return CKEDITOR.tools.array.isArray(b.filters)?a.concat(b.filters):a},[]);return CKEDITOR.tools.array.filter(b,function(a,c){return CKEDITOR.tools.array.indexOf(b,a)===c})}function a(a,b){var e=0,c,d;if(!CKEDITOR.tools.array.isArray(a)||0===a.length)return!0;c=CKEDITOR.tools.array.filter(a,function(a){return-1===CKEDITOR.tools.array.indexOf(f,a)});if(0<c.length)for(d=0;d<c.length;d++)(function(a){CKEDITOR.scriptLoader.queue(a,function(d){d&&f.push(a);++e===c.length&&b()})})(c[d]);return 0===
c.length}var f=[],m=CKEDITOR.tools.createClass({$:function(){this.handlers=[]},proto:{register:function(a){"number"!==typeof a.priority&&(a.priority=10);this.handlers.push(a)},addPasteListener:function(f){f.on("paste",function(l){var e=b(this.handlers,l),c;if(0!==e.length){c=d(e);c=a(c,function(){return f.fire("paste",l.data)});if(!c)return l.cancel();g(e,l)}},this,null,3)}}});CKEDITOR.plugins.add("pastetools",{requires:["clipboard","ajax"],beforeInit:function(a){a.pasteTools=new m;a.pasteTools.addPasteListener(a)}});
CKEDITOR.plugins.pastetools={filters:{},loadFilters:a,createFilter:function(a){var b=CKEDITOR.tools.array.isArray(a.rules)?a.rules:[a.rules],e=a.additionalTransforms;return function(a,d){var f=new CKEDITOR.htmlParser.basicWriter,g=new CKEDITOR.htmlParser.filter,k;e&&(a=e(a,d));CKEDITOR.tools.array.forEach(b,function(b){g.addRules(b(a,d,g))});k=CKEDITOR.htmlParser.fragment.fromHtml(a);g.applyTo(k);k.writeHtml(f);return f.getHtml()}},getClipboardData:function(a,b){var e;return CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||
"text/html"===b?(e=a.dataTransfer.getData(b,!0))||"text/html"!==b?e:a.dataValue:null},getConfigValue:function(a,b){if(a&&a.config){var e=CKEDITOR.tools,c=a.config,d=e.object.keys(c),f=["pasteTools_"+b,"pasteFromWord_"+b,"pasteFromWord"+e.capitalize(b,!0)],f=e.array.find(f,function(a){return-1!==e.array.indexOf(d,a)});return c[f]}},getContentGeneratorName:function(a){if((a=/<meta\s+name=["']?generator["']?\s+content=["']?(\w+)/gi.exec(a))&&a.length)return a=a[1].toLowerCase(),0===a.indexOf("microsoft")?
"microsoft":0===a.indexOf("libreoffice")?"libreoffice":"unknown"}};CKEDITOR.pasteFilters=CKEDITOR.plugins.pastetools.filters})();(function(){CKEDITOR.plugins.add("pastefromgdocs",{requires:"pastetools",init:function(b){var g=CKEDITOR.plugins.getPath("pastetools"),d=this.path;b.pasteTools.register({filters:[CKEDITOR.getUrl(g+"filter/common.js"),CKEDITOR.getUrl(d+"filter/default.js")],canHandle:function(a){return/id=(\"|\')?docs\-internal\-guid\-/.test(a.data.dataValue)},handle:function(a,d){var g=
a.data,k=CKEDITOR.plugins.pastetools.getClipboardData(g,"text/html");g.dontFilter=!0;g.dataValue=CKEDITOR.pasteFilters.gdocs(k,b);!0===b.config.forcePasteAsPlainText&&(g.type="text");d()}})}})})();(function(){CKEDITOR.plugins.add("pastefromlibreoffice",{requires:"pastetools",isSupportedEnvironment:function(){var b=CKEDITOR.env.ie&&11>=CKEDITOR.env.version;return!(CKEDITOR.env.webkit&&!CKEDITOR.env.chrome)&&!b},init:function(b){if(this.isSupportedEnvironment()){var g=CKEDITOR.plugins.getPath("pastetools"),
d=this.path;b.pasteTools.register({priority:100,filters:[CKEDITOR.getUrl(g+"filter/common.js"),CKEDITOR.getUrl(g+"filter/image.js"),CKEDITOR.getUrl(d+"filter/default.js")],canHandle:function(a){a=a.data;return(a=a.dataTransfer.getData("text/html",!0)||a.dataValue)?"libreoffice"===CKEDITOR.plugins.pastetools.getContentGeneratorName(a):!1},handle:function(a,d){var g=a.data,k=g.dataValue||CKEDITOR.plugins.pastetools.getClipboardData(g,"text/html");g.dontFilter=!0;k=CKEDITOR.pasteFilters.image(k,b,CKEDITOR.plugins.pastetools.getClipboardData(g,
"text/rtf"));g.dataValue=CKEDITOR.pasteFilters.libreoffice(k,b);!0===b.config.forcePasteAsPlainText&&(g.type="text");d()}})}}})})();(function(){CKEDITOR.plugins.add("pastefromword",{requires:"pastetools",init:function(b){var g=0,d=CKEDITOR.plugins.getPath("pastetools"),a=this.path,f=void 0===b.config.pasteFromWord_inlineImages?!0:b.config.pasteFromWord_inlineImages,d=[CKEDITOR.getUrl(d+"filter/common.js"),CKEDITOR.getUrl(d+"filter/image.js"),CKEDITOR.getUrl(a+"filter/default.js")];b.addCommand("pastefromword",
{canUndo:!1,async:!0,exec:function(a,b){g=1;a.execCommand("paste",{type:"html",notification:b&&"undefined"!==typeof b.notification?b.notification:!0})}});CKEDITOR.plugins.clipboard.addPasteButton(b,"PasteFromWord",{label:b.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});b.pasteTools.register({filters:b.config.pasteFromWordCleanupFile?[b.config.pasteFromWordCleanupFile]:d,canHandle:function(a){a=CKEDITOR.plugins.pastetools.getClipboardData(a.data,"text/html");var b=CKEDITOR.plugins.pastetools.getContentGeneratorName(a),
d=/(class="?Mso|style=["'][^"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,b=b?"microsoft"===b:d.test(a);return a&&(g||b)},handle:function(a,d){var l=a.data,e=CKEDITOR.plugins.pastetools.getClipboardData(l,"text/html"),c=CKEDITOR.plugins.pastetools.getClipboardData(l,"text/rtf"),e={dataValue:e,dataTransfer:{"text/rtf":c}};if(!1!==b.fire("pasteFromWord",e)||g){l.dontFilter=!0;if(g||!b.config.pasteFromWordPromptCleanup||confirm(b.lang.pastefromword.confirmCleanup))e.dataValue=CKEDITOR.cleanWord(e.dataValue,
b),CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&f&&CKEDITOR.pasteFilters.image&&(e.dataValue=CKEDITOR.pasteFilters.image(e.dataValue,b,c)),b.fire("afterPasteFromWord",e),l.dataValue=e.dataValue,!0===b.config.forcePasteAsPlainText?l.type="text":CKEDITOR.plugins.clipboard.isCustomCopyCutSupported||"allow-word"!==b.config.forcePasteAsPlainText||(l.type="html");g=0;d()}}})}})})();(function(){var b={canUndo:!1,async:!0,exec:function(b,d){var a=b.lang,f=CKEDITOR.tools.keystrokeToString(a.common.keyboard,
b.getCommandKeystroke(CKEDITOR.env.ie?b.commands.paste:this)),m=d&&"undefined"!==typeof d.notification?d.notification:!d||!d.from||"keystrokeHandler"===d.from&&CKEDITOR.env.ie,a=m&&"string"===typeof m?m:a.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+f.aria+'"\x3e'+f.display+"\x3c/kbd\x3e");b.execCommand("paste",{type:"text",notification:m?a:!1})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(g){var d=CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+
86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;g.addCommand("pastetext",b);g.setKeystroke(d,"pastetext");CKEDITOR.plugins.clipboard.addPasteButton(g,"PasteText",{label:g.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(g.config.forcePasteAsPlainText)g.on("beforePaste",function(a){"html"!=a.data.type&&(a.data.type="text")});g.on("pasteState",function(a){g.getCommand("pastetext").setState(a.data)})}})})();(function(){function b(b){var d=CKEDITOR.plugins.getPath("preview"),a=b.config,f=b.lang.preview.preview,
m=function(){var b=location.origin,d=location.pathname;if(!a.baseHref&&!CKEDITOR.env.gecko)return"";if(a.baseHref)return'\x3cbase href\x3d"{HREF}"\x3e'.replace("{HREF}",a.baseHref);d=d.split("/");d.pop();d=d.join("/");return'\x3cbase href\x3d"{HREF}"\x3e'.replace("{HREF}",b+d+"/")}();return a.fullPage?b.getData().replace(/<head>/,"$\x26"+m).replace(/[^>]*(?=<\/title>)/,"$\x26 \x26mdash; "+f):a.docType+'\x3chtml dir\x3d"'+a.contentsLangDirection+'"\x3e\x3chead\x3e'+m+"\x3ctitle\x3e"+f+"\x3c/title\x3e"+
CKEDITOR.tools.buildStyleHtml(a.contentsCss)+'\x3clink rel\x3d"stylesheet" media\x3d"screen" href\x3d"'+d+'styles/screen.css"\x3e\x3c/head\x3e'+function(){var a="\x3cbody\x3e",d=b.document&&b.document.getBody();if(!d)return a;d.getAttribute("id")&&(a=a.replace("\x3e",' id\x3d"'+d.getAttribute("id")+'"\x3e'));d.getAttribute("class")&&(a=a.replace("\x3e",' class\x3d"'+d.getAttribute("class")+'"\x3e'));return a}()+b.getData()+"\x3c/body\x3e\x3c/html\x3e"}CKEDITOR.plugins.add("preview",{init:function(b){b.addCommand("preview",
{modes:{wysiwyg:1},canUndo:!1,readOnly:1,exec:CKEDITOR.plugins.preview.createPreview});b.ui.addButton&&b.ui.addButton("Preview",{label:b.lang.preview.preview,command:"preview",toolbar:"document,40"})}});CKEDITOR.plugins.preview={createPreview:function(g){var d,a,f,m={dataValue:b(g)},k=window.screen;d=Math.round(.8*k.width);a=Math.round(.7*k.height);f=Math.round(.1*k.width);k=CKEDITOR.env.ie?"javascript:void( (function(){document.open();"+("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,
"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad \x3d null;})() )":null;var l;l=CKEDITOR.plugins.getPath("preview");l=CKEDITOR.env.gecko?CKEDITOR.getUrl(l+"preview.html"):"";if(!1===g.fire("contentPreview",m))return!1;if(k||l)window._cke_htmlToLoad=m.dataValue;g=window.open(l,null,["toolbar\x3dyes,location\x3dno,status\x3dyes,menubar\x3dyes,scrollbars\x3dyes,resizable\x3dyes","width\x3d"+d,"height\x3d"+a,"left\x3d"+
f].join());k&&g&&(g.location=k);window._cke_htmlToLoad||(d=g.document,d.open(),d.write(m.dataValue),d.close());return new CKEDITOR.dom.window(g)}}})();(function(){CKEDITOR.plugins.add("print",{requires:"preview",init:function(b){b.addCommand("print",CKEDITOR.plugins.print);b.ui.addButton&&b.ui.addButton("Print",{label:b.lang.print.toolbar,command:"print",toolbar:"document,50"})}});CKEDITOR.plugins.print={exec:function(b){function g(){CKEDITOR.env.gecko?d.print():d.document.execCommand("Print");d.close()}
b=CKEDITOR.plugins.preview.createPreview(b);var d;if(b){d=b.$;if("complete"===d.document.readyState)return g();b.once("load",g)}},canUndo:!1,readOnly:1,modes:{wysiwyg:1}}})();CKEDITOR.plugins.add("removeformat",{init:function(b){b.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);b.ui.addButton&&b.ui.addButton("RemoveFormat",{label:b.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}});CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(b){for(var g=
b._.removeFormatRegex||(b._.removeFormatRegex=new RegExp("^(?:"+b.config.removeFormatTags.replace(/,/g,"|")+")$","i")),d=b._.removeAttributes||(b._.removeAttributes=b.config.removeFormatAttributes.split(",")),a=CKEDITOR.plugins.removeformat.filter,f=b.getSelection().getRanges(),m=f.createIterator(),k=function(a){return a.type==CKEDITOR.NODE_ELEMENT},l;l=m.getNextRange();){l.enlarge(CKEDITOR.ENLARGE_INLINE);var e=l.createBookmark(),c=e.startNode,h=e.endNode,n=function(c){for(var e=b.elementPath(c),
d=e.elements,f=1,h;(h=d[f])&&!h.equals(e.block)&&!h.equals(e.blockLimit);f++)g.test(h.getName())&&a(b,h)&&c.breakParent(h)};n(c);if(h)for(n(h),c=c.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);c&&!c.equals(h);)if(c.isReadOnly()){if(c.getPosition(h)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(k)}else n=c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==c.getName()&&c.data("cke-realelement")||!a(b,c)||(g.test(c.getName())?c.remove(1):(c.removeAttributes(d),b.fire("removeFormatCleanup",c))),c=n;l.moveToBookmark(e)}b.forceNextSelectionCheck();
b.getSelection().selectRanges(f)}}},filter:function(b,g){for(var d=b._.removeFormatFilters||[],a=0;a<d.length;a++)if(!1===d[a](g))return!1;return!0}};CKEDITOR.editor.prototype.addRemoveFormatFilter=function(b){this._.removeFormatFilters||(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(b)};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";
CKEDITOR.plugins.add("resize",{init:function(b){function g(d){var f=e.width,g=e.height,k=f+(d.data.$.screenX-l.x)*("rtl"==m?-1:1);d=g+(d.data.$.screenY-l.y);c&&(f=Math.max(a.resize_minWidth,Math.min(k,a.resize_maxWidth)));h&&(g=Math.max(a.resize_minHeight,Math.min(d,a.resize_maxHeight)));b.resize(c?f:null,g)}function d(){CKEDITOR.document.removeListener("mousemove",g);CKEDITOR.document.removeListener("mouseup",d);b.document&&(b.document.removeListener("mousemove",g),b.document.removeListener("mouseup",
d))}var a=b.config,f=b.ui.spaceId("resizer"),m=b.element?b.element.getDirection(1):"ltr";!a.resize_dir&&(a.resize_dir="vertical");void 0===a.resize_maxWidth&&(a.resize_maxWidth=3E3);void 0===a.resize_maxHeight&&(a.resize_maxHeight=3E3);void 0===a.resize_minWidth&&(a.resize_minWidth=750);void 0===a.resize_minHeight&&(a.resize_minHeight=250);if(!1!==a.resize_enabled){var k=null,l,e,c=("both"==a.resize_dir||"horizontal"==a.resize_dir)&&a.resize_minWidth!=a.resize_maxWidth,h=("both"==a.resize_dir||"vertical"==
a.resize_dir)&&a.resize_minHeight!=a.resize_maxHeight,n=CKEDITOR.tools.addFunction(function(c){k||(k=b.getResizable());e={width:k.$.offsetWidth||0,height:k.$.offsetHeight||0};l={x:c.screenX,y:c.screenY};a.resize_minWidth>e.width&&(a.resize_minWidth=e.width);a.resize_minHeight>e.height&&(a.resize_minHeight=e.height);CKEDITOR.document.on("mousemove",g);CKEDITOR.document.on("mouseup",d);b.document&&(b.document.on("mousemove",g),b.document.on("mouseup",d));c.preventDefault&&c.preventDefault()});b.on("destroy",
function(){CKEDITOR.tools.removeFunction(n)});b.on("uiSpace",function(a){if("bottom"==a.data.space){var e="";c&&!h&&(e=" cke_resizer_horizontal");!c&&h&&(e=" cke_resizer_vertical");var d='\x3cspan id\x3d"'+f+'" class\x3d"cke_resizer'+e+" cke_resizer_"+m+'" title\x3d"'+CKEDITOR.tools.htmlEncode(b.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+n+', event)"\x3e'+("ltr"==m?"◢":"◣")+"\x3c/span\x3e";"ltr"==m&&"ltr"==e?a.data.html+=d:a.data.html=d+a.data.html}},b,null,100);b.on("maximize",
function(a){b.ui.space("resizer")[a.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}});(function(){var b={readOnly:1,modes:{wysiwyg:1,source:1},exec:function(b){if(b.fire("save")&&(b=b.element.$.form))try{b.submit()}catch(d){b.submit.click&&b.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(g){g.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(g.addCommand("save",b).startDisabled=!g.element.$.form,g.ui.addButton&&g.ui.addButton("Save",{label:g.lang.save.toolbar,command:"save",toolbar:"document,10"}))}})})();
"use strict";CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",tabToOpen:null,dialogName:"scaytDialog",onLoad:function(b){"moono-lisa"==(CKEDITOR.skinName||b.config.skin)&&CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl(this.path+"skins/"+CKEDITOR.skin.name+"/scayt.css"));CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl(this.path+"dialogs/dialog.css"));var g=!1;CKEDITOR.on("instanceLoaded",function(b){if(!g&&CKEDITOR.plugins.autocomplete){g=!0;var a=CKEDITOR.plugins.autocomplete.prototype.getModel;
CKEDITOR.plugins.autocomplete.prototype.getModel=function(b){var d=this.editor;b=a.bind(this)(b);b.on("change-isActive",function(a){a.data?d.fire("autocompletePanelShow"):d.fire("autocompletePanelHide")});return b}}})},init:function(b){var g=this,d=CKEDITOR.plugins.scayt;this.bindEvents(b);this.parseConfig(b);this.addRule(b);CKEDITOR.dialog.add(this.dialogName,CKEDITOR.getUrl(this.path+"dialogs/options.js"));this.addMenuItems(b);var a=b.lang.scayt,f=CKEDITOR.env;b.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,
{label:a.text_title,title:b.plugins.wsc?b.lang.wsc.title:a.text_title,modes:{wysiwyg:!(f.ie&&(8>f.version||f.quirks))},toolbar:"spellchecker,20",refresh:function(){var a=b.ui.instances.Scayt.getState();b.scayt&&(a=d.state.scayt[b.name]?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF);b.fire("scaytButtonState",a)},onRender:function(){var a=this;b.on("scaytButtonState",function(b){void 0!==typeof b.data&&a.setState(b.data)})},onMenu:function(){var a=b.scayt;b.getMenuItem("scaytToggle").label=b.lang.scayt[a&&
d.state.scayt[b.name]?"btn_disable":"btn_enable"];var f={scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,WSC:b.plugins.wsc?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED};b.config.scayt_uiTabs[0]||delete f.scaytOptions;b.config.scayt_uiTabs[1]||delete f.scaytLangs;
b.config.scayt_uiTabs[2]||delete f.scaytDict;a&&!CKEDITOR.plugins.scayt.isNewUdSupported(a)&&(delete f.scaytDict,b.config.scayt_uiTabs[2]=0,CKEDITOR.plugins.scayt.alarmCompatibilityMessage());return f}});b.contextMenu&&b.addMenuItems&&(b.contextMenu.addListener(function(a,d){var f=b.scayt,e,c;f&&(c=f.getSelectionNode())&&(e=g.menuGenerator(b,c),f.showBanner("."+b.contextMenu._.definition.panel.className.split(" ").join(" .")));return e}),b.contextMenu._.onHide=CKEDITOR.tools.override(b.contextMenu._.onHide,
function(a){return function(){var d=b.scayt;d&&d.hideBanner();return a.apply(this)}}))},addMenuItems:function(b){var g=this,d=CKEDITOR.plugins.scayt;b.addMenuGroup("scaytButton");for(var a=b.config.scayt_contextMenuItemsOrder.split("|"),f=0;f<a.length;f++)a[f]="scayt_"+a[f];if((a=["grayt_description","grayt_suggest","grayt_control"].concat(a))&&a.length)for(f=0;f<a.length;f++)b.addMenuGroup(a[f],f-10);b.addCommand("scaytToggle",{exec:function(a){var b=a.scayt;d.state.scayt[a.name]=!d.state.scayt[a.name];
!0===d.state.scayt[a.name]?b||d.createScayt(a):b&&d.destroy(a)}});b.addCommand("scaytAbout",{exec:function(a){a.scayt.tabToOpen="about";d.openDialog(g.dialogName,a)}});b.addCommand("scaytOptions",{exec:function(a){a.scayt.tabToOpen="options";d.openDialog(g.dialogName,a)}});b.addCommand("scaytLangs",{exec:function(a){a.scayt.tabToOpen="langs";d.openDialog(g.dialogName,a)}});b.addCommand("scaytDict",{exec:function(a){a.scayt.tabToOpen="dictionaries";d.openDialog(g.dialogName,a)}});a={scaytToggle:{label:b.lang.scayt.btn_enable,
group:"scaytButton",command:"scaytToggle"},scaytAbout:{label:b.lang.scayt.btn_about,group:"scaytButton",command:"scaytAbout"},scaytOptions:{label:b.lang.scayt.btn_options,group:"scaytButton",command:"scaytOptions"},scaytLangs:{label:b.lang.scayt.btn_langs,group:"scaytButton",command:"scaytLangs"},scaytDict:{label:b.lang.scayt.btn_dictionaries,group:"scaytButton",command:"scaytDict"}};b.plugins.wsc&&(a.WSC={label:b.lang.wsc.toolbar,group:"scaytButton",onClick:function(){var a=CKEDITOR.plugins.scayt,
d=b.scayt,f=b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?b.container.getText():b.document.getBody().getText();(f=f.replace(/\s/g,""))?(d&&a.state.scayt[b.name]&&d.setMarkupPaused&&d.setMarkupPaused(!0),b.lockSelection(),b.execCommand("checkspell")):alert("Nothing to check!")}});b.addMenuItems(a)},bindEvents:function(b){var g=CKEDITOR.plugins.scayt,d=b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE,a=function(){g.destroy(b)},f=function(){!g.state.scayt[b.name]||b.readOnly||b.scayt||g.createScayt(b)},m=function(){var a=
b.editable();a.attachListener(a,"focus",function(a){CKEDITOR.plugins.scayt&&!b.scayt&&setTimeout(f,0);a=CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[b.name]&&b.scayt;var c,g;if((d||a)&&b._.savedSelection){a=b._.savedSelection.getSelectedElement();a=!a&&b._.savedSelection.getRanges();for(var k=0;k<a.length;k++)g=a[k],"string"===typeof g.startContainer.$.nodeValue&&(c=g.startContainer.getText().length,(c<g.startOffset||c<g.endOffset)&&b.unlockSelection(!1))}},this,null,-10)},k=function(){d?
b.config.scayt_inlineModeImmediateMarkup?f():(b.on("blur",function(){setTimeout(a,0)}),b.on("focus",f),b.focusManager.hasFocus&&f()):f();m();var g=b.editable();g.attachListener(g,"mousedown",function(a){a=a.data.getTarget();var c=b.widgets&&b.widgets.getByElement(a);c&&(c.wrapper=a.getAscendant(function(a){return a.hasAttribute("data-cke-widget-wrapper")},!0))},this,null,-10)};b.on("contentDom",k);b.on("beforeCommandExec",function(a){var e=b.scayt,c=!1,d=!1,f=!0;a.data.name in g.options.disablingCommandExec&&
"wysiwyg"==b.mode?e&&(g.destroy(b),b.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)):"bold"!==a.data.name&&"italic"!==a.data.name&&"underline"!==a.data.name&&"strike"!==a.data.name&&"subscript"!==a.data.name&&"superscript"!==a.data.name&&"enter"!==a.data.name&&"cut"!==a.data.name&&"language"!==a.data.name||!e||("cut"===a.data.name&&(f=!1,d=!0),"language"===a.data.name&&(d=c=!0),b.fire("reloadMarkupScayt",{removeOptions:{removeInside:f,forceBookmark:d,language:c},timeout:0}))});b.on("beforeSetMode",
function(a){if("source"==a.data){if(a=b.scayt)g.destroy(b),b.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED);b.document&&b.document.getBody().removeAttribute("_jquid")}});b.on("afterCommandExec",function(a){"wysiwyg"!=b.mode||"undo"!=a.data.name&&"redo"!=a.data.name||setTimeout(function(){g.reloadMarkup(b.scayt)},250)});b.on("readOnly",function(a){var e;a&&(e=b.scayt,!0===a.editor.readOnly?e&&e.fire("removeMarkupInDocument",{}):e?g.reloadMarkup(e):"wysiwyg"==a.editor.mode&&!0===g.state.scayt[a.editor.name]&&
(g.createScayt(b),a.editor.fire("scaytButtonState",CKEDITOR.TRISTATE_ON)))});b.on("beforeDestroy",a);b.on("setData",function(){a();(b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE||b.plugins.divarea)&&k()},this,null,50);b.on("reloadMarkupScayt",function(a){var e=a.data&&a.data.removeOptions,c=a.data&&a.data.timeout,d=a.data&&a.data.language,f=b.scayt;f&&setTimeout(function(){d&&(e.selectionNode=b.plugins.language.getCurrentLangElement(b),e.selectionNode=e.selectionNode&&e.selectionNode.$||null);f.removeMarkupInSelectionNode(e);
g.reloadMarkup(f)},c||0)});b.on("insertElement",function(){b.fire("reloadMarkupScayt",{removeOptions:{forceBookmark:!0}})},this,null,50);b.on("insertHtml",function(){b.scayt&&b.scayt.setFocused&&b.scayt.setFocused(!0);b.fire("reloadMarkupScayt")},this,null,50);b.on("insertText",function(){b.scayt&&b.scayt.setFocused&&b.scayt.setFocused(!0);b.fire("reloadMarkupScayt")},this,null,50);b.on("scaytDialogShown",function(a){a.data.selectPage(b.scayt.tabToOpen)});b.on("autocompletePanelShow",function(a){(a=
b.scayt)&&a.setMarkupPaused&&a.setMarkupPaused(!0)});b.on("autocompletePanelHide",function(a){(a=b.scayt)&&a.setMarkupPaused&&a.setMarkupPaused(!1)})},parseConfig:function(b){var g=CKEDITOR.plugins.scayt;g.replaceOldOptionsNames(b.config);"boolean"!==typeof b.config.scayt_autoStartup&&(b.config.scayt_autoStartup=!1);g.state.scayt[b.name]=b.config.scayt_autoStartup;"boolean"!==typeof b.config.grayt_autoStartup&&(b.config.grayt_autoStartup=!1);"boolean"!==typeof b.config.scayt_inlineModeImmediateMarkup&&
(b.config.scayt_inlineModeImmediateMarkup=!1);g.state.grayt[b.name]=b.config.grayt_autoStartup;b.config.scayt_contextCommands||(b.config.scayt_contextCommands="ignoreall|add");b.config.scayt_contextMenuItemsOrder||(b.config.scayt_contextMenuItemsOrder="suggest|moresuggest|control");b.config.scayt_sLang||(b.config.scayt_sLang="en_US");if(void 0===b.config.scayt_maxSuggestions||"number"!=typeof b.config.scayt_maxSuggestions||0>b.config.scayt_maxSuggestions)b.config.scayt_maxSuggestions=3;if(void 0===
b.config.scayt_minWordLength||"number"!=typeof b.config.scayt_minWordLength||1>b.config.scayt_minWordLength)b.config.scayt_minWordLength=3;if(void 0===b.config.scayt_customDictionaryIds||"string"!==typeof b.config.scayt_customDictionaryIds)b.config.scayt_customDictionaryIds="";if(void 0===b.config.scayt_userDictionaryName||"string"!==typeof b.config.scayt_userDictionaryName)b.config.scayt_userDictionaryName=null;if("string"===typeof b.config.scayt_uiTabs&&3===b.config.scayt_uiTabs.split(",").length){var d=
[],a=[];b.config.scayt_uiTabs=b.config.scayt_uiTabs.split(",");CKEDITOR.tools.search(b.config.scayt_uiTabs,function(b){1===Number(b)||0===Number(b)?(a.push(!0),d.push(Number(b))):a.push(!1)});null===CKEDITOR.tools.search(a,!1)?b.config.scayt_uiTabs=d:b.config.scayt_uiTabs=[1,1,1]}else b.config.scayt_uiTabs=[1,1,1];"string"!=typeof b.config.scayt_serviceProtocol&&(b.config.scayt_serviceProtocol=null);"string"!=typeof b.config.scayt_serviceHost&&(b.config.scayt_serviceHost=null);"string"!=typeof b.config.scayt_servicePort&&
(b.config.scayt_servicePort=null);"string"!=typeof b.config.scayt_servicePath&&(b.config.scayt_servicePath=null);b.config.scayt_moreSuggestions||(b.config.scayt_moreSuggestions="on");"string"!==typeof b.config.scayt_customerId&&(b.config.scayt_customerId="1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2");"string"!==typeof b.config.scayt_customPunctuation&&(b.config.scayt_customPunctuation="-");"string"!==typeof b.config.scayt_srcUrl&&(b.config.scayt_srcUrl="https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js");
"boolean"!==typeof CKEDITOR.config.scayt_handleCheckDirty&&(CKEDITOR.config.scayt_handleCheckDirty=!0);"boolean"!==typeof CKEDITOR.config.scayt_handleUndoRedo&&(CKEDITOR.config.scayt_handleUndoRedo=!0);CKEDITOR.config.scayt_handleUndoRedo=CKEDITOR.plugins.undo?CKEDITOR.config.scayt_handleUndoRedo:!1;b.config.scayt_ignoreAllCapsWords&&"boolean"!==typeof b.config.scayt_ignoreAllCapsWords&&(b.config.scayt_ignoreAllCapsWords=!1);b.config.scayt_ignoreDomainNames&&"boolean"!==typeof b.config.scayt_ignoreDomainNames&&
(b.config.scayt_ignoreDomainNames=!1);b.config.scayt_ignoreWordsWithMixedCases&&"boolean"!==typeof b.config.scayt_ignoreWordsWithMixedCases&&(b.config.scayt_ignoreWordsWithMixedCases=!1);b.config.scayt_ignoreWordsWithNumbers&&"boolean"!==typeof b.config.scayt_ignoreWordsWithNumbers&&(b.config.scayt_ignoreWordsWithNumbers=!1);if(b.config.scayt_disableOptionsStorage){var g=CKEDITOR.tools.isArray(b.config.scayt_disableOptionsStorage)?b.config.scayt_disableOptionsStorage:"string"===typeof b.config.scayt_disableOptionsStorage?
[b.config.scayt_disableOptionsStorage]:void 0,f="all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers".split(" "),m=["lang","ignore-all-caps-words","ignore-domain-names","ignore-words-with-mixed-cases","ignore-words-with-numbers"],k=CKEDITOR.tools.search,l=CKEDITOR.tools.indexOf;b.config.scayt_disableOptionsStorage=function(a){for(var b=[],d=0;d<a.length;d++){var g=a[d],r=!!k(a,"options");if(!k(f,g)||r&&k(m,function(a){if("lang"===a)return!1}))return;
k(m,g)&&m.splice(l(m,g),1);if("all"===g||r&&k(a,"lang"))return[];"options"===g&&(m=["lang"])}return b=b.concat(m)}(g)}},addRule:function(b){var g=CKEDITOR.plugins.scayt,d=b.dataProcessor,a=d&&d.htmlFilter,f=b._.elementsPath&&b._.elementsPath.filters,d=d&&d.dataFilter,m=b.addRemoveFormatFilter,k=function(a){if(b.scayt&&(a.hasAttribute(g.options.data_attribute_name)||a.hasAttribute(g.options.problem_grammar_data_attribute)))return!1},l=function(a){var c=!0;b.scayt&&(a.hasAttribute(g.options.data_attribute_name)||
a.hasAttribute(g.options.problem_grammar_data_attribute))&&(c=!1);return c};f&&f.push(k);d&&d.addRules({elements:{span:function(a){var b=a.hasClass(g.options.misspelled_word_class)&&a.attributes[g.options.data_attribute_name],d=a.hasClass(g.options.problem_grammar_class)&&a.attributes[g.options.problem_grammar_data_attribute];g&&(b||d)&&delete a.name;return a}}});a&&a.addRules({elements:{span:function(a){var b=a.hasClass(g.options.misspelled_word_class)&&a.attributes[g.options.data_attribute_name],
d=a.hasClass(g.options.problem_grammar_class)&&a.attributes[g.options.problem_grammar_data_attribute];g&&(b||d)&&delete a.name;return a}}});m&&m.call(b,l)},scaytMenuDefinition:function(b){var g=this,d=CKEDITOR.plugins.scayt;b=b.scayt;return{scayt:{scayt_ignore:{label:b.getLocal("btn_ignore"),group:"scayt_control",order:1,exec:function(a){a.scayt.ignoreWord()}},scayt_ignoreall:{label:b.getLocal("btn_ignoreAll"),group:"scayt_control",order:2,exec:function(a){a.scayt.ignoreAllWords()}},scayt_add:{label:b.getLocal("btn_addWord"),
group:"scayt_control",order:3,exec:function(a){var b=a.scayt;setTimeout(function(){b.addWordToUserDictionary()},10)}},scayt_option:{label:b.getLocal("btn_options"),group:"scayt_control",order:4,exec:function(a){a.scayt.tabToOpen="options";d.openDialog(g.dialogName,a)},verification:function(a){return 1==a.config.scayt_uiTabs[0]?!0:!1}},scayt_language:{label:b.getLocal("btn_langs"),group:"scayt_control",order:5,exec:function(a){a.scayt.tabToOpen="langs";d.openDialog(g.dialogName,a)},verification:function(a){return 1==
a.config.scayt_uiTabs[1]?!0:!1}},scayt_dictionary:{label:b.getLocal("btn_dictionaries"),group:"scayt_control",order:6,exec:function(a){a.scayt.tabToOpen="dictionaries";d.openDialog(g.dialogName,a)},verification:function(a){return 1==a.config.scayt_uiTabs[2]?!0:!1}},scayt_about:{label:b.getLocal("btn_about"),group:"scayt_control",order:7,exec:function(a){a.scayt.tabToOpen="about";d.openDialog(g.dialogName,a)}}},grayt:{grayt_problemdescription:{label:"Grammar problem description",group:"grayt_description",
order:1,state:CKEDITOR.TRISTATE_DISABLED,exec:function(a){}},grayt_ignore:{label:b.getLocal("btn_ignore"),group:"grayt_control",order:2,exec:function(a){a.scayt.ignorePhrase()}},grayt_ignoreall:{label:b.getLocal("btn_ignoreAll"),group:"grayt_control",order:3,exec:function(a){a.scayt.ignoreAllPhrases()}}}}},buildSuggestionMenuItems:function(b,g,d){var a={},f={},m=d?"word":"phrase",k=d?"startGrammarCheck":"startSpellCheck",l=b.scayt;if(0<g.length&&"no_any_suggestions"!==g[0])if(d)for(d=0;d<g.length;d++){var e=
"scayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[d].replace(" ","_");b.addCommand(e,this.createCommand(CKEDITOR.plugins.scayt.suggestions[d],m,k));d<b.config.scayt_maxSuggestions?(b.addMenuItem(e,{label:g[d],command:e,group:"scayt_suggest",order:d+1}),a[e]=CKEDITOR.TRISTATE_OFF):(b.addMenuItem(e,{label:g[d],command:e,group:"scayt_moresuggest",order:d+1}),f[e]=CKEDITOR.TRISTATE_OFF,"on"===b.config.scayt_moreSuggestions&&(b.addMenuItem("scayt_moresuggest",{label:l.getLocal("btn_moreSuggestions"),
group:"scayt_moresuggest",order:10,getItems:function(){return f}}),a.scayt_moresuggest=CKEDITOR.TRISTATE_OFF))}else for(d=0;d<g.length;d++)e="grayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[d].replace(" ","_"),b.addCommand(e,this.createCommand(CKEDITOR.plugins.scayt.suggestions[d],m,k)),b.addMenuItem(e,{label:g[d],command:e,group:"grayt_suggest",order:d+1}),a[e]=CKEDITOR.TRISTATE_OFF;else a.no_scayt_suggest=CKEDITOR.TRISTATE_DISABLED,b.addCommand("no_scayt_suggest",{exec:function(){}}),b.addMenuItem("no_scayt_suggest",
{label:l.getLocal("btn_noSuggestions")||"no_scayt_suggest",command:"no_scayt_suggest",group:"scayt_suggest",order:0});return a},menuGenerator:function(b,g){var d=b.scayt,a=this.scaytMenuDefinition(b),f={},m=b.config.scayt_contextCommands.split("|"),k=g.getAttribute(d.getLangAttribute())||d.getLang(),l,e,c,h;e=d.isScaytNode(g);c=d.isGraytNode(g);e?(a=a.scayt,l=g.getAttribute(d.getScaytNodeAttributeName()),d.fire("getSuggestionsList",{lang:k,word:l}),f=this.buildSuggestionMenuItems(b,CKEDITOR.plugins.scayt.suggestions,
e)):c&&(a=a.grayt,f=g.getAttribute(d.getGraytNodeAttributeName()),d.getGraytNodeRuleAttributeName?(l=g.getAttribute(d.getGraytNodeRuleAttributeName()),d.getProblemDescriptionText(f,l,k)):d.getProblemDescriptionText(f,k),h=d.getProblemDescriptionText(f,l,k),a.grayt_problemdescription&&h&&(h=h.replace(/([.!?])\s/g,"$1\x3cbr\x3e"),a.grayt_problemdescription.label=h),d.fire("getGrammarSuggestionsList",{lang:k,phrase:f,rule:l}),f=this.buildSuggestionMenuItems(b,CKEDITOR.plugins.scayt.suggestions,e));if(e&&
"off"==b.config.scayt_contextCommands)return f;for(var n in a)e&&-1==CKEDITOR.tools.indexOf(m,n.replace("scayt_",""))&&"all"!=b.config.scayt_contextCommands||c&&"grayt_problemdescription"!==n&&-1==CKEDITOR.tools.indexOf(m,n.replace("grayt_",""))&&"all"!=b.config.scayt_contextCommands||(f[n]="undefined"!=typeof a[n].state?a[n].state:CKEDITOR.TRISTATE_OFF,"function"!==typeof a[n].verification||a[n].verification(b)||delete f[n],b.addCommand(n,{exec:a[n].exec}),b.addMenuItem(n,{label:b.lang.scayt[a[n].label]||
a[n].label,command:n,group:a[n].group,order:a[n].order}));return f},createCommand:function(b,g,d){return{exec:function(a){a=a.scayt;var f={};f[g]=b;a.replaceSelectionNode(f);"startGrammarCheck"===d&&a.removeMarkupInSelectionNode({grammarOnly:!0});a.fire(d)}}}});CKEDITOR.plugins.scayt={charsToObserve:[{charName:"cke-fillingChar",charCode:function(){var b=CKEDITOR.version,g=[4,5,6],d=String.fromCharCode(8203),a=Array(8).join(d),f,m;if(!b)return d;for(var b=b.split("."),k=0;k<g.length;k++){f=g[k];m=
Number(b[k]);if(m>f)return a;if(m<f)break}return d}()}],state:{scayt:{},grayt:{}},warningCounter:0,suggestions:[],options:{disablingCommandExec:{source:!0,newpage:!0,templates:!0},data_attribute_name:"data-scayt-word",misspelled_word_class:"scayt-misspell-word",problem_grammar_data_attribute:"data-grayt-phrase",problem_grammar_class:"gramm-problem"},backCompatibilityMap:{scayt_service_protocol:"scayt_serviceProtocol",scayt_service_host:"scayt_serviceHost",scayt_service_port:"scayt_servicePort",scayt_service_path:"scayt_servicePath",
scayt_customerid:"scayt_customerId"},openDialog:function(b,g){var d=g.scayt;d.isAllModulesReady&&!1===d.isAllModulesReady()||(g.lockSelection(),g.openDialog(b))},alarmCompatibilityMessage:function(){5>this.warningCounter&&(console.warn("You are using the latest version of SCAYT plugin for CKEditor with the old application version. In order to have access to the newest features, it is recommended to upgrade the application version to latest one as well. Contact us for more details at support@webspellchecker.net."),
this.warningCounter+=1)},isNewUdSupported:function(b){return b.getUserDictionary?!0:!1},reloadMarkup:function(b){var g;b&&(g=b.getScaytLangList(),b.reloadMarkup?b.reloadMarkup():(this.alarmCompatibilityMessage(),g&&g.ltr&&g.rtl&&b.fire("startSpellCheck, startGrammarCheck")))},replaceOldOptionsNames:function(b){for(var g in b)g in this.backCompatibilityMap&&(b[this.backCompatibilityMap[g]]=b[g],delete b[g])},createScayt:function(b){var g=this,d=CKEDITOR.plugins.scayt;this.loadScaytLibrary(b,function(a){function b(a){return new SCAYT.CKSCAYT(a,
function(){},function(){})}var m;a.window&&(m="BODY"==a.editable().$.nodeName?a.window.getFrame():a.editable());if(m){m={lang:a.config.scayt_sLang,container:m.$,customDictionary:a.config.scayt_customDictionaryIds,userDictionaryName:a.config.scayt_userDictionaryName,localization:a.langCode,customer_id:a.config.scayt_customerId,customPunctuation:a.config.scayt_customPunctuation,debug:a.config.scayt_debug,data_attribute_name:g.options.data_attribute_name,misspelled_word_class:g.options.misspelled_word_class,
problem_grammar_data_attribute:g.options.problem_grammar_data_attribute,problem_grammar_class:g.options.problem_grammar_class,"options-to-restore":a.config.scayt_disableOptionsStorage,focused:a.editable().hasFocus,ignoreElementsRegex:a.config.scayt_elementsToIgnore,ignoreGraytElementsRegex:a.config.grayt_elementsToIgnore,minWordLength:a.config.scayt_minWordLength,graytAutoStartup:a.config.grayt_autoStartup,charsToObserve:d.charsToObserve};a.config.scayt_serviceProtocol&&(m.service_protocol=a.config.scayt_serviceProtocol);
a.config.scayt_serviceHost&&(m.service_host=a.config.scayt_serviceHost);a.config.scayt_servicePort&&(m.service_port=a.config.scayt_servicePort);a.config.scayt_servicePath&&(m.service_path=a.config.scayt_servicePath);"boolean"===typeof a.config.scayt_ignoreAllCapsWords&&(m["ignore-all-caps-words"]=a.config.scayt_ignoreAllCapsWords);"boolean"===typeof a.config.scayt_ignoreDomainNames&&(m["ignore-domain-names"]=a.config.scayt_ignoreDomainNames);"boolean"===typeof a.config.scayt_ignoreWordsWithMixedCases&&
(m["ignore-words-with-mixed-cases"]=a.config.scayt_ignoreWordsWithMixedCases);"boolean"===typeof a.config.scayt_ignoreWordsWithNumbers&&(m["ignore-words-with-numbers"]=a.config.scayt_ignoreWordsWithNumbers);var k;try{k=b(m)}catch(l){g.alarmCompatibilityMessage(),delete m.charsToObserve,k=b(m)}k.subscribe("suggestionListSend",function(a){for(var b={},d=[],f=0;f<a.suggestionList.length;f++)b["word_"+a.suggestionList[f]]||(b["word_"+a.suggestionList[f]]=a.suggestionList[f],d.push(a.suggestionList[f]));
CKEDITOR.plugins.scayt.suggestions=d});k.subscribe("selectionIsChanged",function(b){a.getSelection().isLocked&&"restoreSelection"!==b.action&&a.lockSelection();"restoreSelection"===b.action&&a.selectionChange(!0)});k.subscribe("graytStateChanged",function(b){d.state.grayt[a.name]=b.state});k.addMarkupHandler&&k.addMarkupHandler(function(b){var c=a.editable(),d=c.getCustomData(b.charName);d&&(d.$=b.node,c.setCustomData(b.charName,d))});a.scayt=k;a.fire("scaytButtonState",a.readOnly?CKEDITOR.TRISTATE_DISABLED:
CKEDITOR.TRISTATE_ON)}else d.state.scayt[a.name]=!1})},destroy:function(b){b.scayt&&b.scayt.destroy();delete b.scayt;b.fire("scaytButtonState",CKEDITOR.TRISTATE_OFF)},loadScaytLibrary:function(b,g){var d,a=function(){CKEDITOR.fireOnce("scaytReady");b.scayt||"function"===typeof g&&g(b)};"undefined"===typeof window.SCAYT||"function"!==typeof window.SCAYT.CKSCAYT?(d=b.config.scayt_srcUrl,CKEDITOR.scriptLoader.load(d,function(b){b&&a()})):window.SCAYT&&"function"===typeof window.SCAYT.CKSCAYT&&a()}};
CKEDITOR.on("dialogDefinition",function(b){var g=b.data.name;b=b.data.definition.dialog;"scaytDialog"!==g&&"checkspell"!==g&&(b.on("show",function(b){b=b.sender&&b.sender.getParentEditor();var a=CKEDITOR.plugins.scayt,f=b.scayt;f&&a.state.scayt[b.name]&&f.setMarkupPaused&&f.setMarkupPaused(!0)}),b.on("hide",function(b){b=b.sender&&b.sender.getParentEditor();var a=CKEDITOR.plugins.scayt,f=b.scayt;f&&a.state.scayt[b.name]&&f.setMarkupPaused&&f.setMarkupPaused(!1)}));if("scaytDialog"===g)b.on("cancel",
function(b){return!1},this,null,-1);if("checkspell"===g)b.on("cancel",function(b){b=b.sender&&b.sender.getParentEditor();var a=CKEDITOR.plugins.scayt,f=b.scayt;f&&a.state.scayt[b.name]&&f.setMarkupPaused&&f.setMarkupPaused(!1);b.unlockSelection()},this,null,-2);if("link"===g)b.on("ok",function(b){var a=b.sender&&b.sender.getParentEditor();a&&setTimeout(function(){a.fire("reloadMarkupScayt",{removeOptions:{removeInside:!0,forceBookmark:!0},timeout:0})},0)});if("replace"===g)b.on("hide",function(b){b=
b.sender&&b.sender.getParentEditor();var a=CKEDITOR.plugins.scayt,f=b.scayt;b&&setTimeout(function(){f&&(f.fire("removeMarkupInDocument",{}),a.reloadMarkup(f))},0)})});CKEDITOR.on("scaytReady",function(){if(!0===CKEDITOR.config.scayt_handleCheckDirty){var b=CKEDITOR.editor.prototype;b.checkDirty=CKEDITOR.tools.override(b.checkDirty,function(b){return function(){var a=null,f=this.scayt;if(CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt){if(a="ready"==this.status)var g=
f.removeMarkupFromString(this.getSnapshot()),f=f.removeMarkupFromString(this._.previousValue),a=a&&f!==g}else a=b.call(this);return a}});b.resetDirty=CKEDITOR.tools.override(b.resetDirty,function(b){return function(){var a=this.scayt;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt?this._.previousValue=a.removeMarkupFromString(this.getSnapshot()):b.call(this)}})}if(!0===CKEDITOR.config.scayt_handleUndoRedo){var b=CKEDITOR.plugins.undo.Image.prototype,g="function"==
typeof b.equalsContent?"equalsContent":"equals";b[g]=CKEDITOR.tools.override(b[g],function(b){return function(a){var f=a.editor.scayt,g=this.contents,k=a.contents,l=null;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[a.editor.name]&&a.editor.scayt&&(this.contents=f.removeMarkupFromString(g)||"",a.contents=f.removeMarkupFromString(k)||"");l=b.apply(this,arguments);this.contents=g;a.contents=k;return l}})}});(function(){CKEDITOR.plugins.add("selectall",{init:function(b){b.addCommand("selectAll",
{modes:{wysiwyg:1,source:1},exec:function(b){var d=b.editable();if(d.is("textarea"))b=d.$,CKEDITOR.env.ie&&b.createTextRange?b.createTextRange().execCommand("SelectAll"):(b.selectionStart=0,b.selectionEnd=b.value.length),b.focus();else{if(d.is("body"))b.document.$.execCommand("SelectAll",!1,null);else{var a=b.createRange();a.selectNodeContents(d);a.select()}b.forceNextSelectionCheck();b.selectionChange()}},canUndo:!1});b.ui.addButton&&b.ui.addButton("SelectAll",{label:b.lang.selectall.toolbar,command:"selectAll",
toolbar:"selection,10"})}})})();(function(){var b={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var d=this.state!=CKEDITOR.TRISTATE_ON||b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!b.focusManager.hasFocus?"removeClass":"attachClass";b.editable()[d]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var b="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),d,a,f,m,k=CKEDITOR.getUrl(this.path),
l=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),e=l?":not([contenteditable\x3dfalse]):not(.cke_show_blocks_off)":"",c,h;for(d=a=f=m="";c=b.pop();)h=b.length?",":"",d+=".cke_show_blocks "+c+e+h,f+=".cke_show_blocks.cke_contents_ltr "+c+e+h,m+=".cke_show_blocks.cke_contents_rtl "+c+e+h,a+=".cke_show_blocks "+c+e+"{background-image:url("+CKEDITOR.getUrl(k+"images/block_"+c+".png")+")}";CKEDITOR.addCss((d+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(a,f+"{background-position:top left;padding-left:8px}",
m+"{background-position:top right;padding-right:8px}"));l||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 d(){a.refresh(g)}
if(!g.blockless){var a=g.addCommand("showblocks",b);a.canUndo=!1;g.config.startupOutlineBlocks&&a.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(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(g)});g.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(g.on("focus",d),g.on("blur",d));g.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(g)})}}})})();(function(){var b=
{preserveState:!0,editorFocus:!1,readOnly:1,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var d=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";b.editable()[d]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var b;b=(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(b)},init:function(g){var d=g.addCommand("showborders",b);d.canUndo=!1;!1!==g.config.startupShowBorders&&d.setState(CKEDITOR.TRISTATE_ON);g.on("mode",function(){d.state!=CKEDITOR.TRISTATE_DISABLED&&d.refresh(g)},null,null,100);g.on("contentDom",function(){d.state!=CKEDITOR.TRISTATE_DISABLED&&d.refresh(g)});g.on("removeFormatCleanup",function(a){a=a.data;g.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&a.is("table")&&(!a.hasAttribute("border")||
0>=parseInt(a.getAttribute("border"),10))&&a.addClass("cke_show_border")})},afterInit:function(b){var d=b.dataProcessor;b=d&&d.dataFilter;d=d&&d.htmlFilter;b&&b.addRules({elements:{table:function(a){a=a.attributes;var b=a["class"],d=parseInt(a.border,10);d&&!(0>=d)||b&&-1!=b.indexOf("cke_show_border")||(a["class"]=(b||"")+" cke_show_border")}}});d&&d.addRules({elements:{table:function(a){a=a.attributes;var b=a["class"];b&&(a["class"]=b.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,
""))}}})}});CKEDITOR.on("dialogDefinition",function(b){var d=b.data.name;if("table"==d||"tableProperties"==d)if(b=b.data.definition,d=b.getContents("info").get("txtBorder"),d.commit=CKEDITOR.tools.override(d.commit,function(a){return function(b,d){a.apply(this,arguments);var g=parseInt(this.getValue(),10);d[!g||0>=g?"addClass":"removeClass"]("cke_show_border")}}),b=(b=b.getContents("advanced"))&&b.get("advCSSClasses"))b.setup=CKEDITOR.tools.override(b.setup,function(a){return function(){a.apply(this,
arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),b.commit=CKEDITOR.tools.override(b.commit,function(a){return function(b,d){a.apply(this,arguments);parseInt(d.getAttribute("border"),10)||d.addClass("cke_show_border")}})})})();CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(b){b.config.smiley_path=b.config.smiley_path||this.path+"images/";b.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"}));
b.ui.addButton&&b.ui.addButton("Smiley",{label:b.lang.smiley.toolbar,command:"smiley",toolbar:"insert,50"});CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}});CKEDITOR.config.smiley_images="regular_smile.png sad_smile.png wink_smile.png teeth_smile.png confused_smile.png tongue_smile.png embarrassed_smile.png omg_smile.png whatchutalkingabout_smile.png angry_smile.png angel_smile.png shades_smile.png devil_smile.png cry_smile.png lightbulb.png thumbs_down.png thumbs_up.png heart.png broken_heart.png kiss.png envelope.png".split(" ");
CKEDITOR.config.smiley_descriptions="smiley;sad;wink;laugh;frown;cheeky;blush;surprise;indecision;angry;angel;cool;devil;crying;enlightened;no;yes;heart;broken heart;kiss;mail".split(";");(function(){CKEDITOR.plugins.add("sourcearea",{init:function(g){function d(){var a=f&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();a&&this.focus()}if(g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var a=
CKEDITOR.plugins.sourcearea;g.addMode("source",function(a){var f=g.ui.space("contents").getDocument().createElement("textarea");f.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)));f.setAttribute("dir","ltr");f.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");g.ui.space("contents").append(f);f=g.editable(new b(g,
f));f.setData(g.getData(1));CKEDITOR.env.ie&&(f.attachListener(g,"resize",d,f),f.attachListener(CKEDITOR.document.getWindow(),"resize",d,f),CKEDITOR.tools.setTimeout(d,0,f));g.fire("ariaWidget",this);a()});g.addCommand("source",a.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 f=CKEDITOR.env.ie&&9==
CKEDITOR.env.version}}});var b=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(b){this.setValue(b);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(b){this[(b?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){b.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})})();CKEDITOR.plugins.sourcearea=
{commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(b){"wysiwyg"==b.mode&&b.fire("saveSnapshot");b.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);b.setMode("source"==b.mode?"wysiwyg":"source")},canUndo:!1}}};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,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(b){var g=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");b.addCommand("specialchar",{exec:function(){var d=b.langCode,d=g.availableLangs[d]?d:g.availableLangs[d.replace(/-.*/,"")]?d.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(g.path+"dialogs/lang/"+d+".js"),function(){CKEDITOR.tools.extend(b.lang.specialchar,
g.langEntries[d]);b.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});b.ui.addButton&&b.ui.addButton("SpecialChar",{label:b.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(b){var g=b.config,d=b.lang.stylescombo,a={},f=[],m=[];b.on("stylesSet",function(d){if(d=d.data.styles){for(var l,e,c,h=0,n=d.length;h<n;h++)(l=d[h],b.blockless&&l.element in CKEDITOR.dtd.$block||"string"==typeof l.type&&!CKEDITOR.style.customHandlers[l.type]||(e=l.name,l=new CKEDITOR.style(l),b.filter.customConfig&&!b.filter.check(l)))||(l._name=e,l._.enterMode=g.enterMode,l._.type=c=l.assignedTo||l.type,l._.weight=
h+1E3*(c==CKEDITOR.STYLE_OBJECT?1:c==CKEDITOR.STYLE_BLOCK?2:3),a[e]=l,f.push(l),m.push(l));f.sort(function(a,b){return a._.weight-b._.weight})}});b.on("stylesRemove",function(d){d=d.data&&d.data.type;var f=void 0===d,e;for(e in a){var c=a[e];(f||c.type===d)&&b.removeStyle(c)}});b.ui.addRichCombo("Styles",{label:d.label,title:d.panelTitle,toolbar:"styles,10",allowedContent:m,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(g.contentsCss),multiSelect:!0,attributes:{"aria-label":d.panelTitle}},init:function(){var a,
b,e,c,g,m;g=0;for(m=f.length;g<m;g++)a=f[g],b=a._name,c=a._.type,c!=e&&(this.startGroup(d["panelTitle"+String(c)]),e=c),this.add(b,a.type==CKEDITOR.STYLE_OBJECT?b:a.buildPreview(),b);this.commit()},onClick:function(d){b.focus();b.fire("saveSnapshot");d=a[d];var f=b.elementPath();if(d.group&&d.removeStylesFromSameGroup(b))b.applyStyle(d);else b[d.checkActive(f,b)?"removeStyle":"applyStyle"](d);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(d){var f=this.getValue();d=d.data.path.elements;
for(var e=0,c=d.length,g;e<c;e++){g=d[e];for(var m in a)if(a[m].checkElementRemovable(g,!0,b)){m!=f&&this.setValue(m);return}}this.setValue("")},this)},onOpen:function(){var f=b.getSelection(),f=f.getSelectedElement()||f.getStartElement()||b.editable(),f=b.elementPath(f),g=[0,0,0,0];this.showAll();this.unmarkAll();for(var e in a){var c=a[e],h=c._.type;c.checkApplicable(f,b,b.activeFilter)?g[h]++:this.hideItem(e);c.checkActive(f,b)&&this.mark(e)}g[CKEDITOR.STYLE_BLOCK]||this.hideGroup(d["panelTitle"+
String(CKEDITOR.STYLE_BLOCK)]);g[CKEDITOR.STYLE_INLINE]||this.hideGroup(d["panelTitle"+String(CKEDITOR.STYLE_INLINE)]);g[CKEDITOR.STYLE_OBJECT]||this.hideGroup(d["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var d=b.elementPath();if(d){for(var f in a)if(a[f].checkApplicable(d,b,b.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){a={};f=[]}})}})})();(function(){function b(a){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(b){if(b.editable().hasFocus){var d=
b.getSelection(),g;if(g=(new CKEDITOR.dom.elementPath(d.getCommonAncestor(),d.root)).contains({td:1,th:1},1)){var d=b.createRange(),e=CKEDITOR.tools.tryThese(function(){var b=g.getParent().$.cells[g.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=g.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(e||a)if(e)e=new CKEDITOR.dom.element(e),d.moveToElementEditStart(e),d.checkStartOfBlock()&&d.checkEndOfBlock()||d.selectNodeContents(e);
else return!0;else{for(var c=g.getAscendant("table").$,e=g.getParent().$.cells,c=new CKEDITOR.dom.element(c.insertRow(-1),b.document),h=0,n=e.length;h<n;h++)c.append((new CKEDITOR.dom.element(e[h],b.document)).clone(!1,!1)).appendBogus();d.moveToElementEditStart(c)}d.select(!0);return!0}}return!1}}}var g={editorFocus:!1,modes:{wysiwyg:1,source:1}},d={exec:function(a){a.container.focusNext(!0,a.tabIndex)}},a={exec:function(a){a.container.focusPrevious(!0,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(f){for(var m=
!1!==f.config.enableTabKeyTools,k=f.config.tabSpaces||0,l="";k--;)l+=" ";if(l)f.on("key",function(a){9==a.data.keyCode&&(f.insertText(l),a.cancel())});if(m)f.on("key",function(a){(9==a.data.keyCode&&f.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&f.execCommand("selectPreviousCell"))&&a.cancel()});f.addCommand("blur",CKEDITOR.tools.extend(d,g));f.addCommand("blurBack",CKEDITOR.tools.extend(a,g));f.addCommand("selectNextCell",b());f.addCommand("selectPreviousCell",b(!0))}})})();CKEDITOR.dom.element.prototype.focusNext=
function(b,g){var d=void 0===g?this.getTabIndex():g,a,f,m,k,l,e;if(0>=d)for(l=this.getNextSourceNode(b,CKEDITOR.NODE_ELEMENT);l;){if(l.isVisible()&&0===l.getTabIndex()){m=l;break}l=l.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(l=this.getDocument().getBody().getFirst();l=l.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!a)if(!f&&l.equals(this)){if(f=!0,b){if(!(l=l.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;a=1}}else f&&!this.contains(l)&&(a=1);if(l.isVisible()&&!(0>(e=l.getTabIndex()))){if(a&&
e==d){m=l;break}e>d&&(!m||!k||e<k)?(m=l,k=e):m||0!==e||(m=l,k=e)}}m&&m.focus()};CKEDITOR.dom.element.prototype.focusPrevious=function(b,g){for(var d=void 0===g?this.getTabIndex():g,a,f,m,k=0,l,e=this.getDocument().getBody().getLast();e=e.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!a)if(!f&&e.equals(this)){if(f=!0,b){if(!(e=e.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;a=1}}else f&&!this.contains(e)&&(a=1);if(e.isVisible()&&!(0>(l=e.getTabIndex())))if(0>=d){if(a&&0===l){m=e;break}l>
k&&(m=e,k=l)}else{if(a&&l==d){m=e;break}l<d&&(!m||l>k)&&(m=e,k=l)}}m&&m.focus()};CKEDITOR.plugins.add("table",{requires:"dialog",init:function(b){function g(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!b.blockless){var d=b.lang.table;b.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height,border-collapse}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];td{border*,background-color,vertical-align,width,height}[colspan,rowspan];"+
(b.plugins.dialogadvtab?"table"+b.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(a){if(a.styles){var b;if(a.styles.border)b=CKEDITOR.tools.style.parse.border(a.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var d=a.styles;d["border-left"]&&d["border-left"]===d["border-right"]&&d["border-right"]===d["border-top"]&&
d["border-top"]===d["border-bottom"]&&(b=CKEDITOR.tools.style.parse.border(d["border-top"]))}b&&b.style&&"solid"===b.style&&b.width&&0!==parseFloat(b.width)&&(a.attributes.border=1);"collapse"==a.styles["border-collapse"]&&(a.attributes.cellspacing=0)}}}]]}));b.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",g()));b.addCommand("tableDelete",g({exec:function(a){var b=a.elementPath().contains("table",1);if(b){var d=b.getParent(),g=a.editable();1!=d.getChildCount()||d.is("td",
"th")||d.equals(g)||(b=d);a=a.createRange();a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);b.remove();a.select()}}}));b.ui.addButton&&b.ui.addButton("Table",{label:d.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");b.addMenuItems&&b.addMenuItems({table:{label:d.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:d.deleteTable,command:"tableDelete",group:"table",
order:1}});b.on("doubleclick",function(a){a.data.element.is("table")&&(a.data.dialog="tableProperties")});b.contextMenu&&b.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}});(function(){function b(a,b){function c(a){return b?b.contains(a)&&a.getAscendant("table",!0).equals(b):!0}function e(a){var b=/^(?:td|th)$/;0<d.length||a.type!=CKEDITOR.NODE_ELEMENT||!b.test(a.getName())||a.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(f,
a,"selected_cell",!0),d.push(a))}var d=[],f={};if(!a)return d;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)&&d.push(k);else{var k=new CKEDITOR.dom.walker(k),l;for(k.guard=e;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),d.push(l))}}CKEDITOR.dom.element.clearAllMarkers(f);
return d}function g(a,c){for(var e=p(a)?a:b(a),d=e[0],f=d.getAscendant("table"),d=d.getDocument(),g=e[0].getParent(),h=g.$.rowIndex,e=e[e.length-1],k=e.getParent().$.rowIndex+e.$.rowSpan-1,e=new CKEDITOR.dom.element(f.$.rows[k]),h=c?h:k,g=c?g:e,e=CKEDITOR.tools.buildTableMap(f),f=e[h],h=c?e[h-1]:e[h+1],e=e[0].length,d=d.createElement("tr"),k=0;f[k]&&k<e;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(),
d.append(l),l=l.$);k+=l.colSpan-1}c?d.insertBefore(g):d.insertAfter(g);return d}function d(a){if(a instanceof CKEDITOR.dom.selection){var c=a.getRanges(),e=b(a),f=e[0].getAscendant("table"),g=CKEDITOR.tools.buildTableMap(f),h=e[0].getParent().$.rowIndex,e=e[e.length-1],k=e.getParent().$.rowIndex+e.$.rowSpan-1,e=[];a.reset();for(a=h;a<=k;a++){for(var l=g[a],m=new CKEDITOR.dom.element(f.$.rows[a]),n=0;n<l.length;n++){var p=new CKEDITOR.dom.element(l[n]),r=p.getParent().$.rowIndex;1==p.$.rowSpan?p.remove():
(--p.$.rowSpan,r==a&&(r=g[a+1],r[n-1]?p.insertAfter(new CKEDITOR.dom.element(r[n-1])):(new CKEDITOR.dom.element(f.$.rows[a+1])).append(p,1)));n+=p.$.colSpan-1}e.push(m)}g=f.$.rows;c[0].moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);h=new CKEDITOR.dom.element(g[k+1]||(0<h?g[h-1]:null)||f.$.parentNode);for(a=e.length;0<=a;a--)d(e[a]);return f.$.parentNode?h:(c[0].select(),null)}a instanceof CKEDITOR.dom.element&&(f=a.getAscendant("table"),1==f.$.rows.length?f.remove():a.remove());return null}function a(a){for(var b=
a.getParent().$.cells,c=0,e=0;e<b.length;e++){var d=b[e],c=c+d.colSpan;if(d==a.$)break}return c-1}function f(b,c){for(var e=c?Infinity:0,d=0;d<b.length;d++){var f=a(b[d]);if(c?f<e:f>e)e=f}return e}function m(a,c){for(var e=p(a)?a:b(a),d=e[0].getAscendant("table"),g=f(e,1),e=f(e),h=c?g:e,k=CKEDITOR.tools.buildTableMap(d),d=[],g=[],e=[],l=k.length,m=0;m<l;m++){var n=c?k[m][h-1]:k[m][h+1];d.push(k[m][h]);g.push(n)}for(m=0;m<l;m++)d[m]&&(1<d[m].colSpan&&g[m]==d[m]?(k=d[m],k.colSpan+=1):(h=new CKEDITOR.dom.element(d[m]),
k=h.clone(),k.removeAttribute("colSpan"),k.appendBogus(),k[c?"insertBefore":"insertAfter"].call(k,h),e.push(k),k=k.$),m+=k.rowSpan-1);return e}function k(a){function c(a){var b=a.getRanges(),e,d;if(1!==b.length)return a;b=b[0];if(b.collapsed||0!==b.endOffset)return a;e=b.endContainer;d=e.getName().toLowerCase();if("td"!==d&&"th"!==d)return a;for((d=e.getPrevious())||(d=e.getParent().getPrevious().getLast());d.type!==CKEDITOR.NODE_TEXT&&"br"!==d.getName().toLowerCase();)if(d=d.getLast(),!d)return a;
b.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);return b.select()}CKEDITOR.env.webkit&&!a.isFake&&(a=c(a));var e=a.getRanges(),d=b(a),f=d[0],g=d[d.length-1],d=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(d),k,l,m=[];a.reset();var n=0;for(a=h.length;n<a;n++)for(var p=0,r=h[n].length;p<r;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(d.$.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(d.$.parentNode);m.length==a&&(e[0].moveToPosition(d,CKEDITOR.POSITION_AFTER_END),e[0].select(),d.remove());return k}function l(a,b){var c=a.getStartElement().getAscendant({td:1,th:1},!0);if(c){var e=c.clone();e.appendBogus();b?e.insertBefore(c):e.insertAfter(c)}}function e(a){if(a instanceof CKEDITOR.dom.selection){var d=
a.getRanges(),f=b(a),g=f[0]&&f[0].getAscendant("table"),h;a:{var k=0;h=f.length-1;for(var l={},m,n;m=f[k++];)CKEDITOR.dom.element.setMarker(l,m,"delete_cell",!0);for(k=0;m=f[k++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l);h=n;break a}CKEDITOR.dom.element.clearAllMarkers(l);k=f[0].getParent();(k=k.getPrevious())?h=k.getLast():(k=f[h].getParent(),h=(k=k.getNext())?k.getChild(0):null)}a.reset();for(a=
f.length-1;0<=a;a--)e(f[a]);h?c(h,!0):g&&(d[0].moveToPosition(g,CKEDITOR.POSITION_BEFORE_START),d[0].select(),g.remove())}else a instanceof CKEDITOR.dom.element&&(d=a.getParent(),1==d.getChildCount()?d.remove():a.remove())}function c(a,b){var c=a.getDocument(),e=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(e.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 h(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(a,c,e){var d=b(a),f;if((c?1!=d.length:2>d.length)||(f=a.getCommonAncestor())&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("table"))return!1;a=d[0];f=a.getAscendant("table");var g=CKEDITOR.tools.buildTableMap(f),k=g.length,l=g[0].length,m=a.getParent().$.rowIndex,n=h(g,m,a),p;if(c){var r;try{var u=parseInt(a.getAttribute("rowspan"),10)||1;p=parseInt(a.getAttribute("colspan"),
10)||1;r=g["up"==c?m-u:"down"==c?m+u:m]["left"==c?n-p:"right"==c?n+p:n]}catch(x){return!1}if(!r||a.$==r)return!1;d["up"==c||"left"==c?"unshift":"push"](new CKEDITOR.dom.element(r))}c=a.getDocument();var E=m,u=r=0,R=!e&&new CKEDITOR.dom.documentFragment(c),J=0;for(c=0;c<d.length;c++){p=d[c];var L=p.getParent(),Q=p.getFirst(),N=p.$.colSpan,K=p.$.rowSpan,L=L.$.rowIndex,O=h(g,L,p),J=J+N*K,u=Math.max(u,O-n+N);r=Math.max(r,L-m+K);e||(N=p,(K=N.getBogus())&&K.remove(),N.trim(),p.getChildren().count()&&(L==
E||!Q||Q.isBlockBoundary&&Q.isBlockBoundary({br:1})||(E=R.getLast(CKEDITOR.dom.walker.whitespaces(!0)),!E||E.is&&E.is("br")||R.append("br")),p.moveChildren(R)),c?p.remove():p.setHtml(""));E=L}if(e)return r*u==J;R.moveChildren(a);a.appendBogus();u>=l?a.removeAttribute("rowSpan"):a.$.rowSpan=r;r>=k?a.removeAttribute("colSpan"):a.$.colSpan=u;e=new CKEDITOR.dom.nodeList(f.$.rows);d=e.count();for(c=d-1;0<=c;c--)f=e.getItem(c),f.$.cells.length||(f.remove(),d++);return a}function r(a,c){var e=b(a);if(1<
e.length)return!1;if(c)return!0;var e=e[0],d=e.getParent(),f=d.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(f),k=d.$.rowIndex,l=h(g,k,e),m=e.$.rowSpan,n;if(1<m){n=Math.ceil(m/2);for(var m=Math.floor(m/2),d=k+n,f=new CKEDITOR.dom.element(f.$.rows[d]),g=h(g,d),p,d=e.clone(),k=0;k<g.length;k++)if(p=g[k],p.parentNode==f.$&&k>l){d.insertBefore(new CKEDITOR.dom.element(p));break}else p=null;p||f.append(d)}else for(m=n=1,f=d.clone(),f.insertAfter(d),f.append(d=e.clone()),p=h(g,k),l=0;l<p.length;l++)p[l].rowSpan++;
d.appendBogus();e.$.rowSpan=n;d.$.rowSpan=m;1==n&&e.removeAttribute("rowSpan");1==m&&d.removeAttribute("rowSpan");return d}function u(a,c){var e=b(a);if(1<e.length)return!1;if(c)return!0;var e=e[0],d=e.getParent(),f=d.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(f),g=h(f,d.$.rowIndex,e),k=e.$.colSpan;if(1<k)d=Math.ceil(k/2),k=Math.floor(k/2);else{for(var k=d=1,l=[],m=0;m<f.length;m++){var n=f[m];l.push(n[g]);1<n[g].rowSpan&&(m+=n[g].rowSpan-1)}for(f=0;f<l.length;f++)l[f].colSpan++}f=e.clone();
f.insertAfter(e);f.appendBogus();e.$.colSpan=d;f.$.colSpan=k;1==d&&e.removeAttribute("colSpan");1==k&&f.removeAttribute("colSpan");return f}var p=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(a){function f(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 h(b,c){var e=a.addCommand(b,c);a.addFeature(e)}var p=a.lang.table,
x=CKEDITOR.tools.style.parse,w="td{width} td{height} td{border-color} td{background-color} td{white-space} td{vertical-align} td{text-align} td[colspan] td[rowspan] th".split(" ");h("cellProperties",new CKEDITOR.dialogCommand("cellProperties",f({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:w,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");h("rowDelete",f({requiredContent:"table",exec:function(a){a=a.getSelection();(a=d(a))&&c(a)}}));h("rowInsertBefore",f({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);g(a,!0)}}));
h("rowInsertAfter",f({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);g(a)}}));h("columnDelete",f({requiredContent:"table",exec:function(a){a=a.getSelection();(a=k(a))&&c(a,!0)}}));h("columnInsertBefore",f({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);m(a,!0)}}));h("columnInsertAfter",f({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);m(a)}}));h("cellDelete",f({requiredContent:"table",exec:function(a){a=a.getSelection();e(a)}}));h("cellMerge",
f({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a,b){b.cell=n(a.getSelection());c(b.cell,!0)}}));h("cellMergeRight",f({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a,b){b.cell=n(a.getSelection(),"right");c(b.cell,!0)}}));h("cellMergeDown",f({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a,b){b.cell=n(a.getSelection(),"down");c(b.cell,!0)}}));h("cellVerticalSplit",f({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",
exec:function(a){c(u(a.getSelection()))}}));h("cellHorizontalSplit",f({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){c(r(a.getSelection()))}}));h("cellInsertBefore",f({requiredContent:"table",exec:function(a){a=a.getSelection();l(a,!0)}}));h("cellInsertAfter",f({requiredContent:"table",exec:function(a){a=a.getSelection();l(a)}}));a.addMenuItems&&a.addMenuItems({tablecell:{label:p.cell.menu,group:"tablecell",order:1,getItems:function(){var c=a.getSelection(),e=b(c),c=
{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:n(c,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:n(c,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:n(c,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:u(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:r(c,!0)?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED};a.filter.check(w)&&(c.tablecell_properties=0<e.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);return c}},tablecell_insertBefore:{label:p.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:p.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:p.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:p.cell.merge,group:"tablecell",command:"cellMerge",
order:16},tablecell_merge_right:{label:p.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:p.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:p.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:p.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:p.cell.title,group:"tablecellproperties",command:"cellProperties",
order:21},tablerow:{label:p.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:p.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:p.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:p.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},
tablecolumn:{label:p.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:p.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:p.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:p.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:a,insertRow:g,insertColumn:m,getSelectedCells:b};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)})();CKEDITOR.tools.buildTableMap=function(b,g,d,a,f){b=b.$.rows;d=d||0;a="number"===typeof a?a:b.length-1;f="number"===typeof f?
f:-1;var m=-1,k=[];for(g=g||0;g<=a;g++){m++;!k[m]&&(k[m]=[]);for(var l=-1,e=d;e<=(-1===f?b[g].cells.length-1:f);e++){var c=b[g].cells[e];if(!c)break;for(l++;k[m][l];)l++;for(var h=isNaN(c.colSpan)?1:c.colSpan,c=isNaN(c.rowSpan)?1:c.rowSpan,n=0;n<c&&!(g+n>a);n++){k[m+n]||(k[m+n]=[]);for(var r=0;r<h;r++)k[m+n][l+r]=b[g].cells[e]}l+=h-1;if(-1!==f&&l>=f)break}}return k};(function(){function b(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function g(a,b){var c=a.getAscendant("table"),
d=b.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(c),g=e(a),h=e(b),k=[],l={},m,n;c.contains(d)&&(b=b.getAscendant({td:1,th:1}),h=e(b));g>h&&(c=g,g=h,h=c,c=a,a=b,b=c);for(c=0;c<f[g].length;c++)if(a.$===f[g][c]){m=c;break}for(c=0;c<f[h].length;c++)if(b.$===f[h][c]){n=c;break}m>n&&(c=m,m=n,n=c);for(c=g;c<=h;c++)for(g=m;g<=n;g++)d=new CKEDITOR.dom.element(f[c][g]),d.$&&!d.getCustomData("selected_cell")&&(k.push(d),CKEDITOR.dom.element.setMarker(l,d,"selected_cell",!0));CKEDITOR.dom.element.clearAllMarkers(l);
return k}function d(a){return(a=a.editable().findOne(".cke_table-faked-selection"))&&a.getAscendant("table")}function a(a,b){var c=a.editable().find(".cke_table-faked-selection"),e=a.editable().findOne("[data-cke-table-faked-selection-table]"),d;a.fire("lockSnapshot");a.editable().removeClass("cke_table-faked-selection-editor");for(d=0;d<c.count();d++)c.getItem(d).removeClass("cke_table-faked-selection");e&&e.data("cke-table-faked-selection-table",!1);a.fire("unlockSnapshot");b&&(t={active:!1},a.getSelection().isInTable()&&
a.getSelection().reset())}function f(a,b){var c=[],e,d;for(d=0;d<b.length;d++)e=a.createRange(),e.setStartBefore(b[d]),e.setEndAfter(b[d]),c.push(e);a.getSelection().selectRanges(c)}function m(a){var b=a.editable().find(".cke_table-faked-selection");1>b.count()||(b=g(b.getItem(0),b.getItem(b.count()-1)),f(a,b))}function k(c,e,d){var h=x(c.getSelection(!0));e=e.is("table")?null:e;var k;(k=t.active&&!t.first)&&!(k=e)&&(k=c.getSelection().getRanges(),k=1<h.length||k[0]&&!k[0].collapsed?!0:!1);if(k)t.first=
e||h[0],t.dirty=e?!1:1!==h.length;else if(t.active&&e&&t.first.getAscendant("table").equals(e.getAscendant("table"))){h=g(t.first,e);if(!t.dirty&&1===h.length&&!b(d.data.getTarget()))return a(c,"mouseup"===d.name);t.dirty=!0;t.last=e;f(c,h)}}function l(b){var c=(b=b.editor||b.sender.editor)&&b.getSelection(),e=c&&c.getRanges()||[],d=e&&e[0].getEnclosedNode(),d=d&&d.type==CKEDITOR.NODE_ELEMENT&&d.is("img"),f;if(c&&(a(b),c.isInTable()&&c.isFake))if(d)b.getSelection().reset();else if(!e[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored")){1===
e.length&&e[0]._getTableElement()&&e[0]._getTableElement().is("table")&&(f=e[0]._getTableElement());f=x(c,f);b.fire("lockSnapshot");for(c=0;c<f.length;c++)f[c].addClass("cke_table-faked-selection");0<f.length&&(b.editable().addClass("cke_table-faked-selection-editor"),f[0].getAscendant("table").data("cke-table-faked-selection-table",""));b.fire("unlockSnapshot")}}function e(a){return a.getAscendant("tr",!0).$.rowIndex}function c(e){function f(a,b){return a&&b?a.equals(b)||a.contains(b)||b.contains(a)||
a.getCommonAncestor(b).is(u):!1}function g(a){return!a.getAscendant("table",!0)&&a.getDocument().equals(l.document)}function h(a,b,c,e){if("mousedown"===a.name&&(CKEDITOR.tools.getMouseButton(a)===CKEDITOR.MOUSE_BUTTON_LEFT||!e))return!0;if(b=a.name===(CKEDITOR.env.gecko?"mousedown":"mouseup")&&!g(a.data.getTarget()))a=a.data.getTarget().getAscendant({td:1,th:1},!0),b=!(a&&a.hasClass("cke_table-faked-selection"));return b}if(e.data.getTarget().getName&&("mouseup"===e.name||!b(e.data.getTarget()))){var l=
e.editor||e.listenerData.editor,n=l.getSelection(1),p=d(l),r=e.data.getTarget(),q=r&&r.getAscendant({td:1,th:1},!0),r=r&&r.getAscendant("table",!0),u={table:1,thead:1,tbody:1,tfoot:1,tr:1,td:1,th:1};r&&r.hasAttribute("data-cke-tableselection-ignored")||(h(e,n,p,r)&&a(l,!0),!t.active&&"mousedown"===e.name&&CKEDITOR.tools.getMouseButton(e)===CKEDITOR.MOUSE_BUTTON_LEFT&&r&&(t={active:!0},CKEDITOR.document.on("mouseup",c,null,{editor:l})),(q||r)&&k(l,q||r,e),"mouseup"===e.name&&(CKEDITOR.tools.getMouseButton(e)===
CKEDITOR.MOUSE_BUTTON_LEFT&&(g(e.data.getTarget())||f(p,r))&&m(l),t={active:!1},CKEDITOR.document.removeListener("mouseup",c)))}}function h(a){var b=a.data.getTarget().getAscendant("table",!0);b&&b.hasAttribute("data-cke-tableselection-ignored")||(b=a.data.getTarget().getAscendant({td:1,th:1},!0))&&!b.hasClass("cke_table-faked-selection")&&(a.cancel(),a.data.preventDefault())}function n(a,b){function c(a){a.cancel()}var e=a.getSelection(),d=e.createBookmarks(),f=a.document,g=a.createRange(),h=f.getDocumentElement().$,
k=CKEDITOR.env.ie&&9>CKEDITOR.env.version,l=a.blockless||CKEDITOR.env.ie?"span":"div",m,n,p,r;f.getById("cke_table_copybin")||(m=f.createElement(l),n=f.createElement(l),n.setAttributes({id:"cke_table_copybin","data-cke-temp":"1"}),m.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"}),m.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-5000px"),m.setHtml(a.getSelectedHtml(!0)),a.fire("lockSnapshot"),n.append(m),a.editable().append(n),r=a.on("selectionChange",c,
null,null,0),k&&(p=h.scrollTop),g.selectNodeContents(m),g.select(),k&&(h.scrollTop=p),setTimeout(function(){n.remove();e.selectBookmarks(d);r.removeListener();a.fire("unlockSnapshot");b&&(a.extractSelectedHtml(),a.fire("saveSnapshot"))},100))}function r(a){var b=a.editor||a.sender.editor,c=b.getSelection();c.isInTable()&&(c.getRanges()[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored")||n(b,"cut"===a.name))}function u(a){this._reset();a&&this.setSelectedCells(a)}function p(a,
b,c){a.on("beforeCommandExec",function(c){-1!==CKEDITOR.tools.array.indexOf(b,c.data.name)&&(c.data.selectedCells=x(a.getSelection()))});a.on("afterCommandExec",function(e){-1!==CKEDITOR.tools.array.indexOf(b,e.data.name)&&c(a,e.data)})}var t={active:!1},v,x,q,B,w;u.prototype={};u.prototype._reset=function(){this.cells={first:null,last:null,all:[]};this.rows={first:null,last:null}};u.prototype.setSelectedCells=function(a){this._reset();a=a.slice(0);this._arraySortByDOMOrder(a);this.cells.all=a;this.cells.first=
a[0];this.cells.last=a[a.length-1];this.rows.first=a[0].getAscendant("tr");this.rows.last=this.cells.last.getAscendant("tr")};u.prototype.getTableMap=function(){var a=q(this.cells.first),b;a:{b=this.cells.last;var c=b.getAscendant("table"),d=e(b),c=CKEDITOR.tools.buildTableMap(c),f;for(f=0;f<c[d].length;f++)if((new CKEDITOR.dom.element(c[d][f])).equals(b)){b=f;break a}b=void 0}return CKEDITOR.tools.buildTableMap(this._getTable(),e(this.rows.first),a,e(this.rows.last),b)};u.prototype._getTable=function(){return this.rows.first.getAscendant("table")};
u.prototype.insertRow=function(a,b,c){if("undefined"===typeof a)a=1;else if(0>=a)return;for(var e=this.cells.first.$.cellIndex,d=this.cells.last.$.cellIndex,f=c?[]:this.cells.all,g,h=0;h<a;h++)g=B(c?this.cells.all:f,b),g=CKEDITOR.tools.array.filter(g.find("td, th").toArray(),function(a){return c?!0:a.$.cellIndex>=e&&a.$.cellIndex<=d}),f=b?g.concat(f):f.concat(g);this.setSelectedCells(f)};u.prototype.insertColumn=function(a){function b(a){a=e(a);return a>=f&&a<=g}if("undefined"===typeof a)a=1;else if(0>=
a)return;for(var c=this.cells,d=c.all,f=e(c.first),g=e(c.last),c=0;c<a;c++)d=d.concat(CKEDITOR.tools.array.filter(w(d),b));this.setSelectedCells(d)};u.prototype.emptyCells=function(a){a=a||this.cells.all;for(var b=0;b<a.length;b++)a[b].setHtml("")};u.prototype._arraySortByDOMOrder=function(a){a.sort(function(a,b){return a.getPosition(b)&CKEDITOR.POSITION_PRECEDING?-1:1})};var z={onPaste:function(a){function b(a){var c=e.createRange();c.selectNodeContents(a);c.select()}function c(a){return Math.max.apply(null,
CKEDITOR.tools.array.map(a,function(a){return a.length},0))}var e=a.editor,d=e.getSelection(),h=x(d),k=d.isInTable(!0)&&this.isBoundarySelection(d),l=this.findTableInPastedContent(e,a.data.dataValue),m,n;(function(a,b,c,e){a=a.getRanges();var d=a.length&&a[0]._getTableElement({table:1});if(!b.length||d&&d.hasAttribute("data-cke-tableselection-ignored")||e&&!c)return!1;if(b=!e)(b=a[0])?(b=b.clone(),b.enlarge(CKEDITOR.ENLARGE_ELEMENT),b=(b=b.getEnclosedNode())&&b.is&&b.is(CKEDITOR.dtd.$tableContent)):
b=void 0,b=!b;return b?!1:!0})(d,h,l,k)&&(h=h[0].getAscendant("table"),m=new u(x(d,h)),e.once("afterPaste",function(){var a;if(n){a=new CKEDITOR.dom.element(n[0][0]);var b=n[n.length-1];a=g(a,new CKEDITOR.dom.element(b[b.length-1]))}else a=m.cells.all;f(e,a)}),l?(a.stop(),k?(m.insertRow(1,1===k,!0),d.selectElement(m.rows.first)):(m.emptyCells(),f(e,m.cells.all)),a=m.getTableMap(),n=CKEDITOR.tools.buildTableMap(l),m.insertRow(n.length-a.length),m.insertColumn(c(n)-c(a)),a=m.getTableMap(),this.pasteTable(m,
a,n),e.fire("saveSnapshot"),setTimeout(function(){e.fire("afterPaste")},0)):(b(m.cells.first),e.once("afterPaste",function(){e.fire("lockSnapshot");m.emptyCells(m.cells.all.slice(1));f(e,m.cells.all);e.fire("unlockSnapshot")})))},isBoundarySelection:function(a){a=a.getRanges()[0];var b=a.endContainer.getAscendant("tr",!0);if(b&&a.collapsed){if(a.checkBoundaryOfElement(b,CKEDITOR.START))return 1;if(a.checkBoundaryOfElement(b,CKEDITOR.END))return 2}return 0},findTableInPastedContent:function(a,b){var c=
a.dataProcessor,e=new CKEDITOR.dom.element("body");c||(c=new CKEDITOR.htmlDataProcessor(a));e.setHtml(c.toHtml(b),{fixForBody:!1});return 1<e.getChildCount()?null:e.findOne("table")},pasteTable:function(a,b,c){var e,d=q(a.cells.first),f=a._getTable(),g={},h,k,l,m;for(l=0;l<c.length;l++)for(h=new CKEDITOR.dom.element(f.$.rows[a.rows.first.$.rowIndex+l]),m=0;m<c[l].length;m++)if(k=new CKEDITOR.dom.element(c[l][m]),e=b[l]&&b[l][m]?new CKEDITOR.dom.element(b[l][m]):null,k&&!k.getCustomData("processed")){if(e&&
e.getParent())k.replace(e);else if(0===m||c[l][m-1])(e=0!==m?new CKEDITOR.dom.element(c[l][m-1]):null)&&h.equals(e.getParent())?k.insertAfter(e):0<d?h.$.cells[d]?k.insertAfter(new CKEDITOR.dom.element(h.$.cells[d])):h.append(k):h.append(k,!0);CKEDITOR.dom.element.setMarker(g,k,"processed",!0)}else k.getCustomData("processed")&&e&&e.remove();CKEDITOR.dom.element.clearAllMarkers(g)}};CKEDITOR.plugins.tableselection={getCellsBetween:g,keyboardIntegration:function(a){function b(a){var c=a.getEnclosedNode();
c&&"function"===typeof c.is&&c.is({td:1,th:1})?c.setText(""):a.deleteContents();CKEDITOR.tools.array.forEach(a._find("td"),function(a){a.appendBogus()})}var c=a.editable();c.attachListener(c,"keydown",function(a){function c(b,e){if(!e.length)return null;var f=a.createRange(),g=CKEDITOR.dom.range.mergeRanges(e);CKEDITOR.tools.array.forEach(g,function(a){a.enlarge(CKEDITOR.ENLARGE_ELEMENT)});var h=g[0].getBoundaryNodes(),k=h.startNode,h=h.endNode;if(k&&k.is&&k.is(d)){for(var l=k.getAscendant("table",
!0),m=k.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,l),n=!1,p=function(a){return!k.contains(a)&&a.is&&a.is("td","th")};m&&!p(m);)m=m.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,l);!m&&h&&h.is&&!h.is("table")&&h.getNext()&&(m=h.getNext().findOne("td, th"),n=!0);if(m)f["moveToElementEdit"+(n?"Start":"End")](m);else f.setStartBefore(k.getAscendant("table",!0)),f.collapse(!0);g[0].deleteContents();return[f]}if(k)return f.moveToElementEditablePosition(k),[f]}var e={37:1,38:1,39:1,40:1,8:1,46:1,13:1},
d=CKEDITOR.tools.extend({table:1},CKEDITOR.dtd.$tableContent);delete d.td;delete d.th;return function(d){var f=d.data.getKey(),g=d.data.getKeystroke(),h,k=37===f||38==f,l,m,n;if(e[f]&&!a.readOnly&&(h=a.getSelection())&&h.isInTable()&&h.isFake){l=h.getRanges();m=l[0]._getTableElement();n=l[l.length-1]._getTableElement();if(13!==f||a.plugins.enterkey)d.data.preventDefault(),d.cancel();if(36<f&&41>f)l[0].moveToElementEditablePosition(k?m:n,!k),h.selectRanges([l[0]]);else if(13!==f||13===g||g===CKEDITOR.SHIFT+
13){for(d=0;d<l.length;d++)b(l[d]);(d=c(m,l))?l=d:l[0].moveToElementEditablePosition(m);h.selectRanges(l);13===f&&a.plugins.enterkey?(a.fire("lockSnapshot"),13===g?a.execCommand("enter"):a.execCommand("shiftEnter"),a.fire("unlockSnapshot"),a.fire("saveSnapshot")):13!==f&&a.fire("saveSnapshot")}}}}(a),null,null,-1);c.attachListener(c,"keypress",function(c){var e=a.getSelection(),d=c.data.$.charCode||13===c.data.getKey(),f;if(!a.readOnly&&e&&e.isInTable()&&e.isFake&&d&&!(c.data.getKeystroke()&CKEDITOR.CTRL)){c=
e.getRanges();d=c[0].getEnclosedNode().getAscendant({td:1,th:1},!0);for(f=0;f<c.length;f++)b(c[f]);d&&(c[0].moveToElementEditablePosition(d),e.selectRanges([c[0]]))}},null,null,-1)}};CKEDITOR.plugins.add("tableselection",{requires:"clipboard,tabletools",isSupportedEnvironment:function(){return!(CKEDITOR.env.ie&&11>CKEDITOR.env.version)},onLoad:function(){v=CKEDITOR.plugins.tabletools;x=v.getSelectedCells;q=v.getCellColIndex;B=v.insertRow;w=v.insertColumn;CKEDITOR.document.appendStyleSheet(this.path+
"styles/tableselection.css")},init:function(b){this.isSupportedEnvironment()&&(b.addContentsCss&&b.addContentsCss(this.path+"styles/tableselection.css"),b.on("contentDom",function(){var a=b.editable(),e=a.isInline()?a:b.document,d={editor:b};a.attachListener(e,"mousedown",c,null,d);a.attachListener(e,"mousemove",c,null,d);a.attachListener(e,"mouseup",c,null,d);a.attachListener(a,"dragstart",h);a.attachListener(b,"selectionCheck",l);CKEDITOR.plugins.tableselection.keyboardIntegration(b);CKEDITOR.plugins.clipboard&&
!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&(a.attachListener(a,"cut",r),a.attachListener(a,"copy",r))}),b.on("paste",z.onPaste,z),p(b,"rowInsertBefore rowInsertAfter columnInsertBefore columnInsertAfter cellInsertBefore cellInsertAfter".split(" "),function(a,b){f(a,b.selectedCells)}),p(b,["cellMerge","cellMergeRight","cellMergeDown"],function(a,b){f(a,[b.commandData.cell])}),p(b,["cellDelete"],function(b){a(b,!0)}))}})})();(function(){CKEDITOR.plugins.add("templates",{requires:"dialog",
init:function(b){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js"));b.addCommand("templates",new CKEDITOR.dialogCommand("templates"));b.ui.addButton&&b.ui.addButton("Templates",{label:b.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var b={},g={};CKEDITOR.addTemplates=function(d,a){b[d]=a};CKEDITOR.getTemplates=function(d){return b[d]};CKEDITOR.loadTemplates=function(b,a){for(var f=[],m=0,k=b.length;m<k;m++)g[b[m]]||(f.push(b[m]),g[b[m]]=1);f.length?
CKEDITOR.scriptLoader.load(f,a):setTimeout(a,0)}})();CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")];CKEDITOR.config.templates_replaceContent=!0;"use strict";(function(){function b(a,b){return CKEDITOR.tools.array.reduce(b,function(a,b){return b(a)},a)}var g=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],d={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(b){function c(a){f.enabled&&!1!==a.data.command.canUndo&&f.save()}function d(){f.enabled=
b.readOnly?!1:"wysiwyg"==b.mode;f.onChange()}var f=b.undoManager=new a(b),l=f.editingHandler=new k(f),m=b.addCommand("undo",{exec:function(){f.undo()&&(b.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),p=b.addCommand("redo",{exec:function(){f.redo()&&(b.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});b.setKeystroke([[g[0],"undo"],[g[1],"redo"],[g[2],"redo"]]);f.onChange=function(){m.setState(f.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);
p.setState(f.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};b.on("beforeCommandExec",c);b.on("afterCommandExec",c);b.on("saveSnapshot",function(a){f.save(a.data&&a.data.contentOnly)});b.on("contentDom",l.attachListeners,l);b.on("instanceReady",function(){b.fire("saveSnapshot")});b.on("beforeModeUnload",function(){"wysiwyg"==b.mode&&f.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(){f.reset();b.fire("saveSnapshot")};b.on("updateSnapshot",function(){f.currentImage&&f.update()});b.on("lockSnapshot",function(a){a=a.data;f.lock(a&&a.dontUpdate,a&&a.forceUpdate)});b.on("unlockSnapshot",f.unlock,f)}});CKEDITOR.plugins.undo={};var a=CKEDITOR.plugins.undo.UndoManager=function(a){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=a.config.undoStackSize||20;this.strokesLimit=
25;this._filterRules=[];this.editor=a;this.reset();CKEDITOR.env.ie&&this.addFilterRule(function(a){return a.replace(/\s+data-cke-expando=".*?"/g,"")})};a.prototype={type:function(b,c){var d=a.getKeyGroup(b),f=this.strokesRecorded[d]+1;c=c||f>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());c?(f=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[d]=f;this.previousKeyGroup=d},keyGroupChanged:function(b){return a.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(a,b,d){var g=this.editor;if(this.locked||"ready"!=g.status||"wysiwyg"!=g.mode)return!1;var k=g.editable();if(!k||
"ready"!=k.status)return!1;k=this.snapshots;b||(b=new f(g));if(!1===b.contents)return!1;if(this.currentImage)if(b.equalsContent(this.currentImage)){if(a||b.equalsSelection(this.currentImage))return!1}else!1!==d&&g.fire("change");k.splice(this.index+1,k.length-this.index-1);k.length==this.limit&&k.shift();this.index=k.push(b)-1;this.currentImage=b;!1!==d&&this.refreshState();return!0},restoreImage:function(a){var b=this.editor,d;a.bookmarks&&(b.focus(),d=b.getSelection());this.locked={level:999};this.editor.loadSnapshot(a.contents);
a.bookmarks?d.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(d=this.editor.document.getBody().$.createTextRange(),d.collapse(!0),d.select());this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();b.fire("change")},getNextImage:function(a){var b=this.snapshots,d=this.currentImage,f;if(d)if(a)for(f=this.index-1;0<=f;f--){if(a=b[f],!d.equalsContent(a))return a.index=f,a}else for(f=this.index+1;f<b.length;f++)if(a=b[f],!d.equalsContent(a))return a.index=
f,a;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 a=this.getNextImage(!0);if(a)return this.restoreImage(a),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var a=this.getNextImage(!1);if(a)return this.restoreImage(a),!0}return!1},update:function(a){if(!this.locked){a||(a=new f(this.editor));for(var b=this.index,d=this.snapshots;0<b&&this.currentImage.equalsContent(d[b-
1]);)--b;d.splice(b,this.index-b+1,a);this.index=b;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return!1;var b=this.snapshots,d=b[b.length-1];return d.equalsContent(a)&&!d.equalsSelection(a)?(this.currentImage=b[b.length-1]=a,!0):!1},lock:function(a,b){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var d=null;if(b)d=!0;else{var g=new f(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(g)&&(d=g)}this.locked={update:d,level:1}}},
unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;if(!0===a)this.update();else if(a){var b=new f(this.editor,!0);a.equalsContent(b)||this.update()}}},addFilterRule:function(a){this._filterRules.push(a)}};a.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};a.keyGroups={PRINTABLE:0,FUNCTIONAL:1};a.isNavigationKey=function(b){return!!a.navigationKeyCodes[b]};a.getKeyGroup=function(b){var c=a.keyGroups;return d[b]?c.FUNCTIONAL:c.PRINTABLE};a.getOppositeKeyGroup=
function(b){var c=a.keyGroups;return b==c.FUNCTIONAL?c.PRINTABLE:c.FUNCTIONAL};a.ieFunctionalKeysBug=function(b){return CKEDITOR.env.ie&&a.getKeyGroup(b)==a.keyGroups.FUNCTIONAL};var f=CKEDITOR.plugins.undo.Image=function(a,c){this.editor=a;a.fire("beforeUndoImage");var d=a.getSnapshot();d&&(this.contents=b(d,a.undoManager._filterRules));c||(this.bookmarks=(d=d&&a.getSelection())&&d.createBookmarks2(!0));a.fire("afterUndoImage")},m=/\b(?:href|src|name)="[^"]*?"/gi;f.prototype={equalsContent:function(a){var b=
this.contents;a=a.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(b=b.replace(m,""),a=a.replace(m,""));return b!=a?!1:!0},equalsSelection:function(a){var b=this.bookmarks;a=a.bookmarks;if(b||a){if(!b||!a||b.length!=a.length)return!1;for(var d=0;d<b.length;d++){var f=b[d],g=a[d];if(f.startOffset!=g.startOffset||f.endOffset!=g.endOffset||!CKEDITOR.tools.arrayCompare(f.start,g.start)||!CKEDITOR.tools.arrayCompare(f.end,g.end))return!1}}return!0}};var k=CKEDITOR.plugins.undo.NativeEditingHandler=
function(a){this.undoManager=a;this.ignoreInputEvent=!1;this.keyEventsStack=new l;this.lastKeydownImage=null};k.prototype={onKeydown:function(b){var c=b.data.getKey();if(229!==c)if(-1<CKEDITOR.tools.indexOf(g,b.data.getKeystroke()))b.data.preventDefault();else if(this.keyEventsStack.cleanUp(b),b=this.undoManager,this.keyEventsStack.getLast(c)||this.keyEventsStack.push(c),this.lastKeydownImage=new f(b.editor),a.isNavigationKey(c)||this.undoManager.keyGroupChanged(c))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 a=this.keyEventsStack.getLast();a||(a=this.keyEventsStack.push(0));this.keyEventsStack.increment(a.keyCode);this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(a.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(!(a.ieFunctionalKeysBug(b)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new f(c.editor,!0))))if(0<d)c.type(b);else if(a.isNavigationKey(b))this.onNavigationKey(!0)},onNavigationKey:function(a){var b=this.undoManager;!a&&b.save(!0,null,!1)||b.updateSelection(new f(b.editor));b.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(b){d.onKeydown(b);if(a.ieFunctionalKeysBug(b.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(a){a=this.stack.push({keyCode:a,inputs:0});return this.stack[a-1]},getLastIndex:function(a){if("number"!=typeof a)return this.stack.length-1;for(var b=this.stack.length;b--;)if(this.stack[b].keyCode==a)return b;return-1},getLast:function(a){a=this.getLastIndex(a);
return-1!=a?this.stack[a]:null},increment:function(a){this.getLast(a).inputs++},remove:function(a){a=this.getLastIndex(a);-1!=a&&this.stack.splice(a,1)},resetInputs:function(a){if("number"==typeof a)this.getLast(a).inputs=0;else for(a=this.stack.length;a--;)this.stack[a].inputs=0},getTotalInputs:function(){for(var a=this.stack.length,b=0;a--;)b+=this.stack[a].inputs;return b},cleanUp:function(a){a=a.data.$;a.ctrlKey||a.metaKey||this.remove(17);a.shiftKey||this.remove(16);a.altKey||this.remove(18)}}})();
"use strict";(function(){function b(a,b){CKEDITOR.tools.extend(this,{editor:a,editable:a.editable(),doc:a.document,win:a.window},b,!0);this.inline=this.editable.isInline();this.inline||(this.frame=this.win.getFrame());this.target=this[this.inline?"editable":"doc"]}function g(a,b){CKEDITOR.tools.extend(this,b,{editor:a},!0)}function d(a,b){var d=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:d,inline:d.isInline(),doc:a.document,win:a.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},
b,!0);this.hidden={};this.visible={};this.inline||(this.frame=this.win.getFrame());this.queryViewport();var g=CKEDITOR.tools.bind(this.queryViewport,this),k=CKEDITOR.tools.bind(this.hideVisible,this),l=CKEDITOR.tools.bind(this.removeAll,this);d.attachListener(this.winTop,"resize",g);d.attachListener(this.winTop,"scroll",g);d.attachListener(this.winTop,"resize",k);d.attachListener(this.win,"scroll",k);d.attachListener(this.inline?d: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);d.attachListener(a,"resize",g);d.attachListener(a,"mode",l);a.on("destroy",l);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({},f,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},f,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,!0))})}function a(a){var b;if(b=a&&a.type==CKEDITOR.NODE_ELEMENT)b=!(k[a.getComputedStyle("float")]||k[a.getAttribute("align")]);return b&&
!l[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;b.prototype={start:function(a){var b=this,d=this.editor,f=this.doc,g,k,l,m,v=CKEDITOR.tools.eventsBuffer(50,function(){d.readOnly||"wysiwyg"!=d.mode||(b.relations={},(k=f.$.elementFromPoint(l,m))&&k.nodeType&&(g=new CKEDITOR.dom.element(k),b.traverseSearch(g),isNaN(l+m)||b.pixelSearch(g,l,m),a&&a(b.relations,l,m)))});this.listener=this.editable.attachListener(this.target,
"mousemove",function(a){l=a.data.$.clientX;m=a.data.$.clientY;v.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){v.reset()})},stop:function(){this.listener&&this.listener.removeListener()},getRange:function(){var a={};a[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START;a[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END;a[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START;return function(b){var d=this.editor.createRange();d.moveToPosition(this.relations[b.uid].element,
a[b.type]);return d}}(),store:function(){function b(a,e,d){var f=a.getUniqueId();f in d?d[f].type|=e:d[f]={element:a,type:e}}return function(c,d){var f;d&CKEDITOR.LINEUTILS_AFTER&&a(f=c.getNext())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),d^=CKEDITOR.LINEUTILS_AFTER);d&CKEDITOR.LINEUTILS_INSIDE&&a(f=c.getFirst())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),d^=CKEDITOR.LINEUTILS_INSIDE);b(c,d,this.relations)}}(),traverseSearch:function(b){var c,d,f;do if(f=b.$["data-cke-expando"],
!(f&&f in this.relations)){if(b.equals(this.editable))break;if(a(b))for(c in this.lookups)(d=this.lookups[c](b))&&this.store(b,d)}while((!b||b.type!=CKEDITOR.NODE_ELEMENT||"true"!=b.getAttribute("contenteditable"))&&(b=b.getParent()))},pixelSearch:function(){function b(e,d,f,g,k){for(var l=0,m;k(f);){f+=g;if(25==++l)break;if(m=this.doc.$.elementFromPoint(d,f))if(m==e)l=0;else if(c(e,m)&&(l=0,a(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(c,d,f){var g=this.win.getViewPaneSize().height,k=b.call(this,c.$,d,f,-1,function(a){return 0<a});d=b.call(this,c.$,d,f,1,function(a){return a<g});if(k)for(this.traverseSearch(k);!k.getParent().equals(c);)k=k.getParent();if(d)for(this.traverseSearch(d);!d.getParent().equals(c);)d=d.getParent();for(;k||d;){k&&(k=k.getNext(a));if(!k||k.equals(d))break;this.traverseSearch(k);d&&(d=d.getPrevious(a));if(!d||d.equals(k))break;this.traverseSearch(d)}}}(),
greedySearch:function(){this.relations={};for(var b=this.editable.getElementsByTag("*"),c=0,d,f,g;d=b.getItem(c++);)if(!d.equals(this.editable)&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasAttribute("contenteditable")||!d.isReadOnly())&&a(d)&&d.isVisible())for(g in this.lookups)(f=this.lookups[g](d))&&this.store(d,f);return this.relations}};g.prototype={locate:function(){function b(c,e){var d=c.element[e===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return d&&a(d)?(c.siblingRect=d.getClientRect(),
e==CKEDITOR.LINEUTILS_BEFORE?(c.siblingRect.bottom+c.elementRect.top)/2:(c.elementRect.bottom+c.siblingRect.top)/2):e==CKEDITOR.LINEUTILS_BEFORE?c.elementRect.top:c.elementRect.bottom}return function(a){var d;this.locations={};for(var f in a)d=a[f],d.elementRect=d.element.getClientRect(),d.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(f,CKEDITOR.LINEUTILS_BEFORE,b(d,CKEDITOR.LINEUTILS_BEFORE)),d.type&CKEDITOR.LINEUTILS_AFTER&&this.store(f,CKEDITOR.LINEUTILS_AFTER,b(d,CKEDITOR.LINEUTILS_AFTER)),d.type&
CKEDITOR.LINEUTILS_INSIDE&&this.store(f,CKEDITOR.LINEUTILS_INSIDE,(d.elementRect.top+d.elementRect.bottom)/2);return this.locations}}(),sort:function(){var a,b,d,f;return function(g,k){a=this.locations;b=[];for(var l in a)for(var m in a[l])if(d=Math.abs(g-a[l][m]),b.length){for(f=0;f<b.length;f++)if(d<b[f].dist){b.splice(f,0,{uid:+l,type:m,dist:d});break}f==b.length&&b.push({uid:+l,type:m,dist:d})}else b.push({uid:+l,type:m,dist:d});return"undefined"!=typeof k?b.slice(0,k):b}}(),store:function(a,
b,d){this.locations[a]||(this.locations[a]={});this.locations[a][b]=d}};var f={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};d.prototype={removeAll:function(){for(var a in this.hidden)this.hidden[a].remove(),delete this.hidden[a];for(a in this.visible)this.visible[a].remove(),delete this.visible[a]},hideLine:function(a){var b=a.getUniqueId();
a.hide();this.hidden[b]=a;delete this.visible[b]},showLine:function(a){var b=a.getUniqueId();a.show();this.visible[b]=a;delete this.hidden[b]},hideVisible:function(){for(var a in this.visible)this.hideLine(this.visible[a])},placeLine:function(a,b){var d,f,g;if(d=this.getStyle(a.uid,a.type)){for(g in this.visible)if(this.visible[g].getCustomData("hash")!==this.hash){f=this.visible[g];break}if(!f)for(g in this.hidden)if(this.hidden[g].getCustomData("hash")!==this.hash){this.showLine(f=this.hidden[g]);
break}f||this.showLine(f=this.addLine());f.setCustomData("hash",this.hash);this.visible[f.getUniqueId()]=f;f.setStyles(d);b&&b(f)}},getStyle:function(a,b){var d=this.relations[a],f=this.locations[a][b],g={};g.width=d.siblingRect?Math.max(d.siblingRect.width,d.elementRect.width):d.elementRect.width;g.top=this.inline?f+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+f;if(g.top-this.winTopScroll.y<this.rect.top||g.top-this.winTopScroll.y>this.rect.bottom)return!1;this.inline?
g.left=d.elementRect.left-this.rect.relativeX:(0<d.elementRect.left?g.left=this.rect.left+d.elementRect.left:(g.width+=d.elementRect.left,g.left=this.rect.left),0<(d=g.left+g.width-(this.rect.left+this.winPane.width))&&(g.width-=d));g.left+=this.winTopScroll.x;for(var k in g)g[k]=CKEDITOR.tools.cssLength(g[k]);return g},addLine:function(){var a=CKEDITOR.dom.element.createFromHtml(this.lineTpl);a.appendTo(this.container);return a},prepare:function(a,b){this.relations=a;this.locations=b;this.hash=Math.random()},
cleanup:function(){var a,b;for(b in this.visible)a=this.visible[b],a.getCustomData("hash")!==this.hash&&this.hideLine(a)},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(a){a=a.getClientRect();var b=this.container.getDocumentPosition(),d=this.container.getComputedStyle("position");a.relativeX=a.relativeY=
0;"static"!=d&&(a.relativeY=b.y,a.relativeX=b.x,a.top-=a.relativeY,a.bottom-=a.relativeY,a.left-=a.relativeX,a.right-=a.relativeX);return a}};var k={left:1,right:1,center:1},l={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:b,locator:g,liner:d}})();(function(){function b(b){return b.getName&&!b.hasAttribute("data-cke-temp")}CKEDITOR.plugins.add("widgetselection",{init:function(b){if(CKEDITOR.env.webkit){var d=CKEDITOR.plugins.widgetselection;b.on("contentDom",function(a){a=a.editor;var b=
a.editable();b.attachListener(b,"keydown",function(a){a.data.getKeystroke()==CKEDITOR.CTRL+65&&CKEDITOR.tools.setTimeout(function(){d.addFillers(b)||d.removeFillers(b)},0)},null,null,-1);a.on("selectionCheck",function(a){d.removeFillers(a.editor.editable())});a.on("paste",function(a){a.data.dataValue=d.cleanPasteData(a.data.dataValue)});"selectall"in a.plugins&&d.addSelectAllIntegration(a)})}}});CKEDITOR.plugins.widgetselection={startFiller:null,endFiller:null,fillerAttribute:"data-cke-filler-webkit",
fillerContent:"\x26nbsp;",fillerTagName:"div",addFillers:function(g){var d=g.editor;if(!this.isWholeContentSelected(g)&&0<g.getChildCount()){var a=g.getFirst(b),f=g.getLast(b);a&&a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable()&&(this.startFiller=this.createFiller(),g.append(this.startFiller,1));f&&f.type==CKEDITOR.NODE_ELEMENT&&!f.isEditable()&&(this.endFiller=this.createFiller(!0),g.append(this.endFiller,0));if(this.hasFiller(g))return d=d.createRange(),d.selectNodeContents(g),d.select(),!0}return!1},
removeFillers:function(b){if(this.hasFiller(b)&&!this.isWholeContentSelected(b)){var d=b.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dstart]"),a=b.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dend]");this.startFiller&&d&&this.startFiller.equals(d)?this.removeFiller(this.startFiller,b):this.startFiller=d;this.endFiller&&a&&this.endFiller.equals(a)?this.removeFiller(this.endFiller,b):this.endFiller=a}},cleanPasteData:function(b){b&&b.length&&(b=b.replace(this.createFillerRegex(),
"").replace(this.createFillerRegex(!0),""));return b},isWholeContentSelected:function(b){var d=b.editor.getSelection().getRanges()[0];return!d||d&&d.collapsed?!1:(d=d.clone(),d.enlarge(CKEDITOR.ENLARGE_ELEMENT),!!(d&&b&&d.startContainer&&d.endContainer&&0===d.startOffset&&d.endOffset===b.getChildCount()&&d.startContainer.equals(b)&&d.endContainer.equals(b)))},hasFiller:function(b){return 0<b.find(this.fillerTagName+"["+this.fillerAttribute+"]").count()},createFiller:function(b){var d=new CKEDITOR.dom.element(this.fillerTagName);
d.setHtml(this.fillerContent);d.setAttribute(this.fillerAttribute,b?"end":"start");d.setAttribute("data-cke-temp",1);d.setStyles({display:"block",width:0,height:0,padding:0,border:0,margin:0,position:"absolute",top:0,left:"-9999px",opacity:0,overflow:"hidden"});return d},removeFiller:function(b,d){if(b){var a=d.editor,f=d.editor.getSelection().getRanges()[0].startPath(),m=a.createRange(),k,l;f.contains(b)&&(k=b.getHtml(),l=!0);f="start"==b.getAttribute(this.fillerAttribute);b.remove();k&&0<k.length&&
k!=this.fillerContent?(d.insertHtmlIntoRange(k,a.getSelection().getRanges()[0]),m.setStartAt(d.getChild(d.getChildCount()-1),CKEDITOR.POSITION_BEFORE_END),a.getSelection().selectRanges([m])):l&&(f?m.setStartAt(d.getFirst().getNext(),CKEDITOR.POSITION_AFTER_START):m.setEndAt(d.getLast().getPrevious(),CKEDITOR.POSITION_BEFORE_END),d.editor.getSelection().selectRanges([m]))}},createFillerRegex:function(b){var d=this.createFiller(b).getOuterHtml().replace(/style="[^"]*"/gi,'style\x3d"[^"]*"').replace(/>[^<]*</gi,
"\x3e[^\x3c]*\x3c");return new RegExp((b?"":"^")+d+(b?"$":""))},addSelectAllIntegration:function(b){var d=this;b.editable().attachListener(b,"beforeCommandExec",function(a){var f=b.editable();"selectAll"==a.data.name&&f&&d.addFillers(f)},null,null,9999)}}})();"use strict";(function(){function b(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};F(this);D(this);this.on("checkWidgets",
k);this.editor.on("contentDomInvalidated",this.checkWidgets,this);C(this);w(this);z(this);B(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);K(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;da(this);this.fire("data",this.data);this.isInited()&&f.editable().contains(this.wrapper)&&(this.ready=!0,this.fire("ready"))}function d(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 a(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({editor:a,commandData:c});else if(b.template){var e="function"==
typeof b.defaults?b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e),a.document),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 f(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 k(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=t;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 l(a){if("undefined"!=typeof a.attributes&&a.attributes["data-widget"]){var b=e(a),d=c(a),f=!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;"),f=!0);d&&d.value&&d.value.match(/\s$/g)&&(d.parent.attributes["data-cke-white-space-last"]=1,d.value=d.value.replace(/\s$/g,"\x26nbsp;"),f=!0);f&&(a.attributes["data-cke-widget-white-space"]=1)}}function e(a){return a.find(function(a){return 3===a.type},!0).shift()}function c(a){return a.find(function(a){return 3===a.type},!0).pop()}function h(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 r(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 u(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 u(e,b,c)}}a.add(c,b)}function p(a,b){return"boolean"==typeof a.inline?a.inline:!!CKEDITOR.dtd.$inline[b]}function t(a){return a.hasAttribute("data-cke-temp")}function v(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 x(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,!0))return b.fire("contextMenu",{})})}function q(a,
b){return CKEDITOR.tools.trim(b)}function B(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){function d(a,b){return a&&b?a.wrapper.equals(b.wrapper)||a.wrapper.contains(b.wrapper):!1}var e=c.data.dataTransfer,f=e.getData("cke/widget-id"),g=e.getTransferType(b),e=b.createRange(),h=function(a){a=a.getBoundaryNodes().startNode;
a.type!==CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return b.widgets.getByElement(a)}(c.data.dropRange);if(""!==f&&g===CKEDITOR.DATA_TRANSFER_CROSS_EDITORS)c.cancel();else if(g==CKEDITOR.DATA_TRANSFER_INTERNAL)if(""===f&&0<b.widgets.selected.length)c.data.dataTransfer.setData("text/html",N(b));else if(f=a.instances[f])d(f,h)?c.cancel():(e.setStartBefore(f.wrapper),e.setEndAfter(f.wrapper),c.data.dragRange=e,delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount,delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount,
c.data.dataTransfer.setData("text/html",f.getClipboardHtml()),b.widgets.destroy(f,!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 z(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(d){1>a.selected.length||R(c,"cut"===d.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){function b(){var a=e.getSelection();if(a&&(a=a.getRanges()[0])&&!a.collapsed){var d=c(a.startContainer),f=c(a.endContainer);
!d&&f?(a.setEndBefore(f.wrapper),a.select()):d&&!f&&(a.setStartAfter(d.wrapper),a.select())}}function c(a){return a?a.type==CKEDITOR.NODE_TEXT?c(a.getParent()):e.widgets.getByElement(a):null}function d(){a.fire("checkSelection")}var e=a.editor;e.on("selectionCheck",d);e.on("contentDom",function(){e.editable().attachListener(e,"key",function(){setTimeout(d,10)})});if(!CKEDITOR.env.ie)a.on("checkSelection",b);a.on("checkSelection",a.checkSelection,a);e.on("selectionChange",function(b){var c=(b=g.getNestedEditable(e.editable(),
b.data.selection.getStartElement()))&&a.getByElement(b),d=a.widgetHoldingFocusedEditable;d?d===c&&d.focusedEditable.equals(b)||(v(a,d,null),c&&b&&v(a,c,b)):c&&b&&v(a,c,b)});e.on("dataReady",function(){G(a).commit()});e.on("blur",function(){var b;(b=a.focused)&&m(a,b);(b=a.widgetHoldingFocusedEditable)&&v(a,b,null)})}function D(a){var b=a.editor,d={};b.on("toDataFormat",function(b){var f=CKEDITOR.tools.getNextNumber(),h=[];b.data.downcastingSessionId=f;d[f]=h;b.data.dataValue.forEach(function(b){var d=
b.attributes,f;if("data-cke-widget-white-space"in d){f=e(b);var k=c(b);f.parent.attributes["data-cke-white-space-first"]&&(f.value=f.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 d){if(d=a.instances[d["data-cke-widget-id"]])f=b.getFirst(g.isParserWidgetElement),h.push({wrapper:b,element:f,widget:d,editables:{}}),"1"!=f.attributes["data-cke-widget-keep-attr"]&&delete f.attributes["data-widget"]}else if("data-cke-widget-editable"in
d)return 0<h.length&&(h[h.length-1].editables[d["data-cke-widget-editable"]]=b),!1},CKEDITOR.NODE_ELEMENT,!0)},null,null,8);b.on("toDataFormat",function(a){if(a.data.downcastingSessionId)for(var b=d[a.data.downcastingSessionId],c,e,f,g,h,k;c=b.shift();){e=c.widget;f=c.element;g=e._.downcastFn&&e._.downcastFn.call(e,f);a.data.widgetsCopy&&e.getClipboardHtml&&(g=CKEDITOR.htmlParser.fragment.fromHtml(e.getClipboardHtml()),g=g.children[0]);for(k in c.editables)h=c.editables[k],delete h.attributes.contenteditable,
h.setHtml(e.editables[k].getData());g||(g=f);c.wrapper.replaceWith(g)}},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(S,q);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 G(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 I(a){a&&a.addFilterRule(function(a){return a.replace(/\s*cke_widget_selected/g,"").replace(/\s*cke_widget_focused/g,"")})}function M(a,b,c){var d=0;b=J(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 E(a){a.cancel()}function R(a,b){var c=a.widgets.focused,d,e,f;fa.hasCopyBin(a)||(e=new fa(a,{beforeDestroy:function(){!b&&
c&&c.focus();f&&a.getSelection().selectBookmarks(f);d&&CKEDITOR.plugins.widgetselection.addFillers(a.editable())},afterDestroy:function(){b&&!a.readOnly&&(c?a.widgets.del(c):a.extractSelectedHtml(),a.fire("saveSnapshot"))}}),c||(d=CKEDITOR.env.webkit&&CKEDITOR.plugins.widgetselection.isWholeContentSelected(a.editable()),f=a.getSelection().createBookmarks(!0)),e.handle(N(a)))}function J(a){return(a=(a=a.getDefinition().attributes)&&a["class"])?a.split(/\s+/):null}function L(){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 Q(){CKEDITOR.env.gecko&&this.editor.unlockSelection();CKEDITOR.env.webkit||(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function N(a){var b=a.getSelectedHtml(!0);if(a.widgets.focused)return a.widgets.focused.getClipboardHtml();a.once("toDataFormat",function(a){a.data.widgetsCopy=!0},null,null,-1);return a.dataProcessor.toDataFormat(b)}function K(a,b){O(a);
Y(a);U(a);Z(a);V(a);ba(a);ca(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){R(a.editor,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 O(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function Y(a,b){a.partSelectors||(a.partSelectors=a.parts);if(a.parts){var c={},d,e;for(e in a.partSelectors)b||!a.parts[e]||"string"==typeof a.parts[e]?(d=a.wrapper.findOne(a.partSelectors[e]),c[e]=d):c[e]=a.parts[e];a.parts=c}}function U(a){var b=a.editables,c,d;a.editables={};if(a.editables)for(c in b)d=
b[c],a.initEditable(c,"string"==typeof d?{selector:d}:d)}function Z(a){if(!0===a.mask)ia(a);else if(a.mask){var b=new CKEDITOR.tools.buffers.throttle(250,X,a),c=CKEDITOR.env.gecko?300:0,d,e;a.on("focus",function(){b.input();d=a.editor.on("change",b.input);e=a.on("blur",function(){d.removeListener();e.removeListener()})});a.editor.on("instanceReady",function(){setTimeout(function(){b.input()},c)});a.editor.on("mode",function(){setTimeout(function(){b.input()},c)});if(CKEDITOR.env.gecko){var f=a.element.find("img");
CKEDITOR.tools.array.forEach(f.toArray(),function(a){a.on("load",function(){b.input()})})}for(var g in a.editables)a.editables[g].on("focus",function(){a.editor.on("change",b.input);e&&e.removeListener()}),a.editables[g].on("blur",function(){a.editor.removeListener("change",b.input)});b.input()}}function ia(a){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 X(){if(this.wrapper){this.maskPart=this.maskPart||this.mask;var a=this.parts[this.maskPart],b;if(a&&"string"!=typeof a){b=this.wrapper.findOne(".cke_widget_partial_mask");b||(b=new CKEDITOR.dom.element("img",this.editor.document),b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_partial_mask"}),this.wrapper.append(b));this.mask=b;var c=b.$,d=a.$,e=!(c.offsetTop==d.offsetTop&&c.offsetLeft==d.offsetLeft);if(c.offsetWidth!=d.offsetWidth||
c.offsetHeight!=d.offsetHeight||e)c=a.getParent(),d=CKEDITOR.plugins.widget.isDomWidget(c),b.setStyles({top:a.$.offsetTop+(d?0:c.$.offsetTop)+"px",left:a.$.offsetLeft+(d?0:c.$.offsetLeft)+"px",width:a.$.offsetWidth+"px",height:a.$.offsetHeight+"px"})}}}function V(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);display:none;"}),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",W,a),CKEDITOR.env.ie&&9>CKEDITOR.env.version))d.on("dragstart",function(a){a.data.preventDefault(!0)});a.dragHandlerContainer=c}}function W(a){function b(){var c;for(p.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(),p=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;p.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 ba(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 ca(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 da(a){a.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(a.data)))}function aa(){function a(){}function b(a,c,d){return d&&this.checkElement(a)?(a=d.widgets.getByElement(a,!0))&&a.checkStyleActive(this):!1}function c(a){function b(a,c,d){for(var e=a.length,f=0;f<e;){if(c.call(d,a[f],f,a))return a[f];f++}}function e(a){function b(a,c){var d=
CKEDITOR.tools.object.keys(a),e=CKEDITOR.tools.object.keys(c);if(d.length!==e.length)return!1;for(var f in a)if(("object"!==typeof a[f]||"object"!==typeof c[f]||!b(a[f],c[f]))&&a[f]!==c[f])return!1;return!0}return function(c){return b(a.getDefinition(),c.getDefinition())}}var f=a.widget,g;d[f]||(d[f]={});for(var h=0,k=a.group.length;h<k;h++)g=a.group[h],d[f][g]||(d[f][g]=[]),g=d[f][g],b(g,e(a))||g.push(a)}var d={};CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget;
(this.group="string"==typeof a.group?[a.group]:a.group)&&c(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=!1,c,e;if(!(a instanceof CKEDITOR.editor))return!1;e=a.elementPath();if(this.checkApplicable(e,
a))for(var f=0,g=this.group.length;f<g;f++){c=d[this.widget][this.group[f]];for(var h=0;h<c.length;h++)c[h]!==this&&c[h].checkActive(e,a)&&(a.widgets.focused.removeStyle(c[h]),b=!0)}return b},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 #ffd25c;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid #ffd25c}.cke_widget_wrapper.cke_widget_focused\x3e.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #47a4f5}.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:15px;height:0;display:block;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}.cke_editable[contenteditable\x3d"false"] .cke_widget_drag_handler_container{display:none;}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_widget_partial_mask{position:absolute;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}'),
aa())},beforeInit:function(a){void 0!==CKEDITOR.document.$.querySelectorAll&&(a.widgets=new b(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"});x(a);I(a.undoManager)}}});b.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(b,c){var d=this.editor;c=CKEDITOR.tools.prototypedCopy(c);c.name=b;
c._=c._||{};d.fire("widgetDefinition",c);c.template&&(c.template=new CKEDITOR.template(c.template));a(d,c);f(this,c);this.registered[b]=c;if(c.dialog&&d.plugins.dialog)var e=CKEDITOR.on("dialogDefinition",function(a){a=a.data.definition;var b=a.dialog;a.getMode||b.getName()!==c.dialog||(a.getMode=function(){var a=b.getModel(d);return a&&a instanceof CKEDITOR.plugins.widget&&a.ready?CKEDITOR.dialog.EDITING_MODE:CKEDITOR.dialog.CREATION_MODE});e.removeListener()});return c},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},
checkSelection:function(){if(this.editor.getSelection()){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=G(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&&v(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,b){var c=null,d,e;if(a instanceof CKEDITOR.dom.element){b=b||a.data("widget");d=this.registered[b];if(!d)return null;
if((c=a.getParent())&&c.type==CKEDITOR.NODE_ELEMENT&&c.data("cke-widget-wrapper"))return c;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);a.data("widget",b);(e=p(d,a.getName()))&&l(a);c=new CKEDITOR.dom.element(e?"span":"div",a.getDocument());c.setAttributes(r(e,b));c.data("cke-display-name",d.pathName?d.pathName:a.getName());a.getParent(!0)&&c.replace(a);a.appendTo(c)}else if(a instanceof CKEDITOR.htmlParser.element){b=b||a.attributes["data-widget"];
d=this.registered[b];if(!d)return null;if((c=a.parent)&&c.type==CKEDITOR.NODE_ELEMENT&&c.attributes["data-cke-widget-wrapper"])return c;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);b&&(a.attributes["data-widget"]=b);(e=p(d,a.name))&&l(a);c=new CKEDITOR.htmlParser.element(e?"span":"div",r(e,b));c.attributes["data-cke-display-name"]=d.pathName?d.pathName:a.name;d=a.parent;var f;d&&(f=a.getIndex(),a.remove());c.add(a);d&&u(d,
f,c)}return c},_tests_createEditableFilter:h};CKEDITOR.event.implementOn(b.prototype);g.prototype={addClass:function(a){this.element.addClass(a);this.wrapper.addClass(g.WRAPPER_CLASS_PREFIX+a)},applyStyle:function(a){M(this,a,1)},checkStyleActive:function(a){a=J(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],d=!0;c.removeListener("focus",Q);c.removeListener("blur",L);this.editor.focusManager.remove(c);if(c.filter){for(var e in this.repository.instances){var f=this.repository.instances[e];f.editables&&(f=f.editables[a])&&f!==
c&&c.filter===f.filter&&(d=!1)}d&&(c.filter.destroy(),(d=this.repository._.filters[this.name])&&delete d[a])}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()}))},b);return!0},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},getClipboardHtml:function(){var a=this.editor.createRange();
a.setStartBefore(this.wrapper);a.setEndAfter(this.wrapper);return this.editor.editable().getHtmlFromRange(a).getHtml()},hasClass:function(a){return this.element.hasClass(a)},initEditable:function(a,b){var c=this._findOneNotNested(b.selector);return c&&c.is(CKEDITOR.dtd.$editable)?(c=new d(this.editor,c,{filter:h.call(this.repository,this.name,a,b)}),this.editables[a]=c,c.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":c.enterMode}),c.filter&&c.data("cke-filter",
c.filter.id),c.addClass("cke_widget_editable"),c.removeClass("cke_widget_editable_focused"),b.pathName&&c.data("cke-display-name",b.pathName),this.editor.focusManager.add(c),c.on("focus",Q,this),CKEDITOR.env.ie&&c.on("blur",L,this),c._.initialSetData=!0,c.setData(c.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()},refreshMask:function(){Z(this)},refreshParts:function(a){Y(this,"undefined"!==typeof a?a:!0)},removeClass:function(a){this.element.removeClass(a);this.wrapper.removeClass(g.WRAPPER_CLASS_PREFIX+a)},removeStyle:function(a){M(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&&(da(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"}),this.dragHandlerContainer.removeStyle("display"),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_";d.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.unprotectRealComments(a);a=this.editor.dataProcessor.unprotectSource(a);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 S=/^(?:<(?: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};T[CKEDITOR.SHIFT+121]=1;var fa=CKEDITOR.tools.createClass({$:function(a,b){this._.createCopyBin(a,b);this._.createListeners(b)},_:{createCopyBin:function(a){var b=a.document,c=CKEDITOR.env.edge&&16<=CKEDITOR.env.version,d=!a.blockless&&!CKEDITOR.env.ie||c?"div":"span",c=b.createElement(d),b=b.createElement(d);b.setAttributes({id:"cke_copybin","data-cke-temp":"1"});c.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});c.setStyle("ltr"==a.config.contentsLangDirection?
"left":"right","-5000px");this.editor=a;this.copyBin=c;this.container=b},createListeners:function(a){a&&(a.beforeDestroy&&(this.beforeDestroy=a.beforeDestroy),a.afterDestroy&&(this.afterDestroy=a.afterDestroy))}},proto:{handle:function(a){var b=this.copyBin,c=this.editor,d=this.container,e=CKEDITOR.env.ie&&9>CKEDITOR.env.version,f=c.document.getDocumentElement().$,g=c.createRange(),h=this,k=CKEDITOR.env.mac&&CKEDITOR.env.webkit,l=k?100:0,m=window.requestAnimationFrame&&!k?requestAnimationFrame:setTimeout,
n,p,r;b.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e​\x3c/span\x3e'+a+'\x3cspan data-cke-copybin-end\x3d"1"\x3e​\x3c/span\x3e');c.fire("lockSnapshot");d.append(b);c.editable().append(d);n=c.on("selectionChange",E,null,null,0);p=c.widgets.on("checkSelection",E,null,null,0);e&&(r=f.scrollTop);g.selectNodeContents(b);g.select();e&&(f.scrollTop=r);return new CKEDITOR.tools.promise(function(a){m(function(){h.beforeDestroy&&h.beforeDestroy();d.remove();n.removeListener();p.removeListener();c.fire("unlockSnapshot");
h.afterDestroy&&h.afterDestroy();a()},l)})}},statics:{hasCopyBin:function(a){return!!fa.getCopyBin(a)},getCopyBin:function(a){return a.document.getById("cke_copybin")}}});CKEDITOR.plugins.widget=g;g.repository=b;g.nestedEditable=d})();(function(){function b(b,a,f){this.editor=b;this.notification=null;this._message=new CKEDITOR.template(a);this._singularMessage=f?new CKEDITOR.template(f):null;this._tasks=[];this._doneTasks=this._doneWeights=this._totalWeights=0}function g(b){this._weight=b||1;this._doneWeight=
0;this._isCanceled=!1}CKEDITOR.plugins.add("notificationaggregator",{requires:"notification"});b.prototype={createTask:function(b){b=b||{};var a=!this.notification,f;a&&(this.notification=this._createNotification());f=this._addTask(b);f.on("updated",this._onTaskUpdate,this);f.on("done",this._onTaskDone,this);f.on("canceled",function(){this._removeTask(f)},this);this.update();a&&this.notification.show();return f},update:function(){this._updateNotification();this.isFinished()&&this.fire("finished")},
getPercentage:function(){return 0===this.getTaskCount()?1:this._doneWeights/this._totalWeights},isFinished:function(){return this.getDoneTaskCount()===this.getTaskCount()},getTaskCount:function(){return this._tasks.length},getDoneTaskCount:function(){return this._doneTasks},_updateNotification:function(){this.notification.update({message:this._getNotificationMessage(),progress:this.getPercentage()})},_getNotificationMessage:function(){var b=this.getTaskCount(),a={current:this.getDoneTaskCount(),max:b,
percentage:Math.round(100*this.getPercentage())};return(1==b&&this._singularMessage?this._singularMessage:this._message).output(a)},_createNotification:function(){return new CKEDITOR.plugins.notification(this.editor,{type:"progress"})},_addTask:function(b){b=new g(b.weight);this._tasks.push(b);this._totalWeights+=b._weight;return b},_removeTask:function(b){var a=CKEDITOR.tools.indexOf(this._tasks,b);-1!==a&&(b._doneWeight&&(this._doneWeights-=b._doneWeight),this._totalWeights-=b._weight,this._tasks.splice(a,
1),this.update())},_onTaskUpdate:function(b){this._doneWeights+=b.data;this.update()},_onTaskDone:function(){this._doneTasks+=1;this.update()}};CKEDITOR.event.implementOn(b.prototype);g.prototype={done:function(){this.update(this._weight)},update:function(b){if(!this.isDone()&&!this.isCanceled()){b=Math.min(this._weight,b);var a=b-this._doneWeight;this._doneWeight=b;this.fire("updated",a);this.isDone()&&this.fire("done")}},cancel:function(){this.isDone()||this.isCanceled()||(this._isCanceled=!0,this.fire("canceled"))},
isDone:function(){return this._weight===this._doneWeight},isCanceled:function(){return this._isCanceled}};CKEDITOR.event.implementOn(g.prototype);CKEDITOR.plugins.notificationAggregator=b;CKEDITOR.plugins.notificationAggregator.task=g})();"use strict";(function(){CKEDITOR.plugins.add("uploadwidget",{requires:"widget,clipboard,filetools,notificationaggregator",init:function(b){b.filter.allow("*[!data-widget,!data-cke-upload-id]")},isSupportedEnvironment:function(){return CKEDITOR.plugins.clipboard.isFileApiSupported}});
CKEDITOR.fileTools||(CKEDITOR.fileTools={});CKEDITOR.tools.extend(CKEDITOR.fileTools,{addUploadWidget:function(b,g,d){var a=CKEDITOR.fileTools,f=b.uploadRepository,m=d.supportedTypes?10:20;if(d.fileToElement)b.on("paste",function(d){d=d.data;var l=b.widgets.registered[g],e=d.dataTransfer,c=e.getFilesCount(),h=l.loadMethod||"loadAndUpload",m,r;if(!d.dataValue&&c)for(r=0;r<c;r++)if(m=e.getFile(r),!l.supportedTypes||a.isTypeSupported(m,l.supportedTypes)){var u=l.fileToElement(m);m=f.create(m,void 0,
l.loaderType);u&&(m[h](l.uploadUrl,l.additionalRequestParameters),CKEDITOR.fileTools.markElement(u,g,m.id),"loadAndUpload"!=h&&"upload"!=h||l.skipNotifications||CKEDITOR.fileTools.bindNotifications(b,m),d.dataValue+=u.getOuterHtml())}},null,null,m);CKEDITOR.tools.extend(d,{downcast:function(){return new CKEDITOR.htmlParser.text("")},init:function(){var a=this,d=this.wrapper.findOne("[data-cke-upload-id]").data("cke-upload-id"),e=f.loaders[d],c=CKEDITOR.tools.capitalize,g,m;e.on("update",function(f){if("abort"===
e.status&&"function"===typeof a.onAbort)a.onAbort(e);if(a.wrapper&&a.wrapper.getParent()){b.fire("lockSnapshot");f="on"+c(e.status);if("abort"===e.status||"function"!==typeof a[f]||!1!==a[f](e))m="cke_upload_"+e.status,a.wrapper&&m!=g&&(g&&a.wrapper.removeClass(g),a.wrapper.addClass(m),g=m),"error"!=e.status&&"abort"!=e.status||b.widgets.del(a);b.fire("unlockSnapshot")}else CKEDITOR.instances[b.name]&&b.editable().find('[data-cke-upload-id\x3d"'+d+'"]').count()||e.abort(),f.removeListener()});e.update()},
replaceWith:function(a,d){if(""===a.trim())b.widgets.del(this);else{var e=this==b.widgets.focused,c=b.editable(),f=b.createRange(),g,m;e||(m=b.getSelection().createBookmarks());f.setStartBefore(this.wrapper);f.setEndAfter(this.wrapper);e&&(g=f.createBookmark());c.insertHtmlIntoRange(a,f,d);b.widgets.checkWidgets({initOnlyNew:!0});b.widgets.destroy(this,!0);e?(f.moveToBookmark(g),f.select()):b.getSelection().selectBookmarks(m)}},_getLoader:function(){var a=this.wrapper.findOne("[data-cke-upload-id]");
return a?this.editor.uploadRepository.loaders[a.data("cke-upload-id")]:null}});b.widgets.add(g,d)},markElement:function(b,g,d){b.setAttributes({"data-cke-upload-id":d,"data-widget":g})},bindNotifications:function(b,g){function d(){a=b._.uploadWidgetNotificaionAggregator;if(!a||a.isFinished())a=b._.uploadWidgetNotificaionAggregator=new CKEDITOR.plugins.notificationAggregator(b,b.lang.uploadwidget.uploadMany,b.lang.uploadwidget.uploadOne),a.once("finished",function(){var d=a.getTaskCount();0===d?a.notification.hide():
a.notification.update({message:1==d?b.lang.uploadwidget.doneOne:b.lang.uploadwidget.doneMany.replace("%1",d),type:"success",important:1})})}var a,f=null;g.on("update",function(){!f&&g.uploadTotal&&(d(),f=a.createTask({weight:g.uploadTotal}));f&&"uploading"==g.status&&f.update(g.uploaded)});g.on("uploaded",function(){f&&f.done()});g.on("error",function(){f&&f.cancel();b.showNotification(g.message,"warning")});g.on("abort",function(){f&&f.cancel();CKEDITOR.instances[b.name]&&b.showNotification(b.lang.uploadwidget.abort,
"info")})}})})();"use strict";(function(){function b(a){9>=a&&(a="0"+a);return String(a)}function g(a){var f=new Date,f=[f.getFullYear(),f.getMonth()+1,f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds()];d+=1;return"image-"+CKEDITOR.tools.array.map(f,b).join("")+"-"+d+"."+a}var d=0;CKEDITOR.plugins.add("uploadimage",{requires:"uploadwidget",onLoad:function(){CKEDITOR.addCss(".cke_upload_uploading img{opacity: 0.3}")},isSupportedEnvironment:function(){return CKEDITOR.plugins.clipboard.isFileApiSupported},
init:function(a){if(this.isSupportedEnvironment()){var b=CKEDITOR.fileTools,d=b.getUploadUrl(a.config,"image");d&&(b.addUploadWidget(a,"uploadimage",{supportedTypes:/image\/(jpeg|png|gif|bmp)/,uploadUrl:d,fileToElement:function(){var a=new CKEDITOR.dom.element("img");a.setAttribute("src","data:image/gif;base64,R0lGODlhDgAOAIAAAAAAAP///yH5BAAAAAAALAAAAAAOAA4AAAIMhI+py+0Po5y02qsKADs\x3d");return a},parts:{img:"img"},onUploading:function(a){this.parts.img.setAttribute("src",a.data)},onUploaded:function(a){var b=
this.parts.img.$;this.replaceWith('\x3cimg src\x3d"'+a.url+'" width\x3d"'+(a.responseData.width||b.naturalWidth)+'" height\x3d"'+(a.responseData.height||b.naturalHeight)+'"\x3e')}}),a.on("paste",function(k){if(k.data.dataValue.match(/<img[\s\S]+data:/i)){k=k.data;var l=document.implementation.createHTMLDocument(""),l=new CKEDITOR.dom.element(l.body),e,c,h;l.data("cke-editable",1);l.appendHtml(k.dataValue);e=l.find("img");for(h=0;h<e.count();h++){c=e.getItem(h);var n=c.getAttribute("src"),r=n&&"data:"==
n.substring(0,5),u=null===c.data("cke-realelement");r&&u&&!c.data("cke-upload-id")&&!c.isReadOnly(1)&&(r=(r=n.match(/image\/([a-z]+?);/i))&&r[1]||"jpg",n=a.uploadRepository.create(n,g(r)),n.upload(d),b.markElement(c,"uploadimage",n.id),b.bindNotifications(a,n))}k.dataValue=l.getHtml()}}))}}})})();(function(){function b(a){function b(a){var c=!1;h.attachListener(h,"keydown",function(){var b=l.getBody().getElementsByTag(a);if(!c){for(var d=0;d<b.count();d++)b.getItem(d).setCustomData("retain",!0);c=
!0}},null,null,1);h.attachListener(h,"keyup",function(){var b=l.getElementsByTag(a);c&&(1==b.count()&&!b.getItem(0).getCustomData("retain")&&CKEDITOR.tools.isEmpty(b.getItem(0).getAttributes())&&b.getItem(0).remove(1),c=!1)})}var d=this.editor;if(d&&!d.isDetached()){var l=a.document,e=l.body,c=l.getElementById("cke_actscrpt");c&&c.parentNode.removeChild(c);(c=l.getElementById("cke_shimscrpt"))&&c.parentNode.removeChild(c);(c=l.getElementById("cke_basetagscrpt"))&&c.parentNode.removeChild(c);e.contentEditable=
!0;CKEDITOR.env.ie&&(e.hideFocus=!0,e.disabled=!0,e.removeAttribute("disabled"));delete this._.isLoadingData;this.$=e;l=new CKEDITOR.dom.document(l);this.setup();this.fixInitialSelection();var h=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&l.getDocumentElement().addClass(l.$.compatMode);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&d.enterMode!=CKEDITOR.ENTER_P?b("p"):CKEDITOR.env.edge&&15>CKEDITOR.env.version&&d.enterMode!=CKEDITOR.ENTER_DIV&&b("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)l.getDocumentElement().on("mousedown",
function(a){a.data.getTarget().is("html")&&setTimeout(function(){d.editable().focus()})});g(d);try{d.document.$.execCommand("2D-position",!1,!0)}catch(n){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==d.document.$.compatMode)&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(33==b||34==b)if(CKEDITOR.env.ie)setTimeout(function(){d.getSelection().scrollIntoView()},0);else if(d.window.$.innerHeight>this.$.offsetHeight){var c=d.createRange();c[33==b?"moveToElementEditStart":
"moveToElementEditEnd"](this);c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(l,"blur",function(){try{l.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(l,"touchend",function(){a.focus()});e=d.document.getElementsByTag("title").getItem(0);e.data("cke-title",e.getText());CKEDITOR.env.ie&&(d.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");d.fire("contentDom");this._.isPendingFocus&&
(d.focus(),this._.isPendingFocus=!1);setTimeout(function(){d.fire("dataReady")},0)},0,this)}}function g(a){function b(){var c;a.editable().attachListener(a,"selectionChange",function(){var b=a.getSelection().getSelectedElement();b&&(c&&(c.detachEvent("onresizestart",d),c=null),b.$.attachEvent("onresizestart",d),c=b.$)})}function d(a){a.returnValue=!1}if(CKEDITOR.env.gecko)try{var g=a.document.$;g.execCommand("enableObjectResizing",!1,!a.config.disableObjectResizing);g.execCommand("enableInlineTableEditing",
!1,!a.config.disableNativeTableHandles)}catch(e){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&a.config.disableObjectResizing&&b(a)}function d(){var a=[];if(8<=CKEDITOR.document.$.documentMode){a.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var b=[],d;for(d in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+d+"[contenteditable\x3dfalse]");a.push(b.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(a.push("html{height:100% !important}"),a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));
a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}var a;CKEDITOR.plugins.add("wysiwygarea",{init:function(b){b.config.fullPage&&b.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});b.addMode("wysiwyg",function(d){function g(c){c&&c.removeListener();b.isDestroyed()||b.isDetached()||(b.editable(new a(b,e.$.contentWindow.document.body)),b.setData(b.getData(1),d))}var l="document.open();"+
(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",l=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(l)+"}())":"",e=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+l+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');e.setStyles({width:"100%",height:"100%"});e.addClass("cke_wysiwyg_frame").addClass("cke_reset");l=b.ui.space("contents");l.append(e);var c=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;
if(c)e.on("load",g);var h=b.title,n=b.fire("ariaEditorHelpLabel",{}).label;h&&(CKEDITOR.env.ie&&n&&(h+=", "+n),e.setAttribute("title",h));if(n){var h=CKEDITOR.tools.getNextId(),r=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+h+'" class\x3d"cke_voice_label"\x3e'+n+"\x3c/span\x3e");l.append(r,1);e.setAttribute("aria-describedby",h)}b.on("beforeModeUnload",function(a){a.removeListener();r&&r.remove()});e.setAttributes({tabIndex:b.tabIndex,allowTransparency:"true"});!c&&g();b.fire("ariaWidget",
e)})}});CKEDITOR.editor.prototype.addContentsCss=function(a){var b=this.config,d=b.contentsCss;CKEDITOR.tools.isArray(d)||(b.contentsCss=d?[d]:[]);b.contentsCss.push(a)};a=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(a){CKEDITOR.tools.setTimeout(b,0,this,a)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,b){var g=this.editor;if(b)this.setHtml(a),
this.fixInitialSelection(),g.fire("dataReady");else{this._.isLoadingData=!0;g._.dataStore={id:1};var l=g.config,e=l.fullPage,c=l.docType,h=CKEDITOR.tools.buildStyleHtml(d()).replace(/<style>/,'\x3cstyle data-cke-temp\x3d"1"\x3e');e||(h+=CKEDITOR.tools.buildStyleHtml(g.config.contentsCss));var n=l.baseHref?'\x3cbase href\x3d"'+l.baseHref+'" data-cke-temp\x3d"1" /\x3e':"";e&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){g.docType=c=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){g.xmlDeclaration=
a;return""}));a=g.dataProcessor.toHtml(a);e?(/<body[\s|>]/.test(a)||(a="\x3cbody\x3e"+a),/<html[\s|>]/.test(a)||(a="\x3chtml\x3e"+a+"\x3c/html\x3e"),/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$\x26\x3ctitle\x3e\x3c/title\x3e")):a=a.replace(/<html[^>]*>/,"$\x26\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e"),n&&(a=a.replace(/<head[^>]*?>/,"$\x26"+n)),a=a.replace(/<\/head\s*>/,h+"$\x26"),a=c+a):a=l.docType+'\x3chtml dir\x3d"'+l.contentsLangDirection+'" lang\x3d"'+
(l.contentsLanguage||g.langCode)+'"\x3e\x3chead\x3e\x3ctitle\x3e'+this._.docTitle+"\x3c/title\x3e"+n+h+"\x3c/head\x3e\x3cbody"+(l.bodyId?' id\x3d"'+l.bodyId+'"':"")+(l.bodyClass?' class\x3d"'+l.bodyClass+'"':"")+"\x3e"+a+"\x3c/body\x3e\x3c/html\x3e";CKEDITOR.env.gecko&&(a=a.replace(/<body/,'\x3cbody contenteditable\x3d"true" '),2E4>CKEDITOR.env.version&&(a=a.replace(/<body[^>]*>/,"$\x26\x3c!-- cke-content-start --\x3e")));l='\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&&(l+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e');n&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(l+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');
a=a.replace(/(?=\s*<\/(:?head)>)/,l);this.clearCustomData();this.clearListeners();g.fire("contentDomUnload");var r=this.getDocument();try{r.write(a)}catch(u){setTimeout(function(){r.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();a=this.editor;var b=a.config,d=b.fullPage,g=d&&a.docType,e=d&&a.xmlDeclaration,c=this.getDocument(),d=d?c.getDocumentElement().getOuterHtml():c.getBody().getHtml();CKEDITOR.env.gecko&&b.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/<br>(?=\s*(:?$|<\/body>))/,
""));d=a.dataProcessor.toDataFormat(d);e&&(d=e+"\n"+d);g&&(d=g+"\n"+d);return d},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:a.baseProto.focus.call(this)},detach:function(){var b=this.editor,d=b.document,b=b.container.findOne("iframe.cke_wysiwyg_frame");a.baseProto.detach.call(this);this.clearCustomData(this._.expandoNumber);d.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);b&&(b.clearCustomData(),(d=b.removeCustomData("onResize"))&&
d.removeListener(),b.isDetached()||b.remove())}}})})();CKEDITOR.config.disableObjectResizing=!1;CKEDITOR.config.disableNativeTableHandles=!0;CKEDITOR.config.disableNativeSpellChecker=!0;CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,copyformatting,menu,contextmenu,dialogadvtab,div,editorplaceholder,elementspath,enterkey,entities,exportpdf,popup,filetools,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,htmlwriter,iframe,image,indent,indentblock,indentlist,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,xml,ajax,pastetools,pastefromgdocs,pastefromlibreoffice,pastefromword,pastetext,preview,print,removeformat,resize,save,scayt,selectall,showblocks,showborders,smiley,sourcearea,specialchar,stylescombo,tab,table,tabletools,tableselection,templates,undo,lineutils,widgetselection,widget,notificationaggregator,uploadwidget,uploadimage,wysiwygarea";
CKEDITOR.config.skin="moono-lisa";(function(){var b=function(b,d){var a=CKEDITOR.getUrl("plugins/"+d);b=b.split(",");for(var f=0;f<b.length;f++)CKEDITOR.skin.icons[b[f]]={path:a,offset:-b[++f],bgsize:b[++f]}};CKEDITOR.env.hidpi?b("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,codesnippet,384,,bgcolor,408,,textcolor,432,,copyformatting,456,,creatediv,480,,docprops-rtl,504,,docprops,528,,easyimagealigncenter,552,,easyimagealignleft,576,,easyimagealignright,600,,easyimagealt,624,,easyimagefull,648,,easyimageside,672,,easyimageupload,696,,embed,720,,embedsemantic,744,,emojipanel,768,,exportpdf,792,,find-rtl,816,,find,840,,replace,864,,flash,888,,button,912,,checkbox,936,,form,960,,hiddenfield,984,,imagebutton,1008,,radio,1032,,select-rtl,1056,,select,1080,,textarea-rtl,1104,,textarea,1128,,textfield-rtl,1152,,textfield,1176,,horizontalrule,1200,,iframe,1224,,image,1248,,indent-rtl,1272,,indent,1296,,outdent-rtl,1320,,outdent,1344,,justifyblock,1368,,justifycenter,1392,,justifyleft,1416,,justifyright,1440,,language,1464,,anchor-rtl,1488,,anchor,1512,,link,1536,,unlink,1560,,bulletedlist-rtl,1584,,bulletedlist,1608,,numberedlist-rtl,1632,,numberedlist,1656,,mathjax,1680,,maximize,1704,,newpage-rtl,1728,,newpage,1752,,pagebreak-rtl,1776,,pagebreak,1800,,pastefromword-rtl,1824,,pastefromword,1848,,pastetext-rtl,1872,,pastetext,1896,,placeholder,1920,,preview-rtl,1944,,preview,1968,,print,1992,,removeformat,2016,,save,2040,,scayt,2064,,selectall,2088,,showblocks-rtl,2112,,showblocks,2136,,smiley,2160,,source-rtl,2184,,source,2208,,sourcedialog-rtl,2232,,sourcedialog,2256,,specialchar,2280,,table,2304,,templates-rtl,2328,,templates,2352,,uicolor,2376,,redo-rtl,2400,,redo,2424,,undo-rtl,2448,,undo,2472,,simplebox,4992,auto,spellchecker,2520,",
"icons_hidpi.png"):b("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,codesnippet,384,auto,bgcolor,408,auto,textcolor,432,auto,copyformatting,456,auto,creatediv,480,auto,docprops-rtl,504,auto,docprops,528,auto,easyimagealigncenter,552,auto,easyimagealignleft,576,auto,easyimagealignright,600,auto,easyimagealt,624,auto,easyimagefull,648,auto,easyimageside,672,auto,easyimageupload,696,auto,embed,720,auto,embedsemantic,744,auto,emojipanel,768,auto,exportpdf,792,auto,find-rtl,816,auto,find,840,auto,replace,864,auto,flash,888,auto,button,912,auto,checkbox,936,auto,form,960,auto,hiddenfield,984,auto,imagebutton,1008,auto,radio,1032,auto,select-rtl,1056,auto,select,1080,auto,textarea-rtl,1104,auto,textarea,1128,auto,textfield-rtl,1152,auto,textfield,1176,auto,horizontalrule,1200,auto,iframe,1224,auto,image,1248,auto,indent-rtl,1272,auto,indent,1296,auto,outdent-rtl,1320,auto,outdent,1344,auto,justifyblock,1368,auto,justifycenter,1392,auto,justifyleft,1416,auto,justifyright,1440,auto,language,1464,auto,anchor-rtl,1488,auto,anchor,1512,auto,link,1536,auto,unlink,1560,auto,bulletedlist-rtl,1584,auto,bulletedlist,1608,auto,numberedlist-rtl,1632,auto,numberedlist,1656,auto,mathjax,1680,auto,maximize,1704,auto,newpage-rtl,1728,auto,newpage,1752,auto,pagebreak-rtl,1776,auto,pagebreak,1800,auto,pastefromword-rtl,1824,auto,pastefromword,1848,auto,pastetext-rtl,1872,auto,pastetext,1896,auto,placeholder,1920,auto,preview-rtl,1944,auto,preview,1968,auto,print,1992,auto,removeformat,2016,auto,save,2040,auto,scayt,2064,auto,selectall,2088,auto,showblocks-rtl,2112,auto,showblocks,2136,auto,smiley,2160,auto,source-rtl,2184,auto,source,2208,auto,sourcedialog-rtl,2232,auto,sourcedialog,2256,auto,specialchar,2280,auto,table,2304,auto,templates-rtl,2328,auto,templates,2352,auto,uicolor,2376,auto,redo-rtl,2400,auto,redo,2424,auto,undo-rtl,2448,auto,undo,2472,auto,simplebox,2496,auto,spellchecker,2520,auto",
"icons.png")})()}})();