(window.webpackJsonpNVIV=window.webpackJsonpNVIV||[]).push([[23],{1907:function(e,t,n){"use strict";n.r(t),n.d(t,"CKEditorComponent",(function(){return d})),n.d(t,"CKEditorModule",(function(){return h}));var i,o=n(1),a=n(0),r=n(3),s=n(624),l=n(2047),c=n.n(l); /** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ function u(e,t){} /** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ var d=function(){function e(e,t){this.elementRef=e,this.ngZone=t,this.tagName="textarea",this.type="classic",this.ready=new a.EventEmitter,this.dataReady=new a.EventEmitter,this.change=new a.EventEmitter,this.dataChange=new a.EventEmitter,this.dragStart=new a.EventEmitter,this.dragEnd=new a.EventEmitter,this.drop=new a.EventEmitter,this.fileUploadResponse=new a.EventEmitter,this.fileUploadRequest=new a.EventEmitter,this.focus=new a.EventEmitter,this.paste=new a.EventEmitter,this.afterPaste=new a.EventEmitter,this.blur=new a.EventEmitter,this._readOnly=null,this._data=null,this._destroyed=!1,this.editorUrl="https://cdn.ckeditor.com/4.14.1/standard-all/ckeditor.js"}var t;return t=e,Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){if(e!==this._data)return this.instance?(this.instance.setData(e),void(this._data=this.instance.getData())):void(this._data=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.instance?this.instance.readOnly:this._readOnly},set:function(e){this.instance?this.instance.setReadOnly(e):this._readOnly=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;(function(e){if(e.length<1)throw new TypeError("CKEditor URL must be a non-empty string.");return"CKEDITOR"in window?Promise.resolve(CKEDITOR):(i||(i=new Promise((function(t,n){c()(e,(function(e){e?n(e):(t(CKEDITOR),i=void 0)}))}))),i)})(this.editorUrl).then((function(){e._destroyed||e.ngZone.runOutsideAngular(e.createEditor.bind(e))})).catch(window.console.error)},e.prototype.ngOnDestroy=function(){var e=this;this._destroyed=!0,this.ngZone.runOutsideAngular((function(){e.instance&&(e.instance.destroy(),e.instance=null)}))},e.prototype.writeValue=function(e){this.data=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.createEditor=function(){var e=this,t=document.createElement(this.tagName);this.elementRef.nativeElement.appendChild(t),"divarea"===this.type&&(this.config=this.ensureDivareaPlugin(this.config||{}));var n="inline"===this.type?CKEDITOR.inline(t,this.config):CKEDITOR.replace(t,this.config);n.once("instanceReady",(function(t){e.instance=n,e.readOnly=null!==e._readOnly?e._readOnly:e.instance.readOnly,e.subscribe(e.instance);var i=n.undoManager;null!==e.data?(i&&i.lock(),n.setData(e.data,{callback:function(){e.data!==n.getData()&&(i?n.fire("change"):n.fire("dataReady")),i&&i.unlock(),e.ngZone.run((function(){e.ready.emit(t)}))}})):e.ngZone.run((function(){e.ready.emit(t)}))}))},e.prototype.subscribe=function(e){var t=this;e.on("focus",(function(e){t.ngZone.run((function(){t.focus.emit(e)}))})),e.on("paste",(function(e){t.ngZone.run((function(){t.paste.emit(e)}))})),e.on("afterPaste",(function(e){t.ngZone.run((function(){t.afterPaste.emit(e)}))})),e.on("dragend",(function(e){t.ngZone.run((function(){t.dragEnd.emit(e)}))})),e.on("dragstart",(function(e){t.ngZone.run((function(){t.dragStart.emit(e)}))})),e.on("drop",(function(e){t.ngZone.run((function(){t.drop.emit(e)}))})),e.on("fileUploadRequest",(function(e){t.ngZone.run((function(){t.fileUploadRequest.emit(e)}))})),e.on("fileUploadResponse",(function(e){t.ngZone.run((function(){t.fileUploadResponse.emit(e)}))})),e.on("blur",(function(e){t.ngZone.run((function(){t.onTouched&&t.onTouched(),t.blur.emit(e)}))})),e.on("dataReady",this.propagateChange,this),this.instance.undoManager?e.on("change",this.propagateChange,this):e.on("selectionCheck",this.propagateChange,this)},e.prototype.propagateChange=function(e){var t=this;this.ngZone.run((function(){var n=t.instance.getData();"change"===e.name?t.change.emit(e):"dataReady"===e.name&&t.dataReady.emit(e),n!==t.data&&(t._data=n,t.dataChange.emit(n),t.onChange&&t.onChange(n))}))},e.prototype.ensureDivareaPlugin=function(e){var t=e.extraPlugins,n=e.removePlugins;return t=(t=this.removePlugin(t,"divarea")||"").concat("string"==typeof t?",divarea":"divarea"),n&&n.includes("divarea")&&(n=this.removePlugin(n,"divarea"),console.warn("[CKEDITOR] divarea plugin is required to initialize editor using Angular integration.")),Object.assign({},e,{extraPlugins:t,removePlugins:n})},e.prototype.removePlugin=function(e,t){if(!e)return null;var n="string"==typeof e;return n&&(e=e.split(",")),e=e.filter((function(e){return e!==t})),n&&(e=e.join(",")),e},e.ctorParameters=function(){return[{type:a.ElementRef},{type:a.NgZone}]},Object(o.b)([Object(a.Input)()],e.prototype,"config",void 0),Object(o.b)([Object(a.Input)()],e.prototype,"tagName",void 0),Object(o.b)([Object(a.Input)()],e.prototype,"type",void 0),Object(o.b)([Object(a.Input)()],e.prototype,"data",null),Object(o.b)([Object(a.Input)()],e.prototype,"readOnly",null),Object(o.b)([Object(a.Output)()],e.prototype,"ready",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"dataReady",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"change",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"dataChange",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"dragStart",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"dragEnd",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"drop",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"fileUploadResponse",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"fileUploadRequest",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"focus",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"paste",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"afterPaste",void 0),Object(o.b)([Object(a.Output)()],e.prototype,"blur",void 0),Object(o.b)([Object(a.Input)()],e.prototype,"editorUrl",void 0),e.ɵfac=function(t){return new(t||e)(a["ɵɵdirectiveInject"](a.ElementRef),a["ɵɵdirectiveInject"](a.NgZone))},e.ɵcmp=a["ɵɵdefineComponent"]({type:e,selectors:[["ckeditor"]],inputs:{tagName:"tagName",type:"type",editorUrl:"editorUrl",data:"data",readOnly:"readOnly",config:"config"},outputs:{ready:"ready",dataReady:"dataReady",change:"change",dataChange:"dataChange",dragStart:"dragStart",dragEnd:"dragEnd",drop:"drop",fileUploadResponse:"fileUploadResponse",fileUploadRequest:"fileUploadRequest",focus:"focus",paste:"paste",afterPaste:"afterPaste",blur:"blur"},features:[a["ɵɵProvidersFeature"]([{provide:s.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0}])],decls:1,vars:0,template:function(e,t){1&e&&a["ɵɵtemplate"](0,u,0,0,"ng-template")},encapsulation:2}),e}(),h=function(){function e(){}return e.ɵmod=a["ɵɵdefineNgModule"]({type:e}),e.ɵinj=a["ɵɵdefineInjector"]({factory:function(t){return new(t||e)},imports:[[s.FormsModule,r.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&a["ɵɵsetNgModuleScope"](e,{declarations:function(){return[d]},imports:function(){return[s.FormsModule,r.CommonModule]},exports:function(){return[d]}}),e}(); /** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */},2045:function(e,t){!function(){if(!window.CKEDITOR||!window.CKEDITOR.dom){window.CKEDITOR||(window.CKEDITOR=function(){var e=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,t={timestamp:"K5H9",version:"4.14.1 (Standard)",revision:"eb2d11644",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:e},status:"unloaded",basePath:function(){var t=window.CKEDITOR_BASEPATH||"";if(!t)for(var n=document.getElementsByTagName("script"),i=0;il.getListenerIndex(n)){l=l.listeners,i||(i=this),isNaN(a)&&(a=10);var c=this;r.fn=n,r.priority=a;for(var u=l.length-1;0<=u;u--)if(l[u].priority<=a)return l.splice(u+1,0,r),{removeListener:s};l.unshift(r)}return{removeListener:s}},once:function(){var e=Array.prototype.slice.call(arguments),t=e[1];return e[1]=function(e){return e.removeListener(),t.apply(this,arguments)},this.on.apply(this,e)},capture:function(){CKEDITOR.event.useCapture=1;var e=this.on.apply(this,arguments);return CKEDITOR.event.useCapture=0,e},fire:function(){var e=0,n=function(){e=1},i=0,o=function(){i=1};return function(a,r,s){var l=t(this)[a];a=e;var c=i;if((e=i=0,l)&&(d=l.listeners).length)for(var u,d=d.slice(0),h=0;hdocument.documentMode),mobile:-1i||n.quirks),n.gecko&&(t=e.match(/rv:([\d\.]+)/))&&(i=1e4*(t=t[1].split("."))[0]+100*(t[1]||0)+1*(t[2]||0)),n.air&&(i=parseFloat(e.match(/ adobeair\/(\d+)/)[1])),n.webkit&&(i=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),n.version=i,n.isCompatible=!(n.ie&&7>i||n.gecko&&4e4>i||n.webkit&&534>i),n.hidpi=2<=window.devicePixelRatio,n.needsBrFiller=n.gecko||n.webkit||n.ie&&10i,n.cssClass="cke_browser_"+(n.ie?"ie":n.gecko?"gecko":n.webkit?"webkit":"unknown"),n.quirks&&(n.cssClass+=" cke_browser_quirks"),n.ie&&(n.cssClass+=" cke_browser_ie"+(n.quirks?"6 cke_browser_iequirks":n.version)),n.air&&(n.cssClass+=" cke_browser_air"),n.iOS&&(n.cssClass+=" cke_browser_ios"),n.hidpi&&(n.cssClass+=" cke_hidpi"),n}()),"unloaded"==CKEDITOR.status&&(CKEDITOR.event.implementOn(CKEDITOR),CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var e=document.createElement("script");e.type="text/javascript",e.src=CKEDITOR.basePath+"ckeditor.js",document.getElementsByTagName("head")[0].appendChild(e)}},CKEDITOR.loadFullCoreTimeout=0,CKEDITOR.add=function(e){(this._.pending||(this._.pending=[])).push(e)},CKEDITOR.domReady((function(){var e=CKEDITOR.loadFullCore,t=CKEDITOR.loadFullCoreTimeout;e&&(CKEDITOR.status="basic_ready",e&&e._load?e():t&&setTimeout((function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()}),1e3*t))})),CKEDITOR.status="basic_loaded"),CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:e,additionalData:t})},CKEDITOR.error=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:e,additionalData:t})},CKEDITOR.on("log",(function(e){if(window.console&&window.console.log){var t=console[e.data.type]?e.data.type:"log",n=e.data.errorCode;(e=e.data.additionalData)?console[t]("[CKEDITOR] Error code: "+n+".",e):console[t]("[CKEDITOR] Error code: "+n+"."),console[t]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+n)}}),null,null,999),CKEDITOR.dom={},function(){function e(e,t,n){this._minInterval=e,this._context=n,this._lastOutput=this._scheduledTimer=0,this._output=CKEDITOR.tools.bind(t,n||{});var i=this;this.input=function(){function e(){i._lastOutput=(new Date).getTime(),i._scheduledTimer=0,i._call()}if(!i._scheduledTimer||!1!==i._reschedule()){var t=(new Date).getTime()-i._lastOutput;t/g,r=/",amp:"&",quot:'"',nbsp:" ",shy:"­"},u=function(e,t){return"#"==t[0]?String.fromCharCode(parseInt(t.slice(1),10)):c[t]};CKEDITOR.on("reset",(function(){n=[]})),CKEDITOR.tools={arrayCompare:function(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var n=0;n"+t+""):n.push(''));return n.join("")},htmlEncode:function(e){return null==e?"":String(e).replace(o,"&").replace(a,">").replace(r,"<")},htmlDecode:function(e){return e.replace(l,u)},htmlEncodeAttr:function(e){return CKEDITOR.tools.htmlEncode(e).replace(s,""")},htmlDecodeAttr:function(e){return CKEDITOR.tools.htmlDecode(e)},transformPlainTextToHtml:function(e,t){var n=t==CKEDITOR.ENTER_BR,i=(i=this.htmlEncode(e.replace(/\r\n/g,"\n"))).replace(/\t/g,"    "),o=t==CKEDITOR.ENTER_P?"p":"div";if(!n){var a=/\n{2}/g;if(a.test(i)){var r="<"+o+">",s="";i=r+i.replace(a,(function(){return s+r}))+s}}return i=i.replace(/\n/g,"
"),n||(i=i.replace(new RegExp("
(?=)"),(function(e){return CKEDITOR.tools.repeat(e,2)}))),(i=i.replace(/^ | $/g," ")).replace(/(>|\s) /g,(function(e,t){return t+" "})).replace(/ (?=<)/g," ")},getNextNumber:function(){var e=0;return function(){return++e}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var e="e",t=0;8>t;t++)e+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e},override:function(e,t){var n=t(e);return n.prototype=e.prototype,n},setTimeout:function(e,t,n,i,o){return o||(o=window),n||(n=o),o.setTimeout((function(){i?e.apply(n,[].concat(i)):e.apply(n)}),t||0)},throttle:function(e,t,n){return new this.buffers.throttle(e,t,n)},trim:function(){var e=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(t){return t.replace(e,"")}}(),ltrim:function(){var e=/^[ \t\n\r]+/g;return function(t){return t.replace(e,"")}}(),rtrim:function(){var e=/[ \t\n\r]+$/g;return function(t){return t.replace(e,"")}}(),indexOf:function(e,t){if("function"==typeof t){for(var n=0,i=e.length;n',CKEDITOR.document),CKEDITOR.document.getBody().append(e)),!/%$/.test(t)){var n=0>parseFloat(t);return n&&(t=t.replace("-","")),e.setStyle("width",t),t=e.$.clientWidth,n?-t:t}return t}}(),repeat:function(e,t){return Array(t+1).join(e)},tryThese:function(){for(var e,t=0,n=arguments.length;tt;t++)e[t]=("0"+parseInt(e[t],10).toString(16)).slice(-2);return"#"+e.join("")}))},normalizeHex:function(e){return e.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,(function(e,t,n,i){return 3==(e=t.toLowerCase()).length&&(e=[(e=e.split(""))[0],e[0],e[1],e[1],e[2],e[2]].join("")),"#"+e+i}))},parseCssText:function(e,t,n){var i={};return n&&(e=new CKEDITOR.dom.element("span").setAttribute("style",e).getAttribute("style")||""),e&&(e=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(e))),e&&";"!=e?(e.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,(function(e,n,o){t&&("font-family"==(n=n.toLowerCase())&&(o=o.replace(/\s*,\s*/g,",")),o=CKEDITOR.tools.trim(o)),i[n]=o})),i):i},writeCssText:function(e,t){var n,i=[];for(n in e)i.push(n+":"+e[n]);return t&&i.sort(),i.join("; ")},objectCompare:function(e,t,n){var i;if(!e&&!t)return!0;if(!e||!t)return!1;for(i in e)if(e[i]!=t[i])return!1;if(!n)for(i in t)if(e[i]!=t[i])return!1;return!0},objectKeys:function(e){return CKEDITOR.tools.object.keys(e)},convertArrayToObject:function(e,t){var n={};1==arguments.length&&(t=!0);for(var i=0,o=e.length;in;n++)e.push(Math.floor(256*Math.random()));for(n=0;nr)for(o=r;3>o;o++)a[o]=0;for(s[0]=(252&a[0])>>2,s[1]=(3&a[0])<<4|a[1]>>4,s[2]=(15&a[1])<<2|(192&a[2])>>6,s[3]=63&a[2],o=0;4>o;o++)n=o<=r?n+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s[o]):n+"="}return n},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(e){var t={},n=this._findColor(e);return n.length&&(t.color=n[0],CKEDITOR.tools.array.forEach(n,(function(t){e=e.replace(t,"")}))),(e=CKEDITOR.tools.trim(e))&&(t.unprocessed=e),t},margin:function(e){return CKEDITOR.tools.style.parse.sideShorthand(e,(function(e){return e.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||["0px"]}))},sideShorthand:function(e,t){function n(e){i.top=o[e[0]],i.right=o[e[1]],i.bottom=o[e[2]],i.left=o[e[3]]}var i={},o=t?t(e):e.split(/\s+/);switch(o.length){case 1:n([0,0,0,0]);break;case 2:n([0,1,0,1]);break;case 3:n([0,1,2,1]);break;case 4:n([0,1,2,3])}return i},border:function(e){return CKEDITOR.tools.style.border.fromCssRule(e)},_findColor:function(e){var t=[],n=CKEDITOR.tools.array;return(t=(t=t.concat(e.match(this._rgbaRegExp)||[])).concat(e.match(this._hslaRegExp)||[])).concat(n.filter(e.split(/\s+/),(function(e){return!!e.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)||e.toLowerCase()in CKEDITOR.tools.style.parse._colors})))}}},array:{filter:function(e,t,n){var i=[];return this.forEach(e,(function(o,a){t.call(n,o,a,e)&&i.push(o)})),i},find:function(e,t,n){for(var i=e.length,o=0;oCKEDITOR.env.version&&(!e||"object"!=typeof e)){if(t=[],"string"==typeof e)for(n=0;nCKEDITOR.env.version)for(o=0;oCKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&function t(n){if(n.type==CKEDITOR.NODE_ELEMENT||n.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(n.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var i=n.getName();":"==i[0]&&n.renameNode(i.substring(1))}if(e)for(i=0;it.sourceIndex||0>n.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:t.sourceIndex=document.documentMode||!t||(e=t+":"+e),new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(e))},getHead:function(){var e=this.$.getElementsByTagName("head")[0];return e?new CKEDITOR.dom.element(e):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(e){this.$.open("text/html","replace"),CKEDITOR.env.ie&&(e=e.replace(/(?:^\s*]*?>)|^/i,'$&\n