(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cda7042"],{"475d":function(e,t,n){},8187:function(e,t){
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
*******************************************************************************/
KindEditor.lang({source:"HTML代码",preview:"预览",undo:"后退(Ctrl+Z)",redo:"前进(Ctrl+Y)",cut:"剪切(Ctrl+X)",copy:"复制(Ctrl+C)",paste:"粘贴(Ctrl+V)",plainpaste:"粘贴为无格式文本",wordpaste:"从Word粘贴",selectall:"全选(Ctrl+A)",justifyleft:"左对齐",justifycenter:"居中",justifyright:"右对齐",justifyfull:"两端对齐",insertorderedlist:"编号",insertunorderedlist:"项目符号",indent:"增加缩进",outdent:"减少缩进",subscript:"下标",superscript:"上标",formatblock:"段落",fontname:"字体",fontsize:"文字大小",forecolor:"文字颜色",hilitecolor:"文字背景",bold:"粗体(Ctrl+B)",italic:"斜体(Ctrl+I)",underline:"下划线(Ctrl+U)",strikethrough:"删除线",removeformat:"删除格式",image:"图片",multiimage:"批量图片上传",flash:"Flash",media:"视音频",table:"表格",tablecell:"单元格",hr:"插入横线",emoticons:"插入表情",link:"超级链接",unlink:"取消超级链接",fullscreen:"全屏显示",about:"关于",print:"打印(Ctrl+P)",filemanager:"文件空间",code:"插入程序代码",map:"Google地图",baidumap:"百度地图",lineheight:"行距",clearhtml:"清理HTML代码",pagebreak:"插入分页符",quickformat:"一键排版",insertfile:"插入文件",template:"插入模板",anchor:"锚点",yes:"确定",no:"取消",close:"关闭",editImage:"图片属性",deleteImage:"删除图片",editFlash:"Flash属性",deleteFlash:"删除Flash",editMedia:"视音频属性",deleteMedia:"删除视音频",editLink:"超级链接属性",deleteLink:"取消超级链接",editAnchor:"锚点属性",deleteAnchor:"删除锚点",tableprop:"表格属性",tablecellprop:"单元格属性",tableinsert:"插入表格",tabledelete:"删除表格",tablecolinsertleft:"左侧插入列",tablecolinsertright:"右侧插入列",tablerowinsertabove:"上方插入行",tablerowinsertbelow:"下方插入行",tablerowmerge:"向下合并单元格",tablecolmerge:"向右合并单元格",tablerowsplit:"拆分行",tablecolsplit:"拆分列",tablecoldelete:"删除列",tablerowdelete:"删除行",noColor:"无颜色",pleaseSelectFile:"请选择文件。",invalidImg:"请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",invalidMedia:"请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",invalidWidth:"宽度必须为数字。",invalidHeight:"高度必须为数字。",invalidBorder:"边框必须为数字。",invalidUrl:"请输入有效的URL地址。",invalidRows:"行数为必选项,只允许输入大于0的数字。",invalidCols:"列数为必选项,只允许输入大于0的数字。",invalidPadding:"边距必须为数字。",invalidSpacing:"间距必须为数字。",invalidJson:"服务器发生故障。",uploadSuccess:"上传成功。",cutError:"您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。",copyError:"您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。",pasteError:"您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。",ajaxLoading:"加载中,请稍候 ...",uploadLoading:"上传中,请稍候 ...",uploadError:"上传错误","plainpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","wordpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","code.pleaseInput":"请输入程序代码。","link.url":"URL","link.linkType":"打开类型","link.newWindow":"新窗口","link.selfWindow":"当前窗口","flash.url":"URL","flash.width":"宽度","flash.height":"高度","flash.upload":"上传","flash.viewServer":"文件空间","media.url":"URL","media.width":"宽度","media.height":"高度","media.autostart":"自动播放","media.upload":"上传","media.viewServer":"文件空间","image.remoteImage":"网络图片","image.localImage":"本地上传","image.remoteUrl":"图片地址","image.localUrl":"上传文件","image.size":"图片大小","image.width":"宽","image.height":"高","image.resetSize":"重置大小","image.align":"对齐方式","image.defaultAlign":"默认方式","image.leftAlign":"左对齐","image.rightAlign":"右对齐","image.imgTitle":"图片说明","image.upload":"浏览...","image.viewServer":"图片空间","multiimage.uploadDesc":"允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>","multiimage.startUpload":"开始上传","multiimage.clearAll":"全部清空","multiimage.insertAll":"全部插入","multiimage.queueLimitExceeded":"文件数量超过限制。","multiimage.fileExceedsSizeLimit":"文件大小超过限制。","multiimage.zeroByteFile":"无法上传空文件。","multiimage.invalidFiletype":"文件类型不正确。","multiimage.unknownError":"发生异常,无法上传。","multiimage.pending":"等待上传","multiimage.uploadError":"上传失败","filemanager.emptyFolder":"空文件夹","filemanager.moveup":"移到上一级文件夹","filemanager.viewType":"显示方式:","filemanager.viewImage":"缩略图","filemanager.listImage":"详细信息","filemanager.orderType":"排序方式:","filemanager.fileName":"名称","filemanager.fileSize":"大小","filemanager.fileType":"类型","insertfile.url":"URL","insertfile.title":"文件说明","insertfile.upload":"上传","insertfile.viewServer":"文件空间","table.cells":"单元格数","table.rows":"行数","table.cols":"列数","table.size":"大小","table.width":"宽度","table.height":"高度","table.percent":"%","table.px":"px","table.space":"边距间距","table.padding":"边距","table.spacing":"间距","table.align":"对齐方式","table.textAlign":"水平对齐","table.verticalAlign":"垂直对齐","table.alignDefault":"默认","table.alignLeft":"左对齐","table.alignCenter":"居中","table.alignRight":"右对齐","table.alignTop":"顶部","table.alignMiddle":"中部","table.alignBottom":"底部","table.alignBaseline":"基线","table.border":"边框","table.borderWidth":"边框","table.borderColor":"颜色","table.backgroundColor":"背景颜色","map.address":"地址: ","map.search":"搜索","baidumap.address":"地址: ","baidumap.search":"搜索","baidumap.insertDynamicMap":"插入动态地图","anchor.name":"锚点名称","formatblock.formatBlock":{h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",p:"正 文"},"fontname.fontName":{SimSun:"宋体",NSimSun:"新宋体",FangSong_GB2312:"仿宋_GB2312",KaiTi_GB2312:"楷体_GB2312",SimHei:"黑体","Microsoft YaHei":"微软雅黑",Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"},"lineheight.lineHeight":[{1:"单倍行距"},{1.5:"1.5倍行距"},{2:"2倍行距"},{2.5:"2.5倍行距"},{3:"3倍行距"}],"template.selectTemplate":"可选模板","template.replaceContent":"替换当前内容","template.fileList":{"1.html":"图片和文字","2.html":"表格","3.html":"项目编号"}},"zh-CN"),KindEditor.options.langType="zh-CN"},c7ea:function(module,exports){
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2014 kindsoft.net
*
* @author Roddy
* @website http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
* @version 4.1.10 (2014-06-10)
*******************************************************************************/
(function(window,undefined){if(!window.KindEditor){window.console||(window.console={}),console.log||(console.log=function(){});var _VERSION="4.1.10 (2014-06-10)",_ua=navigator.userAgent.toLowerCase(),_IE=_ua.indexOf("msie")>-1&&-1==_ua.indexOf("opera"),_NEWIE=-1==_ua.indexOf("msie")&&_ua.indexOf("trident")>-1,_GECKO=_ua.indexOf("gecko")>-1&&-1==_ua.indexOf("khtml"),_WEBKIT=_ua.indexOf("applewebkit")>-1,_OPERA=_ua.indexOf("opera")>-1,_MOBILE=_ua.indexOf("mobile")>-1,_IOS=/ipad|iphone|ipod/.test(_ua),_QUIRKS="CSS1Compat"!=document.compatMode,_IERANGE=!window.getSelection,_matches=/(?:msie|firefox|webkit|opera)[\/:\s](\d+)/.exec(_ua),_V=_matches?_matches[1]:"0",_TIME=(new Date).getTime(),_round=Math.round,K={DEBUG:!1,VERSION:_VERSION,IE:_IE,GECKO:_GECKO,WEBKIT:_WEBKIT,OPERA:_OPERA,V:_V,TIME:_TIME,each:_each,isArray:_isArray,isFunction:_isFunction,inArray:_inArray,inString:_inString,trim:_trim,addUnit:_addUnit,removeUnit:_removeUnit,escape:_escape,unescape:_unescape,toCamel:_toCamel,toHex:_toHex,toMap:_toMap,toArray:_toArray,undef:_undef,invalidUrl:_invalidUrl,addParam:_addParam,extend:_extend,json:_json},_INLINE_TAG_MAP=_toMap("a,abbr,acronym,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,img,input,ins,kbd,label,map,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),_BLOCK_TAG_MAP=_toMap("address,applet,blockquote,body,center,dd,dir,div,dl,dt,fieldset,form,frameset,h1,h2,h3,h4,h5,h6,head,hr,html,iframe,ins,isindex,li,map,menu,meta,noframes,noscript,object,ol,p,pre,script,style,table,tbody,td,tfoot,th,thead,title,tr,ul"),_SINGLE_TAG_MAP=_toMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),_STYLE_TAG_MAP=_toMap("b,basefont,big,del,em,font,i,s,small,span,strike,strong,sub,sup,u"),_CONTROL_TAG_MAP=_toMap("img,table,input,textarea,button"),_PRE_TAG_MAP=_toMap("pre,style,script"),_NOSPLIT_TAG_MAP=_toMap("html,head,body,td,tr,table,ol,ul,li"),_AUTOCLOSE_TAG_MAP=_toMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),_FILL_ATTR_MAP=_toMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),_VALUE_TAG_MAP=_toMap("input,button,textarea,select");K.basePath=_getBasePath(),K.options={designMode:!0,fullscreenMode:!1,filterMode:!0,wellFormatMode:!0,shadowMode:!0,loadStyleMode:!0,basePath:K.basePath,themesPath:K.basePath+"themes/",langPath:K.basePath+"lang/",pluginsPath:K.basePath+"plugins/",themeType:"default",langType:"zh-CN",urlType:"",newlineTag:"p",resizeType:2,syncType:"form",pasteType:2,dialogAlignType:"page",useContextmenu:!0,fullscreenShortcut:!1,bodyClass:"ke-content",indentChar:"\t",cssPath:"",cssData:"",minWidth:650,minHeight:100,minChangeSize:50,zIndex:811213,items:["source","|","undo","redo","|","preview","print","template","code","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","clearhtml","quickformat","selectall","|","fullscreen","/","formatblock","fontname","fontsize","|","forecolor","hilitecolor","bold","italic","underline","strikethrough","lineheight","removeformat","|","image","multiimage","flash","media","insertfile","table","hr","emoticons","baidumap","pagebreak","anchor","link","unlink","|","about"],noDisableItems:["source","fullscreen"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],fontSizeTable:["9px","10px","12px","14px","16px","18px","24px","32px"],htmlTags:{font:["id","class","color","size","face",".background-color"],span:["id","class",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".line-height"],div:["id","class","align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["id","class","border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height",".border-collapse"],"td,th":["id","class","align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background",".border"],a:["id","class","href","target","name"],embed:["id","class","src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess"],img:["id","class","src","width","height","border","alt","title","align",".width",".height",".border"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["id","class","align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],pre:["id","class"],hr:["id","class",".page-break-after"],"br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del":["id","class"],iframe:["id","class","src","frameborder","width","height",".width",".height"]},layout:''};var _useCapture=!1,_INPUT_KEY_MAP=_toMap("8,9,13,32,46,48..57,59,61,65..90,106,109..111,188,190..192,219..222"),_CURSORMOVE_KEY_MAP=_toMap("33..40"),_CHANGE_KEY_MAP={};_each(_INPUT_KEY_MAP,(function(e,t){_CHANGE_KEY_MAP[e]=t})),_each(_CURSORMOVE_KEY_MAP,(function(e,t){_CHANGE_KEY_MAP[e]=t}));var _EVENT_PROPS="altKey,attrChange,attrName,bubbles,button,cancelable,charCode,clientX,clientY,ctrlKey,currentTarget,data,detail,eventPhase,fromElement,handler,keyCode,metaKey,newValue,offsetX,offsetY,originalTarget,pageX,pageY,prevValue,relatedNode,relatedTarget,screenX,screenY,shiftKey,srcElement,target,toElement,view,wheelDelta,which".split(",");_extend(KEvent,{init:function(e,t){var n=this,i=e.ownerDocument||e.document||e;if(n.event=t,_each(_EVENT_PROPS,(function(e,i){n[i]=t[i]})),n.target||(n.target=n.srcElement||i),3===n.target.nodeType&&(n.target=n.target.parentNode),!n.relatedTarget&&n.fromElement&&(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),null==n.pageX&&null!=n.clientX){var a=i.documentElement,o=i.body;n.pageX=n.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0),n.pageY=n.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)}switch(!n.which&&(n.charCode||0===n.charCode?n.charCode:n.keyCode)&&(n.which=n.charCode||n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),n.which||n.button===undefined||(n.which=1&n.button?1:2&n.button?3:4&n.button?2:0),n.which){case 186:n.which=59;break;case 187:case 107:case 43:n.which=61;break;case 189:case 45:n.which=109;break;case 42:n.which=106;break;case 47:n.which=111;break;case 78:n.which=110;break}n.which>=96&&n.which<=105&&(n.which-=48)},preventDefault:function(){var e=this.event;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){var e=this.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},stop:function(){this.preventDefault(),this.stopPropagation()}});var _eventExpendo="kindeditor_"+_TIME,_eventId=0,_eventData={},_readyFinished=!1;window.attachEvent&&window.attachEvent("onunload",(function(){_each(_eventData,(function(e,t){t.el&&_unbind(t.el)}))})),K.ctrl=_ctrl,K.ready=_ready,K.formatUrl=_formatUrl,K.formatHtml=_formatHtml,K.getCssList=_getCssList,K.getAttrList=_getAttrList,K.mediaType=_mediaType,K.mediaAttrs=_mediaAttrs,K.mediaEmbed=_mediaEmbed,K.mediaImg=_mediaImg,K.clearMsWord=_clearMsWord,K.tmpl=_tmpl;var _getSetAttrDiv=document.createElement("div");_getSetAttrDiv.setAttribute("className","t");var _GET_SET_ATTRIBUTE="t"!==_getSetAttrDiv.className;K.query=_query,K.queryAll=_queryAll,_extend(KNode,{init:function(e){var t=this;e=_isArray(e)?e:[e];for(var n=0,i=0,a=e.length;i0?t[0].nodeType:null,t.win=_getWin(t[0])},each:function(e){for(var t=this,n=0;n0?e.eq(0):null},last:function(){var e=this.children();return e.length>0?e.eq(e.length-1):null},index:function(){if(this.length<1)return-1;var e=-1,t=this[0];while(t)e++,t=t.previousSibling;return e},prev:function(){if(this.length<1)return null;var e=this[0].previousSibling;return e?new KNode(e):null},next:function(){if(this.length<1)return null;var e=this[0].nextSibling;return e?new KNode(e):null},scan:function(e,t){if(!(this.length<1))return t=t===undefined||t,n(this[0]),this;function n(i){var a=t?i.firstChild:i.lastChild;while(a){var o=t?a.nextSibling:a.previousSibling;if(!1===e(a))return!1;if(!1===n(a))return!1;a=o}}}}),_each("blur,focus,focusin,focusout,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error,contextmenu".split(","),(function(e,t){KNode.prototype[t]=function(e){return e?this.bind(t,e):this.fire(t)}}));var _K=K;K=function(e,t){if(e!==undefined&&null!==e){if("string"===typeof e){t&&(t=_get(t));var n=e.length;if("@"===e.charAt(0)&&(e=e.substr(1)),e.length!==n||/<.+>/.test(e)){var i=t?t.ownerDocument||t:document,a=i.createElement("div"),o=[];a.innerHTML=''+e;for(var r=0,l=a.childNodes.length;r0?this.setStartBefore(n[0]).setEndAfter(n[n.length-1]):this.setStart(e,0).setEnd(e,0)},collapse:function(e){return e?this.setEnd(this.startContainer,this.startOffset):this.setStart(this.endContainer,this.endOffset)},compareBoundaryPoints:function(e,t){var n=this.get(),i=t.get();if(!_IERANGE)return n.compareBoundaryPoints(e,i);var a={};a[_START_TO_START]="StartToStart",a[_START_TO_END]="EndToStart",a[_END_TO_END]="EndToEnd",a[_END_TO_START]="StartToEnd";var o,r,l,s,d,c=n.compareEndPoints(a[e],i);if(0!==c)return c;if(e!==_START_TO_START&&e!==_END_TO_START||(o=this.startContainer,s=this.startOffset),e!==_START_TO_END&&e!==_END_TO_END||(o=this.endContainer,s=this.endOffset),e!==_START_TO_START&&e!==_START_TO_END||(r=t.startContainer,d=t.startOffset),e!==_END_TO_END&&e!==_END_TO_START||(r=t.endContainer,d=t.endOffset),o===r){var u=s-d;return u>0?1:u<0?-1:0}l=r;while(l&&l.parentNode!==o)l=l.parentNode;if(l)return K(l).index()>=s?-1:1;l=o;while(l&&l.parentNode!==r)l=l.parentNode;return l?K(l).index()>=d?1:-1:(l=K(r).next(),l&&l.contains(o)?1:(l=K(o).next(),l&&l.contains(r)?-1:void 0))},cloneRange:function(){return new KRange(this.doc).setStart(this.startContainer,this.startOffset).setEnd(this.endContainer,this.endOffset)},toString:function(){var e=this.get(),t=_IERANGE?e.text:e.toString();return t.replace(/\r\n|\n|\r/g,"")},cloneContents:function(){return _copyAndDelete(this,!0,!1)},deleteContents:function(){return _copyAndDelete(this,!1,!0)},extractContents:function(){return _copyAndDelete(this,!0,!0)},insertNode:function(e){var t,n,i,a=this,o=a.startContainer,r=a.startOffset,l=a.endContainer,s=a.endOffset,d=1;return"#document-fragment"===e.nodeName.toLowerCase()&&(t=e.firstChild,n=e.lastChild,d=e.childNodes.length),1==o.nodeType?(i=o.childNodes[r],i?(o.insertBefore(e,i),o===l&&(s+=d)):o.appendChild(e)):3==o.nodeType&&(0===r?(o.parentNode.insertBefore(e,o),o.parentNode===l&&(s+=d)):r>=o.nodeValue.length?o.nextSibling?o.parentNode.insertBefore(e,o.nextSibling):o.parentNode.appendChild(e):(i=r>0?o.splitText(r):o,o.parentNode.insertBefore(e,i),o===l&&(l=i,s-=r))),t?a.setStartBefore(t).setEndAfter(n):a.selectNode(e),a.compareBoundaryPoints(_END_TO_END,a.cloneRange().setEnd(l,s))>=1?a:a.setEnd(l,s)},surroundContents:function(e){return e.appendChild(this.extractContents()),this.insertNode(e).selectNode(e)},isControl:function(){var e=this,t=e.startContainer,n=e.startOffset,i=e.endContainer,a=e.endOffset;return 1==t.nodeType&&t===i&&n+1===a&&K(t.childNodes[n]).isControl()},get:function(e){var t,n=this,i=n.doc;if(!_IERANGE){t=i.createRange();try{t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset)}catch(o){}return t}if(e&&n.isControl())return t=i.body.createControlRange(),t.addElement(n.startContainer.childNodes[n.startOffset]),t;var a=n.cloneRange().down();return t=i.body.createTextRange(),t.setEndPoint("StartToStart",_getEndRange(a.startContainer,a.startOffset)),t.setEndPoint("EndToStart",_getEndRange(a.endContainer,a.endOffset)),t},html:function(){return K(this.cloneContents()).outer()},down:function(){var e=this;function t(t,n,i){if(1==t.nodeType){var a,o,r,l,s=K(t).children();if(0!==s.length)n>0&&(a=s.eq(n-1)),n0&&(e=t.endContainer.childNodes[t.endOffset-1])&&1==e.nodeType&&!K(e).isSingle())t.setEnd(e,e.childNodes.length);return t},createBookmark:function(e){var t,n=this,i=n.doc,a=K('',i)[0];return a.id="__kindeditor_bookmark_start_"+_BOOKMARK_ID+++"__",n.collapsed||(t=a.cloneNode(!0),t.id="__kindeditor_bookmark_end_"+_BOOKMARK_ID+++"__"),t&&n.cloneRange().collapse(!1).insertNode(t).setEndBefore(t),n.insertNode(a).setStartAfter(a),{start:e?"#"+a.id:a,end:t?e?"#"+t.id:t:null}},moveToBookmark:function(e){var t=this,n=t.doc,i=K(e.start,n),a=e.end?K(e.end,n):null;return!i||i.length<1||(t.setStartBefore(i[0]),i.remove(),a&&a.length>0?(t.setEndBefore(a[0]),a.remove()):t.collapse(!0)),t},dump:function(){console.log("--------------------"),console.log(3==this.startContainer.nodeType?this.startContainer.nodeValue:this.startContainer,this.startOffset),console.log(3==this.endContainer.nodeType?this.endContainer.nodeValue:this.endContainer,this.endOffset)}}),K.RangeClass=KRange,K.range=_range,K.START_TO_START=_START_TO_START,K.START_TO_END=_START_TO_END,K.END_TO_END=_END_TO_END,K.END_TO_START=_END_TO_START,_extend(KCmd,{init:function(e){var t=this,n=e.doc;t.doc=n,t.win=_getWin(n),t.sel=_getSel(n),t.range=e},selection:function(e){var t=this,n=t.doc,i=_getRng(n);return t.sel=_getSel(n),i?(t.range=_range(i),"html"==K(t.range.startContainer).name&&t.range.selectNodeContents(n.body).collapse(!1),t):(e&&t.range.selectNodeContents(n.body).collapse(!1),t)},select:function(e){e=_undef(e,!0);var t,n=this,i=n.sel,a=n.range.cloneRange().shrink(),o=a.startContainer,r=a.startOffset,l=(a.endContainer,a.endOffset,_getDoc(o)),s=n.win,d=!1;if(e&&1==o.nodeType&&a.collapsed){if(_IERANGE){var c=K(" ",l);a.insertNode(c[0]),t=l.body.createTextRange();try{t.moveToElementText(c[0])}catch(h){}return t.collapse(!1),t.select(),c.remove(),s.focus(),n}if(_WEBKIT){var u=o.childNodes;(K(o).isInline()||r>0&&K(u[r-1]).isInline()||u[r]&&K(u[r]).isInline())&&(a.insertNode(l.createTextNode("")),d=!0)}}if(_IERANGE)try{t=a.get(!0),t.select()}catch(f){}else if(d&&a.collapse(!1),t=a.get(!0),i.removeAllRanges(),i.addRange(t),l!==document){var p=K(t.endContainer).pos();s.scrollTo(p.x,p.y)}return s.focus(),n},wrap:function(e){var t,n=this,i=n.doc,a=n.range;if(t=K(e,i),a.collapsed)return a.shrink(),a.insertNode(t[0]).selectNodeContents(t[0]),n;if(t.isBlock()){var o=t.clone(!0),r=o;while(r.first())r=r.first();return r.append(a.extractContents()),a.insertNode(o[0]).selectNode(o[0]),n}a.enlarge();var l=a.createBookmark(),s=a.commonAncestor(),d=!1;return K(s).scan((function(e){if(d||e!=l.start){if(d){if(e==l.end)return!1;var n=K(e);if(_inPreElement(n))return;if(3==n.type&&_trim(e.nodeValue).length>0){var i;while((i=n.parent())&&i.isStyle()&&1==i.children().length)n=i;_wrapNode(n,t)}}}else d=!0})),a.moveToBookmark(l),n},split:function(e,t){var n,i=this.range,a=i.doc,o=i.cloneRange().collapse(e),r=o.startContainer,l=o.startOffset,s=3==r.nodeType?r.parentNode:r,d=!1;while(s&&s.parentNode){if(n=K(s),t){if(!n.isStyle())break;if(!_hasAttrOrCss(n,t))break}else if(_NOSPLIT_TAG_MAP[n.name])break;d=!0,s=s.parentNode}if(d){var c=a.createElement("span");i.cloneRange().collapse(!e).insertNode(c),e?o.setStartBefore(s.firstChild).setEnd(r,l):o.setStart(r,l).setEndAfter(s.lastChild);var u=o.extractContents(),p=u.firstChild,h=u.lastChild;e?(o.insertNode(u),i.setStartAfter(h).setEndBefore(c)):(s.appendChild(u),i.setStartBefore(c).setEndBefore(p));var f=c.parentNode;if(f==i.endContainer){var m=K(c).prev(),g=K(c).next();m&&g&&3==m.type&&3==g.type?i.setEnd(m[0],m[0].nodeValue.length):e||i.setEnd(i.endContainer,i.endOffset-1)}f.removeChild(c)}return this},remove:function(e){var t,n,i=this,a=i.doc,o=i.range;if(o.enlarge(),0===o.startOffset){var r,l=K(o.startContainer);while((r=l.parent())&&r.isStyle()&&1==r.children().length)l=r;o.setStart(l[0],0),l=K(o.startContainer),l.isBlock()&&_removeAttrOrCss(l,e);var s=l.parent();s&&s.isBlock()&&_removeAttrOrCss(s,e)}if(o.collapsed){if(i.split(!0,e),t=o.startContainer,n=o.startOffset,n>0){var d=K(t.childNodes[n-1]);d&&_isEmptyNode(d)&&(d.remove(),o.setStart(t,n-1))}var c=K(t.childNodes[n]);return c&&_isEmptyNode(c)&&c.remove(),_isEmptyNode(t)&&(o.startBefore(t),t.remove()),o.collapse(!0),i}i.split(!0,e),i.split(!1,e);var u=a.createElement("span"),p=a.createElement("span");o.cloneRange().collapse(!1).insertNode(p),o.cloneRange().collapse(!0).insertNode(u);var h=[],f=!1;K(o.commonAncestor()).scan((function(e){if(f||e!=u)return e!=p&&void(f&&h.push(e));f=!0})),K(u).remove(),K(p).remove(),t=o.startContainer,n=o.startOffset;var m=o.endContainer,g=o.endOffset;if(n>0){var v=K(t.childNodes[n-1]);v&&_isEmptyNode(v)&&(v.remove(),o.setStart(t,n-1),t==m&&o.setEnd(m,g-1));var _=K(t.childNodes[n]);_&&_isEmptyNode(_)&&(_.remove(),t==m&&o.setEnd(m,g-1))}var b=K(m.childNodes[o.endOffset]);b&&_isEmptyNode(b)&&b.remove();var y=o.createBookmark(!0);return _each(h,(function(t,n){_removeAttrOrCss(K(n),e)})),o.moveToBookmark(y),i},commonNode:function(e){var t=this.range,n=t.endContainer,i=t.endOffset,a=3==n.nodeType||0===i?n:n.childNodes[i-1];function o(t){var n=t,i=t;while(i){if(_hasAttrOrCss(K(i),e))return K(i);i=i.parentNode}while(n&&(n=n.lastChild))if(_hasAttrOrCss(K(n),e))return K(n);return null}var r=o(a);if(r)return r;if(1==a.nodeType||3==n.nodeType&&0===i){var l=K(a).prev();if(l)return o(l)}return null},commonAncestor:function(e){var t=this.range,n=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,r=3==n.nodeType||0===i?n:n.childNodes[i-1],l=3==a.nodeType||0===o?a:a.childNodes[o-1];function s(t){while(t){if(1==t.nodeType&&t.tagName.toLowerCase()===e)return t;t=t.parentNode}return null}var d=s(r),c=s(l);return d&&c&&d===c?K(d):null},state:function(e){var t=this,n=t.doc,i=!1;try{i=n.queryCommandState(e)}catch(a){}return i},val:function(e){var t=this,n=t.doc;t.range;function i(e){return e.toLowerCase()}e=i(e);var a,o="";return"fontfamily"===e||"fontname"===e?(o=_nativeCommandValue(n,"fontname"),o=o.replace(/['"]/g,""),i(o)):"formatblock"===e?(o=_nativeCommandValue(n,e),""===o&&(a=t.commonNode({"h1,h2,h3,h4,h5,h6,p,div,pre,address":"*"}),a&&(o=a.name)),"Normal"===o&&(o="p"),i(o)):"fontsize"===e?(a=t.commonNode({"*":".font-size"}),a&&(o=a.css("font-size")),i(o)):"forecolor"===e?(a=t.commonNode({"*":".color"}),a&&(o=a.css("color")),o=_toHex(o),""===o&&(o="default"),i(o)):"hilitecolor"===e?(a=t.commonNode({"*":".background-color"}),a&&(o=a.css("background-color")),o=_toHex(o),""===o&&(o="default"),i(o)):o},toggle:function(e,t){var n=this;return n.commonNode(t)?n.remove(t):n.wrap(e),n.select()},bold:function(){return this.toggle("",{span:".font-weight=bold",strong:"*",b:"*"})},italic:function(){return this.toggle("",{span:".font-style=italic",em:"*",i:"*"})},underline:function(){return this.toggle("",{span:".text-decoration=underline",u:"*"})},strikethrough:function(){return this.toggle("",{span:".text-decoration=line-through",s:"*"})},forecolor:function(e){return this.wrap('').select()},hilitecolor:function(e){return this.wrap('').select()},fontsize:function(e){return this.wrap('').select()},fontname:function(e){return this.fontfamily(e)},fontfamily:function(e){return this.wrap('').select()},removeformat:function(){var e={"*":".font-weight,.font-style,.text-decoration,.color,.background-color,.font-size,.font-family,.text-indent"},t=_STYLE_TAG_MAP;return _each(t,(function(t,n){e[t]="*"})),this.remove(e),this.select()},inserthtml:function(e,t){var n=this,i=n.range;if(""===e)return n;function a(e,t){t=''+t;var i=e.get();i.item?i.item(0).outerHTML=t:i.pasteHTML(t);var a=e.doc.getElementById("__kindeditor_temp_tag__");a.parentNode.removeChild(a);var o=_toRange(i);e.setEnd(o.endContainer,o.endOffset),e.collapse(!1),n.select(!1)}function o(e,t){var i=e.doc,a=i.createDocumentFragment();K("@"+t,i).each((function(){a.appendChild(this)})),e.deleteContents(),e.insertNode(a),e.collapse(!1),n.select(!1)}if(_IERANGE&&t){try{a(i,e)}catch(r){o(i,e)}return n}return o(i,e),n},hr:function(){return this.inserthtml("
")},print:function(){return this.win.print(),this},insertimage:function(e,t,n,i,a,o){t=_undef(t,""),a=_undef(a,0);var r='",this.inserthtml(r)},createlink:function(e,t){var n=this,i=n.doc,a=n.range;n.select();var o=n.commonNode({a:"*"});o&&!a.isControl()&&(a.selectNode(o.get()),n.select());var r='"+_escape(e)+"",n.inserthtml(r);if(a.isControl()){var l=K(a.startContainer.childNodes[a.startOffset]);return r+=">",l.after(K(r,i)),l.next().append(l),a.selectNode(l[0]),n.select()}function s(e,t,n){K(e).attr("href",t).attr("data-ke-src",t),n?K(e).attr("target",n):K(e).removeAttr("target")}var d=a.startContainer,c=a.startOffset,u=a.endContainer,p=a.endOffset;if(1==d.nodeType&&d===u&&c+1===p){var h=d.childNodes[c];if("a"==h.nodeName.toLowerCase())return s(h,e,t),n}return _nativeCommand(i,"createlink","__kindeditor_temp_url__"),K('a[href="__kindeditor_temp_url__"]',i).each((function(){s(this,e,t)})),n},unlink:function(){var e=this,t=e.doc,n=e.range;if(e.select(),n.collapsed){var i=e.commonNode({a:"*"});if(i&&(n.selectNode(i.get()),e.select()),_nativeCommand(t,"unlink",null),_WEBKIT&&"img"===K(n.startContainer).name){var a=K(n.startContainer).parent();"a"===a.name&&a.remove(!0)}}else _nativeCommand(t,"unlink",null);return e}}),_each("formatblock,selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript".split(","),(function(e,t){KCmd.prototype[t]=function(e){var n=this;return n.select(),_nativeCommand(n.doc,t,e),_IERANGE&&_inArray(t,"justifyleft,justifycenter,justifyright,justifyfull".split(","))>=0&&n.selection(),(!_IERANGE||_inArray(t,"formatblock,selectall,insertorderedlist,insertunorderedlist".split(","))>=0)&&n.selection(),n}})),_each("cut,copy,paste".split(","),(function(e,t){KCmd.prototype[t]=function(){var e=this;if(!e.doc.queryCommandSupported(t))throw"not supported";return e.select(),_nativeCommand(e.doc,t,null),e}})),K.CmdClass=KCmd,K.cmd=_cmd,_extend(KWidget,{init:function(e){var t=this;if(t.name=e.name||"",t.doc=e.doc||document,t.win=_getWin(t.doc),t.x=_addUnit(e.x),t.y=_addUnit(e.y),t.z=e.z,t.width=_addUnit(e.width),t.height=_addUnit(e.height),t.div=K(''),t.options=e,t._alignEl=e.alignEl,t.width&&t.div.css("width",t.width),t.height&&t.div.css("height",t.height),t.z&&t.div.css({position:"absolute",left:t.x,top:t.y,"z-index":t.z}),!t.z||t.x!==undefined&&t.y!==undefined||t.autoPos(t.width,t.height),e.cls&&t.div.addClass(e.cls),e.shadowMode&&t.div.addClass("ke-shadow"),e.css&&t.div.css(e.css),e.src?K(e.src).replaceWith(t.div):K(t.doc.body).append(t.div),e.html&&t.div.html(e.html),e.autoScroll)if(_IE&&_V<7||_QUIRKS){var n=_getScrollPos();K(t.win).bind("scroll",(function(e){var i=_getScrollPos(),a=i.x-n.x,o=i.y-n.y;t.pos(_removeUnit(t.x)+a,_removeUnit(t.y)+o,!1)}))}else t.div.css("position","fixed")},pos:function(e,t,n){var i=this;return n=_undef(n,!0),null!==e&&(e=e<0?0:_addUnit(e),i.div.css("left",e),n&&(i.x=e)),null!==t&&(t=t<0?0:_addUnit(t),i.div.css("top",t),n&&(i.y=t)),i},autoPos:function(e,t){var n=this,i=_removeUnit(e)||0,a=_removeUnit(t)||0,o=_getScrollPos();if(n._alignEl){var r=K(n._alignEl),l=r.pos(),s=_round(r[0].clientWidth/2-i/2),d=_round(r[0].clientHeight/2-a/2);x=s<0?l.x:l.x+s,y=d<0?l.y:l.y+d}else{var c=_docElement(n.doc);x=_round(o.x+(c.clientWidth-i)/2),y=_round(o.y+(c.clientHeight-a)/2)}return _IE&&_V<7||_QUIRKS||(x-=o.x,y-=o.y),n.pos(x,y)},remove:function(){var e=this;return(_IE&&_V<7||_QUIRKS)&&K(e.win).unbind("scroll"),e.div.remove(),_each(e,(function(t){e[t]=null})),this},show:function(){return this.div.show(),this},hide:function(){return this.div.hide(),this},draggable:function(e){var t=this;return e=e||{},e.moveEl=t.div,e.moveFn=function(e,n,i,a,o,r){(e+=o)<0&&(e=0),(n+=r)<0&&(n=0),t.pos(e,n)},_drag(e),t}}),K.WidgetClass=KWidget,K.widget=_widget;var html,_direction="";(html=document.getElementsByTagName("html"))&&(_direction=html[0].dir),_extend(KEdit,KWidget,{init:function(e){var t=this;KEdit.parent.init.call(t,e),t.srcElement=K(e.srcElement),t.div.addClass("ke-edit"),t.designMode=_undef(e.designMode,!0),t.beforeGetHtml=e.beforeGetHtml,t.beforeSetHtml=e.beforeSetHtml,t.afterSetHtml=e.afterSetHtml;var n=_undef(e.themesPath,""),i=e.bodyClass,a=e.cssPath,o=e.cssData,r="res:"!=location.protocol&&location.host.replace(/:\d+/,"")!==document.domain,l="document.open();"+(r?'document.domain="'+document.domain+'";':"")+"document.close();",s=_IE?' src="javascript:void(function(){'+encodeURIComponent(l)+'}())"':"";function d(){var l=_iframeDoc(t.iframe);l.open(),r&&(l.domain=document.domain),l.write(_getInitHtml(n,i,a,o)),l.close(),t.win=t.iframe[0].contentWindow,t.doc=l;var s=_cmd(l);t.afterChange((function(e){s.selection()})),_WEBKIT&&K(l).click((function(e){"img"===K(e.target).name&&(s.selection(!0),s.range.selectNode(e.target),s.select())})),_IE&&(t._mousedownHandler=function(){var e=s.range.cloneRange();e.shrink(),e.isControl()&&t.blur()},K(document).mousedown(t._mousedownHandler),K(l).keydown((function(e){if(8==e.which){s.selection();var t=s.range;t.isControl()&&(t.collapse(!0),K(t.startContainer.childNodes[t.startOffset]).remove(),e.preventDefault())}}))),t.cmd=s,t.html(_elementVal(t.srcElement)),_IE?(l.body.disabled=!0,l.body.contentEditable=!0,l.body.removeAttribute("disabled")):l.designMode="on",e.afterCreate&&e.afterCreate.call(t)}t.iframe=K('").css("width","100%"),t.textarea=K('').css("width","100%"),t.tabIndex=isNaN(parseInt(e.tabIndex,10))?t.srcElement.attr("tabindex"):parseInt(e.tabIndex,10),t.iframe.attr("tabindex",t.tabIndex),t.textarea.attr("tabindex",t.tabIndex),t.width&&t.setWidth(t.width),t.height&&t.setHeight(t.height),t.designMode?t.textarea.hide():t.iframe.hide(),r&&t.iframe.bind("load",(function(e){t.iframe.unbind("load"),_IE?d():setTimeout(d,0)})),t.div.append(t.iframe),t.div.append(t.textarea),t.srcElement.hide(),!r&&d()},setWidth:function(e){var t=this;return e=_addUnit(e),t.width=e,t.div.css("width",e),t},setHeight:function(e){var t=this;return e=_addUnit(e),t.height=e,t.div.css("height",e),t.iframe.css("height",e),(_IE&&_V<8||_QUIRKS)&&(e=_addUnit(_removeUnit(e)-2)),t.textarea.css("height",e),t},remove:function(){var e=this,t=e.doc;K(t.body).unbind(),K(t).unbind(),K(e.win).unbind(),e._mousedownHandler&&K(document).unbind("mousedown",e._mousedownHandler),_elementVal(e.srcElement,e.html()),e.srcElement.show(),e.iframe.unbind(),e.textarea.unbind(),KEdit.parent.remove.call(e)},html:function(e,t){var n=this,i=n.doc;if(n.designMode){var a=i.body;return e===undefined?(e=t?""+a.parentNode.innerHTML+"":a.innerHTML,n.beforeGetHtml&&(e=n.beforeGetHtml(e)),_GECKO&&"
"==e&&(e=""),e):(n.beforeSetHtml&&(e=n.beforeSetHtml(e)),_IE&&_V>=9&&(e=e.replace(/(<.*?checked=")checked(".*>)/gi,"$1$2")),K(a).html(e),n.afterSetHtml&&n.afterSetHtml(),n)}return e===undefined?n.textarea.val():(n.textarea.val(e),n)},design:function(e){var t,n=this;return(e===undefined?!n.designMode:e)?n.designMode||(t=n.html(),n.designMode=!0,n.html(t),n.textarea.hide(),n.iframe.show()):n.designMode&&(t=n.html(),n.designMode=!1,n.html(t),n.iframe.hide(),n.textarea.show()),n.focus()},focus:function(){var e=this;return e.designMode?e.win.focus():e.textarea[0].focus(),e},blur:function(){var e=this;if(_IE){var t=K('',e.div);e.div.append(t),t[0].focus(),t.remove()}else e.designMode?e.win.blur():e.textarea[0].blur();return e},afterChange:function(e){var t=this,n=t.doc,i=n.body;function a(t){setTimeout((function(){e(t)}),1)}return K(n).keyup((function(t){t.ctrlKey||t.altKey||!_CHANGE_KEY_MAP[t.which]||e(t)})),K(n).mouseup(e).contextmenu(e),K(t.win).blur(e),K(i).bind("paste",a),K(i).bind("cut",a),t}}),K.EditClass=KEdit,K.edit=_edit,K.iframeDoc=_iframeDoc,_extend(KToolbar,KWidget,{init:function(e){var t=this;function n(e){var t=K(e);return t.hasClass("ke-outline")?t:t.hasClass("ke-toolbar-icon")?t.parent():void 0}function i(e,t){var i=n(e.target);if(i){if(i.hasClass("ke-disabled"))return;if(i.hasClass("ke-selected"))return;i[t]("ke-on")}}KToolbar.parent.init.call(t,e),t.disableMode=_undef(e.disableMode,!1),t.noDisableItemMap=_toMap(_undef(e.noDisableItems,[])),t._itemMap={},t.div.addClass("ke-toolbar").bind("contextmenu,mousedown,mousemove",(function(e){e.preventDefault()})).attr("unselectable","on"),t.div.mouseover((function(e){i(e,"addClass")})).mouseout((function(e){i(e,"removeClass")})).click((function(e){var i=n(e.target);if(i){if(i.hasClass("ke-disabled"))return;t.options.click.call(this,e,i.attr("data-name"))}}))},get:function(e){return this._itemMap[e]?this._itemMap[e]:this._itemMap[e]=K("span.ke-icon-"+e,this.div).parent()},select:function(e){return _selectToolbar.call(this,e,(function(e){e.addClass("ke-selected")})),self},unselect:function(e){return _selectToolbar.call(this,e,(function(e){e.removeClass("ke-selected").removeClass("ke-on")})),self},enable:function(e){var t=this,n=e.get?e:t.get(e);return n&&(n.removeClass("ke-disabled"),n.opacity(1)),t},disable:function(e){var t=this,n=e.get?e:t.get(e);return n&&(n.removeClass("ke-selected").addClass("ke-disabled"),n.opacity(.5)),t},disableAll:function(e,t){var n=this,i=n.noDisableItemMap;return t&&(i=_toMap(t)),(e===undefined?!n.disableMode:e)?(K("span.ke-outline",n.div).each((function(){var e=K(this),t=e[0].getAttribute("data-name",2);i[t]||n.disable(e)})),n.disableMode=!0):(K("span.ke-outline",n.div).each((function(){var e=K(this),t=e[0].getAttribute("data-name",2);i[t]||n.enable(e)})),n.disableMode=!1),n}}),K.ToolbarClass=KToolbar,K.toolbar=_toolbar,_extend(KMenu,KWidget,{init:function(e){var t=this;e.z=e.z||811213,KMenu.parent.init.call(t,e),t.centerLineMode=_undef(e.centerLineMode,!0),t.div.addClass("ke-menu").bind("click,mousedown",(function(e){e.stopPropagation()})).attr("unselectable","on")},addItem:function(e){var t=this;if("-"!==e.title){var n,i=K(''),a=K(''),o=K(''),r=_addUnit(e.height),l=_undef(e.iconClass,"");return t.div.append(i),r&&(i.css("height",r),o.css("line-height",r)),t.centerLineMode&&(n=K(''),r&&n.css("height",r)),i.mouseover((function(e){K(this).addClass("ke-menu-item-on"),n&&n.addClass("ke-menu-item-center-on")})).mouseout((function(e){K(this).removeClass("ke-menu-item-on"),n&&n.removeClass("ke-menu-item-center-on")})).click((function(t){e.click.call(K(this)),t.stopPropagation()})).append(a),n&&i.append(n),i.append(o),e.checked&&(l="ke-icon-checked"),""!==l&&a.html(''),o.html(e.title),t}t.div.append(K(''))},remove:function(){var e=this;return e.options.beforeRemove&&e.options.beforeRemove.call(e),K(".ke-menu-item",e.div[0]).unbind(),KMenu.parent.remove.call(e),e}}),K.MenuClass=KMenu,K.menu=_menu,_extend(KColorPicker,KWidget,{init:function(e){var t=this;e.z=e.z||811213,KColorPicker.parent.init.call(t,e);var n=e.colors||[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]];t.selectedColor=(e.selectedColor||"").toLowerCase(),t._cells=[],t.div.addClass("ke-colorpicker").bind("click,mousedown",(function(e){e.stopPropagation()})).attr("unselectable","on");var i=t.doc.createElement("table");t.div.append(i),i.className="ke-colorpicker-table",i.cellPadding=0,i.cellSpacing=0,i.border=0;var a=i.insertRow(0),o=a.insertCell(0);o.colSpan=n[0].length,t._addAttr(o,"","ke-colorpicker-cell-top");for(var r=0;r').css("background-color",t)):e.html(i.options.noColor),K(e).attr("unselectable","on"),i._cells.push(e)},remove:function(){var e=this;return _each(e._cells,(function(){this.unbind()})),KColorPicker.parent.remove.call(e),e}}),K.ColorPickerClass=KColorPicker,K.colorpicker=_colorpicker,_extend(KUploadButton,{init:function(e){var t=this,n=K(e.button),i=e.fieldName||"file",a=e.url||"",o=n.val(),r=e.extraParams||{},l=n[0].className||"",s=e.target||"kindeditor_upload_iframe_"+(new Date).getTime();e.afterError=e.afterError||function(e){alert(e)};var d=[];for(var c in r)d.push('');var u=['',e.target?"":'
',e.form?'
':'
":"","
"].join(""),p=K(u,n.doc);n.hide(),n.before(p),t.div=p,t.button=n,t.iframe=e.target?K('iframe[name="'+s+'"]'):K("iframe",p),t.form=e.form?K(e.form):K("form",p),t.fileBox=K(".ke-upload-file",p);var h=e.width||K(".ke-button-common",p).width();K(".ke-upload-area",p).width(h),t.options=e},submit:function(){var e=this,t=e.iframe;return t.bind("load",(function(){t.unbind();var n=document.createElement("form");e.fileBox.before(n),K(n).append(e.fileBox),n.reset(),K(n).remove(!0);var i,a=K.iframeDoc(t),o=a.getElementsByTagName("pre")[0],r="";r=o?o.innerHTML:a.body.innerHTML,r=_unescape(r),t[0].src="javascript:false";try{i=K.json(r)}catch(l){e.options.afterError.call(e,""+a.body.parentNode.innerHTML+"")}i&&e.options.afterUpload.call(e,i)})),e.form[0].submit(),e},remove:function(){var e=this;return e.fileBox&&e.fileBox.unbind(),e.iframe.remove(),e.div.remove(),e.button.show(),e}}),K.UploadButtonClass=KUploadButton,K.uploadbutton=_uploadbutton,_extend(KDialog,KWidget,{init:function(e){var t=this,n=_undef(e.shadowMode,!0);e.z=e.z||811213,e.shadowMode=!1,e.autoScroll=_undef(e.autoScroll,!0),KDialog.parent.init.call(t,e);var i=e.title,a=K(e.body,t.doc),o=e.previewBtn,r=e.yesBtn,l=e.noBtn,s=e.closeBtn,d=_undef(e.showMask,!0);t.div.addClass("ke-dialog").bind("click,mousedown",(function(e){e.stopPropagation()}));var c=K('').appendTo(t.div);_IE&&_V<7?t.iframeMask=K('').appendTo(t.div):n&&K('').appendTo(t.div);var u=K('');c.append(u),u.html(i),t.closeIcon=K('').click(s.click),u.append(t.closeIcon),t.draggable({clickEl:u,beforeDrag:e.beforeDrag});var p=K('');c.append(p),p.append(a);var h=K('');if((o||r||l)&&c.append(h),_each([{btn:o,name:"preview"},{btn:r,name:"yes"},{btn:l,name:"no"}],(function(){if(this.btn){var e=_createButton(this.btn);e.addClass("ke-dialog-"+this.name),h.append(e)}})),t.height&&p.height(_removeUnit(t.height)-u.height()-h.height()),t.div.width(t.div.width()),t.div.height(t.div.height()),t.mask=null,d){var f=_docElement(t.doc),m=Math.max(f.scrollWidth,f.clientWidth),g=Math.max(f.scrollHeight,f.clientHeight);t.mask=_widget({x:0,y:0,z:t.z-1,cls:"ke-dialog-mask",width:m,height:g})}t.autoPos(t.div.width(),t.div.height()),t.footerDiv=h,t.bodyDiv=p,t.headerDiv=u,t.isLoading=!1},setMaskIndex:function(e){var t=this;t.mask.div.css("z-index",e)},showLoading:function(e){e=_undef(e,"");var t=this,n=t.bodyDiv;return t.loading=K('").width(n.width()).height(n.height()).css("top",t.headerDiv.height()+"px"),n.css("visibility","hidden").after(t.loading),t.isLoading=!0,t},hideLoading:function(){return this.loading&&this.loading.remove(),this.bodyDiv.css("visibility","visible"),this.isLoading=!1,this},remove:function(){var e=this;return e.options.beforeRemove&&e.options.beforeRemove.call(e),e.mask&&e.mask.remove(),e.iframeMask&&e.iframeMask.remove(),e.closeIcon.unbind(),K("input",e.div).unbind(),K("button",e.div).unbind(),e.footerDiv.unbind(),e.bodyDiv.unbind(),e.headerDiv.unbind(),K("iframe",e.div).each((function(){K(this).remove()})),KDialog.parent.remove.call(e),e}}),K.DialogClass=KDialog,K.dialog=_dialog,K.tabs=_tabs,K.loadScript=_loadScript,K.loadStyle=_loadStyle,K.ajax=_ajax;var _plugins={},_language={};KEditor.prototype={lang:function(e){return _lang(e,this.langType)},loadPlugin:function(e,t){var n=this;return _plugins[e]?_isFunction(_plugins[e])?(_plugins[e].call(n,KindEditor),t&&t.call(n),n):(setTimeout((function(){n.loadPlugin(e,t)}),100),n):(_plugins[e]="loading",_loadScript(n.pluginsPath+e+"/"+e+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){setTimeout((function(){_plugins[e]&&n.loadPlugin(e,t)}),0)})),n)},handler:function(e,t){var n=this;return n._handlers[e]||(n._handlers[e]=[]),_isFunction(t)?(n._handlers[e].push(t),n):(_each(n._handlers[e],(function(){t=this.call(n,t)})),t)},clickToolbar:function(e,t){var n=this,i="clickToolbar"+e;return t===undefined?n._handlers[i]?n.handler(i):(n.loadPlugin(e,(function(){n.handler(i)})),n):n.handler(i,t)},updateState:function(){var e=this;return _each("justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,subscript,superscript,bold,italic,underline,strikethrough".split(","),(function(t,n){e.cmd.state(n)?e.toolbar.select(n):e.toolbar.unselect(n)})),e},addContextmenu:function(e){return this._contextmenus.push(e),this},afterCreate:function(e){return this.handler("afterCreate",e)},beforeRemove:function(e){return this.handler("beforeRemove",e)},beforeGetHtml:function(e){return this.handler("beforeGetHtml",e)},beforeSetHtml:function(e){return this.handler("beforeSetHtml",e)},afterSetHtml:function(e){return this.handler("afterSetHtml",e)},create:function(){var e=this,t=e.fullscreenMode;if(e.isCreated)return e;if(e.srcElement.data("kindeditor"))return e;e.srcElement.data("kindeditor","true"),_docElement().style.overflow=t?"hidden":"";var n=t?_docElement().clientWidth+"px":e.width,i=t?_docElement().clientHeight+"px":e.height;(_IE&&_V<8||_QUIRKS)&&(i=_addUnit(_removeUnit(i)+2));var a=e.container=K(e.layout);t?K(document.body).append(a):e.srcElement.before(a);var o=K(".toolbar",a),r=K(".edit",a),l=e.statusbar=K(".statusbar",a);a.removeClass("container").addClass("ke-container ke-container-"+e.themeType).css("width",n),t?(a.css({position:"absolute",left:0,top:0,"z-index":811211}),_GECKO||(e._scrollPos=_getScrollPos()),window.scrollTo(0,0),K(document.body).css({height:"1px",overflow:"hidden"}),K(document.body.parentNode).css("overflow","hidden"),e._fullscreenExecuted=!0):(e._fullscreenExecuted&&(K(document.body).css({height:"",overflow:""}),K(document.body.parentNode).css("overflow","")),e._scrollPos&&window.scrollTo(e._scrollPos.x,e._scrollPos.y));var s=[];K.each(e.items,(function(t,n){"|"==n?s.push(''):"/"==n?s.push(''):(s.push(''),s.push(''))}));var d=e.toolbar=_toolbar({src:o,html:s.join(""),noDisableItems:e.noDisableItems,click:function(t,n){if(t.stop(),e.menu){var i=e.menu.name;if(e.hideMenu(),i===n)return}e.clickToolbar(n)}}),c=_removeUnit(i)-d.div.height(),u=e.edit=_edit({height:c>0&&_removeUnit(i)>e.minHeight?c:e.minHeight,src:r,srcElement:e.srcElement,designMode:e.designMode,themesPath:e.themesPath,bodyClass:e.bodyClass,cssPath:e.cssPath,cssData:e.cssData,beforeGetHtml:function(t){return t=e.beforeGetHtml(t),t=_removeBookmarkTag(_removeTempTag(t)),_formatHtml(t,e.filterMode?e.htmlTags:null,e.urlType,e.wellFormatMode,e.indentChar)},beforeSetHtml:function(t){return t=_formatHtml(t,e.filterMode?e.htmlTags:null,"",!1),e.beforeSetHtml(t)},afterSetHtml:function(){e.edit=u=this,e.afterSetHtml()},afterCreate:function(){if(e.edit=u=this,e.cmd=u.cmd,e._docMousedownFn=function(t){e.menu&&e.hideMenu()},K(u.doc,document).mousedown(e._docMousedownFn),_bindContextmenuEvent.call(e),_bindNewlineEvent.call(e),_bindTabEvent.call(e),_bindFocusEvent.call(e),u.afterChange((function(t){u.designMode&&(e.updateState(),e.addBookmark(),e.options.afterChange&&e.options.afterChange.call(e))})),u.textarea.keyup((function(t){t.ctrlKey||t.altKey||!_INPUT_KEY_MAP[t.which]||e.options.afterChange&&e.options.afterChange.call(e)})),e.readonlyMode&&e.readonly(),e.isCreated=!0,""===e.initContent&&(e.initContent=e.html()),e._undoStack.length>0){var t=e._undoStack.pop();t.start&&(e.html(t.html),u.cmd.range.moveToBookmark(t),e.select())}e.afterCreate(),e.options.afterCreate&&e.options.afterCreate.call(e)}});function p(){0!==l.height()?e.resize(n,i,!1):setTimeout(p,100)}return l.removeClass("statusbar").addClass("ke-statusbar").append('').append(''),e._fullscreenResizeHandler&&(K(window).unbind("resize",e._fullscreenResizeHandler),e._fullscreenResizeHandler=null),p(),t?(e._fullscreenResizeHandler=function(t){e.isCreated&&e.resize(_docElement().clientWidth,_docElement().clientHeight,!1)},K(window).bind("resize",e._fullscreenResizeHandler),d.select("fullscreen"),l.first().css("visibility","hidden"),l.last().css("visibility","hidden")):(_GECKO&&K(window).bind("scroll",(function(t){e._scrollPos=_getScrollPos()})),e.resizeType>0?_drag({moveEl:a,clickEl:l,moveFn:function(t,n,i,a,o,r){a+=r,e.resize(null,a)}}):l.first().css("visibility","hidden"),2===e.resizeType?_drag({moveEl:a,clickEl:l.last(),moveFn:function(t,n,i,a,o,r){i+=o,a+=r,e.resize(i,a)}}):l.last().css("visibility","hidden")),e},remove:function(){var e=this;return e.isCreated?(e.beforeRemove(),e.srcElement.data("kindeditor",""),e.menu&&e.hideMenu(),_each(e.dialogs,(function(){e.hideDialog()})),K(document).unbind("mousedown",e._docMousedownFn),e.toolbar.remove(),e.edit.remove(),e.statusbar.last().unbind(),e.statusbar.unbind(),e.container.remove(),e.container=e.toolbar=e.edit=e.menu=null,e.dialogs=[],e.isCreated=!1,e):e},resize:function(e,t,n){var i=this;return n=_undef(n,!0),e&&(/%/.test(e)||(e=_removeUnit(e),e=e/gi,"").replace(/ /gi," ")):t.html(_escape(e))},isEmpty:function(){return""===_trim(this.text().replace(/\r\n|\n|\r/,""))},isDirty:function(){return _trim(this.initContent.replace(/\r\n|\n|\r|t/g,""))!==_trim(this.html().replace(/\r\n|\n|\r|t/g,""))},selectedHtml:function(){var e=this.isCreated?this.cmd.range.html():"";return e=_removeBookmarkTag(_removeTempTag(e)),e},count:function(e){var t=this;return e=(e||"html").toLowerCase(),"html"===e?t.html().length:"text"===e?t.text().replace(/<(?:img|embed).*?>/gi,"K").replace(/\r\n|\n|\r/g,"").length:0},exec:function(e){e=e.toLowerCase();var t=this,n=t.cmd,i=_inArray(e,"selectall,copy,paste,print".split(","))<0;return i&&t.addBookmark(!1),n[e].apply(n,_toArray(arguments,1)),i&&(t.updateState(),t.addBookmark(!1),t.options.afterChange&&t.options.afterChange.call(t)),t},insertHtml:function(e,t){return this.isCreated?(e=this.beforeSetHtml(e),this.exec("inserthtml",e,t),this):this},appendHtml:function(e){if(this.html(this.html()+e),this.isCreated){var t=this.cmd;t.range.selectNodeContents(t.doc.body).collapse(!1),t.select()}return this},sync:function(){return _elementVal(this.srcElement,this.html()),this},focus:function(){return this.isCreated?this.edit.focus():this.srcElement[0].focus(),this},blur:function(){return this.isCreated?this.edit.blur():this.srcElement[0].blur(),this},addBookmark:function(e){e=_undef(e,!0);var t,n=this,i=n.edit,a=i.doc.body,o=_removeTempTag(a.innerHTML);if(e&&n._undoStack.length>0){var r=n._undoStack[n._undoStack.length-1];if(Math.abs(o.length-_removeBookmarkTag(r.html).length)0){var n=t.dialogs[0],i=t.dialogs[t.dialogs.length-1];n.setMaskIndex(i.z+2),e.z=i.z+3,e.showMask=!1}var a=_dialog(e);return t.dialogs.push(a),a},hideDialog:function(){var e=this;if(e.dialogs.length>0&&e.dialogs.pop().remove(),e.dialogs.length>0){var t=e.dialogs[0],n=e.dialogs[e.dialogs.length-1];t.setMaskIndex(n.z-1)}return e},errorDialog:function(e){var t=this,n=t.createDialog({width:750,title:t.lang("uploadError"),body:''}),i=K("iframe",n.div),a=K.iframeDoc(i);return a.open(),a.write(e),a.close(),K(a.body).css("background-color","#FFF"),i[0].contentWindow.focus(),t}},_instances=[],K.remove=function(e){_eachEditor(e,(function(e){this.remove(),_instances.splice(e,1)}))},K.sync=function(e){_eachEditor(e,(function(){this.sync()}))},K.html=function(e,t){_eachEditor(e,(function(){this.html(t)}))},K.insertHtml=function(e,t){_eachEditor(e,(function(){this.insertHtml(t)}))},K.appendHtml=function(e,t){_eachEditor(e,(function(){this.appendHtml(t)}))},_IE&&_V<7&&_nativeCommand(document,"BackgroundImageCache",!0),K.EditorClass=KEditor,K.editor=_editor,K.create=_create,K.instances=_instances,K.plugin=_plugin,K.lang=_lang,_plugin("core",(function(e){var t=this,n={undo:"Z",redo:"Y",bold:"B",italic:"I",underline:"U",print:"P",selectall:"A"};if(t.afterSetHtml((function(){t.options.afterChange&&t.options.afterChange.call(t)})),t.afterCreate((function(){if("form"==t.syncType){var n=e(t.srcElement),i=!1;while(n=n.parent())if("form"==n.name){i=!0;break}if(i){n.bind("submit",(function(n){t.sync(),e(window).bind("unload",(function(){t.edit.textarea.remove()}))}));var a=e('[type="reset"]',n);a.click((function(){t.html(t.initContent),t.cmd.selection()})),t.beforeRemove((function(){n.unbind(),a.unbind()}))}}})),t.clickToolbar("source",(function(){t.edit.designMode?(t.toolbar.disableAll(!0),t.edit.design(!1),t.toolbar.select("source")):(t.toolbar.disableAll(!1),t.edit.design(!0),t.toolbar.unselect("source"),_GECKO?setTimeout((function(){t.cmd.selection()}),0):t.cmd.selection()),t.designMode=t.edit.designMode})),t.afterCreate((function(){t.designMode||t.toolbar.disableAll(!0).select("source")})),t.clickToolbar("fullscreen",(function(){t.fullscreen()})),t.fullscreenShortcut){var i=!1;t.afterCreate((function(){if(e(t.edit.doc,t.edit.textarea).keyup((function(e){27==e.which&&setTimeout((function(){t.fullscreen()}),0)})),i){if(_IE&&!t.designMode)return;t.focus()}i||(i=!0)}))}_each("undo,redo".split(","),(function(e,i){n[i]&&t.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){t.clickToolbar(i)}))})),t.clickToolbar(i,(function(){t[i]()}))})),t.clickToolbar("formatblock",(function(){var e=t.lang("formatblock.formatBlock"),n={h1:28,h2:24,h3:18,H4:14,p:12},i=t.cmd.val("formatblock"),a=t.createMenu({name:"formatblock",width:"en"==t.langType?200:150});_each(e,(function(e,o){var r="font-size:"+n[e]+"px;";"h"===e.charAt(0)&&(r+="font-weight:bold;"),a.addItem({title:''+o+"",height:n[e]+12,checked:i===e||i===o,click:function(){t.select().exec("formatblock","<"+e+">").hideMenu()}})}))})),t.clickToolbar("fontname",(function(){var e=t.cmd.val("fontname"),n=t.createMenu({name:"fontname",width:150});_each(t.lang("fontname.fontName"),(function(i,a){n.addItem({title:''+a+"",checked:e===i.toLowerCase()||e===a.toLowerCase(),click:function(){t.exec("fontname",i).hideMenu()}})}))})),t.clickToolbar("fontsize",(function(){var e=t.cmd.val("fontsize"),n=t.createMenu({name:"fontsize",width:150});_each(t.fontSizeTable,(function(i,a){n.addItem({title:''+a+"",height:_removeUnit(a)+12,checked:e===a,click:function(){t.exec("fontsize",a).hideMenu()}})}))})),_each("forecolor,hilitecolor".split(","),(function(e,n){t.clickToolbar(n,(function(){t.createMenu({name:n,selectedColor:t.cmd.val(n)||"default",colors:t.colorTable,click:function(e){t.exec(n,e).hideMenu()}})}))})),_each("cut,copy,paste".split(","),(function(e,n){t.clickToolbar(n,(function(){t.focus();try{t.exec(n,null)}catch(e){alert(t.lang(n+"Error"))}}))})),t.clickToolbar("about",(function(){var e='';t.createDialog({name:"about",width:350,title:t.lang("about"),body:e})})),t.plugin.getSelectedLink=function(){return t.cmd.commonAncestor("a")},t.plugin.getSelectedImage=function(){return _getImageFromRange(t.edit.cmd.range,(function(e){return!/^ke-\w+$/i.test(e[0].className)}))},t.plugin.getSelectedFlash=function(){return _getImageFromRange(t.edit.cmd.range,(function(e){return"ke-flash"==e[0].className}))},t.plugin.getSelectedMedia=function(){return _getImageFromRange(t.edit.cmd.range,(function(e){return"ke-media"==e[0].className||"ke-rm"==e[0].className}))},t.plugin.getSelectedAnchor=function(){return _getImageFromRange(t.edit.cmd.range,(function(e){return"ke-anchor"==e[0].className}))},_each("link,image,flash,media,anchor".split(","),(function(e,n){var i=n.charAt(0).toUpperCase()+n.substr(1);_each("edit,delete".split(","),(function(e,a){t.addContextmenu({title:t.lang(a+i),click:function(){t.loadPlugin(n,(function(){t.plugin[n][a](),t.hideMenu()}))},cond:t.plugin["getSelected"+i],width:150,iconClass:"edit"==a?"ke-icon-"+n:undefined})})),t.addContextmenu({title:"-"})})),t.plugin.getSelectedTable=function(){return t.cmd.commonAncestor("table")},t.plugin.getSelectedRow=function(){return t.cmd.commonAncestor("tr")},t.plugin.getSelectedCell=function(){return t.cmd.commonAncestor("td")},_each("prop,cellprop,colinsertleft,colinsertright,rowinsertabove,rowinsertbelow,rowmerge,colmerge,rowsplit,colsplit,coldelete,rowdelete,insert,delete".split(","),(function(e,n){var i=_inArray(n,["prop","delete"])<0?t.plugin.getSelectedCell:t.plugin.getSelectedTable;t.addContextmenu({title:t.lang("table"+n),click:function(){t.loadPlugin("table",(function(){t.plugin.table[n](),t.hideMenu()}))},cond:i,width:170,iconClass:"ke-icon-table"+n})})),t.addContextmenu({title:"-"}),_each("selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript,hr,print,bold,italic,underline,strikethrough,removeformat,unlink".split(","),(function(e,i){n[i]&&t.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){t.cmd.selection(),t.clickToolbar(i)}))})),t.clickToolbar(i,(function(){t.focus().exec(i,null)}))})),t.afterCreate((function(){var n,i,a,o=t.edit.doc,r="__kindeditor_paste__",l=!1;function s(){n.range.moveToBookmark(i),n.select(),_WEBKIT&&(e("div."+r,a).each((function(){e(this).after("
").remove(!0)})),e("span.Apple-style-span",a).remove(!0),e("span.Apple-tab-span",a).remove(!0),e("span[style]",a).each((function(){"nowrap"==e(this).css("white-space")&&e(this).remove(!0)})),e("meta",a).remove());var o=a[0].innerHTML;a.remove(),""!==o&&(_WEBKIT&&(o=o.replace(/(
)\1/gi,"$1")),2===t.pasteType&&(o=o.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),/schemas-microsoft-com|worddocument|mso-\w+/i.test(o)?o=_clearMsWord(o,t.filterMode?t.htmlTags:e.options.htmlTags):(o=_formatHtml(o,t.filterMode?t.htmlTags:null),o=t.beforeSetHtml(o))),1===t.pasteType&&(o=o.replace(/ /gi," "),o=o.replace(/\n\s*\n/g,"\n"),o=o.replace(/
]*>/gi,"\n"),o=o.replace(/<\/p>]*>/gi,"\n"),o=o.replace(/<[^>]+>/g,""),o=o.replace(/ {2}/g," "),"p"==t.newlineTag?/\n/.test(o)&&(o=o.replace(/^/,"
").replace(/$/,"
").replace(/\n/g,"
")):o=o.replace(/\n/g,"
$&")),t.insertHtml(o,!0))}e(o.body).bind("paste",(function(d){if(0!==t.pasteType){if(!l){if(l=!0,e("div."+r,o).remove(),n=t.cmd.selection(),i=n.range.createBookmark(),a=e('
',o).css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",left:"-1981px",top:e(i.start).pos().y+"px","white-space":"nowrap"}),e(o.body).append(a),_IE){var c=n.range.get(!0);c.moveToElementText(a[0]),c.select(),c.execCommand("paste"),d.preventDefault()}else n.range.selectNodeContents(a[0]),n.select();setTimeout((function(){s(),l=!1}),0)}}else d.stop()}))})),t.beforeGetHtml((function(e){return _IE&&_V<=8&&(e=e.replace(/]*data-ke-input-tag="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(e,t){return unescape(t)})),e=e.replace(/(
]*)?>)/gi,(function(e,t,n){return/\s+type="[^"]+"/i.test(e)?e:t+' type="text"'+n}))),e.replace(/(<(?:noscript|noscript\s[^>]*)>)([\s\S]*?)(<\/noscript>)/gi,(function(e,t,n,i){return t+_unescape(n).replace(/\s+/g," ")+i})).replace(/
]*class="?ke-(flash|rm|media)"?[^>]*>/gi,(function(e){var t=_getAttrList(e),n=_getCssList(t.style||""),i=_mediaAttrs(t["data-ke-tag"]),a=_undef(n.width,""),o=_undef(n.height,"");return/px/i.test(a)&&(a=_removeUnit(a)),/px/i.test(o)&&(o=_removeUnit(o)),i.width=_undef(t.width,a),i.height=_undef(t.height,o),_mediaEmbed(i)})).replace(/
]*class="?ke-anchor"?[^>]*>/gi,(function(e){var t=_getAttrList(e);return'
'})).replace(/
]*data-ke-script-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(e,t,n){return"