From 089e6496c068befe2671a8d352a2887563fb7daf Mon Sep 17 00:00:00 2001 From: Hanna Dzmitryieva Date: Thu, 12 Jan 2023 15:34:58 +0100 Subject: [PATCH 1/2] fix: update ckeditor bundles --- lib/ckeditor/ckeditor.js | 2051 +++++++++-------- lib/ckeditor/lang/af.js | 2 +- lib/ckeditor/lang/ar.js | 2 +- lib/ckeditor/lang/az.js | 2 +- lib/ckeditor/lang/bg.js | 2 +- lib/ckeditor/lang/bn.js | 2 +- lib/ckeditor/lang/bs.js | 2 +- lib/ckeditor/lang/ca.js | 2 +- lib/ckeditor/lang/cs.js | 2 +- lib/ckeditor/lang/cy.js | 2 +- lib/ckeditor/lang/da.js | 2 +- lib/ckeditor/lang/de-ch.js | 2 +- lib/ckeditor/lang/de.js | 2 +- lib/ckeditor/lang/el.js | 2 +- lib/ckeditor/lang/en-au.js | 2 +- lib/ckeditor/lang/en-ca.js | 2 +- lib/ckeditor/lang/en-gb.js | 2 +- lib/ckeditor/lang/en.js | 2 +- lib/ckeditor/lang/eo.js | 2 +- lib/ckeditor/lang/es-mx.js | 2 +- lib/ckeditor/lang/es.js | 2 +- lib/ckeditor/lang/et.js | 2 +- lib/ckeditor/lang/eu.js | 2 +- lib/ckeditor/lang/fa.js | 2 +- lib/ckeditor/lang/fi.js | 2 +- lib/ckeditor/lang/fo.js | 2 +- lib/ckeditor/lang/fr-ca.js | 2 +- lib/ckeditor/lang/fr.js | 2 +- lib/ckeditor/lang/gl.js | 2 +- lib/ckeditor/lang/gu.js | 2 +- lib/ckeditor/lang/he.js | 2 +- lib/ckeditor/lang/hi.js | 2 +- lib/ckeditor/lang/hr.js | 2 +- lib/ckeditor/lang/hu.js | 2 +- lib/ckeditor/lang/id.js | 2 +- lib/ckeditor/lang/is.js | 2 +- lib/ckeditor/lang/it.js | 2 +- lib/ckeditor/lang/ja.js | 2 +- lib/ckeditor/lang/ka.js | 2 +- lib/ckeditor/lang/km.js | 2 +- lib/ckeditor/lang/ko.js | 2 +- lib/ckeditor/lang/ku.js | 2 +- lib/ckeditor/lang/lt.js | 2 +- lib/ckeditor/lang/lv.js | 2 +- lib/ckeditor/lang/mk.js | 2 +- lib/ckeditor/lang/mn.js | 2 +- lib/ckeditor/lang/ms.js | 2 +- lib/ckeditor/lang/nb.js | 2 +- lib/ckeditor/lang/nl.js | 2 +- lib/ckeditor/lang/no.js | 2 +- lib/ckeditor/lang/oc.js | 2 +- lib/ckeditor/lang/pl.js | 2 +- lib/ckeditor/lang/pt-br.js | 2 +- lib/ckeditor/lang/pt.js | 2 +- lib/ckeditor/lang/ro.js | 2 +- lib/ckeditor/lang/ru.js | 2 +- lib/ckeditor/lang/si.js | 2 +- lib/ckeditor/lang/sk.js | 2 +- lib/ckeditor/lang/sl.js | 2 +- lib/ckeditor/lang/sq.js | 2 +- lib/ckeditor/lang/sr-latn.js | 2 +- lib/ckeditor/lang/sr.js | 2 +- lib/ckeditor/lang/sv.js | 2 +- lib/ckeditor/lang/th.js | 2 +- lib/ckeditor/lang/tr.js | 2 +- lib/ckeditor/lang/tt.js | 2 +- lib/ckeditor/lang/ug.js | 2 +- lib/ckeditor/lang/uk.js | 2 +- lib/ckeditor/lang/vi.js | 2 +- lib/ckeditor/lang/zh-cn.js | 2 +- lib/ckeditor/lang/zh.js | 2 +- lib/ckeditor/skins/kama/editor.css | 2 +- lib/ckeditor/skins/kama/editor_ie.css | 2 +- lib/ckeditor/skins/kama/editor_ie7.css | 2 +- lib/ckeditor/skins/kama/editor_ie8.css | 2 +- lib/ckeditor/skins/kama/editor_iequirks.css | 2 +- lib/ckeditor/skins/moono-lisa/editor.css | 2 +- .../skins/moono-lisa/editor_gecko.css | 2 +- lib/ckeditor/skins/moono-lisa/editor_ie.css | 2 +- lib/ckeditor/skins/moono-lisa/editor_ie8.css | 2 +- .../skins/moono-lisa/editor_iequirks.css | 2 +- lib/ckeditor/skins/moono/editor.css | 2 +- lib/ckeditor/skins/moono/editor_gecko.css | 2 +- lib/ckeditor/skins/moono/editor_ie.css | 2 +- lib/ckeditor/skins/moono/editor_ie7.css | 2 +- lib/ckeditor/skins/moono/editor_ie8.css | 2 +- lib/ckeditor/skins/moono/editor_iequirks.css | 2 +- lib/ckeditor/skins/tao/editor.css | 2 +- 88 files changed, 1113 insertions(+), 1112 deletions(-) diff --git a/lib/ckeditor/ckeditor.js b/lib/ckeditor/ckeditor.js index 502ef50..47410cf 100644 --- a/lib/ckeditor/ckeditor.js +++ b/lib/ckeditor/ckeditor.js @@ -1,939 +1,939 @@ /* -Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2023, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom){window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,l={timestamp:"MB6G",version:"4.14.1 TAO-3 DEV",revision:"df81ec033",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var f=window.CKEDITOR_BASEPATH||"";if(!f)for(var g=document.getElementsByTagName("script"),k=0;kc.getListenerIndex(e)){c=c.listeners;g||(g=this);isNaN(h)&&(h=10);var n=this;b.fn=e;b.priority=h;for(var p=c.length-1;0<=p;p--)if(c[p].priority<=h)return c.splice(p+1,0,b),{removeListener:d};c.unshift(b)}return{removeListener:d}},once:function(){var a=Array.prototype.slice.call(arguments),e=a[1];a[1]=function(a){a.removeListener();return e.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,e=function(){a=1},g=0,k=function(){g=1};return function(h,b,d){var c=l(this)[h];h=a;var n=g;a=g=0;if(c){var p=c.listeners;if(p.length)for(var p=p.slice(0),q,t=0;tb.getListenerIndex(f)){b=b.listeners;g||(g=this);isNaN(h)&&(h=10);var n=this;c.fn=f;c.priority=h;for(var q=b.length-1;0<=q;q--)if(b[q].priority<=h)return b.splice(q+1,0,c),{removeListener:d};b.unshift(c)}return{removeListener:d}},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,f=function(){a=1},g=0,k=function(){g=1};return function(h,c,d){var b=l(this)[h];h=a;var n=g;a=g=0;if(b){var q=b.listeners;if(q.length)for(var q=q.slice(0),u,t=0;tdocument.documentMode),mobile:-1f||g.quirks);g.gecko&&(l=a.match(/rv:([\d\.]+)/))&&(l=l[1].split("."),f=1E4*l[0]+100*(l[1]||0)+1*(l[2]||0));g.air&&(f=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));g.webkit&&(f=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));g.version=f;g.isCompatible=!(g.ie&&7>f)&&!(g.gecko&&4E4>f)&&!(g.webkit&& -534>f);g.hidpi=2<=window.devicePixelRatio;g.needsBrFiller=g.gecko||g.webkit||g.ie&&10f;g.cssClass="cke_browser_"+(g.ie?"ie":g.gecko?"gecko":g.webkit?"webkit":"unknown");g.quirks&&(g.cssClass+=" cke_browser_quirks");g.ie&&(g.cssClass+=" cke_browser_ie"+(g.quirks?"6 cke_browser_iequirks":g.version));g.air&&(g.cssClass+=" cke_browser_air");g.iOS&&(g.cssClass+=" cke_browser_ios");g.hidpi&&(g.cssClass+=" cke_hidpi");return g}());"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR); +-1document.documentMode),mobile:-1e||g.quirks);g.gecko&&(l=a.match(/rv:([\d\.]+)/))&&(l=l[1].split("."),e=1E4*l[0]+100*(l[1]||0)+1*(l[2]||0));g.air&&(e=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));g.webkit&&(e=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));g.version=e;g.isCompatible=!(g.ie&&7>e)&&!(g.gecko&&4E4>e)&&!(g.webkit&& +534>e);g.hidpi=2<=window.devicePixelRatio;g.needsBrFiller=g.gecko||g.webkit||g.ie&&10e;g.cssClass="cke_browser_"+(g.ie?"ie":g.gecko?"gecko":g.webkit?"webkit":"unknown");g.quirks&&(g.cssClass+=" cke_browser_quirks");g.ie&&(g.cssClass+=" cke_browser_ie"+(g.quirks?"6 cke_browser_iequirks":g.version));g.air&&(g.cssClass+=" cke_browser_air");g.iOS&&(g.cssClass+=" cke_browser_ios");g.hidpi&&(g.cssClass+=" cke_hidpi");return g}());"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR); CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=CKEDITOR.loadFullCore,l=CKEDITOR.loadFullCoreTimeout;a&&(CKEDITOR.status= "basic_ready",a&&a._load?a():l&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1E3*l))})})();CKEDITOR.status="basic_loaded"}();"use strict";CKEDITOR.VERBOSITY_WARN=1;CKEDITOR.VERBOSITY_ERROR=2;CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR;CKEDITOR.warn=function(a,l){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:a,additionalData:l})};CKEDITOR.error=function(a,l){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log", -{type:"error",errorCode:a,additionalData:l})};CKEDITOR.on("log",function(a){if(window.console&&window.console.log){var l=console[a.data.type]?a.data.type:"log",g=a.data.errorCode;if(a=a.data.additionalData)console[l]("[CKEDITOR] Error code: "+g+".",a);else console[l]("[CKEDITOR] Error code: "+g+".");console[l]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+g)}},null,null,999);CKEDITOR.dom={};(function(){function a(c,b,a){this._minInterval= -c;this._context=a;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(b,a||{});var h=this;this.input=function(){function c(){h._lastOutput=(new Date).getTime();h._scheduledTimer=0;h._call()}if(!h._scheduledTimer||!1!==h._reschedule()){var n=(new Date).getTime()-h._lastOutput;n/g,k=/|\s) /g,function(c,b){return b+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var c=0;return function(){return++c}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var c="e",b=0;8>b;b++)c+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return c},override:function(c,b){var a=b(c);a.prototype=c.prototype;return a},setTimeout:function(c,b,a,h,d){d||(d=window);a||(a= -d);return d.setTimeout(function(){h?c.apply(a,[].concat(h)):c.apply(a)},b||0)},throttle:function(c,b,a){return new this.buffers.throttle(c,b,a)},trim:function(){var c=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(b){return b.replace(c,"")}}(),ltrim:function(){var c=/^[ \t\n\r]+/g;return function(b){return b.replace(c,"")}}(),rtrim:function(){var c=/[ \t\n\r]+$/g;return function(b){return b.replace(c,"")}}(),indexOf:function(c,b){if("function"==typeof b)for(var a=0,h=c.length;aparseFloat(b); -a&&(b=b.replace("-",""));c.setStyle("width",b);b=c.$.clientWidth;return a?-b:b}return b}}(),repeat:function(c,b){return Array(b+1).join(c)},tryThese:function(){for(var c,b=0,a=arguments.length;bb;b++)c[b]=("0"+parseInt(c[b],10).toString(16)).slice(-2);return"#"+c.join("")})},normalizeHex:function(c){return c.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(c,b,a,h){c=b.toLowerCase();3==c.length&&(c=c.split(""),c=[c[0],c[0],c[1],c[1],c[2],c[2]].join(""));return"#"+c+h})},parseCssText:function(c, -b,a){var h={};a&&(c=(new CKEDITOR.dom.element("span")).setAttribute("style",c).getAttribute("style")||"");c&&(c=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(c)));if(!c||";"==c)return h;c.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,a,d){b&&(a=a.toLowerCase(),"font-family"==a&&(d=d.replace(/\s*,\s*/g,",")),d=CKEDITOR.tools.trim(d));h[a]=d});return h},writeCssText:function(c,b){var a,h=[];for(a in c)h.push(a+":"+c[a]);b&&h.sort();return h.join("; ")}, -objectCompare:function(c,b,a){var h;if(!c&&!b)return!0;if(!c||!b)return!1;for(h in c)if(c[h]!=b[h])return!1;if(!a)for(h in b)if(c[h]!=b[h])return!1;return!0},objectKeys:function(c){return CKEDITOR.tools.object.keys(c)},convertArrayToObject:function(c,b){var a={};1==arguments.length&&(b=!0);for(var h=0,d=c.length;ha;a++)c.push(Math.floor(256*Math.random()));for(a=0;af)for(k=f;3>k;k++)d[k]=0;e[0]=(d[0]&252)>>2;e[1]=(d[0]&3)<<4|d[1]>>4;e[2]=(d[1]&15)<<2|(d[2]&192)>>6;e[3]=d[2]&63;for(k=0;4>k;k++)b=k<=f?b+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e[k]):b+"\x3d"}return b}, +{type:"error",errorCode:a,additionalData:l})};CKEDITOR.on("log",function(a){if(window.console&&window.console.log){var l=console[a.data.type]?a.data.type:"log",g=a.data.errorCode;if(a=a.data.additionalData)console[l]("[CKEDITOR] Error code: "+g+".",a);else console[l]("[CKEDITOR] Error code: "+g+".");console[l]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+g)}},null,null,999);CKEDITOR.dom={};(function(){function a(b,c,a){this._minInterval= +b;this._context=a;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(c,a||{});var h=this;this.input=function(){function b(){h._lastOutput=(new Date).getTime();h._scheduledTimer=0;h._call()}if(!h._scheduledTimer||!1!==h._reschedule()){var n=(new Date).getTime()-h._lastOutput;n/g,k=/|\s) /g,function(b,c){return c+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var b=0;return function(){return++b}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var b="e",c=0;8>c;c++)b+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return b},override:function(b,c){var a=c(b);a.prototype=b.prototype;return a},setTimeout:function(b,c,a,h,d){d||(d=window);a||(a= +d);return d.setTimeout(function(){h?b.apply(a,[].concat(h)):b.apply(a)},c||0)},throttle:function(b,c,a){return new this.buffers.throttle(b,c,a)},trim:function(){var b=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(c){return c.replace(b,"")}}(),ltrim:function(){var b=/^[ \t\n\r]+/g;return function(c){return c.replace(b,"")}}(),rtrim:function(){var b=/[ \t\n\r]+$/g;return function(c){return c.replace(b,"")}}(),indexOf:function(b,c){if("function"==typeof c)for(var a=0,h=b.length;aparseFloat(c); +a&&(c=c.replace("-",""));b.setStyle("width",c);c=b.$.clientWidth;return a?-c:c}return c}}(),repeat:function(b,c){return Array(c+1).join(b)},tryThese:function(){for(var b,c=0,a=arguments.length;cc;c++)b[c]=("0"+parseInt(b[c],10).toString(16)).slice(-2);return"#"+b.join("")})},normalizeHex:function(b){return b.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(b,c,a,h){b=c.toLowerCase();3==b.length&&(b=b.split(""),b=[b[0],b[0],b[1],b[1],b[2],b[2]].join(""));return"#"+b+h})},parseCssText:function(b, +c,a){var h={};a&&(b=(new CKEDITOR.dom.element("span")).setAttribute("style",b).getAttribute("style")||"");b&&(b=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(b)));if(!b||";"==b)return h;b.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,a,n){c&&(a=a.toLowerCase(),"font-family"==a&&(n=n.replace(/\s*,\s*/g,",")),n=CKEDITOR.tools.trim(n));h[a]=n});return h},writeCssText:function(b,c){var a,h=[];for(a in b)h.push(a+":"+b[a]);c&&h.sort();return h.join("; ")}, +objectCompare:function(b,c,a){var h;if(!b&&!c)return!0;if(!b||!c)return!1;for(h in b)if(b[h]!=c[h])return!1;if(!a)for(h in c)if(b[h]!=c[h])return!1;return!0},objectKeys:function(b){return CKEDITOR.tools.object.keys(b)},convertArrayToObject:function(b,c){var a={};1==arguments.length&&(c=!0);for(var h=0,d=b.length;ha;a++)b.push(Math.floor(256*Math.random()));for(a=0;ae)for(k=e;3>k;k++)d[k]=0;f[0]=(d[0]&252)>>2;f[1]=(d[0]&3)<<4|d[1]>>4;f[2]=(d[1]&15)<<2|(d[2]&192)>>6;f[3]=d[2]&63;for(k=0;4>k;k++)c=k<=e?c+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f[k]):c+"\x3d"}return c}, style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400", darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC", ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A", lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1", moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460", seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",windowtext:"windowtext",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "), -_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi,background:function(c){var b={},a=this._findColor(c);a.length&&(b.color=a[0],CKEDITOR.tools.array.forEach(a,function(b){c=c.replace(b,"")}));if(c=CKEDITOR.tools.trim(c))b.unprocessed=c;return b},margin:function(c){return CKEDITOR.tools.style.parse.sideShorthand(c, -function(c){return c.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||["0px"]})},sideShorthand:function(c,b){function a(c){h.top=d[c[0]];h.right=d[c[1]];h.bottom=d[c[2]];h.left=d[c[3]]}var h={},d=b?b(c):c.split(/\s+/);switch(d.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 h},border:function(c){return CKEDITOR.tools.style.border.fromCssRule(c)},_findColor:function(c){var b=[],a=CKEDITOR.tools.array,b=b.concat(c.match(this._rgbaRegExp)|| -[]),b=b.concat(c.match(this._hslaRegExp)||[]);return b=b.concat(a.filter(c.split(/\s+/),function(c){return c.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:c.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(c,b,a){var h=[];this.forEach(c,function(d,f){b.call(a,d,f,c)&&h.push(d)});return h},find:function(c,b,a){for(var h=c.length,d=0;dCKEDITOR.env.version&&(!c||"object"!==typeof c)){b=[];if("string"===typeof c)for(a=0;aCKEDITOR.env.version)for(d=0;dCKEDITOR.env.version&&(!b||"object"!==typeof b)){c=[];if("string"===typeof b)for(a=0;aCKEDITOR.env.version)for(d=0;dCKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&f(e);return e},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$); -return a},getAddress:function(a){for(var l=[],g=this.getDocument().$.documentElement,f=this;f&&f!=g;){var e=f.getParent();e&&l.unshift(this.getIndex.call(f,a));f=e}return l},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function l(a,f){var h=f?a.getNext():a.getPrevious();return h&&h.type==CKEDITOR.NODE_TEXT?h.isEmpty()?l(h,f):h:null}var g=this,f=-1,e;if(!this.getParent()||a&&g.type==CKEDITOR.NODE_TEXT&&g.isEmpty()&& -!l(g)&&!l(g,!0))return-1;do if(!a||g.equals(this)||g.type!=CKEDITOR.NODE_TEXT||!e&&!g.isEmpty())f++,e=g.type==CKEDITOR.NODE_TEXT;while(g=g.getPrevious());return f},getNextSourceNode:function(a,l,g){if(g&&!g.call){var f=g;g=function(a){return!a.equals(f)}}a=!a&&this.getFirst&&this.getFirst();var e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&g&&!1===g(this,!0))return null;a=this.getNext()}for(;!a&&(e=(e||this).getParent());){if(g&&!1===g(e,!0))return null;a=e.getNext()}return!a||g&&!1===g(a)?null:l&& -l!=a.type?a.getNextSourceNode(!1,l,g):a},getPreviousSourceNode:function(a,l,g){if(g&&!g.call){var f=g;g=function(a){return!a.equals(f)}}a=!a&&this.getLast&&this.getLast();var e;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&g&&!1===g(this,!0))return null;a=this.getPrevious()}for(;!a&&(e=(e||this).getParent());){if(g&&!1===g(e,!0))return null;a=e.getPrevious()}return!a||g&&!1===g(a)?null:l&&a.type!=l?a.getPreviousSourceNode(!1,l,g):a},getPrevious:function(a){var l=this.$,g;do g=(l=l.previousSibling)&& +this};CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject;CKEDITOR.NODE_ELEMENT=1;CKEDITOR.NODE_DOCUMENT=9;CKEDITOR.NODE_TEXT=3;CKEDITOR.NODE_COMMENT=8;CKEDITOR.NODE_DOCUMENT_FRAGMENT=11;CKEDITOR.POSITION_IDENTICAL=0;CKEDITOR.POSITION_DISCONNECTED=1;CKEDITOR.POSITION_FOLLOWING=2;CKEDITOR.POSITION_PRECEDING=4;CKEDITOR.POSITION_IS_CONTAINED=8;CKEDITOR.POSITION_CONTAINS=16;CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(a,l){a.append(this,l);return a},clone:function(a,l){function g(e){e["data-cke-expando"]&& +(e["data-cke-expando"]=!1);if(e.nodeType==CKEDITOR.NODE_ELEMENT||e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(l||e.nodeType!=CKEDITOR.NODE_ELEMENT||e.removeAttribute("id",!1),a){e=e.childNodes;for(var f=0;fCKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&e(f);return f},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$); +return a},getAddress:function(a){for(var l=[],g=this.getDocument().$.documentElement,e=this;e&&e!=g;){var f=e.getParent();f&&l.unshift(this.getIndex.call(e,a));e=f}return l},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function l(a,e){var h=e?a.getNext():a.getPrevious();return h&&h.type==CKEDITOR.NODE_TEXT?h.isEmpty()?l(h,e):h:null}var g=this,e=-1,f;if(!this.getParent()||a&&g.type==CKEDITOR.NODE_TEXT&&g.isEmpty()&& +!l(g)&&!l(g,!0))return-1;do if(!a||g.equals(this)||g.type!=CKEDITOR.NODE_TEXT||!f&&!g.isEmpty())e++,f=g.type==CKEDITOR.NODE_TEXT;while(g=g.getPrevious());return e},getNextSourceNode:function(a,l,g){if(g&&!g.call){var e=g;g=function(a){return!a.equals(e)}}a=!a&&this.getFirst&&this.getFirst();var f;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&g&&!1===g(this,!0))return null;a=this.getNext()}for(;!a&&(f=(f||this).getParent());){if(g&&!1===g(f,!0))return null;a=f.getNext()}return!a||g&&!1===g(a)?null:l&& +l!=a.type?a.getNextSourceNode(!1,l,g):a},getPreviousSourceNode:function(a,l,g){if(g&&!g.call){var e=g;g=function(a){return!a.equals(e)}}a=!a&&this.getLast&&this.getLast();var f;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&g&&!1===g(this,!0))return null;a=this.getPrevious()}for(;!a&&(f=(f||this).getParent());){if(g&&!1===g(f,!0))return null;a=f.getPrevious()}return!a||g&&!1===g(a)?null:l&&a.type!=l?a.getPreviousSourceNode(!1,l,g):a},getPrevious:function(a){var l=this.$,g;do g=(l=l.previousSibling)&& 10!=l.nodeType&&new CKEDITOR.dom.node(l);while(g&&a&&!a(g));return g},getNext:function(a){var l=this.$,g;do g=(l=l.nextSibling)&&new CKEDITOR.dom.node(l);while(g&&a&&!a(g));return g},getParent:function(a){var l=this.$.parentNode;return l&&(l.nodeType==CKEDITOR.NODE_ELEMENT||a&&l.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(l):null},getParents:function(a){var l=this,g=[];do g[a?"push":"unshift"](l);while(l=l.getParent());return g},getCommonAncestor:function(a){if(a.equals(this))return this; if(a.contains&&a.contains(this))return a;var l=this.contains?this:this.getParent();do if(l.contains(a))return l;while(l=l.getParent());return null},getPosition:function(a){var l=this.$,g=a.$;if(l.compareDocumentPosition)return l.compareDocumentPosition(g);if(l==g)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(l.contains){if(l.contains(g))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(g.contains(l))return CKEDITOR.POSITION_IS_CONTAINED+ -CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in l)return 0>l.sourceIndex||0>g.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:l.sourceIndexl.sourceIndex||0>g.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:l.sourceIndex=document.documentMode||!l||(a=l+":"+ +getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,l){for(var g=this.$.documentElement,e=0;g&&e=document.documentMode||!l||(a=l+":"+ a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(a){this.$.open("text/html", "replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");a||(a=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(a, !0),this.setCustomData("html5ShivFrag",a));return a}});CKEDITOR.dom.nodeList=function(a){this.$=a};CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){return 0>a||a>=this.$.length?null:(a=this.$[a])?new CKEDITOR.dom.node(a):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(a){return new CKEDITOR.dom.node(a)})}};CKEDITOR.dom.element=function(a,l){"string"==typeof a&&(a=(l?l.$:document).createElement(a));CKEDITOR.dom.domObject.call(this, -a)};CKEDITOR.dom.element.get=function(a){return(a="string"==typeof a?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))};CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node;CKEDITOR.dom.element.createFromHtml=function(a,l){var g=new CKEDITOR.dom.element("div",l);g.setHtml(a);return g.getFirst().remove()};CKEDITOR.dom.element.setMarker=function(a,l,g,f){var e=l.getCustomData("list_marker_id")||l.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"), -m=l.getCustomData("list_marker_names")||l.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");a[e]=l;m[g]=1;return l.setCustomData(g,f)};CKEDITOR.dom.element.clearAllMarkers=function(a){for(var l in a)CKEDITOR.dom.element.clearMarkers(a,a[l],1)};CKEDITOR.dom.element.clearMarkers=function(a,l,g){var f=l.getCustomData("list_marker_names"),e=l.getCustomData("list_marker_id"),m;for(m in f)l.removeCustomData(m);l.removeCustomData("list_marker_names");g&&(l.removeCustomData("list_marker_id"), -delete a[e])};(function(){function a(a,b){return-1<(" "+a+" ").replace(m," ").indexOf(" "+b+" ")}function l(a){var b=!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),b=!1);return function(){b||a.removeAttribute("id")}}function g(a,b){var d=CKEDITOR.tools.escapeCss(a.$.id);return"#"+d+" "+b.split(/,\s*/).join(", #"+d+" ")}function f(a){for(var b=0,d=0,c=k[a].length;dCKEDITOR.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 c=d.extractContents(!1,b||!1),f;d.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(d=new CKEDITOR.dom.element("div");f=c.getFirst();)f.$.style.backgroundColor&&(f.$.style.backgroundColor=f.$.style.backgroundColor),d.append(f);d.insertAfter(this);d.remove(!0)}else c.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(c){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,c;a=CKEDITOR.tools.isArray(a)? -a:[];for(c=0;cCKEDITOR.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,c){var d=new CKEDITOR.dom.range(this.getDocument());d.setStartAfter(this);d.setEndAfter(a); +var b=d.extractContents(!1,c||!1),e;d.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(d=new CKEDITOR.dom.element("div");e=b.getFirst();)e.$.style.backgroundColor&&(e.$.style.backgroundColor=e.$.style.backgroundColor),d.append(e);d.insertAfter(this);d.remove(!0)}else b.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&16)}:function(a){var c=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?c.contains(a.getParent().$): +c!=a.$&&c.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(c){}}return function(c){c?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 c=CKEDITOR.tools.extend({}, +this.$.getBoundingClientRect());!c.width&&(c.width=c.right-c.left);!c.height&&(c.height=c.bottom-c.top);return a?CKEDITOR.tools.getAbsoluteRectPosition(this.getWindow(),c):c},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(a){try{var c=this.$;if(this.getParent())return c.innerHTML=a;var d=this.getDocument()._getHtml5ShivFrag();d.appendChild(c);c.innerHTML=a;d.removeChild(c);return a}catch(b){this.$.innerHTML="";c=new CKEDITOR.dom.element("body",this.getDocument());c.$.innerHTML=a;for(c=c.getChildren();c.count();)this.append(c.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(c){this.$[a?"textContent":"innerText"]=c}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":return a=this.$.getAttribute(a, +2),0!==a&&0===this.$.tabIndex&&(a=null),a;case "checked":return a=this.$.attributes.getNamedItem(a),(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getAttributes:function(a){var c={},d=this.$.attributes,b;a=CKEDITOR.tools.isArray(a)? +a:[];for(b=0;b=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;bCKEDITOR.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();bCKEDITOR.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 c;if(b)for(;c=d.lastChild;)a.insertBefore(d.removeChild(c),a.firstChild);else for(;c=d.firstChild;)a.appendChild(d.removeChild(c))}},mergeSiblings:function(){function a(b,d,c){if(d&&d.type==CKEDITOR.NODE_ELEMENT){for(var h= -[];d.data("cke-bookmark")||d.isEmptyInlineRemoveable();)if(h.push(d),d=c?d.getNext():d.getPrevious(),!d||d.type!=CKEDITOR.NODE_ELEMENT)return;if(b.isIdentical(d)){for(var f=c?b.getLast():b.getFirst();h.length;)h.shift().move(b,!c);d.moveChildren(b,!c);d.remove();f&&f.type==CKEDITOR.NODE_ELEMENT&&f.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(c){}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;bCKEDITOR.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,c=b.count();dk||0k?k:f);d&&(0>e||0e?e:c,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 c=0;cCKEDITOR.env.version){var f=c.ownerDocument.createEventObject(),e;for(e in b)f[e]=b[e];c.fireEvent(d, -f)}else c[c[a]?a:d](b)},isDetached:function(){var a=this.getDocument(),b=a.getDocumentElement();return b.equals(this)||b.contains(this)?!CKEDITOR.env.ie||8=document.documentMode){var c=this.$.scopeName;"HTML"!=c&&(a=c.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var c=this.$.firstChild;(c=c&&new CKEDITOR.dom.node(c))&&a&&!a(c)&&(c=c.getNext(a));return c},getLast:function(a){var c=this.$.lastChild;(c=c&&new CKEDITOR.dom.node(c))&&a&&!a(c)&&(c=c.getPrevious(a));return c},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 c=0;cCKEDITOR.env.version&&this.is("a")){var d=this.getParent();d.type==CKEDITOR.NODE_ELEMENT&&(d=d.clone(),d.setHtml(c),c=d.getHtml(),d.setHtml(a),a=d.getHtml())}return c==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),c,d;a&&CKEDITOR.env.webkit&&(c=this.getWindow(),!c.equals(CKEDITOR.document.getWindow())&&(d=c.$.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(),c=0,d=a.count();cCKEDITOR.env.version?function(c){return"name"==c?!!this.$.name:a.call(this,c)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,c){var d=this.$;a=a.$;if(d!=a){var b;if(c)for(;b=d.lastChild;)a.insertBefore(d.removeChild(b),a.firstChild);else for(;b=d.firstChild;)a.appendChild(d.removeChild(b))}},mergeSiblings:function(){function a(c,d,b){if(d&&d.type==CKEDITOR.NODE_ELEMENT){for(var h= +[];d.data("cke-bookmark")||d.isEmptyInlineRemoveable();)if(h.push(d),d=b?d.getNext():d.getPrevious(),!d||d.type!=CKEDITOR.NODE_ELEMENT)return;if(c.isIdentical(d)){for(var e=b?c.getLast():c.getFirst();h.length;)h.shift().move(c,!b);d.moveChildren(c,!b);d.remove();e&&e.type==CKEDITOR.NODE_ELEMENT&&e.mergeSiblings()}}}return function(c){if(!1===c||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(c,d){"class"==c?this.$.className=d:"style"==c?this.$.style.cssText=d:"tabindex"==c?this.$.tabIndex=d:"checked"==c?this.$.checked=d:"contenteditable"==c?a.call(this,"contentEditable",d):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(c,d){if("src"==c&&d.match(/^http:\/\//))try{a.apply(this, +arguments)}catch(b){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var c in a)this.setAttribute(c,a[c]);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 c= +0;cCKEDITOR.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,c=this.getElementsByTag("*"),d=0,b=c.count();dk||0k?k:e);d&&(0>f||0f?f:b,0)},setState:function(a,c,d){c=c||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(c+"_on");this.removeClass(c+ +"_off");this.removeClass(c+"_disabled");d&&this.setAttribute("aria-pressed",!0);d&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(c+"_disabled");this.removeClass(c+"_off");this.removeClass(c+"_on");d&&this.setAttribute("aria-disabled",!0);d&&this.removeAttribute("aria-pressed");break;default:this.addClass(c+"_off"),this.removeClass(c+"_on"),this.removeClass(c+"_disabled"),d&&this.removeAttribute("aria-pressed"),d&&this.removeAttribute("aria-disabled")}}, +getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(c){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,c){var d=this.$.attributes;c=c||{};for(var b=0;bCKEDITOR.env.version){var e=b.ownerDocument.createEventObject(),f;for(f in c)e[f]=c[f];b.fireEvent(d, +e)}else b[b[a]?a:d](c)},isDetached:function(){var a=this.getDocument(),c=a.getDocumentElement();return c.equals(this)||c.contains(this)?!CKEDITOR.env.ie||8=u.getChildCount()?(u=u.getChild(C-1),G=!0):u=u.getChild(C):H=G=!0;w.type== -CKEDITOR.NODE_TEXT?l?E=!0:w.split(D):0ha)for(;Z;)Z=e(Z,N,!0);N=Y}l||k()}}function g(){var c=!1,a=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(!0),d=CKEDITOR.dom.walker.bogus();return function(f){return b(f)||a(f)?!0:d(f)&&!c?c=!0:f.type==CKEDITOR.NODE_TEXT&&(f.hasAscendant("pre")||CKEDITOR.tools.trim(f.getText()).length)||f.type==CKEDITOR.NODE_ELEMENT&&!f.is(m)?!1:!0}}function f(c){var a=CKEDITOR.dom.walker.whitespaces(), -b=CKEDITOR.dom.walker.bookmark(1);return function(d){return b(d)||a(d)?!0:!c&&k(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function e(c){return function(){var a;return this[c?"getPreviousNode":"getNextNode"](function(c){!a&&d(c)&&(a=c);return b(c)&&!(k(c)&&c.equals(a))})}}var m={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},k=CKEDITOR.dom.walker.bogus(), -h=/^[\t\r\n ]*(?: |\xa0)$/,b=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var c=new CKEDITOR.dom.range(this.root);c._setStartContainer(this.startContainer);c.startOffset=this.startOffset;c._setEndContainer(this.endContainer);c.endOffset=this.endOffset;c.collapsed=this.collapsed;return c},collapse:function(c){c?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer), -this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(c){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||l(this,2,a,!1,"undefined"==typeof c?!0:c);return a},deleteContents:function(c){this.collapsed||l(this,0,null,c)},extractContents:function(c,a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||l(this,1,b,c,"undefined"==typeof a?!0:a);return b},equals:function(c){return this.startOffset===c.startOffset&&this.endOffset===c.endOffset&& -this.startContainer.equals(c.startContainer)&&this.endContainer.equals(c.endContainer)},createBookmark:function(c){function a(c){return c.getAscendant(function(c){var a;if(a=c.data&&c.data("cke-temp"))a=-1===CKEDITOR.tools.array.indexOf(["cke_copybin","cke_pastebin"],c.getAttribute("id"));return a},!0)}var b=this.startContainer,d=this.endContainer,f=this.collapsed,e,h,k,g;e=this.document.createElement("span");e.data("cke-bookmark",1);e.setStyle("display","none");e.setHtml("\x26nbsp;");c&&(k="cke_bm_"+ -CKEDITOR.tools.getNextNumber(),e.setAttribute("id",k+(f?"C":"S")));f||(h=e.clone(),h.setHtml("\x26nbsp;"),c&&h.setAttribute("id",k+"E"),g=this.clone(),a(d)&&(d=a(d),g.moveToPosition(d,CKEDITOR.POSITION_AFTER_END)),g.collapse(),g.insertNode(h));g=this.clone();a(b)&&(d=a(b),g.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START));g.collapse(!0);g.insertNode(e);h?(this.setStartAfter(e),this.setEndBefore(h)):this.moveToPosition(e,CKEDITOR.POSITION_AFTER_END);return{startNode:c?k+(f?"C":"S"):e,endNode:c?k+ -"E":h,serializable:c,collapsed:f}},createBookmark2:function(){function c(c){var a=c.container,d=c.offset,f;f=a;var e=d;f=f.type!=CKEDITOR.NODE_ELEMENT||0===e||e==f.getChildCount()?0:f.getChild(e-1).type==CKEDITOR.NODE_TEXT&&f.getChild(e).type==CKEDITOR.NODE_TEXT;f&&(a=a.getChild(d-1),d=a.getLength());if(a.type==CKEDITOR.NODE_ELEMENT&&0=c.offset&&(c.offset=f.getIndex(),c.container=f.getParent()))}}var b=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT, -!0);return function(b){var d=this.collapsed,f={container:this.startContainer,offset:this.startOffset},e={container:this.endContainer,offset:this.endOffset};b&&(c(f),a(f,this.root),d||(c(e),a(e,this.root)));return{start:f.container.getAddress(b),end:d?null:e.container.getAddress(b),startOffset:f.offset,endOffset:e.offset,normalized:b,collapsed:d,is2:!0}}}(),moveToBookmark:function(c){if(c.is2){var a=this.document.getByAddress(c.start,c.normalized),b=c.startOffset,d=c.end&&this.document.getByAddress(c.end, -c.normalized);c=c.endOffset;this.setStart(a,b);d?this.setEnd(d,c):this.collapse(!0)}else a=(b=c.serializable)?this.document.getById(c.startNode):c.startNode,c=b?this.document.getById(c.endNode):c.endNode,this.setStartBefore(a),a.remove(),c?(this.setEndBefore(c),c.remove()):this.collapse(!0)},getBoundaryNodes:function(){var c=this.startContainer,a=this.endContainer,b=this.startOffset,d=this.endOffset,f;if(c.type==CKEDITOR.NODE_ELEMENT)if(f=c.getChildCount(),f>b)c=c.getChild(b);else if(1>f)c=c.getPreviousSourceNode(); -else{for(c=c.$;c.lastChild;)c=c.lastChild;c=new CKEDITOR.dom.node(c);c=c.getNextSourceNode()||c}if(a.type==CKEDITOR.NODE_ELEMENT)if(f=a.getChildCount(),f>d)a=a.getChild(d).getPreviousSourceNode(!0);else if(1>f)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a)}c.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&(c=a);return{startNode:c,endNode:a}},getCommonAncestor:function(c,a){var b=this.startContainer,d=this.endContainer,b=b.equals(d)?c&&b.type==CKEDITOR.NODE_ELEMENT&& -this.startOffset==this.endOffset-1?b.getChild(this.startOffset):b:b.getCommonAncestor(d);return a&&!b.is?b.getParent():b},optimize:function(){var c=this.startContainer,a=this.startOffset;c.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=c.getLength()&&this.setStartAfter(c):this.setStartBefore(c));c=this.endContainer;a=this.endOffset;c.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=c.getLength()&&this.setEndAfter(c):this.setEndBefore(c))},optimizeBookmark:function(){var c=this.startContainer,a=this.endContainer;c.is&&c.is("span")&& -c.data("cke-bookmark")&&this.setStartAt(c,CKEDITOR.POSITION_BEFORE_START);a&&a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setEndAt(a,CKEDITOR.POSITION_AFTER_END)},trim:function(c,a){var b=this.startContainer,d=this.startOffset,f=this.collapsed;if((!c||f)&&b&&b.type==CKEDITOR.NODE_TEXT){if(d)if(d>=b.getLength())d=b.getIndex()+1,b=b.getParent();else{var e=b.split(d),d=b.getIndex()+1,b=b.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(e,this.endOffset-this.startOffset):b.equals(this.endContainer)&& -(this.endOffset+=1)}else d=b.getIndex(),b=b.getParent();this.setStart(b,d);if(f){this.collapse(!0);return}}b=this.endContainer;d=this.endOffset;a||f||!b||b.type!=CKEDITOR.NODE_TEXT||(d?(d>=b.getLength()||b.split(d),d=b.getIndex()+1):d=b.getIndex(),b=b.getParent(),this.setEnd(b,d))},enlarge:function(c,a){function b(c){return c&&c.type==CKEDITOR.NODE_ELEMENT&&c.hasAttribute("contenteditable")?null:c}var d=new RegExp(/[^\s\ufeff]/);switch(c){case CKEDITOR.ENLARGE_INLINE:var f=1;case CKEDITOR.ENLARGE_ELEMENT:var e= -function(c,a){var b=new CKEDITOR.dom.range(k);b.setStart(c,a);b.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);var b=new CKEDITOR.dom.walker(b),f;for(b.guard=function(c){return!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())};f=b.next();){if(f.type!=CKEDITOR.NODE_TEXT)return!1;B=f!=c?f.getText():f.substring(a);if(d.test(B))return!1}return!0};if(this.collapsed)break;var h=this.getCommonAncestor(),k=this.root,g,m,l,w,u,D=!1,C,B;C=this.startContainer;var G=this.startOffset;C.type==CKEDITOR.NODE_TEXT? -(G&&(C=!CKEDITOR.tools.trim(C.substring(0,G)).length&&C,D=!!C),C&&((w=C.getPrevious())||(l=C.getParent()))):(G&&(w=C.getChild(G-1)||C.getLast()),w||(l=C));for(l=b(l);l||w;){if(l&&!w){!u&&l.equals(h)&&(u=!0);if(f?l.isBlockBoundary():!k.contains(l))break;D&&"inline"==l.getComputedStyle("display")||(D=!1,u?g=l:this.setStartBefore(l));w=l.getPrevious()}for(;w;)if(C=!1,w.type==CKEDITOR.NODE_COMMENT)w=w.getPrevious();else{if(w.type==CKEDITOR.NODE_TEXT)B=w.getText(),d.test(B)&&(w=null),C=/[\s\ufeff]$/.test(B); -else if((w.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||a&&w.is("br"))&&!w.data("cke-bookmark"))if(D&&CKEDITOR.dtd.$removeEmpty[w.getName()]){B=w.getText();if(d.test(B))w=null;else for(var G=w.$.getElementsByTagName("*"),K=0,H;H=G[K++];)if(!CKEDITOR.dtd.$removeEmpty[H.nodeName.toLowerCase()]){w=null;break}w&&(C=!!B.length)}else w=null;C&&(D?u?g=l:l&&this.setStartBefore(l):D=!0);if(w){C=w.getPrevious();if(!l&&!C){l=w;w=null;break}w=C}else l=null}l&&(l=b(l.getParent()))}C=this.endContainer;G=this.endOffset; -l=w=null;u=D=!1;C.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(C.substring(G)).length?D=!0:(D=!C.getLength(),G==C.getLength()?(w=C.getNext())||(l=C.getParent()):e(C,G)&&(l=C.getParent())):(w=C.getChild(G))||(l=C);for(;l||w;){if(l&&!w){!u&&l.equals(h)&&(u=!0);if(f?l.isBlockBoundary():!k.contains(l))break;D&&"inline"==l.getComputedStyle("display")||(D=!1,u?m=l:l&&this.setEndAfter(l));w=l.getNext()}for(;w;){C=!1;if(w.type==CKEDITOR.NODE_TEXT)B=w.getText(),e(w,0)||(w=null),C=/^[\s\ufeff]/.test(B);else if(w.type== -CKEDITOR.NODE_ELEMENT){if((0=h.getLength()?e.setStartAfter(h):(e.setStartBefore(h),b=0):e.setStartBefore(h));k&&k.type==CKEDITOR.NODE_TEXT&&(m?m>=k.getLength()?e.setEndAfter(k):(e.setEndAfter(k),l=0):e.setEndBefore(k));var e=new CKEDITOR.dom.walker(e),w=CKEDITOR.dom.walker.bookmark(),u=CKEDITOR.dom.walker.bogus();e.evaluator= -function(a){return a.type==(c==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var D;e.guard=function(a,b){if(f&&u(a)||w(a))return!0;if(c==CKEDITOR.SHRINK_ELEMENT&&a.type==CKEDITOR.NODE_TEXT||b&&a.equals(D)||!1===d&&a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()||a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable"))return!1;b||a.type!=CKEDITOR.NODE_ELEMENT||(D=a);return!0};b&&(h=e[c==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(h,a?CKEDITOR.POSITION_AFTER_START: -CKEDITOR.POSITION_BEFORE_START);l&&(e.reset(),(e=e[c==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(e,a?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!b&&!l)}},insertNode:function(c){this.optimizeBookmark();this.trim(!1,!0);var a=this.startContainer,b=a.getChild(this.startOffset);b?c.insertBefore(b):a.append(c);c.getParent()&&c.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(c)},moveToPosition:function(c,a){this.setStartAt(c, -a);this.collapse(!0)},moveToRange:function(c){this.setStart(c.startContainer,c.startOffset);this.setEnd(c.endContainer,c.endOffset)},selectNodeContents:function(c){this.setStart(c,0);this.setEnd(c,c.type==CKEDITOR.NODE_TEXT?c.getLength():c.getChildCount())},setStart:function(c,b){c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]&&(b=c.getIndex(),c=c.getParent());this._setStartContainer(c);this.startOffset=b;this.endContainer||(this._setEndContainer(c),this.endOffset=b);a(this)},setEnd:function(c, -b){c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]&&(b=c.getIndex()+1,c=c.getParent());this._setEndContainer(c);this.endOffset=b;this.startContainer||(this._setStartContainer(c),this.startOffset=b);a(this)},setStartAfter:function(c){this.setStart(c.getParent(),c.getIndex()+1)},setStartBefore:function(c){this.setStart(c.getParent(),c.getIndex())},setEndAfter:function(c){this.setEnd(c.getParent(),c.getIndex()+1)},setEndBefore:function(c){this.setEnd(c.getParent(),c.getIndex())},setStartAt:function(c, -b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type==CKEDITOR.NODE_TEXT?this.setStart(c,c.getLength()):this.setStart(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(c)}a(this)},setEndAt:function(c,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type==CKEDITOR.NODE_TEXT?this.setEnd(c, -c.getLength()):this.setEnd(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(c)}a(this)},fixBlock:function(c,a){var b=this.createBookmark(),d=this.document.createElement(a);this.collapse(c);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(d);d.trim();this.insertNode(d);var f=d.getBogus();f&&f.remove();d.appendBogus();this.moveToBookmark(b);return d},splitBlock:function(c,a){var b= -new CKEDITOR.dom.elementPath(this.startContainer,this.root),d=new CKEDITOR.dom.elementPath(this.endContainer,this.root),f=b.block,e=d.block,h=null;if(!b.blockLimit.equals(d.blockLimit))return null;"br"!=c&&(f||(f=this.fixBlock(!0,c),e=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),e||(e=this.fixBlock(!1,c)));b=f&&this.checkStartOfBlock();d=e&&this.checkEndOfBlock();this.deleteContents();f&&f.equals(e)&&(d?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(e, -CKEDITOR.POSITION_AFTER_END),e=null):b?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),f=null):(e=this.splitElement(f,a||!1),f.is("ul","ol")||f.appendBogus()));return{previousBlock:f,nextBlock:e,wasStartOfBlock:b,wasEndOfBlock:d,elementPath:h}},splitElement:function(c,a){if(!this.collapsed)return null;this.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(!1,a||!1),d=c.clone(!1,a||!1);b.appendTo(d);d.insertAfter(c); -this.moveToPosition(c,CKEDITOR.POSITION_AFTER_END);return d},removeEmptyBlocksAtEnd:function(){function c(c){return function(d){return a(d)||b(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.isEmptyInlineRemoveable()||c.is("table")&&d.is("caption")?!1:!0}}var a=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(!1);return function(a){for(var b=this.createBookmark(),d=this[a?"endPath":"startPath"](),f=d.block||d.blockLimit,e;f&&!f.equals(d.root)&&!f.getFirst(c(f));)e=f.getParent(),this[a?"setEndAt": -"setStartAt"](f,CKEDITOR.POSITION_AFTER_END),f.remove(1),f=e;this.moveToBookmark(b)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(c,a){var b=a==CKEDITOR.START,d=this.clone();d.collapse(b);d[b?"setStartAt":"setEndAt"](c,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=f(b);return d[b? -"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var c=this.startContainer,a=this.startOffset;CKEDITOR.env.ie&&a&&c.type==CKEDITOR.NODE_TEXT&&(c=CKEDITOR.tools.ltrim(c.substring(0,a)),h.test(c)&&this.trim(0,1));this.trim();c=new CKEDITOR.dom.elementPath(this.startContainer,this.root);a=this.clone();a.collapse(!0);a.setStartAt(c.block||c.blockLimit,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(a);c.evaluator=g();return c.checkBackward()},checkEndOfBlock:function(){var c=this.endContainer, -a=this.endOffset;CKEDITOR.env.ie&&c.type==CKEDITOR.NODE_TEXT&&(c=CKEDITOR.tools.rtrim(c.substring(a)),h.test(c)&&this.trim(1,0));this.trim();c=new CKEDITOR.dom.elementPath(this.endContainer,this.root);a=this.clone();a.collapse(!1);a.setEndAt(c.block||c.blockLimit,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(a);c.evaluator=g();return c.checkForward()},getPreviousNode:function(a,b,d){var f=this.clone();f.collapse(1);f.setStartAt(d||this.root,CKEDITOR.POSITION_AFTER_START);d=new CKEDITOR.dom.walker(f); -d.evaluator=a;d.guard=b;return d.previous()},getNextNode:function(a,b,d){var f=this.clone();f.collapse();f.setEndAt(d||this.root,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(f);d.evaluator=a;d.guard=b;return d.next()},checkReadOnly:function(){function a(c,b){for(;c;){if(c.type==CKEDITOR.NODE_ELEMENT){if("false"==c.getAttribute("contentEditable")&&!c.data("cke-editable"))return 0;if(c.is("html")||"true"==c.getAttribute("contentEditable")&&(c.contains(b)||c.equals(b)))break}c=c.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 f=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&h.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END: -CKEDITOR.POSITION_BEFORE_START);f=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable())this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),f=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 e=a,k=f,g=void 0;e.type==CKEDITOR.NODE_ELEMENT&&e.isEditable(!1)&& -(g=e[b?"getLast":"getFirst"](d));k||g||(g=e[b?"getPrevious":"getNext"](d));a=g}return!!f},moveToClosestEditablePosition:function(a,b){var d,f=0,e,h,k=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(d=new CKEDITOR.dom.range(this.root),d.moveToPosition(a,k[b?0:1])):d=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))f=1;else if(e=d[b?"getNextEditableNode":"getPreviousEditableNode"]())f=1,(h=e.type==CKEDITOR.NODE_ELEMENT)&&e.is(CKEDITOR.dtd.$block)&&"false"==e.getAttribute("contenteditable")? -(d.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),d.setEndAt(e,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&h&&e.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(d.setEnd(e,0),d.collapse()):d.moveToPosition(e,k[b?1:0]);f&&this.moveToRange(d);return!!f},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 f=a.next();a.reset();return f&&f.equals(a.previous())?f: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:e(),getPreviousEditableNode:e(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(),f=b.getAscendant("table",!0),d=d.getAscendant("table",!0);return f&&!this.root.contains(f)?null:this.getEnclosedNode()?this.getEnclosedNode().getAscendant(a,!0):f&&d&&(f.equals(d)||f.contains(d)||d.contains(f))?b.getAscendant(a,!0):null},scrollIntoView:function(){var a= -new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),b,d,f,e=this.clone();e.optimize();(f=e.startContainer.type==CKEDITOR.NODE_TEXT)?(d=e.startContainer.getText(),b=e.startContainer.split(e.startOffset),a.insertAfter(e.startContainer)):e.insertNode(a);a.scrollIntoView();f&&(e.startContainer.setText(d),b.remove());a.remove()},getClientRects:function(){function a(c,b){var d=CKEDITOR.tools.array.map(c,function(a){return a}),f=new CKEDITOR.dom.range(b.root),e,h, -k;b.startContainer instanceof CKEDITOR.dom.element&&(h=0===b.startOffset&&b.startContainer.hasAttribute("data-widget"));b.endContainer instanceof CKEDITOR.dom.element&&(k=(k=b.endOffset===(b.endContainer.getChildCount?b.endContainer.getChildCount():b.endContainer.length))&&b.endContainer.hasAttribute("data-widget"));h&&f.setStart(b.startContainer.getParent(),b.startContainer.getIndex());k&&f.setEnd(b.endContainer.getParent(),b.endContainer.getIndex()+1);if(h||k)b=f;f=b.cloneContents().find("[data-cke-widget-id]").toArray(); -if(f=CKEDITOR.tools.array.map(f,function(a){var c=b.root.editor;a=a.getAttribute("data-cke-widget-id");return c.widgets.instances[a].element}))return f=CKEDITOR.tools.array.map(f,function(a){var c;c=a.getParent().hasClass("cke_widget_wrapper")?a.getParent():a;e=this.root.getDocument().$.createRange();e.setStart(c.getParent().$,c.getIndex());e.setEnd(c.getParent().$,c.getIndex()+1);c=e.getClientRects();c.widgetRect=a.getClientRect();return c},b),CKEDITOR.tools.array.forEach(f,function(a){function c(f){CKEDITOR.tools.array.forEach(d, -function(c,e){var h=CKEDITOR.tools.objectCompare(a[f],c);h||(h=CKEDITOR.tools.objectCompare(a.widgetRect,c));h&&(Array.prototype.splice.call(d,e,a.length-f,a.widgetRect),b=!0)});b||(farguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function l(a){var c=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return c.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return c}function g(a,c,b,f){a:{null== -f&&(f=l(b));for(var e;e=f.shift();)if(e.getDtd().p){f={element:e,remaining:f};break a}f=null}if(!f)return 0;if((e=CKEDITOR.filter.instances[f.element.data("cke-filter")])&&!e.check(c))return g(a,c,b,f.remaining);c=new CKEDITOR.dom.range(f.element);c.selectNodeContents(f.element);c=c.createIterator();c.enlargeBr=a.enlargeBr;c.enforceRealBlocks=a.enforceRealBlocks;c.activeFilter=c.filter=e;a._.nestedEditable={element:f.element,container:b,remaining:f.remaining,iterator:c};return 1}function f(a,c,b){if(!c)return!1; -a=a.clone();a.collapse(!b);return a.checkBoundaryOfElement(c,b?CKEDITOR.START:CKEDITOR.END)}var e=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0),h=function(a){return m(a)&&k(a)},b={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var c,k,l,q,t;a=a||"p";if(this._.nestedEditable){if(c=this._.nestedEditable.iterator.getNextParagraph(a))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,c;this.activeFilter=this.filter;if(g(this,a, -this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(a);this._.nestedEditable=null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var r=this.range.clone();k=r.startPath();var v=r.endPath(),y=!r.collapsed&&f(r,k.block),x=!r.collapsed&&f(r,v.block,1);r.shrink(CKEDITOR.SHRINK_ELEMENT,!0);y&&r.setStartAt(k.block,CKEDITOR.POSITION_BEFORE_END);x&&r.setEndAt(v.block, -CKEDITOR.POSITION_AFTER_START);k=r.endContainer.hasAscendant("pre",!0)||r.startContainer.hasAscendant("pre",!0);r.enlarge(this.forceBrBreak&&!k||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);r.collapsed||(k=new CKEDITOR.dom.walker(r.clone()),v=CKEDITOR.dom.walker.bookmark(!0,!0),k.evaluator=v,this._.nextNode=k.next(),k=new CKEDITOR.dom.walker(r.clone()),k.evaluator=v,k=k.previous(),this._.lastNode=k.getNextSourceNode(!0,null,r.root),this._.lastNode&&this._.lastNode.type== -CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(v=this.range.clone(),v.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),v.checkEndOfBlock()&&(v=new CKEDITOR.dom.elementPath(v.endContainer,v.root),this._.lastNode=(v.block||v.blockLimit).getNextSourceNode(!0))),this._.lastNode&&r.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=r.document.createText(""),this._.lastNode.insertAfter(k)),r=null);this._.started= -1;k=r}v=this._.nextNode;r=this._.lastNode;for(this._.nextNode=null;v;){var y=0,x=v.hasAscendant("pre"),z=v.type!=CKEDITOR.NODE_ELEMENT,A=0;if(z)v.type==CKEDITOR.NODE_TEXT&&e.test(v.getText())&&(z=0);else{var w=v.getName();if(CKEDITOR.dtd.$block[w]&&"false"==v.getAttribute("contenteditable")){c=v;g(this,a,c);break}else if(v.isBlockBoundary(this.forceBrBreak&&!x&&{br:1})){if("br"==w)z=1;else if(!k&&!v.getChildCount()&&"hr"!=w){c=v;l=v.equals(r);break}k&&(k.setEndAt(v,CKEDITOR.POSITION_BEFORE_START), -"br"!=w&&(this._.nextNode=v));y=1}else{if(v.getFirst()){k||(k=this.range.clone(),k.setStartAt(v,CKEDITOR.POSITION_BEFORE_START));v=v.getFirst();continue}z=1}}z&&!k&&(k=this.range.clone(),k.setStartAt(v,CKEDITOR.POSITION_BEFORE_START));l=(!y||z)&&v.equals(r);if(k&&!y)for(;!v.getNext(h)&&!l;){w=v.getParent();if(w.isBlockBoundary(this.forceBrBreak&&!x&&{br:1})){y=1;z=0;l||w.equals(r);k.setEndAt(w,CKEDITOR.POSITION_BEFORE_END);break}v=w;z=1;l=v.equals(r);A=1}z&&k.setEndAt(v,CKEDITOR.POSITION_AFTER_END); -v=this._getNextSourceNode(v,A,r);if((l=!v)||y&&k)break}if(!c){if(!k)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;c=new CKEDITOR.dom.elementPath(k.startContainer,k.root);v=c.blockLimit;y={div:1,th:1,td:1};c=c.block;!c&&v&&!this.enforceRealBlocks&&y[v.getName()]&&k.checkStartOfBlock()&&k.checkEndOfBlock()&&!v.equals(k.root)?c=v:!c||this.enforceRealBlocks&&c.is(b)?(c=this.range.document.createElement(a),k.extractContents().appendTo(c),c.trim(),k.insertNode(c),q=t=!0): -"li"!=c.getName()?k.checkStartOfBlock()&&k.checkEndOfBlock()||(c=c.clone(!1),k.extractContents().appendTo(c),c.trim(),t=k.splitBlock(),q=!t.wasStartOfBlock,t=!t.wasEndOfBlock,k.insertNode(c)):l||(this._.nextNode=c.equals(r)?null:this._getNextSourceNode(k.getBoundaryNodes().endNode,1,r))}q&&(q=c.getPrevious())&&q.type==CKEDITOR.NODE_ELEMENT&&("br"==q.getName()?q.remove():q.getLast()&&"br"==q.getLast().$.nodeName.toLowerCase()&&q.getLast().remove());t&&(q=c.getLast())&&q.type==CKEDITOR.NODE_ELEMENT&& -"br"==q.getName()&&(!CKEDITOR.env.needsBrFiller||q.getPrevious(m)||q.getNext(m))&&q.remove();this._.nextNode||(this._.nextNode=l||c.equals(r)||!r?null:this._getNextSourceNode(c,1,r));return c},_getNextSourceNode:function(a,c,b){function f(a){return!(a.equals(b)||a.equals(e))}var e=this.range.root;for(a=a.getNextSourceNode(c,null,f);!m(a);)a=a.getNextSourceNode(c,null,f);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}})();CKEDITOR.command=function(a,l){this.uiItems= -[];this.exec=function(f){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&a.focus();return!1===this.fire("exec")?!0:!1!==l.exec.call(this,a,f)};this.refresh=function(a,e){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!e.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:e})?!0:l.refresh&&!1!==l.refresh.apply(this, -arguments)};var g;this.checkAllowed=function(f){return f||"boolean"!=typeof g?g=a.activeFilter.checkFeature(this):g};CKEDITOR.tools.extend(this,l,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!l.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)}, +CKEDITOR.dom.document.prototype,!0,{find:1,findOne:1});(function(){function a(b,a){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed)return this.end(),null;c.optimize()}var d,e=c.startContainer;d=c.endContainer;var f=c.startOffset,h=c.endOffset,k,n=this.guard,g=this.type,m=b?"getPreviousSourceNode":"getNextSourceNode";if(!b&&!this._.guardLTR){var l=d.type==CKEDITOR.NODE_ELEMENT?d:d.getParent(),C=d.type==CKEDITOR.NODE_ELEMENT?d.getChild(h):d.getNext();this._.guardLTR= +function(b,a){return(!a||!l.equals(b))&&(!C||!b.equals(C))&&(b.type!=CKEDITOR.NODE_ELEMENT||!a||!b.equals(c.root))}}if(b&&!this._.guardRTL){var A=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),G=e.type==CKEDITOR.NODE_ELEMENT?f?e.getChild(f-1):null:e.getPrevious();this._.guardRTL=function(b,a){return(!a||!A.equals(b))&&(!G||!b.equals(G))&&(b.type!=CKEDITOR.NODE_ELEMENT||!a||!b.equals(c.root))}}var K=b?this._.guardRTL:this._.guardLTR;k=n?function(b,a){return!1===K(b,a)?!1:n(b,a)}:K;this.current?d=this.current[m](!1, +g,k):(b?d.type==CKEDITOR.NODE_ELEMENT&&(d=0=v.getChildCount()?(v=v.getChild(C-1),G=!0):v=v.getChild(C):H=G=!0;w.type== +CKEDITOR.NODE_TEXT?l?E=!0:w.split(D):0ha)for(;Z;)Z=f(Z,N,!0);N=Y}l||k()}}function g(){var b=!1,a=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!0),d=CKEDITOR.dom.walker.bogus();return function(e){return c(e)||a(e)?!0:d(e)&&!b?b=!0:e.type==CKEDITOR.NODE_TEXT&&(e.hasAscendant("pre")||CKEDITOR.tools.trim(e.getText()).length)||e.type==CKEDITOR.NODE_ELEMENT&&!e.is(m)?!1:!0}}function e(b){var a=CKEDITOR.dom.walker.whitespaces(), +c=CKEDITOR.dom.walker.bookmark(1);return function(d){return c(d)||a(d)?!0:!b&&k(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function f(b){return function(){var a;return this[b?"getPreviousNode":"getNextNode"](function(b){!a&&d(b)&&(a=b);return c(b)&&!(k(b)&&b.equals(a))})}}var m={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},k=CKEDITOR.dom.walker.bogus(), +h=/^[\t\r\n ]*(?: |\xa0)$/,c=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var b=new CKEDITOR.dom.range(this.root);b._setStartContainer(this.startContainer);b.startOffset=this.startOffset;b._setEndContainer(this.endContainer);b.endOffset=this.endOffset;b.collapsed=this.collapsed;return b},collapse:function(b){b?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer), +this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(b){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||l(this,2,a,!1,"undefined"==typeof b?!0:b);return a},deleteContents:function(b){this.collapsed||l(this,0,null,b)},extractContents:function(b,a){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||l(this,1,c,b,"undefined"==typeof a?!0:a);return c},equals:function(b){return this.startOffset===b.startOffset&&this.endOffset===b.endOffset&& +this.startContainer.equals(b.startContainer)&&this.endContainer.equals(b.endContainer)},createBookmark:function(b){function a(b){return b.getAscendant(function(b){var a;if(a=b.data&&b.data("cke-temp"))a=-1===CKEDITOR.tools.array.indexOf(["cke_copybin","cke_pastebin"],b.getAttribute("id"));return a},!0)}var c=this.startContainer,d=this.endContainer,e=this.collapsed,f,h,k,g;f=this.document.createElement("span");f.data("cke-bookmark",1);f.setStyle("display","none");f.setHtml("\x26nbsp;");b&&(k="cke_bm_"+ +CKEDITOR.tools.getNextNumber(),f.setAttribute("id",k+(e?"C":"S")));e||(h=f.clone(),h.setHtml("\x26nbsp;"),b&&h.setAttribute("id",k+"E"),g=this.clone(),a(d)&&(d=a(d),g.moveToPosition(d,CKEDITOR.POSITION_AFTER_END)),g.collapse(),g.insertNode(h));g=this.clone();a(c)&&(d=a(c),g.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START));g.collapse(!0);g.insertNode(f);h?(this.setStartAfter(f),this.setEndBefore(h)):this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END);return{startNode:b?k+(e?"C":"S"):f,endNode:b?k+ +"E":h,serializable:b,collapsed:e}},createBookmark2:function(){function b(b){var a=b.container,d=b.offset,e;e=a;var f=d;e=e.type!=CKEDITOR.NODE_ELEMENT||0===f||f==e.getChildCount()?0:e.getChild(f-1).type==CKEDITOR.NODE_TEXT&&e.getChild(f).type==CKEDITOR.NODE_TEXT;e&&(a=a.getChild(d-1),d=a.getLength());if(a.type==CKEDITOR.NODE_ELEMENT&&0=b.offset&&(b.offset=e.getIndex(),b.container=e.getParent()))}}var c=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT, +!0);return function(c){var d=this.collapsed,e={container:this.startContainer,offset:this.startOffset},f={container:this.endContainer,offset:this.endOffset};c&&(b(e),a(e,this.root),d||(b(f),a(f,this.root)));return{start:e.container.getAddress(c),end:d?null:f.container.getAddress(c),startOffset:e.offset,endOffset:f.offset,normalized:c,collapsed:d,is2:!0}}}(),moveToBookmark:function(b){if(b.is2){var a=this.document.getByAddress(b.start,b.normalized),c=b.startOffset,d=b.end&&this.document.getByAddress(b.end, +b.normalized);b=b.endOffset;this.setStart(a,c);d?this.setEnd(d,b):this.collapse(!0)}else a=(c=b.serializable)?this.document.getById(b.startNode):b.startNode,b=c?this.document.getById(b.endNode):b.endNode,this.setStartBefore(a),a.remove(),b?(this.setEndBefore(b),b.remove()):this.collapse(!0)},getBoundaryNodes:function(){var b=this.startContainer,a=this.endContainer,c=this.startOffset,d=this.endOffset,e;if(b.type==CKEDITOR.NODE_ELEMENT)if(e=b.getChildCount(),e>c)b=b.getChild(c);else if(1>e)b=b.getPreviousSourceNode(); +else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b);b=b.getNextSourceNode()||b}if(a.type==CKEDITOR.NODE_ELEMENT)if(e=a.getChildCount(),e>d)a=a.getChild(d).getPreviousSourceNode(!0);else if(1>e)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a)}b.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&(b=a);return{startNode:b,endNode:a}},getCommonAncestor:function(b,a){var c=this.startContainer,d=this.endContainer,c=c.equals(d)?b&&c.type==CKEDITOR.NODE_ELEMENT&& +this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(d);return a&&!c.is?c.getParent():c},optimize:function(){var b=this.startContainer,a=this.startOffset;b.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=b.getLength()&&this.setStartAfter(b):this.setStartBefore(b));b=this.endContainer;a=this.endOffset;b.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=b.getLength()&&this.setEndAfter(b):this.setEndBefore(b))},optimizeBookmark:function(){var b=this.startContainer,a=this.endContainer;b.is&&b.is("span")&& +b.data("cke-bookmark")&&this.setStartAt(b,CKEDITOR.POSITION_BEFORE_START);a&&a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setEndAt(a,CKEDITOR.POSITION_AFTER_END)},trim:function(b,a){var c=this.startContainer,d=this.startOffset,e=this.collapsed;if((!b||e)&&c&&c.type==CKEDITOR.NODE_TEXT){if(d)if(d>=c.getLength())d=c.getIndex()+1,c=c.getParent();else{var f=c.split(d),d=c.getIndex()+1,c=c.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(f,this.endOffset-this.startOffset):c.equals(this.endContainer)&& +(this.endOffset+=1)}else d=c.getIndex(),c=c.getParent();this.setStart(c,d);if(e){this.collapse(!0);return}}c=this.endContainer;d=this.endOffset;a||e||!c||c.type!=CKEDITOR.NODE_TEXT||(d?(d>=c.getLength()||c.split(d),d=c.getIndex()+1):d=c.getIndex(),c=c.getParent(),this.setEnd(c,d))},enlarge:function(b,a){function c(b){return b&&b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable")?null:b}var d=new RegExp(/[^\s\ufeff]/);switch(b){case CKEDITOR.ENLARGE_INLINE:var e=1;case CKEDITOR.ENLARGE_ELEMENT:var f= +function(b,a){var c=new CKEDITOR.dom.range(k);c.setStart(b,a);c.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);var c=new CKEDITOR.dom.walker(c),e;for(c.guard=function(b){return!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())};e=c.next();){if(e.type!=CKEDITOR.NODE_TEXT)return!1;A=e!=b?e.getText():e.substring(a);if(d.test(A))return!1}return!0};if(this.collapsed)break;var h=this.getCommonAncestor(),k=this.root,g,m,l,w,v,D=!1,C,A;C=this.startContainer;var G=this.startOffset;C.type==CKEDITOR.NODE_TEXT? +(G&&(C=!CKEDITOR.tools.trim(C.substring(0,G)).length&&C,D=!!C),C&&((w=C.getPrevious())||(l=C.getParent()))):(G&&(w=C.getChild(G-1)||C.getLast()),w||(l=C));for(l=c(l);l||w;){if(l&&!w){!v&&l.equals(h)&&(v=!0);if(e?l.isBlockBoundary():!k.contains(l))break;D&&"inline"==l.getComputedStyle("display")||(D=!1,v?g=l:this.setStartBefore(l));w=l.getPrevious()}for(;w;)if(C=!1,w.type==CKEDITOR.NODE_COMMENT)w=w.getPrevious();else{if(w.type==CKEDITOR.NODE_TEXT)A=w.getText(),d.test(A)&&(w=null),C=/[\s\ufeff]$/.test(A); +else if((w.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||a&&w.is("br"))&&!w.data("cke-bookmark"))if(D&&CKEDITOR.dtd.$removeEmpty[w.getName()]){A=w.getText();if(d.test(A))w=null;else for(var G=w.$.getElementsByTagName("*"),K=0,H;H=G[K++];)if(!CKEDITOR.dtd.$removeEmpty[H.nodeName.toLowerCase()]){w=null;break}w&&(C=!!A.length)}else w=null;C&&(D?v?g=l:l&&this.setStartBefore(l):D=!0);if(w){C=w.getPrevious();if(!l&&!C){l=w;w=null;break}w=C}else l=null}l&&(l=c(l.getParent()))}C=this.endContainer;G=this.endOffset; +l=w=null;v=D=!1;C.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(C.substring(G)).length?D=!0:(D=!C.getLength(),G==C.getLength()?(w=C.getNext())||(l=C.getParent()):f(C,G)&&(l=C.getParent())):(w=C.getChild(G))||(l=C);for(;l||w;){if(l&&!w){!v&&l.equals(h)&&(v=!0);if(e?l.isBlockBoundary():!k.contains(l))break;D&&"inline"==l.getComputedStyle("display")||(D=!1,v?m=l:l&&this.setEndAfter(l));w=l.getNext()}for(;w;){C=!1;if(w.type==CKEDITOR.NODE_TEXT)A=w.getText(),f(w,0)||(w=null),C=/^[\s\ufeff]/.test(A);else if(w.type== +CKEDITOR.NODE_ELEMENT){if((0=h.getLength()?f.setStartAfter(h):(f.setStartBefore(h),c=0):f.setStartBefore(h));k&&k.type==CKEDITOR.NODE_TEXT&&(m?m>=k.getLength()?f.setEndAfter(k):(f.setEndAfter(k),l=0):f.setEndBefore(k));var f=new CKEDITOR.dom.walker(f),w=CKEDITOR.dom.walker.bookmark(),v=CKEDITOR.dom.walker.bogus();f.evaluator= +function(a){return a.type==(b==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var D;f.guard=function(a,c){if(e&&v(a)||w(a))return!0;if(b==CKEDITOR.SHRINK_ELEMENT&&a.type==CKEDITOR.NODE_TEXT||c&&a.equals(D)||!1===d&&a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()||a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable"))return!1;c||a.type!=CKEDITOR.NODE_ELEMENT||(D=a);return!0};c&&(h=f[b==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(h,a?CKEDITOR.POSITION_AFTER_START: +CKEDITOR.POSITION_BEFORE_START);l&&(f.reset(),(f=f[b==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(f,a?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!c&&!l)}},insertNode:function(b){this.optimizeBookmark();this.trim(!1,!0);var a=this.startContainer,c=a.getChild(this.startOffset);c?b.insertBefore(c):a.append(b);b.getParent()&&b.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(b)},moveToPosition:function(b,a){this.setStartAt(b, +a);this.collapse(!0)},moveToRange:function(b){this.setStart(b.startContainer,b.startOffset);this.setEnd(b.endContainer,b.endOffset)},selectNodeContents:function(b){this.setStart(b,0);this.setEnd(b,b.type==CKEDITOR.NODE_TEXT?b.getLength():b.getChildCount())},setStart:function(b,c){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&&(c=b.getIndex(),b=b.getParent());this._setStartContainer(b);this.startOffset=c;this.endContainer||(this._setEndContainer(b),this.endOffset=c);a(this)},setEnd:function(b, +c){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&&(c=b.getIndex()+1,b=b.getParent());this._setEndContainer(b);this.endOffset=c;this.startContainer||(this._setStartContainer(b),this.startOffset=c);a(this)},setStartAfter:function(b){this.setStart(b.getParent(),b.getIndex()+1)},setStartBefore:function(b){this.setStart(b.getParent(),b.getIndex())},setEndAfter:function(b){this.setEnd(b.getParent(),b.getIndex()+1)},setEndBefore:function(b){this.setEnd(b.getParent(),b.getIndex())},setStartAt:function(b, +c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setStart(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setStart(b,b.getLength()):this.setStart(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(b)}a(this)},setEndAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setEnd(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setEnd(b, +b.getLength()):this.setEnd(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(b)}a(this)},fixBlock:function(b,a){var c=this.createBookmark(),d=this.document.createElement(a);this.collapse(b);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(d);d.trim();this.insertNode(d);var e=d.getBogus();e&&e.remove();d.appendBogus();this.moveToBookmark(c);return d},splitBlock:function(b,a){var c= +new CKEDITOR.dom.elementPath(this.startContainer,this.root),d=new CKEDITOR.dom.elementPath(this.endContainer,this.root),e=c.block,f=d.block,h=null;if(!c.blockLimit.equals(d.blockLimit))return null;"br"!=b&&(e||(e=this.fixBlock(!0,b),f=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),f||(f=this.fixBlock(!1,b)));c=e&&this.checkStartOfBlock();d=f&&this.checkEndOfBlock();this.deleteContents();e&&e.equals(f)&&(d?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f, +CKEDITOR.POSITION_AFTER_END),f=null):c?(h=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START),e=null):(f=this.splitElement(e,a||!1),e.is("ul","ol")||e.appendBogus()));return{previousBlock:e,nextBlock:f,wasStartOfBlock:c,wasEndOfBlock:d,elementPath:h}},splitElement:function(b,a){if(!this.collapsed)return null;this.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);var c=this.extractContents(!1,a||!1),d=b.clone(!1,a||!1);c.appendTo(d);d.insertAfter(b); +this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return d},removeEmptyBlocksAtEnd:function(){function b(b){return function(d){return a(d)||c(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.isEmptyInlineRemoveable()||b.is("table")&&d.is("caption")?!1:!0}}var a=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!1);return function(a){for(var c=this.createBookmark(),d=this[a?"endPath":"startPath"](),e=d.block||d.blockLimit,f;e&&!e.equals(d.root)&&!e.getFirst(b(e));)f=e.getParent(),this[a?"setEndAt": +"setStartAt"](e,CKEDITOR.POSITION_AFTER_END),e.remove(1),e=f;this.moveToBookmark(c)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(b,a){var c=a==CKEDITOR.START,d=this.clone();d.collapse(c);d[c?"setStartAt":"setEndAt"](b,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=e(c);return d[c? +"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var b=this.startContainer,a=this.startOffset;CKEDITOR.env.ie&&a&&b.type==CKEDITOR.NODE_TEXT&&(b=CKEDITOR.tools.ltrim(b.substring(0,a)),h.test(b)&&this.trim(0,1));this.trim();b=new CKEDITOR.dom.elementPath(this.startContainer,this.root);a=this.clone();a.collapse(!0);a.setStartAt(b.block||b.blockLimit,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(a);b.evaluator=g();return b.checkBackward()},checkEndOfBlock:function(){var b=this.endContainer, +a=this.endOffset;CKEDITOR.env.ie&&b.type==CKEDITOR.NODE_TEXT&&(b=CKEDITOR.tools.rtrim(b.substring(a)),h.test(b)&&this.trim(1,0));this.trim();b=new CKEDITOR.dom.elementPath(this.endContainer,this.root);a=this.clone();a.collapse(!1);a.setEndAt(b.block||b.blockLimit,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(a);b.evaluator=g();return b.checkForward()},getPreviousNode:function(b,a,c){var d=this.clone();d.collapse(1);d.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(d); +c.evaluator=b;c.guard=a;return c.previous()},getNextNode:function(b,a,c){var d=this.clone();d.collapse();d.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(d);c.evaluator=b;c.guard=a;return c.next()},checkReadOnly:function(){function b(b,a){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if("false"==b.getAttribute("contentEditable")&&!b.data("cke-editable"))return 0;if(b.is("html")||"true"==b.getAttribute("contentEditable")&&(b.contains(a)||b.equals(a)))break}b=b.getParent()}return 1} +return function(){var a=this.startContainer,c=this.endContainer;return!(b(a,c)&&b(c,a))}}(),moveToElementEditablePosition:function(b,a){if(b.type==CKEDITOR.NODE_ELEMENT&&!b.isEditable(!1))return this.moveToPosition(b,a?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var c=0;b;){if(b.type==CKEDITOR.NODE_TEXT){a&&this.endContainer&&this.checkEndOfBlock()&&h.test(b.getText())?this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(b,a?CKEDITOR.POSITION_AFTER_END: +CKEDITOR.POSITION_BEFORE_START);c=1;break}if(b.type==CKEDITOR.NODE_ELEMENT)if(b.isEditable())this.moveToPosition(b,a?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),c=1;else if(a&&b.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);else if("false"==b.getAttribute("contenteditable")&&b.is(CKEDITOR.dtd.$block))return this.setStartBefore(b),this.setEndAfter(b),!0;var e=b,f=c,k=void 0;e.type==CKEDITOR.NODE_ELEMENT&&e.isEditable(!1)&& +(k=e[a?"getLast":"getFirst"](d));f||k||(k=e[a?"getPrevious":"getNext"](d));b=k}return!!c},moveToClosestEditablePosition:function(b,a){var c,d=0,e,f,h=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];b?(c=new CKEDITOR.dom.range(this.root),c.moveToPosition(b,h[a?0:1])):c=this.clone();if(b&&!b.is(CKEDITOR.dtd.$block))d=1;else if(e=c[a?"getNextEditableNode":"getPreviousEditableNode"]())d=1,(f=e.type==CKEDITOR.NODE_ELEMENT)&&e.is(CKEDITOR.dtd.$block)&&"false"==e.getAttribute("contenteditable")? +(c.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),c.setEndAt(e,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&f&&e.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(c.setEnd(e,0),c.collapse()):c.moveToPosition(e,h[a?1:0]);d&&this.moveToRange(c);return!!d},moveToElementEditStart:function(b){return this.moveToElementEditablePosition(b)},moveToElementEditEnd:function(b){return this.moveToElementEditablePosition(b,!0)},getEnclosedNode:function(){var b=this.clone();b.optimize();if(b.startContainer.type!= +CKEDITOR.NODE_ELEMENT||b.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var b=new CKEDITOR.dom.walker(b),a=CKEDITOR.dom.walker.bookmark(!1,!0),c=CKEDITOR.dom.walker.whitespaces(!0);b.evaluator=function(b){return c(b)&&a(b)};var d=b.next();b.reset();return d&&d.equals(b.previous())?d:null},getTouchedStartNode:function(){var b=this.startContainer;return this.collapsed||b.type!=CKEDITOR.NODE_ELEMENT?b:b.getChild(this.startOffset)||b},getTouchedEndNode:function(){var b=this.endContainer;return this.collapsed|| +b.type!=CKEDITOR.NODE_ELEMENT?b:b.getChild(this.endOffset-1)||b},getNextEditableNode:f(),getPreviousEditableNode:f(1),_getTableElement:function(b){b=b||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var a=this.getTouchedStartNode(),c=this.getTouchedEndNode(),d=a.getAscendant("table",!0),c=c.getAscendant("table",!0);return d&&!this.root.contains(d)?null:this.getEnclosedNode()?this.getEnclosedNode().getAscendant(b,!0):d&&c&&(d.equals(c)||d.contains(c)||c.contains(d))?a.getAscendant(b,!0):null},scrollIntoView:function(){var b= +new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),a,c,d,e=this.clone();e.optimize();(d=e.startContainer.type==CKEDITOR.NODE_TEXT)?(c=e.startContainer.getText(),a=e.startContainer.split(e.startOffset),b.insertAfter(e.startContainer)):e.insertNode(b);b.scrollIntoView();d&&(e.startContainer.setText(c),a.remove());b.remove()},getClientRects:function(){function b(b,a){var c=CKEDITOR.tools.array.map(b,function(a){return a}),d=new CKEDITOR.dom.range(a.root),e,f, +h;a.startContainer instanceof CKEDITOR.dom.element&&(f=0===a.startOffset&&a.startContainer.hasAttribute("data-widget"));a.endContainer instanceof CKEDITOR.dom.element&&(h=(h=a.endOffset===(a.endContainer.getChildCount?a.endContainer.getChildCount():a.endContainer.length))&&a.endContainer.hasAttribute("data-widget"));f&&d.setStart(a.startContainer.getParent(),a.startContainer.getIndex());h&&d.setEnd(a.endContainer.getParent(),a.endContainer.getIndex()+1);if(f||h)a=d;d=a.cloneContents().find("[data-cke-widget-id]").toArray(); +if(d=CKEDITOR.tools.array.map(d,function(b){var c=a.root.editor;b=b.getAttribute("data-cke-widget-id");return c.widgets.instances[b].element}))return d=CKEDITOR.tools.array.map(d,function(a){var b;b=a.getParent().hasClass("cke_widget_wrapper")?a.getParent():a;e=this.root.getDocument().$.createRange();e.setStart(b.getParent().$,b.getIndex());e.setEnd(b.getParent().$,b.getIndex()+1);b=e.getClientRects();b.widgetRect=a.getClientRect();return b},a),CKEDITOR.tools.array.forEach(d,function(a){function b(e){CKEDITOR.tools.array.forEach(c, +function(b,f){var h=CKEDITOR.tools.objectCompare(a[e],b);h||(h=CKEDITOR.tools.objectCompare(a.widgetRect,b));h&&(Array.prototype.splice.call(c,f,a.length-e,a.widgetRect),d=!0)});d||(earguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function l(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return b}function g(a,b,c,e){a:{null== +e&&(e=l(c));for(var f;f=e.shift();)if(f.getDtd().p){e={element:f,remaining:e};break a}e=null}if(!e)return 0;if((f=CKEDITOR.filter.instances[e.element.data("cke-filter")])&&!f.check(b))return g(a,b,c,e.remaining);b=new CKEDITOR.dom.range(e.element);b.selectNodeContents(e.element);b=b.createIterator();b.enlargeBr=a.enlargeBr;b.enforceRealBlocks=a.enforceRealBlocks;b.activeFilter=b.filter=f;a._.nestedEditable={element:e.element,container:c,remaining:e.remaining,iterator:b};return 1}function e(a,b,c){if(!b)return!1; +a=a.clone();a.collapse(!c);return a.checkBoundaryOfElement(b,c?CKEDITOR.START:CKEDITOR.END)}var f=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0),h=function(a){return m(a)&&k(a)},c={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var b,k,l,u,t;a=a||"p";if(this._.nestedEditable){if(b=this._.nestedEditable.iterator.getNextParagraph(a))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,b;this.activeFilter=this.filter;if(g(this,a, +this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(a);this._.nestedEditable=null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var r=this.range.clone();k=r.startPath();var p=r.endPath(),y=!r.collapsed&&e(r,k.block),x=!r.collapsed&&e(r,p.block,1);r.shrink(CKEDITOR.SHRINK_ELEMENT,!0);y&&r.setStartAt(k.block,CKEDITOR.POSITION_BEFORE_END);x&&r.setEndAt(p.block, +CKEDITOR.POSITION_AFTER_START);k=r.endContainer.hasAscendant("pre",!0)||r.startContainer.hasAscendant("pre",!0);r.enlarge(this.forceBrBreak&&!k||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);r.collapsed||(k=new CKEDITOR.dom.walker(r.clone()),p=CKEDITOR.dom.walker.bookmark(!0,!0),k.evaluator=p,this._.nextNode=k.next(),k=new CKEDITOR.dom.walker(r.clone()),k.evaluator=p,k=k.previous(),this._.lastNode=k.getNextSourceNode(!0,null,r.root),this._.lastNode&&this._.lastNode.type== +CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(p=this.range.clone(),p.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),p.checkEndOfBlock()&&(p=new CKEDITOR.dom.elementPath(p.endContainer,p.root),this._.lastNode=(p.block||p.blockLimit).getNextSourceNode(!0))),this._.lastNode&&r.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=r.document.createText(""),this._.lastNode.insertAfter(k)),r=null);this._.started= +1;k=r}p=this._.nextNode;r=this._.lastNode;for(this._.nextNode=null;p;){var y=0,x=p.hasAscendant("pre"),z=p.type!=CKEDITOR.NODE_ELEMENT,B=0;if(z)p.type==CKEDITOR.NODE_TEXT&&f.test(p.getText())&&(z=0);else{var w=p.getName();if(CKEDITOR.dtd.$block[w]&&"false"==p.getAttribute("contenteditable")){b=p;g(this,a,b);break}else if(p.isBlockBoundary(this.forceBrBreak&&!x&&{br:1})){if("br"==w)z=1;else if(!k&&!p.getChildCount()&&"hr"!=w){b=p;l=p.equals(r);break}k&&(k.setEndAt(p,CKEDITOR.POSITION_BEFORE_START), +"br"!=w&&(this._.nextNode=p));y=1}else{if(p.getFirst()){k||(k=this.range.clone(),k.setStartAt(p,CKEDITOR.POSITION_BEFORE_START));p=p.getFirst();continue}z=1}}z&&!k&&(k=this.range.clone(),k.setStartAt(p,CKEDITOR.POSITION_BEFORE_START));l=(!y||z)&&p.equals(r);if(k&&!y)for(;!p.getNext(h)&&!l;){w=p.getParent();if(w.isBlockBoundary(this.forceBrBreak&&!x&&{br:1})){y=1;z=0;l||w.equals(r);k.setEndAt(w,CKEDITOR.POSITION_BEFORE_END);break}p=w;z=1;l=p.equals(r);B=1}z&&k.setEndAt(p,CKEDITOR.POSITION_AFTER_END); +p=this._getNextSourceNode(p,B,r);if((l=!p)||y&&k)break}if(!b){if(!k)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;b=new CKEDITOR.dom.elementPath(k.startContainer,k.root);p=b.blockLimit;y={div:1,th:1,td:1};b=b.block;!b&&p&&!this.enforceRealBlocks&&y[p.getName()]&&k.checkStartOfBlock()&&k.checkEndOfBlock()&&!p.equals(k.root)?b=p:!b||this.enforceRealBlocks&&b.is(c)?(b=this.range.document.createElement(a),k.extractContents().appendTo(b),b.trim(),k.insertNode(b),u=t=!0): +"li"!=b.getName()?k.checkStartOfBlock()&&k.checkEndOfBlock()||(b=b.clone(!1),k.extractContents().appendTo(b),b.trim(),t=k.splitBlock(),u=!t.wasStartOfBlock,t=!t.wasEndOfBlock,k.insertNode(b)):l||(this._.nextNode=b.equals(r)?null:this._getNextSourceNode(k.getBoundaryNodes().endNode,1,r))}u&&(u=b.getPrevious())&&u.type==CKEDITOR.NODE_ELEMENT&&("br"==u.getName()?u.remove():u.getLast()&&"br"==u.getLast().$.nodeName.toLowerCase()&&u.getLast().remove());t&&(u=b.getLast())&&u.type==CKEDITOR.NODE_ELEMENT&& +"br"==u.getName()&&(!CKEDITOR.env.needsBrFiller||u.getPrevious(m)||u.getNext(m))&&u.remove();this._.nextNode||(this._.nextNode=l||b.equals(r)||!r?null:this._getNextSourceNode(b,1,r));return b},_getNextSourceNode:function(a,b,c){function e(a){return!(a.equals(c)||a.equals(f))}var f=this.range.root;for(a=a.getNextSourceNode(b,null,e);!m(a);)a=a.getNextSourceNode(b,null,e);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}})();CKEDITOR.command=function(a,l){this.uiItems= +[];this.exec=function(e){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&a.focus();return!1===this.fire("exec")?!0:!1!==l.exec.call(this,a,e)};this.refresh=function(a,f){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!f.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:f})?!0:l.refresh&&!1!==l.refresh.apply(this, +arguments)};var g;this.checkAllowed=function(e){return e||"boolean"!=typeof g?g=a.activeFilter.checkFeature(this):g};CKEDITOR.tools.extend(this,l,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!l.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(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=a;this.fire("state");return!0},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.event.implementOn(CKEDITOR.command.prototype);CKEDITOR.ENTER_P=1;CKEDITOR.ENTER_BR=2;CKEDITOR.ENTER_DIV=3;CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0, -language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"\x3c!DOCTYPE html\x3e",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:999999,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]};(function(){function a(a,c,b,d,f){var e,h;a=[];for(e in c){h=c[e];h="boolean"== -typeof h?{}:"function"==typeof h?{match:h}:K(h);"$"!=e.charAt(0)&&(h.elements=e);b&&(h.featureName=b.toLowerCase());var g=h;g.elements=k(g.elements,/\s+/)||null;g.propertiesOnly=g.propertiesOnly||!0===g.elements;var m=/\s*,\s*/,l=void 0;for(l in M){g[l]=k(g[l],m)||null;var w=g,n=I[l],u=k(g[I[l]],m),v=g[l],F=[],P=!0,p=void 0;u?P=!1:u={};for(p in v)"!"==p.charAt(0)&&(p=p.slice(1),F.push(p),u[p]=!0,P=!1);for(;p=F.pop();)v[p]=v["!"+p],delete v["!"+p];w[n]=(P?!1:u)||null}g.match=g.match||null;d.push(h); -a.push(h)}c=f.elements;f=f.generic;var D;b=0;for(d=a.length;b=--h&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"), -c(f))},p=function(c,b){a[c]=1;var d=l[c];delete l[c];for(var f=0;f=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?d.$.onreadystatechange=function(){if("loaded"==d.$.readyState||"complete"==d.$.readyState)d.$.onreadystatechange=null,p(c,!0)}:(d.$.onload=function(){setTimeout(function(){d.$.onload= -null;d.$.onerror=null;p(c,!0)},0)},d.$.onerror=function(){d.$.onload=null;d.$.onerror=null;p(c,!1)}));d.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var t=0;t=--h&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"), +b(e))},q=function(b,c){a[b]=1;var d=l[b];delete l[b];for(var e=0;e=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?d.$.onreadystatechange=function(){if("loaded"==d.$.readyState||"complete"==d.$.readyState)d.$.onreadystatechange=null,q(b,!0)}:(d.$.onload=function(){setTimeout(function(){d.$.onload= +null;d.$.onerror=null;q(b,!0)},0)},d.$.onerror=function(){d.$.onload=null;d.$.onerror=null;q(b,!1)}));d.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var t=0;t]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}};(function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,l={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(g){for(var f,e,m=0,k;f=this._.htmlPartsRegex.exec(g);){e=f.index;if(e>m)if(m=g.substring(m,e),k)k.push(m);else this.onText(m);m=this._.htmlPartsRegex.lastIndex;if(e=f[1])if(e=e.toLowerCase(),k&&CKEDITOR.dtd.$cdata[e]&&(this.onCDATA(k.join("")),k=null),!k){this.onTagClose(e); -continue}if(k)k.push(f[0]);else if(e=f[3]){if(e=e.toLowerCase(),!/="/.test(e)){var h={},b,d=f[4];f=!!f[5];if(d)for(;b=a.exec(d);){var c=b[1].toLowerCase();b=b[2]||b[3]||b[4]||"";h[c]=!b&&l[c]?c:CKEDITOR.tools.htmlDecodeAttr(b)}this.onTagOpen(e,h,f);!k&&CKEDITOR.dtd.$cdata[e]&&(k=[])}}else if(e=f[2])this.onComment(e)}if(g.length>m)this.onText(g.substring(m,g.length))}}})();CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(a){this._.output.push("\x3c", +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(g){for(var e,f,m=0,k;e=this._.htmlPartsRegex.exec(g);){f=e.index;if(f>m)if(m=g.substring(m,f),k)k.push(m);else this.onText(m);m=this._.htmlPartsRegex.lastIndex;if(f=e[1])if(f=f.toLowerCase(),k&&CKEDITOR.dtd.$cdata[f]&&(this.onCDATA(k.join("")),k=null),!k){this.onTagClose(f); +continue}if(k)k.push(e[0]);else if(f=e[3]){if(f=f.toLowerCase(),!/="/.test(f)){var h={},c,d=e[4];e=!!e[5];if(d)for(;c=a.exec(d);){var b=c[1].toLowerCase();c=c[2]||c[3]||c[4]||"";h[b]=!c&&l[b]?b:CKEDITOR.tools.htmlDecodeAttr(c)}this.onTagOpen(f,h,e);!k&&CKEDITOR.dtd.$cdata[f]&&(k=[])}}else if(f=e[2])this.onComment(f)}if(g.length>m)this.onText(g.substring(m,g.length))}}})();CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(a){this._.output.push("\x3c", a)},openTagClose:function(a,l){l?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(a,l){"string"==typeof l&&(l=CKEDITOR.tools.htmlEncodeAttr(l));this._.output.push(" ",a,'\x3d"',l,'"')},closeTag:function(a){this._.output.push("\x3c/",a,"\x3e")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("\x3c!--",a,"--\x3e")},write:function(a){this._.output.push(a)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(a){var l=this._.output.join(""); -a&&this.reset();return l}}});"use strict";(function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,l=CKEDITOR.tools.indexOf(a,this),g=this.previous,f=this.next;g&&(g.next=f);f&&(f.previous=g);a.splice(l,1);this.parent=null},replaceWith:function(a){var l=this.parent.children,g=CKEDITOR.tools.indexOf(l,this),f=a.previous=this.previous,e=a.next=this.next;f&&(f.next=a);e&&(e.previous=a);l[g]=a;a.parent=this.parent;this.parent=null}, -insertAfter:function(a){var l=a.parent.children,g=CKEDITOR.tools.indexOf(l,a),f=a.next;l.splice(g+1,0,this);this.next=a.next;this.previous=a;a.next=this;f&&(f.previous=this);this.parent=a.parent},insertBefore:function(a){var l=a.parent.children,g=CKEDITOR.tools.indexOf(l,a);l.splice(g,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var l="function"==typeof a?a:"string"==typeof a?function(f){return f.name==a}:function(f){return f.name in +a&&this.reset();return l}}});"use strict";(function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,l=CKEDITOR.tools.indexOf(a,this),g=this.previous,e=this.next;g&&(g.next=e);e&&(e.previous=g);a.splice(l,1);this.parent=null},replaceWith:function(a){var l=this.parent.children,g=CKEDITOR.tools.indexOf(l,this),e=a.previous=this.previous,f=a.next=this.next;e&&(e.next=a);f&&(f.previous=a);l[g]=a;a.parent=this.parent;this.parent=null}, +insertAfter:function(a){var l=a.parent.children,g=CKEDITOR.tools.indexOf(l,a),e=a.next;l.splice(g+1,0,this);this.next=a.next;this.previous=a;a.next=this;e&&(e.previous=this);this.parent=a.parent},insertBefore:function(a){var l=a.parent.children,g=CKEDITOR.tools.indexOf(l,a);l.splice(g,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var l="function"==typeof a?a:"string"==typeof a?function(e){return e.name==a}:function(e){return e.name in a},g=this.parent;for(;g&&g.type==CKEDITOR.NODE_ELEMENT;){if(l(g))return g;g=g.parent}return null},wrapWith:function(a){this.replaceWith(a);a.add(this);return a},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(a){return a||{}}}})();"use strict";CKEDITOR.htmlParser.comment=function(a){this.value=a;this._={isBlockLike:!1}};CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(a, l){var g=this.value;if(!(g=a.onComment(l,g,this)))return this.remove(),!1;if("string"!=typeof g)return this.replaceWith(g),!1;this.value=g;return!0},writeHtml:function(a,l){l&&this.filter(l);a.comment(this.value)}});"use strict";(function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(a,l){if(!(this.value=a.onText(l,this.value,this)))return this.remove(), !1},writeHtml:function(a,l){l&&this.filter(l);a.text(this.value)}})})();"use strict";(function(){CKEDITOR.htmlParser.cdata=function(a){this.value=a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})})();"use strict";CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}};(function(){function a(a){return a.attributes["data-cke-survive"]? -!1:"a"==a.name&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var l=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),g={ol:1,ul:1},f=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),e={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(m,k,h){function b(a){var c;if(0k;k++)if(m=e[k]){m=m.exec(a,f,this);if(!1===m)return null;if(m&&m!=f)return this.onNode(a,m);if(f.parent&&!f.name)break}return f},onNode:function(a,f){var e=f.type;return e==CKEDITOR.NODE_ELEMENT?this.onElement(a,f):e==CKEDITOR.NODE_TEXT? -new CKEDITOR.htmlParser.text(this.onText(a,f.value,f)):e==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,f.value,f)):null},onAttribute:function(a,f,e,m){return(e=this.attributesRules[e])?e.exec(a,m,f,this):m}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,f,e){this.rules.splice(this.findIndex(f),0,{value:a,priority:f,options:e})},addMany:function(a,f,e){for(var m=[this.findIndex(f),0],k=0,h=a.length;k/g,"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function n(a){return a.replace(I,function(a,c){return decodeURIComponent(c)})}function p(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(a){return"\x3c!--"+x+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function q(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,c){return decodeURIComponent(c)})} -function t(a,c){var b=c._.dataStore;return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,c){return decodeURIComponent(c)}).replace(/\{cke_protected_(\d+)\}/g,function(a,c){return b&&b[c]||""})}function r(a,c){var b=[],d=c.config.protectedSource,f=c._.dataStore||(c._.dataStore={id:1}),e=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,d=[/|$)/gi,//gi,//gi].concat(d);a=a.replace(/\x3c!--[\s\S]*?--\x3e/g,function(a){return"\x3c!--{cke_tempcomment}"+ -(b.push(a)-1)+"--\x3e"});for(var h=0;h]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(a){return a.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(a, -c){f[f.id]=decodeURIComponent(c);return"{cke_protected_"+f.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,b,d,f){return"\x3c"+b+d+"\x3e"+t(q(f),c)+"\x3c/"+b+"\x3e"})}var v;CKEDITOR.htmlDataProcessor=function(b){var f,e,h=this;this.editor=b;this.dataFilter=f=new CKEDITOR.htmlParser.filter;this.htmlFilter=e=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;f.addRules(u);f.addRules(D,{applyToAll:!0});f.addRules(a(b,"data"), -{applyToAll:!0});e.addRules(C);e.addRules(B,{applyToAll:!0});e.addRules(a(b,"html"),{applyToAll:!0});b.on("toHtml",function(a){a=a.data;var f=a.dataValue,e,f=v(f),f=r(f,b),f=c(f,M),f=d(f),f=c(f,E),f=f.replace(J,"$1cke:$2"),f=f.replace(L,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),f=f.replace(/(]*>)(\r\n|\n)/g,"$1$2$2"),f=f.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");e=a.context||b.editable().getName();var h;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==e&&(e="div", -f="\x3cpre\x3e"+f+"\x3c/pre\x3e",h=1);e=b.document.createElement(e);e.setHtml("a"+f);f=e.getHtml().substr(1);f=f.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");h&&(f=f.replace(/^
|<\/pre>$/gi,""));f=f.replace(F,"$1$2");f=n(f);f=q(f);e=!1===a.fixForBody?!1:l(a.enterMode,b.config.autoParagraph);f=CKEDITOR.htmlParser.fragment.fromHtml(f,a.context,e);e&&(h=f,!h.children.length&&CKEDITOR.dtd[h.name][e]&&(e=new CKEDITOR.htmlParser.element(e),h.add(e)));a.dataValue=f},null,null,5);b.on("toHtml",
-function(a){a.data.filter.applyTo(a.data.dataValue,!0,a.data.dontFilter,a.data.enterMode)&&b.fire("dataFiltered")},null,null,6);b.on("toHtml",function(a){a.data.dataValue.filterChildren(h.dataFilter,!0)},null,null,10);b.on("toHtml",function(a){a=a.data;var c=a.dataValue,b=new CKEDITOR.htmlParser.basicWriter;c.writeChildrenHtml(b);c=b.getHtml(!0);a.dataValue=p(c)},null,null,15);b.on("toDataFormat",function(a){var c=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&(c=c.replace(/^
/i,"")); -a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,a.data.context,l(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",function(a){a.data.dataValue.filterChildren(h.htmlFilter,!0)},null,null,10);b.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,!1,!0)},null,null,11);b.on("toDataFormat",function(a){var c=a.data.dataValue,d=h.writer;d.reset();c.writeChildrenHtml(d);c=d.getHtml(!0);c=q(c);c=t(c,b);a.data.dataValue=c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype= -{toHtml:function(a,c,b,d){var f=this.editor,e,h,k,g;c&&"object"==typeof c?(e=c.context,b=c.fixForBody,d=c.dontFilter,h=c.filter,k=c.enterMode,g=c.protectedWhitespaces):e=c;e||null===e||(e=f.editable().getName());return f.fire("toHtml",{dataValue:a,context:e,fixForBody:b,dontFilter:d,filter:h||f.filter,enterMode:k||f.enterMode,protectedWhitespaces:g}).dataValue},toDataFormat:function(a,c){var b,d,f;c&&(b=c.context,d=c.filter,f=c.enterMode);b||null===b||(b=this.editor.editable().getName());return this.editor.fire("toDataFormat", -{dataValue:a,filter:d||this.editor.filter,context:b,enterMode:f||this.editor.enterMode}).dataValue}};var y=/(?: |\xa0)$/,x="{cke_protected}",z=CKEDITOR.dtd,A="caption colgroup col thead tfoot tbody".split(" "),w=CKEDITOR.tools.extend({},z.$blockLimit,z.$block),u={elements:{input:h,textarea:h}},D={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 c=a.attributes.src.toLowerCase().replace(/[^a-z]/gi, -"");if(0===c.indexOf("javascript")||0===c.indexOf("data"))a.attributes["data-cke-pa-src"]=a.attributes.src,delete a.attributes.src}}}},C={elements:{embed:function(a){var c=a.parent;if(c&&"object"==c.name){var b=c.attributes.width,c=c.attributes.height;b&&(a.attributes.width=b);c&&(a.attributes.height=c)}},a:function(a){var c=a.attributes;if(!(a.children.length||c.name||c.id||a.attributes["data-cke-saved-name"]))return!1}}},B={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/, -""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var c=a.attributes;if(c){if(c["data-cke-temp"])return!1;for(var b=["name","href","src"],d,f=0;fd? -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 c=a.children[0];c&&c.value&&(c.value=CKEDITOR.tools.trim(c.value));a.attributes.type||(a.attributes.type="text/css")},title:function(a){var c=a.children[0];!c&&k(a,c=new CKEDITOR.htmlParser.text); -c.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&&(B.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})});var G=/<(a|area|img|input|source)\b([^>]*)>/gi,K=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,H=/^(href|src|name)$/i,E=/(?:])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi, -M=/(])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,I=/([^<]*)<\/cke:encoded>/gi,J=/(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi,F=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,L=/]*?)\/?>(?!\s*<\/cke:\1)/gi;v=function(){function a(b){return CKEDITOR.tools.array.reduce(b.split(""),function(a,b){var d=b.toLowerCase(),f=b.toUpperCase(),e=c(d);d!==f&&(e+="|"+c(f));return a+("("+e+")")},"")}function c(a){var b;b=a.charCodeAt(0);var d=b.toString(16); -b={htmlCode:"\x26#"+b+";?",hex:"\x26#x0*"+d+";?",entity:{"\x3c":"\x26lt;","\x3e":"\x26gt;",":":"\x26colon;"}[a]};for(var f in b)b[f]&&(a+="|"+b[f]);return a}var b=new RegExp("("+a("\x3ccke:encoded\x3e")+"(.*?)"+a("\x3c/cke:encoded\x3e")+")|("+a("\x3c")+a("/")+"?"+a("cke:encoded\x3e")+")","gi"),d=new RegExp("(("+a("{cke_protected")+")(_[0-9]*)?"+a("}")+")","gi");return function(a){return a.replace(b,"").replace(d,"")}}()})();"use strict";CKEDITOR.htmlParser.element=function(a,l){this.name=a;this.attributes= -l||{};this.children=[];var g=a||"",f=g.match(/^cke:(.*)/);f&&(g=f[1]);g=!!(CKEDITOR.dtd.$nonBodyContent[g]||CKEDITOR.dtd.$block[g]||CKEDITOR.dtd.$listItem[g]||CKEDITOR.dtd.$tableContent[g]||CKEDITOR.dtd.$nonEditable[g]||"br"==g);this.isEmpty=!!CKEDITOR.dtd.$empty[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:g,hasInlineStarted:this.isEmpty||!g}};CKEDITOR.htmlParser.cssStyle=function(a){var l={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style:a)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, -function(a,f,e){"font-family"==f&&(e=e.replace(/["']/g,""));l[f.toLowerCase()]=e});return{rules:l,populate:function(a){var f=this.toString();f&&(a instanceof CKEDITOR.dom.element?a.setAttribute("style",f):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=f:a.style=f)},toString:function(){var a=[],f;for(f in l)l[f]&&a.push(f,":",l[f],";");return a.join("")}}};(function(){function a(a){return function(e){return e.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof a?e.name==a:e.name in a)}}var l= -function(a,e){a=a[0];e=e[0];return ae?1:0},g=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:g.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,e){var g=this,k,h;e=g.getFilterContext(e);if(!g.parent)a.onRoot(e,g);for(;;){k=g.name;if(!(h=a.onElementName(e,k)))return this.remove(),!1;g.name=h;if(!(g=a.onElement(e,g)))return this.remove(), -!1;if(g!==this)return this.replaceWith(g),!1;if(g.name==k)break;if(g.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(g),!1;if(!g.name)return this.replaceWithChildren(),!1}k=g.attributes;var b,d;for(b in k){for(h=k[b];;)if(d=a.onAttributeName(e,b))if(d!=b)delete k[b],b=d;else break;else{delete k[b];break}d&&(!1===(h=a.onAttribute(e,g,d,h))?delete k[d]:k[d]=h)}g.isEmpty||this.filterChildren(a,!1,e);return!0},filterChildren:g.filterChildren,writeHtml:function(a,e){e&&this.filter(e);var g=this.name, -k=[],h=this.attributes,b,d;a.openTag(g,h);for(b in h)k.push([b,h[b]]);a.sortAttributes&&k.sort(l);b=0;for(d=k.length;bk;k++)if(m=f[k]){m=m.exec(a,e,this);if(!1===m)return null;if(m&&m!=e)return this.onNode(a,m);if(e.parent&&!e.name)break}return e},onNode:function(a,e){var f=e.type;return f==CKEDITOR.NODE_ELEMENT?this.onElement(a,e):f==CKEDITOR.NODE_TEXT? +new CKEDITOR.htmlParser.text(this.onText(a,e.value,e)):f==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,e.value,e)):null},onAttribute:function(a,e,f,m){return(f=this.attributesRules[f])?f.exec(a,m,e,this):m}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,e,f){this.rules.splice(this.findIndex(e),0,{value:a,priority:e,options:f})},addMany:function(a,e,f){for(var m=[this.findIndex(e),0],k=0,h=a.length;k/g,"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function n(a){return a.replace(I,function(a,b){return decodeURIComponent(b)})}function q(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(a){return"\x3c!--"+x+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function u(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)})} +function t(a,b){var c=b._.dataStore;return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return c&&c[b]||""})}function r(a,b){var c=[],d=b.config.protectedSource,e=b._.dataStore||(b._.dataStore={id:1}),f=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,d=[/|$)/gi,//gi,//gi].concat(d);a=a.replace(/\x3c!--[\s\S]*?--\x3e/g,function(a){return"\x3c!--{cke_tempcomment}"+ +(c.push(a)-1)+"--\x3e"});for(var h=0;h]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(a){return a.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(a, +b){e[e.id]=decodeURIComponent(b);return"{cke_protected_"+e.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,c,d,e){return"\x3c"+c+d+"\x3e"+t(u(e),b)+"\x3c/"+c+"\x3e"})}var p;CKEDITOR.htmlDataProcessor=function(c){var e,f,h=this;this.editor=c;this.dataFilter=e=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;e.addRules(v);e.addRules(D,{applyToAll:!0});e.addRules(a(c,"data"), +{applyToAll:!0});f.addRules(C);f.addRules(A,{applyToAll:!0});f.addRules(a(c,"html"),{applyToAll:!0});c.on("toHtml",function(a){a=a.data;var e=a.dataValue,f,e=p(e),e=r(e,c),e=b(e,M),e=d(e),e=b(e,E),e=e.replace(J,"$1cke:$2"),e=e.replace(L,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),e=e.replace(/(]*>)(\r\n|\n)/g,"$1$2$2"),e=e.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");f=a.context||c.editable().getName();var h;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==f&&(f="div", +e="\x3cpre\x3e"+e+"\x3c/pre\x3e",h=1);f=c.document.createElement(f);f.setHtml("a"+e);e=f.getHtml().substr(1);e=e.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");h&&(e=e.replace(/^
|<\/pre>$/gi,""));e=e.replace(F,"$1$2");e=n(e);e=u(e);f=!1===a.fixForBody?!1:l(a.enterMode,c.config.autoParagraph);e=CKEDITOR.htmlParser.fragment.fromHtml(e,a.context,f);f&&(h=e,!h.children.length&&CKEDITOR.dtd[h.name][f]&&(f=new CKEDITOR.htmlParser.element(f),h.add(f)));a.dataValue=e},null,null,5);c.on("toHtml",
+function(a){a.data.filter.applyTo(a.data.dataValue,!0,a.data.dontFilter,a.data.enterMode)&&c.fire("dataFiltered")},null,null,6);c.on("toHtml",function(a){a.data.dataValue.filterChildren(h.dataFilter,!0)},null,null,10);c.on("toHtml",function(a){a=a.data;var b=a.dataValue,c=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(c);b=c.getHtml(!0);a.dataValue=q(b)},null,null,15);c.on("toDataFormat",function(a){var b=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&(b=b.replace(/^
/i,"")); +a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(b,a.data.context,l(a.data.enterMode,c.config.autoParagraph))},null,null,5);c.on("toDataFormat",function(a){a.data.dataValue.filterChildren(h.htmlFilter,!0)},null,null,10);c.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,!1,!0)},null,null,11);c.on("toDataFormat",function(a){var b=a.data.dataValue,d=h.writer;d.reset();b.writeChildrenHtml(d);b=d.getHtml(!0);b=u(b);b=t(b,c);a.data.dataValue=b},null,null,15)};CKEDITOR.htmlDataProcessor.prototype= +{toHtml:function(a,b,c,d){var e=this.editor,f,h,k,g;b&&"object"==typeof b?(f=b.context,c=b.fixForBody,d=b.dontFilter,h=b.filter,k=b.enterMode,g=b.protectedWhitespaces):f=b;f||null===f||(f=e.editable().getName());return e.fire("toHtml",{dataValue:a,context:f,fixForBody:c,dontFilter:d,filter:h||e.filter,enterMode:k||e.enterMode,protectedWhitespaces:g}).dataValue},toDataFormat:function(a,b){var c,d,e;b&&(c=b.context,d=b.filter,e=b.enterMode);c||null===c||(c=this.editor.editable().getName());return this.editor.fire("toDataFormat", +{dataValue:a,filter:d||this.editor.filter,context:c,enterMode:e||this.editor.enterMode}).dataValue}};var y=/(?: |\xa0)$/,x="{cke_protected}",z=CKEDITOR.dtd,B="caption colgroup col thead tfoot tbody".split(" "),w=CKEDITOR.tools.extend({},z.$blockLimit,z.$block),v={elements:{input:h,textarea:h}},D={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}}}},C={elements:{embed:function(a){var b=a.parent;if(b&&"object"==b.name){var c=b.attributes.width,b=b.attributes.height;c&&(a.attributes.width=c);b&&(a.attributes.height=b)}},a:function(a){var b=a.attributes;if(!(a.children.length||b.name||b.id||a.attributes["data-cke-saved-name"]))return!1}}},A={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/, +""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return!1;for(var c=["name","href","src"],d,e=0;ed? +1:-1})},param:function(a){a.children=[];a.isEmpty=!0;return a},span:function(a){"Apple-style-span"==a.attributes["class"]&&delete a.name},html:function(a){delete a.attributes.contenteditable;delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable},style:function(a){var b=a.children[0];b&&b.value&&(b.value=CKEDITOR.tools.trim(b.value));a.attributes.type||(a.attributes.type="text/css")},title:function(a){var b=a.children[0];!b&&k(a,b=new CKEDITOR.htmlParser.text); +b.value=a.attributes["data-cke-title"]||""},input:c,textarea:c},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(A.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})});var G=/<(a|area|img|input|source)\b([^>]*)>/gi,K=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,H=/^(href|src|name)$/i,E=/(?:])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi, +M=/(])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,I=/([^<]*)<\/cke:encoded>/gi,J=/(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi,F=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,L=/]*?)\/?>(?!\s*<\/cke:\1)/gi;p=function(){function a(c){return CKEDITOR.tools.array.reduce(c.split(""),function(a,c){var d=c.toLowerCase(),e=c.toUpperCase(),f=b(d);d!==e&&(f+="|"+b(e));return a+("("+f+")")},"")}function b(a){var c;c=a.charCodeAt(0);var d=c.toString(16); +c={htmlCode:"\x26#"+c+";?",hex:"\x26#x0*"+d+";?",entity:{"\x3c":"\x26lt;","\x3e":"\x26gt;",":":"\x26colon;"}[a]};for(var e in c)c[e]&&(a+="|"+c[e]);return a}var c=new RegExp("("+a("\x3ccke:encoded\x3e")+"(.*?)"+a("\x3c/cke:encoded\x3e")+")|("+a("\x3c")+a("/")+"?"+a("cke:encoded\x3e")+")","gi"),d=new RegExp("(("+a("{cke_protected")+")(_[0-9]*)?"+a("}")+")","gi");return function(a){return a.replace(c,"").replace(d,"")}}()})();"use strict";CKEDITOR.htmlParser.element=function(a,l){this.name=a;this.attributes= +l||{};this.children=[];var g=a||"",e=g.match(/^cke:(.*)/);e&&(g=e[1]);g=!!(CKEDITOR.dtd.$nonBodyContent[g]||CKEDITOR.dtd.$block[g]||CKEDITOR.dtd.$listItem[g]||CKEDITOR.dtd.$tableContent[g]||CKEDITOR.dtd.$nonEditable[g]||"br"==g);this.isEmpty=!!CKEDITOR.dtd.$empty[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:g,hasInlineStarted:this.isEmpty||!g}};CKEDITOR.htmlParser.cssStyle=function(a){var l={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style:a)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, +function(a,e,f){"font-family"==e&&(f=f.replace(/["']/g,""));l[e.toLowerCase()]=f});return{rules:l,populate:function(a){var e=this.toString();e&&(a instanceof CKEDITOR.dom.element?a.setAttribute("style",e):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=e:a.style=e)},toString:function(){var a=[],e;for(e in l)l[e]&&a.push(e,":",l[e],";");return a.join("")}}};(function(){function a(a){return function(f){return f.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof a?f.name==a:f.name in a)}}var l= +function(a,f){a=a[0];f=f[0];return af?1:0},g=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:g.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,f){var g=this,k,h;f=g.getFilterContext(f);if(!g.parent)a.onRoot(f,g);for(;;){k=g.name;if(!(h=a.onElementName(f,k)))return this.remove(),!1;g.name=h;if(!(g=a.onElement(f,g)))return this.remove(), +!1;if(g!==this)return this.replaceWith(g),!1;if(g.name==k)break;if(g.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(g),!1;if(!g.name)return this.replaceWithChildren(),!1}k=g.attributes;var c,d;for(c in k){for(h=k[c];;)if(d=a.onAttributeName(f,c))if(d!=c)delete k[c],c=d;else break;else{delete k[c];break}d&&(!1===(h=a.onAttribute(f,g,d,h))?delete k[d]:k[d]=h)}g.isEmpty||this.filterChildren(a,!1,f);return!0},filterChildren:g.filterChildren,writeHtml:function(a,f){f&&this.filter(f);var g=this.name, +k=[],h=this.attributes,c,d;a.openTag(g,h);for(c in h)k.push([c,h[c]]);a.sortAttributes&&k.sort(l);c=0;for(d=k.length;cCKEDITOR.env.version||CKEDITOR.env.quirks))this.hasFocus&&(this.focus(),c());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()};z.eol.detect(a,this);z.bogus.exclude(a);z.cell.shrink(a);a.fragment=a.range.cloneContents();z.tree.rebuild(a,this);z.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,c){var b=A,d={range:a,doc:a.document},e=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),e;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.table.detectPurge(d);d.bookmark=a.createBookmark();delete d.range;var f=this.editor.createRange(); -f.moveToPosition(d.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);d.targetBookmark=f.createBookmark();b.list.detectMerge(d,this);b.table.detectRanges(d,this);b.block.detectMerge(d,this);d.tableContentsRanges?(b.table.deleteRanges(d),a.moveToBookmark(d.bookmark),d.range=a):(a.moveToBookmark(d.bookmark),d.range=a,a.extractContents(b.detectExtractMerge(d)));a.moveToBookmark(d.targetBookmark);a.optimize();b.fixUneditableRangePosition(a);b.list.merge(d,this);b.table.purge(d,this);b.block.merge(d,this); -if(c){b=a.startPath();if(d=a.checkStartOfBlock()&&a.checkEndOfBlock()&&b.block&&!a.root.equals(b.block)){a:{var d=b.block.getElementsByTag("span"),f=0,h;if(d)for(;h=d.getItem(f++);)if(!p(h)){d=!0;break a}d=!1}d=!d}d&&(a.moveToPosition(b.block,CKEDITOR.POSITION_BEFORE_START),b.block.remove())}else b.autoParagraph(this.editor,a),q(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return e},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var c= -this.getData();this.is("textarea")||!1!==a.config.ignoreEmptyParagraph&&(c=c.replace(r,function(a,c){return c}));a.setData(c,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var c=a.getSelection();(c=c&&c.getNative())&&"Control"==c.type||this.focus()}, +f=CKEDITOR.dom.element.createFromHtml(d.output({id:a.id,name:f,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:h?'\x3cspan id\x3d"'+a.ui.spaceId("top")+'" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e'+h+"\x3c/span\x3e":"",contentId:a.ui.spaceId("contents"),bottomHtml:c?'\x3cspan id\x3d"'+a.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+c+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));k==CKEDITOR.ELEMENT_MODE_REPLACE? +(g.hide(),f.insertAfter(g)):g.append(f);a.container=f;a.ui.contentsElement=a.ui.space("contents");h&&a.ui.space("top").unselectable();c&&a.ui.space("bottom").unselectable();g=a.config.width;k=a.config.height;g&&f.setStyle("width",CKEDITOR.tools.cssLength(g));k&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(k));f.disableContextMenu();CKEDITOR.env.webkit&&f.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(e,f){return a(e,f,null,CKEDITOR.ELEMENT_MODE_REPLACE)}; +CKEDITOR.appendTo=function(e,f,g){return a(e,f,g,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),f=0;fCKEDITOR.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()};z.eol.detect(a,this);z.bogus.exclude(a);z.cell.shrink(a);a.fragment=a.range.cloneContents();z.tree.rebuild(a,this);z.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,b){var c=B,d={range:a,doc:a.document},e=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),e;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);c.table.detectPurge(d);d.bookmark=a.createBookmark();delete d.range;var f=this.editor.createRange(); +f.moveToPosition(d.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);d.targetBookmark=f.createBookmark();c.list.detectMerge(d,this);c.table.detectRanges(d,this);c.block.detectMerge(d,this);d.tableContentsRanges?(c.table.deleteRanges(d),a.moveToBookmark(d.bookmark),d.range=a):(a.moveToBookmark(d.bookmark),d.range=a,a.extractContents(c.detectExtractMerge(d)));a.moveToBookmark(d.targetBookmark);a.optimize();c.fixUneditableRangePosition(a);c.list.merge(d,this);c.table.purge(d,this);c.block.merge(d,this); +if(b){c=a.startPath();if(d=a.checkStartOfBlock()&&a.checkEndOfBlock()&&c.block&&!a.root.equals(c.block)){a:{var d=c.block.getElementsByTag("span"),f=0,h;if(d)for(;h=d.getItem(f++);)if(!q(h)){d=!0;break a}d=!1}d=!d}d&&(a.moveToPosition(c.block,CKEDITOR.POSITION_BEFORE_START),c.block.remove())}else c.autoParagraph(this.editor,a),u(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return e},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var b= +this.getData();this.is("textarea")||!1!==a.config.ignoreEmptyParagraph&&(b=b.replace(r,function(a,b){return b}));a.setData(b,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var b=a.getSelection();(b=b&&b.getNative())&&"Control"==b.type||this.focus()}, this);this.attachListener(a,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(a,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(a,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable");a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):a.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&a.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO|| -this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=+a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=!1},null,null,-1);this.on("focus",function(){this.hasFocus=!0},null,null,-1);if(CKEDITOR.env.webkit)this.on("scroll",function(){a._.previousScrollTop=a.editable().$.scrollTop},null,null,-1);if(CKEDITOR.env.edge&&14CKEDITOR.env.version?k.$.styleSheet.cssText=h:k.setText(h)):(h=d.appendStyleText(h),h=new CKEDITOR.dom.element(h.ownerNode||h.owningElement),e.setCustomData("stylesheet",h),h.data("cke-temp",1))}e=d.getCustomData("stylesheet_ref")||0;d.setCustomData("stylesheet_ref", -e+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){a=a.data;var c=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");c&&2!=a.$.button&&c.isReadOnly()&&a.preventDefault()});var l={8:1,46:1};this.attachListener(a,"key",function(c){if(a.readOnly)return!0;var b=c.data.domEvent.getKey(),d;c=a.getSelection();if(0!==c.getRanges().length){if(b in l){var e,f=c.getRanges()[0],h=f.startPath(),k,g,p,b=8==b;CKEDITOR.env.ie&& -11>CKEDITOR.env.version&&(e=c.getSelectedElement())||(e=m(c))?(a.fire("saveSnapshot"),f.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START),e.remove(),f.select(),a.fire("saveSnapshot"),d=1):f.collapsed&&((k=h.block)&&(p=k[b?"getPrevious":"getNext"](n))&&p.type==CKEDITOR.NODE_ELEMENT&&p.is("table")&&f[b?"checkStartOfBlock":"checkEndOfBlock"]()?(a.fire("saveSnapshot"),f[b?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove(),f["moveToElementEdit"+(b?"End":"Start")](p),f.select(),a.fire("saveSnapshot"), -d=1):h.blockLimit&&h.blockLimit.is("td")&&(g=h.blockLimit.getAscendant("table"))&&f.checkBoundaryOfElement(g,b?CKEDITOR.START:CKEDITOR.END)&&(p=g[b?"getPrevious":"getNext"](n))?(a.fire("saveSnapshot"),f["moveToElementEdit"+(b?"End":"Start")](p),f.checkStartOfBlock()&&f.checkEndOfBlock()?p.remove():f.select(),a.fire("saveSnapshot"),d=1):(g=h.contains(["td","th","caption"]))&&f.checkBoundaryOfElement(g,b?CKEDITOR.START:CKEDITOR.END)&&(d=1))}return!d}});a.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&& -this.attachListener(this,"keyup",function(c){c.data.getKeystroke()in l&&!this.getFirst(f)&&(this.appendBogus(),c=a.createRange(),c.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),c.select())});this.attachListener(this,"dblclick",function(c){if(a.readOnly)return!1;c={element:c.data.getTarget()};a.fire("doubleclick",c)});CKEDITOR.env.ie&&this.attachListener(this,"click",g);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(c){var b=c.data.getTarget();b.is("img","hr", -"input","textarea","select")&&!b.isReadOnly()&&(a.getSelection().selectElement(b),b.is("input","textarea","select")&&c.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(c){(c=c.data.getTarget())&&c.is("img")&&!c.isReadOnly()&&a.getSelection().selectElement(c)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(c){if(2==c.data.$.button&&(c=c.data.getTarget(),!c.getAscendant("table")&&!c.getOuterHtml().replace(r,""))){var b=a.createRange();b.moveToElementEditStart(c); -b.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(a,"key",function(b){if(a.readOnly)return!0;var d=b.data.domEvent.getKey();if(d in l&&(b=a.getSelection(),0!==b.getRanges().length)){var d=8==d,e=b.getRanges()[0];b=e.startPath();if(e.collapsed)a:{var f= -b.block;if(f&&e[d?"checkStartOfBlock":"checkEndOfBlock"]()&&e.moveToClosestEditablePosition(f,!d)&&e.collapsed){if(e.startContainer.type==CKEDITOR.NODE_ELEMENT){var h=e.startContainer.getChild(e.startOffset-(d?1:0));if(h&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("hr")){a.fire("saveSnapshot");h.remove();b=!0;break a}}e=e.startPath().block;if(!e||e&&e.contains(f))b=void 0;else{a.fire("saveSnapshot");var k;(k=(d?e:f).getBogus())&&k.remove();k=a.getSelection();h=k.createBookmarks();(d?f:e).moveChildren(d? -e:f,!1);b.lastElement.mergeSiblings();c(f,e,!d);k.selectBookmarks(h);b=!0}}else b=!1}else d=e,k=b.block,e=d.endPath().block,k&&e&&!k.equals(e)?(a.fire("saveSnapshot"),(f=k.getBogus())&&f.remove(),d.enlarge(CKEDITOR.ENLARGE_INLINE),d.deleteContents(),e.getParent()&&(e.moveChildren(k,!1),b.lastElement.mergeSiblings(),c(k,e,!0)),d=a.getSelection().getRanges()[0],d.collapse(1),d.optimize(),""===d.startContainer.getHtml()&&d.startContainer.appendBogus(),d.select(),b=!0):b=!1;if(!b)return;a.getSelection().scrollIntoView(); -a.fire("saveSnapshot");return!1}},this,null,100)}},getUniqueId:function(){var a;try{this._.expandoNumber=a=CKEDITOR.dom.domObject.prototype.getUniqueId.call(this)}catch(c){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(),c=a.getHead();if(c.getCustomData("stylesheet")){var b=a.getCustomData("stylesheet_ref"); ---b?a.setCustomData("stylesheet_ref",b):(a.removeCustomData("stylesheet_ref"),c.removeCustomData("stylesheet").remove())}}}}});CKEDITOR.editor.prototype.editable=function(a){var c=this._.editable;if(c&&a)return 0;if(!arguments.length)return c;a?c=a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(c&&c.detach(),c=null);return this._.editable=c};CKEDITOR.on("instanceLoaded",function(c){var b=c.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(c){if(!b.readOnly){var d=b.getSelection();d&&!d.isLocked&&(d=b.checkDirty(),b.fire("lockSnapshot"),a(c),b.fire("unlockSnapshot"),!d&&b.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var c=a.editor;c.on("mode",function(){var a=c.editable();if(a&&a.isInline()){var b=c.title;a.changeAttr("role", -"textbox");a.changeAttr("aria-multiline","true");a.changeAttr("aria-label",b);b&&a.changeAttr("title",b);var d=c.fire("ariaEditorHelpLabel",{}).label;if(d&&(b=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var e=CKEDITOR.tools.getNextId(),d=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+e+'" class\x3d"cke_voice_label"\x3e'+d+"\x3c/span\x3e");b.append(d);a.changeAttr("aria-describedby",e)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}"); -n=CKEDITOR.dom.walker.whitespaces(!0);p=CKEDITOR.dom.walker.bookmark(!1,!0);q=CKEDITOR.dom.walker.empty();t=CKEDITOR.dom.walker.bogus();r=/(^|]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;v=function(){function a(c){return c.type==CKEDITOR.NODE_ELEMENT}function c(b,d){var e,f,h,k,g=[],l=d.range.startContainer;e=d.range.startPath();for(var l=n[l.getName()],m=0,p=b.getChildren(),v=p.count(),x=-1,G=-1,q=0,y=e.contains(n.$list);m< -v;++m)e=p.getItem(m),a(e)?(h=e.getName(),y&&h in CKEDITOR.dtd.$list?g=g.concat(c(e,d)):(k=!!l[h],"br"!=h||!e.data("cke-eol")||m&&m!=v-1||(q=(f=m?g[m-1].node:p.getItem(m+1))&&(!a(f)||!f.is("br")),f=f&&a(f)&&n.$block[f.getName()]),-1!=x||k||(x=m),k||(G=m),g.push({isElement:1,isLineBreak:q,isBlock:e.isBlockBoundary(),hasBlockSibling:f,node:e,name:h,allowed:k}),f=q=0)):g.push({isElement:0,node:e,allowed:1});-1CKEDITOR.env.version&&d.getChildCount()&&d.getFirst().remove())}return function(d){var e= -d.startContainer,f=e.getAscendant("table",1),h=!1;b(f.getElementsByTag("td"));b(f.getElementsByTag("th"));f=d.clone();f.setStart(e,0);f=a(f).lastBackward();f||(f=d.clone(),f.setEndAt(e,CKEDITOR.POSITION_BEFORE_END),f=a(f).lastForward(),h=!0);f||(f=e);f.is("table")?(d.setStartAt(f,CKEDITOR.POSITION_BEFORE_START),d.collapse(!0),f.remove()):(f.is({tbody:1,thead:1,tfoot:1})&&(f=c(f,"tr",h)),f.is("tr")&&(f=c(f,f.getParent().is("thead")?"th":"td",h)),(e=f.getBogus())&&e.remove(),d.moveToPosition(f,h?CKEDITOR.POSITION_AFTER_START: -CKEDITOR.POSITION_BEFORE_END))}}();x=function(){function a(c){c=new CKEDITOR.dom.walker(c);c.guard=function(a,c){if(c)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$list)||a.is(CKEDITOR.dtd.$listItem)};c.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$listItem)};return c}return function(c){var b=c.startContainer,d=!1,e;e=c.clone();e.setStart(b,0);e=a(e).lastBackward();e||(e=c.clone(),e.setEndAt(b,CKEDITOR.POSITION_BEFORE_END),e=a(e).lastForward(), -d=!0);e||(e=b);e.is(CKEDITOR.dtd.$list)?(c.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),c.collapse(!0),e.remove()):((b=e.getBogus())&&b.remove(),c.moveToPosition(e,d?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),c.select())}}();z={eol:{detect:function(a,c){var b=a.range,d=b.clone(),e=b.clone(),f=new CKEDITOR.dom.elementPath(b.startContainer,c),h=new CKEDITOR.dom.elementPath(b.endContainer,c);d.collapse(1);e.collapse();f.block&&d.checkBoundaryOfElement(f.block,CKEDITOR.END)&&(b.setStartAfter(f.block), -a.prependEolBr=1);h.block&&e.checkBoundaryOfElement(h.block,CKEDITOR.START)&&(b.setEndBefore(h.block),a.appendEolBr=1)},fix:function(a,c){var b=c.getDocument(),d;a.appendEolBr&&(d=this.createEolBr(b),a.fragment.append(d));!a.prependEolBr||d&&!d.getPrevious()||a.fragment.append(this.createEolBr(b),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(a){var c=a.range.getBoundaryNodes(),b=c.startNode,c=c.endNode;!c||!t(c)||b&&b.equals(c)|| -a.range.setEndBefore(c)}},tree:{rebuild:function(a,c){var b=a.range,d=b.getCommonAncestor(),e=new CKEDITOR.dom.elementPath(d,c),f=new CKEDITOR.dom.elementPath(b.startContainer,c),b=new CKEDITOR.dom.elementPath(b.endContainer,c),h;d.type==CKEDITOR.NODE_TEXT&&(d=d.getParent());if(e.blockLimit.is({tr:1,table:1})){var k=e.contains("table").getParent();h=function(a){return!a.equals(k)}}else if(e.block&&e.block.is(CKEDITOR.dtd.$listItem)&&(f=f.contains(CKEDITOR.dtd.$list),b=b.contains(CKEDITOR.dtd.$list), -!f.equals(b))){var g=e.contains(CKEDITOR.dtd.$list).getParent();h=function(a){return!a.equals(g)}}h||(h=function(a){return!a.equals(e.block)&&!a.equals(e.blockLimit)});this.rebuildFragment(a,c,d,h)},rebuildFragment:function(a,c,b,d){for(var e;b&&!b.equals(c)&&d(b);)e=b.clone(0,1),a.fragment.appendTo(e),a.fragment=e,b=b.getParent()}},cell:{shrink:function(a){a=a.range;var c=a.startContainer,b=a.endContainer,d=a.startOffset,e=a.endOffset;c.type==CKEDITOR.NODE_ELEMENT&&c.equals(b)&&c.is("tr")&&++d== -e&&a.shrink(CKEDITOR.SHRINK_TEXT)}}};A=function(){function a(c,b){var d=c.getParent();if(d.is(CKEDITOR.dtd.$inline))c[b?"insertBefore":"insertAfter"](d)}function c(b,d,e){a(d);a(e,1);for(var f;f=e.getNext();)f.insertAfter(d),d=f;q(b)&&b.remove()}function b(a,c){var d=new CKEDITOR.dom.range(a);d.setStartAfter(c.startNode);d.setEndBefore(c.endNode);return d}return{list:{detectMerge:function(a,c){var d=b(c,a.bookmark),e=d.startPath(),f=d.endPath(),h=e.contains(CKEDITOR.dtd.$list),k=f.contains(CKEDITOR.dtd.$list); -a.mergeList=h&&k&&h.getParent().equals(k.getParent())&&!h.equals(k);a.mergeListItems=e.block&&f.block&&e.block.is(CKEDITOR.dtd.$listItem)&&f.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)d=d.clone(),d.setStartBefore(a.bookmark.startNode),d.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=d.createBookmark()},merge:function(a,b){if(a.mergeListBookmark){var d=a.mergeListBookmark.startNode,e=a.mergeListBookmark.endNode,f=new CKEDITOR.dom.elementPath(d,b),h=new CKEDITOR.dom.elementPath(e, -b);if(a.mergeList){var k=f.contains(CKEDITOR.dtd.$list),g=h.contains(CKEDITOR.dtd.$list);k.equals(g)||(g.moveChildren(k),g.remove())}a.mergeListItems&&(f=f.contains(CKEDITOR.dtd.$listItem),h=h.contains(CKEDITOR.dtd.$listItem),f.equals(h)||c(h,d,e));d.remove();e.remove()}}},block:{detectMerge:function(a,c){if(!a.tableContentsRanges&&!a.mergeListBookmark){var b=new CKEDITOR.dom.range(c);b.setStartBefore(a.bookmark.startNode);b.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=b.createBookmark()}}, -merge:function(a,b){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var d=a.mergeBlockBookmark.startNode,e=a.mergeBlockBookmark.endNode,f=new CKEDITOR.dom.elementPath(d,b),h=new CKEDITOR.dom.elementPath(e,b),f=f.block,h=h.block;f&&h&&!f.equals(h)&&c(h,d,e);d.remove();e.remove()}}},table:function(){function a(b){var e=[],f,h=new CKEDITOR.dom.walker(b),k=b.startPath().contains(d),g=b.endPath().contains(d),l={};h.guard=function(a,h){if(a.type==CKEDITOR.NODE_ELEMENT){var m="visited_"+(h?"out":"in");if(a.getCustomData(m))return; -CKEDITOR.dom.element.setMarker(l,a,m,1)}if(h&&k&&a.equals(k))f=b.clone(),f.setEndAt(k,CKEDITOR.POSITION_BEFORE_END),e.push(f);else if(!h&&g&&a.equals(g))f=b.clone(),f.setStartAt(g,CKEDITOR.POSITION_AFTER_START),e.push(f);else{if(m=!h)m=a.type==CKEDITOR.NODE_ELEMENT&&a.is(d)&&(!k||c(a,k))&&(!g||c(a,g));if(!m&&(m=h))if(a.is(d))var m=k&&k.getAscendant("table",!0),n=g&&g.getAscendant("table",!0),p=a.getAscendant("table",!0),m=m&&m.contains(p)||n&&n.contains(p);else m=void 0;m&&(f=b.clone(),f.selectNodeContents(a), -e.push(f))}};h.lastForward();CKEDITOR.dom.element.clearAllMarkers(l);return e}function c(a,b){var d=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,e=a.getPosition(b);return e===CKEDITOR.POSITION_IDENTICAL?!1:0===(e&d)}var d={td:1,th:1,caption:1};return{detectPurge:function(a){var c=a.range,b=c.clone();b.enlarge(CKEDITOR.ENLARGE_ELEMENT);var b=new CKEDITOR.dom.walker(b),e=0;b.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(d)&&++e};b.checkForward();if(1f&&e&&e.intersectsNode(b.$)){var h=[{node:d.anchorNode,offset:d.anchorOffset},{node:d.focusNode,offset:d.focusOffset}]; -d.anchorNode==b.$&&d.anchorOffset>f&&(h[0].offset-=f);d.focusNode==b.$&&d.focusOffset>f&&(h[1].offset-=f)}}b.setText(p(b.getText(),1));h&&(b=a.getDocument().$,d=b.getSelection(),b=b.createRange(),b.setStart(h[0].node,h[0].offset),b.collapse(!0),d.removeAllRanges(),d.addRange(b),d.extend(h[1].node,h[1].offset))}}function p(a,c){return c?a.replace(z,function(a,c){return c?" ":""}):a.replace(x,"")}function q(a,c){var b=c&&CKEDITOR.tools.htmlEncode(c)||"\x26nbsp;",b=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-hidden-sel\x3d"1" data-cke-temp\x3d"1" style\x3d"'+ -(CKEDITOR.env.ie&&14>CKEDITOR.env.version?"display:none":"position:fixed;top:0;left:-1000px;width:0;height:0;overflow:hidden;")+'"\x3e'+b+"\x3c/div\x3e",a.document);a.fire("lockSnapshot");a.editable().append(b);var d=a.getSelection(1),e=a.createRange(),f=d.root.on("selectionchange",function(a){a.cancel()},null,null,0);e.setStartAt(b,CKEDITOR.POSITION_AFTER_START);e.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);d.selectRanges([e]);f.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer= -b}function t(a){var c={37:1,39:1,8:1,46:1};return function(b){var d=b.data.getKeystroke();if(c[d]){var e=a.getSelection().getRanges(),f=e[0];1==e.length&&f.collapsed&&(d=f[38>d?"getPreviousEditableNode":"getNextEditableNode"]())&&d.type==CKEDITOR.NODE_ELEMENT&&"false"==d.getAttribute("contenteditable")&&(a.getSelection().fake(d),b.data.preventDefault(),b.cancel())}}}function r(a){for(var c=0;c=d.getLength()?k.setStartAfter(d):k.setStartBefore(d));e&&e.type==CKEDITOR.NODE_TEXT&&(h?k.setEndAfter(e):k.setEndBefore(e));d=new CKEDITOR.dom.walker(k);d.evaluator=function(d){if(d.type==CKEDITOR.NODE_ELEMENT&& -d.isReadOnly()){var e=b.clone();b.setEndBefore(d);b.collapsed&&a.splice(c--,1);d.getPosition(k.endContainer)&CKEDITOR.POSITION_CONTAINS||(e.setStartAfter(d),e.collapsed||a.splice(c+1,0,e));return!0}return!1};d.next()}}return a}var v="function"!=typeof window.getSelection,y=1,x=CKEDITOR.tools.repeat("​",7),z=new RegExp(x+"( )?","g"),A,w,u,D=CKEDITOR.dom.walker.invisible(1),C=function(){function a(c){return function(a){var b=a.editor.createRange();b.moveToClosestEditablePosition(a.selected,c)&&a.editor.getSelection().selectRanges([b]); -return!1}}function c(a){return function(c){var b=c.editor,d=b.createRange(),e;if(!b.readOnly)return(e=d.moveToClosestEditablePosition(c.selected,a))||(e=d.moveToClosestEditablePosition(c.selected,!a)),e&&b.getSelection().selectRanges([d]),b.fire("saveSnapshot"),c.selected.remove(),e||(d.moveToElementEditablePosition(b.editable()),b.getSelection().selectRanges([d])),b.fire("saveSnapshot"),!1}}var b=a(),d=a(1);return{37:b,38:b,39:d,40:d,8:c(),46:c(1)}}();CKEDITOR.on("instanceCreated",function(a){function c(){var a= -b.getSelection();a&&a.removeAllRanges()}var b=a.editor;b.on("contentDom",function(){function a(){x=new CKEDITOR.dom.selection(b.getSelection());x.lock()}function c(){h.removeListener("mouseup",c);p.removeListener("mouseup",c);var a=CKEDITOR.document.$.selection,b=a.createRange();"None"!=a.type&&b.parentElement()&&b.parentElement().ownerDocument==f.$&&b.select()}function d(a){var c,b;c=(c=this.document.getActive())?"input"===c.getName()||"textarea"===c.getName():!1;c||(c=this.getSelection(1),(b=e(c))&& -!b.equals(g)&&(c.selectElement(b),a.data.preventDefault()))}function e(a){a=a.getRanges()[0];return a?(a=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")},!0))&&"false"===a.getAttribute("contenteditable")?a:null:null}var f=b.document,h=CKEDITOR.document,g=b.editable(),l=f.getBody(),p=f.getDocumentElement(),u=g.isInline(),q,x;CKEDITOR.env.gecko&&g.attachListener(g,"focus",function(a){a.removeListener();0!==q&&(a=b.getSelection().getNative())&& -a.isCollapsed&&a.anchorNode==g.$&&(a=b.createRange(),a.moveToElementEditStart(g),a.select())},null,null,-2);g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){if(q&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){q=b._.previousActive&&b._.previousActive.equals(f.getActive());var a=null!=b._.previousScrollTop&&b._.previousScrollTop!=g.$.scrollTop;CKEDITOR.env.webkit&&q&&a&&(g.$.scrollTop=b._.previousScrollTop)}b.unlockSelection(q);q=0},null,null,-1);g.attachListener(g, -"mousedown",function(){q=0});if(CKEDITOR.env.ie||CKEDITOR.env.gecko||u)v?g.attachListener(g,"beforedeactivate",a,null,null,-1):g.attachListener(b,"selectionCheck",a,null,null,-1),g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusout":"blur",function(){var a=x&&(x.isFake||2>x.getRanges().length);CKEDITOR.env.gecko&&!u&&a||(b.lockSelection(x),q=1)},null,null,-1),g.attachListener(g,"mousedown",function(){q=0});if(CKEDITOR.env.ie&&!u){var y;g.attachListener(g,"mousedown",function(a){2== -a.data.$.button&&((a=b.document.getSelection())&&a.getType()!=CKEDITOR.SELECTION_NONE||(y=b.window.getScrollPosition()))});g.attachListener(g,"mouseup",function(a){2==a.data.$.button&&y&&(b.document.$.documentElement.scrollLeft=y.x,b.document.$.documentElement.scrollTop=y.y);y=null});if("BackCompat"!=f.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var w,z;p.on("mousedown",function(a){function c(a){a=a.data.$;if(w){var b=l.$.createTextRange();try{b.moveToPoint(a.clientX,a.clientY)}catch(d){}w.setEndPoint(0> -z.compareEndPoints("StartToStart",b)?"EndToEnd":"StartToStart",b);w.select()}}function b(){p.removeListener("mousemove",c);h.removeListener("mouseup",b);p.removeListener("mouseup",b);w.select()}a=a.data;if(a.getTarget().is("html")&&a.$.yCKEDITOR.env.version)p.on("mousedown",function(a){a.data.getTarget().is("html")&& -(h.on("mouseup",c),p.on("mouseup",c))})}}g.attachListener(g,"selectionchange",m,b);g.attachListener(g,"keyup",k,b);g.attachListener(g,"touchstart",k,b);g.attachListener(g,"touchend",k,b);CKEDITOR.env.ie&&g.attachListener(g,"keydown",d,b);g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){b.forceNextSelectionCheck();b.selectionChange(1)});if(u&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var A;g.attachListener(g,"mousedown",function(){A=1});g.attachListener(f.getDocumentElement(), -"mouseup",function(){A&&k.call(b);A=0})}else g.attachListener(CKEDITOR.env.ie?g:f.getDocumentElement(),"mouseup",k,b);CKEDITOR.env.webkit&&g.attachListener(f,"keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:g.hasFocus&&n(g)}},null,null,-1);g.attachListener(g,"keydown",t(b),null,null,-1)});b.on("setData",function(){b.unlockSelection();CKEDITOR.env.webkit&&c()});b.on("contentDomUnload",function(){b.unlockSelection()});if(CKEDITOR.env.ie9Compat)b.on("beforeDestroy", -c,null,null,9);b.on("dataReady",function(){delete b._.fakeSelection;delete b._.hiddenSelectionContainer;b.selectionChange(1)});b.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),c=b.editable().getLast(a);c&&c.hasAttribute("data-cke-hidden-sel")&&(c.remove(),CKEDITOR.env.gecko&&(a=b.editable().getFirst(a))&&a.is("br")&&a.getAttribute("_moz_editor_bogus_node")&&a.remove())},null,null,100);b.on("key",function(a){if("wysiwyg"==b.mode){var c=b.getSelection();if(c.isFake){var d= -C[a.data.keyCode];if(d)return d({editor:b,selected:c.getSelectedElement(),selection:c,keyEvent:a})}}})});if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(a){var c=a.editor;c.on("selectionChange",function(){var a=c.editable(),b=a.getCustomData("cke-fillingChar");b&&(b.getCustomData("ready")?(n(a),a.editor.fire("selectionCheck")):b.setCustomData("ready",1))},null,null,-1);c.on("beforeSetMode",function(){n(c.editable())},null,null,-1);c.on("getSnapshot",function(a){a.data&&(a.data=p(a.data))}, -c,null,20);c.on("toDataFormat",function(a){a.data.dataValue=p(a.data.dataValue)},null,null,0)});CKEDITOR.editor.prototype.selectionChange=function(a){(a?m:k).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){return!this._.savedSelection&&!this._.fakeSelection||a?(a=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(a):null:this._.savedSelection||this._.fakeSelection};CKEDITOR.editor.prototype.getSelectedRanges=function(a){var c=this.getSelection();return c&&c.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 c=this._.savedSelection;return c?(c.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 c=a;a=a.root}var b=a instanceof CKEDITOR.dom.element;this.rev=c?c.rev:y++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root= -b?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(c)return CKEDITOR.tools.extend(this._.cache,c._.cache),this.isFake=c.isFake,this.isLocked=c.isLocked,this;a=this.getNative();var d,e;if(a)if(a.getRangeAt)d=(e=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(e.commonAncestorContainer);else{try{e=a.createRange()}catch(f){}d=e&&CKEDITOR.dom.element.get(e.item&&e.item(0)||e.parentElement())}if(!d||d.type!=CKEDITOR.NODE_ELEMENT&&d.type!=CKEDITOR.NODE_TEXT||!this.root.equals(d)&&!this.root.contains(d))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 B={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.tools.extend(CKEDITOR.dom.selection,{_removeFillingCharSequenceString:p,_createFillingCharSequenceNode:c,FILLING_CHAR_SEQUENCE:x});CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!== -this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=v?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:v?function(){var a=this._.cache;if(a.type)return a.type;var c=CKEDITOR.SELECTION_NONE;try{var b=this.getNative(),d=b.type;"Text"==d&&(c=CKEDITOR.SELECTION_TEXT);"Control"==d&&(c=CKEDITOR.SELECTION_ELEMENT);b.createRange().parentElement()&&(c=CKEDITOR.SELECTION_TEXT)}catch(e){}return a.type=c}:function(){var a=this._.cache;if(a.type)return a.type;var c= -CKEDITOR.SELECTION_TEXT,b=this.getNative();if(!b||!b.rangeCount)c=CKEDITOR.SELECTION_NONE;else if(1==b.rangeCount){var b=b.getRangeAt(0),d=b.startContainer;d==b.endContainer&&1==d.nodeType&&1==b.endOffset-b.startOffset&&B[d.childNodes[b.startOffset].nodeName.toLowerCase()]&&(c=CKEDITOR.SELECTION_ELEMENT)}return a.type=c},getRanges:function(){var a=v?function(){function a(c){return(new CKEDITOR.dom.node(c)).getIndex()}var c=function(c,b){c=c.duplicate();c.collapse(b);var d=c.parentElement();if(!d.hasChildNodes())return{container:d, -offset:0};for(var e=d.children,f,h,k=c.duplicate(),g=0,l=e.length-1,m=-1,n,p;g<=l;)if(m=Math.floor((g+l)/2),f=e[m],k.moveToElementText(f),n=k.compareEndPoints("StartToStart",c),0n)g=m+1;else return{container:d,offset:a(f)};if(-1==m||m==e.length-1&&0>n){k.moveToElementText(d);k.setEndPoint("StartToStart",c);k=k.text.replace(/(\r\n|\r)/g,"\n").length;e=d.childNodes;if(!k)return f=e[e.length-1],f.nodeType!=CKEDITOR.NODE_TEXT?{container:d,offset:e.length}:{container:f,offset:f.nodeValue.length}; -for(d=e.length;0b.length?this.selectElement(c):this.selectRanges(b))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection)if(this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var c=a._.hiddenSelectionContainer;if(c){var b=a.checkDirty();a.fire("lockSnapshot");c.remove();a.fire("unlockSnapshot");!b&&a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=y++},selectElement:function(a){var c=new CKEDITOR.dom.range(this.root); -c.setStartBefore(a);c.setEndAfter(a);this.selectRanges([c])},selectRanges:function(a){var b=this.root.editor,f=b&&b._.hiddenSelectionContainer;this.reset();if(f)for(var f=this.root,h,k=0;k]*>)[ \t\r\n]*/gi,"$1");h=h.replace(/([ \t\n\r]+| )/g, -" ");h=h.replace(/]*>/gi,"\n");if(CKEDITOR.env.ie){var k=a.getDocument().createElement("div");k.append(f);f.$.outerHTML="\x3cpre\x3e"+h+"\x3c/pre\x3e";f.copyAttributes(k.getFirst());f=k.getFirst().remove()}else f.setHtml(h);b=f}else h?b=p(d?[a.getHtml()]:c(a),b):a.moveChildren(b);b.replace(a);if(e){var d=b,g;(g=d.getPrevious(E))&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("pre")&&(e=n(g.getHtml(),/\n$/,"")+"\n\n"+n(d.getHtml(),/^\n/,""),CKEDITOR.env.ie?d.$.outerHTML="\x3cpre\x3e"+e+"\x3c/pre\x3e": -d.setHtml(e),g.remove())}else d&&v(b)}function c(a){var c=[];n(a.getOuterHtml(),/(\S\s*)\n(?:\s|(]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,c,b){return c+"\x3c/pre\x3e"+b+"\x3cpre\x3e"}).replace(/([\s\S]*?)<\/pre>/gi,function(a,b){c.push(b)});return c}function n(a,c,b){var d="",e="";a=a.replace(/(^]+data-cke-bookmark.*?\/span>)|(]+data-cke-bookmark.*?\/span>$)/gi,function(a,c,b){c&&(d=c);b&&(e=b);return""});return d+a.replace(c,b)+e}function p(a,c){var b; -1CKEDITOR.env.version?k.$.styleSheet.cssText=h:k.setText(h)):(h=d.appendStyleText(h),h=new CKEDITOR.dom.element(h.ownerNode||h.owningElement),f.setCustomData("stylesheet",h),h.data("cke-temp",1))}f=d.getCustomData("stylesheet_ref")||0;d.setCustomData("stylesheet_ref", +f+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){a=a.data;var b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");b&&2!=a.$.button&&b.isReadOnly()&&a.preventDefault()});var l={8:1,46:1};this.attachListener(a,"key",function(b){if(a.readOnly)return!0;var c=b.data.domEvent.getKey(),d;b=a.getSelection();if(0!==b.getRanges().length){if(c in l){var e,f=b.getRanges()[0],h=f.startPath(),k,g,q,c=8==c;CKEDITOR.env.ie&& +11>CKEDITOR.env.version&&(e=b.getSelectedElement())||(e=m(b))?(a.fire("saveSnapshot"),f.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START),e.remove(),f.select(),a.fire("saveSnapshot"),d=1):f.collapsed&&((k=h.block)&&(q=k[c?"getPrevious":"getNext"](n))&&q.type==CKEDITOR.NODE_ELEMENT&&q.is("table")&&f[c?"checkStartOfBlock":"checkEndOfBlock"]()?(a.fire("saveSnapshot"),f[c?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove(),f["moveToElementEdit"+(c?"End":"Start")](q),f.select(),a.fire("saveSnapshot"), +d=1):h.blockLimit&&h.blockLimit.is("td")&&(g=h.blockLimit.getAscendant("table"))&&f.checkBoundaryOfElement(g,c?CKEDITOR.START:CKEDITOR.END)&&(q=g[c?"getPrevious":"getNext"](n))?(a.fire("saveSnapshot"),f["moveToElementEdit"+(c?"End":"Start")](q),f.checkStartOfBlock()&&f.checkEndOfBlock()?q.remove():f.select(),a.fire("saveSnapshot"),d=1):(g=h.contains(["td","th","caption"]))&&f.checkBoundaryOfElement(g,c?CKEDITOR.START:CKEDITOR.END)&&(d=1))}return!d}});a.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&& +this.attachListener(this,"keyup",function(b){b.data.getKeystroke()in l&&!this.getFirst(e)&&(this.appendBogus(),b=a.createRange(),b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),b.select())});this.attachListener(this,"dblclick",function(b){if(a.readOnly)return!1;b={element:b.data.getTarget()};a.fire("doubleclick",b)});CKEDITOR.env.ie&&this.attachListener(this,"click",g);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(b){var c=b.data.getTarget();c.is("img","hr", +"input","textarea","select")&&!c.isReadOnly()&&(a.getSelection().selectElement(c),c.is("input","textarea","select")&&b.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(b){(b=b.data.getTarget())&&b.is("img")&&!b.isReadOnly()&&a.getSelection().selectElement(b)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(2==b.data.$.button&&(b=b.data.getTarget(),!b.getAscendant("table")&&!b.getOuterHtml().replace(r,""))){var c=a.createRange();c.moveToElementEditStart(b); +c.select(!0)}});CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()}),this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&a.data.preventDefault()}));CKEDITOR.env.webkit&&this.attachListener(a,"key",function(c){if(a.readOnly)return!0;var d=c.data.domEvent.getKey();if(d in l&&(c=a.getSelection(),0!==c.getRanges().length)){var d=8==d,e=c.getRanges()[0];c=e.startPath();if(e.collapsed)a:{var f= +c.block;if(f&&e[d?"checkStartOfBlock":"checkEndOfBlock"]()&&e.moveToClosestEditablePosition(f,!d)&&e.collapsed){if(e.startContainer.type==CKEDITOR.NODE_ELEMENT){var h=e.startContainer.getChild(e.startOffset-(d?1:0));if(h&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("hr")){a.fire("saveSnapshot");h.remove();c=!0;break a}}e=e.startPath().block;if(!e||e&&e.contains(f))c=void 0;else{a.fire("saveSnapshot");var k;(k=(d?e:f).getBogus())&&k.remove();k=a.getSelection();h=k.createBookmarks();(d?f:e).moveChildren(d? +e:f,!1);c.lastElement.mergeSiblings();b(f,e,!d);k.selectBookmarks(h);c=!0}}else c=!1}else d=e,k=c.block,e=d.endPath().block,k&&e&&!k.equals(e)?(a.fire("saveSnapshot"),(f=k.getBogus())&&f.remove(),d.enlarge(CKEDITOR.ENLARGE_INLINE),d.deleteContents(),e.getParent()&&(e.moveChildren(k,!1),c.lastElement.mergeSiblings(),b(k,e,!0)),d=a.getSelection().getRanges()[0],d.collapse(1),d.optimize(),""===d.startContainer.getHtml()&&d.startContainer.appendBogus(),d.select(),c=!0):c=!1;if(!c)return;a.getSelection().scrollIntoView(); +a.fire("saveSnapshot");return!1}},this,null,100)}},getUniqueId:function(){var a;try{this._.expandoNumber=a=CKEDITOR.dom.domObject.prototype.getUniqueId.call(this)}catch(b){a=this._&&this._.expandoNumber}return a}},_:{cleanCustomData:function(){this.removeClass("cke_editable");this.restoreAttrs();for(var a=this.removeCustomData("classes");a&&a.length;)this.removeClass(a.pop());if(!this.is("textarea")){var a=this.getDocument(),b=a.getHead();if(b.getCustomData("stylesheet")){var c=a.getCustomData("stylesheet_ref"); +--c?a.setCustomData("stylesheet_ref",c):(a.removeCustomData("stylesheet_ref"),b.removeCustomData("stylesheet").remove())}}}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(!arguments.length)return b;a?b=a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(b&&b.detach(),b=null);return this._.editable=b};CKEDITOR.on("instanceLoaded",function(b){var c=b.editor;c.on("insertElement",function(a){a=a.data;a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")|| +a.is("textarea"))&&("false"!=a.getAttribute("contentEditable")&&a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1"),a.setAttribute("contentEditable",!1))});c.on("selectionChange",function(b){if(!c.readOnly){var d=c.getSelection();d&&!d.isLocked&&(d=c.checkDirty(),c.fire("lockSnapshot"),a(b),c.fire("unlockSnapshot"),!d&&c.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var c=b.title;a.changeAttr("role", +"textbox");a.changeAttr("aria-multiline","true");a.changeAttr("aria-label",c);c&&a.changeAttr("title",c);var d=b.fire("ariaEditorHelpLabel",{}).label;if(d&&(c=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var e=CKEDITOR.tools.getNextId(),d=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+e+'" class\x3d"cke_voice_label"\x3e'+d+"\x3c/span\x3e");c.append(d);a.changeAttr("aria-describedby",e)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}"); +n=CKEDITOR.dom.walker.whitespaces(!0);q=CKEDITOR.dom.walker.bookmark(!1,!0);u=CKEDITOR.dom.walker.empty();t=CKEDITOR.dom.walker.bogus();r=/(^|]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;p=function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT}function b(c,d){var e,f,h,k,g=[],l=d.range.startContainer;e=d.range.startPath();for(var l=n[l.getName()],m=0,q=c.getChildren(),p=q.count(),u=-1,x=-1,G=0,y=e.contains(n.$list);m< +p;++m)e=q.getItem(m),a(e)?(h=e.getName(),y&&h in CKEDITOR.dtd.$list?g=g.concat(b(e,d)):(k=!!l[h],"br"!=h||!e.data("cke-eol")||m&&m!=p-1||(G=(f=m?g[m-1].node:q.getItem(m+1))&&(!a(f)||!f.is("br")),f=f&&a(f)&&n.$block[f.getName()]),-1!=u||k||(u=m),k||(x=m),g.push({isElement:1,isLineBreak:G,isBlock:e.isBlockBoundary(),hasBlockSibling:f,node:e,name:h,allowed:k}),f=G=0)):g.push({isElement:0,node:e,allowed:1});-1CKEDITOR.env.version&&d.getChildCount()&&d.getFirst().remove())}return function(d){var e= +d.startContainer,f=e.getAscendant("table",1),h=!1;c(f.getElementsByTag("td"));c(f.getElementsByTag("th"));f=d.clone();f.setStart(e,0);f=a(f).lastBackward();f||(f=d.clone(),f.setEndAt(e,CKEDITOR.POSITION_BEFORE_END),f=a(f).lastForward(),h=!0);f||(f=e);f.is("table")?(d.setStartAt(f,CKEDITOR.POSITION_BEFORE_START),d.collapse(!0),f.remove()):(f.is({tbody:1,thead:1,tfoot:1})&&(f=b(f,"tr",h)),f.is("tr")&&(f=b(f,f.getParent().is("thead")?"th":"td",h)),(e=f.getBogus())&&e.remove(),d.moveToPosition(f,h?CKEDITOR.POSITION_AFTER_START: +CKEDITOR.POSITION_BEFORE_END))}}();x=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$list)||a.is(CKEDITOR.dtd.$listItem)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$listItem)};return b}return function(b){var c=b.startContainer,d=!1,e;e=b.clone();e.setStart(c,0);e=a(e).lastBackward();e||(e=b.clone(),e.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),e=a(e).lastForward(), +d=!0);e||(e=c);e.is(CKEDITOR.dtd.$list)?(b.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),b.collapse(!0),e.remove()):((c=e.getBogus())&&c.remove(),b.moveToPosition(e,d?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),b.select())}}();z={eol:{detect:function(a,b){var c=a.range,d=c.clone(),e=c.clone(),f=new CKEDITOR.dom.elementPath(c.startContainer,b),h=new CKEDITOR.dom.elementPath(c.endContainer,b);d.collapse(1);e.collapse();f.block&&d.checkBoundaryOfElement(f.block,CKEDITOR.END)&&(c.setStartAfter(f.block), +a.prependEolBr=1);h.block&&e.checkBoundaryOfElement(h.block,CKEDITOR.START)&&(c.setEndBefore(h.block),a.appendEolBr=1)},fix:function(a,b){var c=b.getDocument(),d;a.appendEolBr&&(d=this.createEolBr(c),a.fragment.append(d));!a.prependEolBr||d&&!d.getPrevious()||a.fragment.append(this.createEolBr(c),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(a){var b=a.range.getBoundaryNodes(),c=b.startNode,b=b.endNode;!b||!t(b)||c&&c.equals(b)|| +a.range.setEndBefore(b)}},tree:{rebuild:function(a,b){var c=a.range,d=c.getCommonAncestor(),e=new CKEDITOR.dom.elementPath(d,b),f=new CKEDITOR.dom.elementPath(c.startContainer,b),c=new CKEDITOR.dom.elementPath(c.endContainer,b),h;d.type==CKEDITOR.NODE_TEXT&&(d=d.getParent());if(e.blockLimit.is({tr:1,table:1})){var k=e.contains("table").getParent();h=function(a){return!a.equals(k)}}else if(e.block&&e.block.is(CKEDITOR.dtd.$listItem)&&(f=f.contains(CKEDITOR.dtd.$list),c=c.contains(CKEDITOR.dtd.$list), +!f.equals(c))){var g=e.contains(CKEDITOR.dtd.$list).getParent();h=function(a){return!a.equals(g)}}h||(h=function(a){return!a.equals(e.block)&&!a.equals(e.blockLimit)});this.rebuildFragment(a,b,d,h)},rebuildFragment:function(a,b,c,d){for(var e;c&&!c.equals(b)&&d(c);)e=c.clone(0,1),a.fragment.appendTo(e),a.fragment=e,c=c.getParent()}},cell:{shrink:function(a){a=a.range;var b=a.startContainer,c=a.endContainer,d=a.startOffset,e=a.endOffset;b.type==CKEDITOR.NODE_ELEMENT&&b.equals(c)&&b.is("tr")&&++d== +e&&a.shrink(CKEDITOR.SHRINK_TEXT)}}};B=function(){function a(b,c){var d=b.getParent();if(d.is(CKEDITOR.dtd.$inline))b[c?"insertBefore":"insertAfter"](d)}function b(c,d,e){a(d);a(e,1);for(var f;f=e.getNext();)f.insertAfter(d),d=f;u(c)&&c.remove()}function c(a,b){var d=new CKEDITOR.dom.range(a);d.setStartAfter(b.startNode);d.setEndBefore(b.endNode);return d}return{list:{detectMerge:function(a,b){var d=c(b,a.bookmark),e=d.startPath(),f=d.endPath(),h=e.contains(CKEDITOR.dtd.$list),k=f.contains(CKEDITOR.dtd.$list); +a.mergeList=h&&k&&h.getParent().equals(k.getParent())&&!h.equals(k);a.mergeListItems=e.block&&f.block&&e.block.is(CKEDITOR.dtd.$listItem)&&f.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)d=d.clone(),d.setStartBefore(a.bookmark.startNode),d.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=d.createBookmark()},merge:function(a,c){if(a.mergeListBookmark){var d=a.mergeListBookmark.startNode,e=a.mergeListBookmark.endNode,f=new CKEDITOR.dom.elementPath(d,c),h=new CKEDITOR.dom.elementPath(e, +c);if(a.mergeList){var k=f.contains(CKEDITOR.dtd.$list),g=h.contains(CKEDITOR.dtd.$list);k.equals(g)||(g.moveChildren(k),g.remove())}a.mergeListItems&&(f=f.contains(CKEDITOR.dtd.$listItem),h=h.contains(CKEDITOR.dtd.$listItem),f.equals(h)||b(h,d,e));d.remove();e.remove()}}},block:{detectMerge:function(a,b){if(!a.tableContentsRanges&&!a.mergeListBookmark){var c=new CKEDITOR.dom.range(b);c.setStartBefore(a.bookmark.startNode);c.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=c.createBookmark()}}, +merge:function(a,c){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var d=a.mergeBlockBookmark.startNode,e=a.mergeBlockBookmark.endNode,f=new CKEDITOR.dom.elementPath(d,c),h=new CKEDITOR.dom.elementPath(e,c),f=f.block,h=h.block;f&&h&&!f.equals(h)&&b(h,d,e);d.remove();e.remove()}}},table:function(){function a(c){var e=[],f,h=new CKEDITOR.dom.walker(c),k=c.startPath().contains(d),g=c.endPath().contains(d),l={};h.guard=function(a,h){if(a.type==CKEDITOR.NODE_ELEMENT){var m="visited_"+(h?"out":"in");if(a.getCustomData(m))return; +CKEDITOR.dom.element.setMarker(l,a,m,1)}if(h&&k&&a.equals(k))f=c.clone(),f.setEndAt(k,CKEDITOR.POSITION_BEFORE_END),e.push(f);else if(!h&&g&&a.equals(g))f=c.clone(),f.setStartAt(g,CKEDITOR.POSITION_AFTER_START),e.push(f);else{if(m=!h)m=a.type==CKEDITOR.NODE_ELEMENT&&a.is(d)&&(!k||b(a,k))&&(!g||b(a,g));if(!m&&(m=h))if(a.is(d))var m=k&&k.getAscendant("table",!0),n=g&&g.getAscendant("table",!0),q=a.getAscendant("table",!0),m=m&&m.contains(q)||n&&n.contains(q);else m=void 0;m&&(f=c.clone(),f.selectNodeContents(a), +e.push(f))}};h.lastForward();CKEDITOR.dom.element.clearAllMarkers(l);return e}function b(a,c){var d=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,e=a.getPosition(c);return e===CKEDITOR.POSITION_IDENTICAL?!1:0===(e&d)}var d={td:1,th:1,caption:1};return{detectPurge:function(a){var b=a.range,c=b.clone();c.enlarge(CKEDITOR.ENLARGE_ELEMENT);var c=new CKEDITOR.dom.walker(c),e=0;c.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(d)&&++e};c.checkForward();if(1f&&e&&e.intersectsNode(c.$)){var h=[{node:d.anchorNode,offset:d.anchorOffset},{node:d.focusNode,offset:d.focusOffset}]; +d.anchorNode==c.$&&d.anchorOffset>f&&(h[0].offset-=f);d.focusNode==c.$&&d.focusOffset>f&&(h[1].offset-=f)}}c.setText(q(c.getText(),1));h&&(c=a.getDocument().$,d=c.getSelection(),c=c.createRange(),c.setStart(h[0].node,h[0].offset),c.collapse(!0),d.removeAllRanges(),d.addRange(c),d.extend(h[1].node,h[1].offset))}}function q(a,b){return b?a.replace(z,function(a,b){return b?" ":""}):a.replace(x,"")}function u(a,b){var c=b&&CKEDITOR.tools.htmlEncode(b)||"\x26nbsp;",c=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-hidden-sel\x3d"1" data-cke-temp\x3d"1" style\x3d"'+ +(CKEDITOR.env.ie&&14>CKEDITOR.env.version?"display:none":"position:fixed;top:0;left:-1000px;width:0;height:0;overflow:hidden;")+'"\x3e'+c+"\x3c/div\x3e",a.document);a.fire("lockSnapshot");a.editable().append(c);var d=a.getSelection(1),e=a.createRange(),f=d.root.on("selectionchange",function(a){a.cancel()},null,null,0);e.setStartAt(c,CKEDITOR.POSITION_AFTER_START);e.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);d.selectRanges([e]);f.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer= +c}function t(a){var b={37:1,39:1,8:1,46:1};return function(c){var d=c.data.getKeystroke();if(b[d]){var e=a.getSelection().getRanges(),f=e[0];1==e.length&&f.collapsed&&(d=f[38>d?"getPreviousEditableNode":"getNextEditableNode"]())&&d.type==CKEDITOR.NODE_ELEMENT&&"false"==d.getAttribute("contenteditable")&&(a.getSelection().fake(d),c.data.preventDefault(),c.cancel())}}}function r(a){for(var b=0;b=d.getLength()?k.setStartAfter(d):k.setStartBefore(d));e&&e.type==CKEDITOR.NODE_TEXT&&(h?k.setEndAfter(e):k.setEndBefore(e));d=new CKEDITOR.dom.walker(k);d.evaluator=function(d){if(d.type==CKEDITOR.NODE_ELEMENT&& +d.isReadOnly()){var e=c.clone();c.setEndBefore(d);c.collapsed&&a.splice(b--,1);d.getPosition(k.endContainer)&CKEDITOR.POSITION_CONTAINS||(e.setStartAfter(d),e.collapsed||a.splice(b+1,0,e));return!0}return!1};d.next()}}return a}var p="function"!=typeof window.getSelection,y=1,x=CKEDITOR.tools.repeat("​",7),z=new RegExp(x+"( )?","g"),B,w,v,D=CKEDITOR.dom.walker.invisible(1),C=function(){function a(b){return function(a){var c=a.editor.createRange();c.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([c]); +return!1}}function b(a){return function(b){var c=b.editor,d=c.createRange(),e;if(!c.readOnly)return(e=d.moveToClosestEditablePosition(b.selected,a))||(e=d.moveToClosestEditablePosition(b.selected,!a)),e&&c.getSelection().selectRanges([d]),c.fire("saveSnapshot"),b.selected.remove(),e||(d.moveToElementEditablePosition(c.editable()),c.getSelection().selectRanges([d])),c.fire("saveSnapshot"),!1}}var c=a(),d=a(1);return{37:c,38:c,39:d,40:d,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(a){function b(){var a= +c.getSelection();a&&a.removeAllRanges()}var c=a.editor;c.on("contentDom",function(){function a(){u=new CKEDITOR.dom.selection(c.getSelection());u.lock()}function b(){h.removeListener("mouseup",b);q.removeListener("mouseup",b);var a=CKEDITOR.document.$.selection,c=a.createRange();"None"!=a.type&&c.parentElement()&&c.parentElement().ownerDocument==f.$&&c.select()}function d(a){var b,c;b=(b=this.document.getActive())?"input"===b.getName()||"textarea"===b.getName():!1;b||(b=this.getSelection(1),(c=e(b))&& +!c.equals(g)&&(b.selectElement(c),a.data.preventDefault()))}function e(a){a=a.getRanges()[0];return a?(a=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")},!0))&&"false"===a.getAttribute("contenteditable")?a:null:null}var f=c.document,h=CKEDITOR.document,g=c.editable(),l=f.getBody(),q=f.getDocumentElement(),v=g.isInline(),x,u;CKEDITOR.env.gecko&&g.attachListener(g,"focus",function(a){a.removeListener();0!==x&&(a=c.getSelection().getNative())&& +a.isCollapsed&&a.anchorNode==g.$&&(a=c.createRange(),a.moveToElementEditStart(g),a.select())},null,null,-2);g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){if(x&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){x=c._.previousActive&&c._.previousActive.equals(f.getActive());var a=null!=c._.previousScrollTop&&c._.previousScrollTop!=g.$.scrollTop;CKEDITOR.env.webkit&&x&&a&&(g.$.scrollTop=c._.previousScrollTop)}c.unlockSelection(x);x=0},null,null,-1);g.attachListener(g, +"mousedown",function(){x=0});if(CKEDITOR.env.ie||CKEDITOR.env.gecko||v)p?g.attachListener(g,"beforedeactivate",a,null,null,-1):g.attachListener(c,"selectionCheck",a,null,null,-1),g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusout":"blur",function(){var a=u&&(u.isFake||2>u.getRanges().length);CKEDITOR.env.gecko&&!v&&a||(c.lockSelection(u),x=1)},null,null,-1),g.attachListener(g,"mousedown",function(){x=0});if(CKEDITOR.env.ie&&!v){var y;g.attachListener(g,"mousedown",function(a){2== +a.data.$.button&&((a=c.document.getSelection())&&a.getType()!=CKEDITOR.SELECTION_NONE||(y=c.window.getScrollPosition()))});g.attachListener(g,"mouseup",function(a){2==a.data.$.button&&y&&(c.document.$.documentElement.scrollLeft=y.x,c.document.$.documentElement.scrollTop=y.y);y=null});if("BackCompat"!=f.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var z,w;q.on("mousedown",function(a){function b(a){a=a.data.$;if(z){var c=l.$.createTextRange();try{c.moveToPoint(a.clientX,a.clientY)}catch(d){}z.setEndPoint(0> +w.compareEndPoints("StartToStart",c)?"EndToEnd":"StartToStart",c);z.select()}}function c(){q.removeListener("mousemove",b);h.removeListener("mouseup",c);q.removeListener("mouseup",c);z.select()}a=a.data;if(a.getTarget().is("html")&&a.$.yCKEDITOR.env.version)q.on("mousedown",function(a){a.data.getTarget().is("html")&& +(h.on("mouseup",b),q.on("mouseup",b))})}}g.attachListener(g,"selectionchange",m,c);g.attachListener(g,"keyup",k,c);g.attachListener(g,"touchstart",k,c);g.attachListener(g,"touchend",k,c);CKEDITOR.env.ie&&g.attachListener(g,"keydown",d,c);g.attachListener(g,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){c.forceNextSelectionCheck();c.selectionChange(1)});if(v&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var r;g.attachListener(g,"mousedown",function(){r=1});g.attachListener(f.getDocumentElement(), +"mouseup",function(){r&&k.call(c);r=0})}else g.attachListener(CKEDITOR.env.ie?g:f.getDocumentElement(),"mouseup",k,c);CKEDITOR.env.webkit&&g.attachListener(f,"keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:g.hasFocus&&n(g)}},null,null,-1);g.attachListener(g,"keydown",t(c),null,null,-1)});c.on("setData",function(){c.unlockSelection();CKEDITOR.env.webkit&&b()});c.on("contentDomUnload",function(){c.unlockSelection()});if(CKEDITOR.env.ie9Compat)c.on("beforeDestroy", +b,null,null,9);c.on("dataReady",function(){delete c._.fakeSelection;delete c._.hiddenSelectionContainer;c.selectionChange(1)});c.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),b=c.editable().getLast(a);b&&b.hasAttribute("data-cke-hidden-sel")&&(b.remove(),CKEDITOR.env.gecko&&(a=c.editable().getFirst(a))&&a.is("br")&&a.getAttribute("_moz_editor_bogus_node")&&a.remove())},null,null,100);c.on("key",function(a){if("wysiwyg"==c.mode){var b=c.getSelection();if(b.isFake){var d= +C[a.data.keyCode];if(d)return d({editor:c,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(a){var b=a.editor;b.on("selectionChange",function(){var a=b.editable(),c=a.getCustomData("cke-fillingChar");c&&(c.getCustomData("ready")?(n(a),a.editor.fire("selectionCheck")):c.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){n(b.editable())},null,null,-1);b.on("getSnapshot",function(a){a.data&&(a.data=q(a.data))}, +b,null,20);b.on("toDataFormat",function(a){a.data.dataValue=q(a.data.dataValue)},null,null,0)});CKEDITOR.editor.prototype.selectionChange=function(a){(a?m:k).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){return!this._.savedSelection&&!this._.fakeSelection||a?(a=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(a):null:this._.savedSelection||this._.fakeSelection};CKEDITOR.editor.prototype.getSelectedRanges=function(a){var b=this.getSelection();return b&&b.getRanges(a)|| +[]};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);return a.getType()!=CKEDITOR.SELECTION_NONE?(!a.isLocked&&a.lock(),this._.savedSelection=a,!0):!1};CKEDITOR.editor.prototype.unlockSelection=function(a){var b=this._.savedSelection;return b?(b.unlock(a),delete this._.savedSelection,!0):!1};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)}; +CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection){var b=a;a=a.root}var c=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:y++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root= +c?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(b)return CKEDITOR.tools.extend(this._.cache,b._.cache),this.isFake=b.isFake,this.isLocked=b.isLocked,this;a=this.getNative();var d,e;if(a)if(a.getRangeAt)d=(e=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(e.commonAncestorContainer);else{try{e=a.createRange()}catch(f){}d=e&&CKEDITOR.dom.element.get(e.item&&e.item(0)||e.parentElement())}if(!d||d.type!=CKEDITOR.NODE_ELEMENT&&d.type!=CKEDITOR.NODE_TEXT||!this.root.equals(d)&&!this.root.contains(d))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 A={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:q,_createFillingCharSequenceNode:b,FILLING_CHAR_SEQUENCE:x});CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!== +this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=p?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:p?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;try{var c=this.getNative(),d=c.type;"Text"==d&&(b=CKEDITOR.SELECTION_TEXT);"Control"==d&&(b=CKEDITOR.SELECTION_ELEMENT);c.createRange().parentElement()&&(b=CKEDITOR.SELECTION_TEXT)}catch(e){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b= +CKEDITOR.SELECTION_TEXT,c=this.getNative();if(!c||!c.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(1==c.rangeCount){var c=c.getRangeAt(0),d=c.startContainer;d==c.endContainer&&1==d.nodeType&&1==c.endOffset-c.startOffset&&A[d.childNodes[c.startOffset].nodeName.toLowerCase()]&&(b=CKEDITOR.SELECTION_ELEMENT)}return a.type=b},getRanges:function(){var a=p?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);var d=b.parentElement();if(!d.hasChildNodes())return{container:d, +offset:0};for(var e=d.children,f,h,k=b.duplicate(),g=0,l=e.length-1,m=-1,n,q;g<=l;)if(m=Math.floor((g+l)/2),f=e[m],k.moveToElementText(f),n=k.compareEndPoints("StartToStart",b),0n)g=m+1;else return{container:d,offset:a(f)};if(-1==m||m==e.length-1&&0>n){k.moveToElementText(d);k.setEndPoint("StartToStart",b);k=k.text.replace(/(\r\n|\r)/g,"\n").length;e=d.childNodes;if(!k)return f=e[e.length-1],f.nodeType!=CKEDITOR.NODE_TEXT?{container:d,offset:e.length}:{container:f,offset:f.nodeValue.length}; +for(d=e.length;0c.length?this.selectElement(b):this.selectRanges(c))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection)if(this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var b=a._.hiddenSelectionContainer;if(b){var c=a.checkDirty();a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot");!c&&a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=y++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root); +b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){var c=this.root.editor,e=c&&c._.hiddenSelectionContainer;this.reset();if(e)for(var e=this.root,h,k=0;k]*>)[ \t\r\n]*/gi,"$1");h=h.replace(/([ \t\n\r]+| )/g, +" ");h=h.replace(/]*>/gi,"\n");if(CKEDITOR.env.ie){var k=a.getDocument().createElement("div");k.append(f);f.$.outerHTML="\x3cpre\x3e"+h+"\x3c/pre\x3e";f.copyAttributes(k.getFirst());f=k.getFirst().remove()}else f.setHtml(h);c=f}else h?c=q(d?[a.getHtml()]:b(a),c):a.moveChildren(c);c.replace(a);if(e){var d=c,g;(g=d.getPrevious(E))&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("pre")&&(e=n(g.getHtml(),/\n$/,"")+"\n\n"+n(d.getHtml(),/^\n/,""),CKEDITOR.env.ie?d.$.outerHTML="\x3cpre\x3e"+e+"\x3c/pre\x3e": +d.setHtml(e),g.remove())}else d&&p(c)}function b(a){var b=[];n(a.getOuterHtml(),/(\S\s*)\n(?:\s|(]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,b,c){return b+"\x3c/pre\x3e"+c+"\x3cpre\x3e"}).replace(/([\s\S]*?)<\/pre>/gi,function(a,c){b.push(c)});return b}function n(a,b,c){var d="",e="";a=a.replace(/(^]+data-cke-bookmark.*?\/span>)|(]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(d=b);c&&(e=c);return""});return d+a.replace(b,c)+e}function q(a,b){var c; +1=f?(m=e.createText(""),m.insertAfter(this)):(a=e.createText(""),a.insertAfter(m),a.remove()));return m},substring:function(a, -l){return"number"!=typeof l?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,l)}});(function(){function a(a,f,e){var l=a.serializable,k=f[e?"endContainer":"startContainer"],h=e?"endOffset":"startOffset",b=l?f.document.getById(a.startNode):a.startNode;a=l?f.document.getById(a.endNode):a.endNode;k.equals(b.getPrevious())?(f.startOffset=f.startOffset-k.getLength()-a.getPrevious().getLength(),k=a.getNext()):k.equals(a.getPrevious())&&(f.startOffset-=k.getLength(),k=a.getNext());k.equals(b.getParent())&& -f[h]++;k.equals(a.getParent())&&f[h]++;f[e?"endContainer":"startContainer"]=k;return f}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,l)};var l={createIterator:function(){var a=this,f=CKEDITOR.dom.walker.bookmark(),e=[],l;return{getNextRange:function(k){l=void 0===l?0:l+1;var h=a[l];if(h&&1c?-1:1}),f= -0,h;fCKEDITOR.env.version?a[k].$.styleSheet.cssText+=h:a[k].$.innerHTML+=h}}var m={};CKEDITOR.skin={path:a,loadPart:function(b,c){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){g(b,c)}):g(b,c)}, -getPath:function(a){return CKEDITOR.getUrl(l(a))},icons:{},addIcon:function(a,c,b,e){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:c,offset:b||0,bgsize:e||"16px"})},getIconStyle:function(a,c,b,e,f){var h;a&&(a=a.toLowerCase(),c&&(h=this.icons[a+"-rtl"]),h||(h=this.icons[a]));a=b||h&&h.path||"";e=e||h&&h.offset;f=f||h&&h.bgsize||"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+"');background-position:0 "+e+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype, -{getUiColor:function(){return this.uiColor},setUiColor:function(a){var c=f(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var d=CKEDITOR.skin.chameleon,f="",k="";"function"==typeof d&&(f=d(this,"editor"),k=d(this,"panel"));a=[[b,a]];e([c],f,a);e(h,k,a)}).call(this,a)}});var k="cke_ui_color",h=[],b=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var c=a.editor;a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument(); -if(!a.getById("cke_ui_color")){var d=f(a);h.push(d);c.on("destroy",function(){h=CKEDITOR.tools.array.filter(h,function(a){return d!==a})});(a=c.getUiColor())&&e([d],CKEDITOR.skin.chameleon(c,"panel"),[[b,a]])}};c.on("panelShow",a);c.on("menuShow",a);c.config.uiColor&&c.setUiColor(c.config.uiColor)}})})();(function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var a=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"\x3e\x3c/div\x3e', -CKEDITOR.document);a.appendTo(CKEDITOR.document.getHead());try{var l=a.getComputedStyle("border-top-color"),g=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!l||l!=g)}catch(f){CKEDITOR.env.hc=!1}a.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending)for(delete CKEDITOR._.pending,l=0;lk;k++){var h=k,b;b=parseInt(g[k],16);b=("0"+(0>e?0|b*(1+e):0|b+(255-b)*e).toString(16)).slice(-2);g[h]=b}return"#"+g.join("")}}(),l=function(){var a=new CKEDITOR.template("background:#{to};background-image:-webkit-gradient(linear,lefttop,leftbottom,from({from}),to({to}));background-image:-moz-linear-gradient(top,{from},{to});background-image:-webkit-linear-gradient(top,{from},{to});background-image:-o-linear-gradient(top,{from},{to});background-image:-ms-linear-gradient(top,{from},{to});background-image:linear-gradient(top,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType\x3d0,startColorstr\x3d'{from}',endColorstr\x3d'{to}');"); -return function(e,g){return a.output({from:e,to:g})}}(),g={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};] "), +getText:function(){return this.$.nodeValue},setText:function(a){this.$.nodeValue=a},isEmpty:function(a){var l=this.getText();a&&(l=CKEDITOR.tools.trim(l));return!l||l===CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE},split:function(a){var l=this.$.parentNode,g=l.childNodes.length,e=this.getLength(),f=this.getDocument(),m=new CKEDITOR.dom.text(this.$.splitText(a),f);l.childNodes.length==g&&(a>=e?(m=f.createText(""),m.insertAfter(this)):(a=f.createText(""),a.insertAfter(m),a.remove()));return m},substring:function(a, +l){return"number"!=typeof l?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,l)}});(function(){function a(a,e,f){var l=a.serializable,k=e[f?"endContainer":"startContainer"],h=f?"endOffset":"startOffset",c=l?e.document.getById(a.startNode):a.startNode;a=l?e.document.getById(a.endNode):a.endNode;k.equals(c.getPrevious())?(e.startOffset=e.startOffset-k.getLength()-a.getPrevious().getLength(),k=a.getNext()):k.equals(a.getPrevious())&&(e.startOffset-=k.getLength(),k=a.getNext());k.equals(c.getParent())&& +e[h]++;k.equals(a.getParent())&&e[h]++;e[f?"endContainer":"startContainer"]=k;return e}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,l)};var l={createIterator:function(){var a=this,e=CKEDITOR.dom.walker.bookmark(),f=[],l;return{getNextRange:function(k){l=void 0===l?0:l+1;var h=a[l];if(h&&1b?-1:1}),f= +0,h;fCKEDITOR.env.version?a[k].$.styleSheet.cssText+=h:a[k].$.innerHTML+=h}}var m={};CKEDITOR.skin={path:a,loadPart:function(c,b){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){g(c,b)}):g(c,b)}, +getPath:function(a){return CKEDITOR.getUrl(l(a))},icons:{},addIcon:function(a,b,c,e){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:e||"16px"})},getIconStyle:function(a,b,c,e,f){var h;a&&(a=a.toLowerCase(),b&&(h=this.icons[a+"-rtl"]),h||(h=this.icons[a]));a=c||h&&h.path||"";e=e||h&&h.offset;f=f||h&&h.bgsize||"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+"');background-position:0 "+e+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype, +{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=e(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var d=CKEDITOR.skin.chameleon,e="",k="";"function"==typeof d&&(e=d(this,"editor"),k=d(this,"panel"));a=[[c,a]];f([b],e,a);f(h,k,a)}).call(this,a)}});var k="cke_ui_color",h=[],c=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var b=a.editor;a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument(); +if(!a.getById("cke_ui_color")){var d=e(a);h.push(d);b.on("destroy",function(){h=CKEDITOR.tools.array.filter(h,function(a){return d!==a})});(a=b.getUiColor())&&f([d],CKEDITOR.skin.chameleon(b,"panel"),[[c,a]])}};b.on("panelShow",a);b.on("menuShow",a);b.config.uiColor&&b.setUiColor(b.config.uiColor)}})})();(function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var a=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"\x3e\x3c/div\x3e', +CKEDITOR.document);a.appendTo(CKEDITOR.document.getHead());try{var l=a.getComputedStyle("border-top-color"),g=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!l||l!=g)}catch(e){CKEDITOR.env.hc=!1}a.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending)for(delete CKEDITOR._.pending,l=0;lk;k++){var h=k,c;c=parseInt(g[k],16);c=("0"+(0>f?0|c*(1+f):0|c+(255-c)*f).toString(16)).slice(-2);g[h]=c}return"#"+g.join("")}}(),l=function(){var a=new CKEDITOR.template("background:#{to};background-image:-webkit-gradient(linear,lefttop,leftbottom,from({from}),to({to}));background-image:-moz-linear-gradient(top,{from},{to});background-image:-webkit-linear-gradient(top,{from},{to});background-image:-o-linear-gradient(top,{from},{to});background-image:-ms-linear-gradient(top,{from},{to});background-image:linear-gradient(top,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType\x3d0,startColorstr\x3d'{from}',endColorstr\x3d'{to}');"); +return function(f,g){return a.output({from:f,to:g})}}(),g={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(f,e){var m=f.uiColor,m={id:"."+f.id,defaultBorder:a(m,-.1),defaultGradient:l(a(m,.9),m),lightGradient:l(a(m,1),a(m,.7)),mediumGradient:l(a(m,.8),a(m,.5)),ckeButtonOn:l(a(m,.6),a(m,.7)),ckeResizer:a(m,-.4),ckeToolbarSeparator:a(m,.5),ckeColorauto:a(m,.8),dialogBody:a(m,.7),dialogTabSelected:l("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:a(m,-.6),elementsPathBg:m,menubuttonIcon:a(m,.5),menubuttonIconHover:a(m,.3)};return g[e].output(m).replace(/\[/g,"{").replace(/\]/g, -"}")}}();CKEDITOR.plugins.add("basicstyles",{init:function(a){var l=0,g=function(e,h,b,d){if(d){d=new CKEDITOR.style(d);var c=f[b];c.unshift(d);a.attachStyleStateChange(d,function(c){!a.readOnly&&a.getCommand(b).setState(c)});a.addCommand(b,new CKEDITOR.styleCommand(d,{contentForms:c}));a.ui.addButton&&a.ui.addButton(e,{label:h,command:b,toolbar:"basicstyles,"+(l+=10)})}},f={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return"bold"==a||700<=+a}]],italic:["em","i",["span",function(a){return"italic"== -a.styles["font-style"]}]],underline:["u",["span",function(a){return"underline"==a.styles["text-decoration"]}]],strike:["s","strike",["span",function(a){return"line-through"==a.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},e=a.config,m=a.lang.basicstyles;g("Bold",m.bold,"bold",e.coreStyles_bold);g("Italic",m.italic,"italic",e.coreStyles_italic);g("Underline",m.underline,"underline",e.coreStyles_underline);g("Strike",m.strike,"strike",e.coreStyles_strike);g("Subscript",m.subscript, -"subscript",e.coreStyles_subscript);g("Superscript",m.superscript,"superscript",e.coreStyles_superscript);a.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}});CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"};CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"};CKEDITOR.config.coreStyles_underline={element:"u"};CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"};CKEDITOR.config.coreStyles_subscript={element:"sub"}; -CKEDITOR.config.coreStyles_superscript={element:"sup"};(function(){function a(a,b,d,e){if(!a.isReadOnly()&&!a.equals(d.editable())){CKEDITOR.dom.element.setMarker(e,a,"bidi_processed",1);e=a;for(var f=d.editable();(e=e.getParent())&&!e.equals(f);)if(e.getCustomData("bidi_processed")){a.removeStyle("direction");a.removeAttribute("dir");return}e="useComputedState"in d.config?d.config.useComputedState:1;(e?a.getComputedStyle("direction"):a.getStyle("direction")||a.hasAttribute("dir"))!=b&&(a.removeStyle("direction"), -e?(a.removeAttribute("dir"),b!=a.getComputedStyle("direction")&&a.setAttribute("dir",b)):a.setAttribute("dir",b),d.forceNextSelectionCheck())}}function l(a,b,d){var e=a.getCommonAncestor(!1,!0);a=a.clone();a.enlarge(d==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(a.checkBoundaryOfElement(e,CKEDITOR.START)&&a.checkBoundaryOfElement(e,CKEDITOR.END)){for(var f;e&&e.type==CKEDITOR.NODE_ELEMENT&&(f=e.getParent())&&1==f.getChildCount()&&!(e.getName()in b);)e= -f;return e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in b&&e}}function g(c){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(a,c){var b=a.config.useComputedState,d,b=void 0===b||b;if(!b){d=c.lastElement;for(var e=a.editable();d&&!(d.getName()in k||d.equals(e));){var f=d.getParent();if(!f)break;d=f}}d=d||c.block||c.blockLimit;d.equals(a.editable())&&(e=a.getSelection().getRanges()[0].getEnclosedNode())&& -e.type==CKEDITOR.NODE_ELEMENT&&(d=e);d&&(b=b?d.getComputedStyle("direction"):d.getStyle("direction")||d.getAttribute("dir"),a.getCommand("bidirtl").setState("rtl"==b?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),a.getCommand("bidiltr").setState("ltr"==b?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF));b=(c.block||c.blockLimit||a.editable()).getDirection(1);b!=(a._.selDir||a.lang.dir)&&(a._.selDir=b,a.fire("contentDirChanged",b))},exec:function(b){var d=b.getSelection(),f=b.config.enterMode,h=d.getRanges(); -if(h&&h.length){for(var k={},g=d.createBookmarks(),h=h.createIterator(),y,x=0;y=h.getNextRange(1);){var z=y.getEnclosedNode();z&&(!z||z.type==CKEDITOR.NODE_ELEMENT&&z.getName()in m)||(z=l(y,e,f));z&&a(z,c,b,k);var A=new CKEDITOR.dom.walker(y),w=g[x].startNode,u=g[x++].endNode;A.evaluator=function(a){var c=f==CKEDITOR.ENTER_P?"p":"div",b;if(b=(a?a.type==CKEDITOR.NODE_ELEMENT:!1)&&a.getName()in e){if(c=a.is(c))c=(c=a.getParent())?c.type==CKEDITOR.NODE_ELEMENT:!1;b=!(c&&a.getParent().is("blockquote"))}return!!(b&& -a.getPosition(w)&CKEDITOR.POSITION_FOLLOWING&&(a.getPosition(u)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};for(;z=A.next();)a(z,c,b,k);y=y.createIterator();for(y.enlargeBr=f!=CKEDITOR.ENTER_BR;z=y.getNextParagraph(f==CKEDITOR.ENTER_P?"p":"div");)a(z,c,b,k)}CKEDITOR.dom.element.clearAllMarkers(k);b.forceNextSelectionCheck();d.selectBookmarks(g);b.focus()}}}}function f(a){var b=a==h.setAttribute,d=a==h.removeAttribute,e=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/; -return function(f,h){if(!this.isReadOnly()){var k;if(k=f==(b||d?"dir":"direction")||"style"==f&&(d||e.test(h))){a:{k=this;for(var g=k.getDocument().getBody().getParent();k;){if(k.equals(g)){k=!1;break a}k=k.getParent()}k=!0}k=!k}if(k&&(k=this.getDirection(1),g=a.apply(this,arguments),k!=this.getDirection(1)))return this.getDocument().fire("dirChanged",this),g}return a.apply(this,arguments)}}var e={table:1,ul:1,ol:1,blockquote:1,div:1},m={},k={};CKEDITOR.tools.extend(m,e,{tr:1,p:1,div:1,li:1});CKEDITOR.tools.extend(k, -m,{td:1});CKEDITOR.plugins.add("bidi",{init:function(a){function b(d,e,f,h,k){a.addCommand(f,new CKEDITOR.command(a,h));a.ui.addButton&&a.ui.addButton(d,{label:e,command:f,toolbar:"bidi,"+k})}if(!a.blockless){var d=a.lang.bidi;b("BidiLtr",d.ltr,"bidiltr",g("ltr"),10);b("BidiRtl",d.rtl,"bidirtl",g("rtl"),20);a.on("contentDom",function(){a.document.on("dirChanged",function(b){a.fire("dirChanged",{node:b.data,dir:b.data.getDirection(1)})})});a.on("contentDirChanged",function(b){b=(a.lang.dir!=b.data? -"add":"remove")+"Class";var d=a.ui.space(a.config.toolbarLocation);if(d)d[b]("cke_mixed_dir_content")})}}});for(var h=CKEDITOR.dom.element.prototype,b=["setStyle","removeStyle","setAttribute","removeAttribute"],d=0;dk.length&&(g=a.document.createElement(a.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),h= -m.shift(),e.insertNode(g),g.append(new CKEDITOR.dom.text("",a.document)),e.moveToBookmark(h),e.selectNodeContents(g),e.collapse(!0),h=e.createBookmark(),k.push(g),m.unshift(h));b=k[0].getParent();e=[];for(h=0;harguments.length)){var f=a.call(this,d);f.labelId=CKEDITOR.tools.getNextId()+ -"_label";this._.children=[];var h={role:d.role||"presentation"};d.includeLabel&&(h["aria-labelledby"]=f.labelId);CKEDITOR.ui.dialog.uiElement.call(this,b,d,c,"div",null,h,function(){var a=[],c=d.required?" cke_required":"";"horizontal"!=d.labelLayout?a.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" ',' id\x3d"'+f.labelId+'"',f.inputId?' for\x3d"'+f.inputId+'"':"",(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",d.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"', -d.controlStyle?' style\x3d"'+d.controlStyle+'"':"",' role\x3d"presentation"\x3e',e.call(this,b,d),"\x3c/div\x3e"):(c={type:"hbox",widths:d.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" id\x3d"'+f.labelId+'" for\x3d"'+f.inputId+'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(d.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(d.controlStyle?' style\x3d"'+d.controlStyle+ -'"':"")+"\x3e"+e.call(this,b,d)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,c,a));return a.join("")})}},textInput:function(b,d,c){if(!(3>arguments.length)){a.call(this,d);var e=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",f={"class":"cke_dialog_ui_input_"+d.type,id:e,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 k=this,g=!1;b.on("load",function(){k.getInputElement().on("keydown", -function(a){13==a.data.getKeystroke()&&(g=!0)});k.getInputElement().on("keyup",function(a){13==a.data.getKeystroke()&&g&&(b.getButton("ok")&&setTimeout(function(){b.getButton("ok").click()},0),g=!1);k.bidi&&h.call(k,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,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 c in f)a.push(c+'\x3d"'+f[c]+'" ');a.push(" /\x3e\x3c/div\x3e");return a.join("")})}},textarea:function(b,d,c){if(!(3>arguments.length)){a.call(this,d);var e=this,f=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",k={};d.validate&&(this.validate=d.validate);k.rows=d.rows||5;k.cols=d.cols||20;k["class"]="cke_dialog_ui_input_textarea "+(d["class"]||"");"undefined"!=typeof d.inputStyle&&(k.style=d.inputStyle);d.dir&&(k.dir=d.dir);if(e.bidi)b.on("load", -function(){e.getInputElement().on("keyup",h)},e);CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){k["aria-labelledby"]=this._.labelId;this._.required&&(k["aria-required"]=this._.required);var a=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',f,'" '],c;for(c in k)a.push(c+'\x3d"'+CKEDITOR.tools.htmlEncode(k[c])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(e._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(b, -d,c){if(!(3>arguments.length)){var e=a.call(this,d,{"default":!!d["default"]});d.validate&&(this.validate=d.validate);CKEDITOR.ui.dialog.uiElement.call(this,b,d,c,"span",null,null,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),c=[],f=CKEDITOR.tools.getNextId()+"_label",h={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":f};k(a);d["default"]&&(h.checked="checked");"undefined"!=typeof a.inputStyle&&(a.style=a.inputStyle); -e.checkbox=new CKEDITOR.ui.dialog.uiElement(b,a,c,"input",null,h);c.push(' \x3clabel id\x3d"',f,'" for\x3d"',h.id,'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(d.label),"\x3c/label\x3e");return c.join("")})}},radio:function(b,d,c){if(!(3>arguments.length)){a.call(this,d);this._["default"]||(this._["default"]=this._.initValue=d.items[0][1]);d.validate&&(this.validate=d.validate);var e=[],f=this;d.role="radiogroup";d.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this, -b,d,c,function(){for(var a=[],c=[],h=(d.id?d.id:CKEDITOR.tools.getNextId())+"_radio",g=0;garguments.length)){var e=a.call(this,d);d.validate&&(this.validate=d.validate);e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),c=[],f=[],h={id:e.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};c.push('\x3cdiv class\x3d"cke_dialog_ui_input_', -d.type,'" role\x3d"presentation"');d.width&&c.push('style\x3d"width:'+d.width+'" ');c.push("\x3e");void 0!==d.size&&(h.size=d.size);void 0!==d.multiple&&(h.multiple=d.multiple);k(a);for(var g=0,l;garguments.length)){void 0===d["default"]&&(d["default"]="");var e=CKEDITOR.tools.extend(a.call(this,d),{definition:d,buttons:[]});d.validate&&(this.validate=d.validate);b.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['\x3ciframe frameborder\x3d"0" allowtransparency\x3d"0" class\x3d"cke_dialog_ui_input_file" role\x3d"presentation" id\x3d"', -e.frameId,'" title\x3d"',d.label,'" src\x3d"javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"\x3e\x3c/iframe\x3e');return a.join("")})}},fileButton:function(b,d,c){var e=this;if(!(3>arguments.length)){a.call(this,d);d.validate&&(this.validate=d.validate);var f=CKEDITOR.tools.extend({},d),h=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(a){var c= -d["for"];a=h?h.call(this,a):!1;!1!==a&&("xhr"!==a&&b.getContentElement(c[0],c[1]).submit(),this.disable())};b.on("load",function(){b.getContentElement(d["for"][0],d["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,b,f,c)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,d=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,c=/\/$/;return function(e,f,h){if(!(3>arguments.length)){var k=[],g=f.html;"\x3c"!=g.charAt(0)&&(g="\x3cspan\x3e"+g+"\x3c/span\x3e");var l=f.focus;if(l){var m=this.focus; -this.focus=function(){("function"==typeof l?l:m).call(this);this.fire("focus")};f.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,e,f,k,"span",null,null,"");k=k.join("").match(a);g=g.match(d)||["","",""];c.test(g[1])&&(g[1]=g[1].slice(0,-1),g[2]="/"+g[2]);h.push([g[1]," ",k[1]||"",g[2]].join(""))}}}(),fieldset:function(a,d,c,e,f){var h=f.label;this._={children:d};CKEDITOR.ui.dialog.uiElement.call(this,a,f,e,"fieldset",null,null,function(){var a= -[];h&&a.push("\x3clegend"+(f.labelStyle?' style\x3d"'+f.labelStyle+'"':"")+"\x3e"+h+"\x3c/legend\x3e");for(var b=0;bd.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:e},!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")}, +return function(e,f){var m=e.uiColor,m={id:"."+e.id,defaultBorder:a(m,-.1),defaultGradient:l(a(m,.9),m),lightGradient:l(a(m,1),a(m,.7)),mediumGradient:l(a(m,.8),a(m,.5)),ckeButtonOn:l(a(m,.6),a(m,.7)),ckeResizer:a(m,-.4),ckeToolbarSeparator:a(m,.5),ckeColorauto:a(m,.8),dialogBody:a(m,.7),dialogTabSelected:l("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:a(m,-.6),elementsPathBg:m,menubuttonIcon:a(m,.5),menubuttonIconHover:a(m,.3)};return g[f].output(m).replace(/\[/g,"{").replace(/\]/g, +"}")}}();CKEDITOR.plugins.add("basicstyles",{init:function(a){var l=0,g=function(f,h,c,d){if(d){d=new CKEDITOR.style(d);var b=e[c];b.unshift(d);a.attachStyleStateChange(d,function(b){!a.readOnly&&a.getCommand(c).setState(b)});a.addCommand(c,new CKEDITOR.styleCommand(d,{contentForms:b}));a.ui.addButton&&a.ui.addButton(f,{label:h,command:c,toolbar:"basicstyles,"+(l+=10)})}},e={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return"bold"==a||700<=+a}]],italic:["em","i",["span",function(a){return"italic"== +a.styles["font-style"]}]],underline:["u",["span",function(a){return"underline"==a.styles["text-decoration"]}]],strike:["s","strike",["span",function(a){return"line-through"==a.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},f=a.config,m=a.lang.basicstyles;g("Bold",m.bold,"bold",f.coreStyles_bold);g("Italic",m.italic,"italic",f.coreStyles_italic);g("Underline",m.underline,"underline",f.coreStyles_underline);g("Strike",m.strike,"strike",f.coreStyles_strike);g("Subscript",m.subscript, +"subscript",f.coreStyles_subscript);g("Superscript",m.superscript,"superscript",f.coreStyles_superscript);a.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}});CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"};CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"};CKEDITOR.config.coreStyles_underline={element:"u"};CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"};CKEDITOR.config.coreStyles_subscript={element:"sub"}; +CKEDITOR.config.coreStyles_superscript={element:"sup"};(function(){function a(a,c,d,e){if(!a.isReadOnly()&&!a.equals(d.editable())){CKEDITOR.dom.element.setMarker(e,a,"bidi_processed",1);e=a;for(var f=d.editable();(e=e.getParent())&&!e.equals(f);)if(e.getCustomData("bidi_processed")){a.removeStyle("direction");a.removeAttribute("dir");return}e="useComputedState"in d.config?d.config.useComputedState:1;(e?a.getComputedStyle("direction"):a.getStyle("direction")||a.hasAttribute("dir"))!=c&&(a.removeStyle("direction"), +e?(a.removeAttribute("dir"),c!=a.getComputedStyle("direction")&&a.setAttribute("dir",c)):a.setAttribute("dir",c),d.forceNextSelectionCheck())}}function l(a,c,d){var e=a.getCommonAncestor(!1,!0);a=a.clone();a.enlarge(d==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(a.checkBoundaryOfElement(e,CKEDITOR.START)&&a.checkBoundaryOfElement(e,CKEDITOR.END)){for(var f;e&&e.type==CKEDITOR.NODE_ELEMENT&&(f=e.getParent())&&1==f.getChildCount()&&!(e.getName()in c);)e= +f;return e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in c&&e}}function g(b){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(a,b){var c=a.config.useComputedState,d,c=void 0===c||c;if(!c){d=b.lastElement;for(var e=a.editable();d&&!(d.getName()in k||d.equals(e));){var f=d.getParent();if(!f)break;d=f}}d=d||b.block||b.blockLimit;d.equals(a.editable())&&(e=a.getSelection().getRanges()[0].getEnclosedNode())&& +e.type==CKEDITOR.NODE_ELEMENT&&(d=e);d&&(c=c?d.getComputedStyle("direction"):d.getStyle("direction")||d.getAttribute("dir"),a.getCommand("bidirtl").setState("rtl"==c?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),a.getCommand("bidiltr").setState("ltr"==c?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF));c=(b.block||b.blockLimit||a.editable()).getDirection(1);c!=(a._.selDir||a.lang.dir)&&(a._.selDir=c,a.fire("contentDirChanged",c))},exec:function(c){var d=c.getSelection(),e=c.config.enterMode,h=d.getRanges(); +if(h&&h.length){for(var k={},g=d.createBookmarks(),h=h.createIterator(),y,x=0;y=h.getNextRange(1);){var z=y.getEnclosedNode();z&&(!z||z.type==CKEDITOR.NODE_ELEMENT&&z.getName()in m)||(z=l(y,f,e));z&&a(z,b,c,k);var B=new CKEDITOR.dom.walker(y),w=g[x].startNode,v=g[x++].endNode;B.evaluator=function(a){var b=e==CKEDITOR.ENTER_P?"p":"div",c;if(c=(a?a.type==CKEDITOR.NODE_ELEMENT:!1)&&a.getName()in f){if(b=a.is(b))b=(b=a.getParent())?b.type==CKEDITOR.NODE_ELEMENT:!1;c=!(b&&a.getParent().is("blockquote"))}return!!(c&& +a.getPosition(w)&CKEDITOR.POSITION_FOLLOWING&&(a.getPosition(v)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};for(;z=B.next();)a(z,b,c,k);y=y.createIterator();for(y.enlargeBr=e!=CKEDITOR.ENTER_BR;z=y.getNextParagraph(e==CKEDITOR.ENTER_P?"p":"div");)a(z,b,c,k)}CKEDITOR.dom.element.clearAllMarkers(k);c.forceNextSelectionCheck();d.selectBookmarks(g);c.focus()}}}}function e(a){var c=a==h.setAttribute,d=a==h.removeAttribute,e=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/; +return function(f,h){if(!this.isReadOnly()){var k;if(k=f==(c||d?"dir":"direction")||"style"==f&&(d||e.test(h))){a:{k=this;for(var g=k.getDocument().getBody().getParent();k;){if(k.equals(g)){k=!1;break a}k=k.getParent()}k=!0}k=!k}if(k&&(k=this.getDirection(1),g=a.apply(this,arguments),k!=this.getDirection(1)))return this.getDocument().fire("dirChanged",this),g}return a.apply(this,arguments)}}var f={table:1,ul:1,ol:1,blockquote:1,div:1},m={},k={};CKEDITOR.tools.extend(m,f,{tr:1,p:1,div:1,li:1});CKEDITOR.tools.extend(k, +m,{td:1});CKEDITOR.plugins.add("bidi",{init:function(a){function c(d,e,f,h,k){a.addCommand(f,new CKEDITOR.command(a,h));a.ui.addButton&&a.ui.addButton(d,{label:e,command:f,toolbar:"bidi,"+k})}if(!a.blockless){var d=a.lang.bidi;c("BidiLtr",d.ltr,"bidiltr",g("ltr"),10);c("BidiRtl",d.rtl,"bidirtl",g("rtl"),20);a.on("contentDom",function(){a.document.on("dirChanged",function(c){a.fire("dirChanged",{node:c.data,dir:c.data.getDirection(1)})})});a.on("contentDirChanged",function(c){c=(a.lang.dir!=c.data? +"add":"remove")+"Class";var d=a.ui.space(a.config.toolbarLocation);if(d)d[c]("cke_mixed_dir_content")})}}});for(var h=CKEDITOR.dom.element.prototype,c=["setStyle","removeStyle","setAttribute","removeAttribute"],d=0;dk.length&&(g=a.document.createElement(a.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),h= +m.shift(),f.insertNode(g),g.append(new CKEDITOR.dom.text("",a.document)),f.moveToBookmark(h),f.selectNodeContents(g),f.collapse(!0),h=f.createBookmark(),k.push(g),m.unshift(h));c=k[0].getParent();f=[];for(h=0;harguments.length)){var f=a.call(this,d);f.labelId=CKEDITOR.tools.getNextId()+ +"_label";this._.children=[];var h={role:d.role||"presentation"};d.includeLabel&&(h["aria-labelledby"]=f.labelId);CKEDITOR.ui.dialog.uiElement.call(this,c,d,b,"div",null,h,function(){var a=[],b=d.required?" cke_required":"";"horizontal"!=d.labelLayout?a.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+b+'" ',' id\x3d"'+f.labelId+'"',f.inputId?' for\x3d"'+f.inputId+'"':"",(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",d.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"', +d.controlStyle?' style\x3d"'+d.controlStyle+'"':"",' role\x3d"presentation"\x3e',e.call(this,c,d),"\x3c/div\x3e"):(b={type:"hbox",widths:d.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+b+'" id\x3d"'+f.labelId+'" for\x3d"'+f.inputId+'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(d.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(d.controlStyle?' style\x3d"'+d.controlStyle+ +'"':"")+"\x3e"+e.call(this,c,d)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(c,b,a));return a.join("")})}},textInput:function(c,d,b){if(!(3>arguments.length)){a.call(this,d);var e=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",f={"class":"cke_dialog_ui_input_"+d.type,id:e,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 k=this,g=!1;c.on("load",function(){k.getInputElement().on("keydown", +function(a){13==a.data.getKeystroke()&&(g=!0)});k.getInputElement().on("keyup",function(a){13==a.data.getKeystroke()&&g&&(c.getButton("ok")&&setTimeout(function(){c.getButton("ok").click()},0),g=!1);k.bidi&&h.call(k,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,c,d,b,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(c,d,b){if(!(3>arguments.length)){a.call(this,d);var e=this,f=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",k={};d.validate&&(this.validate=d.validate);k.rows=d.rows||5;k.cols=d.cols||20;k["class"]="cke_dialog_ui_input_textarea "+(d["class"]||"");"undefined"!=typeof d.inputStyle&&(k.style=d.inputStyle);d.dir&&(k.dir=d.dir);if(e.bidi)c.on("load", +function(){e.getInputElement().on("keyup",h)},e);CKEDITOR.ui.dialog.labeledElement.call(this,c,d,b,function(){k["aria-labelledby"]=this._.labelId;this._.required&&(k["aria-required"]=this._.required);var a=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',f,'" '],b;for(b in k)a.push(b+'\x3d"'+CKEDITOR.tools.htmlEncode(k[b])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(e._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(c, +d,b){if(!(3>arguments.length)){var e=a.call(this,d,{"default":!!d["default"]});d.validate&&(this.validate=d.validate);CKEDITOR.ui.dialog.uiElement.call(this,c,d,b,"span",null,null,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),b=[],f=CKEDITOR.tools.getNextId()+"_label",h={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":f};k(a);d["default"]&&(h.checked="checked");"undefined"!=typeof a.inputStyle&&(a.style=a.inputStyle); +e.checkbox=new CKEDITOR.ui.dialog.uiElement(c,a,b,"input",null,h);b.push(' \x3clabel id\x3d"',f,'" for\x3d"',h.id,'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(d.label),"\x3c/label\x3e");return b.join("")})}},radio:function(c,d,b){if(!(3>arguments.length)){a.call(this,d);this._["default"]||(this._["default"]=this._.initValue=d.items[0][1]);d.validate&&(this.validate=d.validate);var e=[],f=this;d.role="radiogroup";d.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this, +c,d,b,function(){for(var a=[],b=[],h=(d.id?d.id:CKEDITOR.tools.getNextId())+"_radio",g=0;garguments.length)){var e=a.call(this,d);d.validate&&(this.validate=d.validate);e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,c,d,b,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),b=[],f=[],h={id:e.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};b.push('\x3cdiv class\x3d"cke_dialog_ui_input_', +d.type,'" role\x3d"presentation"');d.width&&b.push('style\x3d"width:'+d.width+'" ');b.push("\x3e");void 0!==d.size&&(h.size=d.size);void 0!==d.multiple&&(h.multiple=d.multiple);k(a);for(var g=0,l;garguments.length)){void 0===d["default"]&&(d["default"]="");var e=CKEDITOR.tools.extend(a.call(this,d),{definition:d,buttons:[]});d.validate&&(this.validate=d.validate);c.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,c,d,b,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['\x3ciframe frameborder\x3d"0" allowtransparency\x3d"0" class\x3d"cke_dialog_ui_input_file" role\x3d"presentation" id\x3d"', +e.frameId,'" title\x3d"',d.label,'" src\x3d"javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"\x3e\x3c/iframe\x3e');return a.join("")})}},fileButton:function(c,d,b){var e=this;if(!(3>arguments.length)){a.call(this,d);d.validate&&(this.validate=d.validate);var f=CKEDITOR.tools.extend({},d),h=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(a){var b= +d["for"];a=h?h.call(this,a):!1;!1!==a&&("xhr"!==a&&c.getContentElement(b[0],b[1]).submit(),this.disable())};c.on("load",function(){c.getContentElement(d["for"][0],d["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,c,f,b)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,d=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,b=/\/$/;return function(e,f,h){if(!(3>arguments.length)){var k=[],g=f.html;"\x3c"!=g.charAt(0)&&(g="\x3cspan\x3e"+g+"\x3c/span\x3e");var l=f.focus;if(l){var m=this.focus; +this.focus=function(){("function"==typeof l?l:m).call(this);this.fire("focus")};f.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,e,f,k,"span",null,null,"");k=k.join("").match(a);g=g.match(d)||["","",""];b.test(g[1])&&(g[1]=g[1].slice(0,-1),g[2]="/"+g[2]);h.push([g[1]," ",k[1]||"",g[2]].join(""))}}}(),fieldset:function(a,d,b,e,f){var h=f.label;this._={children:d};CKEDITOR.ui.dialog.uiElement.call(this,a,f,e,"fieldset",null,null,function(){var a= +[];h&&a.push("\x3clegend"+(f.labelStyle?' style\x3d"'+f.labelStyle+'"':"")+"\x3e"+h+"\x3c/legend\x3e");for(var c=0;cd.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:f},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return this._.disabled?!1:this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var a=this.getElement();a&&a.removeClass("cke_disabled")},disable:function(){this._.disabled=!0;this.getElement().addClass("cke_disabled")}, isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(a,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},f,!0);CKEDITOR.ui.dialog.textarea.prototype= -new CKEDITOR.ui.dialog.textInput;CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(a,d,c){var e=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),f=this.getInputElement().$;e.$.text=a;e.$.value=void 0===d||null===d?a:d;void 0===c||null===c?CKEDITOR.env.ie?f.add(e.$):f.add(e.$,null):f.add(e.$,c);return this},remove:function(a){this.getInputElement().$.remove(a); -return this},clear:function(){for(var a=this.getInputElement().$;0c-a;b--)if(this._.tabs[this._.tabIdList[b%a]][0].$.offsetHeight)return this._.tabIdList[b%a];return null}function g(){for(var a=this._.tabIdList.length,c=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),b=c+1;bl.width-g.width-h?l.width-g.width+("rtl"==f.lang.dir?0:k[1]):e.x;g=e.y+k[0]l.height-g.height-h?l.height-g.height+k[2]:e.y;m=Math.floor(m);g=Math.floor(g);a.move(m,g,1);b.data.preventDefault()}function b(){CKEDITOR.document.removeListener("mousemove",c);CKEDITOR.document.removeListener("mouseup",b);if(CKEDITOR.env.ie6Compat){var a=B.getChild(0).getFrameDocument();a.removeListener("mousemove",c);a.removeListener("mouseup",b)}}var d=null,e=null,f=a.getParentEditor(), -h=f.config.dialog_magnetDistance,k=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof h&&(h=20);a.parts.title.on("mousedown",function(f){if(!a._.moved){var h=a._.element;h.getFirst().setStyle("position","absolute");h.removeStyle("display");a._.moved=!0;a.layout()}d={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",c);CKEDITOR.document.on("mouseup",b);e=a.getPosition();CKEDITOR.env.ie6Compat&&(h=B.getChild(0).getFrameDocument(),h.on("mousemove",c),h.on("mouseup",b));f.data.preventDefault()}, -a)}function p(a){function c(b){var n="rtl"==f.lang.dir,u=m.width,p=m.height,x=u+(b.data.$.screenX-l.x)*(n?-1:1)*(a._.moved?1:2),y=p+(b.data.$.screenY-l.y)*(a._.moved?1:2),v=a._.element.getFirst(),v=n&&parseInt(v.getComputedStyle("right"),10),w=a.getPosition();w.x=w.x||0;w.y=w.y||0;w.y+y>g.height&&(y=g.height-w.y);(n?v:w.x)+x>g.width&&(x=g.width-(n?v:w.x));y=Math.floor(y);x=Math.floor(x);if(e==CKEDITOR.DIALOG_RESIZE_WIDTH||e==CKEDITOR.DIALOG_RESIZE_BOTH)u=Math.max(d.minWidth||0,x-h);if(e==CKEDITOR.DIALOG_RESIZE_HEIGHT|| -e==CKEDITOR.DIALOG_RESIZE_BOTH)p=Math.max(d.minHeight||0,y-k);a.resize(u,p);a._.moved&&q(a,a._.position.x,a._.position.y);a._.moved||a.layout();b.data.preventDefault()}function b(){CKEDITOR.document.removeListener("mouseup",b);CKEDITOR.document.removeListener("mousemove",c);n&&(n.remove(),n=null);if(CKEDITOR.env.ie6Compat){var a=B.getChild(0).getFrameDocument();a.removeListener("mouseup",b);a.removeListener("mousemove",c)}}var d=a.definition,e=d.resizable;if(e!=CKEDITOR.DIALOG_RESIZE_NONE){var f= -a.getParentEditor(),h,k,g,l,m,n,u=CKEDITOR.tools.addFunction(function(d){function e(a){return a.isVisible()}m=a.getSize();var f=a.parts.contents,u=f.$.getElementsByTagName("iframe").length,p=!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks);u&&(n=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%; left:0; top:0;"\x3e\x3c/div\x3e'),f.append(n));k=m.height-a.parts.contents.getFirst(e).getSize("height",p); -h=m.width-a.parts.contents.getFirst(e).getSize("width",1);l={x:d.screenX,y:d.screenY};g=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",c);CKEDITOR.document.on("mouseup",b);CKEDITOR.env.ie6Compat&&(f=B.getChild(0).getFrameDocument(),f.on("mousemove",c),f.on("mouseup",b));d.preventDefault&&d.preventDefault()});a.on("load",function(){var c="";e==CKEDITOR.DIALOG_RESIZE_WIDTH?c=" cke_resizer_horizontal":e==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(c=" cke_resizer_vertical");c=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+ -c+" cke_resizer_"+f.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(f.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+u+', event )"\x3e'+("ltr"==f.lang.dir?"◢":"◣")+"\x3c/div\x3e");a.parts.footer.append(c,1)});f.on("destroy",function(){CKEDITOR.tools.removeFunction(u)})}}function q(a,c,b){var d=a.parts.dialog.getParent().getClientSize(),e=a.getSize(),f=a._.viewportRatio,h=Math.max(d.width-e.width,0),d=Math.max(d.height-e.height,0);f.width=h?c/h:f.width;f.height=d?b/d:f.height; -a._.viewportRatio=f}function t(a){a.data.preventDefault(1)}function r(a){var c=a.config,b=CKEDITOR.skinName||a.config.skin,d=c.dialog_backgroundCoverColor||("moono-lisa"==b?"black":"white"),b=c.dialog_backgroundCoverOpacity,e=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(d,b,e),f=I[c];CKEDITOR.document.getBody().addClass("cke_dialog_open");f?f.show():(e=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",e,"; top: 0px; left: 0px; ","; width: 100%; height: 100%;", +g);CKEDITOR.dialog.addUIElement("html",g);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,d,b){for(var e=d.children,f,h=[],k=[],g=0;gb-a;c--)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function g(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),c=b+1;cl.width-g.width-h?l.width-g.width+("rtl"==f.lang.dir?0:k[1]):e.x;g=e.y+k[0]l.height-g.height-h?l.height-g.height+k[2]:e.y;m=Math.floor(m);g=Math.floor(g);a.move(m,g,1);c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var a=A.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var d=null,e=null,f=a.getParentEditor(), +h=f.config.dialog_magnetDistance,k=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof h&&(h=20);a.parts.title.on("mousedown",function(f){if(!a._.moved){var h=a._.element;h.getFirst().setStyle("position","absolute");h.removeStyle("display");a._.moved=!0;a.layout()}d={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);e=a.getPosition();CKEDITOR.env.ie6Compat&&(h=A.getChild(0).getFrameDocument(),h.on("mousemove",b),h.on("mouseup",c));f.data.preventDefault()}, +a)}function q(a){function b(c){var n="rtl"==f.lang.dir,v=m.width,q=m.height,x=v+(c.data.$.screenX-l.x)*(n?-1:1)*(a._.moved?1:2),p=q+(c.data.$.screenY-l.y)*(a._.moved?1:2),y=a._.element.getFirst(),y=n&&parseInt(y.getComputedStyle("right"),10),z=a.getPosition();z.x=z.x||0;z.y=z.y||0;z.y+p>g.height&&(p=g.height-z.y);(n?y:z.x)+x>g.width&&(x=g.width-(n?y:z.x));p=Math.floor(p);x=Math.floor(x);if(e==CKEDITOR.DIALOG_RESIZE_WIDTH||e==CKEDITOR.DIALOG_RESIZE_BOTH)v=Math.max(d.minWidth||0,x-h);if(e==CKEDITOR.DIALOG_RESIZE_HEIGHT|| +e==CKEDITOR.DIALOG_RESIZE_BOTH)q=Math.max(d.minHeight||0,p-k);a.resize(v,q);a._.moved&&u(a,a._.position.x,a._.position.y);a._.moved||a.layout();c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mouseup",c);CKEDITOR.document.removeListener("mousemove",b);n&&(n.remove(),n=null);if(CKEDITOR.env.ie6Compat){var a=A.getChild(0).getFrameDocument();a.removeListener("mouseup",c);a.removeListener("mousemove",b)}}var d=a.definition,e=d.resizable;if(e!=CKEDITOR.DIALOG_RESIZE_NONE){var f= +a.getParentEditor(),h,k,g,l,m,n,v=CKEDITOR.tools.addFunction(function(d){function e(a){return a.isVisible()}m=a.getSize();var f=a.parts.contents,v=f.$.getElementsByTagName("iframe").length,q=!(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'),f.append(n));k=m.height-a.parts.contents.getFirst(e).getSize("height",q); +h=m.width-a.parts.contents.getFirst(e).getSize("width",1);l={x:d.screenX,y:d.screenY};g=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);CKEDITOR.env.ie6Compat&&(f=A.getChild(0).getFrameDocument(),f.on("mousemove",b),f.on("mouseup",c));d.preventDefault&&d.preventDefault()});a.on("load",function(){var b="";e==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":e==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+ +b+" cke_resizer_"+f.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(f.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+v+', event )"\x3e'+("ltr"==f.lang.dir?"◢":"◣")+"\x3c/div\x3e");a.parts.footer.append(b,1)});f.on("destroy",function(){CKEDITOR.tools.removeFunction(v)})}}function u(a,b,c){var d=a.parts.dialog.getParent().getClientSize(),e=a.getSize(),f=a._.viewportRatio,h=Math.max(d.width-e.width,0),d=Math.max(d.height-e.height,0);f.width=h?b/h:f.width;f.height=d?c/d:f.height; +a._.viewportRatio=f}function t(a){a.data.preventDefault(1)}function r(a){var b=a.config,c=CKEDITOR.skinName||a.config.skin,d=b.dialog_backgroundCoverColor||("moono-lisa"==c?"black":"white"),c=b.dialog_backgroundCoverOpacity,e=b.baseFloatZIndex,b=CKEDITOR.tools.genKey(d,c,e),f=I[b];CKEDITOR.document.getBody().addClass("cke_dialog_open");f?f.show():(e=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",e,"; top: 0px; left: 0px; ","; width: 100%; height: 100%;", CKEDITOR.env.ie6Compat?"":"background-color: "+d,'" class\x3d"cke_dialog_background_cover"\x3e'],CKEDITOR.env.ie6Compat&&(d="\x3chtml\x3e\x3cbody style\x3d\\'background-color:"+d+";\\'\x3e\x3c/body\x3e\x3c/html\x3e",e.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),e.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+d+"' );document.close();")+"})())"),e.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')), -e.push("\x3c/div\x3e"),f=CKEDITOR.dom.element.createFromHtml(e.join("")),f.setOpacity(void 0!==b?b:.5),f.on("keydown",t),f.on("keypress",t),f.on("keyup",t),f.appendTo(CKEDITOR.document.getBody()),I[c]=f);a.focusManager.add(f);B=f;CKEDITOR.env.mac&&CKEDITOR.env.webkit||f.focus()}function v(a){CKEDITOR.document.getBody().removeClass("cke_dialog_open");B&&(a.focusManager.remove(B),B.hide())}function y(a){var c=a.data.$.ctrlKey||a.data.$.metaKey,b=a.data.$.altKey,d=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode); -(c=J[(c?"CTRL+":"")+(b?"ALT+":"")+(d?"SHIFT+":"")+e])&&c.length&&(c=c[c.length-1],c.keydown&&c.keydown.call(c.uiElement,c.dialog,c.key),a.data.preventDefault())}function x(a){var c=a.data.$.ctrlKey||a.data.$.metaKey,b=a.data.$.altKey,d=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);(c=J[(c?"CTRL+":"")+(b?"ALT+":"")+(d?"SHIFT+":"")+e])&&c.length&&(c=c[c.length-1],c.keyup&&(c.keyup.call(c.uiElement,c.dialog,c.key),a.data.preventDefault()))}function z(a,c,b,d,e){(J[b]||(J[b]=[])).push({uiElement:a, -dialog:c,key:b,keyup:e||a.accessKeyUp,keydown:d||a.accessKeyDown})}function A(a){for(var c in J){for(var b=J[c],d=b.length-1;0<=d;d--)b[d].dialog!=a&&b[d].uiElement!=a||b.splice(d,1);0===b.length&&delete J[c]}}function w(a,c){a._.accessKeyMap[c]&&a.selectPage(a._.accessKeyMap[c])}function u(){}var D=CKEDITOR.tools.cssLength,C,B,G=!CKEDITOR.env.ie||CKEDITOR.env.edge,K='\x3cdiv class\x3d"cke_reset_all cke_dialog_container {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" style\x3d"'+(G?"display:flex": +e.push("\x3c/div\x3e"),f=CKEDITOR.dom.element.createFromHtml(e.join("")),f.setOpacity(void 0!==c?c:.5),f.on("keydown",t),f.on("keypress",t),f.on("keyup",t),f.appendTo(CKEDITOR.document.getBody()),I[b]=f);a.focusManager.add(f);A=f;CKEDITOR.env.mac&&CKEDITOR.env.webkit||f.focus()}function p(a){CKEDITOR.document.getBody().removeClass("cke_dialog_open");A&&(a.focusManager.remove(A),A.hide())}function y(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,d=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode); +(b=J[(b?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&b.length&&(b=b[b.length-1],b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key),a.data.preventDefault())}function x(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,d=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);(b=J[(b?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&b.length&&(b=b[b.length-1],b.keyup&&(b.keyup.call(b.uiElement,b.dialog,b.key),a.data.preventDefault()))}function z(a,b,c,d,e){(J[c]||(J[c]=[])).push({uiElement:a, +dialog:b,key:c,keyup:e||a.accessKeyUp,keydown:d||a.accessKeyDown})}function B(a){for(var b in J){for(var c=J[b],d=c.length-1;0<=d;d--)c[d].dialog!=a&&c[d].uiElement!=a||c.splice(d,1);0===c.length&&delete J[b]}}function w(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])}function v(){}var D=CKEDITOR.tools.cssLength,C,A,G=!CKEDITOR.env.ie||CKEDITOR.env.edge,K='\x3cdiv class\x3d"cke_reset_all cke_dialog_container {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" style\x3d"'+(G?"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"'+(G?"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(c,b){function f(){var a=r._.focusList;a.sort(function(a,c){return a.tabIndex!=c.tabIndex?c.tabIndex-a.tabIndex:a.focusIndex-c.focusIndex});for(var c=a.length,b=0;bc.length)){var b=r._.currentFocusIndex;r._.tabBarMode&&0>a&&(b=0);try{c[b].getInputElement().$.blur()}catch(d){}var e=b,f=1b.length)){var c=A._.currentFocusIndex;A._.tabBarMode&&0>a&&(c=0);try{b[c].getInputElement().$.blur()}catch(d){}var e=c,f=1arguments.length)){var k=(d.call?d(c):d)||"div",g=["\x3c",k," "],l=(e&&e.call?e(c):e)||{},m=(f&&f.call?f(c):f)||{},n=(h&&h.call?h.call(this,a,c):h)||"",u=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";c.requiredContent&&!a.getParentEditor().filter.check(c.requiredContent)&&(l.display="none",this.notAllowed=!0);m.id=u;var x={};c.type&&(x["cke_dialog_ui_"+c.type]=1);c.className&&(x[c.className]= -1);c.disabled&&(x.cke_disabled=1);for(var p=m["class"]&&m["class"].split?m["class"].split(" "):[],u=0;uCKEDITOR.env.version?"cke_dialog_ui_focused":"";c.on("focus",function(){a._.tabBarMode=!1;a._.hasFocus=!0;y.fire("focus");b&&this.addClass(b)});c.on("blur",function(){y.fire("blur"); -b&&this.removeClass(b)})}});CKEDITOR.tools.extend(this,c);this.keyboardFocusable&&(this.tabIndex=c.tabIndex||0,this.focusIndex=a._.focusList.push(this)-1,this.on("focus",function(){a._.currentFocusIndex=y.focusIndex}))}},hbox:function(a,c,b,d,e){if(!(4>arguments.length)){this._||(this._={});var f=this._.children=c,h=e&&e.widths||null,k=e&&e.height||null,g,l={role:"presentation"};e&&e.align&&(l.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"hbox"},d,"table",{},l,function(){var a= -['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(g=0;garguments.length)){this._||(this._={});var f=this._.children=c,h=e&&e.width||null,k=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},d,"div",null,{role:"presentation"},function(){var c=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];c.push('style\x3d"');e&&e.expand&&c.push("height:100%;"); -c.push("width:"+D(h||"100%"),";");CKEDITOR.env.webkit&&c.push("float:none;");c.push('"');c.push('align\x3d"',CKEDITOR.tools.htmlEncode(e&&e.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');c.push("\x3e\x3ctbody\x3e");for(var d=0;darguments.length)){var k=(d.call?d(b):d)||"div",g=["\x3c",k," "],l=(e&&e.call?e(b):e)||{},m=(f&&f.call?f(b):f)||{},n=(h&&h.call?h.call(this,a,b):h)||"",v=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)&&(l.display="none",this.notAllowed=!0);m.id=v;var q={};b.type&&(q["cke_dialog_ui_"+b.type]=1);b.className&&(q[b.className]= +1);b.disabled&&(q.cke_disabled=1);for(var x=m["class"]&&m["class"].split?m["class"].split(" "):[],v=0;vCKEDITOR.env.version?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=!1;a._.hasFocus=!0;p.fire("focus");c&&this.addClass(c)});b.on("blur",function(){p.fire("blur"); +c&&this.removeClass(c)})}});CKEDITOR.tools.extend(this,b);this.keyboardFocusable&&(this.tabIndex=b.tabIndex||0,this.focusIndex=a._.focusList.push(this)-1,this.on("focus",function(){a._.currentFocusIndex=p.focusIndex}))}},hbox:function(a,b,c,d,e){if(!(4>arguments.length)){this._||(this._={});var f=this._.children=b,h=e&&e.widths||null,k=e&&e.height||null,g,l={role:"presentation"};e&&e.align&&(l.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"hbox"},d,"table",{},l,function(){var a= +['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(g=0;garguments.length)){this._||(this._={});var f=this._.children=b,h=e&&e.width||null,k=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},d,"div",null,{role:"presentation"},function(){var b=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];b.push('style\x3d"');e&&e.expand&&b.push("height:100%;"); +b.push("width:"+D(h||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align\x3d"',CKEDITOR.tools.htmlEncode(e&&e.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');b.push("\x3e\x3ctbody\x3e");for(var d=0;darguments.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,c,b){for(var d=c.children,e,f=[],h=[],k=0;kf||(this.notifications.splice(f,1),a.element.remove(), -this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var a=this.editor,f=a.config,e=new CKEDITOR.dom.element("div");e.addClass("cke_notifications_area");e.setAttribute("id","cke_notifications_area_"+a.name);e.setStyle("z-index",f.baseFloatZIndex-2);return e},_attachListeners:function(){var a=CKEDITOR.document.getWindow(),f=this.editor;a.on("scroll",this._uiBuffer.input);a.on("resize",this._uiBuffer.input);f.on("change",this._changeBuffer.input); -f.on("floatingSpaceLayout",this._layout,this,null,20);f.on("blur",this._layout,this,null,20)},_removeListeners:function(){var a=CKEDITOR.document.getWindow(),f=this.editor;a.removeListener("scroll",this._uiBuffer.input);a.removeListener("resize",this._uiBuffer.input);f.removeListener("change",this._changeBuffer.input);f.removeListener("floatingSpaceLayout",this._layout);f.removeListener("blur",this._layout)},_layout:function(){function a(){f.setStyle("left",y(x+l.width-n-p))}var f=this.element,e= -this.editor,l=e.ui.contentsElement.getClientRect(),k=e.ui.contentsElement.getDocumentPosition(),h,b,d=f.getClientRect(),c,n=this._notificationWidth,p=this._notificationMargin;c=CKEDITOR.document.getWindow();var q=c.getScrollPosition(),t=c.getViewPaneSize(),r=CKEDITOR.document.getBody(),v=r.getDocumentPosition(),y=CKEDITOR.tools.cssLength;n&&p||(c=this.element.getChild(0),n=this._notificationWidth=c.getClientRect().width,p=this._notificationMargin=parseInt(c.getComputedStyle("margin-left"),10)+parseInt(c.getComputedStyle("margin-right"), -10));e.toolbar&&(h=e.ui.space(e.config.toolbarLocation),b=h.getClientRect());h&&h.isVisible()&&b.bottom>l.top&&b.bottomq.y?f.setStyles({position:"fixed",top:0}):f.setStyles({position:"absolute",top:y(k.y+l.height-d.height)});var x="fixed"==f.getStyle("position")?l.left:"static"!=r.getComputedStyle("position")?k.x-v.x:k.x;l.widthq.x+t.width?a(): -f.setStyle("left",y(x)):k.x+n+p>q.x+t.width?f.setStyle("left",y(x)):k.x+l.width/2+n/2+p>q.x+t.width?f.setStyle("left",y(x-k.x+q.x+t.width-n-p)):0>l.left+l.width-n-p?a():0>l.left+l.width/2-n/2?f.setStyle("left",y(x-k.x+q.x)):f.setStyle("left",y(x+l.width/2-n/2-p/2))}};CKEDITOR.plugins.notification=a})();(function(){var a='\x3ca id\x3d"{id}" class\x3d"cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+' title\x3d"{title}" tabindex\x3d"-1" hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasArrow}" aria-disabled\x3d"{ariaDisabled}"'; +{getChild:function(a){if(1>arguments.length)return this._.children.concat();a.splice||(a=[a]);return 2>a.length?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild?this._.children[a[0]].getChild(a.slice(1,a.length)):null}},!0);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,b,c){for(var d=b.children,e,f=[],h=[],k=0;ke||(this.notifications.splice(e,1),a.element.remove(), +this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var a=this.editor,e=a.config,f=new CKEDITOR.dom.element("div");f.addClass("cke_notifications_area");f.setAttribute("id","cke_notifications_area_"+a.name);f.setStyle("z-index",e.baseFloatZIndex-2);return f},_attachListeners:function(){var a=CKEDITOR.document.getWindow(),e=this.editor;a.on("scroll",this._uiBuffer.input);a.on("resize",this._uiBuffer.input);e.on("change",this._changeBuffer.input); +e.on("floatingSpaceLayout",this._layout,this,null,20);e.on("blur",this._layout,this,null,20)},_removeListeners:function(){var a=CKEDITOR.document.getWindow(),e=this.editor;a.removeListener("scroll",this._uiBuffer.input);a.removeListener("resize",this._uiBuffer.input);e.removeListener("change",this._changeBuffer.input);e.removeListener("floatingSpaceLayout",this._layout);e.removeListener("blur",this._layout)},_layout:function(){function a(){e.setStyle("left",y(x+l.width-n-q))}var e=this.element,f= +this.editor,l=f.ui.contentsElement.getClientRect(),k=f.ui.contentsElement.getDocumentPosition(),h,c,d=e.getClientRect(),b,n=this._notificationWidth,q=this._notificationMargin;b=CKEDITOR.document.getWindow();var u=b.getScrollPosition(),t=b.getViewPaneSize(),r=CKEDITOR.document.getBody(),p=r.getDocumentPosition(),y=CKEDITOR.tools.cssLength;n&&q||(b=this.element.getChild(0),n=this._notificationWidth=b.getClientRect().width,q=this._notificationMargin=parseInt(b.getComputedStyle("margin-left"),10)+parseInt(b.getComputedStyle("margin-right"), +10));f.toolbar&&(h=f.ui.space(f.config.toolbarLocation),c=h.getClientRect());h&&h.isVisible()&&c.bottom>l.top&&c.bottomu.y?e.setStyles({position:"fixed",top:0}):e.setStyles({position:"absolute",top:y(k.y+l.height-d.height)});var x="fixed"==e.getStyle("position")?l.left:"static"!=r.getComputedStyle("position")?k.x-p.x:k.x;l.widthu.x+t.width?a(): +e.setStyle("left",y(x)):k.x+n+q>u.x+t.width?e.setStyle("left",y(x)):k.x+l.width/2+n/2+q>u.x+t.width?e.setStyle("left",y(x-k.x+u.x+t.width-n-q)):0>l.left+l.width-n-q?a():0>l.left+l.width/2-n/2?e.setStyle("left",y(x-k.x+u.x)):e.setStyle("left",y(x+l.width/2-n/2-q/2))}};CKEDITOR.plugins.notification=a})();(function(){var a='\x3ca id\x3d"{id}" class\x3d"cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+' title\x3d"{title}" tabindex\x3d"-1" hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasArrow}" aria-disabled\x3d"{ariaDisabled}"'; CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(a+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(a+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var l="";CKEDITOR.env.ie&&(l='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var a=a+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+l+'CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{style}"')+ -'\x3e\x26nbsp;\x3c/span\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_button_label cke_button__{name}_label" aria-hidden\x3d"false"\x3e{label}\x3c/span\x3e\x3cspan id\x3d"{id}_description" class\x3d"cke_button_label" aria-hidden\x3d"false"\x3e{ariaShortcut}\x3c/span\x3e{arrowHtml}\x3c/a\x3e',g=CKEDITOR.addTemplate("buttonArrow",'\x3cspan class\x3d"cke_button_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":"")+"\x3c/span\x3e"),f=CKEDITOR.addTemplate("button",a);CKEDITOR.plugins.add("button",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON, -CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(f){f.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};CKEDITOR.ui.button.prototype={render:function(a,l){function k(){var c=a.mode;c&&(c=this.modes[c]?void 0!==h[c]?h[c]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,c=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED: -c,this.setState(c),this.refresh&&this.refresh())}var h=null,b=CKEDITOR.env,d=this._.id=CKEDITOR.tools.getNextId(),c="",n=this.command,p,q,t;this._.editor=a;var r={id:d,button:this,editor:a,focus:function(){CKEDITOR.document.getById(d).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}},v=CKEDITOR.tools.addFunction(function(a){if(r.onkey)return a=new CKEDITOR.dom.event(a),!1!==r.onkey(r,a.getKeystroke())}),y=CKEDITOR.tools.addFunction(function(a){var c;r.onfocus&& -(c=!1!==r.onfocus(r,new CKEDITOR.dom.event(a)));return c}),x=0;r.clickFn=p=CKEDITOR.tools.addFunction(function(){x&&(a.unlockSelection(1),x=0);r.execute();b.iOS&&a.focus()});this.modes?(h={},a.on("beforeModeUnload",function(){a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(h[a.mode]=this._.state)},this),a.on("activeFilterChange",k,this),a.on("mode",k,this),!this.readOnly&&a.on("readOnly",k,this)):n&&(n=a.getCommand(n))&&(n.on("state",function(){this.setState(n.state)},this),c+=n.state==CKEDITOR.TRISTATE_ON? -"on":n.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");var z;if(this.directional)a.on("contentDirChanged",function(c){var b=CKEDITOR.document.getById(this._.id),d=b.getFirst();c=c.data;c!=a.lang.dir?b.addClass("cke_"+c):b.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",CKEDITOR.skin.getIconStyle(z,"rtl"==c,this.icon,this.iconOffset))},this);n?(q=a.getCommandKeystroke(n))&&(t=CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,q)):c+="off";q=this.name||this.command;var A= -null,w=this.icon;z=q;this.icon&&!/\./.test(this.icon)?(z=this.icon,w=null):(this.icon&&(A=this.icon),CKEDITOR.env.hidpi&&this.iconHiDpi&&(A=this.iconHiDpi));A?(CKEDITOR.skin.addIcon(A,A),w=null):A=z;c={id:d,name:q,iconName:z,label:this.label,cls:(this.hasArrow?"cke_button_expandable ":"")+(this.className||""),state:c,ariaDisabled:"disabled"==c?"true":"false",title:this.title+(t?" ("+t.display+")":""),ariaShortcut:t?a.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:v,focusFn:y,clickFn:p,style:CKEDITOR.skin.getIconStyle(A,"rtl"==a.lang.dir,w,this.iconOffset),arrowHtml:this.hasArrow?g.output():""};f.output(c,l);if(this.onRender)this.onRender();return r},setState:function(a){if(this._.state==a)return!1;this._.state=a;var f=CKEDITOR.document.getById(this._.id);return f?(f.setState(a,"cke_button"),f.setAttribute("aria-disabled",a==CKEDITOR.TRISTATE_DISABLED), -this.hasArrow?f.setAttribute("aria-expanded",a==CKEDITOR.TRISTATE_ON):a===CKEDITOR.TRISTATE_ON?f.setAttribute("aria-pressed",!0):f.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var f=this;this.allowedContent||this.requiredContent||!this.command||(f=a.getCommand(this.command)||f);return this._.feature=f}};CKEDITOR.ui.prototype.addButton=function(a,f){this.add(a,CKEDITOR.UI_BUTTON,f)}})();(function(){function a(a){function f(){for(var c= -k(),b=CKEDITOR.tools.clone(a.config.toolbarGroups)||l(a),d=0;dc.order?-1:0>a.order? -1:a.orderb.order?-1:0>a.order? +1:a.order]+data-cke-bookmark[^<]*?<\/span>/ig,"");e&&a(c,d)})}function u(){if("wysiwyg"==c.mode){var a=D("paste");c.getCommand("cut").setState(D("cut"));c.getCommand("copy").setState(D("copy"));c.getCommand("paste").setState(a);c.fire("pasteState",a)}}function D(a){var b= -c.getSelection(),b=b&&b.getRanges()[0];if((c.readOnly||b&&b.checkReadOnly())&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==a)return CKEDITOR.TRISTATE_OFF;a=c.getSelection();b=a.getRanges();return a.getType()==CKEDITOR.SELECTION_NONE||1==b.length&&b[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var C=CKEDITOR.plugins.clipboard,B=0,G=0;(function(){c.on("key",A);c.on("contentDom",b);c.on("selectionChange",u);if(c.contextMenu){c.contextMenu.addListener(function(){return{cut:D("cut"), -copy:D("copy"),paste:D("paste")}});var a=null;c.on("menuShow",function(){a&&(a.removeListener(),a=null);var b=c.contextMenu.findItemByCommandName("paste");b&&b.element&&(a=b.element.on("touchend",function(){c._.forcePasteDialog=!0}))})}if(c.ui.addButton)c.once("instanceReady",function(){c._.pasteButtons&&CKEDITOR.tools.array.forEach(c._.pasteButtons,function(a){if(a=c.ui.get(a))if(a=CKEDITOR.document.getById(a._.id))a.on("touchend",function(){c._.forcePasteDialog=!0})})})})();(function(){function a(b, -d,e,f,h){var k=c.lang.clipboard[d];c.addCommand(d,e);c.ui.addButton&&c.ui.addButton(b,{label:k,command:d,toolbar:"clipboard,"+f});c.addMenuItems&&c.addMenuItem(d,{label:k,command:d,group:"clipboard",order:h})}a("Cut","cut",d("cut"),10,1);a("Copy","copy",d("copy"),20,4);a("Paste","paste",e(),30,8);c._.pasteButtons||(c._.pasteButtons=[]);c._.pasteButtons.push("Paste")})();c.getClipboardData=function(a,b){function d(a){a.removeListener();a.cancel();b(a.data)}function e(a){a.removeListener();a.cancel(); -b({type:h,dataValue:a.data.dataValue,dataTransfer:a.data.dataTransfer,method:"paste"})}var f=!1,h="auto";b||(b=a,a=null);c.on("beforePaste",function(a){a.removeListener();f=!0;h=a.data.type},null,null,1E3);c.on("paste",d,null,null,0);!1===m()&&(c.removeListener("paste",d),c._.forcePasteDialog&&f&&c.fire("pasteDialog")?(c.on("pasteDialogCommit",e),c.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",e);a.data._.committed||b(null)})):b(null))}}function g(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&& -!a.match(/^(
<\/div>|
[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|)*$/gi)&&!a.match(/^(

([^<]|)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|)*$/gi))return"html"}else return"html";return"htmlifiedtext"}function f(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(/> +/gi, -"\x3cbr\x3e");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;CKEDITOR.env.webkit&&-1(
|)<\/div>)(?!$|(

(
|)<\/div>))/g,"\x3cbr\x3e").replace(/^(
(
|)<\/div>){2}(?!$)/g,"\x3cdiv\x3e\x3c/div\x3e"),b.match(/
(
|)<\/div>/)&&(b="\x3cp\x3e"+b.replace(/(
(
|)<\/div>)+/g,function(a){return d(a.split("\x3c/div\x3e\x3cdiv\x3e").length+1)})+"\x3c/p\x3e"),b=b.replace(/<\/div>
/g,"\x3cbr\x3e"), -b=b.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(b=b.replace(/^

$/,"\x3cbr\x3e")),-1){2,}/g,function(a){return d(a.length/4)})+"\x3c/p\x3e"));return k(a,b)}function e(a){function b(){var a={},c;for(c in CKEDITOR.dtd)"$"!=c.charAt(0)&&"div"!=c&&"span"!=c&&(a[c]=1);return a}var d={};return{get:function(e){return"plain-text"==e?d.plainText||(d.plainText=new CKEDITOR.filter(a, -"br")):"semantic-content"==e?((e=d.semanticContent)||(e=new CKEDITOR.filter(a,{}),e.allow({$1:{elements:b(),attributes:!0,styles:!1,classes:!1}}),e=d.semanticContent=e),e):e?new CKEDITOR.filter(a,e):null}}}function m(a,b,d){b=CKEDITOR.htmlParser.fragment.fromHtml(b);var e=new CKEDITOR.htmlParser.basicWriter;d.applyTo(b,!0,!1,a.activeEnterMode);b.writeHtml(e);return e.getHtml()}function k(a,b){a.enterMode==CKEDITOR.ENTER_BR?b=b.replace(/(<\/p>

)+/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 h(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function b(c){var b=CKEDITOR.plugins.clipboard;c.on("contentDom",function(){function d(b,e,f){e.select();a(c,{dataTransfer:f,method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(b);f.sourceEditor.getSelection().selectRanges([b]);f.sourceEditor.fire("saveSnapshot")} -function e(d,f){d.select();a(c,{dataTransfer:f,method:"drop"},1);b.resetDragDataTransfer()}function f(a,b,d){var e={$:a.data.$,target:a.data.getTarget()};b&&(e.dragRange=b);d&&(e.dropRange=d);!1===c.fire(a.name,e)&&a.data.preventDefault()}function h(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}var k=c.editable(),g=CKEDITOR.plugins.clipboard.getDropTarget(c),l=c.ui.space("top"),m=c.ui.space("bottom");b.preventDefaultDropOnElement(l);b.preventDefaultDropOnElement(m); -k.attachListener(g,"dragstart",f);k.attachListener(c,"dragstart",b.resetDragDataTransfer,b,null,1);k.attachListener(c,"dragstart",function(a){b.initDragDataTransfer(a,c)},null,null,2);k.attachListener(c,"dragstart",function(){var a=b.dragRange=c.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(b.dragStartContainerChildCount=a?h(a.startContainer):null,b.dragEndContainerChildCount=a?h(a.endContainer):null)},null,null,100);k.attachListener(g,"dragend",f);k.attachListener(c,"dragend", -b.initDragDataTransfer,b,null,1);k.attachListener(c,"dragend",b.resetDragDataTransfer,b,null,100);k.attachListener(g,"dragover",function(a){if(CKEDITOR.env.edge)a.data.preventDefault();else{var c=a.data.getTarget();c&&c.is&&c.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files")&&a.data.preventDefault()}});k.attachListener(g,"drop",function(a){if(!a.data.$.defaultPrevented&&(a.data.preventDefault(),!c.readOnly)){var d= -a.data.getTarget();if(!d.isReadOnly()||d.type==CKEDITOR.NODE_ELEMENT&&d.is("html")){var d=b.getRangeAtDropPosition(a,c),e=b.dragRange;d&&f(a,e,d)}}},null,null,9999);k.attachListener(c,"drop",b.initDragDataTransfer,b,null,1);k.attachListener(c,"drop",function(a){if(a=a.data){var f=a.dropRange,h=a.dragRange,k=a.dataTransfer;k.getTransferType(c)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){b.internalDrop(h,f,k,c)},0):k.getTransferType(c)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?d(h,f,k):e(f,k)}}, -null,null,9999)})}var d;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(a){function d(a){if(!a||r===a.id)return!1;var c=a.getTypes(),c=1===c.length&&"Files"===c[0];a=1===a.getFilesCount();return c&&a}var h,k=e(a);a.config.forcePasteAsPlainText?h="plain-text":a.config.pasteFilter?h=a.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in a.config||(h="semantic-content");a.pasteFilter=k.get(h);l(a);b(a);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js")); -if(CKEDITOR.env.gecko){var t=["image/png","image/jpeg","image/gif"],r;a.on("paste",function(b){var e=b.data,f=e.dataTransfer;if(!e.dataValue&&"paste"==e.method&&d(f)&&(f=f.getFile(0),-1!=CKEDITOR.tools.indexOf(t,f.type))){var h=new FileReader;h.addEventListener("load",function(){b.data.dataValue='\x3cimg src\x3d"'+h.result+'" /\x3e';a.fire("paste",b.data)},!1);h.addEventListener("abort",function(){a.fire("paste",b.data)},!1);h.addEventListener("error",function(){a.fire("paste",b.data)},!1);h.readAsDataURL(f); -r=e.dataTransfer.id;b.stop()}},null,null,1)}a.on("paste",function(b){b.data.dataTransfer||(b.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!b.data.dataValue){var d=b.data.dataTransfer,e=d.getData("text/html");if(e)b.data.dataValue=e,b.data.type="html";else if(e=d.getData("text/plain"))b.data.dataValue=a.editable().transformPlainTextToHtml(e),b.data.type="text"}},null,null,1);a.on("paste",function(a){var c=a.data.dataValue,b=CKEDITOR.dtd.$block;-1 <\/span>/gi, -" "),"html"!=a.data.type&&(c=c.replace(/]*>([^<]*)<\/span>/gi,function(a,c){return c.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;")})),-1/,"")),c=c.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(c.match(/^<[^<]+cke_(editable|contents)/i)){var d,e,f=new CKEDITOR.dom.element("div");for(f.setHtml(c);1==f.getChildCount()&& -(d=f.getFirst())&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasClass("cke_editable")||d.hasClass("cke_contents"));)f=e=d;e&&(c=e.getHtml().replace(/
$/i,""))}CKEDITOR.env.ie?c=c.replace(/^ (?: |\r\n)?<(\w+)/g,function(c,d){return d.toLowerCase()in b?(a.data.preSniffing="html","\x3c"+d):c}):CKEDITOR.env.webkit?c=c.replace(/<\/(\w+)>


<\/div>$/,function(c,d){return d in b?(a.data.endsWithEOL=1,"\x3c/"+d+"\x3e"):c}):CKEDITOR.env.gecko&&(c=c.replace(/(\s)
$/,"$1"));a.data.dataValue=c},null, -null,3);a.on("paste",function(b){b=b.data;var d=a._.nextPasteType||b.type,e=b.dataValue,h,l=a.config.clipboard_defaultContentType||"html",n=b.dataTransfer.getTransferType(a)==CKEDITOR.DATA_TRANSFER_EXTERNAL,u=!0===a.config.forcePasteAsPlainText;h="html"==d||"html"==b.preSniffing?"html":g(e);delete a._.nextPasteType;"htmlifiedtext"==h&&(e=f(a.config,e));if("text"==d&&"html"==h)e=m(a,e,k.get("plain-text"));else if(n&&a.pasteFilter&&!b.dontFilter||u)e=m(a,e,a.pasteFilter);b.startsWithEOL&&(e='\x3cbr data-cke-eol\x3d"1"\x3e'+ -e);b.endsWithEOL&&(e+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==d&&(d="html"==h||"html"==l?"html":"text");b.type=d;b.dataValue=e;delete b.preSniffing;delete b.startsWithEOL;delete b.endsWithEOL},null,null,6);a.on("paste",function(b){b=b.data;b.dataValue&&(a.insertHtml(b.dataValue,b.type,b.range),setTimeout(function(){a.fire("afterPaste")},0))},null,null,1E3);a.on("pasteDialog",function(b){setTimeout(function(){a.openDialog("paste",b.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||9CKEDITOR.env.version||b.isInline()?b:a.document},fixSplitNodesAfterDrop:function(a,b,d,e){function f(a,c,d){var e=a;e.type==CKEDITOR.NODE_TEXT&&(e=a.getParent());if(e.equals(c)&& -d!=c.getChildCount())return a=b.startContainer.getChild(b.startOffset-1),c=b.startContainer.getChild(b.startOffset),a&&a.type==CKEDITOR.NODE_TEXT&&c&&c.type==CKEDITOR.NODE_TEXT&&(d=a.getLength(),a.setText(a.getText()+c.getText()),c.remove(),b.setStart(a,d),b.collapse(!0)),!0}var h=b.startContainer;"number"==typeof e&&"number"==typeof d&&h.type==CKEDITOR.NODE_ELEMENT&&(f(a.startContainer,h,d)||f(a.endContainer,h,e))},isDropRangeAffectedByDragRange:function(a,b){var d=b.startContainer,e=b.endOffset; -return a.endContainer.equals(d)&&a.endOffset<=e||a.startContainer.getParent().equals(d)&&a.startContainer.getIndex()CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(c,b,f.dragStartContainerChildCount,f.dragEndContainerChildCount);(g=this.isDropRangeAffectedByDragRange(c, -b))||(k=c.createBookmark(!1));f=b.clone().createBookmark(!1);g&&(k=c.createBookmark(!1));c=k.startNode;b=k.endNode;g=f.startNode;b&&c.getPosition(g)&CKEDITOR.POSITION_PRECEDING&&b.getPosition(g)&CKEDITOR.POSITION_FOLLOWING&&g.insertBefore(c);c=e.createRange();c.moveToBookmark(k);h.extractHtmlFromRange(c,1);b=e.createRange();f.startNode.getCommonAncestor(h)||(f=e.getSelection().createBookmarks()[0]);b.moveToBookmark(f);a(e,{dataTransfer:d,method:"drop",range:b},1);e.fire("unlockSnapshot")},getRangeAtDropPosition:function(a, -b){var d=a.data.$,e=d.clientX,f=d.clientY,h=b.getSelection(!0).getRanges()[0],k=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint&&b.document.$.caretRangeFromPoint(e,f))d=b.document.$.caretRangeFromPoint(e,f),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&&8l&&!g;l++){if(!g)try{d.moveToPoint(e,f-l),g=!0}catch(m){}if(!g)try{d.moveToPoint(e,f+l),g=!0}catch(A){}}if(g){var w="cke-temp-"+(new Date).getTime();d.pasteHTML('\x3cspan id\x3d"'+w+'"\x3e​\x3c/span\x3e');var u=b.document.getById(w);k.moveToPosition(u,CKEDITOR.POSITION_BEFORE_START);u.remove()}else{var D=b.document.$.elementFromPoint(e,f),C=new CKEDITOR.dom.element(D),B;if(C.equals(b.editable())|| -"html"==C.getName())return h&&h.startContainer&&!h.startContainer.equals(b.editable())?h:null;B=C.getClientRect();e/i,bodyRegExp:/([\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(e){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 f=d.indexOf("\x3c/html\x3e"),d=-1!==f?d.substring(0,f+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(e){}},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(c){c=b._.normalizeType(c);var d=b.getData(c);"text/html"==c&&(b._.nativeHtmlCache=b.getData(c,!0),d=b._stripHtml(d));d&&(b._.data[c]=d)}if(this.$){var b=this,d,e;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;d]+data-cke-bookmark[^<]*?<\/span>/ig,"");e&&a(b,d)})}function v(){if("wysiwyg"==b.mode){var a=D("paste");b.getCommand("cut").setState(D("cut"));b.getCommand("copy").setState(D("copy"));b.getCommand("paste").setState(a);b.fire("pasteState",a)}}function D(a){var c= +b.getSelection(),c=c&&c.getRanges()[0];if((b.readOnly||c&&c.checkReadOnly())&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==a)return CKEDITOR.TRISTATE_OFF;a=b.getSelection();c=a.getRanges();return a.getType()==CKEDITOR.SELECTION_NONE||1==c.length&&c[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var C=CKEDITOR.plugins.clipboard,A=0,G=0;(function(){b.on("key",B);b.on("contentDom",c);b.on("selectionChange",v);if(b.contextMenu){b.contextMenu.addListener(function(){return{cut:D("cut"), +copy:D("copy"),paste:D("paste")}});var a=null;b.on("menuShow",function(){a&&(a.removeListener(),a=null);var c=b.contextMenu.findItemByCommandName("paste");c&&c.element&&(a=c.element.on("touchend",function(){b._.forcePasteDialog=!0}))})}if(b.ui.addButton)b.once("instanceReady",function(){b._.pasteButtons&&CKEDITOR.tools.array.forEach(b._.pasteButtons,function(a){if(a=b.ui.get(a))if(a=CKEDITOR.document.getById(a._.id))a.on("touchend",function(){b._.forcePasteDialog=!0})})})})();(function(){function a(c, +d,e,f,h){var k=b.lang.clipboard[d];b.addCommand(d,e);b.ui.addButton&&b.ui.addButton(c,{label:k,command:d,toolbar:"clipboard,"+f});b.addMenuItems&&b.addMenuItem(d,{label:k,command:d,group:"clipboard",order:h})}a("Cut","cut",d("cut"),10,1);a("Copy","copy",d("copy"),20,4);a("Paste","paste",e(),30,8);b._.pasteButtons||(b._.pasteButtons=[]);b._.pasteButtons.push("Paste")})();b.getClipboardData=function(a,c){function d(a){a.removeListener();a.cancel();c(a.data)}function e(a){a.removeListener();a.cancel(); +c({type:h,dataValue:a.data.dataValue,dataTransfer:a.data.dataTransfer,method:"paste"})}var f=!1,h="auto";c||(c=a,a=null);b.on("beforePaste",function(a){a.removeListener();f=!0;h=a.data.type},null,null,1E3);b.on("paste",d,null,null,0);!1===m()&&(b.removeListener("paste",d),b._.forcePasteDialog&&f&&b.fire("pasteDialog")?(b.on("pasteDialogCommit",e),b.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",e);a.data._.committed||c(null)})):c(null))}}function g(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&& +!a.match(/^(
<\/div>|
[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|)*$/gi)&&!a.match(/^(

([^<]|)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|)*$/gi))return"html"}else return"html";return"htmlifiedtext"}function e(a,c){function d(a){return CKEDITOR.tools.repeat("\x3c/p\x3e\x3cp\x3e",~~(a/2))+(1==a%2?"\x3cbr\x3e":"")}c=c.replace(/(?!\u3000)\s+/g," ").replace(/> +/gi, +"\x3cbr\x3e");c=c.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(c.match(/^[^<]$/))return c;CKEDITOR.env.webkit&&-1(
|)<\/div>)(?!$|(

(
|)<\/div>))/g,"\x3cbr\x3e").replace(/^(
(
|)<\/div>){2}(?!$)/g,"\x3cdiv\x3e\x3c/div\x3e"),c.match(/
(
|)<\/div>/)&&(c="\x3cp\x3e"+c.replace(/(
(
|)<\/div>)+/g,function(a){return d(a.split("\x3c/div\x3e\x3cdiv\x3e").length+1)})+"\x3c/p\x3e"),c=c.replace(/<\/div>
/g,"\x3cbr\x3e"), +c=c.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(c=c.replace(/^

$/,"\x3cbr\x3e")),-1){2,}/g,function(a){return d(a.length/4)})+"\x3c/p\x3e"));return k(a,c)}function f(a){function c(){var a={},b;for(b in CKEDITOR.dtd)"$"!=b.charAt(0)&&"div"!=b&&"span"!=b&&(a[b]=1);return a}var d={};return{get:function(e){return"plain-text"==e?d.plainText||(d.plainText=new CKEDITOR.filter(a, +"br")):"semantic-content"==e?((e=d.semanticContent)||(e=new CKEDITOR.filter(a,{}),e.allow({$1:{elements:c(),attributes:!0,styles:!1,classes:!1}}),e=d.semanticContent=e),e):e?new CKEDITOR.filter(a,e):null}}}function m(a,c,d){c=CKEDITOR.htmlParser.fragment.fromHtml(c);var e=new CKEDITOR.htmlParser.basicWriter;d.applyTo(c,!0,!1,a.activeEnterMode);c.writeHtml(e);return e.getHtml()}function k(a,c){a.enterMode==CKEDITOR.ENTER_BR?c=c.replace(/(<\/p>

)+/g,function(a){return CKEDITOR.tools.repeat("\x3cbr\x3e", +a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(c=c.replace(/<(\/)?p>/g,"\x3c$1div\x3e"));return c}function h(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function c(b){var c=CKEDITOR.plugins.clipboard;b.on("contentDom",function(){function d(c,e,f){e.select();a(b,{dataTransfer:f,method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(c);f.sourceEditor.getSelection().selectRanges([c]);f.sourceEditor.fire("saveSnapshot")} +function e(d,f){d.select();a(b,{dataTransfer:f,method:"drop"},1);c.resetDragDataTransfer()}function f(a,c,d){var e={$:a.data.$,target:a.data.getTarget()};c&&(e.dragRange=c);d&&(e.dropRange=d);!1===b.fire(a.name,e)&&a.data.preventDefault()}function h(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}var k=b.editable(),g=CKEDITOR.plugins.clipboard.getDropTarget(b),l=b.ui.space("top"),m=b.ui.space("bottom");c.preventDefaultDropOnElement(l);c.preventDefaultDropOnElement(m); +k.attachListener(g,"dragstart",f);k.attachListener(b,"dragstart",c.resetDragDataTransfer,c,null,1);k.attachListener(b,"dragstart",function(a){c.initDragDataTransfer(a,b)},null,null,2);k.attachListener(b,"dragstart",function(){var a=c.dragRange=b.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(c.dragStartContainerChildCount=a?h(a.startContainer):null,c.dragEndContainerChildCount=a?h(a.endContainer):null)},null,null,100);k.attachListener(g,"dragend",f);k.attachListener(b,"dragend", +c.initDragDataTransfer,c,null,1);k.attachListener(b,"dragend",c.resetDragDataTransfer,c,null,100);k.attachListener(g,"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()}});k.attachListener(g,"drop",function(a){if(!a.data.$.defaultPrevented&&(a.data.preventDefault(),!b.readOnly)){var d= +a.data.getTarget();if(!d.isReadOnly()||d.type==CKEDITOR.NODE_ELEMENT&&d.is("html")){var d=c.getRangeAtDropPosition(a,b),e=c.dragRange;d&&f(a,e,d)}}},null,null,9999);k.attachListener(b,"drop",c.initDragDataTransfer,c,null,1);k.attachListener(b,"drop",function(a){if(a=a.data){var f=a.dropRange,h=a.dragRange,k=a.dataTransfer;k.getTransferType(b)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){c.internalDrop(h,f,k,b)},0):k.getTransferType(b)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?d(h,f,k):e(f,k)}}, +null,null,9999)})}var d;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(a){function d(a){if(!a||r===a.id)return!1;var b=a.getTypes(),b=1===b.length&&"Files"===b[0];a=1===a.getFilesCount();return b&&a}var h,k=f(a);a.config.forcePasteAsPlainText?h="plain-text":a.config.pasteFilter?h=a.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in a.config||(h="semantic-content");a.pasteFilter=k.get(h);l(a);c(a);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js")); +if(CKEDITOR.env.gecko){var t=["image/png","image/jpeg","image/gif"],r;a.on("paste",function(c){var e=c.data,f=e.dataTransfer;if(!e.dataValue&&"paste"==e.method&&d(f)&&(f=f.getFile(0),-1!=CKEDITOR.tools.indexOf(t,f.type))){var h=new FileReader;h.addEventListener("load",function(){c.data.dataValue='\x3cimg src\x3d"'+h.result+'" /\x3e';a.fire("paste",c.data)},!1);h.addEventListener("abort",function(){a.fire("paste",c.data)},!1);h.addEventListener("error",function(){a.fire("paste",c.data)},!1);h.readAsDataURL(f); +r=e.dataTransfer.id;c.stop()}},null,null,1)}a.on("paste",function(c){c.data.dataTransfer||(c.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!c.data.dataValue){var d=c.data.dataTransfer,e=d.getData("text/html");if(e)c.data.dataValue=e,c.data.type="html";else if(e=d.getData("text/plain"))c.data.dataValue=a.editable().transformPlainTextToHtml(e),c.data.type="text"}},null,null,1);a.on("paste",function(a){var b=a.data.dataValue,c=CKEDITOR.dtd.$block;-1 <\/span>/gi, +" "),"html"!=a.data.type&&(b=b.replace(/]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;")})),-1/,"")),b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(b.match(/^<[^<]+cke_(editable|contents)/i)){var d,e,f=new CKEDITOR.dom.element("div");for(f.setHtml(b);1==f.getChildCount()&& +(d=f.getFirst())&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasClass("cke_editable")||d.hasClass("cke_contents"));)f=e=d;e&&(b=e.getHtml().replace(/
$/i,""))}CKEDITOR.env.ie?b=b.replace(/^ (?: |\r\n)?<(\w+)/g,function(b,d){return d.toLowerCase()in c?(a.data.preSniffing="html","\x3c"+d):b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)>


<\/div>$/,function(b,d){return d in c?(a.data.endsWithEOL=1,"\x3c/"+d+"\x3e"):b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)
$/,"$1"));a.data.dataValue=b},null, +null,3);a.on("paste",function(c){c=c.data;var d=a._.nextPasteType||c.type,f=c.dataValue,h,l=a.config.clipboard_defaultContentType||"html",n=c.dataTransfer.getTransferType(a)==CKEDITOR.DATA_TRANSFER_EXTERNAL,v=!0===a.config.forcePasteAsPlainText;h="html"==d||"html"==c.preSniffing?"html":g(f);delete a._.nextPasteType;"htmlifiedtext"==h&&(f=e(a.config,f));if("text"==d&&"html"==h)f=m(a,f,k.get("plain-text"));else if(n&&a.pasteFilter&&!c.dontFilter||v)f=m(a,f,a.pasteFilter);c.startsWithEOL&&(f='\x3cbr data-cke-eol\x3d"1"\x3e'+ +f);c.endsWithEOL&&(f+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==d&&(d="html"==h||"html"==l?"html":"text");c.type=d;c.dataValue=f;delete c.preSniffing;delete c.startsWithEOL;delete c.endsWithEOL},null,null,6);a.on("paste",function(c){c=c.data;c.dataValue&&(a.insertHtml(c.dataValue,c.type,c.range),setTimeout(function(){a.fire("afterPaste")},0))},null,null,1E3);a.on("pasteDialog",function(c){setTimeout(function(){a.openDialog("paste",c.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||9CKEDITOR.env.version||c.isInline()?c:a.document},fixSplitNodesAfterDrop:function(a,c,d,e){function f(a,b,d){var e=a;e.type==CKEDITOR.NODE_TEXT&&(e=a.getParent());if(e.equals(b)&& +d!=b.getChildCount())return a=c.startContainer.getChild(c.startOffset-1),b=c.startContainer.getChild(c.startOffset),a&&a.type==CKEDITOR.NODE_TEXT&&b&&b.type==CKEDITOR.NODE_TEXT&&(d=a.getLength(),a.setText(a.getText()+b.getText()),b.remove(),c.setStart(a,d),c.collapse(!0)),!0}var h=c.startContainer;"number"==typeof e&&"number"==typeof d&&h.type==CKEDITOR.NODE_ELEMENT&&(f(a.startContainer,h,d)||f(a.endContainer,h,e))},isDropRangeAffectedByDragRange:function(a,c){var d=c.startContainer,e=c.endOffset; +return a.endContainer.equals(d)&&a.endOffset<=e||a.startContainer.getParent().equals(d)&&a.startContainer.getIndex()CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(b,c,f.dragStartContainerChildCount,f.dragEndContainerChildCount);(g=this.isDropRangeAffectedByDragRange(b, +c))||(k=b.createBookmark(!1));f=c.clone().createBookmark(!1);g&&(k=b.createBookmark(!1));b=k.startNode;c=k.endNode;g=f.startNode;c&&b.getPosition(g)&CKEDITOR.POSITION_PRECEDING&&c.getPosition(g)&CKEDITOR.POSITION_FOLLOWING&&g.insertBefore(b);b=e.createRange();b.moveToBookmark(k);h.extractHtmlFromRange(b,1);c=e.createRange();f.startNode.getCommonAncestor(h)||(f=e.getSelection().createBookmarks()[0]);c.moveToBookmark(f);a(e,{dataTransfer:d,method:"drop",range:c},1);e.fire("unlockSnapshot")},getRangeAtDropPosition:function(a, +c){var d=a.data.$,e=d.clientX,f=d.clientY,h=c.getSelection(!0).getRanges()[0],k=c.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint&&c.document.$.caretRangeFromPoint(e,f))d=c.document.$.caretRangeFromPoint(e,f),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&&8l&&!g;l++){if(!g)try{d.moveToPoint(e,f-l),g=!0}catch(m){}if(!g)try{d.moveToPoint(e,f+l),g=!0}catch(B){}}if(g){var w="cke-temp-"+(new Date).getTime();d.pasteHTML('\x3cspan id\x3d"'+w+'"\x3e​\x3c/span\x3e');var v=c.document.getById(w);k.moveToPosition(v,CKEDITOR.POSITION_BEFORE_START);v.remove()}else{var D=c.document.$.elementFromPoint(e,f),C=new CKEDITOR.dom.element(D),A;if(C.equals(c.editable())|| +"html"==C.getName())return h&&h.startContainer&&!h.startContainer.equals(c.editable())?h:null;A=C.getClientRect();e/i,bodyRegExp:/([\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());c&&(this.sourceEditor=c,this.setData("text/html",c.getSelectedHtml(1)),"Text"==d||this.getData("text/plain")||this.setData("text/plain",c.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,c){a=this._.normalizeType(a);var d="text/html"==a&&c?this._.nativeHtmlCache:this._.data[a];if(void 0===d||null===d||""===d){if(this._.fallbackDataTransfer.isRequired())d=this._.fallbackDataTransfer.getData(a,c);else try{d=this.$.getData(a)||""}catch(e){d=""}"text/html"!=a||c||(d=this._stripHtml(d))}"Text"==a&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==d.substring(0,7)&&(d="");if("string"===typeof d)var f=d.indexOf("\x3c/html\x3e"),d=-1!==f?d.substring(0,f+7):d;return d}, +setData:function(a,c){a=this._.normalizeType(a);"text/html"==a?(this._.data[a]=this._stripHtml(c),this._.nativeHtmlCache=c):this._.data[a]=c;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==a||"Text"==a)if("Text"==d&&"Text"==a&&(this.id=c),this._.fallbackDataTransfer.isRequired())this._.fallbackDataTransfer.setData(a,c);else try{this.$.setData(a,c)}catch(e){}},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(b){b=c._.normalizeType(b);var d=c.getData(b);"text/html"==b&&(c._.nativeHtmlCache=c.getData(b,!0),d=c._stripHtml(d));d&&(c._.data[b]=d)}if(this.$){var c=this,d,e;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;de?v+e:c.width>e?v-a.left:v-a.right+c.width):ke?v-e:c.width>e?v-a.right+c.width:v-a.left);e=a.top;c.height- -a.topf?y-f:c.height>f?y-a.bottom+c.height:y-a.top);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&((c=a=n.$.offsetParent&&new CKEDITOR.dom.element(n.$.offsetParent))&&"html"==c.getName()&&(c=c.getDocument().getBody()),c&&"rtl"==c.getComputedStyle("direction")&&(v=CKEDITOR.env.ie8Compat?v-2*n.getDocument().getDocumentElement().$.scrollLeft:v-(a.$.scrollWidth-a.$.clientWidth)));var a=n.getFirst(),l;(l=a.getCustomData("activePanel"))&&l.onHide&&l.onHide.call(this,1);a.setCustomData("activePanel",this); -n.setStyles({top:y+"px",left:v+"px"});n.setOpacity(1);h&&h()},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(): +g=CKEDITOR.addTemplate("panel-frame-inner",'\x3c!DOCTYPE html\x3e\x3chtml class\x3d"cke_panel_container {env}" dir\x3d"{dir}" lang\x3d"{langCode}"\x3e\x3chead\x3e{css}\x3c/head\x3e\x3cbody class\x3d"cke_{dir}" style\x3d"margin:0;padding:0" onload\x3d"{onload}"\x3e\x3c/body\x3e\x3c/html\x3e');CKEDITOR.ui.panel.prototype={render:function(e,f){var m={editorId:e.id,id:this.id,langCode:e.langCode,dir:e.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":e.config.baseFloatZIndex+1}; +this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),c=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&c.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});c=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this));a.write(g.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+ +c+");"},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(c)}else a= +this.document.getById(this.id);this._.holder=a}return a};if(this.isFramed){var k=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";m.frame=l.output({id:this.id+"_frame",src:k})}k=a.output(m);f&&f.push(k);return k},addBlock:function(a,f){f=this._.blocks[a]=f instanceof CKEDITOR.ui.panel.block?f:new CKEDITOR.ui.panel.block(this.getHolderElement(),f); +this._.currentBlock||this.showBlock(a);return f},getBlock:function(a){return this._.blocks[a]},showBlock:function(a){a=this._.blocks[a];var f=this._.currentBlock,g=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");f&&f.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",g);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a, +f){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));f&&CKEDITOR.tools.extend(this,f);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(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 f=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"none"==a.getStyle("display")},g=this._.getItems(),k,h,c=g.count()-1;0<=c;c--)if(k=g.getItem(c),k.getAscendant(f)||(h=k,this._.focusIndex=c),"true"==k.getAttribute("aria-selected")){h=k;this._.focusIndex=c;break}h&&(a&&a(),CKEDITOR.env.webkit&&h.getDocument().getWindow().focus(),h.focus(),this.onMark&&this.onMark(h))},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,f){var g=this.keys[a];switch(g){case "next":for(var k=this._.focusIndex,g=this._.getItems(),h;h=g.getItem(++k);)if(h.getAttribute("_cke_focus")&&h.$.offsetWidth){this._.focusIndex=k;h.focus(!0);break}return h||f?!1:(this._.focusIndex=-1,this.onKeyDown(a,1));case "prev":k=this._.focusIndex;for(g=this._.getItems();0e?p+e:b.width>e?p-a.left:p-a.right+b.width):ke?p-e:b.width>e?p-a.right+b.width:p-a.left);e=a.top;b.height- +a.topf?y-f:b.height>f?y-a.bottom+b.height:y-a.top);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&((b=a=n.$.offsetParent&&new CKEDITOR.dom.element(n.$.offsetParent))&&"html"==b.getName()&&(b=b.getDocument().getBody()),b&&"rtl"==b.getComputedStyle("direction")&&(p=CKEDITOR.env.ie8Compat?p-2*n.getDocument().getDocumentElement().$.scrollLeft:p-(a.$.scrollWidth-a.$.clientWidth)));var a=n.getFirst(),l;(l=a.getCustomData("activePanel"))&&l.onHide&&l.onHide.call(this,1);a.setCustomData("activePanel",this); +n.setStyles({top:y+"px",left:p+"px"});n.setOpacity(1);h&&h()},this);c.isLoaded?a():c.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 a=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,a))},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive();a&&!a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a= this._.iframe.getFrameDocument().getActive();a&&a.is("a")&&(this._.lastFocused=a)},hide:function(a){if(this.visible&&(!this.onHide||!0!==this.onHide.call(this))){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(a=a&&this._.returnFocus)CKEDITOR.env.webkit&&a.type&&a.getWindow().$.focus(),a.focus();delete this._.lastFocused;this._.showBlockParams= -null;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var f=this._.panel;void 0!==a&&(f.allowBlur=a);return f.allowBlur},showAsChild:function(a,f,e,l,k,h){if(this._.activeChild!=a||a._.panel._.offsetParentId!=e.getId())this.hideChild(),a.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=a,this._.focused=!1,a.showBlock(f,e,l,k,h),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+= -""},100)},hideChild:function(a){var f=this._.activeChild;f&&(delete f.onHide,delete this._.activeChild,f.hide(),a&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),f;for(f in l){var e=l[f];a?e.destroy():e.element.hide()}a&&(l={})})})();CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(a){function l(b){var d=b.name,f=b.type,l=b.title,t=b.order,r=b.commandName;b=b.contentTransformations||{};var v=new CKEDITOR.style(k["colorButton_"+ -f+"Style"]),y=CKEDITOR.tools.getNextId()+"_colorBox",x={type:f},z=new CKEDITOR.style(k["colorButton_"+f+"Style"],{color:"inherit"}),A;a.addCommand(r,{contextSensitive:!0,exec:function(a,b){if(!a.readOnly){var c=b.newStyle;a.removeStyle(z);a.focus();c&&a.applyStyle(c);a.fire("saveSnapshot")}},refresh:function(a,b){z.checkApplicable(b,a,a.activeFilter)?z.checkActive(b,a)?this.setState(CKEDITOR.TRISTATE_ON):this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}});a.ui.add(d, -CKEDITOR.UI_PANELBUTTON,{label:l,title:l,command:r,editorFocus:0,toolbar:"colors,"+t,allowedContent:v,requiredContent:v,contentTransformations:b,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":h.panelTitle}},select:function(a){var b=k.colorButton_colors.split(",");a=CKEDITOR.tools.array.find(b,a);a=m(a);e(A,a);A._.markFirstDisplayed()},onBlock:function(b,c){A=c;c.autoSize=!0;c.element.addClass("cke_colorblock");c.element.setHtml(g({type:f,colorBoxId:y,colorData:x, -commandName:r}));c.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var d=c.keys,e="rtl"==a.lang.dir;d[e?37:39]="next";d[40]="next";d[9]="next";d[e?39:37]="prev";d[38]="prev";d[CKEDITOR.SHIFT+9]="prev";d[32]="click"},onOpen:function(){var b=a.getSelection(),c=b&&b.getStartElement(),d=a.elementPath(c);if(!d)return null;c=d.block||d.blockLimit||a.document.getBody();do d=c&&c.getComputedStyle("back"==f?"background-color":"color")||"transparent";while("back"== -f&&"transparent"==d&&c&&(c=c.getParent()));d&&"transparent"!=d||(d="#ffffff");!1!==k.colorButton_enableAutomatic&&this._.panel._.iframe.getFrameDocument().getById(y).setStyle("background-color",d);if(c=b&&b.getRanges()[0]){for(var b=new CKEDITOR.dom.walker(c),h=c.collapsed?c.startContainer:b.next(),c="";h;){h.type!==CKEDITOR.NODE_ELEMENT&&(h=h.getParent());h=m(h.getComputedStyle("back"==f?"background-color":"color"));c=c||h;if(c!==h){c="";break}h=b.next()}"transparent"==c&&(c="");"fore"==f&&(x.automaticTextColor= -"#"+m(d));x.selectionColor=c?"#"+c:"";e(A,c)}return d}})}function g(b){function d(b){b=b&&new CKEDITOR.style(A,{color:b});a.execCommand(m,{newStyle:b})}var e=b.type,g=b.colorBoxId,l=b.colorData,m=b.commandName;b=[];var v=k.colorButton_colors.split(","),y=k.colorButton_colorsPerRow||6,x=a.plugins.colordialog&&!1!==k.colorButton_enableMore,z=v.length+(x?2:1),A=a.config["colorButton_"+e+"Style"];A.childRule="back"==e?function(a){return f(a)}:function(a){return!(a.is("a")||a.getElementsByTag("a").count())|| -f(a)};var w=CKEDITOR.tools.addFunction(function(b){a.focus();a.fire("saveSnapshot");"?"==b?a.getColorFromDialog(function(a){a&&d(a)},null,l):d(b&&"#"+b)});!1!==k.colorButton_enableAutomatic&&b.push('\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',h.auto,'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(',w,",null,'",e,"');return false;\" href\x3d\"javascript:void('",h.auto,'\')" role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"', -z,'"\x3e\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"'+y+'" align\x3d"center"\x3e\x3cspan class\x3d"cke_colorbox" id\x3d"',g,'"\x3e\x3c/span\x3e',h.auto,"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/a\x3e");b.push('\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e');for(g=0;g <\/span>/g,""),a.replace(/<.*?>/g,"")):a.getText()}function d(a,c){var k=a,g=/\s/g,l="p br ol ul li td th div caption body".split(" "),m=!1,u=!1,n,p;do{for(n=e(k,c);!n&&k.getParent();){k=k.getParent();if(-1!==f(l,k.getName())){u=m=!0;break}n=e(k,c)}if(n&&n.getName&&-1!==f(l,n.getName())){m=!0;break}k=n}while(k&&k.getStyle&&("none"==k.getStyle("display")||!k.getText()));for(k||(k=a);k.type!== -CKEDITOR.NODE_TEXT;)k=!m||c||u?k.getChild(0):k.getChild(k.getChildCount()-1);for(l=b(k);null!=(u=g.exec(l))&&(p=u.index,c););if("number"!==typeof p&&!m)return d(k,c);if(m)c?p=0:(g=/([\.\b]*$)/,p=(u=g.exec(l))?u.index:l.length);else if(c&&(p+=1,p>l.length))return d(k);return{node:k,offset:p}}var c=/\b\w+\b/ig,g,l,m,t,r;m=t=r=a.startContainer;for(g=b(m);null!=(l=c.exec(g));)if(l.index+l[0].length>=a.startOffset)return a=l.index,c=l.index+l[0].length,0===l.index&&(l=d(m,!0),t=l.node,a=l.offset),c>=g.length&& -(g=d(m),r=g.node,c=g.offset),{startNode:t,startOffset:a,endNode:r,endOffset:c};return null},_filterStyles:function(a){var e=CKEDITOR.tools.isEmpty,b=[],d,c;for(c=0;c <\/span>/g,""),a.replace(/<.*?>/g,"")):a.getText()}function d(a,b){var k=a,g=/\s/g,l="p br ol ul li td th div caption body".split(" "),m=!1,n=!1,q,C;do{for(q=f(k,b);!q&&k.getParent();){k=k.getParent();if(-1!==e(l,k.getName())){n=m=!0;break}q=f(k,b)}if(q&&q.getName&&-1!==e(l,q.getName())){m=!0;break}k=q}while(k&&k.getStyle&&("none"==k.getStyle("display")||!k.getText()));for(k||(k=a);k.type!== +CKEDITOR.NODE_TEXT;)k=!m||b||n?k.getChild(0):k.getChild(k.getChildCount()-1);for(l=c(k);null!=(n=g.exec(l))&&(C=n.index,b););if("number"!==typeof C&&!m)return d(k,b);if(m)b?C=0:(g=/([\.\b]*$)/,C=(n=g.exec(l))?n.index:l.length);else if(b&&(C+=1,C>l.length))return d(k);return{node:k,offset:C}}var b=/\b\w+\b/ig,g,l,m,t,r;m=t=r=a.startContainer;for(g=c(m);null!=(l=b.exec(g));)if(l.index+l[0].length>=a.startOffset)return a=l.index,b=l.index+l[0].length,0===l.index&&(l=d(m,!0),t=l.node,a=l.offset),b>=g.length&& +(g=d(m),r=g.node,b=g.offset),{startNode:t,startOffset:a,endNode:r,endOffset:b};return null},_filterStyles:function(a){var e=CKEDITOR.tools.isEmpty,c=[],d,b;for(b=0;bb.group?1:a.order< -b.order?-1:a.order>b.order?1:0})}var l='\x3cspan class\x3d"cke_menuitem"\x3e\x3ca id\x3d"{id}" class\x3d"cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href\x3d"{href}" title\x3d"{title}" tabindex\x3d"-1" _cke_focus\x3d1 hidefocus\x3d"true" role\x3d"{role}" aria-label\x3d"{attrLabel}" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasPopup}" aria-disabled\x3d"{disabled}" {ariaChecked} draggable\x3d"false"',g="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(l+=' onkeypress\x3d"return false;"'); +beforeInit:function(a){for(var l=a.config.menu_groups.split(","),g=a._.menuGroups={},e=a._.menuItems={},f=0;fc.group?1:a.order< +c.order?-1:a.order>c.order?1:0})}var l='\x3cspan class\x3d"cke_menuitem"\x3e\x3ca id\x3d"{id}" class\x3d"cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href\x3d"{href}" title\x3d"{title}" tabindex\x3d"-1" _cke_focus\x3d1 hidefocus\x3d"true" role\x3d"{role}" aria-label\x3d"{attrLabel}" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasPopup}" aria-disabled\x3d"{disabled}" {ariaChecked} draggable\x3d"false"',g="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(l+=' onkeypress\x3d"return false;"'); CKEDITOR.env.gecko&&(l+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;" ondragstart\x3d"return false;"');CKEDITOR.env.ie&&(g='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var l=l+(' onmouseover\x3d"CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout\x3d"CKEDITOR.tools.callFunction({moveOutFn},{index});" onclick\x3d"'+g+'CKEDITOR.tools.callFunction({clickFn},{index}); return false;"\x3e')+'\x3cspan class\x3d"cke_menubutton_inner"\x3e\x3cspan class\x3d"cke_menubutton_icon"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{iconStyle}"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"cke_menubutton_label"\x3e{label}\x3c/span\x3e{shortcutHtml}{arrowHtml}\x3c/span\x3e\x3c/a\x3e\x3cspan id\x3d"{id}_description" class\x3d"cke_voice_label" aria-hidden\x3d"false"\x3e{ariaShortcut}\x3c/span\x3e\x3c/span\x3e', -f=CKEDITOR.addTemplate("menuItem",l),e=CKEDITOR.addTemplate("menuArrow",'\x3cspan class\x3d"cke_menuarrow"\x3e\x3cspan\x3e{label}\x3c/span\x3e\x3c/span\x3e'),m=CKEDITOR.addTemplate("menuShortcut",'\x3cspan class\x3d"cke_menubutton_label cke_menubutton_shortcut"\x3e{shortcut}\x3c/span\x3e');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,e){e=this._.definition=e||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=e.level||1;var b=CKEDITOR.tools.extend({}, -e.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),d=b.block.attributes=b.attributes||{};!d.role&&(d.role="menu");this._.panelDefinition=b},_:{onShow:function(){var a=this.editor.getSelection(),e=a&&a.getStartElement(),b=this.editor.elementPath(),d=this._.listeners;this.removeAll();for(var c=0;cCKEDITOR.env.version?h.$.styleSheet.cssText="textarea.placeholder { color: #999; font-style: italic; }":h.$.innerHTML="textarea.placeholder { color: #999; font-style: italic; }";m.on("getData",function(a){var b= -m.editable?m.editable():"wysiwyg"==m.mode?m.document&&m.document.getBody():m.textarea;b&&b.hasClass("placeholder")&&(a.data.dataValue="")});m.on("setData",function(b){if(!(CKEDITOR.dialog._.currentTop||"source"==m.mode&&e)){var c=m.editable?m.editable():"wysiwyg"==m.mode?m.document&&m.document.getBody():m.textarea;c&&(a(b.data.dataValue)?l(b):c.hasClass("placeholder")&&c.removeClass("placeholder"))}});m.on("blur",l,null,k);m.on("mode",l,null,k);m.on("focus",g);m.on("beforeModeUnload",g)}(k=m.config.contentsLanguage|| -f(m.element))&&!m.config.scayt_sLang&&(m.config.scayt_sLang={en:"en_US","en-us":"en_US","en-gb":"en_GB","pt-br":"pt_BR",da:"da_DK","da-dk":"da_DK","nl-nl":"nl_NL","en-ca":"en_CA","fi-fi":"fi_FI",fr:"fr_FR","fr-fr":"fr_FR","fr-ca":"fr_CA",de:"de_DE","de-de":"de_DE","el-gr":"el_GR",it:"it_IT","it-it":"it_IT","nb-no":"nb_NO",pt:"pt_PT","pt-pt":"pt_PT",es:"es_ES","es-es":"es_ES","sv-se":"sv_SE"}[k.toLowerCase()]);var b=function(a){if("object"==typeof a)return a;a=a.split(";");var b={},e;for(e=0;ey.height-v.bottom?d("pin"):d("bottom"),c=y.width/2,c=e.floatSpacePreferRight?"right":0r.width? -"rtl"==e.contentsLangDirection?"right":"left":c-v.left>v.right-c?"left":"right",r.width>y.width?(c="left",n=0):(n="left"==c?0y.width&&(c="left"==c?"right":"left",n=0)),b.setStyle(c,g(("pin"==h?u:A)+n+("pin"==h?0:"left"==c?z:-z)))):(h="pin",d("pin"),k(c))}}}();if(m){var h=new CKEDITOR.template('\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+ -(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"application" style\x3d"{style}"'+(a.title?' aria-labelledby\x3d"cke_{name}_arialbl"':" ")+"\x3e"+(a.title?'\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e':" ")+'\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{topId}" class\x3d"cke_top" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),b=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(h.output({content:m, -id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(e.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),d=CKEDITOR.tools.eventsBuffer(500,k),c=CKEDITOR.tools.eventsBuffer(100,k);b.unselectable();b.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){k(b);a.on("change",d.input);l.on("scroll",c.input);l.on("resize",c.input)});a.on("blur",function(){b.hide();a.removeListener("change", -d.input);l.removeListener("scroll",c.input);l.removeListener("resize",c.input)});a.on("destroy",function(){l.removeListener("scroll",c.input);l.removeListener("resize",c.input);b.clearCustomData();b.remove()});a.focusManager.hasFocus&&b.show();a.focusManager.add(b,1)}}var l=CKEDITOR.document.getWindow(),g=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(f){f.on("loaded",function(){a(this)},null,null,20)}})})();CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var a= +m.editable?m.editable():"wysiwyg"==m.mode?m.document&&m.document.getBody():m.textarea;b&&b.hasClass("placeholder")&&(a.data.dataValue="")});m.on("setData",function(c){if(!(CKEDITOR.dialog._.currentTop||"source"==m.mode&&f)){var b=m.editable?m.editable():"wysiwyg"==m.mode?m.document&&m.document.getBody():m.textarea;b&&(a(c.data.dataValue)?l(c):b.hasClass("placeholder")&&b.removeClass("placeholder"))}});m.on("blur",l,null,k);m.on("mode",l,null,k);m.on("focus",g);m.on("beforeModeUnload",g)}(k=m.config.contentsLanguage|| +e(m.element))&&!m.config.scayt_sLang&&(m.config.scayt_sLang={en:"en_US","en-us":"en_US","en-gb":"en_GB","pt-br":"pt_BR",da:"da_DK","da-dk":"da_DK","nl-nl":"nl_NL","en-ca":"en_CA","fi-fi":"fi_FI",fr:"fr_FR","fr-fr":"fr_FR","fr-ca":"fr_CA",de:"de_DE","de-de":"de_DE","el-gr":"el_GR",it:"it_IT","it-it":"it_IT","nb-no":"nb_NO",pt:"pt_PT","pt-pt":"pt_PT",es:"es_ES","es-es":"es_ES","sv-se":"sv_SE"}[k.toLowerCase()]);var c=function(a){if("object"==typeof a)return a;a=a.split(";");var b={},c;for(c=0;cy.height-p.bottom?d("pin"):d("bottom"),b=y.width/2,b=f.floatSpacePreferRight?"right":0r.width? +"rtl"==f.contentsLangDirection?"right":"left":b-p.left>p.right-b?"left":"right",r.width>y.width?(b="left",n=0):(n="left"==b?0y.width&&(b="left"==b?"right":"left",n=0)),c.setStyle(b,g(("pin"==h?v:B)+n+("pin"==h?0:"left"==b?z:-z)))):(h="pin",d("pin"),k(b))}}}();if(m){var h=new CKEDITOR.template('\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+ +(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"application" style\x3d"{style}"'+(a.title?' aria-labelledby\x3d"cke_{name}_arialbl"':" ")+"\x3e"+(a.title?'\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e':" ")+'\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{topId}" class\x3d"cke_top" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),c=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(h.output({content:m, +id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(f.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),d=CKEDITOR.tools.eventsBuffer(500,k),b=CKEDITOR.tools.eventsBuffer(100,k);c.unselectable();c.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(c){k(c);a.on("change",d.input);l.on("scroll",b.input);l.on("resize",b.input)});a.on("blur",function(){c.hide();a.removeListener("change", +d.input);l.removeListener("scroll",b.input);l.removeListener("resize",b.input)});a.on("destroy",function(){l.removeListener("scroll",b.input);l.removeListener("resize",b.input);c.clearCustomData();c.remove()});a.focusManager.hasFocus&&c.show();a.focusManager.add(c,1)}}var l=CKEDITOR.document.getWindow(),g=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(e){e.on("loaded",function(){a(this)},null,null,20)}})})();CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var a= CKEDITOR.addTemplate("panel-list",'\x3cul role\x3d"presentation" class\x3d"cke_panel_list"\x3e{items}\x3c/ul\x3e'),l=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'), -g=CKEDITOR.addTemplate("panel-list-group",'\x3ch1 id\x3d"{id}" draggable\x3d"false" ondragstart\x3d"return false;" class\x3d"cke_panel_grouptitle" role\x3d"presentation" \x3e{label}\x3c/h1\x3e'),f=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,f){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),f))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,f){f=f||{};var g=f.attributes||(f.attributes={});(this.multiSelect=!!f.multiSelect)&& +g=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'),e=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,e){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),e))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,e){e=e||{};var g=e.attributes||(e.attributes={});(this.multiSelect=!!e.multiSelect)&& (g["aria-multiselectable"]=!0);!g.role&&(g.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",g.role);g=this.keys;g[40]="next";g[9]="next";g[38]="prev";g[CKEDITOR.SHIFT+9]="prev";g[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(g[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var e=a.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(e); -delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(a){var f=this.toggle(a);if(this.onClick)this.onClick(a,f)},this));return this._.click}},proto:{add:function(a,g,k){var h=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[a]=h;var b;b=CKEDITOR.tools.htmlEncodeAttr(a).replace(f,"\\'");a={id:h,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(k||a),text:g||a};this._.pendingList.push(l.output(a))},startGroup:function(a){this._.close();var f=CKEDITOR.tools.getNextId();this._.groups[a]=f;this._.pendingHtml.push(g.output({id:f,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var f=this.isMarked(a);f?this.unmark(a):this.mark(a);return!f},hideGroup:function(a){var f=(a= -this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),f&&"ul"==f.getName()&&f.setStyle("display","none"))},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},showAll:function(){var a=this._.items,f=this._.groups,g=this.element.getDocument(),h;for(h in a)g.getById(a[h]).setStyle("display","");for(var b in f)a=g.getById(f[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 f=this.element.getDocument().getById(a);f.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(f)},markFirstDisplayed:function(){var a=this;this._.markFirstDisplayed(function(){a.multiSelect||a.unmarkAll()})},unmark:function(a){var f=this.element.getDocument();a=this._.items[a];var g=f.getById(a);g.removeClass("cke_selected");f.getById(a+"_option").removeAttribute("aria-selected"); -this.onUnmark&&this.onUnmark(g)},unmarkAll:function(){var a=this._.items,f=this.element.getDocument(),g;for(g in a){var h=a[g];f.getById(h).removeClass("cke_selected");f.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 f=this.element.getElementsByTag("a"),g,h=-1;if(a)for(g=this.element.getDocument().getById(this._.items[a]).getFirst();a= -f.getItem(++h);){if(a.equals(g)){this._.focusIndex=h;break}}else this.element.focus();g&&setTimeout(function(){g.focus()},0)}}})}});CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}});(function(){var a='\x3cspan id\x3d"{id}" class\x3d"cke_combo cke_combo__{name} {cls}" role\x3d"presentation"\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_combo_label"\x3e{label}\x3c/span\x3e\x3ca class\x3d"cke_combo_button" title\x3d"{title}" tabindex\x3d"-1"'+ +delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(a){var e=this.toggle(a);if(this.onClick)this.onClick(a,e)},this));return this._.click}},proto:{add:function(a,g,k){var h=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[a]=h;var c;c=CKEDITOR.tools.htmlEncodeAttr(a).replace(e,"\\'");a={id:h,val:c,onclick:CKEDITOR.env.ie?'return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26': +"",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(k||a),text:g||a};this._.pendingList.push(l.output(a))},startGroup:function(a){this._.close();var e=CKEDITOR.tools.getNextId();this._.groups[a]=e;this._.pendingHtml.push(g.output({id:e,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var e=this.isMarked(a);e?this.unmark(a):this.mark(a);return!e},hideGroup:function(a){var e=(a= +this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),e&&"ul"==e.getName()&&e.setStyle("display","none"))},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},showAll:function(){var a=this._.items,e=this._.groups,g=this.element.getDocument(),h;for(h in a)g.getById(a[h]).setStyle("display","");for(var c in e)a=g.getById(e[c]),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 e=this.element.getDocument().getById(a);e.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(e)},markFirstDisplayed:function(){var a=this;this._.markFirstDisplayed(function(){a.multiSelect||a.unmarkAll()})},unmark:function(a){var e=this.element.getDocument();a=this._.items[a];var g=e.getById(a);g.removeClass("cke_selected");e.getById(a+"_option").removeAttribute("aria-selected"); +this.onUnmark&&this.onUnmark(g)},unmarkAll:function(){var a=this._.items,e=this.element.getDocument(),g;for(g in a){var h=a[g];e.getById(h).removeClass("cke_selected");e.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 e=this.element.getElementsByTag("a"),g,h=-1;if(a)for(g=this.element.getDocument().getById(this._.items[a]).getFirst();a= +e.getItem(++h);){if(a.equals(g)){this._.focusIndex=h;break}}else this.element.focus();g&&setTimeout(function(){g.focus()},0)}}})}});CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}});(function(){var a='\x3cspan id\x3d"{id}" class\x3d"cke_combo cke_combo__{name} {cls}" role\x3d"presentation"\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_combo_label"\x3e{label}\x3c/span\x3e\x3ca class\x3d"cke_combo_button" title\x3d"{title}" tabindex\x3d"-1"'+ (CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+' hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-haspopup\x3d"listbox"',l="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(a+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(a+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');CKEDITOR.env.ie&&(l='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var a=a+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+ l+'CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan id\x3d"{id}_text" class\x3d"cke_combo_text cke_combo_inlinelabel"\x3e{label}\x3c/span\x3e\x3cspan class\x3d"cke_combo_open"\x3e\x3cspan class\x3d"cke_combo_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":CKEDITOR.env.air?"\x26nbsp;":"")+"\x3c/span\x3e\x3c/span\x3e\x3c/a\x3e\x3c/span\x3e"),g=CKEDITOR.addTemplate("combo",a);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this, -a,{canGroup:!1,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};a.toolbarRelated=!0;this._={panelDefinition:a,items:{},listeners:[]}},proto:{renderHtml:function(a){var e=[];this.render(a,e);return e.join("")},render:function(a,e){function l(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var b= -this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a.readOnly&&!this.readOnly&&(b=CKEDITOR.TRISTATE_DISABLED);this.setState(b);this.setValue("");b!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var k=CKEDITOR.env,h,b,d="cke_"+this.id,c=CKEDITOR.tools.addFunction(function(c){b&&(a.unlockSelection(1),b=0);h.execute(c)},this),n=this;h={id:d,combo:this,focus:function(){CKEDITOR.document.getById(d).getChild(1).focus()},execute:function(b){var c=n._;if(c.state!=CKEDITOR.TRISTATE_DISABLED)if(n.createPanel(a), -c.on)c.panel.hide();else{n.commit();var d=n.getValue();d?c.list.mark(d):c.list.unmarkAll();c.panel.showBlock(n.id,new CKEDITOR.dom.element(b),4)}},clickFn:c};this._.listeners.push(a.on("activeFilterChange",l,this));this._.listeners.push(a.on("mode",l,this));this._.listeners.push(a.on("selectionChange",l,this));!this.readOnly&&this._.listeners.push(a.on("readOnly",l,this));var p=CKEDITOR.tools.addFunction(function(a,b){a=new CKEDITOR.dom.event(a);var d=a.getKeystroke();switch(d){case 13:case 32:case 40:CKEDITOR.tools.callFunction(c, -b);break;default:h.onkey(h,d)}a.preventDefault()}),q=CKEDITOR.tools.addFunction(function(){h.onfocus&&h.onfocus()});b=0;h.keyDownFn=p;k={id:d,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:k.gecko&&!k.hc?"":(this.title||"").replace("'",""),keydownFn:p,focusFn:q,clickFn:c};g.output(k,e);if(this.onRender)this.onRender();return h},createPanel:function(a){if(!this._.panel){var e=this._.panelDefinition,g=this._.panelDefinition.block,k=e.parent||CKEDITOR.document.getBody(), -h="cke_combopanel__"+this.name,b=new CKEDITOR.ui.floatPanel(a,k,e),e=b.addListBlock(this.id,g),d=this;b.onShow=function(){this.element.addClass(h);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(h);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)};e.onClick=function(a,e){d.onClick&& -d.onClick.call(d,a,e);b.hide()};this._.panel=b;this._.list=e;b.getBlock(this.id).onHide=function(){d._.on=0;d.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,e){this._.value=a;var g=this.document.getById("cke_"+this.id+"_text");g&&(a||e?g.removeClass("cke_combo_inlinelabel"):(e=this.label,g.addClass("cke_combo_inlinelabel")),g.setText("undefined"!=typeof e?e:a))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)}, -hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,e,g){this._.items[a]=g||a;this._.list.add(a,e,g)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));this._.committed=1},setState:function(a){if(this._.state!=a){var e=this.document.getById("cke_"+this.id);e.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED? -e.setAttribute("aria-disabled",!0):e.removeAttribute("aria-disabled");this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))},destroy:function(){CKEDITOR.tools.array.forEach(this._.listeners,function(a){a.removeListener()});this._.listeners=[]},select:function(a){if(!CKEDITOR.tools.isEmpty(this._.items))for(var e in this._.items)if(a({value:e, -text:this._.items[e]})){this.setValue(e);break}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,e){this.add(a,CKEDITOR.UI_RICHCOMBO,e)}})();(function(){function a(a,g){var k=a.config,h=g.lang,b=new CKEDITOR.style(g.styleDefinition),d=new f({entries:g.entries,styleVariable:g.styleVariable,styleDefinition:g.styleDefinition}),c;a.addCommand(g.commandName,{exec:function(a,b){var c=b.newStyle,d=b.oldStyle,e=a.getSelection().getRanges()[0], -f=void 0===c;if(d||c)if(d&&e.collapsed&&l({editor:a,range:e,style:d}),f)a.removeStyle(d);else{if(e=d)e=d instanceof CKEDITOR.style&&c instanceof CKEDITOR.style?CKEDITOR.style.getStyleText(d.getDefinition())===CKEDITOR.style.getStyleText(c.getDefinition()):!1,e=!e;e&&a.removeStyle(d);a.applyStyle(c)}},refresh:function(a,c){b.checkApplicable(c,a,a.activeFilter)||this.setState(CKEDITOR.TRISTATE_DISABLED)}});c=a.getCommand(g.commandName);a.ui.addRichCombo(g.comboName,{label:h.label,title:h.panelTitle, -command:g.commandName,toolbar:"styles,"+g.order,defaultValue:"cke-default",allowedContent:b,requiredContent:b,contentTransformations:"span"===g.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,{canGroup:!1,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};a.toolbarRelated=!0;this._={panelDefinition:a,items:{},listeners:[]}},proto:{renderHtml:function(a){var f=[];this.render(a,f);return f.join("")},render:function(a,f){function l(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var b= +this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a.readOnly&&!this.readOnly&&(b=CKEDITOR.TRISTATE_DISABLED);this.setState(b);this.setValue("");b!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var k=CKEDITOR.env,h,c,d="cke_"+this.id,b=CKEDITOR.tools.addFunction(function(b){c&&(a.unlockSelection(1),c=0);h.execute(b)},this),n=this;h={id:d,combo:this,focus:function(){CKEDITOR.document.getById(d).getChild(1).focus()},execute:function(b){var c=n._;if(c.state!=CKEDITOR.TRISTATE_DISABLED)if(n.createPanel(a), +c.on)c.panel.hide();else{n.commit();var d=n.getValue();d?c.list.mark(d):c.list.unmarkAll();c.panel.showBlock(n.id,new CKEDITOR.dom.element(b),4)}},clickFn:b};this._.listeners.push(a.on("activeFilterChange",l,this));this._.listeners.push(a.on("mode",l,this));this._.listeners.push(a.on("selectionChange",l,this));!this.readOnly&&this._.listeners.push(a.on("readOnly",l,this));var q=CKEDITOR.tools.addFunction(function(a,c){a=new CKEDITOR.dom.event(a);var d=a.getKeystroke();switch(d){case 13:case 32:case 40:CKEDITOR.tools.callFunction(b, +c);break;default:h.onkey(h,d)}a.preventDefault()}),u=CKEDITOR.tools.addFunction(function(){h.onfocus&&h.onfocus()});c=0;h.keyDownFn=q;k={id:d,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:k.gecko&&!k.hc?"":(this.title||"").replace("'",""),keydownFn:q,focusFn:u,clickFn:b};g.output(k,f);if(this.onRender)this.onRender();return h},createPanel:function(a){if(!this._.panel){var f=this._.panelDefinition,g=this._.panelDefinition.block,k=f.parent||CKEDITOR.document.getBody(), +h="cke_combopanel__"+this.name,c=new CKEDITOR.ui.floatPanel(a,k,f),f=c.addListBlock(this.id,g),d=this;c.onShow=function(){this.element.addClass(h);d.setState(CKEDITOR.TRISTATE_ON);d._.on=1;d.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(d.onOpen)d.onOpen()};c.onHide=function(b){this.element.removeClass(h);d.setState(d.modes&&d.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);d._.on=0;if(!b&&d.onClose)d.onClose()};c.onEscape=function(){c.hide(1)};f.onClick=function(a,e){d.onClick&& +d.onClick.call(d,a,e);c.hide()};this._.panel=c;this._.list=f;c.getBlock(this.id).onHide=function(){d._.on=0;d.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,f){this._.value=a;var g=this.document.getById("cke_"+this.id+"_text");g&&(a||f?g.removeClass("cke_combo_inlinelabel"):(f=this.label,g.addClass("cke_combo_inlinelabel")),g.setText("undefined"!=typeof f?f:a))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)}, +hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,f,g){this._.items[a]=g||a;this._.list.add(a,f,g)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));this._.committed=1},setState:function(a){if(this._.state!=a){var f=this.document.getById("cke_"+this.id);f.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED? +f.setAttribute("aria-disabled",!0):f.removeAttribute("aria-disabled");this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))},destroy:function(){CKEDITOR.tools.array.forEach(this._.listeners,function(a){a.removeListener()});this._.listeners=[]},select:function(a){if(!CKEDITOR.tools.isEmpty(this._.items))for(var f in this._.items)if(a({value:f, +text:this._.items[f]})){this.setValue(f);break}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,f){this.add(a,CKEDITOR.UI_RICHCOMBO,f)}})();(function(){function a(a,g){var k=a.config,h=g.lang,c=new CKEDITOR.style(g.styleDefinition),d=new e({entries:g.entries,styleVariable:g.styleVariable,styleDefinition:g.styleDefinition}),b;a.addCommand(g.commandName,{exec:function(a,b){var c=b.newStyle,d=b.oldStyle,e=a.getSelection().getRanges()[0], +f=void 0===c;if(d||c)if(d&&e.collapsed&&l({editor:a,range:e,style:d}),f)a.removeStyle(d);else{if(e=d)e=d instanceof CKEDITOR.style&&c instanceof CKEDITOR.style?CKEDITOR.style.getStyleText(d.getDefinition())===CKEDITOR.style.getStyleText(c.getDefinition()):!1,e=!e;e&&a.removeStyle(d);a.applyStyle(c)}},refresh:function(a,b){c.checkApplicable(b,a,a.activeFilter)||this.setState(CKEDITOR.TRISTATE_DISABLED)}});b=a.getCommand(g.commandName);a.ui.addRichCombo(g.comboName,{label:h.label,title:h.panelTitle, +command:g.commandName,toolbar:"styles,"+g.order,defaultValue:"cke-default",allowedContent:c,requiredContent:c,contentTransformations:"span"===g.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(k.contentsCss),multiSelect:!1,attributes:{"aria-label":h.panelTitle}},init:function(){var b="("+a.lang.common.optionDefault+")";this.startGroup(h.panelTitle);this.add(this.defaultValue,b,b);d.addToCombo(this)},onClick:function(b){var c=this.getValue();a.focus();a.fire("saveSnapshot");a.execCommand(g.commandName, -{newStyle:d.getStyle(b),oldStyle:d.getStyle(c)});a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(b){var c=this.getValue();(b=d.getMatchingValue(a,b.data.path))?b!=c&&this.setValue(b):this.setValue("",g.defaultLabel)},this);c.on("state",function(){this.setState(c.state)},this)},refresh:function(){this.setState(c.state)}})}function l(a){var f=a.editor,k=a.range,h=a.style,b,d,c;b=f.elementPath();if(a=b.contains(function(a){return h.checkElementRemovable(a)})){d=k.checkBoundaryOfElement(a, -CKEDITOR.START);c=k.checkBoundaryOfElement(a,CKEDITOR.END);if(d&&c){for(d=k.createBookmark();b=a.getFirst();)b.insertBefore(a);a.remove();k.moveToBookmark(d)}else d||c?k.moveToPosition(a,d?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(k.splitElement(a),k.moveToPosition(a,CKEDITOR.POSITION_AFTER_END)),g(k,b.elements.slice(),a);f.getSelection().selectRanges([k])}}function g(a,f,k){var h=f.pop();if(h){if(k)return g(a,f,h.equals(k)?null:k);k=h.clone();a.insertNode(k);a.moveToPosition(k, -CKEDITOR.POSITION_AFTER_START);g(a,f)}}var f=CKEDITOR.tools.createClass({$:function(a){var f=a.entries.split(";");this._.data={};this._.names=[];for(var g=0;gm.length)return!1;k=b.getParents(!0);for(l=0;lw;l++)A[l].indent+=k;k=CKEDITOR.plugins.list.arrayToList(A,c,null,a.config.enterMode,b.getDirection());if(!d.isIndent){var C;if((C=b.getParent())&&C.is("li"))for(var m=k.listNode.getChildren(), -B=[],r,l=m.count()-1;0<=l;l--)(r=m.getItem(l))&&r.is&&r.is("li")&&B.push(r)}k&&k.listNode.replace(b);if(B&&B.length)for(l=0;lm.length)return!1;k=c.getParents(!0);for(l=0;lw;l++)B[l].indent+=k;k=CKEDITOR.plugins.list.arrayToList(B,b,null,a.config.enterMode,c.getDirection());if(!d.isIndent){var C;if((C=c.getParent())&&C.is("li"))for(var m=k.listNode.getChildren(), +A=[],r,l=m.count()-1;0<=l;l--)(r=m.getItem(l))&&r.is&&r.is("li")&&A.push(r)}k&&k.listNode.replace(c);if(A&&A.length)for(l=0;l(b+=c?1:-1))return;b=Math.min(b,e.length);b=Math.max(b,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));0b)return;b=Math.max(b,0);b=Math.ceil(b/f)*f;a.setStyle(e,b?b+(d.config.indentUnit||"px"):"");""=== -a.getAttribute("style")&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function l(a,e){return"ltr"==(e||a.getComputedStyle("direction"))?"margin-left":"margin-right"}var g=CKEDITOR.dtd.$listItem,f=CKEDITOR.dtd.$list,e=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(k){function h(){b.specificDefinition.apply(this,arguments);this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0, +r.next());m&&f.endContainer.type==CKEDITOR.NODE_ELEMENT&&f.endContainer.getName()in e&&(r=new CKEDITOR.dom.walker(f),r.evaluator=l,f.endContainer=r.previous());if(m)return c(m)}return 0}function l(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function g(a){return e(a)&&f(a)}var e=CKEDITOR.dom.walker.whitespaces(!0),f=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,k=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(e){function c(b){d.specificDefinition.apply(this, +arguments);this.requiredContent=["ul","ol"];b.on("key",function(a){var c=b.elementPath();if("wysiwyg"==b.mode&&a.data.keyCode==this.indentKey&&c){var d=this.getContext(c);!d||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,c,d)||(b.execCommand(this.relatedGlobal),a.cancel())}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),d=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return c&&this.isIndent&&!d?k:m}:function(a, +b){return!this.getContext(b)||this.isIndent?m:k},exec:CKEDITOR.tools.bind(a,this)}}var d=CKEDITOR.plugins.indent;d.registerCommands(e,{indentlist:new c(e,"indentlist",!0),outdentlist:new c(e,"outdentlist")});CKEDITOR.tools.extend(c.prototype,d.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,c,d){var b=c.contains(l);d||(d=c.contains(a));return d&&b&&b.equals(d.getFirst(l))}})();(function(){function a(a,e,c){if(!a.getCustomData("indent_processed")){var d= +this.editor,b=this.isIndent;if(e){d=a.$.className.match(this.classNameRegex);c=0;d&&(d=d[1],c=CKEDITOR.tools.indexOf(e,d)+1);if(0>(c+=b?1:-1))return;c=Math.min(c,e.length);c=Math.max(c,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));0c)return;c=Math.max(c,0);c=Math.ceil(c/f)*f;a.setStyle(e,c?c+(d.config.indentUnit||"px"):"");""=== +a.getAttribute("style")&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function l(a,e){return"ltr"==(e||a.getComputedStyle("direction"))?"margin-left":"margin-right"}var g=CKEDITOR.dtd.$listItem,e=CKEDITOR.dtd.$list,f=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(k){function h(){c.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 f=b.block||b.blockLimit;if(!f.is(g))var h=f.getAscendant(g),f=h&&b.contains(h)||f;f.is(g)&&(f=f.getParent());if(this.enterBr||this.getContext(b)){if(d){var h=d,f=f.$.className.match(this.classNameRegex),k=this.isIndent,h=f?k?f[1]!=h.slice(-1):!0:k;return h?m:e}return this.isIndent?m:f?CKEDITOR[0>=(parseInt(f.getStyle(l(f)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:e}return e},exec:function(b){var e=b.getSelection(),e= -e&&e.getRanges()[0],h;if(h=b.elementPath().contains(f))a.call(this,h,d);else for(e=e.createIterator(),b=b.config.enterMode,e.enforceRealBlocks=!0,e.enlargeBr=b!=CKEDITOR.ENTER_BR;h=e.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)h.isReadOnly()||a.call(this,h,d);return!0}}}}var b=CKEDITOR.plugins.indent,d=k.config.indentClasses;b.registerCommands(k,{indentblock:new h(k,"indentblock",!0),outdentblock:new h(k,"outdentblock")});CKEDITOR.tools.extend(h.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})}})})();CKEDITOR.plugins.add("taotab",{init:function(a){function l(a){var e,g="";a=parseInt(a||4,10);for(e=0;e=(parseInt(e.getStyle(l(e)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:f}return f},exec:function(b){var c=b.getSelection(),c= +c&&c.getRanges()[0],f;if(f=b.elementPath().contains(e))a.call(this,f,d);else for(c=c.createIterator(),b=b.config.enterMode,c.enforceRealBlocks=!0,c.enlargeBr=b!=CKEDITOR.ENTER_BR;f=c.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)f.isReadOnly()||a.call(this,f,d);return!0}}}}var c=CKEDITOR.plugins.indent,d=k.config.indentClasses;c.registerCommands(k,{indentblock:new h(k,"indentblock",!0),outdentblock:new h(k,"outdentblock")});CKEDITOR.tools.extend(h.prototype,c.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})}})})();CKEDITOR.plugins.add("taotab",{init:function(a){function l(a){var f,g="";a=parseInt(a||4,10);for(f=0;ff.length)){d=f[f.length-1].getNext();h=e.createElement(this.type);for(c.push(h);f.length;)c=f.shift(),a=e.createElement("li"),l=c,l.is("pre")||t.test(l.getName())||"false"==l.getAttribute("contenteditable")?c.appendTo(a):(c.copyAttributes(a),g&&c.getDirection()&&(a.removeStyle("direction"),a.removeAttribute("dir")),c.moveChildren(a), c.remove()),a.appendTo(h);g&&k&&h.setAttribute("dir",g);d?h.insertBefore(d):h.appendTo(b)}}function g(a,b,c){function d(c){if(!(!(l=k[c?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(m=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||m.is&&m.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](l)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],h=0;he[h-1].indent+1){f=e[h-1].indent+1-e[h].indent;for(g=e[h].indent;e[h]&&e[h].indent>=g;)e[h].indent+=f,h++;h--}var k=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;d(!0);d();k.replace(b.root);a.fire("contentDomInvalidated")}function f(a,b){this.name= -a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function e(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](r);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d),c=e}function m(a){function b(c){var d=a[c?"getPrevious":"getNext"](p);d&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(a.getName())&&(e(a,d,null,!c),a.remove(),a=d)}b();b(1)}function k(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in -CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function h(a,c,d){a.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var f=d.extractContents();c.trim(!1,!0);var h=c.createBookmark(),g=new CKEDITOR.dom.elementPath(c.startContainer),k=g.block,g=g.lastElement.getAscendant("li",1)||k,l=new CKEDITOR.dom.elementPath(d.startContainer),n=l.contains(CKEDITOR.dtd.$listItem),l=l.contains(CKEDITOR.dtd.$list);k?(k=k.getBogus())&&k.remove():l&&(k=l.getPrevious(p))&& -q(k)&&k.remove();(k=f.getLast())&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("br")&&k.remove();(k=c.startContainer.getChild(c.startOffset))?f.insertBefore(k):c.startContainer.append(f);n&&(f=b(n))&&(g.contains(n)?(e(f,n.getParent(),n),f.remove()):g.append(f));for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){l=d.startPath();f=l.block;if(!f)break;f.is("li")&&(g=f.getParent(),f.equals(g.getLast(p))&&f.equals(g.getFirst(p))&&(f=g));d.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove()}d=d.clone();f= -a.editable();d.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return p(a)&&!q(a)};(d=d.next())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list&&m(d);c.moveToBookmark(h);c.select();a.fire("saveSnapshot")}function b(a){return(a=a.getLast(p))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in d?a:null}var d={ol:1,ul:1},c=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(),p=function(a){return!(c(a)||n(a))},q=CKEDITOR.dom.walker.bogus(); +(f.push(g),CKEDITOR.dom.element.setMarker(c,g,"list_item_processed",!0))}g=null;for(h=0;he[h-1].indent+1){f=e[h-1].indent+1-e[h].indent;for(g=e[h].indent;e[h]&&e[h].indent>=g;)e[h].indent+=f,h++;h--}var k=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;d(!0);d();k.replace(b.root);a.fire("contentDomInvalidated")}function e(a,b){this.name= +a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function f(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](r);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d),c=e}function m(a){function b(c){var d=a[c?"getPrevious":"getNext"](q);d&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(a.getName())&&(f(a,d,null,!c),a.remove(),a=d)}b();b(1)}function k(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in +CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function h(a,b,d){a.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var e=d.extractContents();b.trim(!1,!0);var h=b.createBookmark(),g=new CKEDITOR.dom.elementPath(b.startContainer),k=g.block,g=g.lastElement.getAscendant("li",1)||k,l=new CKEDITOR.dom.elementPath(d.startContainer),n=l.contains(CKEDITOR.dtd.$listItem),l=l.contains(CKEDITOR.dtd.$list);k?(k=k.getBogus())&&k.remove():l&&(k=l.getPrevious(q))&& +u(k)&&k.remove();(k=e.getLast())&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("br")&&k.remove();(k=b.startContainer.getChild(b.startOffset))?e.insertBefore(k):b.startContainer.append(e);n&&(e=c(n))&&(g.contains(n)?(f(e,n.getParent(),n),e.remove()):g.append(e));for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){l=d.startPath();e=l.block;if(!e)break;e.is("li")&&(g=e.getParent(),e.equals(g.getLast(q))&&e.equals(g.getFirst(q))&&(e=g));d.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove()}d=d.clone();e= +a.editable();d.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return q(a)&&!u(a)};(d=d.next())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list&&m(d);b.moveToBookmark(h);b.select();a.fire("saveSnapshot")}function c(a){return(a=a.getLast(q))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in d?a:null}var d={ol:1,ul:1},b=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(),q=function(a){return!(b(a)||n(a))},u=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 h=0,g=a.getChildCount();h= -g.$.documentMode&&q.append(g.createText(" ")),q.append(m.listNode),m=m.nextIndex;else if(-1==I.indent&&!c&&h){d[h.getName()]?(q=I.element.clone(!1,!0),t!=h.getDirection(1)&&q.setAttribute("dir",t)):q=new CKEDITOR.dom.documentFragment(g);var l=h.getDirection(1)!=t,J=I.element,F=J.getAttribute("class"),L=J.getAttribute("style"),P=q.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||l||L||F),N,Y=I.contents.length,S;for(h=0;h= +g.$.documentMode&&u.append(g.createText(" ")),u.append(m.listNode),m=m.nextIndex;else if(-1==I.indent&&!c&&h){d[h.getName()]?(u=I.element.clone(!1,!0),t!=h.getDirection(1)&&u.setAttribute("dir",t)):u=new CKEDITOR.dom.documentFragment(g);var l=h.getDirection(1)!=t,J=I.element,F=J.getAttribute("class"),L=J.getAttribute("style"),P=u.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||l||L||F),N,Y=I.contents.length,S;for(h=0;hb&&ab&&aK.version?" ":S,h=a.hotNode&&a.hotNode.getText()==f&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!c;b(a,function(b){h&&a.hotNode&&a.hotNode.remove();b[c?"insertAfter":"insertBefore"](e);b.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!c});a.lastCmdDirection=!!c});K.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(b){b=b.getSelection().getStartElement();var f;b=b.getAscendant(T,1); -if(!r(a,b)&&b&&!b.equals(a.editable)&&!b.contains(a.editable)){(f=k(b))&&"false"==f.getAttribute("contenteditable")&&(b=f);a.element=b;f=e(a,b,!c);var h;n(f)&&f.is(a.triggers)&&f.is(W)&&(!e(a,f,!c)||(h=e(a,f,!c))&&n(h)&&h.is(a.triggers))?d(f):(h=g(a,b),n(h)&&(e(a,h,!c)?(b=e(a,h,!c))&&n(b)&&b.is(a.triggers)&&d(h):d(h)))}}}()}}function c(a,b){if(!b||b.type!=CKEDITOR.NODE_ELEMENT||!b.$)return!1;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function n(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&& -a.$}function p(a){if(!n(a))return!1;var b;(b=q(a))||(n(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function q(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}function t(a,b){return n(b)?b.is(a.triggers):null}function r(a,b){if(!b)return!1;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return!0;return!1}function v(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&& -!b.is(ha)});if(!b)return!1;A(a,b);return c?b.size.top>a.mouse.y:b.size.bottom(a.inInlineMode?e.editable.top+e.editable.height/2:Math.min(e.editable.height,e.pane.height)/2),b=b[h?"getLast":"getFirst"](function(a){return!(O(a)||Q(a))});if(!b)return null;c(a,b)&&(b=a.line.wrap[h?"getPrevious":"getNext"](function(a){return!(O(a)||Q(a))}));if(!n(b)||p(b)||!t(a,b))return null;A(a,b);return!h&&0<=b.size.top&&m(d.y, -0,b.size.top+f)?(a=a.inInlineMode||0===e.scroll.y?P:Y,new l([null,b,I,L,a])):h&&b.size.bottom<=e.pane.height&&m(d.y,b.size.bottom-f,e.pane.height)?(a=a.inInlineMode||m(b.size.bottom,e.pane.height-f,e.pane.height)?N:Y,new l([b,null,J,L,a])):null}function x(a){var b=a.mouse,c=a.view,d=a.triggerOffset,f=g(a);if(!f)return null;A(a,f);var d=Math.min(d,0|f.size.outerHeight/2),h=[],k,u;if(m(b.y,f.size.top-1,f.size.top+d))u=!1;else if(m(b.y,f.size.bottom-d,f.size.bottom+1))u=!0;else return null;if(p(f)|| -v(a,f,u)||f.getParent().is(Z))return null;var r=e(a,f,!u);if(r){if(r&&r.type==CKEDITOR.NODE_TEXT)return null;if(n(r)){if(p(r)||!t(a,r)||r.getParent().is(Z))return null;h=[r,f][u?"reverse":"concat"]().concat([F,L])}}else f.equals(a.editable[u?"getLast":"getFirst"](a.isRelevant))?(w(a),u&&m(b.y,f.size.bottom-d,c.pane.height)&&m(f.size.bottom,c.pane.height-d,c.pane.height)?k=N:m(b.y,0,f.size.top+d)&&(k=P)):k=Y,h=[null,f][u?"reverse":"concat"]().concat([u?J:I,L,k,f.equals(a.editable[u?"getLast":"getFirst"](a.isRelevant))? -u?N:P:Y]);return 0 in h?new l(h):null}function z(a,b,c,d){for(var e=b.getDocumentPosition(),f={},h={},g={},k={},l=U.length;l--;)f[U[l]]=parseInt(b.getComputedStyle.call(b,"border-"+U[l]+"-width"),10)||0,g[U[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+U[l]),10)||0,h[U[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+U[l]),10)||0;c&&!d||u(a,d);k.top=e.y-(c?0:a.view.scroll.y);k.left=e.x-(c?0:a.view.scroll.x);k.outerWidth=b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(g.top+ -g.bottom+f.top+f.bottom);k.width=k.outerWidth-(g.left+g.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,left:b.$.scrollLeft});return C({border:f,padding:g,margin:h,ignoreScroll:c},k,!0)}function A(a,b,c){if(!n(b))return b.size=null;if(!b.size)b.size={};else if(b.size.ignoreScroll==c&&b.size.date>new Date-ba)return null;return C(b.size,z(a,b,c),{date:+new Date},!0)}function w(a,b){a.view.editable=z(a,a.editable,b,!0)}function u(a, -b){a.view||(a.view={});var c=a.view;if(!(!b&&c&&c.date>new Date-ba)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();C(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},!0)}}function D(a,b,c,d){for(var e=d,f=d,h=0,g=!1,k=!1,m=a.view.pane.height,u=a.mouse;u.y+hd.left-e.x&&cd.top-e.y&&bCKEDITOR.env.version,E=CKEDITOR.dtd,M={},I=128,J=64,F=32,L=16,P=4,N=2,Y=1,S=" ",Z=E.$listItem,ha=E.$tableContent,W=C({},E.$nonEditable,E.$empty),T=E.$block,ba=100,ca="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",V=ca+"border-color:transparent;display:block;border-style:solid;", -ea="\x3cspan\x3e"+S+"\x3c/span\x3e";M[CKEDITOR.ENTER_BR]="br";M[CKEDITOR.ENTER_P]="p";M[CKEDITOR.ENTER_DIV]="div";l.prototype={set:function(a,b,c){this.properties=a+b+(c||Y);return this},is:function(a){return(this.properties&a)==a}};var X=function(){function a(b,c){var d=b.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(b,d,e){if(!b.mouse)return null;var f=b.doc,h=b.line.wrap;e=e||b.mouse;var g=a(f,e);d&&c(b,g)&&(h.hide(),g=a(f,e),h.show());return!g|| -g.type!=CKEDITOR.NODE_ELEMENT||!g.$||K.ie&&9>K.version&&!b.boundary.equals(g)&&!b.boundary.contains(g)?null:g}}(),O=CKEDITOR.dom.walker.whitespaces(),Q=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),R=function(){function b(c){var e=c.element,h,g,k;if(!n(e)||e.contains(c.editable)||e.isReadOnly())return null;k=D(c,function(a,b){return!b.equals(a)},function(a,b){return X(a,!0,b)},e);h=k.upper;g=k.lower;if(a(c,h,g))return k.set(F,8);if(h&&e.contains(h))for(;!h.getParent().equals(e);)h=h.getParent(); -else h=e.getFirst(function(a){return d(c,a)});if(g&&e.contains(g))for(;!g.getParent().equals(e);)g=g.getParent();else g=e.getLast(function(a){return d(c,a)});if(!h||!g)return null;A(c,h);A(c,g);if(!m(c.mouse.y,h.size.top,g.size.bottom))return null;for(var e=Number.MAX_VALUE,l,u,w,r;g&&!g.equals(h)&&(u=h.getNext(c.isRelevant));)l=Math.abs(f(c,h,u)-c.mouse.y),lK.version?" ":S,h=a.hotNode&&a.hotNode.getText()==f&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!b;c(a,function(c){h&&a.hotNode&&a.hotNode.remove();c[b?"insertAfter":"insertBefore"](e);c.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!b});a.lastCmdDirection=!!b});K.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(c){c=c.getSelection().getStartElement();var e;c=c.getAscendant(T,1); +if(!r(a,c)&&c&&!c.equals(a.editable)&&!c.contains(a.editable)){(e=k(c))&&"false"==e.getAttribute("contenteditable")&&(c=e);a.element=c;e=f(a,c,!b);var h;n(e)&&e.is(a.triggers)&&e.is(W)&&(!f(a,e,!b)||(h=f(a,e,!b))&&n(h)&&h.is(a.triggers))?d(e):(h=g(a,c),n(h)&&(f(a,h,!b)?(c=f(a,h,!b))&&n(c)&&c.is(a.triggers)&&d(h):d(h)))}}}()}}function b(a,b){if(!b||b.type!=CKEDITOR.NODE_ELEMENT||!b.$)return!1;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function n(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&& +a.$}function q(a){if(!n(a))return!1;var b;(b=u(a))||(n(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function u(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}function t(a,b){return n(b)?b.is(a.triggers):null}function r(a,b){if(!b)return!1;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return!0;return!1}function p(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&& +!b.is(ha)});if(!b)return!1;B(a,b);return c?b.size.top>a.mouse.y:b.size.bottom(a.inInlineMode?e.editable.top+e.editable.height/2:Math.min(e.editable.height,e.pane.height)/2),c=c[h?"getLast":"getFirst"](function(a){return!(O(a)||Q(a))});if(!c)return null;b(a,c)&&(c=a.line.wrap[h?"getPrevious":"getNext"](function(a){return!(O(a)||Q(a))}));if(!n(c)||q(c)||!t(a,c))return null;B(a,c);return!h&&0<=c.size.top&&m(d.y, +0,c.size.top+f)?(a=a.inInlineMode||0===e.scroll.y?P:Y,new l([null,c,I,L,a])):h&&c.size.bottom<=e.pane.height&&m(d.y,c.size.bottom-f,e.pane.height)?(a=a.inInlineMode||m(c.size.bottom,e.pane.height-f,e.pane.height)?N:Y,new l([c,null,J,L,a])):null}function x(a){var b=a.mouse,c=a.view,d=a.triggerOffset,e=g(a);if(!e)return null;B(a,e);var d=Math.min(d,0|e.size.outerHeight/2),h=[],k,v;if(m(b.y,e.size.top-1,e.size.top+d))v=!1;else if(m(b.y,e.size.bottom-d,e.size.bottom+1))v=!0;else return null;if(q(e)|| +p(a,e,v)||e.getParent().is(Z))return null;var r=f(a,e,!v);if(r){if(r&&r.type==CKEDITOR.NODE_TEXT)return null;if(n(r)){if(q(r)||!t(a,r)||r.getParent().is(Z))return null;h=[r,e][v?"reverse":"concat"]().concat([F,L])}}else e.equals(a.editable[v?"getLast":"getFirst"](a.isRelevant))?(w(a),v&&m(b.y,e.size.bottom-d,c.pane.height)&&m(e.size.bottom,c.pane.height-d,c.pane.height)?k=N:m(b.y,0,e.size.top+d)&&(k=P)):k=Y,h=[null,e][v?"reverse":"concat"]().concat([v?J:I,L,k,e.equals(a.editable[v?"getLast":"getFirst"](a.isRelevant))? +v?N:P:Y]);return 0 in h?new l(h):null}function z(a,b,c,d){for(var e=b.getDocumentPosition(),f={},h={},g={},k={},l=U.length;l--;)f[U[l]]=parseInt(b.getComputedStyle.call(b,"border-"+U[l]+"-width"),10)||0,g[U[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+U[l]),10)||0,h[U[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+U[l]),10)||0;c&&!d||v(a,d);k.top=e.y-(c?0:a.view.scroll.y);k.left=e.x-(c?0:a.view.scroll.x);k.outerWidth=b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(g.top+ +g.bottom+f.top+f.bottom);k.width=k.outerWidth-(g.left+g.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,left:b.$.scrollLeft});return C({border:f,padding:g,margin:h,ignoreScroll:c},k,!0)}function B(a,b,c){if(!n(b))return b.size=null;if(!b.size)b.size={};else if(b.size.ignoreScroll==c&&b.size.date>new Date-ba)return null;return C(b.size,z(a,b,c),{date:+new Date},!0)}function w(a,b){a.view.editable=z(a,a.editable,b,!0)}function v(a, +b){a.view||(a.view={});var c=a.view;if(!(!b&&c&&c.date>new Date-ba)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();C(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},!0)}}function D(a,b,c,d){for(var e=d,f=d,h=0,g=!1,k=!1,m=a.view.pane.height,n=a.mouse;n.y+hd.left-e.x&&cd.top-e.y&&bCKEDITOR.env.version,E=CKEDITOR.dtd,M={},I=128,J=64,F=32,L=16,P=4,N=2,Y=1,S=" ",Z=E.$listItem,ha=E.$tableContent,W=C({},E.$nonEditable,E.$empty),T=E.$block,ba=100,ca="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",V=ca+"border-color:transparent;display:block;border-style:solid;", +ea="\x3cspan\x3e"+S+"\x3c/span\x3e";M[CKEDITOR.ENTER_BR]="br";M[CKEDITOR.ENTER_P]="p";M[CKEDITOR.ENTER_DIV]="div";l.prototype={set:function(a,b,c){this.properties=a+b+(c||Y);return this},is:function(a){return(this.properties&a)==a}};var X=function(){function a(b,c){var d=b.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(c,d,e){if(!c.mouse)return null;var f=c.doc,h=c.line.wrap;e=e||c.mouse;var g=a(f,e);d&&b(c,g)&&(h.hide(),g=a(f,e),h.show());return!g|| +g.type!=CKEDITOR.NODE_ELEMENT||!g.$||K.ie&&9>K.version&&!c.boundary.equals(g)&&!c.boundary.contains(g)?null:g}}(),O=CKEDITOR.dom.walker.whitespaces(),Q=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),R=function(){function c(b){var f=b.element,h,g,k;if(!n(f)||f.contains(b.editable)||f.isReadOnly())return null;k=D(b,function(a,b){return!b.equals(a)},function(a,b){return X(a,!0,b)},f);h=k.upper;g=k.lower;if(a(b,h,g))return k.set(F,8);if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent(); +else h=f.getFirst(function(a){return d(b,a)});if(g&&f.contains(g))for(;!g.getParent().equals(f);)g=g.getParent();else g=f.getLast(function(a){return d(b,a)});if(!h||!g)return null;B(b,h);B(b,g);if(!m(b.mouse.y,h.size.top,g.size.bottom))return null;for(var f=Number.MAX_VALUE,l,v,w,r;g&&!g.equals(h)&&(v=h.getNext(b.isRelevant));)l=Math.abs(e(b,h,v)-b.mouse.y),l=CKEDITOR.env.version;return!(CKEDITOR.env.webkit&&!CKEDITOR.env.chrome)&&!a},init:function(a){if(this.isSupportedEnvironment()){var l=CKEDITOR.plugins.getPath("pastetools"),g=this.path;a.pasteTools.register({priority:100,filters:[CKEDITOR.getUrl(l+"filter/common.js"),CKEDITOR.getUrl(l+"filter/image.js"),CKEDITOR.getUrl(g+"filter/default.js")],canHandle:function(a){a=a.data;return(a=a.dataTransfer.getData("text/html",!0)||a.dataValue)?"libreoffice"===CKEDITOR.plugins.pastetools.getContentGeneratorName(a): -!1},handle:function(f,e){var g=f.data,k=g.dataValue||CKEDITOR.plugins.pastetools.getClipboardData(g,"text/html");g.dontFilter=!0;k=CKEDITOR.pasteFilters.image(k,a,CKEDITOR.plugins.pastetools.getClipboardData(g,"text/rtf"));g.dataValue=CKEDITOR.pasteFilters.libreoffice(k,a);!0===a.config.forcePasteAsPlainText&&(g.type="text");e()}})}}})})();(function(){CKEDITOR.plugins.add("pastefromword",{requires:"pastetools",init:function(a){function l(a){var e=CKEDITOR.plugins.pastefromword&&CKEDITOR.plugins.pastefromword.images, -b,d=[];if(e&&a.editor.filter.check("img[src]")&&(b=e.extractTagsFromHtml(a.data.dataValue),0!==b.length&&(e=e.extractFromRtf(a.data.dataTransfer["text/rtf"]),0!==e.length&&(CKEDITOR.tools.array.forEach(e,function(a){d.push(a.type?"data:"+a.type+";base64,"+CKEDITOR.tools.convertBytesToBase64(CKEDITOR.tools.convertHexStringToBytes(a.hex)):null)},this),b.length===d.length))))for(e=0;e|<\/font>)/,e=e?"microsoft"===e:b.test(a);return a&&(g||e)},handle:function(e,f){var b=e.data,d=CKEDITOR.plugins.pastetools.getClipboardData(b,"text/html"),c=CKEDITOR.plugins.pastetools.getClipboardData(b, -"text/rtf"),d={dataValue:d,dataTransfer:{"text/rtf":c}};if(!1!==a.fire("pasteFromWord",d)||g){b.dontFilter=!0;if(g||!a.config.pasteFromWordPromptCleanup||confirm(a.lang.pastefromword.confirmCleanup))d.dataValue=CKEDITOR.cleanWord(d.dataValue,a),a.fire("afterPasteFromWord",d),b.dataValue=d.dataValue,!0===a.config.forcePasteAsPlainText?b.type="text":CKEDITOR.plugins.clipboard.isCustomCopyCutSupported||"allow-word"!==a.config.forcePasteAsPlainText||(b.type="html");g=0;f()}}});if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&& -m)a.on("afterPasteFromWord",l)}})})();(function(){var a={canUndo:!1,async:!0,exec:function(a,g){var f=a.lang,e=CKEDITOR.tools.keystrokeToString(f.common.keyboard,a.getCommandKeystroke(CKEDITOR.env.ie?a.commands.paste:this)),m=g&&"undefined"!==typeof g.notification?g.notification:!g||!g.from||"keystrokeHandler"===g.from&&CKEDITOR.env.ie,f=m&&"string"===typeof m?m:f.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+e.aria+'"\x3e'+e.display+"\x3c/kbd\x3e");a.execCommand("paste",{type:"text", -notification:m?f:!1})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(l){var g=CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;l.addCommand("pastetext",a);l.setKeystroke(g,"pastetext");CKEDITOR.plugins.clipboard.addPasteButton(l,"PasteText",{label:l.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(l.config.forcePasteAsPlainText)l.on("beforePaste",function(a){"html"!=a.data.type&&(a.data.type="text")});l.on("pasteState", +!1},handle:function(e,f){var g=e.data,k=g.dataValue||CKEDITOR.plugins.pastetools.getClipboardData(g,"text/html");g.dontFilter=!0;k=CKEDITOR.pasteFilters.image(k,a,CKEDITOR.plugins.pastetools.getClipboardData(g,"text/rtf"));g.dataValue=CKEDITOR.pasteFilters.libreoffice(k,a);!0===a.config.forcePasteAsPlainText&&(g.type="text");f()}})}}})})();(function(){CKEDITOR.plugins.add("pastefromword",{requires:"pastetools",init:function(a){function l(a){var e=CKEDITOR.plugins.pastefromword&&CKEDITOR.plugins.pastefromword.images, +c,d=[];if(e&&a.editor.filter.check("img[src]")&&(c=e.extractTagsFromHtml(a.data.dataValue),0!==c.length&&(e=e.extractFromRtf(a.data.dataTransfer["text/rtf"]),0!==e.length&&(CKEDITOR.tools.array.forEach(e,function(a){d.push(a.type?"data:"+a.type+";base64,"+CKEDITOR.tools.convertBytesToBase64(CKEDITOR.tools.convertHexStringToBytes(a.hex)):null)},this),c.length===d.length))))for(e=0;e|<\/font>)/,e=e?"microsoft"===e:c.test(a);return a&&(g||e)},handle:function(e,f){var c=e.data,d=CKEDITOR.plugins.pastetools.getClipboardData(c,"text/html"),b=CKEDITOR.plugins.pastetools.getClipboardData(c, +"text/rtf"),d={dataValue:d,dataTransfer:{"text/rtf":b}};if(!1!==a.fire("pasteFromWord",d)||g){c.dontFilter=!0;if(g||!a.config.pasteFromWordPromptCleanup||confirm(a.lang.pastefromword.confirmCleanup))d.dataValue=CKEDITOR.cleanWord(d.dataValue,a),a.fire("afterPasteFromWord",d),c.dataValue=d.dataValue,!0===a.config.forcePasteAsPlainText?c.type="text":CKEDITOR.plugins.clipboard.isCustomCopyCutSupported||"allow-word"!==a.config.forcePasteAsPlainText||(c.type="html");g=0;f()}}});if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&& +m)a.on("afterPasteFromWord",l)}})})();(function(){var a={canUndo:!1,async:!0,exec:function(a,g){var e=a.lang,f=CKEDITOR.tools.keystrokeToString(e.common.keyboard,a.getCommandKeystroke(CKEDITOR.env.ie?a.commands.paste:this)),m=g&&"undefined"!==typeof g.notification?g.notification:!g||!g.from||"keystrokeHandler"===g.from&&CKEDITOR.env.ie,e=m&&"string"===typeof m?m:e.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+f.aria+'"\x3e'+f.display+"\x3c/kbd\x3e");a.execCommand("paste",{type:"text", +notification:m?e:!1})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(l){var g=CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;l.addCommand("pastetext",a);l.setKeystroke(g,"pastetext");CKEDITOR.plugins.clipboard.addPasteButton(l,"PasteText",{label:l.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(l.config.forcePasteAsPlainText)l.on("beforePaste",function(a){"html"!=a.data.type&&(a.data.type="text")});l.on("pasteState", function(a){l.getCommand("pastetext").setState(a.data)})}})})();CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}});CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var l=a._.removeFormatRegex||(a._.removeFormatRegex=new RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g, -"|")+")$","i")),g=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),f=CKEDITOR.plugins.removeformat.filter,e=a.getSelection().getRanges().createIterator(),m=function(a){return a.type==CKEDITOR.NODE_ELEMENT},k=[],h;h=e.getNextRange();){var b=h.createBookmark();h=a.createRange();h.setStartBefore(b.startNode);b.endNode&&h.setEndAfter(b.endNode);h.collapsed||h.enlarge(CKEDITOR.ENLARGE_ELEMENT);var d=h.createBookmark(),c=d.startNode,n=d.endNode,p=function(b){for(var c= -a.elementPath(b),d=c.elements,e=1,h;(h=d[e])&&!h.equals(c.block)&&!h.equals(c.blockLimit);e++)l.test(h.getName())&&f(a,h)&&b.breakParent(h)};p(c);if(n)for(p(n),c=c.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);c&&!c.equals(n);)if(c.isReadOnly()){if(c.getPosition(n)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(m)}else p=c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==c.getName()&&c.data("cke-realelement")||c.hasAttribute("data-cke-bookmark")||!f(a,c)||(l.test(c.getName())?c.remove(1):(c.removeAttributes(g), -a.fire("removeFormatCleanup",c))),c=p;d.startNode.remove();d.endNode&&d.endNode.remove();h.moveToBookmark(b);k.push(h)}a.forceNextSelectionCheck();a.getSelection().selectRanges(k)}}},filter:function(a,l){for(var g=a._.removeFormatFilters||[],f=0;fb.width&&(f.resize_minWidth=b.width);f.resize_minHeight>b.height&&(f.resize_minHeight=b.height);CKEDITOR.document.on("mousemove",l);CKEDITOR.document.on("mouseup",g);a.document&& -(a.document.on("mousemove",l),a.document.on("mouseup",g));c.preventDefault&&c.preventDefault()});a.on("destroy",function(){CKEDITOR.tools.removeFunction(n)});a.on("uiSpace",function(b){if("bottom"==b.data.space){var f="";d&&!c&&(f=" cke_resizer_horizontal");!d&&c&&(f=" cke_resizer_vertical");var h='\x3cspan id\x3d"'+e+'" class\x3d"cke_resizer'+f+" cke_resizer_"+m+'" title\x3d"'+CKEDITOR.tools.htmlEncode(a.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+n+', event)"\x3e'+("ltr"== -m?"◢":"◣")+"\x3c/span\x3e";"ltr"==m&&"ltr"==f?b.data.html+=h:b.data.html=h+b.data.html}},a,null,100);a.on("maximize",function(b){a.ui.space("resizer")[b.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}});(function(){CKEDITOR.plugins.add("selectall",{init:function(a){a.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(a){var g=a.editable();if(g.is("textarea"))a=g.$,CKEDITOR.env.ie&&a.createTextRange?a.createTextRange().execCommand("SelectAll"):(a.selectionStart=0,a.selectionEnd=a.value.length), -a.focus();else{if(g.is("body"))a.document.$.execCommand("SelectAll",!1,null);else{var f=a.createRange();f.selectNodeContents(g);f.select()}a.forceNextSelectionCheck();a.selectionChange()}},canUndo:!1});a.ui.addButton&&a.ui.addButton("SelectAll",{label:a.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})})();(function(){function a(a,f,e){var m,k;if(e="string"==typeof e?CKEDITOR.document.getById(e):new CKEDITOR.dom.element(e))if(m=a.fire("uiSpace",{space:f,html:""}).html)a.on("uiSpace", -function(a){a.data.space==f&&a.cancel()},null,null,1),k=e.append(CKEDITOR.dom.element.createFromHtml(l.output({id:a.id,name:a.name,langDir:a.lang.dir,langCode:a.langCode,space:f,spaceId:a.ui.spaceId(f),content:m}))),e.getCustomData("cke_hasshared")?k.hide():e.setCustomData("cke_hasshared",1),k.unselectable(),k.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()}),a.focusManager.add(k,1),a.on("focus",function(){for(var a=0,b,d=e.getChildren();b=d.getItem(a);a++)b.type== -CKEDITOR.NODE_ELEMENT&&!b.equals(k)&&b.hasClass("cke_shared")&&b.hide();k.show()}),a.on("destroy",function(){k.remove()})}var l=CKEDITOR.addTemplate("sharedcontainer",'\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{spaceId}" class\x3d"cke_{space}" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'); -CKEDITOR.plugins.add("sharedspace",{init:function(g){g.on("loaded",function(){var f=g.config.sharedSpaces;if(f)for(var e in f)a(g,e,f[e])},null,null,9)}})})();(function(){CKEDITOR.plugins.add("sourcearea",{init:function(l){function g(){var a=e&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();a&&this.focus()}if(l.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var f= +"|")+")$","i")),g=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),e=CKEDITOR.plugins.removeformat.filter,f=a.getSelection().getRanges().createIterator(),m=function(a){return a.type==CKEDITOR.NODE_ELEMENT},k=[],h;h=f.getNextRange();){var c=h.createBookmark();h=a.createRange();h.setStartBefore(c.startNode);c.endNode&&h.setEndAfter(c.endNode);h.collapsed||h.enlarge(CKEDITOR.ENLARGE_ELEMENT);var d=h.createBookmark(),b=d.startNode,n=d.endNode,q=function(b){for(var c= +a.elementPath(b),d=c.elements,f=1,h;(h=d[f])&&!h.equals(c.block)&&!h.equals(c.blockLimit);f++)l.test(h.getName())&&e(a,h)&&b.breakParent(h)};q(b);if(n)for(q(n),b=b.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);b&&!b.equals(n);)if(b.isReadOnly()){if(b.getPosition(n)&CKEDITOR.POSITION_CONTAINS)break;b=b.getNext(m)}else q=b.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==b.getName()&&b.data("cke-realelement")||b.hasAttribute("data-cke-bookmark")||!e(a,b)||(l.test(b.getName())?b.remove(1):(b.removeAttributes(g), +a.fire("removeFormatCleanup",b))),b=q;d.startNode.remove();d.endNode&&d.endNode.remove();h.moveToBookmark(c);k.push(h)}a.forceNextSelectionCheck();a.getSelection().selectRanges(k)}}},filter:function(a,l){for(var g=a._.removeFormatFilters||[],e=0;ec.width&&(e.resize_minWidth=c.width);e.resize_minHeight>c.height&&(e.resize_minHeight=c.height);CKEDITOR.document.on("mousemove",l);CKEDITOR.document.on("mouseup",g);a.document&& +(a.document.on("mousemove",l),a.document.on("mouseup",g));b.preventDefault&&b.preventDefault()});a.on("destroy",function(){CKEDITOR.tools.removeFunction(n)});a.on("uiSpace",function(c){if("bottom"==c.data.space){var e="";d&&!b&&(e=" cke_resizer_horizontal");!d&&b&&(e=" cke_resizer_vertical");var h='\x3cspan id\x3d"'+f+'" class\x3d"cke_resizer'+e+" cke_resizer_"+m+'" title\x3d"'+CKEDITOR.tools.htmlEncode(a.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+n+', event)"\x3e'+("ltr"== +m?"◢":"◣")+"\x3c/span\x3e";"ltr"==m&&"ltr"==e?c.data.html+=h:c.data.html=h+c.data.html}},a,null,100);a.on("maximize",function(b){a.ui.space("resizer")[b.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}});(function(){CKEDITOR.plugins.add("selectall",{init:function(a){a.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(a){var g=a.editable();if(g.is("textarea"))a=g.$,CKEDITOR.env.ie&&a.createTextRange?a.createTextRange().execCommand("SelectAll"):(a.selectionStart=0,a.selectionEnd=a.value.length), +a.focus();else{if(g.is("body"))a.document.$.execCommand("SelectAll",!1,null);else{var e=a.createRange();e.selectNodeContents(g);e.select()}a.forceNextSelectionCheck();a.selectionChange()}},canUndo:!1});a.ui.addButton&&a.ui.addButton("SelectAll",{label:a.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})})();(function(){function a(a,e,f){var m,k;if(f="string"==typeof f?CKEDITOR.document.getById(f):new CKEDITOR.dom.element(f))if(m=a.fire("uiSpace",{space:e,html:""}).html)a.on("uiSpace", +function(a){a.data.space==e&&a.cancel()},null,null,1),k=f.append(CKEDITOR.dom.element.createFromHtml(l.output({id:a.id,name:a.name,langDir:a.lang.dir,langCode:a.langCode,space:e,spaceId:a.ui.spaceId(e),content:m}))),f.getCustomData("cke_hasshared")?k.hide():f.setCustomData("cke_hasshared",1),k.unselectable(),k.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()}),a.focusManager.add(k,1),a.on("focus",function(){for(var a=0,c,d=f.getChildren();c=d.getItem(a);a++)c.type== +CKEDITOR.NODE_ELEMENT&&!c.equals(k)&&c.hasClass("cke_shared")&&c.hide();k.show()}),a.on("destroy",function(){k.remove()})}var l=CKEDITOR.addTemplate("sharedcontainer",'\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{spaceId}" class\x3d"cke_{space}" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'); +CKEDITOR.plugins.add("sharedspace",{init:function(g){g.on("loaded",function(){var e=g.config.sharedSpaces;if(e)for(var f in e)a(g,f,e[f])},null,null,9)}})})();(function(){CKEDITOR.plugins.add("sourcearea",{init:function(l){function g(){var a=f&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();a&&this.focus()}if(l.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var e= CKEDITOR.plugins.sourcearea;l.addMode("source",function(e){var f=l.ui.space("contents").getDocument().createElement("textarea");f.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",l.config.sourceAreaTabSize||4)));f.setAttribute("dir","ltr");f.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");l.ui.space("contents").append(f);f=l.editable(new a(l, -f));f.setData(l.getData(1));CKEDITOR.env.ie&&(f.attachListener(l,"resize",g,f),f.attachListener(CKEDITOR.document.getWindow(),"resize",g,f),CKEDITOR.tools.setTimeout(g,0,f));l.fire("ariaWidget",this);e()});l.addCommand("source",f.commands.source);l.ui.addButton&&l.ui.addButton("Source",{label:l.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});l.on("mode",function(){l.getCommand("source").setState("source"==l.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var e=CKEDITOR.env.ie&&9== +f));f.setData(l.getData(1));CKEDITOR.env.ie&&(f.attachListener(l,"resize",g,f),f.attachListener(CKEDITOR.document.getWindow(),"resize",g,f),CKEDITOR.tools.setTimeout(g,0,f));l.fire("ariaWidget",this);e()});l.addCommand("source",e.commands.source);l.ui.addButton&&l.ui.addButton("Source",{label:l.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});l.on("mode",function(){l.getCommand("source").setState("source"==l.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var f=CKEDITOR.env.ie&&9== CKEDITOR.env.version}}});var a=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(a){this.setValue(a);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(a){this[(a?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){a.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})})();CKEDITOR.plugins.sourcearea= {commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(a){"wysiwyg"==a.mode&&a.fire("saveSnapshot");a.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);a.setMode("source"==a.mode?"wysiwyg":"source")},canUndo:!1}}};CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1, lt:1,lv:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(a){var l=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var g=a.langCode,g=l.availableLangs[g]?g:l.availableLangs[g.replace(/-.*/,"")]?g.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(l.path+"dialogs/lang/"+g+".js"),function(){CKEDITOR.tools.extend(a.lang.specialchar, l.langEntries[g]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}});CKEDITOR.config.specialChars="! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;".split(" "); -(function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(a){var l=a.config,g=a.lang.stylescombo,f={},e=[],m=[];a.on("stylesSet",function(g){if(g=g.data.styles){for(var h,b,d,c=0,n=g.length;c=g)for(h=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);h;){if(h.isVisible()&&0===h.getTabIndex()){m=h;break}h=h.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(h=this.getDocument().getBody().getFirst();h=h.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!f)if(!e&&h.equals(this)){if(e=!0,a){if(!(h=h.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;f=1}}else e&&!this.contains(h)&&(f=1);if(h.isVisible()&&!(0>(b=h.getTabIndex()))){if(f&&b==g){m= -h;break}b>g&&(!m||!k||b(h=b.getTabIndex())))if(0>=g){if(f&&0===h){m=b;break}h>k&& -(m=b,k=h)}else{if(f&&h==g){m=b;break}hk)&&(m=b,k=h)}}m&&m.focus()};CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function l(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,f){this.setState(f.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var g=a.lang.table;a.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height,border-collapse}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];td{border*,background-color,vertical-align,width,height}[colspan,rowspan];"+ -(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(a){if(a.styles){var e;if(a.styles.border)e=CKEDITOR.tools.style.parse.border(a.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var g=a.styles;g["border-left"]&&g["border-left"]===g["border-right"]&&g["border-right"]===g["border-top"]&& -g["border-top"]===g["border-bottom"]&&(e=CKEDITOR.tools.style.parse.border(g["border-top"]))}e&&e.style&&"solid"===e.style&&e.width&&0!==parseFloat(e.width)&&(a.attributes.border=1);"collapse"==a.styles["border-collapse"]&&(a.attributes.cellspacing=0)}}}]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",l()));a.addCommand("tableDelete",l({exec:function(a){var e=a.elementPath().contains("table",1);if(e){var g=e.getParent(),k=a.editable();1!=g.getChildCount()||g.is("td", -"th")||g.equals(k)||(e=g);a=a.createRange();a.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove();a.select()}}}));a.ui.addButton&&a.ui.addButton("Table",{label:g.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:g.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:g.deleteTable,command:"tableDelete",group:"table", +(function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(a){var l=a.config,g=a.lang.stylescombo,e={},f=[],m=[];a.on("stylesSet",function(g){if(g=g.data.styles){for(var h,c,d,b=0,n=g.length;b=g)for(h=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);h;){if(h.isVisible()&&0===h.getTabIndex()){m=h;break}h=h.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(h=this.getDocument().getBody().getFirst();h=h.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!e)if(!f&&h.equals(this)){if(f=!0,a){if(!(h=h.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;e=1}}else f&&!this.contains(h)&&(e=1);if(h.isVisible()&&!(0>(c=h.getTabIndex()))){if(e&&c==g){m= +h;break}c>g&&(!m||!k||c(h=c.getTabIndex())))if(0>=g){if(e&&0===h){m=c;break}h>k&& +(m=c,k=h)}else{if(e&&h==g){m=c;break}hk)&&(m=c,k=h)}}m&&m.focus()};CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function l(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,e){this.setState(e.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var g=a.lang.table;a.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height,border-collapse}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];td{border*,background-color,vertical-align,width,height}[colspan,rowspan];"+ +(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(a){if(a.styles){var f;if(a.styles.border)f=CKEDITOR.tools.style.parse.border(a.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var g=a.styles;g["border-left"]&&g["border-left"]===g["border-right"]&&g["border-right"]===g["border-top"]&& +g["border-top"]===g["border-bottom"]&&(f=CKEDITOR.tools.style.parse.border(g["border-top"]))}f&&f.style&&"solid"===f.style&&f.width&&0!==parseFloat(f.width)&&(a.attributes.border=1);"collapse"==a.styles["border-collapse"]&&(a.attributes.cellspacing=0)}}}]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",l()));a.addCommand("tableDelete",l({exec:function(a){var f=a.elementPath().contains("table",1);if(f){var g=f.getParent(),k=a.editable();1!=g.getChildCount()||g.is("td", +"th")||g.equals(k)||(f=g);a=a.createRange();a.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove();a.select()}}}));a.ui.addButton&&a.ui.addButton("Table",{label:g.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:g.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:g.deleteTable,command:"tableDelete",group:"table", order:1}});a.on("doubleclick",function(a){a.data.element.is("table")&&(a.data.dialog="tableProperties")});a.contextMenu&&a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}});(function(){function a(a,b){function c(a){return b?b.contains(a)&&a.getAscendant("table",!0).equals(b):!0}function d(a){var b=/^(?:td|th)$/;0c)c=e}return c}function m(b,c){for(var d=t(b)?b:a(b),f=d[0].getAscendant("table"),h=e(d,1),d=e(d),g=c?h:d,k=CKEDITOR.tools.buildTableMap(f),f=[],h=[],d=[],l=k.length,m=0;ml?new CKEDITOR.dom.element(g[0][l+1]):k&&-1!==g[0][k-1].cellIndex?new CKEDITOR.dom.element(g[0][k-1]):new CKEDITOR.dom.element(e.$.parentNode);m.length==b&&(d[0].moveToPosition(e,CKEDITOR.POSITION_AFTER_END),d[0].select(),e.remove());return k}function h(a,b){var c=a.getStartElement().getAscendant({td:1,th:1},!0);if(c){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function b(c){if(c instanceof CKEDITOR.dom.selection){var e= -c.getRanges(),f=a(c),h=f[0]&&f[0].getAscendant("table"),g;a:{var k=0;g=f.length-1;for(var l={},m,n;m=f[k++];)CKEDITOR.dom.element.setMarker(l,m,"delete_cell",!0);for(k=0;m=f[k++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l);g=n;break a}CKEDITOR.dom.element.clearAllMarkers(l);k=f[0].getParent();(k=k.getPrevious())?g=k.getLast():(k=f[g].getParent(),g=(k=k.getNext())?k.getChild(0):null)}c.reset();for(c= -f.length-1;0<=c;c--)b(f[c]);g?d(g,!0):h&&(e[0].moveToPosition(h,CKEDITOR.POSITION_BEFORE_START),e[0].select(),h.remove())}else c instanceof CKEDITOR.dom.element&&(e=c.getParent(),1==e.getChildCount()?e.remove():c.remove())}function d(a,b){var c=a.getDocument(),d=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(d.focus(),c.focus());c=new CKEDITOR.dom.range(c);c["moveToElementEdit"+(b?"End":"Start")](a)||(c.selectNodeContents(a),c.collapse(b?!1:!0));c.select(!0)}function c(a,b,c){a=a[b]; -if("undefined"==typeof c)return a;for(b=0;a&&bf.length)||(h=b.getCommonAncestor())&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("table"))return!1;b=f[0];h=b.getAscendant("table");var g=CKEDITOR.tools.buildTableMap(h),k=g.length,l=g[0].length,m=b.getParent().$.rowIndex,n=c(g,m,b),p;if(d){var q;try{var t=parseInt(b.getAttribute("rowspan"),10)||1;p=parseInt(b.getAttribute("colspan"), -10)||1;q=g["up"==d?m-t:"down"==d?m+t:m]["left"==d?n-p:"right"==d?n+p:n]}catch(H){return!1}if(!q||b.$==q)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(q))}d=b.getDocument();var E=m,t=q=0,M=!e&&new CKEDITOR.dom.documentFragment(d),I=0;for(d=0;d=l?b.removeAttribute("rowSpan"):b.$.rowSpan=q;q>=k?b.removeAttribute("colSpan"):b.$.colSpan=t;e=new CKEDITOR.dom.nodeList(h.$.rows);f=e.count();for(d=f-1;0<=d;d--)h=e.getItem(d),h.$.cells.length||(h.remove(),f++);return b}function p(b,d){var e=a(b);if(1< -e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),h=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(h),k=f.$.rowIndex,l=c(g,k,e),m=e.$.rowSpan,n;if(1l){f.insertBefore(new CKEDITOR.dom.element(p));break}else p=null;p||h.append(f)}else for(m=n=1,h=f.clone(),h.insertAfter(f),h.append(f=e.clone()),p=c(g,k),l=0;lc)c=f}return c}function m(b,c){for(var d=t(b)?b:a(b),e=d[0].getAscendant("table"),g=f(d,1),d=f(d),h=c?g:d,k=CKEDITOR.tools.buildTableMap(e),e=[],g=[],d=[],l=k.length,m=0;ml?new CKEDITOR.dom.element(h[0][l+1]):k&&-1!==h[0][k-1].cellIndex?new CKEDITOR.dom.element(h[0][k-1]):new CKEDITOR.dom.element(e.$.parentNode);m.length==b&&(d[0].moveToPosition(e,CKEDITOR.POSITION_AFTER_END),d[0].select(),e.remove());return k}function h(a,b){var c=a.getStartElement().getAscendant({td:1,th:1},!0);if(c){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function c(b){if(b instanceof CKEDITOR.dom.selection){var e= +b.getRanges(),f=a(b),g=f[0]&&f[0].getAscendant("table"),h;a:{var k=0;h=f.length-1;for(var l={},m,n;m=f[k++];)CKEDITOR.dom.element.setMarker(l,m,"delete_cell",!0);for(k=0;m=f[k++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l);h=n;break a}CKEDITOR.dom.element.clearAllMarkers(l);k=f[0].getParent();(k=k.getPrevious())?h=k.getLast():(k=f[h].getParent(),h=(k=k.getNext())?k.getChild(0):null)}b.reset();for(b= +f.length-1;0<=b;b--)c(f[b]);h?d(h,!0):g&&(e[0].moveToPosition(g,CKEDITOR.POSITION_BEFORE_START),e[0].select(),g.remove())}else b instanceof CKEDITOR.dom.element&&(e=b.getParent(),1==e.getChildCount()?e.remove():b.remove())}function d(a,b){var c=a.getDocument(),d=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(d.focus(),c.focus());c=new CKEDITOR.dom.range(c);c["moveToElementEdit"+(b?"End":"Start")](a)||(c.selectNodeContents(a),c.collapse(b?!1:!0));c.select(!0)}function b(a,b,c){a=a[b]; +if("undefined"==typeof c)return a;for(b=0;a&&bf.length)||(h=c.getCommonAncestor())&&h.type==CKEDITOR.NODE_ELEMENT&&h.is("table"))return!1;c=f[0];h=c.getAscendant("table");var g=CKEDITOR.tools.buildTableMap(h),k=g.length,l=g[0].length,m=c.getParent().$.rowIndex,n=b(g,m,c),q;if(d){var u;try{var t=parseInt(c.getAttribute("rowspan"),10)||1;q=parseInt(c.getAttribute("colspan"), +10)||1;u=g["up"==d?m-t:"down"==d?m+t:m]["left"==d?n-q:"right"==d?n+q:n]}catch(H){return!1}if(!u||c.$==u)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(u))}d=c.getDocument();var E=m,t=u=0,M=!e&&new CKEDITOR.dom.documentFragment(d),I=0;for(d=0;d=l?c.removeAttribute("rowSpan"):c.$.rowSpan=u;u>=k?c.removeAttribute("colSpan"):c.$.colSpan=t;e=new CKEDITOR.dom.nodeList(h.$.rows);f=e.count();for(d=f-1;0<=d;d--)h=e.getItem(d),h.$.cells.length||(h.remove(),f++);return c}function q(c,d){var e=a(c);if(1< +e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),h=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(h),k=f.$.rowIndex,l=b(g,k,e),m=e.$.rowSpan,n;if(1l){f.insertBefore(new CKEDITOR.dom.element(q));break}else q=null;q||h.append(f)}else for(m=n=1,h=f.clone(),h.insertAfter(f),h.append(f=e.clone()),q=b(g,k),l=0;lf);n++){k[m+n]||(k[m+n]=[]);for(var p=0;p=e)break}}return k};(function(){function a(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function l(a,c){var d=a.getAscendant("table"), -e=c.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(d),h=b(a),g=b(c),k=[],l={},m,n;d.contains(e)&&(c=c.getAscendant({td:1,th:1}),g=b(c));h>g&&(d=h,h=g,g=d,d=a,a=c,c=d);for(d=0;dn&&(d=m,m=n,n=d);for(d=h;d<=g;d++)for(h=m;h<=n;h++)e=new CKEDITOR.dom.element(f[d][h]),e.$&&!e.getCustomData("selected_cell")&&(k.push(e),CKEDITOR.dom.element.setMarker(l,e,"selected_cell",!0));CKEDITOR.dom.element.clearAllMarkers(l); -return k}function g(a){return(a=a.editable().findOne(".cke_table-faked-selection"))&&a.getAscendant("table")}function f(a,b){var c=a.editable().find(".cke_table-faked-selection"),d=a.editable().findOne("[data-cke-table-faked-selection-table]"),e;a.fire("lockSnapshot");a.editable().removeClass("cke_table-faked-selection-editor");for(e=0;eb.count()||(b=l(b.getItem(0),b.getItem(b.count()-1)),e(a,b))}function k(b,c,d){var h=y(b.getSelection(!0));c=c.is("table")?null:c;var g;(g=r.active&&!r.first)&&!(g=c)&&(g=b.getSelection().getRanges(),g=1CKEDITOR.env.version,l=a.blockless||CKEDITOR.env.ie?"span":"div",m,n,p,q;f.getById("cke_table_copybin")||(m=f.createElement(l),n=f.createElement(l),n.setAttributes({id:"cke_table_copybin","data-cke-temp":"1"}),m.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"}),m.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-5000px"),m.setHtml(a.getSelectedHtml(!0)),a.fire("lockSnapshot"),n.append(m),a.editable().append(n),q=a.on("selectionChange",c, -null,null,0),k&&(p=g.scrollTop),h.selectNodeContents(m),h.select(),k&&(g.scrollTop=p),setTimeout(function(){n.remove();d.selectBookmarks(e);q.removeListener();a.fire("unlockSnapshot");b&&(a.extractSelectedHtml(),a.fire("saveSnapshot"))},100))}function p(a){var b=a.editor||a.sender.editor,c=b.getSelection();c.isInTable()&&(c.getRanges()[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored")||n(b,"cut"===a.name))}function q(a){this._reset();a&&this.setSelectedCells(a)}function t(a, -b,c){a.on("beforeCommandExec",function(c){-1!==CKEDITOR.tools.array.indexOf(b,c.data.name)&&(c.data.selectedCells=y(a.getSelection()))});a.on("afterCommandExec",function(d){-1!==CKEDITOR.tools.array.indexOf(b,d.data.name)&&c(a,d.data)})}var r={active:!1},v,y,x,z,A;q.prototype={};q.prototype._reset=function(){this.cells={first:null,last:null,all:[]};this.rows={first:null,last:null}};q.prototype.setSelectedCells=function(a){this._reset();a=a.slice(0);this._arraySortByDOMOrder(a);this.cells.all=a;this.cells.first= -a[0];this.cells.last=a[a.length-1];this.rows.first=a[0].getAscendant("tr");this.rows.last=this.cells.last.getAscendant("tr")};q.prototype.getTableMap=function(){var a=x(this.cells.first),c;a:{c=this.cells.last;var d=c.getAscendant("table"),e=b(c),d=CKEDITOR.tools.buildTableMap(d),f;for(f=0;f=a)return;for(var d=this.cells.first.$.cellIndex,e=this.cells.last.$.cellIndex,f=c?[]:this.cells.all,h,g=0;g=d&&a.$.cellIndex<=e}),f=b?h.concat(f):f.concat(h);this.setSelectedCells(f)};q.prototype.insertColumn=function(a){function c(a){a=b(a);return a>=f&&a<=h}if("undefined"===typeof a)a=1;else if(0>= -a)return;for(var d=this.cells,e=d.all,f=b(d.first),h=b(d.last),d=0;de);n++){k[m+n]||(k[m+n]=[]);for(var q=0;q=f)break}}return k};(function(){function a(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function l(a,b){var d=a.getAscendant("table"), +e=b.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(d),h=c(a),g=c(b),k=[],l={},m,n;d.contains(e)&&(b=b.getAscendant({td:1,th:1}),g=c(b));h>g&&(d=h,h=g,g=d,d=a,a=b,b=d);for(d=0;dn&&(d=m,m=n,n=d);for(d=h;d<=g;d++)for(h=m;h<=n;h++)e=new CKEDITOR.dom.element(f[d][h]),e.$&&!e.getCustomData("selected_cell")&&(k.push(e),CKEDITOR.dom.element.setMarker(l,e,"selected_cell",!0));CKEDITOR.dom.element.clearAllMarkers(l); +return k}function g(a){return(a=a.editable().findOne(".cke_table-faked-selection"))&&a.getAscendant("table")}function e(a,b){var c=a.editable().find(".cke_table-faked-selection"),d=a.editable().findOne("[data-cke-table-faked-selection-table]"),e;a.fire("lockSnapshot");a.editable().removeClass("cke_table-faked-selection-editor");for(e=0;eb.count()||(b=l(b.getItem(0),b.getItem(b.count()-1)),f(a,b))}function k(b,c,d){var h=y(b.getSelection(!0));c=c.is("table")?null:c;var g;(g=r.active&&!r.first)&&!(g=c)&&(g=b.getSelection().getRanges(),g=1CKEDITOR.env.version,l=a.blockless||CKEDITOR.env.ie?"span":"div",m,n,q,p;f.getById("cke_table_copybin")||(m=f.createElement(l),n=f.createElement(l),n.setAttributes({id:"cke_table_copybin","data-cke-temp":"1"}),m.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"}),m.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-5000px"),m.setHtml(a.getSelectedHtml(!0)),a.fire("lockSnapshot"),n.append(m),a.editable().append(n),p=a.on("selectionChange",c, +null,null,0),k&&(q=g.scrollTop),h.selectNodeContents(m),h.select(),k&&(g.scrollTop=q),setTimeout(function(){n.remove();d.selectBookmarks(e);p.removeListener();a.fire("unlockSnapshot");b&&(a.extractSelectedHtml(),a.fire("saveSnapshot"))},100))}function q(a){var b=a.editor||a.sender.editor,c=b.getSelection();c.isInTable()&&(c.getRanges()[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored")||n(b,"cut"===a.name))}function u(a){this._reset();a&&this.setSelectedCells(a)}function t(a, +b,c){a.on("beforeCommandExec",function(c){-1!==CKEDITOR.tools.array.indexOf(b,c.data.name)&&(c.data.selectedCells=y(a.getSelection()))});a.on("afterCommandExec",function(d){-1!==CKEDITOR.tools.array.indexOf(b,d.data.name)&&c(a,d.data)})}var r={active:!1},p,y,x,z,B;u.prototype={};u.prototype._reset=function(){this.cells={first:null,last:null,all:[]};this.rows={first:null,last:null}};u.prototype.setSelectedCells=function(a){this._reset();a=a.slice(0);this._arraySortByDOMOrder(a);this.cells.all=a;this.cells.first= +a[0];this.cells.last=a[a.length-1];this.rows.first=a[0].getAscendant("tr");this.rows.last=this.cells.last.getAscendant("tr")};u.prototype.getTableMap=function(){var a=x(this.cells.first),b;a:{b=this.cells.last;var d=b.getAscendant("table"),e=c(b),d=CKEDITOR.tools.buildTableMap(d),f;for(f=0;f=a)return;for(var d=this.cells.first.$.cellIndex,e=this.cells.last.$.cellIndex,f=c?[]:this.cells.all,h,g=0;g=d&&a.$.cellIndex<=e}),f=b?h.concat(f):f.concat(h);this.setSelectedCells(f)};u.prototype.insertColumn=function(a){function b(a){a=c(a);return a>=f&&a<=h}if("undefined"===typeof a)a=1;else if(0>= +a)return;for(var d=this.cells,e=d.all,f=c(d.first),h=c(d.last),d=0;df)l[0].moveToElementEditablePosition(k?m:n,!k),g.selectRanges([l[0]]);else if(13!==f||13===h||h===CKEDITOR.SHIFT+ 13){for(e=0;eCKEDITOR.env.version)},onLoad:function(){v=CKEDITOR.plugins.tabletools;y=v.getSelectedCells;x=v.getCellColIndex;z=v.insertRow;A=v.insertColumn;CKEDITOR.document.appendStyleSheet(this.path+ -"styles/tableselection.css")},init:function(a){this.isSupportedEnvironment()&&(a.addContentsCss&&a.addContentsCss(this.path+"styles/tableselection.css"),a.on("contentDom",function(){var b=a.editable(),e=b.isInline()?b:a.document,f={editor:a};b.attachListener(e,"mousedown",d,null,f);b.attachListener(e,"mousemove",d,null,f);b.attachListener(e,"mouseup",d,null,f);b.attachListener(b,"dragstart",c);b.attachListener(a,"selectionCheck",h);CKEDITOR.plugins.tableselection.keyboardIntegration(a);CKEDITOR.plugins.clipboard&& -!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&(b.attachListener(b,"cut",p),b.attachListener(b,"copy",p))}),a.on("paste",w.onPaste,w),t(a,"rowInsertBefore rowInsertAfter columnInsertBefore columnInsertAfter cellInsertBefore cellInsertAfter".split(" "),function(a,b){e(a,b.selectedCells)}),t(a,["cellMerge","cellMergeRight","cellMergeDown"],function(a,b){e(a,[b.commandData.cell])}),t(a,["cellDelete"],function(a){f(a,!0)}))}})})();CKEDITOR.plugins.add("taoqtiimage",{init:function(a){a.addCommand("insertQtiImage", +d.getRanges();e=c[0].getEnclosedNode().getAscendant({td:1,th:1},!0);for(f=0;fCKEDITOR.env.version)},onLoad:function(){p=CKEDITOR.plugins.tabletools;y=p.getSelectedCells;x=p.getCellColIndex;z=p.insertRow;B=p.insertColumn;CKEDITOR.document.appendStyleSheet(this.path+ +"styles/tableselection.css")},init:function(a){this.isSupportedEnvironment()&&(a.addContentsCss&&a.addContentsCss(this.path+"styles/tableselection.css"),a.on("contentDom",function(){var c=a.editable(),e=c.isInline()?c:a.document,f={editor:a};c.attachListener(e,"mousedown",d,null,f);c.attachListener(e,"mousemove",d,null,f);c.attachListener(e,"mouseup",d,null,f);c.attachListener(c,"dragstart",b);c.attachListener(a,"selectionCheck",h);CKEDITOR.plugins.tableselection.keyboardIntegration(a);CKEDITOR.plugins.clipboard&& +!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&(c.attachListener(c,"cut",q),c.attachListener(c,"copy",q))}),a.on("paste",w.onPaste,w),t(a,"rowInsertBefore rowInsertAfter columnInsertBefore columnInsertAfter cellInsertBefore cellInsertAfter".split(" "),function(a,b){f(a,b.selectedCells)}),t(a,["cellMerge","cellMergeRight","cellMergeDown"],function(a,b){f(a,[b.commandData.cell])}),t(a,["cellDelete"],function(a){e(a,!0)}))}})})();CKEDITOR.plugins.add("taoqtiimage",{init:function(a){a.addCommand("insertQtiImage", {exec:function(a){var g=a.config.taoQtiItem;"function"===typeof g.insert&&(a.insertHtml('\x3cspan data-new\x3d"true" data-qti-class\x3d"img" class\x3d"widget-box"\x3e\x26nbsp;\x3c/span\x3e'),g.insert.call(a))}});a.ui.addButton("TaoQtiImage",{label:a.lang.insertQtiImage.button,command:"insertQtiImage",icon:this.path+"images/taoqtiimage.png"})}});CKEDITOR.plugins.add("taoqtimaths",{init:function(a){a.addCommand("insertQtiMaths",{exec:function(a){var g=a.config.taoQtiItem;"function"===typeof g.insert&& (a.insertHtml('\x3cspan data-new\x3d"true" data-qti-class\x3d"math" class\x3d"widget-box"\x3e\x26nbsp;\x3c/span\x3e'),g.insert.call(a))}});a.ui.addButton("TaoQtiMaths",{label:a.lang.insertQtiMaths.button,command:"insertQtiMaths",icon:this.path+"images/taoqtimaths.png"})}});CKEDITOR.plugins.add("taoqtimedia",{init:function(a){a.addCommand("insertQtiMedia",{exec:function(a){var g=a.config.taoQtiItem;"function"===typeof g.insert&&(a.insertHtml('\x3cspan data-new\x3d"true" data-qti-class\x3d"object" class\x3d"widget-box"\x3e\x26nbsp;\x3c/span\x3e'), g.insert.call(a))}});a.ui.addButton("TaoQtiMedia",{label:a.lang.insertQtiMedia.button,command:"insertQtiMedia",icon:this.path+"images/taoqtimedia.png"})}});CKEDITOR.plugins.add("taoqtitable",{requires:"dialog",icons:this.path+"images/taoqtitable.png",hidpi:!1,init:function(a){var l=!0;if("table"===a.element.getAttribute("data-qti-class"))l=!1;else if(a.blockless)return;var g=a.lang.table;a.addCommand("taoqtitable",new CKEDITOR.dialogCommand("taoqtitable",{context:"table",allowedContent:"table[summary];caption tbody thead tfoot;th td tr[scope];"+ (a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table"}));a.addCommand("taoqtitableProperties",new CKEDITOR.dialogCommand("taoqtitableProperties"));l&&a.ui.addButton&&a.ui.addButton("TaoQtiTable",{label:g.toolbar,command:"taoqtitable",toolbar:"insert,30",icon:this.path+"images/taoqtitable.png"});CKEDITOR.dialog.add("taoqtitable",this.path+"dialogs/taoqtitable.js");CKEDITOR.dialog.add("taoqtitableProperties",this.path+"dialogs/taoqtitable.js")}});CKEDITOR.plugins.add("taounderline", -{init:function(a){var l=new CKEDITOR.style({element:"span",attributes:{"class":"txt-underline"}}),g=["u",["span",function(a){return"underline"==a.styles["text-decoration"]}]];g.unshift(l);a.attachStyleStateChange(l,function(f){!a.readOnly&&a.getCommand("spanUnderline").setState(f)});a.addCommand("spanUnderline",new CKEDITOR.styleCommand(l,{contentForms:g}));a.ui.addButton("TaoUnderline",{label:a.lang.spanUnderline.button,command:"spanUnderline",icon:this.path+"images/taounderline.png"})}});CKEDITOR.plugins.add("taotooltip", -{init:function(a){function l(a){a=a.getSelection().getNative();var c;if(c=null!==a)if(c=a.getRangeAt(0),!(c=a&&a.isCollapsed&&!e(a.getRangeAt(c.startContainer))))if(a=!a.isCollapsed&&a.getRangeAt(0)){b=!1;g(a.cloneContents());if(c=""!==a.toString().trim()){c=f(a.startContainer);var h=f(a.endContainer);c=c.isSameNode(h)}c=c&&!b&&!e(a.startContainer)}else c=!1;return c}function g(a){a=a.childNodes;var c,e;for(e=0;e=h.$.length&&(c=new CKEDITOR.dom.range(a.document),g.$.nextSibling?(t=new CKEDITOR.dom.text(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE),t.insertAfter(g),c.moveToElementEditablePosition(t)):c.moveToClosestEditablePosition(g,!0),d.selectRanges([c]),k(a))):e(a)&&(a.fire("saveSnapshot"),a.fire("lockSnapshot"), -g=new CKEDITOR.dom.element("ruby",a.document),q=new CKEDITOR.dom.element("rb",a.document),q.append(l(d)),t=new CKEDITOR.dom.element("rt",a.document),t.appendHtml("\x26nbsp;"),g.append(q),g.append(t),a.insertElement(g),c=new CKEDITOR.dom.range(a.document),c.moveToElementEditablePosition(t),a.getSelection().selectRanges([c]),k(a),a.fire("unlockSnapshot"))}});a.on("instanceReady",function(){var b=a.editable();a.getCommand("rubyFurigana").setState(CKEDITOR.TRISTATE_DISABLED);b.attachListener(b,"mouseup", -function(){k(a)});b.attachListener(b,"keyup",function(){k(a)})});a.ui.addButton("TaoFurigana",{label:a.lang.rubyFurigana.button,command:"rubyFurigana",icon:this.path+"images/taofurigana.png"})}});"use strict";(function(){function a(a,d){return CKEDITOR.tools.array.reduce(d,function(a,b){return b(a)},a)}var l=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],g={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(a){function d(a){e.enabled&&!1!==a.data.command.canUndo&&e.save()}function c(){e.enabled= -a.readOnly?!1:"wysiwyg"==a.mode;e.onChange()}var e=a.undoManager=new f(a),h=e.editingHandler=new k(e),g=a.addCommand("undo",{exec:function(){e.undo()&&(a.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),m=a.addCommand("redo",{exec:function(){e.redo()&&(a.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});a.setKeystroke([[l[0],"undo"],[l[1],"redo"],[l[2],"redo"]]);e.onChange=function(){g.setState(e.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED); -m.setState(e.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};a.on("beforeCommandExec",d);a.on("afterCommandExec",d);a.on("saveSnapshot",function(a){e.save(a.data&&a.data.contentOnly)});a.on("contentDom",h.attachListeners,h);a.on("instanceReady",function(){a.fire("saveSnapshot")});a.on("beforeModeUnload",function(){"wysiwyg"==a.mode&&e.save(!0)});a.on("mode",c);a.on("readOnly",c);a.ui.addButton&&(a.ui.addButton("Undo",{label:a.lang.undo.undo,command:"undo",toolbar:"undo,10"}),a.ui.addButton("Redo", -{label:a.lang.undo.redo,command:"redo",toolbar:"undo,20"}));a.resetUndo=function(){e.reset();a.fire("saveSnapshot")};a.on("updateSnapshot",function(){e.currentImage&&e.update()});a.on("lockSnapshot",function(a){a=a.data;e.lock(a&&a.dontUpdate,a&&a.forceUpdate)});a.on("unlockSnapshot",e.unlock,e)}});CKEDITOR.plugins.undo={};var f=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,"")})};f.prototype={type:function(a,d){var c=f.getKeyGroup(a),e=this.strokesRecorded[c]+1;d=d||e>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());d?(e=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[c]=e;this.previousKeyGroup=c},keyGroupChanged:function(a){return f.getKeyGroup(a)!= -this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(a,d,c){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;d||(d=new e(f));if(!1===d.contents)return!1;if(this.currentImage)if(d.equalsContent(this.currentImage)){if(a||d.equalsSelection(this.currentImage))return!1}else!1!==c&&f.fire("change");h.splice(this.index+1,h.length-this.index-1);h.length==this.limit&&h.shift();this.index=h.push(d)-1;this.currentImage=d;!1!==c&&this.refreshState();return!0},restoreImage:function(a){var d=this.editor,c;a.bookmarks&&(d.focus(),c=d.getSelection());this.locked={level:999};this.editor.loadSnapshot(a.contents); -a.bookmarks?c.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(c=this.editor.document.getBody().$.createTextRange(),c.collapse(!0),c.select());this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();d.fire("change")},getNextImage:function(a){var d=this.snapshots,c=this.currentImage,e;if(c)if(a)for(e=this.index-1;0<=e;e--){if(a=d[e],!c.equalsContent(a))return a.index=e,a}else for(e=this.index+1;e=this.undoManager.strokesLimit&&(this.undoManager.type(a.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(a){var d=this.undoManager;a=a.data.getKey();var c=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a); -if(!(f.ieFunctionalKeysBug(a)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new e(d.editor,!0))))if(0=h.$.length&&(d=new CKEDITOR.dom.range(a.document),g.$.nextSibling?(p=new CKEDITOR.dom.text(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE),p.insertAfter(g),d.moveToElementEditablePosition(p)):d.moveToClosestEditablePosition(g,!0),c.selectRanges([d]),k(a))):f(a)&&(a.fire("saveSnapshot"), +a.fire("lockSnapshot"),g=new CKEDITOR.dom.element("ruby",a.document),r=new CKEDITOR.dom.element("rb",a.document),r.append(l(c)),p=new CKEDITOR.dom.element("rt",a.document),p.appendHtml("\x26nbsp;"),g.append(r),g.append(p),a.insertElement(g),d=new CKEDITOR.dom.range(a.document),d.moveToElementEditablePosition(p),a.getSelection().selectRanges([d]),k(a),a.fire("unlockSnapshot"))}});a.on("instanceReady",function(){var b=a.editable();a.getCommand("rubyFurigana").setState(CKEDITOR.TRISTATE_DISABLED);b.attachListener(b, +"mouseup",function(){k(a)});b.attachListener(b,"keyup",function(){k(a)})});a.ui.addButton("TaoFurigana",{label:a.lang.rubyFurigana.button,command:"rubyFurigana",icon:this.path+"images/taofurigana.png"})}});"use strict";(function(){function a(a,d){return CKEDITOR.tools.array.reduce(d,function(a,c){return c(a)},a)}var l=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],g={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(a){function d(a){f.enabled&&!1!==a.data.command.canUndo&& +f.save()}function b(){f.enabled=a.readOnly?!1:"wysiwyg"==a.mode;f.onChange()}var f=a.undoManager=new e(a),h=f.editingHandler=new k(f),g=a.addCommand("undo",{exec:function(){f.undo()&&(a.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),m=a.addCommand("redo",{exec:function(){f.redo()&&(a.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});a.setKeystroke([[l[0],"undo"],[l[1],"redo"],[l[2],"redo"]]);f.onChange=function(){g.setState(f.undoable()?CKEDITOR.TRISTATE_OFF: +CKEDITOR.TRISTATE_DISABLED);m.setState(f.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};a.on("beforeCommandExec",d);a.on("afterCommandExec",d);a.on("saveSnapshot",function(a){f.save(a.data&&a.data.contentOnly)});a.on("contentDom",h.attachListeners,h);a.on("instanceReady",function(){a.fire("saveSnapshot")});a.on("beforeModeUnload",function(){"wysiwyg"==a.mode&&f.save(!0)});a.on("mode",b);a.on("readOnly",b);a.ui.addButton&&(a.ui.addButton("Undo",{label:a.lang.undo.undo,command:"undo", +toolbar:"undo,10"}),a.ui.addButton("Redo",{label:a.lang.undo.redo,command:"redo",toolbar:"undo,20"}));a.resetUndo=function(){f.reset();a.fire("saveSnapshot")};a.on("updateSnapshot",function(){f.currentImage&&f.update()});a.on("lockSnapshot",function(a){a=a.data;f.lock(a&&a.dontUpdate,a&&a.forceUpdate)});a.on("unlockSnapshot",f.unlock,f)}});CKEDITOR.plugins.undo={};var e=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,"")})};e.prototype={type:function(a,d){var b=e.getKeyGroup(a),f=this.strokesRecorded[b]+1;d=d||f>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());d?(f=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[b]=f;this.previousKeyGroup=b},keyGroupChanged:function(a){return e.getKeyGroup(a)!= +this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(a,d,b){var e=this.editor;if(this.locked||"ready"!=e.status||"wysiwyg"!=e.mode)return!1;var h=e.editable();if(!h|| +"ready"!=h.status)return!1;h=this.snapshots;d||(d=new f(e));if(!1===d.contents)return!1;if(this.currentImage)if(d.equalsContent(this.currentImage)){if(a||d.equalsSelection(this.currentImage))return!1}else!1!==b&&e.fire("change");h.splice(this.index+1,h.length-this.index-1);h.length==this.limit&&h.shift();this.index=h.push(d)-1;this.currentImage=d;!1!==b&&this.refreshState();return!0},restoreImage:function(a){var d=this.editor,b;a.bookmarks&&(d.focus(),b=d.getSelection());this.locked={level:999};this.editor.loadSnapshot(a.contents); +a.bookmarks?b.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(b=this.editor.document.getBody().$.createTextRange(),b.collapse(!0),b.select());this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();d.fire("change")},getNextImage:function(a){var d=this.snapshots,b=this.currentImage,e;if(b)if(a)for(e=this.index-1;0<=e;e--){if(a=d[e],!b.equalsContent(a))return a.index=e,a}else for(e=this.index+1;e=this.undoManager.strokesLimit&&(this.undoManager.type(a.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(a){var d=this.undoManager;a=a.data.getKey();var b=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a); +if(!(e.ieFunctionalKeysBug(a)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new f(d.editor,!0))))if(0CKEDITOR.env.version&&g.enterMode!=CKEDITOR.ENTER_DIV&&f("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10this.$.offsetHeight){var c=g.createRange();c[33==b?"moveToElementEditStart":"moveToElementEditEnd"](this);c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(h,"blur",function(){try{h.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(h,"touchend",function(){a.focus()});b=g.document.getElementsByTag("title").getItem(0); -b.data("cke-title",b.getText());CKEDITOR.env.ie&&(g.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");g.fire("contentDom");this._.isPendingFocus&&(g.focus(),this._.isPendingFocus=!1);setTimeout(function(){g.fire("dataReady")},0)},0,this)}}function l(a){function f(){var b;a.editable().attachListener(a,"selectionChange",function(){var c=a.getSelection().getSelectedElement();c&&(b&&(b.detachEvent("onresizestart",g),b=null),c.$.attachEvent("onresizestart", -g),b=c.$)})}function g(a){a.returnValue=!1}if(CKEDITOR.env.gecko)try{var h=a.document.$;h.execCommand("enableObjectResizing",!1,!a.config.disableObjectResizing);h.execCommand("enableInlineTableEditing",!1,!a.config.disableNativeTableHandles)}catch(b){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&a.config.disableObjectResizing&&f(a)}function g(){var a=[];if(8<=CKEDITOR.document.$.documentMode){a.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var f=[],g;for(g in CKEDITOR.dtd.$removeEmpty)f.push("html.CSS1Compat "+ -g+"[contenteditable\x3dfalse]");a.push(f.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(a.push("html{height:100% !important}"),a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}var f;CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]", -requiredContent:"body"});a.addMode("wysiwyg",function(g){function k(c){c&&c.removeListener();a.isDestroyed()||a.isDetached()||(a.editable(new f(a,b.$.contentWindow.document.body)),a.setData(a.getData(1),g))}var h="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",h=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(h)+"}())":"",b=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+ -h+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');b.setStyles({width:"100%",height:"100%"});b.addClass("cke_wysiwyg_frame").addClass("cke_reset");h=a.ui.space("contents");h.append(b);var d=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(d)b.on("load",k);var c=a.title,l=a.fire("ariaEditorHelpLabel",{}).label;c&&(CKEDITOR.env.ie&&l&&(c+=", "+l),b.setAttribute("title",c));if(l){var c=CKEDITOR.tools.getNextId(),p=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+c+'" class\x3d"cke_voice_label"\x3e'+ -l+"\x3c/span\x3e");h.append(p,1);b.setAttribute("aria-describedby",c)}a.on("beforeModeUnload",function(a){a.removeListener();p&&p.remove()});b.setAttributes({tabIndex:a.tabIndex,allowTransparency:"true"});!d&&k();a.fire("ariaWidget",b)})}});CKEDITOR.editor.prototype.addContentsCss=function(a){var f=this.config,g=f.contentsCss;CKEDITOR.tools.isArray(g)||(f.contentsCss=g?[g]:[]);f.contentsCss.push(a)};f=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler= -CKEDITOR.tools.addFunction(function(e){CKEDITOR.tools.setTimeout(a,0,this,e)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,f){var k=this.editor;if(f)this.setHtml(a),this.fixInitialSelection(),k.fire("dataReady");else{this._.isLoadingData=!0;k._.dataStore={id:1};var h=k.config,b=h.fullPage,d=h.docType,c=CKEDITOR.tools.buildStyleHtml(g()).replace(/