/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var c=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,h={timestamp:"L4R0",version:"4.16.1",revision:"cae20318d",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:c},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var f=document.getElementsByTagName("script"),n=0;n<f.length;n++){var k=f[n].src.match(c);if(k){a=k[1];break}}-1==a.indexOf(":/")&&"//"!=a.slice(0,
2)&&(a=0===a.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return a}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&"/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a)&&(a+=(0<=a.indexOf("?")?"\x26":"?")+"t\x3d"+this.timestamp);return a},
domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",a,!1),window.removeEventListener("load",a,!1),f()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),window.detachEvent("onload",a),f())}catch(k){}}function f(){for(var a;a=c.shift();)a()}var c=[];return function(k){function b(){try{document.documentElement.doScroll("left")}catch(e){setTimeout(b,1);return}a()}c.push(k);"complete"===document.readyState&&
setTimeout(a,1);if(1==c.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);k=!1;try{k=!window.frameElement}catch(d){}document.documentElement.doScroll&&k&&b()}}}()},f=window.CKEDITOR_GETURL;if(f){var a=h.getUrl;h.getUrl=function(g){return f.call(h,g)||a.call(h,g)}}return h}()),function(){var c={};CKEDITOR.event||(CKEDITOR.event=
function(){},CKEDITOR.event.implementOn=function(c){var f=CKEDITOR.event.prototype,a;for(a in f)null==c[a]&&(c[a]=f[a])},CKEDITOR.event.prototype=function(){function h(g){var c=f(this);return c[g]||(c[g]=new a(g))}var f=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},a=function(a){this.name=a;this.listeners=[]};a.prototype={getListenerIndex:function(a){for(var f=0,c=this.listeners;f<c.length;f++)if(c[f].fn==a)return f;return-1}};return{define:function(a,f){var c=
h.call(this,a);CKEDITOR.tools.extend(c,f,!0)},on:function(a,f,n,k,b){function d(l,b,d,v){l={name:a,sender:this,editor:l,data:b,listenerData:k,stop:d,cancel:v,removeListener:e};return!1===f.call(n,l)?c:l.data}function e(){l.removeListener(a,f)}var l=this,v=h.call(this,a);if(0>v.getListenerIndex(f)){v=v.listeners;n||(n=this);isNaN(b)&&(b=10);d.fn=f;d.priority=b;for(var x=v.length-1;0<=x;x--)if(v[x].priority<=b)return v.splice(x+1,0,d),{removeListener:e};v.unshift(d)}return{removeListener:e}},once:function(){var a=
Array.prototype.slice.call(arguments),f=a[1];a[1]=function(a){a.removeListener();return f.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,m=function(){a=1},n=0,k=function(){n=1};return function(b,d,e){var l=f(this)[b];b=a;var v=n;a=n=0;if(l){var x=l.listeners;if(x.length)for(var x=x.slice(0),t,h=0;h<x.length;h++){if(l.errorProof)try{t=x[h].call(this,
e,d,m,k)}catch(u){}else t=x[h].call(this,e,d,m,k);t===c?n=1:"undefined"!=typeof t&&(d=t);if(a||n)break}}d=n?!1:"undefined"==typeof d?!0:d;a=b;n=v;return d}}(),fireOnce:function(a,c,n){c=this.fire(a,c,n);delete f(this)[a];return c},removeListener:function(a,c){var n=f(this)[a];if(n){var k=n.getListenerIndex(c);0<=k&&n.listeners.splice(k,1)}},removeAllListeners:function(){var a=f(this),c;for(c in a)delete a[c]},hasListeners:function(a){return(a=f(this)[a])&&0<a.listeners.length}}}())}(),CKEDITOR.editor||
(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(c,h){c in{instanceReady:1,loaded:1}&&(this[c]=!0);return CKEDITOR.event.prototype.fire.call(this,c,h,this)},CKEDITOR.editor.prototype.fireOnce=function(c,h){c in{instanceReady:1,loaded:1}&&(this[c]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,c,h,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var c=
navigator.userAgent.toLowerCase(),h=c.match(/edge[ \/](\d+.?\d*)/),f=-1<c.indexOf("trident/"),f=!(!h&&!f),f={ie:f,edge:!!h,webkit:!f&&-1<c.indexOf(" applewebkit/"),air:-1<c.indexOf(" adobeair/"),mac:-1<c.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<c.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(c),isCustomDomain:function(){if(!this.ie)return!1;var a=document.domain,f=window.location.hostname;return a!=f&&a!="["+f+"]"},
secure:"https:"==location.protocol};f.gecko="Gecko"==navigator.product&&!f.webkit&&!f.ie;f.webkit&&(-1<c.indexOf("chrome")?f.chrome=!0:f.safari=!0);var a=0;f.ie&&(a=h?parseFloat(h[1]):f.quirks||!document.documentMode?parseFloat(c.match(/msie (\d+)/)[1]):document.documentMode,f.ie9Compat=9==a,f.ie8Compat=8==a,f.ie7Compat=7==a,f.ie6Compat=7>a||f.quirks);f.gecko&&(h=c.match(/rv:([\d\.]+)/))&&(h=h[1].split("."),a=1E4*h[0]+100*(h[1]||0)+1*(h[2]||0));f.air&&(a=parseFloat(c.match(/ adobeair\/(\d+)/)[1]));
f.webkit&&(a=parseFloat(c.match(/ applewebkit\/(\d+)/)[1]));f.version=a;f.isCompatible=!(f.ie&&7>a)&&!(f.gecko&&4E4>a)&&!(f.webkit&&534>a);f.hidpi=2<=window.devicePixelRatio;f.needsBrFiller=f.gecko||f.webkit||f.ie&&10<a;f.needsNbspFiller=f.ie&&11>a;f.cssClass="cke_browser_"+(f.ie?"ie":f.gecko?"gecko":f.webkit?"webkit":"unknown");f.quirks&&(f.cssClass+=" cke_browser_quirks");f.ie&&(f.cssClass+=" cke_browser_ie"+(f.quirks?"6 cke_browser_iequirks":f.version));f.air&&(f.cssClass+=" cke_browser_air");
f.iOS&&(f.cssClass+=" cke_browser_ios");f.hidpi&&(f.cssClass+=" cke_hidpi");return f}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var c=document.createElement("script");c.type="text/javascript";c.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(c)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=
function(c){(this._.pending||(this._.pending=[])).push(c)};(function(){CKEDITOR.domReady(function(){var c=CKEDITOR.loadFullCore,h=CKEDITOR.loadFullCoreTimeout;c&&(CKEDITOR.status="basic_ready",c&&c._load?c():h&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1E3*h))})})();CKEDITOR.status="basic_loaded"}(),"use strict",CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(c,h){CKEDITOR.verbosity&
CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:c,additionalData:h})},CKEDITOR.error=function(c,h){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:c,additionalData:h})},CKEDITOR.on("log",function(c){if(window.console&&window.console.log){var h=console[c.data.type]?c.data.type:"log",f=c.data.errorCode;if(c=c.data.additionalData)console[h]("[CKEDITOR] Error code: "+f+".",c);else console[h]("[CKEDITOR] Error code: "+f+".");console[h]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+
f)}},null,null,999),CKEDITOR.dom={},function(){function c(l,e,b){this._minInterval=l;this._context=b;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(e,b||{});var a=this;this.input=function(){function l(){a._lastOutput=(new Date).getTime();a._scheduledTimer=0;a._call()}if(!a._scheduledTimer||!1!==a._reschedule()){var e=(new Date).getTime()-a._lastOutput;e<a._minInterval?a._scheduledTimer=setTimeout(l,a._minInterval-e):l()}}}function h(l,e,b){c.call(this,l,e,b);this._args=[];
var a=this;this.input=CKEDITOR.tools.override(this.input,function(l){return function(){a._args=Array.prototype.slice.call(arguments);l.call(this)}})}var f=[],a=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",g=/&/g,m=/>/g,n=/</g,k=/"/g,b=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,d={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:"­"},e=function(l,e){return"#"==e[0]?String.fromCharCode(parseInt(e.slice(1),10)):d[e]};CKEDITOR.on("reset",function(){f=[]});CKEDITOR.tools=
{arrayCompare:function(l,e){if(!l&&!e)return!0;if(!l||!e||l.length!=e.length)return!1;for(var b=0;b<l.length;b++)if(l[b]!=e[b])return!1;return!0},getIndex:function(l,e){for(var b=0;b<l.length;++b)if(e(l[b]))return b;return-1},clone:function(l){var e;if(l&&l instanceof Array){e=[];for(var b=0;b<l.length;b++)e[b]=CKEDITOR.tools.clone(l[b]);return e}if(null===l||"object"!=typeof l||l instanceof String||l instanceof Number||l instanceof Boolean||l instanceof Date||l instanceof RegExp||l.nodeType||l.window===
l)return l;e=new l.constructor;for(b in l)e[b]=CKEDITOR.tools.clone(l[b]);return e},capitalize:function(l,e){return l.charAt(0).toUpperCase()+(e?l.slice(1):l.slice(1).toLowerCase())},extend:function(l){var e=arguments.length,b,a;"boolean"==typeof(b=arguments[e-1])?e--:"boolean"==typeof(b=arguments[e-2])&&(a=arguments[e-1],e-=2);for(var d=1;d<e;d++){var k=arguments[d]||{};CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(k),function(e){if(!0===b||null==l[e])if(!a||e in a)l[e]=k[e]})}return l},
prototypedCopy:function(l){var e=function(){};e.prototype=l;return new e},copy:function(l){var e={},b;for(b in l)e[b]=l[b];return e},isArray:function(l){return"[object Array]"==Object.prototype.toString.call(l)},isEmpty:function(l){for(var e in l)if(l.hasOwnProperty(e))return!1;return!0},cssVendorPrefix:function(l,e,b){if(b)return a+l+":"+e+";"+l+":"+e;b={};b[l]=e;b[a+l]=e;return b},cssStyleToDomStyle:function(){var l=document.createElement("div").style,e="undefined"!=typeof l.cssFloat?"cssFloat":
"undefined"!=typeof l.styleFloat?"styleFloat":"float";return function(l){return"float"==l?e:l.replace(/-./g,function(l){return l.substr(1).toUpperCase()})}}(),buildStyleHtml:function(l){l=[].concat(l);for(var e,b=[],a=0;a<l.length;a++)if(e=l[a])/@import|[{}]/.test(e)?b.push("\x3cstyle\x3e"+e+"\x3c/style\x3e"):b.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+e+'"\x3e');return b.join("")},htmlEncode:function(l){return void 0===l||null===l?"":String(l).replace(g,"\x26amp;").replace(m,
"\x26gt;").replace(n,"\x26lt;")},htmlDecode:function(l){return l.replace(b,e)},htmlEncodeAttr:function(l){return CKEDITOR.tools.htmlEncode(l).replace(k,"\x26quot;")},htmlDecodeAttr:function(l){return CKEDITOR.tools.htmlDecode(l)},transformPlainTextToHtml:function(l,e){var b=e==CKEDITOR.ENTER_BR,a=this.htmlEncode(l.replace(/\r\n/g,"\n")),a=a.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),d=e==CKEDITOR.ENTER_P?"p":"div";if(!b){var k=/\n{2}/g;if(k.test(a))var g="\x3c"+d+"\x3e",f="\x3c/"+d+"\x3e",a=g+
a.replace(k,function(){return f+g})+f}a=a.replace(/\n/g,"\x3cbr\x3e");b||(a=a.replace(new RegExp("\x3cbr\x3e(?\x3d\x3c/"+d+"\x3e)"),function(e){return CKEDITOR.tools.repeat(e,2)}));a=a.replace(/^ | $/g,"\x26nbsp;");return a=a.replace(/(>|\s) /g,function(e,l){return l+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var e=0;return function(){return++e}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var e="e",b=0;8>b;b++)e+=Math.floor(65536*
(1+Math.random())).toString(16).substring(1);return e},override:function(e,b){var a=b(e);a.prototype=e.prototype;return a},setTimeout:function(e,b,a,d,k){k||(k=window);a||(a=k);return k.setTimeout(function(){d?e.apply(a,[].concat(d)):e.apply(a)},b||0)},throttle:function(e,b,a){return new this.buffers.throttle(e,b,a)},trim:function(){var e=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(b){return b.replace(e,"")}}(),ltrim:function(){var e=/^[ \t\n\r]+/g;return function(b){return b.replace(e,"")}}(),
rtrim:function(){var e=/[ \t\n\r]+$/g;return function(b){return b.replace(e,"")}}(),indexOf:function(e,b){if("function"==typeof b)for(var a=0,d=e.length;a<d;a++){if(b(e[a]))return a}else{if(e.indexOf)return e.indexOf(b);a=0;for(d=e.length;a<d;a++)if(e[a]===b)return a}return-1},search:function(e,b){var a=CKEDITOR.tools.indexOf(e,b);return 0<=a?e[a]:null},bind:function(e,b){var a=Array.prototype.slice.call(arguments,2);return function(){return e.apply(b,a.concat(Array.prototype.slice.call(arguments)))}},
createClass:function(e){var b=e.$,a=e.base,d=e.privates||e._,k=e.proto;e=e.statics;!b&&(b=function(){a&&this.base.apply(this,arguments)});if(d)var g=b,b=function(){var e=this._||(this._={}),l;for(l in d){var b=d[l];e[l]="function"==typeof b?CKEDITOR.tools.bind(b,this):b}g.apply(this,arguments)};a&&(b.prototype=this.prototypedCopy(a.prototype),b.prototype.constructor=b,b.base=a,b.baseProto=a.prototype,b.prototype.base=function r(){this.base=a.prototype.base;a.apply(this,arguments);this.base=r});k&&
this.extend(b.prototype,k,!0);e&&this.extend(b,e,!0);return b},addFunction:function(e,b){return f.push(function(){return e.apply(b||this,arguments)})-1},removeFunction:function(e){f[e]=null},callFunction:function(e){var b=f[e];return b&&b.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var e=/^-?\d+\.?\d*px$/,b;return function(a){b=CKEDITOR.tools.trim(a+"")+"px";return e.test(b)?b:a||""}}(),convertToPx:function(){var e;return function(b){e||(e=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(e));if(!/%$/.test(b)){var a=0>parseFloat(b);a&&(b=b.replace("-",""));e.setStyle("width",b);b=e.$.clientWidth;return a?-b:b}return b}}(),repeat:function(e,b){return Array(b+1).join(e)},tryThese:function(){for(var e,b=0,a=arguments.length;b<a;b++){var d=arguments[b];try{e=d();break}catch(k){}}return e},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(e){return function(){var b=arguments,a=this;window.setTimeout(function(){e.apply(a,
b)},0)}},normalizeCssText:function(e,b){var a=[],d,k=CKEDITOR.tools.parseCssText(e,!0,b);for(d in k)a.push(d+":"+k[d]);a.sort();return a.length?a.join(";")+";":""},convertRgbToHex:function(e){return e.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(e,b,l,a){e=[b,l,a];for(b=0;3>b;b++)e[b]=("0"+parseInt(e[b],10).toString(16)).slice(-2);return"#"+e.join("")})},normalizeHex:function(e){return e.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(e,b,l,a){e=b.toLowerCase();3==e.length&&
(e=e.split(""),e=[e[0],e[0],e[1],e[1],e[2],e[2]].join(""));return"#"+e+a})},_isValidColorFormat:function(e){if(!e)return!1;e=e.replace(/\s+/g,"");return/^[a-z0-9()#%,./]+$/i.test(e)},parseCssText:function(e,b,a){var d={};a&&(e=(new CKEDITOR.dom.element("span")).setAttribute("style",e).getAttribute("style")||"");e&&(e=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(e)));if(!e||";"==e)return d;e.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,l,a){b&&(l=
l.toLowerCase(),"font-family"==l&&(a=a.replace(/\s*,\s*/g,",")),a=CKEDITOR.tools.trim(a));d[l]=a});return d},writeCssText:function(e,b){var a,d=[];for(a in e)d.push(a+":"+e[a]);b&&d.sort();return d.join("; ")},objectCompare:function(e,b,a){var d;if(!e&&!b)return!0;if(!e||!b)return!1;for(d in e)if(e[d]!=b[d])return!1;if(!a)for(d in b)if(e[d]!=b[d])return!1;return!0},objectKeys:function(e){return CKEDITOR.tools.object.keys(e)},convertArrayToObject:function(e,b){var a={};1==arguments.length&&(b=!0);
for(var d=0,k=e.length;d<k;++d)a[e[d]]=b;return a},getStyledSpans:function(e,b){var a=CKEDITOR.env.ie&&8==CKEDITOR.env.version?e.toUpperCase():e,a=b.find("span[style*\x3d"+a+"]").toArray();return CKEDITOR.tools.array.filter(a,function(b){return!!b.getStyle(e)})},fixDomain:function(){for(var e;;)try{e=window.parent.document.domain;break}catch(b){e=e?e.replace(/.+?(?:\.|$)/,""):document.domain;if(!e)break;document.domain=e}return!!e},eventsBuffer:function(e,b,a){return new this.buffers.event(e,b,a)},
enableHtml5Elements:function(e,b){for(var a="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(" "),d=a.length,k;d--;)k=e.createElement(a[d]),b&&e.appendChild(k)},checkIfAnyArrayItemMatches:function(e,b){for(var a=0,d=e.length;a<d;++a)if(e[a].match(b))return!0;return!1},checkIfAnyObjectPropertyMatches:function(e,b){for(var a in e)if(a.match(b))return!0;return!1},keystrokeToString:function(e,
b){var a=this.keystrokeToArray(e,b);a.display=a.display.join("+");a.aria=a.aria.join("+");return a},keystrokeToArray:function(e,b){var a=b&16711680,d=b&65535,k=CKEDITOR.env.mac,g=[],f=[];a&CKEDITOR.CTRL&&(g.push(k?"⌘":e[17]),f.push(k?e[224]:e[17]));a&CKEDITOR.ALT&&(g.push(k?"⌥":e[18]),f.push(e[18]));a&CKEDITOR.SHIFT&&(g.push(k?"⇧":e[16]),f.push(e[16]));d&&(e[d]?(g.push(e[d]),f.push(e[d])):(g.push(String.fromCharCode(d)),f.push(String.fromCharCode(d))));return{display:g,aria:f}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d",
getCookie:function(e){e=e.toLowerCase();for(var b=document.cookie.split(";"),a,d,k=0;k<b.length;k++)if(a=b[k].split("\x3d"),d=decodeURIComponent(CKEDITOR.tools.trim(a[0]).toLowerCase()),d===e)return decodeURIComponent(1<a.length?a[1]:"");return null},setCookie:function(e,b){document.cookie=encodeURIComponent(e)+"\x3d"+encodeURIComponent(b)+";path\x3d/"},getCsrfToken:function(){var e=CKEDITOR.tools.getCookie("ckCsrfToken");if(!e||40!=e.length){var e=[],b="";if(window.crypto&&window.crypto.getRandomValues)e=
new Uint8Array(40),window.crypto.getRandomValues(e);else for(var a=0;40>a;a++)e.push(Math.floor(256*Math.random()));for(a=0;a<e.length;a++)var d="abcdefghijklmnopqrstuvwxyz0123456789".charAt(e[a]%36),b=b+(.5<Math.random()?d.toUpperCase():d);e=b;CKEDITOR.tools.setCookie("ckCsrfToken",e)}return e},escapeCss:function(e){return e?window.CSS&&CSS.escape?CSS.escape(e):isNaN(parseInt(e.charAt(0),10))?e:"\\3"+e.charAt(0)+" "+e.substring(1,e.length):""},getMouseButton:function(e){return(e=e&&e.data?e.data.$:
e)?CKEDITOR.tools.normalizeMouseButton(e.button):!1},normalizeMouseButton:function(e,b){if(!CKEDITOR.env.ie||9<=CKEDITOR.env.version&&!CKEDITOR.env.ie6Compat)return e;for(var a=[[CKEDITOR.MOUSE_BUTTON_LEFT,1],[CKEDITOR.MOUSE_BUTTON_MIDDLE,4],[CKEDITOR.MOUSE_BUTTON_RIGHT,2]],d=0;d<a.length;d++){var k=a[d];if(k[0]===e&&b)return k[1];if(!b&&k[1]===e)return k[0]}},convertHexStringToBytes:function(e){var b=[],a=e.length/2,d;for(d=0;d<a;d++)b.push(parseInt(e.substr(2*d,2),16));return b},convertBytesToBase64:function(e){var b=
"",a=e.length,d;for(d=0;d<a;d+=3){var k=e.slice(d,d+3),g=k.length,f=[],c;if(3>g)for(c=g;3>c;c++)k[c]=0;f[0]=(k[0]&252)>>2;f[1]=(k[0]&3)<<4|k[1]>>4;f[2]=(k[1]&15)<<2|(k[2]&192)>>6;f[3]=k[2]&63;for(c=0;4>c;c++)b=c<=g?b+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f[c]):b+"\x3d"}return b},style:{parse:{_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "),_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,
_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi,background:function(e){var b={},a=this._findColor(e);a.length&&(b.color=a[0],CKEDITOR.tools.array.forEach(a,function(b){e=e.replace(b,"")}));if(e=CKEDITOR.tools.trim(e))b.unprocessed=e;return b},margin:function(e){return CKEDITOR.tools.style.parse.sideShorthand(e,function(e){return e.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||
["0px"]})},sideShorthand:function(e,b){function a(e){d.top=k[e[0]];d.right=k[e[1]];d.bottom=k[e[2]];d.left=k[e[3]]}var d={},k=b?b(e):e.split(/\s+/);switch(k.length){case 1:a([0,0,0,0]);break;case 2:a([0,1,0,1]);break;case 3:a([0,1,2,1]);break;case 4:a([0,1,2,3])}return d},border:function(e){return CKEDITOR.tools.style.border.fromCssRule(e)},_findColor:function(e){var b=[],a=CKEDITOR.tools.array,b=b.concat(e.match(this._rgbaRegExp)||[]),b=b.concat(e.match(this._hslaRegExp)||[]);return b=b.concat(a.filter(e.split(/\s+/),
function(e){return e.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:e.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(e,b,a){var d=[];this.forEach(e,function(k,g){b.call(a,k,g,e)&&d.push(k)});return d},find:function(e,b,a){for(var d=e.length,k=0;k<d;){if(b.call(a,e[k],k,e))return e[k];k++}},forEach:function(e,b,a){var d=e.length,k;for(k=0;k<d;k++)b.call(a,e[k],k,e)},map:function(e,b,a){for(var d=[],k=0;k<e.length;k++)d.push(b.call(a,e[k],k,e));return d},reduce:function(e,
b,a,d){for(var k=0;k<e.length;k++)a=b.call(d,a,e[k],k,e);return a},every:function(e,b,a){if(!e.length)return!0;b=this.filter(e,b,a);return e.length===b.length},some:function(e,b,a){for(var d=0;d<e.length;d++)if(b.call(a,e[d],d,e))return!0;return!1},zip:function(e,b){return CKEDITOR.tools.array.map(e,function(e,a){return[e,b[a]]})},unique:function(e){return this.filter(e,function(b,a){return a===CKEDITOR.tools.array.indexOf(e,b)})}},object:{DONT_ENUMS:"toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),
entries:function(e){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(e),function(b){return[b,e[b]]})},values:function(e){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(e),function(b){return e[b]})},keys:function(e){var b=Object.prototype.hasOwnProperty,a=[],d=CKEDITOR.tools.object.DONT_ENUMS;if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(!e||"object"!==typeof e)){b=[];if("string"===typeof e)for(a=0;a<e.length;a++)b.push(String(a));return b}for(var k in e)a.push(k);if(CKEDITOR.env.ie&&
9>CKEDITOR.env.version)for(k=0;k<d.length;k++)b.call(e,d[k])&&a.push(d[k]);return a},findKey:function(e,b){if("object"!==typeof e)return null;for(var a in e)if(e[a]===b)return a;return null},merge:function(e,b){var a=CKEDITOR.tools,d=a.clone(e),k=a.clone(b);a.array.forEach(a.object.keys(k),function(e){d[e]="object"===typeof k[e]&&"object"===typeof d[e]?a.object.merge(d[e],k[e]):k[e]});return d}},getAbsoluteRectPosition:function(e,b){function a(e){if(e){var b=e.getClientRect();d.top+=b.top;d.left+=
b.left;"x"in d&&"y"in d&&(d.x+=b.x,d.y+=b.y);a(e.getWindow().getFrame())}}var d=CKEDITOR.tools.copy(b);a(e.getFrame());var k=CKEDITOR.document.getWindow().getScrollPosition();d.top+=k.y;d.left+=k.x;"x"in d&&"y"in d&&(d.y+=k.y,d.x+=k.x);d.right=d.left+d.width;d.bottom=d.top+d.height;return d}};c.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}};h.prototype=CKEDITOR.tools.prototypedCopy(c.prototype);h.prototype._reschedule=function(){this._scheduledTimer&&this._clearTimer()};h.prototype._call=function(){this._output.apply(this._context,this._args)};CKEDITOR.tools.buffers={};CKEDITOR.tools.buffers.event=c;CKEDITOR.tools.buffers.throttle=h;CKEDITOR.tools.style.border=CKEDITOR.tools.createClass({$:function(e){e=e||{};this.width=e.width;this.style=e.style;this.color=e.color;this._.normalize()},_:{normalizeMap:{color:[[/windowtext/g,
"black"]]},normalize:function(){for(var e in this._.normalizeMap){var b=this[e];b&&(this[e]=CKEDITOR.tools.array.reduce(this._.normalizeMap[e],function(e,b){return e.replace(b[0],b[1])},b))}}},proto:{toString:function(){return CKEDITOR.tools.array.filter([this.width,this.style,this.color],function(e){return!!e}).join(" ")}},statics:{fromCssRule:function(e){var b={},a=e.split(/\s+/g);e=CKEDITOR.tools.style.parse._findColor(e);e.length&&(b.color=e[0]);CKEDITOR.tools.array.forEach(a,function(e){b.style||
-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,e)?!b.width&&CKEDITOR.tools.style.parse._widthRegExp.test(e)&&(b.width=e):b.style=e});return new CKEDITOR.tools.style.border(b)},splitCssValues:function(e,b){b=b||{};var a=CKEDITOR.tools.array.reduce(["width","style","color"],function(a,d){var k=e["border-"+d]||b[d];a[d]=k?CKEDITOR.tools.style.parse.sideShorthand(k):null;return a},{});return CKEDITOR.tools.array.reduce(["top","right","bottom","left"],function(b,d){var k={},g;for(g in a){var f=
e["border-"+d+"-"+g];k[g]=f?f:a[g]&&a[g][d]}b["border-"+d]=new CKEDITOR.tools.style.border(k);return b},{})}}});CKEDITOR.tools.array.indexOf=CKEDITOR.tools.indexOf;CKEDITOR.tools.array.isArray=CKEDITOR.tools.isArray;CKEDITOR.MOUSE_BUTTON_LEFT=0;CKEDITOR.MOUSE_BUTTON_MIDDLE=1;CKEDITOR.MOUSE_BUTTON_RIGHT=2}(),CKEDITOR.dtd=function(){var c=CKEDITOR.tools.extend,h=function(b,e){for(var a=CKEDITOR.tools.clone(b),k=1;k<arguments.length;k++){e=arguments[k];for(var g in e)delete a[g]}return a},f={},a={},
g={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},n={},k={"#":1},b={center:1,dir:1,noframes:1};c(f,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,
mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},k,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});c(a,g,f,b);h={a:h(f,{a:1,button:1}),abbr:f,address:a,area:n,article:a,aside:a,audio:c({source:1,track:1},a),b:f,base:n,bdi:f,bdo:f,blockquote:a,body:a,br:n,button:h(f,{a:1,button:1}),canvas:f,caption:a,cite:f,code:f,col:n,colgroup:{col:1},command:n,
datalist:c({option:1},f),dd:a,del:f,details:c({summary:1},a),dfn:f,div:a,dl:{dt:1,dd:1},dt:a,em:f,embed:n,fieldset:c({legend:1},a),figcaption:a,figure:c({figcaption:1},a),footer:a,form:a,h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,head:c({title:1,base:1},m),header:a,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:n,html:c({head:1,body:1},a,m),i:f,iframe:k,img:n,input:n,ins:f,kbd:f,keygen:n,label:f,legend:f,li:a,link:n,main:a,map:a,mark:f,menu:c({li:1},a),meta:n,meter:h(f,{meter:1}),nav:a,noscript:c({link:1,meta:1,style:1},
f),object:c({param:1},f),ol:{li:1},optgroup:{option:1},option:k,output:f,p:f,param:n,pre:f,progress:h(f,{progress:1}),q:f,rp:f,rt:f,ruby:c({rp:1,rt:1},f),s:f,samp:f,script:k,section:a,select:{optgroup:1,option:1},small:f,source:n,span:f,strong:f,style:k,sub:f,summary:c({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},f),sup:f,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:a,textarea:k,tfoot:{tr:1},th:a,thead:{tr:1},time:h(f,{time:1}),title:k,tr:{th:1,td:1},track:n,u:f,ul:{li:1},"var":f,
video:c({source:1,track:1},a),wbr:n,acronym:f,applet:c({param:1},a),basefont:n,big:f,center:a,dialog:n,dir:{li:1},font:f,isindex:n,noframes:a,strike:f,tt:f};c(h,{$block:c({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},g,b),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,
aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:f,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:c({body:1,head:1,html:1},h.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 h}(),CKEDITOR.dom.event=function(c){this.$=c},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var c=this.getKey();if(this.$.ctrlKey||this.$.metaKey)c+=CKEDITOR.CTRL;
this.$.shiftKey&&(c+=CKEDITOR.SHIFT);this.$.altKey&&(c+=CKEDITOR.ALT);return c},preventDefault:function(c){var h=this.$;h.preventDefault?h.preventDefault():h.returnValue=!1;c&&this.stopPropagation()},stopPropagation:function(){var c=this.$;c.stopPropagation?c.stopPropagation():c.cancelBubble=!0},getTarget:function(){var c=this.$.target||this.$.srcElement;return c?new CKEDITOR.dom.node(c):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var c=this.getTarget().getDocument().$;
return{x:this.$.pageX||this.$.clientX+(c.documentElement.scrollLeft||c.body.scrollLeft),y:this.$.pageY||this.$.clientY+(c.documentElement.scrollTop||c.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(c){c&&(this.$=c)},CKEDITOR.dom.domObject.prototype=function(){var c=function(c,f){return function(a){"undefined"!=typeof CKEDITOR&&c.fire(f,
new CKEDITOR.dom.event(a))}};return{getPrivate:function(){var c;(c=this.getCustomData("_"))||this.setCustomData("_",c={});return c},on:function(h){var f=this.getCustomData("_cke_nativeListeners");f||(f={},this.setCustomData("_cke_nativeListeners",f));f[h]||(f=f[h]=c(this,h),this.$.addEventListener?this.$.addEventListener(h,f,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+h,f));return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(c){CKEDITOR.event.prototype.removeListener.apply(this,
arguments);if(!this.hasListeners(c)){var f=this.getCustomData("_cke_nativeListeners"),a=f&&f[c];a&&(this.$.removeEventListener?this.$.removeEventListener(c,a,!1):this.$.detachEvent&&this.$.detachEvent("on"+c,a),delete f[c])}},removeAllListeners:function(){try{var c=this.getCustomData("_cke_nativeListeners"),f;for(f in c){var a=c[f];this.$.detachEvent?this.$.detachEvent("on"+f,a):this.$.removeEventListener&&this.$.removeEventListener(f,a,!1);delete c[f]}}catch(g){if(!CKEDITOR.env.edge||-2146828218!==
g.number)throw g;}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(c){var h={};CKEDITOR.on("reset",function(){h={}});c.equals=function(f){try{return f&&f.$===this.$}catch(a){return!1}};c.setCustomData=function(f,a){var g=this.getUniqueId();(h[g]||(h[g]={}))[f]=a;return this};c.getCustomData=function(f){var a=this.$["data-cke-expando"];return(a=a&&h[a])&&f in a?a[f]:null};c.removeCustomData=function(f){var a=this.$["data-cke-expando"],a=a&&h[a],g,c;a&&(g=a[f],c=f in a,delete a[f]);
return c?g:null};c.clearCustomData=function(){this.removeAllListeners();var c=this.getUniqueId();c&&delete h[c]};c.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(c)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(c){return c?new CKEDITOR.dom[c.nodeType==CKEDITOR.NODE_DOCUMENT?"document":c.nodeType==CKEDITOR.NODE_ELEMENT?"element":c.nodeType==CKEDITOR.NODE_TEXT?"text":c.nodeType==CKEDITOR.NODE_COMMENT?
"comment":c.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](c):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,
{appendTo:function(c,h){c.append(this,h);return c},clone:function(c,h){function f(a){a["data-cke-expando"]&&(a["data-cke-expando"]=!1);if(a.nodeType==CKEDITOR.NODE_ELEMENT||a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(h||a.nodeType!=CKEDITOR.NODE_ELEMENT||a.removeAttribute("id",!1),c){a=a.childNodes;for(var g=0;g<a.length;g++)f(a[g])}}function a(g){if(g.type==CKEDITOR.NODE_ELEMENT||g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var f=g.getName();":"==f[0]&&
g.renameNode(f.substring(1))}if(c)for(f=0;f<g.getChildCount();f++)a(g.getChild(f))}}var g=this.$.cloneNode(c);f(g);g=new CKEDITOR.dom.node(g);CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&a(g);return g},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(c){c.$.parentNode.insertBefore(this.$,c.$.nextSibling);return c},insertBefore:function(c){c.$.parentNode.insertBefore(this.$,
c.$);return c},insertBeforeMe:function(c){this.$.parentNode.insertBefore(c.$,this.$);return c},getAddress:function(c){for(var h=[],f=this.getDocument().$.documentElement,a=this;a&&a!=f;){var g=a.getParent();g&&h.unshift(this.getIndex.call(a,c));a=g}return h},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(c){function h(a,g){var k=g?a.getNext():a.getPrevious();return k&&k.type==CKEDITOR.NODE_TEXT?k.isEmpty()?h(k,g):k:
null}var f=this,a=-1,g;if(!this.getParent()||c&&f.type==CKEDITOR.NODE_TEXT&&f.isEmpty()&&!h(f)&&!h(f,!0))return-1;do if(!c||f.equals(this)||f.type!=CKEDITOR.NODE_TEXT||!g&&!f.isEmpty())a++,g=f.type==CKEDITOR.NODE_TEXT;while(f=f.getPrevious());return a},getNextSourceNode:function(c,h,f){if(f&&!f.call){var a=f;f=function(g){return!g.equals(a)}}c=!c&&this.getFirst&&this.getFirst();var g;if(!c){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0))return null;c=this.getNext()}for(;!c&&(g=(g||this).getParent());){if(f&&
!1===f(g,!0))return null;c=g.getNext()}return!c||f&&!1===f(c)?null:h&&h!=c.type?c.getNextSourceNode(!1,h,f):c},getPreviousSourceNode:function(c,h,f){if(f&&!f.call){var a=f;f=function(g){return!g.equals(a)}}c=!c&&this.getLast&&this.getLast();var g;if(!c){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0))return null;c=this.getPrevious()}for(;!c&&(g=(g||this).getParent());){if(f&&!1===f(g,!0))return null;c=g.getPrevious()}return!c||f&&!1===f(c)?null:h&&c.type!=h?c.getPreviousSourceNode(!1,h,f):
c},getPrevious:function(c){var h=this.$,f;do f=(h=h.previousSibling)&&10!=h.nodeType&&new CKEDITOR.dom.node(h);while(f&&c&&!c(f));return f},getNext:function(c){var h=this.$,f;do f=(h=h.nextSibling)&&new CKEDITOR.dom.node(h);while(f&&c&&!c(f));return f},getParent:function(c){var h=this.$.parentNode;return h&&(h.nodeType==CKEDITOR.NODE_ELEMENT||c&&h.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(h):null},getParents:function(c){var h=this,f=[];do f[c?"push":"unshift"](h);while(h=h.getParent());
return f},getCommonAncestor:function(c){if(c.equals(this))return this;if(c.contains&&c.contains(this))return c;var h=this.contains?this:this.getParent();do if(h.contains(c))return h;while(h=h.getParent());return null},getPosition:function(c){var h=this.$,f=c.$;if(h.compareDocumentPosition)return h.compareDocumentPosition(f);if(h==f)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&c.type==CKEDITOR.NODE_ELEMENT){if(h.contains){if(h.contains(f))return CKEDITOR.POSITION_CONTAINS+
CKEDITOR.POSITION_PRECEDING;if(f.contains(h))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in h)return 0>h.sourceIndex||0>f.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:h.sourceIndex<f.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}h=this.getAddress();c=c.getAddress();for(var f=Math.min(h.length,c.length),a=0;a<f;a++)if(h[a]!=c[a])return h[a]<c[a]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return h.length<c.length?CKEDITOR.POSITION_CONTAINS+
CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(c,h){var f=this.$,a,g;h||(f=f.parentNode);"function"==typeof c?(g=!0,a=c):(g=!1,a=function(a){a="string"==typeof a.nodeName?a.nodeName.toLowerCase():"";return"string"==typeof c?a==c:a in c});for(;f;){if(a(g?new CKEDITOR.dom.node(f):f))return new CKEDITOR.dom.node(f);try{f=f.parentNode}catch(m){f=null}}return null},hasAscendant:function(c,h){var f=this.$;h||(f=f.parentNode);for(;f;){if(f.nodeName&&
f.nodeName.toLowerCase()==c)return!0;f=f.parentNode}return!1},move:function(c,h){c.append(this.remove(),h)},remove:function(c){var h=this.$,f=h.parentNode;if(f){if(c)for(;c=h.firstChild;)f.insertBefore(h.removeChild(c),h);f.removeChild(h)}return this},replace:function(c){this.insertBefore(c);c.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var c;this.getFirst&&(c=this.getFirst());){if(c.type==CKEDITOR.NODE_TEXT){var h=CKEDITOR.tools.ltrim(c.getText()),f=c.getLength();if(h)h.length<
f&&(c.split(f-h.length),this.$.removeChild(this.$.firstChild));else{c.remove();continue}}break}},rtrim:function(){for(var c;this.getLast&&(c=this.getLast());){if(c.type==CKEDITOR.NODE_TEXT){var h=CKEDITOR.tools.rtrim(c.getText()),f=c.getLength();if(h)h.length<f&&(c.split(h.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{c.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(c=this.$.lastChild)&&1==c.type&&"br"==c.nodeName.toLowerCase()&&c.parentNode.removeChild(c)},isReadOnly:function(c){var h=
this;this.type!=CKEDITOR.NODE_ELEMENT&&(h=this.getParent());CKEDITOR.env.edge&&h&&h.is("textarea","input")&&(c=!0);if(!c&&h&&"undefined"!=typeof h.$.isContentEditable)return!(h.$.isContentEditable||h.data("cke-editable"));for(;h;){if(h.data("cke-editable"))return!1;if(h.hasAttribute("contenteditable"))return"false"==h.getAttribute("contenteditable");h=h.getParent()}return!0}}),CKEDITOR.dom.window=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,
CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var c=this.$.document,h="CSS1Compat"==c.compatMode;return{width:(h?c.documentElement.clientWidth:c.body.clientWidth)||0,height:(h?c.documentElement.clientHeight:c.body.clientHeight)||0}},getScrollPosition:function(){var c=this.$;if("pageXOffset"in c)return{x:c.pageXOffset||0,y:c.pageYOffset||0};c=c.document;return{x:c.documentElement.scrollLeft||c.body.scrollLeft||0,y:c.documentElement.scrollTop||
c.body.scrollTop||0}},getFrame:function(){var c=this.$.frameElement;return c?new CKEDITOR.dom.element.get(c):null}}),CKEDITOR.dom.document=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(c){if(this.$.createStyleSheet)this.$.createStyleSheet(c);else{var h=new CKEDITOR.dom.element("link");h.setAttributes({rel:"stylesheet",type:"text/css",
href:c});this.getHead().append(h)}},appendStyleText:function(c){if(this.$.createStyleSheet){var h=this.$.createStyleSheet("");h.cssText=c}else{var f=new CKEDITOR.dom.element("style",this);f.append(new CKEDITOR.dom.text(c,this));this.getHead().append(f)}return h||f.$.sheet},createElement:function(c,h){var f=new CKEDITOR.dom.element(c,this);h&&(h.attributes&&f.setAttributes(h.attributes),h.styles&&f.setStyles(h.styles));return f},createText:function(c){return new CKEDITOR.dom.text(c,this)},focus:function(){this.getWindow().focus()},
getActive:function(){var c;try{c=this.$.activeElement}catch(h){return null}return new CKEDITOR.dom.element(c)},getById:function(c){return(c=this.$.getElementById(c))?new CKEDITOR.dom.element(c):null},getByAddress:function(c,h){for(var f=this.$.documentElement,a=0;f&&a<c.length;a++){var g=c[a];if(h)for(var m=-1,n=0;n<f.childNodes.length;n++){var k=f.childNodes[n];if(!0!==h||3!=k.nodeType||!k.previousSibling||3!=k.previousSibling.nodeType)if(m++,m==g){f=k;break}}else f=f.childNodes[g]}return f?new CKEDITOR.dom.node(f):
null},getElementsByTag:function(c,h){CKEDITOR.env.ie&&8>=document.documentMode||!h||(c=h+":"+c);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(c))},getHead:function(){var c=this.$.getElementsByTagName("head")[0];return c=c?new CKEDITOR.dom.element(c):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||
this.$.defaultView)},write:function(c){this.$.open("text/html","replace");CKEDITOR.env.ie&&(c=c.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(c);this.$.close()},find:function(c){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(c))},findOne:function(c){return(c=this.$.querySelector(c))?new CKEDITOR.dom.element(c):null},_getHtml5ShivFrag:function(){var c=this.getCustomData("html5ShivFrag");c||
(c=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(c,!0),this.setCustomData("html5ShivFrag",c));return c}}),CKEDITOR.dom.nodeList=function(c){this.$=c},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(c){return 0>c||c>=this.$.length?null:(c=this.$[c])?new CKEDITOR.dom.node(c):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(c){return new CKEDITOR.dom.node(c)})}},CKEDITOR.dom.element=function(c,h){"string"==typeof c&&
(c=(h?h.$:document).createElement(c));CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.element.get=function(c){return(c="string"==typeof c?document.getElementById(c)||document.getElementsByName(c)[0]:c)&&(c.$?c:new CKEDITOR.dom.element(c))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(c,h){var f=new CKEDITOR.dom.element("div",h);f.setHtml(c);return f.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(c,h,f,a){var g=h.getCustomData("list_marker_id")||
h.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),m=h.getCustomData("list_marker_names")||h.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");c[g]=h;m[f]=1;return h.setCustomData(f,a)},CKEDITOR.dom.element.clearAllMarkers=function(c){for(var h in c)CKEDITOR.dom.element.clearMarkers(c,c[h],1)},CKEDITOR.dom.element.clearMarkers=function(c,h,f){var a=h.getCustomData("list_marker_names"),g=h.getCustomData("list_marker_id"),m;for(m in a)h.removeCustomData(m);
h.removeCustomData("list_marker_names");f&&(h.removeCustomData("list_marker_id"),delete c[g])},function(){function c(a,b){return-1<(" "+a+" ").replace(m," ").indexOf(" "+b+" ")}function h(a){var b=!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),b=!1);return function(){b||a.removeAttribute("id")}}function f(a,b){var d=CKEDITOR.tools.escapeCss(a.$.id);return"#"+d+" "+b.split(/,\s*/).join(", #"+d+" ")}function a(a){for(var b=0,d=0,e=n[a].length;d<e;d++)b+=parseFloat(this.getComputedStyle(n[a][d])||
0,10)||0;return b}var g=document.createElement("_").classList,g="undefined"!==typeof g&&null!==String(g.add).match(/\[Native code\]/gi),m=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:g?function(a){this.$.classList.add(a);return this}:function(a){var b=this.$.className;b&&(c(b,a)||(b+=" "+a));this.$.className=b||a;return this},removeClass:g?function(a){var b=this.$;b.classList.remove(a);b.className||b.removeAttribute("class");return this}:function(a){var b=
this.getAttribute("class");b&&c(b,a)&&((b=b.replace(new RegExp("(?:^|\\s+)"+a+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",b):this.removeAttribute("class"));return this},hasClass:function(a){return c(this.$.className,a)},append:function(a,b){"string"==typeof a&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());
b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();a&&a.is&&a.is("br")||(a=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&a.setAttribute("type","_moz"),this.append(a))}},breakParent:function(a,
b){var d=new CKEDITOR.dom.range(this.getDocument());d.setStartAfter(this);d.setEndAfter(a);var e=d.extractContents(!1,b||!1),l;d.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(d=new CKEDITOR.dom.element("div");l=e.getFirst();)l.$.style.backgroundColor&&(l.$.style.backgroundColor=l.$.style.backgroundColor),d.append(l);d.insertAfter(this);d.remove(!0)}else e.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&
16)}:function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(b){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(!0));
return a.innerHTML},getClientRect:function(a){var b=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!b.width&&(b.width=b.right-b.left);!b.height&&(b.height=b.bottom-b.top);return a?CKEDITOR.tools.getAbsoluteRectPosition(this.getWindow(),b):b},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var d=this.getDocument()._getHtml5ShivFrag();d.appendChild(b);b.innerHTML=a;d.removeChild(b);return a}catch(e){this.$.innerHTML="";
b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));return a}}:function(a){return this.$.innerHTML=a},setText:function(){var a=document.createElement("p");a.innerHTML="x";a=a.textContent;return function(b){this.$[a?"textContent":"innerText"]=b}}(),getAttribute:function(){var a=function(b){return this.$.getAttribute(b,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b){switch(b){case "class":b=
"className";break;case "http-equiv":b="httpEquiv";break;case "name":return this.$.name;case "tabindex":return b=this.$.getAttribute(b,2),0!==b&&0===this.$.tabIndex&&(b=null),b;case "checked":return b=this.$.attributes.getNamedItem(b),(b.specified?b.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[b];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):
null}return this.$.getAttribute(b,2)}:a}(),getAttributes:function(a){var b={},d=this.$.attributes,e;a=CKEDITOR.tools.isArray(a)?a:[];for(e=0;e<d.length;e++)-1===CKEDITOR.tools.indexOf(a,d[e].name)&&(b[d[e].name]=d[e].value);return b},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getClientSize:function(){return{width:this.$.clientWidth,height:this.$.clientHeight}},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var b=this.getWindow().$.getComputedStyle(this.$,
null);return b?b.getPropertyValue(a):""}:function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var a=this.$.tabIndex;return 0!==a||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?a:-1},getText:function(){return this.$.textContent||this.$.innerText||""},
getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var b=this.$.scopeName;"HTML"!=b&&(a=b.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getNext(a));
return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if("object"==typeof arguments[0])return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return!0;return!1},isEditable:function(a){var b=this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||
CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==a?(a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span,!(!a||!a["#"])):!0},isIdentical:function(a){var b=this.clone(0,1);a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode)return b.$.style.cssText=
CKEDITOR.tools.normalizeCssText(b.$.style.cssText),a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText),b.$.isEqualNode(a.$);b=b.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var d=this.getParent();d.type==CKEDITOR.NODE_ELEMENT&&(d=d.clone(),d.setHtml(b),b=d.getHtml(),d.setHtml(a),a=d.getHtml())}return b==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),b,d;a&&CKEDITOR.env.webkit&&
(b=this.getWindow(),!b.equals(CKEDITOR.document.getWindow())&&(d=b.$.frameElement)&&(a=(new CKEDITOR.dom.element(d)).isVisible()));return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var a=this.getChildren(),b=0,d=a.count();b<d;b++){var e=a.getItem(b);if(e.type!=CKEDITOR.NODE_ELEMENT||!e.data("cke-bookmark"))if(e.type==CKEDITOR.NODE_ELEMENT&&!e.isEmptyInlineRemoveable()||e.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(e.getText()))return!1}return!0},
hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,b=0;b<a.length;b++){var d=a[b];switch(d.nodeName){case "class":if(this.getAttribute("class"))return!0;case "data-cke-expando":continue;default:if(d.specified)return!0}}return!1}:function(){var a=this.$.attributes,b=a.length,d={"data-cke-expando":1,_moz_dirty:1};return 0<b&&(2<b||!d[a[0].nodeName]||2==b&&!d[a[1].nodeName])},hasAttribute:function(){function a(b){var d=this.$.attributes.getNamedItem(b);
if("input"==this.getName())switch(b){case "class":return 0<this.$.className.length;case "checked":return!!this.$.checked;case "value":return b=this.getAttribute("type"),"checkbox"==b||"radio"==b?"on"!=this.$.value:!!this.$.value}return d?d.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(b){return"name"==b?!!this.$.name:a.call(this,b)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var d=this.$;
a=a.$;if(d!=a){var e;if(b)for(;e=d.lastChild;)a.insertBefore(d.removeChild(e),a.firstChild);else for(;e=d.firstChild;)a.appendChild(d.removeChild(e))}},mergeSiblings:function(){function a(b,d,e){if(d&&d.type==CKEDITOR.NODE_ELEMENT){for(var l=[];d.data("cke-bookmark")||d.isEmptyInlineRemoveable();)if(l.push(d),d=e?d.getNext():d.getPrevious(),!d||d.type!=CKEDITOR.NODE_ELEMENT)return;if(b.isIdentical(d)){for(var g=e?b.getLast():b.getFirst();l.length;)l.shift().move(b,!e);d.moveChildren(b,!e);d.remove();
g&&g.type==CKEDITOR.NODE_ELEMENT&&g.mergeSiblings()}}}return function(b){if(!1===b||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))a(this,this.getNext(),!0),a(this,this.getPrevious())}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,d){this.$.setAttribute(a,d);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b,d){"class"==b?this.$.className=d:"style"==b?this.$.style.cssText=d:"tabindex"==b?
this.$.tabIndex=d:"checked"==b?this.$.checked=d:"contenteditable"==b?a.call(this,"contentEditable",d):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,d){if("src"==b&&d.match(/^http:\/\//))try{a.apply(this,arguments)}catch(e){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};
return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){"class"==a?a="className":"tabindex"==a?a="tabIndex":"contenteditable"==a&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a=a||this.getAttributes(),a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=this.$.style;if(b.removeProperty||"border"!=a&&"margin"!=a&&"padding"!=
a)b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a)),this.$.style.cssText||this.removeAttribute("style");else{var d=["top","left","right","bottom"],e;"border"==a&&(e=["color","style","width"]);for(var b=[],l=0;l<d.length;l++)if(e)for(var g=0;g<e.length;g++)b.push([a,d[l],e[g]].join("-"));else b.push([a,d[l]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}},setStyle:function(a,b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,
a[b]);return this},setOpacity:function(a){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(a=Math.round(100*a),this.setStyle("filter",100<=a?"":"progid:DXImageTransform.Microsoft.Alpha(opacity\x3d"+a+")")):this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var a,b=this.getElementsByTag("*"),d=0,e=b.count();d<e;d++)a=b.getItem(d),a.setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var a=
this;"html"!=a.getName();){if("static"!=a.getComputedStyle("position"))return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,d=0,e=this.getDocument(),l=e.getBody(),g="BackCompat"==e.$.compatMode;if(document.documentElement.getBoundingClientRect&&(CKEDITOR.env.ie?8!==CKEDITOR.env.version:1)){var c=this.$.getBoundingClientRect(),f=e.$.documentElement,m=f.clientTop||l.$.clientTop||0,u=f.clientLeft||l.$.clientLeft||0,n=!0;CKEDITOR.env.ie&&(n=e.getDocumentElement().contains(this),
e=e.getBody().contains(this),n=g&&e||!g&&n);n&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(b=l.$.scrollLeft||f.scrollLeft,d=l.$.scrollTop||f.scrollTop):(d=g?l.$:f,b=d.scrollLeft,d=d.scrollTop),b=c.left+b-u,d=c.top+d-m)}else for(m=this,u=null;m&&"body"!=m.getName()&&"html"!=m.getName();){b+=m.$.offsetLeft-m.$.scrollLeft;d+=m.$.offsetTop-m.$.scrollTop;m.equals(this)||(b+=m.$.clientLeft||0,d+=m.$.clientTop||0);for(;u&&!u.equals(m);)b-=u.$.scrollLeft,d-=u.$.scrollTop,u=u.getParent();
u=m;m=(c=m.$.offsetParent)?new CKEDITOR.dom.element(c):null}a&&(c=this.getWindow(),m=a.getWindow(),!c.equals(m)&&c.$.frameElement&&(a=(new CKEDITOR.dom.element(c.$.frameElement)).getDocumentPosition(a),b+=a.x,d+=a.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||g||(b+=this.$.clientLeft?1:0,d+=this.$.clientTop?1:0);return{x:b,y:d}},scrollIntoView:function(a){var b=this.getParent();if(b){do if((b.$.clientWidth&&b.$.clientWidth<b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<
b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1),b.is("html")){var d=b.getWindow();try{var e=d.$.frameElement;e&&(b=new CKEDITOR.dom.element(e))}catch(l){}}while(b=b.getParent())}},scrollIntoParent:function(a,b,d){var e,l,g,c;function f(e,b){/body|html/.test(a.getName())?a.getWindow().$.scrollBy(e,b):(a.$.scrollLeft+=e,a.$.scrollTop+=b)}function m(e,a){var b={x:0,y:0};if(!e.is(n?"body":"html")){var d=e.$.getBoundingClientRect();b.x=d.left;b.y=d.top}d=e.getWindow();d.equals(a)||(d=m(CKEDITOR.dom.element.get(d.$.frameElement),
a),b.x+=d.x,b.y+=d.y);return b}function u(e,a){return parseInt(e.getComputedStyle("margin-"+a)||0,10)||0}!a&&(a=this.getWindow());g=a.getDocument();var n="BackCompat"==g.$.compatMode;a instanceof CKEDITOR.dom.window&&(a=n?g.getBody():g.getDocumentElement());CKEDITOR.env.webkit&&(g=this.getEditor(!1))&&(g._.previousScrollTop=null);g=a.getWindow();l=m(this,g);var h=m(a,g),w=this.$.offsetHeight;e=this.$.offsetWidth;var p=a.$.clientHeight,y=a.$.clientWidth;g=l.x-u(this,"left")-h.x||0;c=l.y-u(this,"top")-
h.y||0;e=l.x+e+u(this,"right")-(h.x+y)||0;l=l.y+w+u(this,"bottom")-(h.y+p)||0;(0>c||0<l)&&f(0,!0===b?c:!1===b?l:0>c?c:l);d&&(0>g||0<e)&&f(0>g?g:e,0)},setState:function(a,b,d){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");d&&this.setAttribute("aria-pressed",!0);d&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");
d&&this.setAttribute("aria-disabled",!0);d&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off"),this.removeClass(b+"_on"),this.removeClass(b+"_disabled"),d&&this.removeAttribute("aria-pressed"),d&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,b){var d=this.$.attributes;b=b||{};for(var e=0;e<d.length;e++){var l=
d[e],g=l.nodeName.toLowerCase(),c;if(!(g in b))if("checked"==g&&(c=this.getAttribute(g)))a.setAttribute(g,c);else if(!CKEDITOR.env.ie||this.hasAttribute(g))c=this.getAttribute(g),null===c&&(c=l.nodeValue),a.setAttribute(g,c)}""!==this.$.style.cssText&&(a.$.style.cssText=this.$.style.cssText)},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument();a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);this.moveChildren(a);this.getParent(!0)&&this.$.parentNode.replaceChild(a.$,this.$);
a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,d){var e=b.childNodes;if(0<=d&&d<e.length)return e[d]}return function(b){var d=this.$;if(b.slice)for(b=b.slice();0<b.length&&d;)d=a(d,b.shift());else d=a(d,b);return d?new CKEDITOR.dom.node(d):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT&&b.hasClass("cke_enable_context_menu")}this.on("contextmenu",
function(b){b.data.getTarget().getAscendant(a,!0)||b.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(void 0===b)return this.getAttribute(a);!1===b?this.removeAttribute(a):this.setAttribute(a,b);return null},getEditor:function(a){var b=CKEDITOR.instances,d,e,l;a=
a||void 0===a;for(d in b)if(e=b[d],e.element.equals(this)&&e.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!a&&(l=e.editable())&&(l.equals(this)||l.contains(this)))return e;return null},find:function(a){var b=h(this);a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(f(this,a)));b();return a},findOne:function(a){var b=h(this);a=this.$.querySelector(f(this,a));b();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,d){if(!(d||b&&this.type!=b))var e=a(this);if(!1!==e){d=this.getChildren();
for(var l=0;l<d.count();l++)e=d.getItem(l),e.type==CKEDITOR.NODE_ELEMENT?e.forEach(a,b):b&&e.type!=b||a(e)}},fireEventHandler:function(a,b){var d="on"+a,e=this.$;if(CKEDITOR.env.ie&&9>CKEDITOR.env.version){var l=e.ownerDocument.createEventObject(),g;for(g in b)l[g]=b[g];e.fireEvent(d,l)}else e[e[a]?a:d](b)},isDetached:function(){var a=this.getDocument(),b=a.getDocumentElement();return b.equals(this)||b.contains(this)?!CKEDITOR.env.ie||8<CKEDITOR.env.version&&!CKEDITOR.env.quirks?!a.$.defaultView:
!1:!0}});var n={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(g,b,d){"number"==typeof b&&(!d||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(b-=a.call(this,g)),this.setStyle(g,b+"px"))};CKEDITOR.dom.element.prototype.getSize=function(g,b){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(g)],this.$["client"+CKEDITOR.tools.capitalize(g)])||
0;b&&(d-=a.call(this,g));return d}}(),CKEDITOR.dom.documentFragment=function(c){c=c||CKEDITOR.document;this.$=c.type==CKEDITOR.NODE_DOCUMENT?c.$.createDocumentFragment():c},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(c){c=c.$;c.parentNode.insertBefore(this.$,c.nextSibling)},getHtml:function(){var c=new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(c);return c.getHtml().replace(/\s*data-cke-expando=".*?"/g,
"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.document.prototype,!0,{find:1,findOne:1}),function(){function c(a,e){var b=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(b.collapsed)return this.end(),
null;b.optimize()}var d,l=b.startContainer;d=b.endContainer;var g=b.startOffset,c=b.endOffset,f,m=this.guard,k=this.type,n=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var h=d.type==CKEDITOR.NODE_ELEMENT?d:d.getParent(),F=d.type==CKEDITOR.NODE_ELEMENT?d.getChild(c):d.getNext();this._.guardLTR=function(a,e){return(!e||!h.equals(a))&&(!F||!a.equals(F))&&(a.type!=CKEDITOR.NODE_ELEMENT||!e||!a.equals(b.root))}}if(a&&!this._.guardRTL){var K=l.type==CKEDITOR.NODE_ELEMENT?l:l.getParent(),
D=l.type==CKEDITOR.NODE_ELEMENT?g?l.getChild(g-1):null:l.getPrevious();this._.guardRTL=function(a,e){return(!e||!K.equals(a))&&(!D||!a.equals(D))&&(a.type!=CKEDITOR.NODE_ELEMENT||!e||!a.equals(b.root))}}var H=a?this._.guardRTL:this._.guardLTR;f=m?function(a,e){return!1===H(a,e)?!1:m(a,e)}:H;this.current?d=this.current[n](!1,k,f):(a?d.type==CKEDITOR.NODE_ELEMENT&&(d=0<c?d.getChild(c-1):!1===f(d,!0)?null:d.getPreviousSourceNode(!0,k,f)):(d=l,d.type==CKEDITOR.NODE_ELEMENT&&((d=d.getChild(g))||(d=!1===
f(l,!0)?null:l.getNextSourceNode(!0,k,f)))),d&&!1===f(d)&&(d=null));for(;d&&!this._.end;){this.current=d;if(!this.evaluator||!1!==this.evaluator(d)){if(!e)return d}else if(e&&this.evaluator)return!1;d=d[n](!1,k,f)}this.end();return this.current=null}function h(a){for(var e,b=null;e=c.call(this,a);)b=e;return b}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return c.call(this)},previous:function(){return c.call(this,
1)},checkForward:function(){return!1!==c.call(this,0,1)},checkBackward:function(){return!1!==c.call(this,1,1)},lastForward:function(){return h.call(this)},lastBackward:function(){return h.call(this,1)},reset:function(){delete this.current;this._={}}}});var f={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},a={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=
function(e){return"none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in a||!f[this.getComputedStyle("display")]?!!(this.is(CKEDITOR.dtd.$block)||e&&this.is(e)):!0};CKEDITOR.dom.walker.blockBoundary=function(a){return function(e){return!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,e){function b(a){return a&&a.getName&&"span"==a.getName()&&a.data("cke-bookmark")}
return function(d){var l,g;l=d&&d.type!=CKEDITOR.NODE_ELEMENT&&(g=d.getParent())&&b(g);l=a?l:l||b(d);return!!(e^l)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(e){var b;e&&e.type==CKEDITOR.NODE_TEXT&&(b=!CKEDITOR.tools.trim(e.getText())||CKEDITOR.env.webkit&&e.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE);return!!(a^b)}};CKEDITOR.dom.walker.invisible=function(a){var e=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.env.webkit?1:0;return function(d){e(d)?d=1:(d.type==CKEDITOR.NODE_TEXT&&
(d=d.getParent()),d=d.$.offsetWidth<=b);return!!(a^d)}};CKEDITOR.dom.walker.nodeType=function(a,e){return function(b){return!!(e^b.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function e(a){return!m(a)&&!n(a)}return function(b){var d=CKEDITOR.env.needsBrFiller?b.is&&b.is("br"):b.getText&&g.test(b.getText());d&&(d=b.getParent(),b=b.getNext(e),d=d.isBlockBoundary()&&(!b||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()));return!!(a^d)}};CKEDITOR.dom.walker.temp=function(a){return function(e){e.type!=
CKEDITOR.NODE_ELEMENT&&(e=e.getParent());e=e&&e.hasAttribute("data-cke-temp");return!!(a^e)}};var g=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,m=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(),k=CKEDITOR.dom.walker.temp(),b=function(a){return n(a)||m(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty)};CKEDITOR.dom.walker.ignored=function(a){return function(e){e=m(e)||n(e)||k(e);return!!(a^e)}};var d=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=
function(a){return function(e){for(var b=0,l=e.getChildCount();b<l;++b)if(!d(e.getChild(b)))return!!a;return!a}};var e=CKEDITOR.dom.walker.empty(),l=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var e={},b;for(b in a)CKEDITOR.dtd[b]["#"]&&(e[b]=1);return e}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(a){return function(b){b=d(b)?!1:b.type==CKEDITOR.NODE_TEXT||b.type==CKEDITOR.NODE_ELEMENT&&(b.is(CKEDITOR.dtd.$inline)||b.is("hr")||
"false"==b.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&b.is(l)&&e(b))?!0:!1;return!!(a^b)}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(b(a));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&g.test(a.getText()))?a:!1}}(),CKEDITOR.dom.range=function(c){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=!0;var h=c instanceof CKEDITOR.dom.document;this.document=h?c:c.getDocument();
this.root=h?c.getBody():c},function(){function c(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset}function h(a,b,d,g,c){function f(a,e,b,d){var l=b?a.getPrevious():a.getNext();if(d&&n)return l;p||d?e.append(a.clone(!0,c),b):(a.remove(),h&&e.append(a,b));return l}function m(){var a,e,b,d=Math.min(L.length,N.length);for(a=0;a<d;a++)if(e=L[a],b=N[a],!e.equals(b))return a;return a-1}function k(){var b=P-1,d=H&&G&&!y.equals(A);b<J-1||
b<E-1||d?(d?a.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START):E==b+1&&D?a.moveToPosition(N[b],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(N[b+1],CKEDITOR.POSITION_BEFORE_START),g&&(b=L[b+1])&&b.type==CKEDITOR.NODE_ELEMENT&&(d=CKEDITOR.dom.element.createFromHtml('\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e',a.document),d.insertAfter(b),b.mergeSiblings(!1),a.moveToBookmark({startNode:d}))):a.collapse(!0)}a.optimizeBookmark();var n=0===b,h=1==b,p=2==b;b=p||
h;var y=a.startContainer,A=a.endContainer,C=a.startOffset,F=a.endOffset,K,D,H,G,B,O;if(p&&A.type==CKEDITOR.NODE_TEXT&&(y.equals(A)||y.type===CKEDITOR.NODE_ELEMENT&&y.getFirst().equals(A)))d.append(a.document.createText(A.substring(C,F)));else{A.type==CKEDITOR.NODE_TEXT?p?O=!0:A=A.split(F):0<A.getChildCount()?F>=A.getChildCount()?(A=A.getChild(F-1),D=!0):A=A.getChild(F):G=D=!0;y.type==CKEDITOR.NODE_TEXT?p?B=!0:y.split(C):0<y.getChildCount()?0===C?(y=y.getChild(C),K=!0):y=y.getChild(C-1):H=K=!0;for(var L=
y.getParents(),N=A.getParents(),P=m(),J=L.length-1,E=N.length-1,I=d,fa,T,W,ja=-1,V=P;V<=J;V++){T=L[V];W=T.getNext();for(V!=J||T.equals(N[V])&&J<E?b&&(fa=I.append(T.clone(0,c))):K?f(T,I,!1,H):B&&I.append(a.document.createText(T.substring(C)));W;){if(W.equals(N[V])){ja=V;break}W=f(W,I)}I=fa}I=d;for(V=P;V<=E;V++)if(d=N[V],W=d.getPrevious(),d.equals(L[V]))b&&(I=I.getChild(0));else{V!=E||d.equals(L[V])&&E<J?b&&(fa=I.append(d.clone(0,c))):D?f(d,I,!1,G):O&&I.append(a.document.createText(d.substring(0,F)));
if(V>ja)for(;W;)W=f(W,I,!0);I=fa}p||k()}}function f(){var a=!1,b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(!0),g=CKEDITOR.dom.walker.bogus();return function(c){return d(c)||b(c)?!0:g(c)&&!a?a=!0:c.type==CKEDITOR.NODE_TEXT&&(c.hasAscendant("pre")||CKEDITOR.tools.trim(c.getText()).length)||c.type==CKEDITOR.NODE_ELEMENT&&!c.is(m)?!1:!0}}function a(a){var b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(1);return function(g){return d(g)||b(g)?!0:!a&&n(g)||g.type==
CKEDITOR.NODE_ELEMENT&&g.is(CKEDITOR.dtd.$removeEmpty)}}function g(a){return function(){var l;return this[a?"getPreviousNode":"getNextNode"](function(a){!l&&d(a)&&(l=a);return b(a)&&!(n(a)&&a.equals(l))})}}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},n=CKEDITOR.dom.walker.bogus(),k=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,b=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(!0);
CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset;a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){a?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);
this.collapsed||h(this,2,b,!1,"undefined"==typeof a?!0:a);return b},deleteContents:function(a){this.collapsed||h(this,0,null,a)},extractContents:function(a,b){var d=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||h(this,1,d,a,"undefined"==typeof b?!0:b);return d},equals:function(a){return this.startOffset===a.startOffset&&this.endOffset===a.endOffset&&this.startContainer.equals(a.startContainer)&&this.endContainer.equals(a.endContainer)},createBookmark:function(a){function b(a){return a.getAscendant(function(a){var e;
if(e=a.data&&a.data("cke-temp"))e=-1===CKEDITOR.tools.array.indexOf(["cke_copybin","cke_pastebin"],a.getAttribute("id"));return e},!0)}var d=this.startContainer,g=this.endContainer,c=this.collapsed,f,m,k,n;f=this.document.createElement("span");f.data("cke-bookmark",1);f.setStyle("display","none");f.setHtml("\x26nbsp;");a&&(k="cke_bm_"+CKEDITOR.tools.getNextNumber(),f.setAttribute("id",k+(c?"C":"S")));c||(m=f.clone(),m.setHtml("\x26nbsp;"),a&&m.setAttribute("id",k+"E"),n=this.clone(),b(g)&&(g=b(g),
n.moveToPosition(g,CKEDITOR.POSITION_AFTER_END)),n.collapse(),n.insertNode(m));n=this.clone();b(d)&&(g=b(d),n.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START));n.collapse(!0);n.insertNode(f);m?(this.setStartAfter(f),this.setEndBefore(m)):this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END);return{startNode:a?k+(c?"C":"S"):f,endNode:a?k+"E":m,serializable:a,collapsed:c}},createBookmark2:function(){function a(e){var b=e.container,l=e.offset,g;g=b;var c=l;g=g.type!=CKEDITOR.NODE_ELEMENT||0===c||c==g.getChildCount()?
0:g.getChild(c-1).type==CKEDITOR.NODE_TEXT&&g.getChild(c).type==CKEDITOR.NODE_TEXT;g&&(b=b.getChild(l-1),l=b.getLength());if(b.type==CKEDITOR.NODE_ELEMENT&&0<l){a:{for(g=b;l--;)if(c=g.getChild(l).getIndex(!0),0<=c){l=c;break a}l=-1}l+=1}if(b.type==CKEDITOR.NODE_TEXT){g=b;for(c=0;(g=g.getPrevious())&&g.type==CKEDITOR.NODE_TEXT;)c+=g.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;g=c;b.isEmpty()?(c=b.getPrevious(d),g?(l=g,b=c?c.getNext():b.getParent().getFirst()):(b=b.getParent(),
l=c?c.getIndex(!0)+1:0)):l+=g}e.container=b;e.offset=l}function b(a,e){var d=e.getCustomData("cke-fillingChar");if(d){var l=a.container;d.equals(l)&&(a.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=a.offset&&(a.offset=l.getIndex(),a.container=l.getParent()))}}var d=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(d){var g=this.collapsed,c={container:this.startContainer,offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};d&&(a(c),b(c,this.root),
g||(a(f),b(f,this.root)));return{start:c.container.getAddress(d),end:g?null:f.container.getAddress(d),startOffset:c.offset,endOffset:f.offset,normalized:d,collapsed:g,is2:!0}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),d=a.startOffset,g=a.end&&this.document.getByAddress(a.end,a.normalized);a=a.endOffset;this.setStart(b,d);g?this.setEnd(g,a):this.collapse(!0)}else b=(d=a.serializable)?this.document.getById(a.startNode):a.startNode,a=d?this.document.getById(a.endNode):
a.endNode,this.setStartBefore(b),b.remove(),a?(this.setEndBefore(a),a.remove()):this.collapse(!0)},getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,d=this.startOffset,g=this.endOffset,c;if(a.type==CKEDITOR.NODE_ELEMENT)if(c=a.getChildCount(),c>d)a=a.getChild(d);else if(1>c)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}if(b.type==CKEDITOR.NODE_ELEMENT)if(c=b.getChildCount(),c>g)b=b.getChild(g).getPreviousSourceNode(!0);
else if(1>c)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b)}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var d=this.startContainer,g=this.endContainer,d=d.equals(g)?a&&d.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?d.getChild(this.startOffset):d:d.getCommonAncestor(g);return b&&!d.is?d.getParent():d},optimize:function(){var a=this.startContainer,b=this.startOffset;
a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&b.is&&b.is("span")&&b.data("cke-bookmark")&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,
b){var d=this.startContainer,g=this.startOffset,c=this.collapsed;if((!a||c)&&d&&d.type==CKEDITOR.NODE_TEXT){if(g)if(g>=d.getLength())g=d.getIndex()+1,d=d.getParent();else{var f=d.split(g),g=d.getIndex()+1,d=d.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(f,this.endOffset-this.startOffset):d.equals(this.endContainer)&&(this.endOffset+=1)}else g=d.getIndex(),d=d.getParent();this.setStart(d,g);if(c){this.collapse(!0);return}}d=this.endContainer;g=this.endOffset;b||c||!d||d.type!=
CKEDITOR.NODE_TEXT||(g?(g>=d.getLength()||d.split(g),g=d.getIndex()+1):g=d.getIndex(),d=d.getParent(),this.setEnd(d,g))},enlarge:function(a,b){function d(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var g=new RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var c=1;case CKEDITOR.ENLARGE_ELEMENT:var f=function(a,e){var b=new CKEDITOR.dom.range(k);b.setStart(a,e);b.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);var b=new CKEDITOR.dom.walker(b),d;for(b.guard=
function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};d=b.next();){if(d.type!=CKEDITOR.NODE_TEXT)return!1;K=d!=a?d.getText():d.substring(e);if(g.test(K))return!1}return!0};if(this.collapsed)break;var m=this.getCommonAncestor(),k=this.root,n,h,p,y,A,C=!1,F,K;F=this.startContainer;var D=this.startOffset;F.type==CKEDITOR.NODE_TEXT?(D&&(F=!CKEDITOR.tools.trim(F.substring(0,D)).length&&F,C=!!F),F&&((y=F.getPrevious())||(p=F.getParent()))):(D&&(y=F.getChild(D-1)||F.getLast()),y||(p=F));
for(p=d(p);p||y;){if(p&&!y){!A&&p.equals(m)&&(A=!0);if(c?p.isBlockBoundary():!k.contains(p))break;C&&"inline"==p.getComputedStyle("display")||(C=!1,A?n=p:this.setStartBefore(p));y=p.getPrevious()}for(;y;)if(F=!1,y.type==CKEDITOR.NODE_COMMENT)y=y.getPrevious();else{if(y.type==CKEDITOR.NODE_TEXT)K=y.getText(),g.test(K)&&(y=null),F=/[\s\ufeff]$/.test(K);else if((y.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||b&&y.is("br"))&&!y.data("cke-bookmark"))if(C&&CKEDITOR.dtd.$removeEmpty[y.getName()]){K=y.getText();
if(g.test(K))y=null;else for(var D=y.$.getElementsByTagName("*"),H=0,G;G=D[H++];)if(!CKEDITOR.dtd.$removeEmpty[G.nodeName.toLowerCase()]){y=null;break}y&&(F=!!K.length)}else y=null;F&&(C?A?n=p:p&&this.setStartBefore(p):C=!0);if(y){F=y.getPrevious();if(!p&&!F){p=y;y=null;break}y=F}else p=null}p&&(p=d(p.getParent()))}F=this.endContainer;D=this.endOffset;p=y=null;A=C=!1;F.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(F.substring(D)).length?C=!0:(C=!F.getLength(),D==F.getLength()?(y=F.getNext())||(p=F.getParent()):
f(F,D)&&(p=F.getParent())):(y=F.getChild(D))||(p=F);for(;p||y;){if(p&&!y){!A&&p.equals(m)&&(A=!0);if(c?p.isBlockBoundary():!k.contains(p))break;C&&"inline"==p.getComputedStyle("display")||(C=!1,A?h=p:p&&this.setEndAfter(p));y=p.getNext()}for(;y;){F=!1;if(y.type==CKEDITOR.NODE_TEXT)K=y.getText(),f(y,0)||(y=null),F=/^[\s\ufeff]/.test(K);else if(y.type==CKEDITOR.NODE_ELEMENT){if((0<y.$.offsetWidth||b&&y.is("br"))&&!y.data("cke-bookmark"))if(C&&CKEDITOR.dtd.$removeEmpty[y.getName()]){K=y.getText();if(g.test(K))y=
null;else for(D=y.$.getElementsByTagName("*"),H=0;G=D[H++];)if(!CKEDITOR.dtd.$removeEmpty[G.nodeName.toLowerCase()]){y=null;break}y&&(F=!!K.length)}else y=null}else F=1;F&&C&&(A?h=p:this.setEndAfter(p));if(y){F=y.getNext();if(!p&&!F){p=y;y=null;break}y=F}else p=null}p&&(p=d(p.getParent()))}n&&h&&(m=n.contains(h)?h:n,this.setStartBefore(m),this.setEndAfter(m));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:p=new CKEDITOR.dom.range(this.root);k=this.root;p.setStartAt(k,
CKEDITOR.POSITION_AFTER_START);p.setEnd(this.startContainer,this.startOffset);p=new CKEDITOR.dom.walker(p);var B,O,L=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),N=null,P=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&"false"==a.getAttribute("contenteditable"))if(N){if(N.equals(a)){N=null;return}}else N=a;else if(N)return;var e=L(a);e||(B=a);return e},c=function(a){var e=P(a);!e&&a.is&&a.is("br")&&(O=a);return e};p.guard=P;p=p.lastBackward();B=B||k;this.setStartAt(B,
!B.is("br")&&(!p&&this.checkStartOfBlock()||p&&B.contains(p))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){p=this.clone();p=new CKEDITOR.dom.walker(p);var J=CKEDITOR.dom.walker.whitespaces(),E=CKEDITOR.dom.walker.bookmark();p.evaluator=function(a){return!J(a)&&!E(a)};if((p=p.previous())&&p.type==CKEDITOR.NODE_ELEMENT&&p.is("br"))break}p=this.clone();p.collapse();p.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);p=new CKEDITOR.dom.walker(p);p.guard=
a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?c:P;B=N=O=null;p=p.lastForward();B=B||k;this.setEndAt(B,!p&&this.checkEndOfBlock()||p&&B.contains(p)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);O&&this.setEndAfter(O)}},shrink:function(a,b,d){var g="boolean"===typeof d?d:d&&"boolean"===typeof d.shrinkOnBlockBoundary?d.shrinkOnBlockBoundary:!0,c=d&&d.skipBogus;if(!this.collapsed){a=a||CKEDITOR.SHRINK_TEXT;var f=this.clone(),m=this.startContainer,k=this.endContainer,n=this.startOffset,h=this.endOffset,
p=d=1;m&&m.type==CKEDITOR.NODE_TEXT&&(n?n>=m.getLength()?f.setStartAfter(m):(f.setStartBefore(m),d=0):f.setStartBefore(m));k&&k.type==CKEDITOR.NODE_TEXT&&(h?h>=k.getLength()?f.setEndAfter(k):(f.setEndAfter(k),p=0):f.setEndBefore(k));var f=new CKEDITOR.dom.walker(f),y=CKEDITOR.dom.walker.bookmark(),A=CKEDITOR.dom.walker.bogus();f.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var C;f.guard=function(b,d){if(c&&A(b)||y(b))return!0;if(a==CKEDITOR.SHRINK_ELEMENT&&
b.type==CKEDITOR.NODE_TEXT||d&&b.equals(C)||!1===g&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return!1;d||b.type!=CKEDITOR.NODE_ELEMENT||(C=b);return!0};d&&(m=f[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(m,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);p&&(f.reset(),(f=f[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(f,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));
return!(!d&&!p)}},insertNode:function(a){this.optimizeBookmark();this.trim(!1,!0);var b=this.startContainer,d=b.getChild(this.startOffset);d?a.insertBefore(d):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(!0)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,
a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(a,b){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(b=a.getIndex(),a=a.getParent());this._setStartContainer(a);this.startOffset=b;this.endContainer||(this._setEndContainer(a),this.endOffset=b);c(this)},setEnd:function(a,b){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(b=a.getIndex()+1,a=a.getParent());this._setEndContainer(a);this.endOffset=b;this.startContainer||(this._setStartContainer(a),
this.startOffset=b);c(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,
a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}c(this)},setEndAt:function(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}c(this)},fixBlock:function(a,
b){var d=this.createBookmark(),g=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(g);g.trim();this.insertNode(g);var c=g.getBogus();c&&c.remove();g.appendBogus();this.moveToBookmark(d);return g},splitBlock:function(a,b){var d=new CKEDITOR.dom.elementPath(this.startContainer,this.root),g=new CKEDITOR.dom.elementPath(this.endContainer,this.root),c=d.block,f=g.block,m=null;if(!d.blockLimit.equals(g.blockLimit))return null;"br"!=
a&&(c||(c=this.fixBlock(!0,a),f=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),f||(f=this.fixBlock(!1,a)));d=c&&this.checkStartOfBlock();g=f&&this.checkEndOfBlock();this.deleteContents();c&&c.equals(f)&&(g?(m=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END),f=null):d?(m=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START),c=null):(f=this.splitElement(c,b||
!1),c.is("ul","ol")||c.appendBogus()));return{previousBlock:c,nextBlock:f,wasStartOfBlock:d,wasEndOfBlock:g,elementPath:m}},splitElement:function(a,b){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var d=this.extractContents(!1,b||!1),g=a.clone(!1,b||!1);d.appendTo(g);g.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return g},removeEmptyBlocksAtEnd:function(){function a(e){return function(a){return b(a)||d(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable()||
e.is("table")&&a.is("caption")?!1:!0}}var b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(!1);return function(b){for(var d=this.createBookmark(),g=this[b?"endPath":"startPath"](),c=g.block||g.blockLimit,f;c&&!c.equals(g.root)&&!c.getFirst(a(c));)f=c.getParent(),this[b?"setEndAt":"setStartAt"](c,CKEDITOR.POSITION_AFTER_END),c.remove(1),c=f;this.moveToBookmark(d)}}(),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,d){var g=d==CKEDITOR.START,c=this.clone();c.collapse(g);c[g?"setStartAt":"setEndAt"](b,g?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=a(g);return c[g?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,b=this.startOffset;CKEDITOR.env.ie&&b&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.ltrim(a.substring(0,b)),k.test(a)&&this.trim(0,1));this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,
this.root);b=this.clone();b.collapse(!0);b.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(b);a.evaluator=f();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,b=this.endOffset;CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.rtrim(a.substring(b)),k.test(a)&&this.trim(1,0));this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);b=this.clone();b.collapse(!1);b.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);
a=new CKEDITOR.dom.walker(b);a.evaluator=f();return a.checkForward()},getPreviousNode:function(a,b,d){var g=this.clone();g.collapse(1);g.setStartAt(d||this.root,CKEDITOR.POSITION_AFTER_START);d=new CKEDITOR.dom.walker(g);d.evaluator=a;d.guard=b;return d.previous()},getNextNode:function(a,b,d){var g=this.clone();g.collapse();g.setEndAt(d||this.root,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(g);d.evaluator=a;d.guard=b;return d.next()},checkReadOnly:function(){function a(b,e){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(e)||b.equals(e)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,d=this.endContainer;return!(a(b,d)&&a(d,b))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(!1))return this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),
!0;for(var g=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&k.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);g=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable())this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),g=1;else if(b&&a.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);
else if("false"==a.getAttribute("contenteditable")&&a.is(CKEDITOR.dtd.$block))return this.setStartBefore(a),this.setEndAfter(a),!0;var c=a,f=g,m=void 0;c.type==CKEDITOR.NODE_ELEMENT&&c.isEditable(!1)&&(m=c[b?"getLast":"getFirst"](d));f||m||(m=c[b?"getPrevious":"getNext"](d));a=m}return!!g},moveToClosestEditablePosition:function(a,b){var d,g=0,c,f,m=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(d=new CKEDITOR.dom.range(this.root),d.moveToPosition(a,m[b?0:1])):d=this.clone();if(a&&
!a.is(CKEDITOR.dtd.$block))g=1;else if(c=d[b?"getNextEditableNode":"getPreviousEditableNode"]())g=1,(f=c.type==CKEDITOR.NODE_ELEMENT)&&c.is(CKEDITOR.dtd.$block)&&"false"==c.getAttribute("contenteditable")?(d.setStartAt(c,CKEDITOR.POSITION_BEFORE_START),d.setEndAt(c,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&f&&c.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(d.setEnd(c,0),d.collapse()):d.moveToPosition(c,m[b?1:0]);g&&this.moveToRange(d);return!!g},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},
moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,!0)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),b=CKEDITOR.dom.walker.bookmark(!1,!0),d=CKEDITOR.dom.walker.whitespaces(!0);a.evaluator=function(a){return d(a)&&b(a)};var g=a.next();a.reset();return g&&g.equals(a.previous())?g:null},getTouchedStartNode:function(){var a=this.startContainer;
return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:g(),getPreviousEditableNode:g(1),_getTableElement:function(a){a=a||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var b=this.getTouchedStartNode(),d=this.getTouchedEndNode(),g=b.getAscendant("table",!0),d=d.getAscendant("table",!0);return g&&!this.root.contains(g)?
null:this.getEnclosedNode()?this.getEnclosedNode().getAscendant(a,!0):g&&d&&(g.equals(d)||g.contains(d)||d.contains(g))?b.getAscendant(a,!0):null},scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),b,d,g,c=this.clone();c.optimize();(g=c.startContainer.type==CKEDITOR.NODE_TEXT)?(d=c.startContainer.getText(),b=c.startContainer.split(c.startOffset),a.insertAfter(c.startContainer)):c.insertNode(a);a.scrollIntoView();g&&(c.startContainer.setText(d),
b.remove());a.remove()},getClientRects:function(){function a(b,d){var e=CKEDITOR.tools.array.map(b,function(a){return a}),g=new CKEDITOR.dom.range(d.root),c,f,l;d.startContainer instanceof CKEDITOR.dom.element&&(f=0===d.startOffset&&d.startContainer.hasAttribute("data-widget"));d.endContainer instanceof CKEDITOR.dom.element&&(l=(l=d.endOffset===(d.endContainer.getChildCount?d.endContainer.getChildCount():d.endContainer.length))&&d.endContainer.hasAttribute("data-widget"));f&&g.setStart(d.startContainer.getParent(),
d.startContainer.getIndex());l&&g.setEnd(d.endContainer.getParent(),d.endContainer.getIndex()+1);if(f||l)d=g;g=d.cloneContents().find("[data-cke-widget-id]").toArray();if(g=CKEDITOR.tools.array.map(g,function(a){var b=d.root.editor;a=a.getAttribute("data-cke-widget-id");return b.widgets.instances[a].element}))return g=CKEDITOR.tools.array.map(g,function(a){var b;b=a.getParent().hasClass("cke_widget_wrapper")?a.getParent():a;c=this.root.getDocument().$.createRange();c.setStart(b.getParent().$,b.getIndex());
c.setEnd(b.getParent().$,b.getIndex()+1);b=c.getClientRects();b.widgetRect=a.getClientRect();return b},d),CKEDITOR.tools.array.forEach(g,function(a){function b(g){CKEDITOR.tools.array.forEach(e,function(b,c){var f=CKEDITOR.tools.objectCompare(a[g],b);f||(f=CKEDITOR.tools.objectCompare(a.widgetRect,b));f&&(Array.prototype.splice.call(e,c,a.length-g,a.widgetRect),d=!0)});d||(g<e.length-1?b(g+1):e.push(a.widgetRect))}var d;b(0)}),e}function b(a,d,e){var c;d.collapsed?e.startContainer instanceof CKEDITOR.dom.element?
(a=e.checkStartOfBlock(),c=new CKEDITOR.dom.text("​"),a?e.startContainer.append(c,!0):0===e.startOffset?c.insertBefore(e.startContainer.getFirst()):(e=e.startContainer.getChildren().getItem(e.startOffset-1),c.insertAfter(e)),d.setStart(c.$,0),d.setEnd(c.$,0),a=d.getClientRects(),c.remove()):e.startContainer instanceof CKEDITOR.dom.text&&(""===e.startContainer.getText()?(e.startContainer.setText("​"),a=d.getClientRects(),e.startContainer.setText("")):a=[g(e.createBookmark())]):a=[g(e.createBookmark())];
return a}function d(a,b,e){a=CKEDITOR.tools.extend({},a);b&&(a=CKEDITOR.tools.getAbsoluteRectPosition(e.document.getWindow(),a));!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return a}function g(a){var b=a.startNode;a=a.endNode;var d;b.setText("​");b.removeStyle("display");a?(a.setText("​"),a.removeStyle("display"),d=[b.getClientRect(),a.getClientRect()],a.remove()):d=[b.getClientRect(),b.getClientRect()];b.remove();return{right:Math.max(d[0].right,d[1].right),bottom:Math.max(d[0].bottom,
d[1].bottom),left:Math.min(d[0].left,d[1].left),top:Math.min(d[0].top,d[1].top),width:Math.abs(d[0].left-d[1].left),height:Math.max(d[0].bottom,d[1].bottom)-Math.min(d[0].top,d[1].top)}}return void 0!==this.document.getSelection?function(g){var c=this.root.getDocument().$.createRange(),f;c.setStart(this.startContainer.$,this.startOffset);c.setEnd(this.endContainer.$,this.endOffset);f=c.getClientRects();f=a(f,this);f.length||(f=b(f,c,this));return CKEDITOR.tools.array.map(f,function(a){return d(a,
g,this)},this)}:function(a){return[d(g(this.createBookmark()),a,this)]}}(),_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a},_find:function(a,b){var d=this.getCommonAncestor(),g=this.getBoundaryNodes(),c=[],f,m,k,n;if(d&&d.find)for(m=d.find(a),f=0;f<m.count();f++)if(d=m.getItem(f),b||!d.isReadOnly())k=d.getPosition(g.startNode)&CKEDITOR.POSITION_FOLLOWING||g.startNode.equals(d),n=d.getPosition(g.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED||
g.endNode.equals(d),k&&n&&c.push(d);return c}};CKEDITOR.dom.range.mergeRanges=function(a){return CKEDITOR.tools.array.reduce(a,function(a,b){var d=a[a.length-1],e=!1;b=b.clone();b.enlarge(CKEDITOR.ENLARGE_ELEMENT);if(d){var g=new CKEDITOR.dom.range(b.root),e=new CKEDITOR.dom.walker(g),c=CKEDITOR.dom.walker.whitespaces();g.setStart(d.endContainer,d.endOffset);g.setEnd(b.startContainer,b.startOffset);for(g=e.next();c(g)||b.endContainer.equals(g);)g=e.next();e=!g}e?d.setEnd(b.endContainer,b.endOffset):
a.push(b);return a},[])}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,"use strict",function(){function c(a){1>arguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||
(this._={}))}function h(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return b}function f(a,b,g,c){a:{null==c&&(c=h(g));for(var m;m=c.shift();)if(m.getDtd().p){c={element:m,remaining:c};break a}c=null}if(!c)return 0;if((m=CKEDITOR.filter.instances[c.element.data("cke-filter")])&&!m.check(b))return f(a,b,g,c.remaining);b=new CKEDITOR.dom.range(c.element);b.selectNodeContents(c.element);b=b.createIterator();b.enlargeBr=
a.enlargeBr;b.enforceRealBlocks=a.enforceRealBlocks;b.activeFilter=b.filter=m;a._.nestedEditable={element:c.element,container:g,remaining:c.remaining,iterator:b};return 1}function a(a,b,g){if(!b)return!1;a=a.clone();a.collapse(!g);return a.checkBoundaryOfElement(b,g?CKEDITOR.START:CKEDITOR.END)}var g=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.dom.walker.whitespaces(!0),k=function(a){return m(a)&&n(a)},b={dd:1,dt:1,li:1};c.prototype={getNextParagraph:function(d){var e,c,n,h,t;
d=d||"p";if(this._.nestedEditable){if(e=this._.nestedEditable.iterator.getNextParagraph(d))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,e;this.activeFilter=this.filter;if(f(this,d,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(d);this._.nestedEditable=null}if(!this.range.root.getDtd()[d])return null;if(!this._.started){var q=this.range.clone();
c=q.startPath();var u=q.endPath(),z=!q.collapsed&&a(q,c.block),r=!q.collapsed&&a(q,u.block,1);q.shrink(CKEDITOR.SHRINK_ELEMENT,!0);z&&q.setStartAt(c.block,CKEDITOR.POSITION_BEFORE_END);r&&q.setEndAt(u.block,CKEDITOR.POSITION_AFTER_START);c=q.endContainer.hasAscendant("pre",!0)||q.startContainer.hasAscendant("pre",!0);q.enlarge(this.forceBrBreak&&!c||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);q.collapsed||(c=new CKEDITOR.dom.walker(q.clone()),u=CKEDITOR.dom.walker.bookmark(!0,
!0),c.evaluator=u,this._.nextNode=c.next(),c=new CKEDITOR.dom.walker(q.clone()),c.evaluator=u,c=c.previous(),this._.lastNode=c.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))),this._.lastNode&&q.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=q.document.createText(""),this._.lastNode.insertAfter(c)),q=null);this._.started=1;c=q}u=this._.nextNode;q=this._.lastNode;for(this._.nextNode=null;u;){var z=0,r=u.hasAscendant("pre"),w=u.type!=CKEDITOR.NODE_ELEMENT,p=0;if(w)u.type==CKEDITOR.NODE_TEXT&&g.test(u.getText())&&(w=0);else{var y=u.getName();if(CKEDITOR.dtd.$block[y]&&"false"==u.getAttribute("contenteditable")){e=
u;f(this,d,e);break}else if(u.isBlockBoundary(this.forceBrBreak&&!r&&{br:1})){if("br"==y)w=1;else if(!c&&!u.getChildCount()&&"hr"!=y){e=u;n=u.equals(q);break}c&&(c.setEndAt(u,CKEDITOR.POSITION_BEFORE_START),"br"!=y&&(this._.nextNode=u));z=1}else{if(u.getFirst()){c||(c=this.range.clone(),c.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));u=u.getFirst();continue}w=1}}w&&!c&&(c=this.range.clone(),c.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));n=(!z||w)&&u.equals(q);if(c&&!z)for(;!u.getNext(k)&&!n;){y=
u.getParent();if(y.isBlockBoundary(this.forceBrBreak&&!r&&{br:1})){z=1;w=0;n||y.equals(q);c.setEndAt(y,CKEDITOR.POSITION_BEFORE_END);break}u=y;w=1;n=u.equals(q);p=1}w&&c.setEndAt(u,CKEDITOR.POSITION_AFTER_END);u=this._getNextSourceNode(u,p,q);if((n=!u)||z&&c)break}if(!e){if(!c)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;e=new CKEDITOR.dom.elementPath(c.startContainer,c.root);u=e.blockLimit;z={div:1,th:1,td:1};e=e.block;!e&&u&&!this.enforceRealBlocks&&z[u.getName()]&&
c.checkStartOfBlock()&&c.checkEndOfBlock()&&!u.equals(c.root)?e=u:!e||this.enforceRealBlocks&&e.is(b)?(e=this.range.document.createElement(d),c.extractContents().appendTo(e),e.trim(),c.insertNode(e),h=t=!0):"li"!=e.getName()?c.checkStartOfBlock()&&c.checkEndOfBlock()||(e=e.clone(!1),c.extractContents().appendTo(e),e.trim(),t=c.splitBlock(),h=!t.wasStartOfBlock,t=!t.wasEndOfBlock,c.insertNode(e)):n||(this._.nextNode=e.equals(q)?null:this._getNextSourceNode(c.getBoundaryNodes().endNode,1,q))}h&&(h=
e.getPrevious())&&h.type==CKEDITOR.NODE_ELEMENT&&("br"==h.getName()?h.remove():h.getLast()&&"br"==h.getLast().$.nodeName.toLowerCase()&&h.getLast().remove());t&&(h=e.getLast())&&h.type==CKEDITOR.NODE_ELEMENT&&"br"==h.getName()&&(!CKEDITOR.env.needsBrFiller||h.getPrevious(m)||h.getNext(m))&&h.remove();this._.nextNode||(this._.nextNode=n||e.equals(q)||!q?null:this._getNextSourceNode(e,1,q));return e},_getNextSourceNode:function(a,b,g){function c(a){return!(a.equals(g)||a.equals(f))}var f=this.range.root;
for(a=a.getNextSourceNode(b,null,c);!m(a);)a=a.getNextSourceNode(b,null,c);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new c(this)}}(),CKEDITOR.command=function(c,h){this.uiItems=[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&c.focus();return!1===this.fire("exec")?!0:!1!==h.exec.call(this,c,a)};this.refresh=function(a,g){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!g.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:g})?!0:h.refresh&&!1!==h.refresh.apply(this,arguments)};var f;this.checkAllowed=function(a){return a||"boolean"!=typeof f?f=c.activeFilter.checkFeature(this):f};CKEDITOR.tools.extend(this,h,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!h.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype=
{enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(c){if(this.state==c||c!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=c;this.fire("state");return!0},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):
this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"\x3c!DOCTYPE html\x3e",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),
extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function c(a,b,d,e,g){var c,f;a=[];for(c in b){f=b[c];f="boolean"==typeof f?{}:"function"==typeof f?{match:f}:H(f);"$"!=c.charAt(0)&&(f.elements=c);d&&(f.featureName=d.toLowerCase());var l=f;l.elements=n(l.elements,/\s+/)||null;l.propertiesOnly=l.propertiesOnly||!0===l.elements;var m=/\s*,\s*/,k=void 0;for(k in O){l[k]=n(l[k],
m)||null;var E=l,h=L[k],u=n(l[L[k]],m),J=l[k],y=[],G=!0,v=void 0;u?G=!1:u={};for(v in J)"!"==v.charAt(0)&&(v=v.slice(1),y.push(v),u[v]=!0,G=!1);for(;v=y.pop();)J[v]=J["!"+v],delete J["!"+v];E[h]=(G?!1:u)||null}l.match=l.match||null;e.push(f);a.push(f)}b=g.elements;g=g.generic;var I;d=0;for(e=a.length;d<e;++d){c=H(a[d]);f=!0===c.classes||!0===c.styles||!0===c.attributes;l=c;k=h=m=void 0;for(m in O)l[m]=z(l[m]);E=!0;for(k in L){m=L[k];h=l[m];u=[];J=void 0;for(J in h)-1<J.indexOf("*")?u.push(new RegExp("^"+
J.replace(/\*/g,".*")+"$")):u.push(J);h=u;h.length&&(l[m]=h,E=!1)}l.nothingRequired=E;l.noProperties=!(l.attributes||l.classes||l.styles);if(!0===c.elements||null===c.elements)g[f?"unshift":"push"](c);else for(I in l=c.elements,delete c.elements,l)if(b[I])b[I][f?"unshift":"push"](c);else b[I]=[c]}}function h(a,b,d,e){if(!a.match||a.match(b))if(e||k(a,b))if(a.propertiesOnly||(d.valid=!0),d.allAttributes||(d.allAttributes=f(a.attributes,b.attributes,d.validAttributes)),d.allStyles||(d.allStyles=f(a.styles,
b.styles,d.validStyles)),!d.allClasses){a=a.classes;b=b.classes;e=d.validClasses;if(a)if(!0===a)a=!0;else{for(var g=0,c=b.length,l;g<c;++g)l=b[g],e[l]||(e[l]=a(l));a=!1}else a=!1;d.allClasses=a}}function f(a,b,d){if(!a)return!1;if(!0===a)return!0;for(var e in b)d[e]||(d[e]=a(e));return!1}function a(a,b,d){if(!a.match||a.match(b)){if(a.noProperties)return!1;d.hadInvalidAttribute=g(a.attributes,b.attributes)||d.hadInvalidAttribute;d.hadInvalidStyle=g(a.styles,b.styles)||d.hadInvalidStyle;a=a.classes;
b=b.classes;if(a){for(var e=!1,c=!0===a,f=b.length;f--;)if(c||a(b[f]))b.splice(f,1),e=!0;a=e}else a=!1;d.hadInvalidClass=a||d.hadInvalidClass}}function g(a,b){if(!a)return!1;var d=!1,e=!0===a,g;for(g in b)if(e||a(g))delete b[g],d=!0;return d}function m(a,b,d){if(a.disabled||a.customConfig&&!d||!b)return!1;a._.cachedChecks={};return!0}function n(a,b){if(!a)return!1;if(!0===a)return a;if("string"==typeof a)return a=G(a),"*"==a?!0:CKEDITOR.tools.convertArrayToObject(a.split(b));if(CKEDITOR.tools.isArray(a))return a.length?
CKEDITOR.tools.convertArrayToObject(a):!1;var d={},e=0,g;for(g in a)d[g]=a[g],e++;return e?d:!1}function k(a,d){if(a.nothingRequired)return!0;var e,g,c,f;if(c=a.requiredClasses)for(f=d.classes,e=0;e<c.length;++e)if(g=c[e],"string"==typeof g){if(-1==CKEDITOR.tools.indexOf(f,g))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(f,g))return!1;return b(d.styles,a.requiredStyles)&&b(d.attributes,a.requiredAttributes)}function b(a,b){if(!b)return!0;for(var d=0,e;d<b.length;++d)if(e=b[d],"string"==
typeof e){if(!(e in a))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,e))return!1;return!0}function d(a){if(!a)return{};a=a.split(/\s*,\s*/).sort();for(var b={};a.length;)b[a.shift()]="cke-test";return b}function e(a){var b,d,e,g,c={},f=1;for(a=G(a);b=a.match(N);)(d=b[2])?(e=l(d,"styles"),g=l(d,"attrs"),d=l(d,"classes")):e=g=d=null,c["$"+f++]={elements:b[1],classes:d,styles:e,attributes:g},a=a.slice(b[0].length);return c}function l(a,b){var d=a.match(P[b]);return d?G(d[1]):null}
function v(a){var b=a.styleBackup=a.attributes.style,d=a.classBackup=a.attributes["class"];a.styles||(a.styles=CKEDITOR.tools.parseCssText(b||"",1));a.classes||(a.classes=d?d.split(/\s+/):[])}function x(b,d,e,g){var c=0,f;g.toHtml&&(d.name=d.name.replace(J,"$1"));if(g.doCallbacks&&b.elementCallbacks){a:{f=b.elementCallbacks;for(var l=0,m=f.length,k;l<m;++l)if(k=f[l](d)){f=k;break a}f=void 0}if(f)return f}if(g.doTransform&&(f=b._.transformations[d.name])){v(d);for(l=0;l<f.length;++l)y(b,d,f[l]);q(d)}if(g.doFilter){a:{l=
d.name;m=b._;b=m.allowedRules.elements[l];f=m.allowedRules.generic;l=m.disallowedRules.elements[l];m=m.disallowedRules.generic;k=g.skipRequired;var n={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1},G,I;if(b||f){v(d);if(l)for(G=0,I=l.length;G<I;++G)if(!1===a(l[G],d,n)){b=null;break a}if(m)for(G=0,I=m.length;G<I;++G)a(m[G],d,n);if(b)for(G=0,I=b.length;G<I;++G)h(b[G],d,n,k);if(f)for(G=
0,I=f.length;G<I;++G)h(f[G],d,n,k);b=n}else b=null}if(!b||!b.valid)return e.push(d),1;I=b.validAttributes;var H=b.validStyles;f=b.validClasses;var l=d.attributes,D=d.styles,m=d.classes;k=d.classBackup;var M=d.styleBackup,A,N,r=[],n=[],B=/^data-cke-/;G=!1;delete l.style;delete l["class"];delete d.classBackup;delete d.styleBackup;if(!b.allAttributes)for(A in l)I[A]||(B.test(A)?A==(N=A.replace(/^data-cke-saved-/,""))||I[N]||(delete l[A],G=!0):(delete l[A],G=!0));if(!b.allStyles||b.hadInvalidStyle){for(A in D)b.allStyles||
H[A]?r.push(A+":"+D[A]):G=!0;r.length&&(l.style=r.sort().join("; "))}else M&&(l.style=M);if(!b.allClasses||b.hadInvalidClass){for(A=0;A<m.length;++A)(b.allClasses||f[m[A]])&&n.push(m[A]);n.length&&(l["class"]=n.sort().join(" "));k&&n.length<k.split(/\s+/).length&&(G=!0)}else k&&(l["class"]=k);G&&(c=1);if(!g.skipFinalValidation&&!u(d))return e.push(d),1}g.toHtml&&(d.name=d.name.replace(E,"cke:$1"));return c}function t(a){var b=[],d;for(d in a)-1<d.indexOf("*")&&b.push(d.replace(/\*/g,".*"));return b.length?
new RegExp("^(?:"+b.join("|")+")$"):null}function q(a){var b=a.attributes,d;delete b.style;delete b["class"];if(d=CKEDITOR.tools.writeCssText(a.styles,!0))b.style=d;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function u(a){switch(a.name){case "a":if(!(a.children.length||a.attributes.name||a.attributes.id))return!1;break;case "img":if(!a.attributes.src)return!1}return!0}function z(a){if(!a)return!1;if(!0===a)return!0;var b=t(a);return function(d){return d in a||b&&d.match(b)}}function r(){return new CKEDITOR.htmlParser.element("br")}
function w(a){return a.type==CKEDITOR.NODE_ELEMENT&&("br"==a.name||D.$block[a.name])}function p(a,b,d){var e=a.name;if(D.$empty[e]||!a.children.length)"hr"==e&&"br"==b?a.replaceWith(r()):(a.parent&&d.push({check:"it",el:a.parent}),a.remove());else if(D.$block[e]||"tr"==e)if("br"==b)a.previous&&!w(a.previous)&&(b=r(),b.insertBefore(a)),a.next&&!w(a.next)&&(b=r(),b.insertAfter(a)),a.replaceWithChildren();else{var e=a.children,g;b:{g=D[b];for(var c=0,f=e.length,l;c<f;++c)if(l=e[c],l.type==CKEDITOR.NODE_ELEMENT&&
!g[l.name]){g=!1;break b}g=!0}if(g)a.name=b,a.attributes={},d.push({check:"parent-down",el:a});else{g=a.parent;for(var c=g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==g.name,m,k,f=e.length;0<f;)l=e[--f],c&&(l.type==CKEDITOR.NODE_TEXT||l.type==CKEDITOR.NODE_ELEMENT&&D.$inline[l.name])?(m||(m=new CKEDITOR.htmlParser.element(b),m.insertAfter(a),d.push({check:"parent-down",el:m})),m.add(l,0)):(m=null,k=D[g.name]||D.span,l.insertAfter(a),g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||l.type!=CKEDITOR.NODE_ELEMENT||
k[l.name]||d.push({check:"el-up",el:l}));a.remove()}}else e in{style:1,script:1}?a.remove():(a.parent&&d.push({check:"it",el:a.parent}),a.replaceWithChildren())}function y(a,b,d){var e,g;for(e=0;e<d.length;++e)if(g=d[e],!(g.check&&!a.check(g.check,!1)||g.left&&!g.left(b))){g.right(b,I);break}}function A(a,b){var d=b.getDefinition(),e=d.attributes,g=d.styles,c,f,l,m;if(a.name!=d.element)return!1;for(c in e)if("class"==c)for(d=e[c].split(/\s+/),l=a.classes.join("|");m=d.pop();){if(-1==l.indexOf(m))return!1}else if(a.attributes[c]!=
e[c])return!1;for(f in g)if(a.styles[f]!=g[f])return!1;return!0}function C(a,b){var d,e;"string"==typeof a?d=a:a instanceof CKEDITOR.style?e=a:(d=a[0],e=a[1]);return[{element:d,left:e,right:function(a,d){d.transform(a,b)}}]}function F(a){return function(b){return A(b,a)}}function K(a){return function(b,d){d[a](b)}}var D=CKEDITOR.dtd,H=CKEDITOR.tools.copy,G=CKEDITOR.tools.trim,B=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a,b){this.allowedContent=[];this.disallowedContent=
[];this.elementCallbacks=null;this.disabled=!1;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{},cachedChecks:{}};CKEDITOR.filter.instances[this.id]=this;var d=this.editor=a instanceof CKEDITOR.editor?a:null;if(d&&!b){this.customConfig=!0;var e=d.config.allowedContent;!0===e?this.disabled=!0:(e||(this.customConfig=!1),this.allow(e,"config",1),this.allow(d.config.extraAllowedContent,
"extra",1),this.allow(B[d.enterMode]+" "+B[d.shiftEnterMode],"default",1),this.disallow(d.config.disallowedContent))}else this.customConfig=!1,this.allow(b||a,"default",1)};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(a,b,d){if(!m(this,a,d))return!1;var g,f;if("string"==typeof a)a=e(a);else if(a instanceof CKEDITOR.style){if(a.toAllowedContentRules)return this.allow(a.toAllowedContentRules(this.editor),b,d);g=a.getDefinition();a={};d=g.attributes;a[g.element]=g={styles:g.styles,
requiredStyles:g.styles&&CKEDITOR.tools.object.keys(g.styles)};d&&(d=H(d),g.classes=d["class"]?d["class"].split(/\s+/):null,g.requiredClasses=g.classes,delete d["class"],g.attributes=d,g.requiredAttributes=d&&CKEDITOR.tools.object.keys(d))}else if(CKEDITOR.tools.isArray(a)){for(g=0;g<a.length;++g)f=this.allow(a[g],b,d);return f}c(this,a,b,this.allowedContent,this._.allowedRules);return!0},applyTo:function(a,b,d,e){if(this.disabled)return!1;var g=this,c=[],f=this.editor&&this.editor.config.protectedSource,
l,m=!1,k={doFilter:!d,doTransform:!0,doCallbacks:!0,toHtml:b};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if("off"==a.attributes["data-cke-filter"])return!1;if(!b||"span"!=a.name||!~CKEDITOR.tools.object.keys(a.attributes).join("|").indexOf("data-cke-"))if(l=x(g,a,c,k),l&1)m=!0;else if(l&2)return!1}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var d;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));d=[];var n,E,h;if(f)for(E=0;E<
f.length;++E)if((h=e.match(f[E]))&&h[0].length==e.length){d=!0;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);1==e.children.length&&(n=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&x(g,n,d,k);d=!d.length}d||c.push(a)}},null,!0);c.length&&(m=!0);var n;a=[];e=B[e||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var E;d=c.pop();)d.type==CKEDITOR.NODE_ELEMENT?p(d,e,a):d.remove();for(;n=a.pop();)if(d=n.el,d.parent)switch(E=D[d.parent.name]||D.span,n.check){case "it":D.$removeEmpty[d.name]&&
!d.children.length?p(d,e,a):u(d)||p(d,e,a);break;case "el-up":d.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||E[d.name]||p(d,e,a);break;case "parent-down":d.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||E[d.name]||p(d.parent,e,a)}return m},checkFeature:function(a){if(this.disabled||!a)return!0;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=!0},disallow:function(a){if(!m(this,a,!0))return!1;"string"==typeof a&&(a=
e(a));c(this,a,null,this.disallowedContent,this._.disallowedRules);return!0},addContentForms:function(a){if(!this.disabled&&a){var b,d,e=[],g;for(b=0;b<a.length&&!g;++b)d=a[b],("string"==typeof d||d instanceof CKEDITOR.style)&&this.check(d)&&(g=d);if(g){for(b=0;b<a.length;++b)e.push(C(a[b],g));this.addTransformations(e)}}},addElementCallback:function(a){this.elementCallbacks||(this.elementCallbacks=[]);this.elementCallbacks.push(a)},addFeature:function(a){if(this.disabled||!a)return!0;a.toFeature&&
(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return a.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(a.requiredContent):!0},addTransformations:function(a){var b,d;if(!this.disabled&&a){var e=this._.transformations,g;for(g=0;g<a.length;++g){b=a[g];var c=void 0,f=void 0,l=void 0,m=void 0,k=void 0,n=void 0;d=[];for(f=0;f<b.length;++f)l=b[f],"string"==typeof l?(l=
l.split(/\s*:\s*/),m=l[0],k=null,n=l[1]):(m=l.check,k=l.left,n=l.right),c||(c=l,c=c.element?c.element:m?m.match(/^([a-z0-9]+)/i)[0]:c.left.getDefinition().element),k instanceof CKEDITOR.style&&(k=F(k)),d.push({check:m==c?null:m,left:k,right:"string"==typeof n?K(n):n});b=c;e[b]||(e[b]=[]);e[b].push(d)}}},check:function(a,b,g){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(a)){for(var c=a.length;c--;)if(this.check(a[c],b,g))return!0;return!1}var f,l;if("string"==typeof a){l=a+"\x3c"+(!1===b?"0":
"1")+(g?"1":"0")+"\x3e";if(l in this._.cachedChecks)return this._.cachedChecks[l];f=e(a).$1;var m=f.styles,c=f.classes;f.name=f.elements;f.classes=c=c?c.split(/\s*,\s*/):[];f.styles=d(m);f.attributes=d(f.attributes);f.children=[];c.length&&(f.attributes["class"]=c.join(" "));m&&(f.attributes.style=CKEDITOR.tools.writeCssText(f.styles))}else f=a.getDefinition(),m=f.styles,c=f.attributes||{},m&&!CKEDITOR.tools.isEmpty(m)?(m=H(m),c.style=CKEDITOR.tools.writeCssText(m,!0)):m={},f={name:f.element,attributes:c,
classes:c["class"]?c["class"].split(/\s+/):[],styles:m,children:[]};var m=CKEDITOR.tools.clone(f),k=[],n;if(!1!==b&&(n=this._.transformations[f.name])){for(c=0;c<n.length;++c)y(this,f,n[c]);q(f)}x(this,m,k,{doFilter:!0,doTransform:!1!==b,skipRequired:!g,skipFinalValidation:!g});0<k.length?g=!1:((b=f.attributes["class"])&&(f.attributes["class"]=f.attributes["class"].split(" ").sort().join(" ")),g=CKEDITOR.tools.objectCompare(f.attributes,m.attributes,!0),b&&(f.attributes["class"]=b));"string"==typeof a&&
(this._.cachedChecks[l]=g);return g},getAllowedEnterMode:function(){var a=["p","div","br"],b={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(d,e){var g=a.slice(),c;if(this.check(B[d]))return d;for(e||(g=g.reverse());c=g.pop();)if(this.check(c))return b[c];return CKEDITOR.ENTER_BR}}(),clone:function(){var a=new CKEDITOR.filter,b=CKEDITOR.tools.clone;a.allowedContent=b(this.allowedContent);a._.allowedRules=b(this._.allowedRules);a.disallowedContent=b(this.disallowedContent);
a._.disallowedRules=b(this._.disallowedRules);a._.transformations=b(this._.transformations);a.disabled=this.disabled;a.editor=this.editor;return a},destroy:function(){delete CKEDITOR.filter.instances[this.id];delete this._;delete this.allowedContent;delete this.disallowedContent}};var O={styles:1,attributes:1,classes:1},L={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},N=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,
P={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},J=/^cke:(object|embed|param)$/,E=/^(object|embed|param)$/,I;I=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,d){d=d||b;if(!(d in a.styles)){var e=a.attributes[b];e&&(/^\d+$/.test(e)&&(e+="px"),a.styles[d]=e)}delete a.attributes[b]},
lengthToAttribute:function(a,b,d){d=d||b;if(!(d in a.attributes)){var e=a.styles[b],g=e&&e.match(/^(\d+)(?:\.\d*)?px$/);g?a.attributes[d]=g[1]:"cke-test"==e&&(a.attributes[d]="cke-test")}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if("left"==b||"right"==b)a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];if("left"==b||"right"==b)a.attributes.align=b}delete a.styles["float"]},
splitBorderShorthand:function(a){if(a.styles.border){var b=CKEDITOR.tools.style.parse.border(a.styles.border);b.color&&(a.styles["border-color"]=b.color);b.style&&(a.styles["border-style"]=b.style);b.width&&(a.styles["border-width"]=b.width);delete a.styles.border}},listTypeToStyle:function(a){if(a.attributes.type)switch(a.attributes.type){case "a":a.styles["list-style-type"]="lower-alpha";break;case "A":a.styles["list-style-type"]="upper-alpha";break;case "i":a.styles["list-style-type"]="lower-roman";
break;case "I":a.styles["list-style-type"]="upper-roman";break;case "1":a.styles["list-style-type"]="decimal";break;default:a.styles["list-style-type"]=a.attributes.type}},splitMarginShorthand:function(a){function b(e){a.styles["margin-top"]=d[e[0]];a.styles["margin-right"]=d[e[1]];a.styles["margin-bottom"]=d[e[2]];a.styles["margin-left"]=d[e[3]]}if(a.styles.margin){var d=a.styles.margin.match(/(auto|0|(?:\-?[\.\d]+(?:\w+|%)))/g)||["0px"];switch(d.length){case 1:b([0,0,0,0]);break;case 2:b([0,1,0,
1]);break;case 3:b([0,1,2,1]);break;case 4:b([0,1,2,3])}delete a.styles.margin}},matchesStyle:A,transform:function(a,b){if("string"==typeof b)a.name=b;else{var d=b.getDefinition(),e=d.styles,g=d.attributes,c,f,l,m;a.name=d.element;for(c in g)if("class"==c)for(d=a.classes.join("|"),l=g[c].split(/\s+/);m=l.pop();)-1==d.indexOf(m)&&a.classes.push(m);else a.attributes[c]=g[c];for(f in e)a.styles[f]=e[f]}}}}(),function(){CKEDITOR.focusManager=function(c){if(c.focusManager)return c.focusManager;this.hasFocus=
!1;this.currentActive=null;this._={editor:c};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(c){this._.timer&&clearTimeout(this._.timer);c&&(this.currentActive=c);this.hasFocus||this._.locked||((c=CKEDITOR.currentInstance)&&c.focusManager.blur(1),this.hasFocus=!0,(c=this._.editor.container)&&c.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(c){function h(){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 f=CKEDITOR.focusManager._.blurDelay;c||!f?h.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;h.call(this)},f,this)}},add:function(c,h){var f=c.getCustomData("focusmanager");if(!f||f!=this){f&&f.remove(c);var f="focus",a="blur";h&&(CKEDITOR.env.ie?(f="focusin",a="focusout"):CKEDITOR.event.useCapture=1);var g={blur:function(){c.equals(this.currentActive)&&
this.blur()},focus:function(){this.focus(c)}};c.on(f,g.focus,this);c.on(a,g.blur,this);h&&(CKEDITOR.event.useCapture=0);c.setCustomData("focusmanager",this);c.setCustomData("focusmanager_handlers",g)}},remove:function(c){c.removeCustomData("focusmanager");var h=c.removeCustomData("focusmanager_handlers");c.removeListener("blur",h.blur);c.removeListener("focus",h.focus)}}}(),CKEDITOR.keystrokeHandler=function(c){if(c.keystrokeHandler)return c.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes=
{};this._={editor:c};return this},function(){var c,h=function(a){a=a.data;var g=a.getKeystroke(),f=this.keystrokes[g],n=this._.editor;c=!1===n.fire("key",{keyCode:g,domEvent:a});c||(f&&(c=!1!==n.execCommand(f,{from:"keystrokeHandler"})),c||(c=!!this.blockedKeystrokes[g]));c&&a.preventDefault(!0);return!c},f=function(a){c&&(c=!1,a.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",h,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",f,this)}}}(),
function(){CKEDITOR.lang={languages:{af:1,ar:1,az:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,oc:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(c,h,f){c&&CKEDITOR.lang.languages[c]||
(c=this.detect(h,c));var a=this;h=function(){a[c].dir=a.rtl[c]?"rtl":"ltr";f(c,a[c])};this[c]?h():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+c+".js"),h,this)},detect:function(c,h){var f=this.languages;h=h||navigator.userLanguage||navigator.language||c;var a=h.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),g=a[1],a=a[2];f[g+"-"+a]?g=g+"-"+a:f[g]||(g=null);CKEDITOR.lang.detect=g?function(){return g}:function(a){return a};return g||c}}}(),CKEDITOR.scriptLoader=function(){var c={},h={};return{load:function(f,
a,g,m){var n="string"==typeof f;n&&(f=[f]);g||(g=CKEDITOR);var k=f.length,b=k,d=[],e=[],l=function(b){a&&(n?a.call(g,b):a.call(g,d,e))};if(0===b)l(!0);else{var v=function(a,g){(g?d:e).push(a);0>=--b&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),l(g))},x=function(a,b){c[a]=1;var d=h[a];delete h[a];for(var e=0;e<d.length;e++)d[e](a,b)},t=function(b){if(c[b])v(b,!0);else{var d=h[b]||(h[b]=[]);d.push(v);if(!(1<d.length)){var e=new CKEDITOR.dom.element("script");e.setAttributes({type:"text/javascript",
src:b});a&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?e.$.onreadystatechange=function(){if("loaded"==e.$.readyState||"complete"==e.$.readyState)e.$.onreadystatechange=null,x(b,!0)}:(e.$.onload=function(){setTimeout(function(){e.$.onload=null;e.$.onerror=null;x(b,!0)},0)},e.$.onerror=function(){e.$.onload=null;e.$.onerror=null;x(b,!1)}));e.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var q=0;q<k;q++)t(f[q])}},
queue:function(){function c(){var g;(g=a[0])&&this.load(g.scriptUrl,g.callback,CKEDITOR,0)}var a=[];return function(g,m){var n=this;a.push({scriptUrl:g,callback:function(){m&&m.apply(this,arguments);a.shift();c.call(n)}});1==a.length&&c.call(this)}}()}}(),CKEDITOR.resourceManager=function(c,h){this.basePath=c;this.fileName=h;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(c,h){if(this.registered[c])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+
c+'" is already registered.');var f=this.registered[c]=h||{};f.name=c;f.path=this.getPath(c);CKEDITOR.fire(c+CKEDITOR.tools.capitalize(this.fileName)+"Ready",f);return this.get(c)},get:function(c){return this.registered[c]||null},getPath:function(c){var h=this.externals[c];return CKEDITOR.getUrl(h&&h.dir||this.basePath+c+"/")},getFilePath:function(c){var h=this.externals[c];return CKEDITOR.getUrl(this.getPath(c)+(h?h.file:this.fileName+".js"))},addExternal:function(c,h,f){f||(h=h.replace(/[^\/]+$/,
function(a){f=a;return""}));f=f||this.fileName+".js";c=c.split(",");for(var a=0;a<c.length;a++)this.externals[c[a]]={dir:h,file:f}},load:function(c,h,f){CKEDITOR.tools.isArray(c)||(c=c?[c]:[]);for(var a=this.loaded,g=this.registered,m=[],n={},k={},b=0;b<c.length;b++){var d=c[b];if(d)if(a[d]||g[d])k[d]=this.get(d);else{var e=this.getFilePath(d);m.push(e);e in n||(n[e]=[]);n[e].push(d)}}CKEDITOR.scriptLoader.load(m,function(b,d){if(d.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+
n[d[0]].join(",")+'" was not found at "'+d[0]+'".');for(var e=0;e<b.length;e++)for(var g=n[b[e]],c=0;c<g.length;c++){var m=g[c];k[m]=this.get(m);a[m]=1}h.call(f,k)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(c){var h={};return function(f,a,g){var m={},n=function(f){c.call(this,f,function(b){CKEDITOR.tools.extend(m,b);var d=[],e;for(e in b){var c=b[e],f=c&&c.requires;if(!h[e]){if(c.icons)for(var k=
c.icons.split(","),t=k.length;t--;)CKEDITOR.skin.addIcon(k[t],c.path+"icons/"+(CKEDITOR.env.hidpi&&c.hidpi?"hidpi/":"")+k[t]+".png");c.isSupportedEnvironment=c.isSupportedEnvironment||function(){return!0};h[e]=1}if(f)for(f.split&&(f=f.split(",")),c=0;c<f.length;c++)m[f[c]]||d.push(f[c])}if(d.length)n.call(this,d);else{for(e in m)c=m[e],c.onLoad&&!c.onLoad._called&&(!1===c.onLoad()&&delete m[e],c.onLoad._called=1);a&&a.call(g||window,m)}},this)};n.call(this,f)}}),CKEDITOR.plugins.setLang=function(c,
h,f){var a=this.get(c);c=a.langEntries||(a.langEntries={});a=a.lang||(a.lang=[]);a.split&&(a=a.split(","));-1==CKEDITOR.tools.indexOf(a,h)&&a.push(h);c[h]=f},CKEDITOR.ui=function(c){if(c.ui)return c.ui;this.items={};this.instances={};this.editor=c;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(c,h,f){f.name=c.toLowerCase();var a=this.items[c]={type:h,command:f.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(a,f)},get:function(c){return this.instances[c]},
create:function(c){var h=this.items[c],f=h&&this._.handlers[h.type],a=h&&h.command&&this.editor.getCommand(h.command),f=f&&f.create.apply(this,h.args);this.instances[c]=f;a&&a.uiItems.push(f);f&&!f.type&&(f.type=h.type);return f},addHandler:function(c,h){this._.handlers[c]=h},space:function(c){return CKEDITOR.document.getById(this.spaceId(c))},spaceId:function(c){return this.editor.id+"_"+c}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function c(b,d,e){CKEDITOR.event.call(this);b=b&&CKEDITOR.tools.clone(b);
if(void 0!==d){if(!(d instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!e)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&e==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!f(d,e))throw Error('The specified element mode is not supported on element: "'+d.getName()+'".');this.element=d;this.elementMode=e;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&
(d.getId()||d.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||h();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",a);this.on("selectionChange",function(a){m(this,a.data.path)});this.on("activeFilterChange",
function(){m(this,this.elementPath(),!0)});this.on("mode",a);CKEDITOR.dom.selection.setupEditorOptimization(this);this.on("instanceReady",function(){if(this.config.startupFocus){if("end"===this.config.startupFocus){var a=this.createRange();a.selectNodeContents(this.editable());a.shrink(CKEDITOR.SHRINK_ELEMENT,!0);a.collapse();this.getSelection().selectRanges([a])}this.focus()}});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){this.isDestroyed()||
this.isDetached()||k(this,b)},0,this)}function h(){do var a="editor"+ ++t;while(CKEDITOR.instances[a]);return a}function f(a,b){return b==CKEDITOR.ELEMENT_MODE_INLINE?a.is(CKEDITOR.dtd.$editable)||a.is("textarea"):b==CKEDITOR.ELEMENT_MODE_REPLACE?!a.is(CKEDITOR.dtd.$nonBodyContent):1}function a(){var a=this.commands,b;for(b in a)g(this,a[b])}function g(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function m(a,b,d){if(b){var e,g,c=a.commands;
for(g in c)e=c[g],(d||e.contextSensitive)&&e.refresh(a,b)}}function n(a){var b=a.config.customConfig;if(!b)return!1;var b=CKEDITOR.getUrl(b),d=q[b]||(q[b]={});d.fn?(d.fn.call(a,a.config),CKEDITOR.getUrl(a.config.customConfig)!=b&&n(a)||a.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(b,function(){d.fn=d.fn||CKEDITOR.editorConfig||function(){};n(a)});return!0}function k(a,d){a.on("customConfigLoaded",function(){if(d){if(d.on)for(var e in d.on)a.on(e,d.on[e]);CKEDITOR.tools.extend(a.config,
d,!0);delete a.config.on}e=a.config;a.readOnly=e.readOnly?!0:a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.is("textarea")?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):!1;a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p):!1;a.tabIndex=e.tabIndex||a.element&&
a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:e.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:e.shiftEnterMode;e.skin&&(CKEDITOR.skinName=e.skin);a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);b(a)});d&&null!=d.customConfig&&(a.config.customConfig=d.customConfig);n(a)||a.fireOnce("customConfigLoaded")}function b(a){CKEDITOR.skin.loadPart("editor",
function(){d(a)})}function d(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,d){var g=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(d);a.title="string"==typeof g||!1===g?g:[a.lang.editor,a.name].join(", ");a.config.contentsLangDirection||(a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir);a.fire("langLoaded");e(a)})}function e(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",
{styles:b})},null,null,1);l(a)})}function l(a){function b(a){if(!a)return"";CKEDITOR.tools.isArray(a)&&(a=a.join(","));return a.replace(/\s/g,"")}var d=a.config,e=b(d.plugins),g=b(d.extraPlugins),c=b(d.removePlugins);if(g)var f=new RegExp("(?:^|,)(?:"+g.replace(/,/g,"|")+")(?\x3d,|$)","g"),e=e.replace(f,""),e=e+(","+g);if(c)var l=new RegExp("(?:^|,)(?:"+c.replace(/,/g,"|")+")(?\x3d,|$)","g"),e=e.replace(l,"");CKEDITOR.env.air&&(e+=",adobeair");CKEDITOR.plugins.load(e.split(","),function(b){var e=
[],g=[],c=[];a.plugins=CKEDITOR.tools.extend({},a.plugins,b);for(var f in b){var m=b[f],k=m.lang,n=null,h=m.requires,y;CKEDITOR.tools.isArray(h)&&(h=h.join(","));if(h&&(y=h.match(l)))for(;h=y.pop();)CKEDITOR.error("editor-plugin-required",{plugin:h.replace(",",""),requiredBy:f});k&&!a.lang[f]&&(k.split&&(k=k.split(",")),0<=CKEDITOR.tools.indexOf(k,a.langCode)?n=a.langCode:(n=a.langCode.replace(/-.*/,""),n=n!=a.langCode&&0<=CKEDITOR.tools.indexOf(k,n)?n:0<=CKEDITOR.tools.indexOf(k,"en")?"en":k[0]),
m.langEntries&&m.langEntries[n]?(a.lang[f]=m.langEntries[n],n=null):c.push(CKEDITOR.getUrl(m.path+"lang/"+n+".js")));g.push(n);e.push(m)}CKEDITOR.scriptLoader.load(c,function(){if(!a.isDestroyed()&&!a.isDetached()){for(var b=["beforeInit","init","afterInit"],c=0;c<b.length;c++)for(var f=0;f<e.length;f++){var l=e[f];0===c&&g[f]&&l.lang&&l.langEntries&&(a.lang[l.name]=l.langEntries[g[f]]);if(l[b[c]])l[b[c]](a)}a.fireOnce("pluginsLoaded");d.keystrokes&&a.setKeystroke(a.config.keystrokes);for(f=0;f<a.config.blockedKeystrokes.length;f++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[f]]=
1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)}})})}function v(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return!0}return!1}function x(a,b){function d(a){var b=a.startContainer,e=a.endContainer;return b.is&&(b.is("tr")||b.is("td")&&b.equals(e)&&a.endOffset===b.getChildCount())?!0:!1}function e(a){var b=a.startContainer;
return b.is("tr")?a.cloneContents():b.clone(!0)}for(var g=new CKEDITOR.dom.documentFragment,c,f,l,m=0;m<a.length;m++){var k=a[m],n=k.startContainer.getAscendant("tr",!0);d(k)?(c||(c=n.getAscendant("table").clone(),c.append(n.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),g.append(c),c=c.findOne("thead, tbody, tfoot")),f&&f.equals(n)||(f=n,l=n.clone(),c.append(l)),l.append(e(k))):g.append(k.cloneContents())}return c?g:b.getHtmlFromRange(a[0])}c.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=
c;var t=0,q={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{plugins:{detectConflict:function(a,b){for(var d=0;d<b.length;d++){var e=b[d];if(this[e])return CKEDITOR.warn("editor-plugin-conflict",{plugin:a,replacedWith:e}),!0}return!1}},addCommand:function(a,b){b.name=a.toLowerCase();var d=b instanceof CKEDITOR.command?b:new CKEDITOR.command(this,b);this.mode&&g(this,d);return this.commands[a]=d},_attachToForm:function(){function a(b){d.updateElement();d._.required&&!e.getValue()&&!1===d.fire("required")&&
b.data.preventDefault()}function b(a){return!!(a&&a.call&&a.apply)}var d=this,e=d.element,g=new CKEDITOR.dom.element(e.$.form);e.is("textarea")&&g&&(g.on("submit",a),b(g.$.submit)&&(g.$.submit=CKEDITOR.tools.override(g.$.submit,function(b){return function(){a();b.apply?b.apply(this):b()}})),d.on("destroy",function(){g.removeListener("submit",a)}))},destroy:function(a){var b=CKEDITOR.filter.instances,d=this;this.fire("beforeDestroy");!a&&v.call(this);this.editable(null);this.filter&&delete this.filter;
CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(b),function(a){a=b[a];d===a.editor&&a.destroy()});delete this.activeFilter;this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):
null},execCommand:function(a,b){var d=this.getCommand(a),e={name:a,commandData:b||{},command:d};return d&&d.state!=CKEDITOR.TRISTATE_DISABLED&&!1!==this.fire("beforeCommandExec",e)&&(e.returnValue=d.exec(e.commandData),!d.async&&!1!==this.fire("afterCommandExec",e))?e.returnValue:!1},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var b=this._.data;"string"!=typeof b&&(b=(b=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?
b.getValue():b.getHtml():"");b={dataValue:b};!a&&this.fire("getData",b);return b.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");"string"!=typeof a&&(a=(a=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.is("textarea")?a.getValue():a.getHtml():"");return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,b,d){var e=!0,g=b;b&&"object"==typeof b&&(d=b.internal,g=b.callback,e=!b.noSnapshot);!d&&e&&this.fire("saveSnapshot");if(g||!d)this.once("dataReady",
function(a){!d&&e&&this.fire("saveSnapshot");g&&g.call(a.editor)});a={dataValue:a};!d&&this.fire("setData",a);this._.data=a.dataValue;!d&&this.fire("afterSetData",a)},setReadOnly:function(a){a=null==a||a;this.readOnly!=a&&(this.readOnly=a,this.keystrokeHandler.blockedKeystrokes[8]=+a,this.editable().setReadOnly(a),this.fire("readOnly"))},insertHtml:function(a,b,d){this.fire("insertHtml",{dataValue:a,mode:b,range:d})},insertText:function(a){this.fire("insertText",a)},insertElement:function(a){this.fire("insertElement",
a)},getSelectedHtml:function(a){var b=this.editable(),d=this.getSelection(),d=d&&d.getRanges();if(!b||!d||0===d.length)return null;b=x(d,b);return a?b.getHtml():b},extractSelectedHtml:function(a,b){var d=this.editable(),e=this.getSelection().getRanges(),g=new CKEDITOR.dom.documentFragment,c;if(!d||0===e.length)return null;for(c=0;c<e.length;c++)g.append(d.extractHtmlFromRange(e[c],b));b||this.getSelection().selectRanges([e[0]]);return a?g.getHtml():g},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==
this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return v.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],d,e,g=b.length;g--;)d=b[g],e=0,CKEDITOR.tools.isArray(d)&&(e=d[1],d=d[0]),e?a[d]=e:delete a[d]},getCommandKeystroke:function(a,b){var d="string"===typeof a?this.getCommand(a):a,e=[];if(d){var g=
CKEDITOR.tools.object.findKey(this.commands,d),c=this.keystrokeHandler.keystrokes;if(d.fakeKeystroke)e.push(d.fakeKeystroke);else for(var f in c)c[f]===g&&e.push(f)}return b?e:e[0]||null},addFeature:function(a){return this.filter.addFeature(a)},setActiveFilter:function(a){a||(a=this.filter);this.activeFilter!==a&&(this.activeFilter=a,this.fire("activeFilterChange"),a===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(a.getAllowedEnterMode(this.enterMode),a.getAllowedEnterMode(this.shiftEnterMode,
!0)))},setActiveEnterMode:function(a,b){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=b)this.activeEnterMode=a,this.activeShiftEnterMode=b,this.fire("activeEnterModeChange")},showNotification:function(a){alert(a)},isDetached:function(){return!!this.container&&this.container.isDetached()},isDestroyed:function(){return"destroyed"===this.status}});CKEDITOR.editor._getEditorElement=
function(a){if(!CKEDITOR.env.isCompatible)return null;var b=CKEDITOR.dom.element.get(a);return b?b.getEditor()?(CKEDITOR.error("editor-element-conflict",{editorName:b.getEditor().name}),null):b:(CKEDITOR.error("editor-incorrect-element",{element:a}),null)}}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--!?>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},
function(){var c=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,h={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(f){for(var a,g,m=0,n;a=this._.htmlPartsRegex.exec(f);){g=a.index;if(g>m)if(m=f.substring(m,g),n)n.push(m);else this.onText(m);
m=this._.htmlPartsRegex.lastIndex;if(g=a[1])if(g=g.toLowerCase(),n&&CKEDITOR.dtd.$cdata[g]&&(this.onCDATA(n.join("")),n=null),!n){this.onTagClose(g);continue}if(n)n.push(a[0]);else if(g=a[3]){if(g=g.toLowerCase(),!/="/.test(g)){var k={},b,d=a[4];a=!!a[5];if(d)for(;b=c.exec(d);){var e=b[1].toLowerCase();b=b[2]||b[3]||b[4]||"";k[e]=!b&&h[e]?e:CKEDITOR.tools.htmlDecodeAttr(b)}this.onTagOpen(g,k,a);!n&&CKEDITOR.dtd.$cdata[g]&&(n=[])}}else if(g=a[2])this.onComment(g)}if(f.length>m)this.onText(f.substring(m,
f.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(c){this._.output.push("\x3c",c)},openTagClose:function(c,h){h?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(c,h){"string"==typeof h&&(h=CKEDITOR.tools.htmlEncodeAttr(h));this._.output.push(" ",c,'\x3d"',h,'"')},closeTag:function(c){this._.output.push("\x3c/",c,"\x3e")},text:function(c){this._.output.push(c)},comment:function(c){this._.output.push("\x3c!--",
c,"--\x3e")},write:function(c){this._.output.push(c)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(c){var h=this._.output.join("");c&&this.reset();return h}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var c=this.parent.children,h=CKEDITOR.tools.indexOf(c,this),f=this.previous,a=this.next;f&&(f.next=a);a&&(a.previous=f);c.splice(h,1);this.parent=null},replaceWith:function(c){var h=this.parent.children,
f=CKEDITOR.tools.indexOf(h,this),a=c.previous=this.previous,g=c.next=this.next;a&&(a.next=c);g&&(g.previous=c);h[f]=c;c.parent=this.parent;this.parent=null},insertAfter:function(c){var h=c.parent.children,f=CKEDITOR.tools.indexOf(h,c),a=c.next;h.splice(f+1,0,this);this.next=c.next;this.previous=c;c.next=this;a&&(a.previous=this);this.parent=c.parent},insertBefore:function(c){var h=c.parent.children,f=CKEDITOR.tools.indexOf(h,c);h.splice(f,0,this);this.next=c;(this.previous=c.previous)&&(c.previous.next=
this);c.previous=this;this.parent=c.parent},getAscendant:function(c){var h="function"==typeof c?c:"string"==typeof c?function(a){return a.name==c}:function(a){return a.name in c},f=this.parent;for(;f&&f.type==CKEDITOR.NODE_ELEMENT;){if(h(f))return f;f=f.parent}return null},wrapWith:function(c){this.replaceWith(c);c.add(this);return c},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(c){return c||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=
function(c){this.value=c;this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(c,h){var f=this.value;if(!(f=c.onComment(h,f,this)))return this.remove(),!1;if("string"!=typeof f)return this.replaceWith(f),!1;this.value=f;return!0},writeHtml:function(c,h){h&&this.filter(h);c.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(c){this.value=c;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=
CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(c,h){if(!(this.value=c.onText(h,this.value,this)))return this.remove(),!1},writeHtml:function(c,h){h&&this.filter(h);c.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(c){this.value=c};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(c){c.write(this.value)}})}(),"use strict",
CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function c(a){return a.attributes["data-cke-survive"]?!1:"a"==a.name&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var h=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),f={ol:1,ul:1},a=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),g={ul:"li",
ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(m,n,k){function b(a){var b;if(0<u.length)for(var e=0;e<u.length;e++){var g=u[e],c=g.name,f=CKEDITOR.dtd[c],m=r.name&&CKEDITOR.dtd[r.name];m&&!m[c]||a&&f&&!f[a]&&CKEDITOR.dtd[a]?c==r.name&&(l(r,r.parent,1),e--):(b||(d(),b=1),g=g.clone(),g.parent=r,r=g,u.splice(e,1),e--)}}function d(){for(;z.length;)l(z.shift(),r)}function e(a){if(a._.isBlockLike&&"pre"!=a.name&&"textarea"!=a.name){var b=
a.children.length,d=a.children[b-1],e;d&&d.type==CKEDITOR.NODE_TEXT&&((e=CKEDITOR.tools.rtrim(d.value))?d.value=e:a.children.length=b-1)}}function l(a,b,d){b=b||r||q;var g=r;void 0===a.previous&&(v(b,a)&&(r=b,t.onTagOpen(k,{}),a.returnPoint=b=r),e(a),c(a)&&!a.children.length||b.add(a),"pre"==a.name&&(p=!1),"textarea"==a.name&&(w=!1));a.returnPoint?(r=a.returnPoint,delete a.returnPoint):r=d?b:g}function v(a,b){if((a==q||"body"==a.name)&&k&&(!a.name||CKEDITOR.dtd[a.name][k])){var d,e;return(d=b.attributes&&
(e=b.attributes["data-cke-real-element-type"])?e:b.name)&&d in CKEDITOR.dtd.$inline&&!(d in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function x(a,b){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==b||"dt"==a&&"dd"==b||"dd"==a&&"dt"==b:!1}var t=new CKEDITOR.htmlParser,q=n instanceof CKEDITOR.htmlParser.element?n:"string"==typeof n?new CKEDITOR.htmlParser.element(n):new CKEDITOR.htmlParser.fragment,u=[],z=[],r=q,w="textarea"==q.name,p="pre"==q.name;t.onTagOpen=
function(e,g,m,k){g=new CKEDITOR.htmlParser.element(e,g);g.isUnknown&&m&&(g.isEmpty=!0);g.isOptionalClose=k;if(c(g))u.push(g);else{if("pre"==e)p=!0;else{if("br"==e&&p){r.add(new CKEDITOR.htmlParser.text("\n"));return}"textarea"==e&&(w=!0)}if("br"==e)z.push(g);else{for(;!(k=(m=r.name)?CKEDITOR.dtd[m]||(r._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a,g.isUnknown||r.isUnknown||k[e]);)if(r.isOptionalClose)t.onTagClose(m);else if(e in f&&m in f)m=r.children,(m=m[m.length-1])&&"li"==m.name||l(m=new CKEDITOR.htmlParser.element("li"),
r),!g.returnPoint&&(g.returnPoint=r),r=m;else if(e in CKEDITOR.dtd.$listItem&&!x(e,m))t.onTagOpen("li"==e?"ul":"dl",{},0,1);else if(m in h&&!x(e,m))!g.returnPoint&&(g.returnPoint=r),r=r.parent;else if(m in CKEDITOR.dtd.$inline&&u.unshift(r),r.parent)l(r,r.parent,1);else{g.isOrphan=1;break}b(e);d();g.parent=r;g.isEmpty?l(g):r=g}}};t.onTagClose=function(a){for(var b=u.length-1;0<=b;b--)if(a==u[b].name){u.splice(b,1);return}for(var e=[],g=[],c=r;c!=q&&c.name!=a;)c._.isBlockLike||g.unshift(c),e.push(c),
c=c.returnPoint||c.parent;if(c!=q){for(b=0;b<e.length;b++){var f=e[b];l(f,f.parent)}r=c;c._.isBlockLike&&d();l(c,c.parent);c==r&&(r=r.parent);u=u.concat(g)}"body"==a&&(k=!1)};t.onText=function(e){if(!(r._.hasInlineStarted&&!z.length||p||w)&&(e=CKEDITOR.tools.ltrim(e),0===e.length))return;var c=r.name,f=c?CKEDITOR.dtd[c]||(r._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a;if(!w&&!f["#"]&&c in h)t.onTagOpen(g[c]||""),t.onText(e);else{d();b();p||w||(e=e.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));e=
new CKEDITOR.htmlParser.text(e);if(v(r,e))this.onTagOpen(k,{},0,1);r.add(e)}};t.onCDATA=function(a){r.add(new CKEDITOR.htmlParser.cdata(a))};t.onComment=function(a){d();b();r.add(new CKEDITOR.htmlParser.comment(a))};t.parse(m);for(d();r!=q;)l(r,r.parent,1);e(q);return q};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,g){isNaN(g)&&(g=this.children.length);var c=0<g?this.children[g-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(g,0,a);this._.hasInlineStarted||(this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike)},filter:function(a,g){g=this.getFilterContext(g);a.onRoot(g,this);this.filterChildren(a,!1,g)},filterChildren:function(a,g,c){if(this.childrenFilteredBy!=a.id){c=this.getFilterContext(c);if(g&&!this.parent)a.onRoot(c,this);this.childrenFilteredBy=a.id;
for(g=0;g<this.children.length;g++)!1===this.children[g].filter(a,c)&&g--}},writeHtml:function(a,g){g&&this.filter(g);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,g,c){var b=this.getFilterContext();if(c&&!this.parent&&g)g.onRoot(b,this);g&&this.filterChildren(g,!1,b);g=0;c=this.children;for(b=c.length;g<b;g++)c[g].writeHtml(a)},forEach:function(a,g,c){if(!(c||g&&this.type!=g))var b=a(this);if(!1!==b){c=this.children;for(var d=0;d<c.length;d++)b=c[d],b.type==CKEDITOR.NODE_ELEMENT?b.forEach(a,
g):g&&b.type!=g||a(b)}},getFilterContext:function(a){return a||{}}}}(),"use strict",function(){function c(){this.rules=[]}function h(f,a,g,m){var h,k;for(h in a)(k=f[h])||(k=f[h]=new c),k.add(a[h],g,m)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(f){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new c;this.attributeNameRules=new c;this.elementsRules={};this.attributesRules={};this.textRules=new c;this.commentRules=new c;this.rootRules=new c;f&&this.addRules(f,10)},
proto:{addRules:function(c,a){var g;"number"==typeof a?g=a:a&&"priority"in a&&(g=a.priority);"number"!=typeof g&&(g=10);"object"!=typeof a&&(a={});c.elementNames&&this.elementNameRules.addMany(c.elementNames,g,a);c.attributeNames&&this.attributeNameRules.addMany(c.attributeNames,g,a);c.elements&&h(this.elementsRules,c.elements,g,a);c.attributes&&h(this.attributesRules,c.attributes,g,a);c.text&&this.textRules.add(c.text,g,a);c.comment&&this.commentRules.add(c.comment,g,a);c.root&&this.rootRules.add(c.root,
g,a)},applyTo:function(c){c.filter(this)},onElementName:function(c,a){return this.elementNameRules.execOnName(c,a)},onAttributeName:function(c,a){return this.attributeNameRules.execOnName(c,a)},onText:function(c,a,g){return this.textRules.exec(c,a,g)},onComment:function(c,a,g){return this.commentRules.exec(c,a,g)},onRoot:function(c,a){return this.rootRules.exec(c,a)},onElement:function(c,a){for(var g=[this.elementsRules["^"],this.elementsRules[a.name],this.elementsRules.$],m,h=0;3>h;h++)if(m=g[h]){m=
m.exec(c,a,this);if(!1===m)return null;if(m&&m!=a)return this.onNode(c,m);if(a.parent&&!a.name)break}return a},onNode:function(c,a){var g=a.type;return g==CKEDITOR.NODE_ELEMENT?this.onElement(c,a):g==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(c,a.value,a)):g==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(c,a.value,a)):null},onAttribute:function(c,a,g,m){return(g=this.attributesRules[g])?g.exec(c,m,a,this):m}}});CKEDITOR.htmlParser.filterRulesGroup=c;c.prototype=
{add:function(c,a,g){this.rules.splice(this.findIndex(a),0,{value:c,priority:a,options:g})},addMany:function(c,a,g){for(var m=[this.findIndex(a),0],h=0,k=c.length;h<k;h++)m.push({value:c[h],priority:a,options:g});this.rules.splice.apply(this.rules,m)},findIndex:function(c){for(var a=this.rules,g=a.length-1;0<=g&&c<a[g].priority;)g--;return g+1},exec:function(c,a){var g=a instanceof CKEDITOR.htmlParser.node||a instanceof CKEDITOR.htmlParser.fragment,m=Array.prototype.slice.call(arguments,1),h=this.rules,
k=h.length,b,d,e,l;for(l=0;l<k;l++)if(g&&(b=a.type,d=a.name),e=h[l],!(c.nonEditable&&!e.options.applyToAll||c.nestedEditable&&e.options.excludeNestedEditable)){e=e.value.apply(null,m);if(!1===e||g&&e&&(e.name!=d||e.type!=b))return e;null!=e&&(m[0]=a=e)}return a},execOnName:function(c,a){for(var g=0,m=this.rules,h=m.length,k;a&&g<h;g++)k=m[g],c.nonEditable&&!k.options.applyToAll||c.nestedEditable&&k.options.excludeNestedEditable||(a=a.replace(k.value[0],k.value[1]));return a}}}(),function(){function c(b,
d){function e(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function c(b,d){return function(c){if(c.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var g=[],k=f(c),E,n;if(k)for(l(k,1)&&g.push(k);k;)m(k)&&(E=a(k))&&l(E)&&((n=a(E))&&!m(n)?g.push(E):(e(h).insertAfter(E),E.remove())),k=k.previous;for(k=0;k<g.length;k++)g[k].remove();if(g=!b||!1!==("function"==typeof d?d(c):d))h||CKEDITOR.env.needsBrFiller||c.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT?
h||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||c.name in CKEDITOR.dtd.tr||c.name in CKEDITOR.dtd.$listItem)?(g=f(c),g=!g||"form"==c.name&&"input"==g.name):g=!1:g=!1;g&&c.add(e(b))}}}function l(a,b){if((!h||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&"br"==a.name&&!a.attributes["data-cke-eol"])return!0;var d;return a.type==CKEDITOR.NODE_TEXT&&(d=a.value.match(z))&&(d.index&&((new CKEDITOR.htmlParser.text(a.value.substring(0,d.index))).insertBefore(a),a.value=d[0]),!CKEDITOR.env.needsBrFiller&&
h&&(!b||a.parent.name in J)||!h&&((d=a.previous)&&"br"==d.name||!d||m(d)))?!0:!1}var k={elements:{}},h="html"==d,J=CKEDITOR.tools.extend({},y),G;for(G in J)"#"in w[G]||delete J[G];for(G in J)k.elements[G]=c(h,b.config.fillEmptyBlocks);k.root=c(h,!1);k.elements.br=function(b){return function(d){if(d.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=d.attributes;if("data-cke-bogus"in c||"data-cke-eol"in c)delete c["data-cke-bogus"];else{for(c=d.next;c&&g(c);)c=c.next;var f=a(d);!c&&m(d.parent)?n(d.parent,
e(b)):m(c)&&f&&!m(f)&&e(b).insertBefore(c)}}}}(h);return k}function h(a,b){return a!=CKEDITOR.ENTER_BR&&!1!==b?a==CKEDITOR.ENTER_DIV?"div":"p":!1}function f(a){for(a=a.children[a.children.length-1];a&&g(a);)a=a.previous;return a}function a(a){for(a=a.previous;a&&g(a);)a=a.previous;return a}function g(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function m(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in
y||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function n(a,b){var d=a.children[a.children.length-1];a.children.push(b);b.parent=a;d&&(d.next=b,b.previous=d)}function k(a){a=a.attributes;"false"!=a.contenteditable&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function b(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function d(a){return a.replace(D,function(a,b,d){return"\x3c"+b+d.replace(H,
function(a,b){return G.test(b)&&-1==d.indexOf("data-cke-saved-"+b)?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+"\x3e"})}function e(a,b){return a.replace(b,function(a,b,d){0===a.indexOf("\x3ctextarea")&&(a=b+x(d).replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function l(a){return a.replace(L,function(a,b){return decodeURIComponent(b)})}function v(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,
function(a){return"\x3c!--"+r+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function x(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)})}function t(a,b){var d=b._.dataStore;return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return d&&d[b]||""})}function q(a,b){var d=[],e=b.config.protectedSource,c=b._.dataStore||(b._.dataStore=
{id:1}),g=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,e=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(e);a=a.replace(/\x3c!--[\s\S]*?--\x3e/g,function(a){return"\x3c!--{cke_tempcomment}"+(d.push(a)-1)+"--\x3e"});for(var f=0;f<e.length;f++)a=a.replace(e[f],function(a){a=a.replace(g,function(a,b,e){return d[e]});return/cke_temp(comment)?/.test(a)?a:"\x3c!--{cke_temp}"+(d.push(a)-1)+"--\x3e"});a=a.replace(g,function(a,b,e){return"\x3c!--"+r+(b?"{C}":
"")+encodeURIComponent(d[e]).replace(/--/g,"%2D%2D")+"--\x3e"});a=a.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(a){return a.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(a,b){c[c.id]=decodeURIComponent(b);return"{cke_protected_"+c.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,d,e,c){return"\x3c"+d+e+"\x3e"+t(x(c),b)+"\x3c/"+d+"\x3e"})}var u;CKEDITOR.htmlDataProcessor=function(a){var b,
g,f=this;this.editor=a;this.dataFilter=b=new CKEDITOR.htmlParser.filter;this.htmlFilter=g=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;b.addRules(A);b.addRules(C,{applyToAll:!0});b.addRules(c(a,"data"),{applyToAll:!0});g.addRules(F);g.addRules(K,{applyToAll:!0});g.addRules(c(a,"html"),{applyToAll:!0});a.on("toHtml",function(b){b=b.data;var c=b.dataValue,g,c=u(c),c=q(c,a),c=e(c,O),c=d(c),c=e(c,B),c=c.replace(N,"$1cke:$2"),c=c.replace(J,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),
c=c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),c=c.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");g=b.context||a.editable().getName();var f;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==g&&(g="div",c="\x3cpre\x3e"+c+"\x3c/pre\x3e",f=1);g=a.document.createElement(g);g.setHtml("a"+c);c=g.getHtml().substr(1);c=c.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");f&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(P,"$1$2");c=l(c);c=x(c);g=!1===b.fixForBody?!1:
h(b.enterMode,a.config.autoParagraph);c=CKEDITOR.htmlParser.fragment.fromHtml(c,b.context,g);g&&(f=c,!f.children.length&&CKEDITOR.dtd[f.name][g]&&(g=new CKEDITOR.htmlParser.element(g),f.add(g)));b.dataValue=c},null,null,5);a.on("toHtml",function(b){b.data.filter.applyTo(b.data.dataValue,!0,b.data.dontFilter,b.data.enterMode)&&a.fire("dataFiltered")},null,null,6);a.on("toHtml",function(a){a.data.dataValue.filterChildren(f.dataFilter,!0)},null,null,10);a.on("toHtml",function(a){a=a.data;var b=a.dataValue,
d=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(d);b=d.getHtml(!0);a.dataValue=v(b)},null,null,15);a.on("toDataFormat",function(b){var d=b.data.dataValue;b.data.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/^<br *\/?>/i,""));b.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(d,b.data.context,h(b.data.enterMode,a.config.autoParagraph))},null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(f.htmlFilter,!0)},null,null,10);a.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,
!1,!0)},null,null,11);a.on("toDataFormat",function(b){var d=b.data.dataValue,e=f.writer;e.reset();d.writeChildrenHtml(e);d=e.getHtml(!0);d=x(d);d=t(d,a);b.data.dataValue=d},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,d,e){var c=this.editor,g,f,l,m;b&&"object"==typeof b?(g=b.context,d=b.fixForBody,e=b.dontFilter,f=b.filter,l=b.enterMode,m=b.protectedWhitespaces):g=b;g||null===g||(g=c.editable().getName());return c.fire("toHtml",{dataValue:a,context:g,fixForBody:d,dontFilter:e,
filter:f||c.filter,enterMode:l||c.enterMode,protectedWhitespaces:m}).dataValue},toDataFormat:function(a,b){var d,e,c;b&&(d=b.context,e=b.filter,c=b.enterMode);d||null===d||(d=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:e||this.editor.filter,context:d,enterMode:c||this.editor.enterMode}).dataValue},protectSource:function(a){return q(a,this.editor)},unprotectSource:function(a){return t(a,this.editor)}};var z=/(?:&nbsp;|\xa0)$/,r="{cke_protected}",w=CKEDITOR.dtd,
p="caption colgroup col thead tfoot tbody".split(" "),y=CKEDITOR.tools.extend({},w.$blockLimit,w.$block),A={elements:{input:k,textarea:k}},C={attributeNames:[[/^on/,"data-cke-pa-on"],[/^srcdoc/,"data-cke-pa-srcdoc"],[/^data-cke-expando$/,""]],elements:{iframe:function(a){if(a.attributes&&a.attributes.src){var b=a.attributes.src.toLowerCase().replace(/[^a-z]/gi,"");if(0===b.indexOf("javascript")||0===b.indexOf("data"))a.attributes["data-cke-pa-src"]=a.attributes.src,delete a.attributes.src}}}},F={elements:{embed:function(a){var b=
a.parent;if(b&&"object"==b.name){var d=b.attributes.width,b=b.attributes.height;d&&(a.attributes.width=d);b&&(a.attributes.height=b)}},a:function(a){var b=a.attributes;if(!(a.children.length||b.name||b.id||a.attributes["data-cke-saved-name"]))return!1}}},K={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return!1;for(var d=["name","href","src"],
e,c=0;c<d.length;c++)e="data-cke-saved-"+d[c],e in b&&delete b[d[c]]}return a},table:function(a){a.children.slice(0).sort(function(a,b){var d,e;a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type&&(d=CKEDITOR.tools.indexOf(p,a.name),e=CKEDITOR.tools.indexOf(p,b.name));-1<d&&-1<e&&d!=e||(d=a.parent?a.getIndex():-1,e=b.parent?b.getIndex():-1);return d>e?1:-1})},param:function(a){a.children=[];a.isEmpty=!0;return a},span:function(a){"Apple-style-span"==a.attributes["class"]&&delete a.name},html:function(a){delete a.attributes.contenteditable;
delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable},style:function(a){var b=a.children[0];b&&b.value&&(b.value=CKEDITOR.tools.trim(b.value));a.attributes.type||(a.attributes.type="text/css")},title:function(a){var b=a.children[0];!b&&n(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""},input:b,textarea:b},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};
CKEDITOR.env.ie&&(K.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})});var D=/<(a|area|img|input|source)\b([^>]*)>/gi,H=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,G=/^(href|src|name)$/i,B=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,O=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,L=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,N=/(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi,
P=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,J=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;u=function(){function a(d){return CKEDITOR.tools.array.reduce(d.split(""),function(a,d){var e=d.toLowerCase(),c=d.toUpperCase(),g=b(e);e!==c&&(g+="|"+b(c));return a+("("+g+")")},"")}function b(a){var d;d=a.charCodeAt(0);var e=d.toString(16);d={htmlCode:"\x26#"+d+";?",hex:"\x26#x0*"+e+";?",entity:{"\x3c":"\x26lt;","\x3e":"\x26gt;",":":"\x26colon;"}[a]};for(var c in d)d[c]&&(a+="|"+d[c]);return a}var d=
new RegExp("("+a("\x3ccke:encoded\x3e")+"(.*?)"+a("\x3c/cke:encoded\x3e")+")|("+a("\x3c")+a("/")+"?"+a("cke:encoded\x3e")+")","gi"),e=new RegExp("(("+a("{cke_protected")+")(_[0-9]*)?"+a("}")+")","gi");return function(a){return a.replace(d,"").replace(e,"")}}()}(),"use strict",CKEDITOR.htmlParser.element=function(c,h){this.name=c;this.attributes=h||{};this.children=[];var f=c||"",a=f.match(/^cke:(.*)/);a&&(f=a[1]);f=!!(CKEDITOR.dtd.$nonBodyContent[f]||CKEDITOR.dtd.$block[f]||CKEDITOR.dtd.$listItem[f]||
CKEDITOR.dtd.$tableContent[f]||CKEDITOR.dtd.$nonEditable[f]||"br"==f);this.isEmpty=!!CKEDITOR.dtd.$empty[c];this.isUnknown=!CKEDITOR.dtd[c];this._={isBlockLike:f,hasInlineStarted:this.isEmpty||!f}},CKEDITOR.htmlParser.cssStyle=function(c){var h={};((c instanceof CKEDITOR.htmlParser.element?c.attributes.style:c)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,a,g){"font-family"==a&&(g=g.replace(/["']/g,""));h[a.toLowerCase()]=g});return{rules:h,populate:function(c){var a=
this.toString();a&&(c instanceof CKEDITOR.dom.element?c.setAttribute("style",a):c instanceof CKEDITOR.htmlParser.element?c.attributes.style=a:c.style=a)},toString:function(){var c=[],a;for(a in h)h[a]&&c.push(a,":",h[a],";");return c.join("")}}},function(){function c(a){return function(c){return c.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof a?c.name==a:c.name in a)}}var h=function(a,c){a=a[0];c=c[0];return a<c?-1:a>c?1:0},f=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=
CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:f.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,c){var f=this,h,k;c=f.getFilterContext(c);if(!f.parent)a.onRoot(c,f);for(;;){h=f.name;if(!(k=a.onElementName(c,h)))return this.remove(),!1;f.name=k;if(!(f=a.onElement(c,f)))return this.remove(),!1;if(f!==this)return this.replaceWith(f),!1;if(f.name==h)break;if(f.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(f),
!1;if(!f.name)return this.replaceWithChildren(),!1}h=f.attributes;var b,d;for(b in h){for(k=h[b];;)if(d=a.onAttributeName(c,b))if(d!=b)delete h[b],b=d;else break;else{delete h[b];break}d&&(!1===(k=a.onAttribute(c,f,d,k))?delete h[d]:h[d]=k)}f.isEmpty||this.filterChildren(a,!1,c);return!0},filterChildren:f.filterChildren,writeHtml:function(a,c){c&&this.filter(c);var f=this.name,n=[],k=this.attributes,b,d;a.openTag(f,k);for(b in k)n.push([b,k[b]]);a.sortAttributes&&n.sort(h);b=0;for(d=n.length;b<d;b++)k=
n[b],a.attribute(k[0],k[1]);a.openTagClose(f,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(f)},writeChildrenHtml:f.writeChildrenHtml,replaceWithChildren:function(){for(var a=this.children,c=a.length;c;)a[--c].insertAfter(this);this.remove()},forEach:f.forEach,getFirst:function(a){if(!a)return this.children.length?this.children[0]:null;"function"!=typeof a&&(a=c(a));for(var g=0,f=this.children.length;g<f;++g)if(a(this.children[g]))return this.children[g];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 c=0,f=a.length;c<f;++c)a[c].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var c=this.children.splice(a,this.children.length-a),f=this.clone(),h=0;h<c.length;++h)c[h].parent=f;f.children=c;c[0]&&(c[0].previous=null);0<a&&(this.children[a-
1].next=null);this.parent.add(f,this.getIndex()+1);return f},find:function(a,c){void 0===c&&(c=!1);var f=[],h;for(h=0;h<this.children.length;h++){var k=this.children[h];"function"==typeof a&&a(k)?f.push(k):"string"==typeof a&&k.name===a&&f.push(k);c&&k.find&&(f=f.concat(k.find(a,c)))}return f},findOne:function(a,c){var f=null,h=CKEDITOR.tools.array.find(this.children,function(k){var b="function"===typeof a?a(k):k.name===a;if(b||!c)return b;k.children&&k.findOne&&(f=k.findOne(a,!0));return!!f});return f||
h||null},addClass:function(a){if(!this.hasClass(a)){var c=this.attributes["class"]||"";this.attributes["class"]=c+(c?" ":"")+a}},removeClass:function(a){var c=this.attributes["class"];c&&((c=CKEDITOR.tools.trim(c.replace(new RegExp("(?:\\s+|^)"+a+"(?:\\s+|$)")," ")))?this.attributes["class"]=c:delete this.attributes["class"])},hasClass:function(a){var c=this.attributes["class"];return c?(new RegExp("(?:^|\\s)"+a+"(?\x3d\\s|$)")).test(c):!1},getFilterContext:function(a){var c=[];a||(a={nonEditable:!1,
nestedEditable:!1});a.nonEditable||"false"!=this.attributes.contenteditable?a.nonEditable&&!a.nestedEditable&&"true"==this.attributes.contenteditable&&c.push("nestedEditable",!0):c.push("nonEditable",!0);if(c.length){a=CKEDITOR.tools.copy(a);for(var f=0;f<c.length;f+=2)a[c[f]]=c[f+1]}return a}},!0)}(),function(){var c=/{([^}]+)}/g;CKEDITOR.template=function(c){this.source="function"===typeof c?c:String(c)};CKEDITOR.template.prototype.output=function(h,f){var a=("function"===typeof this.source?this.source(h):
this.source).replace(c,function(a,c){return void 0!==h[c]?h[c]:a});return f?f.push(a):a}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(c){function h(){CKEDITOR.currentInstance==c&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}CKEDITOR.instances[c.name]=c;c.on("focus",function(){CKEDITOR.currentInstance!=c&&(CKEDITOR.currentInstance=c,CKEDITOR.fire("currentInstance"))});c.on("blur",h);c.on("destroy",
h);CKEDITOR.fire("instance",null,c)},CKEDITOR.remove=function(c){delete CKEDITOR.instances[c.name]},function(){var c={};CKEDITOR.addTemplate=function(h,f){var a=c[h];if(a)return a;a={name:h,source:f};CKEDITOR.fire("template",a);return c[h]=new CKEDITOR.template(a.source)};CKEDITOR.getTemplate=function(h){return c[h]}}(),function(){var c=[];CKEDITOR.addCss=function(h){c.push(h)};CKEDITOR.getCss=function(){return c.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&
CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline=function(c,h){c=CKEDITOR.editor._getEditorElement(c);if(!c)return null;var f=new CKEDITOR.editor(h,c,CKEDITOR.ELEMENT_MODE_INLINE),a=c.is("textarea")?c:null;a?(f.setData(a.getValue(),null,!0),c=CKEDITOR.dom.element.createFromHtml('\x3cdiv contenteditable\x3d"'+!!f.readOnly+'" class\x3d"cke_textarea_inline"\x3e'+a.getValue()+"\x3c/div\x3e",CKEDITOR.document),c.insertAfter(a),
a.hide(),a.$.form&&f._attachToForm()):(h&&"undefined"!==typeof h.readOnly&&!h.readOnly&&c.setAttribute("contenteditable","true"),f.setData(c.getHtml(),null,!0));f.on("loaded",function(){f.fire("uiReady");f.editable(c);f.container=c;f.ui.contentsElement=c;f.setData(f.getData(1));f.resetDirty();f.fire("contentDom");f.mode="wysiwyg";f.fire("mode");f.status="ready";f.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,f)},null,null,1E4);f.on("destroy",function(){var c=f.container;a&&c&&(c.clearCustomData(),
c.remove());a&&a.show();f.element.clearCustomData();delete f.element});return f};CKEDITOR.inlineAll=function(){var c,h,f;for(f in CKEDITOR.dtd.$editable)for(var a=CKEDITOR.document.getElementsByTag(f),g=0,m=a.count();g<m;g++)c=a.getItem(g),"true"!=c.getAttribute("contenteditable")||c.getEditor()||(h={element:c,config:{}},!1!==CKEDITOR.fire("inline",h)&&CKEDITOR.inline(c,h.config))};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",
function(){function c(a,c,m,n){a=CKEDITOR.editor._getEditorElement(a);if(!a)return null;var k=new CKEDITOR.editor(c,a,n);n==CKEDITOR.ELEMENT_MODE_REPLACE&&(a.setStyle("visibility","hidden"),k._.required=a.hasAttribute("required"),a.removeAttribute("required"));m&&k.setData(m,null,!0);k.on("loaded",function(){k.isDestroyed()||k.isDetached()||(f(k),n==CKEDITOR.ELEMENT_MODE_REPLACE&&k.config.autoUpdateElement&&a.$.form&&k._attachToForm(),k.setMode(k.config.startupMode,function(){k.resetDirty();k.status=
"ready";k.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,k)}))});k.on("destroy",h);return k}function h(){var a=this.container,c=this.element;a&&(a.clearCustomData(),a.remove());c&&(c.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(c.show(),this._.required&&c.setAttribute("required","required")),delete this.element)}function f(a){var c=a.name,f=a.element,h=a.elementMode,k=a.fire("uiSpace",{space:"top",html:""}).html,b=a.fire("uiSpace",{space:"bottom",html:""}).html,
d=new CKEDITOR.template('\x3c{outerEl} id\x3d"cke_{name}" class\x3d"{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'"  dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"application"'+(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'),
c=CKEDITOR.dom.element.createFromHtml(d.output({id:a.id,name:c,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:k?'\x3cspan id\x3d"'+a.ui.spaceId("top")+'" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e'+k+"\x3c/span\x3e":"",contentId:a.ui.spaceId("contents"),bottomHtml:b?'\x3cspan id\x3d"'+a.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+b+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));h==CKEDITOR.ELEMENT_MODE_REPLACE?
(f.hide(),c.insertAfter(f)):f.append(c);a.container=c;a.ui.contentsElement=a.ui.space("contents");k&&a.ui.space("top").unselectable();b&&a.ui.space("bottom").unselectable();f=a.config.width;h=a.config.height;f&&c.setStyle("width",CKEDITOR.tools.cssLength(f));h&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(h));c.disableContextMenu();CKEDITOR.env.webkit&&c.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(a,g){return c(a,g,null,CKEDITOR.ELEMENT_MODE_REPLACE)};
CKEDITOR.appendTo=function(a,g,f){return c(a,g,f,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),c=0;c<a.length;c++){var f=null,h=a[c];if(h.name||h.id){if("string"==typeof arguments[0]){if(!(new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)")).test(h.className))continue}else if("function"==typeof arguments[0]&&(f={},!1===arguments[0](h,f)))continue;this.replace(h,f)}}};CKEDITOR.editor.prototype.addMode=function(a,c){(this._.modes||(this._.modes=
{}))[a]=c};CKEDITOR.editor.prototype.setMode=function(a,c){var f=this,h=this._.modes;if(a!=f.mode&&h&&h[a]){f.fire("beforeSetMode",a);if(f.mode){var k=f.checkDirty(),h=f._.previousModeData,b,d=0;f.fire("beforeModeUnload");f.editable(0);f._.previousMode=f.mode;f._.previousModeData=b=f.getData(1);"source"==f.mode&&h==b&&(f.fire("lockSnapshot",{forceUpdate:!0}),d=1);f.ui.space("contents").setHtml("");f.mode=""}else f._.previousModeData=f.getData(1);this._.modes[a](function(){f.mode=a;void 0!==k&&!k&&
f.resetDirty();d?f.fire("unlockSnapshot"):"wysiwyg"==a&&f.fire("saveSnapshot");setTimeout(function(){f.isDestroyed()||f.isDetached()||(f.fire("mode"),c&&c.call(f))},0)})}};CKEDITOR.editor.prototype.resize=function(a,c,f,h){var k=this.container,b=this.ui.space("contents"),d=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;h=h?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):k;if(a||0===a)a=CKEDITOR.tools.convertToPx(CKEDITOR.tools.cssLength(a));
h.setSize("width",a,!0);d&&(d.style.width="1%");c=CKEDITOR.tools.convertToPx(CKEDITOR.tools.cssLength(c));var e=(h.$.offsetHeight||0)-(b.$.clientHeight||0),k=Math.max(c-(f?0:e),0);c=f?c+e:c;b.setStyle("height",CKEDITOR.tools.cssLength(k));d&&(d.style.width="100%");this.fire("resize",{outerHeight:c,contentsHeight:k,outerWidth:a||h.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 c(b){var d=b.editor,e=b.data.path,c=e.blockLimit,g=b.data.selection,f=g.getRanges()[0],l;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(g=h(g,e))g.appendBogus(),l=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.edge&&d._.previousActive;n(d,e.block,c)&&f.collapsed&&!f.getCommonAncestor().isReadOnly()&&(e=f.clone(),e.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),c=new CKEDITOR.dom.walker(e),
c.guard=function(b){return!a(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()},!c.checkForward()||e.checkStartOfBlock()&&e.checkEndOfBlock())&&(d=f.fixBlock(!0,d.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(d=d.getFirst(a))&&d.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(d.getText()).match(/^(?:&nbsp;|\xa0)$/)&&d.remove(),l=1,b.cancel());l&&f.select()}function h(b,d){if(b.isFake)return 0;var e=d.block||d.blockLimit,c=e&&e.getLast(a);if(!(!e||!e.isBlockBoundary()||
c&&c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()||e.is("pre")||e.getBogus()))return e}function f(a){var b=a.data.getTarget();b.is("input")&&(b=b.getAttribute("type"),"submit"!=b&&"reset"!=b||a.data.preventDefault())}function a(a){return l(a)&&v(a)}function g(a,b){return function(d){var e=d.data.$.toElement||d.data.$.fromElement||d.data.$.relatedTarget;(e=e&&e.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(e):null)&&(b.equals(e)||b.contains(e))||a.call(this,d)}}function m(b){function d(b){return function(d,
c){c&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(g)&&(e=d);if(!(c||!a(d)||b&&t(d)))return!1}}var e,c=b.getRanges()[0];b=b.root;var g={table:1,ul:1,ol:1,dl:1};if(c.startPath().contains(g)){var f=c.clone();f.collapse(1);f.setStartAt(b,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(f);b.guard=d();b.checkBackward();if(e)return f=c.clone(),f.collapse(),f.setEndAt(e,CKEDITOR.POSITION_AFTER_END),b=new CKEDITOR.dom.walker(f),b.guard=d(!0),e=!1,b.checkForward(),e}return null}function n(a,b,d){return!1!==
a.config.autoParagraph&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(d)&&!b||b&&"true"==b.getAttribute("contenteditable"))}function k(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==a.config.autoParagraph?a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":!1}function b(a){a&&a.isEmptyInlineRemoveable()&&a.remove()}function d(a){var b=a.editor;b.getSelection().scrollIntoView();setTimeout(function(){b.fire("saveSnapshot")},0)}function e(a,b,d){var e=a.getCommonAncestor(b);for(b=a=d?
b:a;(a=a.getParent())&&!e.equals(a)&&1==a.getChildCount();)b=a;b.remove()}var l,v,x,t,q,u,z,r,w,p;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);this.editor=a;this.status="unloaded";this.hasFocus=!1;this.setup()},proto:{focus:function(){var a;if(CKEDITOR.env.webkit&&!this.hasFocus&&(a=this.editor._.previousActive||this.getDocument().getActive(),this.contains(a))){a.focus();return}CKEDITOR.env.edge&&14<CKEDITOR.env.version&&!this.hasFocus&&
this.getDocument().equals(CKEDITOR.document)&&(this.editor._.previousScrollTop=this.$.scrollTop);try{if(!CKEDITOR.env.ie||CKEDITOR.env.edge&&14<CKEDITOR.env.version||!this.getDocument().equals(CKEDITOR.document))if(CKEDITOR.env.chrome){var b=this.$.scrollTop;this.$.focus();this.$.scrollTop=b}else this.$.focus();else this.$.setActive()}catch(d){if(!CKEDITOR.env.ie)throw d;}CKEDITOR.env.safari&&!this.isInline()&&(a=CKEDITOR.document.getActive(),a.equals(this.getWindow().getFrame())||this.getWindow().focus())},
on:function(a,b){var d=Array.prototype.slice.call(arguments,0);CKEDITOR.env.ie&&/^focus|blur$/.exec(a)&&(a="focus"==a?"focusin":"focusout",b=g(b,this),d[0]=a,d[1]=b);return CKEDITOR.dom.element.prototype.on.apply(this,d)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var b=Array.prototype.slice.call(arguments,1),b=a.on.apply(a,b);this._.listeners.push(b);return b},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=
this._.attrChanges,b,d;for(d in a)a.hasOwnProperty(d)&&(b=a[d],null!==b?this.setAttribute(d,b):this.removeAttribute(d))},attachClass:function(a){var b=this.getCustomData("classes");this.hasClass(a)||(!b&&(b=[]),b.push(a),this.setCustomData("classes",b),this.addClass(a))},changeAttr:function(a,b){var d=this.getAttribute(a);b!==d&&(!this._.attrChanges&&(this._.attrChanges={}),a in this._.attrChanges||(this._.attrChanges[a]=d),this.setAttribute(a,b))},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),
"text")},transformPlainTextToHtml:function(a){var b=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,b)},insertHtml:function(a,b,e){var c=this.editor;c.focus();c.fire("saveSnapshot");e||(e=c.getSelection().getRanges()[0]);u(this,b||"html",a,e);e.select();d(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,b,d){u(this,d||"html",a,b);this.editor.fire("afterInsertHtml",
{intoRange:b})},insertElement:function(b,e){var c=this.editor;c.focus();c.fire("saveSnapshot");var g=c.activeEnterMode,c=c.getSelection(),f=b.getName(),f=CKEDITOR.dtd.$block[f];e||(e=c.getRanges()[0]);this.insertElementIntoRange(b,e)&&(e.moveToPosition(b,CKEDITOR.POSITION_AFTER_END),f&&((f=b.getNext(function(b){return a(b)&&!t(b)}))&&f.type==CKEDITOR.NODE_ELEMENT&&f.is(CKEDITOR.dtd.$block)?f.getDtd()["#"]?e.moveToElementEditStart(f):e.moveToElementEditEnd(b):f||g==CKEDITOR.ENTER_BR||(f=e.fixBlock(!0,
g==CKEDITOR.ENTER_DIV?"div":"p"),e.moveToElementEditStart(f))));c.selectRanges([e]);d(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,d){var e=this.editor,c=e.config.enterMode,g=a.getName(),f=CKEDITOR.dtd.$block[g];if(d.checkReadOnly())return!1;d.deleteContents(1);d.startContainer.type==CKEDITOR.NODE_ELEMENT&&(d.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?z(d):d.startContainer.is(CKEDITOR.dtd.$list)&&r(d));var l,m;if(f)for(;(l=d.getCommonAncestor(0,
1))&&(m=CKEDITOR.dtd[l.getName()])&&(!m||!m[g]);)if(l.getName()in CKEDITOR.dtd.span){var f=d.splitElement(l),k=d.createBookmark();b(l);b(f);d.moveToBookmark(k)}else d.checkStartOfBlock()&&d.checkEndOfBlock()?(d.setStartBefore(l),d.collapse(!0),l.remove()):d.splitBlock(c==CKEDITOR.ENTER_DIV?"div":"p",e.editable());d.insertNode(a);return!0},setData:function(a,b){b||(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.fixInitialSelection();"unloaded"==this.status&&(this.status="ready");this.editor.fire("dataReady")},
getData:function(a){var b=this.getHtml();a||(b=this.editor.dataProcessor.toDataFormat(b));return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.status="detached";this.editor.setData(this.editor.getData(),{internal:!0});this.clearListeners();try{this._.cleanCustomData()}catch(a){if(!CKEDITOR.env.ie||-2146828218!==a.number)throw a;}this.editor.fire("contentDomUnload");delete this.editor.document;delete this.editor.window;delete this.editor},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},
fixInitialSelection:function(){function a(){var b=d.getDocument().$,e=b.getSelection(),c;a:if(e.anchorNode&&e.anchorNode==d.$)c=!0;else{if(CKEDITOR.env.webkit&&(c=d.getDocument().getActive())&&c.equals(d)&&!e.anchorNode){c=!0;break a}c=void 0}c&&(c=new CKEDITOR.dom.range(d),c.moveToElementEditStart(d),b=b.createRange(),b.setStart(c.startContainer.$,c.startOffset),b.collapse(!0),e.removeAllRanges(),e.addRange(b))}function b(){var a=d.getDocument().$,e=a.selection,c=d.getDocument().getActive();"None"==
e.type&&c.equals(d)&&(e=new CKEDITOR.dom.range(d),a=a.body.createTextRange(),e.moveToElementEditStart(d),e=e.startContainer,e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),a.moveToElementText(e.$),a.collapse(!0),a.select())}var d=this;if(CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks))this.hasFocus&&(this.focus(),b());else if(this.hasFocus)this.focus(),a();else this.once("focus",function(){a()},null,null,-999)},getHtmlFromRange:function(a){if(a.collapsed)return new CKEDITOR.dom.documentFragment(a.document);
a={doc:this.getDocument(),range:a.clone()};w.eol.detect(a,this);w.bogus.exclude(a);w.cell.shrink(a);a.fragment=a.range.cloneContents();w.tree.rebuild(a,this);w.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,b){var d=p,e={range:a,doc:a.document},c=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),c;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);d.table.detectPurge(e);e.bookmark=a.createBookmark();delete e.range;var g=this.editor.createRange();
g.moveToPosition(e.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);e.targetBookmark=g.createBookmark();d.list.detectMerge(e,this);d.table.detectRanges(e,this);d.block.detectMerge(e,this);e.tableContentsRanges?(d.table.deleteRanges(e),a.moveToBookmark(e.bookmark),e.range=a):(a.moveToBookmark(e.bookmark),e.range=a,a.extractContents(d.detectExtractMerge(e)));a.moveToBookmark(e.targetBookmark);a.optimize();d.fixUneditableRangePosition(a);d.list.merge(e,this);d.table.purge(e,this);d.block.merge(e,this);
if(b){d=a.startPath();if(e=a.checkStartOfBlock()&&a.checkEndOfBlock()&&d.block&&!a.root.equals(d.block)){a:{var e=d.block.getElementsByTag("span"),g=0,f;if(e)for(;f=e.getItem(g++);)if(!v(f)){e=!0;break a}e=!1}e=!e}e&&(a.moveToPosition(d.block,CKEDITOR.POSITION_BEFORE_START),d.block.remove())}else d.autoParagraph(this.editor,a),x(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return c},setup:function(){var b=this.editor;this.attachListener(b,"beforeGetData",function(){var a=
this.getData();this.is("textarea")||!1!==b.config.ignoreEmptyParagraph&&(a=a.replace(q,function(a,b){return b}));b.setData(a,null,1)},this);this.attachListener(b,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(b,"afterSetData",function(){this.setData(b.getData(1))},this);this.attachListener(b,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(b,"beforeFocus",function(){var a=b.getSelection();(a=a&&a.getNative())&&"Control"==a.type||this.focus()},
this);this.attachListener(b,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(b,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(b,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(b.readOnly);this.attachClass("cke_editable");b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):b.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&b.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||
this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+b.config.contentsLangDirection);b.keystrokeHandler.blockedKeystrokes[8]=+b.readOnly;b.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=!1},null,null,-1);this.on("focus",function(){this.hasFocus=!0},null,null,-1);if(CKEDITOR.env.webkit)this.on("scroll",function(){b._.previousScrollTop=b.editable().$.scrollTop},null,null,-1);if(CKEDITOR.env.edge&&14<CKEDITOR.env.version){var d=function(){var a=b.editable();
null!=b._.previousScrollTop&&a.getDocument().equals(CKEDITOR.document)&&(a.$.scrollTop=b._.previousScrollTop,b._.previousScrollTop=null,this.removeListener("scroll",d))};this.on("scroll",d)}b.focusManager.add(this);this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,b.once("contentDom",function(){b.focusManager.focus(this)},this));this.isInline()&&this.changeAttr("tabindex",b.tabIndex);if(!this.is("textarea")){b.document=this.getDocument();b.window=this.getWindow();var c=b.document;this.changeAttr("spellcheck",
!b.config.disableNativeSpellChecker);var g=b.config.contentsLangDirection;this.getDirection(1)!=g&&this.changeAttr("dir",g);var k=CKEDITOR.getCss();if(k){var g=c.getHead(),h=g.getCustomData("stylesheet");h?k!=h.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?h.$.styleSheet.cssText=k:h.setText(k)):(k=c.appendStyleText(k),k=new CKEDITOR.dom.element(k.ownerNode||k.owningElement),g.setCustomData("stylesheet",k),k.data("cke-temp",1))}g=c.getCustomData("stylesheet_ref")||0;c.setCustomData("stylesheet_ref",
g+1);this.setCustomData("cke_includeReadonly",!b.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){a=a.data;var b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");b&&2!=a.$.button&&b.isReadOnly()&&a.preventDefault()});var n={8:1,46:1};this.attachListener(b,"key",function(a){if(b.readOnly)return!0;var d=a.data.domEvent.getKey(),e;a=b.getSelection();if(0!==a.getRanges().length){if(d in n){var c,g=a.getRanges()[0],f=g.startPath(),k,h,v,d=8==d;CKEDITOR.env.ie&&
11>CKEDITOR.env.version&&(c=a.getSelectedElement())||(c=m(a))?(b.fire("saveSnapshot"),g.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START),c.remove(),g.select(),b.fire("saveSnapshot"),e=1):g.collapsed&&((k=f.block)&&(v=k[d?"getPrevious":"getNext"](l))&&v.type==CKEDITOR.NODE_ELEMENT&&v.is("table")&&g[d?"checkStartOfBlock":"checkEndOfBlock"]()?(b.fire("saveSnapshot"),g[d?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove(),g["moveToElementEdit"+(d?"End":"Start")](v),g.select(),b.fire("saveSnapshot"),
e=1):f.blockLimit&&f.blockLimit.is("td")&&(h=f.blockLimit.getAscendant("table"))&&g.checkBoundaryOfElement(h,d?CKEDITOR.START:CKEDITOR.END)&&(v=h[d?"getPrevious":"getNext"](l))?(b.fire("saveSnapshot"),g["moveToElementEdit"+(d?"End":"Start")](v),g.checkStartOfBlock()&&g.checkEndOfBlock()?v.remove():g.select(),b.fire("saveSnapshot"),e=1):(h=f.contains(["td","th","caption"]))&&g.checkBoundaryOfElement(h,d?CKEDITOR.START:CKEDITOR.END)&&(e=1))}return!e}});b.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&
this.attachListener(this,"keyup",function(d){d.data.getKeystroke()in n&&!this.getFirst(a)&&(this.appendBogus(),d=b.createRange(),d.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),d.select())});this.attachListener(this,"dblclick",function(a){if(b.readOnly)return!1;a={element:a.data.getTarget()};b.fire("doubleclick",a)});CKEDITOR.env.ie&&this.attachListener(this,"click",f);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(a){var d=a.data.getTarget();d.is("img","hr",
"input","textarea","select")&&!d.isReadOnly()&&(b.getSelection().selectElement(d),d.is("input","textarea","select")&&a.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(a){(a=a.data.getTarget())&&a.is("img")&&!a.isReadOnly()&&b.getSelection().selectElement(a)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(a){if(2==a.data.$.button&&(a=a.data.getTarget(),!a.getAscendant("table")&&!a.getOuterHtml().replace(q,""))){var d=b.createRange();d.moveToElementEditStart(a);
d.select(!0)}});CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()}),this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&a.data.preventDefault()}));CKEDITOR.env.webkit&&this.attachListener(b,"key",function(a){if(b.readOnly)return!0;var d=a.data.domEvent.getKey();if(d in n&&(a=b.getSelection(),0!==a.getRanges().length)){var d=8==d,c=a.getRanges()[0];a=c.startPath();if(c.collapsed)a:{var g=
a.block;if(g&&c[d?"checkStartOfBlock":"checkEndOfBlock"]()&&c.moveToClosestEditablePosition(g,!d)&&c.collapsed){if(c.startContainer.type==CKEDITOR.NODE_ELEMENT){var f=c.startContainer.getChild(c.startOffset-(d?1:0));if(f&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("hr")){b.fire("saveSnapshot");f.remove();a=!0;break a}}c=c.startPath().block;if(!c||c&&c.contains(g))a=void 0;else{b.fire("saveSnapshot");var l;(l=(d?c:g).getBogus())&&l.remove();l=b.getSelection();f=l.createBookmarks();(d?g:c).moveChildren(d?
c:g,!1);a.lastElement.mergeSiblings();e(g,c,!d);l.selectBookmarks(f);a=!0}}else a=!1}else d=c,l=a.block,c=d.endPath().block,l&&c&&!l.equals(c)?(b.fire("saveSnapshot"),(g=l.getBogus())&&g.remove(),d.enlarge(CKEDITOR.ENLARGE_INLINE),d.deleteContents(),c.getParent()&&(c.moveChildren(l,!1),a.lastElement.mergeSiblings(),e(l,c,!0)),d=b.getSelection().getRanges()[0],d.collapse(1),d.optimize(),""===d.startContainer.getHtml()&&d.startContainer.appendBogus(),d.select(),a=!0):a=!1;if(!a)return;b.getSelection().scrollIntoView();
b.fire("saveSnapshot");return!1}},this,null,100)}},getUniqueId:function(){var a;try{this._.expandoNumber=a=CKEDITOR.dom.domObject.prototype.getUniqueId.call(this)}catch(b){a=this._&&this._.expandoNumber}return a}},_:{cleanCustomData:function(){this.removeClass("cke_editable");this.restoreAttrs();for(var a=this.removeCustomData("classes");a&&a.length;)this.removeClass(a.pop());if(!this.is("textarea")){var a=this.getDocument(),b=a.getHead();if(b.getCustomData("stylesheet")){var d=a.getCustomData("stylesheet_ref");
--d?a.setCustomData("stylesheet_ref",d):(a.removeCustomData("stylesheet_ref"),b.removeCustomData("stylesheet").remove())}}}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(!arguments.length)return b;a?b=a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(b&&b.detach(),b=null);return this._.editable=b};CKEDITOR.on("instanceLoaded",function(a){var b=a.editor;b.on("insertElement",function(a){a=a.data;a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||
a.is("textarea"))&&("false"!=a.getAttribute("contentEditable")&&a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1"),a.setAttribute("contentEditable",!1))});b.on("selectionChange",function(a){if(!b.readOnly){var d=b.getSelection();d&&!d.isLocked&&(d=b.checkDirty(),b.fire("lockSnapshot"),c(a),b.fire("unlockSnapshot"),!d&&b.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var d=b.title;a.changeAttr("role",
"textbox");a.changeAttr("aria-multiline","true");a.changeAttr("aria-label",d);d&&a.changeAttr("title",d);var e=b.fire("ariaEditorHelpLabel",{}).label;if(e&&(d=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var c=CKEDITOR.tools.getNextId(),e=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+c+'" class\x3d"cke_voice_label"\x3e'+e+"\x3c/span\x3e");d.append(e);a.changeAttr("aria-describedby",c)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");
l=CKEDITOR.dom.walker.whitespaces(!0);v=CKEDITOR.dom.walker.bookmark(!1,!0);x=CKEDITOR.dom.walker.empty();t=CKEDITOR.dom.walker.bogus();q=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;u=function(){function d(a){return a.type==CKEDITOR.NODE_ELEMENT}function e(a,b){var c,g,f,l,m=[],k=b.range.startContainer;c=b.range.startPath();for(var k=h[k.getName()],n=0,v=a.getChildren(),u=v.count(),H=-1,D=-1,x=0,p=c.contains(h.$list);n<
u;++n)c=v.getItem(n),d(c)?(f=c.getName(),p&&f in CKEDITOR.dtd.$list?m=m.concat(e(c,b)):(l=!!k[f],"br"!=f||!c.data("cke-eol")||n&&n!=u-1||(x=(g=n?m[n-1].node:v.getItem(n+1))&&(!d(g)||!g.is("br")),g=g&&d(g)&&h.$block[g.getName()]),-1!=H||l||(H=n),l||(D=n),m.push({isElement:1,isLineBreak:x,isBlock:c.isBlockBoundary(),hasBlockSibling:g,node:c,name:f,allowed:l}),g=x=0)):m.push({isElement:0,node:c,allowed:1});-1<H&&(m[H].firstNotAllowed=1);-1<D&&(m[D].lastNotAllowed=1);return m}function c(a,b){var e=[],
g=a.getChildren(),f=g.count(),l,m=0,k=h[b],n=!a.is(h.$inline)||a.is("br");for(n&&e.push(" ");m<f;m++)l=g.getItem(m),d(l)&&!l.is(k)?e=e.concat(c(l,b)):e.push(l);n&&e.push(" ");return e}function g(a){return d(a.startContainer)&&a.startContainer.getChild(a.startOffset-1)}function f(a){return a&&d(a)&&(a.is(h.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function l(a,b,e,c){var g=a.clone(),f,m;g.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);(f=(new CKEDITOR.dom.walker(g)).next())&&d(f)&&v[f.getName()]&&
(m=f.getPrevious())&&d(m)&&!m.getParent().equals(a.startContainer)&&e.contains(m)&&c.contains(f)&&f.isIdentical(m)&&(f.moveChildren(m),f.remove(),l(a,b,e,c))}function m(a,b){function e(a,b){if(b.isBlock&&b.isElement&&!b.node.is("br")&&d(a)&&a.is("br"))return a.remove(),1}var c=b.endContainer.getChild(b.endOffset),g=b.endContainer.getChild(b.endOffset-1);c&&e(c,a[a.length-1]);g&&e(g,a[0])&&(b.setEnd(b.endContainer,b.endOffset-1),b.collapse())}var h=CKEDITOR.dtd,v={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},u={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},x=CKEDITOR.tools.extend({},h.$inline);delete x.br;return function(v,p,J,E){var I=v.editor,B=!1,t;"unfiltered_html"==p&&(p="html",B=!0);if(!E.checkReadOnly()){var r=(new CKEDITOR.dom.elementPath(E.startContainer,E.root)).blockLimit||E.root;p={type:p,dontFilter:B,editable:v,editor:I,range:E,blockLimit:r,mergeCandidates:[],zombies:[]};var B=p.range,r=p.mergeCandidates,z="html"===p.type,w,S,U,Z,ca;"text"==p.type&&
B.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(S=CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",B.document),B.insertNode(S),B.setStartAfter(S));U=new CKEDITOR.dom.elementPath(B.startContainer);p.endPath=Z=new CKEDITOR.dom.elementPath(B.endContainer);if(!B.collapsed){w=Z.block||Z.blockLimit;var ea=B.getCommonAncestor();w&&!w.equals(ea)&&!w.contains(ea)&&B.checkEndOfBlock()&&p.zombies.push(w);B.deleteContents()}for(;(ca=g(B))&&d(ca)&&ca.isBlockBoundary()&&U.contains(ca);)B.moveToPosition(ca,
CKEDITOR.POSITION_BEFORE_END);l(B,p.blockLimit,U,Z);S&&(B.setEndBefore(S),B.collapse(),S.remove());S=B.startPath();if(w=S.contains(f,!1,1))t=B.splitElement(w),p.inlineStylesRoot=w,p.inlineStylesPeak=S.lastElement;S=B.createBookmark();z&&(b(w),b(t));(w=S.startNode.getPrevious(a))&&d(w)&&f(w)&&r.push(w);(w=S.startNode.getNext(a))&&d(w)&&f(w)&&r.push(w);for(w=S.startNode;(w=w.getParent())&&f(w);)r.push(w);B.moveToBookmark(S);t=v.getHtml();t=""===t||t.match(q);I.enterMode===CKEDITOR.ENTER_DIV&&t&&((I=
v.getFirst())&&I.remove(),E.setStartAt(v,CKEDITOR.POSITION_AFTER_START),E.collapse(!0));if(v=J){v=p.range;if("text"==p.type&&p.inlineStylesRoot){E=p.inlineStylesPeak;I=E.getDocument().createText("{cke-peak}");for(t=p.inlineStylesRoot.getParent();!E.equals(t);)I=I.appendTo(E.clone()),E=E.getParent();J=I.getOuterHtml().split("{cke-peak}").join(J)}E=p.blockLimit.getName();if(/^\s+|\s+$/.test(J)&&"span"in CKEDITOR.dtd[E]){var X='\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e';J=X+J+X}J=p.editor.dataProcessor.toHtml(J,
{context:null,fixForBody:!1,protectedWhitespaces:!!X,dontFilter:p.dontFilter,filter:p.editor.activeFilter,enterMode:p.editor.activeEnterMode});E=v.document.createElement("body");E.setHtml(J);X&&(E.getFirst().remove(),E.getLast().remove());if((X=v.startPath().block)&&(1!=X.getChildCount()||!X.getBogus()))a:{var Q;if(1==E.getChildCount()&&d(Q=E.getFirst())&&Q.is(u)&&!Q.hasAttribute("contenteditable")){X=Q.getElementsByTag("*");v=0;for(t=X.count();v<t;v++)if(I=X.getItem(v),!I.is(x))break a;Q.moveChildren(Q.getParent(1));
Q.remove()}}p.dataWrapper=E;v=J}if(v){Q=p.range;v=Q.document;E=p.blockLimit;t=0;var R,X=[],ga,M;J=S=0;var Y,I=Q.startContainer;ca=p.endPath.elements[0];var aa,B=ca.getPosition(I),r=!!ca.getCommonAncestor(I)&&B!=CKEDITOR.POSITION_IDENTICAL&&!(B&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),I=e(p.dataWrapper,p);for(m(I,Q);t<I.length;t++){B=I[t];if(z=B.isLineBreak)z=Q,w=E,Z=U=void 0,B.hasBlockSibling?z=1:(U=z.startContainer.getAscendant(h.$block,1))&&U.is({div:1,p:1})?(Z=U.getPosition(w),
Z==CKEDITOR.POSITION_IDENTICAL||Z==CKEDITOR.POSITION_CONTAINS?z=0:(w=z.splitElement(U),z.moveToPosition(w,CKEDITOR.POSITION_AFTER_START),z=1)):z=0;if(z)J=0<t;else{z=Q.startPath();!B.isBlock&&n(p.editor,z.block,z.blockLimit)&&(M=k(p.editor))&&(M=v.createElement(M),M.appendBogus(),Q.insertNode(M),CKEDITOR.env.needsBrFiller&&(R=M.getBogus())&&R.remove(),Q.moveToPosition(M,CKEDITOR.POSITION_BEFORE_END));if((z=Q.startPath().block)&&!z.equals(ga)){if(R=z.getBogus())R.remove(),X.push(z);ga=z}B.firstNotAllowed&&
(S=1);if(S&&B.isElement){z=Q.startContainer;for(w=null;z&&!h[z.getName()][B.name];){if(z.equals(E)){z=null;break}w=z;z=z.getParent()}if(z)w&&(Y=Q.splitElement(w),p.zombies.push(Y),p.zombies.push(w));else{w=E.getName();aa=!t;z=t==I.length-1;w=c(B.node,w);U=[];Z=w.length;for(var ea=0,ha=void 0,da=0,ba=-1;ea<Z;ea++)ha=w[ea]," "==ha?(da||aa&&!ea||(U.push(new CKEDITOR.dom.text(" ")),ba=U.length),da=1):(U.push(ha),da=0);z&&ba==U.length&&U.pop();aa=U}}if(aa){for(;z=aa.pop();)Q.insertNode(z);aa=0}else Q.insertNode(B.node);
B.lastNotAllowed&&t<I.length-1&&((Y=r?ca:Y)&&Q.setEndAt(Y,CKEDITOR.POSITION_AFTER_START),S=0);Q.collapse()}}1!=I.length?R=!1:(R=I[0],R=R.isElement&&"false"==R.node.getAttribute("contenteditable"));R&&(J=!0,z=I[0].node,Q.setStartAt(z,CKEDITOR.POSITION_BEFORE_START),Q.setEndAt(z,CKEDITOR.POSITION_AFTER_END));p.dontMoveCaret=J;p.bogusNeededBlocks=X}R=p.range;var ia;aa=p.bogusNeededBlocks;for(ga=R.createBookmark();M=p.zombies.pop();)M.getParent()&&(Y=R.clone(),Y.moveToElementEditStart(M),Y.removeEmptyBlocksAtEnd());
if(aa)for(;M=aa.pop();)CKEDITOR.env.needsBrFiller?M.appendBogus():M.append(R.document.createText(" "));for(;M=p.mergeCandidates.pop();)M.mergeSiblings();CKEDITOR.env.webkit&&R.startPath()&&(M=R.startPath(),M.block?M.block.$.normalize():M.blockLimit&&M.blockLimit.$.normalize());R.moveToBookmark(ga);if(!p.dontMoveCaret){for(M=g(R);M&&d(M)&&!M.is(h.$empty);){if(M.isBlockBoundary())R.moveToPosition(M,CKEDITOR.POSITION_BEFORE_END);else{if(f(M)&&M.getHtml().match(/(\s|&nbsp;)$/g)){ia=null;break}ia=R.clone();
ia.moveToPosition(M,CKEDITOR.POSITION_BEFORE_END)}M=M.getLast(a)}ia&&R.moveToRange(ia)}}}}();z=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return b}function b(a,d,e){d=a.getDocument().createElement(d);a.append(d,e);return d}function d(a){var b=a.count(),e;for(b;0<b--;)e=a.getItem(b),CKEDITOR.tools.trim(e.getHtml())||(e.appendBogus(),
CKEDITOR.env.ie&&9>CKEDITOR.env.version&&e.getChildCount()&&e.getFirst().remove())}return function(e){var c=e.startContainer,g=c.getAscendant("table",1),f=!1;d(g.getElementsByTag("td"));d(g.getElementsByTag("th"));g=e.clone();g.setStart(c,0);g=a(g).lastBackward();g||(g=e.clone(),g.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),g=a(g).lastForward(),f=!0);g||(g=c);g.is("table")?(e.setStartAt(g,CKEDITOR.POSITION_BEFORE_START),e.collapse(!0),g.remove()):(g.is({tbody:1,thead:1,tfoot:1})&&(g=b(g,"tr",f)),g.is("tr")&&
(g=b(g,g.getParent().is("thead")?"th":"td",f)),(c=g.getBogus())&&c.remove(),e.moveToPosition(g,f?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}();r=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$list)||a.is(CKEDITOR.dtd.$listItem)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$listItem)};return b}return function(b){var d=b.startContainer,e=!1,c;c=
b.clone();c.setStart(d,0);c=a(c).lastBackward();c||(c=b.clone(),c.setEndAt(d,CKEDITOR.POSITION_BEFORE_END),c=a(c).lastForward(),e=!0);c||(c=d);c.is(CKEDITOR.dtd.$list)?(b.setStartAt(c,CKEDITOR.POSITION_BEFORE_START),b.collapse(!0),c.remove()):((d=c.getBogus())&&d.remove(),b.moveToPosition(c,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),b.select())}}();w={eol:{detect:function(a,b){var d=a.range,e=d.clone(),c=d.clone(),g=new CKEDITOR.dom.elementPath(d.startContainer,b),f=new CKEDITOR.dom.elementPath(d.endContainer,
b);e.collapse(1);c.collapse();g.block&&e.checkBoundaryOfElement(g.block,CKEDITOR.END)&&(d.setStartAfter(g.block),a.prependEolBr=1);f.block&&c.checkBoundaryOfElement(f.block,CKEDITOR.START)&&(d.setEndBefore(f.block),a.appendEolBr=1)},fix:function(a,b){var d=b.getDocument(),e;a.appendEolBr&&(e=this.createEolBr(d),a.fragment.append(e));!a.prependEolBr||e&&!e.getPrevious()||a.fragment.append(this.createEolBr(d),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}},
bogus:{exclude:function(a){var b=a.range.getBoundaryNodes(),d=b.startNode,b=b.endNode;!b||!t(b)||d&&d.equals(b)||a.range.setEndBefore(b)}},tree:{rebuild:function(a,b){var d=a.range,e=d.getCommonAncestor(),c=new CKEDITOR.dom.elementPath(e,b),g=new CKEDITOR.dom.elementPath(d.startContainer,b),d=new CKEDITOR.dom.elementPath(d.endContainer,b),f;e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent());if(c.blockLimit.is({tr:1,table:1})){var l=c.contains("table").getParent();f=function(a){return!a.equals(l)}}else if(c.block&&
c.block.is(CKEDITOR.dtd.$listItem)&&(g=g.contains(CKEDITOR.dtd.$list),d=d.contains(CKEDITOR.dtd.$list),!g.equals(d))){var m=c.contains(CKEDITOR.dtd.$list).getParent();f=function(a){return!a.equals(m)}}f||(f=function(a){return!a.equals(c.block)&&!a.equals(c.blockLimit)});this.rebuildFragment(a,b,e,f)},rebuildFragment:function(a,b,d,e){for(var c;d&&!d.equals(b)&&e(d);)c=d.clone(0,1),a.fragment.appendTo(c),a.fragment=c,d=d.getParent()}},cell:{shrink:function(a){a=a.range;var b=a.startContainer,d=a.endContainer,
e=a.startOffset,c=a.endOffset;b.type==CKEDITOR.NODE_ELEMENT&&b.equals(d)&&b.is("tr")&&++e==c&&a.shrink(CKEDITOR.SHRINK_TEXT)}}};p=function(){function a(b,d){var e=b.getParent();if(e.is(CKEDITOR.dtd.$inline))b[d?"insertBefore":"insertAfter"](e)}function b(d,e,c){a(e);a(c,1);for(var g;g=c.getNext();)g.insertAfter(e),e=g;x(d)&&d.remove()}function d(a,b){var e=new CKEDITOR.dom.range(a);e.setStartAfter(b.startNode);e.setEndBefore(b.endNode);return e}return{list:{detectMerge:function(a,b){var e=d(b,a.bookmark),
c=e.startPath(),g=e.endPath(),f=c.contains(CKEDITOR.dtd.$list),l=g.contains(CKEDITOR.dtd.$list);a.mergeList=f&&l&&f.getParent().equals(l.getParent())&&!f.equals(l);a.mergeListItems=c.block&&g.block&&c.block.is(CKEDITOR.dtd.$listItem)&&g.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)e=e.clone(),e.setStartBefore(a.bookmark.startNode),e.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=e.createBookmark()},merge:function(a,d){if(a.mergeListBookmark){var e=a.mergeListBookmark.startNode,
c=a.mergeListBookmark.endNode,g=new CKEDITOR.dom.elementPath(e,d),f=new CKEDITOR.dom.elementPath(c,d);if(a.mergeList){var l=g.contains(CKEDITOR.dtd.$list),m=f.contains(CKEDITOR.dtd.$list);l.equals(m)||(m.moveChildren(l),m.remove())}a.mergeListItems&&(g=g.contains(CKEDITOR.dtd.$listItem),f=f.contains(CKEDITOR.dtd.$listItem),g.equals(f)||b(f,e,c));e.remove();c.remove()}}},block:{detectMerge:function(a,b){if(!a.tableContentsRanges&&!a.mergeListBookmark){var d=new CKEDITOR.dom.range(b);d.setStartBefore(a.bookmark.startNode);
d.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=d.createBookmark()}},merge:function(a,d){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var e=a.mergeBlockBookmark.startNode,c=a.mergeBlockBookmark.endNode,g=new CKEDITOR.dom.elementPath(e,d),f=new CKEDITOR.dom.elementPath(c,d),g=g.block,f=f.block;g&&f&&!g.equals(f)&&b(f,e,c);e.remove();c.remove()}}},table:function(){function a(d){var c=[],g,f=new CKEDITOR.dom.walker(d),l=d.startPath().contains(e),m=d.endPath().contains(e),k={};f.guard=function(a,
f){if(a.type==CKEDITOR.NODE_ELEMENT){var h="visited_"+(f?"out":"in");if(a.getCustomData(h))return;CKEDITOR.dom.element.setMarker(k,a,h,1)}if(f&&l&&a.equals(l))g=d.clone(),g.setEndAt(l,CKEDITOR.POSITION_BEFORE_END),c.push(g);else if(!f&&m&&a.equals(m))g=d.clone(),g.setStartAt(m,CKEDITOR.POSITION_AFTER_START),c.push(g);else{if(h=!f)h=a.type==CKEDITOR.NODE_ELEMENT&&a.is(e)&&(!l||b(a,l))&&(!m||b(a,m));if(!h&&(h=f))if(a.is(e))var h=l&&l.getAscendant("table",!0),n=m&&m.getAscendant("table",!0),v=a.getAscendant("table",
!0),h=h&&h.contains(v)||n&&n.contains(v);else h=void 0;h&&(g=d.clone(),g.selectNodeContents(a),c.push(g))}};f.lastForward();CKEDITOR.dom.element.clearAllMarkers(k);return c}function b(a,d){var e=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,c=a.getPosition(d);return c===CKEDITOR.POSITION_IDENTICAL?!1:0===(c&e)}var e={td:1,th:1,caption:1};return{detectPurge:function(a){var b=a.range,d=b.clone();d.enlarge(CKEDITOR.ENLARGE_ELEMENT);var d=new CKEDITOR.dom.walker(d),c=0;d.evaluator=function(a){a.type==
CKEDITOR.NODE_ELEMENT&&a.is(e)&&++c};d.checkForward();if(1<c){var d=b.startPath().contains("table"),g=b.endPath().contains("table");d&&g&&b.checkBoundaryOfElement(d,CKEDITOR.START)&&b.checkBoundaryOfElement(g,CKEDITOR.END)&&(b=a.range.clone(),b.setStartBefore(d),b.setEndAfter(g),a.purgeTableBookmark=b.createBookmark())}},detectRanges:function(c,g){var f=d(g,c.bookmark),l=f.clone(),m,h,k=f.getCommonAncestor();k.is(CKEDITOR.dtd.$tableContent)&&!k.is(e)&&(k=k.getAscendant("table",!0));h=k;k=new CKEDITOR.dom.elementPath(f.startContainer,
h);h=new CKEDITOR.dom.elementPath(f.endContainer,h);k=k.contains("table");h=h.contains("table");if(k||h)k&&h&&b(k,h)?(c.tableSurroundingRange=l,l.setStartAt(k,CKEDITOR.POSITION_AFTER_END),l.setEndAt(h,CKEDITOR.POSITION_BEFORE_START),l=f.clone(),l.setEndAt(k,CKEDITOR.POSITION_AFTER_END),m=f.clone(),m.setStartAt(h,CKEDITOR.POSITION_BEFORE_START),m=a(l).concat(a(m))):k?h||(c.tableSurroundingRange=l,l.setStartAt(k,CKEDITOR.POSITION_AFTER_END),f.setEndAt(k,CKEDITOR.POSITION_AFTER_END)):(c.tableSurroundingRange=
l,l.setEndAt(h,CKEDITOR.POSITION_BEFORE_START),f.setStartAt(h,CKEDITOR.POSITION_AFTER_START)),c.tableContentsRanges=m?m:a(f)},deleteRanges:function(a){for(var b;b=a.tableContentsRanges.pop();)b.extractContents(),x(b.startContainer)&&b.startContainer.appendBogus();a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var b=a.doc,d=a.range.clone(),b=b.createElement("p");b.insertBefore(a.purgeTableBookmark.startNode);d.moveToBookmark(a.purgeTableBookmark);
d.deleteContents();a.range.moveToPosition(b,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&&a.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||a.moveToClosestEditablePosition(null,!0)},autoParagraph:function(a,b){var d=b.startPath(),e;n(a,d.block,d.blockLimit)&&(e=k(a))&&(e=b.document.createElement(e),e.appendBogus(),b.insertNode(e),b.moveToPosition(e,
CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function c(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function h(a,b){if(0===a.length||c(a[0].getEnclosedNode()))return!1;var d,e;if((d=!b&&1===a.length)&&!(d=a[0].collapsed)){var g=a[0];d=g.startContainer.getAscendant({td:1,th:1},!0);var f=g.endContainer.getAscendant({td:1,th:1},!0);e=CKEDITOR.tools.trim;d&&d.equals(f)&&!d.findOne("td, th, tr, tbody, table")?(g=g.cloneContents(),d=g.getFirst()?e(g.getFirst().getText())!==
e(d.getText()):!0):d=!1}if(d)return!1;for(e=0;e<a.length;e++)if(d=a[e]._getTableElement(),!d)return!1;return!0}function f(a){function b(a){a=a.find("td, th");var d=[],e;for(e=0;e<a.count();e++)d.push(a.getItem(e));return d}var d=[],e,c;for(c=0;c<a.length;c++)e=a[c]._getTableElement(),e.is&&e.is({td:1,th:1})?d.push(e):d=d.concat(b(e));return d}function a(a){a=f(a);var b="",d=[],e,c;for(c=0;c<a.length;c++)e&&!e.equals(a[c].getAscendant("tr"))?(b+=d.join("\t")+"\n",e=a[c].getAscendant("tr"),d=[]):0===
c&&(e=a[c].getAscendant("tr")),d.push(a[c].getText());return b+=d.join("\t")}function g(b){var d=this.root.editor,e=d.getSelection(1);this.reset();p=!0;e.root.once("selectionchange",function(a){a.cancel()},null,null,0);e.selectRanges([b[0]]);e=this._.cache;e.ranges=new CKEDITOR.dom.rangeList(b);e.type=CKEDITOR.SELECTION_TEXT;e.selectedElement=b[0]._getTableElement();e.selectedText=a(b);e.nativeSel=null;this.isFake=1;this.rev=z++;d._.fakeSelection=this;p=!1;this.root.fire("selectionchange")}function m(){var a=
this._.fakeSelection,b;if(a){b=this.getSelection(1);var d;if(!(d=!b)&&(d=!b.isHidden())){d=a;var e=b.getRanges(),g=d.getRanges(),f=e.length&&e[0]._getTableElement()&&e[0]._getTableElement().getAscendant("table",!0),l=g.length&&g[0]._getTableElement()&&g[0]._getTableElement().getAscendant("table",!0),m=1===e.length&&e[0]._getTableElement()&&e[0]._getTableElement().is("table"),k=1===g.length&&g[0]._getTableElement()&&g[0]._getTableElement().is("table");if(c(d.getSelectedElement()))d=!1;else{var n=1===
e.length&&e[0].collapsed,g=h(e,!!CKEDITOR.env.webkit)&&h(g);f=f&&l?f.equals(l)||l.contains(f):!1;f&&(n||g)?(m&&!k&&d.selectRanges(e),d=!0):d=!1}d=!d}d&&(a.reset(),a=0)}if(!a&&(a=b||this.getSelection(1),!a||a.getType()==CKEDITOR.SELECTION_NONE))return;this.fire("selectionCheck",a);b=this.elementPath();b.compare(this._.selectionPreviousPath)||(d=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(b.blockLimit),!CKEDITOR.env.webkit&&!CKEDITOR.env.gecko||d||(this._.previousActive=
this.document.getActive()),this._.selectionPreviousPath=b,this.fire("selectionChange",{selection:a,path:b}))}function n(){A=!0;y||(k.call(this),y=CKEDITOR.tools.setTimeout(k,200,this))}function k(){y=null;A&&(CKEDITOR.tools.setTimeout(m,0,this),A=!1)}function b(a){return C(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?!0:!1}function d(a){function d(b,e){return b&&b.type!=CKEDITOR.NODE_TEXT?a.clone()["moveToElementEdit"+(e?"End":"Start")](b):!1}if(!(a.root instanceof CKEDITOR.editable))return!1;
var e=a.startContainer,c=a.getPreviousNode(b,null,e),g=a.getNextNode(b,null,e);return d(c)||d(g,1)||!(c||g||e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()&&e.getBogus())?!0:!1}function e(a){l(a,!1);var b=a.getDocument().createText(r);a.setCustomData("cke-fillingChar",b);return b}function l(a,b){var d=a&&a.removeCustomData("cke-fillingChar");if(d){if(!1!==b){var e=a.getDocument().getSelection().getNative(),c=e&&"None"!=e.type&&e.getRangeAt(0),g=r.length;if(d.getLength()>g&&c&&c.intersectsNode(d.$)){var f=
[{node:e.anchorNode,offset:e.anchorOffset},{node:e.focusNode,offset:e.focusOffset}];e.anchorNode==d.$&&e.anchorOffset>g&&(f[0].offset-=g);e.focusNode==d.$&&e.focusOffset>g&&(f[1].offset-=g)}}d.setText(v(d.getText(),1));f&&(d=a.getDocument().$,e=d.getSelection(),d=d.createRange(),d.setStart(f[0].node,f[0].offset),d.collapse(!0),e.removeAllRanges(),e.addRange(d),e.extend(f[1].node,f[1].offset))}}function v(a,b){return b?a.replace(w,function(a,b){return b?" ":""}):a.replace(r,"")}function x(a,b){var d=
b&&CKEDITOR.tools.htmlEncode(b)||"\x26nbsp;",d=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'+d+"\x3c/div\x3e",a.document);a.fire("lockSnapshot");a.editable().append(d);var e=a.getSelection(1),c=a.createRange(),g=e.root.on("selectionchange",function(a){a.cancel()},null,null,0);c.setStartAt(d,CKEDITOR.POSITION_AFTER_START);
c.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);e.selectRanges([c]);g.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=d}function t(a){var b={37:1,39:1,8:1,46:1};return function(d){var e=d.data.getKeystroke();if(b[e]){var c=a.getSelection(),g=c.getRanges()[0];c.isCollapsed()&&(g=g[38>e?"getPreviousEditableNode":"getNextEditableNode"]())&&g.type==CKEDITOR.NODE_ELEMENT&&"false"==g.getAttribute("contenteditable")&&(c=c.getStartElement(),!c.isBlockBoundary()||""!==(void 0===c.$.textContent?
c.$.innerText:c.$.textContent)||8!==e&&46!==e||(c.remove(),a.fire("saveSnapshot")),a.getSelection().fake(g),d.data.preventDefault(),d.cancel())}}}function q(a){for(var b=0;b<a.length;b++){var d=a[b];d.getCommonAncestor().isReadOnly()&&a.splice(b,1);if(!d.collapsed){if(d.startContainer.isReadOnly())for(var e=d.startContainer,c;e&&!((c=e.type==CKEDITOR.NODE_ELEMENT)&&e.is("body")||!e.isReadOnly());)c&&"false"==e.getAttribute("contentEditable")&&d.setStartAfter(e),e=e.getParent();e=d.startContainer;
c=d.endContainer;var g=d.startOffset,f=d.endOffset,l=d.clone();e&&e.type==CKEDITOR.NODE_TEXT&&(g>=e.getLength()?l.setStartAfter(e):l.setStartBefore(e));c&&c.type==CKEDITOR.NODE_TEXT&&(f?l.setEndAfter(c):l.setEndBefore(c));e=new CKEDITOR.dom.walker(l);e.evaluator=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&e.isReadOnly()){var c=d.clone();d.setEndBefore(e);d.collapsed&&a.splice(b--,1);e.getPosition(l.endContainer)&CKEDITOR.POSITION_CONTAINS||(c.setStartAfter(e),c.collapsed||a.splice(b+1,0,c));return!0}return!1};
e.next()}}return a}var u="function"!=typeof window.getSelection,z=1,r=CKEDITOR.tools.repeat("​",7),w=new RegExp(r+"( )?","g"),p,y,A,C=CKEDITOR.dom.walker.invisible(1),F=function(){function a(b){return function(a){var d=a.editor.createRange();d.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([d]);return!1}}function b(a){return function(b){var d=b.editor,e=d.createRange(),c;if(!d.readOnly)return(c=e.moveToClosestEditablePosition(b.selected,a))||(c=e.moveToClosestEditablePosition(b.selected,
!a)),c&&d.getSelection().selectRanges([e]),d.fire("saveSnapshot"),b.selected.remove(),c||(e.moveToElementEditablePosition(d.editable()),d.getSelection().selectRanges([e])),d.fire("saveSnapshot"),!1}}var d=a(),e=a(1);return{37:d,38:d,39:e,40:e,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(a){function b(){var a=d.getSelection();a&&a.removeAllRanges()}var d=a.editor;d.on("contentDom",function(){function a(){H=new CKEDITOR.dom.selection(d.getSelection());H.lock()}function b(){f.removeListener("mouseup",
b);v.removeListener("mouseup",b);var a=CKEDITOR.document.$.selection,d=a.createRange();"None"!=a.type&&d.parentElement()&&d.parentElement().ownerDocument==g.$&&d.select()}function e(a){var b,d;b=(b=this.document.getActive())?"input"===b.getName()||"textarea"===b.getName():!1;b||(b=this.getSelection(1),(d=c(b))&&!d.equals(k)&&(b.selectElement(d),a.data.preventDefault()))}function c(a){a=a.getRanges()[0];return a?(a=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")},
!0))&&"false"===a.getAttribute("contenteditable")?a:null:null}var g=d.document,f=CKEDITOR.document,k=d.editable(),h=g.getBody(),v=g.getDocumentElement(),p=k.isInline(),x,H;CKEDITOR.env.gecko&&k.attachListener(k,"focus",function(a){a.removeListener();0!==x&&(a=d.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==k.$&&(a=d.createRange(),a.moveToElementEditStart(k),a.select())},null,null,-2);k.attachListener(k,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){if(x&&(CKEDITOR.env.webkit||
CKEDITOR.env.gecko)){x=d._.previousActive&&d._.previousActive.equals(g.getActive());var a=null!=d._.previousScrollTop&&d._.previousScrollTop!=k.$.scrollTop;CKEDITOR.env.webkit&&x&&a&&(k.$.scrollTop=d._.previousScrollTop)}d.unlockSelection(x);x=0},null,null,-1);k.attachListener(k,"mousedown",function(){x=0});if(CKEDITOR.env.ie||CKEDITOR.env.gecko||p)u?k.attachListener(k,"beforedeactivate",a,null,null,-1):k.attachListener(d,"selectionCheck",a,null,null,-1),k.attachListener(k,CKEDITOR.env.webkit||CKEDITOR.env.gecko?
"focusout":"blur",function(){var a=H&&(H.isFake||2>H.getRanges().length);CKEDITOR.env.gecko&&!p&&a||(d.lockSelection(H),x=1)},null,null,-1),k.attachListener(k,"mousedown",function(){x=0});if(CKEDITOR.env.ie&&!p){var r;k.attachListener(k,"mousedown",function(a){2==a.data.$.button&&((a=d.document.getSelection())&&a.getType()!=CKEDITOR.SELECTION_NONE||(r=d.window.getScrollPosition()))});k.attachListener(k,"mouseup",function(a){2==a.data.$.button&&r&&(d.document.$.documentElement.scrollLeft=r.x,d.document.$.documentElement.scrollTop=
r.y);r=null});if("BackCompat"!=g.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var q,z;v.on("mousedown",function(a){function b(a){a=a.data.$;if(q){var d=h.$.createTextRange();try{d.moveToPoint(a.clientX,a.clientY)}catch(e){}q.setEndPoint(0>z.compareEndPoints("StartToStart",d)?"EndToEnd":"StartToStart",d);q.select()}}function d(){v.removeListener("mousemove",b);f.removeListener("mouseup",d);v.removeListener("mouseup",d);q.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<v.$.clientHeight&&
a.$.x<v.$.clientWidth){q=h.$.createTextRange();try{q.moveToPoint(a.$.clientX,a.$.clientY)}catch(e){}z=q.duplicate();v.on("mousemove",b);f.on("mouseup",d);v.on("mouseup",d)}})}if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version)v.on("mousedown",function(a){a.data.getTarget().is("html")&&(f.on("mouseup",b),v.on("mouseup",b))})}}k.attachListener(k,"selectionchange",m,d);k.attachListener(k,"keyup",n,d);k.attachListener(k,"touchstart",n,d);k.attachListener(k,"touchend",n,d);CKEDITOR.env.ie&&k.attachListener(k,
"keydown",e,d);k.attachListener(k,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){d.forceNextSelectionCheck();d.selectionChange(1)});if(p&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var w;k.attachListener(k,"mousedown",function(){w=1});k.attachListener(g.getDocumentElement(),"mouseup",function(){w&&n.call(d);w=0})}else k.attachListener(CKEDITOR.env.ie?k:g.getDocumentElement(),"mouseup",n,d);CKEDITOR.env.webkit&&k.attachListener(g,"keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:k.hasFocus&&
l(k)}},null,null,-1);k.attachListener(k,"keydown",t(d),null,null,-1)});d.on("setData",function(){d.unlockSelection();CKEDITOR.env.webkit&&b()});d.on("contentDomUnload",function(){d.unlockSelection()});if(CKEDITOR.env.ie9Compat)d.on("beforeDestroy",b,null,null,9);d.on("dataReady",function(){delete d._.fakeSelection;delete d._.hiddenSelectionContainer;d.selectionChange(1)});d.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),b=d.editable().getLast(a);b&&b.hasAttribute("data-cke-hidden-sel")&&
(b.remove(),CKEDITOR.env.gecko&&(a=d.editable().getFirst(a))&&a.is("br")&&a.getAttribute("_moz_editor_bogus_node")&&a.remove())},null,null,100);d.on("key",function(a){if("wysiwyg"==d.mode){var b=d.getSelection();if(b.isFake){var e=F[a.data.keyCode];if(e)return e({editor:d,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(a){var b=a.editor;b.on("selectionChange",function(){var a=b.editable(),d=a.getCustomData("cke-fillingChar");
d&&(d.getCustomData("ready")?(l(a),a.editor.fire("selectionCheck")):d.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){l(b.editable())},null,null,-1);b.on("getSnapshot",function(a){a.data&&(a.data=v(a.data))},b,null,20);b.on("toDataFormat",function(a){a.data.dataValue=v(a.data.dataValue)},null,null,0)});CKEDITOR.editor.prototype.selectionChange=function(a){(a?m:n).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){return!this._.savedSelection&&!this._.fakeSelection||
a?(a=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(a):null:this._.savedSelection||this._.fakeSelection};CKEDITOR.editor.prototype.getSelectedRanges=function(a){var b=this.getSelection();return b&&b.getRanges(a)||[]};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);return a.getType()!=CKEDITOR.SELECTION_NONE?(!a.isLocked&&a.lock(),this._.savedSelection=a,!0):!1};CKEDITOR.editor.prototype.unlockSelection=function(a){var b=this._.savedSelection;return b?
(b.unlock(a),delete this._.savedSelection,!0):!1};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=
3;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection){var b=a;a=a.root}var d=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:z++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=d?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(b)return CKEDITOR.tools.extend(this._.cache,b._.cache),this.isFake=b.isFake,this.isLocked=b.isLocked,this;a=this.getNative();var e,c;if(a)if(a.getRangeAt)e=(c=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(c.commonAncestorContainer);
else{try{c=a.createRange()}catch(g){}e=c&&CKEDITOR.dom.element.get(c.item&&c.item(0)||c.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 K={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:v,_createFillingCharSequenceNode:e,FILLING_CHAR_SEQUENCE:r});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 a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;
try{var d=this.getNative(),e=d.type;"Text"==e&&(b=CKEDITOR.SELECTION_TEXT);"Control"==e&&(b=CKEDITOR.SELECTION_ELEMENT);d.createRange().parentElement()&&(b=CKEDITOR.SELECTION_TEXT)}catch(c){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,d=this.getNative();if(!d||!d.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(1==d.rangeCount){var d=d.getRangeAt(0),e=d.startContainer;e==d.endContainer&&1==e.nodeType&&1==d.endOffset-d.startOffset&&K[e.childNodes[d.startOffset].nodeName.toLowerCase()]&&
(b=CKEDITOR.SELECTION_ELEMENT)}return a.type=b},getRanges:function(){var a=u?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,d){b=b.duplicate();b.collapse(d);var e=b.parentElement();if(!e.hasChildNodes())return{container:e,offset:0};for(var c=e.children,g,f,l=b.duplicate(),k=0,m=c.length-1,h=-1,n,v;k<=m;)if(h=Math.floor((k+m)/2),g=c[h],l.moveToElementText(g),n=l.compareEndPoints("StartToStart",b),0<n)m=h-1;else if(0>n)k=h+1;else return{container:e,offset:a(g)};
if(-1==h||h==c.length-1&&0>n){l.moveToElementText(e);l.setEndPoint("StartToStart",b);l=l.text.replace(/(\r\n|\r)/g,"\n").length;c=e.childNodes;if(!l)return g=c[c.length-1],g.nodeType!=CKEDITOR.NODE_TEXT?{container:e,offset:c.length}:{container:g,offset:g.nodeValue.length};for(e=c.length;0<l&&0<e;)f=c[--e],f.nodeType==CKEDITOR.NODE_TEXT&&(v=f,l-=f.nodeValue.length);return{container:v,offset:-l}}l.collapse(0<n?!0:!1);l.setEndPoint(0<n?"StartToStart":"EndToStart",b);l=l.text.replace(/(\r\n|\r)/g,"\n").length;
if(!l)return{container:e,offset:a(g)+(0<n?0:1)};for(;0<l;)try{f=g[0<n?"previousSibling":"nextSibling"],f.nodeType==CKEDITOR.NODE_TEXT&&(l-=f.nodeValue.length,v=f),g=f}catch(u){return{container:e,offset:a(g)}}return{container:v,offset:0<n?-l:v.nodeValue.length+l}};return function(){var a=this.getNative(),d=a&&a.createRange(),e=this.getType();if(!a)return[];if(e==CKEDITOR.SELECTION_TEXT)return a=new CKEDITOR.dom.range(this.root),e=b(d,!0),a.setStart(new CKEDITOR.dom.node(e.container),e.offset),e=b(d),
a.setEnd(new CKEDITOR.dom.node(e.container),e.offset),a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse(),[a];if(e==CKEDITOR.SELECTION_ELEMENT){for(var e=[],c=0;c<d.length;c++){for(var g=d.item(c),f=g.parentNode,l=0,a=new CKEDITOR.dom.range(this.root);l<f.childNodes.length&&f.childNodes[l]!=g;l++);a.setStart(new CKEDITOR.dom.node(f),l);a.setEnd(new CKEDITOR.dom.node(f),l+1);e.push(a)}return e}return[]}}():function(){var a=
[],b,d=this.getNative();if(!d)return a;for(var e=0;e<d.rangeCount;e++){var c=d.getRangeAt(e);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(c.startContainer),c.startOffset);b.setEnd(new CKEDITOR.dom.node(c.endContainer),c.endOffset);a.push(b)}return a};return function(b){var d=this._.cache,e=d.ranges;e||(d.ranges=e=new CKEDITOR.dom.rangeList(a.call(this)));return b?q(new CKEDITOR.dom.rangeList(e.slice())):e}}(),getStartElement:function(){var a=this._.cache;if(void 0!==a.startElement)return a.startElement;
var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var d=this.getRanges()[0];if(d){if(d.collapsed)b=d.startContainer,b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());else{for(d.optimize();b=d.startContainer,d.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary();)d.setStartAfter(b);b=d.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();if((b=b.getChild(d.startOffset))&&b.type==
CKEDITOR.NODE_ELEMENT)for(d=b.getFirst();d&&d.type==CKEDITOR.NODE_ELEMENT;)b=d,d=d.getFirst();else b=d.startContainer}b=b.$}}return a.startElement=b?new CKEDITOR.dom.element(b):null},getSelectedElement:function(){var a=this._.cache;if(void 0!==a.selectedElement)return a.selectedElement;var b=this,d=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0].clone(),d,e,c=2;c&&!((d=a.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT&&K[d.getName()]&&
(e=d));c--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return e&&e.$});return a.selectedElement=d?new CKEDITOR.dom.element(d):null},getSelectedText:function(){var a=this._.cache;if(void 0!==a.selectedText)return a.selectedText;var b=this.getNative(),b=u?"Control"==b.type?"":b.createRange().text:b.toString();return a.selectedText=b},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var b=
this.getSelectedElement(),d=this.getRanges(),e=this.isFake;this.isLocked=0;this.reset();a&&(a=b||d[0]&&d[0].getCommonAncestor())&&a.getAscendant("body",1)&&((a=this.root.editor)&&a.plugins.tableselection&&a.plugins.tableselection.isSupportedEnvironment(a)&&h(d)?g.call(this,d):e?this.fake(b):b&&2>d.length?this.selectElement(b):this.selectRanges(d))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection)if(this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;
var b=a._.hiddenSelectionContainer;if(b){var d=a.checkDirty();a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot");!d&&a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=z++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){var b=this.root.editor,c=b&&b._.hiddenSelectionContainer;this.reset();if(c)for(var c=this.root,f,k=0;k<a.length;++k)f=
a[k],f.endContainer.equals(c)&&(f.endOffset=Math.min(f.endOffset,c.getChildCount()));if(a.length)if(this.isLocked){var m=CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();m&&!m.equals(this.root)&&m.focus()}else{var n;a:{var v,J;if(1==a.length&&!(J=a[0]).collapsed&&(n=J.getEnclosedNode())&&n.type==CKEDITOR.NODE_ELEMENT&&(J=J.clone(),J.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(v=J.getEnclosedNode())&&v.type==CKEDITOR.NODE_ELEMENT&&(n=v),"false"==n.getAttribute("contenteditable")))break a;
n=void 0}if(n)this.fake(n);else if(b&&b.plugins.tableselection&&b.plugins.tableselection.isSupportedEnvironment(b)&&h(a)&&!p&&!a[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored"))g.call(this,a);else{if(u){v=CKEDITOR.dom.walker.whitespaces(!0);n=/\ufeff|\u00a0/;J={table:1,tbody:1,tr:1};1<a.length&&(b=a[a.length-1],a[0].setEnd(b.endContainer,b.endOffset));b=a[0];a=b.collapsed;var E,x,t;if((c=b.getEnclosedNode())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in K&&(!c.is("a")||
!c.getText()))try{t=c.$.createControlRange();t.addElement(c.$);t.select();return}catch(r){}if(b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.getName()in J||b.endContainer.type==CKEDITOR.NODE_ELEMENT&&b.endContainer.getName()in J)b.shrink(CKEDITOR.NODE_ELEMENT,!0),a=b.collapsed;t=b.createBookmark();J=t.startNode;a||(m=t.endNode);t=b.document.$.body.createTextRange();t.moveToElementText(J.$);t.moveStart("character",1);m?(n=b.document.$.body.createTextRange(),n.moveToElementText(m.$),
t.setEndPoint("EndToEnd",n),t.moveEnd("character",-1)):(E=J.getNext(v),x=J.hasAscendant("pre"),E=!(E&&E.getText&&E.getText().match(n))&&(x||!J.hasPrevious()||J.getPrevious().is&&J.getPrevious().is("br")),x=b.document.createElement("span"),x.setHtml("\x26#65279;"),x.insertBefore(J),E&&b.document.createText("﻿").insertBefore(J));b.setStartBefore(J);J.remove();a?(E?(t.moveStart("character",-1),t.select(),b.document.$.selection.clear()):t.select(),b.moveToPosition(x,CKEDITOR.POSITION_BEFORE_START),x.remove()):
(b.setEndBefore(m),m.remove(),t.select())}else{m=this.getNative();if(!m)return;this.removeAllRanges();for(t=0;t<a.length;t++){if(t<a.length-1&&(E=a[t],x=a[t+1],n=E.clone(),n.setStart(E.endContainer,E.endOffset),n.setEnd(x.startContainer,x.startOffset),!n.collapsed&&(n.shrink(CKEDITOR.NODE_ELEMENT,!0),b=n.getCommonAncestor(),n=n.getEnclosedNode(),b.isReadOnly()||n&&n.isReadOnly()))){x.setStart(E.startContainer,E.startOffset);a.splice(t--,1);continue}b=a[t];x=this.document.$.createRange();b.collapsed&&
CKEDITOR.env.webkit&&d(b)&&(n=e(this.root),b.insertNode(n),(E=n.getNext())&&!n.getPrevious()&&E.type==CKEDITOR.NODE_ELEMENT&&"br"==E.getName()?(l(this.root),b.moveToPosition(E,CKEDITOR.POSITION_BEFORE_START)):b.moveToPosition(n,CKEDITOR.POSITION_AFTER_END));x.setStart(b.startContainer.$,b.startOffset);try{x.setEnd(b.endContainer.$,b.endOffset)}catch(q){if(0<=q.toString().indexOf("NS_ERROR_ILLEGAL_VALUE"))b.collapse(1),x.setEnd(b.endContainer.$,b.endOffset);else throw q;}m.addRange(x)}}this.reset();
this.root.fire("selectionchange")}}},fake:function(a,b){var d=this.root.editor;void 0===b&&a.hasAttribute("aria-label")&&(b=a.getAttribute("aria-label"));this.reset();x(d,b);var e=this._.cache,c=new CKEDITOR.dom.range(this.root);c.setStartBefore(a);c.setEndAfter(a);e.ranges=new CKEDITOR.dom.rangeList(c);e.selectedElement=e.startElement=a;e.type=CKEDITOR.SELECTION_ELEMENT;e.selectedText=e.nativeSel=null;this.isFake=1;this.rev=z++;d._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=
this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))},isInTable:function(a){return h(this.getRanges(),a)},isCollapsed:function(){var a=this.getRanges();return 1===a.length&&a[0].collapsed},createBookmarks:function(a){a=this.getRanges().createBookmarks(a);this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var b=[],d,e=0;e<
a.length;e++){var c=new CKEDITOR.dom.range(this.root);c.moveToBookmark(a[e]);b.push(c)}a.isFake&&(d=h(b)?b[0]._getTableElement():b[0].getEnclosedNode(),d&&d.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),a.isFake=0));a.isFake&&!h(b)?this.fake(d):this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return a.length?a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer):null},scrollIntoView:function(){this.getType()!=CKEDITOR.SELECTION_NONE&&
this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[u?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function c(a,b){for(var d,e;(a=a.getParent())&&!a.equals(b);)if(a.getAttribute("data-nostyle"))d=a;else if(!e){var c=a.getAttribute("contentEditable");"false"==c?d=a:"true"==c&&(e=1)}return d}function h(a,
b,d,e){return(a.getPosition(b)|e)==e&&(!d.childRule||d.childRule(a))}function f(a){var b=a.document;if(a.collapsed)b=z(this,b),a.insertNode(b),a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_END);else{var d=this.element,e=this._.definition,l,k=e.ignoreReadonly,m=k||e.includeReadonly;null==m&&(m=a.root.getCustomData("cke_includeReadonly"));var n=CKEDITOR.dtd[d];n||(l=!0,n=CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var v=a.createBookmark(),u=v.startNode,p=v.endNode,x=u,r;if(!k){var q=
a.getCommonAncestor(),k=c(u,q),q=c(p,q);k&&(x=k.getNextSourceNode(!0));q&&(p=q)}for(x.getPosition(p)==CKEDITOR.POSITION_FOLLOWING&&(x=0);x;){k=!1;if(x.equals(p))x=null,k=!0;else{var w=x.type==CKEDITOR.NODE_ELEMENT?x.getName():null,q=w&&"false"==x.getAttribute("contentEditable"),y=w&&-1!==CKEDITOR.tools.array.indexOf(CKEDITOR.style.unstylableElements,w),y=w&&(x.getAttribute("data-nostyle")||y);if(w&&x.data("cke-bookmark")||x.type===CKEDITOR.NODE_COMMENT){x=x.getNextSourceNode(!0);continue}if(q&&m&&
CKEDITOR.dtd.$block[w])for(var A=x,H=g(A),C=void 0,M=H.length,Y=0,A=M&&new CKEDITOR.dom.range(A.getDocument());Y<M;++Y){var C=H[Y],aa=CKEDITOR.filter.instances[C.data("cke-filter")];if(aa?aa.check(this):1)A.selectNodeContents(C),f.call(this,A)}H=w?!n[w]||y?0:q&&!m?0:h(x,p,e,O):1;if(H)if(C=x.getParent(),H=e,M=d,Y=l,!C||!(C.getDtd()||CKEDITOR.dtd.span)[M]&&!Y||H.parentRule&&!H.parentRule(C))k=!0;else{if(r||w&&CKEDITOR.dtd.$removeEmpty[w]&&(x.getPosition(p)|O)!=O||(r=a.clone(),r.setStartBefore(x)),w=
x.type,w==CKEDITOR.NODE_TEXT||q||w==CKEDITOR.NODE_ELEMENT&&!x.getChildCount()){for(var w=x,ha;(k=!w.getNext(G))&&(ha=w.getParent(),n[ha.getName()])&&h(ha,u,e,L);)w=ha;r.setEndAfter(w)}}else k=!0;x=x.getNextSourceNode(y||q)}if(k&&r&&!r.collapsed){for(var k=z(this,b),q=k.hasAttributes(),y=r.getCommonAncestor(),w={},H={},C={},M={},da,ba,B;k&&y;){if(y.getName()==d){for(da in e.attributes)!M[da]&&(B=y.getAttribute(ba))&&(k.getAttribute(da)==B?H[da]=1:M[da]=1);for(ba in e.styles)!C[ba]&&(B=y.getStyle(ba))&&
(k.getStyle(ba)==B?w[ba]=1:C[ba]=1)}y=y.getParent()}for(da in H)k.removeAttribute(da);for(ba in w)k.removeStyle(ba);q&&!k.hasAttributes()&&(k=null);k?(r.extractContents().appendTo(k),r.insertNode(k),t.call(this,k),k.mergeSiblings(),CKEDITOR.env.ie||k.$.normalize()):(k=new CKEDITOR.dom.element("span"),r.extractContents().appendTo(k),r.insertNode(k),t.call(this,k),k.remove(!0));r=null}}a.moveToBookmark(v);a.shrink(CKEDITOR.SHRINK_TEXT);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function a(a){function b(){for(var a=
new CKEDITOR.dom.elementPath(e.getParent()),d=new CKEDITOR.dom.elementPath(h.getParent()),c=null,g=null,f=0;f<a.elements.length;f++){var l=a.elements[f];if(l==a.block||l==a.blockLimit)break;n.checkElementRemovable(l,!0)&&(c=l)}for(f=0;f<d.elements.length;f++){l=d.elements[f];if(l==d.block||l==d.blockLimit)break;n.checkElementRemovable(l,!0)&&(g=l)}g&&h.breakParent(g);c&&e.breakParent(c)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var d=a.createBookmark(),e=d.startNode,c=this._.definition.alwaysRemoveElement;
if(a.collapsed){for(var g=new CKEDITOR.dom.elementPath(e.getParent(),a.root),f,l=0,k;l<g.elements.length&&(k=g.elements[l])&&k!=g.block&&k!=g.blockLimit;l++)if(this.checkElementRemovable(k)){var m;!c&&a.collapsed&&(a.checkBoundaryOfElement(k,CKEDITOR.END)||(m=a.checkBoundaryOfElement(k,CKEDITOR.START)))?(f=k,f.match=m?"start":"end"):(k.mergeSiblings(),k.is(this.element)?x.call(this,k):q(k,p(this)[k.getName()]))}if(f){c=e;for(l=0;;l++){k=g.elements[l];if(k.equals(f))break;else if(k.match)continue;
else k=k.clone();k.append(c);c=k}c["start"==f.match?"insertBefore":"insertAfter"](f)}}else{var h=d.endNode,n=this;b();for(g=e;!g.equals(h);)f=g.getNextSourceNode(),g.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(g)&&(g.getName()==this.element?x.call(this,g):q(g,p(this)[g.getName()]),f.type==CKEDITOR.NODE_ELEMENT&&f.contains(e)&&(b(),f=e.getNext())),g=f}a.moveToBookmark(d);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}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 m(a){var b=a.getEnclosedNode()||a.getCommonAncestor(!1,!0);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&r(a,this)}function n(a){var b=a.getCommonAncestor(!0,!0);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,d=b.attributes;if(d)for(var e in d)a.removeAttribute(e,d[e]);if(b.styles)for(var c in b.styles)b.styles.hasOwnProperty(c)&&a.removeStyle(c)}}function k(a){var b=
a.createBookmark(!0),e=a.createIterator();e.enforceRealBlocks=!0;this._.enterMode&&(e.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var c,g=a.document,f;c=e.getNextParagraph();)!c.isReadOnly()&&(e.activeFilter?e.activeFilter.check(this):1)&&(f=z(this,g,c),d(c,f));a.moveToBookmark(b)}function b(a){var b=a.createBookmark(1),e=a.createIterator();e.enforceRealBlocks=!0;e.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var c,g;c=e.getNextParagraph();)this.checkElementRemovable(c)&&(c.is("pre")?
((g=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&c.copyAttributes(g),d(c,g)):x.call(this,c));a.moveToBookmark(b)}function d(a,b){var d=!b;d&&(b=a.getDocument().createElement("div"),a.copyAttributes(b));var c=b&&b.is("pre"),g=a.is("pre"),f=!c&&g;if(c&&!g){g=b;(f=a.getBogus())&&f.remove();f=a.getHtml();f=l(f,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");f=f.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");f=f.replace(/([ \t\n\r]+|&nbsp;)/g,
" ");f=f.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var k=a.getDocument().createElement("div");k.append(g);g.$.outerHTML="\x3cpre\x3e"+f+"\x3c/pre\x3e";g.copyAttributes(k.getFirst());g=k.getFirst().remove()}else g.setHtml(f);b=g}else f?b=v(d?[a.getHtml()]:e(a),b):a.moveChildren(b);b.replace(a);if(c){var d=b,m;(m=d.getPrevious(B))&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("pre")&&(c=l(m.getHtml(),/\n$/,"")+"\n\n"+l(d.getHtml(),/^\n/,""),CKEDITOR.env.ie?d.$.outerHTML="\x3cpre\x3e"+c+"\x3c/pre\x3e":
d.setHtml(c),m.remove())}else d&&u(b)}function e(a){var b=[];l(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,b,d){return b+"\x3c/pre\x3e"+d+"\x3cpre\x3e"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,d){b.push(d)});return b}function l(a,b,d){var e="",c="";a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,d){b&&(e=b);d&&(c=d);return""});return e+a.replace(b,d)+c}function v(a,b){var d;
1<a.length&&(d=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var e=0;e<a.length;e++){var c=a[e],c=c.replace(/(\r\n|\r)/g,"\n"),c=l(c,/^[ \t]*\n/,""),c=l(c,/\n$/,""),c=l(c,/^[ \t]+|[ \t]+$/g,function(a,b){return 1==a.length?"\x26nbsp;":b?" "+CKEDITOR.tools.repeat("\x26nbsp;",a.length-1):CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "}),c=c.replace(/\n/g,"\x3cbr\x3e"),c=c.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "});if(d){var g=b.clone();g.setHtml(c);
d.append(g)}else b.setHtml(c)}return d||b}function x(a,b){var d=this._.definition,e=d.attributes,d=d.styles,c=p(this)[a.getName()],g=CKEDITOR.tools.isEmpty(e)&&CKEDITOR.tools.isEmpty(d),f;for(f in e)if("class"!=f&&!this._.definition.fullMatch||a.getAttribute(f)==y(f,e[f]))b&&"data-"==f.slice(0,5)||(g=a.hasAttribute(f),a.removeAttribute(f));for(var l in d)this._.definition.fullMatch&&a.getStyle(l)!=y(l,d[l],!0)||(g=g||!!a.getStyle(l),a.removeStyle(l));q(a,c,F[a.getName()]);g&&(this._.definition.alwaysRemoveElement?
u(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?u(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function t(a){for(var b=p(this),d=a.getElementsByTag(this.element),e,c=d.count();0<=--c;)e=d.getItem(c),e.isReadOnly()||x.call(this,e,!0);for(var g in b)if(g!=this.element)for(d=a.getElementsByTag(g),c=d.count()-1;0<=c;c--)e=d.getItem(c),e.isReadOnly()||q(e,b[g])}function q(a,b,d){if(b=b&&b.attributes)for(var e=0;e<b.length;e++){var c=b[e][0],
g;if(g=a.getAttribute(c)){var f=b[e][1];(null===f||f.test&&f.test(g)||"string"==typeof f&&g==f)&&a.removeAttribute(c)}}d||u(a)}function u(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var d=a.getPrevious(B),e=a.getNext(B);!d||d.type!=CKEDITOR.NODE_TEXT&&d.isBlockBoundary({br:1})||a.append("br",1);!e||e.type!=CKEDITOR.NODE_TEXT&&e.isBlockBoundary({br:1})||a.append("br");a.remove(!0)}else d=a.getFirst(),e=a.getLast(),a.remove(!0),d&&(d.type==CKEDITOR.NODE_ELEMENT&&d.mergeSiblings(),
e&&!d.equals(e)&&e.type==CKEDITOR.NODE_ELEMENT&&e.mergeSiblings())}function z(a,b,d){var e;e=a.element;"*"==e&&(e="span");e=new CKEDITOR.dom.element(e,b);d&&d.copyAttributes(e);e=r(e,a);b.getCustomData("doc_processing_style")&&e.hasAttribute("id")?e.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return e}function r(a,b){var d=b._.definition,e=d.attributes,d=CKEDITOR.style.getStyleText(d);if(e)for(var c in e)a.setAttribute(c,e[c]);d&&a.setAttribute("style",d);a.getDocument().removeCustomData("doc_processing_style");
return a}function w(a,b){for(var d in a)a[d]=a[d].replace(H,function(a,d){return b[d]})}function p(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},d=a._.definition.overrides;if(d){CKEDITOR.tools.isArray(d)||(d=[d]);for(var e=0;e<d.length;e++){var c=d[e],g,f;"string"==typeof c?g=c.toLowerCase():(g=c.element?c.element.toLowerCase():a.element,f=c.attributes);c=b[g]||(b[g]={});if(f){var c=c.attributes=c.attributes||[],l;for(l in f)c.push([l.toLowerCase(),f[l]])}}}return b}function y(a,
b,d){var e=new CKEDITOR.dom.element("span");e[d?"setStyle":"setAttribute"](a,b);return e[d?"getStyle":"getAttribute"](a)}function A(a,b){function d(a,b){return"font-family"==b.toLowerCase()?a.replace(/["']/g,""):a}"string"==typeof a&&(a=CKEDITOR.tools.parseCssText(a));"string"==typeof b&&(b=CKEDITOR.tools.parseCssText(b,!0));for(var e in a)if(!(e in b)||d(b[e],e)!=d(a[e],e)&&"inherit"!=a[e]&&"inherit"!=b[e])return!1;return!0}function C(a,b,d){var e=a.getRanges();b=b?this.removeFromRange:this.applyToRange;
for(var c,g=e.createIterator();c=g.getNextRange();)b.call(this,c,d);a.selectRanges(e)}var F={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},K={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*|$)/,H=/#\((.+?)\)/g,G=CKEDITOR.dom.walker.bookmark(0,
1),B=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(a,b){if("string"==typeof a.type)return new CKEDITOR.style.customHandlers[a.type](a);var d=a.attributes;d&&d.style&&(a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(d.style)),delete d.style);b&&(a=CKEDITOR.tools.clone(a),w(a.attributes,b),w(a.styles,b));d=this.element=a.element?"string"==typeof a.element?a.element.toLowerCase():a.element:"*";this.type=a.type||(F[d]?CKEDITOR.STYLE_BLOCK:K[d]?CKEDITOR.STYLE_OBJECT:
CKEDITOR.STYLE_INLINE);"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT);this._={definition:a}};CKEDITOR.style.prototype={apply:function(a){if(a instanceof CKEDITOR.dom.document)return C.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;b||(this._.enterMode=a.activeEnterMode);C.call(this,a.getSelection(),0,a);this._.enterMode=b}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return C.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),
a)){var b=this._.enterMode;b||(this._.enterMode=a.activeEnterMode);C.call(this,a.getSelection(),1,a);this._.enterMode=b}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?f:this.type==CKEDITOR.STYLE_BLOCK?k:this.type==CKEDITOR.STYLE_OBJECT?m:null;return this.applyToRange(a)},removeFromRange:function(d){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?a:this.type==CKEDITOR.STYLE_BLOCK?b:this.type==CKEDITOR.STYLE_OBJECT?n:null;return this.removeFromRange(d)},applyToObject:function(a){r(a,
this)},checkActive:function(a,b){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,!0,b);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var d=a.elements,e=0,c;e<d.length;e++)if(c=d[e],this.type!=CKEDITOR.STYLE_INLINE||c!=a.block&&c!=a.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var g=c.getName();if(!("string"==typeof this.element?g==this.element:g in this.element))continue}if(this.checkElementRemovable(c,!0,b))return!0}}return!1},checkApplicable:function(a,
b,d){b&&b instanceof CKEDITOR.filter&&(d=b);if(d&&!d.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!a.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!a.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(a,b){var d=this._.definition;if(!a||!d.ignoreReadonly&&a.isReadOnly())return!1;var e=a.getName();if("string"==typeof this.element?e==this.element:e in this.element){if(!b&&!a.hasAttributes())return!0;if(e=d._AC)d=e;else{var e={},c=0,g=d.attributes;
if(g)for(var f in g)c++,e[f]=g[f];if(f=CKEDITOR.style.getStyleText(d))e.style||c++,e.style=f;e._length=c;d=d._AC=e}if(d._length){for(var l in d)if("_length"!=l)if(e=a.getAttribute(l)||"","style"==l?A(d[l],e):d[l]==e){if(!b)return!0}else if(b)return!1;if(b)return!0}else return!0}return!1},checkElementRemovable:function(a,b,d){if(this.checkElementMatch(a,b,d))return!0;if(b=p(this)[a.getName()]){var e;if(!(b=b.attributes))return!0;for(d=0;d<b.length;d++)if(e=b[d][0],e=a.getAttribute(e)){var c=b[d][1];
if(null===c)return!0;if("string"==typeof c){if(e==c)return!0}else if(c.test(e))return!0}}return!1},buildPreview:function(a){var b=this._.definition,d=[],e=b.element;"bdo"==e&&(e="span");var d=["\x3c",e],c=b.attributes;if(c)for(var g in c)d.push(" ",g,'\x3d"',c[g],'"');(c=CKEDITOR.style.getStyleText(b))&&d.push(' style\x3d"',c,'"');d.push("\x3e",a||b.name,"\x3c/",e,"\x3e");return d.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var b=a._ST;if(b)return b;
var b=a.styles,d=a.attributes&&a.attributes.style||"",e="";d.length&&(d=d.replace(D,";"));for(var c in b){var g=b[c],f=(c+":"+g).replace(D,";");"inherit"==g?e+=f:d+=f}d.length&&(d=CKEDITOR.tools.normalizeCssText(d,!0));return a._ST=d+e};CKEDITOR.style.customHandlers={};CKEDITOR.style.unstylableElements=[];CKEDITOR.style.addCustomHandler=function(a){var b=function(a){this._={definition:a};this.setup&&this.setup(a)};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),
{assignedTo:CKEDITOR.STYLE_OBJECT},a,!0);return this.customHandlers[a.type]=b};var O=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,L=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(c,h){this.requiredContent=this.allowedContent=this.style=c;CKEDITOR.tools.extend(this,h,!0)},CKEDITOR.styleCommand.prototype.exec=function(c){c.focus();this.state==CKEDITOR.TRISTATE_OFF?c.applyStyle(this.style):
this.state==CKEDITOR.TRISTATE_ON&&c.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(c,h,f){CKEDITOR.stylesSet.addExternal(c,h,"");CKEDITOR.stylesSet.load(c,f)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(c,h){var f=this._.styleStateChangeCallbacks;f||(f=this._.styleStateChangeCallbacks=[],this.on("selectionChange",
function(a){for(var c=0;c<f.length;c++){var m=f[c],h=m.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;m.fn.call(this,h)}}));f.push({style:c,fn:h})},applyStyle:function(c){c.apply(this)},removeStyle:function(c){c.remove(this)},getStylesSet:function(c){if(this._.stylesDefinitions)c(this._.stylesDefinitions);else{var h=this,f=h.config.stylesCombo_stylesSet||h.config.stylesSet;if(!1===f)c(null);else if(f instanceof Array)h._.stylesDefinitions=f,c(f);else{f||(f="default");
var f=f.split(":"),a=f[0];CKEDITOR.stylesSet.addExternal(a,f[1]?f.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(a,function(g){h._.stylesDefinitions=g[a];c(h._.stylesDefinitions)})}}}}),function(){if(window.Promise)CKEDITOR.tools.promise=Promise;else{var c=CKEDITOR.getUrl("vendor/promise.js");if("function"===typeof window.define&&window.define.amd&&"function"===typeof window.require)return window.require([c],function(c){CKEDITOR.tools.promise=c});CKEDITOR.scriptLoader.load(c,
function(h){if(!h)return CKEDITOR.error("no-vendor-lib",{path:c});if("undefined"!==typeof window.ES6Promise)return CKEDITOR.tools.promise=ES6Promise})}}(),function(){function c(a,c,m){a.once("selectionCheck",function(a){if(!h){var k=a.data.getRanges()[0];m.equals(k)?a.cancel():c.equals(k)&&(f=!0)}},null,null,-1)}var h=!0,f=!1;CKEDITOR.dom.selection.setupEditorOptimization=function(a){a.on("selectionCheck",function(a){a.data&&!f&&a.data.optimizeInElementEnds();f=!1});a.on("contentDom",function(){var c=
a.editable();c&&(c.attachListener(c,"keydown",function(a){this._.shiftPressed=a.data.$.shiftKey},this),c.attachListener(c,"keyup",function(a){this._.shiftPressed=a.data.$.shiftKey},this))})};CKEDITOR.dom.selection.prototype.optimizeInElementEnds=function(){var a=this.getRanges()[0],g=this.root.editor,f;if(this.root.editor._.shiftPressed||this.isFake||a.isCollapsed||a.startContainer.equals(a.endContainer))f=!1;else if(0===a.endOffset)f=!0;else{f=a.startContainer.type===CKEDITOR.NODE_TEXT;var n=a.endContainer.type===
CKEDITOR.NODE_TEXT,k=f?a.startContainer.getLength():a.startContainer.getChildCount();f=a.startOffset===k||f^n}f&&(f=a.clone(),a.shrink(CKEDITOR.SHRINK_TEXT,!1,{skipBogus:!CKEDITOR.env.webkit}),h=!1,c(g,a,f),a.select(),h=!0)}}(),function(){function c(a,c){f(a)?a=Math.round(c*(parseFloat(a)/100)):"string"===typeof a&&a.match(/^\d+$/gm)&&(a=parseInt(a,10));return a}function h(a,c){f(a)?a=c*(parseFloat(a)/100):"string"===typeof a&&a.match(/^\d?\.\d+/gm)&&(a=parseFloat(a));return a}function f(a){return"string"===
typeof a&&a.match(/^((\d*\.\d+)|(\d+))%{1}$/gm)}function a(a,c,g){return!isNaN(a)&&a>=c&&a<=g}function g(a){a=a.toString(16);return 1==a.length?"0"+a:a}CKEDITOR.tools.color=CKEDITOR.tools.createClass({$:function(a,c){this._.initialColorCode=a;this._.defaultValue=c;this._.parseInput(a)},proto:{getHex:function(){if(!this._.isValidColor)return this._.defaultValue;var a=this._.blendAlphaColor(this._.red,this._.green,this._.blue,this._.alpha);return this._.formatHexString(a[0],a[1],a[2])},getHexWithAlpha:function(){if(!this._.isValidColor)return this._.defaultValue;
var a=Math.round(this._.alpha*CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE);return this._.formatHexString(this._.red,this._.green,this._.blue,a)},getRgb:function(){if(!this._.isValidColor)return this._.defaultValue;var a=this._.blendAlphaColor(this._.red,this._.green,this._.blue,this._.alpha);return this._.formatRgbString("rgb",a[0],a[1],a[2])},getRgba:function(){return this._.isValidColor?this._.formatRgbString("rgba",this._.red,this._.green,this._.blue,this._.alpha):this._.defaultValue},getHsl:function(){if(!this._.isValidColor)return this._.defaultValue;
var a=this._.blendAlphaColor(this._.red,this._.green,this._.blue,this._.alpha),a=this._.rgbToHsl(a[0],a[1],a[2]);return this._.formatHslString("hsl",a[0],a[1],a[2])},getHsla:function(){if(!this._.isValidColor)return this._.defaultValue;var a=this._.rgbToHsl(this._.red,this._.green,this._.blue);return this._.formatHslString("hsla",a[0],a[1],a[2],this._.alpha)},getInitialValue:function(){return this._.initialColorCode}},_:{initialColorCode:"",isValidColor:!0,red:0,green:0,blue:0,alpha:1,blendAlphaColor:function(a,
c,g,b){return CKEDITOR.tools.array.map([a,c,g],function(a){return Math.round(CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE-b*(CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE-a))})},formatHexString:function(a,c,f,b){a="#"+g(a)+g(c)+g(f);void 0!==b&&(a+=g(b));return a.toUpperCase()},formatRgbString:function(a,c,g,b,d){c=[c,g,b];void 0!==d&&c.push(d);return a+"("+c.join(",")+")"},formatHslString:function(a,c,g,b,d){return a+"("+c+","+g+"%,"+b+"%"+(void 0!==d?","+d:"")+")"},parseInput:function(a){if("string"!==
typeof a)this._.isValidColor=!1;else{a=CKEDITOR.tools.trim(a);var c=this._.matchStringToNamedColor(a);c&&(a=c);var c=this._.extractColorChannelsFromHex(a),g=this._.extractColorChannelsFromRgba(a);a=this._.extractColorChannelsFromHsla(a);(a=c||g||a)?(this._.red=a[0],this._.green=a[1],this._.blue=a[2],this._.alpha=a[3]):this._.isValidColor=!1}},matchStringToNamedColor:function(a){return CKEDITOR.tools.color.namedColors[a.toLowerCase()]||null},extractColorChannelsFromHex:function(a){a.match(CKEDITOR.tools.color.hex3CharsRegExp)&&
(a=this._.hex3ToHex6(a));if(!a.match(CKEDITOR.tools.color.hex6CharsRegExp)&&!a.match(CKEDITOR.tools.color.hex8CharsRegExp))return null;a=a.split("");var c=1;a[7]&&a[8]&&(c=parseInt(a[7]+a[8],16),c/=CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE,c=Number(c.toFixed(1)));return[parseInt(a[1]+a[2],16),parseInt(a[3]+a[4],16),parseInt(a[5]+a[6],16),c]},extractColorChannelsFromRgba:function(a){var g=this._.extractColorChannelsByPattern(a,CKEDITOR.tools.color.rgbRegExp);if(!g||(a=0===a.indexOf("rgba"))&&4!==
g.length||!a&&3!==g.length)return null;var f=c(g[0],CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE),b=c(g[1],CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE),d=c(g[2],CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE),e=1;a&&(e=h(g[3],CKEDITOR.tools.color.MAX_ALPHA_CHANNEL_VALUE));return this._.areColorChannelsValid(f,b,d,e)?[f,b,d,e]:null},extractColorChannelsFromHsla:function(a){var g=this._.extractColorChannelsByPattern(a,CKEDITOR.tools.color.hslRegExp);if(!g||(a=0===a.indexOf("hsla"))&&4!==g.length||!a&&3!==
g.length)return null;var f=c(g[0],CKEDITOR.tools.color.MAX_HUE_CHANNEL_VALUE),b=h(g[1],CKEDITOR.tools.color.MAX_SATURATION_LIGHTNESS_CHANNEL_VALUE),d=h(g[2],CKEDITOR.tools.color.MAX_SATURATION_LIGHTNESS_CHANNEL_VALUE),e=1,f=this._.hslToRgb(f,b,d);a&&(e=h(g[3],CKEDITOR.tools.color.MAX_ALPHA_CHANNEL_VALUE));f.push(e);return this._.areColorChannelsValid(f[0],f[1],f[2],f[3])?f:null},hex3ToHex6:function(a){a=a.split("");return"#"+a[1]+a[1]+a[2]+a[2]+a[3]+a[3]},extractColorChannelsByPattern:function(a,
c){var g=a.match(c);if(!g)return null;g=g[2].split(",");return g=CKEDITOR.tools.array.map(g,function(a){return CKEDITOR.tools.trim(a)})},areColorChannelsValid:function(c,g,f,b){return a(c,0,CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)&&a(g,0,CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)&&a(f,0,CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)&&a(b,0,CKEDITOR.tools.color.MAX_ALPHA_CHANNEL_VALUE)},hslToRgb:function(a,c,g){var b=function(b){var e=(b+a/30)%12;b=c*Math.min(g,1-g);e=Math.min(e-3,9-e,1);e=Math.max(-1,
e);return Math.round((g-b*e)*CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE)};return[b(0),b(8),b(4)]},rgbToHsl:function(a,c,g){a/=CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE;c/=CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE;var b=g/CKEDITOR.tools.color.MAX_RGB_CHANNEL_VALUE,d=Math.max(a,c,b),e=Math.min(a,c,b);g=d-e;var f=0;switch(d){case a:f=(c-b)/g%6;break;case c:f=(b-a)/g+2;break;case b:f=(a-c)/g+4}a=0===g?0:60*f;c=(d+e)/2;d=0;1!==c&&0!==c&&(d=g/(1-Math.abs(2*c-1)));a=Math.round(a);d=100*Math.round(d);return[a,
d,100*c]}},statics:{MAX_RGB_CHANNEL_VALUE:255,MAX_ALPHA_CHANNEL_VALUE:1,MAX_HUE_CHANNEL_VALUE:360,MAX_SATURATION_LIGHTNESS_CHANNEL_VALUE:1,hex3CharsRegExp:/#([0-9a-f]{3}$)/gim,hex6CharsRegExp:/#([0-9a-f]{6}$)/gim,hex8CharsRegExp:/#([0-9a-f]{8}$)/gim,rgbRegExp:/(rgb[a]?)\(([.,\d\s%]*)\)/i,hslRegExp:/(hsl[a]?)\(([.,\d\s%]*)\)/i,namedColors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",
blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",
darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",
ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",
magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",
palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",
steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",windowtext:"windowtext",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}}});CKEDITOR.tools.style.parse._colors=CKEDITOR.tools.color.namedColors}(),CKEDITOR.dom.comment=function(c,h){"string"==typeof c&&(c=(h?h.$:document).createComment(c));CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,
{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"\x3c!--"+this.$.nodeValue+"--\x3e"}}),"use strict",function(){var c={},h={},f;for(f in CKEDITOR.dtd.$blockLimit)f in CKEDITOR.dtd.$list||(c[f]=1);for(f in CKEDITOR.dtd.$block)f in CKEDITOR.dtd.$blockLimit||f in CKEDITOR.dtd.$empty||(h[f]=1);CKEDITOR.dom.elementPath=function(a,g){var f=null,n=null,k=[],b=a,d;g=g||a.getDocument().getBody();b||(b=g);do if(b.type==CKEDITOR.NODE_ELEMENT){k.push(b);if(!this.lastElement&&(this.lastElement=b,b.is(CKEDITOR.dtd.$object)||
"false"==b.getAttribute("contenteditable")))continue;if(b.equals(g))break;if(!n&&(d=b.getName(),"true"==b.getAttribute("contenteditable")?n=b:!f&&h[d]&&(f=b),c[d])){if(d=!f&&"div"==d){a:{d=b.getChildren();for(var e=0,l=d.count();e<l;e++){var v=d.getItem(e);if(v.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[v.getName()]){d=!0;break a}}d=!1}d=!d}d?f=b:n=b}}while(b=b.getParent());n||(n=g);this.block=f;this.blockLimit=n;this.root=g;this.elements=k}}(),CKEDITOR.dom.elementPath.prototype={compare:function(c){var h=
this.elements;c=c&&c.elements;if(!c||h.length!=c.length)return!1;for(var f=0;f<h.length;f++)if(!h[f].equals(c[f]))return!1;return!0},contains:function(c,h,f){var a=0,g;"string"==typeof c&&(g=function(a){return a.getName()==c});c instanceof CKEDITOR.dom.element?g=function(a){return a.equals(c)}:CKEDITOR.tools.isArray(c)?g=function(a){return-1<CKEDITOR.tools.indexOf(c,a.getName())}:"function"==typeof c?g=c:"object"==typeof c&&(g=function(a){return a.getName()in c});var m=this.elements,n=m.length;h&&
(f?a+=1:--n);f&&(m=Array.prototype.slice.call(m,0),m.reverse());for(;a<n;a++)if(g(m[a]))return m[a];return null},isContextFor:function(c){var h;return c in CKEDITOR.dtd.$block?(h=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!h.getDtd()[c]):!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(c,h){"string"==typeof c&&(c=(h?h.$:document).createTextNode(c));this.$=c},CKEDITOR.dom.text.prototype=
new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(c){this.$.nodeValue=c},isEmpty:function(c){var h=this.getText();c&&(h=CKEDITOR.tools.trim(h));return!h||h===CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE},split:function(c){var h=this.$.parentNode,f=h.childNodes.length,a=this.getLength(),g=this.getDocument(),m=new CKEDITOR.dom.text(this.$.splitText(c),
g);h.childNodes.length==f&&(c>=a?(m=g.createText(""),m.insertAfter(this)):(c=g.createText(""),c.insertAfter(m),c.remove()));return m},substring:function(c,h){return"number"!=typeof h?this.$.nodeValue.substr(c):this.$.nodeValue.substring(c,h)}}),function(){function c(c,a,g){var h=c.serializable,n=a[g?"endContainer":"startContainer"],k=g?"endOffset":"startOffset",b=h?a.document.getById(c.startNode):c.startNode;c=h?a.document.getById(c.endNode):c.endNode;n.equals(b.getPrevious())?(a.startOffset=a.startOffset-
n.getLength()-c.getPrevious().getLength(),n=c.getNext()):n.equals(c.getPrevious())&&(a.startOffset-=n.getLength(),n=c.getNext());n.equals(b.getParent())&&a[k]++;n.equals(c.getParent())&&a[k]++;a[g?"endContainer":"startContainer"]=n;return a}CKEDITOR.dom.rangeList=function(c){if(c instanceof CKEDITOR.dom.rangeList)return c;c?c instanceof CKEDITOR.dom.range&&(c=[c]):c=[];return CKEDITOR.tools.extend(c,h)};var h={createIterator:function(){var c=this,a=CKEDITOR.dom.walker.bookmark(),g=[],h;return{getNextRange:function(n){h=
void 0===h?0:h+1;var k=c[h];if(k&&1<c.length){if(!h)for(var b=c.length-1;0<=b;b--)g.unshift(c[b].createBookmark(!0));if(n)for(var d=0;c[h+d+1];){var e=k.document;n=0;b=e.getById(g[d].endNode);for(e=e.getById(g[d+1].startNode);;){b=b.getNextSourceNode(!1);if(e.equals(b))n=1;else if(a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())continue;break}if(!n)break;d++}for(k.moveToBookmark(g.shift());d--;)b=c[++h],b.moveToBookmark(g.shift()),k.setEnd(b.endContainer,b.endOffset)}return k}}},createBookmarks:function(f){for(var a=
[],g,h=0;h<this.length;h++){a.push(g=this[h].createBookmark(f,!0));for(var n=h+1;n<this.length;n++)this[n]=c(g,this[n]),this[n]=c(g,this[n],!0)}return a},createBookmarks2:function(c){for(var a=[],g=0;g<this.length;g++)a.push(this[g].createBookmark2(c));return a},moveToBookmarks:function(c){for(var a=0;a<this.length;a++)this[a].moveToBookmark(c[a])}}}(),function(){function c(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function h(a){var b=
CKEDITOR.skin["ua_"+a],g=CKEDITOR.env;if(b)for(var b=b.split(",").sort(function(a,b){return a>b?-1:1}),f=0,k;f<b.length;f++)if(k=b[f],g.ie&&(k.replace(/^ie/,"")==g.version||g.quirks&&"iequirks"==k)&&(k="ie"),g[k]){a+="_"+b[f];break}return CKEDITOR.getUrl(c()+a+".css")}function f(a,b){m[a]||(CKEDITOR.document.appendStyleSheet(h(a)),m[a]=1);b&&b()}function a(a){var b=a.getById(n);b||(b=a.getHead().append("style"),b.setAttribute("id",n),b.setAttribute("type","text/css"));return b}function g(a,b,c){var g,
f,k;if(CKEDITOR.env.webkit)for(b=b.split("}").slice(0,-1),f=0;f<b.length;f++)b[f]=b[f].split("{");for(var h=0;h<a.length;h++)if(CKEDITOR.env.webkit)for(f=0;f<b.length;f++){k=b[f][1];for(g=0;g<c.length;g++)k=k.replace(c[g][0],c[g][1]);a[h].$.sheet.addRule(b[f][0],k)}else{k=b;for(g=0;g<c.length;g++)k=k.replace(c[g][0],c[g][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?a[h].$.styleSheet.cssText+=k:a[h].$.innerHTML+=k}}var m={};CKEDITOR.skin={path:c,loadPart:function(a,b){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?
CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c()+"skin.js"),function(){f(a,b)}):f(a,b)},getPath:function(a){return CKEDITOR.getUrl(h(a))},icons:{},addIcon:function(a,b,c,g){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:g||"16px"})},getIconStyle:function(a,b,c,g,f){var k;a&&(a=a.toLowerCase(),b&&(k=this.icons[a+"-rtl"]),k||(k=this.icons[a]));a=c||k&&k.path||"";g=g||k&&k.offset;f=f||k&&k.bgsize||"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+
"');background-position:0 "+g+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(d){var e=a(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var d=CKEDITOR.skin.chameleon,c="",f="";"function"==typeof d&&(c=d(this,"editor"),f=d(this,"panel"));a=[[b,a]];g([e],c,a);g(k,f,a)}).call(this,d)}});var n="cke_ui_color",k=[],b=/\$color/g;CKEDITOR.on("instanceLoaded",function(d){if(!CKEDITOR.env.ie||
!CKEDITOR.env.quirks){var e=d.editor;d=function(d){d=(d.data[0]||d.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!d.getById("cke_ui_color")){var c=a(d);k.push(c);e.on("destroy",function(){k=CKEDITOR.tools.array.filter(k,function(a){return c!==a})});(d=e.getUiColor())&&g([c],CKEDITOR.skin.chameleon(e,"panel"),[[b,d]])}};e.on("panelShow",d);e.on("menuShow",d);e.config.uiColor&&e.setUiColor(e.config.uiColor)}})}(),function(){var c=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"\x3e\x3c/div\x3e',
CKEDITOR.document);c.appendTo(CKEDITOR.document.getHead());try{var h=c.getComputedStyle("border-top-color"),f=c.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!h||h!=f)}catch(a){CKEDITOR.env.hc=!1}c.remove();CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(c=CKEDITOR._.pending)for(delete CKEDITOR._.pending,h=0;h<c.length;h++)CKEDITOR.editor.prototype.constructor.apply(c[h][0],
c[h][1]),CKEDITOR.add(c[h][0])}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8",CKEDITOR.skin.chameleon=function(){var c=function(){return function(a,c){for(var f=a.match(/[^#]./g),h=0;3>h;h++){var k=h,b;b=parseInt(f[h],16);b=("0"+(0>c?0|b*(1+c):0|b+(255-b)*c).toString(16)).slice(-2);f[k]=b}return"#"+f.join("")}}(),h=function(){var a=new CKEDITOR.template("background:#{to};background-image:linear-gradient(to bottom,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType\x3d0,startColorstr\x3d'{from}',endColorstr\x3d'{to}');");
return function(c,f){return a.output({from:c,to:f})}}(),f={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {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} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {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:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "),
panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};
return function(a,g){var m=a.uiColor,m={id:"."+a.id,defaultBorder:c(m,-.1),defaultGradient:h(c(m,.9),m),lightGradient:h(c(m,1),c(m,.7)),mediumGradient:h(c(m,.8),c(m,.5)),ckeButtonOn:h(c(m,.6),c(m,.7)),ckeResizer:c(m,-.4),ckeToolbarSeparator:c(m,.5),ckeColorauto:c(m,.8),dialogBody:c(m,.7),dialogTabSelected:h("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:c(m,-.6),elementsPathBg:m,menubuttonIcon:c(m,.5),menubuttonIconHover:c(m,.3)};return f[g].output(m).replace(/\[/g,"{").replace(/\]/g,
"}")}}(),CKEDITOR.plugins.add("basicstyles",{init:function(c){var h=0,f=function(g,f,b,d){if(d){d=new CKEDITOR.style(d);var e=a[b];e.unshift(d);c.attachStyleStateChange(d,function(a){!c.readOnly&&c.getCommand(b).setState(a)});c.addCommand(b,new CKEDITOR.styleCommand(d,{contentForms:e}));c.ui.addButton&&c.ui.addButton(g,{label:f,command:b,toolbar:"basicstyles,"+(h+=10)})}},a={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return"bold"==a||700<=+a}]],italic:["em","i",["span",function(a){return"italic"==
a.styles["font-style"]}]],underline:["u",["span",function(a){return"underline"==a.styles["text-decoration"]}]],strike:["s","strike",["span",function(a){return"line-through"==a.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},g=c.config,m=c.lang.basicstyles;f("Bold",m.bold,"bold",g.coreStyles_bold);f("Italic",m.italic,"italic",g.coreStyles_italic);f("Underline",m.underline,"underline",g.coreStyles_underline);f("Strike",m.strike,"strike",g.coreStyles_strike);f("Subscript",m.subscript,
"subscript",g.coreStyles_subscript);f("Superscript",m.superscript,"superscript",g.coreStyles_superscript);c.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},
CKEDITOR.config.coreStyles_superscript={element:"sup"},function(){var c={exec:function(c){var f=c.getCommand("blockquote").state,a=c.getSelection(),g=a&&a.getRanges()[0];if(g){var m=a.createBookmarks();if(CKEDITOR.env.ie){var n=m[0].startNode,k=m[0].endNode,b;if(n&&"blockquote"==n.getParent().getName())for(b=n;b=b.getNext();)if(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()){n.move(b,!0);break}if(k&&"blockquote"==k.getParent().getName())for(b=k;b=b.getPrevious();)if(b.type==CKEDITOR.NODE_ELEMENT&&
b.isBlockBoundary()){k.move(b);break}}var d=g.createIterator();d.enlargeBr=c.config.enterMode!=CKEDITOR.ENTER_BR;if(f==CKEDITOR.TRISTATE_OFF){for(n=[];f=d.getNextParagraph();)n.push(f);1>n.length&&(f=c.document.createElement(c.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),k=m.shift(),g.insertNode(f),f.append(new CKEDITOR.dom.text("﻿",c.document)),g.moveToBookmark(k),g.selectNodeContents(f),g.collapse(!0),k=g.createBookmark(),n.push(f),m.unshift(k));b=n[0].getParent();g=[];for(k=0;k<n.length;k++)f=
n[k],b=b.getCommonAncestor(f.getParent());for(f={table:1,tbody:1,tr:1,ol:1,ul:1};f[b.getName()];)b=b.getParent();for(k=null;0<n.length;){for(f=n.shift();!f.getParent().equals(b);)f=f.getParent();f.equals(k)||g.push(f);k=f}for(;0<g.length;)if(f=g.shift(),"blockquote"==f.getName()){for(k=new CKEDITOR.dom.documentFragment(c.document);f.getFirst();)k.append(f.getFirst().remove()),n.push(k.getLast());k.replace(f)}else n.push(f);g=c.document.createElement("blockquote");for(g.insertBefore(n[0]);0<n.length;)f=
n.shift(),g.append(f)}else if(f==CKEDITOR.TRISTATE_ON){k=[];for(b={};f=d.getNextParagraph();){for(n=g=null;f.getParent();){if("blockquote"==f.getParent().getName()){g=f.getParent();n=f;break}f=f.getParent()}g&&n&&!n.getCustomData("blockquote_moveout")&&(k.push(n),CKEDITOR.dom.element.setMarker(b,n,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(b);f=[];n=[];for(b={};0<k.length;)d=k.shift(),g=d.getParent(),d.getPrevious()?d.getNext()?(d.breakParent(d.getParent()),n.push(d.getNext())):
d.remove().insertAfter(g):d.remove().insertBefore(g),g.getCustomData("blockquote_processed")||(n.push(g),CKEDITOR.dom.element.setMarker(b,g,"blockquote_processed",!0)),f.push(d);CKEDITOR.dom.element.clearAllMarkers(b);for(k=n.length-1;0<=k;k--){g=n[k];a:{b=g;for(var d=0,e=b.getChildCount(),l=void 0;d<e&&(l=b.getChild(d));d++)if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){b=!1;break a}b=!0}b&&g.remove()}if(c.config.enterMode==CKEDITOR.ENTER_BR)for(g=!0;f.length;)if(d=f.shift(),"div"==d.getName()){k=
new CKEDITOR.dom.documentFragment(c.document);!g||!d.getPrevious()||d.getPrevious().type==CKEDITOR.NODE_ELEMENT&&d.getPrevious().isBlockBoundary()||k.append(c.document.createElement("br"));for(g=d.getNext()&&!(d.getNext().type==CKEDITOR.NODE_ELEMENT&&d.getNext().isBlockBoundary());d.getFirst();)d.getFirst().remove().appendTo(k);g&&k.append(c.document.createElement("br"));k.replace(d);g=!1}}a.selectBookmarks(m);c.focus()}},refresh:function(c,f){this.setState(c.elementPath(f.block||f.blockLimit).contains("blockquote",
1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(h){h.blockless||(h.addCommand("blockquote",c),h.ui.addButton&&h.ui.addButton("Blockquote",{label:h.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var c=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=
a.required||!1;for(var d=[this._],e=1;e<arguments.length;e++)d.push(arguments[e]);d.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,d);return this._},h={build:function(a,d,e){return new CKEDITOR.ui.dialog.textInput(a,d,e)}},f={build:function(a,d,e){return new CKEDITOR.ui.dialog[d.type](a,d,e)}},a={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(a){this.setValue(this.getInitValue(),a)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=
this._["default"]},getInitValue:function(){return this._.initValue}},g=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,d){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",d)}},!0),m=/^on([A-Z]\w+)/,n=function(a){for(var d in a)(m.test(d)||"title"==d||"type"==d)&&
delete a[d];return a},k=function(a){a=a.data.getKeystroke();a==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):a==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(a,d,e,g){if(!(4>arguments.length)){var f=c.call(this,d);f.labelId=CKEDITOR.tools.getNextId()+"_label";this._.children=[];var k={role:d.role||"presentation"};d.includeLabel&&(k["aria-labelledby"]=f.labelId);CKEDITOR.ui.dialog.uiElement.call(this,
a,d,e,"div",null,k,function(){var e=[],c=d.required?" cke_required":"";"horizontal"!=d.labelLayout?e.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" ',' id\x3d"'+f.labelId+'"',f.inputId?' for\x3d"'+f.inputId+'"':"",(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",d.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"',d.controlStyle?' style\x3d"'+d.controlStyle+'"':"",' role\x3d"presentation"\x3e',g.call(this,a,d),"\x3c/div\x3e"):(c={type:"hbox",widths:d.widths,
padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" id\x3d"'+f.labelId+'" for\x3d"'+f.inputId+'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(d.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(d.controlStyle?' style\x3d"'+d.controlStyle+'"':"")+"\x3e"+g.call(this,a,d)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(a,c,e));return e.join("")})}},textInput:function(a,
d,e){if(!(3>arguments.length)){c.call(this,d);var g=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",f={"class":"cke_dialog_ui_input_"+d.type,id:g,type:d.type};d.validate&&(this.validate=d.validate);d.maxLength&&(f.maxlength=d.maxLength);d.size&&(f.size=d.size);d.inputStyle&&(f.style=d.inputStyle);var h=this,m=!1;a.on("load",function(){h.getInputElement().on("keydown",function(a){13==a.data.getKeystroke()&&(m=!0)});h.getInputElement().on("keyup",function(d){13==d.data.getKeystroke()&&m&&(a.getButton("ok")&&
setTimeout(function(){a.getButton("ok").click()},0),m=!1);h.bidi&&k.call(h,d)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,a,d,e,function(){var a=['\x3cdiv class\x3d"cke_dialog_ui_input_',d.type,'" role\x3d"presentation"'];d.width&&a.push('style\x3d"width:'+d.width+'" ');a.push("\x3e\x3cinput ");f["aria-labelledby"]=this._.labelId;this._.required&&(f["aria-required"]=this._.required);for(var b in f)a.push(b+'\x3d"'+f[b]+'" ');a.push(" /\x3e\x3c/div\x3e");return a.join("")})}},textarea:function(a,
d,e){if(!(3>arguments.length)){c.call(this,d);var g=this,f=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",h={};d.validate&&(this.validate=d.validate);h.rows=d.rows||5;h.cols=d.cols||20;h["class"]="cke_dialog_ui_input_textarea "+(d["class"]||"");"undefined"!=typeof d.inputStyle&&(h.style=d.inputStyle);d.dir&&(h.dir=d.dir);if(g.bidi)a.on("load",function(){g.getInputElement().on("keyup",k)},g);CKEDITOR.ui.dialog.labeledElement.call(this,a,d,e,function(){h["aria-labelledby"]=this._.labelId;this._.required&&
(h["aria-required"]=this._.required);var a=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',f,'" '],b;for(b in h)a.push(b+'\x3d"'+CKEDITOR.tools.htmlEncode(h[b])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(g._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(a,d,e){if(!(3>arguments.length)){var g=c.call(this,d,{"default":!!d["default"]});d.validate&&(this.validate=d.validate);CKEDITOR.ui.dialog.uiElement.call(this,
a,d,e,"span",null,null,function(){var e=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),c=[],f=CKEDITOR.tools.getNextId()+"_label",k={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":f};n(e);d["default"]&&(k.checked="checked");"undefined"!=typeof e.inputStyle&&(e.style=e.inputStyle);g.checkbox=new CKEDITOR.ui.dialog.uiElement(a,e,c,"input",null,k);c.push(' \x3clabel id\x3d"',f,'" for\x3d"',k.id,'"'+(d.labelStyle?' style\x3d"'+
d.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(d.label),"\x3c/label\x3e");return c.join("")})}},radio:function(a,d,e){if(!(3>arguments.length)){c.call(this,d);this._["default"]||(this._["default"]=this._.initValue=d.items[0][1]);d.validate&&(this.validate=d.validate);var g=[],f=this;d.role="radiogroup";d.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this,a,d,e,function(){for(var e=[],c=[],k=(d.id?d.id:CKEDITOR.tools.getNextId())+"_radio",h=0;h<d.items.length;h++){var m=d.items[h],
r=void 0!==m[2]?m[2]:m[0],w=void 0!==m[1]?m[1]:m[0],p=CKEDITOR.tools.getNextId()+"_radio_input",y=p+"_label",p=CKEDITOR.tools.extend({},d,{id:p,title:null,type:null},!0),r=CKEDITOR.tools.extend({},p,{title:r},!0),A={type:"radio","class":"cke_dialog_ui_radio_input",name:k,value:w,"aria-labelledby":y},C=[];f._["default"]==w&&(A.checked="checked");n(p);n(r);"undefined"!=typeof p.inputStyle&&(p.style=p.inputStyle);p.keyboardFocusable=!0;g.push(new CKEDITOR.ui.dialog.uiElement(a,p,C,"input",null,A));C.push(" ");
new CKEDITOR.ui.dialog.uiElement(a,r,C,"label",null,{id:y,"for":A.id},m[0]);e.push(C.join(""))}new CKEDITOR.ui.dialog.hbox(a,g,e,c);return c.join("")});this._.children=g}},button:function(a,d,e){if(arguments.length){"function"==typeof d&&(d=d(a.getParentEditor()));c.call(this,d,{disabled:d.disabled||!1});CKEDITOR.event.implementOn(this);var g=this;a.on("load",function(){var a=this.getElement();(function(){a.on("click",function(a){g.click();a.data.preventDefault()});a.on("keydown",function(a){a.data.getKeystroke()in
{32:1}&&(g.click(),a.data.preventDefault())})})();a.unselectable()},this);var f=CKEDITOR.tools.extend({},d);delete f.style;var k=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,f,e,"a",null,{style:d.style,href:"javascript:void(0)",title:d.label,hidefocus:"true","class":d["class"],role:"button","aria-labelledby":k},'\x3cspan id\x3d"'+k+'" class\x3d"cke_dialog_ui_button"\x3e'+CKEDITOR.tools.htmlEncode(d.label)+"\x3c/span\x3e")}},select:function(a,d,e){if(!(3>arguments.length)){var g=
c.call(this,d);d.validate&&(this.validate=d.validate);g.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,d,e,function(){var e=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),c=[],f=[],k={id:g.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};c.push('\x3cdiv class\x3d"cke_dialog_ui_input_',d.type,'" role\x3d"presentation"');d.width&&c.push('style\x3d"width:'+d.width+'" ');c.push("\x3e");
void 0!==d.size&&(k.size=d.size);void 0!==d.multiple&&(k.multiple=d.multiple);n(e);for(var h=0,m;h<d.items.length&&(m=d.items[h]);h++)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 e.inputStyle&&(e.style=e.inputStyle);g.select=new CKEDITOR.ui.dialog.uiElement(a,e,c,"select",null,k,f.join(""));c.push("\x3c/div\x3e");return c.join("")})}},file:function(a,d,e){if(!(3>arguments.length)){void 0===
d["default"]&&(d["default"]="");var g=CKEDITOR.tools.extend(c.call(this,d),{definition:d,buttons:[]});d.validate&&(this.validate=d.validate);a.on("load",function(){CKEDITOR.document.getById(g.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,d,e,function(){g.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['\x3ciframe frameborder\x3d"0" allowtransparency\x3d"0" class\x3d"cke_dialog_ui_input_file" role\x3d"presentation" id\x3d"',g.frameId,
'" title\x3d"',d.label,'" src\x3d"javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"\x3e\x3c/iframe\x3e');return a.join("")})}},fileButton:function(a,d,e){var g=this;if(!(3>arguments.length)){c.call(this,d);d.validate&&(this.validate=d.validate);var f=CKEDITOR.tools.extend({},d),k=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(e){var c=
d["for"];e=k?k.call(this,e):!1;!1!==e&&("xhr"!==e&&a.getContentElement(c[0],c[1]).submit(),this.disable())};a.on("load",function(){a.getContentElement(d["for"][0],d["for"][1])._.buttons.push(g)});CKEDITOR.ui.dialog.button.call(this,a,f,e)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,d=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,e=/\/$/;return function(c,g,f){if(!(3>arguments.length)){var k=[],h=g.html;"\x3c"!=h.charAt(0)&&(h="\x3cspan\x3e"+h+"\x3c/span\x3e");var m=g.focus;if(m){var n=this.focus;
this.focus=function(){("function"==typeof m?m:n).call(this);this.fire("focus")};g.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,c,g,k,"span",null,null,"");k=k.join("").match(a);h=h.match(d)||["","",""];e.test(h[1])&&(h[1]=h[1].slice(0,-1),h[2]="/"+h[2]);f.push([h[1]," ",k[1]||"",h[2]].join(""))}}}(),fieldset:function(a,d,e,c,g){var f=g.label;this._={children:d};CKEDITOR.ui.dialog.uiElement.call(this,a,g,c,"fieldset",null,null,function(){var a=
[];f&&a.push("\x3clegend"+(g.labelStyle?' style\x3d"'+g.labelStyle+'"':"")+"\x3e"+f+"\x3c/legend\x3e");for(var b=0;b<e.length;b++)a.push(e[b]);return a.join("")})}},!0);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(a){var d=CKEDITOR.document.getById(this._.labelId);1>d.getChildCount()?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(d):d.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:g},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return this._.disabled?!1:this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var a=this.getElement();a&&a.removeClass("cke_disabled")},disable:function(){this._.disabled=!0;this.getElement().addClass("cke_disabled")},
isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(a,d){this.on("click",function(){d.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},
focus:function(){var a=this.selectParentTab();setTimeout(function(){var d=a.getInputElement();d&&d.$.focus()},0)},select:function(){var a=this.selectParentTab();setTimeout(function(){var d=a.getInputElement();d&&(d.$.focus(),d.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var d=a&&a.charAt(0);(d="‪"==d?"ltr":"‫"==d?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(d)}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 d=this.getDirectionMarker();d&&(a=("ltr"==d?"‪":"‫")+a)}return a},setDirectionMarker:function(a){var d=this.getInputElement();a?d.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&d.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},a,!0);CKEDITOR.ui.dialog.textarea.prototype=
new CKEDITOR.ui.dialog.textInput;CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(a,d,e){var c=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),g=this.getInputElement().$;c.$.text=a;c.$.value=void 0===d||null===d?a:d;void 0===e||null===e?CKEDITOR.env.ie?g.add(c.$):g.add(c.$,null):g.add(c.$,e);return this},remove:function(a){this.getInputElement().$.remove(a);
return this},clear:function(){for(var a=this.getInputElement().$;0<a.length;)a.remove(0);return this},keyboardFocusable:!0},a,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,d){this.getInputElement().$.checked=a;!d&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,
d){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return g.onChange.apply(this,arguments);a.on("load",function(){var a=this._.checkbox.getElement();a.on("propertychange",function(b){b=b.data.$;"checked"==b.propertyName&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",d);return null}},keyboardFocusable:!0},a,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,d){for(var e=this._.children,c,g=0;g<e.length&&(c=e[g]);g++)c.getElement().$.checked=
c.getValue()==a;!d&&this.fire("change",{value:a})},getValue:function(){for(var a=this._.children,d=0;d<a.length;d++)if(a[d].getElement().$.checked)return a[d].getValue();return null},accessKeyUp:function(){var a=this._.children,d;for(d=0;d<a.length;d++)if(a[d].getElement().$.checked){a[d].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,d){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return g.onChange.apply(this,arguments);a.on("load",function(){for(var a=
this._.children,b=this,d=0;d<a.length;d++)a[d].getElement().on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.$.checked&&b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",d);return null}}},a,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,a,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<a.$.forms.length?new CKEDITOR.dom.element(a.$.forms[0].elements[0]):
this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(a){var d=/^on([A-Z]\w+)/,e,c=function(a,b,d,e){a.on("formLoaded",function(){a.getInputElement().on(d,e,a)})},g;for(g in a)if(e=g.match(d))this.eventProcessors[g]?this.eventProcessors[g].call(this,this._.dialog,a[g]):c(this,this._.dialog,e[1].toLowerCase(),a[g]);return this},reset:function(){function a(){e.$.open();
var b="";c.size&&(b=c.size-(CKEDITOR.env.ie?7:0));var n=d.frameId+"_input";e.$.write(['\x3chtml dir\x3d"'+h+'" 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"'+h+'" lang\x3d"'+m+'" action\x3d"',CKEDITOR.tools.htmlEncode(c.action),'"\x3e\x3clabel id\x3d"',d.labelId,'" for\x3d"',n,'" style\x3d"display:none"\x3e',CKEDITOR.tools.htmlEncode(c.label),
'\x3c/label\x3e\x3cinput style\x3d"width:100%" id\x3d"',n,'" aria-labelledby\x3d"',d.labelId,'" type\x3d"file" name\x3d"',CKEDITOR.tools.htmlEncode(c.id||"cke_upload"),'" size\x3d"',CKEDITOR.tools.htmlEncode(0<b?b:""),'" /\x3e\x3c/form\x3e\x3c/body\x3e\x3c/html\x3e\x3cscript\x3e',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+f+");","window.onbeforeunload \x3d function() {window.parent.CKEDITOR.tools.callFunction("+k+")}","\x3c/script\x3e"].join(""));
e.$.close();for(b=0;b<g.length;b++)g[b].enable()}var d=this._,e=CKEDITOR.document.getById(d.frameId).getFrameDocument(),c=d.definition,g=d.buttons,f=this.formLoadedNumber,k=this.formUnloadNumber,h=d.dialog._.editor.lang.dir,m=d.dialog._.editor.langCode;f||(f=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),k=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(f);
CKEDITOR.tools.removeFunction(k)}));CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(a,d){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0);this.on("change",d)}},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.fileButton.prototype=
new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",h);CKEDITOR.dialog.addUIElement("password",h);CKEDITOR.dialog.addUIElement("tel",h);CKEDITOR.dialog.addUIElement("textarea",f);CKEDITOR.dialog.addUIElement("checkbox",f);CKEDITOR.dialog.addUIElement("radio",f);CKEDITOR.dialog.addUIElement("button",f);CKEDITOR.dialog.addUIElement("select",f);CKEDITOR.dialog.addUIElement("file",f);CKEDITOR.dialog.addUIElement("fileButton",
f);CKEDITOR.dialog.addUIElement("html",f);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,d,e){for(var c=d.children,g,f=[],k=[],h=0;h<c.length&&(g=c[h]);h++){var m=[];f.push(m);k.push(CKEDITOR.dialog._.uiElementBuilders[g.type].build(a,g,m))}return new CKEDITOR.ui.dialog[d.type](a,k,f,e,d)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function c(a){a._.tabBarMode=
!0;a._.tabs[a._.currentTabId][0].focus();a._.currentFocusIndex=-1}function h(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,d=b-1;d>b-a;d--)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function f(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),d=b+1;d<b+a;d++)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];
return null}function a(a,b){for(var d=a.$.getElementsByTagName("input"),e=0,c=d.length;e<c;e++){var g=new CKEDITOR.dom.element(d[e]);"text"==g.getAttribute("type").toLowerCase()&&(b?(g.setAttribute("value",g.getCustomData("fake_value")||""),g.removeCustomData("fake_value")):(g.setCustomData("fake_value",g.getAttribute("value")),g.setAttribute("value","")))}}function g(a,b){var d=this.getInputElement();d&&(a?d.removeAttribute("aria-invalid"):d.setAttribute("aria-invalid",!0));a||(this.select?this.select():
this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function m(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function n(a){var b=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",G).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode,editorDialogClass:"cke_editor_"+a.name.replace(/\./g,"\\.")+"_dialog",closeTitle:a.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),d=b.getChild([0,0,0,0,0]),e=d.getChild(0),
c=d.getChild(1);a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(d);!CKEDITOR.env.ie||CKEDITOR.env.quirks||CKEDITOR.env.edge||(a="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('\x3ciframe frameBorder\x3d"0" class\x3d"cke_iframe_shim" src\x3d"'+a+'" tabIndex\x3d"-1"\x3e\x3c/iframe\x3e').appendTo(d.getParent()));e.unselectable();c.unselectable();return{element:b,
parts:{dialog:b.getChild(0),title:e,close:c,tabs:d.getChild(2),contents:d.getChild([3,0,0,0]),footer:d.getChild([3,0,1,0])}}}function k(a,b,d){this.element=b;this.focusIndex=d;this.tabIndex=0;this.isFocusable=function(){return!b.getAttribute("disabled")&&b.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};b.on("keydown",function(a){a.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")});b.on("blur",function(){this.fire("mouseout")})}
function b(a){function b(){a.layout()}var d=CKEDITOR.document.getWindow();d.on("resize",b);a.on("hide",function(){d.removeListener("resize",b)})}function d(a,b){this.dialog=a;for(var d=b.contents,c=0,g;g=d[c];c++)d[c]=g&&new e(a,g);CKEDITOR.tools.extend(this,b)}function e(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function l(a){function b(d){var k=a.getSize(),h=a.parts.dialog.getParent().getClientSize(),m=d.data.$.screenX,n=d.data.$.screenY,v=m-e.x,u=n-e.y;e={x:m,y:n};c.x+=v;c.y+=u;m=c.x+
l[3]<f?-l[3]:c.x-l[1]>h.width-k.width-f?h.width-k.width+("rtl"==g.lang.dir?0:l[1]):c.x;k=c.y+l[0]<f?-l[0]:c.y-l[2]>h.height-k.height-f?h.height-k.height+l[2]:c.y;m=Math.floor(m);k=Math.floor(k);a.move(m,k,1);d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",d);if(CKEDITOR.env.ie6Compat){var a=K.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",d)}}var e=null,c=null,g=a.getParentEditor(),
f=g.config.dialog_magnetDistance,l=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof f&&(f=20);a.parts.title.on("mousedown",function(g){if(!a._.moved){var f=a._.element;f.getFirst().setStyle("position","absolute");f.removeStyle("display");a._.moved=!0;a.layout()}e={x:g.data.$.screenX,y:g.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);c=a.getPosition();CKEDITOR.env.ie6Compat&&(f=K.getChild(0).getFrameDocument(),f.on("mousemove",b),f.on("mouseup",d));g.data.preventDefault()},
a)}function v(a){function b(d){var n="rtl"==g.lang.dir,v=m.width,u=m.height,M=v+(d.data.$.screenX-h.x)*(n?-1:1)*(a._.moved?1:2),p=u+(d.data.$.screenY-h.y)*(a._.moved?1:2),r=a._.element.getFirst(),r=n&&parseInt(r.getComputedStyle("right"),10),E=a.getPosition();E.x=E.x||0;E.y=E.y||0;E.y+p>k.height&&(p=k.height-E.y);(n?r:E.x)+M>k.width&&(M=k.width-(n?r:E.x));p=Math.floor(p);M=Math.floor(M);if(c==CKEDITOR.DIALOG_RESIZE_WIDTH||c==CKEDITOR.DIALOG_RESIZE_BOTH)v=Math.max(e.minWidth||0,M-f);if(c==CKEDITOR.DIALOG_RESIZE_HEIGHT||
c==CKEDITOR.DIALOG_RESIZE_BOTH)u=Math.max(e.minHeight||0,p-l);a.resize(v,u);a._.moved&&x(a,a._.position.x,a._.position.y);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",b);n&&(n.remove(),n=null);if(CKEDITOR.env.ie6Compat){var a=K.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",b)}}var e=a.definition,c=e.resizable;if(c!=CKEDITOR.DIALOG_RESIZE_NONE){var g=
a.getParentEditor(),f,l,k,h,m,n,v=CKEDITOR.tools.addFunction(function(e){function c(a){return a.isVisible()}m=a.getSize();var g=a.parts.contents,v=g.$.getElementsByTagName("iframe").length,M=!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks);v&&(n=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%; left:0; top:0;"\x3e\x3c/div\x3e'),g.append(n));l=m.height-a.parts.contents.getFirst(c).getSize("height",M);
f=m.width-a.parts.contents.getFirst(c).getSize("width",1);h={x:e.screenX,y:e.screenY};k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);CKEDITOR.env.ie6Compat&&(g=K.getChild(0).getFrameDocument(),g.on("mousemove",b),g.on("mouseup",d));e.preventDefault&&e.preventDefault()});a.on("load",function(){var b="";c==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":c==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+
b+" cke_resizer_"+g.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(g.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+v+', event )"\x3e'+("ltr"==g.lang.dir?"◢":"◣")+"\x3c/div\x3e");a.parts.footer.append(b,1)});g.on("destroy",function(){CKEDITOR.tools.removeFunction(v)})}}function x(a,b,d){var e=a.parts.dialog.getParent().getClientSize(),c=a.getSize(),g=a._.viewportRatio,f=Math.max(e.width-c.width,0),e=Math.max(e.height-c.height,0);g.width=f?b/f:g.width;g.height=e?d/e:g.height;
a._.viewportRatio=g}function t(a){a.data.preventDefault(1)}function q(a){var b=a.config,d=CKEDITOR.skinName||a.config.skin,e=b.dialog_backgroundCoverColor||("moono-lisa"==d?"black":"white"),d=b.dialog_backgroundCoverOpacity,c=b.baseFloatZIndex,b=CKEDITOR.tools.genKey(e,d,c),g=N[b];CKEDITOR.document.getBody().addClass("cke_dialog_open");g?g.show():(c=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",c,"; top: 0px; left: 0px; ","; width: 100%; height: 100%;",
CKEDITOR.env.ie6Compat?"":"background-color: "+e,'" class\x3d"cke_dialog_background_cover"\x3e'],CKEDITOR.env.ie6Compat&&(e="\x3chtml\x3e\x3cbody style\x3d\\'background-color:"+e+";\\'\x3e\x3c/body\x3e\x3c/html\x3e",c.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),c.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+e+"' );document.close();")+"})())"),c.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')),
c.push("\x3c/div\x3e"),g=CKEDITOR.dom.element.createFromHtml(c.join("")),g.setOpacity(void 0!==d?d:.5),g.on("keydown",t),g.on("keypress",t),g.on("keyup",t),g.appendTo(CKEDITOR.document.getBody()),N[b]=g);a.focusManager.add(g);K=g;CKEDITOR.env.mac&&CKEDITOR.env.webkit||g.focus()}function u(a){CKEDITOR.document.getBody().removeClass("cke_dialog_open");K&&(a.focusManager.remove(K),K.hide())}function z(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,e=a.data.$.shiftKey,c=String.fromCharCode(a.data.$.keyCode);
(b=P[(b?"CTRL+":"")+(d?"ALT+":"")+(e?"SHIFT+":"")+c])&&b.length&&(b=b[b.length-1],b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key),a.data.preventDefault())}function r(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,e=a.data.$.shiftKey,c=String.fromCharCode(a.data.$.keyCode);(b=P[(b?"CTRL+":"")+(d?"ALT+":"")+(e?"SHIFT+":"")+c])&&b.length&&(b=b[b.length-1],b.keyup&&(b.keyup.call(b.uiElement,b.dialog,b.key),a.data.preventDefault()))}function w(a,b,d,e,c){(P[d]||(P[d]=[])).push({uiElement:a,
dialog:b,key:d,keyup:c||a.accessKeyUp,keydown:e||a.accessKeyDown})}function p(a){for(var b in P){for(var d=P[b],e=d.length-1;0<=e;e--)d[e].dialog!=a&&d[e].uiElement!=a||d.splice(e,1);0===d.length&&delete P[b]}}function y(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])}function A(){}var C=CKEDITOR.tools.cssLength,F,K,D=!1,H=!CKEDITOR.env.ie||CKEDITOR.env.edge,G='\x3cdiv class\x3d"cke_reset_all cke_dialog_container {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" style\x3d"'+(H?
"display:flex":"")+'" lang\x3d"{langCode}" role\x3d"dialog" aria-labelledby\x3d"cke_dialog_title_{id}"\x3e\x3ctable class\x3d"cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style\x3d"'+(H?"margin:auto":"position:absolute")+'" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_dialog_body" role\x3d"presentation"\x3e\x3cdiv id\x3d"cke_dialog_title_{id}" class\x3d"cke_dialog_title" role\x3d"presentation"\x3e\x3c/div\x3e\x3ca id\x3d"cke_dialog_close_button_{id}" class\x3d"cke_dialog_close_button" href\x3d"javascript:void(0)" title\x3d"{closeTitle}" role\x3d"button"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e\x3cdiv id\x3d"cke_dialog_tabs_{id}" class\x3d"cke_dialog_tabs" role\x3d"tablist"\x3e\x3c/div\x3e\x3ctable class\x3d"cke_dialog_contents" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_contents_{id}" class\x3d"cke_dialog_contents_body" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_footer_{id}" class\x3d"cke_dialog_footer" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e';
CKEDITOR.dialog=function(a,b){function e(){var a=A._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,d=0;d<b;d++)a[d].focusIndex=d}function k(a){var b=A._.focusList;a=a||0;if(!(1>b.length)){var d=A._.currentFocusIndex;A._.tabBarMode&&0>a&&(d=0);try{b[d].getInputElement().$.blur()}catch(e){}var c=d,g=1<A._.pageCount;do{c+=a;if(g&&!A._.tabBarMode&&(c==b.length||-1==c)){A._.tabBarMode=!0;A._.tabs[A._.currentTabId][0].focus();
A._.currentFocusIndex=-1;return}c=(c+b.length)%b.length;if(c==d)break}while(a&&!b[c].isFocusable());b[c].focus();"text"==b[c].type&&b[c].select()}}function u(b){if(A==CKEDITOR.dialog._.currentTop){var d=b.data.getKeystroke(),e="rtl"==a.lang.dir,g=[37,38,39,40];q=y=0;if(9==d||d==CKEDITOR.SHIFT+9)k(d==CKEDITOR.SHIFT+9?-1:1),q=1;else if(d==CKEDITOR.ALT+121&&!A._.tabBarMode&&1<A.getPageCount())c(A),q=1;else if(-1!=CKEDITOR.tools.indexOf(g,d)&&A._.tabBarMode)d=-1!=CKEDITOR.tools.indexOf([e?39:37,38],d)?
h.call(A):f.call(A),A.selectPage(d),A._.tabs[d][0].focus(),q=1;else if(13!=d&&32!=d||!A._.tabBarMode)if(13==d)d=b.data.getTarget(),d.is("a","button","select","textarea")||d.is("input")&&"button"==d.$.type||((d=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(d.click,0,d),q=1),y=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(),y=1;else return;else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=
-1,k(1),q=1;p(b)}}function p(a){q?a.data.preventDefault(1):y&&a.data.stopPropagation()}var r=CKEDITOR.dialog._.dialogDefinitions[b],x=CKEDITOR.tools.clone(F),t=a.config.dialog_buttonsOrder||"OS",w=a.lang.dir,z={},q,y;("OS"==t&&CKEDITOR.env.mac||"rtl"==t&&"ltr"==w||"ltr"==t&&"rtl"==w)&&x.buttons.reverse();r=CKEDITOR.tools.extend(r(a),x);r=CKEDITOR.tools.clone(r);r=new d(this,r);x=n(a);this._={editor:a,element:x.element,name:b,model:null,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},
buttons:{},accessKeyMap:{},viewportRatio:{width:.5,height:.5},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1};this.parts=x.parts;CKEDITOR.tools.setTimeout(function(){a.fire("ariaWidget",this.parts.contents)},0,this);x={top:0,visibility:"hidden"};CKEDITOR.env.ie6Compat&&(x.position="absolute");x["rtl"==w?"right":"left"]=0;this.parts.dialog.setStyles(x);CKEDITOR.event.call(this);this.definition=r=CKEDITOR.fire("dialogDefinition",
{name:b,definition:r,dialog:this},a).definition;if(!("removeDialogTabs"in a._)&&a.config.removeDialogTabs){x=a.config.removeDialogTabs.split(";");for(w=0;w<x.length;w++)if(t=x[w].split(":"),2==t.length){var G=t[0];z[G]||(z[G]=[]);z[G].push(t[1])}a._.removeDialogTabs=z}if(a._.removeDialogTabs&&(z=a._.removeDialogTabs[b]))for(w=0;w<z.length;w++)r.removeContents(z[w]);if(r.onLoad)this.on("load",r.onLoad);if(r.onShow)this.on("show",r.onShow);if(r.onHide)this.on("hide",r.onHide);if(r.onOk)this.on("ok",
function(b){a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},0);!1===r.onOk.call(this,b)&&(b.data.hide=!1)});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(r.onCancel)this.on("cancel",function(a){!1===r.onCancel.call(this,a)&&(a.data.hide=!1)});var A=this,H=function(a){var b=A._.contents,d=!1,e;for(e in b)for(var c in b[e])if(d=a.call(this,b[e][c]))return};this.on("ok",function(a){H(function(b){if(b.validate){var d=b.validate(this),e="string"==typeof d||!1===d;e&&(a.data.hide=!1,a.stop());
g.call(b,!e,"string"==typeof d?d:void 0);return e}})},this,null,0);this.on("cancel",function(b){H(function(d){if(d.isChanged())return a.config.dialog_noConfirmCancel||confirm(a.lang.common.confirmCancel)||(b.data.hide=!1),!0})},this,null,0);this.parts.close.on("click",function(a){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide();a.data.preventDefault()},this);this.changeFocus=k;var C=this._.element;a.focusManager.add(C,1);this.on("show",function(){C.on("keydown",u,this);if(CKEDITOR.env.gecko)C.on("keypress",
p,this)});this.on("hide",function(){C.removeListener("keydown",u);CKEDITOR.env.gecko&&C.removeListener("keypress",p);H(function(a){m.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",u,this,null,0)});this.on("show",function(){e();var b=1<A._.pageCount;a.config.dialog_startupFocusTab&&b?(A._.tabBarMode=!0,A._.tabs[A._.currentTabId][0].focus(),A._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=b?-1:this._.focusList.length-
1,r.onFocus?(b=r.onFocus.call(this))&&b.focus():k(1))},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},this);l(this);v(this);(new CKEDITOR.dom.text(r.title,CKEDITOR.document)).appendTo(this.parts.title);for(w=0;w<r.contents.length;w++)(z=r.contents[w])&&this.addPage(z);this.parts.tabs.on("click",function(a){var b=a.data.getTarget();b.hasClass("cke_dialog_tab")&&(b=b.$.id,this.selectPage(b.substring(4,b.lastIndexOf("_"))),
c(this),a.data.preventDefault())},this);w=[];z=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:r.buttons},w).getChild();this.parts.footer.setHtml(w.join(""));for(w=0;w<z.length;w++)this._.buttons[z[w].id]=z[w]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(a,b){if(!this._.contentSize||this._.contentSize.width!=a||this._.contentSize.height!=b){CKEDITOR.dialog.fire("resize",
{dialog:this,width:a,height:b},this._.editor);this.fire("resize",{width:a,height:b},this._.editor);this.parts.contents.setStyles({width:a+"px",height:b+"px"});if("rtl"==this._.editor.lang.dir&&this._.position){var d=this.parts.dialog.getParent().getClientSize().width;this._.position.x=d-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)}this._.contentSize={width:a,height:b}}},getSize:function(){var a=this._.element.getFirst();return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||
0}},move:function(a,b,d){var e=this._.element.getFirst(),c="rtl"==this._.editor.lang.dir;CKEDITOR.env.ie&&e.setStyle("zoom","100%");var g=this.parts.dialog.getParent().getClientSize(),f=this.getSize(),l=this._.viewportRatio,k=Math.max(g.width-f.width,0),g=Math.max(g.height-f.height,0);this._.position&&this._.position.x==a&&this._.position.y==b?(a=Math.floor(k*l.width),b=Math.floor(g*l.height)):x(this,a,b);this._.position={x:a,y:b};c&&(a=k-a);b={top:(0<b?b:0)+"px"};b[c?"right":"left"]=(0<a?a:0)+"px";
e.setStyles(b);d&&(this._.moved=1)},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,d=this.definition,e=CKEDITOR.document.getBody(),c=this._.editor.config.baseFloatZIndex;a.getParent()&&a.getParent().equals(e)?a.setStyle("display",H?"flex":"block"):a.appendTo(e);this.resize(this._.contentSize&&this._.contentSize.width||d.width||d.minWidth,this._.contentSize&&this._.contentSize.height||d.height||d.minHeight);this.reset();null===this._.currentTabId&&
this.selectPage(this.definition.contents[0].id);null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=c);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);this.getElement().setStyle("z-index",CKEDITOR.dialog._.currentZIndex);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,q(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,e=this._.parentDialog.getElement().getFirst(),e.$.style.zIndex-=
Math.floor(c/2),this._.parentDialog.getElement().setStyle("z-index",e.$.style.zIndex),CKEDITOR.dialog._.currentTop=this);a.on("keydown",z);a.on("keyup",r);this._.hasFocus=!1;for(var g in d.contents)if(d.contents[g]){var a=d.contents[g],c=this._.tabs[a.id],e=a.requiredContent,f=0;if(c){for(var l in this._.contents[a.id]){var k=this._.contents[a.id][l];"hbox"!=k.type&&"vbox"!=k.type&&k.getInputElement()&&(k.requiredContent&&!this._.editor.activeFilter.check(k.requiredContent)?k.disable():(k.enable(),
f++))}!f||e&&!this._.editor.activeFilter.check(e)?c[0].addClass("cke_dialog_tab_disabled"):c[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();b(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(a){a.setInitValue&&a.setInitValue()})},100,this)},layout:function(){var a=
this.parts.dialog;if(this._.moved||!H){var b=this.getSize(),d=CKEDITOR.document.getWindow().getViewPaneSize(),e;this._.moved&&this._.position?(e=this._.position.x,b=this._.position.y):(e=(d.width-b.width)/2,b=(d.height-b.height)/2);CKEDITOR.env.ie6Compat||(a.setStyle("position","absolute"),a.removeStyle("margin"));e=Math.floor(e);b=Math.floor(b);this.move(e,b)}},foreach:function(a){for(var b in this._.contents)for(var d in this._.contents[b])a.call(this,this._.contents[b][d]);return this},reset:function(){var a=
function(a){a.reset&&a.reset(1)};return function(){this.foreach(a);return this}}(),setupContent:function(){var a=arguments;this.foreach(function(b){b.setup&&b.setup.apply(b,a)})},commitContent:function(){var a=arguments;this.foreach(function(b){CKEDITOR.env.ie&&this._.currentFocusIndex==b.focusIndex&&b.getInputElement().$.blur();b.commit&&b.commit.apply(b,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);
var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(p(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var b=this._.parentDialog.getElement().getFirst();this._.parentDialog.getElement().removeStyle("z-index");b.setStyle("z-index",parseInt(b.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else u(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=
10;else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",z);a.removeListener("keyup",r);var d=this._.editor;d.focus();setTimeout(function(){d.focusManager.unlock();CKEDITOR.env.iOS&&d.window.focus()},0)}delete this._.parentDialog;this.foreach(function(a){a.resetInitValue&&a.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var b=[],d=a.label?' title\x3d"'+CKEDITOR.tools.htmlEncode(a.label)+
'"':"",e=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:a.elements,expand:!!a.expand,padding:a.padding,style:a.style||"width: 100%;"},b),c=this._.contents[a.id]={},g=e.getChild(),f=0;e=g.shift();)e.notAllowed||"hbox"==e.type||"vbox"==e.type||f++,c[e.id]=e,"function"==typeof e.getChild&&g.push.apply(g,e.getChild());f||(a.hidden=!0);b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");b.setStyle("min-height",
"100%");e=CKEDITOR.env;c="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();d=CKEDITOR.dom.element.createFromHtml(['\x3ca class\x3d"cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",d,a.hidden?' style\x3d"display:none"':"",' id\x3d"',c,'"',e.gecko&&!e.hc?"":' href\x3d"javascript:void(0)"',' tabIndex\x3d"-1" hidefocus\x3d"true" role\x3d"tab"\x3e',a.label,"\x3c/a\x3e"].join(""));b.setAttribute("aria-labelledby",c);this._.tabs[a.id]=[d,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;
this._.lastTab=d;this.updateStyle();b.setAttribute("name",a.id);b.appendTo(this.parts.contents);d.unselectable();this.parts.tabs.append(d);a.accessKey&&(w(this,this,"CTRL+"+a.accessKey,A,y),this._.accessKeyMap["CTRL+"+a.accessKey]=a.id)}},selectPage:function(b){if(this._.currentTabId!=b&&!this._.tabs[b][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:b,currentPage:this._.currentTabId})){for(var d in this._.tabs){var e=this._.tabs[d][0],c=this._.tabs[d][1];d!=b&&(e.removeClass("cke_dialog_tab_selected"),
e.removeAttribute("aria-selected"),c.hide());c.setAttribute("aria-hidden",d!=b)}var g=this._.tabs[b];g[0].addClass("cke_dialog_tab_selected");g[0].setAttribute("aria-selected",!0);CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(a(g[1]),g[1].show(),setTimeout(function(){a(g[1],1)},0)):g[1].show();this._.currentTabId=b;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,b)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(a){var b=
this._.tabs[a]&&this._.tabs[a][0];b&&1!=this._.pageCount&&b.isVisible()&&(a==this._.currentTabId&&this.selectPage(h.call(this)),b.hide(),this._.pageCount--,this.updateStyle())},showPage:function(a){if(a=this._.tabs[a]&&this._.tabs[a][0])a.show(),this._.pageCount++,this.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(a,b){var d=this._.contents[a];return d&&d[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},
setValueOf:function(a,b,d){return this.getContentElement(a,b).setValue(d)},getButton:function(a){return this._.buttons[a]},click:function(a){return this._.buttons[a].click()},disableButton:function(a){return this._.buttons[a].disable()},enableButton:function(a){return this._.buttons[a].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,
b){if("undefined"==typeof b)b=this._.focusList.length,this._.focusList.push(new k(this,a,b));else{this._.focusList.splice(b,0,new k(this,a,b));for(var d=b+1;d<this._.focusList.length;d++)this._.focusList[d].focusIndex++}},setState:function(a){if(this.state!=a){this.state=a;if(a==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var b=this.getParentEditor().lang.dir,d={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==b?"right":"left"}};d.styles["margin-"+("rtl"==b?"left":"right")]=
"8px";this.parts.spinner=CKEDITOR.document.createElement("div",d);this.parts.spinner.setHtml("\x26#8987;");this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show();this.getButton("ok").disable()}else a==CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",a)}},getModel:function(a){return this._.model?this._.model:this.definition.getModel?this.definition.getModel(a):null},setModel:function(a){this._.model=a},getMode:function(a){if(this.definition.getMode)return this.definition.getMode(a);
a=this.getModel(a);return!a||a instanceof CKEDITOR.dom.element&&!a.getParent()?CKEDITOR.dialog.CREATION_MODE:CKEDITOR.dialog.EDITING_MODE}};CKEDITOR.tools.extend(CKEDITOR.dialog,{CREATION_MODE:0,EDITING_MODE:1,add:function(a,b){this._.dialogDefinitions[a]&&"function"!=typeof b||(this._.dialogDefinitions[a]=b)},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,b,d){a=a.config.removeDialogTabs;return!(a&&a.match(new RegExp("(?:^|;)"+
b+":"+d+"(?:$|;)","i")))},okButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;!1!==a.fire("ok",{hide:!0}).hide&&a.hide()}},b,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d,b)},{type:"button"},!0)};return a}(),cancelButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",
label:a.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;!1!==a.fire("cancel",{hide:!0}).hide&&a.hide()}},b,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d,b)},{type:"button"},!0)};return a}(),addUIElement:function(a,b){this._.uiElementBuilders[a]=b}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);
F={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]};var B=function(a,b,d){for(var e=0,c;c=a[e];e++)if(c.id==b||d&&c[d]&&(c=B(c[d],b,d)))return c;return null},O=function(a,b,d,e,c){if(d){for(var g=0,f;f=a[g];g++){if(f.id==d)return a.splice(g,0,b),b;if(e&&f[e]&&(f=O(f[e],b,d,e,!0)))return f}if(c)return null}a.push(b);return b},L=function(a,b,d){for(var e=0,c;c=a[e];e++){if(c.id==b)return a.splice(e,1);if(d&&c[d]&&(c=L(c[d],
b,d)))return c}return null};d.prototype={getContents:function(a){return B(this.contents,a)},getButton:function(a){return B(this.buttons,a)},addContents:function(a,b){return O(this.contents,a,b)},addButton:function(a,b){return O(this.buttons,a,b)},removeContents:function(a){L(this.contents,a)},removeButton:function(a){L(this.buttons,a)}};e.prototype={get:function(a){return B(this.elements,a,"children")},add:function(a,b){return O(this.elements,a,b,"children")},remove:function(a){L(this.elements,a,
"children")}};var N={},P={};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,d,e,c,g,f){if(!(4>arguments.length)){var l=(e.call?e(b):e)||"div",k=["\x3c",l," "],h=(c&&c.call?c(b):c)||{},m=(g&&g.call?g(b):g)||{},n=(f&&f.call?f.call(this,a,b):f)||"",v=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)&&(h.display="none",this.notAllowed=!0);m.id=v;var u={};b.type&&(u["cke_dialog_ui_"+b.type]=1);b.className&&(u[b.className]=
1);b.disabled&&(u.cke_disabled=1);for(var p=m["class"]&&m["class"].split?m["class"].split(" "):[],v=0;v<p.length;v++)p[v]&&(u[p[v]]=1);p=[];for(v in u)p.push(v);m["class"]=p.join(" ");b.title&&(m.title=b.title);u=(b.style||"").split(";");b.align&&(p=b.align,h["margin-left"]="left"==p?0:"auto",h["margin-right"]="right"==p?0:"auto");for(v in h)u.push(v+":"+h[v]);b.hidden&&u.push("display:none");for(v=u.length-1;0<=v;v--)""===u[v]&&u.splice(v,1);0<u.length&&(m.style=(m.style?m.style+"; ":"")+u.join("; "));
for(v in m)k.push(v+'\x3d"'+CKEDITOR.tools.htmlEncode(m[v])+'" ');k.push("\x3e",n,"\x3c/",l,"\x3e");d.push(k.join(""));(this._||(this._={})).dialog=a;"boolean"==typeof b.isChanged&&(this.isChanged=function(){return b.isChanged});"function"==typeof b.isChanged&&(this.isChanged=b.isChanged);"function"==typeof b.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(d){a.call(this,b.setValue.call(this,d))}}));"function"==typeof b.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,
function(a){return function(){return b.getValue.call(this,a.call(this))}}));CKEDITOR.event.implementOn(this);this.registerEvents(b);this.accessKeyUp&&this.accessKeyDown&&b.accessKey&&w(this,a,"CTRL+"+b.accessKey);var r=this;a.on("load",function(){var b=r.getInputElement();if(b){var d=r.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=!1;a._.hasFocus=!0;r.fire("focus");d&&this.addClass(d)});b.on("blur",function(){r.fire("blur");
d&&this.removeClass(d)})}});CKEDITOR.tools.extend(this,b);this.keyboardFocusable&&(this.tabIndex=b.tabIndex||0,this.focusIndex=a._.focusList.push(this)-1,this.on("focus",function(){a._.currentFocusIndex=r.focusIndex}))}},hbox:function(a,b,d,e,c){if(!(4>arguments.length)){this._||(this._={});var g=this._.children=b,f=c&&c.widths||null,l=c&&c.height||null,k,h={role:"presentation"};c&&c.align&&(h.align=c.align);CKEDITOR.ui.dialog.uiElement.call(this,a,c||{type:"hbox"},e,"table",{},h,function(){var a=
['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(k=0;k<d.length;k++){var b="cke_dialog_ui_hbox_child",e=[];0===k&&(b="cke_dialog_ui_hbox_first");k==d.length-1&&(b="cke_dialog_ui_hbox_last");a.push('\x3ctd class\x3d"',b,'" role\x3d"presentation" ');f?f[k]&&e.push("width:"+C(f[k])):e.push("width:"+Math.floor(100/d.length)+"%");l&&e.push("height:"+C(l));c&&void 0!==c.padding&&e.push("padding:"+C(c.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&g[k].align&&e.push("text-align:"+g[k].align);
0<e.length&&a.push('style\x3d"'+e.join("; ")+'" ');a.push("\x3e",d[k],"\x3c/td\x3e")}a.push("\x3c/tr\x3e\x3c/tbody\x3e");return a.join("")})}},vbox:function(a,b,d,e,c){if(!(3>arguments.length)){this._||(this._={});var g=this._.children=b,f=c&&c.width||null,l=c&&c.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,c||{type:"vbox"},e,"div",null,{role:"presentation"},function(){var b=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];b.push('style\x3d"');c&&c.expand&&b.push("height:100%;");
b.push("width:"+C(f||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align\x3d"',CKEDITOR.tools.htmlEncode(c&&c.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');b.push("\x3e\x3ctbody\x3e");for(var e=0;e<d.length;e++){var k=[];b.push('\x3ctr\x3e\x3ctd role\x3d"presentation" ');f&&k.push("width:"+C(f||"100%"));l?k.push("height:"+C(l[e])):c&&c.expand&&k.push("height:"+Math.floor(100/d.length)+"%");c&&void 0!==c.padding&&k.push("padding:"+C(c.padding));CKEDITOR.env.ie&&
CKEDITOR.env.quirks&&g[e].align&&k.push("text-align:"+g[e].align);0<k.length&&b.push('style\x3d"',k.join("; "),'" ');b.push(' class\x3d"cke_dialog_ui_vbox_child"\x3e',d[e],"\x3c/td\x3e\x3c/tr\x3e")}b.push("\x3c/tbody\x3e\x3c/table\x3e");return b.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(a,b){this.getInputElement().setValue(a);
!b&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var a=this.getInputElement();(a=a.getParent())&&-1==a.$.className.search("cke_dialog_page_contents"););if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(a){var b=
/^on([A-Z]\w+)/,d,e=function(a,b,d,e){b.on("load",function(){a.getInputElement().on(d,e,a)})},c;for(c in a)if(d=c.match(b))this.eventProcessors[c]?this.eventProcessors[c].call(this,this._.dialog,a[c]):e(this,this._.dialog,d[1].toLowerCase(),a[c]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement();
this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return this.isEnabled()&&this.isVisible()?!0:!1}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,
{getChild:function(a){if(1>arguments.length)return this._.children.concat();a.splice||(a=[a]);return 2>a.length?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild?this._.children[a[0]].getChild(a.slice(1,a.length)):null}},!0);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,b,d){for(var e=b.children,c,g=[],f=[],l=0;l<e.length&&(c=e[l]);l++){var k=[];g.push(k);f.push(CKEDITOR.dialog._.uiElementBuilders[c.type].build(a,c,k))}return new CKEDITOR.ui.dialog[b.type](a,
f,g,d,b)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,b){this.dialogName=a;CKEDITOR.tools.extend(this,b,!0)};CKEDITOR.dialogCommand.prototype={exec:function(a){var b=this.tabId;a.openDialog(this.dialogName,function(a){b&&a.selectPage(b)})},canUndo:!1,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,d=/^\d*(?:\.\d+)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,c=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,
g=/^(--|-?([a-zA-Z_]|\\))(\\|[a-zA-Z0-9-_])*\s*?:\s*?[^:;]+$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var a=arguments;return function(){var b=this&&this.getValue?this.getValue():a[0],d,e=CKEDITOR.VALIDATE_AND,c=[],g;for(g=0;g<a.length;g++)if("function"==typeof a[g])c.push(a[g]);else break;g<a.length&&"string"==typeof a[g]&&(d=a[g],g++);g<a.length&&"number"==typeof a[g]&&(e=a[g]);var f=e==CKEDITOR.VALIDATE_AND?!0:!1;for(g=0;g<c.length;g++)f=e==
CKEDITOR.VALIDATE_AND?f&&c[g](b):f||c[g](b);return f?!0:d}},regex:function(a,b){return function(d){d=this&&this.getValue?this.getValue():d;return a.test(d)?!0:b}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b,a)},number:function(a){return this.regex(d,a)},cssLength:function(a){return this.functions(function(a){return c.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return e.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){a=
CKEDITOR.tools.trim(a).split(";");""===a[a.length-1]&&a.pop();return CKEDITOR.tools.array.every(a,function(a){return g.test(CKEDITOR.tools.trim(a))})},a)},equals:function(a,b){return this.functions(function(b){return b==a},b)},notEqual:function(a,b){return this.functions(function(b){return b!=a},b)}};CKEDITOR.on("instanceDestroyed",function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var b;b=CKEDITOR.dialog._.currentTop;)b.hide();for(var d in N)N[d].remove();N={}}a=a.editor._.storedDialogs;
for(var e in a)a[e].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b,d){var e=null,c=CKEDITOR.dialog._.dialogDefinitions[a];null===CKEDITOR.dialog._.currentTop&&q(this);if("function"==typeof c)c=this._.storedDialogs||(this._.storedDialogs={}),e=c[a]||(c[a]=new CKEDITOR.dialog(this,a)),e.setModel(d),b&&b.call(e,e),e.show();else{if("failed"==c)throw u(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');"string"==typeof c&&
CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[a]&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,b,d)},this,0,1)}CKEDITOR.skin.loadPart("dialog");if(e)e.once("hide",function(){e.setModel(null)},null,null,999);return e}});CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(a){D||(CKEDITOR.document.appendStyleSheet(this.path+"styles/dialog.css"),D=!0);a.on("doubleclick",function(b){b.data.dialog&&a.openDialog(b.data.dialog)},
null,null,999)}})}(),"use strict",function(){function c(c,a){CKEDITOR.tools.extend(this,a,{editor:c,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:c._.notificationArea});a.type||(this.type="info");this.element=this._createElement();c.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function h(c){var a=this;this.editor=c;this.notifications=[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,
this._layout,this);c.on("destroy",function(){a._removeListeners();a.element.remove()})}CKEDITOR.plugins.add("notification",{init:function(c){function a(a){var c=new CKEDITOR.dom.element("div");c.setStyles({position:"fixed","margin-left":"-9999px"});c.setAttributes({"aria-live":"assertive","aria-atomic":"true"});c.setText(a);CKEDITOR.document.getBody().append(c);setTimeout(function(){c.remove()},100)}c._.notificationArea=new h(c);c.showNotification=function(a,h,n){var k,b;"progress"==h?k=n:b=n;a=new CKEDITOR.plugins.notification(c,
{message:a,type:h,progress:k,duration:b});a.show();return a};c.on("key",function(g){if(27==g.data.keyCode){var h=c._.notificationArea.notifications;h.length&&(a(c.lang.notification.closed),h[h.length-1].hide(),g.cancel())}})}});c.prototype={show:function(){!1!==this.editor.fire("notificationShow",{notification:this})&&(this.area.add(this),this._hideAfterTimeout())},update:function(c){var a=!0;!1===this.editor.fire("notificationUpdate",{notification:this,options:c})&&(a=!1);var g=this.element,h=g.findOne(".cke_notification_message"),
n=g.findOne(".cke_notification_progress"),k=c.type;g.removeAttribute("role");c.progress&&"progress"!=this.type&&(k="progress");k&&(g.removeClass(this._getClass()),g.removeAttribute("aria-label"),this.type=k,g.addClass(this._getClass()),g.setAttribute("aria-label",this.type),"progress"!=this.type||n?"progress"!=this.type&&n&&n.remove():(n=this._createProgressElement(),n.insertBefore(h)));void 0!==c.message&&(this.message=c.message,h.setHtml(this.message));void 0!==c.progress&&(this.progress=c.progress,
n&&n.setStyle("width",this._getPercentageProgress()));a&&c.important&&(g.setAttribute("role","alert"),this.isVisible()||this.area.add(this));this.duration=c.duration;this._hideAfterTimeout()},hide:function(){!1!==this.editor.fire("notificationHide",{notification:this})&&this.area.remove(this)},isVisible:function(){return 0<=CKEDITOR.tools.indexOf(this.area.notifications,this)},_createElement:function(){var c=this,a,g,h=this.editor.lang.common.close;a=new CKEDITOR.dom.element("div");a.addClass("cke_notification");
a.addClass(this._getClass());a.setAttributes({id:this.id,role:"alert","aria-label":this.type});"progress"==this.type&&a.append(this._createProgressElement());g=new CKEDITOR.dom.element("p");g.addClass("cke_notification_message");g.setHtml(this.message);a.append(g);g=CKEDITOR.dom.element.createFromHtml('\x3ca class\x3d"cke_notification_close" href\x3d"javascript:void(0)" title\x3d"'+h+'" role\x3d"button" tabindex\x3d"-1"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e');a.append(g);g.on("click",
function(){c.editor.focus();c.hide()});return a},_getClass:function(){return"progress"==this.type?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var c=new CKEDITOR.dom.element("span");c.addClass("cke_notification_progress");c.setStyle("width",this._getPercentageProgress());return c},_getPercentageProgress:function(){return Math.round(100*(this.progress||0))+"%"},_hideAfterTimeout:function(){var c=this,a;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);
if("number"==typeof this.duration)a=this.duration;else if("info"==this.type||"success"==this.type)a="number"==typeof this.editor.config.notification_duration?this.editor.config.notification_duration:5E3;a&&(c._hideTimeoutId=setTimeout(function(){c.hide()},a))}};h.prototype={add:function(c){this.notifications.push(c);this.element.append(c.element);1==this.element.getChildCount()&&(CKEDITOR.document.getBody().append(this.element),this._attachListeners());this._layout()},remove:function(c){var a=CKEDITOR.tools.indexOf(this.notifications,
c);0>a||(this.notifications.splice(a,1),c.element.remove(),this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var c=this.editor,a=c.config,g=new CKEDITOR.dom.element("div");g.addClass("cke_notifications_area");g.setAttribute("id","cke_notifications_area_"+c.name);g.setStyle("z-index",a.baseFloatZIndex-2);return g},_attachListeners:function(){var c=CKEDITOR.document.getWindow(),a=this.editor;c.on("scroll",this._uiBuffer.input);c.on("resize",this._uiBuffer.input);
a.on("change",this._changeBuffer.input);a.on("floatingSpaceLayout",this._layout,this,null,20);a.on("blur",this._layout,this,null,20)},_removeListeners:function(){var c=CKEDITOR.document.getWindow(),a=this.editor;c.removeListener("scroll",this._uiBuffer.input);c.removeListener("resize",this._uiBuffer.input);a.removeListener("change",this._changeBuffer.input);a.removeListener("floatingSpaceLayout",this._layout);a.removeListener("blur",this._layout)},_layout:function(){function c(){a.setStyle("left",
z(r+h.width-l-v))}var a=this.element,g=this.editor,h=g.ui.contentsElement.getClientRect(),n=g.ui.contentsElement.getDocumentPosition(),k,b,d=a.getClientRect(),e,l=this._notificationWidth,v=this._notificationMargin;e=CKEDITOR.document.getWindow();var x=e.getScrollPosition(),t=e.getViewPaneSize(),q=CKEDITOR.document.getBody(),u=q.getDocumentPosition(),z=CKEDITOR.tools.cssLength;l&&v||(e=this.element.getChild(0),l=this._notificationWidth=e.getClientRect().width,v=this._notificationMargin=parseInt(e.getComputedStyle("margin-left"),
10)+parseInt(e.getComputedStyle("margin-right"),10));g.toolbar&&(k=g.ui.space(g.config.toolbarLocation),b=k.getClientRect());k&&k.isVisible()&&b.bottom>h.top&&b.bottom<h.bottom-d.height?a.setStyles({position:"fixed",top:z(b.bottom)}):0<h.top?a.setStyles({position:"absolute",top:z(n.y)}):n.y+h.height-d.height>x.y?a.setStyles({position:"fixed",top:0}):a.setStyles({position:"absolute",top:z(n.y+h.height-d.height)});var r="fixed"==a.getStyle("position")?h.left:"static"!=q.getComputedStyle("position")?
n.x-u.x:n.x;h.width<l+v?n.x+l+v>x.x+t.width?c():a.setStyle("left",z(r)):n.x+l+v>x.x+t.width?a.setStyle("left",z(r)):n.x+h.width/2+l/2+v>x.x+t.width?a.setStyle("left",z(r-n.x+x.x+t.width-l-v)):0>h.left+h.width-l-v?c():0>h.left+h.width/2-l/2?a.setStyle("left",z(r-n.x+x.x)):a.setStyle("left",z(r+h.width/2-l/2-v/2))}};CKEDITOR.plugins.notification=c}(),function(){var c='\x3ca id\x3d"{id}" class\x3d"cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+
' title\x3d"{title}" tabindex\x3d"-1" hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasArrow}" aria-disabled\x3d"{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(c+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(c+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var h="";CKEDITOR.env.ie&&(h='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');
var c=c+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+h+'CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{style}"')+'\x3e\x26nbsp;\x3c/span\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_button_label cke_button__{name}_label" aria-hidden\x3d"false"\x3e{label}\x3c/span\x3e\x3cspan id\x3d"{id}_description" class\x3d"cke_button_label" aria-hidden\x3d"false"\x3e{ariaShortcutSpace}{ariaShortcut}\x3c/span\x3e{arrowHtml}\x3c/a\x3e',
f=CKEDITOR.addTemplate("buttonArrow",'\x3cspan class\x3d"cke_button_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":"")+"\x3c/span\x3e"),a=CKEDITOR.addTemplate("button",c);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(c){c.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};
CKEDITOR.ui.button.prototype={render:function(c,h){function n(){var a=c.mode;a&&(a=this.modes[a]?void 0!==k[a]?k[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,a=c.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a,this.setState(a),this.refresh&&this.refresh())}var k=null,b=CKEDITOR.env,d=this._.id=CKEDITOR.tools.getNextId(),e="",l=this.command,v,x,t;this._.editor=c;var q={id:d,button:this,editor:c,focus:function(){CKEDITOR.document.getById(d).focus()},execute:function(){this.button.click(c)},
attach:function(a){this.button.attach(a)}},u=CKEDITOR.tools.addFunction(function(a){if(q.onkey)return a=new CKEDITOR.dom.event(a),!1!==q.onkey(q,a.getKeystroke())}),z=CKEDITOR.tools.addFunction(function(a){var b;q.onfocus&&(b=!1!==q.onfocus(q,new CKEDITOR.dom.event(a)));return b}),r=0;q.clickFn=v=CKEDITOR.tools.addFunction(function(){r&&(c.unlockSelection(1),r=0);q.execute();b.iOS&&c.focus()});this.modes?(k={},c.on("beforeModeUnload",function(){c.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(k[c.mode]=
this._.state)},this),c.on("activeFilterChange",n,this),c.on("mode",n,this),!this.readOnly&&c.on("readOnly",n,this)):l&&(l=c.getCommand(l))&&(l.on("state",function(){this.setState(l.state)},this),e+=l.state==CKEDITOR.TRISTATE_ON?"on":l.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");var w;if(this.directional)c.on("contentDirChanged",function(a){var b=CKEDITOR.document.getById(this._.id),d=b.getFirst();a=a.data;a!=c.lang.dir?b.addClass("cke_"+a):b.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",
CKEDITOR.skin.getIconStyle(w,"rtl"==a,this.icon,this.iconOffset))},this);l?(x=c.getCommandKeystroke(l))&&(t=CKEDITOR.tools.keystrokeToString(c.lang.common.keyboard,x)):e+="off";x=this.name||this.command;var p=null,y=this.icon;w=x;this.icon&&!/\./.test(this.icon)?(w=this.icon,y=null):(this.icon&&(p=this.icon),CKEDITOR.env.hidpi&&this.iconHiDpi&&(p=this.iconHiDpi));p?(CKEDITOR.skin.addIcon(p,p),y=null):p=w;e={id:d,name:x,iconName:w,label:this.label,cls:(this.hasArrow?"cke_button_expandable ":"")+(this.className||
""),state:e,ariaDisabled:"disabled"==e?"true":"false",title:this.title+(t?" ("+t.display+")":""),ariaShortcutSpace:t?"\x26nbsp;":"",ariaShortcut:t?c.lang.common.keyboardShortcut+" "+t.aria:"",titleJs:b.gecko&&!b.hc?"":(this.title||"").replace("'",""),hasArrow:"string"===typeof this.hasArrow&&this.hasArrow||(this.hasArrow?"true":"false"),keydownFn:u,focusFn:z,clickFn:v,style:CKEDITOR.skin.getIconStyle(p,"rtl"==c.lang.dir,y,this.iconOffset),arrowHtml:this.hasArrow?f.output():""};a.output(e,h);if(this.onRender)this.onRender();
return q},setState:function(a){if(this._.state==a)return!1;this._.state=a;var c=CKEDITOR.document.getById(this._.id);return c?(c.setState(a,"cke_button"),c.setAttribute("aria-disabled",a==CKEDITOR.TRISTATE_DISABLED),this.hasArrow?c.setAttribute("aria-expanded",a==CKEDITOR.TRISTATE_ON):a===CKEDITOR.TRISTATE_ON?c.setAttribute("aria-pressed",!0):c.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var c=this;
this.allowedContent||this.requiredContent||!this.command||(c=a.getCommand(this.command)||c);return this._.feature=c}};CKEDITOR.ui.prototype.addButton=function(a,c){this.add(a,CKEDITOR.UI_BUTTON,c)}}(),function(){function c(a){function c(){for(var b=f(),d=CKEDITOR.tools.clone(a.config.toolbarGroups)||h(a),e=0;e<d.length;e++){var m=d[e];if("/"!=m){"string"==typeof m&&(m=d[e]={name:m});var q,u=m.groups;if(u)for(var z=0;z<u.length;z++)q=u[z],(q=b[q])&&k(m,q);(q=b[m.name])&&k(m,q)}}return d}function f(){var b=
{},d,c,e;for(d in a.ui.items)c=a.ui.items[d],e=c.toolbar||"others",e=e.split(","),c=e[0],e=parseInt(e[1]||-1,10),b[c]||(b[c]=[]),b[c].push({name:d,order:e});for(c in b)b[c]=b[c].sort(function(a,b){return a.order==b.order?0:0>b.order?-1:0>a.order?1:a.order<b.order?-1:1});return b}function k(b,c){if(c.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var e;e=c.shift();)e="string"==typeof e?e:e.name,d&&-1!=CKEDITOR.tools.indexOf(d,e)||(e=a.ui.create(e))&&a.addFeature(e)&&b.items.push(e)}}
function b(a){var b=[],d,c,e;for(d=0;d<a.length;++d)c=a[d],e={},"/"==c?b.push(c):CKEDITOR.tools.isArray(c)?(k(e,CKEDITOR.tools.clone(c)),b.push(e)):c.items&&(k(e,CKEDITOR.tools.clone(c.items)),e.name=c.name,b.push(e));return b}var d=a.config.removeButtons,d=d&&d.split(","),e=a.config.toolbar;"string"==typeof e&&(e=a.config["toolbar_"+e]);return a.toolbar=e?b(e):c()}function h(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 f=function(){this.toolbars=[];this.focusCommandExecuted=!1};f.prototype.focus=function(){for(var a=0,c;c=this.toolbars[a++];)for(var f=0,k;k=c.items[f++];)if(k.focus){k.focus();
return}};var a={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){a.toolbox&&(a.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){a.toolbox.focus()},100):a.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(g){var h,n=function(a,b){var d,c="rtl"==g.lang.dir,f=g.config.toolbarGroupCycling,v=c?37:39,c=c?39:37,f=void 0===f||f;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!d||!d.items.length;)if(d=9==b?(d?d.next:a.toolbar.next)||
g.toolbox.toolbars[0]:(d?d.previous:a.toolbar.previous)||g.toolbox.toolbars[g.toolbox.toolbars.length-1],d.items.length)for(a=d.items[h?d.items.length-1:0];a&&!a.focus;)(a=h?a.previous:a.next)||(d=0);a&&a.focus();return!1;case v:d=a;do d=d.next,!d&&f&&(d=a.toolbar.items[0]);while(d&&!d.focus);d?d.focus():n(a,9);return!1;case 40:return a.button&&a.button.hasArrow?a.execute():n(a,40==b?v:c),!1;case c:case 38:d=a;do d=d.previous,!d&&f&&(d=a.toolbar.items[a.toolbar.items.length-1]);while(d&&!d.focus);
d?d.focus():(h=1,n(a,CKEDITOR.SHIFT+9),h=0);return!1;case 27:return g.focus(),!1;case 13:case 32:return a.execute(),!1}return!0};g.on("uiSpace",function(a){if(a.data.space==g.config.toolbarLocation){a.removeListener();g.toolbox=new f;var b=CKEDITOR.tools.getNextId(),d=['\x3cspan id\x3d"',b,'" class\x3d"cke_voice_label"\x3e',g.lang.toolbar.toolbars,"\x3c/span\x3e",'\x3cspan id\x3d"'+g.ui.spaceId("toolbox")+'" class\x3d"cke_toolbox" role\x3d"group" aria-labelledby\x3d"',b,'" onmousedown\x3d"return false;"\x3e'],
b=!1!==g.config.toolbarStartupExpanded,e,l;g.config.toolbarCanCollapse&&g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&d.push('\x3cspan class\x3d"cke_toolbox_main"'+(b?"\x3e":' style\x3d"display:none"\x3e'));for(var h=g.toolbox.toolbars,m=c(g),t=m.length,q=0;q<t;q++){var u,z=0,r,w=m[q],p="/"!==w&&("/"===m[q+1]||q==t-1),y;if(w)if(e&&(d.push("\x3c/span\x3e"),l=e=0),"/"===w)d.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 C=y[A],F;if(C){var K=
function(a){a=a.render(g,d);D=z.items.push(a)-1;0<D&&(a.previous=z.items[D-1],a.previous.next=a);a.toolbar=z;a.onkey=n;a.onfocus=function(){g.toolbox.focusCommandExecuted||g.focus()}};if(C.type==CKEDITOR.UI_SEPARATOR)l=e&&C;else{F=!1!==C.canGroup;if(!z){u=CKEDITOR.tools.getNextId();z={id:u,items:[]};r=w.name&&(g.lang.toolbar.toolbarGroups[w.name]||w.name);d.push('\x3cspan id\x3d"',u,'" class\x3d"cke_toolbar'+(p?' cke_toolbar_last"':'"'),r?' aria-labelledby\x3d"'+u+'_label"':"",' role\x3d"toolbar"\x3e');
r&&d.push('\x3cspan id\x3d"',u,'_label" class\x3d"cke_voice_label"\x3e',r,"\x3c/span\x3e");d.push('\x3cspan class\x3d"cke_toolbar_start"\x3e\x3c/span\x3e');var D=h.push(z)-1;0<D&&(z.previous=h[D-1],z.previous.next=z)}F?e||(d.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'),e=1):e&&(d.push("\x3c/span\x3e"),e=0);l&&(K(l),l=0);K(C)}}}e&&(d.push("\x3c/span\x3e"),l=e=0);z&&d.push('\x3cspan class\x3d"cke_toolbar_end"\x3e\x3c/span\x3e\x3c/span\x3e')}}g.config.toolbarCanCollapse&&d.push("\x3c/span\x3e");
if(g.config.toolbarCanCollapse&&g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var H=CKEDITOR.tools.addFunction(function(){g.execCommand("toolbarCollapse")});g.on("destroy",function(){CKEDITOR.tools.removeFunction(H)});g.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b=a.ui.space("toolbar_collapser"),d=b.getPrevious(),c=a.ui.space("contents"),e=d.getParent(),g=parseInt(c.$.style.height,10),f=e.$.offsetHeight,l=b.hasClass("cke_toolbox_collapser_min");l?(d.show(),b.removeClass("cke_toolbox_collapser_min"),
b.setAttribute("title",a.lang.toolbar.toolbarCollapse)):(d.hide(),b.addClass("cke_toolbox_collapser_min"),b.setAttribute("title",a.lang.toolbar.toolbarExpand));b.getFirst().setText(l?"▲":"◀");c.setStyle("height",g-(e.$.offsetHeight-f)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:c.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});g.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");d.push('\x3ca title\x3d"'+
(b?g.lang.toolbar.toolbarCollapse:g.lang.toolbar.toolbarExpand)+'" id\x3d"'+g.ui.spaceId("toolbar_collapser")+'" tabIndex\x3d"-1" class\x3d"cke_toolbox_collapser');b||d.push(" cke_toolbox_collapser_min");d.push('" onclick\x3d"CKEDITOR.tools.callFunction('+H+')"\x3e','\x3cspan class\x3d"cke_arrow"\x3e\x26#9650;\x3c/span\x3e',"\x3c/a\x3e")}d.push("\x3c/span\x3e");a.data.html+=d.join("")}});g.on("destroy",function(){if(this.toolbox){var a,b=0,d,c,g;for(a=this.toolbox.toolbars;b<a.length;b++)for(c=a[b].items,
d=0;d<c.length;d++)g=c[d],g.clickFn&&CKEDITOR.tools.removeFunction(g.clickFn),g.keyDownFn&&CKEDITOR.tools.removeFunction(g.keyDownFn)}});g.on("uiReady",function(){var a=g.ui.space("toolbox");a&&g.focusManager.add(a,1)});g.addCommand("toolbarFocus",a);g.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");g.ui.add("-",CKEDITOR.UI_SEPARATOR,{});g.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(a,b){b.push('\x3cspan class\x3d"cke_toolbar_separator" role\x3d"separator"\x3e\x3c/span\x3e');
return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=function(a,c,f){var k=h(this.editor),b=0===c,d={name:a};if(f){if(f=CKEDITOR.tools.search(k,function(a){return a.name==f})){!f.groups&&(f.groups=[]);if(c&&(c=CKEDITOR.tools.indexOf(f.groups,c),0<=c)){f.groups.splice(c+1,0,a);return}b?f.groups.splice(0,0,a):f.groups.push(a);return}c=null}c&&(c=CKEDITOR.tools.indexOf(k,function(a){return a.name==c}));b?k.splice(0,0,a):"number"==typeof c?k.splice(c+1,0,d):k.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",
CKEDITOR.config.toolbarLocation="top","use strict",function(){function c(a,b,d){b.type||(b.type="auto");if(d&&!1===a.fire("beforePaste",b)||!b.dataValue&&b.dataTransfer.isEmpty())return!1;b.dataValue||(b.dataValue="");if(CKEDITOR.env.gecko&&"drop"==b.method&&a.toolbox)a.once("afterPaste",function(){a.toolbox.focus()});return a.fire("paste",b)}function h(a){function b(){var d=a.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var c=function(b){a.getSelection().isCollapsed()||(a.readOnly&&
"cut"==b.name||F.initPasteDataTransfer(b,a),b.data.preventDefault())};d.on("copy",c);d.on("cut",c);d.on("cut",function(){a.readOnly||a.extractSelectedHtml()},null,null,999)}d.on(F.mainPasteEvent,function(a){"beforepaste"==F.mainPasteEvent&&K||y(a)});"beforepaste"==F.mainPasteEvent&&(d.on("paste",function(a){D||(f(),a.data.preventDefault(),y(a),h("paste"))}),d.on("contextmenu",k,null,null,0),d.on("beforepaste",function(a){!a.data||a.data.$.ctrlKey||a.data.$.shiftKey||k()},null,null,0));d.on("beforecut",
function(){!K&&m(a)});var g;d.attachListener(CKEDITOR.env.ie?d:a.document.getDocumentElement(),"mouseup",function(){g=setTimeout(A,0)});a.on("destroy",function(){clearTimeout(g)});d.on("keyup",A)}function d(b){return{type:b,canUndo:"cut"==b,startDisabled:!0,fakeKeystroke:"cut"==b?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){"cut"==this.type&&m();var b;var d=this.type;if(CKEDITOR.env.ie)b=h(d);else try{b=a.document.$.execCommand(d,!1,null)}catch(c){b=!1}b||a.showNotification(a.lang.clipboard[this.type+
"Error"]);return b}}}function g(){return{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(a,b){function d(b,f){f="undefined"!==typeof f?f:!0;b?(b.method="paste",b.dataTransfer||(b.dataTransfer=F.initPasteDataTransfer()),c(a,b,f)):g&&!a._.forcePasteDialog&&a.showNotification(k,"info",a.config.clipboard_notificationDuration);a._.forcePasteDialog=!1;a.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!b})}b="undefined"!==typeof b&&null!==b?b:{};var e=this,g="undefined"!==typeof b.notification?
b.notification:!0,f=b.type,l=CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,a.getCommandKeystroke(this)),k="string"===typeof g?g:a.lang.clipboard.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+l.aria+'"\x3e'+l.display+"\x3c/kbd\x3e"),l="string"===typeof b?b:b.dataValue;f&&!0!==a.config.forcePasteAsPlainText&&"allow-word"!==a.config.forcePasteAsPlainText?a._.nextPasteType=f:delete a._.nextPasteType;"string"===typeof l?d({dataValue:l}):a.getClipboardData(d)}}}function f(){D=1;setTimeout(function(){D=
0},100)}function k(){K=1;setTimeout(function(){K=0},10)}function h(b){var d=a.document,c=d.getBody(),g=!1,f=function(){g=!0};c.on(b,f);7<CKEDITOR.env.version?d.$.execCommand(b):d.$.selection.createRange().execCommand(b);c.removeListener(b,f);return g}function m(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),d,c,g;b.getType()==CKEDITOR.SELECTION_ELEMENT&&(d=b.getSelectedElement())&&(c=b.getRanges()[0],g=a.document.createText(""),g.insertBefore(d),c.setStartBefore(g),c.setEndAfter(d),
b.selectRanges([c]),setTimeout(function(){d.getParent()&&(g.remove(),b.selectElement(d))},0))}}function n(b,d){var c=a.document,g=a.editable(),f=function(a){a.cancel()},l;if(!c.getById("cke_pastebin")){var k=a.getSelection(),h=k.createBookmarks();CKEDITOR.env.ie&&k.root.fire("selectionchange");var m=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!g.is("body")||CKEDITOR.env.ie?"div":"body",c);m.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var v=0,c=c.getWindow();CKEDITOR.env.webkit?(g.append(m),
m.addClass("cke_editable"),g.is("body")||(v="static"!=g.getComputedStyle("position")?g:CKEDITOR.dom.element.get(g.$.offsetParent),v=v.getDocumentPosition().y)):g.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(m);m.setStyles({position:"absolute",top:c.getScrollPosition().y-v+10+"px",width:"1px",height:Math.max(1,c.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&m.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(v=m.getParent().isReadOnly())?
(m.setOpacity(0),m.setAttribute("contenteditable",!0)):m.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-10000px");a.on("selectionChange",f,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)l=g.once("blur",f,null,null,-100);v&&m.focus();v=new CKEDITOR.dom.range(m);v.selectNodeContents(m);var u=v.select();CKEDITOR.env.ie&&(l=g.once("blur",function(){a.lockSelection(u)}));var p=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=
p);l&&l.removeListener();CKEDITOR.env.ie&&g.focus();k.selectBookmarks(h);m.remove();var b;CKEDITOR.env.webkit&&(b=m.getFirst())&&b.is&&b.hasClass("Apple-style-span")&&(m=b);a.removeListener("selectionChange",f);d(m.getHtml())},0)}}function w(){if("paste"==F.mainPasteEvent)return a.fire("beforePaste",{type:"auto",method:"paste"}),!1;a.focus();f();var b=a.focusManager;b.lock();if(a.editable().fire(F.mainPasteEvent)&&!h("paste"))return b.unlock(),!1;b.unlock();return!0}function p(b){if("wysiwyg"==a.mode)switch(b.data.keyCode){case CKEDITOR.CTRL+
86:case CKEDITOR.SHIFT+45:b=a.editable();f();"paste"==F.mainPasteEvent&&b.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:a.fire("saveSnapshot"),setTimeout(function(){a.fire("saveSnapshot")},50)}}function y(b){var d={type:"auto",method:"paste",dataTransfer:F.initPasteDataTransfer(b)};d.dataTransfer.cacheData();var g=!1!==a.fire("beforePaste",d);g&&F.canClipboardApiBeTrusted(d.dataTransfer,a)?(b.data.preventDefault(),setTimeout(function(){c(a,d)},0)):n(b,function(b){d.dataValue=
b.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");g&&c(a,d)})}function A(){if("wysiwyg"==a.mode){var b=C("paste");a.getCommand("cut").setState(C("cut"));a.getCommand("copy").setState(C("copy"));a.getCommand("paste").setState(b);a.fire("pasteState",b)}}function C(b){var d=a.getSelection(),d=d&&d.getRanges()[0];if((a.readOnly||d&&d.checkReadOnly())&&b in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==b)return CKEDITOR.TRISTATE_OFF;b=a.getSelection();d=b.getRanges();return b.getType()==
CKEDITOR.SELECTION_NONE||1==d.length&&d[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var F=CKEDITOR.plugins.clipboard,K=0,D=0;(function(){a.on("key",p);a.on("contentDom",b);a.on("selectionChange",A);if(a.contextMenu){a.contextMenu.addListener(function(){return{cut:C("cut"),copy:C("copy"),paste:C("paste")}});var d=null;a.on("menuShow",function(){d&&(d.removeListener(),d=null);var b=a.contextMenu.findItemByCommandName("paste");b&&b.element&&(d=b.element.on("touchend",function(){a._.forcePasteDialog=
!0}))})}if(a.ui.addButton)a.once("instanceReady",function(){a._.pasteButtons&&CKEDITOR.tools.array.forEach(a._.pasteButtons,function(b){if(b=a.ui.get(b))if(b=CKEDITOR.document.getById(b._.id))b.on("touchend",function(){a._.forcePasteDialog=!0})})})})();(function(){function b(d,c,g,f,l){var k=a.lang.clipboard[c];a.addCommand(c,g);a.ui.addButton&&a.ui.addButton(d,{label:k,command:c,toolbar:"clipboard,"+f});a.addMenuItems&&a.addMenuItem(c,{label:k,command:c,group:"clipboard",order:l})}b("Cut","cut",
d("cut"),10,1);b("Copy","copy",d("copy"),20,4);b("Paste","paste",g(),30,8);a._.pasteButtons||(a._.pasteButtons=[]);a._.pasteButtons.push("Paste")})();a.getClipboardData=function(b,d){function c(a){a.removeListener();a.cancel();d(a.data)}function g(a){a.removeListener();a.cancel();d({type:l,dataValue:a.data.dataValue,dataTransfer:a.data.dataTransfer,method:"paste"})}var f=!1,l="auto";d||(d=b,b=null);a.on("beforePaste",function(a){a.removeListener();f=!0;l=a.data.type},null,null,1E3);a.on("paste",c,
null,null,0);!1===w()&&(a.removeListener("paste",c),a._.forcePasteDialog&&f&&a.fire("pasteDialog")?(a.on("pasteDialogCommit",g),a.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",g);a.data._.committed||d(null)})):d(null))}}function f(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!a.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";
return"htmlifiedtext"}function a(a,b){function d(a){return CKEDITOR.tools.repeat("\x3c/p\x3e\x3cp\x3e",~~(a/2))+(1==a%2?"\x3cbr\x3e":"")}b=b.replace(/(?!\u3000)\s+/g," ").replace(/> +</g,"\x3e\x3c").replace(/<br ?\/>/gi,"\x3cbr\x3e");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;CKEDITOR.env.webkit&&-1<b.indexOf("\x3cdiv\x3e")&&(b=b.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"\x3cbr\x3e").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"\x3cdiv\x3e\x3c/div\x3e"),
b.match(/<div>(<br>|)<\/div>/)&&(b="\x3cp\x3e"+b.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return d(a.split("\x3c/div\x3e\x3cdiv\x3e").length+1)})+"\x3c/p\x3e"),b=b.replace(/<\/div><div>/g,"\x3cbr\x3e"),b=b.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(b=b.replace(/^<br><br>$/,"\x3cbr\x3e")),-1<b.indexOf("\x3cbr\x3e\x3cbr\x3e")&&(b="\x3cp\x3e"+b.replace(/(<br>){2,}/g,function(a){return d(a.length/4)})+"\x3c/p\x3e"));return n(a,b)}function g(a){function b(){var a=
{},d;for(d in CKEDITOR.dtd)"$"!=d.charAt(0)&&"div"!=d&&"span"!=d&&(a[d]=1);return a}var d={};return{get:function(c){return"plain-text"==c?d.plainText||(d.plainText=new CKEDITOR.filter(a,"br")):"semantic-content"==c?((c=d.semanticContent)||(c=new CKEDITOR.filter(a,{}),c.allow({$1:{elements:b(),attributes:!0,styles:!1,classes:!1}}),c=d.semanticContent=c),c):c?new CKEDITOR.filter(a,c):null}}}function m(a,b,d){b=CKEDITOR.htmlParser.fragment.fromHtml(b);var c=new CKEDITOR.htmlParser.basicWriter;d.applyTo(b,
!0,!1,a.activeEnterMode);b.writeHtml(c);return c.getHtml()}function n(a,b){a.enterMode==CKEDITOR.ENTER_BR?b=b.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("\x3cbr\x3e",a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(b=b.replace(/<(\/)?p>/g,"\x3c$1div\x3e"));return b}function k(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function b(a){var b=CKEDITOR.plugins.clipboard;a.on("contentDom",function(){function d(b,g,f){g.select();c(a,{dataTransfer:f,
method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(b);f.sourceEditor.getSelection().selectRanges([b]);f.sourceEditor.fire("saveSnapshot")}function g(d,f){d.select();c(a,{dataTransfer:f,method:"drop"},1);b.resetDragDataTransfer()}function f(b,d,c){var g={$:b.data.$,target:b.data.getTarget()};d&&(g.dragRange=d);c&&(g.dropRange=c);!1===a.fire(b.name,g)&&b.data.preventDefault()}function k(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}
var h=a.editable(),m=CKEDITOR.plugins.clipboard.getDropTarget(a),n=a.ui.space("top"),w=a.ui.space("bottom");b.preventDefaultDropOnElement(n);b.preventDefaultDropOnElement(w);h.attachListener(m,"dragstart",f);h.attachListener(a,"dragstart",b.resetDragDataTransfer,b,null,1);h.attachListener(a,"dragstart",function(d){b.initDragDataTransfer(d,a)},null,null,2);h.attachListener(a,"dragstart",function(){var d=b.dragRange=a.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(b.dragStartContainerChildCount=
d?k(d.startContainer):null,b.dragEndContainerChildCount=d?k(d.endContainer):null)},null,null,100);h.attachListener(m,"dragend",f);h.attachListener(a,"dragend",b.initDragDataTransfer,b,null,1);h.attachListener(a,"dragend",b.resetDragDataTransfer,b,null,100);h.attachListener(m,"dragover",function(a){if(CKEDITOR.env.edge)a.data.preventDefault();else{var b=a.data.getTarget();b&&b.is&&b.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files")&&
a.data.preventDefault()}});h.attachListener(m,"drop",function(d){if(!d.data.$.defaultPrevented&&(d.data.preventDefault(),!a.readOnly)){var c=d.data.getTarget();if(!c.isReadOnly()||c.type==CKEDITOR.NODE_ELEMENT&&c.is("html")){var c=b.getRangeAtDropPosition(d,a),g=b.dragRange;c&&f(d,g,c)}}},null,null,9999);h.attachListener(a,"drop",b.initDragDataTransfer,b,null,1);h.attachListener(a,"drop",function(c){if(c=c.data){var f=c.dropRange,k=c.dragRange,h=c.dataTransfer;h.getTransferType(a)==CKEDITOR.DATA_TRANSFER_INTERNAL?
setTimeout(function(){b.internalDrop(k,f,h,a)},0):h.getTransferType(a)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?d(k,f,h):g(f,h)}},null,null,9999)})}var d;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(d){function c(a){if(!a||q===a.id)return!1;var b=a.getTypes(),b=1===b.length&&"Files"===b[0];a=1===a.getFilesCount();return b&&a}var k,n=g(d);d.config.forcePasteAsPlainText?k="plain-text":d.config.pasteFilter?k=d.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in
d.config||(k="semantic-content");d.pasteFilter=n.get(k);h(d);b(d);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));if(CKEDITOR.env.gecko){var t=["image/png","image/jpeg","image/gif"],q;d.on("paste",function(a){var b=a.data,g=b.dataTransfer;if(!b.dataValue&&"paste"==b.method&&c(g)&&(g=g.getFile(0),-1!=CKEDITOR.tools.indexOf(t,g.type))){var f=new FileReader;f.addEventListener("load",function(){a.data.dataValue='\x3cimg src\x3d"'+f.result+'" /\x3e';d.fire("paste",a.data)},!1);
f.addEventListener("abort",function(){d.fire("paste",a.data)},!1);f.addEventListener("error",function(){d.fire("paste",a.data)},!1);f.readAsDataURL(g);q=b.dataTransfer.id;a.stop()}},null,null,1)}d.on("paste",function(a){a.data.dataTransfer||(a.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!a.data.dataValue){var b=a.data.dataTransfer,c=b.getData("text/html");if(c)a.data.dataValue=c,a.data.type="html";else if(c=b.getData("text/plain"))a.data.dataValue=d.editable().transformPlainTextToHtml(c),
a.data.type="text"}},null,null,1);d.on("paste",function(a){var b=a.data.dataValue,d=CKEDITOR.dtd.$block;-1<b.indexOf("Apple-")&&(b=b.replace(/<span class="Apple-converted-space">&nbsp;<\/span>/gi," "),"html"!=a.data.type&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;")})),-1<b.indexOf('\x3cbr class\x3d"Apple-interchange-newline"\x3e')&&(a.data.startsWithEOL=1,a.data.preSniffing="html",b=b.replace(/<br class="Apple-interchange-newline">/,
"")),b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(b.match(/^<[^<]+cke_(editable|contents)/i)){var c,e,g=new CKEDITOR.dom.element("div");for(g.setHtml(b);1==g.getChildCount()&&(c=g.getFirst())&&c.type==CKEDITOR.NODE_ELEMENT&&(c.hasClass("cke_editable")||c.hasClass("cke_contents"));)g=e=c;e&&(b=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,c){return c.toLowerCase()in d?(a.data.preSniffing="html","\x3c"+c):b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,
function(b,c){return c in d?(a.data.endsWithEOL=1,"\x3c/"+c+"\x3e"):b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);d.on("paste",function(b){b=b.data;var c=d._.nextPasteType||b.type,g=b.dataValue,k,h=d.config.clipboard_defaultContentType||"html",l=b.dataTransfer.getTransferType(d)==CKEDITOR.DATA_TRANSFER_EXTERNAL,v=!0===d.config.forcePasteAsPlainText;k="html"==c||"html"==b.preSniffing?"html":f(g);delete d._.nextPasteType;"htmlifiedtext"==k&&(g=a(d.config,g));
if("text"==c&&"html"==k)g=m(d,g,n.get("plain-text"));else if(l&&d.pasteFilter&&!b.dontFilter||v)g=m(d,g,d.pasteFilter);b.startsWithEOL&&(g='\x3cbr data-cke-eol\x3d"1"\x3e'+g);b.endsWithEOL&&(g+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==c&&(c="html"==k||"html"==h?"html":"text");b.type=c;b.dataValue=g;delete b.preSniffing;delete b.startsWithEOL;delete b.endsWithEOL},null,null,6);d.on("paste",function(a){a=a.data;a.dataValue&&(d.insertHtml(a.dataValue,a.type,a.range),setTimeout(function(){d.fire("afterPaste")},
0))},null,null,1E3);d.on("pasteDialog",function(a){setTimeout(function(){d.openDialog("paste",a.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:CKEDITOR.env.ie&&16>CKEDITOR.env.version||CKEDITOR.env.iOS&&605>CKEDITOR.env.version?!1:!0,isCustomDataTypesSupported:!CKEDITOR.env.ie||16<=CKEDITOR.env.version,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",addPasteButton:function(a,b,d){a.ui.addButton&&
(a.ui.addButton(b,d),a._.pasteButtons||(a._.pasteButtons=[]),a._.pasteButtons.push(b))},canClipboardApiBeTrusted:function(a,b){return a.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!a.isEmpty()||CKEDITOR.env.gecko&&(a.getData("text/html")||a.getFilesCount())||CKEDITOR.env.safari&&603<=CKEDITOR.env.version&&!CKEDITOR.env.iOS||CKEDITOR.env.iOS&&605<=CKEDITOR.env.version||CKEDITOR.env.edge&&16<=CKEDITOR.env.version?!0:!1},getDropTarget:function(a){var b=a.editable();return CKEDITOR.env.ie&&
9>CKEDITOR.env.version||b.isInline()?b:a.document},fixSplitNodesAfterDrop:function(a,b,d,c){function g(a,d,c){var e=a;e.type==CKEDITOR.NODE_TEXT&&(e=a.getParent());if(e.equals(d)&&c!=d.getChildCount())return a=b.startContainer.getChild(b.startOffset-1),d=b.startContainer.getChild(b.startOffset),a&&a.type==CKEDITOR.NODE_TEXT&&d&&d.type==CKEDITOR.NODE_TEXT&&(c=a.getLength(),a.setText(a.getText()+d.getText()),d.remove(),b.setStart(a,c),b.collapse(!0)),!0}var f=b.startContainer;"number"==typeof c&&"number"==
typeof d&&f.type==CKEDITOR.NODE_ELEMENT&&(g(a.startContainer,f,d)||g(a.endContainer,f,c))},isDropRangeAffectedByDragRange:function(a,b){var d=b.startContainer,c=b.endOffset;return a.endContainer.equals(d)&&a.endOffset<=c||a.startContainer.getParent().equals(d)&&a.startContainer.getIndex()<c||a.endContainer.getParent().equals(d)&&a.endContainer.getIndex()<c?!0:!1},internalDrop:function(a,b,d,g){var f=CKEDITOR.plugins.clipboard,k=g.editable(),h,m;g.fire("saveSnapshot");g.fire("lockSnapshot",{dontUpdate:1});
CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(a,b,f.dragStartContainerChildCount,f.dragEndContainerChildCount);(m=this.isDropRangeAffectedByDragRange(a,b))||(h=a.createBookmark(!1));f=b.clone().createBookmark(!1);m&&(h=a.createBookmark(!1));a=h.startNode;b=h.endNode;m=f.startNode;b&&a.getPosition(m)&CKEDITOR.POSITION_PRECEDING&&b.getPosition(m)&CKEDITOR.POSITION_FOLLOWING&&m.insertBefore(a);a=g.createRange();a.moveToBookmark(h);k.extractHtmlFromRange(a,1);b=g.createRange();
f.startNode.getCommonAncestor(k)||(f=g.getSelection().createBookmarks()[0]);b.moveToBookmark(f);c(g,{dataTransfer:d,method:"drop",range:b},1);g.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var d=a.data.$,c=d.clientX,g=d.clientY,f=b.getSelection(!0).getRanges()[0],k=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint&&b.document.$.caretRangeFromPoint(c,g))d=b.document.$.caretRangeFromPoint(c,g),k.setStart(CKEDITOR.dom.node(d.startContainer),d.startOffset),
k.collapse(!0);else if(d.rangeParent)k.setStart(CKEDITOR.dom.node(d.rangeParent),d.rangeOffset),k.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&f&&b.editable().hasFocus)return f;if(document.body.createTextRange){b.focus();d=b.document.getBody().$.createTextRange();try{for(var h=!1,m=0;20>m&&!h;m++){if(!h)try{d.moveToPoint(c,g-m),h=!0}catch(n){}if(!h)try{d.moveToPoint(c,g+m),h=!0}catch(p){}}if(h){var y="cke-temp-"+(new Date).getTime();d.pasteHTML('\x3cspan id\x3d"'+y+'"\x3e​\x3c/span\x3e');
var A=b.document.getById(y);k.moveToPosition(A,CKEDITOR.POSITION_BEFORE_START);A.remove()}else{var C=b.document.$.elementFromPoint(c,g),F=new CKEDITOR.dom.element(C),K;if(F.equals(b.editable())||"html"==F.getName())return f&&f.startContainer&&!f.startContainer.equals(b.editable())?f:null;K=F.getClientRect();c<K.left?k.setStartAt(F,CKEDITOR.POSITION_AFTER_START):k.setStartAt(F,CKEDITOR.POSITION_BEFORE_END);k.collapse(!0)}}catch(D){return null}}else return null}return k},initDragDataTransfer:function(a,
b){var d=a.data.$?a.data.$.dataTransfer:null,c=new this.dataTransfer(d,b);"dragstart"===a.name&&c.storeId();d?this.dragData&&c.id==this.dragData.id?c=this.dragData:this.dragData=c:this.dragData?c=this.dragData:this.dragData=c;a.data.dataTransfer=c},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(a,b){if(this.isCustomCopyCutSupported){if(a&&a.data&&a.data.$){var d=a.data.$.clipboardData,c=new this.dataTransfer(d,b);"copy"!==a.name&&"cut"!==a.name||c.storeId();this.copyCutData&&
c.id==this.copyCutData.id?(c=this.copyCutData,c.$=d):this.copyCutData=c;return c}return new this.dataTransfer(null,b)}return new this.dataTransfer(CKEDITOR.env.edge&&a&&a.data.$&&a.data.$.clipboardData||null,b)},preventDefaultDropOnElement:function(a){a&&a.on("dragover",k)}};d=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a,b){a&&(this.$=a);this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/\s*\x3c!--StartFragment--\x3e|\x3c!--EndFragment--\x3e\s*/g,
data:{},files:[],nativeHtmlCache:"",normalizeType:function(a){a=a.toLowerCase();return"text"==a||"text/plain"==a?"Text":"url"==a?"URL":a}};this._.fallbackDataTransfer=new CKEDITOR.plugins.clipboard.fallbackDataTransfer(this);this.id=this.getData(d);this.id||(this.id="Text"==d?"":"cke-"+CKEDITOR.tools.getUniqueId());b&&(this.sourceEditor=b,this.setData("text/html",b.getSelectedHtml(1)),"Text"==d||this.getData("text/plain")||this.setData("text/plain",b.getSelection().getSelectedText()))};CKEDITOR.DATA_TRANSFER_INTERNAL=
1;CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2;CKEDITOR.DATA_TRANSFER_EXTERNAL=3;CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(a,b){a=this._.normalizeType(a);var d="text/html"==a&&b?this._.nativeHtmlCache:this._.data[a];if(void 0===d||null===d||""===d){if(this._.fallbackDataTransfer.isRequired())d=this._.fallbackDataTransfer.getData(a,b);else try{d=this.$.getData(a)||""}catch(c){d=""}"text/html"!=a||b||(d=this._stripHtml(d))}"Text"==a&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==
d.substring(0,7)&&(d="");if("string"===typeof d)var g=d.indexOf("\x3c/html\x3e"),d=-1!==g?d.substring(0,g+7):d;return d},setData:function(a,b){a=this._.normalizeType(a);"text/html"==a?(this._.data[a]=this._stripHtml(b),this._.nativeHtmlCache=b):this._.data[a]=b;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==a||"Text"==a)if("Text"==d&&"Text"==a&&(this.id=b),this._.fallbackDataTransfer.isRequired())this._.fallbackDataTransfer.setData(a,b);else try{this.$.setData(a,b)}catch(c){}},storeId:function(){"Text"!==
d&&this.setData(d,this.id)},getTransferType:function(a){return this.sourceEditor?this.sourceEditor==a?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function a(d){d=b._.normalizeType(d);var c=b.getData(d);"text/html"==d&&(b._.nativeHtmlCache=b.getData(d,!0),c=b._stripHtml(c));c&&(b._.data[d]=c)}if(this.$){var b=this,d,c;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;d<this.$.types.length;d++)a(this.$.types[d])}else a("Text"),
a("URL");c=this._getImageFromClipboard();if(this.$&&this.$.files||c){this._.files=[];if(this.$.files&&this.$.files.length)for(d=0;d<this.$.files.length;d++)this._.files.push(this.$.files[d]);0===this._.files.length&&c&&this._.files.push(c)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(a){return this._.files.length?this._.files[a]:this.$&&this.$.files&&this.$.files.length?
this.$.files[a]:0===a?this._getImageFromClipboard():void 0},isEmpty:function(){var a={},b;if(this.getFilesCount())return!1;CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(this._.data),function(b){a[b]=1});if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var c=0;c<this.$.types.length;c++)a[this.$.types[c]]=1}else a.Text=1,a.URL=1;"Text"!=d&&(a[d]=0);for(b in a)if(a[b]&&""!==this.getData(b))return!1;return!0},getTypes:function(){return this.$&&this.$.types?
[].slice.call(this.$.types):[]},_getImageFromClipboard:function(){var a;try{if(this.$&&this.$.items&&this.$.items[0]&&(a=this.$.items[0].getAsFile())&&a.type)return a}catch(b){}},_stripHtml:function(a){if(a&&a.length){a=a.replace(this._.metaRegExp,"");var b=this._.bodyRegExp.exec(a);b&&b.length&&(a=b[1],a=a.replace(this._.fragmentRegExp,""))}return a}};CKEDITOR.plugins.clipboard.fallbackDataTransfer=function(a){this._dataTransfer=a;this._customDataFallbackType="text/html"};CKEDITOR.plugins.clipboard.fallbackDataTransfer._isCustomMimeTypeSupported=
null;CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes=[];CKEDITOR.plugins.clipboard.fallbackDataTransfer.prototype={isRequired:function(){var a=CKEDITOR.plugins.clipboard.fallbackDataTransfer,b=this._dataTransfer.$;if(null===a._isCustomMimeTypeSupported)if(b){a._isCustomMimeTypeSupported=!1;if(CKEDITOR.env.edge&&17<=CKEDITOR.env.version)return!0;try{b.setData("cke/mimetypetest","cke test value"),a._isCustomMimeTypeSupported="cke test value"===b.getData("cke/mimetypetest"),b.clearData("cke/mimetypetest")}catch(d){}}else return!1;
return!a._isCustomMimeTypeSupported},getData:function(a,b){var d=this._getData(this._customDataFallbackType,!0);if(b)return d;var d=this._extractDataComment(d),c=null,c=a===this._customDataFallbackType?d.content:d.data&&d.data[a]?d.data[a]:this._getData(a,!0);return null!==c?c:""},setData:function(a,b){var d=a===this._customDataFallbackType;d&&(b=this._applyDataComment(b,this._getFallbackTypeData()));var c=b,g=this._dataTransfer.$;try{g.setData(a,c),d&&(this._dataTransfer._.nativeHtmlCache=c)}catch(f){if(this._isUnsupportedMimeTypeError(f)){d=
CKEDITOR.plugins.clipboard.fallbackDataTransfer;-1===CKEDITOR.tools.indexOf(d._customTypes,a)&&d._customTypes.push(a);var d=this._getFallbackTypeContent(),k=this._getFallbackTypeData();k[a]=c;try{c=this._applyDataComment(d,k),g.setData(this._customDataFallbackType,c),this._dataTransfer._.nativeHtmlCache=c}catch(h){c=""}}}return c},_getData:function(a,b){var d=this._dataTransfer._.data;if(!b&&d[a])return d[a];try{return this._dataTransfer.$.getData(a)}catch(c){return null}},_getFallbackTypeContent:function(){var a=
this._dataTransfer._.data[this._customDataFallbackType];a||(a=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).content);return a},_getFallbackTypeData:function(){var a=CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes,b=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).data||{},d=this._dataTransfer._.data;CKEDITOR.tools.array.forEach(a,function(a){void 0!==d[a]?b[a]=d[a]:void 0!==b[a]&&(b[a]=b[a])},this);return b},_isUnsupportedMimeTypeError:function(a){return a.message&&
-1!==a.message.search(/element not found/gi)},_extractDataComment:function(a){var b={data:null,content:a||""};if(a&&16<a.length){var d;(d=/\x3c!--cke-data:(.*?)--\x3e/g.exec(a))&&d[1]&&(b.data=JSON.parse(decodeURIComponent(d[1])),b.content=a.replace(d[0],""))}return b},_applyDataComment:function(a,b){var d="";b&&CKEDITOR.tools.object.keys(b).length&&(d="\x3c!--cke-data:"+encodeURIComponent(JSON.stringify(b))+"--\x3e");return d+(a&&a.length?a:"")}}}(),CKEDITOR.config.clipboard_notificationDuration=
1E4,CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function c(c){var f=this._;f.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(c),f.on?f.panel.hide():f.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(h){var f=h.panel||{};delete h.panel;this.base(h);this.document=f.parent&&f.parent.getDocument()||CKEDITOR.document;f.block={attributes:f.attributes};f.toolbarRelated=!0;
this.hasArrow="listbox";this.click=c;this._={panelDefinition:f}},statics:{handler:{create:function(c){return new CKEDITOR.ui.panelButton(c)}}},proto:{createPanel:function(c){var f=this._;if(!f.panel){var a=this._.panelDefinition,g=this._.panelDefinition.block,m=a.parent||CKEDITOR.document.getBody(),n=this._.panel=new CKEDITOR.ui.floatPanel(c,m,a),a=n.addBlock(f.id,g),k=this,b=c.getCommand(this.command);n.onShow=function(){k.className&&this.element.addClass(k.className+"_panel");k.setState(CKEDITOR.TRISTATE_ON);
f.on=1;k.editorFocus&&c.focus();if(k.onOpen)k.onOpen()};n.onHide=function(a){k.className&&this.element.getFirst().removeClass(k.className+"_panel");!k.modes&&b?k.setStateFromCommand(b):k.setState(k.modes&&k.modes[c.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);f.on=0;if(!a&&k.onClose)k.onClose()};n.onEscape=function(){n.hide(1);k.document.getById(f.id).focus()};if(this.onBlock)this.onBlock(n,a);a.onHide=function(){f.on=0;!k.modes&&k.command?k.setStateFromCommand(b):k.setState(CKEDITOR.TRISTATE_OFF)}}},
setStateFromCommand:function(c){this.setState(c.state)}}})},beforeInit:function(c){c.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,c){c&&CKEDITOR.tools.extend(this,c);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 c=CKEDITOR.addTemplate("panel",'\x3cdiv lang\x3d"{langCode}" id\x3d"{id}" dir\x3d{dir} class\x3d"cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style\x3d"z-index:{z-index}" role\x3d"presentation"\x3e{frame}\x3c/div\x3e'),h=CKEDITOR.addTemplate("panel-frame",'\x3ciframe id\x3d"{id}" class\x3d"cke_panel_frame" role\x3d"presentation" frameborder\x3d"0" src\x3d"{src}"\x3e\x3c/iframe\x3e'),
f=CKEDITOR.addTemplate("panel-frame-inner",'\x3c!DOCTYPE html\x3e\x3chtml class\x3d"cke_panel_container {env}" dir\x3d"{dir}" lang\x3d"{langCode}"\x3e\x3chead\x3e{css}\x3c/head\x3e\x3cbody class\x3d"cke_{dir}" style\x3d"margin:0;padding:0" onload\x3d"{onload}"\x3e\x3c/body\x3e\x3c/html\x3e');CKEDITOR.ui.panel.prototype={render:function(a,g){var m={editorId:a.id,id:this.id,langCode:a.langCode,dir:a.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":a.config.baseFloatZIndex+1};
this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),b=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&b.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});b=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this));a.write(f.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+
b+");"},m)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),c=this.document.getById(this.id).getAttribute("dir");if("input"!==a.data.getTarget().getName()||37!==b&&39!==b)this._.onKeyDown&&!1===this._.onKeyDown(b)?"input"===a.data.getTarget().getName()&&32===b||a.data.preventDefault():(27==b||b==("rtl"==c?39:37))&&this.onEscape&&!1===this.onEscape(b)&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(b)}else a=
this.document.getById(this.id);this._.holder=a}return a};if(this.isFramed){var n=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=h.output({id:this.id+"_frame",src:n})}n=c.output(m);g&&g.push(n);return n},addBlock:function(a,c){c=this._.blocks[a]=c instanceof CKEDITOR.ui.panel.block?c:new CKEDITOR.ui.panel.block(this.getHolderElement(),c);
this._.currentBlock||this.showBlock(a);return c},getBlock:function(a){return this._.blocks[a]},showBlock:function(a){a=this._.blocks[a];var c=this._.currentBlock,f=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");c&&c.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",f);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,
c){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));c&&CKEDITOR.tools.extend(this,c);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 c=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"none"==a.getStyle("display")},f=this._.getItems(),h,k,b=f.count()-1;0<=b;b--)if(h=f.getItem(b),h.getAscendant(c)||(k=h,this._.focusIndex=b),"true"==h.getAttribute("aria-selected")){k=h;this._.focusIndex=b;break}k&&(a&&a(),CKEDITOR.env.webkit&&k.getDocument().getWindow().focus(),k.focus(),this.onMark&&this.onMark(k))},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,c){var f=this.keys[a];switch(f){case "next":for(var h=this._.focusIndex,f=this._.getItems(),k;k=f.getItem(++h);)if(k.getAttribute("_cke_focus")&&k.$.offsetWidth){this._.focusIndex=h;k.focus(!0);break}return k||c?!1:(this._.focusIndex=-1,this.onKeyDown(a,1));case "prev":h=this._.focusIndex;for(f=this._.getItems();0<h&&(k=
f.getItem(--h));){if(k.getAttribute("_cke_focus")&&k.$.offsetWidth){this._.focusIndex=h;k.focus(!0);break}k=null}return k||c?!1:(this._.focusIndex=f.count(),this.onKeyDown(a,1));case "click":case "mouseup":return h=this._.focusIndex,(k=0<=h&&this._.getItems().getItem(h))&&k.fireEventHandler(f,{button:CKEDITOR.tools.normalizeMouseButton(CKEDITOR.MOUSE_BUTTON_LEFT,!0)}),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function c(c,a,g,m,n){n=CKEDITOR.tools.genKey(a.getUniqueId(),
g.getUniqueId(),c.lang.dir,c.uiColor||"",m.css||"",n||"");var k=h[n];k||(k=h[n]=new CKEDITOR.ui.panel(a,m),k.element=g.append(CKEDITOR.dom.element.createFromHtml(k.render(c),a)),k.element.setStyles({display:"none",position:"absolute"}));return k}var h={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(f,a,g,h){function n(){e.hide()}g.forceIFrame=1;g.toolbarRelated&&f.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(a=CKEDITOR.document.getById("cke_"+f.name));var k=a.getDocument();h=c(f,k,
a,g,h||0);var b=h.element,d=b.getFirst(),e=this;b.disableContextMenu();this.element=b;this._={editor:f,panel:h,parentElement:a,definition:g,document:k,iframe:d,children:[],dir:f.lang.dir,showBlockParams:null,markFirst:void 0!==g.markFirst?g.markFirst:!0};f.on("mode",n);f.on("resize",n);k.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(c,a){return this._.panel.addBlock(c,a)},addListBlock:function(c,a){return this._.panel.addListBlock(c,a)},getBlock:function(c){return this._.panel.getBlock(c)},
showBlock:function(c,a,g,h,n,k){var b=this._.panel,d=b.showBlock(c);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(!1);var e=this._.editor.editable();this._.returnFocus=e.hasFocus?e:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var l=this.element,e=this._.iframe,e=CKEDITOR.env.ie&&!CKEDITOR.env.edge?e:new CKEDITOR.dom.window(e.$.contentWindow),v=l.getDocument(),x=this._.parentElement.getPositionedAncestor(),t=a.getDocumentPosition(v),v=x?x.getDocumentPosition(v):
{x:0,y:0},q="rtl"==this._.dir,u=t.x+(h||0)-v.x,z=t.y+(n||0)-v.y;!q||1!=g&&4!=g?q||2!=g&&3!=g||(u+=a.$.offsetWidth-1):u+=a.$.offsetWidth;if(3==g||4==g)z+=a.$.offsetHeight-1;this._.panel._.offsetParentId=a.getId();l.setStyles({top:z+"px",left:0,display:""});l.setOpacity(0);l.getFirst().removeStyle("width");this._.editor.focusManager.add(e);this._.blurSet||(CKEDITOR.event.useCapture=!0,e.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),e.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(e.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),e.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1);b.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=l;a.removeStyle("width");if(d.autoSize){var c=d.element.getDocument(),c=(CKEDITOR.env.webkit||CKEDITOR.env.edge?d.element:c.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<c&&(c+=(a.$.offsetWidth||0)-(a.$.clientWidth||0)+3);a.setStyle("width",c+10+"px");c=d.element.$.scrollHeight;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<c&&(c+=(a.$.offsetHeight||0)-(a.$.clientHeight||
0)+3);a.setStyle("height",c+"px");b._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");q&&(u-=l.$.offsetWidth);l.setStyle("left",u+"px");var c=b.element.getWindow(),a=l.$.getBoundingClientRect(),c=c.getViewPaneSize(),e=a.width||a.right-a.left,g=a.height||a.bottom-a.top,f=q?a.right:c.width-a.left,h=q?c.width-a.right:a.left;q?f<e&&(u=h>e?u+e:c.width>e?u-a.left:u-a.right+c.width):f<e&&(u=h>e?u-e:c.width>e?u-a.right+c.width:u-a.left);e=a.top;c.height-
a.top<g&&(z=e>g?z-g:c.height>g?z-a.bottom+c.height:z-a.top);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&((c=a=l.$.offsetParent&&new CKEDITOR.dom.element(l.$.offsetParent))&&"html"==c.getName()&&(c=c.getDocument().getBody()),c&&"rtl"==c.getComputedStyle("direction")&&(u=CKEDITOR.env.ie8Compat?u-2*l.getDocument().getDocumentElement().$.scrollLeft:u-(a.$.scrollWidth-a.$.clientWidth)));var a=l.getFirst(),m;(m=a.getCustomData("activePanel"))&&m.onHide&&m.onHide.call(this,1);a.setCustomData("activePanel",this);
l.setStyles({top:z+"px",left:u+"px"});l.setOpacity(1);k&&k()},this);b.isLoaded?a():b.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();d.element.focus();CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=a);this.allowBlur(!0);this._.markFirst&&(CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(function(){d.markFirstDisplayed?d.markFirstDisplayed():d._.markFirstDisplayed()},0):d.markFirstDisplayed?d.markFirstDisplayed():
d._.markFirstDisplayed());this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},reposition:function(){var c=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,c))},focus:function(){if(CKEDITOR.env.webkit){var c=CKEDITOR.document.getActive();c&&!c.equals(this._.iframe)&&c.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var c=
this._.iframe.getFrameDocument().getActive();c&&c.is("a")&&(this._.lastFocused=c)},hide:function(c){if(this.visible&&(!this.onHide||!0!==this.onHide.call(this))){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(c=c&&this._.returnFocus)CKEDITOR.env.webkit&&c.type&&c.getWindow().$.focus(),c.focus();delete this._.lastFocused;this._.showBlockParams=
null;this._.editor.fire("panelHide",this)}},allowBlur:function(c){var a=this._.panel;void 0!==c&&(a.allowBlur=c);return a.allowBlur},showAsChild:function(c,a,g,h,n,k){if(this._.activeChild!=c||c._.panel._.offsetParentId!=g.getId())this.hideChild(),c.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=c,this._.focused=!1,c.showBlock(a,g,h,n,k),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){c.element.getChild(0).$.style.cssText+=
""},100)},hideChild:function(c){var a=this._.activeChild;a&&(delete a.onHide,delete this._.activeChild,a.hide(),c&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var c=CKEDITOR.tools.isEmpty(CKEDITOR.instances),a;for(a in h){var g=h[a];c?g.destroy():g.element.hide()}c&&(h={})})}(),function(){var c,h,f;CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(a){function g(e){function g(){var b=a.config["colorButton_"+u+"Style"];b.childRule="back"==u?function(a){return n(a)}:
function(a){return!(a.is("a")||a.getElementsByTag("a").count())||n(a)};return b}function l(b,d,c){var e={};b&&(e.color=b);d&&(e.colorName=d);d=!CKEDITOR.tools.isEmpty(e)&&new CKEDITOR.style(g(),e);a.execCommand(w,{newStyle:d});if(b&&c)for(c.addColor(b.substr(1).toUpperCase()),b=D.element.find("[role\x3doption]").toArray(),c=0;c<b.length;c++)b[c].setAttributes({"aria-posinset":c+1,"aria-setsize":b.length})}var q=e.name,u=e.type,z=e.title,r=e.order,w=e.commandName;e=e.contentTransformations||{};var p=
new CKEDITOR.style(b["colorButton_"+u+"Style"]),y=CKEDITOR.tools.getNextId()+"_colorBox",A={type:u},C=new CKEDITOR.style(b["colorButton_"+u+"Style"],{color:"inherit"}),F=function(){return CKEDITOR.tools.addFunction(function(b,d,c){a.focus();a.fire("saveSnapshot");"?"==b?a.getColorFromDialog(function(a){a&&l(a,d,K)},null,A):l(b&&"#"+b,d,K);c&&(c.setAttribute("cke_colorlast",!0),a.once("selectionChange",function(){c.removeAttribute("cke_colorlast")}))})}(),K=f.getRowLimit(a)?new f(a,"back"==u?"background-color":
"color",F):void 0,D;a.addCommand(w,{contextSensitive:!0,exec:function(a,b){if(!a.readOnly){var d=b.newStyle;a.removeStyle(C);a.focus();d&&a.applyStyle(d);a.fire("saveSnapshot")}},refresh:function(a,b){C.checkApplicable(b,a,a.activeFilter)?C.checkActive(b,a)?this.setState(CKEDITOR.TRISTATE_ON):this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}});a.ui.add(q,CKEDITOR.UI_PANELBUTTON,{label:z,title:z,command:w,editorFocus:0,toolbar:"colors,"+r,allowedContent:p,requiredContent:p,
contentTransformations:e,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":d.panelTitle}},select:function(a){var d=b.colorButton_colors.split(",");a=CKEDITOR.tools.array.find(d,a);a=c.normalizeColor(a);k(D,a);D._.markFirstDisplayed()},onBlock:function(b,d){D=d;d.autoSize=!0;d.element.addClass("cke_colorblock");d.element.setHtml(h(y,F,K?K.getLength():0));d.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var c=d.keys,e="rtl"==
a.lang.dir;c[e?37:39]="next";c[40]="next";c[9]="next";c[e?39:37]="prev";c[38]="prev";c[CKEDITOR.SHIFT+9]="prev";c[32]="click";K&&K.setContainer(d.element.findOne(".cke_colorhistory"))},onOpen:function(){var d=a.getSelection(),e=d&&d.getStartElement(),g=a.elementPath(e),f="back"==u?"background-color":"color";if(g){e=g.block||g.blockLimit||a.document.getBody();do g=e&&e.getComputedStyle(f)||"transparent";while("back"==u&&"transparent"==g&&e&&(e=e.getParent()));g&&"transparent"!=g||(g="#ffffff");b.colorButton_enableAutomatic&&
D.element.findOne("#"+y).setStyle("background-color",g);if(e=d&&d.getRanges()[0]){for(var d=new CKEDITOR.dom.walker(e),h=e.collapsed?e.startContainer:d.next(),e="";h;){h.type!==CKEDITOR.NODE_ELEMENT&&(h=h.getParent());h=c.normalizeColor(h.getComputedStyle(f));e=e||h;if(e!==h){e="";break}h=d.next()}"transparent"==e&&(e="");"fore"==u&&(A.automaticTextColor="#"+c.normalizeColor(g));A.selectionColor=e?"#"+e:"";k(D,e)}return g}}})}function h(e,g,k){var l=[],m=b.colorButton_colors.split(","),n=a.plugins.colordialog&&
b.colorButton_enableMore;k=m.length+k+(n?1:0);var r=1;b.colorButton_enableAutomatic&&(k+=1,r+=1,l.push('\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue',' title\x3d"',d.auto,'"',' draggable\x3d"false"',' ondragstart\x3d"return false;"',' onclick\x3d"CKEDITOR.tools.callFunction(',g,',null);return false;"'," href\x3d\"javascript:void('",d.auto,"')\"",' role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"',k,'"\x3e','\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e',
"\x3ctr\x3e",'\x3ctd colspan\x3d"',a.config.colorButton_colorsPerRow,'" align\x3d"center"\x3e','\x3cspan class\x3d"cke_colorbox" id\x3d"',e,'"\x3e\x3c/span\x3e',d.auto,"\x3c/td\x3e","\x3c/tr\x3e","\x3c/table\x3e","\x3c/a\x3e"));l.push('\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctbody\x3e');for(e=0;e<m.length;e++){0===e%a.config.colorButton_colorsPerRow&&l.push("\x3c/tr\x3e\x3ctr\x3e");var w=m[e].split("/"),p=w[0],w=new c(a,{color:w[1]||p,label:w[1]?p:
void 0},g);w.setPositionIndex(r+e,k);l.push(w.getHtml())}f.getRowLimit(a)&&f.renderContainer(l,a);n&&l.push("\x3c/tr\x3e","\x3ctr\x3e",'\x3ctd colspan\x3d"',a.config.colorButton_colorsPerRow,'" align\x3d"center"\x3e','\x3ca class\x3d"cke_colormore" _cke_focus\x3d1 hidefocus\x3dtrue',' title\x3d"',d.more,'"',' draggable\x3d"false"',' ondragstart\x3d"return false;"',' onclick\x3d"CKEDITOR.tools.callFunction(',g,",'?');return false;\""," href\x3d\"javascript:void('",d.more,"')\"",' role\x3d"option" aria-posinset\x3d"',
k,'" aria-setsize\x3d"',k,'"\x3e',d.more,"\x3c/a\x3e","\x3c/td\x3e");l.push("\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e");return l.join("")}function n(a){return"false"==a.getAttribute("contentEditable")||a.getAttribute("data-nostyle")}function k(a,b){var d=a._.getItems(),e=a.element.findOne("[aria-selected]"),g=a.element.findOne("[cke_colorlast]");e&&e.removeAttribute("aria-selected");if(g)g.setAttribute("aria-selected",!0);else for(e=0;e<d.count();e++)if(g=d.getItem(e),b&&b==c.normalizeColor(g.getAttribute("data-value"))){g.setAttribute("aria-selected",
!0);break}}var b=a.config,d=a.lang.colorbutton;if(!CKEDITOR.env.hc){g({name:"TextColor",type:"fore",commandName:"textColor",title:d.textColorTitle,order:10,contentTransformations:[[{element:"font",check:"span{color}",left:function(a){return!!a.attributes.color},right:function(a){a.name="span";a.attributes.color&&(a.styles.color=a.attributes.color);delete a.attributes.color}}]]});var e,l=a.config.colorButton_normalizeBackground;if(void 0===l||l)e=[[{element:"span",left:function(a){var b=CKEDITOR.tools;
if("span"!=a.name||!a.styles||!a.styles.background)return!1;a=b.style.parse.background(a.styles.background);return a.color&&1===b.object.keys(a).length},right:function(b){var d=(new CKEDITOR.style(a.config.colorButton_backStyle,{color:b.styles.background})).getDefinition();b.name=d.element;b.styles=d.styles;b.attributes=d.attributes||{};return b}}]];g({name:"BGColor",type:"back",commandName:"bgColor",title:d.bgColorTitle,order:20,contentTransformations:e})}}});c=CKEDITOR.tools.createClass({$:function(a,
g,f){this.$=new CKEDITOR.dom.element("td");this.color=CKEDITOR.tools._isValidColorFormat(g.color)?g.color:"";this.clickFn=f;this.label=g.label||c.colorNames(a)[this.color]||this.color;this.setHtml()},statics:{colorNames:function(a){return a.lang.colorbutton.colors},normalizeColor:function(a){var c=/^(rgb|hsl)a\(/g.test(a),f=/^rgba\((\s*0\s*,?){4}\)$/g.test(a);return c&&!f?(a=new CKEDITOR.tools.color(a),CKEDITOR.tools.normalizeHex(a.getHex()||"").replace(/#/g,"")):CKEDITOR.tools.normalizeHex("#"+CKEDITOR.tools.convertRgbToHex(a||
"")).replace(/#/g,"")}},proto:{getElement:function(){return this.$},getHtml:function(){return this.getElement().getOuterHtml()},setHtml:function(){this.getElement().setHtml('\x3ca class\x3d"cke_colorbox" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"'+this.label+'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction('+this.clickFn+",'"+this.color+"','"+this.label+"', this); return false;\" href\x3d\"javascript:void('"+this.color+'\')" data-value\x3d"'+this.color+
'" role\x3d"option"\x3e\x3cspan class\x3d"cke_colorbox" style\x3d"background-color:#'+this.color+'"\x3e\x3c/span\x3e\x3c/a\x3e')},setPositionIndex:function(a,c){this.getElement().getChild(0).setAttributes({"aria-posinset":a,"aria-setsize":c})}}});h=CKEDITOR.tools.createClass({$:function(){this.$=new CKEDITOR.dom.element("tr");this.$.addClass("cke_colorhistory_row");this.boxes=[]},proto:{getElement:function(){return this.$},removeLastColor:function(){this.getElement().getLast().remove();return this.boxes.pop()},
addNewColor:function(a){this.boxes.unshift(a);this.getElement().append(a.getElement(),!0)},extractColorBox:function(a){var c=CKEDITOR.tools.getIndex(this.boxes,function(c){return c.color===a});if(0>c)return null;this.boxes[c].getElement().remove();return this.boxes.splice(c,1)[0]}}});f=CKEDITOR.tools.createClass({$:function(a,c,f){this.editor=a;this.cssProperty=c;this.clickFn=f;this.rows=[];this._.addNewRow();if(this.editor.config.colorButton_renderContentColors)this.editor.once("instanceReady",function(){this.renderContentColors()},
this)},statics:{renderContainer:function(a,c){a.push('\x3c/tbody\x3e\x3ctbody class\x3d"cke_colorhistory" style\x3d"display:none;"\x3e',"\x3ctr\x3e",'\x3ctd colspan\x3d"',c.config.colorButton_colorsPerRow,'" align\x3d"center"\x3e',"\x3cspan\x3e\x3chr\x3e\x3c/span\x3e","\x3c/td\x3e","\x3c/tr\x3e","\x3c/tbody\x3e\x3ctbody\x3e")},getRowLimit:function(a){return a.config.colorButton_historyRowLimit},getCapacity:function(a){return f.getRowLimit(a)*a.config.colorButton_colorsPerRow},colorList:CKEDITOR.tools.style.parse._colors},
_:{countColors:function(){var a=CKEDITOR.tools.getStyledSpans(this.cssProperty,this.editor.editable());return CKEDITOR.tools.array.reduce(a,function(a,c){var h=this._.getHexCode(c,this.cssProperty,f.colorList);a[h]=a[h]||0;a[h]+=1;return a},{},this)},getHexCode:function(a,g,f){var h=a.getStyle(g);return h in f?f[h].substr(1):c.normalizeColor(a.getComputedStyle(g)).toUpperCase()},sortByOccurrencesAscending:function(a,c){var f=[],h;for(h in a){var k={};k[c]=h;k.frequency=a[h];f.push(k)}f.sort(function(a,
d){return d.frequency-a.frequency});this._.trimToCapacity(f);return f.reverse()},trimToCapacity:function(a){a.splice(f.getCapacity(this.editor))},addColors:function(a){CKEDITOR.tools.array.forEach(a,function(a){this.addColor(a.colorCode)},this)},extractColorBox:function(a){for(var c=0;c<this.rows.length;c++){var f=this.rows[c].extractColorBox(a);if(f)return f}return null},moveToBeginning:function(a){this.rows[0].addNewColor(a)},createAtBeginning:function(a){this._.moveToBeginning(new c(this.editor,
{color:a},this.clickFn))},addNewRow:function(){this.rows.push(new h);this.container&&this.container.append(this.rows[this.rows.length-1].getElement())},alignRows:function(){for(var a=0;a<f.getRowLimit(this.editor)&&!(this.rows[a].boxes.length<=this.editor.config.colorButton_colorsPerRow);a++)this.rows[a+1]?this._.moveLastBoxToNextRow(a):a<f.getRowLimit(this.editor)-1?(this._.addNewRow(),this._.moveLastBoxToNextRow(a)):this.rows[a].removeLastColor()},moveLastBoxToNextRow:function(a){this.rows[a+1].addNewColor(this.rows[a].removeLastColor())},
refreshPositions:function(){var a=this._.countPanelElements(),c=this._.calculateFirstPosition(a);CKEDITOR.tools.array.forEach(this.rows,function(f){CKEDITOR.tools.array.forEach(f.boxes,function(f){f.setPositionIndex(c,a);c+=1})})},countPanelElements:function(){var a=this.editor.config.colorButton_colors.split(",").length+this.getLength();this.editor.plugins.colordialog&&this.editor.config.colorButton_enableMore&&(a+=1);this.editor.config.colorButton_enableAutomatic&&(a+=1);return a},calculateFirstPosition:function(a){return this.editor.plugins.colordialog&&
this.editor.config.colorButton_enableMore?a-this.getLength():a-this.getLength()+1},attachRows:function(){CKEDITOR.tools.array.forEach(this.rows,function(a){this.container.append(a.getElement())},this)}},proto:{setContainer:function(a){this.container=a;this._.attachRows();this.getLength()&&this.show()},show:function(){this.container&&this.container.show()},renderContentColors:function(){var a=this._.countColors();CKEDITOR.tools.isEmpty(a)||(a=this._.sortByOccurrencesAscending(a,"colorCode"),this._.addColors(a),
this._.refreshPositions())},addColor:function(a){var c=this._.extractColorBox(a);this.container&&!this.container.isVisible()&&this.show();c?this._.moveToBeginning(c):this._.createAtBeginning(a);this._.alignRows()},getLength:function(){return CKEDITOR.tools.array.reduce(this.rows,function(a,c){return a+c.boxes.length},0)}}})}(),CKEDITOR.config.colorButton_enableMore=!0,CKEDITOR.config.colorButton_colors="1ABC9C,2ECC71,3498DB,9B59B6,4E5F70,F1C40F,16A085,27AE60,2980B9,8E44AD,2C3E50,F39C12,E67E22,E74C3C,ECF0F1,95A5A6,DDD,FFF,D35400,C0392B,BDC3C7,7F8C8D,999,000",
CKEDITOR.config.colorButton_foreStyle={element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]},CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}},CKEDITOR.config.colorButton_enableAutomatic=!0,CKEDITOR.config.colorButton_colorsPerRow=6,CKEDITOR.config.colorButton_historyRowLimit=1,CKEDITOR.config.colorButton_renderContentColors=!0,function(){function c(a,b,c){c=a.config.forceEnterMode||c;if("wysiwyg"==a.mode){b||(b=
a.activeEnterMode);var g=a.elementPath();g&&!g.isContextFor("p")&&(b=CKEDITOR.ENTER_BR,c=1);a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?n(a,b,null,c):k(a,b,null,c);a.fire("saveSnapshot")}}function h(a){a=a.getSelection().getRanges(!0);for(var b=a.length-1;0<b;b--)a[b].deleteContents();return a[0]}function f(a){var b=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"true"==a.getAttribute("contenteditable")},!0);if(a.root.equals(b))return a;b=new CKEDITOR.dom.range(b);
b.moveToRange(a);return b}CKEDITOR.plugins.add("enterkey",{init:function(a){a.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){c(a)}});a.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){c(a,a.activeShiftEnterMode,1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var a=CKEDITOR.dom.walker.whitespaces(),g=CKEDITOR.dom.walker.bookmark(),m,n,k,b;CKEDITOR.plugins.enterkey={enterBlock:function(d,c,k,m){function x(a){var b;if(a===CKEDITOR.ENTER_BR||
-1===CKEDITOR.tools.indexOf(["td","th"],z.lastElement.getName())||1!==z.lastElement.getChildCount())return!1;a=z.lastElement.getChild(0).clone(!0);(b=a.getBogus())&&b.remove();return a.getText().length?!1:!0}if(k=k||h(d)){k=f(k);var t=k.document,q=k.checkStartOfBlock(),u=k.checkEndOfBlock(),z=d.elementPath(k.startContainer),r=z.block,w=c==CKEDITOR.ENTER_DIV?"div":"p",p;if(r&&q&&u){q=r.getParent();if(q.is("li")&&1<q.getChildCount()){t=new CKEDITOR.dom.element("li");p=d.createRange();t.insertAfter(q);
r.remove();p.setStart(t,0);d.getSelection().selectRanges([p]);return}if(r.is("li")||r.getParent().is("li")){r.is("li")||(r=r.getParent(),q=r.getParent());p=q.getParent();k=!r.hasPrevious();var y=!r.hasNext();m=d.getSelection();var w=m.createBookmarks(),A=r.getDirection(1),u=r.getAttribute("class"),C=r.getAttribute("style"),F=p.getDirection(1)!=A;d=d.enterMode!=CKEDITOR.ENTER_BR||F||C||u;if(p.is("li"))k||y?(k&&y&&q.remove(),r[y?"insertAfter":"insertBefore"](p)):r.breakParent(p);else{if(d)if(z.block.is("li")?
(p=t.createElement(c==CKEDITOR.ENTER_P?"p":"div"),F&&p.setAttribute("dir",A),C&&p.setAttribute("style",C),u&&p.setAttribute("class",u),r.moveChildren(p)):p=z.block,k||y)p[k?"insertBefore":"insertAfter"](q);else r.breakParent(q),p.insertAfter(q);else if(r.appendBogus(!0),k||y)for(;t=r[k?"getFirst":"getLast"]();)t[k?"insertBefore":"insertAfter"](q);else for(r.breakParent(q);t=r.getLast();)t.insertAfter(q);r.remove()}m.selectBookmarks(w);return}if(r&&r.getParent().is("blockquote")){r.breakParent(r.getParent());
r.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||r.getPrevious().remove();r.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||r.getNext().remove();k.moveToElementEditStart(r);k.select();return}}else if(r&&r.is("pre")&&!u){n(d,c,k,m);return}if(C=k.splitBlock(w)){d=C.previousBlock;r=C.nextBlock;q=C.wasStartOfBlock;u=C.wasEndOfBlock;r?(y=r.getParent(),y.is("li")&&(r.breakParent(y),r.move(r.getNext(),1))):d&&(y=d.getParent())&&y.is("li")&&(d.breakParent(y),y=d.getNext(),k.moveToElementEditStart(y),
d.move(d.getPrevious()));if(q||u)if(x(c))k.moveToElementEditStart(k.getTouchedStartNode());else{if(d){if(d.is("li")||!b.test(d.getName())&&!d.is("pre"))p=d.clone()}else r&&(p=r.clone());p?m&&!p.is("li")&&p.renameNode(w):y&&y.is("li")?p=y:(p=t.createElement(w),d&&(A=d.getDirection())&&p.setAttribute("dir",A));if(t=C.elementPath)for(c=0,m=t.elements.length;c<m;c++){w=t.elements[c];if(w.equals(t.block)||w.equals(t.blockLimit))break;CKEDITOR.dtd.$removeEmpty[w.getName()]&&(w=w.clone(),p.moveChildren(w),
p.append(w))}p.appendBogus();p.getParent()||k.insertNode(p);p.is("li")&&p.removeAttribute("value");!CKEDITOR.env.ie||!q||u&&d.getChildCount()||(k.moveToElementEditStart(u?d:p),k.select());k.moveToElementEditStart(q&&!u?r:p)}else r.is("li")&&(p=k.clone(),p.selectNodeContents(r),p=new CKEDITOR.dom.walker(p),p.evaluator=function(b){return!(g(b)||a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in CKEDITOR.dtd.$inline&&!(b.getName()in CKEDITOR.dtd.$empty))},(y=p.next())&&y.type==CKEDITOR.NODE_ELEMENT&&
y.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?t.createElement("br"):t.createText(" ")).insertBefore(y)),r&&k.moveToElementEditStart(r);k.select();k.scrollIntoView()}}},enterBr:function(a,c,g,f){if(g=g||h(a)){var m=g.document,n=g.checkEndOfBlock(),q=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),u=q.block,z=u&&q.block.getName();f||"li"!=z?(!f&&n&&b.test(z)?(n=u.getDirection())?(m=m.createElement("div"),m.setAttribute("dir",n),m.insertAfter(u),g.setStart(m,0)):(m.createElement("br").insertAfter(u),
CKEDITOR.env.gecko&&m.createText("").insertAfter(u),g.setStartAt(u.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(a="pre"==z&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?m.createText("\r"):m.createElement("br"),g.deleteContents(),g.insertNode(a),CKEDITOR.env.needsBrFiller?(m.createText("﻿").insertAfter(a),n&&(u||q.blockLimit).appendBogus(),a.getNext().$.nodeValue="",g.setStartAt(a.getNext(),CKEDITOR.POSITION_AFTER_START)):g.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),
g.collapse(!0),g.select(),g.scrollIntoView()):k(a,c,g,f)}}};m=CKEDITOR.plugins.enterkey;n=m.enterBr;k=m.enterBlock;b=/^h[1-6]$/}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var c=CKEDITOR.addTemplate("panel-list",'\x3cul role\x3d"presentation" class\x3d"cke_panel_list"\x3e{items}\x3c/ul\x3e'),h=CKEDITOR.addTemplate("panel-list-item",'\x3cli id\x3d"{id}" class\x3d"cke_panel_listItem" role\x3dpresentation\x3e\x3ca id\x3d"{id}_option" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"{title}" draggable\x3d"false" ondragstart\x3d"return false;" href\x3d"javascript:void(\'{val}\')"  onclick\x3d"{onclick}CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role\x3d"option"\x3e{text}\x3c/a\x3e\x3c/li\x3e'),
f=CKEDITOR.addTemplate("panel-list-group",'\x3ch1 id\x3d"{id}" draggable\x3d"false" ondragstart\x3d"return false;" class\x3d"cke_panel_grouptitle" role\x3d"presentation" \x3e{label}\x3c/h1\x3e'),a=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,c){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),c))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,c){c=c||{};var f=c.attributes||(c.attributes={});(this.multiSelect=!!c.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 a=c.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);
delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(a){var c=this.toggle(a);if(this.onClick)this.onClick(a,c)},this));return this._.click}},proto:{add:function(c,f,n){var k=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[c]=k;var b;b=CKEDITOR.tools.htmlEncodeAttr(c).replace(a,"\\'");c={id:k,val:b,onclick:CKEDITOR.env.ie?'return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26':
"",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(n||c),text:f||c};this._.pendingList.push(h.output(c))},startGroup:function(a){this._.close();var c=CKEDITOR.tools.getNextId();this._.groups[a]=c;this._.pendingHtml.push(f.output({id:c,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var c=this.isMarked(a);c?this.unmark(a):this.mark(a);return!c},hideGroup:function(a){var c=(a=
this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),c&&"ul"==c.getName()&&c.setStyle("display","none"))},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},showAll:function(){var a=this._.items,c=this._.groups,f=this.element.getDocument(),h;for(h in a)f.getById(a[h]).setStyle("display","");for(var b in c)a=f.getById(c[b]),h=a.getNext(),a.setStyle("display",""),h&&"ul"==h.getName()&&h.setStyle("display",
"")},mark:function(a){this.multiSelect||this.unmarkAll();a=this._.items[a];var c=this.element.getDocument().getById(a);c.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(c)},markFirstDisplayed:function(){var a=this;this._.markFirstDisplayed(function(){a.multiSelect||a.unmarkAll()})},unmark:function(a){var c=this.element.getDocument();a=this._.items[a];var f=c.getById(a);f.removeClass("cke_selected");c.getById(a+"_option").removeAttribute("aria-selected");
this.onUnmark&&this.onUnmark(f)},unmarkAll:function(){var a=this._.items,c=this.element.getDocument(),f;for(f in a){var h=a[f];c.getById(h).removeClass("cke_selected");c.getById(h+"_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 c=this.element.getElementsByTag("a"),f,h=-1;if(a)for(f=this.element.getDocument().getById(this._.items[a]).getFirst();a=
c.getItem(++h);){if(a.equals(f)){this._.focusIndex=h;break}}else this.element.focus();f&&setTimeout(function(){f.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var c='\x3cspan id\x3d"{id}" class\x3d"cke_combo cke_combo__{name} {cls}" role\x3d"presentation"\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_combo_label"\x3e{label}\x3c/span\x3e\x3ca class\x3d"cke_combo_button" title\x3d"{title}" tabindex\x3d"-1"'+
(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+' hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-haspopup\x3d"listbox"',h="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(c+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(c+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');CKEDITOR.env.ie&&(h='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var c=c+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+
h+'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"),f=CKEDITOR.addTemplate("combo",c);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 c=[];this.render(a,c);return c.join("")},render:function(a,c){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 n=CKEDITOR.env,k,b,d="cke_"+this.id,e=CKEDITOR.tools.addFunction(function(d){b&&(a.unlockSelection(1),b=0);k.execute(d)},this),l=this;k={id:d,combo:this,focus:function(){CKEDITOR.document.getById(d).getChild(1).focus()},execute:function(b){var d=l._;if(d.state!=CKEDITOR.TRISTATE_DISABLED)if(l.createPanel(a),
d.on)d.panel.hide();else{l.commit();var c=l.getValue();c?d.list.mark(c):d.list.unmarkAll();d.panel.showBlock(l.id,new CKEDITOR.dom.element(b),4)}},clickFn:e};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 v=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(e,
b);break;default:k.onkey(k,d)}a.preventDefault()}),x=CKEDITOR.tools.addFunction(function(){k.onfocus&&k.onfocus()});b=0;k.keyDownFn=v;n={id:d,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:n.gecko&&!n.hc?"":(this.title||"").replace("'",""),keydownFn:v,focusFn:x,clickFn:e};f.output(n,c);if(this.onRender)this.onRender();return k},createPanel:function(a){if(!this._.panel){var c=this._.panelDefinition,f=this._.panelDefinition.block,h=c.parent||CKEDITOR.document.getBody(),
k="cke_combopanel__"+this.name,b=new CKEDITOR.ui.floatPanel(a,h,c),c=b.addListBlock(this.id,f),d=this;b.onShow=function(){this.element.addClass(k);d.setState(CKEDITOR.TRISTATE_ON);d._.on=1;d.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(d.onOpen)d.onOpen()};b.onHide=function(b){this.element.removeClass(k);d.setState(d.modes&&d.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);d._.on=0;if(!b&&d.onClose)d.onClose()};b.onEscape=function(){b.hide(1)};c.onClick=function(a,c){d.onClick&&
d.onClick.call(d,a,c);b.hide()};this._.panel=b;this._.list=c;b.getBlock(this.id).onHide=function(){d._.on=0;d.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,c){this._.value=a;var f=this.document.getById("cke_"+this.id+"_text");f&&(a||c?f.removeClass("cke_combo_inlinelabel"):(c=this.label,f.addClass("cke_combo_inlinelabel")),f.setText("undefined"!=typeof c?c:a));var f="undefined"!=typeof c?c:a,h=this.label,f=f===h?f:f+", "+h;(h=this.document.getById("cke_"+this.id+"_label"))&&
h.setText(f)},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,c,f){this._.items[a]=f||a;this._.list.add(a,c,f)},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 c=this.document.getById("cke_"+this.id),f=c.getElementsByTag("a").getItem(0);c.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?c.setAttribute("aria-disabled",!0):c.removeAttribute("aria-disabled");f&&f.setAttribute("aria-expanded",a==CKEDITOR.TRISTATE_ON);this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=
CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))},destroy:function(){CKEDITOR.tools.array.forEach(this._.listeners,function(a){a.removeListener()});this._.listeners=[]},select:function(a){if(!CKEDITOR.tools.isEmpty(this._.items))for(var c in this._.items)if(a({value:c,text:this._.items[c]})){this.setValue(c);break}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,c){this.add(a,
CKEDITOR.UI_RICHCOMBO,c)}}(),function(){function c(c,f){var n=c.config,k=f.lang,b=new CKEDITOR.style(f.styleDefinition),d=new a({entries:f.entries,styleVariable:f.styleVariable,styleDefinition:f.styleDefinition}),e;c.addCommand(f.commandName,{exec:function(a,b){var d=b.newStyle,c=b.oldStyle,e=a.getSelection().getRanges()[0],g=void 0===d;if(c||d)if(c&&e.collapsed&&h({editor:a,range:e,style:c}),g)a.removeStyle(c);else{if(e=c)e=c instanceof CKEDITOR.style&&d instanceof CKEDITOR.style?CKEDITOR.style.getStyleText(c.getDefinition())===
CKEDITOR.style.getStyleText(d.getDefinition()):!1,e=!e;e&&a.removeStyle(c);a.applyStyle(d)}},refresh:function(a,d){b.checkApplicable(d,a,a.activeFilter)||this.setState(CKEDITOR.TRISTATE_DISABLED)}});e=c.getCommand(f.commandName);c.ui.addRichCombo(f.comboName,{label:k.label,title:k.panelTitle,command:f.commandName,toolbar:"styles,"+f.order,defaultValue:"cke-default",allowedContent:b,requiredContent:b,contentTransformations:"span"===f.styleDefinition.element?[[{element:"font",check:"span",left:function(a){return!!a.attributes.size||
!!a.attributes.align||!!a.attributes.face},right:function(a){var b=" x-small small medium large x-large xx-large 48px".split(" ");a.name="span";a.attributes.size&&(a.styles["font-size"]=b[a.attributes.size],delete a.attributes.size);a.attributes.align&&(a.styles["text-align"]=a.attributes.align,delete a.attributes.align);a.attributes.face&&(a.styles["font-family"]=a.attributes.face,delete a.attributes.face)}}]]:null,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(n.contentsCss),multiSelect:!1,
attributes:{"aria-label":k.panelTitle}},init:function(){var a="("+c.lang.common.optionDefault+")";this.startGroup(k.panelTitle);this.add(this.defaultValue,a,a);d.addToCombo(this)},onClick:function(a){var b=this.getValue();c.focus();c.fire("saveSnapshot");c.execCommand(f.commandName,{newStyle:d.getStyle(a),oldStyle:d.getStyle(b)});c.fire("saveSnapshot")},onRender:function(){c.on("selectionChange",function(a){var b=this.getValue();(a=d.getMatchingValue(c,a.data.path))?a!=b&&this.setValue(a):this.setValue("",
f.defaultLabel)},this);e.on("state",function(){this.setState(e.state)},this)},refresh:function(){this.setState(e.state)}})}function h(a){var c=a.editor,h=a.range,k=a.style,b,d,e;b=c.elementPath();if(a=b.contains(function(a){return k.checkElementRemovable(a)})){d=h.checkBoundaryOfElement(a,CKEDITOR.START);e=h.checkBoundaryOfElement(a,CKEDITOR.END);if(d&&e){for(d=h.createBookmark();b=a.getFirst();)b.insertBefore(a);a.remove();h.moveToBookmark(d)}else d||e?h.moveToPosition(a,d?CKEDITOR.POSITION_BEFORE_START:
CKEDITOR.POSITION_AFTER_END):(h.splitElement(a),h.moveToPosition(a,CKEDITOR.POSITION_AFTER_END)),f(h,b.elements.slice(),a);c.getSelection().selectRanges([h])}}function f(a,c,h){var k=c.pop();if(k){if(h)return f(a,c,k.equals(h)?null:h);h=k.clone();a.insertNode(h);a.moveToPosition(h,CKEDITOR.POSITION_AFTER_START);f(a,c)}}var a=CKEDITOR.tools.createClass({$:function(a){var c=a.entries.split(";");this._.data={};this._.names=[];for(var f=0;f<c.length;f++){var h=c[f],b,d;h?(h=h.split("/"),b=h[0],h=h[1],
d={},d[a.styleVariable]=h||b,this._.data[b]=new CKEDITOR.style(a.styleDefinition,d),this._.data[b]._.definition.name=b,this._.names.push(b)):(c.splice(f,1),f--)}},proto:{getStyle:function(a){return this._.data[a]},addToCombo:function(a){for(var c=0;c<this._.names.length;c++){var f=this._.names[c];a.add(f,this.getStyle(f).buildPreview(),f)}},getMatchingValue:function(a,c){for(var f=c.elements,h=0,b;h<f.length;h++)if(b=f[h],b=this._.findMatchingStyleName(a,b))return b;return null}},_:{findMatchingStyleName:function(a,
c){return CKEDITOR.tools.array.find(this._.names,function(f){return this.getStyle(f).checkElementMatch(c,!0,a)},this)}}});CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(a){var f=a.config;c(a,{comboName:"Font",commandName:"font",styleVariable:"family",lang:a.lang.font,entries:f.font_names,defaultLabel:f.font_defaultLabel,styleDefinition:f.font_style,order:30});c(a,{comboName:"FontSize",commandName:"fontSize",styleVariable:"size",lang:a.lang.font.fontSize,entries:f.fontSize_sizes,defaultLabel:f.fontSize_defaultLabel,
styleDefinition:f.fontSize_style,order:40})}})}(),CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style=
{element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},function(){var c={canUndo:!1,exec:function(c){var f=c.document.createElement("hr");
c.insertElement(f)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(h){h.blockless||(h.addCommand("horizontalrule",c),h.ui.addButton&&h.ui.addButton("HorizontalRule",{label:h.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})}(),function(){function c(a,c){var m,n;c.on("refresh",function(a){var b=[h],d;for(d in a.data.states)b.push(a.data.states[d]);this.setState(CKEDITOR.tools.search(b,f)?f:h)},c,null,100);c.on("exec",function(c){m=
a.getSelection();n=m.createBookmarks(1);c.data||(c.data={});c.data.done=!1},c,null,0);c.on("exec",function(){a.forceNextSelectionCheck();m.selectBookmarks(n)},c,null,100)}var h=CKEDITOR.TRISTATE_DISABLED,f=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(a){var g=CKEDITOR.plugins.indent.genericDefinition;c(a,a.addCommand("indent",new g(!0)));c(a,a.addCommand("outdent",new g));a.ui.addButton&&(a.ui.addButton("Indent",{label:a.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),
a.ui.addButton("Outdent",{label:a.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"}));a.on("dirChanged",function(c){var g=a.createRange(),f=c.data.node;g.setStartBefore(f);g.setEndAfter(f);for(var b=new CKEDITOR.dom.walker(g),d;d=b.next();)if(d.type==CKEDITOR.NODE_ELEMENT)if(!d.equals(f)&&d.getDirection())g.setStartAfter(d),b=new CKEDITOR.dom.walker(g);else{var e=a.config.indentClasses;if(e)for(var h="ltr"==c.data.dir?["_rtl",""]:["","_rtl"],v=0;v<e.length;v++)d.hasClass(e[v]+
h[0])&&(d.removeClass(e[v]+h[0]),d.addClass(e[v]+h[1]));e=d.getStyle("margin-right");h=d.getStyle("margin-left");e?d.setStyle("margin-left",e):d.removeStyle("margin-left");h?d.setStyle("margin-right",h):d.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,c,f){this.name=c;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!f;this.relatedGlobal=
f?"indent":"outdent";this.indentKey=f?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,c){a.on("pluginsLoaded",function(){for(var a in c)(function(a,c){var b=a.getCommand(c.relatedGlobal),d;for(d in c.jobs)b.on("exec",function(b){b.data.done||(a.fire("lockSnapshot"),c.execJob(a,d)&&(b.data.done=!0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(c.database))},this,null,d),b.on("refresh",function(b){b.data.states||(b.data.states={});b.data.states[c.name+"@"+d]=c.refreshJob(a,
d,b.data.path)},this,null,d);a.addFeature(c)})(this,c[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(a,c){var f=this.jobs[c];if(f.state!=h)return f.exec.call(this,a)},refreshJob:function(a,c,f){c=this.jobs[c];a.activeFilter.checkFeature(this)?c.state=c.refresh.call(this,a,f):c.state=h;return c.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function c(a,
c,b){if(!a.getCustomData("indent_processed")){var d=this.editor,e=this.isIndent;if(c){d=a.$.className.match(this.classNameRegex);b=0;d&&(d=d[1],b=CKEDITOR.tools.indexOf(c,d)+1);if(0>(b+=e?1:-1))return;b=Math.min(b,c.length);b=Math.max(b,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));0<b&&a.addClass(c[b-1])}else{c=h(a,b);b=parseInt(a.getStyle(c),10);var f=d.config.indentOffset||40;isNaN(b)&&(b=0);b+=(e?1:-1)*f;if(0>b)return;b=Math.max(b,0);b=Math.ceil(b/f)*f;a.setStyle(c,
b?b+(d.config.indentUnit||"px"):"");""===a.getAttribute("style")&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function h(a,c){return"ltr"==(c||a.getComputedStyle("direction"))?"margin-left":"margin-right"}var f=CKEDITOR.dtd.$listItem,a=CKEDITOR.dtd.$list,g=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(n){function k(){b.specificDefinition.apply(this,arguments);this.allowedContent=
{"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:d?null:"margin-left,margin-right",classes:d||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")+(d?"("+d.join(",")+")":"{margin-left}");this.jobs={20:{refresh:function(a,b){var c=b.block||b.blockLimit;if(!c.is(f))var k=c.getAscendant(f),c=k&&b.contains(k)||c;c.is(f)&&(c=c.getParent());if(this.enterBr||this.getContext(b)){if(d){var k=d,c=c.$.className.match(this.classNameRegex),n=this.isIndent,k=c?n?c[1]!=k.slice(-1):!0:n;return k?m:g}return this.isIndent?m:c?CKEDITOR[0>=(parseInt(c.getStyle(h(c)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:g}return g},
exec:function(b){var f=b.getSelection(),f=f&&f.getRanges()[0],g;if(g=b.elementPath().contains(a))c.call(this,g,d);else for(f=f.createIterator(),b=b.config.enterMode,f.enforceRealBlocks=!0,f.enlargeBr=b!=CKEDITOR.ENTER_BR;g=f.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)g.isReadOnly()||c.call(this,g,d);return!0}}}}var b=CKEDITOR.plugins.indent,d=n.config.indentClasses;b.registerCommands(n,{indentblock:new k(n,"indentblock",!0),outdentblock:new k(n,"outdentblock")});CKEDITOR.tools.extend(k.prototype,
b.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:d?new RegExp("(?:^|\\s+)("+d.join("|")+")(?\x3d$|\\s)"):null})}})}(),function(){function c(a){function b(b){for(var h=m.startContainer,n=m.endContainer;h&&!h.getParent().equals(b);)h=h.getParent();for(;n&&!n.getParent().equals(b);)n=n.getParent();if(!h||!n)return!1;for(var w=[],p=!1;!p;)h.equals(n)&&(p=!0),w.push(h),h=h.getNext();if(1>w.length)return!1;h=b.getParents(!0);for(n=
0;n<h.length;n++)if(h[n].getName&&g[h[n].getName()]){b=h[n];break}for(var h=d.isIndent?1:-1,n=w[0],w=w[w.length-1],p=CKEDITOR.plugins.list.listToArray(b,c),y=p[w.getCustomData("listarray_index")].indent,n=n.getCustomData("listarray_index");n<=w.getCustomData("listarray_index");n++)if(p[n].indent+=h,0<h){for(var q=p[n].parent,t=n-1;0<=t;t--)if(p[t].indent===h){q=p[t].parent;break}p[n].parent=new CKEDITOR.dom.element(q.getName(),q.getDocument())}for(n=w.getCustomData("listarray_index")+1;n<p.length&&
p[n].indent>y;n++)p[n].indent+=h;h=CKEDITOR.plugins.list.arrayToList(p,c,null,a.config.enterMode,b.getDirection());if(!d.isIndent){var x;if((x=b.getParent())&&x.is("li"))for(var w=h.listNode.getChildren(),K=[],D,n=w.count()-1;0<=n;n--)(D=w.getItem(n))&&D.is&&D.is("li")&&K.push(D)}h&&h.listNode.replace(b);if(K&&K.length)for(n=0;n<K.length;n++){for(D=b=K[n];(D=D.getNext())&&D.is&&D.getName()in g;)CKEDITOR.env.needsNbspFiller&&!b.getFirst(f)&&b.append(m.document.createText(" ")),b.append(D);b.insertAfter(x)}h&&
a.fire("contentDomInvalidated");return!0}for(var d=this,c=this.database,g=this.context,m,n=a.getSelection(),n=(n&&n.getRanges()).createIterator();m=n.getNextRange();){for(var t=m.getCommonAncestor();t&&(t.type!=CKEDITOR.NODE_ELEMENT||!g[t.getName()]);){if(a.editable().equals(t)){t=!1;break}t=t.getParent()}t||(t=m.startPath().contains(g))&&m.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);if(!t){var q=m.getEnclosedNode();q&&q.type==CKEDITOR.NODE_ELEMENT&&q.getName()in g&&(m.setStartAt(q,CKEDITOR.POSITION_AFTER_START),
m.setEndAt(q,CKEDITOR.POSITION_BEFORE_END),t=q)}t&&m.startContainer.type==CKEDITOR.NODE_ELEMENT&&m.startContainer.getName()in g&&(q=new CKEDITOR.dom.walker(m),q.evaluator=h,m.startContainer=q.next());t&&m.endContainer.type==CKEDITOR.NODE_ELEMENT&&m.endContainer.getName()in g&&(q=new CKEDITOR.dom.walker(m),q.evaluator=h,m.endContainer=q.previous());if(t)return b(t)}return 0}function h(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function f(c){return a(c)&&g(c)}var a=CKEDITOR.dom.walker.whitespaces(!0),
g=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,n=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(a){function b(a){d.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];a.on("key",function(b){var d=a.elementPath();if("wysiwyg"==a.mode&&b.data.keyCode==this.indentKey&&d){var c=this.getContext(d);!c||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,d,c)||(a.execCommand(this.relatedGlobal),b.cancel())}},
this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var d=this.getContext(b),c=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,d);return d&&this.isIndent&&!c?n:m}:function(a,b){return!this.getContext(b)||this.isIndent?m:n},exec:CKEDITOR.tools.bind(c,this)}}var d=CKEDITOR.plugins.indent;d.registerCommands(a,{indentlist:new b(a,"indentlist",!0),outdentlist:new b(a,"outdentlist")});CKEDITOR.tools.extend(b.prototype,d.specificDefinition.prototype,{context:{ol:1,ul:1}})}});
CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,d){var c=b.contains(h);d||(d=b.contains(a));return d&&c&&c.equals(d.getFirst(h))}}(),function(){function c(a,c){c=void 0===c||c;var f;if(c)f=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){f=a.getParent();if(!f)break;a=f}f=a.getStyle("text-align")||a.getAttribute("align")||""}f&&(f=f.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!f&&c&&(f=
"rtl"==a.getComputedStyle("direction")?"right":"left");return f}function h(a,c,f){this.editor=a;this.name=c;this.value=f;this.context="p";c=a.config.justifyClasses;var h=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(c){switch(f){case "left":this.cssClassName=c[0];break;case "center":this.cssClassName=c[1];break;case "right":this.cssClassName=c[2];break;case "justify":this.cssClassName=c[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+c.join("|")+")(?\x3d$|\\s)");this.requiredContent=h+"("+this.cssClassName+
")"}else this.requiredContent=h+"{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 f(a){var c=a.editor,f=c.createRange();f.setStartBefore(a.data.node);f.setEndAfter(a.data.node);for(var h=new CKEDITOR.dom.walker(f),k;k=h.next();)if(k.type==CKEDITOR.NODE_ELEMENT)if(!k.equals(a.data.node)&&k.getDirection())f.setStartAfter(k),
h=new CKEDITOR.dom.walker(f);else{var b=c.config.justifyClasses;b&&(k.hasClass(b[0])?(k.removeClass(b[0]),k.addClass(b[2])):k.hasClass(b[2])&&(k.removeClass(b[2]),k.addClass(b[0])));b=k.getStyle("text-align");"left"==b?k.setStyle("text-align","right"):"right"==b&&k.setStyle("text-align","left")}}h.prototype={exec:function(a){var f=a.getSelection(),h=a.config.enterMode;if(f){for(var n=f.createBookmarks(),k=f.getRanges(),b=this.cssClassName,d,e,l=a.config.useComputedState,l=void 0===l||l,v=k.length-
1;0<=v;v--)for(d=k[v].createIterator(),d.enlargeBr=h!=CKEDITOR.ENTER_BR;e=d.getNextParagraph(h==CKEDITOR.ENTER_P?"p":"div");)if(!e.isReadOnly()){var x=e.getName(),t;t=a.activeFilter.check(x+"{text-align}");if((x=a.activeFilter.check(x+"("+b+")"))||t){e.removeAttribute("align");e.removeStyle("text-align");var q=b&&(e.$.className=CKEDITOR.tools.ltrim(e.$.className.replace(this.cssClassRegex,""))),u=this.state==CKEDITOR.TRISTATE_OFF&&(!l||c(e,!0)!=this.value);b&&x?u?e.addClass(b):q||e.removeAttribute("class"):
u&&t&&e.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();f.selectBookmarks(n)}},refresh:function(a,f){var h=f.block||f.blockLimit,n=h.getName(),k=h.equals(a.editable()),n=this.cssClassName?a.activeFilter.check(n+"("+this.cssClassName+")"):a.activeFilter.check(n+"{text-align}");k&&!CKEDITOR.dtd.$list[f.lastElement.getName()]?this.setState(CKEDITOR.TRISTATE_OFF):!k&&n?this.setState(c(h,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 c=new h(a,"justifyleft","left"),m=new h(a,"justifycenter","center"),n=new h(a,"justifyright","right"),k=new h(a,"justifyblock","justify");a.addCommand("justifyleft",c);a.addCommand("justifycenter",m);a.addCommand("justifyright",n);a.addCommand("justifyblock",k);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",f)}}})}(),function(){function c(a,b,d,c){for(var e=CKEDITOR.plugins.list.listToArray(b.root,d),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];(h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&
(f.push(h),CKEDITOR.dom.element.setMarker(d,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)}d=CKEDITOR.plugins.list.arrayToList(e,d,null,a.config.enterMode);for(var n,e=d.listNode.getChildCount(),g=0;g<e&&(n=d.listNode.getChild(g));g++)n.getName()==this.type&&c.push(n);d.listNode.replace(b.root);
a.fire("contentDomInvalidated")}function h(a,b,d){var c=b.contents,e=b.root.getDocument(),f=[];if(1==c.length&&c[0].equals(b.root)){var g=e.createElement("div");c[0].moveChildren&&c[0].moveChildren(g);c[0].append(g);c[0]=g}b=b.contents[0].getParent();for(g=0;g<c.length;g++)b=b.getCommonAncestor(c[g].getParent());a=a.config.useComputedState;var h,k;a=void 0===a||a;for(g=0;g<c.length;g++)for(var l=c[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)){c=f[f.length-1].getNext();g=e.createElement(this.type);for(d.push(g);f.length;)d=f.shift(),a=e.createElement("li"),l=d,l.is("pre")||t.test(l.getName())||"false"==l.getAttribute("contenteditable")?d.appendTo(a):(d.copyAttributes(a),h&&d.getDirection()&&(a.removeStyle("direction"),a.removeAttribute("dir")),d.moveChildren(a),d.remove()),a.appendTo(g);h&&k&&g.setAttribute("dir",h);c?g.insertBefore(c):g.appendTo(b)}}function f(a,b,d){function c(d){if(!(!(l=
k[d?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(m=b.root[d?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||m.is&&m.isBlockBoundary({br:1})))a.document.createElement("br")[d?"insertBefore":"insertAfter"](l)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,d),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];(h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&(f.push(h),CKEDITOR.dom.element.setMarker(d,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,d,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;c(!0);c();k.replace(b.root);a.fire("contentDomInvalidated")}function a(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function g(a,b,d,c){for(var e,
f;e=a[c?"getLast":"getFirst"](q);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),d?e[c?"insertBefore":"insertAfter"](d):b.append(e,c),d=e}function m(a){function b(d){var c=a[d?"getPrevious":"getNext"](v);c&&c.type==CKEDITOR.NODE_ELEMENT&&c.is(a.getName())&&(g(a,c,null,!d),a.remove(),a=c)}b();b(1)}function n(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function k(a,d,
c){a.fire("saveSnapshot");c.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var e=c.extractContents();d.trim(!1,!0);var f=d.createBookmark(),h=new CKEDITOR.dom.elementPath(d.startContainer),k=h.block,h=h.lastElement.getAscendant("li",1)||k,l=new CKEDITOR.dom.elementPath(c.startContainer),n=l.contains(CKEDITOR.dtd.$listItem),l=l.contains(CKEDITOR.dtd.$list);k?(k=k.getBogus())&&k.remove():l&&(k=l.getPrevious(v))&&x(k)&&k.remove();(k=e.getLast())&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("br")&&k.remove();(k=
d.startContainer.getChild(d.startOffset))?e.insertBefore(k):d.startContainer.append(e);n&&(e=b(n))&&(h.contains(n)?(g(e,n.getParent(),n),e.remove()):h.append(e));for(;c.checkStartOfBlock()&&c.checkEndOfBlock();){l=c.startPath();e=l.block;if(!e)break;e.is("li")&&(h=e.getParent(),e.equals(h.getLast(v))&&e.equals(h.getFirst(v))&&(e=h));c.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove()}c=c.clone();e=a.editable();c.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=
function(a){return v(a)&&!x(a)};(c=c.next())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in CKEDITOR.dtd.$list&&m(c);d.moveToBookmark(f);d.select();a.fire("saveSnapshot")}function b(a){return(a=a.getLast(v))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in d?a:null}var d={ol:1,ul:1},e=CKEDITOR.dom.walker.whitespaces(),l=CKEDITOR.dom.walker.bookmark(),v=function(a){return!(e(a)||l(a))},x=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,e,f){if(!d[a.getName()])return[];e||(e=
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,e+1);if("li"==k.$.nodeName.toLowerCase()){var l={parent:a,indent:e,element:k,contents:[]};f?l.grandparent=f:(l.grandparent=a.getParent(),l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=l.grandparent.getParent()));b&&CKEDITOR.dom.element.setMarker(b,k,"listarray_index",c.length);c.push(l);for(var m=
0,n=k.getChildCount(),v;m<n;m++)v=k.getChild(m),v.type==CKEDITOR.NODE_ELEMENT&&d[v.getName()]?CKEDITOR.plugins.list.listToArray(v,b,c,e+1,l.grandparent):l.contents.push(v)}}return c},arrayToList:function(a,b,c,e,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),m=null,n=c,q=Math.max(a[c].indent,0),t=null,x,B,O=e==CKEDITOR.ENTER_P?"p":"div";;){var L=a[n];g=L.grandparent;x=L.element.getDirection(1);if(L.indent==q){m&&a[n].parent.getName()==
m.getName()||(m=a[n].parent.clone(!1,1),f&&m.setAttribute("dir",f),k.append(m));t=m.append(L.element.clone(0,1));x!=m.getDirection(1)&&t.setAttribute("dir",x);for(g=0;g<L.contents.length;g++)t.append(L.contents[g].clone(1,1));n++}else if(L.indent==Math.max(q,0)+1)L=a[n-1].element.getDirection(1),n=CKEDITOR.plugins.list.arrayToList(a,null,n,e,L!=x?x:null),!t.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=h.$.documentMode&&t.append(h.createText(" ")),t.append(n.listNode),n=n.nextIndex;else if(-1==
L.indent&&!c&&g){d[g.getName()]?(t=L.element.clone(!1,!0),x!=g.getDirection(1)&&t.setAttribute("dir",x)):t=new CKEDITOR.dom.documentFragment(h);var m=g.getDirection(1)!=x,N=L.element,P=N.getAttribute("class"),J=N.getAttribute("style"),E=t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||m||J||P),I,fa=L.contents.length,T;for(g=0;g<fa;g++)if(I=L.contents[g],l(I)&&1<fa)E?T=I.clone(1,1):t.append(I.clone(1,1));else if(I.type==CKEDITOR.NODE_ELEMENT&&I.isBlockBoundary()){m&&!I.getDirection()&&
I.setAttribute("dir",x);B=I;var W=N.getAttribute("style");W&&B.setAttribute("style",W.replace(/([^;])$/,"$1;")+(B.getAttribute("style")||""));P&&I.addClass(P);B=null;T&&(t.append(T),T=null);t.append(I.clone(1,1))}else E?(B||(B=h.createElement(O),t.append(B),m&&B.setAttribute("dir",x)),J&&B.setAttribute("style",J),P&&B.setAttribute("class",P),T&&(B.append(T),T=null),B.append(I.clone(1,1))):t.append(I.clone(1,1));T&&((B||t).append(T),T=null);t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&n!=a.length-1&&(CKEDITOR.env.needsBrFiller&&
(x=t.getLast())&&x.type==CKEDITOR.NODE_ELEMENT&&x.is("br")&&x.remove(),(x=t.getLast(v))&&x.type==CKEDITOR.NODE_ELEMENT&&x.is(CKEDITOR.dtd.$block)||t.append(h.createElement("br")));x=t.$.nodeName.toLowerCase();"div"!=x&&"p"!=x||t.appendBogus();k.append(t);m=null;n++}else return null;B=null;if(a.length<=n||Math.max(a[n].indent,0)<q)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=e=void 0,e=c.getDirection()))){for(f=
c.getParent();f&&!(h=f.getDirection());)f=f.getParent();e==h&&c.removeAttribute("dir")}a=a.getNextSourceNode()}return{listNode:k,nextIndex:n}}};var t=/^h[1-6]$/,q=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);a.prototype={exec:function(a){function b(a){return d[a.root.getName()]&&!e(a.root,[CKEDITOR.NODE_COMMENT])}function e(a,b){return CKEDITOR.tools.array.filter(a.getChildren().toArray(),function(a){return-1===CKEDITOR.tools.array.indexOf(b,a.type)}).length}function g(a){var b=!0;if(0===a.getChildCount())return!1;
a.forEach(function(a){if(a.type!==CKEDITOR.NODE_COMMENT)return b=!1},null,!0);return b}this.refresh(a,a.elementPath());var k=a.config,l=a.getSelection(),n=l&&l.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var t=a.editable();if(t.getFirst(v)){var q=1==n.length&&n[0];(k=q&&q.getEnclosedNode())&&k.is&&this.type==k.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else k.enterMode==CKEDITOR.ENTER_BR?t.appendBogus():n[0].fixBlock(1,k.enterMode==CKEDITOR.ENTER_P?"p":"div"),l.selectRanges(n)}for(var k=
l.createBookmarks(!0),t=[],x={},n=n.createIterator(),D=0;(q=n.getNextRange())&&++D;){var H=q.getBoundaryNodes(),G=H.startNode,B=H.endNode;G.type==CKEDITOR.NODE_ELEMENT&&"td"==G.getName()&&q.setStartAt(H.startNode,CKEDITOR.POSITION_AFTER_START);B.type==CKEDITOR.NODE_ELEMENT&&"td"==B.getName()&&q.setEndAt(H.endNode,CKEDITOR.POSITION_BEFORE_END);q=q.createIterator();for(q.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;H=q.getNextParagraph();)if(!H.getCustomData("list_block")&&!g(H)){CKEDITOR.dom.element.setMarker(x,
H,"list_block",1);for(var O=a.elementPath(H),G=O.elements,B=0,O=O.blockLimit,L,N=G.length-1;0<=N&&(L=G[N]);N--)if(d[L.getName()]&&O.contains(L)){O.removeCustomData("list_group_object_"+D);(G=L.getCustomData("list_group_object"))?G.contents.push(H):(G={root:L,contents:[H]},t.push(G),CKEDITOR.dom.element.setMarker(x,L,"list_group_object",G));B=1;break}B||(B=O,B.getCustomData("list_group_object_"+D)?B.getCustomData("list_group_object_"+D).contents.push(H):(G={root:B,contents:[H]},CKEDITOR.dom.element.setMarker(x,
B,"list_group_object_"+D,G),t.push(G)))}}for(L=[];0<t.length;)G=t.shift(),this.state==CKEDITOR.TRISTATE_OFF?b(G)||(d[G.root.getName()]?c.call(this,a,G,x,L):h.call(this,a,G,L)):this.state==CKEDITOR.TRISTATE_ON&&d[G.root.getName()]&&!b(G)&&f.call(this,a,G,x);for(N=0;N<L.length;N++)m(L[N]);CKEDITOR.dom.element.clearAllMarkers(x);l.selectBookmarks(k);a.focus()},refresh:function(a,b){var c=b.contains(d,1),e=b.blockLimit||b.root;c&&e.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(c){c.blockless||(c.addCommand("numberedlist",new a("numberedlist","ol")),c.addCommand("bulletedlist",new a("bulletedlist","ul")),c.ui.addButton&&(c.ui.addButton("NumberedList",{label:c.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),c.ui.addButton("BulletedList",{label:c.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),c.on("key",
function(a){var e=a.data.domEvent.getKey(),f;if("wysiwyg"==c.mode&&e in{8:1,46:1}){var g=c.getSelection().getRanges()[0],h=g&&g.startPath();if(g&&g.collapsed){var l=8==e,m=c.editable(),t=new CKEDITOR.dom.walker(g.clone());t.evaluator=function(a){return v(a)&&!x(a)};t.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};e=g.clone();if(l){var q;(q=h.contains(d))&&g.checkBoundaryOfElement(q,CKEDITOR.START)&&(q=q.getParent())&&q.is("li")&&(q=b(q))?(f=q,q=q.getPrevious(v),e.moveToPosition(q&&
x(q)?q:f,CKEDITOR.POSITION_BEFORE_START)):(t.range.setStartAt(m,CKEDITOR.POSITION_AFTER_START),t.range.setEnd(g.startContainer,g.startOffset),(q=t.previous())&&q.type==CKEDITOR.NODE_ELEMENT&&(q.getName()in d||q.is("li"))&&(q.is("li")||(t.range.selectNodeContents(q),t.reset(),t.evaluator=n,q=t.previous()),f=q,e.moveToElementEditEnd(f),e.moveToPosition(e.endPath().block,CKEDITOR.POSITION_BEFORE_END)));if(f)k(c,e,g),a.cancel();else{var D=h.contains(d);D&&g.checkBoundaryOfElement(D,CKEDITOR.START)&&(f=
D.getFirst(v),g.checkBoundaryOfElement(f,CKEDITOR.START)&&(q=D.getPrevious(v),b(f)?q&&(g.moveToElementEditEnd(q),g.select()):c.execCommand("outdent"),a.cancel()))}}else if(f=h.contains("li")){if(t.range.setEndAt(m,CKEDITOR.POSITION_BEFORE_END),l=(m=f.getLast(v))&&n(m)?m:f,h=0,(q=t.next())&&q.type==CKEDITOR.NODE_ELEMENT&&q.getName()in d&&q.equals(m)?(h=1,q=t.next()):g.checkBoundaryOfElement(l,CKEDITOR.END)&&(h=2),h&&q){g=g.clone();g.moveToElementEditStart(q);if(1==h&&(e.optimize(),!e.startContainer.equals(f))){for(f=
e.startContainer;f.is(CKEDITOR.dtd.$inline);)D=f,f=f.getParent();D&&e.moveToPosition(D,CKEDITOR.POSITION_AFTER_END)}2==h&&(e.moveToPosition(e.endPath().block,CKEDITOR.POSITION_BEFORE_END),g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START));k(c,e,g);a.cancel()}}else t.range.setEndAt(m,CKEDITOR.POSITION_BEFORE_END),(q=t.next())&&q.type==CKEDITOR.NODE_ELEMENT&&q.is(d)&&(q=q.getFirst(v),h.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(h.block.remove(),g.moveToElementEditStart(q),
g.select()):b(q)?(g.moveToElementEditStart(q),g.select()):(g=g.clone(),g.moveToElementEditStart(q),k(c,e,g)),a.cancel());setTimeout(function(){c.selectionChange(1)})}}}))}})}(),function(){CKEDITOR.plugins.add("pastefromword",{requires:"pastetools",init:function(c){var h=0,f=CKEDITOR.plugins.getPath("pastetools"),a=this.path,g=void 0===c.config.pasteFromWord_inlineImages?!0:c.config.pasteFromWord_inlineImages,f=[CKEDITOR.getUrl(f+"filter/common.js"),CKEDITOR.getUrl(f+"filter/image.js"),CKEDITOR.getUrl(a+
"filter/default.js")];c.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(a,c){h=1;a.execCommand("paste",{type:"html",notification:c&&"undefined"!==typeof c.notification?c.notification:!0})}});CKEDITOR.plugins.clipboard.addPasteButton(c,"PasteFromWord",{label:c.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});c.pasteTools.register({filters:c.config.pasteFromWordCleanupFile?[c.config.pasteFromWordCleanupFile]:f,canHandle:function(a){a=CKEDITOR.plugins.pastetools.getClipboardData(a.data,
"text/html");var c=CKEDITOR.plugins.pastetools.getContentGeneratorName(a),f=/(class="?Mso|style=["'][^"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,c=c?"microsoft"===c:f.test(a);return a&&(h||c)},handle:function(a,f){var k=a.data,b=CKEDITOR.plugins.pastetools.getClipboardData(k,"text/html"),d=CKEDITOR.plugins.pastetools.getClipboardData(k,"text/rtf"),b={dataValue:b,dataTransfer:{"text/rtf":d}};if(!1!==c.fire("pasteFromWord",b)||h){k.dontFilter=!0;if(h||!c.config.pasteFromWordPromptCleanup||confirm(c.lang.pastefromword.confirmCleanup))b.dataValue=
CKEDITOR.cleanWord(b.dataValue,c),CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&g&&CKEDITOR.pasteFilters.image&&(b.dataValue=CKEDITOR.pasteFilters.image(b.dataValue,c,d)),c.fire("afterPasteFromWord",b),k.dataValue=b.dataValue,!0===c.config.forcePasteAsPlainText?k.type="text":CKEDITOR.plugins.clipboard.isCustomCopyCutSupported||"allow-word"!==c.config.forcePasteAsPlainText||(k.type="html");h=0;f()}}})}})}(),function(){CKEDITOR.plugins.add("xml",{});CKEDITOR.xml=function(c){var h=null;if("object"==
typeof c)h=c;else if(c=(c||"").replace(/&nbsp;/g," "),"ActiveXObject"in window){try{h=new ActiveXObject("MSXML2.DOMDocument")}catch(f){try{h=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}h&&(h.async=!1,h.resolveExternals=!1,h.validateOnParse=!1,h.loadXML(c))}else window.DOMParser&&(h=(new DOMParser).parseFromString(c,"text/xml"));this.baseXml=h};CKEDITOR.xml.prototype={selectSingleNode:function(c,h){var f=this.baseXml;if(h||(h=f)){if("selectSingleNode"in h)return h.selectSingleNode(c);if(f.evaluate)return(f=
f.evaluate(c,h,null,9,null))&&f.singleNodeValue||null}return null},selectNodes:function(c,h){var f=this.baseXml,a=[];if(h||(h=f)){if("selectNodes"in h)return h.selectNodes(c);if(f.evaluate&&(f=f.evaluate(c,h,null,5,null)))for(var g;g=f.iterateNext();)a.push(g)}return a},getInnerXml:function(c,h){var f=this.selectSingleNode(c,h),a=[];if(f)for(f=f.firstChild;f;)f.xml?a.push(f.xml):window.XMLSerializer&&a.push((new XMLSerializer).serializeToString(f)),f=f.nextSibling;return a.length?a.join(""):null}}}(),
function(){CKEDITOR.plugins.add("ajax",{requires:"xml"});CKEDITOR.ajax=function(){function c(){if(!CKEDITOR.env.ie||"file:"!=location.protocol)try{return new XMLHttpRequest}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(c){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}return null}function h(a,c){if(4!=a.readyState||!(200<=a.status&&300>a.status||304==a.status||0===a.status||1223==a.status))return null;switch(c){case "text":return a.responseText;case "xml":var f=a.responseXML;
return new CKEDITOR.xml(f&&f.firstChild?f:a.responseText);case "arraybuffer":return a.response;default:return null}}function f(a,f,n){var k=!!f,b=c();if(!b)return null;k&&"text"!==n&&"xml"!==n&&(b.responseType=n);b.open("GET",a,k);k&&(b.onreadystatechange=function(){4==b.readyState&&(f(h(b,n)),b=null)});b.send(null);return k?"":h(b,n)}function a(a,f,n,k,b){var d=c();if(!d)return null;d.open("POST",a,!0);d.onreadystatechange=function(){4==d.readyState&&(k&&k(h(d,b)),d=null)};d.setRequestHeader("Content-type",
n||"application/x-www-form-urlencoded; charset\x3dUTF-8");d.send(f)}return{load:function(a,c,h){return f(a,c,h||"text")},post:function(c,f,h,k){return a(c,f,h,k,"text")},loadXml:function(a,c){return f(a,c,"xml")},loadText:function(a,c){return f(a,c,"text")},loadBinary:function(a,c){return f(a,c,"arraybuffer")}}}()}(),function(){function c(a,c){return CKEDITOR.tools.array.filter(a,function(a){return a.canHandle(c)}).sort(function(a,c){return a.priority===c.priority?0:a.priority-c.priority})}function h(a,
c){var b=a.shift();b&&b.handle(c,function(){h(a,c)})}function f(a){var c=CKEDITOR.tools.array.reduce(a,function(a,c){return CKEDITOR.tools.array.isArray(c.filters)?a.concat(c.filters):a},[]);return CKEDITOR.tools.array.filter(c,function(a,d){return CKEDITOR.tools.array.indexOf(c,a)===d})}function a(a,c){var b=0,d,e;if(!CKEDITOR.tools.array.isArray(a)||0===a.length)return!0;d=CKEDITOR.tools.array.filter(a,function(a){return-1===CKEDITOR.tools.array.indexOf(g,a)});if(0<d.length)for(e=0;e<d.length;e++)(function(a){CKEDITOR.scriptLoader.queue(a,
function(e){e&&g.push(a);++b===d.length&&c()})})(d[e]);return 0===d.length}var g=[],m=CKEDITOR.tools.createClass({$:function(){this.handlers=[]},proto:{register:function(a){"number"!==typeof a.priority&&(a.priority=10);this.handlers.push(a)},addPasteListener:function(g){g.on("paste",function(k){var b=c(this.handlers,k),d;if(0!==b.length){d=f(b);d=a(d,function(){return g.fire("paste",k.data)});if(!d)return k.cancel();h(b,k)}},this,null,3)}}});CKEDITOR.plugins.add("pastetools",{requires:["clipboard",
"ajax"],beforeInit:function(a){a.pasteTools=new m;a.pasteTools.addPasteListener(a)}});CKEDITOR.plugins.pastetools={filters:{},loadFilters:a,createFilter:function(a){var c=CKEDITOR.tools.array.isArray(a.rules)?a.rules:[a.rules],b=a.additionalTransforms;return function(a,e){var f=new CKEDITOR.htmlParser.basicWriter,g=new CKEDITOR.htmlParser.filter,h;b&&(a=b(a,e));CKEDITOR.tools.array.forEach(c,function(b){g.addRules(b(a,e,g))});h=CKEDITOR.htmlParser.fragment.fromHtml(a);g.applyTo(h);h.writeHtml(f);
return f.getHtml()}},getClipboardData:function(a,c){var b;return CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"text/html"===c?(b=a.dataTransfer.getData(c,!0))||"text/html"!==c?b:a.dataValue:null},getConfigValue:function(a,c){if(a&&a.config){var b=CKEDITOR.tools,d=a.config,e=b.object.keys(d),f=["pasteTools_"+c,"pasteFromWord_"+c,"pasteFromWord"+b.capitalize(c,!0)],f=b.array.find(f,function(a){return-1!==b.array.indexOf(e,a)});return d[f]}},getContentGeneratorName:function(a){if((a=/<meta\s+name=["']?generator["']?\s+content=["']?(\w+)/gi.exec(a))&&
a.length)return a=a[1].toLowerCase(),0===a.indexOf("microsoft")?"microsoft":0===a.indexOf("libreoffice")?"libreoffice":"unknown"}};CKEDITOR.pasteFilters=CKEDITOR.plugins.pastetools.filters}(),CKEDITOR.plugins.add("removeformat",{init:function(c){c.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);c.ui.addButton&&c.ui.addButton("RemoveFormat",{label:c.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(c){for(var h=
c._.removeFormatRegex||(c._.removeFormatRegex=new RegExp("^(?:"+c.config.removeFormatTags.replace(/,/g,"|")+")$","i")),f=c._.removeAttributes||(c._.removeAttributes=c.config.removeFormatAttributes.split(",")),a=CKEDITOR.plugins.removeformat.filter,g=c.getSelection().getRanges(),m=g.createIterator(),n=function(a){return a.type==CKEDITOR.NODE_ELEMENT},k;k=m.getNextRange();){k.enlarge(CKEDITOR.ENLARGE_INLINE);var b=k.createBookmark(),d=b.startNode,e=b.endNode,l=function(b){for(var d=c.elementPath(b),
e=d.elements,f=1,g;(g=e[f])&&!g.equals(d.block)&&!g.equals(d.blockLimit);f++)h.test(g.getName())&&a(c,g)&&b.breakParent(g)};l(d);if(e)for(l(e),d=d.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);d&&!d.equals(e);)if(d.isReadOnly()){if(d.getPosition(e)&CKEDITOR.POSITION_CONTAINS)break;d=d.getNext(n)}else l=d.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==d.getName()&&d.data("cke-realelement")||!a(c,d)||(h.test(d.getName())?d.remove(1):(d.removeAttributes(f),c.fire("removeFormatCleanup",d))),d=l;k.moveToBookmark(b)}c.forceNextSelectionCheck();
c.getSelection().selectRanges(g)}}},filter:function(c,h){for(var f=c._.removeFormatFilters||[],a=0;a<f.length;a++)if(!1===f[a](h))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(c){this._.removeFormatFilters||(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(c)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",
function(){function c(a){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(c){if(c.editable().hasFocus){var f=c.getSelection(),h;if(h=(new CKEDITOR.dom.elementPath(f.getCommonAncestor(),f.root)).contains({td:1,th:1},1)){var f=c.createRange(),b=CKEDITOR.tools.tryThese(function(){var b=h.getParent().$.cells[h.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=h.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:
0]});if(b||a)if(b)b=new CKEDITOR.dom.element(b),f.moveToElementEditStart(b),f.checkStartOfBlock()&&f.checkEndOfBlock()||f.selectNodeContents(b);else return!0;else{for(var d=h.getAscendant("table").$,b=h.getParent().$.cells,d=new CKEDITOR.dom.element(d.insertRow(-1),c.document),e=0,l=b.length;e<l;e++)d.append((new CKEDITOR.dom.element(b[e],c.document)).clone(!1,!1)).appendBogus();f.moveToElementEditStart(d)}f.select(!0);return!0}}return!1}}}var h={editorFocus:!1,modes:{wysiwyg:1,source:1}},f={exec:function(a){a.container.focusNext(!0,
a.tabIndex)}},a={exec:function(a){a.container.focusPrevious(!0,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(g){for(var m=!1!==g.config.enableTabKeyTools,n=g.config.tabSpaces||0,k="";n--;)k+=" ";if(k)g.on("key",function(a){9==a.data.keyCode&&(g.insertText(k),a.cancel())});if(m)g.on("key",function(a){(9==a.data.keyCode&&g.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&g.execCommand("selectPreviousCell"))&&a.cancel()});g.addCommand("blur",CKEDITOR.tools.extend(f,h));g.addCommand("blurBack",
CKEDITOR.tools.extend(a,h));g.addCommand("selectNextCell",c());g.addCommand("selectPreviousCell",c(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(c,h){var f=void 0===h?this.getTabIndex():h,a,g,m,n,k,b;if(0>=f)for(k=this.getNextSourceNode(c,CKEDITOR.NODE_ELEMENT);k;){if(k.isVisible()&&0===k.getTabIndex()){m=k;break}k=k.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(k=this.getDocument().getBody().getFirst();k=k.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!a)if(!g&&k.equals(this)){if(g=
!0,c){if(!(k=k.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;a=1}}else g&&!this.contains(k)&&(a=1);if(k.isVisible()&&!(0>(b=k.getTabIndex()))){if(a&&b==f){m=k;break}b>f&&(!m||!n||b<n)?(m=k,n=b):m||0!==b||(m=k,n=b)}}m&&m.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(c,h){for(var f=void 0===h?this.getTabIndex():h,a,g,m,n=0,k,b=this.getDocument().getBody().getLast();b=b.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!a)if(!g&&b.equals(this)){if(g=!0,c){if(!(b=b.getPreviousSourceNode(!0,
CKEDITOR.NODE_ELEMENT)))break;a=1}}else g&&!this.contains(b)&&(a=1);if(b.isVisible()&&!(0>(k=b.getTabIndex())))if(0>=f){if(a&&0===k){m=b;break}k>n&&(m=b,n=k)}else{if(a&&k==f){m=b;break}k<f&&(!m||k>n)&&(m=b,n=k)}}m&&m.focus()},"use strict",function(){function c(a,c){return CKEDITOR.tools.array.reduce(c,function(a,b){return b(a)},a)}var h=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],f={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(b){function c(a){f.enabled&&!1!==a.data.command.canUndo&&
f.save()}function e(){f.enabled=b.readOnly?!1:"wysiwyg"==b.mode;f.onChange()}var f=b.undoManager=new a(b),g=f.editingHandler=new n(f),k=b.addCommand("undo",{exec:function(){f.undo()&&(b.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),m=b.addCommand("redo",{exec:function(){f.redo()&&(b.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});b.setKeystroke([[h[0],"undo"],[h[1],"redo"],[h[2],"redo"]]);f.onChange=function(){k.setState(f.undoable()?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED);m.setState(f.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};b.on("beforeCommandExec",c);b.on("afterCommandExec",c);b.on("saveSnapshot",function(a){f.save(a.data&&a.data.contentOnly)});b.on("contentDom",g.attachListeners,g);b.on("instanceReady",function(){b.fire("saveSnapshot")});b.on("beforeModeUnload",function(){"wysiwyg"==b.mode&&f.save(!0)});b.on("mode",e);b.on("readOnly",e);b.ui.addButton&&(b.ui.addButton("Undo",{label:b.lang.undo.undo,command:"undo",
toolbar:"undo,10"}),b.ui.addButton("Redo",{label:b.lang.undo.redo,command:"redo",toolbar:"undo,20"}));b.resetUndo=function(){f.reset();b.fire("saveSnapshot")};b.on("updateSnapshot",function(){f.currentImage&&f.update()});b.on("lockSnapshot",function(a){a=a.data;f.lock(a&&a.dontUpdate,a&&a.forceUpdate)});b.on("unlockSnapshot",f.unlock,f)}});CKEDITOR.plugins.undo={};var a=CKEDITOR.plugins.undo.UndoManager=function(a){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=a.config.undoStackSize||
20;this.strokesLimit=25;this._filterRules=[];this.editor=a;this.reset();CKEDITOR.env.ie&&this.addFilterRule(function(a){return a.replace(/\s+data-cke-expando=".*?"/g,"")})};a.prototype={type:function(b,c){var e=a.getKeyGroup(b),f=this.strokesRecorded[e]+1;c=c||f>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());c?(f=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[e]=f;this.previousKeyGroup=e},keyGroupChanged:function(b){return a.getKeyGroup(b)!=
this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(a,c,e){var f=this.editor;if(this.locked||"ready"!=f.status||"wysiwyg"!=f.mode)return!1;var h=f.editable();if(!h||
"ready"!=h.status)return!1;h=this.snapshots;c||(c=new g(f));if(!1===c.contents)return!1;if(this.currentImage)if(c.equalsContent(this.currentImage)){if(a||c.equalsSelection(this.currentImage))return!1}else!1!==e&&f.fire("change");h.splice(this.index+1,h.length-this.index-1);h.length==this.limit&&h.shift();this.index=h.push(c)-1;this.currentImage=c;!1!==e&&this.refreshState();return!0},restoreImage:function(a){var c=this.editor,e;a.bookmarks&&(c.focus(),e=c.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();c.fire("change")},getNextImage:function(a){var c=this.snapshots,e=this.currentImage,f;if(e)if(a)for(f=this.index-1;0<=f;f--){if(a=c[f],!e.equalsContent(a))return a.index=f,a}else for(f=this.index+1;f<c.length;f++)if(a=c[f],!e.equalsContent(a))return a.index=
f,a;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var a=this.getNextImage(!0);if(a)return this.restoreImage(a),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var a=this.getNextImage(!1);if(a)return this.restoreImage(a),!0}return!1},update:function(a){if(!this.locked){a||(a=new g(this.editor));for(var c=this.index,e=this.snapshots;0<c&&this.currentImage.equalsContent(e[c-
1]);)--c;e.splice(c,this.index-c+1,a);this.index=c;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return!1;var c=this.snapshots,e=c[c.length-1];return e.equalsContent(a)&&!e.equalsSelection(a)?(this.currentImage=c[c.length-1]=a,!0):!1},lock:function(a,c){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var e=null;if(c)e=!0;else{var f=new g(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(f)&&(e=f)}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 c=new g(this.editor,!0);a.equalsContent(c)||this.update()}}},addFilterRule:function(a){this._filterRules.push(a)}};a.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};a.keyGroups={PRINTABLE:0,FUNCTIONAL:1};a.isNavigationKey=function(b){return!!a.navigationKeyCodes[b]};a.getKeyGroup=function(b){var c=a.keyGroups;return f[b]?c.FUNCTIONAL:c.PRINTABLE};a.getOppositeKeyGroup=
function(b){var c=a.keyGroups;return b==c.FUNCTIONAL?c.PRINTABLE:c.FUNCTIONAL};a.ieFunctionalKeysBug=function(b){return CKEDITOR.env.ie&&a.getKeyGroup(b)==a.keyGroups.FUNCTIONAL};var g=CKEDITOR.plugins.undo.Image=function(a,d){this.editor=a;a.fire("beforeUndoImage");var e=a.getSnapshot();e&&(this.contents=c(e,a.undoManager._filterRules));d||(this.bookmarks=(e=e&&a.getSelection())&&e.createBookmarks2(!0));a.fire("afterUndoImage")},m=/\b(?:href|src|name)="[^"]*?"/gi;g.prototype={equalsContent:function(a){var c=
this.contents;a=a.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(c=c.replace(m,""),a=a.replace(m,""));return c!=a?!1:!0},equalsSelection:function(a){var c=this.bookmarks;a=a.bookmarks;if(c||a){if(!c||!a||c.length!=a.length)return!1;for(var e=0;e<c.length;e++){var f=c[e],g=a[e];if(f.startOffset!=g.startOffset||f.endOffset!=g.endOffset||!CKEDITOR.tools.arrayCompare(f.start,g.start)||!CKEDITOR.tools.arrayCompare(f.end,g.end))return!1}}return!0}};var n=CKEDITOR.plugins.undo.NativeEditingHandler=
function(a){this.undoManager=a;this.ignoreInputEvent=!1;this.keyEventsStack=new k;this.lastKeydownImage=null};n.prototype={onKeydown:function(b){var c=b.data.getKey();if(229!==c)if(-1<CKEDITOR.tools.indexOf(h,b.data.getKeystroke()))b.data.preventDefault();else if(this.keyEventsStack.cleanUp(b),b=this.undoManager,this.keyEventsStack.getLast(c)||this.keyEventsStack.push(c),this.lastKeydownImage=new g(b.editor),a.isNavigationKey(c)||this.undoManager.keyGroupChanged(c))if(b.strokesRecorded[0]||b.strokesRecorded[1])b.save(!1,
this.lastKeydownImage,!1),b.resetType()},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var a=this.keyEventsStack.getLast();a||(a=this.keyEventsStack.push(0));this.keyEventsStack.increment(a.keyCode);this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(a.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(b){var c=this.undoManager;b=b.data.getKey();var e=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(b);
if(!(a.ieFunctionalKeysBug(b)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new g(c.editor,!0))))if(0<e)c.type(b);else if(a.isNavigationKey(b))this.onNavigationKey(!0)},onNavigationKey:function(a){var c=this.undoManager;!a&&c.save(!0,null,!1)||c.updateSelection(new g(c.editor));c.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},activateInputEventListener:function(){this.ignoreInputEvent=!1},attachListeners:function(){var b=this.undoManager.editor,c=b.editable(),
e=this;c.attachListener(c,"keydown",function(b){e.onKeydown(b);if(a.ieFunctionalKeysBug(b.data.getKey()))e.onInput()},null,null,999);c.attachListener(c,CKEDITOR.env.ie?"keypress":"input",e.onInput,e,null,999);c.attachListener(c,"keyup",e.onKeyup,e,null,999);c.attachListener(c,"paste",e.ignoreInputEventListener,e,null,999);c.attachListener(c,"drop",e.ignoreInputEventListener,e,null,999);b.on("afterPaste",e.activateInputEventListener,e,null,999);c.attachListener(c.isInline()?c:b.document.getDocumentElement(),
"click",function(){e.onNavigationKey()},null,null,999);c.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 c=this.stack.length;c--;)if(this.stack[c].keyCode==a)return c;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,c=0;a--;)c+=this.stack[a].inputs;return c},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 c(a,c){CKEDITOR.tools.extend(this,{editor:a,editable:a.editable(),doc:a.document,win:a.window},c,!0);this.inline=this.editable.isInline();this.inline||(this.frame=this.win.getFrame());this.target=this[this.inline?"editable":"doc"]}function h(a,c){CKEDITOR.tools.extend(this,c,{editor:a},!0)}function f(a,c){var e=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:e,inline:e.isInline(),doc:a.document,win:a.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},
c,!0);this.hidden={};this.visible={};this.inline||(this.frame=this.win.getFrame());this.queryViewport();var f=CKEDITOR.tools.bind(this.queryViewport,this),h=CKEDITOR.tools.bind(this.hideVisible,this),k=CKEDITOR.tools.bind(this.removeAll,this);e.attachListener(this.winTop,"resize",f);e.attachListener(this.winTop,"scroll",f);e.attachListener(this.winTop,"resize",h);e.attachListener(this.win,"scroll",h);e.attachListener(this.inline?e: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);e.attachListener(a,"resize",f);e.attachListener(a,"mode",k);a.on("destroy",k);this.lineTpl=(new CKEDITOR.template('\x3cdiv data-cke-lineutils-line\x3d"1" class\x3d"cke_reset_all" style\x3d"{lineStyle}"\x3e\x3cspan style\x3d"{tipLeftStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3cspan style\x3d"{tipRightStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3c/div\x3e')).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},
m,this.lineStyle,!0)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},g,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},g,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,!0))})}function a(a){var c;if(c=a&&a.type==CKEDITOR.NODE_ELEMENT)c=!(n[a.getComputedStyle("float")]||n[a.getAttribute("align")]);return c&&
!k[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;c.prototype={start:function(a){var c=this,e=this.editor,f=this.doc,g,h,k,m,n=CKEDITOR.tools.eventsBuffer(50,function(){e.readOnly||"wysiwyg"!=e.mode||(c.relations={},(h=f.$.elementFromPoint(k,m))&&h.nodeType&&(g=new CKEDITOR.dom.element(h),c.traverseSearch(g),isNaN(k+m)||c.pixelSearch(g,k,m),a&&a(c.relations,k,m)))});this.listener=this.editable.attachListener(this.target,
"mousemove",function(a){k=a.data.$.clientX;m=a.data.$.clientY;n.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){n.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(c){var e=this.editor.createRange();e.moveToPosition(this.relations[c.uid].element,
a[c.type]);return e}}(),store:function(){function b(a,b,c){var f=a.getUniqueId();f in c?c[f].type|=b:c[f]={element:a,type:b}}return function(c,e){var f;e&CKEDITOR.LINEUTILS_AFTER&&a(f=c.getNext())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),e^=CKEDITOR.LINEUTILS_AFTER);e&CKEDITOR.LINEUTILS_INSIDE&&a(f=c.getFirst())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),e^=CKEDITOR.LINEUTILS_INSIDE);b(c,e,this.relations)}}(),traverseSearch:function(b){var c,e,f;do if(f=b.$["data-cke-expando"],
!(f&&f in this.relations)){if(b.equals(this.editable))break;if(a(b))for(c in this.lookups)(e=this.lookups[c](b))&&this.store(b,e)}while((!b||b.type!=CKEDITOR.NODE_ELEMENT||"true"!=b.getAttribute("contenteditable"))&&(b=b.getParent()))},pixelSearch:function(){function b(b,f,g,h,k){for(var m=0,n;k(g);){g+=h;if(25==++m)break;if(n=this.doc.$.elementFromPoint(f,g))if(n==b)m=0;else if(c(b,n)&&(m=0,a(n=new CKEDITOR.dom.element(n))))return n}}var c=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a,b){return a.contains(b)}:
function(a,b){return!!(a.compareDocumentPosition(b)&16)};return function(c,d,f){var g=this.win.getViewPaneSize().height,h=b.call(this,c.$,d,f,-1,function(a){return 0<a});d=b.call(this,c.$,d,f,1,function(a){return a<g});if(h)for(this.traverseSearch(h);!h.getParent().equals(c);)h=h.getParent();if(d)for(this.traverseSearch(d);!d.getParent().equals(c);)d=d.getParent();for(;h||d;){h&&(h=h.getNext(a));if(!h||h.equals(d))break;this.traverseSearch(h);d&&(d=d.getPrevious(a));if(!d||d.equals(h))break;this.traverseSearch(d)}}}(),
greedySearch:function(){this.relations={};for(var b=this.editable.getElementsByTag("*"),c=0,e,f,g;e=b.getItem(c++);)if(!e.equals(this.editable)&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasAttribute("contenteditable")||!e.isReadOnly())&&a(e)&&e.isVisible())for(g in this.lookups)(f=this.lookups[g](e))&&this.store(e,f);return this.relations}};h.prototype={locate:function(){function b(b,c){var f=b.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return f&&a(f)?(b.siblingRect=f.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(a){var c;this.locations={};for(var f in a)c=a[f],c.elementRect=c.element.getClientRect(),c.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(f,CKEDITOR.LINEUTILS_BEFORE,b(c,CKEDITOR.LINEUTILS_BEFORE)),c.type&CKEDITOR.LINEUTILS_AFTER&&this.store(f,CKEDITOR.LINEUTILS_AFTER,b(c,CKEDITOR.LINEUTILS_AFTER)),c.type&
CKEDITOR.LINEUTILS_INSIDE&&this.store(f,CKEDITOR.LINEUTILS_INSIDE,(c.elementRect.top+c.elementRect.bottom)/2);return this.locations}}(),sort:function(){var a,c,e,f;return function(g,h){a=this.locations;c=[];for(var k in a)for(var m in a[k])if(e=Math.abs(g-a[k][m]),c.length){for(f=0;f<c.length;f++)if(e<c[f].dist){c.splice(f,0,{uid:+k,type:m,dist:e});break}f==c.length&&c.push({uid:+k,type:m,dist:e})}else c.push({uid:+k,type:m,dist:e});return"undefined"!=typeof h?c.slice(0,h):c}}(),store:function(a,
c,e){this.locations[a]||(this.locations[a]={});this.locations[a][c]=e}};var g={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},m={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999};f.prototype={removeAll:function(){for(var 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 c=a.getUniqueId();
a.hide();this.hidden[c]=a;delete this.visible[c]},showLine:function(a){var c=a.getUniqueId();a.show();this.visible[c]=a;delete this.hidden[c]},hideVisible:function(){for(var a in this.visible)this.hideLine(this.visible[a])},placeLine:function(a,c){var e,f,g;if(e=this.getStyle(a.uid,a.type)){for(g in this.visible)if(this.visible[g].getCustomData("hash")!==this.hash){f=this.visible[g];break}if(!f)for(g in this.hidden)if(this.hidden[g].getCustomData("hash")!==this.hash){this.showLine(f=this.hidden[g]);
break}f||this.showLine(f=this.addLine());f.setCustomData("hash",this.hash);this.visible[f.getUniqueId()]=f;f.setStyles(e);c&&c(f)}},getStyle:function(a,c){var e=this.relations[a],f=this.locations[a][c],g={};g.width=e.siblingRect?Math.max(e.siblingRect.width,e.elementRect.width):e.elementRect.width;g.top=this.inline?f+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+f;if(g.top-this.winTopScroll.y<this.rect.top||g.top-this.winTopScroll.y>this.rect.bottom)return!1;this.inline?
g.left=e.elementRect.left-this.rect.relativeX:(0<e.elementRect.left?g.left=this.rect.left+e.elementRect.left:(g.width+=e.elementRect.left,g.left=this.rect.left),0<(e=g.left+g.width-(this.rect.left+this.winPane.width))&&(g.width-=e));g.left+=this.winTopScroll.x;for(var h in g)g[h]=CKEDITOR.tools.cssLength(g[h]);return g},addLine:function(){var a=CKEDITOR.dom.element.createFromHtml(this.lineTpl);a.appendTo(this.container);return a},prepare:function(a,c){this.relations=a;this.locations=c;this.hash=Math.random()},
cleanup:function(){var a,c;for(c in this.visible)a=this.visible[c],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 c=this.container.getDocumentPosition(),e=this.container.getComputedStyle("position");a.relativeX=a.relativeY=
0;"static"!=e&&(a.relativeY=c.y,a.relativeX=c.x,a.top-=a.relativeY,a.bottom-=a.relativeY,a.left-=a.relativeX,a.right-=a.relativeX);return a}};var n={left:1,right:1,center:1},k={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:c,locator:h,liner:f}}(),function(){function c(c){return c.getName&&!c.hasAttribute("data-cke-temp")}CKEDITOR.plugins.add("widgetselection",{init:function(c){if(CKEDITOR.env.webkit){var f=CKEDITOR.plugins.widgetselection;c.on("contentDom",function(a){a=a.editor;var c=a.editable();
c.attachListener(c,"keydown",function(a){a.data.getKeystroke()==CKEDITOR.CTRL+65&&CKEDITOR.tools.setTimeout(function(){f.addFillers(c)||f.removeFillers(c)},0)},null,null,-1);a.on("selectionCheck",function(a){f.removeFillers(a.editor.editable())});a.on("paste",function(a){a.data.dataValue=f.cleanPasteData(a.data.dataValue)});"selectall"in a.plugins&&f.addSelectAllIntegration(a)})}}});CKEDITOR.plugins.widgetselection={startFiller:null,endFiller:null,fillerAttribute:"data-cke-filler-webkit",fillerContent:"\x26nbsp;",
fillerTagName:"div",addFillers:function(h){var f=h.editor;if(!this.isWholeContentSelected(h)&&0<h.getChildCount()){var a=h.getFirst(c),g=h.getLast(c);a&&a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable()&&(this.startFiller=this.createFiller(),h.append(this.startFiller,1));g&&g.type==CKEDITOR.NODE_ELEMENT&&!g.isEditable()&&(this.endFiller=this.createFiller(!0),h.append(this.endFiller,0));if(this.hasFiller(h))return f=f.createRange(),f.selectNodeContents(h),f.select(),!0}return!1},removeFillers:function(c){if(this.hasFiller(c)&&
!this.isWholeContentSelected(c)){var f=c.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dstart]"),a=c.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dend]");this.startFiller&&f&&this.startFiller.equals(f)?this.removeFiller(this.startFiller,c):this.startFiller=f;this.endFiller&&a&&this.endFiller.equals(a)?this.removeFiller(this.endFiller,c):this.endFiller=a}},cleanPasteData:function(c){c&&c.length&&(c=c.replace(this.createFillerRegex(),"").replace(this.createFillerRegex(!0),""));
return c},isWholeContentSelected:function(c){var f=c.editor.getSelection().getRanges()[0];return!f||f&&f.collapsed?!1:(f=f.clone(),f.enlarge(CKEDITOR.ENLARGE_ELEMENT),!!(f&&c&&f.startContainer&&f.endContainer&&0===f.startOffset&&f.endOffset===c.getChildCount()&&f.startContainer.equals(c)&&f.endContainer.equals(c)))},hasFiller:function(c){return 0<c.find(this.fillerTagName+"["+this.fillerAttribute+"]").count()},createFiller:function(c){var f=new CKEDITOR.dom.element(this.fillerTagName);f.setHtml(this.fillerContent);
f.setAttribute(this.fillerAttribute,c?"end":"start");f.setAttribute("data-cke-temp",1);f.setStyles({display:"block",width:0,height:0,padding:0,border:0,margin:0,position:"absolute",top:0,left:"-9999px",opacity:0,overflow:"hidden"});return f},removeFiller:function(c,f){if(c){var a=f.editor,g=f.editor.getSelection().getRanges()[0].startPath(),m=a.createRange(),n,k;g.contains(c)&&(n=c.getHtml(),k=!0);g="start"==c.getAttribute(this.fillerAttribute);c.remove();n&&0<n.length&&n!=this.fillerContent?(f.insertHtmlIntoRange(n,
a.getSelection().getRanges()[0]),m.setStartAt(f.getChild(f.getChildCount()-1),CKEDITOR.POSITION_BEFORE_END),a.getSelection().selectRanges([m])):k&&(g?m.setStartAt(f.getFirst().getNext(),CKEDITOR.POSITION_AFTER_START):m.setEndAt(f.getLast().getPrevious(),CKEDITOR.POSITION_BEFORE_END),f.editor.getSelection().selectRanges([m]))}},createFillerRegex:function(c){var f=this.createFiller(c).getOuterHtml().replace(/style="[^"]*"/gi,'style\x3d"[^"]*"').replace(/>[^<]*</gi,"\x3e[^\x3c]*\x3c");return new RegExp((c?
"":"^")+f+(c?"$":""))},addSelectAllIntegration:function(c){var f=this;c.editable().attachListener(c,"beforeCommandExec",function(a){var g=c.editable();"selectAll"==a.data.name&&g&&f.addFillers(g)},null,null,9999)}}}(),"use strict",function(){function c(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};K(this);F(this);this.on("checkWidgets",n);this.editor.on("contentDomInvalidated",
this.checkWidgets,this);C(this);p(this);y(this);w(this);A(this)}function h(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:h.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);E(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;ea(this);this.fire("data",this.data);this.isInited()&&f.editable().contains(this.wrapper)&&(this.ready=!0,this.fire("ready"))}function f(a,b,c){CKEDITOR.dom.element.call(this,b.$);this.editor=a;this._={};b=this.filter=c.filter;CKEDITOR.dtd[this.getName()].p?
(this.enterMode=b?b.getAllowedEnterMode(a.enterMode):a.enterMode,this.shiftEnterMode=b?b.getAllowedEnterMode(a.shiftEnterMode,!0):a.shiftEnterMode):this.enterMode=this.shiftEnterMode=CKEDITOR.ENTER_BR}function a(a,b){a.addCommand(b.name,{exec:function(a,c){function d(){a.widgets.finalizeCreation(h)}var e=a.widgets.focused;if(e&&e.name==b.name)e.edit();else if(b.insert)b.insert({editor:a,commandData:c});else if(b.template){var e="function"==typeof b.defaults?b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e),
a.document),f,g=a.widgets.wrapElement(e,b.name),h=new CKEDITOR.dom.documentFragment(g.getDocument());h.append(g);(f=a.widgets.initOn(e,b,c&&c.startupData))?(e=f.once("edit",function(b){if(b.data.dialog)f.once("dialog",function(b){b=b.data;var c,e;c=b.once("ok",d,null,null,20);e=b.once("cancel",function(b){b.data&&!1===b.data.hide||a.widgets.destroy(f,!0)});b.once("hide",function(){c.removeListener();e.removeListener()})});else d()},null,null,999),f.edit(),e.removeListener()):d()}},allowedContent:b.allowedContent,
requiredContent:b.requiredContent,contentForms:b.contentForms,contentTransformations:b.contentTransformations})}function g(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 n(a){a=a.data;if("wysiwyg"==this.editor.mode){var b=this.editor.editable(),c=this.instances,d,e,f,g;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(g=!this.getByElement(f,
!0)){a:{g=q;for(var l=f;l=l.getParent();)if(g(l)){g=!0;break a}g=!1}g=!g}g&&b.contains(f)&&(f.addClass("cke_widget_new"),c.push(this.initOn(f.getFirst(h.isDomWidgetElement))))}}a&&a.focusInited&&1==c.length&&c[0].focus()}}}function k(a){if("undefined"!=typeof a.attributes&&a.attributes["data-widget"]){var c=b(a),e=d(a),f=!1;c&&c.value&&c.value.match(/^\s/g)&&(c.parent.attributes["data-cke-white-space-first"]=1,c.value=c.value.replace(/^\s/g,"\x26nbsp;"),f=!0);e&&e.value&&e.value.match(/\s$/g)&&(e.parent.attributes["data-cke-white-space-last"]=
1,e.value=e.value.replace(/\s$/g,"\x26nbsp;"),f=!0);f&&(a.attributes["data-cke-widget-white-space"]=1)}}function b(a){return a.find(function(a){return 3===a.type},!0).shift()}function d(a){return a.find(function(a){return 3===a.type},!0).pop()}function e(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 l(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,iterator:function(a){var e,f,g,k,l;if("data-cke-widget-wrapper"in a.attributes)return(a=a.getFirst(h.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],g={},f=e[0](a,g))return f instanceof CKEDITOR.htmlParser.element&&(a=f),a.attributes["data-cke-widget-data"]=
encodeURIComponent(JSON.stringify(g)),a.attributes["data-cke-widget-upcasted"]=1,b.push([a,e[1]]),!1}}}}function v(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 x(a,b,c){if(a.type==CKEDITOR.NODE_ELEMENT){var d=CKEDITOR.dtd[a.name];if(d&&!d[c.name]){var d=a.split(b),e=a.parent;b=d.getIndex();a.children.length||(--b,a.remove());d.children.length||
d.remove();return x(e,b,c)}}a.add(c,b)}function t(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 z(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,!0))return b.fire("contextMenu",{})})}function r(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;h.isDomDragHandler(d)&&(d=a.getByElement(d),c.data.dataTransfer.setData("cke/widget-id",
d.id),b.focus(),d.focus())});b.on("drop",function(c){function d(a,b){return a&&b?a.wrapper.equals(b.wrapper)||a.wrapper.contains(b.wrapper):!1}var e=c.data.dataTransfer,f=e.getData("cke/widget-id"),g=e.getTransferType(b),e=b.createRange(),h=function(a){a=a.getBoundaryNodes().startNode;a.type!==CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return b.widgets.getByElement(a)}(c.data.dropRange);if(""!==f&&g===CKEDITOR.DATA_TRANSFER_CROSS_EDITORS)c.cancel();else if(g==CKEDITOR.DATA_TRANSFER_INTERNAL)if(""===
f&&0<b.widgets.selected.length)c.data.dataTransfer.setData("text/html",J(b));else if(f=a.instances[f])d(f,h)?c.cancel():(e.setStartBefore(f.wrapper),e.setEndAfter(f.wrapper),c.data.dragRange=e,delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount,delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount,c.data.dataTransfer.setData("text/html",f.getClipboardHtml()),b.widgets.destroy(f,!0))});b.on("contentDom",function(){var d=b.editable();CKEDITOR.tools.extend(a,{finder:new c.finder(b,
{lookups:{"default":function(b){if(!b.is(CKEDITOR.dtd.$listItem)&&b.is(CKEDITOR.dtd.$block)&&!h.isDomNestedEditable(b)&&!a._.draggedWidget.wrapper.contains(b)){var c=h.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 p(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()):h.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&&!h.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(d){1>
a.selected.length||O(c,"cut"===d.name)}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,"copy",b);a.attachListener(a,"cut",b)})}function C(a){function b(){var a=e.getSelection();if(a&&(a=a.getRanges()[0])&&!a.collapsed){var d=c(a.startContainer),f=c(a.endContainer);!d&&f?(a.setEndBefore(f.wrapper),a.select()):d&&!f&&(a.setStartAfter(d.wrapper),a.select())}}function c(a){return a?a.type==CKEDITOR.NODE_TEXT?c(a.getParent()):e.widgets.getByElement(a):null}function d(){a.fire("checkSelection")}
var e=a.editor;e.on("selectionCheck",d);e.on("contentDom",function(){e.editable().attachListener(e,"key",function(){setTimeout(d,10)})});if(!CKEDITOR.env.ie)a.on("checkSelection",b);a.on("checkSelection",a.checkSelection,a);e.on("selectionChange",function(b){var c=(b=h.getNestedEditable(e.editable(),b.data.selection.getStartElement()))&&a.getByElement(b),d=a.widgetHoldingFocusedEditable;d?d===c&&d.focusedEditable.equals(b)||(u(a,d,null),c&&b&&u(a,c,b)):c&&b&&u(a,c,b)});e.on("dataReady",function(){D(a).commit()});
e.on("blur",function(){var b;(b=a.focused)&&m(a,b);(b=a.widgetHoldingFocusedEditable)&&u(a,b,null)})}function F(a){var c=a.editor,e={};c.on("toDataFormat",function(c){var f=CKEDITOR.tools.getNextNumber(),g=[];c.data.downcastingSessionId=f;e[f]=g;c.data.dataValue.forEach(function(c){var e=c.attributes,f;if("data-cke-widget-white-space"in e){f=b(c);var k=d(c);f.parent.attributes["data-cke-white-space-first"]&&(f.value=f.value.replace(/^&nbsp;/g," "));k.parent.attributes["data-cke-white-space-last"]&&
(k.value=k.value.replace(/&nbsp;$/g," "))}if("data-cke-widget-id"in e){if(e=a.instances[e["data-cke-widget-id"]])f=c.getFirst(h.isParserWidgetElement),g.push({wrapper:c,element:f,widget:e,editables:{}}),"1"!=f.attributes["data-cke-widget-keep-attr"]&&delete f.attributes["data-widget"]}else if("data-cke-widget-editable"in e)return 0<g.length&&(g[g.length-1].editables[e["data-cke-widget-editable"]]=c),!1},CKEDITOR.NODE_ELEMENT,!0)},null,null,8);c.on("toDataFormat",function(a){if(a.data.downcastingSessionId)for(var b=
e[a.data.downcastingSessionId],c,d,f,g,h,k;c=b.shift();){d=c.widget;f=c.element;g=d._.downcastFn&&d._.downcastFn.call(d,f);a.data.widgetsCopy&&d.getClipboardHtml&&(g=CKEDITOR.htmlParser.fragment.fromHtml(d.getClipboardHtml()),g=g.children[0]);for(k in c.editables)h=c.editables[k],delete h.attributes.contenteditable,h.setHtml(d.editables[k].getData());g||(g=f);c.wrapper.replaceWith(g)}},null,null,13);c.on("contentDomUnload",function(){a.destroyAll(!0)})}function K(a){var b=a.editor,c,d;b.on("toHtml",
function(b){var d=l(a),e;for(b.data.dataValue.forEach(d.iterator,CKEDITOR.NODE_ELEMENT,!0);e=d.toBeWrapped.pop();){var f=e[0],g=f.parent;g.type==CKEDITOR.NODE_ELEMENT&&g.attributes["data-cke-widget-wrapper"]&&g.replaceWith(f);a.wrapElement(e[0],e[1])}c=b.data.protectedWhitespaces?3==b.data.dataValue.children.length&&h.isParserWidgetWrapper(b.data.dataValue.children[1]):1==b.data.dataValue.children.length&&h.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,g=0,k=c.count();g<k;++g)e=c.getItem(g),f=e.getFirst(h.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(Q,r);a.range&&(a=h.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 D(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){a&&a.addFilterRule(function(a){return a.replace(/\s*cke_widget_selected/g,"").replace(/\s*cke_widget_focused/g,"").replace(/<span[^>]*cke_widget_drag_handler_container[^>]*.*?<\/span>/gmi,
"")})}function G(a,b,c){var d=0;b=L(b);var e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)c?e[f]||(d=e[f]=1):e[f]&&(delete e[f],d=1);d&&a.setData("classes",e)}}function B(a){a.cancel()}function O(a,b){var c=a.widgets.focused,d,e,f;ga.hasCopyBin(a)||(e=new ga(a,{beforeDestroy:function(){!b&&c&&c.focus();f&&a.getSelection().selectBookmarks(f);d&&CKEDITOR.plugins.widgetselection.addFillers(a.editable())},afterDestroy:function(){b&&!a.readOnly&&(c?a.widgets.del(c):a.extractSelectedHtml(),
a.fire("saveSnapshot"))}}),c||(d=CKEDITOR.env.webkit&&CKEDITOR.plugins.widgetselection.isWholeContentSelected(a.editable()),f=a.getSelection().createBookmarks(!0)),e.handle(J(a)))}function L(a){return(a=(a=a.getDefinition().attributes)&&a["class"])?a.split(/\s+/):null}function N(){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 P(){CKEDITOR.env.gecko&&this.editor.unlockSelection();CKEDITOR.env.webkit||
(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function J(a){var b=a.getSelectedHtml(!0);if(a.widgets.focused)return a.widgets.focused.getClipboardHtml();a.once("toDataFormat",function(a){a.data.widgetsCopy=!0},null,null,-1);return a.dataProcessor.toDataFormat(b)}function E(a,b){I(a);fa(a);T(a);W(a);S(a);Z(a);ca(a);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)a.wrapper.on("dragstart",function(b){var c=b.data.getTarget();h.getNestedEditable(a,c)||a.inline&&h.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){O(a.editor,b==CKEDITOR.CTRL+88);return}if(b in R||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 I(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",
a.id)}function fa(a,b){a.partSelectors||(a.partSelectors=a.parts);if(a.parts){var c={},d,e;for(e in a.partSelectors)b||!a.parts[e]||"string"==typeof a.parts[e]?(d=a.wrapper.findOne(a.partSelectors[e]),c[e]=d):c[e]=a.parts[e];a.parts=c}}function T(a){var b=a.editables,c,d;a.editables={};if(a.editables)for(c in b)d=b[c],a.initEditable(c,"string"==typeof d?{selector:d}:d)}function W(a){if(!0===a.mask)ja(a);else if(a.mask){var b=new CKEDITOR.tools.buffers.throttle(250,V,a),c=CKEDITOR.env.gecko?300:0,
d,e;a.on("focus",function(){b.input();d=a.editor.on("change",b.input);e=a.on("blur",function(){d.removeListener();e.removeListener()})});a.editor.on("instanceReady",function(){setTimeout(function(){b.input()},c)});a.editor.on("mode",function(){setTimeout(function(){b.input()},c)});if(CKEDITOR.env.gecko){var f=a.element.find("img");CKEDITOR.tools.array.forEach(f.toArray(),function(a){a.on("load",function(){b.input()})})}for(var g in a.editables)a.editables[g].on("focus",function(){a.editor.on("change",
b.input);e&&e.removeListener()}),a.editables[g].on("blur",function(){a.editor.removeListener("change",b.input)});b.input()}}function ja(a){var b=a.wrapper.findOne(".cke_widget_mask");b||(b=new CKEDITOR.dom.element("img",a.editor.document),b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"}),a.wrapper.append(b));a.mask=b}function V(){if(this.wrapper){this.maskPart=this.maskPart||this.mask;var a=this.parts[this.maskPart],b;if(a&&"string"!=typeof a){b=this.wrapper.findOne(".cke_widget_partial_mask");
b||(b=new CKEDITOR.dom.element("img",this.editor.document),b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_partial_mask"}),this.wrapper.append(b));this.mask=b;var c=b.$,d=a.$,e=!(c.offsetTop==d.offsetTop&&c.offsetLeft==d.offsetLeft);if(c.offsetWidth!=d.offsetWidth||c.offsetHeight!=d.offsetHeight||e)c=a.getParent(),d=CKEDITOR.plugins.widget.isDomWidget(c),b.setStyles({top:a.$.offsetTop+(d?0:c.$.offsetTop)+"px",left:a.$.offsetLeft+(d?0:c.$.offsetLeft)+"px",width:a.$.offsetWidth+
"px",height:a.$.offsetHeight+"px"})}}}function S(a){if(a.draggable){var b=a.editor,c=a.wrapper.getLast(h.isDomDragHandlerContainer),d;c?d=c.findOne("img"):(c=new CKEDITOR.dom.element("span",b.document),c.setAttributes({"class":"cke_reset cke_widget_drag_handler_container",style:"background:rgba(220,220,220,0.5);background-image:url("+b.plugins.widget.path+"images/handle.png);display:none;"}),d=new CKEDITOR.dom.element("img",b.document),d.setAttributes({"class":"cke_reset cke_widget_drag_handler",
"data-cke-widget-drag-handler":"1",src:CKEDITOR.tools.transparentImageData,width:15,title:b.lang.widget.move,height:15,role:"presentation"}),a.inline&&d.setAttribute("draggable","true"),c.append(d),a.wrapper.append(c));a.wrapper.on("dragover",function(a){a.data.preventDefault()});a.wrapper.on("mouseenter",a.updateDragHandlerPosition,a);setTimeout(function(){a.on("data",a.updateDragHandlerPosition,a)},50);if(!a.inline&&(d.on("mousedown",U,a),CKEDITOR.env.ie&&9>CKEDITOR.env.version))d.on("dragstart",
function(a){a.data.preventDefault(!0)});a.dragHandlerContainer=c}}function U(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 Z(a){var b=null;a.on("data",function(){var a=this.data.classes,c;if(b!=a){for(c in b)a&&a[c]||this.removeClass(c);for(c in a)this.addClass(c);b=a}})}function ca(a){a.on("data",function(){if(a.wrapper){var b=this.getLabel?this.getLabel():this.editor.lang.widget.label.replace(/%1/,this.pathName||this.element.getName());a.wrapper.setAttribute("role","region");a.wrapper.setAttribute("aria-label",b)}},null,null,9999)}function ea(a){a.element.data("cke-widget-data",
encodeURIComponent(JSON.stringify(a.data)))}function X(){function a(){}function b(a,c,d){return d&&this.checkElement(a)?(a=d.widgets.getByElement(a,!0))&&a.checkStyleActive(this):!1}function c(a){function b(a,c,d){for(var e=a.length,f=0;f<e;){if(c.call(d,a[f],f,a))return a[f];f++}}function e(a){function b(a,c){var d=CKEDITOR.tools.object.keys(a),e=CKEDITOR.tools.object.keys(c);if(d.length!==e.length)return!1;for(var f in a)if(("object"!==typeof a[f]||"object"!==typeof c[f]||!b(a[f],c[f]))&&a[f]!==
c[f])return!1;return!0}return function(c){return b(a.getDefinition(),c.getDefinition())}}var f=a.widget,g;d[f]||(d[f]={});for(var h=0,k=a.group.length;h<k;h++)g=a.group[h],d[f][g]||(d[f][g]=[]),g=d[f][g],b(g,e(a))||g.push(a)}var d={};CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget;(this.group="string"==typeof a.group?[a.group]:a.group)&&c(this)},apply:function(a){var b;a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&(b=a.widgets.focused,
this.group&&this.removeStylesFromSameGroup(a),b.applyStyle(this))},remove:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.removeStyle(this)},removeStylesFromSameGroup:function(a){var b=!1,c,e;if(!(a instanceof CKEDITOR.editor))return!1;e=a.elementPath();if(this.checkApplicable(e,a))for(var f=0,g=this.group.length;f<g;f++){c=d[this.widget][this.group[f]];for(var h=0;h<c.length;h++)c[h]!==this&&c[h].checkActive(e,a)&&(a.widgets.focused.removeStyle(c[h]),
b=!0)}return b},checkActive:function(a,b){return this.checkElementMatch(a.lastElement,0,b)},checkApplicable:function(a,b){return b instanceof CKEDITOR.editor?this.checkElement(a.lastElement):!1},checkElementMatch:b,checkElementRemovable:b,checkElement:function(a){return h.isDomWidgetWrapper(a)?(a=a.getFirst(h.isDomWidgetElement))&&a.data("widget")==this.widget:!1},buildPreview:function(a){return a||this._.definition.name},toAllowedContentRules:function(a){if(!a)return null;a=a.widgets.registered[this.widget];
var b,c={};if(!a)return null;if(a.styleableElements){b=this.getClassesArray();if(!b)return null;c[a.styleableElements]={classes:b,propertiesOnly:!0};return c}return a.styleToAllowedContentRules?a.styleToAllowedContentRules(this):null},getClassesArray:function(){var a=this._.definition.attributes&&this._.definition.attributes["class"];return a?CKEDITOR.tools.trim(a).split(/\s+/):null},applyToRange:a,removeFromRange:a,applyToObject:a})}CKEDITOR.plugins.add("widget",{requires:"lineutils,clipboard,widgetselection",
onLoad:function(){void 0!==CKEDITOR.document.$.querySelectorAll&&(CKEDITOR.addCss('.cke_widget_wrapper{position:relative;outline:none}.cke_widget_inline{display:inline-block}.cke_widget_wrapper:hover\x3e.cke_widget_element{outline:2px solid #ffd25c;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid #ffd25c}.cke_widget_wrapper.cke_widget_focused\x3e.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #47a4f5}.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:15px;height:0;display:block;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover\x3e.cke_widget_drag_handler_container{height:15px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}.cke_editable[contenteditable\x3d"false"] .cke_widget_drag_handler_container{display:none;}img.cke_widget_drag_handler{cursor:move;width:15px;height:15px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_widget_partial_mask{position:absolute;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}'),
X())},beforeInit:function(a){void 0!==CKEDITOR.document.$.querySelectorAll&&(a.widgets=new c(a))},afterInit:function(a){if(void 0!==CKEDITOR.document.$.querySelectorAll){var b=a.widgets.registered,c,d,e;for(d in b)c=b[d],(e=c.button)&&a.ui.addButton&&a.ui.addButton(CKEDITOR.tools.capitalize(c.name,!0),{label:e,command:c.name,toolbar:"insert,10"});z(a);H(a.undoManager)}}});c.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(b,c){var d=this.editor;c=CKEDITOR.tools.prototypedCopy(c);c.name=b;
c._=c._||{};d.fire("widgetDefinition",c);c.template&&(c.template=new CKEDITOR.template(c.template));a(d,c);g(this,c);this.registered[b]=c;if(c.dialog&&d.plugins.dialog)var e=CKEDITOR.on("dialogDefinition",function(a){a=a.data.definition;var b=a.dialog;a.getMode||b.getName()!==c.dialog||(a.getMode=function(){var a=b.getModel(d);return a&&a instanceof CKEDITOR.plugins.widget&&a.ready?CKEDITOR.dialog.EDITING_MODE:CKEDITOR.dialog.CREATION_MODE});e.removeListener()});return c},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},
checkSelection:function(){if(this.editor.getSelection()){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=D(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=h.isDomWidgetWrapper;b=a.next();)c.select(this.getByElement(b));c.commit()}},checkWidgets:function(a){this.fire("checkWidgets",CKEDITOR.tools.copy(a||{}))},del:function(a){if(this.focused===a){var b=a.editor,
c=b.createRange(),d;(d=c.moveToClosestEditablePosition(a.wrapper,!0))||(d=c.moveToClosestEditablePosition(a.wrapper,!1));d&&b.getSelection().selectRanges([c])}a.wrapper.remove();this.destroy(a,!0)},destroy:function(a,b){this.widgetHoldingFocusedEditable===a&&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){(a=a.getFirst())&&h.isDomWidgetWrapper(a)&&(this.editor.insertElement(a),a=this.getByElement(a),a.ready=!0,a.fire("ready"),a.focus())},getByElement:function(){function a(c){return c.is(b)&&c.data("cke-widget-id")}var b={div:1,span:1};return function(b,c){if(!b)return null;var d=a(b);if(!c&&!d){var e=this.editor.editable();do b=b.getParent();while(b&&!b.equals(e)&&!(d=a(b)))}return this.instances[d]||null}}(),
initOn:function(a,b,c){b?"string"==typeof b&&(b=this.registered[b]):b=this.registered[a.data("widget")];if(!b)return null;var d=this.wrapElement(a,b.name);return d?d.hasClass("cke_widget_new")?(a=new h(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(h.isDomWidgetElement)))&&b.push(c);return b},onWidget:function(a){var b=
Array.prototype.slice.call(arguments);b.shift();for(var c in this.instances){var d=this.instances[c];d.name==a&&d.on.apply(d,b)}this.on("instanceCreated",function(c){c=c.data;c.name==a&&c.on.apply(c,b)})},parseElementClasses:function(a){if(!a)return null;a=CKEDITOR.tools.trim(a).split(/\s+/);for(var b,c={},d=0;b=a.pop();)-1==b.indexOf("cke_")&&(c[b]=d=1);return d?c:null},wrapElement:function(a,b){var c=null,d,e;if(a instanceof CKEDITOR.dom.element){b=b||a.data("widget");d=this.registered[b];if(!d)return null;
if((c=a.getParent())&&c.type==CKEDITOR.NODE_ELEMENT&&c.data("cke-widget-wrapper"))return c;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);a.data("widget",b);(e=t(d,a.getName()))&&k(a);c=new CKEDITOR.dom.element(e?"span":"div",a.getDocument());c.setAttributes(v(e,b));c.data("cke-display-name",d.pathName?d.pathName:a.getName());a.getParent(!0)&&c.replace(a);a.appendTo(c)}else if(a instanceof CKEDITOR.htmlParser.element){b=b||a.attributes["data-widget"];
d=this.registered[b];if(!d)return null;if((c=a.parent)&&c.type==CKEDITOR.NODE_ELEMENT&&c.attributes["data-cke-widget-wrapper"])return c;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);b&&(a.attributes["data-widget"]=b);(e=t(d,a.name))&&k(a);c=new CKEDITOR.htmlParser.element(e?"span":"div",v(e,b));c.attributes["data-cke-display-name"]=d.pathName?d.pathName:a.name;d=a.parent;var f;d&&(f=a.getIndex(),a.remove());c.add(a);d&&x(d,
f,c)}return c},_tests_createEditableFilter:e};CKEDITOR.event.implementOn(c.prototype);h.prototype={addClass:function(a){this.element.addClass(a);this.wrapper.addClass(h.WRAPPER_CLASS_PREFIX+a)},applyStyle:function(a){G(this,a,1)},checkStyleActive:function(a){a=L(a);var b;if(!a)return!1;for(;b=a.pop();)if(!this.hasClass(b))return!1;return!0},destroy:function(a){this.fire("destroy");if(this.editables)for(var b in this.editables)this.destroyEditable(b,a);a||("0"==this.element.data("cke-widget-keep-attr")&&
this.element.removeAttribute("data-widget"),this.element.removeAttributes(["data-cke-widget-data","data-cke-widget-keep-attr"]),this.element.removeClass("cke_widget_element"),this.element.replace(this.wrapper));this.wrapper=null},destroyEditable:function(a,b){var c=this.editables[a],d=!0;c.removeListener("focus",P);c.removeListener("blur",N);this.editor.focusManager.remove(c);if(c.filter){for(var e in this.repository.instances){var f=this.repository.instances[e];f.editables&&(f=f.editables[a])&&f!==
c&&c.filter===f.filter&&(d=!1)}d&&(c.filter.destroy(),(d=this.repository._.filters[this.name])&&delete d[a])}b||(this.repository.destroyAll(!1,c),c.removeClass("cke_widget_editable"),c.removeClass("cke_widget_editable_focused"),c.removeAttributes(["contenteditable","data-cke-widget-editable","data-cke-enter-mode"]));delete this.editables[a]},edit:function(){var a={dialog:this.dialog},b=this;if(!1===this.fire("edit",a)||!a.dialog)return!1;this.editor.openDialog(a.dialog,function(a){var c,d;!1!==b.fire("dialog",
a)&&(c=a.on("show",function(){a.setupContent(b)}),d=a.on("ok",function(){var c,d=b.on("data",function(a){c=1;a.cancel()},null,null,0);b.editor.fire("saveSnapshot");a.commitContent(b);d.removeListener();c&&(b.fire("data",b.data),b.editor.fire("saveSnapshot"))}),a.once("hide",function(){c.removeListener();d.removeListener()}))},b);return!0},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},getClipboardHtml:function(){var a=this.editor.createRange();
a.setStartBefore(this.wrapper);a.setEndAfter(this.wrapper);return this.editor.editable().getHtmlFromRange(a).getHtml()},hasClass:function(a){return this.element.hasClass(a)},initEditable:function(a,b){var c=this._findOneNotNested(b.selector);return c&&c.is(CKEDITOR.dtd.$editable)?(c=new f(this.editor,c,{filter:e.call(this.repository,this.name,a,b)}),this.editables[a]=c,c.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":c.enterMode}),c.filter&&c.data("cke-filter",
c.filter.id),c.addClass("cke_widget_editable"),c.removeClass("cke_widget_editable_focused"),b.pathName&&c.data("cke-display-name",b.pathName),this.editor.focusManager.add(c),c.on("focus",P,this),CKEDITOR.env.ie&&c.on("blur",N,this),c._.initialSetData=!0,c.setData(c.getHtml()),!0):!1},_findOneNotNested:function(a){a=this.wrapper.find(a);for(var b,c,d=0;d<a.count();d++)if(b=a.getItem(d),c=b.getAscendant(h.isDomWidgetWrapper),this.wrapper.equals(c))return b;return null},isInited:function(){return!(!this.wrapper||
!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var a=this.editor.getSelection();if(a){var b=this.editor.checkDirty();a.fake(this.wrapper);!b&&this.editor.resetDirty()}this.editor.focus()},refreshMask:function(){W(this)},refreshParts:function(a){fa(this,"undefined"!==typeof a?a:!0)},removeClass:function(a){this.element.removeClass(a);this.wrapper.removeClass(h.WRAPPER_CLASS_PREFIX+a)},removeStyle:function(a){G(this,a,0)},setData:function(a,b){var c=this.data,
d=0;if("string"==typeof a)c[a]!==b&&(c[a]=b,d=1);else{var e=a;for(a in e)c[a]!==e[a]&&(d=1,c[a]=e[a])}d&&this.dataReady&&(ea(this),this.fire("data",c));return this},setFocused:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_focused");this.fire(a?"focus":"blur");return this},setSelected:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_selected");this.fire(a?"select":"deselect");return this},updateDragHandlerPosition:function(){var a=this.editor,b=this.element.$,c=this._.dragHandlerOffset,
b={x:b.offsetLeft,y:b.offsetTop-15};c&&b.x==c.x&&b.y==c.y||(c=a.checkDirty(),a.fire("lockSnapshot"),this.dragHandlerContainer.setStyles({top:b.y+"px",left:b.x+"px"}),this.dragHandlerContainer.removeStyle("display"),a.fire("unlockSnapshot"),!c&&a.resetDirty(),this._.dragHandlerOffset=b)}};CKEDITOR.event.implementOn(h.prototype);h.getNestedEditable=function(a,b){return!b||b.equals(a)?null:h.isDomNestedEditable(b)?b:h.getNestedEditable(a,b.getParent())};h.isDomDragHandler=function(a){return a.type==
CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};h.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")};h.isDomNestedEditable=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")};h.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};h.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};
h.isDomWidget=function(a){return a?this.isDomWidgetWrapper(a)||this.isDomWidgetElement(a):!1};h.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};h.isParserWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-cke-widget-wrapper"]};h.WRAPPER_CLASS_PREFIX="cke_widget_wrapper_";f.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.dom.element.prototype),{setData:function(a){this._.initialSetData||
this.editor.widgets.destroyAll(!1,this);this._.initialSetData=!1;a=this.editor.dataProcessor.unprotectSource(a);a=this.editor.dataProcessor.toHtml(a,{context:this.getName(),filter:this.filter,enterMode:this.enterMode});this.setHtml(a);this.editor.widgets.initOnAll(this)},getData:function(){return this.editor.dataProcessor.toDataFormat(this.getHtml(),{context:this.getName(),filter:this.filter,enterMode:this.enterMode})}});var Q=/^(?:<(?:div|span)(?: data-cke-temp="1")?(?: id="cke_copybin")?(?: data-cke-temp="1")?>)?(?:<(?:div|span)(?: style="[^"]+")?>)?<span [^>]*data-cke-copybin-start="1"[^>]*>.?<\/span>([\s\S]+)<span [^>]*data-cke-copybin-end="1"[^>]*>.?<\/span>(?:<\/(?:div|span)>)?(?:<\/(?:div|span)>)?$/i,
R={37:1,38:1,39:1,40:1,8:1,46:1};R[CKEDITOR.SHIFT+121]=1;var ga=CKEDITOR.tools.createClass({$:function(a,b){this._.createCopyBin(a,b);this._.createListeners(b)},_:{createCopyBin:function(a){var b=a.document,c=CKEDITOR.env.edge&&16<=CKEDITOR.env.version,d=!a.blockless&&!CKEDITOR.env.ie||c?"div":"span",c=b.createElement(d),b=b.createElement(d);b.setAttributes({id:"cke_copybin","data-cke-temp":"1"});c.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});c.setStyle("ltr"==a.config.contentsLangDirection?
"left":"right","-5000px");this.editor=a;this.copyBin=c;this.container=b},createListeners:function(a){a&&(a.beforeDestroy&&(this.beforeDestroy=a.beforeDestroy),a.afterDestroy&&(this.afterDestroy=a.afterDestroy))}},proto:{handle:function(a){var b=this.copyBin,c=this.editor,d=this.container,e=CKEDITOR.env.ie&&9>CKEDITOR.env.version,f=c.document.getDocumentElement().$,g=c.createRange(),h=this,k=CKEDITOR.env.mac&&CKEDITOR.env.webkit,l=k?100:0,m=window.requestAnimationFrame&&!k?requestAnimationFrame:setTimeout,
n,p,q;b.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e​\x3c/span\x3e'+a+'\x3cspan data-cke-copybin-end\x3d"1"\x3e​\x3c/span\x3e');c.fire("lockSnapshot");d.append(b);c.editable().append(d);n=c.on("selectionChange",B,null,null,0);p=c.widgets.on("checkSelection",B,null,null,0);e&&(q=f.scrollTop);g.selectNodeContents(b);g.select();e&&(f.scrollTop=q);return new CKEDITOR.tools.promise(function(a){m(function(){h.beforeDestroy&&h.beforeDestroy();d.remove();n.removeListener();p.removeListener();c.fire("unlockSnapshot");
h.afterDestroy&&h.afterDestroy();a()},l)})}},statics:{hasCopyBin:function(a){return!!ga.getCopyBin(a)},getCopyBin:function(a){return a.document.getById("cke_copybin")}}});CKEDITOR.plugins.widget=h;h.repository=c;h.nestedEditable=f}(),CKEDITOR.config.plugins="basicstyles,blockquote,dialogui,dialog,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,enterkey,listblock,richcombo,font,horizontalrule,indent,indentblock,indentlist,justify,list,pastefromword,xml,ajax,pastetools,removeformat,tab,undo,lineutils,widgetselection,widget",
CKEDITOR.config.skin="moono",function(){var c=function(c,f){var a=CKEDITOR.getUrl("plugins/"+f);c=c.split(",");for(var g=0;g<c.length;g++)CKEDITOR.skin.icons[c[g]]={path:a,offset:-c[++g],bgsize:c[++g]}};CKEDITOR.env.hidpi?c("bold,0,,italic,24,,strike,48,,subscript,72,,superscript,96,,underline,120,,blockquote,144,,copy-rtl,168,,copy,192,,cut-rtl,216,,cut,240,,paste-rtl,264,,paste,288,,bgcolor,312,,textcolor,336,,horizontalrule,360,,indent-rtl,384,,indent,408,,outdent-rtl,432,,outdent,456,,justifyblock,480,,justifycenter,504,,justifyleft,528,,justifyright,552,,bulletedlist-rtl,576,,bulletedlist,600,,numberedlist-rtl,624,,numberedlist,648,,pastefromword-rtl,672,,pastefromword,696,,removeformat,720,,redo-rtl,744,,redo,768,,undo-rtl,792,,undo,816,,simplebox,1680,auto",
"icons_hidpi.png"):c("bold,0,auto,italic,24,auto,strike,48,auto,subscript,72,auto,superscript,96,auto,underline,120,auto,blockquote,144,auto,copy-rtl,168,auto,copy,192,auto,cut-rtl,216,auto,cut,240,auto,paste-rtl,264,auto,paste,288,auto,bgcolor,312,auto,textcolor,336,auto,horizontalrule,360,auto,indent-rtl,384,auto,indent,408,auto,outdent-rtl,432,auto,outdent,456,auto,justifyblock,480,auto,justifycenter,504,auto,justifyleft,528,auto,justifyright,552,auto,bulletedlist-rtl,576,auto,bulletedlist,600,auto,numberedlist-rtl,624,auto,numberedlist,648,auto,pastefromword-rtl,672,auto,pastefromword,696,auto,removeformat,720,auto,redo-rtl,744,auto,redo,768,auto,undo-rtl,792,auto,undo,816,auto,simplebox,840,auto",
"icons.png")}(),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:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es: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,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: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})})();