
| Current Path : /proc/self/root/usr/share/javascript/ckeditor/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/self/root/usr/share/javascript/ckeditor/ckeditor.js |
/*
Copyright (c) 2003-2022, 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 a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,g={timestamp:"M2IA",version:"4.12.1+dfsg",revision:"1ubuntu0.1",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var f=window.CKEDITOR_BASEPATH||"";if(!f)for(var d=document.getElementsByTagName("script"),k=0;k<d.length;k++){var c=d[k].src.match(a);if(c){f=c[1];break}}-1==f.indexOf(":/")&&"//"!=
f.slice(0,2)&&(f=0===f.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+f:location.href.match(/^[^\?]*\/(?:)/)[0]+f);if(!f)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return f}(),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),f()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),f())}catch(c){}}function f(){for(var c;c=d.shift();)c()}var d=[];return function(c){function f(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(f,1);return}a()}d.push(c);"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);c=!1;try{c=!window.frameElement}catch(e){}document.documentElement.doScroll&&c&&f()}}}()},d=window.CKEDITOR_GETURL;if(d){var f=g.getUrl;g.getUrl=function(a){return d.call(g,a)||f.call(g,a)}}return g}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var g=CKEDITOR.event.prototype,d;for(d in g)null==a[d]&&(a[d]=g[d])},
CKEDITOR.event.prototype=function(){function a(a){var h=g(this);return h[a]||(h[a]=new d(a))}var g=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},d=function(a){this.name=a;this.listeners=[]};d.prototype={getListenerIndex:function(a){for(var d=0,g=this.listeners;d<g.length;d++)if(g[d].fn==a)return d;return-1}};return{define:function(d,h){var g=a.call(this,d);CKEDITOR.tools.extend(g,h,!0)},on:function(d,h,g,k,c){function l(b,n,c,a){b={name:d,sender:this,editor:b,
data:n,listenerData:k,stop:c,cancel:a,removeListener:e};return!1===h.call(g,b)?!1:b.data}function e(){n.removeListener(d,h)}var b=a.call(this,d);if(0>b.getListenerIndex(h)){b=b.listeners;g||(g=this);isNaN(c)&&(c=10);var n=this;l.fn=h;l.priority=c;for(var p=b.length-1;0<=p;p--)if(b[p].priority<=c)return b.splice(p+1,0,l),{removeListener:e};b.unshift(l)}return{removeListener:e}},once:function(){var a=Array.prototype.slice.call(arguments),d=a[1];a[1]=function(a){a.removeListener();return d.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,d=function(){a=1},m=0,k=function(){m=1};return function(c,l,e){var b=g(this)[c];c=a;var n=m;a=m=0;if(b){var p=b.listeners;if(p.length)for(var p=p.slice(0),v,r=0;r<p.length;r++){if(b.errorProof)try{v=p[r].call(this,e,l,d,k)}catch(q){}else v=p[r].call(this,e,l,d,k);!1===v?m=1:"undefined"!=typeof v&&(l=v);if(a||m)break}}l=
m?!1:"undefined"==typeof l?!0:l;a=c;m=n;return l}}(),fireOnce:function(a,d,m){d=this.fire(a,d,m);delete g(this)[a];return d},removeListener:function(a,d){var m=g(this)[a];if(m){var k=m.getListenerIndex(d);0<=k&&m.listeners.splice(k,1)}},removeAllListeners:function(){var a=g(this),d;for(d in a)delete a[d]},hasListeners:function(a){return(a=g(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(a,g){a in{instanceReady:1,loaded:1}&&(this[a]=!0);return CKEDITOR.event.prototype.fire.call(this,a,g,this)},CKEDITOR.editor.prototype.fireOnce=function(a,g){a in{instanceReady:1,loaded:1}&&(this[a]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,a,g,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),g=a.match(/edge[ \/](\d+.?\d*)/),d=-1<a.indexOf("trident/"),d=!(!g&&!d),d={ie:d,edge:!!g,webkit:!d&&
-1<a.indexOf(" applewebkit/"),air:-1<a.indexOf(" adobeair/"),mac:-1<a.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<a.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return!1;var a=document.domain,d=window.location.hostname;return a!=d&&a!="["+d+"]"},secure:"https:"==location.protocol};d.gecko="Gecko"==navigator.product&&!d.webkit&&!d.ie;d.webkit&&(-1<a.indexOf("chrome")?d.chrome=
!0:d.safari=!0);var f=0;d.ie&&(f=g?parseFloat(g[1]):d.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode,d.ie9Compat=9==f,d.ie8Compat=8==f,d.ie7Compat=7==f,d.ie6Compat=7>f||d.quirks);if(d.gecko&&(g=a.match(/rv:([\d\.]+)/)))g=g[1].split("."),f=1E4*g[0]+100*(g[1]||0)+1*(g[2]||0);d.air&&(f=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));d.webkit&&(f=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));d.version=f;d.isCompatible=!(d.ie&&7>f)&&!(d.gecko&&4E4>f)&&!(d.webkit&&
534>f);d.hidpi=2<=window.devicePixelRatio;d.needsBrFiller=d.gecko||d.webkit||d.ie&&10<f;d.needsNbspFiller=d.ie&&11>f;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 a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=CKEDITOR.loadFullCore,g=CKEDITOR.loadFullCoreTimeout;a&&(CKEDITOR.status=
"basic_ready",a&&a._load?a():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(a,g){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:a,additionalData:g})},CKEDITOR.error=function(a,g){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",
{type:"error",errorCode:a,additionalData:g})},CKEDITOR.on("log",function(a){if(window.console&&window.console.log){var g=console[a.data.type]?a.data.type:"log",d=a.data.errorCode;if(a=a.data.additionalData)console[g]("[CKEDITOR] Error code: "+d+".",a);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 a(b,c,e){this._minInterval=
b;this._context=e;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(c,e||{});var a=this;this.input=function(){function b(){a._lastOutput=(new Date).getTime();a._scheduledTimer=0;a._call()}if(!(a._scheduledTimer&&!1===a._reschedule())){var n=(new Date).getTime()-a._lastOutput;n<a._minInterval?a._scheduledTimer=setTimeout(b,a._minInterval-n):b()}}}function g(b,c,e){a.call(this,b,c,e);this._args=[];var d=this;this.input=CKEDITOR.tools.override(this.input,function(b){return function(){d._args=
Array.prototype.slice.call(arguments);b.call(this)}})}var d=[],f=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",h=/&/g,m=/>/g,k=/</g,c=/"/g,l=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,e={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:""},b=function(b,c){return"#"==c[0]?String.fromCharCode(parseInt(c.slice(1),10)):e[c]};CKEDITOR.on("reset",function(){d=[]});CKEDITOR.tools={arrayCompare:function(b,c){if(!b&&!c)return!0;if(!b||!c||b.length!=c.length)return!1;
for(var e=0;e<b.length;e++)if(b[e]!=c[e])return!1;return!0},getIndex:function(b,c){for(var e=0;e<b.length;++e)if(c(b[e]))return e;return-1},clone:function(b){var c;if(b&&b instanceof Array){c=[];for(var e=0;e<b.length;e++)c[e]=CKEDITOR.tools.clone(b[e]);return c}if(null===b||"object"!=typeof b||b instanceof String||b instanceof Number||b instanceof Boolean||b instanceof Date||b instanceof RegExp||b.nodeType||b.window===b)return b;c=new b.constructor;for(e in b)c[e]=CKEDITOR.tools.clone(b[e]);return c},
capitalize:function(b,c){return b.charAt(0).toUpperCase()+(c?b.slice(1):b.slice(1).toLowerCase())},extend:function(b){var c=arguments.length,e,a;if("boolean"==typeof(e=arguments[c-1]))c--;else if("boolean"==typeof(e=arguments[c-2]))a=arguments[c-1],c-=2;for(var d=1;d<c;d++){var l=arguments[d]||{};CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(l),function(c){if(!0===e||null==b[c])if(!a||c in a)b[c]=l[c]})}return b},prototypedCopy:function(b){var c=function(){};c.prototype=b;return new c},
copy:function(b){var c={},e;for(e in b)c[e]=b[e];return c},isArray:function(b){return"[object Array]"==Object.prototype.toString.call(b)},isEmpty:function(b){for(var c in b)if(b.hasOwnProperty(c))return!1;return!0},cssVendorPrefix:function(b,c,e){if(e)return f+b+":"+c+";"+b+":"+c;e={};e[b]=c;e[f+b]=c;return e},cssStyleToDomStyle:function(){var b=document.createElement("div").style,c="undefined"!=typeof b.cssFloat?"cssFloat":"undefined"!=typeof b.styleFloat?"styleFloat":"float";return function(b){return"float"==
b?c:b.replace(/-./g,function(b){return b.substr(1).toUpperCase()})}}(),buildStyleHtml:function(b){b=[].concat(b);for(var c,e=[],a=0;a<b.length;a++)if(c=b[a])/@import|[{}]/.test(c)?e.push("\x3cstyle\x3e"+c+"\x3c/style\x3e"):e.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+c+'"\x3e');return e.join("")},htmlEncode:function(b){return void 0===b||null===b?"":String(b).replace(h,"\x26amp;").replace(m,"\x26gt;").replace(k,"\x26lt;")},htmlDecode:function(c){return c.replace(l,b)},htmlEncodeAttr:function(b){return CKEDITOR.tools.htmlEncode(b).replace(c,
"\x26quot;")},htmlDecodeAttr:function(b){return CKEDITOR.tools.htmlDecode(b)},transformPlainTextToHtml:function(b,c){var e=c==CKEDITOR.ENTER_BR,a=this.htmlEncode(b.replace(/\r\n/g,"\n")),a=a.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),d=c==CKEDITOR.ENTER_P?"p":"div";if(!e){var l=/\n{2}/g;if(l.test(a))var f="\x3c"+d+"\x3e",h="\x3c/"+d+"\x3e",a=f+a.replace(l,function(){return h+f})+h}a=a.replace(/\n/g,"\x3cbr\x3e");e||(a=a.replace(RegExp("\x3cbr\x3e(?\x3d\x3c/"+d+"\x3e)"),function(b){return CKEDITOR.tools.repeat(b,
2)}));a=a.replace(/^ | $/g,"\x26nbsp;");return a=a.replace(/(>|\s) /g,function(b,c){return c+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var b=0;return function(){return++b}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var b="e",c=0;8>c;c++)b+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return b},override:function(b,c){var e=c(b);e.prototype=b.prototype;return e},setTimeout:function(b,c,e,a,d){d||(d=window);e||(e=
d);return d.setTimeout(function(){a?b.apply(e,[].concat(a)):b.apply(e)},c||0)},throttle:function(b,c,e){return new this.buffers.throttle(b,c,e)},trim:function(){var b=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(c){return c.replace(b,"")}}(),ltrim:function(){var b=/^[ \t\n\r]+/g;return function(c){return c.replace(b,"")}}(),rtrim:function(){var b=/[ \t\n\r]+$/g;return function(c){return c.replace(b,"")}}(),indexOf:function(b,c){if("function"==typeof c)for(var e=0,a=b.length;e<a;e++){if(c(b[e]))return e}else{if(b.indexOf)return b.indexOf(c);
e=0;for(a=b.length;e<a;e++)if(b[e]===c)return e}return-1},search:function(b,c){var e=CKEDITOR.tools.indexOf(b,c);return 0<=e?b[e]:null},bind:function(b,c){return function(){return b.apply(c,arguments)}},createClass:function(b){var c=b.$,e=b.base,a=b.privates||b._,d=b.proto;b=b.statics;!c&&(c=function(){e&&this.base.apply(this,arguments)});if(a)var l=c,c=function(){var b=this._||(this._={}),c;for(c in a){var e=a[c];b[c]="function"==typeof e?CKEDITOR.tools.bind(e,this):e}l.apply(this,arguments)};e&&
(c.prototype=this.prototypedCopy(e.prototype),c.prototype.constructor=c,c.base=e,c.baseProto=e.prototype,c.prototype.base=function t(){this.base=e.prototype.base;e.apply(this,arguments);this.base=t});d&&this.extend(c.prototype,d,!0);b&&this.extend(c,b,!0);return c},addFunction:function(b,c){return d.push(function(){return b.apply(c||this,arguments)})-1},removeFunction:function(b){d[b]=null},callFunction:function(b){var c=d[b];return c&&c.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var b=
/^-?\d+\.?\d*px$/,c;return function(e){c=CKEDITOR.tools.trim(e+"")+"px";return b.test(c)?c:e||""}}(),convertToPx:function(){var b;return function(c){b||(b=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(b));if(!/%$/.test(c)){var e=0>parseFloat(c);e&&(c=c.replace("-",""));b.setStyle("width",c);c=b.$.clientWidth;return e?-c:c}return c}}(),repeat:function(b,
c){return Array(c+1).join(b)},tryThese:function(){for(var b,c=0,e=arguments.length;c<e;c++){var a=arguments[c];try{b=a();break}catch(d){}}return b},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(b){return function(){var c=arguments,e=this;window.setTimeout(function(){b.apply(e,c)},0)}},normalizeCssText:function(b,c){var e=[],a,d=CKEDITOR.tools.parseCssText(b,!0,c);for(a in d)e.push(a+":"+d[a]);e.sort();return e.length?e.join(";")+";":""},convertRgbToHex:function(b){return b.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,
function(b,c,e,n){b=[c,e,n];for(c=0;3>c;c++)b[c]=("0"+parseInt(b[c],10).toString(16)).slice(-2);return"#"+b.join("")})},normalizeHex:function(b){return b.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(b,c,e,n){b=c.toLowerCase();3==b.length&&(b=b.split(""),b=[b[0],b[0],b[1],b[1],b[2],b[2]].join(""));return"#"+b+n})},parseCssText:function(b,c,e){var a={};e&&(b=(new CKEDITOR.dom.element("span")).setAttribute("style",b).getAttribute("style")||"");b&&(b=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(b)));
if(!b||";"==b)return a;b.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,e,n){c&&(e=e.toLowerCase(),"font-family"==e&&(n=n.replace(/\s*,\s*/g,",")),n=CKEDITOR.tools.trim(n));a[e]=n});return a},writeCssText:function(b,c){var e,a=[];for(e in b)a.push(e+":"+b[e]);c&&a.sort();return a.join("; ")},objectCompare:function(b,c,e){var a;if(!b&&!c)return!0;if(!b||!c)return!1;for(a in b)if(b[a]!=c[a])return!1;if(!e)for(a in c)if(b[a]!=c[a])return!1;return!0},objectKeys:function(b){return CKEDITOR.tools.object.keys(b)},
convertArrayToObject:function(b,c){var e={};1==arguments.length&&(c=!0);for(var a=0,d=b.length;a<d;++a)e[b[a]]=c;return e},fixDomain:function(){for(var b;;)try{b=window.parent.document.domain;break}catch(c){b=b?b.replace(/.+?(?:\.|$)/,""):document.domain;if(!b)break;document.domain=b}return!!b},eventsBuffer:function(b,c,e){return new this.buffers.event(b,c,e)},enableHtml5Elements:function(b,c){for(var e="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(" "),
a=e.length,d;a--;)d=b.createElement(e[a]),c&&b.appendChild(d)},checkIfAnyArrayItemMatches:function(b,c){for(var e=0,a=b.length;e<a;++e)if(b[e].match(c))return!0;return!1},checkIfAnyObjectPropertyMatches:function(b,c){for(var e in b)if(e.match(c))return!0;return!1},keystrokeToString:function(b,c){var e=this.keystrokeToArray(b,c);e.display=e.display.join("+");e.aria=e.aria.join("+");return e},keystrokeToArray:function(b,c){var e=c&16711680,a=c&65535,d=CKEDITOR.env.mac,l=[],f=[];e&CKEDITOR.CTRL&&(l.push(d?
"⌘":b[17]),f.push(d?b[224]:b[17]));e&CKEDITOR.ALT&&(l.push(d?"⌥":b[18]),f.push(b[18]));e&CKEDITOR.SHIFT&&(l.push(d?"⇧":b[16]),f.push(b[16]));a&&(b[a]?(l.push(b[a]),f.push(b[a])):(l.push(String.fromCharCode(a)),f.push(String.fromCharCode(a))));return{display:l,aria:f}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d",getCookie:function(b){b=b.toLowerCase();for(var c=document.cookie.split(";"),e,a,d=0;d<c.length;d++)if(e=c[d].split("\x3d"),
a=decodeURIComponent(CKEDITOR.tools.trim(e[0]).toLowerCase()),a===b)return decodeURIComponent(1<e.length?e[1]:"");return null},setCookie:function(b,c){document.cookie=encodeURIComponent(b)+"\x3d"+encodeURIComponent(c)+";path\x3d/"},getCsrfToken:function(){var b=CKEDITOR.tools.getCookie("ckCsrfToken");if(!b||40!=b.length){var b=[],c="";if(window.crypto&&window.crypto.getRandomValues)b=new Uint8Array(40),window.crypto.getRandomValues(b);else for(var e=0;40>e;e++)b.push(Math.floor(256*Math.random()));
for(e=0;e<b.length;e++)var a="abcdefghijklmnopqrstuvwxyz0123456789".charAt(b[e]%36),c=c+(0.5<Math.random()?a.toUpperCase():a);b=c;CKEDITOR.tools.setCookie("ckCsrfToken",b)}return b},escapeCss:function(b){return!b?"":window.CSS&&CSS.escape?CSS.escape(b):!isNaN(parseInt(b.charAt(0),10))?"\\3"+b.charAt(0)+" "+b.substring(1,b.length):b},getMouseButton:function(b){b=b.data?b.data.$:b;return!b?!1:CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.ie6Compat)?4===b.button?CKEDITOR.MOUSE_BUTTON_MIDDLE:
1===b.button?CKEDITOR.MOUSE_BUTTON_LEFT:CKEDITOR.MOUSE_BUTTON_RIGHT:b.button},convertHexStringToBytes:function(b){var c=[],e=b.length/2,a;for(a=0;a<e;a++)c.push(parseInt(b.substr(2*a,2),16));return c},convertBytesToBase64:function(b){var c="",e=b.length,a;for(a=0;a<e;a+=3){var d=b.slice(a,a+3),l=d.length,f=[],h;if(3>l)for(h=l;3>h;h++)d[h]=0;f[0]=(d[0]&252)>>2;f[1]=(d[0]&3)<<4|d[1]>>4;f[2]=(d[1]&15)<<2|(d[2]&192)>>6;f[3]=d[2]&63;for(h=0;4>h;h++)c=h<=l?c+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f[h]):
c+"\x3d"}return c},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",
darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",
gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",
lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",
mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",
sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",windowtext:"windowtext",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "),
_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi,background:function(b){var c={},e=this._findColor(b);e.length&&(c.color=e[0],CKEDITOR.tools.array.forEach(e,function(c){b=b.replace(c,"")}));if(b=CKEDITOR.tools.trim(b))c.unprocessed=b;return c},margin:function(b){return CKEDITOR.tools.style.parse.sideShorthand(b,
function(b){return b.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||["0px"]})},sideShorthand:function(b,c){function e(b){a.top=d[b[0]];a.right=d[b[1]];a.bottom=d[b[2]];a.left=d[b[3]]}var a={},d=c?c(b):b.split(/\s+/);switch(d.length){case 1:e([0,0,0,0]);break;case 2:e([0,1,0,1]);break;case 3:e([0,1,2,1]);break;case 4:e([0,1,2,3])}return a},border:function(b){return CKEDITOR.tools.style.border.fromCssRule(b)},_findColor:function(b){var c=[],e=CKEDITOR.tools.array,c=c.concat(b.match(this._rgbaRegExp)||
[]),c=c.concat(b.match(this._hslaRegExp)||[]);return c=c.concat(e.filter(b.split(/\s+/),function(b){return b.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:b.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(b,c,e){var a=[];this.forEach(b,function(d,l){c.call(e,d,l,b)&&a.push(d)});return a},find:function(b,c,e){for(var a=b.length,d=0;d<a;){if(c.call(e,b[d],d,b))return b[d];d++}},forEach:function(b,c,e){var a=b.length,d;for(d=0;d<a;d++)c.call(e,b[d],d,b)},map:function(b,
c,e){for(var a=[],d=0;d<b.length;d++)a.push(c.call(e,b[d],d,b));return a},reduce:function(b,c,e,a){for(var d=0;d<b.length;d++)e=c.call(a,e,b[d],d,b);return e},every:function(b,c,e){if(!b.length)return!0;c=this.filter(b,c,e);return b.length===c.length}},object:{DONT_ENUMS:"toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),entries:function(b){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(b),function(c){return[c,b[c]]})},values:function(b){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(b),
function(c){return b[c]})},keys:function(b){var c=Object.prototype.hasOwnProperty,e=[],a=CKEDITOR.tools.object.DONT_ENUMS,d;for(d in b)e.push(d);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)for(d=0;d<a.length;d++)c.call(b,a[d])&&e.push(a[d]);return e},findKey:function(b,c){if("object"!==typeof b)return null;for(var e in b)if(b[e]===c)return e;return null},merge:function(b,c){var e=CKEDITOR.tools,a=e.clone(b),d=e.clone(c);e.array.forEach(e.object.keys(d),function(b){a[b]="object"===typeof d[b]&&"object"===
typeof a[b]?e.object.merge(a[b],d[b]):d[b]});return a}},getAbsoluteRectPosition:function(b,c){function e(b){if(b){var c=b.getClientRect();a.top+=c.top;a.left+=c.left;"x"in a&&"y"in a&&(a.x+=c.x,a.y+=c.y);e(b.getWindow().getFrame())}}var a=CKEDITOR.tools.copy(c);e(b.getFrame());var d=CKEDITOR.document.getWindow().getScrollPosition();a.top+=d.y;a.left+=d.x;"x"in a&&"y"in a&&(a.y+=d.y,a.x+=d.x);a.right=a.left+a.width;a.bottom=a.top+a.height;return a}};a.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(a.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=a;CKEDITOR.tools.buffers.throttle=g;CKEDITOR.tools.style.border=
CKEDITOR.tools.createClass({$:function(b){b=b||{};this.width=b.width;this.style=b.style;this.color=b.color;this._.normalize()},_:{normalizeMap:{color:[[/windowtext/g,"black"]]},normalize:function(){for(var b in this._.normalizeMap){var c=this[b];c&&(this[b]=CKEDITOR.tools.array.reduce(this._.normalizeMap[b],function(b,c){return b.replace(c[0],c[1])},c))}}},proto:{toString:function(){return CKEDITOR.tools.array.filter([this.width,this.style,this.color],function(b){return!!b}).join(" ")}},statics:{fromCssRule:function(b){var c=
{},e=b.split(/\s+/g);b=CKEDITOR.tools.style.parse._findColor(b);b.length&&(c.color=b[0]);CKEDITOR.tools.array.forEach(e,function(b){!c.style&&-1!==CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,b)?c.style=b:!c.width&&CKEDITOR.tools.style.parse._widthRegExp.test(b)&&(c.width=b)});return new CKEDITOR.tools.style.border(c)},splitCssValues:function(b,c){c=c||{};var e=CKEDITOR.tools.array.reduce(["width","style","color"],function(e,a){var d=b["border-"+a]||c[a];e[a]=d?CKEDITOR.tools.style.parse.sideShorthand(d):
null;return e},{});return CKEDITOR.tools.array.reduce(["top","right","bottom","left"],function(c,a){var d={},l;for(l in e){var f=b["border-"+a+"-"+l];d[l]=f?f:e[l]&&e[l][a]}c["border-"+a]=new CKEDITOR.tools.style.border(d);return c},{})}}});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 a=CKEDITOR.tools.extend,g=function(c,
b){for(var a=CKEDITOR.tools.clone(c),d=1;d<arguments.length;d++){b=arguments[d];for(var l in b)delete a[l]}return a},d={},f={},h={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={},c={"#":1},l={center:1,dir:1,noframes:1};a(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},c,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(f,h,d,l);g={a:g(d,{a:1,button:1}),abbr:d,address:f,area:k,article:f,aside:f,audio:a({source:1,track:1},f),b:d,base:k,
bdi:d,bdo:d,blockquote:f,body:f,br:k,button:g(d,{a:1,button:1}),canvas:d,caption:f,cite:d,code:d,col:k,colgroup:{col:1},command:k,datalist:a({option:1},d),dd:f,del:d,details:a({summary:1},f),dfn:d,div:f,dl:{dt:1,dd:1},dt:f,em:d,embed:k,fieldset:a({legend:1},f),figcaption:f,figure:a({figcaption:1},f),footer:f,form:f,h1:d,h2:d,h3:d,h4:d,h5:d,h6:d,head:a({title:1,base:1},m),header:f,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:k,html:a({head:1,body:1},f,m),i:d,iframe:c,img:k,input:k,ins:d,kbd:d,keygen:k,
label:d,legend:d,li:f,link:k,main:f,map:f,mark:d,menu:a({li:1},f),meta:k,meter:g(d,{meter:1}),nav:f,noscript:a({link:1,meta:1,style:1},d),object:a({param:1},d),ol:{li:1},optgroup:{option:1},option:c,output:d,p:d,param:k,pre:d,progress:g(d,{progress:1}),q:d,rp:d,rt:d,ruby:a({rp:1,rt:1},d),s:d,samp:d,script:c,section:f,select:{optgroup:1,option:1},small:d,source:k,span:d,strong:d,style:c,sub:d,summary:a({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:f,textarea:c,tfoot:{tr:1},th:f,thead:{tr:1},time:g(d,{time:1}),title:c,tr:{th:1,td:1},track:k,u:d,ul:{li:1},"var":d,video:a({source:1,track:1},f),wbr:k,acronym:d,applet:a({param:1},f),basefont:k,big:d,center:f,dialog:k,dir:{li:1},font:d,isindex:k,noframes:f,strike:d,tt:d};a(g,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},h,l),$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:a({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(a){this.$=a},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||
this.$.which},getKeystroke:function(){var a=this.getKey();if(this.$.ctrlKey||this.$.metaKey)a+=CKEDITOR.CTRL;this.$.shiftKey&&(a+=CKEDITOR.SHIFT);this.$.altKey&&(a+=CKEDITOR.ALT);return a},preventDefault:function(a){var g=this.$;g.preventDefault?g.preventDefault():g.returnValue=!1;a&&this.stopPropagation()},stopPropagation:function(){var a=this.$;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},getTarget:function(){var a=this.$.target||this.$.srcElement;return a?new CKEDITOR.dom.node(a):null},
getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var a=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(a.documentElement.scrollLeft||a.body.scrollLeft),y:this.$.pageY||this.$.clientY+(a.documentElement.scrollTop||a.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(a){a&&(this.$=a)},CKEDITOR.dom.domObject.prototype=
function(){var a=function(a,d){return function(f){"undefined"!=typeof CKEDITOR&&a.fire(d,new CKEDITOR.dom.event(f))}};return{getPrivate:function(){var a;if(!(a=this.getCustomData("_")))this.setCustomData("_",a={});return a},on:function(g){var d=this.getCustomData("_cke_nativeListeners");d||(d={},this.setCustomData("_cke_nativeListeners",d));d[g]||(d=d[g]=a(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(a){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(a)){var d=this.getCustomData("_cke_nativeListeners"),f=d&&d[a];f&&(this.$.removeEventListener?this.$.removeEventListener(a,f,!1):this.$.detachEvent&&this.$.detachEvent("on"+a,f),delete d[a])}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),d;for(d in a){var f=a[d];this.$.detachEvent?this.$.detachEvent("on"+d,f):this.$.removeEventListener&&this.$.removeEventListener(d,
f,!1);delete a[d]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(a){var g={};CKEDITOR.on("reset",function(){g={}});a.equals=function(a){try{return a&&a.$===this.$}catch(f){return!1}};a.setCustomData=function(a,f){var h=this.getUniqueId();(g[h]||(g[h]={}))[a]=f;return this};a.getCustomData=function(a){var f=this.$["data-cke-expando"];return(f=f&&g[f])&&a in f?f[a]:null};a.removeCustomData=function(a){var f=this.$["data-cke-expando"],f=f&&g[f],h,m;f&&(h=f[a],m=a in f,delete f[a]);
return m?h:null};a.clearCustomData=function(){this.removeAllListeners();var a=this.$["data-cke-expando"];a&&delete g[a]};a.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(a)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NODE_DOCUMENT?"document":a.nodeType==CKEDITOR.NODE_ELEMENT?"element":a.nodeType==CKEDITOR.NODE_TEXT?"text":a.nodeType==
CKEDITOR.NODE_COMMENT?"comment":a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](a):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(a,g){a.append(this,g);return a},clone:function(a,g){function d(f){f["data-cke-expando"]&&(f["data-cke-expando"]=!1);if(!(f.nodeType!=CKEDITOR.NODE_ELEMENT&&f.nodeType!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(!g&&f.nodeType==CKEDITOR.NODE_ELEMENT&&f.removeAttribute("id",!1),a)){f=f.childNodes;for(var h=0;h<f.length;h++)d(f[h])}}function f(d){if(!(d.type!=CKEDITOR.NODE_ELEMENT&&d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){if(d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var h=d.getName();":"==
h[0]&&d.renameNode(h.substring(1))}if(a)for(h=0;h<d.getChildCount();h++)f(d.getChild(h))}}var h=this.$.cloneNode(a);d(h);h=new CKEDITOR.dom.node(h);CKEDITOR.env.ie&&(9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT))&&f(h);return h},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,
a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$);return a},getAddress:function(a){for(var g=[],d=this.getDocument().$.documentElement,f=this.$;f&&f!=d;){var h=f.parentNode;h&&g.unshift(this.getIndex.call({$:f},a));f=h}return g},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function g(a,c){var l=c?a.nextSibling:a.previousSibling;return!l||l.nodeType!=CKEDITOR.NODE_TEXT?null:d(l)?
g(l,c):l}function d(a){return!a.nodeValue||a.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}var f=this.$,h=-1,m;if(!this.$.parentNode||a&&f.nodeType==CKEDITOR.NODE_TEXT&&d(f)&&!g(f)&&!g(f,!0))return-1;do if(!a||!(f!=this.$&&f.nodeType==CKEDITOR.NODE_TEXT&&(m||d(f))))h++,m=f.nodeType==CKEDITOR.NODE_TEXT;while(f=f.previousSibling);return h},getNextSourceNode:function(a,g,d){if(d&&!d.call){var f=d;d=function(a){return!a.equals(f)}}a=!a&&this.getFirst&&this.getFirst();var h;if(!a){if(this.type==
CKEDITOR.NODE_ELEMENT&&d&&!1===d(this,!0))return null;a=this.getNext()}for(;!a&&(h=(h||this).getParent());){if(d&&!1===d(h,!0))return null;a=h.getNext()}return!a||d&&!1===d(a)?null:g&&g!=a.type?a.getNextSourceNode(!1,g,d):a},getPreviousSourceNode:function(a,g,d){if(d&&!d.call){var f=d;d=function(a){return!a.equals(f)}}a=!a&&this.getLast&&this.getLast();var h;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&d&&!1===d(this,!0))return null;a=this.getPrevious()}for(;!a&&(h=(h||this).getParent());){if(d&&!1===
d(h,!0))return null;a=h.getPrevious()}return!a||d&&!1===d(a)?null:g&&a.type!=g?a.getPreviousSourceNode(!1,g,d):a},getPrevious:function(a){var g=this.$,d;do d=(g=g.previousSibling)&&10!=g.nodeType&&new CKEDITOR.dom.node(g);while(d&&a&&!a(d));return d},getNext:function(a){var g=this.$,d;do d=(g=g.nextSibling)&&new CKEDITOR.dom.node(g);while(d&&a&&!a(d));return d},getParent:function(a){var g=this.$.parentNode;return g&&(g.nodeType==CKEDITOR.NODE_ELEMENT||a&&g.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?
new CKEDITOR.dom.node(g):null},getParents:function(a){var g=this,d=[];do d[a?"push":"unshift"](g);while(g=g.getParent());return d},getCommonAncestor:function(a){if(a.equals(this))return this;if(a.contains&&a.contains(this))return a;var g=this.contains?this:this.getParent();do if(g.contains(a))return g;while(g=g.getParent());return null},getPosition:function(a){var g=this.$,d=a.$;if(g.compareDocumentPosition)return g.compareDocumentPosition(d);if(g==d)return CKEDITOR.POSITION_IDENTICAL;if(this.type==
CKEDITOR.NODE_ELEMENT&&a.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();a=a.getAddress();for(var d=Math.min(g.length,a.length),f=0;f<d;f++)if(g[f]!=
a[f])return g[f]<a[f]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return g.length<a.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(a,g){var d=this.$,f,h;g||(d=d.parentNode);"function"==typeof a?(h=!0,f=a):(h=!1,f=function(d){d="string"==typeof d.nodeName?d.nodeName.toLowerCase():"";return"string"==typeof a?d==a:d in a});for(;d;){if(f(h?new CKEDITOR.dom.node(d):d))return new CKEDITOR.dom.node(d);
try{d=d.parentNode}catch(m){d=null}}return null},hasAscendant:function(a,g){var d=this.$;g||(d=d.parentNode);for(;d;){if(d.nodeName&&d.nodeName.toLowerCase()==a)return!0;d=d.parentNode}return!1},move:function(a,g){a.append(this.remove(),g)},remove:function(a){var g=this.$,d=g.parentNode;if(d){if(a)for(;a=g.firstChild;)d.insertBefore(g.removeChild(a),g);d.removeChild(g)}return this},replace:function(a){this.insertBefore(a);a.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var a;this.getFirst&&
(a=this.getFirst());){if(a.type==CKEDITOR.NODE_TEXT){var g=CKEDITOR.tools.ltrim(a.getText()),d=a.getLength();if(g)g.length<d&&(a.split(d-g.length),this.$.removeChild(this.$.firstChild));else{a.remove();continue}}break}},rtrim:function(){for(var a;this.getLast&&(a=this.getLast());){if(a.type==CKEDITOR.NODE_TEXT){var g=CKEDITOR.tools.rtrim(a.getText()),d=a.getLength();if(g)g.length<d&&(a.split(g.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{a.remove();continue}}break}CKEDITOR.env.needsBrFiller&&
(a=this.$.lastChild)&&(1==a.type&&"br"==a.nodeName.toLowerCase())&&a.parentNode.removeChild(a)},isReadOnly:function(a){var g=this;this.type!=CKEDITOR.NODE_ELEMENT&&(g=this.getParent());CKEDITOR.env.edge&&(g&&g.is("textarea","input"))&&(a=!0);if(!a&&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(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var a=this.$.document,g="CSS1Compat"==a.compatMode;return{width:(g?a.documentElement.clientWidth:a.body.clientWidth)||0,height:(g?a.documentElement.clientHeight:a.body.clientHeight)||0}},getScrollPosition:function(){var a=this.$;if("pageXOffset"in a)return{x:a.pageXOffset||
0,y:a.pageYOffset||0};a=a.document;return{x:a.documentElement.scrollLeft||a.body.scrollLeft||0,y:a.documentElement.scrollTop||a.body.scrollTop||0}},getFrame:function(){var a=this.$.frameElement;return a?new CKEDITOR.dom.element.get(a):null}}),CKEDITOR.dom.document=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(a){if(this.$.createStyleSheet)this.$.createStyleSheet(a);
else{var g=new CKEDITOR.dom.element("link");g.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(g)}},appendStyleText:function(a){if(this.$.createStyleSheet){var g=this.$.createStyleSheet("");g.cssText=a}else{var d=new CKEDITOR.dom.element("style",this);d.append(new CKEDITOR.dom.text(a,this));this.getHead().append(d)}return g||d.$.sheet},createElement:function(a,g){var d=new CKEDITOR.dom.element(a,this);g&&(g.attributes&&d.setAttributes(g.attributes),g.styles&&d.setStyles(g.styles));
return d},createText:function(a){return new CKEDITOR.dom.text(a,this)},focus:function(){this.getWindow().focus()},getActive:function(){var a;try{a=this.$.activeElement}catch(g){return null}return new CKEDITOR.dom.element(a)},getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,g){for(var d=this.$.documentElement,f=0;d&&f<a.length;f++){var h=a[f];if(g)for(var m=-1,k=0;k<d.childNodes.length;k++){var c=d.childNodes[k];if(!(!0===g&&3==c.nodeType&&
c.previousSibling&&3==c.previousSibling.nodeType)&&(m++,m==h)){d=c;break}}else d=d.childNodes[h]}return d?new CKEDITOR.dom.node(d):null},getElementsByTag:function(a,g){!(CKEDITOR.env.ie&&8>=document.documentMode)&&g&&(a=g+":"+a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):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(a){this.$.open("text/html","replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=
this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");a||(a=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(a,!0),this.setCustomData("html5ShivFrag",a));return a}}),CKEDITOR.dom.nodeList=function(a){this.$=a},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){return 0>a||a>=this.$.length?null:(a=this.$[a])?new CKEDITOR.dom.node(a):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,
function(a){return new CKEDITOR.dom.node(a)})}},CKEDITOR.dom.element=function(a,g){"string"==typeof a&&(a=(g?g.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.element.get=function(a){return(a="string"==typeof a?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(a,g){var d=new CKEDITOR.dom.element("div",g);d.setHtml(a);
return d.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(a,g,d,f){var h=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");a[h]=g;m[d]=1;return g.setCustomData(d,f)},CKEDITOR.dom.element.clearAllMarkers=function(a){for(var g in a)CKEDITOR.dom.element.clearMarkers(a,a[g],1)},CKEDITOR.dom.element.clearMarkers=
function(a,g,d){var f=g.getCustomData("list_marker_names"),h=g.getCustomData("list_marker_id"),m;for(m in f)g.removeCustomData(m);g.removeCustomData("list_marker_names");d&&(g.removeCustomData("list_marker_id"),delete a[h])},function(){function a(c,a){return-1<(" "+c+" ").replace(m," ").indexOf(" "+a+" ")}function g(c){var a=!0;c.$.id||(c.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),a=!1);return function(){a||c.removeAttribute("id")}}function d(c,a){var e=CKEDITOR.tools.escapeCss(c.$.id);return"#"+
e+" "+a.split(/,\s*/).join(", #"+e+" ")}function f(c){for(var a=0,e=0,b=k[c].length;e<b;e++)a+=parseFloat(this.getComputedStyle(k[c][e])||0,10)||0;return a}var h=document.createElement("_").classList,h="undefined"!==typeof h&&null!==String(h.add).match(/\[Native code\]/gi),m=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:h?function(c){this.$.classList.add(c);return this}:function(c){var d=this.$.className;d&&(a(d,c)||(d+=" "+c));this.$.className=
d||c;return this},removeClass:h?function(c){var a=this.$;a.classList.remove(c);a.className||a.removeAttribute("class");return this}:function(c){var d=this.getAttribute("class");d&&a(d,c)&&((d=d.replace(RegExp("(?:^|\\s+)"+c+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",d):this.removeAttribute("class"));return this},hasClass:function(c){return a(this.$.className,c)},append:function(c,a){"string"==typeof c&&(c=this.getDocument().createElement(c));a?this.$.insertBefore(c.$,this.$.firstChild):
this.$.appendChild(c.$);return c},appendHtml:function(c){if(this.$.childNodes.length){var a=new CKEDITOR.dom.element("div",this.getDocument());a.setHtml(c);a.moveChildren(this)}else this.setHtml(c)},appendText:function(c){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=c:this.append(new CKEDITOR.dom.text(c))},appendBogus:function(c){if(c||CKEDITOR.env.needsBrFiller){for(c=this.getLast();c&&c.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(c.getText());)c=c.getPrevious();if(!c||
!c.is||!c.is("br"))c=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&c.setAttribute("type","_moz"),this.append(c)}},breakParent:function(c,a){var e=new CKEDITOR.dom.range(this.getDocument());e.setStartAfter(this);e.setEndAfter(c);var b=e.extractContents(!1,a||!1),d;e.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(e=new CKEDITOR.dom.element("div");d=b.getFirst();)d.$.style.backgroundColor&&(d.$.style.backgroundColor=d.$.style.backgroundColor),e.append(d);e.insertAfter(this);
e.remove(!0)}else b.insertAfterNode(this)},contains:!document.compareDocumentPosition?function(c){var a=this.$;return c.type!=CKEDITOR.NODE_ELEMENT?a.contains(c.getParent().$):a!=c.$&&a.contains(c.$)}:function(c){return!!(this.$.compareDocumentPosition(c.$)&16)},focus:function(){function c(){try{this.$.focus()}catch(c){}}return function(a){a?CKEDITOR.tools.setTimeout(c,100,this):c.call(this)}}(),getHtml:function(){var c=this.$.innerHTML;return CKEDITOR.env.ie?c.replace(/<\?[^>]*>/g,""):c},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,
"");var c=this.$.ownerDocument.createElement("div");c.appendChild(this.$.cloneNode(!0));return c.innerHTML},getClientRect:function(c){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return!c?a:CKEDITOR.tools.getAbsoluteRectPosition(this.getWindow(),a)},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(c){try{var a=this.$;if(this.getParent())return a.innerHTML=c;var e=this.getDocument()._getHtml5ShivFrag();
e.appendChild(a);a.innerHTML=c;e.removeChild(a);return c}catch(b){this.$.innerHTML="";a=new CKEDITOR.dom.element("body",this.getDocument());a.$.innerHTML=c;for(a=a.getChildren();a.count();)this.append(a.getItem(0));return c}}:function(c){return this.$.innerHTML=c},setText:function(){var c=document.createElement("p");c.innerHTML="x";c=c.textContent;return function(a){this.$[c?"textContent":"innerText"]=a}}(),getAttribute:function(){var c=function(c){return this.$.getAttribute(c,2)};return CKEDITOR.env.ie&&
(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(c){switch(c){case "class":c="className";break;case "http-equiv":c="httpEquiv";break;case "name":return this.$.name;case "tabindex":return c=this.$.getAttribute(c,2),0!==c&&0===this.$.tabIndex&&(c=null),c;case "checked":return c=this.$.attributes.getNamedItem(c),(c.specified?c.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[c];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?
this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(c,2)}:c}(),getAttributes:function(c){var a={},e=this.$.attributes,b;c=CKEDITOR.tools.isArray(c)?c:[];for(b=0;b<e.length;b++)-1===CKEDITOR.tools.indexOf(c,e[b].name)&&(a[e[b].name]=e[b].value);return a},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(c){var a=this.getWindow().$.getComputedStyle(this.$,null);return a?
a.getPropertyValue(c):""}:function(c){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(c)]},getDtd:function(){var c=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return c};return c},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var c=this.$.tabIndex;return 0===c&&!CKEDITOR.dtd.$tabIndex[this.getName()]&&0!==parseInt(this.getAttribute("tabindex"),10)?-1:c},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 c=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var a=this.$.scopeName;"HTML"!=a&&(c=a.toLowerCase()+":"+c)}this.getName=function(){return c};return this.getName()},getValue:function(){return this.$.value},getFirst:function(c){var a=this.$.firstChild;(a=a&&new CKEDITOR.dom.node(a))&&(c&&!c(a))&&(a=a.getNext(c));return a},getLast:function(c){var a=this.$.lastChild;
(a=a&&new CKEDITOR.dom.node(a))&&(c&&!c(a))&&(a=a.getPrevious(c));return a},getStyle:function(c){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(c)]},is:function(){var c=this.getName();if("object"==typeof arguments[0])return!!arguments[0][c];for(var a=0;a<arguments.length;a++)if(arguments[a]==c)return!0;return!1},isEditable:function(c){var a=this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[a]||
CKEDITOR.dtd.$empty[a]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==c?(c=CKEDITOR.dtd[a]||CKEDITOR.dtd.span,!(!c||!c["#"])):!0},isIdentical:function(c){var a=this.clone(0,1);c=c.clone(0,1);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);c.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(a.$.isEqualNode)return a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText),
c.$.style.cssText=CKEDITOR.tools.normalizeCssText(c.$.style.cssText),a.$.isEqualNode(c.$);a=a.getOuterHtml();c=c.getOuterHtml();if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var e=this.getParent();e.type==CKEDITOR.NODE_ELEMENT&&(e=e.clone(),e.setHtml(a),a=e.getHtml(),e.setHtml(c),c=e.getHtml())}return a==c},isVisible:function(){var c=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),a,e;if(c&&CKEDITOR.env.webkit&&(a=this.getWindow(),!a.equals(CKEDITOR.document.getWindow())&&
(e=a.$.frameElement)))c=(new CKEDITOR.dom.element(e)).isVisible();return!!c},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var c=this.getChildren(),a=0,e=c.count();a<e;a++){var b=c.getItem(a);if(!(b.type==CKEDITOR.NODE_ELEMENT&&b.data("cke-bookmark"))&&(b.type==CKEDITOR.NODE_ELEMENT&&!b.isEmptyInlineRemoveable()||b.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(b.getText())))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?
function(){for(var c=this.$.attributes,a=0;a<c.length;a++){var e=c[a];switch(e.nodeName){case "class":if(this.getAttribute("class"))return!0;case "data-cke-expando":continue;default:if(e.specified)return!0}}return!1}:function(){var c=this.$.attributes,a=c.length,e={"data-cke-expando":1,_moz_dirty:1};return 0<a&&(2<a||!e[c[0].nodeName]||2==a&&!e[c[1].nodeName])},hasAttribute:function(){function c(c){var a=this.$.attributes.getNamedItem(c);if("input"==this.getName())switch(c){case "class":return 0<
this.$.className.length;case "checked":return!!this.$.checked;case "value":return c=this.getAttribute("type"),"checkbox"==c||"radio"==c?"on"!=this.$.value:!!this.$.value}return!a?!1:a.specified}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(a){return"name"==a?!!this.$.name:c.call(this,a)}:c:function(c){return!!this.$.attributes.getNamedItem(c)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(c,a){var e=this.$;c=c.$;if(e!=c){var b;if(a)for(;b=e.lastChild;)c.insertBefore(e.removeChild(b),
c.firstChild);else for(;b=e.firstChild;)c.appendChild(e.removeChild(b))}},mergeSiblings:function(){function c(c,a,b){if(a&&a.type==CKEDITOR.NODE_ELEMENT){for(var d=[];a.data("cke-bookmark")||a.isEmptyInlineRemoveable();)if(d.push(a),a=b?a.getNext():a.getPrevious(),!a||a.type!=CKEDITOR.NODE_ELEMENT)return;if(c.isIdentical(a)){for(var f=b?c.getLast():c.getFirst();d.length;)d.shift().move(c,!b);a.moveChildren(c,!b);a.remove();f&&f.type==CKEDITOR.NODE_ELEMENT&&f.mergeSiblings()}}}return function(a){if(!1===
a||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))c(this,this.getNext(),!0),c(this,this.getPrevious())}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var c=function(c,a){this.$.setAttribute(c,a);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a,e){"class"==a?this.$.className=e:"style"==a?this.$.style.cssText=e:"tabindex"==a?this.$.tabIndex=e:"checked"==a?this.$.checked=e:"contenteditable"==a?c.call(this,
"contentEditable",e):c.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(a,e){if("src"==a&&e.match(/^http:\/\//))try{c.apply(this,arguments)}catch(b){}else c.apply(this,arguments);return this}:c}(),setAttributes:function(c){for(var a in c)this.setAttribute(a,c[a]);return this},setValue:function(c){this.$.value=c;return this},removeAttribute:function(){var c=function(c){this.$.removeAttribute(c)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?
function(c){"class"==c?c="className":"tabindex"==c?c="tabIndex":"contenteditable"==c&&(c="contentEditable");this.$.removeAttribute(c)}:c}(),removeAttributes:function(c){if(CKEDITOR.tools.isArray(c))for(var a=0;a<c.length;a++)this.removeAttribute(c[a]);else for(a in c=c||this.getAttributes(),c)c.hasOwnProperty(a)&&this.removeAttribute(a)},removeStyle:function(c){var a=this.$.style;if(!a.removeProperty&&("border"==c||"margin"==c||"padding"==c)){var e=["top","left","right","bottom"],b;"border"==c&&(b=
["color","style","width"]);for(var a=[],d=0;d<e.length;d++)if(b)for(var f=0;f<b.length;f++)a.push([c,e[d],b[f]].join("-"));else a.push([c,e[d]].join("-"));for(c=0;c<a.length;c++)this.removeStyle(a[c])}else a.removeProperty?a.removeProperty(c):a.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(c)),this.$.style.cssText||this.removeAttribute("style")},setStyle:function(c,a){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(c)]=a;return this},setStyles:function(c){for(var a in c)this.setStyle(a,c[a]);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,d=this.getElementsByTag("*"),e=0,b=d.count();e<b;e++)a=d.getItem(e),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 d=0,e=0,b=this.getDocument(),f=b.getBody(),h="BackCompat"==b.$.compatMode;if(document.documentElement.getBoundingClientRect&&(CKEDITOR.env.ie?8!==CKEDITOR.env.version:1)){var k=this.$.getBoundingClientRect(),g=b.$.documentElement,m=g.clientTop||f.$.clientTop||0,u=g.clientLeft||f.$.clientLeft||0,s=!0;CKEDITOR.env.ie&&(s=b.getDocumentElement().contains(this),
b=b.getBody().contains(this),s=h&&b||!h&&s);s&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(d=f.$.scrollLeft||g.scrollLeft,e=f.$.scrollTop||g.scrollTop):(e=h?f.$:g,d=e.scrollLeft,e=e.scrollTop),d=k.left+d-u,e=k.top+e-m)}else{m=this;for(u=null;m&&!("body"==m.getName()||"html"==m.getName());){d+=m.$.offsetLeft-m.$.scrollLeft;e+=m.$.offsetTop-m.$.scrollTop;m.equals(this)||(d+=m.$.clientLeft||0,e+=m.$.clientTop||0);for(;u&&!u.equals(m);)d-=u.$.scrollLeft,e-=u.$.scrollTop,u=u.getParent();
u=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),d+=a.x,e+=a.y));!document.documentElement.getBoundingClientRect&&(CKEDITOR.env.gecko&&!h)&&(d+=this.$.clientLeft?1:0,e+=this.$.clientTop?1:0);return{x:d,y:e}},scrollIntoView:function(a){var d=this.getParent();if(d){do if((d.$.clientWidth&&d.$.clientWidth<d.$.scrollWidth||d.$.clientHeight&&d.$.clientHeight<
d.$.scrollHeight)&&!d.is("body")&&this.scrollIntoParent(d,a,1),d.is("html")){var e=d.getWindow();try{var b=e.$.frameElement;b&&(d=new CKEDITOR.dom.element(b))}catch(f){}}while(d=d.getParent())}},scrollIntoParent:function(a,d,e){var b,f,h,k;function g(b,e){/body|html/.test(a.getName())?a.getWindow().$.scrollBy(b,e):(a.$.scrollLeft+=b,a.$.scrollTop+=e)}function m(b,a){var c={x:0,y:0};if(!b.is(s?"body":"html")){var e=b.$.getBoundingClientRect();c.x=e.left;c.y=e.top}e=b.getWindow();e.equals(a)||(e=m(CKEDITOR.dom.element.get(e.$.frameElement),
a),c.x+=e.x,c.y+=e.y);return c}function u(b,a){return parseInt(b.getComputedStyle("margin-"+a)||0,10)||0}!a&&(a=this.getWindow());h=a.getDocument();var s="BackCompat"==h.$.compatMode;a instanceof CKEDITOR.dom.window&&(a=s?h.getBody():h.getDocumentElement());if(CKEDITOR.env.webkit&&(h=this.getEditor(!1)))h._.previousScrollTop=null;h=a.getWindow();f=m(this,h);var t=m(a,h),w=this.$.offsetHeight;b=this.$.offsetWidth;var x=a.$.clientHeight,y=a.$.clientWidth;h=f.x-u(this,"left")-t.x||0;k=f.y-u(this,"top")-
t.y||0;b=f.x+b+u(this,"right")-(t.x+y)||0;f=f.y+w+u(this,"bottom")-(t.y+x)||0;if(0>k||0<f)g(0,!0===d?k:!1===d?f:0>k?k:f);if(e&&(0>h||0<b))g(0>h?h:b,0)},setState:function(a,d,e){d=d||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(d+"_on");this.removeClass(d+"_off");this.removeClass(d+"_disabled");e&&this.setAttribute("aria-pressed",!0);e&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(d+"_disabled");this.removeClass(d+"_off");this.removeClass(d+"_on");
e&&this.setAttribute("aria-disabled",!0);e&&this.removeAttribute("aria-pressed");break;default:this.addClass(d+"_off"),this.removeClass(d+"_on"),this.removeClass(d+"_disabled"),e&&this.removeAttribute("aria-pressed"),e&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(d){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,d){var e=this.$.attributes;d=d||{};for(var b=0;b<e.length;b++){var f=
e[b],h=f.nodeName.toLowerCase(),k;if(!(h in d))if("checked"==h&&(k=this.getAttribute(h)))a.setAttribute(h,k);else if(!CKEDITOR.env.ie||this.hasAttribute(h))k=this.getAttribute(h),null===k&&(k=f.nodeValue),a.setAttribute(h,k)}""!==this.$.style.cssText&&(a.$.style.cssText=this.$.style.cssText)},renameNode:function(a){if(this.getName()!=a){var d=this.getDocument();a=new CKEDITOR.dom.element(a,d);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(c,e){var b=c.childNodes;if(0<=e&&e<b.length)return b[e]}return function(d){var e=this.$;if(d.slice)for(d=d.slice();0<d.length&&e;)e=a(e,d.shift());else e=a(e,d);return e?new CKEDITOR.dom.node(e):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function a(c){return c.type==CKEDITOR.NODE_ELEMENT&&c.hasClass("cke_enable_context_menu")}this.on("contextmenu",
function(d){d.data.getTarget().getAscendant(a,!0)||d.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,d){a="data-"+a;if(void 0===d)return this.getAttribute(a);!1===d?this.removeAttribute(a):this.setAttribute(a,d);return null},getEditor:function(a){var d=CKEDITOR.instances,e,b,f;a=
a||void 0===a;for(e in d)if(b=d[e],b.element.equals(this)&&b.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!a&&(f=b.editable())&&(f.equals(this)||f.contains(this)))return b;return null},find:function(a){var f=g(this);a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(d(this,a)));f();return a},findOne:function(a){var f=g(this);a=this.$.querySelector(d(this,a));f();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,d,e){if(!e&&(!d||this.type==d))var b=a(this);if(!1!==b){e=this.getChildren();
for(var f=0;f<e.count();f++)b=e.getItem(f),b.type==CKEDITOR.NODE_ELEMENT?b.forEach(a,d):(!d||b.type==d)&&a(b)}}});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(a,d,e){if("number"==typeof d){if(e&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))d-=f.call(this,a);this.setStyle(a,d+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,
d){var e=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;d&&(e-=f.call(this,a));return e}}(),CKEDITOR.dom.documentFragment=function(a){a=a||CKEDITOR.document;this.$=a.type==CKEDITOR.NODE_DOCUMENT?a.$.createDocumentFragment():a},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(a){a=a.$;a.parentNode.insertBefore(this.$,a.nextSibling)},getHtml:function(){var a=
new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(a);return a.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 a(b,
a){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed)return this.end(),null;c.optimize()}var e,d=c.startContainer;e=c.endContainer;var f=c.startOffset,h=c.endOffset,k,g=this.guard,l=this.type,m=b?"getPreviousSourceNode":"getNextSourceNode";if(!b&&!this._.guardLTR){var A=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),z=e.type==CKEDITOR.NODE_ELEMENT?e.getChild(h):e.getNext();this._.guardLTR=function(b,a){return(!a||!A.equals(b))&&(!z||!b.equals(z))&&(b.type!=
CKEDITOR.NODE_ELEMENT||!a||!b.equals(c.root))}}if(b&&!this._.guardRTL){var D=d.type==CKEDITOR.NODE_ELEMENT?d:d.getParent(),E=d.type==CKEDITOR.NODE_ELEMENT?f?d.getChild(f-1):null:d.getPrevious();this._.guardRTL=function(b,a){return(!a||!D.equals(b))&&(!E||!b.equals(E))&&(b.type!=CKEDITOR.NODE_ELEMENT||!a||!b.equals(c.root))}}var F=b?this._.guardRTL:this._.guardLTR;k=g?function(b,a){return!1===F(b,a)?!1:g(b,a)}:F;if(this.current)e=this.current[m](!1,l,k);else{if(b)e.type==CKEDITOR.NODE_ELEMENT&&(e=
0<h?e.getChild(h-1):!1===k(e,!0)?null:e.getPreviousSourceNode(!0,l,k));else if(e=d,e.type==CKEDITOR.NODE_ELEMENT&&!(e=e.getChild(f)))e=!1===k(d,!0)?null:d.getNextSourceNode(!0,l,k);e&&!1===k(e)&&(e=null)}for(;e&&!this._.end;){this.current=e;if(!this.evaluator||!1!==this.evaluator(e)){if(!a)return e}else if(a&&this.evaluator)return!1;e=e[m](!1,l,k)}this.end();return this.current=null}function g(b){for(var c,e=null;c=a.call(this,b);)e=c;return e}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(b){this.range=
b;this._={}},proto:{end:function(){this._.end=1},next:function(){return a.call(this)},previous:function(){return a.call(this,1)},checkForward:function(){return!1!==a.call(this,0,1)},checkBackward:function(){return!1!==a.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},f={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(b){return"none"==this.getComputedStyle("float")&&!(this.getComputedStyle("position")in f)&&d[this.getComputedStyle("display")]?!0:!!(this.is(CKEDITOR.dtd.$block)||b&&this.is(b))};CKEDITOR.dom.walker.blockBoundary=function(b){return function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary(b))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};
CKEDITOR.dom.walker.bookmark=function(b,a){function c(b){return b&&b.getName&&"span"==b.getName()&&b.data("cke-bookmark")}return function(e){var d,f;d=e&&e.type!=CKEDITOR.NODE_ELEMENT&&(f=e.getParent())&&c(f);d=b?d:d||c(e);return!!(a^d)}};CKEDITOR.dom.walker.whitespaces=function(b){return function(a){var c;a&&a.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(a.getText())||CKEDITOR.env.webkit&&a.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE);return!!(b^c)}};CKEDITOR.dom.walker.invisible=
function(b){var a=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.env.webkit?1:0;return function(e){a(e)?e=1:(e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),e=e.$.offsetWidth<=c);return!!(b^e)}};CKEDITOR.dom.walker.nodeType=function(b,a){return function(c){return!!(a^c.type==b)}};CKEDITOR.dom.walker.bogus=function(b){function a(b){return!m(b)&&!k(b)}return function(c){var e=CKEDITOR.env.needsBrFiller?c.is&&c.is("br"):c.getText&&h.test(c.getText());e&&(e=c.getParent(),c=c.getNext(a),e=e.isBlockBoundary()&&
(!c||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()));return!!(b^e)}};CKEDITOR.dom.walker.temp=function(b){return function(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());a=a&&a.hasAttribute("data-cke-temp");return!!(b^a)}};var h=/^[\t\r\n ]*(?: |\xa0)$/,m=CKEDITOR.dom.walker.whitespaces(),k=CKEDITOR.dom.walker.bookmark(),c=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(b){return function(a){a=m(a)||k(a)||c(a);return!!(b^a)}};var l=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=
function(b){return function(a){for(var c=0,e=a.getChildCount();c<e;++c)if(!l(a.getChild(c)))return!!b;return!b}};var e=CKEDITOR.dom.walker.empty(),b=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(b){var a={},c;for(c in b)CKEDITOR.dtd[c]["#"]&&(a[c]=1);return a}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(a){return function(c){return!!(a^(l(c)?0:c.type==CKEDITOR.NODE_TEXT||c.type==CKEDITOR.NODE_ELEMENT&&(c.is(CKEDITOR.dtd.$inline)||
(c.is("hr")||"false"==c.getAttribute("contenteditable"))||!CKEDITOR.env.needsBrFiller&&c.is(b)&&e(c))?1:0))}};CKEDITOR.dom.element.prototype.getBogus=function(){var b=this;do b=b.getPreviousSourceNode();while(k(b)||m(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.is(CKEDITOR.dtd.$inline)&&!b.is(CKEDITOR.dtd.$empty));return b&&(CKEDITOR.env.needsBrFiller?b.is&&b.is("br"):b.getText&&h.test(b.getText()))?b:!1}}(),CKEDITOR.dom.range=function(a){this.endOffset=this.endContainer=this.startOffset=this.startContainer=
null;this.collapsed=!0;var g=a instanceof CKEDITOR.dom.document;this.document=g?a:a.getDocument();this.root=g?a.getBody():a},function(){function a(b){b.collapsed=b.startContainer&&b.endContainer&&b.startContainer.equals(b.endContainer)&&b.startOffset==b.endOffset}function g(b,a,c,e,d){function f(b,a,c,e){var h=c?b.getPrevious():b.getNext();if(e&&g)return h;m||e?a.append(b.clone(!0,d),c):(b.remove(),l&&a.append(b,c));return h}function h(){var b,a,c,e=Math.min(C.length,G.length);for(b=0;b<e;b++)if(a=
C[b],c=G[b],!a.equals(c))return b;return b-1}function k(){var a=O-1,c=H&&J&&!y.equals(A);if(a<Q-1||a<P-1||c){if(c?b.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START):P==a+1&&F?b.moveToPosition(G[a],CKEDITOR.POSITION_BEFORE_END):b.moveToPosition(G[a+1],CKEDITOR.POSITION_BEFORE_START),e&&(a=C[a+1])&&a.type==CKEDITOR.NODE_ELEMENT)c=CKEDITOR.dom.element.createFromHtml('\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e',b.document),c.insertAfter(a),a.mergeSiblings(!1),
b.moveToBookmark({startNode:c})}else b.collapse(!0)}b.optimizeBookmark();var g=0===a,l=1==a,m=2==a;a=m||l;var y=b.startContainer,A=b.endContainer,z=b.startOffset,D=b.endOffset,E,F,H,J,I,L;if(m&&A.type==CKEDITOR.NODE_TEXT&&(y.equals(A)||y.type===CKEDITOR.NODE_ELEMENT&&y.getFirst().equals(A)))c.append(b.document.createText(A.substring(z,D)));else{A.type==CKEDITOR.NODE_TEXT?m?L=!0:A=A.split(D):0<A.getChildCount()?D>=A.getChildCount()?(A=A.getChild(D-1),F=!0):A=A.getChild(D):J=F=!0;y.type==CKEDITOR.NODE_TEXT?
m?I=!0:y.split(z):0<y.getChildCount()?0===z?(y=y.getChild(z),E=!0):y=y.getChild(z-1):H=E=!0;for(var C=y.getParents(),G=A.getParents(),O=h(),Q=C.length-1,P=G.length-1,K=c,V,S,Y,da=-1,M=O;M<=Q;M++){S=C[M];Y=S.getNext();for(M==Q&&!(S.equals(G[M])&&Q<P)?E?f(S,K,!1,H):I&&K.append(b.document.createText(S.substring(z))):a&&(V=K.append(S.clone(0,d)));Y;){if(Y.equals(G[M])){da=M;break}Y=f(Y,K)}K=V}K=c;for(M=O;M<=P;M++)if(c=G[M],Y=c.getPrevious(),c.equals(C[M]))a&&(K=K.getChild(0));else{M==P&&!(c.equals(C[M])&&
P<Q)?F?f(c,K,!1,J):L&&K.append(b.document.createText(c.substring(0,D))):a&&(V=K.append(c.clone(0,d)));if(M>da)for(;Y;)Y=f(Y,K,!0);K=V}m||k()}}function d(){var b=!1,a=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!0),e=CKEDITOR.dom.walker.bogus();return function(d){return c(d)||a(d)?!0:e(d)&&!b?b=!0:d.type==CKEDITOR.NODE_TEXT&&(d.hasAscendant("pre")||CKEDITOR.tools.trim(d.getText()).length)||d.type==CKEDITOR.NODE_ELEMENT&&!d.is(m)?!1:!0}}function f(b){var a=CKEDITOR.dom.walker.whitespaces(),
c=CKEDITOR.dom.walker.bookmark(1);return function(e){return c(e)||a(e)?!0:!b&&k(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty)}}function h(b){return function(){var a;return this[b?"getPreviousNode":"getNextNode"](function(b){!a&&e(b)&&(a=b);return l(b)&&!(k(b)&&b.equals(a))})}}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(),
c=/^[\t\r\n ]*(?: |\xa0)$/,l=CKEDITOR.dom.walker.editable(),e=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var b=new CKEDITOR.dom.range(this.root);b._setStartContainer(this.startContainer);b.startOffset=this.startOffset;b._setEndContainer(this.endContainer);b.endOffset=this.endOffset;b.collapsed=this.collapsed;return b},collapse:function(b){b?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),
this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(b){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||g(this,2,a,!1,"undefined"==typeof b?!0:b);return a},deleteContents:function(b){this.collapsed||g(this,0,null,b)},extractContents:function(b,a){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||g(this,1,c,b,"undefined"==typeof a?!0:a);return c},createBookmark:function(b){var a,c,e,d,f=this.collapsed;a=this.document.createElement("span");
a.data("cke-bookmark",1);a.setStyle("display","none");a.setHtml("\x26nbsp;");b&&(e="cke_bm_"+CKEDITOR.tools.getNextNumber(),a.setAttribute("id",e+(f?"C":"S")));f||(c=a.clone(),c.setHtml("\x26nbsp;"),b&&c.setAttribute("id",e+"E"),d=this.clone(),d.collapse(),d.insertNode(c));d=this.clone();d.collapse(!0);d.insertNode(a);c?(this.setStartAfter(a),this.setEndBefore(c)):this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return{startNode:b?e+(f?"C":"S"):a,endNode:b?e+"E":c,serializable:b,collapsed:f}},createBookmark2:function(){function b(b){var a=
b.container,e=b.offset,d;d=a;var f=e;d=d.type!=CKEDITOR.NODE_ELEMENT||0===f||f==d.getChildCount()?0:d.getChild(f-1).type==CKEDITOR.NODE_TEXT&&d.getChild(f).type==CKEDITOR.NODE_TEXT;d&&(a=a.getChild(e-1),e=a.getLength());if(a.type==CKEDITOR.NODE_ELEMENT&&0<e){a:{for(d=a;e--;)if(f=d.getChild(e).getIndex(!0),0<=f){e=f;break a}e=-1}e+=1}if(a.type==CKEDITOR.NODE_TEXT){d=a;for(f=0;(d=d.getPrevious())&&d.type==CKEDITOR.NODE_TEXT;)f+=d.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;
d=f;a.getText()?e+=d:(f=a.getPrevious(c),d?(e=d,a=f?f.getNext():a.getParent().getFirst()):(a=a.getParent(),e=f?f.getIndex(!0)+1:0))}b.container=a;b.offset=e}function a(b,c){var e=c.getCustomData("cke-fillingChar");if(e){var d=b.container;e.equals(d)&&(b.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=b.offset&&(b.offset=d.getIndex(),b.container=d.getParent()))}}var c=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(c){var e=this.collapsed,d={container:this.startContainer,
offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};c&&(b(d),a(d,this.root),e||(b(f),a(f,this.root)));return{start:d.container.getAddress(c),end:e?null:f.container.getAddress(c),startOffset:d.offset,endOffset:f.offset,normalized:c,collapsed:e,is2:!0}}}(),moveToBookmark:function(b){if(b.is2){var a=this.document.getByAddress(b.start,b.normalized),c=b.startOffset,e=b.end&&this.document.getByAddress(b.end,b.normalized);b=b.endOffset;this.setStart(a,c);e?this.setEnd(e,b):this.collapse(!0)}else a=
(c=b.serializable)?this.document.getById(b.startNode):b.startNode,b=c?this.document.getById(b.endNode):b.endNode,this.setStartBefore(a),a.remove(),b?(this.setEndBefore(b),b.remove()):this.collapse(!0)},getBoundaryNodes:function(){var b=this.startContainer,a=this.endContainer,c=this.startOffset,e=this.endOffset,d;if(b.type==CKEDITOR.NODE_ELEMENT)if(d=b.getChildCount(),d>c)b=b.getChild(c);else if(1>d)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b);b=
b.getNextSourceNode()||b}if(a.type==CKEDITOR.NODE_ELEMENT)if(d=a.getChildCount(),d>e)a=a.getChild(e).getPreviousSourceNode(!0);else if(1>d)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a)}b.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&(b=a);return{startNode:b,endNode:a}},getCommonAncestor:function(b,a){var c=this.startContainer,e=this.endContainer,c=c.equals(e)?b&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):
c:c.getCommonAncestor(e);return a&&!c.is?c.getParent():c},optimize:function(){var b=this.startContainer,a=this.startOffset;b.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=b.getLength()&&this.setStartAfter(b):this.setStartBefore(b));b=this.endContainer;a=this.endOffset;b.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=b.getLength()&&this.setEndAfter(b):this.setEndBefore(b))},optimizeBookmark:function(){var b=this.startContainer,a=this.endContainer;b.is&&(b.is("span")&&b.data("cke-bookmark"))&&this.setStartAt(b,CKEDITOR.POSITION_BEFORE_START);
a&&(a.is&&a.is("span")&&a.data("cke-bookmark"))&&this.setEndAt(a,CKEDITOR.POSITION_AFTER_END)},trim:function(b,a){var c=this.startContainer,e=this.startOffset,d=this.collapsed;if((!b||d)&&c&&c.type==CKEDITOR.NODE_TEXT){if(e)if(e>=c.getLength())e=c.getIndex()+1,c=c.getParent();else{var f=c.split(e),e=c.getIndex()+1,c=c.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(f,this.endOffset-this.startOffset):c.equals(this.endContainer)&&(this.endOffset+=1)}else e=c.getIndex(),c=c.getParent();
this.setStart(c,e);if(d){this.collapse(!0);return}}c=this.endContainer;e=this.endOffset;!a&&!d&&(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(b,a){function c(b){return b&&b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable")?null:b}var e=RegExp(/[^\s\ufeff]/);switch(b){case CKEDITOR.ENLARGE_INLINE:var d=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var f=this.getCommonAncestor(),
h=this.root,k,g,l,m,y,A=!1,z,D;z=this.startContainer;var E=this.startOffset;if(z.type==CKEDITOR.NODE_TEXT){if(E&&(z=!CKEDITOR.tools.trim(z.substring(0,E)).length&&z,A=!!z),z&&!(m=z.getPrevious()))l=z.getParent()}else E&&(m=z.getChild(E-1)||z.getLast()),m||(l=z);for(l=c(l);l||m;){if(l&&!m){!y&&l.equals(f)&&(y=!0);if(d?l.isBlockBoundary():!h.contains(l))break;if(!A||"inline"!=l.getComputedStyle("display"))A=!1,y?k=l:this.setStartBefore(l);m=l.getPrevious()}for(;m;)if(z=!1,m.type==CKEDITOR.NODE_COMMENT)m=
m.getPrevious();else{if(m.type==CKEDITOR.NODE_TEXT)D=m.getText(),e.test(D)&&(m=null),z=/[\s\ufeff]$/.test(D);else if((m.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||a&&m.is("br"))&&!m.data("cke-bookmark"))if(A&&CKEDITOR.dtd.$removeEmpty[m.getName()]){D=m.getText();if(e.test(D))m=null;else for(var E=m.$.getElementsByTagName("*"),F=0,H;H=E[F++];)if(!CKEDITOR.dtd.$removeEmpty[H.nodeName.toLowerCase()]){m=null;break}m&&(z=!!D.length)}else m=null;z&&(A?y?k=l:l&&this.setStartBefore(l):A=!0);if(m){z=m.getPrevious();
if(!l&&!z){l=m;m=null;break}m=z}else l=null}l&&(l=c(l.getParent()))}z=this.endContainer;E=this.endOffset;l=m=null;y=A=!1;var J=function(b,a){var c=new CKEDITOR.dom.range(h);c.setStart(b,a);c.setEndAt(h,CKEDITOR.POSITION_BEFORE_END);var c=new CKEDITOR.dom.walker(c),d;for(c.guard=function(b){return!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())};d=c.next();){if(d.type!=CKEDITOR.NODE_TEXT)return!1;D=d!=b?d.getText():d.substring(a);if(e.test(D))return!1}return!0};if(z.type==CKEDITOR.NODE_TEXT)if(CKEDITOR.tools.trim(z.substring(E)).length)A=
!0;else if(A=!z.getLength(),E==z.getLength()){if(!(m=z.getNext()))l=z.getParent()}else J(z,E)&&(l=z.getParent());else(m=z.getChild(E))||(l=z);for(;l||m;){if(l&&!m){!y&&l.equals(f)&&(y=!0);if(d?l.isBlockBoundary():!h.contains(l))break;if(!A||"inline"!=l.getComputedStyle("display"))A=!1,y?g=l:l&&this.setEndAfter(l);m=l.getNext()}for(;m;){z=!1;if(m.type==CKEDITOR.NODE_TEXT)D=m.getText(),J(m,0)||(m=null),z=/^[\s\ufeff]/.test(D);else if(m.type==CKEDITOR.NODE_ELEMENT){if((0<m.$.offsetWidth||a&&m.is("br"))&&
!m.data("cke-bookmark"))if(A&&CKEDITOR.dtd.$removeEmpty[m.getName()]){D=m.getText();if(e.test(D))m=null;else{E=m.$.getElementsByTagName("*");for(F=0;H=E[F++];)if(!CKEDITOR.dtd.$removeEmpty[H.nodeName.toLowerCase()]){m=null;break}}m&&(z=!!D.length)}else m=null}else z=1;z&&A&&(y?g=l:this.setEndAfter(l));if(m){z=m.getNext();if(!l&&!z){l=m;m=null;break}m=z}else l=null}l&&(l=c(l.getParent()))}k&&g&&(f=k.contains(g)?g:k,this.setStartBefore(f),this.setEndAfter(f));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:l=
new CKEDITOR.dom.range(this.root);h=this.root;l.setStartAt(h,CKEDITOR.POSITION_AFTER_START);l.setEnd(this.startContainer,this.startOffset);l=new CKEDITOR.dom.walker(l);var I,L,C=CKEDITOR.dom.walker.blockBoundary(b==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),G=null,O=function(b){if(b.type==CKEDITOR.NODE_ELEMENT&&"false"==b.getAttribute("contenteditable"))if(G){if(G.equals(b)){G=null;return}}else G=b;else if(G)return;var a=C(b);a||(I=b);return a},d=function(b){var a=O(b);!a&&(b.is&&b.is("br"))&&
(L=b);return a};l.guard=O;l=l.lastBackward();I=I||h;this.setStartAt(I,!I.is("br")&&(!l&&this.checkStartOfBlock()||l&&I.contains(l))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(b==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){l=this.clone();l=new CKEDITOR.dom.walker(l);var Q=CKEDITOR.dom.walker.whitespaces(),P=CKEDITOR.dom.walker.bookmark();l.evaluator=function(b){return!Q(b)&&!P(b)};if((l=l.previous())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br"))break}l=this.clone();l.collapse();l.setEndAt(h,
CKEDITOR.POSITION_BEFORE_END);l=new CKEDITOR.dom.walker(l);l.guard=b==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?d:O;I=G=L=null;l=l.lastForward();I=I||h;this.setEndAt(I,!l&&this.checkEndOfBlock()||l&&I.contains(l)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);L&&this.setEndAfter(L)}},shrink:function(b,a,c){var e="boolean"===typeof c?c:c&&"boolean"===typeof c.shrinkOnBlockBoundary?c.shrinkOnBlockBoundary:!0,d=c&&c.skipBogus;if(!this.collapsed){b=b||CKEDITOR.SHRINK_TEXT;var f=this.clone(),h=
this.startContainer,k=this.endContainer,g=this.startOffset,l=this.endOffset,m=c=1;h&&h.type==CKEDITOR.NODE_TEXT&&(g?g>=h.getLength()?f.setStartAfter(h):(f.setStartBefore(h),c=0):f.setStartBefore(h));k&&k.type==CKEDITOR.NODE_TEXT&&(l?l>=k.getLength()?f.setEndAfter(k):(f.setEndAfter(k),m=0):f.setEndBefore(k));var f=new CKEDITOR.dom.walker(f),y=CKEDITOR.dom.walker.bookmark(),A=CKEDITOR.dom.walker.bogus();f.evaluator=function(a){return a.type==(b==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};
var z;f.guard=function(a,c){if(d&&A(a)||y(a))return!0;if(b==CKEDITOR.SHRINK_ELEMENT&&a.type==CKEDITOR.NODE_TEXT||c&&a.equals(z)||!1===e&&a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()||a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable"))return!1;!c&&a.type==CKEDITOR.NODE_ELEMENT&&(z=a);return!0};c&&(h=f[b==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(h,a?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);m&&(f.reset(),(f=f[b==CKEDITOR.SHRINK_ELEMENT?
"lastBackward":"previous"]())&&this.setEndAt(f,a?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!c&&!m)}},insertNode:function(b){this.optimizeBookmark();this.trim(!1,!0);var a=this.startContainer,c=a.getChild(this.startOffset);c?b.insertBefore(c):a.append(b);b.getParent()&&b.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(b)},moveToPosition:function(b,a){this.setStartAt(b,a);this.collapse(!0)},moveToRange:function(b){this.setStart(b.startContainer,b.startOffset);
this.setEnd(b.endContainer,b.endOffset)},selectNodeContents:function(b){this.setStart(b,0);this.setEnd(b,b.type==CKEDITOR.NODE_TEXT?b.getLength():b.getChildCount())},setStart:function(b,c){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&&(c=b.getIndex(),b=b.getParent());this._setStartContainer(b);this.startOffset=c;this.endContainer||(this._setEndContainer(b),this.endOffset=c);a(this)},setEnd:function(b,c){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&&(c=b.getIndex()+
1,b=b.getParent());this._setEndContainer(b);this.endOffset=c;this.startContainer||(this._setStartContainer(b),this.startOffset=c);a(this)},setStartAfter:function(b){this.setStart(b.getParent(),b.getIndex()+1)},setStartBefore:function(b){this.setStart(b.getParent(),b.getIndex())},setEndAfter:function(b){this.setEnd(b.getParent(),b.getIndex()+1)},setEndBefore:function(b){this.setEnd(b.getParent(),b.getIndex())},setStartAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setStart(b,0);
break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setStart(b,b.getLength()):this.setStart(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(b)}a(this)},setEndAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setEnd(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setEnd(b,b.getLength()):this.setEnd(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(b);
break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(b)}a(this)},fixBlock:function(b,a){var c=this.createBookmark(),e=this.document.createElement(a);this.collapse(b);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(e);e.trim();this.insertNode(e);var d=e.getBogus();d&&d.remove();e.appendBogus();this.moveToBookmark(c);return e},splitBlock:function(b,a){var c=new CKEDITOR.dom.elementPath(this.startContainer,this.root),e=new CKEDITOR.dom.elementPath(this.endContainer,this.root),
d=c.block,f=e.block,h=null;if(!c.blockLimit.equals(e.blockLimit))return null;"br"!=b&&(d||(d=this.fixBlock(!0,b),f=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),f||(f=this.fixBlock(!1,b)));c=d&&this.checkStartOfBlock();e=f&&this.checkEndOfBlock();this.deleteContents();d&&d.equals(f)&&(e?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END),f=null):c?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(d,
CKEDITOR.POSITION_BEFORE_START),d=null):(f=this.splitElement(d,a||!1),d.is("ul","ol")||d.appendBogus()));return{previousBlock:d,nextBlock:f,wasStartOfBlock:c,wasEndOfBlock:e,elementPath:h}},splitElement:function(b,a){if(!this.collapsed)return null;this.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);var c=this.extractContents(!1,a||!1),e=b.clone(!1,a||!1);c.appendTo(e);e.insertAfter(b);this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return e},removeEmptyBlocksAtEnd:function(){function b(b){return function(e){return a(e)||
(c(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.isEmptyInlineRemoveable())||b.is("table")&&e.is("caption")?!1:!0}}var a=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!1);return function(a){for(var c=this.createBookmark(),e=this[a?"endPath":"startPath"](),d=e.block||e.blockLimit,f;d&&!d.equals(e.root)&&!d.getFirst(b(d));)f=d.getParent(),this[a?"setEndAt":"setStartAt"](d,CKEDITOR.POSITION_AFTER_END),d.remove(1),d=f;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,a){var c=a==CKEDITOR.START,e=this.clone();e.collapse(c);e[c?"setStartAt":"setEndAt"](b,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);e=new CKEDITOR.dom.walker(e);e.evaluator=f(c);return e[c?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var b=this.startContainer,a=this.startOffset;CKEDITOR.env.ie&&(a&&b.type==CKEDITOR.NODE_TEXT)&&(b=CKEDITOR.tools.ltrim(b.substring(0,
a)),c.test(b)&&this.trim(0,1));this.trim();b=new CKEDITOR.dom.elementPath(this.startContainer,this.root);a=this.clone();a.collapse(!0);a.setStartAt(b.block||b.blockLimit,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(a);b.evaluator=d();return b.checkBackward()},checkEndOfBlock:function(){var b=this.endContainer,a=this.endOffset;CKEDITOR.env.ie&&b.type==CKEDITOR.NODE_TEXT&&(b=CKEDITOR.tools.rtrim(b.substring(a)),c.test(b)&&this.trim(1,0));this.trim();b=new CKEDITOR.dom.elementPath(this.endContainer,
this.root);a=this.clone();a.collapse(!1);a.setEndAt(b.block||b.blockLimit,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(a);b.evaluator=d();return b.checkForward()},getPreviousNode:function(b,a,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=b;c.guard=a;return c.previous()},getNextNode:function(b,a,c){var e=this.clone();e.collapse();e.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(e);
c.evaluator=b;c.guard=a;return c.next()},checkReadOnly:function(){function b(b,a){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(a)||b.equals(a)))break}b=b.getParent()}return 1}return function(){var a=this.startContainer,c=this.endContainer;return!(b(a,c)&&b(c,a))}}(),moveToElementEditablePosition:function(b,a){if(b.type==CKEDITOR.NODE_ELEMENT&&!b.isEditable(!1))return this.moveToPosition(b,
a?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var d=0;b;){if(b.type==CKEDITOR.NODE_TEXT){a&&this.endContainer&&this.checkEndOfBlock()&&c.test(b.getText())?this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(b,a?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);d=1;break}if(b.type==CKEDITOR.NODE_ELEMENT)if(b.isEditable())this.moveToPosition(b,a?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),d=1;else if(a&&b.is("br")&&this.endContainer&&
this.checkEndOfBlock())this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);else if("false"==b.getAttribute("contenteditable")&&b.is(CKEDITOR.dtd.$block))return this.setStartBefore(b),this.setEndAfter(b),!0;var f=b,h=d,k=void 0;f.type==CKEDITOR.NODE_ELEMENT&&f.isEditable(!1)&&(k=f[a?"getLast":"getFirst"](e));!h&&!k&&(k=f[a?"getPrevious":"getNext"](e));b=k}return!!d},moveToClosestEditablePosition:function(b,a){var c,e=0,d,f,h=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];b?(c=new CKEDITOR.dom.range(this.root),
c.moveToPosition(b,h[a?0:1])):c=this.clone();if(b&&!b.is(CKEDITOR.dtd.$block))e=1;else if(d=c[a?"getNextEditableNode":"getPreviousEditableNode"]())e=1,(f=d.type==CKEDITOR.NODE_ELEMENT)&&d.is(CKEDITOR.dtd.$block)&&"false"==d.getAttribute("contenteditable")?(c.setStartAt(d,CKEDITOR.POSITION_BEFORE_START),c.setEndAt(d,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&f&&d.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(c.setEnd(d,0),c.collapse()):c.moveToPosition(d,h[a?1:0]);e&&this.moveToRange(c);
return!!e},moveToElementEditStart:function(b){return this.moveToElementEditablePosition(b)},moveToElementEditEnd:function(b){return this.moveToElementEditablePosition(b,!0)},getEnclosedNode:function(){var b=this.clone();b.optimize();if(b.startContainer.type!=CKEDITOR.NODE_ELEMENT||b.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var b=new CKEDITOR.dom.walker(b),a=CKEDITOR.dom.walker.bookmark(!1,!0),c=CKEDITOR.dom.walker.whitespaces(!0);b.evaluator=function(b){return c(b)&&a(b)};var e=b.next();
b.reset();return e&&e.equals(b.previous())?e:null},getTouchedStartNode:function(){var b=this.startContainer;return this.collapsed||b.type!=CKEDITOR.NODE_ELEMENT?b:b.getChild(this.startOffset)||b},getTouchedEndNode:function(){var b=this.endContainer;return this.collapsed||b.type!=CKEDITOR.NODE_ELEMENT?b:b.getChild(this.endOffset-1)||b},getNextEditableNode:h(),getPreviousEditableNode:h(1),_getTableElement:function(b){b=b||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var a=this.startContainer,c=
this.endContainer,e=a.getAscendant("table",!0),d=c.getAscendant("table",!0);return e&&!this.root.contains(e)?null:CKEDITOR.env.safari&&e&&c.equals(this.root)?a.getAscendant(b,!0):this.getEnclosedNode()?this.getEnclosedNode().getAscendant(b,!0):e&&d&&(e.equals(d)||e.contains(d)||d.contains(e))?a.getAscendant(b,!0):null},scrollIntoView:function(){var b=new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),a,c,e,d=this.clone();d.optimize();(e=d.startContainer.type==
CKEDITOR.NODE_TEXT)?(c=d.startContainer.getText(),a=d.startContainer.split(d.startOffset),b.insertAfter(d.startContainer)):d.insertNode(b);b.scrollIntoView();e&&(d.startContainer.setText(c),a.remove());b.remove()},getClientRects:function(){function b(b,a){var c=CKEDITOR.tools.array.map(b,function(b){return b}),e=new CKEDITOR.dom.range(a.root),d,f,h;a.startContainer instanceof CKEDITOR.dom.element&&(f=0===a.startOffset&&a.startContainer.hasAttribute("data-widget"));a.endContainer instanceof CKEDITOR.dom.element&&
(h=(h=a.endOffset===(a.endContainer.getChildCount?a.endContainer.getChildCount():a.endContainer.length))&&a.endContainer.hasAttribute("data-widget"));f&&e.setStart(a.startContainer.getParent(),a.startContainer.getIndex());h&&e.setEnd(a.endContainer.getParent(),a.endContainer.getIndex()+1);if(f||h)a=e;e=a.cloneContents().find("[data-cke-widget-id]").toArray();if(e=CKEDITOR.tools.array.map(e,function(b){var c=a.root.editor;b=b.getAttribute("data-cke-widget-id");return c.widgets.instances[b].element}))return e=
CKEDITOR.tools.array.map(e,function(b){var a;a=b.getParent().hasClass("cke_widget_wrapper")?b.getParent():b;d=this.root.getDocument().$.createRange();d.setStart(a.getParent().$,a.getIndex());d.setEnd(a.getParent().$,a.getIndex()+1);a=d.getClientRects();a.widgetRect=b.getClientRect();return a},a),CKEDITOR.tools.array.forEach(e,function(b){function a(d){CKEDITOR.tools.array.forEach(c,function(a,f){var h=CKEDITOR.tools.objectCompare(b[d],a);h||(h=CKEDITOR.tools.objectCompare(b.widgetRect,a));h&&(Array.prototype.splice.call(c,
f,b.length-d,b.widgetRect),e=!0)});e||(d<c.length-1?a(d+1):c.push(b.widgetRect))}var e;a(0)}),c}function a(b,c,d){var f;c.collapsed?d.startContainer instanceof CKEDITOR.dom.element?(b=d.checkStartOfBlock(),f=new CKEDITOR.dom.text(""),b?d.startContainer.append(f,!0):0===d.startOffset?f.insertBefore(d.startContainer.getFirst()):(d=d.startContainer.getChildren().getItem(d.startOffset-1),f.insertAfter(d)),c.setStart(f.$,0),c.setEnd(f.$,0),b=c.getClientRects(),f.remove()):d.startContainer instanceof CKEDITOR.dom.text&&
(""===d.startContainer.getText()?(d.startContainer.setText(""),b=c.getClientRects(),d.startContainer.setText("")):b=[e(d.createBookmark())]):b=[e(d.createBookmark())];return b}function c(b,a,e){b=CKEDITOR.tools.extend({},b);a&&(b=CKEDITOR.tools.getAbsoluteRectPosition(e.document.getWindow(),b));!b.width&&(b.width=b.right-b.left);!b.height&&(b.height=b.bottom-b.top);return b}function e(b){var a=b.startNode;b=b.endNode;var c;a.setText("");a.removeStyle("display");b?(b.setText(""),b.removeStyle("display"),
c=[a.getClientRect(),b.getClientRect()],b.remove()):c=[a.getClientRect(),a.getClientRect()];a.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 d=this.root.getDocument().$.createRange(),f;d.setStart(this.startContainer.$,this.startOffset);
d.setEnd(this.endContainer.$,this.endOffset);f=d.getClientRects();f=b(f,this);f.length||(f=a(f,d,this));return CKEDITOR.tools.array.map(f,function(b){return c(b,e,this)},this)}:function(b){return[c(e(this.createBookmark()),b,this)]}}(),_setStartContainer:function(b){this.startContainer=b},_setEndContainer:function(b){this.endContainer=b},_find:function(b,a){var c=this.getCommonAncestor(),e=this.getBoundaryNodes(),d=[],f,h,k,g;if(c&&c.find){h=c.find(b);for(f=0;f<h.count();f++)if(c=h.getItem(f),a||
!c.isReadOnly())k=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),k&&g&&d.push(c)}return d}};CKEDITOR.dom.range.mergeRanges=function(b){return CKEDITOR.tools.array.reduce(b,function(b,a){var c=b[b.length-1],e=!1;a=a.clone();a.enlarge(CKEDITOR.ENLARGE_ELEMENT);if(c){var d=new CKEDITOR.dom.range(a.root),e=new CKEDITOR.dom.walker(d),f=CKEDITOR.dom.walker.whitespaces();
d.setStart(c.endContainer,c.endOffset);d.setEnd(a.startContainer,a.startOffset);for(d=e.next();f(d)||a.endContainer.equals(d);)d=e.next();e=!d}e?c.setEnd(a.endContainer,a.endOffset):b.push(a);return b},[])}}(),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 a(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,c,f){a:{null==f&&(f=g(c));for(var h;h=f.shift();)if(h.getDtd().p){f={element:h,remaining:f};break a}f=null}if(!f)return 0;if((h=CKEDITOR.filter.instances[f.element.data("cke-filter")])&&
!h.check(b))return d(a,b,c,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=h;a._.nestedEditable={element:f.element,container:c,remaining:f.remaining,iterator:b};return 1}function f(a,b,c){if(!b)return!1;a=a.clone();a.collapse(!c);return a.checkBoundaryOfElement(b,c?CKEDITOR.START:CKEDITOR.END)}var h=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0),
c=function(a){return m(a)&&k(a)},l={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var b,k,g,v,r;a=a||"p";if(this._.nestedEditable){if(b=this._.nestedEditable.iterator.getNextParagraph(a))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,b;this.activeFilter=this.filter;if(d(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(a);this._.nestedEditable=
null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var q=this.range.clone();k=q.startPath();var u=q.endPath(),s=!q.collapsed&&f(q,k.block),t=!q.collapsed&&f(q,u.block,1);q.shrink(CKEDITOR.SHRINK_ELEMENT,!0);s&&q.setStartAt(k.block,CKEDITOR.POSITION_BEFORE_END);t&&q.setEndAt(u.block,CKEDITOR.POSITION_AFTER_START);k=q.endContainer.hasAscendant("pre",!0)||q.startContainer.hasAscendant("pre",!0);q.enlarge(this.forceBrBreak&&!k||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);
if(!q.collapsed){k=new CKEDITOR.dom.walker(q.clone());u=CKEDITOR.dom.walker.bookmark(!0,!0);k.evaluator=u;this._.nextNode=k.next();k=new CKEDITOR.dom.walker(q.clone());k.evaluator=u;k=k.previous();this._.lastNode=k.getNextSourceNode(!0,null,q.root);this._.lastNode&&(this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary())&&(u=this.range.clone(),u.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),u.checkEndOfBlock()&&
(u=new CKEDITOR.dom.elementPath(u.endContainer,u.root),this._.lastNode=(u.block||u.blockLimit).getNextSourceNode(!0)));if(!this._.lastNode||!q.root.contains(this._.lastNode))this._.lastNode=this._.docEndMarker=q.document.createText(""),this._.lastNode.insertAfter(k);q=null}this._.started=1;k=q}u=this._.nextNode;q=this._.lastNode;for(this._.nextNode=null;u;){var s=0,t=u.hasAscendant("pre"),w=u.type!=CKEDITOR.NODE_ELEMENT,x=0;if(w)u.type==CKEDITOR.NODE_TEXT&&h.test(u.getText())&&(w=0);else{var y=u.getName();
if(CKEDITOR.dtd.$block[y]&&"false"==u.getAttribute("contenteditable")){b=u;d(this,a,b);break}else if(u.isBlockBoundary(this.forceBrBreak&&!t&&{br:1})){if("br"==y)w=1;else if(!k&&!u.getChildCount()&&"hr"!=y){b=u;g=u.equals(q);break}k&&(k.setEndAt(u,CKEDITOR.POSITION_BEFORE_START),"br"!=y&&(this._.nextNode=u));s=1}else{if(u.getFirst()){k||(k=this.range.clone(),k.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));u=u.getFirst();continue}w=1}}w&&!k&&(k=this.range.clone(),k.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));
g=(!s||w)&&u.equals(q);if(k&&!s)for(;!u.getNext(c)&&!g;){y=u.getParent();if(y.isBlockBoundary(this.forceBrBreak&&!t&&{br:1})){s=1;w=0;g||y.equals(q);k.setEndAt(y,CKEDITOR.POSITION_BEFORE_END);break}u=y;w=1;g=u.equals(q);x=1}w&&k.setEndAt(u,CKEDITOR.POSITION_AFTER_END);u=this._getNextSourceNode(u,x,q);if((g=!u)||s&&k)break}if(!b){if(!k)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;b=new CKEDITOR.dom.elementPath(k.startContainer,k.root);u=b.blockLimit;s={div:1,th:1,td:1};
b=b.block;if(!b&&u&&!this.enforceRealBlocks&&s[u.getName()]&&k.checkStartOfBlock()&&k.checkEndOfBlock()&&!u.equals(k.root))b=u;else if(!b||this.enforceRealBlocks&&b.is(l))b=this.range.document.createElement(a),k.extractContents().appendTo(b),b.trim(),k.insertNode(b),v=r=!0;else if("li"!=b.getName()){if(!k.checkStartOfBlock()||!k.checkEndOfBlock())b=b.clone(!1),k.extractContents().appendTo(b),b.trim(),r=k.splitBlock(),v=!r.wasStartOfBlock,r=!r.wasEndOfBlock,k.insertNode(b)}else g||(this._.nextNode=
b.equals(q)?null:this._getNextSourceNode(k.getBoundaryNodes().endNode,1,q))}v&&(v=b.getPrevious())&&v.type==CKEDITOR.NODE_ELEMENT&&("br"==v.getName()?v.remove():v.getLast()&&"br"==v.getLast().$.nodeName.toLowerCase()&&v.getLast().remove());r&&(v=b.getLast())&&v.type==CKEDITOR.NODE_ELEMENT&&"br"==v.getName()&&(!CKEDITOR.env.needsBrFiller||v.getPrevious(m)||v.getNext(m))&&v.remove();this._.nextNode||(this._.nextNode=g||b.equals(q)||!q?null:this._getNextSourceNode(b,1,q));return b},_getNextSourceNode:function(a,
b,c){function d(b){return!(b.equals(c)||b.equals(f))}var f=this.range.root;for(a=a.getNextSourceNode(b,null,d);!m(a);)a=a.getNextSourceNode(b,null,d);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}}(),CKEDITOR.command=function(a,g){this.uiItems=[];this.exec=function(d){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&a.focus();return!1===this.fire("exec")?!0:!1!==g.exec.call(this,a,d)};this.refresh=function(a,d){if(!this.readOnly&&
a.readOnly)return!0;if(this.context&&!d.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:d})?!0:g.refresh&&!1!==g.refresh.apply(this,arguments)};var d;this.checkAllowed=function(f){return!f&&"boolean"==typeof d?d:d=a.activeFilter.checkFeature(this)};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?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=a;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 a(b,a,c,e,d){var f,h;b=[];for(f in a){h=a[f];h="boolean"==typeof h?{}:"function"==typeof h?{match:h}:J(h);"$"!=f.charAt(0)&&(h.elements=f);c&&(h.featureName=c.toLowerCase());var g=h;g.elements=k(g.elements,/\s+/)||null;g.propertiesOnly=g.propertiesOnly||!0===g.elements;
var l=/\s*,\s*/,m=void 0;for(m in G){g[m]=k(g[m],l)||null;var n=g,C=O[m],u=k(g[O[m]],l),p=g[m],t=[],y=!0,A=void 0;u?y=!1:u={};for(A in p)"!"==A.charAt(0)&&(A=A.slice(1),t.push(A),u[A]=!0,y=!1);for(;A=t.pop();)p[A]=p["!"+A],delete p["!"+A];n[C]=(y?!1:u)||null}g.match=g.match||null;e.push(h);b.push(h)}a=d.elements;d=d.generic;var q;c=0;for(e=b.length;c<e;++c){f=J(b[c]);h=!0===f.classes||!0===f.styles||!0===f.attributes;g=f;m=C=l=void 0;for(l in G)g[l]=s(g[l]);n=!0;for(m in O){l=O[m];C=g[l];u=[];p=void 0;
for(p in C)-1<p.indexOf("*")?u.push(RegExp("^"+p.replace(/\*/g,".*")+"$")):u.push(p);C=u;C.length&&(g[l]=C,n=!1)}g.nothingRequired=n;g.noProperties=!(g.attributes||g.classes||g.styles);if(!0===f.elements||null===f.elements)d[h?"unshift":"push"](f);else for(q in g=f.elements,delete f.elements,g)if(a[q])a[q][h?"unshift":"push"](f);else a[q]=[f]}}function g(b,a,e,f){if(!b.match||b.match(a))if(f||c(b,a))if(b.propertiesOnly||(e.valid=!0),e.allAttributes||(e.allAttributes=d(b.attributes,a.attributes,e.validAttributes)),
e.allStyles||(e.allStyles=d(b.styles,a.styles,e.validStyles)),!e.allClasses){b=b.classes;a=a.classes;f=e.validClasses;if(b)if(!0===b)b=!0;else{for(var h=0,k=a.length,g;h<k;++h)g=a[h],f[g]||(f[g]=b(g));b=!1}else b=!1;e.allClasses=b}}function d(b,a,c){if(!b)return!1;if(!0===b)return!0;for(var e in a)c[e]||(c[e]=b(e));return!1}function f(b,a,c){if(!b.match||b.match(a)){if(b.noProperties)return!1;c.hadInvalidAttribute=h(b.attributes,a.attributes)||c.hadInvalidAttribute;c.hadInvalidStyle=h(b.styles,a.styles)||
c.hadInvalidStyle;b=b.classes;a=a.classes;if(b){for(var e=!1,d=!0===b,f=a.length;f--;)if(d||b(a[f]))a.splice(f,1),e=!0;b=e}else b=!1;c.hadInvalidClass=b||c.hadInvalidClass}}function h(b,a){if(!b)return!1;var c=!1,e=!0===b,d;for(d in a)if(e||b(d))delete a[d],c=!0;return c}function m(b,a,c){if(b.disabled||b.customConfig&&!c||!a)return!1;b._.cachedChecks={};return!0}function k(b,a){if(!b)return!1;if(!0===b)return b;if("string"==typeof b)return b=I(b),"*"==b?!0:CKEDITOR.tools.convertArrayToObject(b.split(a));
if(CKEDITOR.tools.isArray(b))return b.length?CKEDITOR.tools.convertArrayToObject(b):!1;var c={},e=0,d;for(d in b)c[d]=b[d],e++;return e?c:!1}function c(b,a){if(b.nothingRequired)return!0;var c,e,d,f;if(d=b.requiredClasses){f=a.classes;for(c=0;c<d.length;++c)if(e=d[c],"string"==typeof e){if(-1==CKEDITOR.tools.indexOf(f,e))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(f,e))return!1}return l(a.styles,b.requiredStyles)&&l(a.attributes,b.requiredAttributes)}function l(b,a){if(!a)return!0;
for(var c=0,e;c<a.length;++c)if(e=a[c],"string"==typeof e){if(!(e in b))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(b,e))return!1;return!0}function e(b){if(!b)return{};b=b.split(/\s*,\s*/).sort();for(var a={};b.length;)a[b.shift()]=L;return a}function b(b){var a,c,e,d,f={},h=1;for(b=I(b);a=b.match(Q);)(c=a[2])?(e=n(c,"styles"),d=n(c,"attrs"),c=n(c,"classes")):e=d=c=null,f["$"+h++]={elements:a[1],classes:c,styles:e,attributes:d},b=b.slice(a[0].length);return f}function n(b,a){var c=
b.match(P[a]);return c?I(c[1]):null}function p(b){var a=b.styleBackup=b.attributes.style,c=b.classBackup=b.attributes["class"];b.styles||(b.styles=CKEDITOR.tools.parseCssText(a||"",1));b.classes||(b.classes=c?c.split(/\s+/):[])}function v(b,a,c,e){var d=0,h;e.toHtml&&(a.name=a.name.replace(K,"$1"));if(e.doCallbacks&&b.elementCallbacks){a:{h=b.elementCallbacks;for(var k=0,l=h.length,m;k<l;++k)if(m=h[k](a)){h=m;break a}h=void 0}if(h)return h}if(e.doTransform&&(h=b._.transformations[a.name])){p(a);for(k=
0;k<h.length;++k)y(b,a,h[k]);q(a)}if(e.doFilter){a:{k=a.name;l=b._;b=l.allowedRules.elements[k];h=l.allowedRules.generic;k=l.disallowedRules.elements[k];l=l.disallowedRules.generic;m=e.skipRequired;var n={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1},C,t;if(!b&&!h)b=null;else{p(a);if(k){C=0;for(t=k.length;C<t;++C)if(!1===f(k[C],a,n)){b=null;break a}}if(l){C=0;for(t=l.length;C<t;++C)f(l[C],
a,n)}if(b){C=0;for(t=b.length;C<t;++C)g(b[C],a,n,m)}if(h){C=0;for(t=h.length;C<t;++C)g(h[C],a,n,m)}b=n}}if(!b||!b.valid)return c.push(a),H;t=b.validAttributes;var A=b.validStyles;h=b.validClasses;var k=a.attributes,G=a.styles,l=a.classes;m=a.classBackup;var J=a.styleBackup,s,v,w=[],n=[],L=/^data-cke-/;C=!1;delete k.style;delete k["class"];delete a.classBackup;delete a.styleBackup;if(!b.allAttributes)for(s in k)if(!t[s])if(L.test(s)){if(s!=(v=s.replace(/^data-cke-saved-/,""))&&!t[v])delete k[s],C=
!0}else delete k[s],C=!0;if(!b.allStyles||b.hadInvalidStyle){for(s in G)b.allStyles||A[s]?w.push(s+":"+G[s]):C=!0;w.length&&(k.style=w.sort().join("; "))}else J&&(k.style=J);if(!b.allClasses||b.hadInvalidClass){for(s=0;s<l.length;++s)(b.allClasses||h[l[s]])&&n.push(l[s]);n.length&&(k["class"]=n.sort().join(" "));m&&n.length<m.split(/\s+/).length&&(C=!0)}else m&&(k["class"]=m);C&&(d=H);if(!e.skipFinalValidation&&!u(a))return c.push(a),H}e.toHtml&&(a.name=a.name.replace(V,"cke:$1"));return d}function r(b){var a=
[],c;for(c in b)-1<c.indexOf("*")&&a.push(c.replace(/\*/g,".*"));return a.length?RegExp("^(?:"+a.join("|")+")$"):null}function q(b){var a=b.attributes,c;delete a.style;delete a["class"];if(c=CKEDITOR.tools.writeCssText(b.styles,!0))a.style=c;b.classes.length&&(a["class"]=b.classes.sort().join(" "))}function u(b){switch(b.name){case "a":if(!b.children.length&&!b.attributes.name&&!b.attributes.id)return!1;break;case "img":if(!b.attributes.src)return!1}return!0}function s(b){if(!b)return!1;if(!0===b)return!0;
var a=r(b);return function(c){return c in b||a&&c.match(a)}}function t(){return new CKEDITOR.htmlParser.element("br")}function w(b){return b.type==CKEDITOR.NODE_ELEMENT&&("br"==b.name||F.$block[b.name])}function x(b,a,c){var e=b.name;if(F.$empty[e]||!b.children.length)"hr"==e&&"br"==a?b.replaceWith(t()):(b.parent&&c.push({check:"it",el:b.parent}),b.remove());else if(F.$block[e]||"tr"==e)if("br"==a)b.previous&&!w(b.previous)&&(a=t(),a.insertBefore(b)),b.next&&!w(b.next)&&(a=t(),a.insertAfter(b)),b.replaceWithChildren();
else{var e=b.children,d;b:{d=F[a];for(var f=0,h=e.length,k;f<h;++f)if(k=e[f],k.type==CKEDITOR.NODE_ELEMENT&&!d[k.name]){d=!1;break b}d=!0}if(d)b.name=a,b.attributes={},c.push({check:"parent-down",el:b});else{d=b.parent;for(var f=d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==d.name,g,l,h=e.length;0<h;)k=e[--h],f&&(k.type==CKEDITOR.NODE_TEXT||k.type==CKEDITOR.NODE_ELEMENT&&F.$inline[k.name])?(g||(g=new CKEDITOR.htmlParser.element(a),g.insertAfter(b),c.push({check:"parent-down",el:g})),g.add(k,0)):
(g=null,l=F[d.name]||F.span,k.insertAfter(b),d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(k.type==CKEDITOR.NODE_ELEMENT&&!l[k.name])&&c.push({check:"el-up",el:k}));b.remove()}}else e in{style:1,script:1}?b.remove():(b.parent&&c.push({check:"it",el:b.parent}),b.replaceWithChildren())}function y(b,a,c){var e,d;for(e=0;e<c.length;++e)if(d=c[e],(!d.check||b.check(d.check,!1))&&(!d.left||d.left(a))){d.right(a,S);break}}function A(b,a){var c=a.getDefinition(),e=c.attributes,d=c.styles,f,h,k,g;if(b.name!=c.element)return!1;
for(f in e)if("class"==f){c=e[f].split(/\s+/);for(k=b.classes.join("|");g=c.pop();)if(-1==k.indexOf(g))return!1}else if(b.attributes[f]!=e[f])return!1;for(h in d)if(b.styles[h]!=d[h])return!1;return!0}function z(b,a){var c,e;"string"==typeof b?c=b:b instanceof CKEDITOR.style?e=b:(c=b[0],e=b[1]);return[{element:c,left:e,right:function(b,c){c.transform(b,a)}}]}function D(b){return function(a){return A(a,b)}}function E(b){return function(a,c){c[b](a)}}var F=CKEDITOR.dtd,H=1,J=CKEDITOR.tools.copy,I=CKEDITOR.tools.trim,
L="cke-test",C=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(b,a){this.allowedContent=[];this.disallowedContent=[];this.elementCallbacks=null;this.disabled=!1;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{},cachedChecks:{}};CKEDITOR.filter.instances[this.id]=this;var c=this.editor=b instanceof CKEDITOR.editor?b:null;if(c&&!a){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(C[c.enterMode]+" "+C[c.shiftEnterMode],"default",1),this.disallow(c.config.disallowedContent))}else this.customConfig=!1,this.allow(a||b,"default",1)};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(c,e,d){if(!m(this,c,d))return!1;var f,h;if("string"==typeof c)c=b(c);else if(c instanceof CKEDITOR.style){if(c.toAllowedContentRules)return this.allow(c.toAllowedContentRules(this.editor),
e,d);f=c.getDefinition();c={};d=f.attributes;c[f.element]=f={styles:f.styles,requiredStyles:f.styles&&CKEDITOR.tools.object.keys(f.styles)};d&&(d=J(d),f.classes=d["class"]?d["class"].split(/\s+/):null,f.requiredClasses=f.classes,delete d["class"],f.attributes=d,f.requiredAttributes=d&&CKEDITOR.tools.object.keys(d))}else if(CKEDITOR.tools.isArray(c)){for(f=0;f<c.length;++f)h=this.allow(c[f],e,d);return h}a(this,c,e,this.allowedContent,this._.allowedRules);return!0},applyTo:function(b,a,c,e){if(this.disabled)return!1;
var d=this,f=[],h=this.editor&&this.editor.config.protectedSource,k,g=!1,l={doFilter:!c,doTransform:!0,doCallbacks:!0,toHtml:a};b.forEach(function(b){if(b.type==CKEDITOR.NODE_ELEMENT){if("off"==b.attributes["data-cke-filter"])return!1;if(!a||!("span"==b.name&&~CKEDITOR.tools.object.keys(b.attributes).join("|").indexOf("data-cke-")))if(k=v(d,b,f,l),k&H)g=!0;else if(k&2)return!1}else if(b.type==CKEDITOR.NODE_COMMENT&&b.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var e=decodeURIComponent(b.value.replace(/^\{cke_protected\}/,
""));c=[];var m,n,C;if(h)for(n=0;n<h.length;++n)if((C=e.match(h[n]))&&C[0].length==e.length){c=!0;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);1==e.children.length&&(m=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&v(d,m,c,l);c=!c.length}c||f.push(b)}},null,!0);f.length&&(g=!0);var m;b=[];e=C[e||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var n;c=f.pop();)c.type==CKEDITOR.NODE_ELEMENT?x(c,e,b):c.remove();for(;m=b.pop();)if(c=m.el,c.parent)switch(n=F[c.parent.name]||F.span,m.check){case "it":F.$removeEmpty[c.name]&&
!c.children.length?x(c,e,b):u(c)||x(c,e,b);break;case "el-up":c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!n[c.name]&&x(c,e,b);break;case "parent-down":c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!n[c.name]&&x(c.parent,e,b)}return g},checkFeature:function(b){if(this.disabled||!b)return!0;b.toFeature&&(b=b.toFeature(this.editor));return!b.requiredContent||this.check(b.requiredContent)},disable:function(){this.disabled=!0},disallow:function(c){if(!m(this,c,!0))return!1;"string"==typeof c&&(c=
b(c));a(this,c,null,this.disallowedContent,this._.disallowedRules);return!0},addContentForms:function(b){if(!this.disabled&&b){var a,c,e=[],d;for(a=0;a<b.length&&!d;++a)if(c=b[a],("string"==typeof c||c instanceof CKEDITOR.style)&&this.check(c))d=c;if(d){for(a=0;a<b.length;++a)e.push(z(b[a],d));this.addTransformations(e)}}},addElementCallback:function(b){this.elementCallbacks||(this.elementCallbacks=[]);this.elementCallbacks.push(b)},addFeature:function(b){if(this.disabled||!b)return!0;b.toFeature&&
(b=b.toFeature(this.editor));this.allow(b.allowedContent,b.name);this.addTransformations(b.contentTransformations);this.addContentForms(b.contentForms);return b.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(b.requiredContent):!0},addTransformations:function(b){var a,c;if(!this.disabled&&b){var e=this._.transformations,d;for(d=0;d<b.length;++d){a=b[d];var f=void 0,h=void 0,k=void 0,g=void 0,l=void 0,m=void 0;c=[];for(h=0;h<a.length;++h)k=a[h],"string"==typeof k?(k=
k.split(/\s*:\s*/),g=k[0],l=null,m=k[1]):(g=k.check,l=k.left,m=k.right),f||(f=k.element?k.element:g?g.match(/^([a-z0-9]+)/i)[0]:k.left.getDefinition().element),l instanceof CKEDITOR.style&&(l=D(l)),c.push({check:g==f?null:g,left:l,right:"string"==typeof m?E(m):m});a=f;e[a]||(e[a]=[]);e[a].push(c)}}},check:function(a,c,d){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(a)){for(var f=a.length;f--;)if(this.check(a[f],c,d))return!0;return!1}var h,k;if("string"==typeof a){k=a+"\x3c"+(!1===c?"0":"1")+
(d?"1":"0")+"\x3e";if(k in this._.cachedChecks)return this._.cachedChecks[k];h=b(a).$1;var g=h.styles,f=h.classes;h.name=h.elements;h.classes=f=f?f.split(/\s*,\s*/):[];h.styles=e(g);h.attributes=e(h.attributes);h.children=[];f.length&&(h.attributes["class"]=f.join(" "));g&&(h.attributes.style=CKEDITOR.tools.writeCssText(h.styles))}else h=a.getDefinition(),g=h.styles,f=h.attributes||{},g&&!CKEDITOR.tools.isEmpty(g)?(g=J(g),f.style=CKEDITOR.tools.writeCssText(g,!0)):g={},h={name:h.element,attributes:f,
classes:f["class"]?f["class"].split(/\s+/):[],styles:g,children:[]};var g=CKEDITOR.tools.clone(h),l=[],m;if(!1!==c&&(m=this._.transformations[h.name])){for(f=0;f<m.length;++f)y(this,h,m[f]);q(h)}v(this,g,l,{doFilter:!0,doTransform:!1!==c,skipRequired:!d,skipFinalValidation:!d});0<l.length?d=!1:((c=h.attributes["class"])&&(h.attributes["class"]=h.attributes["class"].split(" ").sort().join(" ")),d=CKEDITOR.tools.objectCompare(h.attributes,g.attributes,!0),c&&(h.attributes["class"]=c));"string"==typeof a&&
(this._.cachedChecks[k]=d);return d},getAllowedEnterMode:function(){var b=["p","div","br"],a={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(c,e){var d=b.slice(),f;if(this.check(C[c]))return c;for(e||(d=d.reverse());f=d.pop();)if(this.check(f))return a[f];return CKEDITOR.ENTER_BR}}(),clone:function(){var b=new CKEDITOR.filter,a=CKEDITOR.tools.clone;b.allowedContent=a(this.allowedContent);b._.allowedRules=a(this._.allowedRules);b.disallowedContent=a(this.disallowedContent);
b._.disallowedRules=a(this._.disallowedRules);b._.transformations=a(this._.transformations);b.disabled=this.disabled;b.editor=this.editor;return b},destroy:function(){delete CKEDITOR.filter.instances[this.id];delete this._;delete this.allowedContent;delete this.disallowedContent}};var G={styles:1,attributes:1,classes:1},O={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},Q=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,
P={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},K=/^cke:(object|embed|param)$/,V=/^(object|embed|param)$/,S;S=CKEDITOR.filter.transformationsTools={sizeToStyle:function(b){this.lengthToStyle(b,"width");this.lengthToStyle(b,"height")},sizeToAttribute:function(b){this.lengthToAttribute(b,"width");this.lengthToAttribute(b,"height")},lengthToStyle:function(b,a,c){c=c||a;if(!(c in b.styles)){var e=b.attributes[a];e&&(/^\d+$/.test(e)&&(e+="px"),b.styles[c]=e)}delete b.attributes[a]},
lengthToAttribute:function(b,a,c){c=c||a;if(!(c in b.attributes)){var e=b.styles[a],d=e&&e.match(/^(\d+)(?:\.\d*)?px$/);d?b.attributes[c]=d[1]:e==L&&(b.attributes[c]=L)}delete b.styles[a]},alignmentToStyle:function(b){if(!("float"in b.styles)){var a=b.attributes.align;if("left"==a||"right"==a)b.styles["float"]=a}delete b.attributes.align},alignmentToAttribute:function(b){if(!("align"in b.attributes)){var a=b.styles["float"];if("left"==a||"right"==a)b.attributes.align=a}delete b.styles["float"]},splitBorderShorthand:function(b){if(b.styles.border){var a=
CKEDITOR.tools.style.parse.border(b.styles.border);a.color&&(b.styles["border-color"]=a.color);a.style&&(b.styles["border-style"]=a.style);a.width&&(b.styles["border-width"]=a.width);delete b.styles.border}},listTypeToStyle:function(b){if(b.attributes.type)switch(b.attributes.type){case "a":b.styles["list-style-type"]="lower-alpha";break;case "A":b.styles["list-style-type"]="upper-alpha";break;case "i":b.styles["list-style-type"]="lower-roman";break;case "I":b.styles["list-style-type"]="upper-roman";
break;case "1":b.styles["list-style-type"]="decimal";break;default:b.styles["list-style-type"]=b.attributes.type}},splitMarginShorthand:function(b){function a(e){b.styles["margin-top"]=c[e[0]];b.styles["margin-right"]=c[e[1]];b.styles["margin-bottom"]=c[e[2]];b.styles["margin-left"]=c[e[3]]}if(b.styles.margin){var c=b.styles.margin.match(/(\-?[\.\d]+\w+)/g)||["0px"];switch(c.length){case 1:a([0,0,0,0]);break;case 2:a([0,1,0,1]);break;case 3:a([0,1,2,1]);break;case 4:a([0,1,2,3])}delete b.styles.margin}},
matchesStyle:A,transform:function(b,a){if("string"==typeof a)b.name=a;else{var c=a.getDefinition(),e=c.styles,d=c.attributes,f,h,k,g;b.name=c.element;for(f in d)if("class"==f){c=b.classes.join("|");for(k=d[f].split(/\s+/);g=k.pop();)-1==c.indexOf(g)&&b.classes.push(g)}else b.attributes[f]=d[f];for(h in e)b.styles[h]=e[h]}}}}(),function(){CKEDITOR.focusManager=function(a){if(a.focusManager)return a.focusManager;this.hasFocus=!1;this.currentActive=null;this._={editor:a};return this};CKEDITOR.focusManager._=
{blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(a){this._.timer&&clearTimeout(this._.timer);a&&(this.currentActive=a);!this.hasFocus&&!this._.locked&&((a=CKEDITOR.currentInstance)&&a.focusManager.blur(1),this.hasFocus=!0,(a=this._.editor.container)&&a.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(a){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;a||!d?g.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;g.call(this)},d,this)}},add:function(a,g){var d=a.getCustomData("focusmanager");if(!d||d!=this){d&&d.remove(a);var d="focus",f="blur";g&&(CKEDITOR.env.ie?(d="focusin",f="focusout"):CKEDITOR.event.useCapture=1);var h={blur:function(){a.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(a)}};
a.on(d,h.focus,this);a.on(f,h.blur,this);g&&(CKEDITOR.event.useCapture=0);a.setCustomData("focusmanager",this);a.setCustomData("focusmanager_handlers",h)}},remove:function(a){a.removeCustomData("focusmanager");var g=a.removeCustomData("focusmanager_handlers");a.removeListener("blur",g.blur);a.removeListener("focus",g.focus)}}}(),CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)return a.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:a};return this},function(){var a,
g=function(d){d=d.data;var h=d.getKeystroke(),g=this.keystrokes[h],k=this._.editor;a=!1===k.fire("key",{keyCode:h,domEvent:d});a||(g&&(a=!1!==k.execCommand(g,{from:"keystrokeHandler"})),a||(a=!!this.blockedKeystrokes[h]));a&&d.preventDefault(!0);return!a},d=function(d){a&&(a=!1,d.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(a,g,d){if(!a||!CKEDITOR.lang.languages[a])a=this.detect(g,a);var f=this;
g=function(){f[a].dir=f.rtl[a]?"rtl":"ltr";d(a,f[a])};this[a]?g():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+a+".js"),g,this)},detect:function(a,g){var d=this.languages;g=g||navigator.userLanguage||navigator.language||a;var f=g.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),h=f[1],f=f[2];d[h+"-"+f]?h=h+"-"+f:d[h]||(h=null);CKEDITOR.lang.detect=h?function(){return h}:function(a){return a};return h||a}}}(),CKEDITOR.scriptLoader=function(){var a={},g={};return{load:function(d,f,h,m){var k="string"==
typeof d;k&&(d=[d]);h||(h=CKEDITOR);var c=d.length,l=[],e=[],b=function(b){f&&(k?f.call(h,b):f.call(h,l,e))};if(0===c)b(!0);else{var n=function(a,d){(d?l:e).push(a);0>=--c&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),b(d))},p=function(b,c){a[b]=1;var e=g[b];delete g[b];for(var d=0;d<e.length;d++)e[d](b,c)},v=function(b){if(a[b])n(b,!0);else{var c=g[b]||(g[b]=[]);c.push(n);if(!(1<c.length)){var e=new CKEDITOR.dom.element("script");e.setAttributes({type:"text/javascript",src:b});
f&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?e.$.onreadystatechange=function(){if("loaded"==e.$.readyState||"complete"==e.$.readyState)e.$.onreadystatechange=null,p(b,!0)}:(e.$.onload=function(){setTimeout(function(){e.$.onload=null;e.$.onerror=null;p(b,!0)},0)},e.$.onerror=function(){e.$.onload=null;e.$.onerror=null;p(b,!1)}));e.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var r=0;r<c;r++)v(d[r])}},queue:function(){function a(){var d;
(d=f[0])&&this.load(d.scriptUrl,d.callback,CKEDITOR,0)}var f=[];return function(h,g){var k=this;f.push({scriptUrl:h,callback:function(){g&&g.apply(this,arguments);f.shift();a.call(k)}});1==f.length&&a.call(this)}}()}}(),CKEDITOR.resourceManager=function(a,g){this.basePath=a;this.fileName=g;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(a,g){if(this.registered[a])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+
a+'" is already registered.');var d=this.registered[a]=g||{};d.name=a;d.path=this.getPath(a);CKEDITOR.fire(a+CKEDITOR.tools.capitalize(this.fileName)+"Ready",d);return this.get(a)},get:function(a){return this.registered[a]||null},getPath:function(a){var g=this.externals[a];return CKEDITOR.getUrl(g&&g.dir||this.basePath+a+"/")},getFilePath:function(a){var g=this.externals[a];return CKEDITOR.getUrl(this.getPath(a)+(g?g.file:this.fileName+".js"))},addExternal:function(a,g,d){a=a.split(",");for(var f=
0;f<a.length;f++){var h=a[f];d||(g=g.replace(/[^\/]+$/,function(a){d=a;return""}));this.externals[h]={dir:g,file:d||this.fileName+".js"}}},load:function(a,g,d){CKEDITOR.tools.isArray(a)||(a=a?[a]:[]);for(var f=this.loaded,h=this.registered,m=[],k={},c={},l=0;l<a.length;l++){var e=a[l];if(e)if(!f[e]&&!h[e]){var b=this.getFilePath(e);m.push(b);b in k||(k[b]=[]);k[b].push(e)}else c[e]=this.get(e)}CKEDITOR.scriptLoader.load(m,function(b,a){if(a.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+
k[a[0]].join(",")+'" was not found at "'+a[0]+'".');for(var e=0;e<b.length;e++)for(var h=k[b[e]],l=0;l<h.length;l++){var m=h[l];c[m]=this.get(m);f[m]=1}g.call(d,c)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){var g={};return function(d,f,h){var m={},k=function(c){a.call(this,c,function(a){CKEDITOR.tools.extend(m,a);var c=[],b;for(b in a){var d=a[b],p=d&&d.requires;if(!g[b]){if(d.icons)for(var v=
d.icons.split(","),r=v.length;r--;)CKEDITOR.skin.addIcon(v[r],d.path+"icons/"+(CKEDITOR.env.hidpi&&d.hidpi?"hidpi/":"")+v[r]+".png");d.isSupportedEnvironment=d.isSupportedEnvironment||function(){return!0};g[b]=1}if(p){p.split&&(p=p.split(","));for(d=0;d<p.length;d++)m[p[d]]||c.push(p[d])}}if(c.length)k.call(this,c);else{for(b in m)d=m[b],d.onLoad&&!d.onLoad._called&&(!1===d.onLoad()&&delete m[b],d.onLoad._called=1);f&&f.call(h||window,m)}},this)};k.call(this,d)}}),CKEDITOR.plugins.setLang=function(a,
g,d){var f=this.get(a);a=f.langEntries||(f.langEntries={});f=f.lang||(f.lang=[]);f.split&&(f=f.split(","));-1==CKEDITOR.tools.indexOf(f,g)&&f.push(g);a[g]=d},CKEDITOR.ui=function(a){if(a.ui)return a.ui;this.items={};this.instances={};this.editor=a;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(a,g,d){d.name=a.toLowerCase();var f=this.items[a]={type:g,command:d.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(f,d)},get:function(a){return this.instances[a]},
create:function(a){var g=this.items[a],d=g&&this._.handlers[g.type],f=g&&g.command&&this.editor.getCommand(g.command),d=d&&d.create.apply(this,g.args);this.instances[a]=d;f&&f.uiItems.push(d);d&&!d.type&&(d.type=g.type);return d},addHandler:function(a,g){this._.handlers[a]=g},space:function(a){return CKEDITOR.document.getById(this.spaceId(a))},spaceId:function(a){return this.editor.id+"_"+a}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function a(b,a,c){CKEDITOR.event.call(this);b=b&&CKEDITOR.tools.clone(b);
if(void 0!==a){if(a instanceof CKEDITOR.dom.element){if(!c)throw Error("One of the element modes must be specified.");}else throw Error("Expect element of type CKEDITOR.dom.element.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&c==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!(c==CKEDITOR.ELEMENT_MODE_INLINE?a.is(CKEDITOR.dtd.$editable)||a.is("textarea"):c==CKEDITOR.ELEMENT_MODE_REPLACE?!a.is(CKEDITOR.dtd.$nonBodyContent):1))throw Error('The specified element mode is not supported on element: "'+
a.getName()+'".');this.element=a;this.elementMode=c;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(a.getId()||a.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",d);this.on("selectionChange",function(b){h(this,b.data.path)});this.on("activeFilterChange",function(){h(this,this.elementPath(),!0)});this.on("mode",d);this.on("instanceReady",function(){if(this.config.startupFocus){if("end"===this.config.startupFocus){var b=this.createRange();b.selectNodeContents(this.editable());b.shrink(CKEDITOR.SHRINK_ELEMENT,!0);b.collapse();this.getSelection().selectRanges([b])}this.focus()}});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);
CKEDITOR.tools.setTimeout(function(){"destroyed"!==this.status?k(this,b):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function g(){do var b="editor"+ ++v;while(CKEDITOR.instances[b]);return b}function d(){var b=this.commands,a;for(a in b)f(this,b[a])}function f(b,a){a[a.startDisabled?"disable":b.readOnly&&!a.readOnly?"disable":a.modes[b.mode]?"enable":"disable"]()}function h(b,a,c){if(a){var e,d,f=b.commands;for(d in f)e=f[d],(c||e.contextSensitive)&&e.refresh(b,a)}}function m(b){var a=b.config.customConfig;
if(!a)return!1;var a=CKEDITOR.getUrl(a),c=r[a]||(r[a]={});c.fn?(c.fn.call(b,b.config),(CKEDITOR.getUrl(b.config.customConfig)==a||!m(b))&&b.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(a,function(){c.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};m(b)});return!0}function k(b,a){b.on("customConfigLoaded",function(){if(a){if(a.on)for(var e in a.on)b.on(e,a.on[e]);CKEDITOR.tools.extend(b.config,a,!0);delete b.config.on}e=b.config;b.readOnly=e.readOnly?!0:b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?
b.element.is("textarea")?b.element.hasAttribute("disabled")||b.element.hasAttribute("readonly"):b.element.isReadOnly():b.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.element.hasAttribute("disabled")||b.element.hasAttribute("readonly"):!1;b.blockless=b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(b.element.is("textarea")||CKEDITOR.dtd[b.element.getName()].p):!1;b.tabIndex=e.tabIndex||b.element&&b.element.getAttribute("tabindex")||0;b.activeEnterMode=b.enterMode=b.blockless?CKEDITOR.ENTER_BR:e.enterMode;
b.activeShiftEnterMode=b.shiftEnterMode=b.blockless?CKEDITOR.ENTER_BR:e.shiftEnterMode;e.skin&&(CKEDITOR.skinName=e.skin);b.fireOnce("configLoaded");b.dataProcessor=new CKEDITOR.htmlDataProcessor(b);b.filter=b.activeFilter=new CKEDITOR.filter(b);c(b)});a&&null!=a.customConfig&&(b.config.customConfig=a.customConfig);m(b)||b.fireOnce("customConfigLoaded")}function c(b){CKEDITOR.skin.loadPart("editor",function(){l(b)})}function l(b){CKEDITOR.lang.load(b.config.language,b.config.defaultLanguage,function(a,
c){var d=b.config.title;b.langCode=a;b.lang=CKEDITOR.tools.prototypedCopy(c);b.title="string"==typeof d||!1===d?d:[b.lang.editor,b.name].join(", ");b.config.contentsLangDirection||(b.config.contentsLangDirection=b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?b.element.getDirection(1):b.lang.dir);b.fire("langLoaded");e(b)})}function e(a){a.getStylesSet(function(c){a.once("loaded",function(){a.fire("stylesSet",{styles:c})},null,null,1);b(a)})}function b(b){function a(b){if(!b)return"";CKEDITOR.tools.isArray(b)&&
(b=b.join(","));return b.replace(/\s/g,"")}var c=b.config,e=a(c.plugins),d=a(c.extraPlugins),f=a(c.removePlugins);if(d)var h=RegExp("(?:^|,)(?:"+d.replace(/,/g,"|")+")(?\x3d,|$)","g"),e=e.replace(h,""),e=e+(","+d);if(f)var k=RegExp("(?:^|,)(?:"+f.replace(/,/g,"|")+")(?\x3d,|$)","g"),e=e.replace(k,"");CKEDITOR.env.air&&(e+=",adobeair");CKEDITOR.plugins.load(e.split(","),function(a){var e=[],d=[],f=[];b.plugins=CKEDITOR.tools.extend({},b.plugins,a);for(var h in a){var g=a[h],l=g.lang,m=null,n=g.requires,
p;CKEDITOR.tools.isArray(n)&&(n=n.join(","));if(n&&(p=n.match(k)))for(;n=p.pop();)CKEDITOR.error("editor-plugin-required",{plugin:n.replace(",",""),requiredBy:h});l&&!b.lang[h]&&(l.split&&(l=l.split(",")),0<=CKEDITOR.tools.indexOf(l,b.langCode)?m=b.langCode:(m=b.langCode.replace(/-.*/,""),m=m!=b.langCode&&0<=CKEDITOR.tools.indexOf(l,m)?m:0<=CKEDITOR.tools.indexOf(l,"en")?"en":l[0]),!g.langEntries||!g.langEntries[m]?f.push(CKEDITOR.getUrl(g.path+"lang/"+m+".js")):(b.lang[h]=g.langEntries[m],m=null));
d.push(m);e.push(g)}CKEDITOR.scriptLoader.load(f,function(){for(var a=["beforeInit","init","afterInit"],f=0;f<a.length;f++)for(var h=0;h<e.length;h++){var k=e[h];0===f&&(d[h]&&k.lang&&k.langEntries)&&(b.lang[k.name]=k.langEntries[d[h]]);if(k[a[f]])k[a[f]](b)}b.fireOnce("pluginsLoaded");c.keystrokes&&b.setKeystroke(b.config.keystrokes);for(h=0;h<b.config.blockedKeystrokes.length;h++)b.keystrokeHandler.blockedKeystrokes[b.config.blockedKeystrokes[h]]=1;b.status="loaded";b.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",
null,b)})})}function n(){var b=this.element;if(b&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var a=this.getData();this.config.htmlEncodeOutput&&(a=CKEDITOR.tools.htmlEncode(a));b.is("textarea")?b.setValue(a):b.setHtml(a);return!0}return!1}function p(b,a){function c(b){var a=b.startContainer,e=b.endContainer;return a.is&&(a.is("tr")||a.is("td")&&a.equals(e)&&b.endOffset===a.getChildCount())?!0:!1}function e(b){var a=b.startContainer;return a.is("tr")?b.cloneContents():a.clone(!0)}for(var d=
new CKEDITOR.dom.documentFragment,f,h,k,g=0;g<b.length;g++){var l=b[g],m=l.startContainer.getAscendant("tr",!0);if(c(l)){f||(f=m.getAscendant("table").clone(),f.append(m.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),d.append(f),f=f.findOne("thead, tbody, tfoot"));if(!h||!h.equals(m))h=m,k=m.clone(),f.append(k);k.append(e(l))}else d.append(l.cloneContents())}return!f?a.getHtmlFromRange(b[0]):d}a.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=a;var v=0,r={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,
{plugins:{detectConflict:function(b,a){for(var c=0;c<a.length;c++){var e=a[c];if(this[e])return CKEDITOR.warn("editor-plugin-conflict",{plugin:b,replacedWith:e}),!0}return!1}},addCommand:function(b,a){a.name=b.toLowerCase();var c=a instanceof CKEDITOR.command?a:new CKEDITOR.command(this,a);this.mode&&f(this,c);return this.commands[b]=c},_attachToForm:function(){function b(e){a.updateElement();a._.required&&(!c.getValue()&&!1===a.fire("required"))&&e.data.preventDefault()}var a=this,c=a.element,e=
new CKEDITOR.dom.element(c.$.form);c.is("textarea")&&e&&(e.on("submit",b),e.$.submit&&(e.$.submit.call&&e.$.submit.apply)&&(e.$.submit=CKEDITOR.tools.override(e.$.submit,function(a){return function(){b();a.apply?a.apply(this):a()}})),a.on("destroy",function(){e.removeListener("submit",b)}))},destroy:function(b){var a=CKEDITOR.filter.instances,c=this;this.fire("beforeDestroy");!b&&n.call(this);this.editable(null);this.filter&&delete this.filter;CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(a),
function(b){b=a[b];c===b.editor&&b.destroy()});delete this.activeFilter;this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(b){if(!b){b=this.getSelection();if(!b)return null;b=b.getStartElement()}return b?new CKEDITOR.dom.elementPath(b,this.editable()):null},createRange:function(){var b=this.editable();return b?new CKEDITOR.dom.range(b):null},execCommand:function(b,a){var c=this.getCommand(b),
e={name:b,commandData:a||{},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(b){return this.commands[b]},getData:function(b){!b&&this.fire("beforeGetData");var a=this._.data;"string"!=typeof a&&(a=(a=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.is("textarea")?a.getValue():a.getHtml():"");a={dataValue:a};!b&&this.fire("getData",
a);return a.dataValue},getSnapshot:function(){var b=this.fire("getSnapshot");"string"!=typeof b&&(b=(b=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"");return b},loadSnapshot:function(b){this.fire("loadSnapshot",b)},setData:function(b,a,c){var e=!0,d=a;a&&"object"==typeof a&&(c=a.internal,d=a.callback,e=!a.noSnapshot);!c&&e&&this.fire("saveSnapshot");if(d||!c)this.once("dataReady",function(b){!c&&e&&this.fire("saveSnapshot");d&&d.call(b.editor)});
b={dataValue:b};!c&&this.fire("setData",b);this._.data=b.dataValue;!c&&this.fire("afterSetData",b)},setReadOnly:function(b){b=null==b||b;this.readOnly!=b&&(this.readOnly=b,this.keystrokeHandler.blockedKeystrokes[8]=+b,this.editable().setReadOnly(b),this.fire("readOnly"))},insertHtml:function(b,a,c){this.fire("insertHtml",{dataValue:b,mode:a,range:c})},insertText:function(b){this.fire("insertText",b)},insertElement:function(b){this.fire("insertElement",b)},getSelectedHtml:function(b){var a=this.editable(),
c=this.getSelection(),c=c&&c.getRanges();if(!a||!c||0===c.length)return null;a=p(c,a);return b?a.getHtml():a},extractSelectedHtml:function(b,a){var c=this.editable(),e=this.getSelection().getRanges(),d=new CKEDITOR.dom.documentFragment,f;if(!c||0===e.length)return null;for(f=0;f<e.length;f++)d.append(c.extractHtmlFromRange(e[f],a));a||this.getSelection().selectRanges([e[0]]);return b?d.getHtml():d},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==
this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return n.call(this)},setKeystroke:function(){for(var b=this.keystrokeHandler.keystrokes,a=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],c,e,d=a.length;d--;)c=a[d],e=0,CKEDITOR.tools.isArray(c)&&(e=c[1],c=c[0]),e?b[c]=e:delete b[c]},getCommandKeystroke:function(b,a){var c="string"===typeof b?this.getCommand(b):b,e=[];if(c){var d=CKEDITOR.tools.object.findKey(this.commands,
c),f=this.keystrokeHandler.keystrokes;if(c.fakeKeystroke)e.push(c.fakeKeystroke);else for(var h in f)f[h]===d&&e.push(h)}return a?e:e[0]||null},addFeature:function(b){return this.filter.addFeature(b)},setActiveFilter:function(b){b||(b=this.filter);this.activeFilter!==b&&(this.activeFilter=b,this.fire("activeFilterChange"),b===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(b.getAllowedEnterMode(this.enterMode),b.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(b,
a){b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.enterMode;a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.shiftEnterMode;if(this.activeEnterMode!=b||this.activeShiftEnterMode!=a)this.activeEnterMode=b,this.activeShiftEnterMode=a,this.fire("activeEnterModeChange")},showNotification:function(b){alert(b)}});CKEDITOR.editor._getEditorElement=function(b){if(!CKEDITOR.env.isCompatible)return null;var a=CKEDITOR.dom.element.get(b);return!a?(CKEDITOR.error("editor-incorrect-element",{element:b}),null):a.getEditor()?
(CKEDITOR.error("editor-element-conflict",{editorName:a.getEditor().name}),null):a}}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--!?>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var a=/([\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 f,h,m=0,k;f=this._.htmlPartsRegex.exec(d);){h=f.index;if(h>m)if(m=d.substring(m,h),k)k.push(m);else this.onText(m);m=this._.htmlPartsRegex.lastIndex;if(h=f[1])if(h=h.toLowerCase(),k&&CKEDITOR.dtd.$cdata[h]&&
(this.onCDATA(k.join("")),k=null),!k){this.onTagClose(h);continue}if(k)k.push(f[0]);else if(h=f[3]){if(h=h.toLowerCase(),!/="/.test(h)){var c={},l,e=f[4];f=!!f[5];if(e)for(;l=a.exec(e);){var b=l[1].toLowerCase();l=l[2]||l[3]||l[4]||"";c[b]=!l&&g[b]?b:CKEDITOR.tools.htmlDecodeAttr(l)}this.onTagOpen(h,c,f);!k&&CKEDITOR.dtd.$cdata[h]&&(k=[])}}else if(h=f[2])this.onComment(h)}if(d.length>m)this.onText(d.substring(m,d.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._=
{output:[]}},proto:{openTag:function(a){this._.output.push("\x3c",a)},openTagClose:function(a,g){g?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(a,g){"string"==typeof g&&(g=CKEDITOR.tools.htmlEncodeAttr(g));this._.output.push(" ",a,'\x3d"',g,'"')},closeTag:function(a){this._.output.push("\x3c/",a,"\x3e")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("\x3c!--",a,"--\x3e")},write:function(a){this._.output.push(a)},reset:function(){this._.output=
[];this._.indent=!1},getHtml:function(a){var g=this._.output.join("");a&&this.reset();return g}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,g=CKEDITOR.tools.indexOf(a,this),d=this.previous,f=this.next;d&&(d.next=f);f&&(f.previous=d);a.splice(g,1);this.parent=null},replaceWith:function(a){var g=this.parent.children,d=CKEDITOR.tools.indexOf(g,this),f=a.previous=this.previous,h=a.next=this.next;f&&(f.next=
a);h&&(h.previous=a);g[d]=a;a.parent=this.parent;this.parent=null},insertAfter:function(a){var g=a.parent.children,d=CKEDITOR.tools.indexOf(g,a),f=a.next;g.splice(d+1,0,this);this.next=a.next;this.previous=a;a.next=this;f&&(f.previous=this);this.parent=a.parent},insertBefore:function(a){var g=a.parent.children,d=CKEDITOR.tools.indexOf(g,a);g.splice(d,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var g="function"==
typeof a?a:"string"==typeof a?function(d){return d.name==a}:function(d){return d.name in a},d=this.parent;for(;d&&d.type==CKEDITOR.NODE_ELEMENT;){if(g(d))return d;d=d.parent}return null},wrapWith:function(a){this.replaceWith(a);a.add(this);return a},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(a){return a||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(a){this.value=a;this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=
CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(a,g){var d=this.value;if(!(d=a.onComment(g,d,this)))return this.remove(),!1;if("string"!=typeof d)return this.replaceWith(d),!1;this.value=d;return!0},writeHtml:function(a,g){g&&this.filter(g);a.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,
filter:function(a,g){if(!(this.value=a.onText(g,this.value,this)))return this.remove(),!1},writeHtml:function(a,g){g&&this.filter(g);a.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(a){this.value=a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;
this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function a(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},f=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),h={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};
CKEDITOR.htmlParser.fragment.fromHtml=function(m,k,c){function l(b){var a;if(0<u.length)for(var c=0;c<u.length;c++){var d=u[c],f=d.name,h=CKEDITOR.dtd[f],k=t.name&&CKEDITOR.dtd[t.name];(!k||k[f])&&(!b||!h||h[b]||!CKEDITOR.dtd[b])?(a||(e(),a=1),d=d.clone(),d.parent=t,t=d,u.splice(c,1),c--):f==t.name&&(n(t,t.parent,1),c--)}}function e(){for(;s.length;)n(s.shift(),t)}function b(b){if(b._.isBlockLike&&"pre"!=b.name&&"textarea"!=b.name){var a=b.children.length,c=b.children[a-1],e;c&&c.type==CKEDITOR.NODE_TEXT&&
((e=CKEDITOR.tools.rtrim(c.value))?c.value=e:b.children.length=a-1)}}function n(e,d,f){d=d||t||q;var h=t;void 0===e.previous&&(p(d,e)&&(t=d,r.onTagOpen(c,{}),e.returnPoint=d=t),b(e),(!a(e)||e.children.length)&&d.add(e),"pre"==e.name&&(x=!1),"textarea"==e.name&&(w=!1));e.returnPoint?(t=e.returnPoint,delete e.returnPoint):t=f?d:h}function p(b,a){if((b==q||"body"==b.name)&&c&&(!b.name||CKEDITOR.dtd[b.name][c])){var e,d;return(e=a.attributes&&(d=a.attributes["data-cke-real-element-type"])?d:a.name)&&
e in CKEDITOR.dtd.$inline&&!(e in CKEDITOR.dtd.head)&&!a.isOrphan||a.type==CKEDITOR.NODE_TEXT}}function v(b,a){return b in CKEDITOR.dtd.$listItem||b in CKEDITOR.dtd.$tableContent?b==a||"dt"==b&&"dd"==a||"dd"==b&&"dt"==a:!1}var r=new CKEDITOR.htmlParser,q=k instanceof CKEDITOR.htmlParser.element?k:"string"==typeof k?new CKEDITOR.htmlParser.element(k):new CKEDITOR.htmlParser.fragment,u=[],s=[],t=q,w="textarea"==q.name,x="pre"==q.name;r.onTagOpen=function(b,c,h,k){c=new CKEDITOR.htmlParser.element(b,
c);c.isUnknown&&h&&(c.isEmpty=!0);c.isOptionalClose=k;if(a(c))u.push(c);else{if("pre"==b)x=!0;else{if("br"==b&&x){t.add(new CKEDITOR.htmlParser.text("\n"));return}"textarea"==b&&(w=!0)}if("br"==b)s.push(c);else{for(;;)if(k=(h=t.name)?CKEDITOR.dtd[h]||(t._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):f,!c.isUnknown&&!t.isUnknown&&!k[b])if(t.isOptionalClose)r.onTagClose(h);else if(b in d&&h in d)h=t.children,(h=h[h.length-1])&&"li"==h.name||n(h=new CKEDITOR.htmlParser.element("li"),t),!c.returnPoint&&
(c.returnPoint=t),t=h;else if(b in CKEDITOR.dtd.$listItem&&!v(b,h))r.onTagOpen("li"==b?"ul":"dl",{},0,1);else if(h in g&&!v(b,h))!c.returnPoint&&(c.returnPoint=t),t=t.parent;else if(h in CKEDITOR.dtd.$inline&&u.unshift(t),t.parent)n(t,t.parent,1);else{c.isOrphan=1;break}else break;l(b);e();c.parent=t;c.isEmpty?n(c):t=c}}};r.onTagClose=function(b){for(var a=u.length-1;0<=a;a--)if(b==u[a].name){u.splice(a,1);return}for(var d=[],f=[],h=t;h!=q&&h.name!=b;)h._.isBlockLike||f.unshift(h),d.push(h),h=h.returnPoint||
h.parent;if(h!=q){for(a=0;a<d.length;a++){var k=d[a];n(k,k.parent)}t=h;h._.isBlockLike&&e();n(h,h.parent);h==t&&(t=t.parent);u=u.concat(f)}"body"==b&&(c=!1)};r.onText=function(b){if((!t._.hasInlineStarted||s.length)&&!x&&!w)if(b=CKEDITOR.tools.ltrim(b),0===b.length)return;var a=t.name,d=a?CKEDITOR.dtd[a]||(t._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):f;if(!w&&!d["#"]&&a in g)r.onTagOpen(h[a]||""),r.onText(b);else{e();l();!x&&!w&&(b=b.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));b=new CKEDITOR.htmlParser.text(b);
if(p(t,b))this.onTagOpen(c,{},0,1);t.add(b)}};r.onCDATA=function(b){t.add(new CKEDITOR.htmlParser.cdata(b))};r.onComment=function(b){e();l();t.add(new CKEDITOR.htmlParser.comment(b))};r.parse(m);for(e();t!=q;)n(t,t.parent,1);b(q);return q};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,d){isNaN(d)&&(d=this.children.length);var c=0<d?this.children[d-1]:null;if(c){if(a._.isBlockLike&&c.type==CKEDITOR.NODE_TEXT&&(c.value=CKEDITOR.tools.rtrim(c.value),0===
c.value.length)){this.children.pop();this.add(a);return}c.next=a}a.previous=c;a.parent=this;this.children.splice(d,0,a);this._.hasInlineStarted||(this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike)},filter:function(a,d){d=this.getFilterContext(d);a.onRoot(d,this);this.filterChildren(a,!1,d)},filterChildren:function(a,d,c){if(this.childrenFilteredBy!=a.id){c=this.getFilterContext(c);if(d&&!this.parent)a.onRoot(c,this);this.childrenFilteredBy=a.id;for(d=
0;d<this.children.length;d++)!1===this.children[d].filter(a,c)&&d--}},writeHtml:function(a,d){d&&this.filter(d);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,d,c){var f=this.getFilterContext();if(c&&!this.parent&&d)d.onRoot(f,this);d&&this.filterChildren(d,!1,f);d=0;c=this.children;for(f=c.length;d<f;d++)c[d].writeHtml(a)},forEach:function(a,d,c){if(!c&&(!d||this.type==d))var f=a(this);if(!1!==f){c=this.children;for(var e=0;e<c.length;e++)f=c[e],f.type==CKEDITOR.NODE_ELEMENT?f.forEach(a,
d):(!d||f.type==d)&&a(f)}},getFilterContext:function(a){return a||{}}}}(),"use strict",function(){function a(){this.rules=[]}function g(d,f,h,g){var k,c;for(k in f)(c=d[k])||(c=d[k]=new a),c.add(f[k],h,g)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(d){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new a;this.attributeNameRules=new a;this.elementsRules={};this.attributesRules={};this.textRules=new a;this.commentRules=new a;this.rootRules=new a;d&&this.addRules(d,
10)},proto:{addRules:function(a,f){var h;"number"==typeof f?h=f:f&&"priority"in f&&(h=f.priority);"number"!=typeof h&&(h=10);"object"!=typeof f&&(f={});a.elementNames&&this.elementNameRules.addMany(a.elementNames,h,f);a.attributeNames&&this.attributeNameRules.addMany(a.attributeNames,h,f);a.elements&&g(this.elementsRules,a.elements,h,f);a.attributes&&g(this.attributesRules,a.attributes,h,f);a.text&&this.textRules.add(a.text,h,f);a.comment&&this.commentRules.add(a.comment,h,f);a.root&&this.rootRules.add(a.root,
h,f)},applyTo:function(a){a.filter(this)},onElementName:function(a,f){return this.elementNameRules.execOnName(a,f)},onAttributeName:function(a,f){return this.attributeNameRules.execOnName(a,f)},onText:function(a,f,h){return this.textRules.exec(a,f,h)},onComment:function(a,f,h){return this.commentRules.exec(a,f,h)},onRoot:function(a,f){return this.rootRules.exec(a,f)},onElement:function(a,f){for(var h=[this.elementsRules["^"],this.elementsRules[f.name],this.elementsRules.$],g,k=0;3>k;k++)if(g=h[k]){g=
g.exec(a,f,this);if(!1===g)return null;if(g&&g!=f)return this.onNode(a,g);if(f.parent&&!f.name)break}return f},onNode:function(a,f){var h=f.type;return h==CKEDITOR.NODE_ELEMENT?this.onElement(a,f):h==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,f.value)):h==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,f.value)):null},onAttribute:function(a,f,h,g){return(h=this.attributesRules[h])?h.exec(a,g,f,this):g}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype=
{add:function(a,f,h){this.rules.splice(this.findIndex(f),0,{value:a,priority:f,options:h})},addMany:function(a,f,h){for(var g=[this.findIndex(f),0],k=0,c=a.length;k<c;k++)g.push({value:a[k],priority:f,options:h});this.rules.splice.apply(this.rules,g)},findIndex:function(a){for(var f=this.rules,h=f.length-1;0<=h&&a<f[h].priority;)h--;return h+1},exec:function(a,f){var h=f instanceof CKEDITOR.htmlParser.node||f instanceof CKEDITOR.htmlParser.fragment,g=Array.prototype.slice.call(arguments,1),k=this.rules,
c=k.length,l,e,b,n;for(n=0;n<c;n++)if(h&&(l=f.type,e=f.name),b=k[n],!(a.nonEditable&&!b.options.applyToAll||a.nestedEditable&&b.options.excludeNestedEditable)){b=b.value.apply(null,g);if(!1===b||h&&b&&(b.name!=e||b.type!=l))return b;null!=b&&(g[0]=f=b)}return f},execOnName:function(a,f){for(var h=0,g=this.rules,k=g.length,c;f&&h<k;h++)c=g[h],!(a.nonEditable&&!c.options.applyToAll||a.nestedEditable&&c.options.excludeNestedEditable)&&(f=f.replace(c.value[0],c.value[1]));return f}}}(),function(){function a(b,
a){function c(b){return b||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function e(b,a){return function(e){if(e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var f=[],l=g(e),m,C;if(l)for(k(l,1)&&f.push(l);l;){if(h(l)&&(m=d(l))&&k(m))(C=d(m))&&!h(C)?f.push(m):(c(n).insertAfter(m),m.remove());l=l.previous}for(l=0;l<f.length;l++)f[l].remove();if(f=!b||!1!==("function"==typeof a?a(e):a))!n&&!CKEDITOR.env.needsBrFiller&&e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT?
f=!1:!n&&!CKEDITOR.env.needsBrFiller&&(7<document.documentMode||e.name in CKEDITOR.dtd.tr||e.name in CKEDITOR.dtd.$listItem)?f=!1:(f=g(e),f=!f||"form"==e.name&&"input"==f.name);f&&e.add(c(b))}}}function k(b,a){if((!n||CKEDITOR.env.needsBrFiller)&&b.type==CKEDITOR.NODE_ELEMENT&&"br"==b.name&&!b.attributes["data-cke-eol"])return!0;var c;if(b.type==CKEDITOR.NODE_TEXT&&(c=b.value.match(s)))if(c.index&&((new CKEDITOR.htmlParser.text(b.value.substring(0,c.index))).insertBefore(b),b.value=c[0]),!CKEDITOR.env.needsBrFiller&&
n&&(!a||b.parent.name in C)||!n&&((c=b.previous)&&"br"==c.name||!c||h(c)))return!0;return!1}var l={elements:{}},n="html"==a,C=CKEDITOR.tools.extend({},y),p;for(p in C)"#"in w[p]||delete C[p];for(p in C)l.elements[p]=e(n,b.config.fillEmptyBlocks);l.root=e(n,!1);l.elements.br=function(b){return function(a){if(a.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var e=a.attributes;if("data-cke-bogus"in e||"data-cke-eol"in e)delete e["data-cke-bogus"];else{for(e=a.next;e&&f(e);)e=e.next;var k=d(a);!e&&h(a.parent)?
m(a.parent,c(b)):h(e)&&(k&&!h(k))&&c(b).insertBefore(e)}}}}(n);return l}function g(b){for(b=b.children[b.children.length-1];b&&f(b);)b=b.previous;return b}function d(b){for(b=b.previous;b&&f(b);)b=b.previous;return b}function f(b){return b.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(b.value)||b.type==CKEDITOR.NODE_ELEMENT&&b.attributes["data-cke-bookmark"]}function h(b){return b&&(b.type==CKEDITOR.NODE_ELEMENT&&b.name in y||b.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function m(b,a){var c=b.children[b.children.length-
1];b.children.push(a);a.parent=b;c&&(c.next=a,a.previous=c)}function k(b){b=b.attributes;"false"!=b.contenteditable&&(b["data-cke-editable"]=b.contenteditable?"true":1);b.contenteditable="false"}function c(b){b=b.attributes;switch(b["data-cke-editable"]){case "true":b.contenteditable="true";break;case "1":delete b.contenteditable}}function l(b){return b.replace(F,function(b,a,c){return"\x3c"+a+c.replace(H,function(b,a){return J.test(a)&&-1==c.indexOf("data-cke-saved-"+a)?" data-cke-saved-"+b+" data-cke-"+
CKEDITOR.rnd+"-"+b:b})+"\x3e"})}function e(b,a){return b.replace(a,function(b,a,c){0===b.indexOf("\x3ctextarea")&&(b=a+r(c).replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(b)+"\x3c/cke:encoded\x3e"})}function b(b){return b.replace(C,function(b,a){return decodeURIComponent(a)})}function n(b){return b.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(b){return"\x3c!--"+t+"{C}"+encodeURIComponent(b).replace(/--/g,"%2D%2D")+
"--\x3e"})}function p(b){return CKEDITOR.tools.array.reduce(b.split(""),function(b,a){var c=a.toLowerCase(),e=a.toUpperCase(),d=v(c);c!==e&&(d+="|"+v(e));return b+("("+d+")")},"")}function v(b){var a;a=b.charCodeAt(0);var c=a.toString(16);a={htmlCode:"\x26#"+a+";?",hex:"\x26#x0*"+c+";?",entity:{"\x3c":"\x26lt;","\x3e":"\x26gt;",":":"\x26colon;"}[b]};for(var e in a)a[e]&&(b+="|"+a[e]);return b}function r(b){return b.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(b,a){return decodeURIComponent(a)})}
function q(b,a){var c=a._.dataStore;return b.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(b,a){return decodeURIComponent(a)}).replace(/\{cke_protected_(\d+)\}/g,function(b,a){return c&&c[a]||""})}function u(b,a){var c=[],e=a.config.protectedSource,d=a._.dataStore||(a._.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);b=b.replace(/\x3c!--[\s\S]*?--\x3e/g,function(b){return"\x3c!--{cke_tempcomment}"+
(c.push(b)-1)+"--\x3e"});for(var h=0;h<e.length;h++)b=b.replace(e[h],function(b){b=b.replace(f,function(b,a,e){return c[e]});return/cke_temp(comment)?/.test(b)?b:"\x3c!--{cke_temp}"+(c.push(b)-1)+"--\x3e"});b=b.replace(f,function(b,a,e){return"\x3c!--"+t+(a?"{C}":"")+encodeURIComponent(c[e]).replace(/--/g,"%2D%2D")+"--\x3e"});b=b.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(b){return b.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(b,
a){d[d.id]=decodeURIComponent(a);return"{cke_protected_"+d.id++ +"}"})});return b=b.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(b,c,e,d){return"\x3c"+c+e+"\x3e"+q(r(d),a)+"\x3c/"+c+"\x3e"})}CKEDITOR.htmlDataProcessor=function(c){var d,f,h=this;this.editor=c;this.dataFilter=d=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;d.addRules(A);d.addRules(z,{applyToAll:!0});d.addRules(a(c,"data"),{applyToAll:!0});
f.addRules(D);f.addRules(E,{applyToAll:!0});f.addRules(a(c,"html"),{applyToAll:!0});c.on("toHtml",function(a){a=a.data;var d=a.dataValue,f,d=d.replace(G,""),d=u(d,c),d=e(d,L),d=l(d),d=e(d,I),d=d.replace(O,"$1cke:$2"),d=d.replace(P,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),d=d.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),d=d.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");f=a.context||c.editable().getName();var h;CKEDITOR.env.ie&&(9>CKEDITOR.env.version&&"pre"==f)&&(f="div",d=
"\x3cpre\x3e"+d+"\x3c/pre\x3e",h=1);f=c.document.createElement(f);f.setHtml("a"+d);d=f.getHtml().substr(1);d=d.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");h&&(d=d.replace(/^<pre>|<\/pre>$/gi,""));d=d.replace(Q,"$1$2");d=b(d);d=r(d);f=!1===a.fixForBody?!1:a.enterMode!=CKEDITOR.ENTER_BR&&!1!==c.config.autoParagraph?a.enterMode==CKEDITOR.ENTER_DIV?"div":"p":!1;d=CKEDITOR.htmlParser.fragment.fromHtml(d,a.context,f);f&&(h=d,!h.children.length&&CKEDITOR.dtd[h.name][f]&&(f=new CKEDITOR.htmlParser.element(f),
h.add(f)));a.dataValue=d},null,null,5);c.on("toHtml",function(b){b.data.filter.applyTo(b.data.dataValue,!0,b.data.dontFilter,b.data.enterMode)&&c.fire("dataFiltered")},null,null,6);c.on("toHtml",function(b){b.data.dataValue.filterChildren(h.dataFilter,!0)},null,null,10);c.on("toHtml",function(b){b=b.data;var a=b.dataValue,c=new CKEDITOR.htmlParser.basicWriter;a.writeChildrenHtml(c);a=c.getHtml(!0);b.dataValue=n(a)},null,null,15);c.on("toDataFormat",function(b){var a=b.data.dataValue;b.data.enterMode!=
CKEDITOR.ENTER_BR&&(a=a.replace(/^<br *\/?>/i,""));b.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(a,b.data.context,b.data.enterMode!=CKEDITOR.ENTER_BR&&!1!==c.config.autoParagraph?b.data.enterMode==CKEDITOR.ENTER_DIV?"div":"p":!1)},null,null,5);c.on("toDataFormat",function(b){b.data.dataValue.filterChildren(h.htmlFilter,!0)},null,null,10);c.on("toDataFormat",function(b){b.data.filter.applyTo(b.data.dataValue,!1,!0)},null,null,11);c.on("toDataFormat",function(b){var a=b.data.dataValue,e=h.writer;
e.reset();a.writeChildrenHtml(e);a=e.getHtml(!0);a=r(a);a=q(a,c);b.data.dataValue=a},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(b,a,c,e){var d=this.editor,f,h,k,g;a&&"object"==typeof a?(f=a.context,c=a.fixForBody,e=a.dontFilter,h=a.filter,k=a.enterMode,g=a.protectedWhitespaces):f=a;!f&&null!==f&&(f=d.editable().getName());return d.fire("toHtml",{dataValue:b,context:f,fixForBody:c,dontFilter:e,filter:h||d.filter,enterMode:k||d.enterMode,protectedWhitespaces:g}).dataValue},
toDataFormat:function(b,a){var c,e,d;a&&(c=a.context,e=a.filter,d=a.enterMode);!c&&null!==c&&(c=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:b,filter:e||this.editor.filter,context:c,enterMode:d||this.editor.enterMode}).dataValue}};var s=/(?: |\xa0)$/,t="{cke_protected}",w=CKEDITOR.dtd,x="caption colgroup col thead tfoot tbody".split(" "),y=CKEDITOR.tools.extend({},w.$blockLimit,w.$block),A={elements:{input:k,textarea:k}},z={attributeNames:[[/^on/,"data-cke-pa-on"],
[/^srcdoc/,"data-cke-pa-srcdoc"],[/^data-cke-expando$/,""]],elements:{iframe:function(b){if(b.attributes&&b.attributes.src){var a=b.attributes.src.toLowerCase().replace(/[^a-z]/gi,"");if(0===a.indexOf("javascript")||0===a.indexOf("data"))b.attributes["data-cke-pa-src"]=b.attributes.src,delete b.attributes.src}}}},D={elements:{embed:function(b){var a=b.parent;if(a&&"object"==a.name){var c=a.attributes.width,a=a.attributes.height;c&&(b.attributes.width=c);a&&(b.attributes.height=a)}},a:function(b){var a=
b.attributes;if(!b.children.length&&!a.name&&!a.id&&!b.attributes["data-cke-saved-name"])return!1}}},E={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(b){var a=b.attributes;if(a){if(a["data-cke-temp"])return!1;for(var c=["name","href","src"],e,d=0;d<c.length;d++)e="data-cke-saved-"+c[d],e in a&&delete a[c[d]]}return b},table:function(b){b.children.slice(0).sort(function(b,a){var c,e;b.type==
CKEDITOR.NODE_ELEMENT&&a.type==b.type&&(c=CKEDITOR.tools.indexOf(x,b.name),e=CKEDITOR.tools.indexOf(x,a.name));-1<c&&-1<e&&c!=e||(c=b.parent?b.getIndex():-1,e=a.parent?a.getIndex():-1);return c>e?1:-1})},param:function(b){b.children=[];b.isEmpty=!0;return b},span:function(b){"Apple-style-span"==b.attributes["class"]&&delete b.name},html:function(b){delete b.attributes.contenteditable;delete b.attributes["class"]},body:function(b){delete b.attributes.spellcheck;delete b.attributes.contenteditable},
style:function(b){var a=b.children[0];a&&a.value&&(a.value=CKEDITOR.tools.trim(a.value));b.attributes.type||(b.attributes.type="text/css")},title:function(b){var a=b.children[0];!a&&m(b,a=new CKEDITOR.htmlParser.text);a.value=b.attributes["data-cke-title"]||""},input:c,textarea:c},attributes:{"class":function(b){return CKEDITOR.tools.ltrim(b.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(E.attributes.style=function(b){return b.replace(/(^|;)([^\:]+)/g,function(b){return b.toLowerCase()})});
var F=/<(a|area|img|input|source)\b([^>]*)>/gi,H=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,J=/^(href|src|name)$/i,I=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,L=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,C=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,G=RegExp("("+p("\x3ccke:encoded\x3e")+"(.*?)"+p("\x3c/cke:encoded\x3e")+")|("+p("\x3c")+p("/")+"?"+p("cke:encoded\x3e")+")","gi"),O=/(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi,
Q=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,P=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(a,g){this.name=a;this.attributes=g||{};this.children=[];var d=a||"",f=d.match(/^cke:(.*)/);f&&(d=f[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[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:d,
hasInlineStarted:this.isEmpty||!d}},CKEDITOR.htmlParser.cssStyle=function(a){var g={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style:a)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,f,h){"font-family"==f&&(h=h.replace(/["']/g,""));g[f.toLowerCase()]=h});return{rules:g,populate:function(a){var f=this.toString();f&&(a instanceof CKEDITOR.dom.element?a.setAttribute("style",f):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=f:a.style=
f)},toString:function(){var a=[],f;for(f in g)g[f]&&a.push(f,":",g[f],";");return a.join("")}}},function(){function a(a){return function(d){return d.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof a?d.name==a:d.name in a)}}var g=function(a,d){a=a[0];d=d[0];return a<d?-1:a>d?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,d){var g=this,k,c;d=g.getFilterContext(d);if(!g.parent)a.onRoot(d,g);for(;;){k=g.name;if(!(c=a.onElementName(d,k)))return this.remove(),!1;g.name=c;if(!(g=a.onElement(d,g)))return this.remove(),!1;if(g!==this)return this.replaceWith(g),!1;if(g.name==k)break;if(g.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(g),!1;if(!g.name)return this.replaceWithChildren(),!1}k=g.attributes;var l,e;for(l in k){e=l;for(c=k[l];;)if(e=a.onAttributeName(d,l))if(e!=l)delete k[l],
l=e;else break;else{delete k[l];break}e&&(!1===(c=a.onAttribute(d,g,e,c))?delete k[e]:k[e]=c)}g.isEmpty||this.filterChildren(a,!1,d);return!0},filterChildren:d.filterChildren,writeHtml:function(a,d){d&&this.filter(d);var m=this.name,k=[],c=this.attributes,l,e;a.openTag(m,c);for(l in c)k.push([l,c[l]]);a.sortAttributes&&k.sort(g);l=0;for(e=k.length;l<e;l++)c=k[l],a.attribute(c[0],c[1]);a.openTagClose(m,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(m)},writeChildrenHtml:d.writeChildrenHtml,
replaceWithChildren:function(){for(var a=this.children,d=a.length;d;)a[--d].insertAfter(this);this.remove()},forEach:d.forEach,getFirst:function(d){if(!d)return this.children.length?this.children[0]:null;"function"!=typeof d&&(d=a(d));for(var h=0,g=this.children.length;h<g;++h)if(d(this.children[h]))return this.children[h];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 d=0,g=a.length;d<g;++d)a[d].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var d=this.children.splice(a,this.children.length-a),g=this.clone(),k=0;k<d.length;++k)d[k].parent=g;g.children=d;d[0]&&(d[0].previous=null);0<a&&(this.children[a-1].next=null);this.parent.add(g,this.getIndex()+1);return g},find:function(a,d){void 0===d&&(d=!1);var g=[],k;for(k=0;k<this.children.length;k++){var c=this.children[k];
"function"==typeof a&&a(c)?g.push(c):"string"==typeof a&&c.name===a&&g.push(c);d&&c.find&&(g=g.concat(c.find(a,d)))}return g},findOne:function(a,d){var g=null,k=CKEDITOR.tools.array.find(this.children,function(c){var k="function"===typeof a?a(c):c.name===a;if(k||!d)return k;c.children&&c.findOne&&(g=c.findOne(a,!0));return!!g});return g||k||null},addClass:function(a){if(!this.hasClass(a)){var d=this.attributes["class"]||"";this.attributes["class"]=d+(d?" ":"")+a}},removeClass:function(a){var d=this.attributes["class"];
d&&((d=CKEDITOR.tools.trim(d.replace(RegExp("(?:\\s+|^)"+a+"(?:\\s+|$)")," ")))?this.attributes["class"]=d:delete this.attributes["class"])},hasClass:function(a){var d=this.attributes["class"];return!d?!1:RegExp("(?:^|\\s)"+a+"(?\x3d\\s|$)").test(d)},getFilterContext:function(a){var d=[];a||(a={nonEditable:!1,nestedEditable:!1});!a.nonEditable&&"false"==this.attributes.contenteditable?d.push("nonEditable",!0):a.nonEditable&&(!a.nestedEditable&&"true"==this.attributes.contenteditable)&&d.push("nestedEditable",
!0);if(d.length){a=CKEDITOR.tools.copy(a);for(var g=0;g<d.length;g+=2)a[d[g]]=d[g+1]}return a}},!0)}(),function(){var a=/{([^}]+)}/g;CKEDITOR.template=function(a){this.source="function"===typeof a?a:String(a)};CKEDITOR.template.prototype.output=function(g,d){var f=("function"===typeof this.source?this.source(g):this.source).replace(a,function(a,d){return void 0!==g[d]?g[d]:a});return d?d.push(f):f}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),
CKEDITOR.add=function(a){function g(){CKEDITOR.currentInstance==a&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}CKEDITOR.instances[a.name]=a;a.on("focus",function(){CKEDITOR.currentInstance!=a&&(CKEDITOR.currentInstance=a,CKEDITOR.fire("currentInstance"))});a.on("blur",g);a.on("destroy",g);CKEDITOR.fire("instance",null,a)},CKEDITOR.remove=function(a){delete CKEDITOR.instances[a.name]},function(){var a={};CKEDITOR.addTemplate=function(g,d){var f=a[g];if(f)return f;f={name:g,source:d};
CKEDITOR.fire("template",f);return a[g]=new CKEDITOR.template(f.source)};CKEDITOR.getTemplate=function(g){return a[g]}}(),function(){var a=[];CKEDITOR.addCss=function(g){a.push(g)};CKEDITOR.getCss=function(){return a.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(a,g){a=CKEDITOR.editor._getEditorElement(a);if(!a)return null;
var d=new CKEDITOR.editor(g,a,CKEDITOR.ELEMENT_MODE_INLINE),f=a.is("textarea")?a:null;f?(d.setData(f.getValue(),null,!0),a=CKEDITOR.dom.element.createFromHtml('\x3cdiv contenteditable\x3d"'+!!d.readOnly+'" class\x3d"cke_textarea_inline"\x3e'+f.getValue()+"\x3c/div\x3e",CKEDITOR.document),a.insertAfter(f),f.hide(),f.$.form&&d._attachToForm()):d.setData(a.getHtml(),null,!0);d.on("loaded",function(){d.fire("uiReady");d.editable(a);d.container=a;d.ui.contentsElement=a;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(){f&&(d.container.clearCustomData(),d.container.remove(),f.show());d.element.clearCustomData();delete d.element});return d};CKEDITOR.inlineAll=function(){var a,g,d;for(d in CKEDITOR.dtd.$editable)for(var f=CKEDITOR.document.getElementsByTag(d),h=0,m=f.count();h<m;h++)a=f.getItem(h),"true"==a.getAttribute("contenteditable")&&
(g={element:a,config:{}},!1!==CKEDITOR.fire("inline",g)&&CKEDITOR.inline(a,g.config))};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function a(a,h,m,k){a=CKEDITOR.editor._getEditorElement(a);if(!a)return null;var c=new CKEDITOR.editor(h,a,k);k==CKEDITOR.ELEMENT_MODE_REPLACE&&(a.setStyle("visibility","hidden"),c._.required=a.hasAttribute("required"),a.removeAttribute("required"));m&&c.setData(m,null,!0);c.on("loaded",
function(){d(c);k==CKEDITOR.ELEMENT_MODE_REPLACE&&(c.config.autoUpdateElement&&a.$.form)&&c._attachToForm();c.setMode(c.config.startupMode,function(){c.resetDirty();c.status="ready";c.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,c)})});c.on("destroy",g);return c}function g(){var a=this.container,d=this.element;a&&(a.clearCustomData(),a.remove());d&&(d.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(d.show(),this._.required&&d.setAttribute("required","required")),
delete this.element)}function d(a){var d=a.name,g=a.element,k=a.elementMode,c=a.fire("uiSpace",{space:"top",html:""}).html,l=a.fire("uiSpace",{space:"bottom",html:""}).html,e=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'),d=CKEDITOR.dom.element.createFromHtml(e.output({id:a.id,name:d,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:c?'\x3cspan id\x3d"'+a.ui.spaceId("top")+'" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e'+
c+"\x3c/span\x3e":"",contentId:a.ui.spaceId("contents"),bottomHtml:l?'\x3cspan id\x3d"'+a.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+l+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));k==CKEDITOR.ELEMENT_MODE_REPLACE?(g.hide(),d.insertAfter(g)):g.append(d);a.container=d;a.ui.contentsElement=a.ui.space("contents");c&&a.ui.space("top").unselectable();l&&a.ui.space("bottom").unselectable();g=a.config.width;k=a.config.height;g&&d.setStyle("width",
CKEDITOR.tools.cssLength(g));k&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(k));d.disableContextMenu();CKEDITOR.env.webkit&&d.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(d,h){return a(d,h,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(d,h,g){return a(d,h,g,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),d=0;d<a.length;d++){var g=null,k=a[d];if(k.name||k.id){if("string"==
typeof arguments[0]){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(k.className))continue}else if("function"==typeof arguments[0]&&(g={},!1===arguments[0](k,g)))continue;this.replace(k,g)}}};CKEDITOR.editor.prototype.addMode=function(a,d){(this._.modes||(this._.modes={}))[a]=d};CKEDITOR.editor.prototype.setMode=function(a,d){var g=this,k=this._.modes;if(!(a==g.mode||!k||!k[a])){g.fire("beforeSetMode",a);if(g.mode){var c=g.checkDirty(),k=g._.previousModeData,l,e=0;g.fire("beforeModeUnload");
g.editable(0);g._.previousMode=g.mode;g._.previousModeData=l=g.getData(1);"source"==g.mode&&k==l&&(g.fire("lockSnapshot",{forceUpdate:!0}),e=1);g.ui.space("contents").setHtml("");g.mode=""}else g._.previousModeData=g.getData(1);this._.modes[a](function(){g.mode=a;void 0!==c&&!c&&g.resetDirty();e?g.fire("unlockSnapshot"):"wysiwyg"==a&&g.fire("saveSnapshot");setTimeout(function(){g.fire("mode");d&&d.call(g)},0)})}};CKEDITOR.editor.prototype.resize=function(a,d,g,k){var c=this.container,l=this.ui.space("contents"),
e=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;k=k?this.container.getFirst(function(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.hasClass("cke_inner")}):c;k.setSize("width",a,!0);e&&(e.style.width="1%");var b=(k.$.offsetHeight||0)-(l.$.clientHeight||0),c=Math.max(d-(g?0:b),0);d=g?d+b:d;l.setStyle("height",c+"px");e&&(e.style.width="100%");this.fire("resize",{outerHeight:d,contentsHeight:c,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 a(b){var a=b.editor,c=b.data.path,e=c.blockLimit,d=b.data.selection,h=d.getRanges()[0],l;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(d=g(d,c))d.appendBogus(),l=CKEDITOR.env.ie;if(k(a,c.block,e)&&(h.collapsed&&!h.getCommonAncestor().isReadOnly())&&(c=h.clone(),c.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),
e=new CKEDITOR.dom.walker(c),e.guard=function(b){return!f(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()},!e.checkForward()||c.checkStartOfBlock()&&c.checkEndOfBlock()))a=h.fixBlock(!0,a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(a=a.getFirst(f))&&(a.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(a.getText()).match(/^(?: |\xa0)$/))&&a.remove(),l=1,b.cancel();l&&h.select()}function g(b,a){if(b.isFake)return 0;var c=a.block||a.blockLimit,e=c&&c.getLast(f);if(c&&
c.isBlockBoundary()&&(!e||!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()))&&!c.is("pre")&&!c.getBogus())return c}function d(b){var a=b.data.getTarget();a.is("input")&&(a=a.getAttribute("type"),("submit"==a||"reset"==a)&&b.data.preventDefault())}function f(b){return n(b)&&p(b)}function h(b,a){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;(!e||!a.equals(e)&&!a.contains(e))&&b.call(this,
c)}}function m(b){function a(b){return function(a,e){e&&(a.type==CKEDITOR.NODE_ELEMENT&&a.is(d))&&(c=a);if(!e&&f(a)&&(!b||!r(a)))return!1}}var c,e=b.getRanges()[0];b=b.root;var d={table:1,ul:1,ol:1,dl:1};if(e.startPath().contains(d)){var h=e.clone();h.collapse(1);h.setStartAt(b,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(h);b.guard=a();b.checkBackward();if(c)return h=e.clone(),h.collapse(),h.setEndAt(c,CKEDITOR.POSITION_AFTER_END),b=new CKEDITOR.dom.walker(h),b.guard=a(!0),c=!1,b.checkForward(),
c}return null}function k(b,a,c){return!1!==b.config.autoParagraph&&b.activeEnterMode!=CKEDITOR.ENTER_BR&&(b.editable().equals(c)&&!a||a&&"true"==a.getAttribute("contenteditable"))}function c(b){return b.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==b.config.autoParagraph?b.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":!1}function l(b){b&&b.isEmptyInlineRemoveable()&&b.remove()}function e(b){var a=b.editor;a.getSelection().scrollIntoView();setTimeout(function(){a.fire("saveSnapshot")},0)}function b(b,a,
c){var e=b.getCommonAncestor(a);for(a=b=c?a:b;(b=b.getParent())&&!e.equals(b)&&1==b.getChildCount();)a=b;a.remove()}var n,p,v,r,q,u,s,t,w,x;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(b,a){this.base(a.$||a);this.editor=b;this.status="unloaded";this.hasFocus=!1;this.setup()},proto:{focus:function(){var b;if(CKEDITOR.env.webkit&&!this.hasFocus&&(b=this.editor._.previousActive||this.getDocument().getActive(),this.contains(b))){b.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))this.$.setActive();else if(CKEDITOR.env.chrome){var a=this.$.scrollTop;this.$.focus();this.$.scrollTop=a}else this.$.focus()}catch(c){if(!CKEDITOR.env.ie)throw c;}CKEDITOR.env.safari&&!this.isInline()&&(b=CKEDITOR.document.getActive(),b.equals(this.getWindow().getFrame())||
this.getWindow().focus())},on:function(b,a){var c=Array.prototype.slice.call(arguments,0);CKEDITOR.env.ie&&/^focus|blur$/.exec(b)&&(b="focus"==b?"focusin":"focusout",a=h(a,this),c[0]=b,c[1]=a);return CKEDITOR.dom.element.prototype.on.apply(this,c)},attachListener:function(b){!this._.listeners&&(this._.listeners=[]);var a=Array.prototype.slice.call(arguments,1),a=b.on.apply(b,a);this._.listeners.push(a);return a},clearListeners:function(){var b=this._.listeners;try{for(;b.length;)b.pop().removeListener()}catch(a){}},
restoreAttrs:function(){var b=this._.attrChanges,a,c;for(c in b)b.hasOwnProperty(c)&&(a=b[c],null!==a?this.setAttribute(c,a):this.removeAttribute(c))},attachClass:function(b){var a=this.getCustomData("classes");this.hasClass(b)||(!a&&(a=[]),a.push(b),this.setCustomData("classes",a),this.addClass(b))},changeAttr:function(b,a){var c=this.getAttribute(b);a!==c&&(!this._.attrChanges&&(this._.attrChanges={}),b in this._.attrChanges||(this._.attrChanges[b]=c),this.setAttribute(b,a))},insertText:function(b){this.editor.focus();
this.insertHtml(this.transformPlainTextToHtml(b),"text")},transformPlainTextToHtml:function(b){var a=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(b,a)},insertHtml:function(b,a,c){var d=this.editor;d.focus();d.fire("saveSnapshot");c||(c=d.getSelection().getRanges()[0]);u(this,a||"html",b,c);c.select();e(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(b,a,c){u(this,
c||"html",b,a);this.editor.fire("afterInsertHtml",{intoRange:a})},insertElement:function(b,a){var c=this.editor;c.focus();c.fire("saveSnapshot");var d=c.activeEnterMode,c=c.getSelection(),h=b.getName(),h=CKEDITOR.dtd.$block[h];a||(a=c.getRanges()[0]);this.insertElementIntoRange(b,a)&&(a.moveToPosition(b,CKEDITOR.POSITION_AFTER_END),h&&((h=b.getNext(function(b){return f(b)&&!r(b)}))&&h.type==CKEDITOR.NODE_ELEMENT&&h.is(CKEDITOR.dtd.$block)?h.getDtd()["#"]?a.moveToElementEditStart(h):a.moveToElementEditEnd(b):
!h&&d!=CKEDITOR.ENTER_BR&&(h=a.fixBlock(!0,d==CKEDITOR.ENTER_DIV?"div":"p"),a.moveToElementEditStart(h))));c.selectRanges([a]);e(this)},insertElementIntoSelection:function(b){this.insertElement(b)},insertElementIntoRange:function(b,a){var c=this.editor,e=c.config.enterMode,d=b.getName(),f=CKEDITOR.dtd.$block[d];if(a.checkReadOnly())return!1;a.deleteContents(1);a.startContainer.type==CKEDITOR.NODE_ELEMENT&&(a.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?s(a):a.startContainer.is(CKEDITOR.dtd.$list)&&
t(a));var h,g;if(f)for(;(h=a.getCommonAncestor(0,1))&&(g=CKEDITOR.dtd[h.getName()])&&(!g||!g[d]);)if(h.getName()in CKEDITOR.dtd.span){var f=a.splitElement(h),k=a.createBookmark();l(h);l(f);a.moveToBookmark(k)}else a.checkStartOfBlock()&&a.checkEndOfBlock()?(a.setStartBefore(h),a.collapse(!0),h.remove()):a.splitBlock(e==CKEDITOR.ENTER_DIV?"div":"p",c.editable());a.insertNode(b);return!0},setData:function(b,a){a||(b=this.editor.dataProcessor.toHtml(b));this.setHtml(b);this.fixInitialSelection();"unloaded"==
this.status&&(this.status="ready");this.editor.fire("dataReady")},getData:function(b){var a=this.getHtml();b||(a=this.editor.dataProcessor.toDataFormat(a));return a},setReadOnly:function(b){this.setAttribute("contenteditable",!b)},detach:function(){this.removeClass("cke_editable");this.status="detached";var b=this.editor;this._.detach();delete b.document;delete b.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function b(){var a=c.getDocument().$,
e=a.getSelection(),d;a:if(e.anchorNode&&e.anchorNode==c.$)d=!0;else{if(CKEDITOR.env.webkit&&(d=c.getDocument().getActive())&&d.equals(c)&&!e.anchorNode){d=!0;break a}d=void 0}d&&(d=new CKEDITOR.dom.range(c),d.moveToElementEditStart(c),a=a.createRange(),a.setStart(d.startContainer.$,d.startOffset),a.collapse(!0),e.removeAllRanges(),e.addRange(a))}function a(){var b=c.getDocument().$,e=b.selection,d=c.getDocument().getActive();"None"==e.type&&d.equals(c)&&(e=new CKEDITOR.dom.range(c),b=b.body.createTextRange(),
e.moveToElementEditStart(c),e=e.startContainer,e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),b.moveToElementText(e.$),b.collapse(!0),b.select())}var c=this;if(CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks))this.hasFocus&&(this.focus(),a());else if(this.hasFocus)this.focus(),b();else this.once("focus",function(){b()},null,null,-999)},getHtmlFromRange:function(b){if(b.collapsed)return new CKEDITOR.dom.documentFragment(b.document);b={doc:this.getDocument(),range:b.clone()};w.eol.detect(b,
this);w.bogus.exclude(b);w.cell.shrink(b);b.fragment=b.range.cloneContents();w.tree.rebuild(b,this);w.eol.fix(b,this);return new CKEDITOR.dom.documentFragment(b.fragment.$)},extractHtmlFromRange:function(b,a){var c=x,e={range:b,doc:b.document},d=this.getHtmlFromRange(b);if(b.collapsed)return b.optimize(),d;b.enlarge(CKEDITOR.ENLARGE_INLINE,1);c.table.detectPurge(e);e.bookmark=b.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),b.moveToBookmark(e.bookmark),e.range=b):(b.moveToBookmark(e.bookmark),e.range=b,b.extractContents(c.detectExtractMerge(e)));b.moveToBookmark(e.targetBookmark);b.optimize();c.fixUneditableRangePosition(b);c.list.merge(e,this);c.table.purge(e,this);c.block.merge(e,this);if(a){c=b.startPath();if(e=b.checkStartOfBlock())if(e=b.checkEndOfBlock())if(e=
c.block)if(e=!b.root.equals(c.block)){a:{var e=c.block.getElementsByTag("span"),f=0,h;if(e)for(;h=e.getItem(f++);)if(!p(h)){e=!0;break a}e=!1}e=!e}e&&(b.moveToPosition(c.block,CKEDITOR.POSITION_BEFORE_START),c.block.remove())}else c.autoParagraph(this.editor,b),v(b.startContainer)&&b.startContainer.appendBogus();b.startContainer.mergeSiblings();return d},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var b=this.getData();this.is("textarea")||!1!==a.config.ignoreEmptyParagraph&&
(b=b.replace(q,function(b,a){return a}));a.setData(b,null,1)},this);this.attachListener(a,"getSnapshot",function(b){b.data=this.getData(1)},this);this.attachListener(a,"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(b){this.setData(b.data,1)},this);this.attachListener(a,"beforeFocus",function(){var b=a.getSelection();(b=b&&b.getNative())&&"Control"==b.type||this.focus()},this);this.attachListener(a,"insertHtml",function(b){this.insertHtml(b.data.dataValue,
b.data.mode,b.data.range)},this);this.attachListener(a,"insertElement",function(b){this.insertElement(b.data)},this);this.attachListener(a,"insertText",function(b){this.insertText(b.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable");a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):(a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||a.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO)&&this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+
a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=+a.readOnly;a.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(){a._.previousScrollTop=a.editable().$.scrollTop},null,null,-1);if(CKEDITOR.env.edge&&14<CKEDITOR.env.version){var c=function(){var b=a.editable();null!=a._.previousScrollTop&&b.getDocument().equals(CKEDITOR.document)&&
(b.$.scrollTop=a._.previousScrollTop,a._.previousScrollTop=null,this.removeListener("scroll",c))};this.on("scroll",c)}a.focusManager.add(this);this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,a.once("contentDom",function(){a.focusManager.focus(this)},this));this.isInline()&&this.changeAttr("tabindex",a.tabIndex);if(!this.is("textarea")){a.document=this.getDocument();a.window=this.getWindow();var e=a.document;this.changeAttr("spellcheck",!a.config.disableNativeSpellChecker);var h=a.config.contentsLangDirection;
this.getDirection(1)!=h&&this.changeAttr("dir",h);var g=CKEDITOR.getCss();if(g){var h=e.getHead(),k=h.getCustomData("stylesheet");k?g!=k.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?k.$.styleSheet.cssText=g:k.setText(g)):(g=e.appendStyleText(g),g=new CKEDITOR.dom.element(g.ownerNode||g.owningElement),h.setCustomData("stylesheet",g),g.data("cke-temp",1))}h=e.getCustomData("stylesheet_ref")||0;e.setCustomData("stylesheet_ref",h+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);
this.attachListener(this,"click",function(b){b=b.data;var a=(new CKEDITOR.dom.elementPath(b.getTarget(),this)).contains("a");a&&(2!=b.$.button&&a.isReadOnly())&&b.preventDefault()});var l={8:1,46:1};this.attachListener(a,"key",function(b){if(a.readOnly)return!0;var c=b.data.domEvent.getKey(),e;b=a.getSelection();if(0!==b.getRanges().length){if(c in l){var d,f=b.getRanges()[0],h=f.startPath(),g,k,p,c=8==c;if(CKEDITOR.env.ie&&11>CKEDITOR.env.version&&(d=b.getSelectedElement())||(d=m(b)))a.fire("saveSnapshot"),
f.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START),d.remove(),f.select(),a.fire("saveSnapshot"),e=1;else if(f.collapsed)if((g=h.block)&&(p=g[c?"getPrevious":"getNext"](n))&&p.type==CKEDITOR.NODE_ELEMENT&&p.is("table")&&f[c?"checkStartOfBlock":"checkEndOfBlock"]())a.fire("saveSnapshot"),f[c?"checkEndOfBlock":"checkStartOfBlock"]()&&g.remove(),f["moveToElementEdit"+(c?"End":"Start")](p),f.select(),a.fire("saveSnapshot"),e=1;else if(h.blockLimit&&h.blockLimit.is("td")&&(k=h.blockLimit.getAscendant("table"))&&
f.checkBoundaryOfElement(k,c?CKEDITOR.START:CKEDITOR.END)&&(p=k[c?"getPrevious":"getNext"](n)))a.fire("saveSnapshot"),f["moveToElementEdit"+(c?"End":"Start")](p),f.checkStartOfBlock()&&f.checkEndOfBlock()?p.remove():f.select(),a.fire("saveSnapshot"),e=1;else if((k=h.contains(["td","th","caption"]))&&f.checkBoundaryOfElement(k,c?CKEDITOR.START:CKEDITOR.END))e=1}return!e}});a.blockless&&(CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&this.attachListener(this,"keyup",function(b){b.data.getKeystroke()in
l&&!this.getFirst(f)&&(this.appendBogus(),b=a.createRange(),b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),b.select())});this.attachListener(this,"dblclick",function(b){if(a.readOnly)return!1;b={element:b.data.getTarget()};a.fire("doubleclick",b)});CKEDITOR.env.ie&&this.attachListener(this,"click",d);(!CKEDITOR.env.ie||CKEDITOR.env.edge)&&this.attachListener(this,"mousedown",function(b){var c=b.data.getTarget();c.is("img","hr","input","textarea","select")&&!c.isReadOnly()&&(a.getSelection().selectElement(c),
c.is("input","textarea","select")&&b.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(b){(b=b.data.getTarget())&&(b.is("img")&&!b.isReadOnly())&&a.getSelection().selectElement(b)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(2==b.data.$.button&&(b=b.data.getTarget(),!b.getAscendant("table")&&!b.getOuterHtml().replace(q,""))){var c=a.createRange();c.moveToElementEditStart(b);c.select(!0)}});CKEDITOR.env.webkit&&(this.attachListener(this,
"click",function(b){b.data.getTarget().is("input","select")&&b.data.preventDefault()}),this.attachListener(this,"mouseup",function(b){b.data.getTarget().is("input","textarea")&&b.data.preventDefault()}));CKEDITOR.env.webkit&&this.attachListener(a,"key",function(c){if(a.readOnly)return!0;var e=c.data.domEvent.getKey();if(e in l&&(c=a.getSelection(),0!==c.getRanges().length)){var e=8==e,d=c.getRanges()[0];c=d.startPath();if(d.collapsed)a:{var f=c.block;if(!f||!d[e?"checkStartOfBlock":"checkEndOfBlock"]()||
!d.moveToClosestEditablePosition(f,!e)||!d.collapsed)c=!1;else{if(d.startContainer.type==CKEDITOR.NODE_ELEMENT){var h=d.startContainer.getChild(d.startOffset-(e?1:0));if(h&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("hr")){a.fire("saveSnapshot");h.remove();c=!0;break a}}if((d=d.startPath().block)&&(!d||!d.contains(f))){a.fire("saveSnapshot");var g;(g=(e?d:f).getBogus())&&g.remove();g=a.getSelection();h=g.createBookmarks();(e?f:d).moveChildren(e?d:f,!1);c.lastElement.mergeSiblings();b(f,d,!e);g.selectBookmarks(h);
c=!0}else c=void 0}}else e=d,g=c.block,d=e.endPath().block,!g||!d||g.equals(d)?c=!1:(a.fire("saveSnapshot"),(f=g.getBogus())&&f.remove(),e.enlarge(CKEDITOR.ENLARGE_INLINE),e.deleteContents(),d.getParent()&&(d.moveChildren(g,!1),c.lastElement.mergeSiblings(),b(g,d,!0)),e=a.getSelection().getRanges()[0],e.collapse(1),e.optimize(),""===e.startContainer.getHtml()&&e.startContainer.appendBogus(),e.select(),c=!0);if(!c)return;a.getSelection().scrollIntoView();a.fire("saveSnapshot");return!1}},this,null,
100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var b;if(b=this.removeCustomData("classes"))for(;b.length;)this.removeClass(b.pop());if(!this.is("textarea")){b=this.getDocument();var a=b.getHead();if(a.getCustomData("stylesheet")){var c=b.getCustomData("stylesheet_ref");--c?b.setCustomData("stylesheet_ref",c):(b.removeCustomData("stylesheet_ref"),a.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload");delete this.editor}}});
CKEDITOR.editor.prototype.editable=function(b){var a=this._.editable;if(a&&b)return 0;arguments.length&&(a=this._.editable=b?b instanceof CKEDITOR.editable?b:new CKEDITOR.editable(this,b):(a&&a.detach(),null));return a};CKEDITOR.on("instanceLoaded",function(b){var c=b.editor;c.on("insertElement",function(b){b=b.data;if(b.type==CKEDITOR.NODE_ELEMENT&&(b.is("input")||b.is("textarea")))"false"!=b.getAttribute("contentEditable")&&b.data("cke-editable",b.hasAttribute("contenteditable")?"true":"1"),b.setAttribute("contentEditable",
!1)});c.on("selectionChange",function(b){if(!c.readOnly){var e=c.getSelection();e&&!e.isLocked&&(e=c.checkDirty(),c.fire("lockSnapshot"),a(b),c.fire("unlockSnapshot"),!e&&c.resetDirty())}})});CKEDITOR.on("instanceCreated",function(b){var a=b.editor;a.on("mode",function(){var b=a.editable();if(b&&b.isInline()){var c=a.title;b.changeAttr("role","textbox");b.changeAttr("aria-multiline","true");b.changeAttr("aria-label",c);c&&b.changeAttr("title",c);var e=a.fire("ariaEditorHelpLabel",{}).label;if(e&&
(c=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var d=CKEDITOR.tools.getNextId(),e=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+d+'" class\x3d"cke_voice_label"\x3e'+e+"\x3c/span\x3e");c.append(e);b.changeAttr("aria-describedby",d)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");n=CKEDITOR.dom.walker.whitespaces(!0);p=CKEDITOR.dom.walker.bookmark(!1,!0);v=CKEDITOR.dom.walker.empty();
r=CKEDITOR.dom.walker.bogus();q=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;u=function(){function b(a){return a.type==CKEDITOR.NODE_ELEMENT}function a(c,e){var d,f,h,g,k=[],l=e.range.startContainer;d=e.range.startPath();for(var l=n[l.getName()],m=0,p=c.getChildren(),t=p.count(),u=-1,v=-1,w=0,s=d.contains(n.$list);m<t;++m)if(d=p.getItem(m),b(d))if(h=d.getName(),s&&h in CKEDITOR.dtd.$list)k=k.concat(a(d,e));else{g=
!!l[h];if("br"==h&&d.data("cke-eol")&&(!m||m==t-1))w=(f=m?k[m-1].node:p.getItem(m+1))&&(!b(f)||!f.is("br")),f=f&&b(f)&&n.$block[f.getName()];-1==u&&!g&&(u=m);g||(v=m);k.push({isElement:1,isLineBreak:w,isBlock:d.isBlockBoundary(),hasBlockSibling:f,node:d,name:h,allowed:g});f=w=0}else k.push({isElement:0,node:d,allowed:1});-1<u&&(k[u].firstNotAllowed=1);-1<v&&(k[v].lastNotAllowed=1);return k}function e(a,c){var d=[],f=a.getChildren(),h=f.count(),g,k=0,l=n[c],m=!a.is(n.$inline)||a.is("br");for(m&&d.push(" ");k<
h;k++)g=f.getItem(k),b(g)&&!g.is(l)?d=d.concat(e(g,c)):d.push(g);m&&d.push(" ");return d}function d(a){return a&&b(a)&&(a.is(n.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function h(a,c,e,d){var f=a.clone(),g,k;f.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);if((g=(new CKEDITOR.dom.walker(f)).next())&&b(g)&&m[g.getName()]&&(k=g.getPrevious())&&b(k)&&!k.getParent().equals(a.startContainer)&&e.contains(k)&&d.contains(g)&&g.isIdentical(k))g.moveChildren(k),g.remove(),h(a,c,e,d)}function g(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 d=c.endContainer.getChild(c.endOffset),f=c.endContainer.getChild(c.endOffset-1);d&&e(d,a[a.length-1]);f&&e(f,a[0])&&(c.setEnd(c.endContainer,c.endOffset-1),c.collapse())}var n=CKEDITOR.dtd,m={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},p={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},t=CKEDITOR.tools.extend({},n.$inline);delete t.br;return function(m,G,u,v){var w=m.editor,s=!1;"unfiltered_html"==
G&&(G="html",s=!0);if(!v.checkReadOnly()){var J=(new CKEDITOR.dom.elementPath(v.startContainer,v.root)).blockLimit||v.root;G={type:G,dontFilter:s,editable:m,editor:w,range:v,blockLimit:J,mergeCandidates:[],zombies:[]};var s=G.range,J=G.mergeCandidates,x="html"===G.type,r,q,M,X,Z,R;"text"==G.type&&s.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(q=CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",s.document),s.insertNode(q),s.setStartAfter(q));M=new CKEDITOR.dom.elementPath(s.startContainer);
G.endPath=X=new CKEDITOR.dom.elementPath(s.endContainer);if(!s.collapsed){r=X.block||X.blockLimit;var aa=s.getCommonAncestor();r&&(!r.equals(aa)&&!r.contains(aa)&&s.checkEndOfBlock())&&G.zombies.push(r);s.deleteContents()}for(;(Z=b(s.startContainer)&&s.startContainer.getChild(s.startOffset-1))&&b(Z)&&Z.isBlockBoundary()&&M.contains(Z);)s.moveToPosition(Z,CKEDITOR.POSITION_BEFORE_END);h(s,G.blockLimit,M,X);q&&(s.setEndBefore(q),s.collapse(),q.remove());q=s.startPath();if(r=q.contains(d,!1,1))R=s.splitElement(r),
G.inlineStylesRoot=r,G.inlineStylesPeak=q.lastElement;q=s.createBookmark();x&&(l(r),l(R));(r=q.startNode.getPrevious(f))&&b(r)&&d(r)&&J.push(r);(r=q.startNode.getNext(f))&&b(r)&&d(r)&&J.push(r);for(r=q.startNode;(r=r.getParent())&&d(r);)J.push(r);s.moveToBookmark(q);""===w.getData()&&w.enterMode===CKEDITOR.ENTER_DIV&&((w=m.getFirst())&&w.remove(),v.setStartAt(m,CKEDITOR.POSITION_AFTER_START),v.collapse(!0));if(m=u){m=G.range;if("text"==G.type&&G.inlineStylesRoot){v=G.inlineStylesPeak;w=v.getDocument().createText("{cke-peak}");
for(R=G.inlineStylesRoot.getParent();!v.equals(R);)w=w.appendTo(v.clone()),v=v.getParent();u=w.getOuterHtml().split("{cke-peak}").join(u)}v=G.blockLimit.getName();if(/^\s+|\s+$/.test(u)&&"span"in CKEDITOR.dtd[v]){var U='\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e';u=U+u+U}u=G.editor.dataProcessor.toHtml(u,{context:null,fixForBody:!1,protectedWhitespaces:!!U,dontFilter:G.dontFilter,filter:G.editor.activeFilter,enterMode:G.editor.activeEnterMode});v=m.document.createElement("body");v.setHtml(u);
U&&(v.getFirst().remove(),v.getLast().remove());if((U=m.startPath().block)&&!(1==U.getChildCount()&&U.getBogus()))a:{var B;if(1==v.getChildCount()&&b(B=v.getFirst())&&B.is(p)&&!B.hasAttribute("contenteditable")){U=B.getElementsByTag("*");m=0;for(R=U.count();m<R;m++)if(w=U.getItem(m),!w.is(t))break a;B.moveChildren(B.getParent(1));B.remove()}}G.dataWrapper=v;m=u}if(m){B=G.range;m=B.document;v=G.blockLimit;R=0;var N,U=[],T,W;u=q=0;var ba,w=B.startContainer;Z=G.endPath.elements[0];var $,s=Z.getPosition(w),
J=!!Z.getCommonAncestor(w)&&s!=CKEDITOR.POSITION_IDENTICAL&&!(s&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),w=a(G.dataWrapper,G);for(g(w,B);R<w.length;R++){s=w[R];if(x=s.isLineBreak)x=B,r=v,X=M=void 0,s.hasBlockSibling?x=1:(M=x.startContainer.getAscendant(n.$block,1),!M||!M.is({div:1,p:1})?x=0:(X=M.getPosition(r),X==CKEDITOR.POSITION_IDENTICAL||X==CKEDITOR.POSITION_CONTAINS?x=0:(r=x.splitElement(M),x.moveToPosition(r,CKEDITOR.POSITION_AFTER_START),x=1)));if(x)u=0<R;else{x=B.startPath();
if(!s.isBlock&&k(G.editor,x.block,x.blockLimit)&&(W=c(G.editor)))W=m.createElement(W),W.appendBogus(),B.insertNode(W),CKEDITOR.env.needsBrFiller&&(N=W.getBogus())&&N.remove(),B.moveToPosition(W,CKEDITOR.POSITION_BEFORE_END);if((x=B.startPath().block)&&!x.equals(T)){if(N=x.getBogus())N.remove(),U.push(x);T=x}s.firstNotAllowed&&(q=1);if(q&&s.isElement){x=B.startContainer;for(r=null;x&&!n[x.getName()][s.name];){if(x.equals(v)){x=null;break}r=x;x=x.getParent()}if(x)r&&(ba=B.splitElement(r),G.zombies.push(ba),
G.zombies.push(r));else{r=v.getName();$=!R;x=R==w.length-1;r=e(s.node,r);M=[];X=r.length;for(var aa=0,fa=void 0,ga=0,ca=-1;aa<X;aa++)if(fa=r[aa]," "==fa){if(!ga&&(!$||aa))M.push(new CKEDITOR.dom.text(" ")),ca=M.length;ga=1}else M.push(fa),ga=0;x&&ca==M.length&&M.pop();$=M}}if($){for(;x=$.pop();)B.insertNode(x);$=0}else B.insertNode(s.node);s.lastNotAllowed&&R<w.length-1&&((ba=J?Z:ba)&&B.setEndAt(ba,CKEDITOR.POSITION_AFTER_START),q=0);B.collapse()}}1!=w.length?N=!1:(N=w[0],N=N.isElement&&"false"==
N.node.getAttribute("contenteditable"));N&&(u=!0,x=w[0].node,B.setStartAt(x,CKEDITOR.POSITION_BEFORE_START),B.setEndAt(x,CKEDITOR.POSITION_AFTER_END));G.dontMoveCaret=u;G.bogusNeededBlocks=U}N=G.range;var ea;ba=G.bogusNeededBlocks;for($=N.createBookmark();T=G.zombies.pop();)T.getParent()&&(W=N.clone(),W.moveToElementEditStart(T),W.removeEmptyBlocksAtEnd());if(ba)for(;T=ba.pop();)CKEDITOR.env.needsBrFiller?T.appendBogus():T.append(N.document.createText(" "));for(;T=G.mergeCandidates.pop();)T.mergeSiblings();
N.moveToBookmark($);if(!G.dontMoveCaret){for(T=b(N.startContainer)&&N.startContainer.getChild(N.startOffset-1);T&&b(T)&&!T.is(n.$empty);){if(T.isBlockBoundary())N.moveToPosition(T,CKEDITOR.POSITION_BEFORE_END);else{if(d(T)&&T.getHtml().match(/(\s| )$/g)){ea=null;break}ea=N.clone();ea.moveToPosition(T,CKEDITOR.POSITION_BEFORE_END)}T=T.getLast(f)}ea&&N.moveToRange(ea)}}}}();s=function(){function b(a){a=new CKEDITOR.dom.walker(a);a.guard=function(b,a){if(a)return!1;if(b.type==CKEDITOR.NODE_ELEMENT)return b.is(CKEDITOR.dtd.$tableContent)};
a.evaluator=function(b){return b.type==CKEDITOR.NODE_ELEMENT};return a}function a(b,c,e){c=b.getDocument().createElement(c);b.append(c,e);return c}function c(b){var a=b.count(),e;for(a;0<a--;)e=b.getItem(a),CKEDITOR.tools.trim(e.getHtml())||(e.appendBogus(),CKEDITOR.env.ie&&(9>CKEDITOR.env.version&&e.getChildCount())&&e.getFirst().remove())}return function(e){var d=e.startContainer,f=d.getAscendant("table",1),h=!1;c(f.getElementsByTag("td"));c(f.getElementsByTag("th"));f=e.clone();f.setStart(d,0);
f=b(f).lastBackward();f||(f=e.clone(),f.setEndAt(d,CKEDITOR.POSITION_BEFORE_END),f=b(f).lastForward(),h=!0);f||(f=d);f.is("table")?(e.setStartAt(f,CKEDITOR.POSITION_BEFORE_START),e.collapse(!0),f.remove()):(f.is({tbody:1,thead:1,tfoot:1})&&(f=a(f,"tr",h)),f.is("tr")&&(f=a(f,f.getParent().is("thead")?"th":"td",h)),(d=f.getBogus())&&d.remove(),e.moveToPosition(f,h?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}();t=function(){function b(a){a=new CKEDITOR.dom.walker(a);a.guard=function(b,
a){if(a)return!1;if(b.type==CKEDITOR.NODE_ELEMENT)return b.is(CKEDITOR.dtd.$list)||b.is(CKEDITOR.dtd.$listItem)};a.evaluator=function(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.is(CKEDITOR.dtd.$listItem)};return a}return function(a){var c=a.startContainer,e=!1,d;d=a.clone();d.setStart(c,0);d=b(d).lastBackward();d||(d=a.clone(),d.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),d=b(d).lastForward(),e=!0);d||(d=c);d.is(CKEDITOR.dtd.$list)?(a.setStartAt(d,CKEDITOR.POSITION_BEFORE_START),a.collapse(!0),d.remove()):
((c=d.getBogus())&&c.remove(),a.moveToPosition(d,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),a.select())}}();w={eol:{detect:function(b,a){var c=b.range,e=c.clone(),d=c.clone(),f=new CKEDITOR.dom.elementPath(c.startContainer,a),h=new CKEDITOR.dom.elementPath(c.endContainer,a);e.collapse(1);d.collapse();f.block&&e.checkBoundaryOfElement(f.block,CKEDITOR.END)&&(c.setStartAfter(f.block),b.prependEolBr=1);h.block&&d.checkBoundaryOfElement(h.block,CKEDITOR.START)&&(c.setEndBefore(h.block),
b.appendEolBr=1)},fix:function(b,a){var c=a.getDocument(),e;b.appendEolBr&&(e=this.createEolBr(c),b.fragment.append(e));b.prependEolBr&&(!e||e.getPrevious())&&b.fragment.append(this.createEolBr(c),1)},createEolBr:function(b){return b.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(b){var a=b.range.getBoundaryNodes(),c=a.startNode;(a=a.endNode)&&(r(a)&&(!c||!c.equals(a)))&&b.range.setEndBefore(a)}},tree:{rebuild:function(b,a){var c=b.range,e=c.getCommonAncestor(),d=new CKEDITOR.dom.elementPath(e,
a),f=new CKEDITOR.dom.elementPath(c.startContainer,a),c=new CKEDITOR.dom.elementPath(c.endContainer,a),h;e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent());if(d.blockLimit.is({tr:1,table:1})){var g=d.contains("table").getParent();h=function(b){return!b.equals(g)}}else if(d.block&&d.block.is(CKEDITOR.dtd.$listItem)&&(f=f.contains(CKEDITOR.dtd.$list),c=c.contains(CKEDITOR.dtd.$list),!f.equals(c))){var k=d.contains(CKEDITOR.dtd.$list).getParent();h=function(b){return!b.equals(k)}}h||(h=function(b){return!b.equals(d.block)&&
!b.equals(d.blockLimit)});this.rebuildFragment(b,a,e,h)},rebuildFragment:function(b,a,c,e){for(var d;c&&!c.equals(a)&&e(c);)d=c.clone(0,1),b.fragment.appendTo(d),b.fragment=d,c=c.getParent()}},cell:{shrink:function(b){b=b.range;var a=b.startContainer,c=b.endContainer,e=b.startOffset,d=b.endOffset;a.type==CKEDITOR.NODE_ELEMENT&&(a.equals(c)&&a.is("tr")&&++e==d)&&b.shrink(CKEDITOR.SHRINK_TEXT)}}};x=function(){function b(a,c){var e=a.getParent();if(e.is(CKEDITOR.dtd.$inline))a[c?"insertBefore":"insertAfter"](e)}
function a(c,e,d){b(e);b(d,1);for(var f;f=d.getNext();)f.insertAfter(e),e=f;v(c)&&c.remove()}function e(b,a){var c=new CKEDITOR.dom.range(b);c.setStartAfter(a.startNode);c.setEndBefore(a.endNode);return c}return{list:{detectMerge:function(b,a){var c=e(a,b.bookmark),d=c.startPath(),f=c.endPath(),h=d.contains(CKEDITOR.dtd.$list),g=f.contains(CKEDITOR.dtd.$list);b.mergeList=h&&g&&h.getParent().equals(g.getParent())&&!h.equals(g);b.mergeListItems=d.block&&f.block&&d.block.is(CKEDITOR.dtd.$listItem)&&
f.block.is(CKEDITOR.dtd.$listItem);if(b.mergeList||b.mergeListItems)c=c.clone(),c.setStartBefore(b.bookmark.startNode),c.setEndAfter(b.bookmark.endNode),b.mergeListBookmark=c.createBookmark()},merge:function(b,c){if(b.mergeListBookmark){var e=b.mergeListBookmark.startNode,d=b.mergeListBookmark.endNode,f=new CKEDITOR.dom.elementPath(e,c),h=new CKEDITOR.dom.elementPath(d,c);if(b.mergeList){var g=f.contains(CKEDITOR.dtd.$list),k=h.contains(CKEDITOR.dtd.$list);g.equals(k)||(k.moveChildren(g),k.remove())}b.mergeListItems&&
(f=f.contains(CKEDITOR.dtd.$listItem),h=h.contains(CKEDITOR.dtd.$listItem),f.equals(h)||a(h,e,d));e.remove();d.remove()}}},block:{detectMerge:function(b,a){if(!b.tableContentsRanges&&!b.mergeListBookmark){var c=new CKEDITOR.dom.range(a);c.setStartBefore(b.bookmark.startNode);c.setEndAfter(b.bookmark.endNode);b.mergeBlockBookmark=c.createBookmark()}},merge:function(b,c){if(b.mergeBlockBookmark&&!b.purgeTableBookmark){var e=b.mergeBlockBookmark.startNode,d=b.mergeBlockBookmark.endNode,f=new CKEDITOR.dom.elementPath(e,
c),h=new CKEDITOR.dom.elementPath(d,c),f=f.block,h=h.block;f&&(h&&!f.equals(h))&&a(h,e,d);e.remove();d.remove()}}},table:function(){function b(e){var d=[],f,h=new CKEDITOR.dom.walker(e),g=e.startPath().contains(c),k=e.endPath().contains(c),l={};h.guard=function(b,h){if(b.type==CKEDITOR.NODE_ELEMENT){var m="visited_"+(h?"out":"in");if(b.getCustomData(m))return;CKEDITOR.dom.element.setMarker(l,b,m,1)}if(h&&g&&b.equals(g))f=e.clone(),f.setEndAt(g,CKEDITOR.POSITION_BEFORE_END),d.push(f);else if(!h&&k&&
b.equals(k))f=e.clone(),f.setStartAt(k,CKEDITOR.POSITION_AFTER_START),d.push(f);else{if(!(m=!h&&b.type==CKEDITOR.NODE_ELEMENT&&b.is(c)&&(!g||a(b,g))&&(!k||a(b,k))))if(m=h)if(b.is(c))var m=g&&g.getAscendant("table",!0),n=k&&k.getAscendant("table",!0),p=b.getAscendant("table",!0),m=m&&m.contains(p)||n&&n.contains(p);else m=void 0;m&&(f=e.clone(),f.selectNodeContents(b),d.push(f))}};h.lastForward();CKEDITOR.dom.element.clearAllMarkers(l);return d}function a(b,c){var e=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,
d=b.getPosition(c);return d===CKEDITOR.POSITION_IDENTICAL?!1:0===(d&e)}var c={td:1,th:1,caption:1};return{detectPurge:function(b){var a=b.range,e=a.clone();e.enlarge(CKEDITOR.ENLARGE_ELEMENT);var e=new CKEDITOR.dom.walker(e),d=0;e.evaluator=function(b){b.type==CKEDITOR.NODE_ELEMENT&&b.is(c)&&++d};e.checkForward();if(1<d){var e=a.startPath().contains("table"),f=a.endPath().contains("table");e&&(f&&a.checkBoundaryOfElement(e,CKEDITOR.START)&&a.checkBoundaryOfElement(f,CKEDITOR.END))&&(a=b.range.clone(),
a.setStartBefore(e),a.setEndAfter(f),b.purgeTableBookmark=a.createBookmark())}},detectRanges:function(d,f){var h=e(f,d.bookmark),g=h.clone(),k,l,m=h.getCommonAncestor();m.is(CKEDITOR.dtd.$tableContent)&&!m.is(c)&&(m=m.getAscendant("table",!0));l=m;m=new CKEDITOR.dom.elementPath(h.startContainer,l);l=new CKEDITOR.dom.elementPath(h.endContainer,l);m=m.contains("table");l=l.contains("table");if(m||l)m&&l&&a(m,l)?(d.tableSurroundingRange=g,g.setStartAt(m,CKEDITOR.POSITION_AFTER_END),g.setEndAt(l,CKEDITOR.POSITION_BEFORE_START),
g=h.clone(),g.setEndAt(m,CKEDITOR.POSITION_AFTER_END),k=h.clone(),k.setStartAt(l,CKEDITOR.POSITION_BEFORE_START),k=b(g).concat(b(k))):m?l||(d.tableSurroundingRange=g,g.setStartAt(m,CKEDITOR.POSITION_AFTER_END),h.setEndAt(m,CKEDITOR.POSITION_AFTER_END)):(d.tableSurroundingRange=g,g.setEndAt(l,CKEDITOR.POSITION_BEFORE_START),h.setStartAt(l,CKEDITOR.POSITION_AFTER_START)),d.tableContentsRanges=k?k:b(h)},deleteRanges:function(b){for(var a;a=b.tableContentsRanges.pop();)a.extractContents(),v(a.startContainer)&&
a.startContainer.appendBogus();b.tableSurroundingRange&&b.tableSurroundingRange.extractContents()},purge:function(b){if(b.purgeTableBookmark){var a=b.doc,c=b.range.clone(),a=a.createElement("p");a.insertBefore(b.purgeTableBookmark.startNode);c.moveToBookmark(b.purgeTableBookmark);c.deleteContents();b.range.moveToPosition(a,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(b){return!(b.range.startPath().contains(CKEDITOR.dtd.$listItem)&&b.range.endPath().contains(CKEDITOR.dtd.$listItem))},
fixUneditableRangePosition:function(b){b.startContainer.getDtd()["#"]||b.moveToClosestEditablePosition(null,!0)},autoParagraph:function(b,a){var e=a.startPath(),d;if(k(b,e.block,e.blockLimit)&&(d=c(b)))d=a.document.createElement(d),d.appendBogus(),a.insertNode(d),a.moveToPosition(d,CKEDITOR.POSITION_AFTER_START)}}}()}(),function(){function a(b){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(b)}function g(b,c){if(0===b.length||a(b[0].getEnclosedNode()))return!1;var e,d;if(e=!c)if(e=
1===b.length)if(!(e=b[0].collapsed)){var f=b[0];e=f.startContainer.getAscendant({td:1,th:1},!0);var h=f.endContainer.getAscendant({td:1,th:1},!0);d=CKEDITOR.tools.trim;!e||!e.equals(h)||e.findOne("td, th, tr, tbody, table")?e=!1:(f=f.cloneContents(),e=f.getFirst()?d(f.getFirst().getText())!==d(e.getText()):!0)}if(e)return!1;for(d=0;d<b.length;d++)if(e=b[d]._getTableElement(),!e)return!1;return!0}function d(b){function a(b){b=b.find("td, th");var c=[],e;for(e=0;e<b.count();e++)c.push(b.getItem(e));
return c}var c=[],e,d;for(d=0;d<b.length;d++)e=b[d]._getTableElement(),e.is&&e.is({td:1,th:1})?c.push(e):c=c.concat(a(e));return c}function f(b){b=d(b);var a="",c=[],e,f;for(f=0;f<b.length;f++)e&&!e.equals(b[f].getAscendant("tr"))?(a+=c.join("\t")+"\n",e=b[f].getAscendant("tr"),c=[]):0===f&&(e=b[f].getAscendant("tr")),c.push(b[f].getText());return a+=c.join("\t")}function h(b){var a=this.root.editor,c=a.getSelection(1);this.reset();x=!0;c.root.once("selectionchange",function(b){b.cancel()},null,null,
0);c.selectRanges([b[0]]);c=this._.cache;c.ranges=new CKEDITOR.dom.rangeList(b);c.type=CKEDITOR.SELECTION_TEXT;c.selectedElement=b[0]._getTableElement();c.selectedText=f(b);c.nativeSel=null;this.isFake=1;this.rev=s++;a._.fakeSelection=this;x=!1;this.root.fire("selectionchange")}function m(){var b=this._.fakeSelection,c;if(b){c=this.getSelection(1);var e;if(!(e=!c))if(e=!c.isHidden()){e=b;var d=c.getRanges(),f=e.getRanges(),h=d.length&&d[0]._getTableElement()&&d[0]._getTableElement().getAscendant("table",
!0),k=f.length&&f[0]._getTableElement()&&f[0]._getTableElement().getAscendant("table",!0),l=1===d.length&&d[0]._getTableElement()&&d[0]._getTableElement().is("table"),m=1===f.length&&f[0]._getTableElement()&&f[0]._getTableElement().is("table");if(a(e.getSelectedElement()))e=!1;else{var n=1===d.length&&d[0].collapsed,f=g(d,!!CKEDITOR.env.webkit)&&g(f);h=!h||!k?!1:h.equals(k)||k.contains(h);h&&(n||f)?(l&&!m&&e.selectRanges(d),e=!0):e=!1}e=!e}e&&(b.reset(),b=0)}if(!b&&(b=c||this.getSelection(1),!b||
b.getType()==CKEDITOR.SELECTION_NONE))return;this.fire("selectionCheck",b);c=this.elementPath();if(!c.compare(this._.selectionPreviousPath)){e=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(c.blockLimit);if((CKEDITOR.env.webkit||CKEDITOR.env.gecko)&&!e)this._.previousActive=this.document.getActive();this._.selectionPreviousPath=c;this.fire("selectionChange",{selection:b,path:c})}}function k(){A=!0;y||(c.call(this),y=CKEDITOR.tools.setTimeout(c,200,this))}function c(){y=
null;A&&(CKEDITOR.tools.setTimeout(m,0,this),A=!1)}function l(b){return z(b)||b.type==CKEDITOR.NODE_ELEMENT&&!b.is(CKEDITOR.dtd.$empty)?!0:!1}function e(b){function a(c,e){return!c||c.type==CKEDITOR.NODE_TEXT?!1:b.clone()["moveToElementEdit"+(e?"End":"Start")](c)}if(!(b.root instanceof CKEDITOR.editable))return!1;var c=b.startContainer,e=b.getPreviousNode(l,null,c),d=b.getNextNode(l,null,c);return a(e)||a(d,1)||!e&&!d&&!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()&&c.getBogus())?!0:!1}function b(b){n(b,
!1);var a=b.getDocument().createText(t);b.setCustomData("cke-fillingChar",a);return a}function n(b,a){var c=b&&b.removeCustomData("cke-fillingChar");if(c){if(!1!==a){var e=b.getDocument().getSelection().getNative(),d=e&&"None"!=e.type&&e.getRangeAt(0),f=t.length;if(c.getLength()>f&&d&&d.intersectsNode(c.$)){var h=[{node:e.anchorNode,offset:e.anchorOffset},{node:e.focusNode,offset:e.focusOffset}];e.anchorNode==c.$&&e.anchorOffset>f&&(h[0].offset-=f);e.focusNode==c.$&&e.focusOffset>f&&(h[1].offset-=
f)}}c.setText(p(c.getText(),1));h&&(c=b.getDocument().$,e=c.getSelection(),c=c.createRange(),c.setStart(h[0].node,h[0].offset),c.collapse(!0),e.removeAllRanges(),e.addRange(c),e.extend(h[1].node,h[1].offset))}}function p(b,a){return a?b.replace(w,function(b,a){return a?" ":""}):b.replace(t,"")}function v(b,a){var c=a&&CKEDITOR.tools.htmlEncode(a)||"\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",b.document);b.fire("lockSnapshot");b.editable().append(c);var e=b.getSelection(1),d=b.createRange(),f=e.root.on("selectionchange",function(b){b.cancel()},null,null,0);d.setStartAt(c,CKEDITOR.POSITION_AFTER_START);d.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);e.selectRanges([d]);f.removeListener();b.fire("unlockSnapshot");b._.hiddenSelectionContainer=c}function r(b){var a={37:1,39:1,8:1,46:1};
return function(c){var e=c.data.getKeystroke();if(a[e]){var d=b.getSelection().getRanges(),f=d[0];if(1==d.length&&f.collapsed&&(e=f[38>e?"getPreviousEditableNode":"getNextEditableNode"]())&&e.type==CKEDITOR.NODE_ELEMENT&&"false"==e.getAttribute("contenteditable"))b.getSelection().fake(e),c.data.preventDefault(),c.cancel()}}}function q(b){for(var a=0;a<b.length;a++){var c=b[a];c.getCommonAncestor().isReadOnly()&&b.splice(a,1);if(!c.collapsed){if(c.startContainer.isReadOnly())for(var e=c.startContainer,
d;e&&(!(d=e.type==CKEDITOR.NODE_ELEMENT)||!e.is("body"))&&e.isReadOnly();)d&&"false"==e.getAttribute("contentEditable")&&c.setStartAfter(e),e=e.getParent();e=c.startContainer;d=c.endContainer;var f=c.startOffset,h=c.endOffset,g=c.clone();e&&e.type==CKEDITOR.NODE_TEXT&&(f>=e.getLength()?g.setStartAfter(e):g.setStartBefore(e));d&&d.type==CKEDITOR.NODE_TEXT&&(h?g.setEndAfter(d):g.setEndBefore(d));e=new CKEDITOR.dom.walker(g);e.evaluator=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&e.isReadOnly()){var d=
c.clone();c.setEndBefore(e);c.collapsed&&b.splice(a--,1);e.getPosition(g.endContainer)&CKEDITOR.POSITION_CONTAINS||(d.setStartAfter(e),d.collapsed||b.splice(a+1,0,d));return!0}return!1};e.next()}}return b}var u="function"!=typeof window.getSelection,s=1,t=CKEDITOR.tools.repeat("",7),w=RegExp(t+"( )?","g"),x,y,A,z=CKEDITOR.dom.walker.invisible(1),D=function(){function b(a){return function(b){var c=b.editor.createRange();c.moveToClosestEditablePosition(b.selected,a)&&b.editor.getSelection().selectRanges([c]);
return!1}}function a(b){return function(a){var c=a.editor,e=c.createRange(),d;if(!c.readOnly){if(!(d=e.moveToClosestEditablePosition(a.selected,b)))d=e.moveToClosestEditablePosition(a.selected,!b);d&&c.getSelection().selectRanges([e]);c.fire("saveSnapshot");a.selected.remove();d||(e.moveToElementEditablePosition(c.editable()),c.getSelection().selectRanges([e]));c.fire("saveSnapshot");return!1}}}var c=b(),e=b(1);return{37:c,38:c,39:e,40:e,8:a(),46:a(1)}}();CKEDITOR.on("instanceCreated",function(b){function a(){var b=
c.getSelection();b&&b.removeAllRanges()}var c=b.editor;c.on("contentDom",function(){function b(){v=new CKEDITOR.dom.selection(c.getSelection());v.lock()}function a(){f.removeListener("mouseup",a);l.removeListener("mouseup",a);var b=CKEDITOR.document.$.selection,c=b.createRange();"None"!=b.type&&(c.parentElement()&&c.parentElement().ownerDocument==d.$)&&c.select()}function e(b){b=b.getRanges()[0];return!b?null:(b=b.startContainer.getAscendant(function(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable")},
!0))&&"false"===b.getAttribute("contenteditable")?b:null}var d=c.document,f=CKEDITOR.document,h=c.editable(),g=d.getBody(),l=d.getDocumentElement(),p=h.isInline(),t,v;CKEDITOR.env.gecko&&h.attachListener(h,"focus",function(b){b.removeListener();if(0!==t&&(b=c.getSelection().getNative())&&b.isCollapsed&&b.anchorNode==h.$)b=c.createRange(),b.moveToElementEditStart(h),b.select()},null,null,-2);h.attachListener(h,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){if(t&&(CKEDITOR.env.webkit||
CKEDITOR.env.gecko)){t=c._.previousActive&&c._.previousActive.equals(d.getActive());var b=null!=c._.previousScrollTop&&c._.previousScrollTop!=h.$.scrollTop;CKEDITOR.env.webkit&&(t&&b)&&(h.$.scrollTop=c._.previousScrollTop)}c.unlockSelection(t);t=0},null,null,-1);h.attachListener(h,"mousedown",function(){t=0});if(CKEDITOR.env.ie||p)u?h.attachListener(h,"beforedeactivate",b,null,null,-1):h.attachListener(c,"selectionCheck",b,null,null,-1),h.attachListener(h,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusout":
"blur",function(){c.lockSelection(v);t=1},null,null,-1),h.attachListener(h,"mousedown",function(){t=0});if(CKEDITOR.env.ie&&!p){var w;h.attachListener(h,"mousedown",function(b){if(2==b.data.$.button&&(b=c.document.getSelection(),!b||b.getType()==CKEDITOR.SELECTION_NONE))w=c.window.getScrollPosition()});h.attachListener(h,"mouseup",function(b){2==b.data.$.button&&w&&(c.document.$.documentElement.scrollLeft=w.x,c.document.$.documentElement.scrollTop=w.y);w=null});if("BackCompat"!=d.$.compatMode){if(CKEDITOR.env.ie7Compat||
CKEDITOR.env.ie6Compat){var s,x;l.on("mousedown",function(b){function a(b){b=b.data.$;if(s){var c=g.$.createTextRange();try{c.moveToPoint(b.clientX,b.clientY)}catch(e){}s.setEndPoint(0>x.compareEndPoints("StartToStart",c)?"EndToEnd":"StartToStart",c);s.select()}}function c(){l.removeListener("mousemove",a);f.removeListener("mouseup",c);l.removeListener("mouseup",c);s.select()}b=b.data;if(b.getTarget().is("html")&&b.$.y<l.$.clientHeight&&b.$.x<l.$.clientWidth){s=g.$.createTextRange();try{s.moveToPoint(b.$.clientX,
b.$.clientY)}catch(e){}x=s.duplicate();l.on("mousemove",a);f.on("mouseup",c);l.on("mouseup",c)}})}if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version)l.on("mousedown",function(b){b.data.getTarget().is("html")&&(f.on("mouseup",a),l.on("mouseup",a))})}}h.attachListener(h,"selectionchange",m,c);h.attachListener(h,"keyup",k,c);h.attachListener(h,"touchstart",k,c);h.attachListener(h,"touchend",k,c);CKEDITOR.env.ie&&h.attachListener(h,"keydown",function(b){var a=this.getSelection(1),c=e(a);c&&!c.equals(h)&&
(a.selectElement(c),b.data.preventDefault())},c);h.attachListener(h,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){c.forceNextSelectionCheck();c.selectionChange(1)});if(p&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var H;h.attachListener(h,"mousedown",function(){H=1});h.attachListener(d.getDocumentElement(),"mouseup",function(){H&&k.call(c);H=0})}else h.attachListener(CKEDITOR.env.ie?h:d.getDocumentElement(),"mouseup",k,c);CKEDITOR.env.webkit&&h.attachListener(d,"keydown",function(b){switch(b.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:h.hasFocus&&
n(h)}},null,null,-1);h.attachListener(h,"keydown",r(c),null,null,-1)});c.on("setData",function(){c.unlockSelection();CKEDITOR.env.webkit&&a()});c.on("contentDomUnload",function(){c.unlockSelection()});if(CKEDITOR.env.ie9Compat)c.on("beforeDestroy",a,null,null,9);c.on("dataReady",function(){delete c._.fakeSelection;delete c._.hiddenSelectionContainer;c.selectionChange(1)});c.on("loadSnapshot",function(){var b=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),a=c.editable().getLast(b);a&&a.hasAttribute("data-cke-hidden-sel")&&
(a.remove(),CKEDITOR.env.gecko&&(b=c.editable().getFirst(b))&&(b.is("br")&&b.getAttribute("_moz_editor_bogus_node"))&&b.remove())},null,null,100);c.on("key",function(b){if("wysiwyg"==c.mode){var a=c.getSelection();if(a.isFake){var e=D[b.data.keyCode];if(e)return e({editor:c,selected:a.getSelectedElement(),selection:a,keyEvent:b})}}})});if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(b){var a=b.editor;a.on("selectionChange",function(){var b=a.editable(),c=b.getCustomData("cke-fillingChar");
c&&(c.getCustomData("ready")?(n(b),b.editor.fire("selectionCheck")):c.setCustomData("ready",1))},null,null,-1);a.on("beforeSetMode",function(){n(a.editable())},null,null,-1);a.on("getSnapshot",function(b){b.data&&(b.data=p(b.data))},a,null,20);a.on("toDataFormat",function(b){b.data.dataValue=p(b.data.dataValue)},null,null,0)});CKEDITOR.editor.prototype.selectionChange=function(b){(b?m:k).call(this)};CKEDITOR.editor.prototype.getSelection=function(b){return(this._.savedSelection||this._.fakeSelection)&&
!b?this._.savedSelection||this._.fakeSelection:(b=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(b):null};CKEDITOR.editor.prototype.lockSelection=function(b){b=b||this.getSelection(1);return b.getType()!=CKEDITOR.SELECTION_NONE?(!b.isLocked&&b.lock(),this._.savedSelection=b,!0):!1};CKEDITOR.editor.prototype.unlockSelection=function(b){var a=this._.savedSelection;return a?(a.unlock(b),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 b=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);b.selectRanges([this]);return b};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;CKEDITOR.dom.selection=function(b){if(b instanceof CKEDITOR.dom.selection){var a=b;b=b.root}var c=b instanceof CKEDITOR.dom.element;
this.rev=a?a.rev:s++;this.document=b instanceof CKEDITOR.dom.document?b:b.getDocument();this.root=c?b:this.document.getBody();this.isLocked=0;this._={cache:{}};if(a)return CKEDITOR.tools.extend(this._.cache,a._.cache),this.isFake=a.isFake,this.isLocked=a.isLocked,this;b=this.getNative();var e,d;if(b)if(b.getRangeAt)e=(d=b.rangeCount&&b.getRangeAt(0))&&new CKEDITOR.dom.node(d.commonAncestorContainer);else{try{d=b.createRange()}catch(f){}e=d&&CKEDITOR.dom.element.get(d.item&&d.item(0)||d.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 E={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:p,
_createFillingCharSequenceNode:b,FILLING_CHAR_SEQUENCE:t});CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=u?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:u?function(){var b=this._.cache;if(b.type)return b.type;var a=CKEDITOR.SELECTION_NONE;try{var c=this.getNative(),e=c.type;"Text"==e&&(a=CKEDITOR.SELECTION_TEXT);"Control"==e&&(a=CKEDITOR.SELECTION_ELEMENT);c.createRange().parentElement()&&
(a=CKEDITOR.SELECTION_TEXT)}catch(d){}return b.type=a}:function(){var b=this._.cache;if(b.type)return b.type;var a=CKEDITOR.SELECTION_TEXT,c=this.getNative();if(!c||!c.rangeCount)a=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&&E[e.childNodes[c.startOffset].nodeName.toLowerCase()])&&(a=CKEDITOR.SELECTION_ELEMENT)}return b.type=a},getRanges:function(){var b=u?function(){function b(a){return(new CKEDITOR.dom.node(a)).getIndex()}
var a=function(a,c){a=a.duplicate();a.collapse(c);var e=a.parentElement();if(!e.hasChildNodes())return{container:e,offset:0};for(var d=e.children,f,h,g=a.duplicate(),k=0,l=d.length-1,m=-1,n,p;k<=l;)if(m=Math.floor((k+l)/2),f=d[m],g.moveToElementText(f),n=g.compareEndPoints("StartToStart",a),0<n)l=m-1;else if(0>n)k=m+1;else return{container:e,offset:b(f)};if(-1==m||m==d.length-1&&0>n){g.moveToElementText(e);g.setEndPoint("StartToStart",a);g=g.text.replace(/(\r\n|\r)/g,"\n").length;d=e.childNodes;if(!g)return f=
d[d.length-1],f.nodeType!=CKEDITOR.NODE_TEXT?{container:e,offset:d.length}:{container:f,offset:f.nodeValue.length};for(e=d.length;0<g&&0<e;)h=d[--e],h.nodeType==CKEDITOR.NODE_TEXT&&(p=h,g-=h.nodeValue.length);return{container:p,offset:-g}}g.collapse(0<n?!0:!1);g.setEndPoint(0<n?"StartToStart":"EndToStart",a);g=g.text.replace(/(\r\n|\r)/g,"\n").length;if(!g)return{container:e,offset:b(f)+(0<n?0:1)};for(;0<g;)try{h=f[0<n?"previousSibling":"nextSibling"],h.nodeType==CKEDITOR.NODE_TEXT&&(g-=h.nodeValue.length,
p=h),f=h}catch(t){return{container:e,offset:b(f)}}return{container:p,offset:0<n?-g:p.nodeValue.length+g}};return function(){var b=this.getNative(),c=b&&b.createRange(),e=this.getType();if(!b)return[];if(e==CKEDITOR.SELECTION_TEXT)return b=new CKEDITOR.dom.range(this.root),e=a(c,!0),b.setStart(new CKEDITOR.dom.node(e.container),e.offset),e=a(c),b.setEnd(new CKEDITOR.dom.node(e.container),e.offset),b.endContainer.getPosition(b.startContainer)&CKEDITOR.POSITION_PRECEDING&&b.endOffset<=b.startContainer.getIndex()&&
b.collapse(),[b];if(e==CKEDITOR.SELECTION_ELEMENT){for(var e=[],d=0;d<c.length;d++){for(var f=c.item(d),h=f.parentNode,g=0,b=new CKEDITOR.dom.range(this.root);g<h.childNodes.length&&h.childNodes[g]!=f;g++);b.setStart(new CKEDITOR.dom.node(h),g);b.setEnd(new CKEDITOR.dom.node(h),g+1);e.push(b)}return e}return[]}}():function(){var b=[],a,c=this.getNative();if(!c)return b;for(var e=0;e<c.rangeCount;e++){var d=c.getRangeAt(e);a=new CKEDITOR.dom.range(this.root);a.setStart(new CKEDITOR.dom.node(d.startContainer),
d.startOffset);a.setEnd(new CKEDITOR.dom.node(d.endContainer),d.endOffset);b.push(a)}return b};return function(a){var c=this._.cache,e=c.ranges;e||(c.ranges=e=new CKEDITOR.dom.rangeList(b.call(this)));return!a?e:q(new CKEDITOR.dom.rangeList(e.slice()))}}(),getStartElement:function(){var b=this._.cache;if(void 0!==b.startElement)return b.startElement;var a;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var c=this.getRanges()[0];
if(c){if(c.collapsed)a=c.startContainer,a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());else{for(c.optimize();;)if(a=c.startContainer,c.startOffset==(a.getChildCount?a.getChildCount():a.getLength())&&!a.isBlockBoundary())c.setStartAfter(a);else break;a=c.startContainer;if(a.type!=CKEDITOR.NODE_ELEMENT)return a.getParent();a=a.getChild(c.startOffset);if(!a||a.type!=CKEDITOR.NODE_ELEMENT)a=c.startContainer;else for(c=a.getFirst();c&&c.type==CKEDITOR.NODE_ELEMENT;)a=c,c=c.getFirst()}a=a.$}}return b.startElement=
a?new CKEDITOR.dom.element(a):null},getSelectedElement:function(){var b=this._.cache;if(void 0!==b.selectedElement)return b.selectedElement;var a=this,c=CKEDITOR.tools.tryThese(function(){return a.getNative().createRange().item(0)},function(){for(var b=a.getRanges()[0].clone(),c,e,d=2;d&&(!(c=b.getEnclosedNode())||!(c.type==CKEDITOR.NODE_ELEMENT&&E[c.getName()]&&(e=c)));d--)b.shrink(CKEDITOR.SHRINK_ELEMENT);return e&&e.$});return b.selectedElement=c?new CKEDITOR.dom.element(c):null},getSelectedText:function(){var b=
this._.cache;if(void 0!==b.selectedText)return b.selectedText;var a=this.getNative(),a=u?"Control"==a.type?"":a.createRange().text:a.toString();return b.selectedText=a},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(b){if(this.isLocked){if(b)var a=this.getSelectedElement(),c=this.getRanges(),e=this.isFake;this.isLocked=0;this.reset();b&&(b=a||c[0]&&c[0].getCommonAncestor())&&b.getAscendant("body",
1)&&(g(c)?h.call(this,c):e?this.fake(a):a?this.selectElement(a):this.selectRanges(c))}},reset:function(){this._.cache={};this.isFake=0;var b=this.root.editor;if(b&&b._.fakeSelection)if(this.rev==b._.fakeSelection.rev){delete b._.fakeSelection;var a=b._.hiddenSelectionContainer;if(a){var c=b.checkDirty();b.fire("lockSnapshot");a.remove();b.fire("unlockSnapshot");!c&&b.resetDirty()}delete b._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=s++},selectElement:function(b){var a=
new CKEDITOR.dom.range(this.root);a.setStartBefore(b);a.setEndAfter(b);this.selectRanges([a])},selectRanges:function(a){var c=this.root.editor,d=c&&c._.hiddenSelectionContainer;this.reset();if(d)for(var d=this.root,f,k=0;k<a.length;++k)f=a[k],f.endContainer.equals(d)&&(f.endOffset=Math.min(f.endOffset,d.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 p,t;if(1==a.length&&
!(t=a[0]).collapsed&&(m=t.getEnclosedNode())&&m.type==CKEDITOR.NODE_ELEMENT){t=t.clone();t.shrink(CKEDITOR.SHRINK_ELEMENT,!0);if((p=t.getEnclosedNode())&&p.type==CKEDITOR.NODE_ELEMENT)m=p;if("false"==m.getAttribute("contenteditable"))break a}m=void 0}if(m)this.fake(m);else if(c&&c.plugins.tableselection&&c.plugins.tableselection.isSupportedEnvironment()&&g(a)&&!x&&!a[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored"))h.call(this,a);else{if(u){p=CKEDITOR.dom.walker.whitespaces(!0);
m=/\ufeff|\u00a0/;t={table:1,tbody:1,tr:1};1<a.length&&(c=a[a.length-1],a[0].setEnd(c.endContainer,c.endOffset));c=a[0];a=c.collapsed;var v,w,s;if((d=c.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in E&&(!d.is("a")||!d.getText()))try{s=d.$.createControlRange();s.addElement(d.$);s.select();return}catch(r){}if(c.startContainer.type==CKEDITOR.NODE_ELEMENT&&c.startContainer.getName()in t||c.endContainer.type==CKEDITOR.NODE_ELEMENT&&c.endContainer.getName()in t)c.shrink(CKEDITOR.NODE_ELEMENT,
!0),a=c.collapsed;s=c.createBookmark();t=s.startNode;a||(l=s.endNode);s=c.document.$.body.createTextRange();s.moveToElementText(t.$);s.moveStart("character",1);l?(m=c.document.$.body.createTextRange(),m.moveToElementText(l.$),s.setEndPoint("EndToEnd",m),s.moveEnd("character",-1)):(v=t.getNext(p),w=t.hasAscendant("pre"),v=!(v&&v.getText&&v.getText().match(m))&&(w||!t.hasPrevious()||t.getPrevious().is&&t.getPrevious().is("br")),w=c.document.createElement("span"),w.setHtml("\x26#65279;"),w.insertBefore(t),
v&&c.document.createText("").insertBefore(t));c.setStartBefore(t);t.remove();a?(v?(s.moveStart("character",-1),s.select(),c.document.$.selection.clear()):s.select(),c.moveToPosition(w,CKEDITOR.POSITION_BEFORE_START),w.remove()):(c.setEndBefore(l),l.remove(),s.select())}else{l=this.getNative();if(!l)return;this.removeAllRanges();for(s=0;s<a.length;s++){if(s<a.length-1&&(v=a[s],w=a[s+1],m=v.clone(),m.setStart(v.endContainer,v.endOffset),m.setEnd(w.startContainer,w.startOffset),!m.collapsed&&(m.shrink(CKEDITOR.NODE_ELEMENT,
!0),c=m.getCommonAncestor(),m=m.getEnclosedNode(),c.isReadOnly()||m&&m.isReadOnly()))){w.setStart(v.startContainer,v.startOffset);a.splice(s--,1);continue}c=a[s];w=this.document.$.createRange();c.collapsed&&(CKEDITOR.env.webkit&&e(c))&&(m=b(this.root),c.insertNode(m),(v=m.getNext())&&!m.getPrevious()&&v.type==CKEDITOR.NODE_ELEMENT&&"br"==v.getName()?(n(this.root),c.moveToPosition(v,CKEDITOR.POSITION_BEFORE_START)):c.moveToPosition(m,CKEDITOR.POSITION_AFTER_END));w.setStart(c.startContainer.$,c.startOffset);
try{w.setEnd(c.endContainer.$,c.endOffset)}catch(A){if(0<=A.toString().indexOf("NS_ERROR_ILLEGAL_VALUE"))c.collapse(1),w.setEnd(c.endContainer.$,c.endOffset);else throw A;}l.addRange(w)}}this.reset();this.root.fire("selectionchange")}}},fake:function(b,a){var c=this.root.editor;void 0===a&&b.hasAttribute("aria-label")&&(a=b.getAttribute("aria-label"));this.reset();v(c,a);var e=this._.cache,d=new CKEDITOR.dom.range(this.root);d.setStartBefore(b);d.setEndAfter(b);e.ranges=new CKEDITOR.dom.rangeList(d);
e.selectedElement=e.startElement=b;e.type=CKEDITOR.SELECTION_ELEMENT;e.selectedText=e.nativeSel=null;this.isFake=1;this.rev=s++;c._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var b=this.getCommonAncestor();b&&b.type==CKEDITOR.NODE_TEXT&&(b=b.getParent());return!(!b||!b.data("cke-hidden-sel"))},isInTable:function(b){return g(this.getRanges(),b)},isCollapsed:function(){var b=this.getRanges();return 1===b.length&&b[0].collapsed},createBookmarks:function(b){b=this.getRanges().createBookmarks(b);
this.isFake&&(b.isFake=1);return b},createBookmarks2:function(b){b=this.getRanges().createBookmarks2(b);this.isFake&&(b.isFake=1);return b},selectBookmarks:function(b){for(var a=[],c,e=0;e<b.length;e++){var d=new CKEDITOR.dom.range(this.root);d.moveToBookmark(b[e]);a.push(d)}if(b.isFake&&(c=g(a)?a[0]._getTableElement():a[0].getEnclosedNode(),!c||c.type!=CKEDITOR.NODE_ELEMENT))CKEDITOR.warn("selection-not-fake"),b.isFake=0;b.isFake&&!g(a)?this.fake(c):this.selectRanges(a);return this},getCommonAncestor:function(){var b=
this.getRanges();return!b.length?null:b[0].startContainer.getCommonAncestor(b[b.length-1].endContainer)},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var b=this.getNative();try{b&&b[u?"empty":"removeAllRanges"]()}catch(a){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function a(b,a){for(var c,e;(b=b.getParent())&&
!b.equals(a);)if(b.getAttribute("data-nostyle"))c=b;else if(!e){var d=b.getAttribute("contentEditable");"false"==d?c=b:"true"==d&&(e=1)}return c}function g(b){var c=b.document;if(b.collapsed)c=u(this,c),b.insertNode(c),b.moveToPosition(c,CKEDITOR.POSITION_BEFORE_END);else{var e=this.element,d=this._.definition,h,k=d.ignoreReadonly,l=k||d.includeReadonly;null==l&&(l=b.root.getCustomData("cke_includeReadonly"));var m=CKEDITOR.dtd[e];m||(h=!0,m=CKEDITOR.dtd.span);b.enlarge(CKEDITOR.ENLARGE_INLINE,1);
b.trim();var n=b.createBookmark(),p=n.startNode,t=n.endNode,s=p,w;if(!k){var x=b.getCommonAncestor(),k=a(p,x),x=a(t,x);k&&(s=k.getNextSourceNode(!0));x&&(t=x)}for(s.getPosition(t)==CKEDITOR.POSITION_FOLLOWING&&(s=0);s;){k=!1;if(s.equals(t))s=null,k=!0;else{var r=s.type==CKEDITOR.NODE_ELEMENT?s.getName():null,x=r&&"false"==s.getAttribute("contentEditable"),A=r&&s.getAttribute("data-nostyle");if(r&&s.data("cke-bookmark")||s.type===CKEDITOR.NODE_COMMENT){s=s.getNextSourceNode(!0);continue}if(x&&l&&CKEDITOR.dtd.$block[r])for(var q=
s,B=f(q),H=void 0,y=B.length,z=0,q=y&&new CKEDITOR.dom.range(q.getDocument());z<y;++z){var H=B[z],ba=CKEDITOR.filter.instances[H.data("cke-filter")];if(ba?ba.check(this):1)q.selectNodeContents(H),g.call(this,q)}B=r?!m[r]||A?0:x&&!l?0:(s.getPosition(t)|J)==J&&(!d.childRule||d.childRule(s)):1;if(B)if((B=s.getParent())&&((B.getDtd()||CKEDITOR.dtd.span)[e]||h)&&(!d.parentRule||d.parentRule(B))){if(!w&&(!r||!CKEDITOR.dtd.$removeEmpty[r]||(s.getPosition(t)|J)==J))w=b.clone(),w.setStartBefore(s);r=s.type;
if(r==CKEDITOR.NODE_TEXT||x||r==CKEDITOR.NODE_ELEMENT&&!s.getChildCount()){for(var r=s,$;(k=!r.getNext(F))&&($=r.getParent(),m[$.getName()])&&($.getPosition(p)|I)==I&&(!d.childRule||d.childRule($));)r=$;w.setEndAfter(r)}}else k=!0;else k=!0;s=s.getNextSourceNode(A||x)}if(k&&w&&!w.collapsed){for(var k=u(this,c),x=k.hasAttributes(),A=w.getCommonAncestor(),r={},B={},H={},y={},D,E,ca;k&&A;){if(A.getName()==e){for(D in d.attributes)if(!y[D]&&(ca=A.getAttribute(E)))k.getAttribute(D)==ca?B[D]=1:y[D]=1;for(E in d.styles)if(!H[E]&&
(ca=A.getStyle(E)))k.getStyle(E)==ca?r[E]=1:H[E]=1}A=A.getParent()}for(D in B)k.removeAttribute(D);for(E in r)k.removeStyle(E);x&&!k.hasAttributes()&&(k=null);k?(w.extractContents().appendTo(k),w.insertNode(k),v.call(this,k),k.mergeSiblings(),CKEDITOR.env.ie||k.$.normalize()):(k=new CKEDITOR.dom.element("span"),w.extractContents().appendTo(k),w.insertNode(k),v.call(this,k),k.remove(!0));w=null}}b.moveToBookmark(n);b.shrink(CKEDITOR.SHRINK_TEXT);b.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function d(b){function a(){for(var b=
new CKEDITOR.dom.elementPath(e.getParent()),c=new CKEDITOR.dom.elementPath(m.getParent()),d=null,f=null,h=0;h<b.elements.length;h++){var g=b.elements[h];if(g==b.block||g==b.blockLimit)break;n.checkElementRemovable(g,!0)&&(d=g)}for(h=0;h<c.elements.length;h++){g=c.elements[h];if(g==c.block||g==c.blockLimit)break;n.checkElementRemovable(g,!0)&&(f=g)}f&&m.breakParent(f);d&&e.breakParent(d)}b.enlarge(CKEDITOR.ENLARGE_INLINE,1);var c=b.createBookmark(),e=c.startNode,d=this._.definition.alwaysRemoveElement;
if(b.collapsed){for(var f=new CKEDITOR.dom.elementPath(e.getParent(),b.root),h,g=0,k;g<f.elements.length&&(k=f.elements[g])&&!(k==f.block||k==f.blockLimit);g++)if(this.checkElementRemovable(k)){var l;!d&&b.collapsed&&(b.checkBoundaryOfElement(k,CKEDITOR.END)||(l=b.checkBoundaryOfElement(k,CKEDITOR.START)))?(h=k,h.match=l?"start":"end"):(k.mergeSiblings(),k.is(this.element)?p.call(this,k):r(k,w(this)[k.getName()]))}if(h){d=e;for(g=0;;g++){k=f.elements[g];if(k.equals(h))break;else if(k.match)continue;
else k=k.clone();k.append(d);d=k}d["start"==h.match?"insertBefore":"insertAfter"](h)}}else{var m=c.endNode,n=this;a();for(f=e;!f.equals(m);)h=f.getNextSourceNode(),f.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(f)&&(f.getName()==this.element?p.call(this,f):r(f,w(this)[f.getName()]),h.type==CKEDITOR.NODE_ELEMENT&&h.contains(e)&&(a(),h=e.getNext())),f=h}b.moveToBookmark(c);b.shrink(CKEDITOR.NODE_ELEMENT,!0)}function f(b){var a=[];b.forEach(function(b){if("true"==b.getAttribute("contenteditable"))return a.push(b),
!1},CKEDITOR.NODE_ELEMENT,!0);return a}function h(b){var a=b.getEnclosedNode()||b.getCommonAncestor(!1,!0);(b=(new CKEDITOR.dom.elementPath(a,b.root)).contains(this.element,1))&&!b.isReadOnly()&&s(b,this)}function m(b){var a=b.getCommonAncestor(!0,!0);if(b=(new CKEDITOR.dom.elementPath(a,b.root)).contains(this.element,1)){var a=this._.definition,c=a.attributes;if(c)for(var e in c)b.removeAttribute(e,c[e]);if(a.styles)for(var d in a.styles)a.styles.hasOwnProperty(d)&&b.removeStyle(d)}}function k(b){var a=
b.createBookmark(!0),c=b.createIterator();c.enforceRealBlocks=!0;this._.enterMode&&(c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var e,d=b.document,f;e=c.getNextParagraph();)if(!e.isReadOnly()&&(c.activeFilter?c.activeFilter.check(this):1))f=u(this,d,e),l(e,f);b.moveToBookmark(a)}function c(b){var a=b.createBookmark(1),c=b.createIterator();c.enforceRealBlocks=!0;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var e,d;e=c.getNextParagraph();)this.checkElementRemovable(e)&&(e.is("pre")?
((d=this._.enterMode==CKEDITOR.ENTER_BR?null:b.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&e.copyAttributes(d),l(e,d)):p.call(this,e));b.moveToBookmark(a)}function l(a,c){var d=!c;d&&(c=a.getDocument().createElement("div"),a.copyAttributes(c));var f=c&&c.is("pre"),h=a.is("pre"),g=!f&&h;if(f&&!h){h=c;(g=a.getBogus())&&g.remove();g=a.getHtml();g=b(g,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");g=g.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");g=g.replace(/([ \t\n\r]+| )/g,
" ");g=g.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var k=a.getDocument().createElement("div");k.append(h);h.$.outerHTML="\x3cpre\x3e"+g+"\x3c/pre\x3e";h.copyAttributes(k.getFirst());h=k.getFirst().remove()}else h.setHtml(g);c=h}else g?c=n(d?[a.getHtml()]:e(a),c):a.moveChildren(c);c.replace(a);if(f){var d=c,l;if((l=d.getPrevious(H))&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("pre"))f=b(l.getHtml(),/\n$/,"")+"\n\n"+b(d.getHtml(),/^\n/,""),CKEDITOR.env.ie?d.$.outerHTML="\x3cpre\x3e"+f+"\x3c/pre\x3e":
d.setHtml(f),l.remove()}else d&&q(c)}function e(a){var c=[];b(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(b,a,c){return a+"\x3c/pre\x3e"+c+"\x3cpre\x3e"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(b,a){c.push(a)});return c}function b(b,a,c){var e="",d="";b=b.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(b,a,c){a&&(e=a);c&&(d=c);return""});return e+b.replace(a,c)+d}function n(a,c){var e;
1<a.length&&(e=new CKEDITOR.dom.documentFragment(c.getDocument()));for(var d=0;d<a.length;d++){var f=a[d],f=f.replace(/(\r\n|\r)/g,"\n"),f=b(f,/^[ \t]*\n/,""),f=b(f,/\n$/,""),f=b(f,/^[ \t]+|[ \t]+$/g,function(b,a){return 1==b.length?"\x26nbsp;":a?" "+CKEDITOR.tools.repeat("\x26nbsp;",b.length-1):CKEDITOR.tools.repeat("\x26nbsp;",b.length-1)+" "}),f=f.replace(/\n/g,"\x3cbr\x3e"),f=f.replace(/[ \t]{2,}/g,function(b){return CKEDITOR.tools.repeat("\x26nbsp;",b.length-1)+" "});if(e){var h=c.clone();h.setHtml(f);
e.append(h)}else c.setHtml(f)}return e||c}function p(b,a){var c=this._.definition,e=c.attributes,c=c.styles,d=w(this)[b.getName()],f=CKEDITOR.tools.isEmpty(e)&&CKEDITOR.tools.isEmpty(c),h;for(h in e)if(!(("class"==h||this._.definition.fullMatch)&&b.getAttribute(h)!=x(h,e[h]))&&!(a&&"data-"==h.slice(0,5)))f=b.hasAttribute(h),b.removeAttribute(h);for(var g in c)this._.definition.fullMatch&&b.getStyle(g)!=x(g,c[g],!0)||(f=f||!!b.getStyle(g),b.removeStyle(g));r(b,d,A[b.getName()]);f&&(this._.definition.alwaysRemoveElement?
q(b,1):!CKEDITOR.dtd.$block[b.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!b.hasAttributes()?q(b):b.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function v(b){for(var a=w(this),c=b.getElementsByTag(this.element),e,d=c.count();0<=--d;)e=c.getItem(d),e.isReadOnly()||p.call(this,e,!0);for(var f in a)if(f!=this.element){c=b.getElementsByTag(f);for(d=c.count()-1;0<=d;d--)e=c.getItem(d),e.isReadOnly()||r(e,a[f])}}function r(b,a,c){if(a=a&&a.attributes)for(var e=0;e<a.length;e++){var d=
a[e][0],f;if(f=b.getAttribute(d)){var h=a[e][1];(null===h||h.test&&h.test(f)||"string"==typeof h&&f==h)&&b.removeAttribute(d)}}c||q(b)}function q(b,a){if(!b.hasAttributes()||a)if(CKEDITOR.dtd.$block[b.getName()]){var c=b.getPrevious(H),e=b.getNext(H);c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&b.append("br",1);e&&(e.type==CKEDITOR.NODE_TEXT||!e.isBlockBoundary({br:1}))&&b.append("br");b.remove(!0)}else c=b.getFirst(),e=b.getLast(),b.remove(!0),c&&(c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings(),
e&&(!c.equals(e)&&e.type==CKEDITOR.NODE_ELEMENT)&&e.mergeSiblings())}function u(b,a,c){var e;e=b.element;"*"==e&&(e="span");e=new CKEDITOR.dom.element(e,a);c&&c.copyAttributes(e);e=s(e,b);a.getCustomData("doc_processing_style")&&e.hasAttribute("id")?e.removeAttribute("id"):a.setCustomData("doc_processing_style",1);return e}function s(b,a){var c=a._.definition,e=c.attributes,c=CKEDITOR.style.getStyleText(c);if(e)for(var d in e)b.setAttribute(d,e[d]);c&&b.setAttribute("style",c);b.getDocument().removeCustomData("doc_processing_style");
return b}function t(b,a){for(var c in b)b[c]=b[c].replace(E,function(b,c){return a[c]})}function w(b){if(b._.overrides)return b._.overrides;var a=b._.overrides={},c=b._.definition.overrides;if(c){CKEDITOR.tools.isArray(c)||(c=[c]);for(var e=0;e<c.length;e++){var d=c[e],f,h;"string"==typeof d?f=d.toLowerCase():(f=d.element?d.element.toLowerCase():b.element,h=d.attributes);d=a[f]||(a[f]={});if(h){var d=d.attributes=d.attributes||[],g;for(g in h)d.push([g.toLowerCase(),h[g]])}}}return a}function x(b,
a,c){var e=new CKEDITOR.dom.element("span");e[c?"setStyle":"setAttribute"](b,a);return e[c?"getStyle":"getAttribute"](b)}function y(b,a,c){var e=b.getRanges();a=a?this.removeFromRange:this.applyToRange;var d,f;if(b.isFake&&b.isInTable()){d=[];for(f=0;f<e.length;f++)d.push(e[f].clone())}for(var h=e.createIterator();f=h.getNextRange();)a.call(this,f,c);b.selectRanges(d||e)}var A={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},z={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},D=/\s*(?:;\s*|$)/,E=/#\((.+?)\)/g,F=CKEDITOR.dom.walker.bookmark(0,1),H=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(b,a){if("string"==typeof b.type)return new CKEDITOR.style.customHandlers[b.type](b);var c=b.attributes;c&&c.style&&(b.styles=CKEDITOR.tools.extend({},
b.styles,CKEDITOR.tools.parseCssText(c.style)),delete c.style);a&&(b=CKEDITOR.tools.clone(b),t(b.attributes,a),t(b.styles,a));c=this.element=b.element?"string"==typeof b.element?b.element.toLowerCase():b.element:"*";this.type=b.type||(A[c]?CKEDITOR.STYLE_BLOCK:z[c]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT);this._={definition:b}};CKEDITOR.style.prototype={apply:function(b){if(b instanceof CKEDITOR.dom.document)return y.call(this,b.getSelection());
if(this.checkApplicable(b.elementPath(),b)){var a=this._.enterMode;a||(this._.enterMode=b.activeEnterMode);y.call(this,b.getSelection(),0,b);this._.enterMode=a}},remove:function(b){if(b instanceof CKEDITOR.dom.document)return y.call(this,b.getSelection(),1);if(this.checkApplicable(b.elementPath(),b)){var a=this._.enterMode;a||(this._.enterMode=b.activeEnterMode);y.call(this,b.getSelection(),1,b);this._.enterMode=a}},applyToRange:function(b){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?g:this.type==
CKEDITOR.STYLE_BLOCK?k:this.type==CKEDITOR.STYLE_OBJECT?h:null;return this.applyToRange(b)},removeFromRange:function(b){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?d:this.type==CKEDITOR.STYLE_BLOCK?c:this.type==CKEDITOR.STYLE_OBJECT?m:null;return this.removeFromRange(b)},applyToObject:function(b){s(b,this)},checkActive:function(b,a){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(b.block||b.blockLimit,!0,a);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var c=
b.elements,e=0,d;e<c.length;e++)if(d=c[e],!(this.type==CKEDITOR.STYLE_INLINE&&(d==b.block||d==b.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var f=d.getName();if(!("string"==typeof this.element?f==this.element:f in this.element))continue}if(this.checkElementRemovable(d,!0,a))return!0}}return!1},checkApplicable:function(b,a,c){a&&a instanceof CKEDITOR.filter&&(c=a);if(c&&!c.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!b.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!b.blockLimit.getDtd()[this.element]}return!0},
checkElementMatch:function(b,a){var c=this._.definition;if(!b||!c.ignoreReadonly&&b.isReadOnly())return!1;var e=b.getName();if("string"==typeof this.element?e==this.element:e in this.element){if(!a&&!b.hasAttributes())return!0;if(e=c._AC)c=e;else{var e={},d=0,f=c.attributes;if(f)for(var h in f)d++,e[h]=f[h];if(h=CKEDITOR.style.getStyleText(c))e.style||d++,e.style=h;e._length=d;c=c._AC=e}if(c._length){for(var g in c)if("_length"!=g){d=b.getAttribute(g)||"";if("style"==g)a:{e=c[g];"string"==typeof e&&
(e=CKEDITOR.tools.parseCssText(e));"string"==typeof d&&(d=CKEDITOR.tools.parseCssText(d,!0));h=void 0;for(h in e)if(!(h in d)||!(("font-family"==h.toLowerCase()?d[h].replace(/["']/g,""):d[h])==("font-family"==h.toLowerCase()?e[h].replace(/["']/g,""):e[h])||"inherit"==e[h]||"inherit"==d[h])){e=!1;break a}e=!0}else e=c[g]==d;if(e){if(!a)return!0}else if(a)return!1}if(a)return!0}else return!0}return!1},checkElementRemovable:function(b,a,c){if(this.checkElementMatch(b,a,c))return!0;if(a=w(this)[b.getName()]){var e;
if(!(a=a.attributes))return!0;for(c=0;c<a.length;c++)if(e=a[c][0],e=b.getAttribute(e)){var d=a[c][1];if(null===d)return!0;if("string"==typeof d){if(e==d)return!0}else if(d.test(e))return!0}}return!1},buildPreview:function(b){var a=this._.definition,c=[],e=a.element;"bdo"==e&&(e="span");var c=["\x3c",e],d=a.attributes;if(d)for(var f in d)c.push(" ",f,'\x3d"',d[f],'"');(d=CKEDITOR.style.getStyleText(a))&&c.push(' style\x3d"',d,'"');c.push("\x3e",b||a.name,"\x3c/",e,"\x3e");return c.join("")},getDefinition:function(){return this._.definition}};
CKEDITOR.style.getStyleText=function(b){var a=b._ST;if(a)return a;var a=b.styles,c=b.attributes&&b.attributes.style||"",e="";c.length&&(c=c.replace(D,";"));for(var d in a){var f=a[d],h=(d+":"+f).replace(D,";");"inherit"==f?e+=h:c+=h}c.length&&(c=CKEDITOR.tools.normalizeCssText(c,!0));return b._ST=c+e};CKEDITOR.style.customHandlers={};CKEDITOR.style.addCustomHandler=function(b){var a=function(b){this._={definition:b};this.setup&&this.setup(b)};a.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),
{assignedTo:CKEDITOR.STYLE_OBJECT},b,!0);return this.customHandlers[b.type]=a};var J=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,I=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(a,g){this.requiredContent=this.allowedContent=this.style=a;CKEDITOR.tools.extend(this,g,!0)},CKEDITOR.styleCommand.prototype.exec=function(a){a.focus();this.state==CKEDITOR.TRISTATE_OFF?a.applyStyle(this.style):
this.state==CKEDITOR.TRISTATE_ON&&a.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(a,g,d){CKEDITOR.stylesSet.addExternal(a,g,"");CKEDITOR.stylesSet.load(a,d)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(a,g){var d=this._.styleStateChangeCallbacks;d||(d=this._.styleStateChangeCallbacks=[],this.on("selectionChange",
function(a){for(var h=0;h<d.length;h++){var g=d[h],k=g.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;g.fn.call(this,k)}}));d.push({style:a,fn:g})},applyStyle:function(a){a.apply(this)},removeStyle:function(a){a.remove(this)},getStylesSet:function(a){if(this._.stylesDefinitions)a(this._.stylesDefinitions);else{var g=this,d=g.config.stylesCombo_stylesSet||g.config.stylesSet;if(!1===d)a(null);else if(d instanceof Array)g._.stylesDefinitions=d,a(d);else{d||(d="default");
var d=d.split(":"),f=d[0];CKEDITOR.stylesSet.addExternal(f,d[1]?d.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(f,function(d){g._.stylesDefinitions=d[f];a(g._.stylesDefinitions)})}}}}),function(){if(window.Promise)CKEDITOR.tools.promise=Promise;else{var a=CKEDITOR.getUrl("vendor/promise.js");CKEDITOR.scriptLoader.load(a,function(g){g?CKEDITOR.tools.promise=ES6Promise:CKEDITOR.error("no-vendor-lib",{path:a})})}}(),CKEDITOR.dom.comment=function(a,g){"string"==typeof a&&
(a=(g?g.$:document).createComment(a));CKEDITOR.dom.domObject.call(this,a)},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 a={},g={},d;for(d in CKEDITOR.dtd.$blockLimit)d in CKEDITOR.dtd.$list||(a[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(d,h){var m=null,k=null,c=[],l=d,e;h=h||d.getDocument().getBody();l||(l=h);do if(l.type==CKEDITOR.NODE_ELEMENT){c.push(l);if(!this.lastElement&&(this.lastElement=l,l.is(CKEDITOR.dtd.$object)||"false"==l.getAttribute("contenteditable")))continue;if(l.equals(h))break;if(!k&&(e=l.getName(),"true"==l.getAttribute("contenteditable")?k=l:!m&&g[e]&&(m=l),a[e])){var b;if(b=!m){if(e="div"==e){a:{e=l.getChildren();b=0;for(var n=e.count();b<n;b++){var p=e.getItem(b);if(p.type==CKEDITOR.NODE_ELEMENT&&
CKEDITOR.dtd.$block[p.getName()]){e=!0;break a}}e=!1}e=!e}b=e}b?m=l:k=l}}while(l=l.getParent());k||(k=h);this.block=m;this.blockLimit=k;this.root=h;this.elements=c}}(),CKEDITOR.dom.elementPath.prototype={compare:function(a){var g=this.elements;a=a&&a.elements;if(!a||g.length!=a.length)return!1;for(var d=0;d<g.length;d++)if(!g[d].equals(a[d]))return!1;return!0},contains:function(a,g,d){var f=0,h;"string"==typeof a&&(h=function(c){return c.getName()==a});a instanceof CKEDITOR.dom.element?h=function(c){return c.equals(a)}:
CKEDITOR.tools.isArray(a)?h=function(c){return-1<CKEDITOR.tools.indexOf(a,c.getName())}:"function"==typeof a?h=a:"object"==typeof a&&(h=function(c){return c.getName()in a});var m=this.elements,k=m.length;g&&(d?f+=1:k-=1);d&&(m=Array.prototype.slice.call(m,0),m.reverse());for(;f<k;f++)if(h(m[f]))return m[f];return null},isContextFor:function(a){var g;return a in CKEDITOR.dtd.$block?(g=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!g.getDtd()[a]):
!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(a,g){"string"==typeof a&&(a=(g?g.$:document).createTextNode(a));this.$=a},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(a){this.$.nodeValue=a},split:function(a){var g=this.$.parentNode,d=g.childNodes.length,
f=this.getLength(),h=this.getDocument(),m=new CKEDITOR.dom.text(this.$.splitText(a),h);g.childNodes.length==d&&(a>=f?(m=h.createText(""),m.insertAfter(this)):(a=h.createText(""),a.insertAfter(m),a.remove()));return m},substring:function(a,g){return"number"!=typeof g?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,g)}}),function(){function a(a,f,h){var g=a.serializable,k=f[h?"endContainer":"startContainer"],c=h?"endOffset":"startOffset",l=g?f.document.getById(a.startNode):a.startNode;a=g?f.document.getById(a.endNode):
a.endNode;k.equals(l.getPrevious())?(f.startOffset=f.startOffset-k.getLength()-a.getPrevious().getLength(),k=a.getNext()):k.equals(a.getPrevious())&&(f.startOffset-=k.getLength(),k=a.getNext());k.equals(l.getParent())&&f[c]++;k.equals(a.getParent())&&f[c]++;f[h?"endContainer":"startContainer"]=k;return f}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,g)};var g={createIterator:function(){var a=
this,f=CKEDITOR.dom.walker.bookmark(),h=[],g;return{getNextRange:function(k){g=void 0===g?0:g+1;var c=a[g];if(c&&1<a.length){if(!g)for(var l=a.length-1;0<=l;l--)h.unshift(a[l].createBookmark(!0));if(k)for(var e=0;a[g+e+1];){var b=c.document;k=0;l=b.getById(h[e].endNode);for(b=b.getById(h[e+1].startNode);;){l=l.getNextSourceNode(!1);if(b.equals(l))k=1;else if(f(l)||l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary())continue;break}if(!k)break;e++}for(c.moveToBookmark(h.shift());e--;)l=a[++g],l.moveToBookmark(h.shift()),
c.setEnd(l.endContainer,l.endOffset)}return c}}},createBookmarks:function(d){for(var f=[],h,g=0;g<this.length;g++){f.push(h=this[g].createBookmark(d,!0));for(var k=g+1;k<this.length;k++)this[k]=a(h,this[k]),this[k]=a(h,this[k],!0)}return f},createBookmarks2:function(a){for(var f=[],h=0;h<this.length;h++)f.push(this[h].createBookmark2(a));return f},moveToBookmarks:function(a){for(var f=0;f<this.length;f++)this[f].moveToBookmark(a[f])}}}(),function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||
"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function g(c){var b=CKEDITOR.skin["ua_"+c],d=CKEDITOR.env;if(b)for(var b=b.split(",").sort(function(b,a){return b>a?-1:1}),f=0,h;f<b.length;f++){h=b[f];if(d.ie&&(h.replace(/^ie/,"")==d.version||d.quirks&&"iequirks"==h))h="ie";if(d[h]){c+="_"+b[f];break}}return CKEDITOR.getUrl(a()+c+".css")}function d(a,b){m[a]||(CKEDITOR.document.appendStyleSheet(g(a)),m[a]=1);b&&b()}function f(a){var b=a.getById(k);b||(b=a.getHead().append("style"),b.setAttribute("id",
k),b.setAttribute("type","text/css"));return b}function h(a,b,c){var d,f,h;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(f=0;f<b.length;f++)b[f]=b[f].split("{")}for(var g=0;g<a.length;g++)if(CKEDITOR.env.webkit)for(f=0;f<b.length;f++){h=b[f][1];for(d=0;d<c.length;d++)h=h.replace(c[d][0],c[d][1]);a[g].$.sheet.addRule(b[f][0],h)}else{h=b;for(d=0;d<c.length;d++)h=h.replace(c[d][0],c[d][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?a[g].$.styleSheet.cssText+=h:a[g].$.innerHTML+=h}}var m={};CKEDITOR.skin=
{path:a,loadPart:function(c,b){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){d(c,b)}):d(c,b)},getPath:function(a){return CKEDITOR.getUrl(g(a))},icons:{},addIcon:function(a,b,c,d){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:d||"16px"})},getIconStyle:function(a,b,c,d,f){var h;a&&(a=a.toLowerCase(),b&&(h=this.icons[a+"-rtl"]),h||(h=this.icons[a]));a=c||h&&h.path||"";d=d||h&&h.offset;f=f||h&&h.bgsize||
"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+"');background-position:0 "+d+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=f(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var e=CKEDITOR.skin.chameleon,d="",f="";"function"==typeof e&&(d=e(this,"editor"),f=e(this,"panel"));a=[[l,a]];h([b],d,a);h(c,f,a)}).call(this,a)}});var k="cke_ui_color",
c=[],l=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var b=a.editor;a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!a.getById("cke_ui_color")){var e=f(a);c.push(e);b.on("destroy",function(){c=CKEDITOR.tools.array.filter(c,function(b){return e!==b})});(a=b.getUiColor())&&h([e],CKEDITOR.skin.chameleon(b,"panel"),[[l,a]])}};b.on("panelShow",a);b.on("menuShow",a);b.config.uiColor&&b.setUiColor(b.config.uiColor)}})}(),
function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var a=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);a.appendTo(CKEDITOR.document.getHead());try{var g=a.getComputedStyle("border-top-color"),d=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!(g&&g==d)}catch(f){CKEDITOR.env.hc=!1}a.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");
CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending){delete CKEDITOR._.pending;for(g=0;g<a.length;g++)CKEDITOR.editor.prototype.constructor.apply(a[g][0],a[g][1]),CKEDITOR.add(a[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 a=function(){return function(a,f){for(var h=a.match(/[^#]./g),g=0;3>g;g++){var k=h,c=g,l;l=parseInt(h[g],16);l=("0"+(0>f?0|l*(1+
f):0|l+(255-l)*f).toString(16)).slice(-2);k[c]=l}return"#"+h.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,f){var h=a(d.uiColor,0.4),h={id:"."+d.id,defaultBorder:a(h,-0.2),toolbarElementsBorder:a(h,-0.25),defaultBackground:h,lightBackground:a(h,0.8),darkBackground:a(h,-0.15),ckeButtonOn:a(h,0.4),ckeResizer:a(h,-0.4),ckeColorauto:a(h,0.8),dialogBody:a(h,0.7),dialogTab:a(h,0.65),dialogTabSelected:"#FFF",dialogTabSelectedBorder:"#FFF",elementsPathColor:a(h,-0.6),menubuttonHover:a(h,0.1),menubuttonIcon:a(h,0.5),menubuttonIconHover:a(h,0.3)};return g[f].output(h).replace(/\[/g,"{").replace(/\]/g,
"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var a=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||!1;for(var c=[this._],b=1;b<arguments.length;b++)c.push(arguments[b]);c.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,c);return this._},g={build:function(a,c,b){return new CKEDITOR.ui.dialog.textInput(a,c,b)}},d={build:function(a,c,b){return new CKEDITOR.ui.dialog[c.type](a,c,b)}},f={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}},h=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,c){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",c)}},!0),m=/^on([A-Z]\w+)/,k=function(a){for(var c in a)(m.test(c)||"title"==c||"type"==c)&&delete a[c];return a},c=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(c,e,b,d){if(!(4>arguments.length)){var f=a.call(this,e);f.labelId=CKEDITOR.tools.getNextId()+
"_label";this._.children=[];var h={role:e.role||"presentation"};e.includeLabel&&(h["aria-labelledby"]=f.labelId);CKEDITOR.ui.dialog.uiElement.call(this,c,e,b,"div",null,h,function(){var b=[],a=e.required?" cke_required":"";"horizontal"!=e.labelLayout?b.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+a+'" ',' id\x3d"'+f.labelId+'"',f.inputId?' for\x3d"'+f.inputId+'"':"",(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e",e.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"',
e.controlStyle?' style\x3d"'+e.controlStyle+'"':"",' role\x3d"presentation"\x3e',d.call(this,c,e),"\x3c/div\x3e"):(a={type:"hbox",widths:e.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+a+'" id\x3d"'+f.labelId+'" for\x3d"'+f.inputId+'"'+(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(e.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(e.controlStyle?' style\x3d"'+e.controlStyle+
'"':"")+"\x3e"+d.call(this,c,e)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(c,a,b));return b.join("")})}},textInput:function(d,e,b){if(!(3>arguments.length)){a.call(this,e);var f=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",h={"class":"cke_dialog_ui_input_"+e.type,id:f,type:e.type};e.validate&&(this.validate=e.validate);e.maxLength&&(h.maxlength=e.maxLength);e.size&&(h.size=e.size);e.inputStyle&&(h.style=e.inputStyle);var g=this,k=!1;d.on("load",function(){g.getInputElement().on("keydown",
function(b){13==b.data.getKeystroke()&&(k=!0)});g.getInputElement().on("keyup",function(b){13==b.data.getKeystroke()&&k&&(d.getButton("ok")&&setTimeout(function(){d.getButton("ok").click()},0),k=!1);g.bidi&&c.call(g,b)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,d,e,b,function(){var b=['\x3cdiv class\x3d"cke_dialog_ui_input_',e.type,'" role\x3d"presentation"'];e.width&&b.push('style\x3d"width:'+e.width+'" ');b.push("\x3e\x3cinput ");h["aria-labelledby"]=this._.labelId;this._.required&&
(h["aria-required"]=this._.required);for(var a in h)b.push(a+'\x3d"'+h[a]+'" ');b.push(" /\x3e\x3c/div\x3e");return b.join("")})}},textarea:function(d,e,b){if(!(3>arguments.length)){a.call(this,e);var f=this,h=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",g={};e.validate&&(this.validate=e.validate);g.rows=e.rows||5;g.cols=e.cols||20;g["class"]="cke_dialog_ui_input_textarea "+(e["class"]||"");"undefined"!=typeof e.inputStyle&&(g.style=e.inputStyle);e.dir&&(g.dir=e.dir);if(f.bidi)d.on("load",
function(){f.getInputElement().on("keyup",c)},f);CKEDITOR.ui.dialog.labeledElement.call(this,d,e,b,function(){g["aria-labelledby"]=this._.labelId;this._.required&&(g["aria-required"]=this._.required);var b=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',h,'" '],a;for(a in g)b.push(a+'\x3d"'+CKEDITOR.tools.htmlEncode(g[a])+'" ');b.push("\x3e",CKEDITOR.tools.htmlEncode(f._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return b.join("")})}},checkbox:function(c,
e,b){if(!(3>arguments.length)){var d=a.call(this,e,{"default":!!e["default"]});e.validate&&(this.validate=e.validate);CKEDITOR.ui.dialog.uiElement.call(this,c,e,b,"span",null,null,function(){var b=CKEDITOR.tools.extend({},e,{id:e.id?e.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),a=[],f=CKEDITOR.tools.getNextId()+"_label",h={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":f};k(b);e["default"]&&(h.checked="checked");"undefined"!=typeof b.inputStyle&&(b.style=b.inputStyle);
d.checkbox=new CKEDITOR.ui.dialog.uiElement(c,b,a,"input",null,h);a.push(' \x3clabel id\x3d"',f,'" for\x3d"',h.id,'"'+(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(e.label),"\x3c/label\x3e");return a.join("")})}},radio:function(c,e,b){if(!(3>arguments.length)){a.call(this,e);this._["default"]||(this._["default"]=this._.initValue=e.items[0][1]);e.validate&&(this.validate=e.validate);var d=[],f=this;e.role="radiogroup";e.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this,
c,e,b,function(){for(var b=[],a=[],h=(e.id?e.id:CKEDITOR.tools.getNextId())+"_radio",g=0;g<e.items.length;g++){var m=e.items[g],t=void 0!==m[2]?m[2]:m[0],w=void 0!==m[1]?m[1]:m[0],x=CKEDITOR.tools.getNextId()+"_radio_input",y=x+"_label",x=CKEDITOR.tools.extend({},e,{id:x,title:null,type:null},!0),t=CKEDITOR.tools.extend({},x,{title:t},!0),A={type:"radio","class":"cke_dialog_ui_radio_input",name:h,value:w,"aria-labelledby":y},z=[];f._["default"]==w&&(A.checked="checked");k(x);k(t);"undefined"!=typeof x.inputStyle&&
(x.style=x.inputStyle);x.keyboardFocusable=!0;d.push(new CKEDITOR.ui.dialog.uiElement(c,x,z,"input",null,A));z.push(" ");new CKEDITOR.ui.dialog.uiElement(c,t,z,"label",null,{id:y,"for":A.id},m[0]);b.push(z.join(""))}new CKEDITOR.ui.dialog.hbox(c,d,b,a);return a.join("")});this._.children=d}},button:function(c,e,b){if(arguments.length){"function"==typeof e&&(e=e(c.getParentEditor()));a.call(this,e,{disabled:e.disabled||!1});CKEDITOR.event.implementOn(this);var d=this;c.on("load",function(){var b=this.getElement();
(function(){b.on("click",function(b){d.click();b.data.preventDefault()});b.on("keydown",function(b){b.data.getKeystroke()in{32:1}&&(d.click(),b.data.preventDefault())})})();b.unselectable()},this);var f=CKEDITOR.tools.extend({},e);delete f.style;var h=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,c,f,b,"a",null,{style:e.style,href:"javascript:void(0)",title:e.label,hidefocus:"true","class":e["class"],role:"button","aria-labelledby":h},'\x3cspan id\x3d"'+h+'" class\x3d"cke_dialog_ui_button"\x3e'+
CKEDITOR.tools.htmlEncode(e.label)+"\x3c/span\x3e")}},select:function(c,e,b){if(!(3>arguments.length)){var d=a.call(this,e);e.validate&&(this.validate=e.validate);d.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,c,e,b,function(){var b=CKEDITOR.tools.extend({},e,{id:e.id?e.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),a=[],f=[],h={id:d.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};a.push('\x3cdiv class\x3d"cke_dialog_ui_input_',
e.type,'" role\x3d"presentation"');e.width&&a.push('style\x3d"width:'+e.width+'" ');a.push("\x3e");void 0!==e.size&&(h.size=e.size);void 0!==e.multiple&&(h.multiple=e.multiple);k(b);for(var g=0,m;g<e.items.length&&(m=e.items[g]);g++)f.push('\x3coption value\x3d"',CKEDITOR.tools.htmlEncode(void 0!==m[1]?m[1]:m[0]).replace(/"/g,"\x26quot;"),'" /\x3e ',CKEDITOR.tools.htmlEncode(m[0]));"undefined"!=typeof b.inputStyle&&(b.style=b.inputStyle);d.select=new CKEDITOR.ui.dialog.uiElement(c,b,a,"select",null,
h,f.join(""));a.push("\x3c/div\x3e");return a.join("")})}},file:function(c,e,b){if(!(3>arguments.length)){void 0===e["default"]&&(e["default"]="");var d=CKEDITOR.tools.extend(a.call(this,e),{definition:e,buttons:[]});e.validate&&(this.validate=e.validate);c.on("load",function(){CKEDITOR.document.getById(d.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,c,e,b,function(){d.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var b=['\x3ciframe frameborder\x3d"0" allowtransparency\x3d"0" class\x3d"cke_dialog_ui_input_file" role\x3d"presentation" id\x3d"',
d.frameId,'" title\x3d"',e.label,'" src\x3d"javascript:void('];b.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");b.push(')"\x3e\x3c/iframe\x3e');return b.join("")})}},fileButton:function(c,e,b){var d=this;if(!(3>arguments.length)){a.call(this,e);e.validate&&(this.validate=e.validate);var f=CKEDITOR.tools.extend({},e),h=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(b){var a=
e["for"];b=h?h.call(this,b):!1;!1!==b&&("xhr"!==b&&c.getContentElement(a[0],a[1]).submit(),this.disable())};c.on("load",function(){c.getContentElement(e["for"][0],e["for"][1])._.buttons.push(d)});CKEDITOR.ui.dialog.button.call(this,c,f,b)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,c=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,b=/\/$/;return function(d,f,h){if(!(3>arguments.length)){var g=[],k=f.html;"\x3c"!=k.charAt(0)&&(k="\x3cspan\x3e"+k+"\x3c/span\x3e");var m=f.focus;if(m){var s=this.focus;
this.focus=function(){("function"==typeof m?m:s).call(this);this.fire("focus")};f.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,d,f,g,"span",null,null,"");g=g.join("").match(a);k=k.match(c)||["","",""];b.test(k[1])&&(k[1]=k[1].slice(0,-1),k[2]="/"+k[2]);h.push([k[1]," ",g[1]||"",k[2]].join(""))}}}(),fieldset:function(a,c,b,d,f){var h=f.label;this._={children:c};CKEDITOR.ui.dialog.uiElement.call(this,a,f,d,"fieldset",null,null,function(){var a=
[];h&&a.push("\x3clegend"+(f.labelStyle?' style\x3d"'+f.labelStyle+'"':"")+"\x3e"+h+"\x3c/legend\x3e");for(var c=0;c<b.length;c++)a.push(b[c]);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 c=CKEDITOR.document.getById(this._.labelId);1>c.getChildCount()?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(c):c.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:h},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled?this.fire("click",{dialog:this._.dialog}):!1},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,c){this.on("click",function(){c.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 c=a.getInputElement();c&&c.$.focus()},0)},select:function(){var a=this.selectParentTab();setTimeout(function(){var c=a.getInputElement();c&&(c.$.focus(),c.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var c=a&&a.charAt(0);(c=""==c?"ltr":""==c?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(c)}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 c=this.getDirectionMarker();c&&(a=("ltr"==c?"":"")+a)}return a},setDirectionMarker:function(a){var c=this.getInputElement();a?c.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&c.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},f,!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,c,b){var d=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),f=this.getInputElement().$;d.$.text=a;d.$.value=void 0===c||null===c?a:c;void 0===b||null===b?CKEDITOR.env.ie?f.add(d.$):f.add(d.$,null):f.add(d.$,b);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},f,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,c){this.getInputElement().$.checked=a;!c&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,
c){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return h.onChange.apply(this,arguments);a.on("load",function(){var b=this._.checkbox.getElement();b.on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.fire("change",{value:b.$.checked})},this)},this);this.on("change",c);return null}},keyboardFocusable:!0},f,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,c){for(var b=this._.children,d,f=0;f<b.length&&(d=b[f]);f++)d.getElement().$.checked=
d.getValue()==a;!c&&this.fire("change",{value:a})},getValue:function(){for(var a=this._.children,c=0;c<a.length;c++)if(a[c].getElement().$.checked)return a[c].getValue();return null},accessKeyUp:function(){var a=this._.children,c;for(c=0;c<a.length;c++)if(a[c].getElement().$.checked){a[c].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,c){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return h.onChange.apply(this,arguments);a.on("load",function(){for(var b=
this._.children,a=this,c=0;c<b.length;c++)b[c].getElement().on("propertychange",function(b){b=b.data.$;"checked"==b.propertyName&&this.$.checked&&a.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",c);return null}}},f,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,f,{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 c=/^on([A-Z]\w+)/,b,d=function(b,a,c,d){b.on("formLoaded",function(){b.getInputElement().on(c,d,b)})},f;for(f in a)if(b=f.match(c))this.eventProcessors[f]?this.eventProcessors[f].call(this,this._.dialog,a[f]):d(this,this._.dialog,b[1].toLowerCase(),a[f]);return this},reset:function(){function a(){b.$.open();
var l="";d.size&&(l=d.size-(CKEDITOR.env.ie?7:0));var t=c.frameId+"_input";b.$.write(['\x3chtml dir\x3d"'+k+'" 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"'+k+'" lang\x3d"'+m+'" action\x3d"',CKEDITOR.tools.htmlEncode(d.action),'"\x3e\x3clabel id\x3d"',c.labelId,'" for\x3d"',t,'" style\x3d"display:none"\x3e',CKEDITOR.tools.htmlEncode(d.label),
'\x3c/label\x3e\x3cinput style\x3d"width:100%" id\x3d"',t,'" aria-labelledby\x3d"',c.labelId,'" type\x3d"file" name\x3d"',CKEDITOR.tools.htmlEncode(d.id||"cke_upload"),'" size\x3d"',CKEDITOR.tools.htmlEncode(0<l?l:""),'" /\x3e\x3c/form\x3e\x3c/body\x3e\x3c/html\x3e\x3cscript\x3e',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+h+");","window.onbeforeunload \x3d function() {window.parent.CKEDITOR.tools.callFunction("+g+")}","\x3c/script\x3e"].join(""));
b.$.close();for(l=0;l<f.length;l++)f[l].enable()}var c=this._,b=CKEDITOR.document.getById(c.frameId).getFrameDocument(),d=c.definition,f=c.buttons,h=this.formLoadedNumber,g=this.formUnloadNumber,k=c.dialog._.editor.lang.dir,m=c.dialog._.editor.langCode;h||(h=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(h);
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,c){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",c)}},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,c,b){for(var d=c.children,f,h=[],g=[],k=0;k<d.length&&(f=d[k]);k++){var m=[];h.push(m);g.push(CKEDITOR.dialog._.uiElementBuilders[f.type].build(a,f,m))}return new CKEDITOR.ui.dialog[c.type](a,g,h,b,c)}})}}),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 a(){for(var b=
this._.tabIdList.length,a=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+b,c=a-1;c>a-b;c--)if(this._.tabs[this._.tabIdList[c%b]][0].$.offsetHeight)return this._.tabIdList[c%b];return null}function g(){for(var b=this._.tabIdList.length,a=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),c=a+1;c<a+b;c++)if(this._.tabs[this._.tabIdList[c%b]][0].$.offsetHeight)return this._.tabIdList[c%b];return null}function d(b,a){for(var c=b.$.getElementsByTagName("input"),d=0,e=c.length;d<
e;d++){var f=new CKEDITOR.dom.element(c[d]);"text"==f.getAttribute("type").toLowerCase()&&(a?(f.setAttribute("value",f.getCustomData("fake_value")||""),f.removeCustomData("fake_value")):(f.setCustomData("fake_value",f.getAttribute("value")),f.setAttribute("value","")))}}function f(b,a){var c=this.getInputElement();c&&(b?c.removeAttribute("aria-invalid"):c.setAttribute("aria-invalid",!0));b||(this.select?this.select():this.focus());a&&alert(a);this.fire("validated",{valid:b,msg:a})}function h(){var b=
this.getInputElement();b&&b.removeAttribute("aria-invalid")}function m(b){var a=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",q).output({id:CKEDITOR.tools.getNextNumber(),editorId:b.id,langDir:b.lang.dir,langCode:b.langCode,editorDialogClass:"cke_editor_"+b.name.replace(/\./g,"\\.")+"_dialog",closeTitle:b.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),c=a.getChild([0,0,0,0,0]),d=c.getChild(0),e=c.getChild(1);b.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(c);
CKEDITOR.env.ie&&(!CKEDITOR.env.quirks&&!CKEDITOR.env.edge)&&(b="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"'+b+'" tabIndex\x3d"-1"\x3e\x3c/iframe\x3e').appendTo(c.getParent()));d.unselectable();e.unselectable();return{element:a,parts:{dialog:a.getChild(0),title:d,close:e,tabs:c.getChild(2),contents:c.getChild([3,0,
0,0]),footer:c.getChild([3,0,1,0])}}}function k(b,a,c){this.element=a;this.focusIndex=c;this.tabIndex=0;this.isFocusable=function(){return!a.getAttribute("disabled")&&a.isVisible()};this.focus=function(){b._.currentFocusIndex=this.focusIndex;this.element.focus()};a.on("keydown",function(b){b.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});a.on("focus",function(){this.fire("mouseover")});a.on("blur",function(){this.fire("mouseout")})}function c(b){function a(){b.layout()}var c=CKEDITOR.document.getWindow();
c.on("resize",a);b.on("hide",function(){c.removeListener("resize",a)})}function l(b,a){this._={dialog:b};CKEDITOR.tools.extend(this,a)}function e(b){function a(c){var k=b.getSize(),l=CKEDITOR.document.getWindow().getViewPaneSize(),m=c.data.$.screenX,n=c.data.$.screenY,t=m-d.x,p=n-d.y;d={x:m,y:n};e.x+=t;e.y+=p;b.move(e.x+g[3]<h?-g[3]:e.x-g[1]>l.width-k.width-h?l.width-k.width+("rtl"==f.lang.dir?0:g[1]):e.x,e.y+g[0]<h?-g[0]:e.y-g[2]>l.height-k.height-h?l.height-k.height+g[2]:e.y,1);c.data.preventDefault()}
function c(){CKEDITOR.document.removeListener("mousemove",a);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var b=z.getChild(0).getFrameDocument();b.removeListener("mousemove",a);b.removeListener("mouseup",c)}}var d=null,e=null,f=b.getParentEditor(),h=f.config.dialog_magnetDistance,g=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof h&&(h=20);b.parts.title.on("mousedown",function(f){d={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",a);CKEDITOR.document.on("mouseup",
c);e=b.getPosition();if(CKEDITOR.env.ie6Compat){var h=z.getChild(0).getFrameDocument();h.on("mousemove",a);h.on("mouseup",c)}f.data.preventDefault()},b)}function b(b){function a(c){var n="rtl"==f.lang.dir,t=m.width,p=m.height,u=t+(c.data.$.screenX-l.x)*(n?-1:1)*(b._.moved?1:2),w=p+(c.data.$.screenY-l.y)*(b._.moved?1:2),s=b._.element.getFirst(),s=n&&s.getComputedStyle("right"),v=b.getPosition();v.y+w>k.height&&(w=k.height-v.y);if((n?s:v.x)+u>k.width)u=k.width-(n?s:v.x);if(e==CKEDITOR.DIALOG_RESIZE_WIDTH||
e==CKEDITOR.DIALOG_RESIZE_BOTH)t=Math.max(d.minWidth||0,u-h);if(e==CKEDITOR.DIALOG_RESIZE_HEIGHT||e==CKEDITOR.DIALOG_RESIZE_BOTH)p=Math.max(d.minHeight||0,w-g);b.resize(t,p);b._.moved||b.layout();c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mouseup",c);CKEDITOR.document.removeListener("mousemove",a);n&&(n.remove(),n=null);if(CKEDITOR.env.ie6Compat){var b=z.getChild(0).getFrameDocument();b.removeListener("mouseup",c);b.removeListener("mousemove",a)}}var d=b.definition,e=d.resizable;
if(e!=CKEDITOR.DIALOG_RESIZE_NONE){var f=b.getParentEditor(),h,g,k,l,m,n,t=CKEDITOR.tools.addFunction(function(d){m=b.getSize();var e=b.parts.contents;e.$.getElementsByTagName("iframe").length&&(n=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%;"\x3e\x3c/div\x3e'),e.append(n));g=m.height-b.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));h=m.width-b.parts.contents.getSize("width",
1);l={x:d.screenX,y:d.screenY};k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",a);CKEDITOR.document.on("mouseup",c);CKEDITOR.env.ie6Compat&&(e=z.getChild(0).getFrameDocument(),e.on("mousemove",a),e.on("mouseup",c));d.preventDefault&&d.preventDefault()});b.on("load",function(){var a="";e==CKEDITOR.DIALOG_RESIZE_WIDTH?a=" cke_resizer_horizontal":e==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(a=" cke_resizer_vertical");a=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+
a+" cke_resizer_"+f.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(f.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+t+', event )"\x3e'+("ltr"==f.lang.dir?"◢":"◣")+"\x3c/div\x3e");b.parts.footer.append(a,1)});f.on("destroy",function(){CKEDITOR.tools.removeFunction(t)})}}function n(b){b.data.preventDefault(1)}function p(b){var a=CKEDITOR.document.getWindow(),c=b.config,d=CKEDITOR.skinName||b.config.skin,e=c.dialog_backgroundCoverColor||("moono-lisa"==d?"black":"white"),d=c.dialog_backgroundCoverOpacity,
f=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(e,d,f),h=A[c];h?h.show():(f=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",f,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+e:"",'" class\x3d"cke_dialog_background_cover"\x3e'],CKEDITOR.env.ie6Compat&&(e="\x3chtml\x3e\x3cbody style\x3d\\'background-color:"+e+";\\'\x3e\x3c/body\x3e\x3c/html\x3e",f.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),
f.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+e+"' );document.close();")+"})())"),f.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')),f.push("\x3c/div\x3e"),h=CKEDITOR.dom.element.createFromHtml(f.join("")),h.setOpacity(void 0!==d?d:0.5),h.on("keydown",n),h.on("keypress",n),h.on("keyup",n),h.appendTo(CKEDITOR.document.getBody()),
A[c]=h);b.focusManager.add(h);z=h;b=function(){var b=a.getViewPaneSize();h.setStyles({width:b.width+"px",height:b.height+"px"})};var g=function(){var b=a.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;h.setStyles({left:b.x+"px",top:b.y+"px"});if(c){do b=c.getPosition(),c.move(b.x,b.y);while(c=c._.parentDialog)}};y=b;a.on("resize",b);b();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&h.focus();if(CKEDITOR.env.ie6Compat){var k=function(){g();k.prevScrollHandler.apply(this,arguments)};a.$.setTimeout(function(){k.prevScrollHandler=
window.onscroll||function(){};window.onscroll=k},0);g()}}function v(b){z&&(b.focusManager.remove(z),b=CKEDITOR.document.getWindow(),z.hide(),z=null,b.removeListener("resize",y),CKEDITOR.env.ie6Compat&&b.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),y=null)}var r=CKEDITOR.tools.cssLength,q='\x3cdiv class\x3d"cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"dialog" aria-labelledby\x3d"cke_dialog_title_{id}"\x3e\x3ctable class\x3d"cke_dialog '+
CKEDITOR.env.cssClass+' cke_{langDir}" style\x3d"position:absolute" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_dialog_body" role\x3d"presentation"\x3e\x3cdiv id\x3d"cke_dialog_title_{id}" class\x3d"cke_dialog_title" role\x3d"presentation"\x3e\x3c/div\x3e\x3ca id\x3d"cke_dialog_close_button_{id}" class\x3d"cke_dialog_close_button" href\x3d"javascript:void(0)" title\x3d"{closeTitle}" role\x3d"button"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e\x3cdiv id\x3d"cke_dialog_tabs_{id}" class\x3d"cke_dialog_tabs" role\x3d"tablist"\x3e\x3c/div\x3e\x3ctable class\x3d"cke_dialog_contents" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_contents_{id}" class\x3d"cke_dialog_contents_body" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_footer_{id}" class\x3d"cke_dialog_footer" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e';
CKEDITOR.dialog=function(c,d){function k(){var b=y._.focusList;b.sort(function(b,a){return b.tabIndex!=a.tabIndex?a.tabIndex-b.tabIndex:b.focusIndex-a.focusIndex});for(var a=b.length,c=0;c<a;c++)b[c].focusIndex=c}function l(b){var a=y._.focusList;b=b||0;if(!(1>a.length)){var c=y._.currentFocusIndex;y._.tabBarMode&&0>b&&(c=0);try{a[c].getInputElement().$.blur()}catch(d){}var e=c,f=1<y._.pageCount;do{e+=b;if(f&&!y._.tabBarMode&&(e==a.length||-1==e)){y._.tabBarMode=!0;y._.tabs[y._.currentTabId][0].focus();
y._.currentFocusIndex=-1;return}e=(e+a.length)%a.length;if(e==c)break}while(b&&!a[e].isFocusable());a[e].focus();"text"==a[e].type&&a[e].select()}}function n(b){if(y==CKEDITOR.dialog._.currentTop){var d=b.data.getKeystroke(),e="rtl"==c.lang.dir,f=[37,38,39,40];r=q=0;if(9==d||d==CKEDITOR.SHIFT+9)l(d==CKEDITOR.SHIFT+9?-1:1),r=1;else if(d==CKEDITOR.ALT+121&&!y._.tabBarMode&&1<y.getPageCount())y._.tabBarMode=!0,y._.tabs[y._.currentTabId][0].focus(),y._.currentFocusIndex=-1,r=1;else if(-1!=CKEDITOR.tools.indexOf(f,
d)&&y._.tabBarMode)d=-1!=CKEDITOR.tools.indexOf([e?39:37,38],d)?a.call(y):g.call(y),y.selectPage(d),y._.tabs[d][0].focus(),r=1;else if((13==d||32==d)&&y._.tabBarMode)this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1),r=1;else if(13==d){d=b.data.getTarget();if(!d.is("a","button","select","textarea")&&(!d.is("input")||"button"!=d.$.type))(d=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(d.click,0,d),r=1;q=1}else if(27==d)(d=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(d.click,
0,d):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),q=1;else return;t(b)}}function t(b){r?b.data.preventDefault(1):q&&b.data.stopPropagation()}var p=CKEDITOR.dialog._.dialogDefinitions[d],w=CKEDITOR.tools.clone(u),s=c.config.dialog_buttonsOrder||"OS",v=c.lang.dir,A={},r,q;("OS"==s&&CKEDITOR.env.mac||"rtl"==s&&"ltr"==v||"ltr"==s&&"rtl"==v)&&w.buttons.reverse();p=CKEDITOR.tools.extend(p(c),w);p=CKEDITOR.tools.clone(p);p=new x(this,p);w=m(c);this._={editor:c,element:w.element,name:d,contentSize:{width:0,
height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1};this.parts=w.parts;CKEDITOR.tools.setTimeout(function(){c.fire("ariaWidget",this.parts.contents)},0,this);w={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};w["rtl"==v?"right":"left"]=0;this.parts.dialog.setStyles(w);CKEDITOR.event.call(this);this.definition=
p=CKEDITOR.fire("dialogDefinition",{name:d,definition:p},c).definition;if(!("removeDialogTabs"in c._)&&c.config.removeDialogTabs){w=c.config.removeDialogTabs.split(";");for(v=0;v<w.length;v++)if(s=w[v].split(":"),2==s.length){var H=s[0];A[H]||(A[H]=[]);A[H].push(s[1])}c._.removeDialogTabs=A}if(c._.removeDialogTabs&&(A=c._.removeDialogTabs[d]))for(v=0;v<A.length;v++)p.removeContents(A[v]);if(p.onLoad)this.on("load",p.onLoad);if(p.onShow)this.on("show",p.onShow);if(p.onHide)this.on("hide",p.onHide);
if(p.onOk)this.on("ok",function(b){c.fire("saveSnapshot");setTimeout(function(){c.fire("saveSnapshot")},0);!1===p.onOk.call(this,b)&&(b.data.hide=!1)});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(p.onCancel)this.on("cancel",function(b){!1===p.onCancel.call(this,b)&&(b.data.hide=!1)});var y=this,z=function(b){var a=y._.contents,c=!1,d;for(d in a)for(var e in a[d])if(c=b.call(this,a[d][e]))return};this.on("ok",function(b){z(function(a){if(a.validate){var c=a.validate(this),d="string"==typeof c||!1===c;
d&&(b.data.hide=!1,b.stop());f.call(a,!d,"string"==typeof c?c:void 0);return d}})},this,null,0);this.on("cancel",function(b){z(function(a){if(a.isChanged())return!c.config.dialog_noConfirmCancel&&!confirm(c.lang.common.confirmCancel)&&(b.data.hide=!1),!0})},this,null,0);this.parts.close.on("click",function(b){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide();b.data.preventDefault()},this);this.changeFocus=l;var B=this._.element;c.focusManager.add(B,1);this.on("show",function(){B.on("keydown",n,
this);if(CKEDITOR.env.gecko)B.on("keypress",t,this)});this.on("hide",function(){B.removeListener("keydown",n);CKEDITOR.env.gecko&&B.removeListener("keypress",t);z(function(b){h.apply(b)})});this.on("iframeAdded",function(b){(new CKEDITOR.dom.document(b.data.iframe.$.contentWindow.document)).on("keydown",n,this,null,0)});this.on("show",function(){k();var b=1<y._.pageCount;c.config.dialog_startupFocusTab&&b?(y._.tabBarMode=!0,y._.tabs[y._.currentTabId][0].focus(),y._.currentFocusIndex=-1):this._.hasFocus||
(this._.currentFocusIndex=b?-1:this._.focusList.length-1,p.onFocus?(b=p.onFocus.call(this))&&b.focus():l(1))},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var b=this.getElement(),a=b.getFirst();a.remove();a.appendTo(b)},this);e(this);b(this);(new CKEDITOR.dom.text(p.title,CKEDITOR.document)).appendTo(this.parts.title);for(v=0;v<p.contents.length;v++)(A=p.contents[v])&&this.addPage(A);this.parts.tabs.on("click",function(b){var a=b.data.getTarget();a.hasClass("cke_dialog_tab")&&
(a=a.$.id,this.selectPage(a.substring(4,a.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1)),b.data.preventDefault())},this);v=[];A=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:p.buttons},v).getChild();this.parts.footer.setHtml(v.join(""));for(v=0;v<A.length;v++)this._.buttons[A[v].id]=A[v]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(b,
a){if(!this._.contentSize||!(this._.contentSize.width==b&&this._.contentSize.height==a))CKEDITOR.dialog.fire("resize",{dialog:this,width:b,height:a},this._.editor),this.fire("resize",{width:b,height:a},this._.editor),this.parts.contents.setStyles({width:b+"px",height:a+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:b,
height:a}}}(),getSize:function(){var b=this._.element.getFirst();return{width:b.$.offsetWidth||0,height:b.$.offsetHeight||0}},move:function(b,a,c){var d=this._.element.getFirst(),e="rtl"==this._.editor.lang.dir,f="fixed"==d.getComputedStyle("position");CKEDITOR.env.ie&&d.setStyle("zoom","100%");if(!f||!this._.position||!(this._.position.x==b&&this._.position.y==a))this._.position={x:b,y:a},f||(f=CKEDITOR.document.getWindow().getScrollPosition(),b+=f.x,a+=f.y),e&&(f=this.getSize(),b=CKEDITOR.document.getWindow().getViewPaneSize().width-
f.width-b),a={top:(0<a?a:0)+"px"},a[e?"right":"left"]=(0<b?b:0)+"px",d.setStyles(a),c&&(this._.moved=1)},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var b=this._.element,a=this.definition;!b.getParent()||!b.getParent().equals(CKEDITOR.document.getBody())?b.appendTo(CKEDITOR.document.getBody()):b.setStyle("display","block");this.resize(this._.contentSize&&this._.contentSize.width||a.width||a.minWidth,this._.contentSize&&this._.contentSize.height||a.height||
a.minHeight);this.reset();null===this._.currentTabId&&this.selectPage(this.definition.contents[0].id);null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,p(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=
Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this);b.on("keydown",E);b.on("keyup",F);this._.hasFocus=!1;for(var d in a.contents)if(a.contents[d]){var b=a.contents[d],e=this._.tabs[b.id],f=b.requiredContent,h=0;if(e){for(var g in this._.contents[b.id]){var k=this._.contents[b.id][g];"hbox"==k.type||("vbox"==k.type||!k.getInputElement())||(k.requiredContent&&!this._.editor.activeFilter.check(k.requiredContent)?k.disable():(k.enable(),h++))}!h||f&&!this._.editor.activeFilter.check(f)?
e[0].addClass("cke_dialog_tab_disabled"):e[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();c(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(b){b.setInitValue&&b.setInitValue()})},100,this)},layout:function(){var b=this.parts.dialog,a=this.getSize(),c=CKEDITOR.document.getWindow().getViewPaneSize(),
d=(c.width-a.width)/2,e=(c.height-a.height)/2;CKEDITOR.env.ie6Compat||(a.height+(0<e?e:0)>c.height||a.width+(0<d?d:0)>c.width?b.setStyle("position","absolute"):b.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:d,this._.moved?this._.position.y:e)},foreach:function(b){for(var a in this._.contents)for(var c in this._.contents[a])b.call(this,this._.contents[a][c]);return this},reset:function(){var b=function(b){b.reset&&b.reset(1)};return function(){this.foreach(b);return this}}(),
setupContent:function(){var b=arguments;this.foreach(function(a){a.setup&&a.setup.apply(a,b)})},commitContent:function(){var b=arguments;this.foreach(function(a){CKEDITOR.env.ie&&this._.currentFocusIndex==a.focusIndex&&a.getInputElement().$.blur();a.commit&&a.commit.apply(a,b)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);var b=this._.element;b.setStyle("display","none");this.parts.dialog.setStyle("visibility",
"hidden");for(J(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var a=this._.parentDialog.getElement().getFirst();a.setStyle("z-index",parseInt(a.$.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;b.removeListener("keydown",E);b.removeListener("keyup",F);var c=this._.editor;
c.focus();setTimeout(function(){c.focusManager.unlock();CKEDITOR.env.iOS&&c.window.focus()},0)}delete this._.parentDialog;this.foreach(function(b){b.resetInitValue&&b.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(b){if(!b.requiredContent||this._.editor.filter.check(b.requiredContent)){for(var a=[],c=b.label?' title\x3d"'+CKEDITOR.tools.htmlEncode(b.label)+'"':"",d=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",
children:b.elements,expand:!!b.expand,padding:b.padding,style:b.style||"width: 100%;"},a),e=this._.contents[b.id]={},f=d.getChild(),h=0;d=f.shift();)!d.notAllowed&&("hbox"!=d.type&&"vbox"!=d.type)&&h++,e[d.id]=d,"function"==typeof d.getChild&&f.push.apply(f,d.getChild());h||(b.hidden=!0);a=CKEDITOR.dom.element.createFromHtml(a.join(""));a.setAttribute("role","tabpanel");d=CKEDITOR.env;e="cke_"+b.id+"_"+CKEDITOR.tools.getNextNumber();c=CKEDITOR.dom.element.createFromHtml(['\x3ca class\x3d"cke_dialog_tab"',
0<this._.pageCount?" cke_last":"cke_first",c,b.hidden?' style\x3d"display:none"':"",' id\x3d"',e,'"',d.gecko&&!d.hc?"":' href\x3d"javascript:void(0)"',' tabIndex\x3d"-1" hidefocus\x3d"true" role\x3d"tab"\x3e',b.label,"\x3c/a\x3e"].join(""));a.setAttribute("aria-labelledby",e);this._.tabs[b.id]=[c,a];this._.tabIdList.push(b.id);!b.hidden&&this._.pageCount++;this._.lastTab=c;this.updateStyle();a.setAttribute("name",b.id);a.appendTo(this.parts.contents);c.unselectable();this.parts.tabs.append(c);b.accessKey&&
(H(this,this,"CTRL+"+b.accessKey,L,I),this._.accessKeyMap["CTRL+"+b.accessKey]=b.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 a in this._.tabs){var c=this._.tabs[a][0],e=this._.tabs[a][1];a!=b&&(c.removeClass("cke_dialog_tab_selected"),e.hide());e.setAttribute("aria-hidden",a!=b)}var f=this._.tabs[b];f[0].addClass("cke_dialog_tab_selected");CKEDITOR.env.ie6Compat||
CKEDITOR.env.ie7Compat?(d(f[1]),f[1].show(),setTimeout(function(){d(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(b){var c=this._.tabs[b]&&this._.tabs[b][0];c&&(1!=this._.pageCount&&c.isVisible())&&(b==this._.currentTabId&&this.selectPage(a.call(this)),c.hide(),this._.pageCount--,this.updateStyle())},showPage:function(b){if(b=
this._.tabs[b]&&this._.tabs[b][0])b.show(),this._.pageCount++,this.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(b,a){var c=this._.contents[b];return c&&c[a]},getValueOf:function(b,a){return this.getContentElement(b,a).getValue()},setValueOf:function(b,a,c){return this.getContentElement(b,a).setValue(c)},getButton:function(b){return this._.buttons[b]},click:function(b){return this._.buttons[b].click()},disableButton:function(b){return this._.buttons[b].disable()},
enableButton:function(b){return this._.buttons[b].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(b,a){if("undefined"==typeof a)a=this._.focusList.length,this._.focusList.push(new k(this,b,a));else{this._.focusList.splice(a,0,new k(this,b,a));for(var c=a+1;c<this._.focusList.length;c++)this._.focusList[c].focusIndex++}},
setState:function(b){if(this.state!=b){this.state=b;if(b==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var a=this.getParentEditor().lang.dir,c={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==a?"right":"left"}};c.styles["margin-"+("rtl"==a?"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 b==
CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",b)}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(b,a){if(!this._.dialogDefinitions[b]||"function"==typeof a)this._.dialogDefinitions[b]=a},exists:function(b){return!!this._.dialogDefinitions[b]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(b,a,c){b=b.config.removeDialogTabs;return!(b&&b.match(RegExp("(?:^|;)"+a+":"+c+"(?:$|;)","i")))},
okButton:function(){var b=function(b,a){a=a||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:b.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(b){b=b.data.dialog;!1!==b.fire("ok",{hide:!0}).hide&&b.hide()}},a,!0)};b.type="button";b.override=function(a){return CKEDITOR.tools.extend(function(c){return b(c,a)},{type:"button"},!0)};return b}(),cancelButton:function(){var b=function(b,a){a=a||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",label:b.lang.common.cancel,
"class":"cke_dialog_ui_button_cancel",onClick:function(b){b=b.data.dialog;!1!==b.fire("cancel",{hide:!0}).hide&&b.hide()}},a,!0)};b.type="button";b.override=function(a){return CKEDITOR.tools.extend(function(c){return b(c,a)},{type:"button"},!0)};return b}(),addUIElement:function(b,a){this._.uiElementBuilders[b]=a}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);
var u={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},s=function(b,a,c){for(var d=0,e;e=b[d];d++)if(e.id==a||c&&e[c]&&(e=s(e[c],a,c)))return e;return null},t=function(b,a,c,d,e){if(c){for(var f=0,h;h=b[f];f++){if(h.id==c)return b.splice(f,0,a),a;if(d&&h[d]&&(h=t(h[d],a,c,d,!0)))return h}if(e)return null}b.push(a);return a},w=function(b,a,c){for(var d=0,e;e=b[d];d++){if(e.id==a)return b.splice(d,1);if(c&&e[c]&&(e=w(e[c],
a,c)))return e}return null},x=function(b,a){this.dialog=b;for(var c=a.contents,d=0,e;e=c[d];d++)c[d]=e&&new l(b,e);CKEDITOR.tools.extend(this,a)};x.prototype={getContents:function(b){return s(this.contents,b)},getButton:function(b){return s(this.buttons,b)},addContents:function(b,a){return t(this.contents,b,a)},addButton:function(b,a){return t(this.buttons,b,a)},removeContents:function(b){w(this.contents,b)},removeButton:function(b){w(this.buttons,b)}};l.prototype={get:function(b){return s(this.elements,
b,"children")},add:function(b,a){return t(this.elements,b,a,"children")},remove:function(b){w(this.elements,b,"children")}};var y,A={},z,D={},E=function(b){var a=b.data.$.ctrlKey||b.data.$.metaKey,c=b.data.$.altKey,d=b.data.$.shiftKey,e=String.fromCharCode(b.data.$.keyCode);if((a=D[(a?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&a.length)a=a[a.length-1],a.keydown&&a.keydown.call(a.uiElement,a.dialog,a.key),b.data.preventDefault()},F=function(b){var a=b.data.$.ctrlKey||b.data.$.metaKey,c=b.data.$.altKey,
d=b.data.$.shiftKey,e=String.fromCharCode(b.data.$.keyCode);if((a=D[(a?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&a.length)a=a[a.length-1],a.keyup&&(a.keyup.call(a.uiElement,a.dialog,a.key),b.data.preventDefault())},H=function(b,a,c,d,e){(D[c]||(D[c]=[])).push({uiElement:b,dialog:a,key:c,keyup:e||b.accessKeyUp,keydown:d||b.accessKeyDown})},J=function(b){for(var a in D){for(var c=D[a],d=c.length-1;0<=d;d--)(c[d].dialog==b||c[d].uiElement==b)&&c.splice(d,1);0===c.length&&delete D[a]}},I=function(b,
a){b._.accessKeyMap[a]&&b.selectPage(b._.accessKeyMap[a])},L=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(b,a,c,d,e,f,h){if(!(4>arguments.length)){var g=(d.call?d(a):d)||"div",k=["\x3c",g," "],l=(e&&e.call?e(a):e)||{},m=(f&&f.call?f(a):f)||{},n=(h&&h.call?h.call(this,b,a):h)||"",t=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";a.requiredContent&&!b.getParentEditor().filter.check(a.requiredContent)&&(l.display="none",this.notAllowed=!0);m.id=t;var p={};a.type&&(p["cke_dialog_ui_"+
a.type]=1);a.className&&(p[a.className]=1);a.disabled&&(p.cke_disabled=1);for(var u=m["class"]&&m["class"].split?m["class"].split(" "):[],t=0;t<u.length;t++)u[t]&&(p[u[t]]=1);u=[];for(t in p)u.push(t);m["class"]=u.join(" ");a.title&&(m.title=a.title);p=(a.style||"").split(";");a.align&&(u=a.align,l["margin-left"]="left"==u?0:"auto",l["margin-right"]="right"==u?0:"auto");for(t in l)p.push(t+":"+l[t]);a.hidden&&p.push("display:none");for(t=p.length-1;0<=t;t--)""===p[t]&&p.splice(t,1);0<p.length&&(m.style=
(m.style?m.style+"; ":"")+p.join("; "));for(t in m)k.push(t+'\x3d"'+CKEDITOR.tools.htmlEncode(m[t])+'" ');k.push("\x3e",n,"\x3c/",g,"\x3e");c.push(k.join(""));(this._||(this._={})).dialog=b;"boolean"==typeof a.isChanged&&(this.isChanged=function(){return a.isChanged});"function"==typeof a.isChanged&&(this.isChanged=a.isChanged);"function"==typeof a.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(b){return function(c){b.call(this,a.setValue.call(this,c))}}));"function"==typeof a.getValue&&
(this.getValue=CKEDITOR.tools.override(this.getValue,function(b){return function(){return a.getValue.call(this,b.call(this))}}));CKEDITOR.event.implementOn(this);this.registerEvents(a);this.accessKeyUp&&(this.accessKeyDown&&a.accessKey)&&H(this,b,"CTRL+"+a.accessKey);var w=this;b.on("load",function(){var a=w.getInputElement();if(a){var c=w.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";a.on("focus",function(){b._.tabBarMode=!1;b._.hasFocus=!0;w.fire("focus");
c&&this.addClass(c)});a.on("blur",function(){w.fire("blur");c&&this.removeClass(c)})}});CKEDITOR.tools.extend(this,a);this.keyboardFocusable&&(this.tabIndex=a.tabIndex||0,this.focusIndex=b._.focusList.push(this)-1,this.on("focus",function(){b._.currentFocusIndex=w.focusIndex}))}},hbox:function(b,a,c,d,e){if(!(4>arguments.length)){this._||(this._={});var f=this._.children=a,h=e&&e.widths||null,g=e&&e.height||null,k,l={role:"presentation"};e&&e.align&&(l.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,
b,e||{type:"hbox"},d,"table",{},l,function(){var b=['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(k=0;k<c.length;k++){var a="cke_dialog_ui_hbox_child",d=[];0===k&&(a="cke_dialog_ui_hbox_first");k==c.length-1&&(a="cke_dialog_ui_hbox_last");b.push('\x3ctd class\x3d"',a,'" role\x3d"presentation" ');h?h[k]&&d.push("width:"+r(h[k])):d.push("width:"+Math.floor(100/c.length)+"%");g&&d.push("height:"+r(g));e&&void 0!==e.padding&&d.push("padding:"+r(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&
f[k].align)&&d.push("text-align:"+f[k].align);0<d.length&&b.push('style\x3d"'+d.join("; ")+'" ');b.push("\x3e",c[k],"\x3c/td\x3e")}b.push("\x3c/tr\x3e\x3c/tbody\x3e");return b.join("")})}},vbox:function(b,a,c,d,e){if(!(3>arguments.length)){this._||(this._={});var f=this._.children=a,h=e&&e.width||null,g=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,b,e||{type:"vbox"},d,"div",null,{role:"presentation"},function(){var a=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];
a.push('style\x3d"');e&&e.expand&&a.push("height:100%;");a.push("width:"+r(h||"100%"),";");CKEDITOR.env.webkit&&a.push("float:none;");a.push('"');a.push('align\x3d"',CKEDITOR.tools.htmlEncode(e&&e.align||("ltr"==b.getParentEditor().lang.dir?"left":"right")),'" ');a.push("\x3e\x3ctbody\x3e");for(var d=0;d<c.length;d++){var k=[];a.push('\x3ctr\x3e\x3ctd role\x3d"presentation" ');h&&k.push("width:"+r(h||"100%"));g?k.push("height:"+r(g[d])):e&&e.expand&&k.push("height:"+Math.floor(100/c.length)+"%");
e&&void 0!==e.padding&&k.push("padding:"+r(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&f[d].align)&&k.push("text-align:"+f[d].align);0<k.length&&a.push('style\x3d"',k.join("; "),'" ');a.push(' class\x3d"cke_dialog_ui_vbox_child"\x3e',c[d],"\x3c/td\x3e\x3c/tr\x3e")}a.push("\x3c/tbody\x3e\x3c/table\x3e");return a.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(b,a){this.getInputElement().setValue(b);!a&&this.fire("change",{value:b});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var b=this.getInputElement();(b=b.getParent())&&-1==b.$.className.search("cke_dialog_page_contents"););if(!b)return this;b=b.getAttribute("name");this._.dialog._.currentTabId!=b&&this._.dialog.selectPage(b);return this},focus:function(){this.selectParentTab().getInputElement().focus();
return this},registerEvents:function(b){var a=/^on([A-Z]\w+)/,c,d=function(b,a,c,d){a.on("load",function(){b.getInputElement().on(c,d,b)})},e;for(e in b)if(c=e.match(a))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,b[e]):d(this,this._.dialog,c[1].toLowerCase(),b[e]);return this},eventProcessors:{onLoad:function(b,a){b.on("load",a,this)},onShow:function(b,a){b.on("show",a,this)},onHide:function(b,a){b.on("hide",a,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},
disable:function(){var b=this.getElement();this.getInputElement().setAttribute("disabled","true");b.addClass("cke_disabled")},enable:function(){var b=this.getElement();this.getInputElement().removeAttribute("disabled");b.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!this.isEnabled()||!this.isVisible()?!1:!0}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,
{getChild:function(b){if(1>arguments.length)return this._.children.concat();b.splice||(b=[b]);return 2>b.length?this._.children[b[0]]:this._.children[b[0]]&&this._.children[b[0]].getChild?this._.children[b[0]].getChild(b.slice(1,b.length)):null}},!0);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var b={build:function(b,a,c){for(var d=a.children,e,f=[],h=[],g=0;g<d.length&&(e=d[g]);g++){var k=[];f.push(k);h.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(b,e,k))}return new CKEDITOR.ui.dialog[a.type](b,
h,f,c,a)}};CKEDITOR.dialog.addUIElement("hbox",b);CKEDITOR.dialog.addUIElement("vbox",b)})();CKEDITOR.dialogCommand=function(b,a){this.dialogName=b;CKEDITOR.tools.extend(this,a,!0)};CKEDITOR.dialogCommand.prototype={exec:function(b){var a=this.tabId;b.openDialog(this.dialogName,function(b){a&&b.selectPage(a)})},canUndo:!1,editorFocus:1};(function(){var b=/^([a]|[^a])+$/,a=/^\d*$/,c=/^\d*(?:\.\d+)?$/,d=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,
f=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var b=arguments;return function(){var a=this&&this.getValue?this.getValue():b[0],c,d=CKEDITOR.VALIDATE_AND,e=[],f;for(f=0;f<b.length;f++)if("function"==typeof b[f])e.push(b[f]);else break;f<b.length&&"string"==typeof b[f]&&(c=b[f],f++);f<b.length&&"number"==typeof b[f]&&(d=b[f]);var h=d==CKEDITOR.VALIDATE_AND?!0:!1;for(f=0;f<e.length;f++)h=d==CKEDITOR.VALIDATE_AND?h&&
e[f](a):h||e[f](a);return!h?c:!0}},regex:function(b,a){return function(c){c=this&&this.getValue?this.getValue():c;return!b.test(c)?a:!0}},notEmpty:function(a){return this.regex(b,a)},integer:function(b){return this.regex(a,b)},number:function(b){return this.regex(c,b)},cssLength:function(b){return this.functions(function(b){return e.test(CKEDITOR.tools.trim(b))},b)},htmlLength:function(b){return this.functions(function(b){return d.test(CKEDITOR.tools.trim(b))},b)},inlineStyle:function(b){return this.functions(function(b){return f.test(CKEDITOR.tools.trim(b))},
b)},equals:function(b,a){return this.functions(function(a){return a==b},a)},notEqual:function(b,a){return this.functions(function(a){return a!=b},a)}};CKEDITOR.on("instanceDestroyed",function(b){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var a;a=CKEDITOR.dialog._.currentTop;)a.hide();for(var c in A)A[c].remove();A={}}b=b.editor._.storedDialogs;for(var d in b)b[d].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(b,a){var c=null,d=CKEDITOR.dialog._.dialogDefinitions[b];
null===CKEDITOR.dialog._.currentTop&&p(this);if("function"==typeof d)c=this._.storedDialogs||(this._.storedDialogs={}),c=c[b]||(c[b]=new CKEDITOR.dialog(this,b)),a&&a.call(c,c),c.show();else{if("failed"==d)throw v(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+b+'" failed when loading definition.');"string"==typeof d&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(d),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[b]&&(CKEDITOR.dialog._.dialogDefinitions[b]="failed");this.openDialog(b,
a)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return c}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(a){a.on("doubleclick",function(g){g.data.dialog&&a.openDialog(g.data.dialog)},null,null,999)}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,
ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(a){var g=this;a.addCommand("a11yHelp",{exec:function(){var d=a.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(){a.lang.a11yhelp=g.langEntries[d];a.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},
readOnly:1,canUndo:!1});a.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");a.on("ariaEditorHelpLabel",function(d){d.data.label=a.lang.common.editorHelp})}})}(),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(a){var g=a.addCommand("about",new CKEDITOR.dialogCommand("about"));g.modes={wysiwyg:1,source:1};g.canUndo=!1;g.readOnly=1;a.ui.addButton&&a.ui.addButton("About",{label:a.lang.about.dlgTitle,command:"about",toolbar:"about"});
CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),CKEDITOR.plugins.add("basicstyles",{init:function(a){var g=0,d=function(d,c,h,e){if(e){e=new CKEDITOR.style(e);var b=f[h];b.unshift(e);a.attachStyleStateChange(e,function(b){!a.readOnly&&a.getCommand(h).setState(b)});a.addCommand(h,new CKEDITOR.styleCommand(e,{contentForms:b}));a.ui.addButton&&a.ui.addButton(d,{label:c,command:h,toolbar:"basicstyles,"+(g+=10)})}},f={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"]},h=a.config,m=a.lang.basicstyles;d("Bold",m.bold,"bold",h.coreStyles_bold);d("Italic",m.italic,"italic",h.coreStyles_italic);d("Underline",m.underline,"underline",h.coreStyles_underline);d("Strike",
m.strike,"strike",h.coreStyles_strike);d("Subscript",m.subscript,"subscript",h.coreStyles_subscript);d("Superscript",m.superscript,"superscript",h.coreStyles_superscript);a.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 a(b,a,c,d){if(!b.isReadOnly()&&!b.equals(c.editable())){CKEDITOR.dom.element.setMarker(d,b,"bidi_processed",1);d=b;for(var e=c.editable();(d=d.getParent())&&!d.equals(e);)if(d.getCustomData("bidi_processed")){b.removeStyle("direction");b.removeAttribute("dir");return}d="useComputedState"in c.config?c.config.useComputedState:1;if((d?b.getComputedStyle("direction"):
b.getStyle("direction")||b.hasAttribute("dir"))!=a)b.removeStyle("direction"),d?(b.removeAttribute("dir"),a!=b.getComputedStyle("direction")&&b.setAttribute("dir",a)):b.setAttribute("dir",a),c.forceNextSelectionCheck()}}function g(b,a,c){var d=b.getCommonAncestor(!1,!0);b=b.clone();b.enlarge(c==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(b.checkBoundaryOfElement(d,CKEDITOR.START)&&b.checkBoundaryOfElement(d,CKEDITOR.END)){for(var e;d&&d.type==CKEDITOR.NODE_ELEMENT&&
(e=d.getParent())&&1==e.getChildCount()&&!(d.getName()in a);)d=e;return d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in a&&d}}function d(b){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(b,a){var c=b.config.useComputedState,d,c=void 0===c||c;if(!c){d=a.lastElement;for(var e=b.editable();d&&!(d.getName()in k||d.equals(e));){var f=d.getParent();if(!f)break;d=f}}d=d||a.block||
a.blockLimit;d.equals(b.editable())&&(e=b.getSelection().getRanges()[0].getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&(d=e);d&&(c=c?d.getComputedStyle("direction"):d.getStyle("direction")||d.getAttribute("dir"),b.getCommand("bidirtl").setState("rtl"==c?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),b.getCommand("bidiltr").setState("ltr"==c?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF));c=(a.block||a.blockLimit||b.editable()).getDirection(1);if(c!=(b._.selDir||b.lang.dir))b._.selDir=c,b.fire("contentDirChanged",
c)},exec:function(c){var d=c.getSelection(),e=c.config.enterMode,f=d.getRanges();if(f&&f.length){for(var k={},l=d.createBookmarks(),f=f.createIterator(),s,t=0;s=f.getNextRange(1);){var w=s.getEnclosedNode();if(!w||w&&!(w.type==CKEDITOR.NODE_ELEMENT&&w.getName()in m))w=g(s,h,e);w&&a(w,b,c,k);var x=new CKEDITOR.dom.walker(s),y=l[t].startNode,A=l[t++].endNode;x.evaluator=function(b){var a=e==CKEDITOR.ENTER_P?"p":"div",c;if(!(c=!(b&&b.type==CKEDITOR.NODE_ELEMENT))){if(c=b.getName()in h){if(!(a=!b.is(a)))a=
b.getParent(),a=!(a&&a.type==CKEDITOR.NODE_ELEMENT)||!b.getParent().is("blockquote");c=a&&b.getPosition(y)&CKEDITOR.POSITION_FOLLOWING&&(b.getPosition(A)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING}c=!c}return!c};for(;w=x.next();)a(w,b,c,k);s=s.createIterator();for(s.enlargeBr=e!=CKEDITOR.ENTER_BR;w=s.getNextParagraph(e==CKEDITOR.ENTER_P?"p":"div");)a(w,b,c,k)}CKEDITOR.dom.element.clearAllMarkers(k);c.forceNextSelectionCheck();d.selectBookmarks(l);c.focus()}}}}
function f(b){var a=b==c.setAttribute,d=b==c.removeAttribute,e=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(c,f){if(!this.isReadOnly()){var h;if(h=c==(a||d?"dir":"direction")||"style"==c&&(d||e.test(f))){a:{h=this;for(var g=h.getDocument().getBody().getParent();h;){if(h.equals(g)){h=!1;break a}h=h.getParent()}h=!0}h=!h}if(h&&(h=this.getDirection(1),g=b.apply(this,arguments),h!=this.getDirection(1)))return this.getDocument().fire("dirChanged",this),g}return b.apply(this,arguments)}}var h={table:1,
ul:1,ol:1,blockquote:1,div:1},m={},k={};CKEDITOR.tools.extend(m,h,{tr:1,p:1,div:1,li:1});CKEDITOR.tools.extend(k,m,{td:1});CKEDITOR.plugins.add("bidi",{init:function(b){function a(c,d,e,f,h){b.addCommand(e,new CKEDITOR.command(b,f));b.ui.addButton&&b.ui.addButton(c,{label:d,command:e,toolbar:"bidi,"+h})}if(!b.blockless){var c=b.lang.bidi;a("BidiLtr",c.ltr,"bidiltr",d("ltr"),10);a("BidiRtl",c.rtl,"bidirtl",d("rtl"),20);b.on("contentDom",function(){b.document.on("dirChanged",function(a){b.fire("dirChanged",
{node:a.data,dir:a.data.getDirection(1)})})});b.on("contentDirChanged",function(a){a=(b.lang.dir!=a.data?"add":"remove")+"Class";var c=b.ui.space(b.config.toolbarLocation);if(c)c[a]("cke_mixed_dir_content")})}}});for(var c=CKEDITOR.dom.element.prototype,l=["setStyle","removeStyle","setAttribute","removeAttribute"],e=0;e<l.length;e++)c[l[e]]=CKEDITOR.tools.override(c[l[e]],f)}(),function(){var a={exec:function(a){var d=a.getCommand("blockquote").state,f=a.getSelection(),h=f&&f.getRanges()[0];if(h){var m=
f.createBookmarks();if(CKEDITOR.env.ie){var k=m[0].startNode,c=m[0].endNode,l;if(k&&"blockquote"==k.getParent().getName())for(l=k;l=l.getNext();)if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){k.move(l,!0);break}if(c&&"blockquote"==c.getParent().getName())for(l=c;l=l.getPrevious();)if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){c.move(l);break}}var e=h.createIterator();e.enlargeBr=a.config.enterMode!=CKEDITOR.ENTER_BR;if(d==CKEDITOR.TRISTATE_OFF){for(k=[];d=e.getNextParagraph();)k.push(d);
1>k.length&&(d=a.document.createElement(a.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),c=m.shift(),h.insertNode(d),d.append(new CKEDITOR.dom.text("",a.document)),h.moveToBookmark(c),h.selectNodeContents(d),h.collapse(!0),c=h.createBookmark(),k.push(d),m.unshift(c));l=k[0].getParent();h=[];for(c=0;c<k.length;c++)d=k[c],l=l.getCommonAncestor(d.getParent());for(d={table:1,tbody:1,tr:1,ol:1,ul:1};d[l.getName()];)l=l.getParent();for(c=null;0<k.length;){for(d=k.shift();!d.getParent().equals(l);)d=d.getParent();
d.equals(c)||h.push(d);c=d}for(;0<h.length;)if(d=h.shift(),"blockquote"==d.getName()){for(c=new CKEDITOR.dom.documentFragment(a.document);d.getFirst();)c.append(d.getFirst().remove()),k.push(c.getLast());c.replace(d)}else k.push(d);h=a.document.createElement("blockquote");for(h.insertBefore(k[0]);0<k.length;)d=k.shift(),h.append(d)}else if(d==CKEDITOR.TRISTATE_ON){c=[];for(l={};d=e.getNextParagraph();){for(k=h=null;d.getParent();){if("blockquote"==d.getParent().getName()){h=d.getParent();k=d;break}d=
d.getParent()}h&&(k&&!k.getCustomData("blockquote_moveout"))&&(c.push(k),CKEDITOR.dom.element.setMarker(l,k,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(l);d=[];k=[];for(l={};0<c.length;)e=c.shift(),h=e.getParent(),e.getPrevious()?e.getNext()?(e.breakParent(e.getParent()),k.push(e.getNext())):e.remove().insertAfter(h):e.remove().insertBefore(h),h.getCustomData("blockquote_processed")||(k.push(h),CKEDITOR.dom.element.setMarker(l,h,"blockquote_processed",!0)),d.push(e);CKEDITOR.dom.element.clearAllMarkers(l);
for(c=k.length-1;0<=c;c--){h=k[c];a:{l=h;for(var e=0,b=l.getChildCount(),n=void 0;e<b&&(n=l.getChild(e));e++)if(n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()){l=!1;break a}l=!0}l&&h.remove()}if(a.config.enterMode==CKEDITOR.ENTER_BR)for(h=!0;d.length;)if(e=d.shift(),"div"==e.getName()){c=new CKEDITOR.dom.documentFragment(a.document);h&&(e.getPrevious()&&!(e.getPrevious().type==CKEDITOR.NODE_ELEMENT&&e.getPrevious().isBlockBoundary()))&&c.append(a.document.createElement("br"));for(h=e.getNext()&&
!(e.getNext().type==CKEDITOR.NODE_ELEMENT&&e.getNext().isBlockBoundary());e.getFirst();)e.getFirst().remove().appendTo(c);h&&c.append(a.document.createElement("br"));c.replace(e);h=!1}}f.selectBookmarks(m);a.focus()}},refresh:function(a,d){this.setState(a.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",a),g.ui.addButton&&g.ui.addButton("Blockquote",{label:g.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})}(),"use strict",function(){function a(a,f){CKEDITOR.tools.extend(this,f,{editor:a,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:a._.notificationArea});f.type||(this.type="info");this.element=this._createElement();a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function g(a){var f=this;this.editor=a;this.notifications=
[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,this);a.on("destroy",function(){f._removeListeners();f.element.remove()})}CKEDITOR.plugins.add("notification",{init:function(a){function f(a){var d=new CKEDITOR.dom.element("div");d.setStyles({position:"fixed","margin-left":"-9999px"});d.setAttributes({"aria-live":"assertive","aria-atomic":"true"});d.setText(a);CKEDITOR.document.getBody().append(d);
setTimeout(function(){d.remove()},100)}a._.notificationArea=new g(a);a.showNotification=function(f,g,k){var c,l;"progress"==g?c=k:l=k;f=new CKEDITOR.plugins.notification(a,{message:f,type:g,progress:c,duration:l});f.show();return f};a.on("key",function(h){if(27==h.data.keyCode){var g=a._.notificationArea.notifications;g.length&&(f(a.lang.notification.closed),g[g.length-1].hide(),h.cancel())}})}});a.prototype={show:function(){!1!==this.editor.fire("notificationShow",{notification:this})&&(this.area.add(this),
this._hideAfterTimeout())},update:function(a){var f=!0;!1===this.editor.fire("notificationUpdate",{notification:this,options:a})&&(f=!1);var h=this.element,g=h.findOne(".cke_notification_message"),k=h.findOne(".cke_notification_progress"),c=a.type;h.removeAttribute("role");a.progress&&"progress"!=this.type&&(c="progress");c&&(h.removeClass(this._getClass()),h.removeAttribute("aria-label"),this.type=c,h.addClass(this._getClass()),h.setAttribute("aria-label",this.type),"progress"==this.type&&!k?(k=
this._createProgressElement(),k.insertBefore(g)):"progress"!=this.type&&k&&k.remove());void 0!==a.message&&(this.message=a.message,g.setHtml(this.message));void 0!==a.progress&&(this.progress=a.progress,k&&k.setStyle("width",this._getPercentageProgress()));f&&a.important&&(h.setAttribute("role","alert"),this.isVisible()||this.area.add(this));this.duration=a.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 a=this,f,h,g=this.editor.lang.common.close;f=new CKEDITOR.dom.element("div");f.addClass("cke_notification");f.addClass(this._getClass());f.setAttributes({id:this.id,role:"alert","aria-label":this.type});"progress"==this.type&&f.append(this._createProgressElement());h=new CKEDITOR.dom.element("p");h.addClass("cke_notification_message");h.setHtml(this.message);f.append(h);h=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');f.append(h);h.on("click",function(){a.editor.focus();a.hide()});return f},_getClass:function(){return"progress"==this.type?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var a=new CKEDITOR.dom.element("span");a.addClass("cke_notification_progress");a.setStyle("width",this._getPercentageProgress());return a},_getPercentageProgress:function(){return Math.round(100*
(this.progress||0))+"%"},_hideAfterTimeout:function(){var a=this,f;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);if("number"==typeof this.duration)f=this.duration;else if("info"==this.type||"success"==this.type)f="number"==typeof this.editor.config.notification_duration?this.editor.config.notification_duration:5E3;f&&(a._hideTimeoutId=setTimeout(function(){a.hide()},f))}};g.prototype={add:function(a){this.notifications.push(a);this.element.append(a.element);1==this.element.getChildCount()&&
(CKEDITOR.document.getBody().append(this.element),this._attachListeners());this._layout()},remove:function(a){var f=CKEDITOR.tools.indexOf(this.notifications,a);0>f||(this.notifications.splice(f,1),a.element.remove(),this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var a=this.editor,f=a.config,h=new CKEDITOR.dom.element("div");h.addClass("cke_notifications_area");h.setAttribute("id","cke_notifications_area_"+a.name);h.setStyle("z-index",f.baseFloatZIndex-
2);return h},_attachListeners:function(){var a=CKEDITOR.document.getWindow(),f=this.editor;a.on("scroll",this._uiBuffer.input);a.on("resize",this._uiBuffer.input);f.on("change",this._changeBuffer.input);f.on("floatingSpaceLayout",this._layout,this,null,20);f.on("blur",this._layout,this,null,20)},_removeListeners:function(){var a=CKEDITOR.document.getWindow(),f=this.editor;a.removeListener("scroll",this._uiBuffer.input);a.removeListener("resize",this._uiBuffer.input);f.removeListener("change",this._changeBuffer.input);
f.removeListener("floatingSpaceLayout",this._layout);f.removeListener("blur",this._layout)},_layout:function(){function a(){f.setStyle("left",s(t+g.width-n-p))}var f=this.element,h=this.editor,g=h.ui.contentsElement.getClientRect(),k=h.ui.contentsElement.getDocumentPosition(),c,l,e=f.getClientRect(),b,n=this._notificationWidth,p=this._notificationMargin;b=CKEDITOR.document.getWindow();var v=b.getScrollPosition(),r=b.getViewPaneSize(),q=CKEDITOR.document.getBody(),u=q.getDocumentPosition(),s=CKEDITOR.tools.cssLength;
if(!n||!p)b=this.element.getChild(0),n=this._notificationWidth=b.getClientRect().width,p=this._notificationMargin=parseInt(b.getComputedStyle("margin-left"),10)+parseInt(b.getComputedStyle("margin-right"),10);h.toolbar&&(c=h.ui.space("top"),l=c.getClientRect());c&&c.isVisible()&&l.bottom>g.top&&l.bottom<g.bottom-e.height?f.setStyles({position:"fixed",top:s(l.bottom)}):0<g.top?f.setStyles({position:"absolute",top:s(k.y)}):k.y+g.height-e.height>v.y?f.setStyles({position:"fixed",top:0}):f.setStyles({position:"absolute",
top:s(k.y+g.height-e.height)});var t="fixed"==f.getStyle("position")?g.left:"static"!=q.getComputedStyle("position")?k.x-u.x:k.x;g.width<n+p?k.x+n+p>v.x+r.width?a():f.setStyle("left",s(t)):k.x+n+p>v.x+r.width?f.setStyle("left",s(t)):k.x+g.width/2+n/2+p>v.x+r.width?f.setStyle("left",s(t-k.x+v.x+r.width-n-p)):0>g.left+g.width-n-p?a():0>g.left+g.width/2-n/2?f.setStyle("left",s(t-k.x+v.x)):f.setStyle("left",s(t+g.width/2-n/2-p/2))}};CKEDITOR.plugins.notification=a}(),function(){var a='\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&&(a+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(a+=' 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 a=a+(' 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{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"),f=CKEDITOR.addTemplate("button",a);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(d){d.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};
CKEDITOR.ui.button.prototype={render:function(a,g){function k(){var b=a.mode;b&&(b=this.modes[b]?void 0!==c[b]?c[b]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,b=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b,this.setState(b),this.refresh&&this.refresh())}var c=null,l=CKEDITOR.env,e=this._.id=CKEDITOR.tools.getNextId(),b="",n=this.command,p,v,r;this._.editor=a;var q={id:e,button:this,editor:a,focus:function(){CKEDITOR.document.getById(e).focus()},execute:function(){this.button.click(a)},
attach:function(b){this.button.attach(b)}},u=CKEDITOR.tools.addFunction(function(b){if(q.onkey)return b=new CKEDITOR.dom.event(b),!1!==q.onkey(q,b.getKeystroke())}),s=CKEDITOR.tools.addFunction(function(b){var a;q.onfocus&&(a=!1!==q.onfocus(q,new CKEDITOR.dom.event(b)));return a}),t=0;q.clickFn=p=CKEDITOR.tools.addFunction(function(){t&&(a.unlockSelection(1),t=0);q.execute();l.iOS&&a.focus()});if(this.modes)c={},a.on("beforeModeUnload",function(){a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&
(c[a.mode]=this._.state)},this),a.on("activeFilterChange",k,this),a.on("mode",k,this),!this.readOnly&&a.on("readOnly",k,this);else if(n&&(n=a.getCommand(n)))n.on("state",function(){this.setState(n.state)},this),b+=n.state==CKEDITOR.TRISTATE_ON?"on":n.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";var w;if(this.directional)a.on("contentDirChanged",function(b){var c=CKEDITOR.document.getById(this._.id),d=c.getFirst();b=b.data;b!=a.lang.dir?c.addClass("cke_"+b):c.removeClass("cke_ltr").removeClass("cke_rtl");
d.setAttribute("style",CKEDITOR.skin.getIconStyle(w,"rtl"==b,this.icon,this.iconOffset))},this);n?(v=a.getCommandKeystroke(n))&&(r=CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,v)):b+="off";v=this.name||this.command;var x=null,y=this.icon;w=v;this.icon&&!/\./.test(this.icon)?(w=this.icon,y=null):(this.icon&&(x=this.icon),CKEDITOR.env.hidpi&&this.iconHiDpi&&(x=this.iconHiDpi));x?(CKEDITOR.skin.addIcon(x,x),y=null):x=w;b={id:e,name:v,iconName:w,label:this.label,cls:(this.hasArrow?"cke_button_expandable ":
"")+(this.className||""),state:b,ariaDisabled:"disabled"==b?"true":"false",title:this.title+(r?" ("+r.display+")":""),ariaShortcut:r?a.lang.common.keyboardShortcut+" "+r.aria:"",titleJs:l.gecko&&!l.hc?"":(this.title||"").replace("'",""),hasArrow:"string"===typeof this.hasArrow&&this.hasArrow||(this.hasArrow?"true":"false"),keydownFn:u,focusFn:s,clickFn:p,style:CKEDITOR.skin.getIconStyle(x,"rtl"==a.lang.dir,y,this.iconOffset),arrowHtml:this.hasArrow?d.output():""};f.output(b,g);if(this.onRender)this.onRender();
return q},setState:function(a){if(this._.state==a)return!1;this._.state=a;var d=CKEDITOR.document.getById(this._.id);return d?(d.setState(a,"cke_button"),d.setAttribute("aria-disabled",a==CKEDITOR.TRISTATE_DISABLED),this.hasArrow?d.setAttribute("aria-expanded",a==CKEDITOR.TRISTATE_ON):a===CKEDITOR.TRISTATE_ON?d.setAttribute("aria-pressed",!0):d.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var d=this;
!this.allowedContent&&(!this.requiredContent&&this.command)&&(d=a.getCommand(this.command)||d);return this._.feature=d}};CKEDITOR.ui.prototype.addButton=function(a,d){this.add(a,CKEDITOR.UI_BUTTON,d)}}(),function(){function a(a){function d(){for(var b=f(),e=CKEDITOR.tools.clone(a.config.toolbarGroups)||g(a),l=0;l<e.length;l++){var m=e[l];if("/"!=m){"string"==typeof m&&(m=e[l]={name:m});var q,u=m.groups;if(u)for(var s=0;s<u.length;s++)q=u[s],(q=b[q])&&c(m,q);(q=b[m.name])&&c(m,q)}}return e}function f(){var b=
{},c,d,e;for(c in a.ui.items)d=a.ui.items[c],e=d.toolbar||"others",e=e.split(","),d=e[0],e=parseInt(e[1]||-1,10),b[d]||(b[d]=[]),b[d].push({name:c,order:e});for(d in b)b[d]=b[d].sort(function(b,a){return b.order==a.order?0:0>a.order?-1:0>b.order?1:b.order<a.order?-1:1});return b}function c(b,c){if(c.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var d;d=c.shift();)if(d="string"==typeof d?d:d.name,!e||-1==CKEDITOR.tools.indexOf(e,d))(d=a.ui.create(d))&&a.addFeature(d)&&b.items.push(d)}}
function l(b){var a=[],d,e,f;for(d=0;d<b.length;++d)e=b[d],f={},"/"==e?a.push(e):CKEDITOR.tools.isArray(e)?(c(f,CKEDITOR.tools.clone(e)),a.push(f)):e.items&&(c(f,CKEDITOR.tools.clone(e.items)),f.name=e.name,a.push(f));return a}var e=a.config.removeButtons,e=e&&e.split(","),b=a.config.toolbar;"string"==typeof b&&(b=a.config["toolbar_"+b]);return a.toolbar=b?l(b):d()}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,d;d=this.toolbars[a++];)for(var f=0,c;c=d.items[f++];)if(c.focus){c.focus();
return}};var f={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(h){var g,k=function(a,d){var e,b="rtl"==h.lang.dir,f=h.config.toolbarGroupCycling,p=b?37:39,b=b?39:37,f=void 0===f||f;switch(d){case 9:case CKEDITOR.SHIFT+9:for(;!e||!e.items.length;)if(e=9==d?(e?e.next:a.toolbar.next)||
h.toolbox.toolbars[0]:(e?e.previous:a.toolbar.previous)||h.toolbox.toolbars[h.toolbox.toolbars.length-1],e.items.length)for(a=e.items[g?e.items.length-1:0];a&&!a.focus;)(a=g?a.previous:a.next)||(e=0);a&&a.focus();return!1;case p:e=a;do e=e.next,!e&&f&&(e=a.toolbar.items[0]);while(e&&!e.focus);e?e.focus():k(a,9);return!1;case 40:return a.button&&a.button.hasArrow?a.execute():k(a,40==d?p:b),!1;case b:case 38:e=a;do e=e.previous,!e&&f&&(e=a.toolbar.items[a.toolbar.items.length-1]);while(e&&!e.focus);
e?e.focus():(g=1,k(a,CKEDITOR.SHIFT+9),g=0);return!1;case 27:return h.focus(),!1;case 13:case 32:return a.execute(),!1}return!0};h.on("uiSpace",function(c){if(c.data.space==h.config.toolbarLocation){c.removeListener();h.toolbox=new d;var f=CKEDITOR.tools.getNextId(),e=['\x3cspan id\x3d"',f,'" class\x3d"cke_voice_label"\x3e',h.lang.toolbar.toolbars,"\x3c/span\x3e",'\x3cspan id\x3d"'+h.ui.spaceId("toolbox")+'" class\x3d"cke_toolbox" role\x3d"group" aria-labelledby\x3d"',f,'" onmousedown\x3d"return false;"\x3e'],
f=!1!==h.config.toolbarStartupExpanded,b,g;h.config.toolbarCanCollapse&&h.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&e.push('\x3cspan class\x3d"cke_toolbox_main"'+(f?"\x3e":' style\x3d"display:none"\x3e'));for(var m=h.toolbox.toolbars,v=a(h),r=v.length,q=0;q<r;q++){var u,s=0,t,w=v[q],x="/"!==w&&("/"===v[q+1]||q==r-1),y;if(w)if(b&&(e.push("\x3c/span\x3e"),g=b=0),"/"===w)e.push('\x3cspan class\x3d"cke_toolbar_break"\x3e\x3c/span\x3e');else{y=w.items||w;for(var A=0;A<y.length;A++){var z=y[A],D;if(z)if(z.type==
CKEDITOR.UI_SEPARATOR)g=b&&z;else{D=!1!==z.canGroup;if(!s){u=CKEDITOR.tools.getNextId();s={id:u,items:[]};t=w.name&&(h.lang.toolbar.toolbarGroups[w.name]||w.name);e.push('\x3cspan id\x3d"',u,'" class\x3d"cke_toolbar'+(x?' cke_toolbar_last"':'"'),t?' aria-labelledby\x3d"'+u+'_label"':"",' role\x3d"toolbar"\x3e');t&&e.push('\x3cspan id\x3d"',u,'_label" class\x3d"cke_voice_label"\x3e',t,"\x3c/span\x3e");e.push('\x3cspan class\x3d"cke_toolbar_start"\x3e\x3c/span\x3e');var E=m.push(s)-1;0<E&&(s.previous=
m[E-1],s.previous.next=s)}D?b||(e.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'),b=1):b&&(e.push("\x3c/span\x3e"),b=0);u=function(b){b=b.render(h,e);E=s.items.push(b)-1;0<E&&(b.previous=s.items[E-1],b.previous.next=b);b.toolbar=s;b.onkey=k;b.onfocus=function(){h.toolbox.focusCommandExecuted||h.focus()}};g&&(u(g),g=0);u(z)}}b&&(e.push("\x3c/span\x3e"),g=b=0);s&&e.push('\x3cspan class\x3d"cke_toolbar_end"\x3e\x3c/span\x3e\x3c/span\x3e')}}h.config.toolbarCanCollapse&&e.push("\x3c/span\x3e");
if(h.config.toolbarCanCollapse&&h.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var F=CKEDITOR.tools.addFunction(function(){h.execCommand("toolbarCollapse")});h.on("destroy",function(){CKEDITOR.tools.removeFunction(F)});h.addCommand("toolbarCollapse",{readOnly:1,exec:function(b){var a=b.ui.space("toolbar_collapser"),c=a.getPrevious(),d=b.ui.space("contents"),e=c.getParent(),f=parseInt(d.$.style.height,10),h=e.$.offsetHeight,g=a.hasClass("cke_toolbox_collapser_min");g?(c.show(),a.removeClass("cke_toolbox_collapser_min"),
a.setAttribute("title",b.lang.toolbar.toolbarCollapse)):(c.hide(),a.addClass("cke_toolbox_collapser_min"),a.setAttribute("title",b.lang.toolbar.toolbarExpand));a.getFirst().setText(g?"▲":"◀");d.setStyle("height",f-(e.$.offsetHeight-h)+"px");b.fire("resize",{outerHeight:b.container.$.offsetHeight,contentsHeight:d.$.offsetHeight,outerWidth:b.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});h.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");e.push('\x3ca title\x3d"'+
(f?h.lang.toolbar.toolbarCollapse:h.lang.toolbar.toolbarExpand)+'" id\x3d"'+h.ui.spaceId("toolbar_collapser")+'" tabIndex\x3d"-1" class\x3d"cke_toolbox_collapser');f||e.push(" cke_toolbox_collapser_min");e.push('" onclick\x3d"CKEDITOR.tools.callFunction('+F+')"\x3e','\x3cspan class\x3d"cke_arrow"\x3e\x26#9650;\x3c/span\x3e',"\x3c/a\x3e")}e.push("\x3c/span\x3e");c.data.html+=e.join("")}});h.on("destroy",function(){if(this.toolbox){var a,d=0,e,b,f;for(a=this.toolbox.toolbars;d<a.length;d++){b=a[d].items;
for(e=0;e<b.length;e++)f=b[e],f.clickFn&&CKEDITOR.tools.removeFunction(f.clickFn),f.keyDownFn&&CKEDITOR.tools.removeFunction(f.keyDownFn)}}});h.on("uiReady",function(){var a=h.ui.space("toolbox");a&&h.focusManager.add(a,1)});h.addCommand("toolbarFocus",f);h.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");h.ui.add("-",CKEDITOR.UI_SEPARATOR,{});h.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(a,d){d.push('\x3cspan class\x3d"cke_toolbar_separator" role\x3d"separator"\x3e\x3c/span\x3e');
return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=function(a,d,f){var c=g(this.editor),l=0===d,e={name:a};if(f){if(f=CKEDITOR.tools.search(c,function(b){return b.name==f})){!f.groups&&(f.groups=[]);if(d&&(d=CKEDITOR.tools.indexOf(f.groups,d),0<=d)){f.groups.splice(d+1,0,a);return}l?f.groups.splice(0,0,a):f.groups.push(a);return}d=null}d&&(d=CKEDITOR.tools.indexOf(c,function(b){return b.name==d}));l?c.splice(0,0,a):"number"==typeof d?c.splice(d+1,0,e):c.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",
CKEDITOR.config.toolbarLocation="top","use strict",function(){function a(b,a,c){a.type||(a.type="auto");if(c&&!1===b.fire("beforePaste",a)||!a.dataValue&&a.dataTransfer.isEmpty())return!1;a.dataValue||(a.dataValue="");if(CKEDITOR.env.gecko&&"drop"==a.method&&b.toolbox)b.once("afterPaste",function(){b.toolbox.focus()});return b.fire("paste",a)}function g(b){function c(){var a=b.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var d=function(a){b.getSelection().isCollapsed()||((!b.readOnly||
"cut"!=a.name)&&D.initPasteDataTransfer(a,b),a.data.preventDefault())};a.on("copy",d);a.on("cut",d);a.on("cut",function(){b.readOnly||b.extractSelectedHtml()},null,null,999)}a.on(D.mainPasteEvent,function(b){"beforepaste"==D.mainPasteEvent&&E||y(b)});"beforepaste"==D.mainPasteEvent&&(a.on("paste",function(b){F||(f(),b.data.preventDefault(),y(b),g("paste"))}),a.on("contextmenu",h,null,null,0),a.on("beforepaste",function(b){b.data&&(!b.data.$.ctrlKey&&!b.data.$.shiftKey)&&h()},null,null,0));a.on("beforecut",
function(){!E&&k(b)});var e;a.attachListener(CKEDITOR.env.ie?a:b.document.getDocumentElement(),"mouseup",function(){e=setTimeout(A,0)});b.on("destroy",function(){clearTimeout(e)});a.on("keyup",A)}function d(a){return{type:a,canUndo:"cut"==a,startDisabled:!0,fakeKeystroke:"cut"==a?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){"cut"==this.type&&k();var a;var c=this.type;if(CKEDITOR.env.ie)a=g(c);else try{a=b.document.$.execCommand(c,!1,null)}catch(d){a=!1}a||b.showNotification(b.lang.clipboard[this.type+
"Error"]);return a}}}function e(){return{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(b,c){function d(c,h){h="undefined"!==typeof h?h:!0;c?(c.method="paste",c.dataTransfer||(c.dataTransfer=D.initPasteDataTransfer()),a(b,c,h)):f&&!b._.forcePasteDialog&&b.showNotification(k,"info",b.config.clipboard_notificationDuration);b._.forcePasteDialog=!1;b.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!c})}c="undefined"!==typeof c&&null!==c?c:{};var e=this,f="undefined"!==typeof c.notification?
c.notification:!0,h=c.type,g=CKEDITOR.tools.keystrokeToString(b.lang.common.keyboard,b.getCommandKeystroke(this)),k="string"===typeof f?f:b.lang.clipboard.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+g.aria+'"\x3e'+g.display+"\x3c/kbd\x3e"),g="string"===typeof c?c:c.dataValue;h&&!0!==b.config.forcePasteAsPlainText&&"allow-word"!==b.config.forcePasteAsPlainText?b._.nextPasteType=h:delete b._.nextPasteType;"string"===typeof g?d({dataValue:g}):b.getClipboardData(d)}}}function f(){F=1;setTimeout(function(){F=
0},100)}function h(){E=1;setTimeout(function(){E=0},10)}function g(a){var c=b.document,d=c.getBody(),e=!1,f=function(){e=!0};d.on(a,f);7<CKEDITOR.env.version?c.$.execCommand(a):c.$.selection.createRange().execCommand(a);d.removeListener(a,f);return e}function k(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var a=b.getSelection(),c,d,e;if(a.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=a.getSelectedElement()))d=a.getRanges()[0],e=b.document.createText(""),e.insertBefore(c),d.setStartBefore(e),d.setEndAfter(c),
a.selectRanges([d]),setTimeout(function(){c.getParent()&&(e.remove(),a.selectElement(c))},0)}}function l(a,c){var d=b.document,e=b.editable(),f=function(b){b.cancel()},h;if(!d.getById("cke_pastebin")){var g=b.getSelection(),k=g.createBookmarks();CKEDITOR.env.ie&&g.root.fire("selectionchange");var m=new CKEDITOR.dom.element((CKEDITOR.env.webkit||e.is("body"))&&!CKEDITOR.env.ie?"body":"div",d);m.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var n=0,d=d.getWindow();CKEDITOR.env.webkit?(e.append(m),
m.addClass("cke_editable"),e.is("body")||(n="static"!=e.getComputedStyle("position")?e:CKEDITOR.dom.element.get(e.$.offsetParent),n=n.getDocumentPosition().y)):e.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(m);m.setStyles({position:"absolute",top:d.getScrollPosition().y-n+10+"px",width:"1px",height:Math.max(1,d.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&m.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(n=m.getParent().isReadOnly())?
(m.setOpacity(0),m.setAttribute("contenteditable",!0)):m.setStyle("ltr"==b.config.contentsLangDirection?"left":"right","-10000px");b.on("selectionChange",f,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)h=e.once("blur",f,null,null,-100);n&&m.focus();n=new CKEDITOR.dom.range(m);n.selectNodeContents(m);var t=n.select();CKEDITOR.env.ie&&(h=e.once("blur",function(){b.lockSelection(t)}));var p=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=
p);h&&h.removeListener();CKEDITOR.env.ie&&e.focus();g.selectBookmarks(k);m.remove();var a;if(CKEDITOR.env.webkit&&(a=m.getFirst())&&a.is&&a.hasClass("Apple-style-span"))m=a;b.removeListener("selectionChange",f);c(m.getHtml())},0)}}function m(){if("paste"==D.mainPasteEvent)return b.fire("beforePaste",{type:"auto",method:"paste"}),!1;b.focus();f();var a=b.focusManager;a.lock();if(b.editable().fire(D.mainPasteEvent)&&!g("paste"))return a.unlock(),!1;a.unlock();return!0}function x(a){if("wysiwyg"==b.mode)switch(a.data.keyCode){case CKEDITOR.CTRL+
86:case CKEDITOR.SHIFT+45:a=b.editable();f();"paste"==D.mainPasteEvent&&a.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:b.fire("saveSnapshot"),setTimeout(function(){b.fire("saveSnapshot")},50)}}function y(c){var d={type:"auto",method:"paste",dataTransfer:D.initPasteDataTransfer(c)};d.dataTransfer.cacheData();var e=!1!==b.fire("beforePaste",d);e&&D.canClipboardApiBeTrusted(d.dataTransfer,b)?(c.data.preventDefault(),setTimeout(function(){a(b,d)},0)):l(c,function(c){d.dataValue=
c.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");e&&a(b,d)})}function A(){if("wysiwyg"==b.mode){var a=z("paste");b.getCommand("cut").setState(z("cut"));b.getCommand("copy").setState(z("copy"));b.getCommand("paste").setState(a);b.fire("pasteState",a)}}function z(a){var c=b.getSelection(),c=c&&c.getRanges()[0];if((b.readOnly||c&&c.checkReadOnly())&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==a)return CKEDITOR.TRISTATE_OFF;a=b.getSelection();c=a.getRanges();return a.getType()==
CKEDITOR.SELECTION_NONE||1==c.length&&c[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var D=CKEDITOR.plugins.clipboard,E=0,F=0;(function(){b.on("key",x);b.on("contentDom",c);b.on("selectionChange",A);if(b.contextMenu){b.contextMenu.addListener(function(){return{cut:z("cut"),copy:z("copy"),paste:z("paste")}});var a=null;b.on("menuShow",function(){a&&(a.removeListener(),a=null);var c=b.contextMenu.findItemByCommandName("paste");c&&c.element&&(a=c.element.on("touchend",function(){b._.forcePasteDialog=
!0}))})}if(b.ui.addButton)b.once("instanceReady",function(){b._.pasteButtons&&CKEDITOR.tools.array.forEach(b._.pasteButtons,function(a){if(a=b.ui.get(a))if(a=CKEDITOR.document.getById(a._.id))a.on("touchend",function(){b._.forcePasteDialog=!0})})})})();(function(){function a(c,d,e,f,h){var g=b.lang.clipboard[d];b.addCommand(d,e);b.ui.addButton&&b.ui.addButton(c,{label:g,command:d,toolbar:"clipboard,"+f});b.addMenuItems&&b.addMenuItem(d,{label:g,command:d,group:"clipboard",order:h})}a("Cut","cut",
d("cut"),10,1);a("Copy","copy",d("copy"),20,4);a("Paste","paste",e(),30,8);b._.pasteButtons||(b._.pasteButtons=[]);b._.pasteButtons.push("Paste")})();b.getClipboardData=function(a,c){function d(b){b.removeListener();b.cancel();c(b.data)}function e(b){b.removeListener();b.cancel();c({type:h,dataValue:b.data.dataValue,dataTransfer:b.data.dataTransfer,method:"paste"})}var f=!1,h="auto";c||(c=a,a=null);b.on("beforePaste",function(b){b.removeListener();f=!0;h=b.data.type},null,null,1E3);b.on("paste",d,
null,null,0);!1===m()&&(b.removeListener("paste",d),b._.forcePasteDialog&&f&&b.fire("pasteDialog")?(b.on("pasteDialogCommit",e),b.on("dialogHide",function(b){b.removeListener();b.data.removeListener("pasteDialogCommit",e);b.data._.committed||c(null)})):c(null))}}function d(b){if(CKEDITOR.env.webkit){if(!b.match(/^[^<]*$/g)&&!b.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!b.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!b.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!b.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";
return"htmlifiedtext"}function f(b,a){function c(b){return CKEDITOR.tools.repeat("\x3c/p\x3e\x3cp\x3e",~~(b/2))+(1==b%2?"\x3cbr\x3e":"")}a=a.replace(/(?!\u3000)\s+/g," ").replace(/> +</g,"\x3e\x3c").replace(/<br ?\/>/gi,"\x3cbr\x3e");a=a.replace(/<\/?[A-Z]+>/g,function(b){return b.toLowerCase()});if(a.match(/^[^<]$/))return a;CKEDITOR.env.webkit&&-1<a.indexOf("\x3cdiv\x3e")&&(a=a.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"\x3cbr\x3e").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"\x3cdiv\x3e\x3c/div\x3e"),
a.match(/<div>(<br>|)<\/div>/)&&(a="\x3cp\x3e"+a.replace(/(<div>(<br>|)<\/div>)+/g,function(b){return c(b.split("\x3c/div\x3e\x3cdiv\x3e").length+1)})+"\x3c/p\x3e"),a=a.replace(/<\/div><div>/g,"\x3cbr\x3e"),a=a.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&b.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(a=a.replace(/^<br><br>$/,"\x3cbr\x3e")),-1<a.indexOf("\x3cbr\x3e\x3cbr\x3e")&&(a="\x3cp\x3e"+a.replace(/(<br>){2,}/g,function(b){return c(b.length/4)})+"\x3c/p\x3e"));return k(b,a)}function h(b){function a(){var b=
{},c;for(c in CKEDITOR.dtd)"$"!=c.charAt(0)&&("div"!=c&&"span"!=c)&&(b[c]=1);return b}var c={};return{get:function(d){if("plain-text"==d)return c.plainText||(c.plainText=new CKEDITOR.filter(b,"br"));if("semantic-content"==d){if(!(d=c.semanticContent))d=new CKEDITOR.filter(b,{}),d.allow({$1:{elements:a(),attributes:!0,styles:!1,classes:!1}}),d=c.semanticContent=d;return d}return d?new CKEDITOR.filter(b,d):null}}}function m(b,a,c){a=CKEDITOR.htmlParser.fragment.fromHtml(a);var d=new CKEDITOR.htmlParser.basicWriter;
c.applyTo(a,!0,!1,b.activeEnterMode);a.writeHtml(d);return d.getHtml()}function k(b,a){b.enterMode==CKEDITOR.ENTER_BR?a=a.replace(/(<\/p><p>)+/g,function(b){return CKEDITOR.tools.repeat("\x3cbr\x3e",2*(b.length/7))}).replace(/<\/?p>/g,""):b.enterMode==CKEDITOR.ENTER_DIV&&(a=a.replace(/<(\/)?p>/g,"\x3c$1div\x3e"));return a}function c(b){b.data.preventDefault();b.data.$.dataTransfer.dropEffect="none"}function l(b){var c=CKEDITOR.plugins.clipboard;b.on("contentDom",function(){function d(c,e,f){e.select();
a(b,{dataTransfer:f,method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(c);f.sourceEditor.getSelection().selectRanges([c]);f.sourceEditor.fire("saveSnapshot")}function e(d,f){d.select();a(b,{dataTransfer:f,method:"drop"},1);c.resetDragDataTransfer()}function f(a,c,d){var e={$:a.data.$,target:a.data.getTarget()};c&&(e.dragRange=c);d&&(e.dropRange=d);!1===b.fire(a.name,e)&&a.data.preventDefault()}function h(b){b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());
return b.getChildCount()}var g=b.editable(),k=CKEDITOR.plugins.clipboard.getDropTarget(b),l=b.ui.space("top"),m=b.ui.space("bottom");c.preventDefaultDropOnElement(l);c.preventDefaultDropOnElement(m);g.attachListener(k,"dragstart",f);g.attachListener(b,"dragstart",c.resetDragDataTransfer,c,null,1);g.attachListener(b,"dragstart",function(a){c.initDragDataTransfer(a,b)},null,null,2);g.attachListener(b,"dragstart",function(){var a=c.dragRange=b.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&
(c.dragStartContainerChildCount=a?h(a.startContainer):null,c.dragEndContainerChildCount=a?h(a.endContainer):null)},null,null,100);g.attachListener(k,"dragend",f);g.attachListener(b,"dragend",c.initDragDataTransfer,c,null,1);g.attachListener(b,"dragend",c.resetDragDataTransfer,c,null,100);g.attachListener(k,"dragover",function(b){if(CKEDITOR.env.edge)b.data.preventDefault();else{var a=b.data.getTarget();a&&a.is&&a.is("html")?b.data.preventDefault():CKEDITOR.env.ie&&(CKEDITOR.plugins.clipboard.isFileApiSupported&&
b.data.$.dataTransfer.types.contains("Files"))&&b.data.preventDefault()}});g.attachListener(k,"drop",function(a){if(!a.data.$.defaultPrevented){a.data.preventDefault();var d=a.data.getTarget();if(!d.isReadOnly()||d.type==CKEDITOR.NODE_ELEMENT&&d.is("html")){var d=c.getRangeAtDropPosition(a,b),e=c.dragRange;d&&f(a,e,d)}}},null,null,9999);g.attachListener(b,"drop",c.initDragDataTransfer,c,null,1);g.attachListener(b,"drop",function(a){if(a=a.data){var f=a.dropRange,h=a.dragRange,g=a.dataTransfer;g.getTransferType(b)==
CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){c.internalDrop(h,f,g,b)},0):g.getTransferType(b)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?d(h,f,g):e(f,g)}},null,null,9999)})}var e;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(b){var a,c=h(b);b.config.forcePasteAsPlainText?a="plain-text":b.config.pasteFilter?a=b.config.pasteFilter:CKEDITOR.env.webkit&&!("pasteFilter"in b.config)&&(a="semantic-content");b.pasteFilter=c.get(a);g(b);l(b);CKEDITOR.dialog.add("paste",
CKEDITOR.getUrl(this.path+"dialogs/paste.js"));if(CKEDITOR.env.gecko){var e=["image/png","image/jpeg","image/gif"],k;b.on("paste",function(a){var c=a.data,d=c.dataTransfer;if(!c.dataValue&&("paste"==c.method&&d&&1==d.getFilesCount()&&k!=d.id)&&(d=d.getFile(0),-1!=CKEDITOR.tools.indexOf(e,d.type))){var f=new FileReader;f.addEventListener("load",function(){a.data.dataValue='\x3cimg src\x3d"'+f.result+'" /\x3e';b.fire("paste",a.data)},!1);f.addEventListener("abort",function(){b.fire("paste",a.data)},
!1);f.addEventListener("error",function(){b.fire("paste",a.data)},!1);f.readAsDataURL(d);k=c.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,d=c.getData("text/html");if(d)a.data.dataValue=d,a.data.type="html";else if(d=c.getData("text/plain"))a.data.dataValue=b.editable().transformPlainTextToHtml(d),a.data.type="text"}},null,null,1);b.on("paste",function(b){var a=
b.data.dataValue,c=CKEDITOR.dtd.$block;-1<a.indexOf("Apple-")&&(a=a.replace(/<span class="Apple-converted-space"> <\/span>/gi," "),"html"!=b.data.type&&(a=a.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(b,a){return a.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;")})),-1<a.indexOf('\x3cbr class\x3d"Apple-interchange-newline"\x3e')&&(b.data.startsWithEOL=1,b.data.preSniffing="html",a=a.replace(/<br class="Apple-interchange-newline">/,"")),a=a.replace(/(<[^>]+) class="Apple-[^"]*"/gi,
"$1"));if(a.match(/^<[^<]+cke_(editable|contents)/i)){var d,e,f=new CKEDITOR.dom.element("div");for(f.setHtml(a);1==f.getChildCount()&&(d=f.getFirst())&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasClass("cke_editable")||d.hasClass("cke_contents"));)f=e=d;e&&(a=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?a=a.replace(/^ (?: |\r\n)?<(\w+)/g,function(a,d){return d.toLowerCase()in c?(b.data.preSniffing="html","\x3c"+d):a}):CKEDITOR.env.webkit?a=a.replace(/<\/(\w+)><div><br><\/div>$/,function(a,d){return d in
c?(b.data.endsWithEOL=1,"\x3c/"+d+"\x3e"):a}):CKEDITOR.env.gecko&&(a=a.replace(/(\s)<br>$/,"$1"));b.data.dataValue=a},null,null,3);b.on("paste",function(a){a=a.data;var e=b._.nextPasteType||a.type,h=a.dataValue,g,k=b.config.clipboard_defaultContentType||"html",l=a.dataTransfer.getTransferType(b)==CKEDITOR.DATA_TRANSFER_EXTERNAL,n=!0===b.config.forcePasteAsPlainText;g="html"==e||"html"==a.preSniffing?"html":d(h);delete b._.nextPasteType;"htmlifiedtext"==g&&(h=f(b.config,h));if("text"==e&&"html"==g)h=
m(b,h,c.get("plain-text"));else if(l&&b.pasteFilter&&!a.dontFilter||n)h=m(b,h,b.pasteFilter);a.startsWithEOL&&(h='\x3cbr data-cke-eol\x3d"1"\x3e'+h);a.endsWithEOL&&(h+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==e&&(e="html"==g||"html"==k?"html":"text");a.type=e;a.dataValue=h;delete a.preSniffing;delete a.startsWithEOL;delete a.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,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(b,a,c){b.ui.addButton&&(b.ui.addButton(a,c),b._.pasteButtons||
(b._.pasteButtons=[]),b._.pasteButtons.push(a))},canClipboardApiBeTrusted:function(b,a){return b.getTransferType(a)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!b.isEmpty()||CKEDITOR.env.gecko&&(b.getData("text/html")||b.getFilesCount())||CKEDITOR.env.safari&&603<=CKEDITOR.env.version&&!CKEDITOR.env.iOS||CKEDITOR.env.edge&&16<=CKEDITOR.env.version?!0:!1},getDropTarget:function(b){var a=b.editable();return CKEDITOR.env.ie&&9>CKEDITOR.env.version||a.isInline()?a:b.document},fixSplitNodesAfterDrop:function(b,
a,c,d){function e(b,c,d){var f=b;f.type==CKEDITOR.NODE_TEXT&&(f=b.getParent());if(f.equals(c)&&d!=c.getChildCount())return b=a,c=b.startContainer.getChild(b.startOffset-1),d=b.startContainer.getChild(b.startOffset),c&&(c.type==CKEDITOR.NODE_TEXT&&d&&d.type==CKEDITOR.NODE_TEXT)&&(f=c.getLength(),c.setText(c.getText()+d.getText()),d.remove(),b.setStart(c,f),b.collapse(!0)),!0}var f=a.startContainer;"number"!=typeof d||"number"!=typeof c||f.type==CKEDITOR.NODE_ELEMENT&&(e(b.startContainer,f,c)||e(b.endContainer,
f,d))},isDropRangeAffectedByDragRange:function(b,a){var c=a.startContainer,d=a.endOffset;return b.endContainer.equals(c)&&b.endOffset<=d||b.startContainer.getParent().equals(c)&&b.startContainer.getIndex()<d||b.endContainer.getParent().equals(c)&&b.endContainer.getIndex()<d?!0:!1},internalDrop:function(b,c,d,e){var f=CKEDITOR.plugins.clipboard,h=e.editable(),g,k;e.fire("saveSnapshot");e.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(b,c,f.dragStartContainerChildCount,
f.dragEndContainerChildCount);(k=this.isDropRangeAffectedByDragRange(b,c))||(g=b.createBookmark(!1));f=c.clone().createBookmark(!1);k&&(g=b.createBookmark(!1));b=g.startNode;c=g.endNode;k=f.startNode;c&&(b.getPosition(k)&CKEDITOR.POSITION_PRECEDING&&c.getPosition(k)&CKEDITOR.POSITION_FOLLOWING)&&k.insertBefore(b);b=e.createRange();b.moveToBookmark(g);h.extractHtmlFromRange(b,1);c=e.createRange();f.startNode.getCommonAncestor(h)||(f=e.getSelection().createBookmarks()[0]);c.moveToBookmark(f);a(e,{dataTransfer:d,
method:"drop",range:c},1);e.fire("unlockSnapshot")},getRangeAtDropPosition:function(b,a){var c=b.data.$,d=c.clientX,e=c.clientY,f=a.getSelection(!0).getRanges()[0],h=a.createRange();if(b.data.testRange)return b.data.testRange;if(document.caretRangeFromPoint&&a.document.$.caretRangeFromPoint(d,e))c=a.document.$.caretRangeFromPoint(d,e),h.setStart(CKEDITOR.dom.node(c.startContainer),c.startOffset),h.collapse(!0);else if(c.rangeParent)h.setStart(CKEDITOR.dom.node(c.rangeParent),c.rangeOffset),h.collapse(!0);
else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&f&&a.editable().hasFocus)return f;if(document.body.createTextRange){a.focus();c=a.document.getBody().$.createTextRange();try{for(var g=!1,k=0;20>k&&!g;k++){if(!g)try{c.moveToPoint(d,e-k),g=!0}catch(l){}if(!g)try{c.moveToPoint(d,e+k),g=!0}catch(m){}}if(g){var y="cke-temp-"+(new Date).getTime();c.pasteHTML('\x3cspan id\x3d"'+y+'"\x3e\x3c/span\x3e');var A=a.document.getById(y);h.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START);A.remove()}else{var z=a.document.$.elementFromPoint(d,
e),D=new CKEDITOR.dom.element(z),E;if(!D.equals(a.editable())&&"html"!=D.getName())E=D.getClientRect(),d<E.left?h.setStartAt(D,CKEDITOR.POSITION_AFTER_START):h.setStartAt(D,CKEDITOR.POSITION_BEFORE_END),h.collapse(!0);else return f&&f.startContainer&&!f.startContainer.equals(a.editable())?f:null}}catch(F){return null}}else return null}return h},initDragDataTransfer:function(b,a){var c=b.data.$?b.data.$.dataTransfer:null,d=new this.dataTransfer(c,a);"dragstart"===b.name&&d.storeId();c?this.dragData&&
d.id==this.dragData.id?d=this.dragData:this.dragData=d:this.dragData?d=this.dragData:this.dragData=d;b.data.dataTransfer=d},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(b,a){if(this.isCustomCopyCutSupported){if(b&&b.data&&b.data.$){var c=b.data.$.clipboardData,d=new this.dataTransfer(c,a);("copy"===b.name||"cut"===b.name)&&d.storeId();this.copyCutData&&d.id==this.copyCutData.id?(d=this.copyCutData,d.$=c):this.copyCutData=d;return d}return new this.dataTransfer(null,
a)}return new this.dataTransfer(CKEDITOR.env.edge&&b&&b.data.$&&b.data.$.clipboardData||null,a)},preventDefaultDropOnElement:function(b){b&&b.on("dragover",c)}};e=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(b,a){b&&(this.$=b);this._={metaRegExp:/^<meta.*?>/i,fragmentRegExp:/\s*\x3c!--StartFragment--\x3e|\x3c!--EndFragment--\x3e\s*/g,data:{},files:[],nativeHtmlCache:"",normalizeType:function(b){b=b.toLowerCase();return"text"==
b||"text/plain"==b?"Text":"url"==b?"URL":b}};this._.fallbackDataTransfer=new CKEDITOR.plugins.clipboard.fallbackDataTransfer(this);this.id=this.getData(e);this.id||(this.id="Text"==e?"":"cke-"+CKEDITOR.tools.getUniqueId());a&&(this.sourceEditor=a,this.setData("text/html",a.getSelectedHtml(1)),"Text"!=e&&!this.getData("text/plain")&&this.setData("text/plain",a.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(b,a){b=this._.normalizeType(b);var c="text/html"==b&&a?this._.nativeHtmlCache:this._.data[b];if(void 0===c||null===c||""===c){if(this._.fallbackDataTransfer.isRequired())c=this._.fallbackDataTransfer.getData(b,a);else try{c=this.$.getData(b)||""}catch(d){c=""}"text/html"==b&&!a&&(c=this._stripHtml(c))}"Text"==b&&(CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==c.substring(0,7))&&(c="");if("string"===typeof c)var e=c.indexOf("\x3c/html\x3e"),
c=-1!==e?c.substring(0,e+7):c;return c},setData:function(b,a){b=this._.normalizeType(b);"text/html"==b?(this._.data[b]=this._stripHtml(a),this._.nativeHtmlCache=a):this._.data[b]=a;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||!("URL"!=b&&"Text"!=b))if("Text"==e&&"Text"==b&&(this.id=a),this._.fallbackDataTransfer.isRequired())this._.fallbackDataTransfer.setData(b,a);else try{this.$.setData(b,a)}catch(c){}},storeId:function(){"Text"!==e&&this.setData(e,this.id)},getTransferType:function(b){return this.sourceEditor?
this.sourceEditor==b?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function b(b){b=a._.normalizeType(b);var c=a.getData(b);"text/html"==b&&(a._.nativeHtmlCache=a.getData(b,!0),c=a._stripHtml(c));c&&(a._.data[b]=c)}if(this.$){var a=this,c,d;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(c=0;c<this.$.types.length;c++)b(this.$.types[c])}else b("Text"),b("URL");d=this._getImageFromClipboard();if(this.$&&
this.$.files||d){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&&d&&this._.files.push(d)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(b){return this._.files.length?this._.files[b]:this.$&&this.$.files&&this.$.files.length?this.$.files[b]:0===b?this._getImageFromClipboard():
void 0},isEmpty:function(){var b={},a;if(this.getFilesCount())return!1;CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(this._.data),function(a){b[a]=1});if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var c=0;c<this.$.types.length;c++)b[this.$.types[c]]=1}else b.Text=1,b.URL=1;"Text"!=e&&(b[e]=0);for(a in b)if(b[a]&&""!==this.getData(a))return!1;return!0},_getImageFromClipboard:function(){var b;try{if(this.$&&this.$.items&&this.$.items[0]&&(b=this.$.items[0].getAsFile())&&
b.type)return b}catch(a){}},_stripHtml:function(b){function a(b){var c=new CKEDITOR.htmlParser,d,e;c.onTagOpen=function(b){"body"===b&&(d=c._.htmlPartsRegex.lastIndex)};c.onTagClose=function(b){"body"===b&&(e=c._.htmlPartsRegex.lastIndex)};c.parse(b);return"number"!==typeof d||"number"!==typeof e?b:b.substring(d,e).replace(/<\/body\s*>$/gi,"")}b&&b.length&&(b=a(b),b=b.replace(this._.metaRegExp,""),b=b.replace(this._.fragmentRegExp,""));return b}};CKEDITOR.plugins.clipboard.fallbackDataTransfer=function(b){this._dataTransfer=
b;this._customDataFallbackType="text/html"};CKEDITOR.plugins.clipboard.fallbackDataTransfer._isCustomMimeTypeSupported=null;CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes=[];CKEDITOR.plugins.clipboard.fallbackDataTransfer.prototype={isRequired:function(){var b=CKEDITOR.plugins.clipboard.fallbackDataTransfer,a=this._dataTransfer.$;if(null===b._isCustomMimeTypeSupported)if(a){b._isCustomMimeTypeSupported=!1;if(CKEDITOR.env.edge&&17<=CKEDITOR.env.version)return!0;try{a.setData("cke/mimetypetest",
"cke test value"),b._isCustomMimeTypeSupported="cke test value"===a.getData("cke/mimetypetest"),a.clearData("cke/mimetypetest")}catch(c){}}else return!1;return!b._isCustomMimeTypeSupported},getData:function(b,a){var c=this._getData(this._customDataFallbackType,!0);if(a)return c;var c=this._extractDataComment(c),d=null,d=b===this._customDataFallbackType?c.content:c.data&&c.data[b]?c.data[b]:this._getData(b,!0);return null!==d?d:""},setData:function(b,a){var c=b===this._customDataFallbackType;c&&(a=
this._applyDataComment(a,this._getFallbackTypeData()));var d=a,e=this._dataTransfer.$;try{e.setData(b,d),c&&(this._dataTransfer._.nativeHtmlCache=d)}catch(f){if(this._isUnsupportedMimeTypeError(f)){c=CKEDITOR.plugins.clipboard.fallbackDataTransfer;-1===CKEDITOR.tools.indexOf(c._customTypes,b)&&c._customTypes.push(b);var c=this._getFallbackTypeContent(),h=this._getFallbackTypeData();h[b]=d;try{d=this._applyDataComment(c,h),e.setData(this._customDataFallbackType,d),this._dataTransfer._.nativeHtmlCache=
d}catch(g){d=""}}}return d},_getData:function(b,a){var c=this._dataTransfer._.data;if(!a&&c[b])return c[b];try{return this._dataTransfer.$.getData(b)}catch(d){return null}},_getFallbackTypeContent:function(){var b=this._dataTransfer._.data[this._customDataFallbackType];b||(b=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).content);return b},_getFallbackTypeData:function(){var b=CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes,a=this._extractDataComment(this._getData(this._customDataFallbackType,
!0)).data||{},c=this._dataTransfer._.data;CKEDITOR.tools.array.forEach(b,function(b){void 0!==c[b]?a[b]=c[b]:void 0!==a[b]&&(a[b]=a[b])},this);return a},_isUnsupportedMimeTypeError:function(b){return b.message&&-1!==b.message.search(/element not found/gi)},_extractDataComment:function(b){var a={data:null,content:b||""};if(b&&16<b.length){var c;if((c=/\x3c!--cke-data:(.*?)--\x3e/g.exec(b))&&c[1])a.data=JSON.parse(decodeURIComponent(c[1])),a.content=b.replace(c[0],"")}return a},_applyDataComment:function(b,
a){var c="";a&&CKEDITOR.tools.object.keys(a).length&&(c="\x3c!--cke-data:"+encodeURIComponent(JSON.stringify(a))+"--\x3e");return c+(b&&b.length?b:"")}}}(),CKEDITOR.config.clipboard_notificationDuration=1E4,CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function a(a){var d=this._;d.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(a),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=a;this._={panelDefinition:d}},statics:{handler:{create:function(a){return new CKEDITOR.ui.panelButton(a)}}},proto:{createPanel:function(a){var d=this._;if(!d.panel){var f=this._.panelDefinition,h=this._.panelDefinition.block,m=f.parent||CKEDITOR.document.getBody(),k=this._.panel=new CKEDITOR.ui.floatPanel(a,
m,f),f=k.addBlock(d.id,h),c=this;k.onShow=function(){c.className&&this.element.addClass(c.className+"_panel");c.setState(CKEDITOR.TRISTATE_ON);d.on=1;c.editorFocus&&a.focus();if(c.onOpen)c.onOpen()};k.onHide=function(f){c.className&&this.element.getFirst().removeClass(c.className+"_panel");c.setState(c.modes&&c.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);d.on=0;if(!f&&c.onClose)c.onClose()};k.onEscape=function(){k.hide(1);c.document.getById(d.id).focus()};if(this.onBlock)this.onBlock(k,
f);f.onHide=function(){d.on=0;c.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(a){a.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,d){d&&CKEDITOR.tools.extend(this,d);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 a=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(f,h){var m={editorId:f.id,id:this.id,langCode:f.langCode,dir:f.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":f.config.baseFloatZIndex+1};
this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),f=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&f.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});f=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("+
f+");"},m)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),c=this.document.getById(this.id).getAttribute("dir");"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"==c?39:37))&&this.onEscape&&!1===this.onEscape(b)&&a.data.preventDefault())},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(f)}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=a.output(m);h&&h.push(k);return k},addBlock:function(a,d){d=this._.blocks[a]=d instanceof CKEDITOR.ui.panel.block?d:new CKEDITOR.ui.panel.block(this.getHolderElement(),d);
this._.currentBlock||this.showBlock(a);return d},getBlock:function(a){return this._.blocks[a]},showBlock:function(a){a=this._.blocks[a];var d=this._.currentBlock,g=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");d&&d.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",g);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,
d){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));d&&CKEDITOR.tools.extend(this,d);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 d=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"none"==a.getStyle("display")},g=this._.getItems(),k,c,l=g.count()-1;0<=l;l--)if(k=g.getItem(l),k.getAscendant(d)||(c=k,this._.focusIndex=l),"true"==k.getAttribute("aria-selected")){c=k;this._.focusIndex=l;break}c&&(a&&a(),CKEDITOR.env.webkit&&c.getDocument().getWindow().focus(),c.focus(),this.onMark&&this.onMark(c))},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,d){var g=this.keys[a];switch(g){case "next":for(var k=this._.focusIndex,g=this._.getItems(),c;c=g.getItem(++k);)if(c.getAttribute("_cke_focus")&&c.$.offsetWidth){this._.focusIndex=k;c.focus(!0);break}return!c&&!d?(this._.focusIndex=-1,this.onKeyDown(a,1)):!1;case "prev":k=this._.focusIndex;for(g=this._.getItems();0<k&&
(c=g.getItem(--k));){if(c.getAttribute("_cke_focus")&&c.$.offsetWidth){this._.focusIndex=k;c.focus(!0);break}c=null}return!c&&!d?(this._.focusIndex=g.count(),this.onKeyDown(a,1)):!1;case "click":case "mouseup":return k=this._.focusIndex,(c=0<=k&&this._.getItems().getItem(k))&&(c.$[g]?c.$[g]():c.$["on"+g]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function a(a,f,h,m,k){k=CKEDITOR.tools.genKey(f.getUniqueId(),h.getUniqueId(),a.lang.dir,a.uiColor||"",m.css||
"",k||"");var c=g[k];c||(c=g[k]=new CKEDITOR.ui.panel(f,m),c.element=h.append(CKEDITOR.dom.element.createFromHtml(c.render(a),f)),c.element.setStyles({display:"none",position:"absolute"}));return c}var g={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(d,f,h,g){function k(){b.hide()}h.forceIFrame=1;h.toolbarRelated&&d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(f=CKEDITOR.document.getById("cke_"+d.name));var c=f.getDocument();g=a(d,c,f,h,g||0);var l=g.element,e=l.getFirst(),b=this;
l.disableContextMenu();this.element=l;this._={editor:d,panel:g,parentElement:f,definition:h,document:c,iframe:e,children:[],dir:d.lang.dir,showBlockParams:null,markFirst:void 0!==h.markFirst?h.markFirst:!0};d.on("mode",k);d.on("resize",k);c.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(a,f){return this._.panel.addBlock(a,f)},addListBlock:function(a,f){return this._.panel.addListBlock(a,f)},getBlock:function(a){return this._.panel.getBlock(a)},showBlock:function(a,
f,h,g,k,c){var l=this._.panel,e=l.showBlock(a);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(!1);var b=this._.editor.editable();this._.returnFocus=b.hasFocus?b:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var n=this.element,b=this._.iframe,b=CKEDITOR.env.ie&&!CKEDITOR.env.edge?b:new CKEDITOR.dom.window(b.$.contentWindow),p=n.getDocument(),v=this._.parentElement.getPositionedAncestor(),r=f.getDocumentPosition(p),p=v?v.getDocumentPosition(p):{x:0,
y:0},q="rtl"==this._.dir,u=r.x+(g||0)-p.x,s=r.y+(k||0)-p.y;if(q&&(1==h||4==h))u+=f.$.offsetWidth;else if(!q&&(2==h||3==h))u+=f.$.offsetWidth-1;if(3==h||4==h)s+=f.$.offsetHeight-1;this._.panel._.offsetParentId=f.getId();n.setStyles({top:s+"px",left:0,display:""});n.setOpacity(0);n.getFirst().removeStyle("width");this._.editor.focusManager.add(b);this._.blurSet||(CKEDITOR.event.useCapture=!0,b.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),b.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(b.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),b.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1);l.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(e.autoSize){var b=e.element.getDocument(),b=(CKEDITOR.env.webkit||CKEDITOR.env.edge?e.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=e.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&0<b)&&(b+=(a.$.offsetHeight||0)-(a.$.clientHeight||
0)+3);a.setStyle("height",b+"px");l._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");q&&(u-=n.$.offsetWidth);n.setStyle("left",u+"px");var b=l.element.getWindow(),a=n.$.getBoundingClientRect(),b=b.getViewPaneSize(),d=a.width||a.right-a.left,f=a.height||a.bottom-a.top,h=q?a.right:b.width-a.left,g=q?b.width-a.right:a.left;q?h<d&&(u=g>d?u+d:b.width>d?u-a.left:u-a.right+b.width):h<d&&(u=g>d?u-d:b.width>d?u-a.right+b.width:u-a.left);d=a.top;b.height-
a.top<f&&(s=d>f?s-f:b.height>f?s-a.bottom+b.height:s-a.top);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&(b=a=new CKEDITOR.dom.element(n.$.offsetParent),"html"==b.getName()&&(b=b.getDocument().getBody()),"rtl"==b.getComputedStyle("direction")&&(u=CKEDITOR.env.ie8Compat?u-2*n.getDocument().getDocumentElement().$.scrollLeft:u-(a.$.scrollWidth-a.$.clientWidth)));var a=n.getFirst(),k;(k=a.getCustomData("activePanel"))&&k.onHide&&k.onHide.call(this,1);a.setCustomData("activePanel",this);n.setStyles({top:s+"px",
left:u+"px"});n.setOpacity(1);c&&c()},this);l.isLoaded?a():l.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();e.element.focus();CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=a);this.allowBlur(!0);this._.markFirst&&(CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(function(){e.markFirstDisplayed?e.markFirstDisplayed():e._.markFirstDisplayed()},0):e.markFirstDisplayed?e.markFirstDisplayed():e._.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 a=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,a))},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive();a&&!a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();
a&&a.is("a")&&(this._.lastFocused=a)},hide:function(a){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(a=a&&this._.returnFocus)CKEDITOR.env.webkit&&a.type&&a.getWindow().$.focus(),a.focus();delete this._.lastFocused;this._.showBlockParams=null;this._.editor.fire("panelHide",this)}},
allowBlur:function(a){var f=this._.panel;void 0!==a&&(f.allowBlur=a);return f.allowBlur},showAsChild:function(a,f,h,g,k,c){this._.activeChild==a&&a._.panel._.offsetParentId==h.getId()||(this.hideChild(),a.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=a,this._.focused=!1,a.showBlock(f,h,g,k,c),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=
""},100))},hideChild:function(a){var f=this._.activeChild;f&&(delete f.onHide,delete this._.activeChild,f.hide(),a&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),f;for(f in g){var h=g[f];a?h.destroy():h.element.hide()}a&&(g={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(a){function g(c,b,f,g,l){var r=new CKEDITOR.style(m["colorButton_"+b+"Style"]),q=CKEDITOR.tools.getNextId()+"_colorBox",
u={type:b},s;l=l||{};a.ui.add(c,CKEDITOR.UI_PANELBUTTON,{label:f,title:f,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+g,allowedContent:r,requiredContent:r,contentTransformations:l.contentTransformations,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":k.panelTitle}},onBlock:function(c,e){s=e;e.autoSize=!0;e.element.addClass("cke_colorblock");e.element.setHtml(d(c,b,q,u));e.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",
this);var f=e.keys,h="rtl"==a.lang.dir;f[h?37:39]="next";f[40]="next";f[9]="next";f[h?39:37]="prev";f[38]="prev";f[CKEDITOR.SHIFT+9]="prev";f[32]="click"},refresh:function(){a.activeFilter.check(r)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var c=a.getSelection(),d=c&&c.getStartElement(),e=a.elementPath(d);if(e){d=e.block||e.blockLimit||a.document.getBody();do e=d&&d.getComputedStyle("back"==b?"background-color":"color")||"transparent";while("back"==b&&"transparent"==e&&d&&(d=d.getParent()));
if(!e||"transparent"==e)e="#ffffff";!1!==m.colorButton_enableAutomatic&&this._.panel._.iframe.getFrameDocument().getById(q).setStyle("background-color",e);if(d=c&&c.getRanges()[0]){for(var c=new CKEDITOR.dom.walker(d),f=d.collapsed?d.startContainer:c.next(),d="";f;){f.type!==CKEDITOR.NODE_ELEMENT&&(f=f.getParent());f=h(f.getComputedStyle("back"==b?"background-color":"color"));d=d||f;if(d!==f){d="";break}f=c.next()}"transparent"==d&&(d="");"fore"==b&&(u.automaticTextColor="#"+h(e));u.selectionColor=
d?"#"+d:"";c=d;d=s._.getItems();for(f=0;f<d.count();f++){var g=d.getItem(f);g.removeAttribute("aria-selected");c&&c==h(g.getAttribute("data-value"))&&g.setAttribute("aria-selected",!0)}}return e}}})}function d(c,b,d,h){c=[];var g=m.colorButton_colors.split(","),l=m.colorButton_colorsPerRow||6,q=a.plugins.colordialog&&!1!==m.colorButton_enableMore,u=g.length+(q?2:1),s=CKEDITOR.tools.addFunction(function(b,c){function d(b){var e=m["colorButton_"+c+"Style"];a.removeStyle(new CKEDITOR.style(e,{color:"inherit"}));
e.childRule="back"==c?function(a){return f(a)}:function(a){return!(a.is("a")||a.getElementsByTag("a").count())||f(a)};a.focus();b&&a.applyStyle(new CKEDITOR.style(e,{color:b}));a.fire("saveSnapshot")}a.focus();a.fire("saveSnapshot");if("?"==b)a.getColorFromDialog(function(a){if(a)return d(a)},null,h);else return d(b&&"#"+b)});!1!==m.colorButton_enableAutomatic&&c.push('\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',k.auto,'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(',
s,",null,'",b,"');return false;\" href\x3d\"javascript:void('",k.auto,'\')" role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"',u,'"\x3e\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"'+l+'" align\x3d"center"\x3e\x3cspan class\x3d"cke_colorbox" id\x3d"',d,'"\x3e\x3c/span\x3e',k.auto,"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/a\x3e");c.push('\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e');
for(d=0;d<g.length;d++){0===d%l&&c.push("\x3c/tr\x3e\x3ctr\x3e");var t=g[d].split("/"),w=t[0],x=t[1]||w;c.push('\x3ctd\x3e\x3ca class\x3d"cke_colorbox" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',t[1]?w:a.lang.colorbutton.colors[x]||x,'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(',s,",'",x,"','",b,"'); return false;\" href\x3d\"javascript:void('",x,'\')" data-value\x3d"'+x+'" role\x3d"option" aria-posinset\x3d"',d+2,'" aria-setsize\x3d"',u,'"\x3e\x3cspan class\x3d"cke_colorbox" style\x3d"background-color:#',
x,'"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e')}q&&c.push('\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"'+l+'" align\x3d"center"\x3e\x3ca class\x3d"cke_colormore" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',k.more,'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(',s,",'?','",b,"');return false;\" href\x3d\"javascript:void('",k.more,"')\"",' role\x3d"option" aria-posinset\x3d"',u,'" aria-setsize\x3d"',u,'"\x3e',k.more,"\x3c/a\x3e\x3c/td\x3e");c.push("\x3c/tr\x3e\x3c/table\x3e");
return c.join("")}function f(a){return"false"==a.getAttribute("contentEditable")||a.getAttribute("data-nostyle")}function h(a){return CKEDITOR.tools.normalizeHex("#"+CKEDITOR.tools.convertRgbToHex(a||"")).replace(/#/g,"")}var m=a.config,k=a.lang.colorbutton;if(!CKEDITOR.env.hc){g("TextColor","fore",k.textColorTitle,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 c={},l=a.config.colorButton_normalizeBackground;if(void 0===l||l)c.contentTransformations=[[{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(c){var b=(new CKEDITOR.style(a.config.colorButton_backStyle,{color:c.styles.background})).getDefinition();c.name=b.element;c.styles=b.styles;c.attributes=
b.attributes||{};return c}}]];g("BGColor","back",k.bgColorTitle,20,c)}}}),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.plugins.colordialog=
{requires:"dialog",init:function(a){var g=new CKEDITOR.dialogCommand("colordialog");g.editorFocus=!1;a.addCommand("colordialog",g);CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");a.getColorFromDialog=function(d,f,h){var g,k,c,l;g=function(a){c(this);a="ok"==a.name?this.getValueOf("picker","selectedColor"):null;/^[0-9a-f]{3}([0-9a-f]{3})?$/i.test(a)&&(a="#"+a);d.call(f,a)};k=function(a){h&&(a.data=h)};c=function(a){a.removeListener("ok",g);a.removeListener("cancel",g);a.removeListener("show",
k)};l=function(a){a.on("ok",g);a.on("cancel",g);a.on("show",k,null,null,5)};a.execCommand("colordialog");if(a._.storedDialogs&&a._.storedDialogs.colordialog)l(a._.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(){l(this);b.onLoad=a;"function"==typeof a&&a.call(this)}})}})}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),
function(){function a(a,c,d,e){var b=new CKEDITOR.dom.walker(a);if(a=a.startContainer.getAscendant(c,!0)||a.endContainer.getAscendant(c,!0))if(d(a),e)return;for(;a=b.next();)if(a=a.getAscendant(c,!0))if(d(a),e)break}function g(a,c){var d={ul:"ol",ol:"ul"};return-1!==f(c,function(c){return c.element===a||c.element===d[a]})}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 f=CKEDITOR.tools.indexOf,h=CKEDITOR.tools.getMouseButton,m=!1;CKEDITOR.plugins.add("copyformatting",{lang:"az,de,en,it,ja,nb,nl,oc,pl,pt-br,ru,sv,tr,zh,zh-cn",icons:"copyformatting",hidpi:!0,init:function(a){var c=CKEDITOR.plugins.copyformatting;c._addScreenReaderContainer();m||(CKEDITOR.document.appendStyleSheet(this.path+"styles/copyformatting.css"),m=!0);a.addContentsCss&&a.addContentsCss(this.path+
"styles/copyformatting.css");a.copyFormatting=new c.state(a);a.addCommand("copyFormatting",c.commands.copyFormatting);a.addCommand("applyFormatting",c.commands.applyFormatting);a.ui.addButton("CopyFormatting",{label:a.lang.copyformatting.label,command:"copyFormatting",toolbar:"cleanup,0"});a.on("contentDom",function(){var c=a.getCommand("copyFormatting"),d=a.editable(),b=d.isInline()?d:a.document,f=a.ui.get("CopyFormatting");d.attachListener(b,"mouseup",function(b){h(b)===CKEDITOR.MOUSE_BUTTON_LEFT&&
c.state===CKEDITOR.TRISTATE_ON&&a.execCommand("applyFormatting")});d.attachListener(CKEDITOR.document,"mouseup",function(b){h(b)===CKEDITOR.MOUSE_BUTTON_LEFT&&(c.state===CKEDITOR.TRISTATE_ON&&!d.contains(b.data.getTarget()))&&a.execCommand("copyFormatting")});f&&(b=CKEDITOR.document.getById(f._.id),d.attachListener(b,"dblclick",function(){a.execCommand("copyFormatting",{sticky:!0})}),d.attachListener(b,"mouseup",function(a){a.data.stopPropagation()}))});a.config.copyFormatting_keystrokeCopy&&a.setKeystroke(a.config.copyFormatting_keystrokeCopy,
"copyFormatting");a.on("key",function(c){var d=a.getCommand("copyFormatting");c=c.data.domEvent;c.getKeystroke&&27===c.getKeystroke()&&d.state===CKEDITOR.TRISTATE_ON&&a.execCommand("copyFormatting")});a.copyFormatting.on("extractFormatting",function(d){var e=d.data.element;if(e.contains(a.editable())||e.equals(a.editable()))return d.cancel();e=c._convertElementToStyleDef(e);if(!a.copyFormatting.filter.check(new CKEDITOR.style(e),!0,!0))return d.cancel();d.data.styleDef=e});a.copyFormatting.on("applyFormatting",
function(d){if(!d.data.preventFormatStripping){var e=d.data.range,b=c._extractStylesFromRange(a,e),h=c._determineContext(e),m,v;if(a.copyFormatting._isContextAllowed(h))for(v=0;v<b.length;v++)h=b[v],m=e.createBookmark(),-1===f(c.preservedElements,h.element)?CKEDITOR.env.webkit&&!CKEDITOR.env.chrome?b[v].removeFromRange(d.data.range,d.editor):b[v].remove(d.editor):g(h.element,d.data.styles)&&c._removeStylesFromElementInRange(e,h.element),e.moveToBookmark(m)}});a.copyFormatting.on("applyFormatting",
function(c){var d=CKEDITOR.plugins.copyformatting,b=d._determineContext(c.data.range);"list"===b&&a.copyFormatting._isContextAllowed("list")?d._applyStylesToListContext(c.editor,c.data.range,c.data.styles):"table"===b&&a.copyFormatting._isContextAllowed("table")?d._applyStylesToTableContext(c.editor,c.data.range,c.data.styles):a.copyFormatting._isContextAllowed("text")&&d._applyStylesToTextContext(c.editor,c.data.range,c.data.styles)},null,null,999)}});d.prototype._isContextAllowed=function(a){var c=
this.editor.config.copyFormatting_allowedContexts;return!0===c||-1!==f(c,a)};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,c){var d=CKEDITOR.plugins.copyformatting,e=a.copyFormatting,b=c?"keystrokeHandler"==c.from:!1,f=c?c.sticky||b:!1,h=d._getCursorContainer(a),g=CKEDITOR.document.getDocumentElement();if(this.state===CKEDITOR.TRISTATE_ON)return e.styles=null,e.sticky=!1,h.removeClass("cke_copyformatting_active"),g.removeClass("cke_copyformatting_disabled"),g.removeClass("cke_copyformatting_tableresize_cursor"),
d._putScreenReaderMessage(a,"canceled"),d._detachPasteKeystrokeHandler(a),this.setState(CKEDITOR.TRISTATE_OFF);e.styles=d._extractStylesFromElement(a,a.elementPath().lastElement);this.setState(CKEDITOR.TRISTATE_ON);b||(h.addClass("cke_copyformatting_active"),g.addClass("cke_copyformatting_tableresize_cursor"),a.config.copyFormatting_outerCursor&&g.addClass("cke_copyformatting_disabled"));e.sticky=f;d._putScreenReaderMessage(a,"copied");d._attachPasteKeystrokeHandler(a)}},applyFormatting:{editorFocus:CKEDITOR.env.ie&&
!CKEDITOR.env.edge?!1:!0,exec:function(a,c){var d=a.getCommand("copyFormatting"),e=c?"keystrokeHandler"==c.from:!1,b=CKEDITOR.plugins.copyformatting,f=a.copyFormatting,h=b._getCursorContainer(a),g=CKEDITOR.document.getDocumentElement();if(e&&!f.styles)return b._putScreenReaderMessage(a,"failed"),b._detachPasteKeystrokeHandler(a),!1;e=b._applyFormat(a,f.styles);f.sticky||(f.styles=null,h.removeClass("cke_copyformatting_active"),g.removeClass("cke_copyformatting_disabled"),g.removeClass("cke_copyformatting_tableresize_cursor"),
d.setState(CKEDITOR.TRISTATE_OFF),b._detachPasteKeystrokeHandler(a));b._putScreenReaderMessage(a,e?"applied":"canceled")}}},_getCursorContainer:function(a){return a.elementMode===CKEDITOR.ELEMENT_MODE_INLINE?a.editable():a.editable().getParent()},_convertElementToStyleDef:function(a){var c=CKEDITOR.tools,d=a.getAttributes(CKEDITOR.plugins.copyformatting.excludedAttributes),c=c.parseCssText(a.getAttribute("style"),!0,!0);return{element:a.getName(),type:CKEDITOR.STYLE_INLINE,attributes:d,styles:c}},
_extractStylesFromElement:function(a,c){var d={},e=[];do if(!(c.type!==CKEDITOR.NODE_ELEMENT||c.hasAttribute("data-cke-bookmark")))if(d.element=c,a.copyFormatting.fire("extractFormatting",d,a)&&d.styleDef&&e.push(new CKEDITOR.style(d.styleDef)),c.getName&&-1!==f(CKEDITOR.plugins.copyformatting.breakOnElements,c.getName()))break;while((c=c.getParent())&&c.type===CKEDITOR.NODE_ELEMENT);return e},_extractStylesFromRange:function(a,c){for(var d=[],e=new CKEDITOR.dom.walker(c),b;b=e.next();)d=d.concat(CKEDITOR.plugins.copyformatting._extractStylesFromElement(a,
b));return d},_removeStylesFromElementInRange:function(a,c){for(var d=-1!==f(["ol","ul","table"],c),e=new CKEDITOR.dom.walker(a),b;b=e.next();)if(b=b.getAscendant(c,!0))if(b.removeAttributes(b.getAttributes()),d)break},_getSelectedWordOffset:function(a){function c(a,b){return a[b?"getPrevious":"getNext"](function(a){return a.type!==CKEDITOR.NODE_COMMENT})}function d(a){return a.type==CKEDITOR.NODE_ELEMENT?(a=a.getHtml().replace(/<span.*?> <\/span>/g,""),a.replace(/<.*?>/g,"")):a.getText()}function e(a,
b){var h=a,g=/\s/g,k="p br ol ul li td th div caption body".split(" "),m=!1,n=!1,p,v;do{for(p=c(h,b);!p&&h.getParent();){h=h.getParent();if(-1!==f(k,h.getName())){n=m=!0;break}p=c(h,b)}if(p&&p.getName&&-1!==f(k,p.getName())){m=!0;break}h=p}while(h&&h.getStyle&&("none"==h.getStyle("display")||!h.getText()));for(h||(h=a);h.type!==CKEDITOR.NODE_TEXT;)h=m&&!b&&!n?h.getChild(h.getChildCount()-1):h.getChild(0);for(k=d(h);null!=(n=g.exec(k))&&!(v=n.index,!b););if("number"!==typeof v&&!m)return e(h,b);if(m)b?
v=0:(g=/([\.\b]*$)/,v=(n=g.exec(k))?n.index:k.length);else if(b&&(v+=1,v>k.length))return e(h);return{node:h,offset:v}}var b=/\b\w+\b/ig,h,g,m,r,q;m=r=q=a.startContainer;for(h=d(m);null!=(g=b.exec(h));)if(g.index+g[0].length>=a.startOffset)return a=g.index,b=g.index+g[0].length,0===g.index&&(g=e(m,!0),r=g.node,a=g.offset),b>=h.length&&(h=e(m),q=h.node,b=h.offset),{startNode:r,startOffset:a,endNode:q,endOffset:b};return null},_filterStyles:function(a){var c=CKEDITOR.tools.isEmpty,d=[],e,b;for(b=0;b<
a.length;b++)e=a[b]._.definition,-1!==CKEDITOR.tools.indexOf(CKEDITOR.plugins.copyformatting.inlineBoundary,e.element)&&(e.element=a[b].element="span"),"span"===e.element&&c(e.attributes)&&c(e.styles)||d.push(a[b]);return d},_determineContext:function(a){function c(c){var d=new CKEDITOR.dom.walker(a),b;if(a.startContainer.getAscendant(c,!0)||a.endContainer.getAscendant(c,!0))return!0;for(;b=d.next();)if(b.getAscendant(c,!0))return!0}return c({ul:1,ol:1})?"list":c("table")?"table":"text"},_applyStylesToTextContext:function(a,
c,d){var e=CKEDITOR.plugins.copyformatting,b=e.excludedAttributesFromInlineTransform,h,g;CKEDITOR.env.webkit&&!CKEDITOR.env.chrome&&a.getSelection().selectRanges([c]);for(h=0;h<d.length;h++)if(c=d[h],-1===f(e.excludedElementsFromInlineTransform,c.element)){if(-1!==f(e.elementsForInlineTransform,c.element)){c.element=c._.definition.element="span";for(g=0;g<b.length;g++)c._.definition.attributes[b[g]]&&delete c._.definition.attributes[b[g]]}c.apply(a)}},_applyStylesToListContext:function(d,c,f){var e,
b,h;for(h=0;h<f.length;h++)e=f[h],b=c.createBookmark(),"ol"===e.element||"ul"===e.element?a(c,{ul:1,ol:1},function(a){var b=e;a.getName()!==b.element&&a.renameNode(b.element);b.applyToObject(a)},!0):"li"===e.element?a(c,"li",function(a){e.applyToObject(a)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(d,c,[e]),c.moveToBookmark(b)},_applyStylesToTableContext:function(d,c,h){function e(a,b){a.getName()!==b.element&&(b=b.getDefinition(),b.element=a.getName(),b=new CKEDITOR.style(b));b.applyToObject(a)}
var b,g,m;for(m=0;m<h.length;m++)b=h[m],g=c.createBookmark(),-1!==f(["table","tr"],b.element)?a(c,b.element,function(a){b.applyToObject(a)}):-1!==f(["td","th"],b.element)?a(c,{td:1,th:1},function(a){e(a,b)}):-1!==f(["thead","tbody"],b.element)?a(c,{thead:1,tbody:1},function(a){e(a,b)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(d,c,[b]),c.moveToBookmark(g)},_applyFormat:function(a,c){var d=a.getSelection().getRanges()[0],e=CKEDITOR.plugins.copyformatting,b,f;if(!d)return!1;if(d.collapsed){f=
a.getSelection().createBookmarks();if(!(b=e._getSelectedWordOffset(d)))return;d=a.createRange();d.setStart(b.startNode,b.startOffset);d.setEnd(b.endNode,b.endOffset);d.select()}c=e._filterStyles(c);if(!a.copyFormatting.fire("applyFormatting",{styles:c,range:d,preventFormatStripping:!1},a))return!1;f&&a.getSelection().selectBookmarks(f);return!0},_putScreenReaderMessage:function(a,c){var d=this._getScreenReaderContainer();d&&d.setText(a.lang.copyformatting.notification[c])},_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 c=
a.config.copyFormatting_keystrokePaste;c&&(this._initialKeystrokePasteCommand=a.keystrokeHandler.keystrokes[c],a.setKeystroke(c,"applyFormatting"))},_detachPasteKeystrokeHandler:function(a){var c=a.config.copyFormatting_keystrokePaste;c&&a.setKeystroke(c,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(a){for(var g=a.config.menu_groups.split(","),d=a._.menuGroups={},f=a._.menuItems={},h=0;h<g.length;h++)d[g[h]]=h+1;a.addMenuGroup=function(a,f){d[a]=f||100};a.addMenuItem=function(a,h){d[h.group]&&(f[a]=new CKEDITOR.menuItem(this,
a,h))};a.addMenuItems=function(a){for(var d in a)this.addMenuItem(d,a[d])};a.getMenuItem=function(a){return f[a]};a.removeMenuItem=function(a){delete f[a]}}}),function(){function a(a){a.sort(function(a,c){return a.group<c.group?-1:a.group>c.group?1:a.order<c.order?-1:a.order>c.order?1:0})}var g='\x3cspan class\x3d"cke_menuitem"\x3e\x3ca id\x3d"{id}" class\x3d"cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href\x3d"{href}" title\x3d"{title}" tabindex\x3d"-1" _cke_focus\x3d1 hidefocus\x3d"true" role\x3d"{role}" aria-label\x3d"{label}" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasPopup}" aria-disabled\x3d"{disabled}" {ariaChecked} draggable\x3d"false"';
CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(g+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(g+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;" ondragstart\x3d"return false;"');var g=g+(' onmouseover\x3d"CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout\x3d"CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},{index}); return false;"\x3e'),d=CKEDITOR.addTemplate("menuItem",
g+'\x3cspan class\x3d"cke_menubutton_inner"\x3e\x3cspan class\x3d"cke_menubutton_icon"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{iconStyle}"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"cke_menubutton_label"\x3e{label}\x3c/span\x3e{shortcutHtml}{arrowHtml}\x3c/span\x3e\x3c/a\x3e\x3cspan id\x3d"{id}_description" class\x3d"cke_voice_label" aria-hidden\x3d"false"\x3e{ariaShortcut}\x3c/span\x3e\x3c/span\x3e'),f=CKEDITOR.addTemplate("menuArrow",'\x3cspan class\x3d"cke_menuarrow"\x3e\x3cspan\x3e{label}\x3c/span\x3e\x3c/span\x3e'),
h=CKEDITOR.addTemplate("menuShortcut",'\x3cspan class\x3d"cke_menubutton_label cke_menubutton_shortcut"\x3e{shortcut}\x3c/span\x3e');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,d){d=this._.definition=d||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=d.level||1;var c=CKEDITOR.tools.extend({},d.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),f=c.block.attributes=c.attributes||{};!f.role&&(f.role="menu");this._.panelDefinition=
c},_:{onShow:function(){var a=this.editor.getSelection(),d=a&&a.getStartElement(),c=this.editor.elementPath(),f=this._.listeners;this.removeAll();for(var e=0;e<f.length;e++){var b=f[e](d,a,c);if(b)for(var h in b){var g=this.editor.getMenuItem(h);if(g&&(!g.command||this.editor.getCommand(g.command).state))g.state=b[h],this.add(g)}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var d=this.parent;d?d._.panel.hideChild(1):
27==a&&this.hide(1);return!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var d=this._.subMenu,c=this.items[a];if(c=c.getItems&&c.getItems()){d?d.removeAll():(d=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),d.parent=this,d._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var f in c){var e=this.editor.getMenuItem(f);e&&(e.state=c[f],d.add(e))}var b=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+
String(a));setTimeout(function(){d.show(b,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(d,f,c,h){if(!this.parent&&(this._.onShow(),!this.items.length))return;f=f||("rtl"==this.editor.lang.dir?2:1);var e=this.items,b=this.editor,g=this._.panel,p=this._.element;if(!g){g=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);
g.onEscape=CKEDITOR.tools.bind(function(a){if(!1===this._.onEscape(a))return!1},this);g.onShow=function(){g._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};g.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);p=g.addBlock(this.id,this._.panelDefinition.block);p.autoSize=!0;var v=p.keys;v[40]="next";v[9]="next";v[38]="prev";v[CKEDITOR.SHIFT+9]="prev";v["rtl"==b.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click";v[32]=CKEDITOR.env.ie?"mouseup":
"click";CKEDITOR.env.ie&&(v[13]="mouseup");p=this._.element=p.element;v=p.getDocument();v.getBody().setStyle("overflow","hidden");v.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,b.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)}a(e);for(var v=b.elementPath(),v=['\x3cdiv class\x3d"cke_menu'+(v&&v.direction()!=b.lang.dir?" cke_mixed_dir_content":"")+'" role\x3d"presentation"\x3e'],r=e.length,q=r&&e[0].group,u=0;u<r;u++){var s=e[u];q!=s.group&&(v.push('\x3cdiv class\x3d"cke_menuseparator" role\x3d"separator"\x3e\x3c/div\x3e'),
q=s.group);s.render(this,u,v)}v.push("\x3c/div\x3e");p.setHtml(v.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(g,this.id,d,f,c,h):g.showBlock(this.id,d,f,c,h);b.fire("menuShow",[g])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)},findItemByCommandName:function(a){var d=CKEDITOR.tools.array.filter(this.items,function(c){return a===c.command});return d.length?(d=d[0],{item:d,
element:this._.element.findOne("."+d.className)}):null}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,d,c){CKEDITOR.tools.extend(this,c,{order:0,className:"cke_menubutton__"+d});this.group=a._.menuGroups[this.group];this.editor=a;this.name=d},proto:{render:function(a,g,c){var l=a.id+String(g),e="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,b="",n=this.editor,p,v,r=e==CKEDITOR.TRISTATE_ON?"on":e==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,
menuitemradio:1}&&(b=' aria-checked\x3d"'+(e==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var q=this.getItems,u="\x26#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",s=this.name;this.icon&&!/\./.test(this.icon)&&(s=this.icon);this.command&&(p=n.getCommand(this.command),(p=n.getCommandKeystroke(p))&&(v=CKEDITOR.tools.keystrokeToString(n.lang.common.keyboard,p)));a={id:l,name:this.name,iconName:s,label:this.label,cls:this.className||"",state:r,hasPopup:q?"true":"false",disabled:e==CKEDITOR.TRISTATE_DISABLED,
title:this.label+(v?" ("+v.display+")":""),ariaShortcut:v?n.lang.common.keyboardShortcut+" "+v.aria:"",href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:a._.itemOverFn,moveOutFn:a._.itemOutFn,clickFn:a._.itemClickFn,index:g,iconStyle:CKEDITOR.skin.getIconStyle(s,"rtl"==this.editor.lang.dir,s==this.icon?null:this.icon,this.iconOffset),shortcutHtml:v?h.output({shortcut:v.display}):"",arrowHtml:q?f.output({label:u}):"",role:this.role?this.role:"menuitem",ariaChecked:b};d.output(a,c)}}})}(),
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(a){this.base.call(this,a,{panel:{css:a.config.contextmenu_contentsCss,className:"cke_menu_panel",attributes:{"aria-label":a.lang.contextmenu.options}}})},
proto:{addTarget:function(a,g){function d(){h=!1}var f,h;a.on("contextmenu",function(a){a=a.data;var c=CKEDITOR.env.webkit?f:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey;if(!g||!c)if(a.preventDefault(),!h){if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var c=this.editor,d=(new CKEDITOR.dom.elementPath(a.getTarget(),c.editable())).contains(function(a){return a.hasAttribute("contenteditable")},!0);d&&"false"==d.getAttribute("contenteditable")&&c.getSelection().fake(d)}var d=a.getTarget().getDocument(),e=a.getTarget().getDocument().getDocumentElement(),
c=!d.equals(CKEDITOR.document),d=d.getWindow().getScrollPosition(),b=c?a.$.clientX:a.$.pageX||d.x+a.$.clientX,m=c?a.$.clientY:a.$.pageY||d.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(e,null,b,m)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var m=function(){f=0};a.on("keydown",function(a){f=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});a.on("keyup",m);a.on("contextmenu",m)}CKEDITOR.env.gecko&&!CKEDITOR.env.mac&&(a.on("keydown",function(a){a.data.$.shiftKey&&
121===a.data.$.keyCode&&(h=!0)},null,null,0),a.on("keyup",d),a.on("contextmenu",d))},open:function(a,g,d,f){!1===this.editor.config.enableContextMenu||this.editor.getSelection().getType()===CKEDITOR.SELECTION_NONE||(this.editor.focus(),a=a||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(a,g,d,f))}}})},beforeInit:function(a){var g=a.contextMenu=new CKEDITOR.plugins.contextMenu(a);a.on("contentDom",function(){g.addTarget(a.editable(),!1!==a.config.browserContextMenuOnCtrl)});
a.addCommand("contextMenu",{exec:function(a){var f=0,h=0,g=a.getSelection().getRanges(),g=g[g.length-1].getClientRects(a.editable().isInline());if(g=g[g.length-1])f=g["rtl"===a.lang.dir?"left":"right"],h=g.bottom;a.contextMenu.open(a.document.getBody().getParent(),null,f,h)}});a.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");a.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){function a(a){var d=this.att;a=a&&a.hasAttribute(d)&&a.getAttribute(d)||"";void 0!==a&&this.setValue(a)}
function g(){for(var a,d=0;d<arguments.length;d++)if(arguments[d]instanceof CKEDITOR.dom.element){a=arguments[d];break}if(a){var d=this.att,g=this.getValue();g?a.setAttribute(d,g):a.removeAttribute(d,g)}}var d={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(a){a||(a=d);var h=[];a.id&&h.push("id");a.dir&&h.push("dir");var g="";h.length&&(g+="["+h.join(",")+"]");a.classes&&(g+="(*)");a.styles&&(g+="{*}");return g},createAdvancedTab:function(f,
h,m){h||(h=d);var k=f.lang.common,c={id:"advanced",label:k.advancedTab,title:k.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},l=[];if(h.id||h.dir)h.id&&l.push({id:"advId",att:"id",type:"text",requiredContent:m?m+"[id]":null,label:k.id,setup:a,commit:g}),h.dir&&l.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:a,commit:g}),c.elements[0].children.push({type:"hbox",
widths:["50%","50%"],children:[].concat(l)});if(h.styles||h.classes)l=[],h.styles&&l.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 c=this.getValue().match(RegExp("(?:^|;)\\s*"+a+"\\s*:\\s*([^;]*)","i"));return c?c[1]:b},updateStyle:function(a,b){var c=this.getValue(),d=f.document.createElement("span");d.setAttribute("style",
c);d.setStyle(a,b);c=CKEDITOR.tools.normalizeCssText(d.getAttribute("style"));this.setValue(c,1)},setup:a,commit:g}),h.classes&&l.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:m?m+"(cke-xyz)":null,label:k.cssClasses,"default":"",setup:a,commit:g}]}),c.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(l)});return c}})}(),function(){CKEDITOR.plugins.add("div",{requires:"dialog",init:function(a){if(!a.blockless){var g=
a.lang.div,d="div(*)";CKEDITOR.dialog.isTabEnabled(a,"editdiv","advanced")&&(d+=";div[dir,id,lang,title]{*}");a.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:d,requiredContent:"div",contextSensitive:!0,contentTransformations:[["div: alignmentToStyle"]],refresh:function(a,d){this.setState("div"in(a.config.div_wrapTable?d.root:d.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}}));a.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"}));
a.addCommand("removediv",{requiredContent:"div",exec:function(a){function d(b){if((b=CKEDITOR.plugins.div.getSurroundDiv(a,b))&&!b.data("cke-div-added"))e.push(b),b.data("cke-div-added")}for(var g=a.getSelection(),k=g&&g.getRanges(),c,l=g.createBookmarks(),e=[],b=0;b<k.length;b++)c=k[b],c.collapsed?d(g.getStartElement()):(c=new CKEDITOR.dom.walker(c),c.evaluator=d,c.lastForward());for(b=0;b<e.length;b++)e[b].remove(!0);g.selectBookmarks(l)}});a.ui.addButton&&a.ui.addButton("CreateDiv",{label:g.toolbar,
command:"creatediv",toolbar:"blocks,50"});a.addMenuItems&&(a.addMenuItems({editdiv:{label:g.edit,command:"editdiv",group:"div",order:1},removediv:{label:g.remove,command:"removediv",group:"div",order:5}}),a.contextMenu&&a.contextMenu.addListener(function(d){return!d||d.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(a)?{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(a,g){var d=a.elementPath(g);return a.elementPath(d.blockLimit).contains(function(a){return a.is("div")&&!a.isReadOnly()},1)}}}(),function(){function a(a,f){function c(b){b=n.list[b];var c;b.equals(a.editable())||"true"==b.getAttribute("contenteditable")?(c=a.createRange(),c.selectNodeContents(b),c=c.select()):(c=a.getSelection(),c.selectElement(b));CKEDITOR.env.ie&&a.fire("selectionChange",{selection:c,path:new CKEDITOR.dom.elementPath(b)});a.focus()}
function l(){b&&b.setHtml(d);delete n.list}var e=a.ui.spaceId("path"),b,n=a._.elementsPath,p=n.idBase;f.html+='\x3cspan id\x3d"'+e+'_label" class\x3d"cke_voice_label"\x3e'+a.lang.elementspath.eleLabel+'\x3c/span\x3e\x3cspan id\x3d"'+e+'" class\x3d"cke_path" role\x3d"group" aria-labelledby\x3d"'+e+'_label"\x3e'+d+"\x3c/span\x3e";a.on("uiReady",function(){var b=a.ui.space("path");b&&a.focusManager.add(b,1)});n.onClick=c;var v=CKEDITOR.tools.addFunction(c),r=CKEDITOR.tools.addFunction(function(b,d){var e=
n.idBase,f;d=new CKEDITOR.dom.event(d);f="rtl"==a.lang.dir;switch(d.getKeystroke()){case f?39:37:case 9:return(f=CKEDITOR.document.getById(e+(b+1)))||(f=CKEDITOR.document.getById(e+"0")),f.focus(),!1;case f?37:39:case CKEDITOR.SHIFT+9:return(f=CKEDITOR.document.getById(e+(b-1)))||(f=CKEDITOR.document.getById(e+(n.list.length-1))),f.focus(),!1;case 27:return a.focus(),!1;case 13:case 32:return c(b),!1}return!0});a.on("selectionChange",function(c){for(var f=[],g=n.list=[],k=[],l=n.filters,x=!0,y=c.data.path.elements,
A=y.length;A--;){var z=y[A],D=0;c=z.data("cke-display-name")?z.data("cke-display-name"):z.data("cke-real-element-type")?z.data("cke-real-element-type"):z.getName();x=z.hasAttribute("contenteditable")?"true"==z.getAttribute("contenteditable"):x;!x&&!z.hasAttribute("contenteditable")&&(D=1);for(var E=0;E<l.length;E++){var F=l[E](z,c);if(!1===F){D=1;break}c=F||c}D||(g.unshift(z),k.unshift(c))}g=g.length;for(l=0;l<g;l++)c=k[l],x=a.lang.elementspath.eleTitle.replace(/%1/,c),c=h.output({id:p+l,label:x,
text:c,jsTitle:"javascript:void('"+c+"')",index:l,keyDownFn:r,clickFn:v}),f.unshift(c);b||(b=CKEDITOR.document.getById(e));k=b;k.setHtml(f.join("")+d);a.fire("elementsPathUpdate",{space:k})});a.on("readOnly",l);a.on("contentDomUnload",l);a.addCommand("elementsPathFocus",g.toolbarFocus);a.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='\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e',f="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(f+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(f+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var h=CKEDITOR.addTemplate("pathItem",'\x3ca id\x3d"{id}" href\x3d"{jsTitle}" tabindex\x3d"-1" class\x3d"cke_path_item" title\x3d"{label}"'+f+' hidefocus\x3d"true" 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(d){d._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};d.on("uiSpace",function(f){"bottom"==f.data.space&&a(d,f.data)})}})}(),function(){function a(a,b,d){d=a.config.forceEnterMode||d;if("wysiwyg"==a.mode){b||(b=a.activeEnterMode);var f=a.elementPath();f&&!f.isContextFor("p")&&(b=CKEDITOR.ENTER_BR,d=1);a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?k(a,b,null,d):c(a,b,null,d);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(c){c.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(b){a(b)}});c.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,
exec:function(b){a(b,b.activeShiftEnterMode,1)}});c.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var f=CKEDITOR.dom.walker.whitespaces(),h=CKEDITOR.dom.walker.bookmark(),m,k,c,l;CKEDITOR.plugins.enterkey={enterBlock:function(a,b,c,m){function v(a){var b;if(a===CKEDITOR.ENTER_BR||-1===CKEDITOR.tools.indexOf(["td","th"],s.lastElement.getName())||1!==s.lastElement.getChildCount())return!1;a=s.lastElement.getChild(0).clone(!0);(b=a.getBogus())&&b.remove();return a.getText().length?
!1:!0}if(c=c||g(a)){c=d(c);var r=c.document,q=c.checkStartOfBlock(),u=c.checkEndOfBlock(),s=a.elementPath(c.startContainer),t=s.block,w=b==CKEDITOR.ENTER_DIV?"div":"p",x;if(t&&q&&u){q=t.getParent();if(q.is("li")&&1<q.getChildCount()){r=new CKEDITOR.dom.element("li");x=a.createRange();r.insertAfter(q);t.remove();x.setStart(r,0);a.getSelection().selectRanges([x]);return}if(t.is("li")||t.getParent().is("li")){t.is("li")||(t=t.getParent(),q=t.getParent());x=q.getParent();c=!t.hasPrevious();var y=!t.hasNext();
m=a.getSelection();var w=m.createBookmarks(),A=t.getDirection(1),u=t.getAttribute("class"),z=t.getAttribute("style"),D=x.getDirection(1)!=A;a=a.enterMode!=CKEDITOR.ENTER_BR||D||z||u;if(x.is("li"))c||y?(c&&y&&q.remove(),t[y?"insertAfter":"insertBefore"](x)):t.breakParent(x);else{if(a)if(s.block.is("li")?(x=r.createElement(b==CKEDITOR.ENTER_P?"p":"div"),D&&x.setAttribute("dir",A),z&&x.setAttribute("style",z),u&&x.setAttribute("class",u),t.moveChildren(x)):x=s.block,c||y)x[c?"insertBefore":"insertAfter"](q);
else t.breakParent(q),x.insertAfter(q);else if(t.appendBogus(!0),c||y)for(;r=t[c?"getFirst":"getLast"]();)r[c?"insertBefore":"insertAfter"](q);else for(t.breakParent(q);r=t.getLast();)r.insertAfter(q);t.remove()}m.selectBookmarks(w);return}if(t&&t.getParent().is("blockquote")){t.breakParent(t.getParent());t.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||t.getPrevious().remove();t.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||t.getNext().remove();c.moveToElementEditStart(t);c.select();
return}}else if(t&&t.is("pre")&&!u){k(a,b,c,m);return}if(z=c.splitBlock(w)){a=z.previousBlock;t=z.nextBlock;q=z.wasStartOfBlock;u=z.wasEndOfBlock;if(t)y=t.getParent(),y.is("li")&&(t.breakParent(y),t.move(t.getNext(),1));else if(a&&(y=a.getParent())&&y.is("li"))a.breakParent(y),y=a.getNext(),c.moveToElementEditStart(y),a.move(a.getPrevious());if(!q&&!u)t.is("li")&&(x=c.clone(),x.selectNodeContents(t),x=new CKEDITOR.dom.walker(x),x.evaluator=function(a){return!(h(a)||f(a)||a.type==CKEDITOR.NODE_ELEMENT&&
a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))},(y=x.next())&&(y.type==CKEDITOR.NODE_ELEMENT&&y.is("ul","ol"))&&(CKEDITOR.env.needsBrFiller?r.createElement("br"):r.createText(" ")).insertBefore(y)),t&&c.moveToElementEditStart(t);else if(v(b))c.moveToElementEditStart(c.getTouchedStartNode());else{if(a){if(a.is("li")||!l.test(a.getName())&&!a.is("pre"))x=a.clone()}else t&&(x=t.clone());x?m&&!x.is("li")&&x.renameNode(w):y&&y.is("li")?x=y:(x=r.createElement(w),a&&(A=a.getDirection())&&
x.setAttribute("dir",A));if(r=z.elementPath){b=0;for(m=r.elements.length;b<m;b++){w=r.elements[b];if(w.equals(r.block)||w.equals(r.blockLimit))break;CKEDITOR.dtd.$removeEmpty[w.getName()]&&(w=w.clone(),x.moveChildren(w),x.append(w))}}x.appendBogus();x.getParent()||c.insertNode(x);x.is("li")&&x.removeAttribute("value");if(CKEDITOR.env.ie&&q&&(!u||!a.getChildCount()))c.moveToElementEditStart(u?a:x),c.select();c.moveToElementEditStart(q&&!u?t:x)}c.select();c.scrollIntoView()}}},enterBr:function(a,b,
d,f){if(d=d||g(a)){var h=d.document,k=d.checkEndOfBlock(),m=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),u=m.block,s=u&&m.block.getName();!f&&"li"==s?c(a,b,d,f):(!f&&k&&l.test(s)?(k=u.getDirection())?(h=h.createElement("div"),h.setAttribute("dir",k),h.insertAfter(u),d.setStart(h,0)):(h.createElement("br").insertAfter(u),CKEDITOR.env.gecko&&h.createText("").insertAfter(u),d.setStartAt(u.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(a=
"pre"==s&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?h.createText("\r"):h.createElement("br"),d.deleteContents(),d.insertNode(a),CKEDITOR.env.needsBrFiller?(h.createText("").insertAfter(a),k&&(u||m.blockLimit).appendBogus(),a.getNext().$.nodeValue="",d.setStartAt(a.getNext(),CKEDITOR.POSITION_AFTER_START)):d.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),d.collapse(!0),d.select(),d.scrollIntoView())}}};m=CKEDITOR.plugins.enterkey;k=m.enterBr;c=m.enterBlock;l=/^h[1-6]$/}(),function(){function a(a,d){var f=
{},h=[],m={nbsp:" ",shy:"",gt:"\x3e",lt:"\x3c",amp:"\x26",apos:"'",quot:'"'};a=a.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(a,b){var c=d?"\x26"+b+";":m[b];f[c]=d?m[b]:"\x26"+b+";";h.push(c);return""});a=a.replace(/,$/,"");if(!d&&a){a=a.split(",");var k=document.createElement("div"),c;k.innerHTML="\x26"+a.join(";\x26")+";";c=k.innerHTML;k=null;for(k=0;k<c.length;k++){var l=c.charAt(k);f[l]="\x26"+a[k]+";";h.push(l)}}f.regex=h.join(d?"|":"");return f}CKEDITOR.plugins.add("entities",
{afterInit:function(g){function d(a){return l[a]}function f(a){return"force"==h.entities_processNumerical||!k[a]?"\x26#"+a.charCodeAt(0)+";":k[a]}var h=g.config;if(g=(g=g.dataProcessor)&&g.htmlFilter){var m=[];!1!==h.basicEntities&&m.push("nbsp,gt,lt,amp");h.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"),
h.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"),h.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"),
h.entities_additional&&m.push(h.entities_additional));var k=a(m.join(",")),c=k.regex?"["+k.regex+"]":"a^";delete k.regex;h.entities&&h.entities_processNumerical&&(c="[^ -~]|"+c);var c=RegExp(c,"g"),l=a("nbsp,gt,lt,amp,shy",!0),e=RegExp(l.regex,"g");g.addRules({text:function(a){return a.replace(e,d).replace(c,f)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional=
"#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(a,g,d,f){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 h=parseInt((window.screen.height-d)/2,10),m=parseInt((window.screen.width-g)/2,10);f=(f||"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"+h+",left\x3d"+m;var k=window.open("",null,f,!0);if(!k)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(k.moveTo(m,h),k.resizeTo(g,d)),k.focus(),k.location.href=a}catch(c){window.open(a,null,f,!0)}return!0}}),"use strict",function(){function a(a){this.editor=a;this.loaders=[]}function g(a,f,g){var c=a.config.fileTools_defaultFileName;this.editor=a;this.lang=a.lang;"string"===typeof f?(this.data=f,this.file=d(this.data),this.loaded=this.total=
this.file.size):(this.data=null,this.file=f,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("/"),c&&(a[0]=c),this.fileName=a.join("."));this.uploaded=0;this.responseData=this.uploadTotal=null;this.status="created";this.abort=function(){this.changeStatus("abort")}}function d(a){var d=a.match(f)[1];a=a.replace(f,"");a=atob(a);var g=[],c,l,e,b;for(c=0;c<a.length;c+=512){l=a.slice(c,c+512);e=Array(l.length);for(b=0;b<l.length;b++)e[b]=
l.charCodeAt(b);l=new Uint8Array(e);g.push(l)}return new Blob(g,{type:d})}CKEDITOR.plugins.add("filetools",{beforeInit:function(d){d.uploadRepository=new a(d);d.on("fileUploadRequest",function(a){var d=a.data.fileLoader;d.xhr.open("POST",d.uploadUrl,!0);a.data.requestData.upload={file:d.file,name:d.fileName}},null,null,5);d.on("fileUploadRequest",function(a){var f=a.data.fileLoader,c=new FormData;a=a.data.requestData;var g=d.config.fileTools_requestHeaders,e,b;for(b in a){var n=a[b];"object"===typeof n&&
n.file?c.append(b,n.file,n.name):c.append(b,n)}c.append("ckCsrfToken",CKEDITOR.tools.getCsrfToken());if(g)for(e in g)f.xhr.setRequestHeader(e,g[e]);f.xhr.send(c)},null,null,999);d.on("fileUploadResponse",function(a){var d=a.data.fileLoader,c=d.xhr,f=a.data;try{var e=JSON.parse(c.responseText);e.error&&e.error.message&&(f.message=e.error.message);if(e.uploaded)for(var b in e)f[b]=e[b];else a.cancel()}catch(h){f.message=d.lang.filetools.responseError,CKEDITOR.warn("filetools-response-error",{responseText:c.responseText}),
a.cancel()}},null,null,999)}});a.prototype={create:function(a,d,f){f=f||g;var c=this.loaders.length;a=new f(this.editor,a,d);a.id=c;this.loaders[c]=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,d){var f=this;this.once("loaded",function(c){c.cancel();f.once("update",function(a){a.cancel()},null,null,0);f.upload(a,d)},null,null,0);this.load()},load:function(){var a=
this,d=this.reader=new FileReader;a.changeStatus("loading");this.abort=function(){a.reader.abort()};d.onabort=function(){a.changeStatus("abort")};d.onerror=function(){a.message=a.lang.filetools.loadError;a.changeStatus("error")};d.onprogress=function(d){a.loaded=d.loaded;a.update()};d.onload=function(){a.loaded=a.total;a.data=d.result;a.changeStatus("loaded")};d.readAsDataURL(this.file)},upload:function(a,d){var f=d||{};a?(this.uploadUrl=a,this.xhr=new XMLHttpRequest,this.attachRequestListeners(),
this.editor.fire("fileUploadRequest",{fileLoader:this,requestData:f})&&this.changeStatus("uploading")):(this.message=this.lang.filetools.noUrlError,this.changeStatus("error"))},attachRequestListeners:function(){function a(){"error"!=f.status&&(f.message=f.lang.filetools.networkError,f.changeStatus("error"))}function d(){"abort"!=f.status&&f.changeStatus("abort")}var f=this,c=this.xhr;f.abort=function(){c.abort();d()};c.onerror=a;c.onabort=d;c.upload?(c.upload.onprogress=function(a){a.lengthComputable&&
(f.uploadTotal||(f.uploadTotal=a.total),f.uploaded=a.loaded,f.update())},c.upload.onerror=a,c.upload.onabort=d):(f.uploadTotal=f.total,f.update());c.onload=function(){f.update();if("abort"!=f.status)if(f.uploaded=f.uploadTotal,200>c.status||299<c.status)f.message=f.lang.filetools["httpError"+c.status],f.message||(f.message=f.lang.filetools.httpError.replace("%1",c.status)),f.changeStatus("error");else{for(var a={fileLoader:f},d=["message","fileName","url"],b=f.editor.fire("fileUploadResponse",a),
h=0;h<d.length;h++){var g=d[h];"string"===typeof a[g]&&(f[g]=a[g])}f.responseData=a;delete f.responseData.fileLoader;!1===b?f.changeStatus("error"):f.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(a.prototype);CKEDITOR.event.implementOn(g.prototype);
var f=/^data:(\S*?);base64,/;CKEDITOR.fileTools||(CKEDITOR.fileTools={});CKEDITOR.tools.extend(CKEDITOR.fileTools,{uploadRepository:a,fileLoader:g,getUploadUrl:function(a,d){var f=CKEDITOR.tools.capitalize;return d&&a[d+"UploadUrl"]?a[d+"UploadUrl"]:a.uploadUrl?a.uploadUrl:d&&a["filebrowser"+f(d,1)+"UploadUrl"]?a["filebrowser"+f(d,1)+"UploadUrl"]+"\x26responseType\x3djson":a.filebrowserUploadUrl?a.filebrowserUploadUrl+"\x26responseType\x3djson":null},isTypeSupported:function(a,d){return!!a.type.match(d)},
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 a(a,b){var c=[];if(b)for(var d in b)c.push(d+"\x3d"+encodeURIComponent(b[d]));else return a;return a+(-1!=a.indexOf("?")?"\x26":"?")+c.join("\x26")}function g(a){a+="";return a.charAt(0).toUpperCase()+a.substr(1)}function d(){var b=this.getDialog(),
c=b.getParentEditor();c._.filebrowserSe=this;var d=c.config["filebrowser"+g(b.getName())+"WindowWidth"]||c.config.filebrowserWindowWidth||"80%",b=c.config["filebrowser"+g(b.getName())+"WindowHeight"]||c.config.filebrowserWindowHeight||"70%",e=this.filebrowser.params||{};e.CKEditor=c.name;e.CKEditorFuncNum=c._.filebrowserFn;e.langCode||(e.langCode=c.langCode);e=a(this.filebrowser.url,e);c.popup(e,d,b,c.config.filebrowserWindowFeatures||c.config.fileBrowserWindowFeatures)}function f(a){var c=new CKEDITOR.dom.element(a.$.form);
c&&((a=c.$.elements[b])?a=new CKEDITOR.dom.element(a):(a=new CKEDITOR.dom.element("input"),a.setAttributes({name:b,type:"hidden"}),c.append(a)),a.setAttribute("value",CKEDITOR.tools.getCsrfToken()))}function h(){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()?!1:!0}function m(b,c,d){var e=d.params||{};e.CKEditor=b.name;e.CKEditorFuncNum=
b._.filebrowserFn;e.langCode||(e.langCode=b.langCode);c.action=a(d.url,e);c.filebrowser=d}function k(b,l,v,r){if(r&&r.length)for(var q,u=r.length;u--;)if(q=r[u],("hbox"==q.type||"vbox"==q.type||"fieldset"==q.type)&&k(b,l,v,q.children),q.filebrowser)if("string"==typeof q.filebrowser&&(q.filebrowser={action:"fileButton"==q.type?"QuickUpload":"Browse",target:q.filebrowser}),"Browse"==q.filebrowser.action){var s=q.filebrowser.url;void 0===s&&(s=b.config["filebrowser"+g(l)+"BrowseUrl"],void 0===s&&(s=
b.config.filebrowserBrowseUrl));s&&(q.onClick=d,q.filebrowser.url=s,q.hidden=!1)}else if("QuickUpload"==q.filebrowser.action&&q["for"]&&(s=q.filebrowser.url,void 0===s&&(s=b.config["filebrowser"+g(l)+"UploadUrl"],void 0===s&&(s=b.config.filebrowserUploadUrl)),s)){var t=q.onClick;q.onClick=function(d){var g=d.sender,k=g.getDialog().getContentElement(this["for"][0],this["for"][1]).getInputElement(),l=CKEDITOR.fileTools&&CKEDITOR.fileTools.isFileUploadSupported;if(t&&!1===t.call(g,d))return!1;if(h.call(g,
d)){if("form"===b.config.filebrowserUploadMethod||!l)return f(k),!0;d=b.uploadRepository.create(k.$.files[0]);d.on("uploaded",function(a){var b=a.sender.responseData;e.call(a.sender.editor,b.url,b.message)});d.on("error",c.bind(this));d.on("abort",c.bind(this));d.loadAndUpload(!s.match(/command=QuickUpload/)||s.match(/(\?|&)responseType=json/)?s:a(s,{responseType:"json"}));return"xhr"}return!1};q.filebrowser.url=s;q.hidden=!1;m(b,v.getContents(q["for"][0]).get(q["for"][1]),q.filebrowser)}}function c(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 l(a,b,c){if(-1!==c.indexOf(";")){c=c.split(";");for(var d=0;d<c.length;d++)if(l(a,b,c[d]))return!0;return!1}return(a=a.getContents(b).get(c).filebrowser)&&a.url}function e(a,b){var c=this._.filebrowserSe.getDialog(),d=this._.filebrowserSe["for"],e=this._.filebrowserSe.filebrowser.onSelect;d&&c.getContentElement(d[0],d[1]).reset();if(!("function"==typeof b&&!1===b.call(this._.filebrowserSe))&&
!(e&&!1===e.call(this._.filebrowserSe,a,b))&&("string"==typeof b&&b&&alert(b),a&&(d=this._.filebrowserSe,c=d.getDialog(),d=d.filebrowser.target||null)))if(d=d.split(":"),e=c.getContentElement(d[0],d[1]))e.setValue(a),c.selectPage(d[0])}var b="ckCsrfToken";CKEDITOR.plugins.add("filebrowser",{requires:"popup,filetools",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(e,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,c,d=0;d<b.contents.length;++d)if(c=b.contents[d])k(a.editor,a.data.name,b,c.elements),c.hidden&&c.filebrowser&&(c.hidden=!l(b,c.id,c.filebrowser))})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(a){var g=a.addCommand("find",new CKEDITOR.dialogCommand("find")),d=a.addCommand("replace",new CKEDITOR.dialogCommand("find",{tabId:"replace"}));g.canUndo=!1;g.readOnly=1;d.canUndo=!1;a.ui.addButton&&(a.ui.addButton("Find",{label:a.lang.find.find,command:"find",toolbar:"find,10"}),
a.ui.addButton("Replace",{label:a.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 a(a,c){var d=m.exec(a),e=m.exec(c);if(d){if(!d[2]&&"px"==e[2])return e[1];if("px"==d[2]&&!e[2])return e[1]+"px"}return c}function g(g){return{elements:{$:function(c){var h=c.attributes,h=h&&h["data-cke-realelement"],e=d(g,decodeURIComponent(h));
if((h=(h=h&&new CKEDITOR.htmlParser.fragment.fromHtml(e))&&h.children[0])&&c.attributes["data-cke-resizable"]){var b=(new f(c)).rules;c=h.attributes;e=b.width;b=b.height;e&&(c.width=a(c.width,e));b&&(c.height=a(c.height,b))}return h}}}}function d(a,c){var d=[],e=/^cke:/i,b=new CKEDITOR.htmlParser.filter({elements:{"^":function(a){e.test(a.name)&&(a.name=a.name.replace(e,""),d.push(a))},iframe:function(a){a.children=[]}}}),f=a.activeFilter,g=new CKEDITOR.htmlParser.basicWriter,h=CKEDITOR.htmlParser.fragment.fromHtml(c);
b.applyTo(h);f.applyTo(h);CKEDITOR.tools.array.forEach(d,function(a){a.name="cke:"+a.name});h.writeHtml(g);return g.getHtml()}var f=CKEDITOR.htmlParser.cssStyle,h=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 c=a.dataProcessor;(c=c&&c.htmlFilter)&&c.addRules(g(a),{applyToAll:!0})}});CKEDITOR.editor.prototype.createFakeElement=
function(a,c,d,e){var b=this.lang.fakeobjects,b=b[d]||b.unknown;c={"class":c,"data-cke-realelement":encodeURIComponent(a.getOuterHtml()),"data-cke-real-node-type":a.type,alt:b,title:b,align:a.getAttribute("align")||""};CKEDITOR.env.hc||(c.src=CKEDITOR.tools.transparentImageData);d&&(c["data-cke-real-element-type"]=d);e&&(c["data-cke-resizable"]=e,d=new f,e=a.getAttribute("width"),a=a.getAttribute("height"),e&&(d.rules.width=h(e)),a&&(d.rules.height=h(a)),d.populate(c));return this.document.createElement("img",
{attributes:c})};CKEDITOR.editor.prototype.createFakeParserElement=function(a,c,d,e){var b=this.lang.fakeobjects,b=b[d]||b.unknown,g;g=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(g);g=g.getHtml();c={"class":c,"data-cke-realelement":encodeURIComponent(g),"data-cke-real-node-type":a.type,alt:b,title:b,align:a.attributes.align||""};CKEDITOR.env.hc||(c.src=CKEDITOR.tools.transparentImageData);d&&(c["data-cke-real-element-type"]=d);e&&(c["data-cke-resizable"]=e,e=a.attributes,a=new f,d=e.width,e=e.height,
void 0!==d&&(a.rules.width=h(d)),void 0!==e&&(a.rules.height=h(e)),a.populate(c));return new CKEDITOR.htmlParser.element("img",c)};CKEDITOR.editor.prototype.restoreRealElement=function(f){if(f.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var c=decodeURIComponent(f.data("cke-realelement")),c=d(this,c),c=CKEDITOR.dom.element.createFromHtml(c,this.document);if(f.data("cke-resizable")){var g=f.getStyle("width");f=f.getStyle("height");g&&c.setAttribute("width",a(c.getAttribute("width"),
g));f&&c.setAttribute("height",a(c.getAttribute("height"),f))}return c}}(),function(){function a(a){a=a.attributes;return"application/x-shockwave-flash"==a.type||d.test(a.src||"")}function g(a,d){return a.createFakeParserElement(d,"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 d="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")&&(d+=";object[align]; embed[allowscriptaccess,quality,scale,wmode]");CKEDITOR.dialog.isTabEnabled(a,"flash","advanced")&&(d+=";object[id]{*}; embed[bgcolor]{*}(*)");a.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:d,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 d=a.data.element;d.is("img")&&"flash"==d.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(d){var h=d.dataProcessor;(h=h&&h.dataFilter)&&h.addRules({elements:{"cke:object":function(h){var k=h.attributes;if((!k.classid||!String(k.classid).toLowerCase())&&!a(h)){for(k=0;k<h.children.length;k++)if("cke:embed"==h.children[k].name){if(!a(h.children[k]))break;return g(d,h)}return null}return g(d,h)},"cke:embed":function(h){return!a(h)?null:g(d,h)}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){function a(a){var h=
a.config,m=a.fire("uiSpace",{space:"top",html:""}).html,k=function(){function b(a,c,e){l.setStyle(c,d(e));l.setStyle("position",a)}function c(a){var d=m.getDocumentPosition();switch(a){case "top":b("absolute","top",d.y-t-y);break;case "pin":b("fixed","top",z);break;case "bottom":b("absolute","top",d.y+(u.height||u.bottom-u.top)+y)}e=a}var e,m,q,u,s,t,w,x=h.floatSpaceDockedOffsetX||0,y=h.floatSpaceDockedOffsetY||0,A=h.floatSpacePinnedOffsetX||0,z=h.floatSpacePinnedOffsetY||0;return function(b){if(m=
a.editable()){var n=b&&"focus"==b.name;n&&l.show();a.fire("floatingSpaceLayout",{show:n});l.removeStyle("left");l.removeStyle("right");q=l.getClientRect();u=m.getClientRect();s=g.getViewPaneSize();t=q.height;w="pageXOffset"in g.$?g.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;e?(t+y<=u.top?c("top"):t+y>s.height-u.bottom?c("pin"):c("bottom"),b=s.width/2,b=h.floatSpacePreferRight?"right":0<u.left&&u.right<s.width&&u.width>q.width?"rtl"==h.contentsLangDirection?"right":"left":b-u.left>
u.right-b?"left":"right",q.width>s.width?(b="left",n=0):(n="left"==b?0<u.left?u.left:0:u.right<s.width?s.width-u.right:0,n+q.width>s.width&&(b="left"==b?"right":"left",n=0)),l.setStyle(b,d(("pin"==e?A:x)+n+("pin"==e?0:"left"==b?w:-w)))):(e="pin",c("pin"),k(b))}}}();if(m){var c=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'),l=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(c.output({content:m,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+
(h.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),e=CKEDITOR.tools.eventsBuffer(500,k),b=CKEDITOR.tools.eventsBuffer(100,k);l.unselectable();l.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(c){k(c);a.on("change",e.input);g.on("scroll",b.input);g.on("resize",b.input)});a.on("blur",function(){l.hide();a.removeListener("change",e.input);g.removeListener("scroll",b.input);g.removeListener("resize",b.input)});a.on("destroy",
function(){g.removeListener("scroll",b.input);g.removeListener("resize",b.input);l.clearCustomData();l.remove()});a.focusManager.hasFocus&&l.show();a.focusManager.add(l,1)}}var g=CKEDITOR.document.getWindow(),d=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(d){d.on("loaded",function(){a(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var a=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"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'),
f=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,d){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),d))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,d){d=d||{};var f=d.attributes||(d.attributes={});(this.multiSelect=!!d.multiSelect)&&(f["aria-multiselectable"]=!0);!f.role&&(f.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",f.role);f=this.keys;f[40]="next";f[9]="next";f[38]="prev";f[CKEDITOR.SHIFT+
9]="prev";f[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(f[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var d=a.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(d);delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(a){var d=this.toggle(a);if(this.onClick)this.onClick(a,d)},this));return this._.click}},proto:{add:function(a,
d,k){var c=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[a]=c;var l;l=CKEDITOR.tools.htmlEncodeAttr(a).replace(f,"\\'");a={id:c,val:l,onclick:CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(k||a),text:d||a};this._.pendingList.push(g.output(a))},startGroup:function(a){this._.close();var f=CKEDITOR.tools.getNextId();this._.groups[a]=f;this._.pendingHtml.push(d.output({id:f,
label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var d=this.isMarked(a);d?this.unmark(a):this.mark(a);return!d},hideGroup:function(a){var d=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),d&&"ul"==d.getName()&&d.setStyle("display","none"))},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},
showAll:function(){var a=this._.items,d=this._.groups,f=this.element.getDocument(),c;for(c in a)f.getById(a[c]).setStyle("display","");for(var g in d)a=f.getById(d[g]),c=a.getNext(),a.setStyle("display",""),c&&"ul"==c.getName()&&c.setStyle("display","")},mark:function(a){this.multiSelect||this.unmarkAll();a=this._.items[a];var d=this.element.getDocument().getById(a);d.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(d)},
markFirstDisplayed:function(){var a=this;this._.markFirstDisplayed(function(){a.multiSelect||a.unmarkAll()})},unmark:function(a){var d=this.element.getDocument();a=this._.items[a];var f=d.getById(a);f.removeClass("cke_selected");d.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(f)},unmarkAll:function(){var a=this._.items,d=this.element.getDocument(),f;for(f in a){var c=a[f];d.getById(c).removeClass("cke_selected");d.getById(c+"_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 d=this.element.getElementsByTag("a"),f,c=-1;if(a)for(f=this.element.getDocument().getById(this._.items[a]).getFirst();a=d.getItem(++c);){if(a.equals(f)){this._.focusIndex=c;break}}else this.element.focus();f&&setTimeout(function(){f.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_RICHCOMBO,
CKEDITOR.ui.richCombo.handler)}}),function(){var a='\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"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&
(a+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(a+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var a=a+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan id\x3d"{id}_text" class\x3d"cke_combo_text cke_combo_inlinelabel"\x3e{label}\x3c/span\x3e\x3cspan class\x3d"cke_combo_open"\x3e\x3cspan class\x3d"cke_combo_arrow"\x3e'+
(CKEDITOR.env.hc?"\x26#9660;":CKEDITOR.env.air?"\x26nbsp;":"")+"\x3c/span\x3e\x3c/span\x3e\x3c/a\x3e\x3c/span\x3e"),g=CKEDITOR.addTemplate("combo",a);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 f=[];this.render(a,f);return f.join("")},render:function(a,f){function h(){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 m=CKEDITOR.env,k="cke_"+this.id,c=CKEDITOR.tools.addFunction(function(b){p&&(a.unlockSelection(1),p=0);e.execute(b)},this),l=this,e={id:k,combo:this,focus:function(){CKEDITOR.document.getById(k).getChild(1).focus()},execute:function(b){var c=l._;if(c.state!=CKEDITOR.TRISTATE_DISABLED)if(l.createPanel(a),c.on)c.panel.hide();else{l.commit();var e=l.getValue();e?c.list.mark(e):c.list.unmarkAll();c.panel.showBlock(l.id,new CKEDITOR.dom.element(b),4)}},clickFn:c};this._.listeners.push(a.on("activeFilterChange",
h,this));this._.listeners.push(a.on("mode",h,this));this._.listeners.push(a.on("selectionChange",h,this));!this.readOnly&&this._.listeners.push(a.on("readOnly",h,this));var b=CKEDITOR.tools.addFunction(function(a,b){a=new CKEDITOR.dom.event(a);var d=a.getKeystroke();switch(d){case 13:case 32:case 40:CKEDITOR.tools.callFunction(c,b);break;default:e.onkey(e,d)}a.preventDefault()}),n=CKEDITOR.tools.addFunction(function(){e.onfocus&&e.onfocus()}),p=0;e.keyDownFn=b;m={id:k,name:this.name||this.command,
label:this.label,title:this.title,cls:this.className||"",titleJs:m.gecko&&!m.hc?"":(this.title||"").replace("'",""),keydownFn:b,focusFn:n,clickFn:c};g.output(m,f);if(this.onRender)this.onRender();return e},createPanel:function(a){if(!this._.panel){var f=this._.panelDefinition,g=this._.panelDefinition.block,m=f.parent||CKEDITOR.document.getBody(),k="cke_combopanel__"+this.name,c=new CKEDITOR.ui.floatPanel(a,m,f),f=c.addListBlock(this.id,g),l=this;c.onShow=function(){this.element.addClass(k);l.setState(CKEDITOR.TRISTATE_ON);
l._.on=1;l.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(l.onOpen)l.onOpen()};c.onHide=function(c){this.element.removeClass(k);l.setState(l.modes&&l.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);l._.on=0;if(!c&&l.onClose)l.onClose()};c.onEscape=function(){c.hide(1)};f.onClick=function(a,b){l.onClick&&l.onClick.call(l,a,b);c.hide()};this._.panel=c;this._.list=f;c.getBlock(this.id).onHide=function(){l._.on=0;l.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,
f){this._.value=a;var g=this.document.getById("cke_"+this.id+"_text");g&&(!a&&!f?(f=this.label,g.addClass("cke_combo_inlinelabel")):g.removeClass("cke_combo_inlinelabel"),g.setText("undefined"!=typeof f?f:a))},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,f,g){this._.items[a]=
g||a;this._.list.add(a,f,g)},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 f=this.document.getById("cke_"+this.id);f.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?f.setAttribute("aria-disabled",!0):f.removeAttribute("aria-disabled");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=[]}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,f){this.add(a,CKEDITOR.UI_RICHCOMBO,f)}}(),function(){function a(a,
f,h,m,k,c,l,e){var b=a.config,n=new CKEDITOR.style(l),p=k.split(";");k=[];for(var v={},r=0;r<p.length;r++){var q=p[r];if(q){var q=q.split("/"),u={},s=p[r]=q[0];u[h]=k[r]=q[1]||s;v[s]=new CKEDITOR.style(l,u);v[s]._.definition.name=s}else p.splice(r--,1)}a.ui.addRichCombo(f,{label:m.label,title:m.panelTitle,toolbar:"styles,"+e,defaultValue:"cke-default",allowedContent:n,requiredContent:n,contentTransformations:"span"===l.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(b.contentsCss),multiSelect:!1,
attributes:{"aria-label":m.panelTitle}},init:function(){var b;b="("+a.lang.common.optionDefault+")";this.startGroup(m.panelTitle);this.add(this.defaultValue,b,b);for(var c=0;c<p.length;c++)b=p[c],this.add(b,v[b].buildPreview(),b)},onClick:function(b){a.focus();a.fire("saveSnapshot");var c=this.getValue(),e=v[b],f,h,k,l,m;if(c&&b!=c)if(f=v[c],c=a.getSelection().getRanges()[0],c.collapsed){if(h=a.elementPath(),k=h.contains(function(a){return f.checkElementRemovable(a)})){l=c.checkBoundaryOfElement(k,
CKEDITOR.START);m=c.checkBoundaryOfElement(k,CKEDITOR.END);if(l&&m){for(l=c.createBookmark();h=k.getFirst();)h.insertBefore(k);k.remove();c.moveToBookmark(l)}else l||m?c.moveToPosition(k,l?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(c.splitElement(k),c.moveToPosition(k,CKEDITOR.POSITION_AFTER_END)),g(c,h.elements.slice(),k);a.getSelection().selectRanges([c])}}else a.removeStyle(f);b===this.defaultValue?f&&a.removeStyle(f):a.applyStyle(e);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",
function(b){var e=this.getValue();b=b.data.path.elements;for(var f=0,g;f<b.length;f++){g=b[f];for(var h in v)if(v[h].checkElementMatch(g,!0,a)){h!=e&&this.setValue(h);return}}this.setValue("",c)},this)},refresh:function(){a.activeFilter.check(n)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function g(a,f,h){var m=f.pop();if(m){if(h)return g(a,f,m.equals(h)?null:h);h=m.clone();a.insertNode(h);a.moveToPosition(h,CKEDITOR.POSITION_AFTER_START);g(a,f)}}CKEDITOR.plugins.add("font",{requires:"richcombo",
init:function(d){var f=d.config;a(d,"Font","family",d.lang.font,f.font_names,f.font_defaultLabel,f.font_style,30);a(d,"FontSize","size",d.lang.font.fontSize,f.fontSize_sizes,f.fontSize_defaultLabel,f.fontSize_style,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(a){if(!a.blockless){for(var g=a.config,d=a.lang.format,f=g.format_tags.split(";"),h={},m=0,k=[],c=0;c<f.length;c++){var l=f[c],e=new CKEDITOR.style(g["format_"+l]);if(!a.filter.customConfig||a.filter.check(e))m++,h[l]=e,h[l]._.enterMode=a.config.enterMode,k.push(e)}0!==m&&a.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 h){var c=d["tag_"+a];this.add(a,h[a].buildPreview(c),c)}},onClick:function(b){a.focus();a.fire("saveSnapshot");b=h[b];var c=a.elementPath();b.checkActive(c,a)||a.applyStyle(b);setTimeout(function(){a.fire("saveSnapshot")},0)},onRender:function(){a.on("selectionChange",function(b){var c=this.getValue();b=b.data.path;this.refresh();for(var d in h)if(h[d].checkActive(b,a)){d!=c&&this.setValue(d,a.lang.format["tag_"+d]);return}this.setValue("")},
this)},onOpen:function(){this.showAll();for(var b in h)a.activeFilter.check(h[b])||this.hideItem(b)},refresh:function(){var b=a.elementPath();if(b){if(b.isContextFor("p"))for(var c in h)if(a.activeFilter.check(h[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;}")},init:function(a){var g=a.lang,d=0,f={email:1,password:1,search:1,tel:1,text:1,url:1},h={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(c,b,f){var k={allowedContent:h[b],requiredContent:m[b]};"form"==b&&(k.context="form");a.addCommand(b,new CKEDITOR.dialogCommand(b,k));a.ui.addButton&&a.ui.addButton(c,
{label:g.common[c.charAt(0).toLowerCase()+c.slice(1)],command:b,toolbar:"forms,"+(d+=10)});CKEDITOR.dialog.add(b,f)},c=this.path+"dialogs/";!a.blockless&&k("Form","form",c+"form.js");k("Checkbox","checkbox",c+"checkbox.js");k("Radio","radio",c+"radio.js");k("TextField","textfield",c+"textfield.js");k("Textarea","textarea",c+"textarea.js");k("Select","select",c+"select.js");k("Button","button",c+"button.js");var l=a.plugins.image;l&&!a.plugins.image2&&k("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+
"dialogs/image.js");k("HiddenField","hiddenfield",c+"hiddenfield.js");a.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"}},l&&(k.imagebutton={label:g.image.titleButton,command:"imagebutton",group:"imagebutton"}),!a.blockless&&(k.form={label:g.forms.form.menu,command:"form",group:"form"}),a.addMenuItems(k));a.contextMenu&&(!a.blockless&&a.contextMenu.addListener(function(a,b,c){if((a=c.contains("form",1))&&!a.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}}),a.contextMenu.addListener(function(a){if(a&&!a.isReadOnly()){var b=
a.getName();if("select"==b)return{select:CKEDITOR.TRISTATE_OFF};if("textarea"==b)return{textarea:CKEDITOR.TRISTATE_OFF};if("input"==b){var c=a.getAttribute("type")||"text";switch(c){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 l?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(f[c])return{textfield:CKEDITOR.TRISTATE_OFF}}if("img"==b&&"hiddenfield"==
a.data("cke-real-element-type"))return{hiddenfield:CKEDITOR.TRISTATE_OFF}}}));a.on("doubleclick",function(c){var b=c.data.element;if(!a.blockless&&b.is("form"))c.data.dialog="form";else if(b.is("select"))c.data.dialog="select";else if(b.is("textarea"))c.data.dialog="textarea";else if(b.is("img")&&"hiddenfield"==b.data("cke-real-element-type"))c.data.dialog="hiddenfield";else if(b.is("input")){b=b.getAttribute("type")||"text";switch(b){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"}f[b]&&(c.data.dialog="textfield")}})},afterInit:function(a){var g=a.dataProcessor,d=g&&g.htmlFilter,g=g&&g.dataFilter;CKEDITOR.env.ie&&d&&d.addRules({elements:{input:function(a){a=a.attributes;var d=a.type;d||(a.type="text");("checkbox"==d||"radio"==d)&&"on"==a.value&&delete a.value}}},{applyToAll:!0});g&&g.addRules({elements:{input:function(d){if("hidden"==d.attributes.type)return a.createFakeParserElement(d,
"cke_hidden","hiddenfield")}}},{applyToAll:!0})}}),CKEDITOR.plugins.forms={_setupRequiredAttribute:function(a){this.setValue(a.hasAttribute("required"))}},function(){var a={canUndo:!1,exec:function(a){var d=a.document.createElement("hr");a.insertElement(d)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(g){g.blockless||(g.addCommand("horizontalrule",a),g.ui.addButton&&g.ui.addButton("HorizontalRule",{label:g.lang.horizontalrule.toolbar,command:"horizontalrule",
toolbar:"insert,40"}))}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(a){var g=new CKEDITOR.htmlWriter;g.forceSimpleAmpersand=a.config.forceSimpleAmpersand;g.indentationChars=a.config.dataIndentationChars||"\t";a.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 a=CKEDITOR.dtd,g;for(g in CKEDITOR.tools.extend({},a.$nonBodyContent,a.$block,a.$listItem,a.$tableContent))this.setRules(g,{indent:!a[g]["#"],breakBeforeOpen:1,breakBeforeClose:!a[g]["#"],breakAfterClose:1,needsSpace:g in a.$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(a){var g=
this._.rules[a];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",a);this._.afterCloser=0},openTagClose:function(a,g){var d=this._.rules[a];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"==a&&(this._.inPre=1)},attribute:function(a,g){"string"==typeof g&&(g=CKEDITOR.tools.htmlEncodeAttr(g),this.forceSimpleAmpersand&&(g=g.replace(/&/g,"\x26")));this._.output.push(" ",a,'\x3d"',g,'"')},closeTag:function(a){var g=this._.rules[a];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/",a,"\x3e");"pre"==a&&(this._.inPre=0);g&&
g.breakAfterClose&&(this.lineBreak(),this._.needsSpace=g.needsSpace);this._.afterCloser=1},text:function(a){this._.indent&&(this.indentation(),!this._.inPre&&(a=CKEDITOR.tools.ltrim(a)));this._.output.push(a)},comment:function(a){this._.indent&&this.indentation();this._.output.push("\x3c!--",a,"--\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(a,g){var d=this._.rules[a];d?CKEDITOR.tools.extend(d,g,!0):this._.rules[a]=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(a){var g=a.lang.iframe,d="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";a.plugins.dialogadvtab&&(d+=";iframe"+a.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1}));CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js");a.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:d,requiredContent:"iframe"}));a.ui.addButton&&a.ui.addButton("Iframe",{label:g.toolbar,command:"iframe",toolbar:"insert,80"});a.on("doubleclick",function(a){var d=
a.data.element;d.is("img")&&"iframe"==d.data("cke-real-element-type")&&(a.data.dialog="iframe")});a.addMenuItems&&a.addMenuItems({iframe:{label:g.title,command:"iframe",group:"image"}});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&"iframe"==a.data("cke-real-element-type"))return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){var g=a.dataProcessor;(g=g&&g.dataFilter)&&g.addRules({elements:{iframe:function(d){return a.createFakeParserElement(d,"cke_iframe","iframe",
!0)}}})}})}(),function(){function a(a,f){f||(f=a.getSelection().getSelectedElement());if(f&&f.is("img")&&!f.data("cke-realelement")&&!f.isReadOnly())return f}function g(a){var f=a.getStyle("float");if("inherit"==f||"none"==f)f=0;f||(f=a.getAttribute("align"));return f}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 f="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")&&(f="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");d.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:f,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 d=
a.data.element;d.is("img")&&(!d.data("cke-realelement")&&!d.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(f){if(a(d,f))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(d){function f(f){var m=d.getCommand("justify"+f);if(m){if("left"==f||"right"==f)m.on("exec",function(k){var c=a(d),l;c&&(l=g(c),l==f?(c.removeStyle("float"),f==g(c)&&c.removeAttribute("align")):
c.setStyle("float",f),k.cancel())});m.on("refresh",function(k){var c=a(d);c&&(c=g(c),this.setState(c==f?CKEDITOR.TRISTATE_ON:"right"==f||"left"==f?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),k.cancel())})}}d.plugins.image2||(f("left"),f("right"),f("center"),f("block"))}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function a(a,h){var m,k;h.on("refresh",function(a){var f=[g],e;for(e in a.data.states)f.push(a.data.states[e]);this.setState(CKEDITOR.tools.search(f,d)?d:g)},h,null,
100);h.on("exec",function(c){m=a.getSelection();k=m.createBookmarks(1);c.data||(c.data={});c.data.done=!1},h,null,0);h.on("exec",function(){a.forceNextSelectionCheck();m.selectBookmarks(k)},h,null,100)}var g=CKEDITOR.TRISTATE_DISABLED,d=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(d){var g=CKEDITOR.plugins.indent.genericDefinition;a(d,d.addCommand("indent",new g(!0)));a(d,d.addCommand("outdent",new g));d.ui.addButton&&(d.ui.addButton("Indent",{label:d.lang.indent.indent,command:"indent",
directional:!0,toolbar:"indent,20"}),d.ui.addButton("Outdent",{label:d.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"}));d.on("dirChanged",function(a){var g=d.createRange(),c=a.data.node;g.setStartBefore(c);g.setEndAfter(c);for(var h=new CKEDITOR.dom.walker(g),e;e=h.next();)if(e.type==CKEDITOR.NODE_ELEMENT)if(!e.equals(c)&&e.getDirection())g.setStartAfter(e),h=new CKEDITOR.dom.walker(g);else{var b=d.config.indentClasses;if(b)for(var n="ltr"==a.data.dir?["_rtl",""]:["","_rtl"],
p=0;p<b.length;p++)e.hasClass(b[p]+n[0])&&(e.removeClass(b[p]+n[0]),e.addClass(b[p]+n[1]));b=e.getStyle("margin-right");n=e.getStyle("margin-left");b?e.setStyle("margin-left",b):e.removeStyle("margin-left");n?e.setStyle("margin-right",n):e.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,d,g){this.name=d;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;
this.isIndent=!!g;this.relatedGlobal=g?"indent":"outdent";this.indentKey=g?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,d){a.on("pluginsLoaded",function(){for(var a in d)(function(a,c){var d=a.getCommand(c.relatedGlobal),e;for(e in c.jobs)d.on("exec",function(b){b.data.done||(a.fire("lockSnapshot"),c.execJob(a,e)&&(b.data.done=!0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(c.database))},this,null,e),d.on("refresh",function(b){b.data.states||(b.data.states={});
b.data.states[c.name+"@"+e]=c.refreshJob(a,e,b.data.path)},this,null,e);a.addFeature(c)})(this,d[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(a,d){var m=this.jobs[d];if(m.state!=g)return m.exec.call(this,a)},refreshJob:function(a,d,m){d=this.jobs[d];a.activeFilter.checkFeature(this)?d.state=d.refresh.call(this,a,m):d.state=g;return d.state},getContext:function(a){return a.contains(this.context)}}}(),
function(){function a(a){function f(g){for(var l=k.startContainer,m=k.endContainer;l&&!l.getParent().equals(g);)l=l.getParent();for(;m&&!m.getParent().equals(g);)m=m.getParent();if(!l||!m)return!1;for(var w=[],x=!1;!x;)l.equals(m)&&(x=!0),w.push(l),l=l.getNext();if(1>w.length)return!1;l=g.getParents(!0);for(m=0;m<l.length;m++)if(l[m].getName&&h[l[m].getName()]){g=l[m];break}for(var l=e.isIndent?1:-1,m=w[0],w=w[w.length-1],x=CKEDITOR.plugins.list.listToArray(g,b),v=x[w.getCustomData("listarray_index")].indent,
m=m.getCustomData("listarray_index");m<=w.getCustomData("listarray_index");m++)if(x[m].indent+=l,0<l){for(var A=x[m].parent,z=m-1;0<=z;z--)if(x[z].indent===l){A=x[z].parent;break}x[m].parent=new CKEDITOR.dom.element(A.getName(),A.getDocument())}for(m=w.getCustomData("listarray_index")+1;m<x.length&&x[m].indent>v;m++)x[m].indent+=l;l=CKEDITOR.plugins.list.arrayToList(x,b,null,a.config.enterMode,g.getDirection());if(!e.isIndent){var r;if((r=g.getParent())&&r.is("li"))for(var w=l.listNode.getChildren(),
q=[],F,m=w.count()-1;0<=m;m--)(F=w.getItem(m))&&(F.is&&F.is("li"))&&q.push(F)}l&&l.listNode.replace(g);if(q&&q.length)for(m=0;m<q.length;m++){for(F=g=q[m];(F=F.getNext())&&F.is&&F.getName()in h;)CKEDITOR.env.needsNbspFiller&&!g.getFirst(d)&&g.append(k.document.createText(" ")),g.append(F);g.insertAfter(r)}l&&a.fire("contentDomInvalidated");return!0}for(var e=this,b=this.database,h=this.context,k,m=a.getSelection(),m=(m&&m.getRanges()).createIterator();k=m.getNextRange();){for(var r=k.getCommonAncestor();r&&
!(r.type==CKEDITOR.NODE_ELEMENT&&h[r.getName()]);){if(a.editable().equals(r)){r=!1;break}r=r.getParent()}r||(r=k.startPath().contains(h))&&k.setEndAt(r,CKEDITOR.POSITION_BEFORE_END);if(!r){var q=k.getEnclosedNode();q&&(q.type==CKEDITOR.NODE_ELEMENT&&q.getName()in h)&&(k.setStartAt(q,CKEDITOR.POSITION_AFTER_START),k.setEndAt(q,CKEDITOR.POSITION_BEFORE_END),r=q)}r&&(k.startContainer.type==CKEDITOR.NODE_ELEMENT&&k.startContainer.getName()in h)&&(q=new CKEDITOR.dom.walker(k),q.evaluator=g,k.startContainer=
q.next());r&&(k.endContainer.type==CKEDITOR.NODE_ELEMENT&&k.endContainer.getName()in h)&&(q=new CKEDITOR.dom.walker(k),q.evaluator=g,k.endContainer=q.previous());if(r)return f(r)}return 0}function g(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function d(a){return f(a)&&h(a)}var f=CKEDITOR.dom.walker.whitespaces(!0),h=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,k=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(c){function d(b){e.specificDefinition.apply(this,
arguments);this.requiredContent=["ul","ol"];b.on("key",function(a){var c=b.elementPath();if("wysiwyg"==b.mode&&a.data.keyCode==this.indentKey&&c){var d=this.getContext(c);if(d&&(!this.isIndent||!CKEDITOR.plugins.indentList.firstItemInPath(this.context,c,d)))b.execCommand(this.relatedGlobal),a.cancel()}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),d=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return!c||!this.isIndent||d?m:k}:
function(a,b){return!this.getContext(b)||this.isIndent?m:k},exec:CKEDITOR.tools.bind(a,this)}}var e=CKEDITOR.plugins.indent;e.registerCommands(c,{indentlist:new d(c,"indentlist",!0),outdentlist:new d(c,"outdentlist")});CKEDITOR.tools.extend(d.prototype,e.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,d,e){var b=d.contains(g);e||(e=d.contains(a));return e&&b&&b.equals(e.getFirst(g))}}(),function(){function a(a,
c,d){if(!a.getCustomData("indent_processed")){var e=this.editor,b=this.isIndent;if(c){e=a.$.className.match(this.classNameRegex);d=0;e&&(e=e[1],d=CKEDITOR.tools.indexOf(c,e)+1);if(0>(d+=b?1:-1))return;d=Math.min(d,c.length);d=Math.max(d,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));0<d&&a.addClass(c[d-1])}else{c=g(a,d);d=parseInt(a.getStyle(c),10);var f=e.config.indentOffset||40;isNaN(d)&&(d=0);d+=(b?1:-1)*f;if(0>d)return;d=Math.max(d,0);d=Math.ceil(d/f)*f;a.setStyle(c,
d?d+(e.config.indentUnit||"px"):"");""===a.getAttribute("style")&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function g(a,c){return"ltr"==(c||a.getComputedStyle("direction"))?"margin-left":"margin-right"}var d=CKEDITOR.dtd.$listItem,f=CKEDITOR.dtd.$list,h=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(k){function c(){l.specificDefinition.apply(this,arguments);this.allowedContent=
{"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:!e?"margin-left,margin-right":null,classes:e||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")+(e?"("+e.join(",")+")":"{margin-left}");this.jobs={20:{refresh:function(a,c){var f=c.block||c.blockLimit;if(!f.is(d))var k=f.getAscendant(d),f=k&&c.contains(k)||f;f.is(d)&&(f=f.getParent());if(!this.enterBr&&!this.getContext(c))return h;if(e){var k=e,f=f.$.className.match(this.classNameRegex),l=this.isIndent,k=f?l?f[1]!=k.slice(-1):!0:l;return k?m:h}return this.isIndent?m:f?CKEDITOR[0>=(parseInt(f.getStyle(g(f)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:
h},exec:function(b){var c=b.getSelection(),c=c&&c.getRanges()[0],d;if(d=b.elementPath().contains(f))a.call(this,d,e);else{c=c.createIterator();b=b.config.enterMode;c.enforceRealBlocks=!0;for(c.enlargeBr=b!=CKEDITOR.ENTER_BR;d=c.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)d.isReadOnly()||a.call(this,d,e)}return!0}}}}var l=CKEDITOR.plugins.indent,e=k.config.indentClasses;l.registerCommands(k,{indentblock:new c(k,"indentblock",!0),outdentblock:new c(k,"outdentblock")});CKEDITOR.tools.extend(c.prototype,
l.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:e?RegExp("(?:^|\\s+)("+e.join("|")+")(?\x3d$|\\s)"):null})}})}(),function(){function a(a,d){d=void 0===d||d;var g;if(d)g=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){g=a.getParent();if(!g)break;a=g}g=a.getStyle("text-align")||a.getAttribute("align")||""}g&&(g=g.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,
""));!g&&d&&(g="rtl"==a.getComputedStyle("direction")?"right":"left");return g}function g(a,d,g){this.editor=a;this.name=d;this.value=g;this.context="p";d=a.config.justifyClasses;var k=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(d){switch(g){case "left":this.cssClassName=d[0];break;case "center":this.cssClassName=d[1];break;case "right":this.cssClassName=d[2];break;case "justify":this.cssClassName=d[3]}this.cssClassRegex=RegExp("(?:^|\\s+)(?:"+d.join("|")+")(?\x3d$|\\s)");this.requiredContent=
k+"("+this.cssClassName+")"}else this.requiredContent=k+"{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 d=a.editor,g=d.createRange();g.setStartBefore(a.data.node);g.setEndAfter(a.data.node);for(var k=new CKEDITOR.dom.walker(g),c;c=k.next();)if(c.type==CKEDITOR.NODE_ELEMENT)if(!c.equals(a.data.node)&&
c.getDirection())g.setStartAfter(c),k=new CKEDITOR.dom.walker(g);else{var l=d.config.justifyClasses;l&&(c.hasClass(l[0])?(c.removeClass(l[0]),c.addClass(l[2])):c.hasClass(l[2])&&(c.removeClass(l[2]),c.addClass(l[0])));l=c.getStyle("text-align");"left"==l?c.setStyle("text-align","right"):"right"==l&&c.setStyle("text-align","left")}}g.prototype={exec:function(d){var g=d.getSelection(),m=d.config.enterMode;if(g){for(var k=g.createBookmarks(),c=g.getRanges(),l=this.cssClassName,e,b,n=d.config.useComputedState,
n=void 0===n||n,p=c.length-1;0<=p;p--){e=c[p].createIterator();for(e.enlargeBr=m!=CKEDITOR.ENTER_BR;b=e.getNextParagraph(m==CKEDITOR.ENTER_P?"p":"div");)if(!b.isReadOnly()){var v=b.getName(),r;r=d.activeFilter.check(v+"{text-align}");if((v=d.activeFilter.check(v+"("+l+")"))||r){b.removeAttribute("align");b.removeStyle("text-align");var q=l&&(b.$.className=CKEDITOR.tools.ltrim(b.$.className.replace(this.cssClassRegex,""))),u=this.state==CKEDITOR.TRISTATE_OFF&&(!n||a(b,!0)!=this.value);l&&v?u?b.addClass(l):
q||b.removeAttribute("class"):u&&r&&b.setStyle("text-align",this.value)}}}d.focus();d.forceNextSelectionCheck();g.selectBookmarks(k)}},refresh:function(d,g){var m=g.block||g.blockLimit,k=m.getName(),c=m.equals(d.editable()),k=this.cssClassName?d.activeFilter.check(k+"("+this.cssClassName+")"):d.activeFilter.check(k+"{text-align}");c&&!CKEDITOR.dtd.$list[g.lastElement.getName()]?this.setState(CKEDITOR.TRISTATE_OFF):!c&&k?this.setState(a(m,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 h=new g(a,"justifyleft","left"),m=new g(a,"justifycenter","center"),k=new g(a,"justifyright","right"),c=new g(a,"justifyblock","justify");a.addCommand("justifyleft",h);a.addCommand("justifycenter",m);a.addCommand("justifyright",k);a.addCommand("justifyblock",c);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 a=function(a){var d=this._,f=d.menu;d.state!==CKEDITOR.TRISTATE_DISABLED&&(d.on&&
f?f.hide():(d.previousState=d.state,f||(f=d.menu=new CKEDITOR.menu(a,{panel:{className:"cke_menu_panel",attributes:{"aria-label":a.lang.common.options}}}),f.onHide=CKEDITOR.tools.bind(function(){var f=this.command?a.getCommand(this.command).modes:this.modes;this.setState(!f||f[a.mode]?d.previousState:CKEDITOR.TRISTATE_DISABLED);d.on=0},this),this.onMenu&&f.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),d.on=1,setTimeout(function(){f.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=a},statics:{handler:{create:function(a){return new CKEDITOR.ui.menuButton(a)}}}})},beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton","use strict",function(){CKEDITOR.plugins.add("language",{requires:"menubutton",init:function(a){var g=a.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],
d=this,f=a.lang.language,h={},m,k,c,l;a.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(a,b){var c=h["language_"+b];if(c)a[c.style.checkActive(a.elementPath(),a)?"removeStyle":"applyStyle"](c.style)},refresh:function(a){this.setState(d.getCurrentLangElement(a)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(l=0;l<g.length;l++)m=g[l].split(":"),k=m[0],c="language_"+k,h[c]={label:m[1],langId:k,group:"language",order:l,ltr:"rtl"!=
(""+m[2]).toLowerCase(),onClick:function(){a.execCommand("language",this.langId)},role:"menuitemcheckbox"},h[c].style=new CKEDITOR.style({element:"span",attributes:{lang:k,dir:h[c].ltr?"ltr":"rtl"}});h.language_remove={label:f.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:h.length,onClick:function(){var c=d.getCurrentLangElement(a);c&&a.execCommand("language",c.getAttribute("lang"))}};a.addMenuGroup("language",1);a.addMenuGroup("language_remove");a.addMenuItems(h);a.ui.add("Language",
CKEDITOR.UI_MENUBUTTON,{label:f.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var c={},b=d.getCurrentLangElement(a),f;for(f in h)c[f]=CKEDITOR.TRISTATE_OFF;c.language_remove=b?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;b&&(c["language_"+b.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return c}});a.addRemoveFormatFilter&&a.addRemoveFormatFilter(function(a){return!(a.is("span")&&a.getAttribute("dir")&&a.getAttribute("lang"))})},
getCurrentLangElement:function(a){var g=a.elementPath();a=g&&g.elements;var d;if(g)for(var f=0;f<a.length;f++)g=a[f],!d&&("span"==g.getName()&&g.hasAttribute("dir")&&g.hasAttribute("lang"))&&(d=g);return d}})}(),"use strict",function(){function a(a){return a.replace(/'/g,"\\$\x26")}function g(a){for(var b,c=a.length,d=[],e=0;e<c;e++)b=a.charCodeAt(e),d.push(b);return"String.fromCharCode("+d.join(",")+")"}function d(b,c){var d=b.plugins.link,e=d.compiledProtectionFunction.params,f,g;g=[d.compiledProtectionFunction.name,
"("];for(var h=0;h<e.length;h++)d=e[h].toLowerCase(),f=c[d],0<h&&g.push(","),g.push("'",f?a(encodeURIComponent(c[d])):"","'");g.push(")");return g.join("")}function f(a){a=a.config.emailProtection||"";var b;a&&"encode"!=a&&(b={},a.replace(/^([^(]+)\(([^)]+)\)$/,function(a,c,d){b.name=c;b.params=[];d.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(a){var b="a[!href]";
CKEDITOR.dialog.isTabEnabled(a,"link","advanced")&&(b=b.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type,download]{*}(*)"));CKEDITOR.dialog.isTabEnabled(a,"link","target")&&(b=b.replace("]",",target,onclick]"));a.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:b,requiredContent:"a[href]"}));a.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));a.addCommand("unlink",new CKEDITOR.unlinkCommand);
a.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);a.setKeystroke(CKEDITOR.CTRL+76,"link");a.setKeystroke(CKEDITOR.CTRL+75,"link");a.ui.addButton&&(a.ui.addButton("Link",{label:a.lang.link.toolbar,command:"link",toolbar:"links,10"}),a.ui.addButton("Unlink",{label:a.lang.link.unlink,command:"unlink",toolbar:"links,20"}),a.ui.addButton("Anchor",{label:a.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");a.on("doubleclick",function(b){var c=b.data.element.getAscendant({a:1,img:1},!0);c&&!c.isReadOnly()&&(c.is("a")?(b.data.dialog=c.getAttribute("name")&&(!c.getAttribute("href")||!c.getChildCount())?"anchor":"link",b.data.link=c):CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,c)&&(b.data.dialog="anchor"))},null,null,0);a.on("doubleclick",function(b){b.data.dialog in{link:1,anchor:1}&&b.data.link&&a.getSelection().selectElement(b.data.link)},null,null,20);a.addMenuItems&&
a.addMenuItems({anchor:{label:a.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:a.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:a.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:a.lang.link.unlink,command:"unlink",group:"link",order:5}});a.contextMenu&&a.contextMenu.addListener(function(b){if(!b||b.isReadOnly())return null;b=CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,b);if(!b&&!(b=CKEDITOR.plugins.link.getSelectedLink(a)))return null;
var c={};b.getAttribute("href")&&b.getChildCount()&&(c={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});b&&b.hasAttribute("name")&&(c.anchor=c.removeAnchor=CKEDITOR.TRISTATE_OFF);return c});this.compiledProtectionFunction=f(a)},afterInit:function(a){a.dataProcessor.dataFilter.addRules({elements:{a:function(b){return!b.attributes.name?null:!b.children.length?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 h=/^javascript:/,m=/^mailto:([^?]+)(?:\?(.+))?$/,k=/subject=([^;?:@&=$,\/]*)/i,c=/body=([^;?:@&=$,\/]*)/i,l=/^#(.*)$/,e=/^((?:http|https|ftp|news):\/\/)?(.*)$/,b=/^(_(?:self|top|parent|blank))$/,n=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,p=/^javascript:([^(]+)\(([^)]+)\)$/,v=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,
r=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,q=/^tel:(.*)$/,u={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(),d=c.getSelectedElement(),e=c.getRanges(),f=[],g;if(!b&&d&&d.is("a"))return d;for(d=0;d<e.length;d++)if(g=c.getRanges()[d],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"),d=[],e=0,f;f=b.getItem(e++);)if(f.data("cke-saved-name")||f.hasAttribute("name"))d.push({name:f.data("cke-saved-name")||f.getAttribute("name"),id:f.getAttribute("id")});for(e=0;f=c.getItem(e++);)(f=this.tryRestoreFakeAnchor(a,
f))&&d.push({name:f.getAttribute("name"),id:f.getAttribute("id")});return d},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,d){var f=d&&(d.data("cke-saved-href")||d.getAttribute("href"))||"",g=a.plugins.link.compiledProtectionFunction,y=a.config.emailProtection,A,z={};f.match(h)&&("encode"==y?f=f.replace(n,function(a,
b,c){c=c||"";return"mailto:"+String.fromCharCode.apply(String,b.split(","))+c.replace(/\\'/g,"'")}):y&&f.replace(p,function(a,b,c){if(b==g.name){z.type="email";a=z.email={};b=/(^')|('$)/g;c=c.match(/[^,\s]+/g);for(var d=c.length,e,f,h=0;h<d;h++)e=decodeURIComponent,f=c[h].replace(b,"").replace(/\\'/g,"'"),f=e(f),e=g.params[h].toLowerCase(),a[e]=f;a.address=[a.name,a.domain].join("@")}}));if(!z.type)if(y=f.match(l))z.type="anchor",z.anchor={},z.anchor.name=z.anchor.id=y[1];else if(y=f.match(q))z.type=
"tel",z.tel=y[1];else if(y=f.match(m)){A=f.match(k);f=f.match(c);z.type="email";var D=z.email={};D.address=y[1];A&&(D.subject=decodeURIComponent(A[1]));f&&(D.body=decodeURIComponent(f[1]))}else if(f&&(A=f.match(e)))z.type="url",z.url={},z.url.protocol=A[1],z.url.url=A[2];if(d){if(f=d.getAttribute("target"))z.target={type:f.match(b)?f:"frame",name:f};else if(f=(f=d.data("cke-pa-onclick")||d.getAttribute("onclick"))&&f.match(v))for(z.target={type:"popup",name:f[1]};y=r.exec(f[2]);)("yes"==y[2]||"1"==
y[2])&&!(y[1]in{height:1,width:1,top:1,left:1})?z.target[y[1]]=!0:isFinite(y[2])&&(z.target[y[1]]=y[2]);null!==d.getAttribute("download")&&(z.download=!0);var f={},E;for(E in u)(y=d.getAttribute(E))&&(f[u[E]]=y);if(E=d.data("cke-saved-name")||f.advName)f.advName=E;CKEDITOR.tools.isEmpty(f)||(z.advanced=f)}return z},getLinkAttributes:function(b,c){var e=b.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("+'",a(k),"'"),e.push(")")):
e=["mailto:",h,k];break;default:e=h.split("@",2),k.name=e[0],k.domain=e[1],e=["javascript:",d(b,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 p in u)(e=c.advanced[u[p]])&&(f[p]=e);f.name&&(f["data-cke-saved-name"]=f.name)}f["data-cke-saved-href"]&&(f.href=f["data-cke-saved-href"]);p={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1,download:1};c.advanced&&CKEDITOR.tools.extend(p,u);for(var v in f)delete p[v];
return{set:f,removed:CKEDITOR.tools.object.keys(p)}},showDisplayTextForElement:function(a,b){var c={img:1,table:1,tbody:1,thead:1,tfoot:1,input:1,select:1,textarea:1},d=b.getSelection();return b.widgets&&b.widgets.focused||d&&1<d.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),d;b.collapsed&&c&&(d=b.createBookmark(),b.selectNodeContents(c),b.select())}c=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});a.removeStyle(c);d&&(b.moveToBookmark(d),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(),d;if(b&&(d=b.getSelectedElement())&&(!d.getChildCount()?CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,d):d.is("a")))d.remove(1);else if(d=CKEDITOR.plugins.link.getSelectedLink(a))d.hasAttribute("href")?(d.removeAttributes({name:1,"data-cke-saved-name":1}),d.removeClass("cke_anchor")):
d.remove(1);b.selectBookmarks(c)},requiredContent:"a[name]"};CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0})}(),function(){function a(a,b,c,d){for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];if((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=e[m].parent;k.is(this.type)||(l=h.createElement(this.type),k.copyAttributes(l,{start:1,type:1}),l.removeStyle("list-style-type"),e[m].parent=l)}c=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode);for(var n,e=c.listNode.getChildCount(),g=0;g<e&&(n=c.listNode.getChild(g));g++)n.getName()==this.type&&d.push(n);c.listNode.replace(b.root);a.fire("contentDomInvalidated")}function g(a,b,c){var d=b.contents,e=b.root.getDocument(),f=[];if(1==d.length&&d[0].equals(b.root)){var g=e.createElement("div");
d[0].moveChildren&&d[0].moveChildren(g);d[0].append(g);d[0]=g}b=b.contents[0].getParent();for(g=0;g<d.length;g++)b=b.getCommonAncestor(d[g].getParent());a=a.config.useComputedState;var h,k;a=void 0===a||a;for(g=0;g<d.length;g++)for(var l=d[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)){d=f[f.length-1].getNext();g=e.createElement(this.type);for(c.push(g);f.length;)c=f.shift(),a=e.createElement("li"),
c.is("pre")||r.test(c.getName())||"false"==c.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);d?g.insertBefore(d):g.appendTo(b)}}function d(a,b,c){function d(c){if((l=k[c?"getFirst":"getLast"]())&&(!l.is||!l.isBlockBoundary())&&(m=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))&&(!m.is||!m.isBlockBoundary({br:1})))a.document.createElement("br")[c?
"insertBefore":"insertAfter"](l)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];if((h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed"))f.push(h),CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",!0)}h=null;for(g=0;g<f.length;g++)h=f[g].getCustomData("listarray_index"),e[h].indent=-1;for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;)e[g].indent+=
f,g++;g--}var k=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;d(!0);d();k.replace(b.root);a.fire("contentDomInvalidated")}function f(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function h(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](q);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d),c=e}function m(a){function b(c){var d=
a[c?"getPrevious":"getNext"](p);d&&(d.type==CKEDITOR.NODE_ELEMENT&&d.is(a.getName()))&&(h(a,d,null,!c),a.remove(),a=d)}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 c(a,b,c){a.fire("saveSnapshot");c.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var d=c.extractContents();b.trim(!1,!0);var e=b.createBookmark(),f=new CKEDITOR.dom.elementPath(b.startContainer),g=f.block,f=f.lastElement.getAscendant("li",
1)||g,k=new CKEDITOR.dom.elementPath(c.startContainer),n=k.contains(CKEDITOR.dtd.$listItem),k=k.contains(CKEDITOR.dtd.$list);g?(g=g.getBogus())&&g.remove():k&&(g=k.getPrevious(p))&&v(g)&&g.remove();(g=d.getLast())&&(g.type==CKEDITOR.NODE_ELEMENT&&g.is("br"))&&g.remove();(g=b.startContainer.getChild(b.startOffset))?d.insertBefore(g):b.startContainer.append(d);if(n&&(d=l(n)))f.contains(n)?(h(d,n.getParent(),n),d.remove()):f.append(d);for(;c.checkStartOfBlock()&&c.checkEndOfBlock();){k=c.startPath();
d=k.block;if(!d)break;d.is("li")&&(f=d.getParent(),d.equals(f.getLast(p))&&d.equals(f.getFirst(p))&&(d=f));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 p(a)&&!v(a)};(c=c.next())&&(c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in CKEDITOR.dtd.$list)&&m(c);b.moveToBookmark(e);b.select();a.fire("saveSnapshot")}function l(a){return(a=a.getLast(p))&&a.type==CKEDITOR.NODE_ELEMENT&&
a.getName()in e?a:null}var e={ol:1,ul:1},b=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(),p=function(a){return!(b(a)||n(a))},v=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,d,f){if(!e[a.getName()])return[];d||(d=0);c||(c=[]);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,c,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",c.length);c.push(l);for(var m=0,n=k.getChildCount(),p;m<n;m++)p=k.getChild(m),p.type==CKEDITOR.NODE_ELEMENT&&e[p.getName()]?CKEDITOR.plugins.list.listToArray(p,b,c,d+1,l.grandparent):l.contents.push(p)}}return c},arrayToList:function(a,b,c,d,f){c||(c=0);if(!a||a.length<
c+1)return null;for(var g,h=a[c].parent.getDocument(),k=new CKEDITOR.dom.documentFragment(h),l=null,m=c,v=Math.max(a[c].indent,0),r=null,q,I,L=d==CKEDITOR.ENTER_P?"p":"div";;){var C=a[m];g=C.grandparent;q=C.element.getDirection(1);if(C.indent==v){if(!l||a[m].parent.getName()!=l.getName())l=a[m].parent.clone(!1,1),f&&l.setAttribute("dir",f),k.append(l);r=l.append(C.element.clone(0,1));q!=l.getDirection(1)&&r.setAttribute("dir",q);for(g=0;g<C.contents.length;g++)r.append(C.contents[g].clone(1,1));m++}else if(C.indent==
Math.max(v,0)+1)C=a[m-1].element.getDirection(1),m=CKEDITOR.plugins.list.arrayToList(a,null,m,d,C!=q?q:null),!r.getChildCount()&&(CKEDITOR.env.needsNbspFiller&&7>=h.$.documentMode)&&r.append(h.createText(" ")),r.append(m.listNode),m=m.nextIndex;else if(-1==C.indent&&!c&&g){e[g.getName()]?(r=C.element.clone(!1,!0),q!=g.getDirection(1)&&r.setAttribute("dir",q)):r=new CKEDITOR.dom.documentFragment(h);var l=g.getDirection(1)!=q,G=C.element,O=G.getAttribute("class"),Q=G.getAttribute("style"),P=r.type==
CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(d!=CKEDITOR.ENTER_BR||l||Q||O),K,V=C.contents.length,S;for(g=0;g<V;g++)if(K=C.contents[g],n(K)&&1<V)P?S=K.clone(1,1):r.append(K.clone(1,1));else if(K.type==CKEDITOR.NODE_ELEMENT&&K.isBlockBoundary()){l&&!K.getDirection()&&K.setAttribute("dir",q);I=K;var Y=G.getAttribute("style");Y&&I.setAttribute("style",Y.replace(/([^;])$/,"$1;")+(I.getAttribute("style")||""));O&&K.addClass(O);I=null;S&&(r.append(S),S=null);r.append(K.clone(1,1))}else P?(I||(I=h.createElement(L),
r.append(I),l&&I.setAttribute("dir",q)),Q&&I.setAttribute("style",Q),O&&I.setAttribute("class",O),S&&(I.append(S),S=null),I.append(K.clone(1,1))):r.append(K.clone(1,1));S&&((I||r).append(S),S=null);r.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&m!=a.length-1&&(CKEDITOR.env.needsBrFiller&&(q=r.getLast())&&(q.type==CKEDITOR.NODE_ELEMENT&&q.is("br"))&&q.remove(),q=r.getLast(p),(!q||!(q.type==CKEDITOR.NODE_ELEMENT&&q.is(CKEDITOR.dtd.$block)))&&r.append(h.createElement("br")));q=r.$.nodeName.toLowerCase();("div"==
q||"p"==q)&&r.appendBogus();k.append(r);l=null;m++}else return null;I=null;if(a.length<=m||Math.max(a[m].indent,0)<v)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&&(c=a,h=f=d=void 0,d=c.getDirection()))){for(f=c.getParent();f&&!(h=f.getDirection());)f=f.getParent();d==h&&c.removeAttribute("dir")}a=a.getNextSourceNode()}return{listNode:k,nextIndex:m}}};var r=/^h[1-6]$/,q=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);
f.prototype={exec:function(b){function c(a,b){return CKEDITOR.tools.array.filter(a.getChildren().toArray(),function(a){return-1===CKEDITOR.tools.array.indexOf(b,a.type)}).length}function f(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(b,b.elementPath());var h=b.config,k=b.getSelection(),l=k&&k.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var n=b.editable();if(n.getFirst(p)){var v=1==l.length&&
l[0];(h=v&&v.getEnclosedNode())&&(h.is&&this.type==h.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else h.enterMode==CKEDITOR.ENTER_BR?n.appendBogus():l[0].fixBlock(1,h.enterMode==CKEDITOR.ENTER_P?"p":"div"),k.selectRanges(l)}for(var h=k.createBookmarks(!0),n=[],r={},l=l.createIterator(),q=0;(v=l.getNextRange())&&++q;){var F=v.getBoundaryNodes(),H=F.startNode,J=F.endNode;H.type==CKEDITOR.NODE_ELEMENT&&"td"==H.getName()&&v.setStartAt(F.startNode,CKEDITOR.POSITION_AFTER_START);J.type==CKEDITOR.NODE_ELEMENT&&
"td"==J.getName()&&v.setEndAt(F.endNode,CKEDITOR.POSITION_BEFORE_END);v=v.createIterator();for(v.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;F=v.getNextParagraph();)if(!F.getCustomData("list_block")&&!f(F)){CKEDITOR.dom.element.setMarker(r,F,"list_block",1);for(var I=b.elementPath(F),H=I.elements,J=0,I=I.blockLimit,L,C=H.length-1;0<=C&&(L=H[C]);C--)if(e[L.getName()]&&I.contains(L)){I.removeCustomData("list_group_object_"+q);(H=L.getCustomData("list_group_object"))?H.contents.push(F):(H={root:L,
contents:[F]},n.push(H),CKEDITOR.dom.element.setMarker(r,L,"list_group_object",H));J=1;break}J||(J=I,J.getCustomData("list_group_object_"+q)?J.getCustomData("list_group_object_"+q).contents.push(F):(H={root:J,contents:[F]},CKEDITOR.dom.element.setMarker(r,J,"list_group_object_"+q,H),n.push(H)))}}for(L=[];0<n.length;)if(H=n.shift(),this.state==CKEDITOR.TRISTATE_OFF){if(!e[H.root.getName()]||c(H.root,[CKEDITOR.NODE_COMMENT]))e[H.root.getName()]?a.call(this,b,H,r,L):g.call(this,b,H,L)}else this.state==
CKEDITOR.TRISTATE_ON&&(e[H.root.getName()]&&(!e[H.root.getName()]||c(H.root,[CKEDITOR.NODE_COMMENT])))&&d.call(this,b,H,r);for(C=0;C<L.length;C++)m(L[C]);CKEDITOR.dom.element.clearAllMarkers(r);k.selectBookmarks(h);b.focus()},refresh:function(a,b){var c=b.contains(e,1),d=b.blockLimit||b.root;c&&d.contains(c)?this.setState(c.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(a){a.blockless||
(a.addCommand("numberedlist",new f("numberedlist","ol")),a.addCommand("bulletedlist",new f("bulletedlist","ul")),a.ui.addButton&&(a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),a.on("key",function(b){var d=b.data.domEvent.getKey(),f;if("wysiwyg"==a.mode&&d in{8:1,46:1}){var g=a.getSelection().getRanges()[0],
h=g&&g.startPath();if(g&&g.collapsed){var m=8==d,n=a.editable(),r=new CKEDITOR.dom.walker(g.clone());r.evaluator=function(a){return p(a)&&!v(a)};r.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};d=g.clone();if(m){var q;if((q=h.contains(e))&&g.checkBoundaryOfElement(q,CKEDITOR.START)&&(q=q.getParent())&&q.is("li")&&(q=l(q)))f=q,q=q.getPrevious(p),d.moveToPosition(q&&v(q)?q:f,CKEDITOR.POSITION_BEFORE_START);else if(r.range.setStartAt(n,CKEDITOR.POSITION_AFTER_START),r.range.setEnd(g.startContainer,
g.startOffset),(q=r.previous())&&q.type==CKEDITOR.NODE_ELEMENT&&(q.getName()in e||q.is("li")))q.is("li")||(r.range.selectNodeContents(q),r.reset(),r.evaluator=k,q=r.previous()),f=q,d.moveToElementEditEnd(f),d.moveToPosition(d.endPath().block,CKEDITOR.POSITION_BEFORE_END);if(f)c(a,d,g),b.cancel();else{var F=h.contains(e);F&&g.checkBoundaryOfElement(F,CKEDITOR.START)&&(f=F.getFirst(p),g.checkBoundaryOfElement(f,CKEDITOR.START)&&(q=F.getPrevious(p),l(f)?q&&(g.moveToElementEditEnd(q),g.select()):a.execCommand("outdent"),
b.cancel()))}}else if(f=h.contains("li")){if(r.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),m=(n=f.getLast(p))&&k(n)?n:f,h=0,(q=r.next())&&q.type==CKEDITOR.NODE_ELEMENT&&q.getName()in e&&q.equals(n)?(h=1,q=r.next()):g.checkBoundaryOfElement(m,CKEDITOR.END)&&(h=2),h&&q){g=g.clone();g.moveToElementEditStart(q);if(1==h&&(d.optimize(),!d.startContainer.equals(f))){for(f=d.startContainer;f.is(CKEDITOR.dtd.$inline);)F=f,f=f.getParent();F&&d.moveToPosition(F,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));c(a,d,g);b.cancel()}}else if(r.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),(q=r.next())&&q.type==CKEDITOR.NODE_ELEMENT&&q.is(e))q=q.getFirst(p),h.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(h.block.remove(),g.moveToElementEditStart(q),g.select()):l(q)?(g.moveToElementEditStart(q),g.select()):(g=g.clone(),g.moveToElementEditStart(q),c(a,d,g)),b.cancel();setTimeout(function(){a.selectionChange(1)})}}}))}})}(),
function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(a){if(!a.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=a.addCommand("numberedListStyle",g);a.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=a.addCommand("bulletedListStyle",g);a.addFeature(g);CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js");a.addMenuGroup("list",108);a.addMenuItems({numberedlist:{label:a.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:a.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}});a.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;
for(;a;){var f=a.getName();if("ol"==f)return{numberedlist:CKEDITOR.TRISTATE_OFF};if("ul"==f)return{bulletedlist:CKEDITOR.TRISTATE_OFF};a=a.getParent()}return null})}}};CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle)}(),"use strict",function(){function a(a,c,d){return b(c)&&b(d)&&d.equals(c.getNext(function(a){return!(B(a)||N(a)||n(a))}))}function g(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function d(a){var c=a.element;if(c&&b(c)&&(c=c.getAscendant(a.triggers,
!0))&&a.editable.contains(c)){var d=m(c);if("true"==d.getAttribute("contenteditable"))return c;if(d.is(a.triggers))return d}return null}function f(a,b,c){t(a,b);t(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function h(a,c,d){return c=c[d?"getPrevious":"getNext"](function(c){return c&&c.type==CKEDITOR.NODE_TEXT&&!B(c)||b(c)&&!n(c)&&!e(a,c)})}function m(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 k(a){var b=a.doc,d=D('\x3cspan contenteditable\x3d"false" data-cke-magic-line\x3d"1" style\x3d"'+Z+"position:absolute;border-top:1px dashed "+a.boxColor+'"\x3e\x3c/span\x3e',b),e=CKEDITOR.getUrl(this.path+"images/"+(E.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");A(d,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},lineChildren:[A(D('\x3cspan title\x3d"'+a.editor.lang.magicline.title+'" contenteditable\x3d"false"\x3e\x26#8629;\x3c/span\x3e',
b),{base:Z+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+e+") center no-repeat "+a.boxColor+";cursor:pointer;"+(E.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(E.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;"]}),A(D(aa,b),{base:R+"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"]}),A(D(aa,b),{base:R+"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(){t(a,this);var b=a.holdDistance,c=this.size;return c&&a.mouse.y>c.top-b&&a.mouse.y<c.bottom+b&&a.mouse.x>c.left-b&&a.mouse.x<c.right+b?!0:!1},place:function(){var b=
a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),k={};this.trigger=d;e&&t(a,e,!0);f&&t(a,f,!0);t(a,h,!0);a.inInlineMode&&w(a,!0);h.equals(c)?(k.left=b.scroll.x,k.right=-b.scroll.x,k.width=""):(k.left=g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0),k.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x,k.right="");e&&f?k.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/
2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top:e?f||(k.top=e.size.bottom+e.size.margin.bottom):k.top=f.size.top-f.size.margin.top;d.is(Q)||k.top>b.scroll.y-15&&k.top<b.scroll.y+5?(k.top=a.inInlineMode?0:b.scroll.y,this.look(Q)):d.is(P)||k.top>b.pane.bottom-5&&k.top<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(P)):(a.inInlineMode&&
(k.top-=b.editable.top+b.editable.border.top),this.look(K));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 z("span",a.doc)});for(b=d.lineChildren.length;b--;)d.lineChildren[b].appendTo(d);d.look(K);d.appendTo(d.wrap);d.unselectable();
d.lineChildren[0].on("mouseup",function(b){d.detach();c(a,function(b){var c=a.line.trigger;b[c.is(I)?"insertBefore":"insertAfter"](c.is(I)?c.lower:c.upper)},!0);a.editor.focus();!E.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();b.data.preventDefault(!0)});d.on("mousedown",function(a){a.data.preventDefault(!0)});a.line=d}function c(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;E.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(V):(f=(f=m(a.element,!0))&&f.data("cke-enter-mode")||
a.enterMode,f=new z(J[f],a.doc),f.is("br")||a.doc.createText(V).appendTo(f));c&&e.fire("saveSnapshot");b(f);d.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}function l(a,e){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function f(b){var d=E.ie&&9>E.version?" ":V,g=a.hotNode&&a.hotNode.getText()==d&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!e;c(a,function(c){g&&a.hotNode&&a.hotNode.remove();c[e?"insertAfter":
"insertBefore"](b);c.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!e});a.lastCmdDirection=!!e});!E.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();a.line.detach()}return function(c){c=c.getSelection().getStartElement();var g;c=c.getAscendant(M,1);if(!v(a,c)&&c&&!c.equals(a.editable)&&!c.contains(a.editable)){if((g=m(c))&&"false"==g.getAttribute("contenteditable"))c=g;a.element=c;g=h(a,c,!e);var k;b(g)&&g.is(a.triggers)&&g.is(da)&&(!h(a,g,!e)||(k=h(a,g,!e))&&b(k)&&
k.is(a.triggers))?f(g):(k=d(a,c),b(k)&&(h(a,k,!e)?(c=h(a,k,!e))&&(b(c)&&c.is(a.triggers))&&f(k):f(k)))}}}()}}function e(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 b(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function n(a){if(!b(a))return!1;var c;if(!(c=p(a)))b(a)?(c={left:1,right:1,center:1},c=!(!c[a.getComputedStyle("float")]&&!c[a.getAttribute("align")])):c=!1;return c}function p(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}
function v(a,b){if(!b)return!1;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return!0;return!1}function r(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(Y)});if(!b)return!1;t(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function q(a){var c=a.editable,d=a.mouse,f=a.view,h=a.triggerOffset;w(a);var k=d.y>(a.inInlineMode?f.editable.top+f.editable.height/2:Math.min(f.editable.height,f.pane.height)/
2),c=c[k?"getLast":"getFirst"](function(a){return!(B(a)||N(a))});if(!c)return null;e(a,c)&&(c=a.line.wrap[k?"getPrevious":"getNext"](function(a){return!(B(a)||N(a))}));if(!b(c)||n(c)||!b(c)||!c.is(a.triggers))return null;t(a,c);return!k&&0<=c.size.top&&0<d.y&&d.y<c.size.top+h?(a=a.inInlineMode||0===f.scroll.y?Q:K,new g([null,c,I,G,a])):k&&c.size.bottom<=f.pane.height&&d.y>c.size.bottom-h&&d.y<f.pane.height?(a=a.inInlineMode||c.size.bottom>f.pane.height-h&&c.size.bottom<f.pane.height?P:K,new g([c,
null,L,G,a])):null}function u(a){var c=a.mouse,e=a.view,f=a.triggerOffset,k=d(a);if(!k)return null;t(a,k);var f=Math.min(f,0|k.size.outerHeight/2),l=[],m,B;if(c.y>k.size.top-1&&c.y<k.size.top+f)B=!1;else if(c.y>k.size.bottom-f&&c.y<k.size.bottom+1)B=!0;else return null;if(n(k)||r(a,k,B)||k.getParent().is(S))return null;var p=h(a,k,!B);if(p){if(p&&p.type==CKEDITOR.NODE_TEXT)return null;if(b(p)){if(n(p)||!b(p)||!p.is(a.triggers)||p.getParent().is(S))return null;l=[p,k][B?"reverse":"concat"]().concat([C,
G])}}else k.equals(a.editable[B?"getLast":"getFirst"](a.isRelevant))?(w(a),B&&c.y>k.size.bottom-f&&c.y<e.pane.height&&k.size.bottom>e.pane.height-f&&k.size.bottom<e.pane.height?m=P:0<c.y&&c.y<k.size.top+f&&(m=Q)):m=K,l=[null,k][B?"reverse":"concat"]().concat([B?L:I,G,m,k.equals(a.editable[B?"getLast":"getFirst"](a.isRelevant))?B?P:Q:K]);return 0 in l?new g(l):null}function s(a,b,c,d){for(var e=b.getDocumentPosition(),f={},g={},h={},k={},l=W.length;l--;)f[W[l]]=parseInt(b.getComputedStyle.call(b,"border-"+
W[l]+"-width"),10)||0,h[W[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+W[l]),10)||0,g[W[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+W[l]),10)||0;(!c||d)&&x(a,d);k.top=e.y-(c?0:a.view.scroll.y);k.left=e.x-(c?0:a.view.scroll.x);k.outerWidth=b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(h.top+h.bottom+f.top+f.bottom);k.width=k.outerWidth-(h.left+h.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,
left:b.$.scrollLeft});return A({border:f,padding:h,margin:g,ignoreScroll:c},k,!0)}function t(a,c,d){if(!b(c))return c.size=null;if(c.size){if(c.size.ignoreScroll==d&&c.size.date>new Date-X)return null}else c.size={};return A(c.size,s(a,c,d),{date:+new Date},!0)}function w(a,b){a.view.editable=s(a,a.editable,b,!0)}function x(a,b){a.view||(a.view={});var c=a.view;if(b||!(c&&c.date>new Date-X)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();A(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-
d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},!0)}}function y(a,b,c,d){for(var e=d,f=d,h=0,k=!1,l=!1,m=a.view.pane.height,n=a.mouse;n.y+h<m&&0<n.y-h;){k||(k=b(e,d));l||(l=b(f,d));!k&&0<n.y-h&&(e=c(a,{x:n.x,y:n.y-h}));!l&&n.y+h<m&&(f=c(a,{x:n.x,y:n.y+h}));if(k&&l)break;h+=2}return new g([e,f,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var f=a.config,m=f.magicline_triggerOffset||30,B={editor:a,
enterMode:f.enterMode,triggerOffset:m,holdDistance:0|m*(f.magicline_holdDistance||0.5),boxColor:f.magicline_color||"#ff0000",rtl:"rtl"==f.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(f.magicline_tabuList||[]),triggers:f.magicline_everywhere?M:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},t,r,N;B.isRelevant=function(a){return b(a)&&!e(B,a)&&!n(a)};a.on("contentDom",function(){var b=a.editable(),m=a.document,n=a.window;A(B,{editable:b,inInlineMode:b.isInline(),doc:m,win:n,
hotNode:null},!0);B.boundary=B.inInlineMode?B.editable:B.doc.getDocumentElement();b.is(H.$inline)||(B.inInlineMode&&!p(b)&&b.setStyles({position:"relative",top:null,left:null}),k.call(this,B),x(B),b.attachListener(a,"beforeUndoImage",function(){B.line.detach()}),b.attachListener(a,"beforeGetData",function(){B.line.wrap.getParent()&&(B.line.detach(),a.once("getData",function(){B.line.attach()},null,null,1E3))},null,null,0),b.attachListener(B.inInlineMode?m:m.getWindow().getFrame(),"mouseout",function(b){if("wysiwyg"==
a.mode)if(B.inInlineMode){var c=b.data.$.clientX;b=b.data.$.clientY;x(B);w(B,!0);var d=B.view.editable,e=B.view.scroll;if(!(c>d.left-e.x&&c<d.right-e.x)||!(b>d.top-e.y&&b<d.bottom-e.y))clearTimeout(N),N=null,B.line.detach()}else clearTimeout(N),N=null,B.line.detach()}),b.attachListener(b,"keyup",function(){B.hiddenMode=0}),b.attachListener(b,"keydown",function(b){if("wysiwyg"==a.mode)switch(b.data.getKeystroke()){case 2228240:case 16:B.hiddenMode=1,B.line.detach()}}),b.attachListener(B.inInlineMode?
b:m,"mousemove",function(b){r=!0;if(!("wysiwyg"!=a.mode||a.readOnly||N)){var c={x:b.data.$.clientX,y:b.data.$.clientY};N=setTimeout(function(){B.mouse=c;N=B.trigger=null;x(B);if(r&&!B.hiddenMode&&a.focusManager.hasFocus&&!B.line.mouseNear()&&(B.element=U(B,!0)))(B.trigger=q(B)||u(B)||T(B))&&!v(B,B.trigger.upper||B.trigger.lower)?B.line.attach().place():(B.trigger=null,B.line.detach()),r=!1},30)}}),b.attachListener(n,"scroll",function(){"wysiwyg"==a.mode&&(B.line.detach(),E.webkit&&(B.hiddenMode=1,
clearTimeout(t),t=setTimeout(function(){B.mouseDown||(B.hiddenMode=0)},50)))}),b.attachListener(F?m:n,"mousedown",function(){"wysiwyg"==a.mode&&(B.line.detach(),B.hiddenMode=1,B.mouseDown=1)}),b.attachListener(F?m:n,"mouseup",function(){B.hiddenMode=0;B.mouseDown=0}),a.addCommand("accessPreviousSpace",l(B)),a.addCommand("accessNextSpace",l(B,!0)),a.setKeystroke([[f.magicline_keystrokePrevious,"accessPreviousSpace"],[f.magicline_keystrokeNext,"accessNextSpace"]]),a.on("loadSnapshot",function(){var b,
c,d,e;for(e in{p:1,br:1,div:1}){b=a.document.getElementsByTag(e);for(d=b.count();d--;)if((c=b.getItem(d)).data("cke-magicline-hot")){B.hotNode=c;B.lastCmdDirection="true"===c.data("cke-magicline-dir")?!0:!1;return}}}),a._.magiclineBackdoor={accessFocusSpace:c,boxTrigger:g,isLine:e,getAscendantTrigger:d,getNonEmptyNeighbour:h,getSize:s,that:B,triggerEdge:u,triggerEditable:q,triggerExpand:T})},this)}});var A=CKEDITOR.tools.extend,z=CKEDITOR.dom.element,D=z.createFromHtml,E=CKEDITOR.env,F=CKEDITOR.env.ie&&
9>CKEDITOR.env.version,H=CKEDITOR.dtd,J={},I=128,L=64,C=32,G=16,O=8,Q=4,P=2,K=1,V=" ",S=H.$listItem,Y=H.$tableContent,da=A({},H.$nonEditable,H.$empty),M=H.$block,X=100,Z="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",R=Z+"border-color:transparent;display:block;border-style:solid;",aa="\x3cspan\x3e"+V+"\x3c/span\x3e";J[CKEDITOR.ENTER_BR]="br";J[CKEDITOR.ENTER_P]="p";J[CKEDITOR.ENTER_DIV]="div";g.prototype={set:function(a,
b,c){this.properties=a+b+(c||K);return this},is:function(a){return(this.properties&a)==a}};var U=function(){function a(b,c){var d=b.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(b,c,d){if(!b.mouse)return null;var f=b.doc,g=b.line.wrap;d=d||b.mouse;var h=a(f,d);c&&e(b,h)&&(g.hide(),h=a(f,d),g.show());return!h||!(h.type==CKEDITOR.NODE_ELEMENT&&h.$)||E.ie&&9>E.version&&!b.boundary.equals(h)&&!b.boundary.contains(h)?null:h}}(),B=CKEDITOR.dom.walker.whitespaces(),
N=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),T=function(){function c(e){var g=e.element,h,k,l;if(!b(g)||g.contains(e.editable)||g.isReadOnly())return null;l=y(e,function(a,b){return!b.equals(a)},function(a,b){return U(a,!0,b)},g);h=l.upper;k=l.lower;if(a(e,h,k))return l.set(C,O);if(h&&g.contains(h))for(;!h.getParent().equals(g);)h=h.getParent();else h=g.getFirst(function(a){return d(e,a)});if(k&&g.contains(k))for(;!k.getParent().equals(g);)k=k.getParent();else k=g.getLast(function(a){return d(e,
a)});if(!h||!k)return null;t(e,h);t(e,k);if(!(e.mouse.y>h.size.top&&e.mouse.y<k.size.bottom))return null;for(var g=Number.MAX_VALUE,m,B,n,p;k&&!k.equals(h)&&(B=h.getNext(e.isRelevant));)m=Math.abs(f(e,h,B)-e.mouse.y),m<g&&(g=m,n=h,p=B),h=B,t(e,h);if(!n||!p||!(e.mouse.y>n.size.top&&e.mouse.y<p.size.bottom))return null;l.upper=n;l.lower=p;return l.set(C,O)}function d(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||N(b)||n(b)||e(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(d){var e=
c(d),f;if(f=e){f=e.upper;var g=e.lower;f=!f||!g||n(g)||n(f)||g.equals(f)||f.equals(g)||g.contains(f)||f.contains(g)?!1:b(f)&&f.is(d.triggers)&&b(g)&&g.is(d.triggers)&&a(d,f,g)?!0:!1}return f?e:null}}(),W=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function a(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())return[];for(var d=[],c=["style",
"className"],f=0;f<c.length;f++){var e=a.$.elements.namedItem(c[f]);e&&(e=new CKEDITOR.dom.element(e),d.push([e,e.nextSibling]),e.remove())}return d}function g(a,d){if(a&&!(a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())&&0<d.length)for(var c=d.length-1;0<=c;c--){var f=d[c][0],e=d[c][1];e?f.insertBefore(e):f.appendTo(a)}}function d(d,f){var c=a(d),h={},e=d.$;f||(h["class"]=e.className||"",e.className="");h.inline=e.style.cssText||"";f||(e.style.cssText="position: static; overflow: visible");g(c);
return h}function f(d,f){var c=a(d),h=d.$;"class"in f&&(h.className=f["class"]);"inline"in f&&(h.style.cssText=f.inline);g(c)}function h(a){if(!a.editable().isInline()){var d=CKEDITOR.instances,c;for(c in d){var f=d[c];"wysiwyg"==f.mode&&!f.readOnly&&(f=f.document.getBody(),f.setAttribute("contentEditable",!1),f.setAttribute("contentEditable",!0))}a.editable().hasFocus&&(a.toolbox.focus(),a.focus())}}CKEDITOR.plugins.add("maximize",{init:function(a){function g(){var b=e.getViewPaneSize();a.resize(b.width,
b.height,null,!0)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var c=a.lang,l=CKEDITOR.document,e=l.getWindow(),b,n,p,v=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var r=a.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),q=a.ui.space("contents");if("wysiwyg"==a.mode){var u=a.getSelection();b=u&&u.getRanges();n=e.getScrollPosition()}else{var s=a.editable().$;
b=!CKEDITOR.env.ie&&[s.selectionStart,s.selectionEnd];n=[s.scrollLeft,s.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){e.on("resize",g);p=e.getScrollPosition();for(u=a.container;u=u.getParent();)u.setCustomData("maximize_saved_styles",d(u)),u.setStyle("z-index",a.config.baseFloatZIndex-5);q.setCustomData("maximize_saved_styles",d(q,!0));r.setCustomData("maximize_saved_styles",d(r,!0));q={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};l.getDocumentElement().setStyles(q);!CKEDITOR.env.gecko&&
l.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&l.getBody().setStyles(q);CKEDITOR.env.ie?setTimeout(function(){e.$.scrollTo(0,0)},0):e.$.scrollTo(0,0);r.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");r.$.offsetLeft;r.setStyles({"z-index":a.config.baseFloatZIndex-5,left:"0px",top:"0px"});r.addClass("cke_maximized");g();q=r.getDocumentPosition();r.setStyles({left:-1*q.x+"px",top:-1*q.y+"px"});CKEDITOR.env.gecko&&h(a)}else if(this.state==
CKEDITOR.TRISTATE_ON){e.removeListener("resize",g);for(var u=[q,r],t=0;t<u.length;t++)f(u[t],u[t].getCustomData("maximize_saved_styles")),u[t].removeCustomData("maximize_saved_styles");for(u=a.container;u=u.getParent();)f(u,u.getCustomData("maximize_saved_styles")),u.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){e.$.scrollTo(p.x,p.y)},0):e.$.scrollTo(p.x,p.y);r.removeClass("cke_maximized");CKEDITOR.env.webkit&&(r.setStyle("display","inline"),setTimeout(function(){r.setStyle("display",
"block")},0));a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:q.$.offsetHeight,outerWidth:a.container.$.offsetWidth})}this.toggleState();if(u=this.uiItems[0])q=this.state==CKEDITOR.TRISTATE_OFF?c.maximize.maximize:c.maximize.minimize,u=CKEDITOR.document.getById(u._.id),u.getChild(1).setHtml(q),u.setAttribute("title",q),u.setAttribute("href",'javascript:void("'+q+'");');"wysiwyg"==a.mode?b?(CKEDITOR.env.gecko&&h(a),a.getSelection().selectRanges(b),(s=a.getSelection().getStartElement())&&
s.scrollIntoView(!0)):e.$.scrollTo(n.x,n.y):(b&&(s.selectionStart=b[0],s.selectionEnd=b[1]),s.scrollLeft=n[0],s.scrollTop=n[1]);b=n=null;v=this.state;a.fire("maximize",this.state)},canUndo:!1});a.ui.addButton&&a.ui.addButton("Maximize",{label:c.maximize.maximize,command:"maximize",toolbar:"tools,10"});a.on("mode",function(){var b=a.getCommand("maximize");b.setState(b.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:v)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(a){a.addCommand("newpage",
{modes:{wysiwyg:1,source:1},exec:function(a){var d=this;a.setData(a.config.newpage_html||"",function(){a.focus();setTimeout(function(){a.fire("afterCommandExec",{name:"newpage",command:d});a.selectionChange()},200)})},async:!0});a.ui.addButton&&a.ui.addButton("NewPage",{label:a.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),"use strict",function(){function a(a){return{"aria-label":a,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,
style:"page-break-after: always",title:a}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var a=("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{"+a+"}")},init:function(a){a.blockless||(a.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd),a.ui.addButton&&
a.ui.addButton("PageBreak",{label:a.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"}),CKEDITOR.env.webkit&&a.on("contentDom",function(){a.document.on("click",function(d){d=d.data.getTarget();d.is("div")&&d.hasClass("cke_pagebreak")&&a.getSelection().selectElement(d)})}))},afterInit:function(g){function d(c){CKEDITOR.tools.extend(c.attributes,a(g.lang.pagebreak.alt),!0);c.children.length=0}var f=g.dataProcessor,h=f&&f.dataFilter,f=f&&f.htmlFilter,m=/page-break-after\s*:\s*always/i,k=
/display\s*:\s*none/i;f&&f.addRules({attributes:{"class":function(a,d){var e=a.replace("cke_pagebreak","");if(e!=a){var b=CKEDITOR.htmlParser.fragment.fromHtml('\x3cspan style\x3d"display: none;"\x3e\x26nbsp;\x3c/span\x3e').children[0];d.children.length=0;d.add(b);b=d.attributes;delete b["aria-label"];delete b.contenteditable;delete b.title}return e}}},{applyToAll:!0,priority:5});h&&h.addRules({elements:{div:function(a){if(a.attributes["data-cke-pagebreak"])d(a);else if(m.test(a.attributes.style)){var f=
a.children[0];f&&("span"==f.name&&k.test(f.attributes.style))&&d(a)}}}})}});CKEDITOR.plugins.pagebreakCmd={exec:function(a){a.insertElement(CKEDITOR.plugins.pagebreak.createElement(a))},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(a){return(a=a.parent)&&"div"==a.name&&a.styles&&a.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"};CKEDITOR.plugins.pagebreak={createElement:function(g){return g.document.createElement("div",{attributes:a(g.lang.pagebreak.alt)})}}}(),
function(){function a(a,d,f){var h=CKEDITOR.cleanWord;h?f():(a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||d+"filter/default.js"),CKEDITOR.scriptLoader.load(a,f,null,!0));return!h}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(g){function d(a){var c=CKEDITOR.plugins.pastefromword&&CKEDITOR.plugins.pastefromword.images,d,e=[];if(c&&a.editor.filter.check("img[src]")&&(d=c.extractTagsFromHtml(a.data.dataValue),0!==d.length&&(c=c.extractFromRtf(a.data.dataTransfer["text/rtf"]),
0!==c.length&&(CKEDITOR.tools.array.forEach(c,function(a){e.push(a.type?"data:"+a.type+";base64,"+CKEDITOR.tools.convertBytesToBase64(CKEDITOR.tools.convertHexStringToBytes(a.hex)):null)},this),d.length===e.length))))for(c=0;c<d.length;c++)0===d[c].indexOf("file://")&&e[c]&&(a.data.dataValue=a.data.dataValue.replace(d[c],e[c]))}var f=0,h=this.path,m=void 0===g.config.pasteFromWord_inlineImages?!0:g.config.pasteFromWord_inlineImages;g.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(a,
c){f=1;a.execCommand("paste",{type:"html",notification:c&&"undefined"!==typeof c.notification?c.notification:!0})}});CKEDITOR.plugins.clipboard.addPasteButton(g,"PasteFromWord",{label:g.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});g.on("paste",function(d){var c=d.data,l=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?c.dataTransfer.getData("text/html",!0):null,e=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?c.dataTransfer.getData("text/rtf"):null,l=l||
c.dataValue,b={dataValue:l,dataTransfer:{"text/rtf":e}},e=/(class=\"?Mso|style=(?:\"|\')[^\"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,e=/<meta\s*name=(?:\"|\')?generator(?:\"|\')?\s*content=(?:\"|\')?microsoft/gi.test(l)||e.test(l);if(l&&(f||e)&&(!1!==g.fire("pasteFromWord",b)||f)){c.dontFilter=!0;var m=a(g,h,function(){if(m)g.fire("paste",c);else if(!g.config.pasteFromWordPromptCleanup||f||confirm(g.lang.pastefromword.confirmCleanup))b.dataValue=CKEDITOR.cleanWord(b.dataValue,g),g.fire("afterPasteFromWord",
b),c.dataValue=b.dataValue,!0===g.config.forcePasteAsPlainText?c.type="text":!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&"allow-word"===g.config.forcePasteAsPlainText&&(c.type="html");f=0});m&&d.cancel()}},null,null,3);if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&m)g.on("afterPasteFromWord",d)}})}(),function(){var a={canUndo:!1,async:!0,exec:function(a,d){var f=a.lang,h=CKEDITOR.tools.keystrokeToString(f.common.keyboard,a.getCommandKeystroke(CKEDITOR.env.ie?a.commands.paste:
this)),m=d&&"undefined"!==typeof d.notification?d.notification:!d||!d.from||"keystrokeHandler"===d.from&&CKEDITOR.env.ie,f=m&&"string"===typeof m?m:f.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+h.aria+'"\x3e'+h.display+"\x3c/kbd\x3e");a.execCommand("paste",{type:"text",notification:m?f:!1})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(g){var d=!CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.SHIFT+86:CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+86;g.addCommand("pastetext",
a);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(){var a,g={modes:{wysiwyg:1,source:1},canUndo:!1,readOnly:1,exec:function(d){var f,g=d.config,m=g.baseHref?'\x3cbase href\x3d"'+g.baseHref+
'"/\x3e':"";if(g.fullPage)f=d.getData().replace(/<head>/,"$\x26"+m).replace(/[^>]*(?=<\/title>)/,"$\x26 \x26mdash; "+d.lang.preview.preview);else{var g="\x3cbody ",k=d.document&&d.document.getBody();k&&(k.getAttribute("id")&&(g+='id\x3d"'+k.getAttribute("id")+'" '),k.getAttribute("class")&&(g+='class\x3d"'+k.getAttribute("class")+'" '));f=d.config.docType+'\x3chtml dir\x3d"'+d.config.contentsLangDirection+'"\x3e\x3chead\x3e'+m+"\x3ctitle\x3e"+d.lang.preview.preview+"\x3c/title\x3e"+CKEDITOR.tools.buildStyleHtml(d.config.contentsCss)+
"\x3c/head\x3e"+(g+"\x3e")+d.getData()+"\x3c/body\x3e\x3c/html\x3e"}m=640;g=420;k=80;try{var c=window.screen,m=Math.round(0.8*c.width),g=Math.round(0.7*c.height),k=Math.round(0.1*c.width)}catch(l){}if(!1===d.fire("contentPreview",d={dataValue:f}))return!1;var c="",e;CKEDITOR.env.ie&&(window._cke_htmlToLoad=d.dataValue,e="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;})() )",
c="");CKEDITOR.env.gecko&&(window._cke_htmlToLoad=d.dataValue,c=CKEDITOR.getUrl(a+"preview.html"));c=window.open(c,null,"toolbar\x3dyes,location\x3dno,status\x3dyes,menubar\x3dyes,scrollbars\x3dyes,resizable\x3dyes,width\x3d"+m+",height\x3d"+g+",left\x3d"+k);CKEDITOR.env.ie&&c&&(c.location=e);!CKEDITOR.env.ie&&!CKEDITOR.env.gecko&&(e=c.document,e.open(),e.write(d.dataValue),e.close());return!0}};CKEDITOR.plugins.add("preview",{init:function(d){d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(a=this.path,
d.addCommand("preview",g),d.ui.addButton&&d.ui.addButton("Preview",{label:d.lang.preview.preview,command:"preview",toolbar:"document,40"}))}})}(),CKEDITOR.plugins.add("print",{init:function(a){a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(a.addCommand("print",CKEDITOR.plugins.print),a.ui.addButton&&a.ui.addButton("Print",{label:a.lang.print.toolbar,command:"print",toolbar:"document,50"}))}}),CKEDITOR.plugins.print={exec:function(a){CKEDITOR.env.gecko?a.window.$.print():a.document.$.execCommand("Print")},
canUndo:!1,readOnly:1,modes:{wysiwyg:1}},CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var g=a._.removeFormatRegex||(a._.removeFormatRegex=RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),
d=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),f=CKEDITOR.plugins.removeformat.filter,h=a.getSelection().getRanges().createIterator(),m=function(a){return a.type==CKEDITOR.NODE_ELEMENT},k=[],c;c=h.getNextRange();){var l=c.createBookmark();c=a.createRange();c.setStartBefore(l.startNode);l.endNode&&c.setEndAfter(l.endNode);c.collapsed||c.enlarge(CKEDITOR.ENLARGE_ELEMENT);var e=c.createBookmark(),b=e.startNode,n=e.endNode,p=function(b){for(var c=a.elementPath(b),
d=c.elements,e=1,h;(h=d[e])&&!h.equals(c.block)&&!h.equals(c.blockLimit);e++)g.test(h.getName())&&f(a,h)&&b.breakParent(h)};p(b);if(n){p(n);for(b=b.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);b&&!b.equals(n);)if(b.isReadOnly()){if(b.getPosition(n)&CKEDITOR.POSITION_CONTAINS)break;b=b.getNext(m)}else{p=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);if(!("img"==b.getName()&&b.data("cke-realelement")||b.hasAttribute("data-cke-bookmark"))&&f(a,b))g.test(b.getName())?b.remove(1):(b.removeAttributes(d),
a.fire("removeFormatCleanup",b));b=p}}e.startNode.remove();e.endNode&&e.endNode.remove();c.moveToBookmark(l);k.push(c)}a.forceNextSelectionCheck();a.getSelection().selectRanges(k)}}},filter:function(a,g){for(var d=a._.removeFormatFilters||[],f=0;f<d.length;f++)if(!1===d[f](g))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(a){this._.removeFormatFilters||(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(a)},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(a){function g(d){var g=l.width,h=l.height,k=g+(d.data.$.screenX-c.x)*("rtl"==m?-1:1);d=h+(d.data.$.screenY-c.y);e&&(g=Math.max(f.resize_minWidth,Math.min(k,f.resize_maxWidth)));b&&(h=Math.max(f.resize_minHeight,Math.min(d,f.resize_maxHeight)));a.resize(e?g:null,h)}function d(){CKEDITOR.document.removeListener("mousemove",g);CKEDITOR.document.removeListener("mouseup",
d);a.document&&(a.document.removeListener("mousemove",g),a.document.removeListener("mouseup",d))}var f=a.config,h=a.ui.spaceId("resizer"),m=a.element?a.element.getDirection(1):"ltr";!f.resize_dir&&(f.resize_dir="vertical");void 0===f.resize_maxWidth&&(f.resize_maxWidth=3E3);void 0===f.resize_maxHeight&&(f.resize_maxHeight=3E3);void 0===f.resize_minWidth&&(f.resize_minWidth=750);void 0===f.resize_minHeight&&(f.resize_minHeight=250);if(!1!==f.resize_enabled){var k=null,c,l,e=("both"==f.resize_dir||
"horizontal"==f.resize_dir)&&f.resize_minWidth!=f.resize_maxWidth,b=("both"==f.resize_dir||"vertical"==f.resize_dir)&&f.resize_minHeight!=f.resize_maxHeight,n=CKEDITOR.tools.addFunction(function(b){k||(k=a.getResizable());l={width:k.$.offsetWidth||0,height:k.$.offsetHeight||0};c={x:b.screenX,y:b.screenY};f.resize_minWidth>l.width&&(f.resize_minWidth=l.width);f.resize_minHeight>l.height&&(f.resize_minHeight=l.height);CKEDITOR.document.on("mousemove",g);CKEDITOR.document.on("mouseup",d);a.document&&
(a.document.on("mousemove",g),a.document.on("mouseup",d));b.preventDefault&&b.preventDefault()});a.on("destroy",function(){CKEDITOR.tools.removeFunction(n)});a.on("uiSpace",function(c){if("bottom"==c.data.space){var d="";e&&!b&&(d=" cke_resizer_horizontal");!e&&b&&(d=" cke_resizer_vertical");var f='\x3cspan id\x3d"'+h+'" class\x3d"cke_resizer'+d+" cke_resizer_"+m+'" title\x3d"'+CKEDITOR.tools.htmlEncode(a.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+n+', event)"\x3e'+("ltr"==
m?"◢":"◣")+"\x3c/span\x3e";"ltr"==m&&"ltr"==d?c.data.html+=f:c.data.html=f+c.data.html}},a,null,100);a.on("maximize",function(b){a.ui.space("resizer")[b.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var a={readOnly:1,modes:{wysiwyg:1,source:1},exec:function(a){if(a.fire("save")&&(a=a.element.$.form))try{a.submit()}catch(d){a.submit.click&&a.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(g){g.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(g.addCommand("save",a).startDisabled=
!g.element.$.form,g.ui.addButton&&g.ui.addButton("Save",{label:g.lang.save.toolbar,command:"save",toolbar:"document,10"}))}})}(),function(){CKEDITOR.plugins.add("selectall",{init:function(a){a.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(a){var d=a.editable();if(d.is("textarea"))a=d.$,CKEDITOR.env.ie&&a.createTextRange?a.createTextRange().execCommand("SelectAll"):(a.selectionStart=0,a.selectionEnd=a.value.length),a.focus();else{if(d.is("body"))a.document.$.execCommand("SelectAll",
!1,null);else{var f=a.createRange();f.selectNodeContents(d);f.select()}a.forceNextSelectionCheck();a.selectionChange()}},canUndo:!1});a.ui.addButton&&a.ui.addButton("SelectAll",{label:a.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})}(),function(){var a={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var d=this.state==CKEDITOR.TRISTATE_ON&&(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||a.focusManager.hasFocus)?
"attachClass":"removeClass";a.editable()[d]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var a="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),d,f,h,m,k=CKEDITOR.getUrl(this.path),c=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),l=c?":not([contenteditable\x3dfalse]):not(.cke_show_blocks_off)":"",e,b;for(d=f=h=m="";e=a.pop();)b=a.length?",":"",d+=".cke_show_blocks "+e+l+b,h+=".cke_show_blocks.cke_contents_ltr "+e+l+b,m+=".cke_show_blocks.cke_contents_rtl "+e+l+
b,f+=".cke_show_blocks "+e+l+"{background-image:url("+CKEDITOR.getUrl(k+"images/block_"+e+".png")+")}";CKEDITOR.addCss((d+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(f,h+"{background-position:top left;padding-left:8px}",m+"{background-position:top right;padding-right:8px}"));c||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(){f.refresh(g)}if(!g.blockless){var f=g.addCommand("showblocks",a);f.canUndo=!1;g.config.startupOutlineBlocks&&f.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(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(g)});g.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(g.on("focus",d),g.on("blur",d));g.on("contentDom",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&
f.refresh(g)})}}})}(),function(){var a={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var d=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";a.editable()[d]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var a;a=(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(a)},init:function(g){var d=g.addCommand("showborders",a);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(a){var d=a.dataProcessor;a=d&&d.dataFilter;d=d&&d.htmlFilter;a&&a.addRules({elements:{table:function(a){a=a.attributes;var d=a["class"],g=parseInt(a.border,10);if((!g||0>=g)&&(!d||-1==d.indexOf("cke_show_border")))a["class"]=(d||"")+" cke_show_border"}}});d&&d.addRules({elements:{table:function(a){a=a.attributes;var d=a["class"];d&&(a["class"]=d.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,
""))}}})}});CKEDITOR.on("dialogDefinition",function(a){var d=a.data.name;if("table"==d||"tableProperties"==d)if(a=a.data.definition,d=a.getContents("info").get("txtBorder"),d.commit=CKEDITOR.tools.override(d.commit,function(a){return function(d,g){a.apply(this,arguments);var k=parseInt(this.getValue(),10);g[!k||0>=k?"addClass":"removeClass"]("cke_show_border")}}),a=(a=a.getContents("advanced"))&&a.get("advCSSClasses"))a.setup=CKEDITOR.tools.override(a.setup,function(a){return function(){a.apply(this,
arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(d,g){a.apply(this,arguments);parseInt(g.getAttribute("border"),10)||g.addClass("cke_show_border")}})})}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(a){a.config.smiley_path=a.config.smiley_path||this.path+"images/";a.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"}));
a.ui.addButton&&a.ui.addButton("Smiley",{label:a.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=h&&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 f=
CKEDITOR.plugins.sourcearea;g.addMode("source",function(f){var h=g.ui.space("contents").getDocument().createElement("textarea");h.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)));h.setAttribute("dir","ltr");h.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");g.ui.space("contents").append(h);h=g.editable(new a(g,
h));h.setData(g.getData(1));CKEDITOR.env.ie&&(h.attachListener(g,"resize",d,h),h.attachListener(CKEDITOR.document.getWindow(),"resize",d,h),CKEDITOR.tools.setTimeout(d,0,h));g.fire("ariaWidget",this);f()});g.addCommand("source",f.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 h=CKEDITOR.env.ie&&9==
CKEDITOR.env.version}}});var a=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(a){this.setValue(a);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(a){this[(a?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){a.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,
source:1},editorFocus:!1,readOnly:1,exec:function(a){"wysiwyg"==a.mode&&a.fire("saveSnapshot");a.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);a.setMode("source"==a.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(a){var g=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var d=a.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(a.lang.specialchar,
g.langEntries[d]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.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(a){var g=a.config,d=a.lang.stylescombo,f={},h=[],m=[];a.on("stylesSet",function(d){if(d=d.data.styles){for(var c,l,e,b=0,n=d.length;b<n;b++)if(c=d[b],!(a.blockless&&c.element in CKEDITOR.dtd.$block||"string"==typeof c.type&&!CKEDITOR.style.customHandlers[c.type]))if(l=c.name,c=new CKEDITOR.style(c),!a.filter.customConfig||a.filter.check(c))c._name=l,c._.enterMode=g.enterMode,c._.type=e=c.assignedTo||c.type,c._.weight=
b+1E3*(e==CKEDITOR.STYLE_OBJECT?1:e==CKEDITOR.STYLE_BLOCK?2:3),f[l]=c,h.push(c),m.push(c);h.sort(function(a,b){return a._.weight-b._.weight})}});a.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,c,f,e,b,g;b=0;for(g=h.length;b<g;b++)a=h[b],c=a._name,e=a._.type,e!=f&&(this.startGroup(d["panelTitle"+String(e)]),
f=e),this.add(c,a.type==CKEDITOR.STYLE_OBJECT?c:a.buildPreview(),c);this.commit()},onClick:function(d){a.focus();a.fire("saveSnapshot");d=f[d];var c=a.elementPath();if(d.group&&d.removeStylesFromSameGroup(a))a.applyStyle(d);else a[d.checkActive(c,a)?"removeStyle":"applyStyle"](d);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(d){var c=this.getValue();d=d.data.path.elements;for(var g=0,e=d.length,b;g<e;g++){b=d[g];for(var h in f)if(f[h].checkElementRemovable(b,!0,a)){h!=
c&&this.setValue(h);return}}this.setValue("")},this)},onOpen:function(){var g=a.getSelection(),g=g.getSelectedElement()||g.getStartElement()||a.editable(),g=a.elementPath(g),c=[0,0,0,0];this.showAll();this.unmarkAll();for(var h in f){var e=f[h],b=e._.type;e.checkApplicable(g,a,a.activeFilter)?c[b]++:this.hideItem(h);e.checkActive(g,a)&&this.mark(h)}c[CKEDITOR.STYLE_BLOCK]||this.hideGroup(d["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]);c[CKEDITOR.STYLE_INLINE]||this.hideGroup(d["panelTitle"+String(CKEDITOR.STYLE_INLINE)]);
c[CKEDITOR.STYLE_OBJECT]||this.hideGroup(d["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var d=a.elementPath();if(d){for(var c in f)if(f[c].checkApplicable(d,a,a.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){f={};h=[]}})}})}(),function(){function a(a){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(d){if(d.editable().hasFocus){var f=d.getSelection(),c;if(c=(new CKEDITOR.dom.elementPath(f.getCommonAncestor(),f.root)).contains({td:1,
th:1},1)){var f=d.createRange(),g=CKEDITOR.tools.tryThese(function(){var b=c.getParent().$.cells[c.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=c.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(!g&&!a){for(var e=c.getAscendant("table").$,g=c.getParent().$.cells,e=new CKEDITOR.dom.element(e.insertRow(-1),d.document),b=0,n=g.length;b<n;b++)e.append((new CKEDITOR.dom.element(g[b],d.document)).clone(!1,!1)).appendBogus();
f.moveToElementEditStart(e)}else if(g)g=new CKEDITOR.dom.element(g),f.moveToElementEditStart(g),(!f.checkStartOfBlock()||!f.checkEndOfBlock())&&f.selectNodeContents(g);else return!0;f.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)}},f={exec:function(a){a.container.focusPrevious(!0,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(h){for(var m=!1!==h.config.enableTabKeyTools,k=h.config.tabSpaces||0,c=
"";k--;)c+=" ";if(c)h.on("key",function(a){9==a.data.keyCode&&(h.insertText(c),a.cancel())});if(m)h.on("key",function(a){(9==a.data.keyCode&&h.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&h.execCommand("selectPreviousCell"))&&a.cancel()});h.addCommand("blur",CKEDITOR.tools.extend(d,g));h.addCommand("blurBack",CKEDITOR.tools.extend(f,g));h.addCommand("selectNextCell",a());h.addCommand("selectPreviousCell",a(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(a,g){var d=
void 0===g?this.getTabIndex():g,f,h,m,k,c,l;if(0>=d)for(c=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);c;){if(c.isVisible()&&0===c.getTabIndex()){m=c;break}c=c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(c=this.getDocument().getBody().getFirst();c=c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!f)if(!h&&c.equals(this)){if(h=!0,a){if(!(c=c.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;f=1}}else h&&!this.contains(c)&&(f=1);if(c.isVisible()&&!(0>(l=c.getTabIndex()))){if(f&&l==d){m=
c;break}l>d&&(!m||!k||l<k)?(m=c,k=l):!m&&0===l&&(m=c,k=l)}}m&&m.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(a,g){for(var d=void 0===g?this.getTabIndex():g,f,h,m,k=0,c,l=this.getDocument().getBody().getLast();l=l.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!f)if(!h&&l.equals(this)){if(h=!0,a){if(!(l=l.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;f=1}}else h&&!this.contains(l)&&(f=1);if(l.isVisible()&&!(0>(c=l.getTabIndex())))if(0>=d){if(f&&0===c){m=l;break}c>k&&
(m=l,k=c)}else{if(f&&c==d){m=l;break}if(c<d&&(!m||c>k))m=l,k=c}}m&&m.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function g(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,d){this.setState(d.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var d=a.lang.table;a.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];"+
(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(a){if(a.styles){var d;if(a.styles.border)d=CKEDITOR.tools.style.parse.border(a.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var g=a.styles;g["border-left"]&&(g["border-left"]===g["border-right"]&&g["border-right"]===g["border-top"]&&
g["border-top"]===g["border-bottom"])&&(d=CKEDITOR.tools.style.parse.border(g["border-top"]))}d&&(d.style&&"solid"===d.style&&d.width&&0!==parseFloat(d.width))&&(a.attributes.border=1);"collapse"==a.styles["border-collapse"]&&(a.attributes.cellspacing=0)}}}]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",g()));a.addCommand("tableDelete",g({exec:function(a){var d=a.elementPath().contains("table",1);if(d){var g=d.getParent(),k=a.editable();1==g.getChildCount()&&(!g.is("td",
"th")&&!g.equals(k))&&(d=g);a=a.createRange();a.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();a.select()}}}));a.ui.addButton&&a.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");a.addMenuItems&&a.addMenuItems({table:{label:d.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:d.deleteTable,command:"tableDelete",group:"table",
order:1}});a.on("doubleclick",function(a){a.data.element.is("table")&&(a.data.dialog="tableProperties")});a.contextMenu&&a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function a(a,b){function c(a){return!b?!0:b.contains(a)&&a.getAscendant("table",!0).equals(b)}function d(a){!(0<e.length)&&(a.type==CKEDITOR.NODE_ELEMENT&&r.test(a.getName())&&!a.getCustomData("selected_cell"))&&(CKEDITOR.dom.element.setMarker(f,a,"selected_cell",
!0),e.push(a))}var e=[],f={};if(!a)return e;for(var g=a.getRanges(),h=0;h<g.length;h++){var k=g[h];if(k.collapsed)(k=k.getCommonAncestor().getAscendant({td:1,th:1},!0))&&c(k)&&e.push(k);else{var k=new CKEDITOR.dom.walker(k),l;for(k.guard=d;l=k.next();)if(l.type!=CKEDITOR.NODE_ELEMENT||!l.is(CKEDITOR.dtd.table))if((l=l.getAscendant({td:1,th:1},!0))&&!l.getCustomData("selected_cell")&&c(l))CKEDITOR.dom.element.setMarker(f,l,"selected_cell",!0),e.push(l)}}CKEDITOR.dom.element.clearAllMarkers(f);return e}
function g(b,c){for(var d=q(b)?b:a(b),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),g=d[0].getParent(),h=g.$.rowIndex,d=d[d.length-1],k=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[k]),h=c?h:k,g=c?g:d,d=CKEDITOR.tools.buildTableMap(f),f=d[h],h=c?d[h-1]:d[h+1],d=d[0].length,e=e.createElement("tr"),k=0;f[k]&&k<d;k++){var l;1<f[k].rowSpan&&h&&f[k]==h[k]?(l=f[k],l.rowSpan+=1):(l=(new CKEDITOR.dom.element(f[k])).clone(),l.removeAttribute("rowSpan"),l.appendBogus(),e.append(l),
l=l.$);k+=l.colSpan-1}c?e.insertBefore(g):e.insertAfter(g);return e}function d(b){if(b instanceof CKEDITOR.dom.selection){var c=b.getRanges(),e=a(b),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=[];b.reset();for(b=h;b<=k;b++){for(var l=g[b],m=new CKEDITOR.dom.element(f.$.rows[b]),n=0;n<l.length;n++){var p=new CKEDITOR.dom.element(l[n]),q=p.getParent().$.rowIndex;1==p.$.rowSpan?p.remove():(p.$.rowSpan-=
1,q==b&&(q=g[b+1],q[n-1]?p.insertAfter(new CKEDITOR.dom.element(q[n-1])):(new CKEDITOR.dom.element(f.$.rows[b+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(b=e.length;0<=b;b--)d(e[b]);return!f.$.parentNode?(c[0].select(),null):h}b instanceof CKEDITOR.dom.element&&(f=b.getAscendant("table"),1==f.$.rows.length?f.remove():b.remove());return null}function f(a){for(var b=
a.getParent().$.cells,c=0,d=0;d<b.length;d++){var e=b[d],c=c+e.colSpan;if(e==a.$)break}return c-1}function h(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var e=f(a[d]);if(b?e<c:e>c)c=e}return c}function m(b,c){for(var d=q(b)?b:a(b),e=d[0].getAscendant("table"),f=h(d,1),d=h(d),g=c?f:d,k=CKEDITOR.tools.buildTableMap(e),e=[],f=[],d=[],l=k.length,m=0;m<l;m++)e.push(k[m][g]),f.push(c?k[m][g-1]:k[m][g+1]);for(m=0;m<l;m++)e[m]&&(1<e[m].colSpan&&f[m]==e[m]?(k=e[m],k.colSpan+=1):(g=new CKEDITOR.dom.element(e[m]),
k=g.clone(),k.removeAttribute("colSpan"),k.appendBogus(),k[c?"insertBefore":"insertAfter"].call(k,g),d.push(k),k=k.$),m+=k.rowSpan-1);return d}function k(b){function c(a){var b,d,e;b=a.getRanges();if(1!==b.length)return a;b=b[0];if(b.collapsed||0!==b.endOffset)return a;d=b.endContainer;e=d.getName().toLowerCase();if(!("td"===e||"th"===e))return a;for((e=d.getPrevious())||(e=d.getParent().getPrevious().getLast());e.type!==CKEDITOR.NODE_TEXT&&"br"!==e.getName().toLowerCase();)if(e=e.getLast(),!e)return a;
b.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);return b.select()}CKEDITOR.env.webkit&&!b.isFake&&(b=c(b));var d=b.getRanges(),e=a(b),f=e[0],g=e[e.length-1],e=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(e),k,l,m=[];b.reset();var n=0;for(b=h.length;n<b;n++)for(var p=0,q=h[n].length;p<q;p++)void 0===k&&h[n][p]==f.$&&(k=p),h[n][p]==g.$&&(l=p);for(n=k;n<=l;n++)for(p=0;p<h.length;p++)g=h[p],f=new CKEDITOR.dom.element(e.$.rows[p]),g=new CKEDITOR.dom.element(g[n]),g.$&&(1==g.$.colSpan?g.remove():g.$.colSpan-=
1,p+=g.$.rowSpan-1,f.$.cells.length||m.push(f));k=h[0].length-1>l?new CKEDITOR.dom.element(h[0][l+1]):k&&-1!==h[0][k-1].cellIndex?new CKEDITOR.dom.element(h[0][k-1]):new CKEDITOR.dom.element(e.$.parentNode);m.length==b&&(d[0].moveToPosition(e,CKEDITOR.POSITION_AFTER_END),d[0].select(),e.remove());return k}function c(a,b){var c=a.getStartElement().getAscendant({td:1,th:1},!0);if(c){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function l(b){if(b instanceof CKEDITOR.dom.selection){var c=
b.getRanges(),d=a(b),f=d[0]&&d[0].getAscendant("table"),g;a:{var h=0;g=d.length-1;for(var k={},m,n;m=d[h++];)CKEDITOR.dom.element.setMarker(k,m,"delete_cell",!0);for(h=0;m=d[h++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(k);g=n;break a}CKEDITOR.dom.element.clearAllMarkers(k);h=d[0].getParent();(h=h.getPrevious())?g=h.getLast():(h=d[g].getParent(),g=(h=h.getNext())?h.getChild(0):null)}b.reset();for(b=
d.length-1;0<=b;b--)l(d[b]);g?e(g,!0):f&&(c[0].moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),c[0].select(),f.remove())}else b instanceof CKEDITOR.dom.element&&(c=b.getParent(),1==c.getChildCount()?c.remove():b.remove())}function e(a,b){var c=a.getDocument(),d=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(d.focus(),c.focus());c=new CKEDITOR.dom.range(c);if(!c["moveToElementEdit"+(b?"End":"Start")](a))c.selectNodeContents(a),c.collapse(b?!1:!0);c.select(!0)}function b(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(c,d,e){var f=a(c),g;if((d?1!=f.length:2>f.length)||(g=c.getCommonAncestor())&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("table"))return!1;var h;c=f[0];g=c.getAscendant("table");var k=CKEDITOR.tools.buildTableMap(g),l=k.length,m=k[0].length,n=c.getParent().$.rowIndex,p=b(k,n,c);if(d){var q;try{var r=parseInt(c.getAttribute("rowspan"),10)||1;
h=parseInt(c.getAttribute("colspan"),10)||1;q=k["up"==d?n-r:"down"==d?n+r:n]["left"==d?p-h:"right"==d?p+h:p]}catch(v){return!1}if(!q||c.$==q)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(q))}d=c.getDocument();var L=n,r=q=0,C=!e&&new CKEDITOR.dom.documentFragment(d),G=0;for(d=0;d<f.length;d++){h=f[d];var O=h.getParent(),Q=h.getFirst(),P=h.$.colSpan,K=h.$.rowSpan,O=O.$.rowIndex,V=b(k,O,h),G=G+P*K,r=Math.max(r,V-p+P);q=Math.max(q,O-n+K);if(!e){P=h;(K=P.getBogus())&&K.remove();
P.trim();if(h.getChildren().count()){if(O!=L&&Q&&(!Q.isBlockBoundary||!Q.isBlockBoundary({br:1})))(L=C.getLast(CKEDITOR.dom.walker.whitespaces(!0)))&&(!L.is||!L.is("br"))&&C.append("br");h.moveChildren(C)}d?h.remove():h.setHtml("")}L=O}if(e)return q*r==G;C.moveChildren(c);c.appendBogus();r>=m?c.removeAttribute("rowSpan"):c.$.rowSpan=q;q>=l?c.removeAttribute("colSpan"):c.$.colSpan=r;e=new CKEDITOR.dom.nodeList(g.$.rows);f=e.count();for(d=f-1;0<=d;d--)g=e.getItem(d),g.$.cells.length||(g.remove(),f++);
return c}function p(c,d){var e=a(c);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(g),k=f.$.rowIndex,l=b(h,k,e),m=e.$.rowSpan,n;if(1<m){n=Math.ceil(m/2);for(var m=Math.floor(m/2),f=k+n,g=new CKEDITOR.dom.element(g.$.rows[f]),h=b(h,f),p,f=e.clone(),k=0;k<h.length;k++)if(p=h[k],p.parentNode==g.$&&k>l){f.insertBefore(new CKEDITOR.dom.element(p));break}else p=null;p||g.append(f)}else{m=n=1;g=f.clone();g.insertAfter(f);g.append(f=
e.clone());p=b(h,k);for(l=0;l<p.length;l++)p[l].rowSpan++}f.appendBogus();e.$.rowSpan=n;f.$.rowSpan=m;1==n&&e.removeAttribute("rowSpan");1==m&&f.removeAttribute("rowSpan");return f}function v(c,d){var e=a(c);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(g),h=b(g,f.$.rowIndex,e),k=e.$.colSpan;if(1<k)f=Math.ceil(k/2),k=Math.floor(k/2);else{for(var k=f=1,l=[],m=0;m<g.length;m++){var n=g[m];l.push(n[h]);1<n[h].rowSpan&&(m+=n[h].rowSpan-
1)}for(g=0;g<l.length;g++)l[g].colSpan++}g=e.clone();g.insertAfter(e);g.appendBogus();e.$.colSpan=f;g.$.colSpan=k;1==f&&e.removeAttribute("colSpan");1==k&&g.removeAttribute("colSpan");return g}var r=/^(?:td|th)$/,q=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(b){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(a,c){var d=b.addCommand(a,c);b.addFeature(d)}var q=b.lang.table,r=CKEDITOR.tools.style.parse,y="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:y,contentTransformations:[[{element:"td",left:function(a){return a.styles.background&&
r.background(a.styles.background).color},right:function(a){a.styles["background-color"]=r.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))&&e(a)}}));h("rowInsertBefore",f({requiredContent:"table",exec:function(b){b=
b.getSelection();b=a(b);g(b,!0)}}));h("rowInsertAfter",f({requiredContent:"table",exec:function(b){b=b.getSelection();b=a(b);g(b)}}));h("columnDelete",f({requiredContent:"table",exec:function(a){a=a.getSelection();(a=k(a))&&e(a,!0)}}));h("columnInsertBefore",f({requiredContent:"table",exec:function(b){b=b.getSelection();b=a(b);m(b,!0)}}));h("columnInsertAfter",f({requiredContent:"table",exec:function(b){b=b.getSelection();b=a(b);m(b)}}));h("cellDelete",f({requiredContent:"table",exec:function(a){a=
a.getSelection();l(a)}}));h("cellMerge",f({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a,b){b.cell=n(a.getSelection());e(b.cell,!0)}}));h("cellMergeRight",f({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a,b){b.cell=n(a.getSelection(),"right");e(b.cell,!0)}}));h("cellMergeDown",f({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a,b){b.cell=n(a.getSelection(),"down");e(b.cell,!0)}}));h("cellVerticalSplit",
f({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){e(v(a.getSelection()))}}));h("cellHorizontalSplit",f({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){e(p(a.getSelection()))}}));h("cellInsertBefore",f({requiredContent:"table",exec:function(a){a=a.getSelection();c(a,!0)}}));h("cellInsertAfter",f({requiredContent:"table",exec:function(a){a=a.getSelection();c(a)}}));b.addMenuItems&&b.addMenuItems({tablecell:{label:q.cell.menu,group:"tablecell",
order:1,getItems:function(){var c=b.getSelection(),d=a(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:v(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,
tablecell_split_horizontal:p(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED};b.filter.check(y)&&(c.tablecell_properties=0<d.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);return c}},tablecell_insertBefore:{label:q.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:q.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:q.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:q.cell.merge,
group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:q.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:q.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:q.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:q.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:q.cell.title,
group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:q.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:q.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:q.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:q.row.deleteRow,
group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:q.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:q.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:q.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:q.column.deleteColumn,
group:"tablecolumn",command:"columnDelete",order:15}});b.contextMenu&&b.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:f,insertRow:g,insertColumn:m,getSelectedCells:a};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(a,g,d,f,h){a=a.$.rows;d=d||0;f="number"===typeof f?f:a.length-
1;h="number"===typeof h?h:-1;var m=-1,k=[];for(g=g||0;g<=f;g++){m++;!k[m]&&(k[m]=[]);for(var c=-1,l=d;l<=(-1===h?a[g].cells.length-1:h);l++){var e=a[g].cells[l];if(!e)break;for(c++;k[m][c];)c++;for(var b=isNaN(e.colSpan)?1:e.colSpan,e=isNaN(e.rowSpan)?1:e.rowSpan,n=0;n<e&&!(g+n>f);n++){k[m+n]||(k[m+n]=[]);for(var p=0;p<b;p++)k[m+n][c+p]=a[g].cells[l]}c+=b-1;if(-1!==h&&c>=h)break}}return k},function(){function a(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){if(a)return a=a.clone(),a.enlarge(CKEDITOR.ENLARGE_ELEMENT),(a=a.getEnclosedNode())&&a.is&&a.is(CKEDITOR.dtd.$tableContent)}function f(a){return(a=a.editable().findOne("."+u))&&a.getAscendant("table")}function h(a,b){var c=a.editable().find("."+u),d=a.editable().findOne("[data-"+t+"]"),e;a.fire("lockSnapshot");a.editable().removeClass(s);for(e=0;e<c.count();e++)c.getItem(e).removeClass(u);d&&d.data(t,!1);a.fire("unlockSnapshot");
b&&(x={active:!1},a.getSelection().isInTable()&&a.getSelection().reset())}function m(a,b){var c=[],d,e;for(e=0;e<b.length;e++)d=a.createRange(),d.setStartBefore(b[e]),d.setEndAfter(b[e]),c.push(d);a.getSelection().selectRanges(c)}function k(a){var b=a.editable().find("."+u);1>b.count()||(b=g(b.getItem(0),b.getItem(b.count()-1)),m(a,b))}function c(b,c,d){var e=A(b.getSelection(!0));c=!c.is("table")?c:null;var f;if(f=x.active)if(f=!x.first)if(!(f=c))f=b.getSelection().getRanges(),f=1<e.length||f[0]&&
!f[0].collapsed?!0:!1;if(f)x.first=c||e[0],x.dirty=c?!1:1!==e.length;else if(x.active&&c&&x.first.getAscendant("table").equals(c.getAscendant("table"))){e=g(x.first,c);if(!x.dirty&&1===e.length&&!a(d.data.getTarget()))return h(b,"mouseup"===d.name);x.dirty=!0;x.last=c;m(b,e)}}function l(a){var b=(a=a.editor||a.sender.editor)&&a.getSelection(),c=b&&b.getRanges()||[],d=c&&c[0].getEnclosedNode(),d=d&&d.type==CKEDITOR.NODE_ELEMENT&&d.is("img"),e;if(b&&(h(a),b.isInTable()&&b.isFake))if(d)a.getSelection().reset();
else if(!c[0]._getTableElement({table:1}).hasAttribute(w)){1===c.length&&(c[0]._getTableElement()&&c[0]._getTableElement().is("table"))&&(e=c[0]._getTableElement());e=A(b,e);a.fire("lockSnapshot");for(b=0;b<e.length;b++)e[b].addClass(u);0<e.length&&(a.editable().addClass(s),e[0].getAscendant("table").data(t,""));a.fire("unlockSnapshot")}}function e(a){return a.getAscendant("tr",!0).$.rowIndex}function b(d){function e(a){return!a.getAscendant("table",!0)&&a.getDocument().equals(l.document)}function g(a,
b,c,d){if("mousedown"===a.name&&(CKEDITOR.tools.getMouseButton(a)===CKEDITOR.MOUSE_BUTTON_LEFT||!d))return!0;if(b=a.name===(CKEDITOR.env.gecko?"mousedown":"mouseup"))if(b=!e(a.data.getTarget()))b=a.data.getTarget(),a=u,b=b.getAscendant({td:1,th:1},!0),b=!(b&&b.hasClass(a));return b}if(d.data.getTarget().getName&&!("mouseup"!==d.name&&a(d.data.getTarget()))){var l=d.editor||d.listenerData.editor,m=l.getSelection(1),n=f(l),p=d.data.getTarget(),q=p&&p.getAscendant({td:1,th:1},!0),p=p&&p.getAscendant("table",
!0),r={table:1,thead:1,tbody:1,tfoot:1,tr:1,td:1,th:1};if(!p||!p.hasAttribute(w)){g(d,m,n,p)&&h(l,!0);!x.active&&("mousedown"===d.name&&CKEDITOR.tools.getMouseButton(d)===CKEDITOR.MOUSE_BUTTON_LEFT&&p)&&(x={active:!0},CKEDITOR.document.on("mouseup",b,null,{editor:l}));if(q||p)c(l,q||p,d);"mouseup"===d.name&&(CKEDITOR.tools.getMouseButton(d)===CKEDITOR.MOUSE_BUTTON_LEFT&&(e(d.data.getTarget())||(!n||!p?0:n.equals(p)||n.contains(p)||p.contains(n)||n.getCommonAncestor(p).is(r)))&&k(l),x={active:!1},
CKEDITOR.document.removeListener("mouseup",b))}}}function n(a){var b=a.data.getTarget().getAscendant("table",!0);if(!b||!b.hasAttribute(w))if((b=a.data.getTarget().getAscendant({td:1,th:1},!0))&&!b.hasClass(u))a.cancel(),a.data.preventDefault()}function p(a,b){function c(a){a.cancel()}var d=a.getSelection(),e=d.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,q;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),q=a.on("selectionChange",c,null,null,0),k&&(p=h.scrollTop),g.selectNodeContents(m),g.select(),k&&(h.scrollTop=p),setTimeout(function(){n.remove();d.selectBookmarks(e);
q.removeListener();a.fire("unlockSnapshot");b&&(a.extractSelectedHtml(),a.fire("saveSnapshot"))},100))}function v(a){var b=a.editor||a.sender.editor,c=b.getSelection();c.isInTable()&&(c.getRanges()[0]._getTableElement({table:1}).hasAttribute(w)||p(b,"cut"===a.name))}function r(a){this._reset();a&&this.setSelectedCells(a)}function q(a,b,c){a.on("beforeCommandExec",function(c){-1!==CKEDITOR.tools.array.indexOf(b,c.data.name)&&(c.data.selectedCells=A(a.getSelection()))});a.on("afterCommandExec",function(d){-1!==
CKEDITOR.tools.array.indexOf(b,d.data.name)&&c(a,d.data)})}var u="cke_table-faked-selection",s=u+"-editor",t="cke-table-faked-selection-table",w="data-cke-tableselection-ignored",x={active:!1},y,A,z,D,E;r.prototype={};r.prototype._reset=function(){this.cells={first:null,last:null,all:[]};this.rows={first:null,last:null}};r.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")};r.prototype.getTableMap=function(){var a=z(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)};r.prototype._getTable=function(){return this.rows.first.getAscendant("table")};
r.prototype.insertRow=function(a,b,c){if("undefined"===typeof a)a=1;else if(0>=a)return;for(var d=this.cells.first.$.cellIndex,e=this.cells.last.$.cellIndex,f=c?[]:this.cells.all,g,h=0;h<a;h++)g=D(c?this.cells.all:f,b),g=CKEDITOR.tools.array.filter(g.find("td, th").toArray(),function(a){return c?!0:a.$.cellIndex>=d&&a.$.cellIndex<=e}),f=b?g.concat(f):f.concat(g);this.setSelectedCells(f)};r.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(E(d),b));this.setSelectedCells(d)};r.prototype.emptyCells=function(a){a=a||this.cells.all;for(var b=0;b<a.length;b++)a[b].setHtml("")};r.prototype._arraySortByDOMOrder=function(a){a.sort(function(a,b){return a.getPosition(b)&CKEDITOR.POSITION_PRECEDING?-1:1})};var F={onPaste:function(a){function b(a){return Math.max.apply(null,CKEDITOR.tools.array.map(a,function(a){return a.length},0))}
function c(a){var b=e.createRange();b.selectNodeContents(a);b.select()}var e=a.editor,f=e.getSelection(),h=f.getRanges(),h=h.length&&h[0]._getTableElement({table:1});if(!h||!h.hasAttribute(w)){var k=A(f),h=this.findTableInPastedContent(e,a.data.dataValue),l=f.isInTable(!0)&&this.isBoundarySelection(f),n,p;if(k.length&&!(1===k.length&&!d(f.getRanges()[0])&&!l||l&&!h))k=k[0].getAscendant("table"),n=new r(A(f,k)),e.once("afterPaste",function(){var a;if(p){a=new CKEDITOR.dom.element(p[0][0]);var b=p[p.length-
1];a=g(a,new CKEDITOR.dom.element(b[b.length-1]))}else a=n.cells.all;m(e,a)}),h?(a.stop(),l?(n.insertRow(1,1===l,!0),f.selectElement(n.rows.first)):(n.emptyCells(),m(e,n.cells.all)),a=n.getTableMap(),p=CKEDITOR.tools.buildTableMap(h),n.insertRow(p.length-a.length),n.insertColumn(b(p)-b(a)),a=n.getTableMap(),this.pasteTable(n,a,p),e.fire("saveSnapshot"),setTimeout(function(){e.fire("afterPaste")},0)):(c(n.cells.first),e.once("afterPaste",function(){e.fire("lockSnapshot");n.emptyCells(n.cells.all.slice(1));
m(e,n.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,d=new CKEDITOR.dom.element("body");c||(c=new CKEDITOR.htmlDataProcessor(a));d.setHtml(c.toHtml(b),{fixForBody:!1});return 1<d.getChildCount()?null:d.findOne("table")},
pasteTable:function(a,b,c){var d,e=z(a.cells.first),f=a._getTable(),g={},h,k,l,m;for(l=0;l<c.length;l++){h=new CKEDITOR.dom.element(f.$.rows[a.rows.first.$.rowIndex+l]);for(m=0;m<c[l].length;m++)if(k=new CKEDITOR.dom.element(c[l][m]),d=b[l]&&b[l][m]?new CKEDITOR.dom.element(b[l][m]):null,k&&!k.getCustomData("processed")){if(d&&d.getParent())k.replace(d);else if(0===m||c[l][m-1])(d=0!==m?new CKEDITOR.dom.element(c[l][m-1]):null)&&h.equals(d.getParent())?k.insertAfter(d):0<e?h.$.cells[e]?k.insertAfter(new CKEDITOR.dom.element(h.$.cells[e])):
h.append(k):h.append(k,!0);CKEDITOR.dom.element.setMarker(g,k,"processed",!0)}else k.getCustomData("processed")&&d&&d.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,
d){if(!d.length)return null;var f=a.createRange(),g=CKEDITOR.dom.range.mergeRanges(d);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(e)){for(var l=k.getAscendant("table",!0),m=k.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,l),n=!1;m&&(k.contains(m)||!m.is||!m.is("td","th"));)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 d={37:1,38:1,39:1,40:1,8:1,46:1,13:1},e=CKEDITOR.tools.extend({table:1},CKEDITOR.dtd.$tableContent);delete e.td;delete e.th;return function(e){var f=e.data.getKey(),g=e.data.getKeystroke(),h,k=37===f||38==f,l,m,n;if(d[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)e.data.preventDefault(),e.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(e=0;e<l.length;e++)b(l[e]);(e=c(m,l))?l=e: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 d=a.getSelection(),e=c.data.$.charCode||13===c.data.getKey(),f;if(!a.readOnly&&d&&d.isInTable()&&d.isFake&&e&&!(c.data.getKeystroke()&CKEDITOR.CTRL)){c=d.getRanges();e=c[0].getEnclosedNode().getAscendant({td:1,th:1},!0);for(f=0;f<c.length;f++)b(c[f]);e&&(c[0].moveToElementEditablePosition(e),d.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(){y=CKEDITOR.plugins.tabletools;A=y.getSelectedCells;z=y.getCellColIndex;D=y.insertRow;E=y.insertColumn;CKEDITOR.document.appendStyleSheet(this.path+"styles/tableselection.css")},init:function(a){this.isSupportedEnvironment()&&(a.addContentsCss&&a.addContentsCss(this.path+"styles/tableselection.css"),a.on("contentDom",function(){var c=a.editable(),d=c.isInline()?c:a.document,e={editor:a};c.attachListener(d,
"mousedown",b,null,e);c.attachListener(d,"mousemove",b,null,e);c.attachListener(d,"mouseup",b,null,e);c.attachListener(c,"dragstart",n);c.attachListener(a,"selectionCheck",l);CKEDITOR.plugins.tableselection.keyboardIntegration(a);CKEDITOR.plugins.clipboard&&!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&(c.attachListener(c,"cut",v),c.attachListener(c,"copy",v))}),a.on("paste",F.onPaste,F),q(a,"rowInsertBefore rowInsertAfter columnInsertBefore columnInsertAfter cellInsertBefore cellInsertAfter".split(" "),
function(a,b){m(a,b.selectedCells)}),q(a,["cellMerge","cellMergeRight","cellMergeDown"],function(a,b){m(a,[b.commandData.cell])}),q(a,["cellDelete"],function(a){h(a,!0)}))}})}(),function(){CKEDITOR.plugins.add("templates",{requires:"dialog",init:function(a){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js"));a.addCommand("templates",new CKEDITOR.dialogCommand("templates"));a.ui.addButton&&a.ui.addButton("Templates",{label:a.lang.templates.button,command:"templates",
toolbar:"doctools,10"})}});var a={},g={};CKEDITOR.addTemplates=function(d,f){a[d]=f};CKEDITOR.getTemplates=function(d){return a[d]};CKEDITOR.loadTemplates=function(a,f){for(var h=[],m=0,k=a.length;m<k;m++)g[a[m]]||(h.push(a[m]),g[a[m]]=1);h.length?CKEDITOR.scriptLoader.load(h,f):setTimeout(f,0)}}(),CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],CKEDITOR.config.templates_replaceContent=!0,"use strict",function(){var a=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,
CKEDITOR.CTRL+CKEDITOR.SHIFT+90],g={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(c){function f(a){b.enabled&&!1!==a.data.command.canUndo&&b.save()}function e(){b.enabled=c.readOnly?!1:"wysiwyg"==c.mode;b.onChange()}var b=c.undoManager=new d(c),g=b.editingHandler=new m(b),h=c.addCommand("undo",{exec:function(){b.undo()&&(c.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),k=c.addCommand("redo",{exec:function(){b.redo()&&(c.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,
canUndo:!1});c.setKeystroke([[a[0],"undo"],[a[1],"redo"],[a[2],"redo"]]);b.onChange=function(){h.setState(b.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);k.setState(b.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};c.on("beforeCommandExec",f);c.on("afterCommandExec",f);c.on("saveSnapshot",function(a){b.save(a.data&&a.data.contentOnly)});c.on("contentDom",g.attachListeners,g);c.on("instanceReady",function(){c.fire("saveSnapshot")});c.on("beforeModeUnload",function(){"wysiwyg"==
c.mode&&b.save(!0)});c.on("mode",e);c.on("readOnly",e);c.ui.addButton&&(c.ui.addButton("Undo",{label:c.lang.undo.undo,command:"undo",toolbar:"undo,10"}),c.ui.addButton("Redo",{label:c.lang.undo.redo,command:"redo",toolbar:"undo,20"}));c.resetUndo=function(){b.reset();c.fire("saveSnapshot")};c.on("updateSnapshot",function(){b.currentImage&&b.update()});c.on("lockSnapshot",function(a){a=a.data;b.lock(a&&a.dontUpdate,a&&a.forceUpdate)});c.on("unlockSnapshot",b.unlock,b)}});CKEDITOR.plugins.undo={};var d=
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.editor=a;this.reset()};d.prototype={type:function(a,f){var e=d.getKeyGroup(a),b=this.strokesRecorded[e]+1;f=f||b>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());f?(b=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[e]=b;this.previousKeyGroup=
e},keyGroupChanged:function(a){return d.getKeyGroup(a)!=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,d,e){var b=this.editor;if(this.locked||"ready"!=b.status||
"wysiwyg"!=b.mode)return!1;var g=b.editable();if(!g||"ready"!=g.status)return!1;g=this.snapshots;d||(d=new f(b));if(!1===d.contents)return!1;if(this.currentImage)if(d.equalsContent(this.currentImage)){if(a||d.equalsSelection(this.currentImage))return!1}else!1!==e&&b.fire("change");g.splice(this.index+1,g.length-this.index-1);g.length==this.limit&&g.shift();this.index=g.push(d)-1;this.currentImage=d;!1!==e&&this.refreshState();return!0},restoreImage:function(a){var d=this.editor,e;a.bookmarks&&(d.focus(),
e=d.getSelection());this.locked={level:999};this.editor.loadSnapshot(a.contents);a.bookmarks?e.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(e=this.editor.document.getBody().$.createTextRange(),e.collapse(!0),e.select());this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();d.fire("change")},getNextImage:function(a){var d=this.snapshots,e=this.currentImage,b;if(e)if(a)for(b=this.index-1;0<=b;b--){if(a=d[b],!e.equalsContent(a))return a.index=
b,a}else for(b=this.index+1;b<d.length;b++)if(a=d[b],!e.equalsContent(a))return a.index=b,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 d=this.index,e=this.snapshots;0<d&&this.currentImage.equalsContent(e[d-1]);)d-=1;e.splice(d,this.index-d+1,a);this.index=d;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return!1;var d=this.snapshots,e=d[d.length-1];return e.equalsContent(a)&&!e.equalsSelection(a)?(this.currentImage=d[d.length-1]=a,!0):!1},lock:function(a,d){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var e=null;if(d)e=!0;else{var b=new f(this.editor,
!0);this.currentImage&&this.currentImage.equalsContent(b)&&(e=b)}this.locked={update:e,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 d=new f(this.editor,!0);a.equalsContent(d)||this.update()}}}};d.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};d.keyGroups={PRINTABLE:0,FUNCTIONAL:1};d.isNavigationKey=function(a){return!!d.navigationKeyCodes[a]};d.getKeyGroup=function(a){var f=d.keyGroups;
return g[a]?f.FUNCTIONAL:f.PRINTABLE};d.getOppositeKeyGroup=function(a){var f=d.keyGroups;return a==f.FUNCTIONAL?f.PRINTABLE:f.FUNCTIONAL};d.ieFunctionalKeysBug=function(a){return CKEDITOR.env.ie&&d.getKeyGroup(a)==d.keyGroups.FUNCTIONAL};var f=CKEDITOR.plugins.undo.Image=function(a,d){this.editor=a;a.fire("beforeUndoImage");var e=a.getSnapshot();CKEDITOR.env.ie&&e&&(e=e.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=e;d||(this.bookmarks=(e=e&&a.getSelection())&&e.createBookmarks2(!0));a.fire("afterUndoImage")},
h=/\b(?:href|src|name)="[^"]*?"/gi;f.prototype={equalsContent:function(a){var d=this.contents;a=a.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks))d=d.replace(h,""),a=a.replace(h,"");return d!=a?!1:!0},equalsSelection:function(a){var d=this.bookmarks;a=a.bookmarks;if(d||a){if(!d||!a||d.length!=a.length)return!1;for(var e=0;e<d.length;e++){var b=d[e],f=a[e];if(b.startOffset!=f.startOffset||b.endOffset!=f.endOffset||!CKEDITOR.tools.arrayCompare(b.start,f.start)||!CKEDITOR.tools.arrayCompare(b.end,
f.end))return!1}}return!0}};var m=CKEDITOR.plugins.undo.NativeEditingHandler=function(a){this.undoManager=a;this.ignoreInputEvent=!1;this.keyEventsStack=new k;this.lastKeydownImage=null};m.prototype={onKeydown:function(c){var g=c.data.getKey();if(229!==g)if(-1<CKEDITOR.tools.indexOf(a,c.data.getKeystroke()))c.data.preventDefault();else if(this.keyEventsStack.cleanUp(c),c=this.undoManager,this.keyEventsStack.getLast(g)||this.keyEventsStack.push(g),this.lastKeydownImage=new f(c.editor),d.isNavigationKey(g)||
this.undoManager.keyGroupChanged(g))if(c.strokesRecorded[0]||c.strokesRecorded[1])c.save(!1,this.lastKeydownImage,!1),c.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(a){var g=this.undoManager;
a=a.data.getKey();var e=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a);if(!d.ieFunctionalKeysBug(a)||!this.lastKeydownImage||!this.lastKeydownImage.equalsContent(new f(g.editor,!0)))if(0<e)g.type(a);else if(d.isNavigationKey(a))this.onNavigationKey(!0)},onNavigationKey:function(a){var d=this.undoManager;(a||!d.save(!0,null,!1))&&d.updateSelection(new f(d.editor));d.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},activateInputEventListener:function(){this.ignoreInputEvent=
!1},attachListeners:function(){var a=this.undoManager.editor,f=a.editable(),e=this;f.attachListener(f,"keydown",function(a){e.onKeydown(a);if(d.ieFunctionalKeysBug(a.data.getKey()))e.onInput()},null,null,999);f.attachListener(f,CKEDITOR.env.ie?"keypress":"input",e.onInput,e,null,999);f.attachListener(f,"keyup",e.onKeyup,e,null,999);f.attachListener(f,"paste",e.ignoreInputEventListener,e,null,999);f.attachListener(f,"drop",e.ignoreInputEventListener,e,null,999);a.on("afterPaste",e.activateInputEventListener,
e,null,999);f.attachListener(f.isInline()?f:a.document.getDocumentElement(),"click",function(){e.onNavigationKey()},null,null,999);f.attachListener(this.undoManager.editor,"blur",function(){e.keyEventsStack.remove(9)},null,null,999)}};var k=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};k.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 d=this.stack.length;d--;)if(this.stack[d].keyCode==
a)return d;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,d=0;a--;)d+=this.stack[a].inputs;return d},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 a(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 c=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:c,inline:c.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 d=CKEDITOR.tools.bind(this.queryViewport,this),f=CKEDITOR.tools.bind(this.hideVisible,this),g=CKEDITOR.tools.bind(this.removeAll,this);c.attachListener(this.winTop,"resize",d);c.attachListener(this.winTop,"scroll",d);c.attachListener(this.winTop,"resize",f);c.attachListener(this.win,"scroll",f);c.attachListener(this.inline?
c: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);c.attachListener(a,"resize",d);c.attachListener(a,"mode",g);a.on("destroy",g);this.lineTpl=(new CKEDITOR.template(k)).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},m,this.lineStyle,!0)),
tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},h,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},h,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,!0))})}function f(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&!(c[a.getComputedStyle("float")]||c[a.getAttribute("align")])&&!l[a.getComputedStyle("position")]}
CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;a.prototype={start:function(a){var b=this,c=this.editor,d=this.doc,f,g,h,k,l=CKEDITOR.tools.eventsBuffer(50,function(){if(!(c.readOnly||"wysiwyg"!=c.mode))if(b.relations={},(g=d.$.elementFromPoint(h,k))&&g.nodeType)f=new CKEDITOR.dom.element(g),b.traverseSearch(f),isNaN(h+k)||b.pixelSearch(f,h,k),a&&a(b.relations,h,k)});this.listener=this.editable.attachListener(this.target,"mousemove",
function(a){h=a.data.$.clientX;k=a.data.$.clientY;l.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){l.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 c=this.editor.createRange();c.moveToPosition(this.relations[b.uid].element,
a[b.type]);return c}}(),store:function(){function a(b,c,d){var e=b.getUniqueId();e in d?d[e].type|=c:d[e]={element:b,type:c}}return function(b,c){var d;if(c&CKEDITOR.LINEUTILS_AFTER&&f(d=b.getNext())&&d.isVisible())a(d,CKEDITOR.LINEUTILS_BEFORE,this.relations),c^=CKEDITOR.LINEUTILS_AFTER;if(c&CKEDITOR.LINEUTILS_INSIDE&&f(d=b.getFirst())&&d.isVisible())a(d,CKEDITOR.LINEUTILS_BEFORE,this.relations),c^=CKEDITOR.LINEUTILS_INSIDE;a(b,c,this.relations)}}(),traverseSearch:function(a){var b,c,d;do if(d=a.$["data-cke-expando"],
!(d&&d in this.relations)){if(a.equals(this.editable))break;if(f(a))for(b in this.lookups)(c=this.lookups[b](a))&&this.store(a,c)}while(!(a&&a.type==CKEDITOR.NODE_ELEMENT&&"true"==a.getAttribute("contenteditable"))&&(a=a.getParent()))},pixelSearch:function(){function a(c,d,e,g,h){for(var k=0,l;h(e);){e+=g;if(25==++k)break;if(l=this.doc.$.elementFromPoint(d,e))if(l==c)k=0;else if(b(c,l)&&(k=0,f(l=new CKEDITOR.dom.element(l))))return l}}var b=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a,b){return a.contains(b)}:
function(a,b){return!!(a.compareDocumentPosition(b)&16)};return function(b,c,d){var g=this.win.getViewPaneSize().height,h=a.call(this,b.$,c,d,-1,function(a){return 0<a});c=a.call(this,b.$,c,d,1,function(a){return a<g});if(h)for(this.traverseSearch(h);!h.getParent().equals(b);)h=h.getParent();if(c)for(this.traverseSearch(c);!c.getParent().equals(b);)c=c.getParent();for(;h||c;){h&&(h=h.getNext(f));if(!h||h.equals(c))break;this.traverseSearch(h);c&&(c=c.getPrevious(f));if(!c||c.equals(h))break;this.traverseSearch(c)}}}(),
greedySearch:function(){this.relations={};for(var a=this.editable.getElementsByTag("*"),b=0,c,d,g;c=a.getItem(b++);)if(!c.equals(this.editable)&&c.type==CKEDITOR.NODE_ELEMENT&&(c.hasAttribute("contenteditable")||!c.isReadOnly())&&f(c)&&c.isVisible())for(g in this.lookups)(d=this.lookups[g](c))&&this.store(c,d);return this.relations}};g.prototype={locate:function(){function a(b,c){var d=b.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return d&&f(d)?(b.siblingRect=d.getClientRect(),
c==CKEDITOR.LINEUTILS_BEFORE?(b.siblingRect.bottom+b.elementRect.top)/2:(b.elementRect.bottom+b.siblingRect.top)/2):c==CKEDITOR.LINEUTILS_BEFORE?b.elementRect.top:b.elementRect.bottom}return function(b){var c;this.locations={};for(var d in b)c=b[d],c.elementRect=c.element.getClientRect(),c.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(d,CKEDITOR.LINEUTILS_BEFORE,a(c,CKEDITOR.LINEUTILS_BEFORE)),c.type&CKEDITOR.LINEUTILS_AFTER&&this.store(d,CKEDITOR.LINEUTILS_AFTER,a(c,CKEDITOR.LINEUTILS_AFTER)),c.type&
CKEDITOR.LINEUTILS_INSIDE&&this.store(d,CKEDITOR.LINEUTILS_INSIDE,(c.elementRect.top+c.elementRect.bottom)/2);return this.locations}}(),sort:function(){var a,b,c,d;return function(f,g){a=this.locations;b=[];for(var h in a)for(var k in a[h])if(c=Math.abs(f-a[h][k]),b.length){for(d=0;d<b.length;d++)if(c<b[d].dist){b.splice(d,0,{uid:+h,type:k,dist:c});break}d==b.length&&b.push({uid:+h,type:k,dist:c})}else b.push({uid:+h,type:k,dist:c});return"undefined"!=typeof g?b.slice(0,g):b}}(),store:function(a,
b,c){this.locations[a]||(this.locations[a]={});this.locations[a][b]=c}};var h={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},k='\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';
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 c,d,f;if(c=this.getStyle(a.uid,
a.type)){for(f in this.visible)if(this.visible[f].getCustomData("hash")!==this.hash){d=this.visible[f];break}if(!d)for(f in this.hidden)if(this.hidden[f].getCustomData("hash")!==this.hash){this.showLine(d=this.hidden[f]);break}d||this.showLine(d=this.addLine());d.setCustomData("hash",this.hash);this.visible[d.getUniqueId()]=d;d.setStyles(c);b&&b(d)}},getStyle:function(a,b){var c=this.relations[a],d=this.locations[a][b],f={};f.width=c.siblingRect?Math.max(c.siblingRect.width,c.elementRect.width):c.elementRect.width;
f.top=this.inline?d+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+d;if(f.top-this.winTopScroll.y<this.rect.top||f.top-this.winTopScroll.y>this.rect.bottom)return!1;if(this.inline)f.left=c.elementRect.left-this.rect.relativeX;else if(0<c.elementRect.left?f.left=this.rect.left+c.elementRect.left:(f.width+=c.elementRect.left,f.left=this.rect.left),0<(c=f.left+f.width-(this.rect.left+this.winPane.width)))f.width-=c;f.left+=this.winTopScroll.x;for(var g in f)f[g]=CKEDITOR.tools.cssLength(f[g]);
return f},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(),c=this.container.getComputedStyle("position");a.relativeX=a.relativeY=0;"static"!=c&&(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 c={left:1,right:1,center:1},l={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:a,locator:g,liner:d}}(),function(){function a(a){return a.getName&&!a.hasAttribute("data-cke-temp")}
CKEDITOR.plugins.add("widgetselection",{init:function(a){if(CKEDITOR.env.webkit){var d=CKEDITOR.plugins.widgetselection;a.on("contentDom",function(a){a=a.editor;var g=a.editable();g.attachListener(g,"keydown",function(a){a.data.getKeystroke()==CKEDITOR.CTRL+65&&CKEDITOR.tools.setTimeout(function(){d.addFillers(g)||d.removeFillers(g)},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 f=g.getFirst(a),h=g.getLast(a);f&&(f.type==CKEDITOR.NODE_ELEMENT&&!f.isEditable())&&(this.startFiller=this.createFiller(),g.append(this.startFiller,1));h&&(h.type==CKEDITOR.NODE_ELEMENT&&!h.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(a){if(this.hasFiller(a)&&!this.isWholeContentSelected(a)){var d=a.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dstart]"),f=a.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dend]");this.startFiller&&d&&this.startFiller.equals(d)?this.removeFiller(this.startFiller,a):this.startFiller=d;this.endFiller&&
f&&this.endFiller.equals(f)?this.removeFiller(this.endFiller,a):this.endFiller=f}},cleanPasteData:function(a){a&&a.length&&(a=a.replace(this.createFillerRegex(),"").replace(this.createFillerRegex(!0),""));return a},isWholeContentSelected:function(a){var d=a.editor.getSelection().getRanges()[0];return d&&(!d||!d.collapsed)?(d=d.clone(),d.enlarge(CKEDITOR.ENLARGE_ELEMENT),!(!d||!a||!d.startContainer||!d.endContainer||!(0===d.startOffset&&d.endOffset===a.getChildCount()&&d.startContainer.equals(a)&&
d.endContainer.equals(a)))):!1},hasFiller:function(a){return 0<a.find(this.fillerTagName+"["+this.fillerAttribute+"]").count()},createFiller:function(a){var d=new CKEDITOR.dom.element(this.fillerTagName);d.setHtml(this.fillerContent);d.setAttribute(this.fillerAttribute,a?"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(a,d){if(a){var f=
d.editor,h=d.editor.getSelection().getRanges()[0].startPath(),m=f.createRange(),k,c;h.contains(a)&&(k=a.getHtml(),c=!0);h="start"==a.getAttribute(this.fillerAttribute);a.remove();k&&0<k.length&&k!=this.fillerContent?(d.insertHtmlIntoRange(k,f.getSelection().getRanges()[0]),m.setStartAt(d.getChild(d.getChildCount()-1),CKEDITOR.POSITION_BEFORE_END),f.getSelection().selectRanges([m])):c&&(h?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(a){var d=this.createFiller(a).getOuterHtml().replace(/style="[^"]*"/gi,'style\x3d"[^"]*"').replace(/>[^<]*</gi,"\x3e[^\x3c]*\x3c");return RegExp((!a?"^":"")+d+(a?"$":""))},addSelectAllIntegration:function(a){var d=this;a.editable().attachListener(a,"beforeCommandExec",function(f){var h=a.editable();"selectAll"==f.data.name&&h&&d.addFillers(h)},null,null,9999)}}}(),"use strict",function(){function a(a){this.editor=a;this.registered=
{};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};E(this);D(this);this.on("checkWidgets",k);this.editor.on("contentDomInvalidated",this.checkWidgets,this);z(this);x(this);y(this);w(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);da(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;X(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 f(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)),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 h(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=q;for(var l=f;l=l.getParent();)if(h(l)){h=!0;break a}h=!1}h=!h&&b.contains(f)}h&&(f.addClass("cke_widget_new"),c.push(this.initOn(f.getFirst(g.isDomWidgetElement))))}}a&&(a.focusInited&&1==c.length)&&c[0].focus()}}}function c(a){if("undefined"!=
typeof a.attributes&&a.attributes["data-widget"]){var b=l(a),c=e(a),d=!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;"),d=!0);c&&(c.value&&c.value.match(/\s$/g))&&(c.parent.attributes["data-cke-white-space-last"]=1,c.value=c.value.replace(/\s$/g,"\x26nbsp;"),d=!0);d&&(a.attributes["data-cke-widget-white-space"]=1)}}function l(a){return a.find(function(a){return 3===a.type},!0).shift()}function e(a){return a.find(function(a){return 3===
a.type},!0).pop()}function b(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 p(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 v(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-=1,a.remove());d.children.length||d.remove();return v(e,b,c)}}a.add(c,b)}function r(a,b){return"boolean"==typeof a.inline?a.inline:!!CKEDITOR.dtd.$inline[b]}function q(a){return a.hasAttribute("data-cke-temp")}function u(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 s(a){a.contextMenu&&
a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,!0))return b.fire("contextMenu",{})})}function t(a,b){return CKEDITOR.tools.trim(b)}function w(a){var b=a.editor,c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;g.isDomDragHandler(d)&&(d=a.getByElement(d),c.data.dataTransfer.setData("cke/widget-id",d.id),b.focus(),d.focus())});b.on("drop",function(c){var d=c.data.dataTransfer,e=d.getData("cke/widget-id"),f=d.getTransferType(b),d=b.createRange();if(""!==
e&&f===CKEDITOR.DATA_TRANSFER_CROSS_EDITORS)c.cancel();else if(!(""===e||f!=CKEDITOR.DATA_TRANSFER_INTERNAL))if(e=a.instances[e])d.setStartBefore(e.wrapper),d.setEndAfter(e.wrapper),c.data.dragRange=d,delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount,delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount,c.data.dataTransfer.setData("text/html",b.editable().getHtmlFromRange(d).getHtml()),b.widgets.destroy(e,!0)});b.on("contentDom",function(){var d=b.editable();CKEDITOR.tools.extend(a,
{finder:new c.finder(b,{lookups:{"default":function(b){if(!b.is(CKEDITOR.dtd.$listItem)&&b.is(CKEDITOR.dtd.$block)&&!g.isDomNestedEditable(b)&&!a._.draggedWidget.wrapper.contains(b)){var c=g.getNestedEditable(d,b);if(c){b=a._.draggedWidget;if(a.getByElement(c)==b)return;c=CKEDITOR.filter.instances[c.data("cke-filter")];b=b.requiredContent;if(c&&b&&!c.check(b))return}return CKEDITOR.LINEUTILS_BEFORE|CKEDITOR.LINEUTILS_AFTER}}}}),locator:new c.locator(b),liner:new c.liner(b,{lineStyle:{cursor:"move !important",
"border-top-color":"#666"},tipLeftStyle:{"border-left-color":"#666"},tipRightStyle:{"border-right-color":"#666"}})},!0)})}function x(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 y(a){a.editor.on("key",function(b){var c=a.focused,d=a.widgetHoldingFocusedEditable,e;c?e=c.fire("key",{keyCode:b.data.keyCode}):d&&(c=b.data.keyCode,b=d.focusedEditable,c==CKEDITOR.CTRL+65?(c=b.getBogus(),d=d.editor.createRange(),d.selectNodeContents(b),c&&d.setEndAt(c,CKEDITOR.POSITION_BEFORE_START),d.select(),e=!1):8==c||46==c?(e=d.editor.getSelection().getRanges(),d=e[0],e=!(1==e.length&&d.collapsed&&d.checkBoundaryOfElement(b,CKEDITOR[8==c?"START":"END"]))):e=void 0);return e},null,
null,1)}function A(a){function b(c){a.focused&&I(a.focused,"cut"==c.name)}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,"copy",b);a.attachListener(a,"cut",b)})}function z(a){var b=a.editor;b.on("selectionCheck",function(){a.fire("checkSelection")});a.on("checkSelection",a.checkSelection,a);b.on("selectionChange",function(c){var d=(c=g.getNestedEditable(b.editable(),c.data.selection.getStartElement()))&&a.getByElement(c),e=a.widgetHoldingFocusedEditable;if(e){if(e!==
d||!e.focusedEditable.equals(c))u(a,e,null),d&&c&&u(a,d,c)}else d&&c&&u(a,d,c)});b.on("dataReady",function(){F(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&m(a,b);(b=a.widgetHoldingFocusedEditable)&&u(a,b,null)})}function D(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var d=CKEDITOR.tools.getNextNumber(),f=[];b.data.downcastingSessionId=d;c[d]=f;b.data.dataValue.forEach(function(b){var c=b.attributes,d;if("data-cke-widget-white-space"in c){d=l(b);var h=e(b);d.parent.attributes["data-cke-white-space-first"]&&
(d.value=d.value.replace(/^ /g," "));h.parent.attributes["data-cke-white-space-last"]&&(h.value=h.value.replace(/ $/g," "))}if("data-cke-widget-id"in c){if(c=a.instances[c["data-cke-widget-id"]])d=b.getFirst(g.isParserWidgetElement),f.push({wrapper:b,element:d,widget:c,editables:{}}),"1"!=d.attributes["data-cke-widget-keep-attr"]&&delete d.attributes["data-widget"]}else if("data-cke-widget-editable"in c)return 0<f.length&&(f[f.length-1].editables[c["data-cke-widget-editable"]]=b),!1},CKEDITOR.NODE_ELEMENT,
!0)},null,null,8);b.on("toDataFormat",function(a){if(a.data.downcastingSessionId){a=c[a.data.downcastingSessionId];for(var b,d,e,f,g,h;b=a.shift();){d=b.widget;e=b.element;f=d._.downcastFn&&d._.downcastFn.call(d,e);for(h in b.editables)g=b.editables[h],delete g.attributes.contenteditable,g.setHtml(d.editables[h].getData());f||(f=e);b.wrapper.replaceWith(f)}}},null,null,13);b.on("contentDomUnload",function(){a.destroyAll(!0)})}function E(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(aa,t);if(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 F(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 H(a,b,c){var d=0;b=L(b);var e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)c?e[f]||(d=e[f]=1):e[f]&&(delete e[f],
d=1);d&&a.setData("classes",e)}}function J(a){a.cancel()}function I(a,b){var c=a.editor,d=c.document,e=CKEDITOR.env.edge&&16<=CKEDITOR.env.version;if(!d.getById("cke_copybin")){var f=(c.blockless||CKEDITOR.env.ie)&&!e?"span":"div",e=d.createElement(f),g=d.createElement(f),f=CKEDITOR.env.ie&&9>CKEDITOR.env.version;g.setAttributes({id:"cke_copybin","data-cke-temp":"1"});e.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});e.setStyle("ltr"==c.config.contentsLangDirection?"left":
"right","-5000px");var h=c.createRange();h.setStartBefore(a.wrapper);h.setEndAfter(a.wrapper);e.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e\x3c/span\x3e'+c.editable().getHtmlFromRange(h).getHtml()+'\x3cspan data-cke-copybin-end\x3d"1"\x3e\x3c/span\x3e');c.fire("saveSnapshot");c.fire("lockSnapshot");g.append(e);c.editable().append(g);var k=c.on("selectionChange",J,null,null,0),l=a.repository.on("checkSelection",J,null,null,0);if(f)var m=d.getDocumentElement().$,n=m.scrollTop;h=c.createRange();
h.selectNodeContents(e);h.select();f&&(m.scrollTop=n);setTimeout(function(){b||a.focus();g.remove();k.removeListener();l.removeListener();c.fire("unlockSnapshot");b&&!c.readOnly&&(a.repository.del(a),c.fire("saveSnapshot"))},100)}}function L(a){return(a=(a=a.getDefinition().attributes)&&a["class"])?a.split(/\s+/):null}function C(){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 G(){CKEDITOR.env.gecko&&
this.editor.unlockSelection();CKEDITOR.env.webkit||(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function O(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 Q(a){a.on("data",function(){if(a.wrapper){var b=this.getLabel?this.getLabel():this.editor.lang.widget.label.replace(/%1/,this.pathName||this.element.getName());a.wrapper.setAttribute("role","region");a.wrapper.setAttribute("aria-label",
b)}},null,null,9999)}function P(a){if(a.draggable){var b=a.editor,c=a.wrapper.getLast(g.isDomDragHandlerContainer),d;c?d=c.findOne("img"):(c=new CKEDITOR.dom.element("span",b.document),c.setAttributes({"class":"cke_reset cke_widget_drag_handler_container",style:"background:rgba(220,220,220,0.5);background-image:url("+b.plugins.widget.path+"images/handle.png)"}),d=new CKEDITOR.dom.element("img",b.document),d.setAttributes({"class":"cke_reset cke_widget_drag_handler","data-cke-widget-drag-handler":"1",
src:CKEDITOR.tools.transparentImageData,width:R,title:b.lang.widget.move,height:R,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",K,a),CKEDITOR.env.ie&&9>CKEDITOR.env.version))d.on("dragstart",function(a){a.data.preventDefault(!0)});
a.dragHandlerContainer=c}}function K(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 V(a){var b,c,d=a.editables;a.editables={};if(a.editables)for(b in d)c=d[b],a.initEditable(b,"string"==typeof c?{selector:c}:c)}function S(a){if(a.mask){var b=a.wrapper.findOne(".cke_widget_mask");b||(b=new CKEDITOR.dom.element("img",a.editor.document),b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"}),a.wrapper.append(b));a.mask=b}}function Y(a){if(a.parts){var b={},c,d;for(d in a.parts)c=a.wrapper.findOne(a.parts[d]),b[d]=c;a.parts=b}}
function da(a,b){M(a);Y(a);V(a);S(a);P(a);O(a);Q(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){I(a,b==CKEDITOR.CTRL+88);return}if(b in U||CKEDITOR.CTRL&b||CKEDITOR.ALT&
b)return}return!1},null,null,999);a.on("doubleclick",function(b){a.edit()&&b.cancel()});if(b.data)a.on("data",b.data);if(b.edit)a.on("edit",b.edit)}function M(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function X(a){a.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(a.data)))}function Z(){function a(){}function b(a,c,d){return!d||!this.checkElement(a)?!1:(a=d.widgets.getByElement(a,!0))&&a.checkStyleActive(this)}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,
c,e=!1;if(!(a instanceof CKEDITOR.editor))return!1;c=a.elementPath();if(this.checkApplicable(c,a))for(var f=0,g=this.group.length;f<g;f++){b=d[this.widget][this.group[f]];for(var h=0;h<b.length;h++)b[h]!==this&&b[h].checkActive(c,a)&&(a.widgets.focused.removeStyle(b[h]),e=!0)}return e},checkActive:function(a,b){return this.checkElementMatch(a.lastElement,0,b)},checkApplicable:function(a,b){return!(b instanceof CKEDITOR.editor)?!1:this.checkElement(a.lastElement)},checkElementMatch:b,checkElementRemovable:b,
checkElement:function(a){return!g.isDomWidgetWrapper(a)?!1:(a=a.getFirst(g.isDomWidgetElement))&&a.data("widget")==this.widget},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})}var R=15;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:"+
R+"px;height:0;display:none;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover\x3e.cke_widget_drag_handler_container{height:"+R+"px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:"+R+"px;height:"+R+"px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}"),Z())},
beforeInit:function(b){void 0!==CKEDITOR.document.$.querySelectorAll&&(b.widgets=new a(b))},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"});s(a)}}});a.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(a,b){b=CKEDITOR.tools.prototypedCopy(b);b.name=a;b._=b._||{};this.editor.fire("widgetDefinition",
b);b.template&&(b.template=new CKEDITOR.template(b.template));f(this.editor,b);h(this,b);return this.registered[a]=b},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=F(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;if(!(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&&u(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){if((a=a.getFirst())&&g.isDomWidgetWrapper(a))this.editor.insertElement(a),a=this.getByElement(a),a.ready=!0,a.fire("ready"),a.focus()},getByElement:function(){var a={div:1,span:1};return function(b,c){if(!b)return null;var d=b.is(a)&&b.data("cke-widget-id");if(!c&&!d){var e=
this.editor.editable();do b=b.getParent();while(b&&!b.equals(e)&&!(d=b.is(a)&&b.data("cke-widget-id")))}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 d=null,e,f;if(a instanceof CKEDITOR.dom.element){b=b||a.data("widget");e=this.registered[b];if(!e)return null;if((d=a.getParent())&&d.type==CKEDITOR.NODE_ELEMENT&&d.data("cke-widget-wrapper"))return d;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);a.data("widget",b);(f=r(e,a.getName()))&&c(a);d=new CKEDITOR.dom.element(f?"span":"div");d.setAttributes(p(f,b));d.data("cke-display-name",e.pathName?e.pathName:a.getName());
a.getParent(!0)&&d.replace(a);a.appendTo(d)}else if(a instanceof CKEDITOR.htmlParser.element){b=b||a.attributes["data-widget"];e=this.registered[b];if(!e)return null;if((d=a.parent)&&d.type==CKEDITOR.NODE_ELEMENT&&d.attributes["data-cke-widget-wrapper"])return d;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);b&&(a.attributes["data-widget"]=b);(f=r(e,a.name))&&c(a);d=new CKEDITOR.htmlParser.element(f?"span":"div",p(f,b));d.attributes["data-cke-display-name"]=
e.pathName?e.pathName:a.name;e=a.parent;var g;e&&(g=a.getIndex(),a.remove());d.add(a);e&&v(e,g,d)}return d},_tests_createEditableFilter:b};CKEDITOR.event.implementOn(a.prototype);g.prototype={addClass:function(a){this.element.addClass(a);this.wrapper.addClass(g.WRAPPER_CLASS_PREFIX+a)},applyStyle:function(a){H(this,a,1)},checkStyleActive:function(a){a=L(a);var b;if(!a)return!1;for(;b=a.pop();)if(!this.hasClass(b))return!1;return!0},destroy:function(a){this.fire("destroy");if(this.editables)for(var b in this.editables)this.destroyEditable(b,
a);a||("0"==this.element.data("cke-widget-keep-attr")&&this.element.removeAttribute("data-widget"),this.element.removeAttributes(["data-cke-widget-data","data-cke-widget-keep-attr"]),this.element.removeClass("cke_widget_element"),this.element.replace(this.wrapper));this.wrapper=null},destroyEditable:function(a,b){var c=this.editables[a],d=!0;c.removeListener("focus",G);c.removeListener("blur",C);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()}))});return!0},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},hasClass:function(a){return this.element.hasClass(a)},
initEditable:function(a,c){var e=this._findOneNotNested(c.selector);return e&&e.is(CKEDITOR.dtd.$editable)?(e=new d(this.editor,e,{filter:b.call(this.repository,this.name,a,c)}),this.editables[a]=e,e.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":e.enterMode}),e.filter&&e.data("cke-filter",e.filter.id),e.addClass("cke_widget_editable"),e.removeClass("cke_widget_editable_focused"),c.pathName&&e.data("cke-display-name",c.pathName),this.editor.focusManager.add(e),
e.on("focus",G,this),CKEDITOR.env.ie&&e.on("blur",C,this),e._.initialSetData=!0,e.setData(e.getHtml()),!0):!1},_findOneNotNested:function(a){a=this.wrapper.find(a);for(var b,c,d=0;d<a.count();d++)if(b=a.getItem(d),c=b.getAscendant(g.isDomWidgetWrapper),this.wrapper.equals(c))return b;return null},isInited:function(){return!(!this.wrapper||!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var a=this.editor.getSelection();if(a){var b=this.editor.checkDirty();a.fake(this.wrapper);
!b&&this.editor.resetDirty()}this.editor.focus()},removeClass:function(a){this.element.removeClass(a);this.wrapper.removeClass(g.WRAPPER_CLASS_PREFIX+a)},removeStyle:function(a){H(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&&(X(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-R};if(!c||!(b.x==c.x&&b.y==c.y))c=a.checkDirty(),a.fire("lockSnapshot"),this.dragHandlerContainer.setStyles({top:b.y+"px",left:b.x+"px",display:"block"}),a.fire("unlockSnapshot"),!c&&a.resetDirty(),this._.dragHandlerOffset=
b}};CKEDITOR.event.implementOn(g.prototype);g.getNestedEditable=function(a,b){return!b||b.equals(a)?null:g.isDomNestedEditable(b)?b:g.getNestedEditable(a,b.getParent())};g.isDomDragHandler=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};g.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")};g.isDomNestedEditable=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")};
g.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};g.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};g.isDomWidget=function(a){return a?this.isDomWidgetWrapper(a)||this.isDomWidgetElement(a):!1};g.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};g.isParserWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-cke-widget-wrapper"]};
g.WRAPPER_CLASS_PREFIX="cke_widget_wrapper_";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.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 aa=RegExp('^(?:\x3c(?:div|span)(?: data-cke-temp\x3d"1")?(?: id\x3d"cke_copybin")?(?: data-cke-temp\x3d"1")?\x3e)?(?:\x3c(?:div|span)(?: style\x3d"[^"]+")?\x3e)?\x3cspan [^\x3e]*data-cke-copybin-start\x3d"1"[^\x3e]*\x3e.?\x3c/span\x3e([\\s\\S]+)\x3cspan [^\x3e]*data-cke-copybin-end\x3d"1"[^\x3e]*\x3e.?\x3c/span\x3e(?:\x3c/(?:div|span)\x3e)?(?:\x3c/(?:div|span)\x3e)?$',"i"),U={37:1,38:1,39:1,40:1,8:1,46:1};U[CKEDITOR.SHIFT+121]=1;CKEDITOR.plugins.widget=
g;g.repository=a;g.nestedEditable=d}(),function(){function a(a,f,g){this.editor=a;this.notification=null;this._message=new CKEDITOR.template(f);this._singularMessage=g?new CKEDITOR.template(g):null;this._tasks=[];this._doneTasks=this._doneWeights=this._totalWeights=0}function g(a){this._weight=a||1;this._doneWeight=0;this._isCanceled=!1}CKEDITOR.plugins.add("notificationaggregator",{requires:"notification"});a.prototype={createTask:function(a){a=a||{};var f=!this.notification,g;f&&(this.notification=
this._createNotification());g=this._addTask(a);g.on("updated",this._onTaskUpdate,this);g.on("done",this._onTaskDone,this);g.on("canceled",function(){this._removeTask(g)},this);this.update();f&&this.notification.show();return g},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 a=this.getTaskCount(),f={current:this.getDoneTaskCount(),max:a,percentage:Math.round(100*this.getPercentage())};return(1==a&&this._singularMessage?this._singularMessage:this._message).output(f)},_createNotification:function(){return new CKEDITOR.plugins.notification(this.editor,{type:"progress"})},
_addTask:function(a){a=new g(a.weight);this._tasks.push(a);this._totalWeights+=a._weight;return a},_removeTask:function(a){var f=CKEDITOR.tools.indexOf(this._tasks,a);-1!==f&&(a._doneWeight&&(this._doneWeights-=a._doneWeight),this._totalWeights-=a._weight,this._tasks.splice(f,1),this.update())},_onTaskUpdate:function(a){this._doneWeights+=a.data;this.update()},_onTaskDone:function(){this._doneTasks+=1;this.update()}};CKEDITOR.event.implementOn(a.prototype);g.prototype={done:function(){this.update(this._weight)},
update:function(a){if(!this.isDone()&&!this.isCanceled()){a=Math.min(this._weight,a);var f=a-this._doneWeight;this._doneWeight=a;this.fire("updated",f);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=a;CKEDITOR.plugins.notificationAggregator.task=
g}(),"use strict",function(){CKEDITOR.plugins.add("uploadwidget",{requires:"widget,clipboard,filetools,notificationaggregator",init:function(a){a.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(a,g,d){var f=CKEDITOR.fileTools,h=a.uploadRepository,m=d.supportedTypes?10:20;if(d.fileToElement)a.on("paste",
function(d){d=d.data;var c=a.widgets.registered[g],l=d.dataTransfer,e=l.getFilesCount(),b=c.loadMethod||"loadAndUpload",m,p;if(!d.dataValue&&e)for(p=0;p<e;p++)if(m=l.getFile(p),!c.supportedTypes||f.isTypeSupported(m,c.supportedTypes)){var v=c.fileToElement(m);m=h.create(m,void 0,c.loaderType);v&&(m[b](c.uploadUrl,c.additionalRequestParameters),CKEDITOR.fileTools.markElement(v,g,m.id),("loadAndUpload"==b||"upload"==b)&&!c.skipNotifications&&CKEDITOR.fileTools.bindNotifications(a,m),d.dataValue+=v.getOuterHtml())}},
null,null,m);CKEDITOR.tools.extend(d,{downcast:function(){return new CKEDITOR.htmlParser.text("")},init:function(){var d=this,c=this.wrapper.findOne("[data-cke-upload-id]").data("cke-upload-id"),f=h.loaders[c],e=CKEDITOR.tools.capitalize,b,g;f.on("update",function(h){if("abort"===f.status&&"function"===typeof d.onAbort)d.onAbort(f);!d.wrapper||!d.wrapper.getParent()?((!CKEDITOR.instances[a.name]||!a.editable().find('[data-cke-upload-id\x3d"'+c+'"]').count())&&f.abort(),h.removeListener()):(a.fire("lockSnapshot"),
h="on"+e(f.status),"abort"!==f.status&&"function"===typeof d[h]&&!1===d[h](f)||(g="cke_upload_"+f.status,d.wrapper&&g!=b&&(b&&d.wrapper.removeClass(b),d.wrapper.addClass(g),b=g),("error"==f.status||"abort"==f.status)&&a.widgets.del(d)),a.fire("unlockSnapshot"))});f.update()},replaceWith:function(d,c){if(""===d.trim())a.widgets.del(this);else{var f=this==a.widgets.focused,e=a.editable(),b=a.createRange(),g,h;f||(h=a.getSelection().createBookmarks());b.setStartBefore(this.wrapper);b.setEndAfter(this.wrapper);
f&&(g=b.createBookmark());e.insertHtmlIntoRange(d,b,c);a.widgets.checkWidgets({initOnlyNew:!0});a.widgets.destroy(this,!0);f?(b.moveToBookmark(g),b.select()):a.getSelection().selectBookmarks(h)}},_getLoader:function(){var a=this.wrapper.findOne("[data-cke-upload-id]");return a?this.editor.uploadRepository.loaders[a.data("cke-upload-id")]:null}});a.widgets.add(g,d)},markElement:function(a,g,d){a.setAttributes({"data-cke-upload-id":d,"data-widget":g})},bindNotifications:function(a,g){function d(){f=
a._.uploadWidgetNotificaionAggregator;if(!f||f.isFinished())f=a._.uploadWidgetNotificaionAggregator=new CKEDITOR.plugins.notificationAggregator(a,a.lang.uploadwidget.uploadMany,a.lang.uploadwidget.uploadOne),f.once("finished",function(){var d=f.getTaskCount();0===d?f.notification.hide():f.notification.update({message:1==d?a.lang.uploadwidget.doneOne:a.lang.uploadwidget.doneMany.replace("%1",d),type:"success",important:1})})}var f,h=null;g.on("update",function(){!h&&g.uploadTotal&&(d(),h=f.createTask({weight:g.uploadTotal}));
h&&"uploading"==g.status&&h.update(g.uploaded)});g.on("uploaded",function(){h&&h.done()});g.on("error",function(){h&&h.cancel();a.showNotification(g.message,"warning")});g.on("abort",function(){h&&h.cancel();CKEDITOR.instances[a.name]&&a.showNotification(a.lang.uploadwidget.abort,"info")})}})}(),"use strict",function(){function a(a){9>=a&&(a="0"+a);return String(a)}function g(f){var g=new Date,g=[g.getFullYear(),g.getMonth()+1,g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds()];d+=1;return"image-"+
CKEDITOR.tools.array.map(g,a).join("")+"-"+d+"."+f}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 d=CKEDITOR.fileTools,m=d.getUploadUrl(a.config,"image");m&&(d.addUploadWidget(a,"uploadimage",{supportedTypes:/image\/(jpeg|png|gif|bmp)/,uploadUrl:m,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 c=this.parts.img.$;this.replaceWith('\x3cimg src\x3d"'+a.url+'" width\x3d"'+(a.responseData.width||c.naturalWidth)+'" height\x3d"'+(a.responseData.height||c.naturalHeight)+'"\x3e')}}),a.on("paste",function(k){if(k.data.dataValue.match(/<img[\s\S]+data:/i)){k=
k.data;var c=document.implementation.createHTMLDocument(""),c=new CKEDITOR.dom.element(c.body),l,e,b;c.data("cke-editable",1);c.appendHtml(k.dataValue);l=c.find("img");for(b=0;b<l.count();b++){e=l.getItem(b);var n=e.getAttribute("src"),p=n&&"data:"==n.substring(0,5),v=null===e.data("cke-realelement");p&&(v&&!e.data("cke-upload-id")&&!e.isReadOnly(1))&&(p=(p=n.match(/image\/([a-z]+?);/i))&&p[1]||"jpg",n=a.uploadRepository.create(n,g(p)),n.upload(m),d.markElement(e,"uploadimage",n.id),d.bindNotifications(a,
n))}k.dataValue=c.getHtml()}}))}}})}(),function(){function a(a){function d(a){var e=!1;b.attachListener(b,"keydown",function(){var b=c.getBody().getElementsByTag(a);if(!e){for(var d=0;d<b.count();d++)b.getItem(d).setCustomData("retain",!0);e=!0}},null,null,1);b.attachListener(b,"keyup",function(){var b=c.getElementsByTag(a);e&&(1==b.count()&&(!b.getItem(0).getCustomData("retain")&&CKEDITOR.tools.isEmpty(b.getItem(0).getAttributes()))&&b.getItem(0).remove(1),e=!1)})}var f=this.editor,c=a.document,
l=c.body,e=c.getElementById("cke_actscrpt");e&&e.parentNode.removeChild(e);(e=c.getElementById("cke_shimscrpt"))&&e.parentNode.removeChild(e);(e=c.getElementById("cke_basetagscrpt"))&&e.parentNode.removeChild(e);l.contentEditable=!0;CKEDITOR.env.ie&&(l.hideFocus=!0,l.disabled=!0,l.removeAttribute("disabled"));delete this._.isLoadingData;this.$=l;c=new CKEDITOR.dom.document(c);this.setup();this.fixInitialSelection();var b=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&c.getDocumentElement().addClass(c.$.compatMode);
CKEDITOR.env.ie&&!CKEDITOR.env.edge&&f.enterMode!=CKEDITOR.ENTER_P?d("p"):CKEDITOR.env.edge&&(15>CKEDITOR.env.version&&f.enterMode!=CKEDITOR.ENTER_DIV)&&d("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)c.getDocumentElement().on("mousedown",function(a){a.data.getTarget().is("html")&&setTimeout(function(){f.editable().focus()})});g(f);try{f.document.$.execCommand("2D-position",!1,!0)}catch(n){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==f.document.$.compatMode)&&this.attachListener(this,
"keydown",function(a){var b=a.data.getKeystroke();if(33==b||34==b)if(CKEDITOR.env.ie)setTimeout(function(){f.getSelection().scrollIntoView()},0);else if(f.window.$.innerHeight>this.$.offsetHeight){var c=f.createRange();c[33==b?"moveToElementEditStart":"moveToElementEditEnd"](this);c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(c,"blur",function(){try{c.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(c,"touchend",function(){a.focus()});l=f.document.getElementsByTag("title").getItem(0);
l.data("cke-title",l.getText());CKEDITOR.env.ie&&(f.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");f.fire("contentDom");this._.isPendingFocus&&(f.focus(),this._.isPendingFocus=!1);setTimeout(function(){f.fire("dataReady")},0)},0,this)}function g(a){function d(){var c;a.editable().attachListener(a,"selectionChange",function(){var b=a.getSelection().getSelectedElement();b&&(c&&(c.detachEvent("onresizestart",f),c=null),b.$.attachEvent("onresizestart",
f),c=b.$)})}function f(a){a.returnValue=!1}if(CKEDITOR.env.gecko)try{var c=a.document.$;c.execCommand("enableObjectResizing",!1,!a.config.disableObjectResizing);c.execCommand("enableInlineTableEditing",!1,!a.config.disableNativeTableHandles)}catch(g){}else CKEDITOR.env.ie&&(11>CKEDITOR.env.version&&a.config.disableObjectResizing)&&d(a)}function d(){var a=[];if(8<=CKEDITOR.document.$.documentMode){a.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var d=[],f;for(f in CKEDITOR.dtd.$removeEmpty)d.push("html.CSS1Compat "+
f+"[contenteditable\x3dfalse]");a.push(d.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 f;CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",
requiredContent:"body"});a.addMode("wysiwyg",function(d){function g(b){b&&b.removeListener();a.editable(new f(a,l.$.contentWindow.document.body));a.setData(a.getData(1),d)}var c="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",c=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(c)+"}())":"",l=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+c+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');
l.setStyles({width:"100%",height:"100%"});l.addClass("cke_wysiwyg_frame").addClass("cke_reset");c=a.ui.space("contents");c.append(l);var e=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(e)l.on("load",g);var b=a.title,n=a.fire("ariaEditorHelpLabel",{}).label;b&&(CKEDITOR.env.ie&&n&&(b+=", "+n),l.setAttribute("title",b));if(n){var b=CKEDITOR.tools.getNextId(),p=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+b+'" class\x3d"cke_voice_label"\x3e'+n+"\x3c/span\x3e");c.append(p,1);l.setAttribute("aria-describedby",
b)}a.on("beforeModeUnload",function(a){a.removeListener();p&&p.remove()});l.setAttributes({tabIndex:a.tabIndex,allowTransparency:"true"});!e&&g();a.fire("ariaWidget",l)})}});CKEDITOR.editor.prototype.addContentsCss=function(a){var d=this.config,f=d.contentsCss;CKEDITOR.tools.isArray(f)||(d.contentsCss=f?[f]:[]);d.contentsCss.push(a)};f=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(d){CKEDITOR.tools.setTimeout(a,
0,this,d)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,f){var g=this.editor;if(f)this.setHtml(a),this.fixInitialSelection(),g.fire("dataReady");else{this._.isLoadingData=!0;g._.dataStore={id:1};var c=g.config,l=c.fullPage,e=c.docType,b=CKEDITOR.tools.buildStyleHtml(d()).replace(/<style>/,'\x3cstyle data-cke-temp\x3d"1"\x3e');l||(b+=CKEDITOR.tools.buildStyleHtml(g.config.contentsCss));var n=c.baseHref?'\x3cbase href\x3d"'+
c.baseHref+'" data-cke-temp\x3d"1" /\x3e':"";l&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){g.docType=e=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){g.xmlDeclaration=a;return""}));a=g.dataProcessor.toHtml(a);l?(/<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*>/,b+"$\x26"),a=e+a):a=c.docType+'\x3chtml dir\x3d"'+c.contentsLangDirection+'" lang\x3d"'+(c.contentsLanguage||g.langCode)+'"\x3e\x3chead\x3e\x3ctitle\x3e'+this._.docTitle+"\x3c/title\x3e"+n+b+"\x3c/head\x3e\x3cbody"+(c.bodyId?' id\x3d"'+c.bodyId+'"':"")+(c.bodyClass?' class\x3d"'+c.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")));c='\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&&(c+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e');
n&&(CKEDITOR.env.ie&&10>CKEDITOR.env.version)&&(c+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');a=a.replace(/(?=\s*<\/(:?head)>)/,c);this.clearCustomData();this.clearListeners();g.fire("contentDomUnload");var p=this.getDocument();try{p.write(a)}catch(v){setTimeout(function(){p.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();a=this.editor;var d=a.config,f=d.fullPage,c=f&&a.docType,g=f&&a.xmlDeclaration,
e=this.getDocument(),f=f?e.getDocumentElement().getOuterHtml():e.getBody().getHtml();CKEDITOR.env.gecko&&d.enterMode!=CKEDITOR.ENTER_BR&&(f=f.replace(/<br>(?=\s*(:?$|<\/body>))/,""));f=a.dataProcessor.toDataFormat(f);g&&(f=g+"\n"+f);c&&(f=c+"\n"+f);return f},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:f.baseProto.focus.call(this)},detach:function(){var a=this.editor,d=a.document,g;try{g=a.window.getFrame()}catch(c){}f.baseProto.detach.call(this);this.clearCustomData();d.getDocumentElement().clearCustomData();
CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);g&&g.getParent()?(g.clearCustomData(),(a=g.removeCustomData("onResize"))&&a.removeListener(),g.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,copyformatting,menu,contextmenu,dialogadvtab,div,elementspath,enterkey,entities,popup,filetools,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,htmlwriter,iframe,image,indent,indentlist,indentblock,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,preview,print,removeformat,resize,save,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 a=function(a,d){var f=CKEDITOR.getUrl("plugins/"+d);a=a.split(",");for(var h=0;h<a.length;h++)CKEDITOR.skin.icons[a[h]]={path:f,offset:-a[++h],bgsize:a[++h]}};CKEDITOR.env.hidpi?a("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,,find-rtl,792,,find,816,,replace,840,,flash,864,,button,888,,checkbox,912,,form,936,,hiddenfield,960,,imagebutton,984,,radio,1008,,select-rtl,1032,,select,1056,,textarea-rtl,1080,,textarea,1104,,textfield-rtl,1128,,textfield,1152,,horizontalrule,1176,,iframe,1200,,image,1224,,indent-rtl,1248,,indent,1272,,outdent-rtl,1296,,outdent,1320,,justifyblock,1344,,justifycenter,1368,,justifyleft,1392,,justifyright,1416,,language,1440,,anchor-rtl,1464,,anchor,1488,,link,1512,,unlink,1536,,bulletedlist-rtl,1560,,bulletedlist,1584,,numberedlist-rtl,1608,,numberedlist,1632,,mathjax,1656,,maximize,1680,,newpage-rtl,1704,,newpage,1728,,pagebreak-rtl,1752,,pagebreak,1776,,pastefromword-rtl,1800,,pastefromword,1824,,pastetext-rtl,1848,,pastetext,1872,,placeholder,1896,,preview-rtl,1920,,preview,1944,,print,1968,,removeformat,1992,,save,2016,,selectall,2040,,showblocks-rtl,2064,,showblocks,2088,,smiley,2112,,source-rtl,2136,,source,2160,,sourcedialog-rtl,2184,,sourcedialog,2208,,specialchar,2232,,table,2256,,templates-rtl,2280,,templates,2304,,redo-rtl,2328,,redo,2352,,undo-rtl,2376,,undo,2400,,simplebox,4848,auto",
"icons_hidpi.png"):a("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,find-rtl,792,auto,find,816,auto,replace,840,auto,flash,864,auto,button,888,auto,checkbox,912,auto,form,936,auto,hiddenfield,960,auto,imagebutton,984,auto,radio,1008,auto,select-rtl,1032,auto,select,1056,auto,textarea-rtl,1080,auto,textarea,1104,auto,textfield-rtl,1128,auto,textfield,1152,auto,horizontalrule,1176,auto,iframe,1200,auto,image,1224,auto,indent-rtl,1248,auto,indent,1272,auto,outdent-rtl,1296,auto,outdent,1320,auto,justifyblock,1344,auto,justifycenter,1368,auto,justifyleft,1392,auto,justifyright,1416,auto,language,1440,auto,anchor-rtl,1464,auto,anchor,1488,auto,link,1512,auto,unlink,1536,auto,bulletedlist-rtl,1560,auto,bulletedlist,1584,auto,numberedlist-rtl,1608,auto,numberedlist,1632,auto,mathjax,1656,auto,maximize,1680,auto,newpage-rtl,1704,auto,newpage,1728,auto,pagebreak-rtl,1752,auto,pagebreak,1776,auto,pastefromword-rtl,1800,auto,pastefromword,1824,auto,pastetext-rtl,1848,auto,pastetext,1872,auto,placeholder,1896,auto,preview-rtl,1920,auto,preview,1944,auto,print,1968,auto,removeformat,1992,auto,save,2016,auto,selectall,2040,auto,showblocks-rtl,2064,auto,showblocks,2088,auto,smiley,2112,auto,source-rtl,2136,auto,source,2160,auto,sourcedialog-rtl,2184,auto,sourcedialog,2208,auto,specialchar,2232,auto,table,2256,auto,templates-rtl,2280,auto,templates,2304,auto,redo-rtl,2328,auto,redo,2352,auto,undo-rtl,2376,auto,undo,2400,auto,simplebox,2424,auto",
"icons.png")}()})();