text: "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}(),ice=ice||{};ice.editor=function(t,i){return new(function(){function t(e){_classCallCheck(this,t),this.menu=["backColor","fontSize","foreColor","bold","italic","underline","strikeThrough","line","justifyLeft","justifyCenter","justifyRight","indent","outdent","line","insertOrderedList","insertUnorderedList","line","superscript","subscript","createLink","unlink","line","hr","face","table","files","music","video","insertImage","removeFormat","paste","line","code"],this.notMenu=[],this.backColor=["#ffffff","#000000","#eeece1","#1f497d","#4f81bd","#c0504d","#9bbb59","#8064a2","#4bacc6","#f79646","#f2f2f2","#979797","#ddd9c3","#c6d9f0","#dbe5f1","#f2dcdb","#ebf1dd","#e5e0ec","#dbeef3","#fdeada","#d8d8d8","#595959","#c4bd97","#8db3e2","#b8cce4","#e5b9b7","#d7e3bc","#ccc1d9","#b7dde8","#fbd5b5","#bfbfbf","#3f3f3f","#938953","#548dd4","#95b3d7","#d99694","#c3d69b","#b2a2c7","#92cddc","#fac08f","#a5a5a5","#262626","#494429","#17365d","#366092","#953734","#76923c","#5f497a","#31859b","#e36c09","#7f7f7f","#0c0c0c","#1d1b10","#0f243e","#244061","#632423","#4f6128","#3f3151","#205867","#974806","#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],this.foreColor=this.backColor,this.width="100%",this.height="400px",this.code=0,this.maxWindow=1,this.disabled=0,this.css="",this.uploadUrl=0,this.pasteText=1,this.screenshot=1,this.screenshotUpload=1,this.imgAutoUpload=1,this.imgDomain=0,this.ajax.uploadTimeout=15e3,this.ajax.xhr=function(){},this.ajax.formData=function(e){return e},this.ajax.timeout=function(){},this.ajax.progress=function(){},this.ajax.success=function(e){return e},this.ajax.error=function(){},this.ajax.complete=function(){},this.filesUpload={},this.filesUpload.name="file[]",this.filesUpload.formData=function(e){return e},this.filesUpload.success=function(e){return e},this.filesUpload.error=function(){},this.filesUpload.complete=function(){},this.imgUpload={},this.imgUpload.name="file[]",this.imgUpload.formData=function(e){return e},this.imgUpload.success=function(e){return e},this.imgUpload.error=function(){},this.imgUpload.complete=function(){},this.face=[{title:"文字",type:"text",list:[{title:"开心",content:"(^_^)"},{title:"受不了",content:"(>_<)"},{title:"鄙视",content:"(¬､¬)"},{title:"难过",content:"(*>﹏<*)"},{title:"可爱",content:"(｡◕‿◕｡)"},{title:"无奈",content:"╮(╯_╰)╭"},{title:"惊喜",content:"╰(*°▽°*)╯"},{title:"听音乐",content:"♪(^∇^*)"},{title:"害羞",content:"(✿◡‿◡)"},{title:"睡啦",content:"(∪｡∪)..zzZ"},{title:"臭美",content:"(o≖◡≖)"},{title:"流汗",content:"(ーー゛)"}]}],this.filterTag=["meta","script","object","form","iframe"],this.filterStyle=["background-image"],this.blockTag=["address","caption","dd","div","dl","dt","fieldset","h1","h2","h3","h4","h5","h6","legend","fieldset","li","noframes","noscript","ol","ul","p","pre","table","tbody","tfoot","th","thead","tr","video"],this.getTime="1"+String((new Date).getTime()).substr(4,8),this.iframeId="_iframe"+this.getTime,this.toolId="_tool"+this.getTime,this.linkId="_link"+this.getTime,this.linkInputId="_LinkInput"+this.getTime,this.musicId="_music"+this.getTime,this.musicInputId="_musicInput"+this.getTime,this.videoId="_video"+this.getTime,this.imageId="_image"+this.getTime,this.imgUploadId="_imgUpload"+this.getTime,this.filesId="_files"+this.getTime,this.filesUploadId="_filesUpload"+this.getTime,this.tableId="_table"+this.getTime,this.dragId="_drag"+this.getTime,this.menuList={};var o=this;if(this.editor=this.id(e),!this.editor)return alert("请提供一个有效的id");if(this.textarea=0,"TEXTAREA"!==this.editor.nodeName&&"DIV"!==this.editor.nodeName)return console.log("iceEditor：暂不支持该标签「"+this.editor.nodeName+"」，推荐使用div或textarea");if("TEXTAREA"==this.editor.nodeName){this.editor.style.display="none",this.divId="_div"+this.getTime;var a=this.c("div");a.className="iceEditor",a.id=this.divId,this.insertAfter(a,this.editor),this.textarea=this.editor,this.editor=this.id(this.divId),this.value=this.textarea.value}else this.editor.className="iceEditor",this.value=this.editor.innerHTML,this.editor.innerHTML="";this.cssConfig=this.c("style"),this.cssConfig.type="text/css",this.editor.appendChild(this.cssConfig),this.tool=this.c("div"),this.tool.id=this.toolId,this.tool.className="iceEditor-tool iceEditor-noselect",this.editor.appendChild(this.tool),this.iframe=this.c("iframe"),this.iframe.id=this.iframeId,this.iframe.className="iceEditor-noselect",this.iframe.frameBorder=0,this.editor.appendChild(this.iframe),this.dragBg=this.c("div"),this.dragBg.className="iceEditor-dragBg",this.editor.appendChild(this.dragBg),this.drag=this.c("div"),this.drag.id=this.dragId,this.drag.className="iceEditor-drag iceEditor-noselect",this.drag.innerHTML='<svg class="iceEditor-icon" aria-hidden="true"><use xlink:href="#icon-drag"></use></svg>',this.editor.appendChild(this.drag),this.drag.onmousedown=function(e){o.dragBg.style.display="block";var t=e.clientY,i=o.iframe.clientHeight;window.onmousemove=function(e){var a=e.clientY-t;i>=100?(o.iframe.height=i+a+"px",o.height=i+a+"px"):(o.iframe.height="100px",o.height=i+a+"px")},window.onmouseup=function(){window.onmousemove=null,window.onmouseup=null,o.dragBg.style.display="none"}},this.disableds=this.c("div"),this.disableds.className="iceEditor-disabled",this.editor.appendChild(this.disableds),this.w=this.iframe.contentWindow,this.d=this.iframe.contentDocument,this.d.open();var n=this.value.trim();n.length&&"<p>"==n.substr(0,3)||(n="<p>"+this.value+"</p>"),this.d.write('<html><head><style>body{font-family:"Microsoft YaHei";font-size:14px;color:#363636;margin:15px;word-wrap:break-word;word-break:break-all;}img{max-width:100%;}p{margin:0;margin-bottom:5px;min-height:19px;}code{color:#696969;background:#eee;padding:2px 5px;display: inline-block;margin:0 5px;border-radius:3px;border:1px solid #dedede;}.iceEditor-code{font-family:Courier New;font-size:13px;line-height:20px;white-space:pre-wrap;}table{margin:10px 0;}table td{padding:8px;line-height:1.42857143;border:1px solid #bdbdbd;}pre{background:#f3f3f3;padding:10px;border-radius:3px;font-family:"Microsoft YaHei";}</style></head><body>'+n+"</body></html>"),this.d.close(),this.d.body.designMode="on",this.d.body.contentEditable=!0,this.d.body.addEventListener("click",function(){o.parentTagName=o.range.anchorNode.parentNode.tagName;for(var e=0;e<o.menu.length;e++)if("line"!=o.menu[e]){var t=o.menuList[o.menu[e]];o.d.queryCommandState(o.menu[e])?t.className="iceEditor-actives":"iceEditor-line"!=t.className&&"iceEditor-active-s"!=t.className&&(t.className="")}}),this.content=this.d.body,this.textarea&&setInterval(function(){o.setTextarea()},1e3),this.init(),this.create(),this.paste(),this.styleInit(),i&&i.call(this)}return _createClass(t,[{key:"id",value:function(e){return document.getElementById(e)}},{key:"c",value:function(e){return document.createElement(e)}},{key:"init",value:function(){this.files=null,this.insertImage=null,this.element=this.d.body,this.range=this.d.createRange?this.w.getSelection():this.d.selection.createRange()}},{key:"setTextarea",value:function(e,t){if(this.textarea){var i=this.code?this.html(this.getHTML()):this.getHTML();i=i.replace(/<pre(.*?)>(.*?)<\/pre>/gi,function(e){return"<pre"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")+">"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").split("<br>").join("\n")+"</pre>"}),this.textarea.value=i}}},{key:"insertAfter",value:function(e,t){var i=t.parentNode;i.lastChild==t?i.appendChild(e,t):i.insertBefore(e,t.nextSibling)}},{key:"setHTML",value:function(e,t){this.element.focus();var i=this.range.getRangeAt(0);t||e.appendChild(i.extractContents()),i.deleteContents(),i.insertNode(this.w.document.createDocumentFragment().appendChild(e)),i.collapse(!1)}},{key:"setText",value:function(e,t){this.element.focus();var i=this.range.getRangeAt(0);i.deleteContents();var o=document.createElement("div");t?o.innerHTML=e:o.appendChild(document.createTextNode(e));for(var a,n,l=document.createDocumentFragment();a=o.firstChild;)n=l.appendChild(a);i.insertNode(l),n&&(i=i.cloneRange(),i.setStartAfter(n),i.collapse(!0),this.range.removeAllRanges(),this.range.addRange(i)),i.collapse(!0)}},{key:"getSelectHTML",value:function(){var e=this.c("p");return e.appendChild(this.range.getRangeAt(0).cloneContents()),e.innerHTML}},{key:"getSelectText",value:function(){return"false"==this.range.toString()||""==this.range.toString()?"":this.range.toString()}},{key:"unhtml",value:function(e){var t="";return 0==e.length?"":(t=e.replace(/&/g,"&amp;"),t=t.replace(/</g,"&lt;"),t=t.replace(/>/g,"&gt;"),t=t.replace(/\'/g,"&#39;"),t=t.replace(/\"/g,"&quot;"))}},{key:"html",value:function(e){var t="";return 0==e.length?"":(t=e.replace(/&lt;/g,"<"),t=t.replace(/&gt;/g,">"),t=t.replace(/&#39;/g,"'"),t=t.replace(/&quot;/g,'"'),t=t.replace(/&amp;/g,"&"))}},{key:"toText",value:function(e){var t=this.c("div");null!=t.textContent?t.textContent=e:t.innerText=e;var i=t.innerHTML;return t=null,i}},{key:"toHTML",value:function(e){var t=this.c("div");t.innerHTML=e;var i=t.innerText||t.textContent;return t=null,i}},{key:"inNodeParent",value:function(e,t){return!!e&&(!!e.parentNode&&("string"==typeof t?(t=t.toUpperCase(),e.tagName==t||(e.parentNode.tagName==t||this.inNodeParent(e.parentNode,t))):e.parentNode==t||this.inNodeParent(e.parentNode,t)))}},{key:"inArray",value:function(e,t){if("string"==typeof e||"number"==typeof e){for(var i in t)if(e===t[i])return!0;return!1}}},{key:"getRangegetRange",value:function(){return this.range.getRangeAt(0)}},{key:"popup",value:function(e){return e=e||{},'<div class="iceEditor-popup"><div class="iceEditor-popupBox"></div><div class="iceEditor-popupMain" style="width:'+(e.width||"400")+"px;height:"+(e.height||"200")+'px;"><div class="iceEditor-popupTitle"><span>'+(e.title||"")+'</span><span class="iceEditor-popupClose">╳</span></div><div class="iceEditor-popupContent">'+(e.content||"")+"</div></div></div>"}},{key:"getCoords",value:function(e){var t=e.getBoundingClientRect(),i=e.ownerDocument,o=i.body,a=i.documentElement,n=a.clientTop||o.clientTop||0,l=a.clientLeft||o.clientLeft||0;return{top:t.top-n,left:t.left-l}}},{key:"pd",value:function(t){window.event?window.event.cancelBubble=!0:e.stopPropagation()}},{key:"isIE",value:function(){return!!window.ActiveXObject||"ActiveXObject"in window}},{key:"ajax",value:function(e){function t(e){var t=0;t=e.lengthComputable?Math.round(e.loaded/e.total*100):0,i.ajax.progress(t,e,o)}var i=this;if(e=e||{},e.url){e.timeout=e.timeout||i.ajax.uploadTimeout,e.data=e.data||{};var o=new XMLHttpRequest;o.addEventListener("progress",t,!1),o.open("POST",e.url,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.data instanceof FormData==0?o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"):e.data=i.ajax.formData(e.data),i.ajax.xhr(o),o.send(e.data instanceof FormData?e.data:function(e){var t=[];for(var i in e)t.push(i+"="+encodeURIComponent(e[i]));return t.join("&")}(e.data)),e.loading&&e.loading(),e.timer=setTimeout(function(){o.onreadystatechange=null,i.ajax.timeout(o),e.error&&e.error("网络超时。")},e.timeout),o.onreadystatechange=function(){if(4===o.readyState&&200===o.status)if(clearTimeout(e.timer),o.status>=200&&o.status<300||304==o.status){var t="";o.responseText.length>0&&(t=JSON.parse(o.responseText));var a=i.ajax.success(t,o);t=a||t,i.ajax.complete(t,o),e.success&&e.success(t)}else i.ajax.error(o),i.ajax.complete(o),e.error&&e.error(o);else i.ajax.error(o),i.ajax.complete(o)}}}},{key:"createMenu",value:function(e){var t=this,i=this.c("li");if(e.id&&(i.id=e.id),e.css&&(i.className=e.css),e.style&&(this.css+=e.style),e.menu||e.icon){var o=this.c("div");e.title&&(o.title=e.title),o.className="iceEditor-exec",e.menu?o.innerHTML=e.menu:e.icon&&(o.innerHTML='<svg class="iceEditor-icon" aria-hidden="true"><use xlink:href="#icon-'+e.icon+'"></use></svg>'),e.data&&o.setAttribute("data",e.data),i.appendChild(o)}if(e.dropdown){var o=this.c("div");o.className="iceEditor-menuDropdown",o.innerHTML=e.dropdown,i.appendChild(o),i.openMenu=1,i.onmouseover=function(){i.openMenu&&(o.className="iceEditor-menuDropdown iceEditor-menuActive")},i.onmouseout=function(){o.className="iceEditor-menuDropdown"};for(var a=o.getElementsByClassName("iceEditor-exec"),n=0;n<a.length;n++)a[n].addEventListener("click",function(){o.className="iceEditor-menuDropdown",i.openMenu=0,setTimeout(function(){i.openMenu=1},500)})}e.popup&&(i.innerHTML+=this.popup(e.popup),i.popup=i.getElementsByClassName("iceEditor-popup")[0],i.onclick=function(){i.popup.style.display="block",i.popup.getElementsByClassName("iceEditor-popupClose")[0].onclick=function(){i.popup.style.display="none",t.pd()}},i.close=function(){i.popup.style.display="none",t.pd()}),i.success=!!e.success&&e.success,e.click&&(i.onclick=function(){e.click(this,t)}),this.menuList[e.name]=i}},{key:"plugin",value:function(e){return void 0==e.name?console.log("plugin：menu参数不能为空"):this.inArray(e.name,this.menu)?console.log("plugin：menu已经存在，请重新命名"):(this.menu.push(e.name),void this.createMenu(e))}},{key:"menuHTML",value:function(){this.createMenu({title:"文字大小",name:"fontSize",icon:"fontSize",dropdown:'<ul class="iceEditor-fontSize"><li><span class="iceEditor-exec" data="fontSize|1">1</span></li><li><span class="iceEditor-exec" data="fontSize|2">2</span></li><li><span class="iceEditor-exec" data="fontSize|3">3</span></li><li><span class="iceEditor-exec" data="fontSize|4">4</span></li><li><span class="iceEditor-exec" data="fontSize|5">5</span></li><li><span class="iceEditor-exec" data="fontSize|6">6</span></li><li><span class="iceEditor-exec" data="fontSize|7">7</span></li><li class="iceEditor-menuTitle">文字大小</li></ul>'});for(var e='<ul class="iceEditor-backColor">',t=0;t<this.backColor.length;t++)e+='<li><span class="iceEditor-exec" data="backColor|'+this.backColor[t]+'" style="background-color:'+this.backColor[t]+'"></span></li>';e+='<li class="iceEditor-menuTitle">文字背景颜色</li></ul>',this.createMenu({title:"文字背景颜色",name:"backColor",icon:"backColor",dropdown:e});for(var e='<ul class="iceEditor-backColor">',t=0;t<this.foreColor.length;t++)e+='<li><span class="iceEditor-exec" data="foreColor|'+this.foreColor[t]+'" style="background-color:'+this.foreColor[t]+'"></span></li>';e+='<li class="iceEditor-menuTitle">文字颜色</li></ul>',this.createMenu({title:"文字颜色",name:"foreColor",icon:"foreColor",dropdown:e}),this.createMenu({title:"加粗",name:"bold",data:"bold",icon:"bold"}),this.createMenu({title:"倾斜",name:"italic",data:"italic",icon:"italic"}),this.createMenu({title:"下划线",name:"underline",data:"underline",icon:"underline"}),this.createMenu({title:"删除线",name:"strikeThrough",data:"strikeThrough",icon:"strike"}),this.createMenu({title:"左对齐",name:"justifyLeft",data:"justifyLeft",icon:"alignleft"}),this.createMenu({title:"居中对齐",name:"justifyCenter",data:"justifyCenter",icon:"aligncenter"}),this.createMenu({title:"右对齐",name:"justifyRight",data:"justifyRight",icon:"alignright"}),this.createMenu({title:"缩进",name:"indent",data:"indent",icon:"indent"}),this.createMenu({title:"取消缩进",name:"outdent",data:"outdent",icon:"outdent"}),this.createMenu({title:"有序列表",name:"insertOrderedList",data:"insertOrderedList",icon:"orderedlist"}),this.createMenu({title:"无序列表",name:"insertUnorderedList",data:"insertUnorderedList",icon:"unorderedlist"}),this.createMenu({title:"下标",name:"subscript",data:"subscript",icon:"subscript"}),this.createMenu({title:"上标",name:"superscript",data:"superscript",icon:"superscript"}),this.createMenu({title:"取消连接",name:"unlink",data:"unlink",icon:"unlink"}),this.createMenu({title:"添加水平线",name:"hr",data:"insertHorizontalRule",icon:"min"}),this.createMenu({title:"清除格式",name:"removeFormat",data:"removeFormat",icon:"remove"}),this.createMenu({title:"富文本粘贴",name:"paste",icon:"word",success:function(e,t){t.pasteText||(e.className="iceEditor-active-s"),e.onclick=function(){t.pasteText=!t.pasteText,e.className=t.pasteText?"":"iceEditor-active-s"}}}),this.createMenu({title:"全选",name:"selectAll",data:"selectAll",icon:"empty"}),this.createMenu({title:"查看源码",name:"code",icon:"code",data:"code"});for(var e='<div class="iceEditor-face"><div class="iceEditor-faceTitle">',t=0;t<this.face.length;t++)e+="<span>"+this.face[t].title+"</span>";e+='</div><div class="iceEditor-faceMain">';for(var t=0;t<this.face.length;t++){e+='<div class="iceEditor-faceList">';for(var i=0;i<this.face[t].list.length;i++)"img"==this.face[t].type?e+='<span><img title="'+this.face[t].list[i].title+'" src="'+this.face[t].list[i].content+'" alt=""/></span>':e+='<span class="iceEditor-faceText" title="'+this.face[t].list[i].title+'">'+this.face[t].list[i].content+"</span>";e+="</div>"}e+="</div></div>",this.createMenu({title:"插入表情",name:"face",icon:"face",dropdown:e,success:function(e,t){for(var i=e.getElementsByClassName("iceEditor-faceTitle")[0],o=i.getElementsByTagName("span"),a=e.getElementsByClassName("iceEditor-faceMain")[0],n=e.getElementsByClassName("iceEditor-faceList"),l=a.getElementsByTagName("span"),r=0;r<l.length;r++)l[r].onclick=function(){t.setText(" "+this.innerHTML+" ",!0)};for(var r=0;r<o.length;r++)o[r].i=r,o[r].onclick=function(){for(var e=0;e<o.length;e++)n[e].className="iceEditor-faceList",o[e].className="";n[this.i].className="iceEditor-faceList iceEditor-faceActive",o[this.i].className="iceEditor-faceActive"};o[0].className="iceEditor-faceActive",n[0].className="iceEditor-faceList iceEditor-faceActive"},style:"\n\t\t\t.iceEditor-face{width:310px;}\n\t\t\t.iceEditor-face span{cursor:pointer;}\n\t\t\t.iceEditor-faceTitle{border:2px solid #f7f7f7;}\n\t\t\t.iceEditor-faceTitle span{display:inline-block;padding:5px 10px;margin-bottom:-2px;}\n\t\t\t.iceEditor-faceTitle .iceEditor-faceActive{border-bottom:2px solid #333;}\n\t\t\t.iceEditor-faceMain{padding:15px 10px;}\n\t\t\t.iceEditor-faceList{display:none;width:100%;}\n\t\t\t.iceEditor-faceList.iceEditor-faceActive{display:block;}\n\t\t\t.iceEditor-faceList span{margin:3px 7px;display:inline-block;}\n\t\t\t.iceEditor-faceList .iceEditor-faceText{min-width:80px;text-align:center;}\n\t\t\t"}),this.createMenu({title:"表格",name:"table",icon:"table",dropdown:'<ul class="iceEditor-tableMain" id="'+this.tableId+'"><li><div class="iceEditor-tableBox"><div class="iceEditor-tableBgOff"></div><div class="iceEditor-tableBgOn"></div><div class="iceEditor-tableNum">表格：1×1</div></div></li></ul>',success:function(e,t){t.table=t.id(t.tableId);var i=t.table.getElementsByClassName("iceEditor-tableBox")[0],o=t.table.getElementsByClassName("iceEditor-tableBgOn")[0],a=t.table.getElementsByClassName("iceEditor-tableNum")[0];i.onmouseover=function(e){var i=t.getCoords(this),n=1,l=1;this.onmousemove=function(e){var t=e||event,r=t.clientX-i.left-5,s=t.clientY-i.top-5;r<=180&&s<=180&&(n=Math.ceil(r/18),l=Math.ceil(s/18),o.style.width=18*n+"px",o.style.height=18*l+"px",a.innerHTML="表格："+n+"×"+l)},this.onmousedown=function(){var e=t.c("table");e.width="100%",e.border=1,e.style.border="1px solid #bdbdbd",e.style.borderSpacing=0,e.style.borderCollapse="collapse",e.className="table table-border";for(var i=0;i<l;i++)for(var o=e.insertRow(),a=0;a<n;a++){var r=o.insertCell();r.innerHTML="<br/>"}t.setHTML(e,!0)},this.onmouseout=function(){this.onmousemove=null,this.onmouseout=null}}}}),this.createMenu({title:"添加链接",name:"createLink",icon:"link",id:this.linkId,popup:{width:320,height:110,title:"添加链接",content:'<div class="iceEditor-createLink"><div class="iceEditor-row"><label>创建链接：</label><input type="text" id="'+this.linkInputId+'" class="iceEditor-link" placeholder="链接地址" value=""/><a href="javascript:;" class="iceEditor-btn">确定</a></div><div class="iceEditor-row"><label><input type="checkbox" checked="checked" value="1"/> 新窗口打开</label></div></div>'},success:function(e,t){t.link=t.id(t.linkId),t.linkInput=t.id(t.linkInputId),t.link.getElementsByClassName("iceEditor-btn")[0].onclick=function(){var e=t.getSelectHTML().replace(/<a[^>]+>/gi,"").replace(/<\s*\/a\s*>/gi,""),i=t.c("a");t.link.getElementsByTagName("input")[1].checked&&(i.target="_blank"),i.href=t.linkInput.value,i.innerHTML=e,t.setHTML(i,!0),t.link.getElementsByClassName("iceEditor-popup")[0].style.display="none",t.pd()}}}),this.createMenu({title:"添加音乐",name:"music",icon:"music",id:this.musicId,popup:{width:320,height:80,title:"添加音乐",content:'<div class="iceEditor-music"><label>音乐链接：</label><input type="text" id="'+this.musicInputId+'" class="iceEditor-link" placeholder="链接地址" value=""/><a href="javascript:;" class="iceEditor-btn">确定</a></div>'},success:function(e,t){t.music=t.id(t.musicId),t.musicInput=t.id(t.musicInputId),t.music.getElementsByClassName("iceEditor-btn")[0].onclick=function(){var e=t.c("audio");e.src=t.musicInput.value,e.controls="controls",t.setHTML(e,!0),t.music.getElementsByClassName("iceEditor-popup")[0].style.display="none",t.pd()}}}),this.createMenu({title:"附件上传",name:"files",icon:"files",id:this.filesId,popup:{width:320,height:200,title:"附件上传",content:'<div class="iceEditor-insertImage"><input type="file" class="iceEditor-uploadInput" id="'+this.filesUploadId+'" name="file[]" multiple/><div><svg class="iceEditor-icon iceEditor-uploadIcon" aria-hidden="true"><use xlink:href="#icon-files"></use></svg></div><label for="'+this.filesUploadId+'" class="iceEditor-uploadBtn">点击上传附件</label></div>'},success:function(e,t){t.files=t.id(t.filesId);var i=t.files.getElementsByClassName("iceEditor-popup")[0];t.id(t.filesUploadId).onchange=function(){if(!t.uploadUrl)return alert("请配置uploadUrl项");for(var e=new FormData,o=0;o<this.files.length;o++)e.append(t.filesUpload.name,this.files[o]);e=t.filesUpload.formData(e),t.ajax({url:t.uploadUrl,data:e,success:function(e){if(e){for(var o=0;o<e.length;o++){var a=e[o];if(a.error)t.filesUpload.error(a,e),t.filesUpload.complete(a,e),alert(a.error);else{a=t.filesUpload.success(a,e);var n=t.c("a");n.href=a.url,n.className="download",n.download=a.name,n.innerText=a.name,n.target="_blank",t.setHTML(n,!0),t.setHTML(t.c("br"),!0),t.filesUpload.complete(a,e)}}i.style.display="none"}else t.filesUpload.error(e),t.filesUpload.complete(e)},error:function(e){t.filesUpload.error(e),t.filesUpload.complete(e)}})}}}),this.createMenu({title:"添加图片",name:"insertImage",icon:"pic",id:this.imageId,popup:{width:320,height:250,title:"图片上传",content:'<div class="iceEditor-insertImage"><div class="iceEditor-group"><label>URL：</label><input type="text" class="iceEditor-insertImageUrl" placeholder="网络图片地址" value=""/></div><div class="iceEditor-group"><label>宽：</label><input type="text" class="iceEditor-inputWidth" placeholder="宽" value=""/><label>高：</label><input type="text" class="iceEditor-inputHeight" placeholder="高" value=""/><a href="javascript:;" class="iceEditor-btn">确定</a></div><input type="file" class="iceEditor-uploadInput" id="'+this.imgUploadId+'" name="file[]" accept="image/*" multiple/><div><svg class="iceEditor-icon iceEditor-uploadIcon" aria-hidden="true"><use xlink:href="#icon-pic"></use></svg></div><label for="'+this.imgUploadId+'" class="iceEditor-uploadBtn">点击上传图片</label></div>'},success:function(e,t){t.insertImage=t.id(t.imageId);var i=t.insertImage.getElementsByClassName("iceEditor-popup")[0],o=t.insertImage.getElementsByClassName("iceEditor-insertImageUrl")[0],a=t.insertImage.getElementsByClassName("iceEditor-inputWidth")[0],n=t.insertImage.getElementsByClassName("iceEditor-inputHeight")[0];t.insertImage.getElementsByClassName("iceEditor-btn")[0].onclick=function(){var e=t.c("img");e.src=o.value,a.value.trim()&&(e.width=a.value.trim()),n.value.trim()&&(e.height=n.value.trim()),t.setHTML(e),i.style.display="none",t.pd()},t.id(t.imgUploadId).onchange=function(){if(!t.uploadUrl)return alert("请配置uploadUrl项");for(var e=new FormData,o=0;o<this.files.length;o++)e.append(t.imgUpload.name,this.files[o]);e=t.imgUpload.formData(e),t.ajax({url:t.uploadUrl,data:e,success:function(e){if(e){for(var o=0;o<e.length;o++){var a=e[o];if(a.error)t.imgUpload.error(a,e),t.imgUpload.complete(a,e),alert(a.error);else{a=t.imgUpload.success(a,e);var n=t.c("img");n.src=a.url,t.setHTML(n,!0),t.imgUpload.success(a,e),t.imgUpload.complete(a,e)}}i.style.display="none"}else t.imgUpload.error(e),t.imgUpload.complete(e)}})}}}),this.createMenu({title:"添加视频",name:"video",icon:"video",id:this.videoId,popup:{width:320,height:170,title:"添加视频",content:'<div class="iceEditor-video"><div><label>默认支持bilibili、优酷</label></div><div>URL：<input type="text" class="iceEditor-videoUrl" placeholder="网络图片地址" value=""/></div><div><label>宽：</label><input type="text" class="iceEditor-inputWidth" placeholder="px" value=""/><label>高：</label><input type="text" class="iceEditor-inputHeight" placeholder="px" value=""/><a href="javascript:;" class="iceEditor-btn">确定</a></div></div>'},success:function(e,t){t.video=t.id(t.videoId);var i=t.video.getElementsByClassName("iceEditor-popup")[0],o=t.video.getElementsByClassName("iceEditor-videoUrl")[0],a=t.video.getElementsByClassName("iceEditor-inputWidth")[0],n=t.video.getElementsByClassName("iceEditor-inputHeight")[0];t.video.getElementsByClassName("iceEditor-btn")[0].onclick=function(){if(!o.value.length)return alert("视频地址不能为空");var e=t.c("iframe");e.width=a.value.length?a.value:510,e.height=n.value.length?n.value:498,e.setAttribute("frameborder",0),e.setAttribute("allowfullscreen",!0);var l=/^http(s)?:\/\/(.*?)\//.exec(o.value);if(3!=l.length)return alert("URL地址不合法！");if("www.bilibili.com"==l[2]||"bilibili.com"==l[2])r=/video\/(.*?)\?/g.exec(o.value),r||(r=/video\/(.*)/g.exec(o.value)),e.src="https://player.bilibili.com/player.html?bvid="+r[1];else if("v.youku.com"==l[2]){var r=o.value.split(".html");if(!(r.length>1))return alert("优酷：抱歉，无法处理该链接！");if(r=r[0].split("id_"),!(r.length>1&&r[1].length))return alert("优酷：抱歉，无法处理该链接！");e.src="https://player.youku.com/embed/"+r[1]}else"www.ixigua.com"==l[2]?(r=/[0-9]{6,}/g.exec(o.value),e.src="https://www.ixigua.com/iframe/"+r[0]):(e=t.c("video"),e.src=o.value,e.width=a.value.length?a.value:510,e.height=n.value.length?n.value:498,e.controls="controls");t.setHTML(e,!0),i.style.display="none",t.pd()}}}),this.createMenu({title:"最大化",name:"max",icon:"max",data:"max",css:"iceEditor-maxWindow"}),this.createMenu({title:"最小化",name:"min",icon:"min",data:"min",css:"iceEditor-minWindow"}),this.createMenu({name:"disabled",css:"iceEditor-disabledMask"})}},{key:"menuFormat",value:function(){var e=this;this.menuHTML();var t=this.c("ul");t.className="iceEditor-menu",this.tool.innerHTML="",this.tool.appendChild(t);for(var i=0;i<this.menu.length;i++)if("line"!=this.menu[i])-1==this.notMenu.indexOf(this.menu[i])&&(t.appendChild(this.menuList[this.menu[i]]),this.menuList[this.menu[i]].success&&this.menuList[this.menu[i]].success(this.menuList[this.menu[i]],e));else{var o=e.c("li");o.className="iceEditor-line",t.appendChild(o)}this.maxWindow&&(t.appendChild(this.menuList.max),t.appendChild(this.menuList.min)),t.appendChild(this.menuList.disabled),this.editor.style.width=this.width,this.iframe.width=this.width,this.iframe.height=this.height}},{key:"menuAction",value:function(){for(var e=this.tool.getElementsByClassName("iceEditor-exec"),t=this,i=0;i<e.length;i++)e[i].e=this,e[i].attr=e[i].getAttribute("data"),e[i].attr&&(e[i].onclick=function(){switch(this.attr){case"strikeThrough":var e=t.range.anchorNode.parentNode;if("line-through"==e.style.textDecoration){var i=t.range.anchorNode.parentNode.innerHTML;e.parentNode.removeChild(e),t.setText(i,!0)}else{var o=t.c("span");o.style.textDecoration="line-through",t.setHTML(o)}break;case"code":var a=t.tool.getElementsByClassName("iceEditor-disabledMask")[0];if(t.code=t.code?0:1,t.code){t.tool.className="iceEditor-tool iceEditor-noselect",a.style.display="block",this.className="iceEditor-exec iceEditor-active",t.d.body.className="iceEditor-code";for(var n=t.d.body.getElementsByTagName("pre"),l=0;l<n.length;l++)n[l].innerHTML=n[l].innerHTML.replace(/<\/*br>/g,"\n");var r=t.getHTML();r=r.replace(/<\/p><p>/gim,"</p>\n<p>").replace(/><pre/gim,">\n<pre").replace(/<\/pre></gim,"</pre>\n<"),t.d.body.innerHTML=t.unhtml(r)}else{t.tool.className="iceEditor-tool iceEditor-noselect",a.style.display="none",this.className="iceEditor-exec",t.d.body.className="";var r=t.getHTML();t.d.body.innerHTML=t.html(r);for(var n=t.d.body.getElementsByTagName("pre"),l=0;l<n.length;l++)n[l].innerHTML=n[l].innerHTML.replace(/\n/g,"<br>")}break;case"max":var s=window.innerHeight;"number"!=typeof s&&("CSS1Compat"==document.compatMode?s=document.documentElement.clientHeight:webWidth=document.body.clientWidth),t.editor.style.position="fixed",t.editor.style.zIndex=t.getTime,t.editor.style.width="100%",t.editor.style.height="100%",t.editor.style.top=0,t.editor.style.left=0,t.iframe.height=s-35-20+"px",this.parentNode.style.display="none",t.tool.getElementsByClassName("iceEditor-minWindow")[0].style.display="block";break;case"min":t.editor.removeAttribute("style"),t.iframe.height=t.height,this.parentNode.style.display="none",t.tool.getElementsByClassName("iceEditor-maxWindow")[0].style.display="block";break;default:var c=this.attr.split("|");t.w.document._useStyleWithCSS||(t.w.document.execCommand("styleWithCSS",null,!0),t.w.document._useStyleWithCSS=!0),c.length>1?t.w.document.execCommand(c[0],!1,c[1]):t.w.document.execCommand(c[0],!1,null)}return!1})}},{key:"pasteWord",value:function(e){function t(e){if(!/(pt|cm)/.test(e))return e;var t;return e.replace(/([\d.]+)(\w+)/,function(e,i,o){i=i,t=o}),(e="cm"==t?25*parseFloat(e):Math.round(96*parseFloat(e)/72))+(e?"px":"")}function i(e){return e.replace(/[\d.]+\w+/g,function(e){return t(e)})}return function(e){return/(class="?Mso|style="[^"]*\bmso\-|w:WordDocument|<(v|o):|lang=)/gi.test(e)}(e)?function(e){return e.replace(/<html.*?>/gi,"").replace(/<body.*?>/gi,"").replace(/<!.*?>/gi,"").replace(/<head.*?>.*?<\/head>/gi,"").replace(/<\/body>/gi,"").replace(/<\/html>/gi,"").replace(/[\t\s]+/gi," ").replace(/<xml.*?>.*?<\/xml>/gi,"").replace(/<o:p>.*?<\/o:p>/gi,"").replace(/<span[^>]*>\s*<\/span>/gi,"").replace(/<(span|font|p|b|i|u|s)[^>]*>\s*<\/\1>/gi,"").replace(/v:\w+=(["']?)[^'"]+\1/g,"").replace(/<p[^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"<p><strong>$1</strong></p>").replace(/\s+(class|lang|align)\s*=\s*(['"]?)([\w-]+)\2/gi,function(e,t,i,o){return"class"==t&&"MsoListParagraph"==o?e:""}).replace(/<(font|span)[^>]*>(\s*)<\/\1>/gi,function(e,t,i){return i.replace(/[\t\r\n ]+/g," ")}).replace(/(<[a-z][^>]*)\sstyle=(["'])([^\2]*?)\2/gi,function(e,o,a,n){for(var l,r=[],s=n.replace(/^\s+|\s+$/,"").replace(/&#39;/g,"'").replace(/&quot;/gi,"'").replace(/[\d.]+(cm|pt)/g,function(e){return t(e)}).split(/;\s*/g),c=0;l=s[c];c++){var d,p,h=l.split(":");if(2==h.length){if(d=h[0].toLowerCase().trim(),p=h[1].toLowerCase().trim(),/^(background)\w*/.test(d)&&0==p.replace(/(initial|\s)/g,"").length||/^(margin)\w*/.test(d)&&/^0\w+$/.test(p))continue;switch(d){case"mso-vertical-align-alt":/<table/.test(o)||(r[c]=d.replace(/^mso-|-alt$/g,"")+":"+i(p));continue;case"horiz-align":r[c]="text-align:"+p;continue;case"vert-align":r[c]="vertical-align:"+p;continue;case"mso-foreground":r[c]="color:"+p;continue;case"mso-highlight":r[c]="background:"+p;continue;case"mso-default-height":r[c]="min-height:"+i(p);continue;case"mso-default-width":r[c]="min-width:"+i(p);continue;case"mso-padding-between-alt":r[c]="border-collapse:separate;border-spacing:"+i(p);continue;case"text-line-through":"single"!=p&&"double"!=p||(r[c]="text-decoration:line-through");continue;case"mso-zero-height":"yes"==p&&(r[c]="display:none");continue;case"margin":if(!/[1-9]/.test(p))continue}
  if(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?:decor|trans)|top-bar|version|vnd|word-break)/.test(d)||/text\-indent|padding|margin/.test(d)&&/\-[\d.]+/.test(p))continue;r[c]=d+":"+h[1]}}return o+(r.length?' style="'+r.join(";").replace(/;{2,}/g,";")+'"':"")})}(e):e}},{key:"pasteHTML",value:function(e){e=e.replace(/<html.*?>/g,"").replace(/<body.*?>/g,"").replace(/<!.*?>/g,"").replace(/<head.*?>.*?<\/head>/g,"").replace(/<\/body>/g,"").replace(/<\/html>/g,"").replace(/\s+(id|class|lang|align|data|data-\w*)\s*=\s*(['"]?).*?\2/gi,"");for(var t=0;t<this.filterTag.length;t++)e=e.replace(new RegExp("<"+this.filterTag[t]+"[^>]*>.*?</"+this.filterTag[t]+">","gim"),"");var i=this;return e=e.replace(/\s+style\s*=\s*(['"]?)(.*?)\1/g,function(e,t,o){if(o){o=o.replace(/(&#39;|&quot;)/gi,"'");var a=o.split(";");if(a.length){for(var n=[],l=0;l<a.length;l++){var r=a[l].trim();if(r){var s=r.split(":")[0];if(!i.filterStyle.includes(s)){var c=r.split(":");c.length>1&&/rgb\s*\(/gi.test(c[1])?(c[1]=c[1].replace(/rgb\s*\(.*?\)/gi,function(e){return e=e.split(/\D+/),"#"+((1<<24)+(parseInt(e[1])<<16)+(parseInt(e[2])<<8)+parseInt(e[3])).toString(16).slice(1)}),n.push(s+":"+c[1])):n.push(r)}}}return' style="'+n.join(";")+'"'}}return""}),e.replace(/<div([^>]*)>/g,"<p$1>").replace(/<\/div>/g,"</p>")}},{key:"formatHTML",value:function(e){e=e.replace(/[\t\s]+/g," ").replace(/<(span|font|p|b|i|u|s)[^>]*>(<(?!img)[^>]*>)*<\/\1>/gi,"").replace(/<(.+)\s+>/g,"<$1>").replace(/(<br\/*>){1,}/gi,"<br/>");for(var t=0;t<this.blockTag.length;t++)e=e.replace(new RegExp("</"+this.blockTag[t]+">","gim"),"</"+this.blockTag[t]+">\r\n");return e.replace(/\r\n{1,}/gim,"\r\n").trim()}},{key:"paste",value:function(){function e(t){if(!t)return!1;var i=t.nextSibling;return i&&1!=i.nodeType&&(i=e(i)),i}try{this.w.document.execCommand("AutoUrlDetect",!1,!1)}catch(e){}var t=this,i=(this.w,function(e){if(!t.screenshotUpload){var i=t.c("p"),o=t.c("img");return o.src=e,i.appendChild(o),void t.setHTML(i,!0)}var a=function(e){var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var i=e.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(t.length),a=0;a<t.length;a++)o[a]=t.charCodeAt(a);return new Blob([o],{type:i})}(e),n=new FormData;n.append(t.imgUpload.name,a),n=t.imgUpload.formData(n),t.ajax({url:t.uploadUrl,data:n,success:function(e){if(e)for(var i=0;i<e.length;i++){var o=e[i];if(o.error)t.imgUpload.error(o,e),t.imgUpload.complete(o,e),alert(o.error);else{o=t.imgUpload.success(o,e);var a=t.c("p"),n=t.c("img");n.src=o.url,a.appendChild(n),t.setHTML(a,!0),t.imgUpload.success(o,e),t.imgUpload.complete(o,e)}}else t.imgUpload.error(e),t.imgUpload.complete(e)},error:function(e){t.imgUpload.error(e),t.imgUpload.complete(e)}})}),o=function(){setTimeout(function(){for(var e=t.d.body.getElementsByTagName("img"),o=0;o<e.length;o++)if("data:"==e[o].src.substr(0,5)){i(e[o].src),e[o].parentNode.removeChild(e[o]);break}},10)};this.d.body.addEventListener("paste",function(e){t.isIE()||e.preventDefault();var a=window.clipboardData||e.clipboardData||e.originalEvent.clipboardData,n=a.getData("Text"),l=t.pasteText&&n.length?n:a.getData("text/html").length?a.getData("text/html"):n,r=!!a.getData("text/html");if(r&&!t.pasteText&&(l=l.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&#39;/g,"'").replace(/&quot;/g,"'")),t.screenshot&&!t.inNodeParent(t.range.getRangeAt(0).endContainer,"pre")){if(a){var s=a.items&&a.items[0]&&-1!==a.items[0].type.indexOf("image")?a.items[0].getAsFile():0;if(s){var c=new FileReader;c.onload=function(e){var t=e.target.result;i(t)},c.readAsDataURL(s)}}o()}if(l.length){if(t.code)return void t.setText(n);var d=l.replace(/[\r|\n]+/g,"\n").split("\n");if(t.inNodeParent(t.range.getRangeAt(0).endContainer,"pre")){for(var d=n.replace(/[\r|\n]+/g,"\n").split("\n"),p=0;p<d.length;p++)d[p]=t.toText(d[p]);return void t.setText(d.join("<br>"),!0)}if(t.pasteText&&1==d.length)return void t.setText(l);if(t.pasteText||!r)for(var p=0;p<d.length;p++)d[p]&&t.setText("<p>"+d[p].trim()+"<p>",!0);else l=t.pasteWord(l),l=t.formatHTML(l),l=t.pasteHTML(l),l=t.formatHTML(l),t.setText(l,!0);if(l=t.getHTML(),t.d.body.innerHTML=l,l=t.getHTML(),l=l.replace(/<p><\/p>/gi,"").replace(/<\/p><br>/gi,"").replace(/<(span|font|p|b|i|u|s)[^>]*>(<(?!img)[^>]*>)*<\/\1>/gi,""),t.d.body.innerHTML=l,t.imgAutoUpload){var l=t.getHTML();l.replace(/<img .*?src="(.*?)".*?>/gi,function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!function(e){if("/"!=i.substr(0,1)||"//"==i.substr(0,2)){t.imgDomain=t.imgDomain&&Array.isArray(t.imgDomain)?t.imgDomain:[document.domain],!t.imgDomain.includes(document.domain)&&t.imgDomain.push(document.domain);for(var o=0;o<t.imgDomain.length;o++)if(new RegExp("^((http|https):)*(/)*"+t.imgDomain[o],"i").test(e))return;t.ajax({url:t.uploadUrl,data:{"iceEditor-img":e},success:function(i){i&&!i.error?(i=t.imgUpload.success(i),t.imgUpload.complete(i),l=l.replace(new RegExp(e,"gi"),i.url),t.setValue(l)):(t.imgUpload.error(i,i),t.imgUpload.complete(i,i))},error:function(e){t.imgUpload.error(e),t.imgUpload.complete(e)}})}}(i)})}}}),this.d.body.addEventListener("keydown",function(i){var o=t.range.getRangeAt(0);if(13==i.keyCode&&t.inNodeParent(o.endContainer,"pre")){if("PRE"==t.range.anchorNode.parentNode.tagName){t.element.focus();var a=(o.endContainer.length,o.startOffset,!e(o.endContainer)),n=a?"<br><br>":"<br>",o=t.range.getRangeAt(0);o.insertNode(o.createContextualFragment(n));var l=t.range.anchorNode.nextSibling.nextSibling;o.setStart(l,0),o.setEnd(l,0),o.collapse()}else"PRE"!=t.parentTagName&&"PRE"!=t.range.anchorNode.tagName||t.setText("<br>",!0);return void i.preventDefault()}if(i.ctrlKey||i.metaKey)switch(i.keyCode){case 13:i.preventDefault();break;case 66:case 98:case 73:case 105:case 85:case 117:i.preventDefault()}})}},{key:"create",value:function(){this.cssConfig.styleSheet?this.cssConfig.styleSheet.cssText=this.css:this.cssConfig.innerHTML=this.css,this.menuFormat(),this.menuAction(),this.disableds.style.display=this.disabled?"block":"none"}},{key:"getHTML",value:function(){return this.content.innerHTML}},{key:"getText",value:function(){return this.content.innerText}},{key:"getValue",value:function(){return this.content.innerHTML}},{key:"setValue",value:function(e){this.content.innerHTML=e,this.setTextarea()}},{key:"addValue",value:function(e){this.content.innerHTML+=e,this.setTextarea()}},{key:"inputDisabled",value:function(){this.d.body.designMode="off",this.d.body.contentEditable=!1}},{key:"inputEnable",value:function(){this.d.body.designMode="on",this.d.body.contentEditable=!0}},{key:"inputCallback",value:function(e){var t=this;t.d.body.oninput=function(){e&&e.call(t,t.getHTML(),t.getText())},t.d.body.addEventListener("paste",function(i){e&&e.call(t,t.getHTML(),t.getText())})}},{key:"styleInit",value:function(){ice.editor.css='.iceEditor{color:#353535!important;font-family:"Microsoft YaHei";font-size:14px!important;background:#fff;position:relative;border:solid 1px #ccc}.iceEditor *{margin:0;padding:0;box-sizing:border-box}.iceEditor a{color:#606060;text-decoration:none;-webkit-tap-highlight-color:transparent}.iceEditor a:hover{color:#000}.iceEditor-line{height:20px;width:1px;background:#cecece;margin:8px 8px 0 8px;}.iceEditor-row{margin-bottom:10px;}.iceEditor-group{text-align:left;margin-bottom:10px;}.iceEditor-group label {min-width:50px!important;display:inline-block!important;text-align:right!important;font-weight:normal!important;}.iceEditor input{height:27px!important;line-height:27px!important;padding:3px!important;border:1px solid #B7B7B7!important;font-family:inherit;font-size:inherit;vertical-align:middle;outline:none;display:inline-block!important;}.iceEditor-exec{cursor:pointer}.iceEditor-icon{width:22px;height:16px;fill:currentColor;overflow:hidden;vertical-align:middle;font-size:16px}.iceEditor-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.iceEditor-menuDropdown{min-width:35px;min-height:35px;transition:all .4s ease;margin-top:60px;opacity:0;visibility:hidden;position:absolute;background:#fff;z-index:999;box-shadow:0 2px 9px 0 rgba(0,0,0,.2);border-bottom:2px solid #676767;border-top:1px solid #676767}.iceEditor-menuDropdown::before{content:"";display:block;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #676767;position:absolute;top:-8px;left:9px}.iceEditor-menuTitle{width:100%!important;text-align:center;height:30px;line-height:30px;border-top:1px solid #efefef}.iceEditor-tool{width:100%;background:#eee;border-bottom:solid 1px #ccc;position:relative}.iceEditor-tool:after,.iceEditor-tool:before{display:table;content:" "}.iceEditor-tool:after{clear:both}.iceEditor-menu{width:100%;padding:0 10px;display:inline-block;float:left}.iceEditor-menu a{list-style:none;float:left;min-width:35px;height:35px;padding:0 5px;text-align:center;line-height:35px;cursor:pointer}.iceEditor-menu a:hover{background:#cdcdcd}.iceEditor-menu>li>div.iceEditor-exec{list-style:none;float:left;min-width:35px;height:35px;padding:0 5px;text-align:center;line-height:35px;cursor:pointer}.iceEditor-menu>li>div.iceEditor-exec:hover{background:#cdcdcd}.iceEditor-menu svg{fill:currentColor;overflow:hidden;vertical-align:middle;font-size:16px}.iceEditor-menu .iceEditor-active{background:#e0e0e0;position:relative;z-index:999}.iceEditor-menu .iceEditor-actives,.iceEditor-menu .iceEditor-active-s{background:#d8d8d8;}.iceEditor-menu .iceEditor-disabledMask{background:rgba(238,238,238,0.7);width:100%;height:100%;position:absolute;left:0;top:0;display:none}.iceEditor-menu li{display:inline-block;float:left;line-height:initial;}.iceEditor-menu li .iceEditor-menuDropdown.iceEditor-menuActive{margin-top:44px;opacity:1;visibility:visible}.iceEditor-menu li.iceEditor-minWindow{display:none}.iceEditor-menu li.iceEditor-maxWindow,.iceEditor-menu li.iceEditor-minWindow{float:right}.iceEditor-menu li.iceEditor-maxWindow>div,.iceEditor-menu li.iceEditor-minWindow>div{position:relative;z-index:9}.iceEditor-menu li.iceEditor-maxWindow .iceEditor-icon,.iceEditor-menu li.iceEditor-minWindow .iceEditor-icon{color:#606060}.iceEditor-codeLanguages select{padding:5px 5px;width:120px;outline:none;font-size:15px;margin-top:10px;}.iceEditor input.iceEditor-uploadInput{display:none!important}.iceEditor-uploadBtn{float:none;width:auto;font-size:15px;background:#00b7ee;height:40px;line-height:40px;padding:0 30px;color:#fff;display:inline-block;margin:0 auto 15px auto;cursor:pointer;box-shadow:0 1px 1px rgba(0,0,0,.1)}.iceEditor-uploadBtn:hover{background:#009ccb}.iceEditor-uploadIcon{width:45px;height:45px;color:#bababa;margin:20px 20px 10px}.iceEditor-backColor{width:230px;padding:5px}.iceEditor-backColor span{width:20px;height:20px;padding:0;margin:1px;display:inline-block}.iceEditor-fontSize{width:280px}.iceEditor-fontSize li{width:40px;text-align:center}.iceEditor-fontSize span{width:40px;display:inline-block;padding:10px 0}.iceEditor-fontSize span:hover{background:#eee;color:#4CAF50}.iceEditor-createLink label{display:inline-block;}.iceEditor .iceEditor-link{width:175px!important;}.iceEditor-popup .iceEditor-insertImage{text-align:center}.iceEditor-popup .iceEditor-insertImageUrl{width:220px!important;height:27px;outline:0;margin-right:15px}.iceEditor-popup .iceEditor-inputWidth{width:50px!important;height:27px;outline:0;margin-right:15px}.iceEditor-popup .iceEditor-inputHeight{width:50px!important;height:27px;outline:0}.iceEditor-popup .iceEditor-btn{width:auto;display:inline-block;float:none;color:#fff!important;height:27px;line-height:25px;padding:0 10px;background:#939393;vertical-align:middle;margin-left:5px;border:1px solid #7b7b7b}.iceEditor-popup .iceEditor-btn:hover{background:#7b7b7b!important;color:#fff}.iceEditor-tableBox{position:relative;width:190px;height:214px;padding:5px;overflow:hidden}.iceEditor-tableBgOn{position:absolute!important;top:5px;left:5px;z-index:4;width:18px;height:18px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIjd6vvD2f9LKLW+AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKwNDEVT0AAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC) repeat}.iceEditor-tableBgOff{width:180px;height:180px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIj4+Pjp6ekKlAqjAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKhmnaJzPAAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC) repeat}.iceEditor-tableNum{height:30px;line-height:30px;text-align:center;color:#757575}.iceEditor-video{text-align:left}.iceEditor-video label{margin-right:20px;display:inline-block}.iceEditor-video input{margin-right:5px}.iceEditor-video div{height:27px;margin-bottom:10px}.iceEditor-popup .iceEditor-videoUrl{width:255px!important;height:27px;outline:0;margin-right:0}.iceEditor-content{width:100%;height:100%;padding:20px;position:relative}.iceEditor-content:focus{outline:0}.iceEditor-dragBg{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;display:none;}.iceEditor-drag{color:#757575;background:#eee;text-align:center;height:12px;line-height:0;cursor:n-resize}.iceEditor-disabled{position:absolute;width:100%;height:100%;top:0;left:0;background:rgba(191,191,191,.79);z-index:99999;display:none}.iceEditor-popup{display:none}.iceEditor-popupMain{width:400px;height:200px;position:fixed;margin:auto;top:0;bottom:0;left:0;right:0;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.12);z-index:9999;animation-name:iceEditorPopup;animation-duration:.5s}.iceEditor-popupBox{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.33);opacity:.5;filter:alpha(opacity=50);z-index:1}.iceEditor-popupTitle{width:100%;height:30px;line-height:30px;background:#2f2f2f;padding:0 10px;color:#fff}.iceEditor-popupTitle span{display:inline-block;vertical-align:middle}.iceEditor-popupTitle::before{content:"";display:inline-block;width:10px;height:10px;border-radius:10px;background:#c7f98c;vertical-align:middle;margin-right:8px}.iceEditor-popupClose{float:right;padding:0 10px;color:#fff;font-size:18px;cursor:pointer}.iceEditor-popupClose:hover{color:#8fe5ff}.iceEditor-popupContent{width:100%;padding:10px;color:#000;overflow:auto;float:left}.iceEditor-popupBtn{width:100%;border:0;color:#fff;background:#03A9F4;border-top:1px solid #efefef;padding:0 20px;margin:0;height:35px;text-align:center;line-height:35px;cursor:pointer;margin-top:20px;outline:0}.iceEditor-popupBtn:hover{color:#151515;background:#efefef}@keyframes iceEditorPopup{0%{top:-100px;opacity:0}to{top:0;opacity:1}}',
  ice.editor.svg='<svg><symbol id="icon-word" viewBox="0 0 1024 1024"><path d="M1037.95259216 964.34753729a30.93838823 30.93838823 0 0 1 5.56890921 61.38176213L1037.95259216 1026.22431218h-1051.90518432a30.93838823 30.93838823 0 0 1-5.56890921-61.38176058L-13.95259216 964.34753729h1051.90518432z m0-185.63032631a30.93838823 30.93838823 0 0 1 5.56890921 61.38176061L1037.95259216 840.59398588h-1051.90518432a30.93838823 30.93838823 0 0 1-5.56890921-61.38176055L-13.95259216 778.71721098h1051.90518432z m0-185.63032626a30.93838823 30.93838823 0 0 1 5.56890921 61.38176057L1037.95259216 654.96365961h-371.26065412a30.93838823 30.93838823 0 0 1-5.56890919-61.38176057L666.69193804 593.08688472h371.26065412z m-495.01420393-587.82936709a30.93838823 30.93838823 0 0 1 30.44337235 25.36947747L573.87677489 36.19590432v123.75355138a30.93838823 30.93838823 0 0 1-61.38176056 5.56890917L512 159.9494557V67.13429254h-185.63032627V593.08688472h92.81516312a30.93838823 30.93838823 0 0 1 5.5689092 61.38176057L419.18483685 654.96365961h-247.50710275a30.93838823 30.93838823 0 0 1-5.56890917-61.38176057L171.6777341 593.08688472H264.49289725V67.13429254H78.86257098v92.32014881a30.93838823 30.93838823 0 0 1-25.36947748 30.38149654l-5.56890921 0.55689171a30.93838823 30.93838823 0 0 1-30.44337391-25.36947748L16.98579605 159.39256555V36.19590432a30.93838823 30.93838823 0 0 1 25.36947749-30.44337235L47.92418429 5.25751763h495.01420394z"></path></symbol><symbol id="icon-face" viewBox="0 0 1024 1024"><path d="M512 2.27555555a509.72444445 509.72444445 0 1 1 0 1019.4488889A509.72444445 509.72444445 0 0 1 512 2.27555555z m0 72.81777778a436.90666667 436.90666667 0 1 0 0 873.81333334A436.90666667 436.90666667 0 0 0 512 75.09333333zM251.02108445 624.86755555H329.22737778c40.41386667 68.73998222 93.42520889 109.37230222 182.77262222 109.37230223 84.10453333 0 134.13034667-30.80192 176.36465778-96.62919111l7.79150222-12.74311112h76.82275555a280.12999111 280.12999111 0 0 1-516.27804444 13.4712889l-5.67978666-13.4712889H329.22737778z m440.54755555-285.88259555a54.61333333 54.61333333 0 1 1 0 109.22666667 54.61333333 54.61333333 0 0 1 0-109.22666667z m-358.62755555 0a54.61333333 54.61333333 0 1 1 0 109.22666667 54.61333333 54.61333333 0 0 1 0-109.22666667z"></path></symbol><symbol id="icon-music" viewBox="0 0 1024 1024"><path d="M899.904 454.976c-5.44-0.704-10.304-4.48-14.592-11.2-4.288-6.72-7.552-19.008-9.92-36.992-3.904-29.12-13.824-50.624-29.76-64.448-15.936-13.824-40.64-23.744-74.112-29.696-35.008-6.784-65.92-20.352-92.736-40.96-26.816-20.48-49.216-39.808-67.072-57.664C594.56 198.272 581.376 192.704 572.032 197.184S558.016 209.92 558.016 221.888L558.016 270.08l0 105.408c0 41.856-0.192 87.04-0.576 135.616s-0.576 94.464-0.576 137.792l0 114.368 0 63.872c0.768 17.92-2.112 37.952-8.768 59.904-6.592 22.08-19.072 42.816-37.312 62.272-18.304 19.456-42.56 36.032-72.896 49.92-30.336 13.824-68.096 21.824-113.216 24.128-45.888 2.24-87.296-5.632-124.288-23.552-36.928-17.92-65.536-40.576-85.76-67.776-20.224-27.328-30.144-57.216-29.76-89.664 0.384-32.512 14.976-62.976 43.776-91.328 28.8-28.416 59.904-48.192 93.376-59.392 33.408-11.2 65.728-17.408 96.832-18.496 31.104-1.152 58.944 0.896 83.456 6.144s42.56 10.112 54.272 14.592L456.576 376.512c0-88.192 0.384-187.584 1.152-298.176 0-21.696 5.824-39.424 17.536-53.248C486.848 11.328 502.4 3.264 521.856 1.024 538.176-1.216 551.616 1.92 562.112 10.56c10.496 8.576 21.184 20.544 32.064 35.84 10.88 15.36 24.32 32.704 40.256 52.096 15.936 19.456 37.504 38.528 64.768 57.152 23.36 17.216 43.776 29.504 61.248 36.992s33.856 14.4 49.024 20.736c15.168 6.336 30.144 14.016 44.928 22.976 14.784 8.96 31.104 23.552 49.024 43.712 17.856 19.392 28.8 39.616 32.704 60.544s4.096 40 0.576 57.152-9.152 31.168-16.896 42.048C911.936 450.688 905.344 455.744 899.904 454.976L899.904 454.976z"></path></symbol><symbol id="icon-dir" viewBox="0 0 1024 1024"><path d="M1024 325.008l0-72c0-35.344-28.656-64-64-64L448 189.008 448 131.008c0-35.344-28.656-64-64-64L64 67.008c-35.344 0-64 28.656-64 64l0 194L1024 325.008z"></path><path d="M0 373.008l0 520c0 35.344 28.656 64 64 64l896 0c35.344 0 64-28.656 64-64l0-520L0 373.008z"></path></symbol><symbol id="icon-aligncenter" viewBox="0 0 1024 1024"><path d="M0 64l1024 0 0 128-1024 0zM192 256l640 0 0 128-640 0zM192 640l640 0 0 128-640 0zM0 448l1024 0 0 128-1024 0zM0 832l1024 0 0 128-1024 0z"></path></symbol><symbol id="icon-alignleft" viewBox="0 0 1024 1024"><path d="M0 64l1024 0 0 128-1024 0zM0 256l640 0 0 128-640 0zM0 640l640 0 0 128-640 0zM0 448l1024 0 0 128-1024 0zM0 832l1024 0 0 128-1024 0z"></path></symbol><symbol id="icon-alignright" viewBox="0 0 1024 1024"><path d="M0 64l1024 0 0 128-1024 0zM384 256l640 0 0 128-640 0zM384 640l640 0 0 128-640 0zM0 448l1024 0 0 128-1024 0zM0 832l1024 0 0 128-1024 0z"></path></symbol><symbol id="icon-corner" viewBox="0 0 1024 1024"><path d="M768 256l64 0 0 64-64 0zM640 384l64 0 0 64-64 0zM640 512l64 0 0 64-64 0zM640 640l64 0 0 64-64 0zM512 512l64 0 0 64-64 0zM512 640l64 0 0 64-64 0zM384 640l64 0 0 64-64 0zM768 384l64 0 0 64-64 0zM768 512l64 0 0 64-64 0zM768 640l64 0 0 64-64 0zM768 768l64 0 0 64-64 0zM640 768l64 0 0 64-64 0zM512 768l64 0 0 64-64 0zM384 768l64 0 0 64-64 0zM256 768l64 0 0 64-64 0z"></path></symbol><symbol id="icon-help" viewBox="0 0 1024 1024"><path d="M448 704l128 0 0 128-128 0zM704 256c35.36 0 64 28.64 64 64l0 192-192 128-128 0 0-64 192-128 0-64-320 0 0-128 384 0zM512 96c-111.104 0-215.584 43.264-294.144 121.856s-121.856 183.04-121.856 294.144c0 111.104 43.264 215.584 121.856 294.144s183.04 121.856 294.144 121.856c111.104 0 215.584-43.264 294.144-121.856s121.856-183.04 121.856-294.144c0-111.104-43.264-215.584-121.856-294.144s-183.04-121.856-294.144-121.856zM512 0l0 0c282.784 0 512 229.216 512 512s-229.216 512-512 512c-282.784 0-512-229.216-512-512s229.216-512 512-512z"></path></symbol><symbol id="icon-indent" viewBox="0 0 1024 1024"><path d="M0 64l1024 0 0 128-1024 0zM384 256l640 0 0 128-640 0zM384 448l640 0 0 128-640 0zM384 640l640 0 0 128-640 0zM0 832l1024 0 0 128-1024 0zM0 704l0-384 256 192z"></path></symbol><symbol id="icon-link" viewBox="0 0 1025 1024"><path d="M320.032 704c17.6 17.6 47.264 16.736 65.952-1.952l316.128-316.128c18.656-18.656 19.552-48.352 1.952-65.952s-47.264-16.736-65.952 1.952l-316.128 316.128c-18.656 18.656-19.552 48.352-1.952 65.952zM476.928 675.104c4.576 9.056 6.976 19.168 6.976 29.696 0 17.6-6.752 34.048-19.008 46.304l-163.392 163.392c-12.256 12.256-28.704 18.976-46.304 18.976s-34.048-6.752-46.304-18.976l-99.392-99.392c-12.256-12.256-19.008-28.704-19.008-46.304s6.752-34.048 19.008-46.304l163.392-163.392c12.256-12.256 28.704-19.008 46.304-19.008 10.528 0 20.64 2.432 29.696 6.976l65.344-65.344c-27.872-21.408-61.44-32.16-95.04-32.16-40 0-79.968 15.168-110.304 45.504l-163.392 163.392c-60.672 60.672-60.672 159.936 0 220.608l99.392 99.392c30.336 30.336 70.304 45.504 110.304 45.504s79.968-15.168 110.304-45.504l163.392-163.392c55.808-55.808 60.224-144.288 13.344-205.344l-65.344 65.344zM978.528 144.896l-99.392-99.392c-30.336-30.336-70.304-45.504-110.304-45.504s-79.968 15.168-110.304 45.504l-163.392 163.392c-55.808 55.808-60.224 144.288-13.344 205.344l65.344-65.344c-4.544-9.056-6.976-19.168-6.976-29.696 0-17.6 6.752-34.048 18.976-46.304l163.392-163.392c12.256-12.256 28.704-19.008 46.304-19.008s34.048 6.752 46.304 19.008l99.392 99.392c12.256 12.256 18.976 28.704 18.976 46.304s-6.752 34.048-18.976 46.304l-163.392 163.392c-12.256 12.256-28.704 19.008-46.304 19.008-10.528 0-20.64-2.432-29.696-6.976l-65.344 65.344c27.872 21.408 61.44 32.16 95.04 32.16 40 0 79.968-15.168 110.304-45.504l163.392-163.392c60.672-60.672 60.672-159.936 0-220.608z"></path></symbol><symbol id="icon-orderedlist" viewBox="0 0 1024 1024"><path d="M384 832l640 0 0 128-640 0zM384 448l640 0 0 128-640 0zM384 64l640 0 0 128-640 0zM192 0l0 256-64 0 0-192-64 0 0-64zM128 526.016l0 50.016 128 0 0 64-192 0 0-146.016 128-60 0-50.016-128 0 0-64 192 0 0 146.016zM256 704l0 320-192 0 0-64 128 0 0-64-128 0 0-64 128 0 0-64-128 0 0-64z"></path></symbol><symbol id="icon-outdent" viewBox="0 0 1024 1024"><path d="M0 64l1024 0 0 128-1024 0zM384 256l640 0 0 128-640 0zM384 448l640 0 0 128-640 0zM384 640l640 0 0 128-640 0zM0 832l1024 0 0 128-1024 0zM256 320l0 384-256-192z"></path></symbol><symbol id="icon-symbol" viewBox="0 0 1024 1024"><path d="M704 896l256 0 64-128 0 256-384 0 0-214.208c131.104-56.48 224-197.152 224-361.792 0-214.432-157.6-382.272-352-382.272s-352 167.84-352 382.272c0 164.608 92.896 305.312 224 361.792l0 214.208-384 0 0-256 64 128 256 0 0-32.576c-187.616-66.464-320-227.392-320-415.424 0-247.424 229.216-448 512-448s512 200.576 512 448c0 188-132.384 348.96-320 415.424l0 32.576z"></path></symbol><symbol id="icon-strike" viewBox="0 0 1024 1024"><path d="M731.424 517.024c63.904 47.936 100.576 116.096 100.576 186.976s-36.672 139.04-100.576 186.976c-59.36 44.512-137.28 69.024-219.424 69.024s-160.064-24.512-219.424-69.024c-63.936-47.936-100.576-116.096-100.576-186.976l128 0c0 69.376 87.936 128 192 128s192-58.624 192-128c0-69.376-87.936-128-192-128-82.144 0-160.064-24.512-219.424-69.024-63.936-47.936-100.576-116.096-100.576-186.976s36.672-139.04 100.576-186.976c59.36-44.512 137.28-69.024 219.424-69.024s160.064 24.512 219.424 69.024c63.904 47.936 100.576 116.096 100.576 186.976l-128 0c0-69.376-87.936-128-192-128s-192 58.624-192 128c0 69.376 87.936 128 192 128 82.144 0 160.064 24.512 219.424 69.024zM0 512l1024 0 0 64-1024 0z"></path></symbol><symbol id="icon-table" viewBox="0 0 1024 1024"><path d="M0 64l0 896 1024 0 0-896-1024 0zM384 640l0-192 256 0 0 192-256 0zM640 704l0 192-256 0 0-192 256 0zM640 192l0 192-256 0 0-192 256 0zM320 192l0 192-256 0 0-192 256 0zM64 448l256 0 0 192-256 0 0-192zM704 448l256 0 0 192-256 0 0-192zM704 384l0-192 256 0 0 192-256 0zM64 704l256 0 0 192-256 0 0-192zM704 896l0-192 256 0 0 192-256 0z"></path></symbol><symbol id="icon-underline" viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></symbol><symbol id="icon-unlink" viewBox="0 0 1025 1024"><path d="M476.928 675.104c4.576 9.056 6.976 19.168 6.976 29.696 0 17.6-6.752 34.048-19.008 46.304l-163.392 163.392c-12.256 12.256-28.704 18.976-46.304 18.976s-34.048-6.752-46.304-18.976l-99.392-99.392c-12.256-12.256-19.008-28.704-19.008-46.304s6.752-34.048 19.008-46.304l163.392-163.392c12.256-12.256 28.704-18.976 46.304-18.976 10.528 0 20.64 2.432 29.696 6.976l65.344-65.344c-27.872-21.408-61.44-32.16-95.04-32.16-40 0-79.968 15.168-110.304 45.504l-163.392 163.392c-60.672 60.672-60.672 159.936 0 220.608l99.392 99.392c30.336 30.336 70.304 45.504 110.304 45.504s79.968-15.168 110.304-45.504l163.392-163.392c55.808-55.808 60.224-144.288 13.344-205.344l-65.344 65.344zM978.528 144.896l-99.392-99.392c-30.336-30.336-70.304-45.504-110.304-45.504s-79.968 15.168-110.304 45.504l-163.392 163.392c-55.808 55.808-60.224 144.288-13.344 205.344l65.344-65.344c-4.544-9.056-6.976-19.168-6.976-29.696 0-17.6 6.752-34.048 18.976-46.304l163.392-163.392c12.256-12.256 28.704-19.008 46.304-19.008s34.048 6.752 46.304 19.008l99.392 99.392c12.256 12.256 18.976 28.704 18.976 46.304s-6.752 34.048-18.976 46.304l-163.392 163.392c-12.256 12.256-28.704 19.008-46.304 19.008-10.528 0-20.64-2.432-29.696-6.976l-65.344 65.344c27.872 21.408 61.44 32.16 95.04 32.16 40 0 79.968-15.168 110.304-45.504l163.392-163.392c60.672-60.672 60.672-159.936 0-220.608zM233.408 278.624l-192-192 45.248-45.248 192 192zM384.032 0l64 0 0 192-64 0zM0.032 384l192 0 0 64-192 0zM790.656 745.376l192 192-45.248 45.248-192-192zM576.032 832l64 0 0 192-64 0zM832.032 576l192 0 0 64-192 0z"></path></symbol><symbol id="icon-backColor" viewBox="0 0 1024 1024"><path d="M360.021333 512 677.1712 512 518.570667 87.893333Z"></path><path d="M168.618667 1024 868.573867 1024 709.034667 597.333333 328.106667 597.333333Z"></path><path d="M602.368 0 981.538133 1024 1024 1024 1024 0Z"></path><path d="M434.773333 0 0 0 0 1024 55.6544 1024Z"></path></symbol><symbol id="icon-code" viewBox="0 0 1024 1024"><path d="M0 64.003413 0 959.996587l1024 0L1024 64.003413 0 64.003413zM960.006827 896.003413l-896 0 0-640 896 0L960.006827 896.003413zM361.376427 726.621013c6.2464 6.253227 14.4384 9.3824 22.6176 9.3824 8.197973 0 16.384-3.129173 22.6304-9.3824 12.498773-12.499627 12.498773-32.7424 0-45.248l-105.3696-105.376427 105.3696-105.375573c12.498773-12.4928 12.498773-32.749227 0-45.248-12.499627-12.498773-32.7552-12.498773-45.248 0l-128 128c-12.498773 12.498773-12.498773 32.748373 0 45.253973L361.376427 726.621013zM617.3824 726.621013c6.240427 6.253227 14.431573 9.3824 22.624427 9.3824 8.1792 0 16.378027-3.129173 22.6304-9.3824l128-127.994027c12.4928-12.5056 12.4928-32.7552 0-45.253973l-128-128c-12.5184-12.498773-32.7552-12.498773-45.254827 0s-12.499627 32.7552 0 45.248l105.3696 105.375573-105.3696 105.376427C604.883627 693.878613 604.883627 714.12224 617.3824 726.621013z"></path></symbol><symbol id="icon-files" viewBox="0 0 1024 1024"><path d="M0 992a32 32 0 0 0 32 32h1216a32 32 0 0 0 32-32V224a32 32 0 0 0-32-32H576l-192-192H32a32 32 0 0 0-32 32z"></path></symbol><symbol id="icon-list" viewBox="0 0 1024 1024"><path d="M700.352 704l0 256 256 0 0-256L700.352 704zM700.352 384l0 255.936 256 0L956.352 384 700.352 384zM700.352 64l0 256 256 0L956.352 64 700.352 64zM380.352 704l0 256 256 0 0-256L380.352 704zM380.352 384l0 255.936 256 0L636.352 384 380.352 384zM380.352 64l0 256 256 0L636.352 64 380.352 64zM60.352 704l0 256 256 0 0-256L60.352 704zM60.352 384l0 255.936 256 0L316.352 384 60.352 384zM60.352 64l0 256 256 0L316.352 64 60.352 64z"></path></symbol><symbol id="icon-save" viewBox="0 0 1029 1024"><path d="M512 638.976 319.488 638.976l0 258.048 192.512 0L512 638.976zM958.464 0 65.536 0C28.672 0 0 28.672 0 65.536l0 770.048L192.512 1024l770.048 0c36.864 0 65.536-28.672 65.536-65.536L1028.096 65.536C1024 28.672 995.328 0 958.464 0zM831.488 958.464 192.512 958.464l0-385.024 638.976 0L831.488 958.464zM897.024 512 126.976 512 126.976 65.536l770.048 0L897.024 512z"></path></symbol><symbol id="icon-min" viewBox="0 0 1024 1024"><path d="M64 448l896 0 0 128-896 0 0-128Z"></path></symbol><symbol id="icon-product" viewBox="0 0 1024 1024"><path d="M398.222222 455.111111 56.888889 455.111111C25.486222 455.111111 0 429.624889 0 398.222222L0 56.888889c0-31.402667 25.486222-56.888889 56.888889-56.888889l341.333333 0c31.402667 0 56.888889 25.486222 56.888889 56.888889l0 341.333333C455.111111 429.624889 429.624889 455.111111 398.222222 455.111111"></path><path d="M967.111111 398.222222l-341.333333 0L625.777778 56.888889l341.333333 0L967.111111 398.222222zM967.111111 0l-341.333333 0c-31.402667 0-56.888889 25.486222-56.888889 56.888889l0 341.333333c0 31.402667 25.486222 56.888889 56.888889 56.888889l341.333333 0c31.402667 0 56.888889-25.486222 56.888889-56.888889L1024 56.888889C1024 25.486222 998.513778 0 967.111111 0"></path><path d="M398.222222 1024 56.888889 1024c-31.402667 0-56.888889-25.486222-56.888889-56.888889l0-341.333333c0-31.402667 25.486222-56.888889 56.888889-56.888889l341.333333 0c31.402667 0 56.888889 25.486222 56.888889 56.888889l0 341.333333C455.111111 998.513778 429.624889 1024 398.222222 1024"></path><path d="M967.111111 1024l-341.333333 0c-31.402667 0-56.888889-25.486222-56.888889-56.888889l0-341.333333c0-31.402667 25.486222-56.888889 56.888889-56.888889l341.333333 0c31.402667 0 56.888889 25.486222 56.888889 56.888889l0 341.333333C1024 998.513778 998.513778 1024 967.111111 1024"></path></symbol><symbol id="icon-empty" viewBox="0 0 1024 1024"><path d="M704 64 960 320 704 320Z"></path><path d="M64 64 64 1024 960 1024 960 384 896 384 896 960 128 960 128 128 640 128 640 64Z"></path></symbol><symbol id="icon-video" viewBox="0 0 1110 1024"><path d="M1024 1024 85.333333 1024C38.186667 1024 0 985.813333 0 938.666667L0 85.333333C0 38.186667 38.186667 0 85.333333 0L1024 0C1071.146667 0 1109.333333 38.186667 1109.333333 85.333333L1109.333333 938.666667C1109.333333 985.813333 1071.146667 1024 1024 1024ZM426.666667 256 426.666667 768 810.666667 512 426.666667 256Z"></path></symbol><symbol id="icon-pic" viewBox="0 0 1024 1024"><path d="M972.797568 0 51.201152 0C22.92289 0 0.00128 22.92161 0.00128 51.199872l0 921.601536c0 28.275702 22.92161 51.199872 51.199872 51.199872l921.596416 0c28.278262 0 51.199872-22.92417 51.199872-51.199872L1023.99744 51.199872C1023.99744 22.92161 1001.07583 0 972.797568 0zM972.797568 460.798848c-245.08382-148.251923-486.398144 127.99392-486.398144 127.99392-226.657447-100.066368-377.973606 91.667239-435.198272 184.311091L51.201152 76.794048c0-14.138491 11.460805-25.599296 25.599296-25.599296l870.396544 0c14.138491 0 25.599296 11.460805 25.599296 25.599296L972.796288 460.798848zM281.599936 179.204032c-56.552685 0-102.399744 45.844499-102.399744 102.397184 0 56.552685 45.847059 102.397184 102.399744 102.397184 56.552685 0 102.399744-45.844499 102.399744-102.397184C383.99968 225.048531 338.152621 179.204032 281.599936 179.204032z"></path></symbol><symbol id="icon-bold" viewBox="0 0 1024 1024"><path d="M437.61370098 62C511.9653834 62 567.40408437 64.9750625 603.94711661 70.90862715 640.4890625 76.85875214 673.17788339 89.24432187 702.0298083 108.08085518 730.86442403 126.91739375 754.89939688 151.9958709 774.13365107 183.31421768 793.36791143 214.6491125 802.98557598 249.75173955 802.98557598 288.65416045 802.98557598 330.83897715 791.17091563 369.53030411 767.57620098 404.74675215 743.9814916 439.96320723 711.96875 466.38278545 671.57259893 483.989975 728.73557597 499.93216455 772.68088848 527.09577295 803.40853643 565.48078965 834.13617911 603.8658125 849.5 648.9925833 849.5 700.86213125 849.5 741.70481152 839.54483018 781.43093545 819.66803222 820.02602393 799.79122812 858.63766661 772.64627188 889.4706875 738.2342542 912.54371152 703.82115722 935.63329589 661.38053222 949.8132125 610.94483018 955.11658643 579.30420518 958.38242714 502.99134893 960.43651455 382.00733018 961.2446917L62 961.2446917 62 62 437.61370098 62ZM230.75 399.5L364.28739893 399.5C443.66832705 399.5 493.01498955 398.3985125 512.2878875 396.1765083 547.16913125 392.20600625 574.5923334 380.59226035 594.55516661 361.33526357 614.51916348 342.09506357 624.5 316.75190732 624.5 285.33825723 624.5 255.25445205 615.87928848 230.82024482 598.67503438 211.9998166 581.46961661 193.19729786 555.88043955 181.81078438 521.92491875 177.8234917 501.7251333 175.61939785 443.66832705 174.5 347.77191465 174.5L230.75 174.5 230.75 399.5ZM230.75 793.25L427.71935411 793.25C504.38265839 793.25 553.03467911 791.52986972 573.6366916 788.09058652 605.25887187 783.49415732 631.02137187 772.30843965 650.90483545 754.51688545 670.78830518 736.72532597 680.75 712.9074667 680.75 683.04772812 680.75 657.79902705 673.07580722 636.3704542 657.74677607 618.76201661 642.39838438 601.16818027 620.24677403 588.33928847 591.25201455 580.3035708 562.25726035 572.2678584 499.35403232 568.25 402.56169277 568.25L230.75 568.25 230.75 793.25Z"></path></symbol><symbol id="icon-max" viewBox="0 0 1024 1024"><path d="M64 128l0 128 0 576 64 0 768 0 64 0 0-64L960 256 960 128 64 128zM896 768 128 768 128 256l768 0L896 768z"></path></symbol><symbol id="icon-del" viewBox="0 0 1024 1024"><path d="M960 192l-192 0L768 64c0-35.328-28.672-64-64-64L320 0C284.672 0 256 28.672 256 64l0 128L64 192C28.672 192 0 220.672 0 256l128 0 0 704c0 35.328 28.672 64 64 64l640 0c35.328 0 64-28.672 64-64L896 256l128 0C1024 220.672 995.328 192 960 192zM320 64l384 0 0 128L320 192 320 64zM832 960 192 960 192 256l640 0L832 960z"></path><path d="M416 832C433.664 832 448 817.6 448 800l0-384C448 398.4 433.664 384 416 384S384 398.4 384 416l0 384C384 817.6 398.336 832 416 832z"></path><path d="M608 832c17.6 0 32-14.4 32-32l0-384C640 398.4 625.6 384 608 384S576 398.4 576 416l0 384C576 817.6 590.4 832 608 832z"></path></symbol><symbol id="icon-unorderedlist" viewBox="0 0 1024 1024"><path d="M0 0l256 0 0 256-256 0zM384 64l640 0 0 128-640 0zM0 384l256 0 0 256-256 0zM384 448l640 0 0 128-640 0zM0 768l256 0 0 256-256 0zM384 832l640 0 0 128-640 0z"></path></symbol><symbol id="icon-remove" viewBox="0 0 1024 1024"><path d="M921.6 512 880.64 512 972.8 972.8C972.8 1001.088 949.888 1024 921.6 1024L102.4 1024C74.112 1024 51.2 1001.088 51.2 972.8L143.36 512 102.4 512C74.112 512 51.2 489.088 51.2 460.8L51.2 409.6C51.2 381.312 74.112 358.4 102.4 358.4L409.6 358.4 409.6 102.4C409.6 45.8496 455.4496 0 512 0 568.5504 0 614.4 45.8496 614.4 102.4L614.4 358.4 921.6 358.4C949.888 358.4 972.8 381.312 972.8 409.6L972.8 460.8C972.8 489.088 949.888 512 921.6 512ZM102.4 972.8 257.6384 972.8C254.1056 967.5008 252.4416 960.9472 253.6192 954.1888L284.7488 726.5024C287.2064 712.6016 300.4672 703.2832 314.3936 705.7408 328.32 708.1984 337.6128 721.4848 335.1808 735.4112L304.0512 963.072C303.4112 966.6816 302.0032 969.9328 300.1088 972.8L921.6 972.8 819.2 512 204.8 512 102.4 972.8ZM563.2 102.4C563.2 74.112 540.288 51.2 512 51.2 483.712 51.2 460.8 74.112 460.8 102.4L460.8 358.4 563.2 358.4 563.2 102.4ZM921.6 409.6 102.4 409.6 102.4 460.8 921.6 460.8 921.6 409.6Z"></path></symbol><symbol id="icon-fontSize" viewBox="0 0 1024 1024"><path d="M321.536 515.008H512V387.968H4.032v126.976H194.56V896h126.976V515.008z m63.552-380.992h634.944v127.04H385.088V134.016z m253.888 127.04h126.976V896H638.976V261.056z"></path></symbol><symbol id="icon-quote" viewBox="0 0 1024 1024"><path d="M448 896v-256H204.8c-6.4-166.4 32-256 179.2-332.8V192C166.4 268.8 57.6 409.6 64 627.2V896h384z m512 0v-256h-243.2c-6.4-166.4 32-256 179.2-332.8V192c-217.6 76.8-326.4 217.6-320 435.2V896h384z"></path></symbol><symbol id="icon-font" viewBox="0 0 1024 1024"><path d="M22.755556 0v278.755556H56.888889c11.377778-73.955556 39.822222-136.533333 91.022222-176.355556C176.355556 73.955556 227.555556 56.888889 301.511111 56.888889h79.644445v790.755555c0 51.2-5.688889 85.333333-11.377778 96.711112-5.688889 17.066667-17.066667 28.444444-34.133334 34.133333-17.066667 11.377778-45.511111 17.066667-73.955555 17.066667H227.555556v28.444444h568.888888v-28.444444h-34.133333c-34.133333 0-56.888889-5.688889-73.955555-17.066667-17.066667-11.377778-28.444444-22.755556-34.133334-34.133333-5.688889-11.377778-11.377778-45.511111-11.377778-96.711112V56.888889h79.644445c51.2 0 85.333333 5.688889 108.088889 11.377778 34.133333 17.066667 62.577778 39.822222 85.333333 68.266666 22.755556 28.444444 39.822222 73.955556 56.888889 136.533334h28.444444V0H22.755556z"></path></symbol><symbol id="icon-lookup" viewBox="0 0 1024 1024"><path d="M960 448V128c0-38.4-25.6-64-64-64H192c-32 0-64 25.6-64 64v768c0 38.4 25.6 64 64 64h704c38.4 0 64-25.6 64-64v-192l-275.2-236.8c6.4-12.8 12.8-32 12.8-44.8 25.6-134.4-89.6-249.6-224-224-76.8 12.8-134.4 70.4-147.2 147.2-25.6 134.4 89.6 249.6 224 224 38.4-6.4 76.8-25.6 102.4-57.6l243.2 217.6v128c0 19.2-12.8 32-32 32h-640c-19.2 0-32-6.4-32-25.6v-704c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32V448h64z m-416 57.6C448 531.2 364.8 448 390.4 352c12.8-44.8 44.8-83.2 89.6-89.6 96-25.6 179.2 57.6 153.6 153.6-6.4 44.8-44.8 83.2-89.6 89.6z" fill=""></path><path d="M320 640h256v64H320zM320 768h448v64H320z" fill=""></path></symbol><symbol id="icon-italic" viewBox="0 0 1024 1024"><path d="M670 195.6h205.4V64.7H350.5v130.9h191.9L347.2 828.4H148.6v130.9h524.9V828.4H474.9z"></path></symbol><symbol id="icon-format" viewBox="0 0 1024 1024"><path d="M64 64c0-35.328 29.184-64 64.128-64h639.68A64 64 0 0 1 832 64v192c0 35.328-29.184 64-64.128 64H128.192A64 64 0 0 1 64 256V64z m768 64h128v64h-128V128zM448 448h448v64H448V448z m448-256h64v320h-64V192zM448 512h64v64H448V512zM384 576h192v351.872a96 96 0 0 1-192 0V576z" fill=""></path></symbol><symbol id="icon-subscript" viewBox="0 0 1157 1024"><path d="M986.70404 871.981313v66.663206h170.666667v85.355481h-255.977853v-194.67428l170.666667-79.995847v-66.663206h-170.666667v-85.355481h255.977853v194.67428l-170.666667 79.995847zM864.0526 0h-181.297344L432.092742 250.662514 181.341639 0H0l341.333333 341.333333L0 682.666667h181.341639l250.751103-250.662514 250.662514 250.662514h181.297344l-341.333334-341.333334L864.0526 0z"></path></symbol><symbol id="icon-superscript" viewBox="0 0 1157 1024"><path d="M986.810657 274.676626v66.656707h170.648454v85.34244h-255.990893V231.987195l170.684878-79.988049V85.342439h-170.684878V0h255.990893v194.688578l-170.648454 79.988048z m-122.67748 66.656707h-181.357237l-250.672927 250.672927-250.745776-250.672927H0l341.333333 341.333334L0 1024h181.357237l250.745776-250.636503 250.672927 250.636503h181.357237l-341.369758-341.333333 341.369758-341.333334z"></path></symbol><symbol id="icon-drag" viewBox="0 0 1024 1024"><path d="M192 256h640v64H192z m0 192h640v64H192z m0 192h640v64H192z"></path></symbol><symbol id="icon-foreColor" viewBox="0 0 1024 1024"><path d="M896.1024 869.4784L544.09216 0h-69.40672L170.68032 777.9328C131.54304 892.416 74.6496 955.392 0 966.8608V1024h373.43232v-57.1392h-69.40672c-49.84832 0-76.45184-22.9376-80.09728-68.83328 3.64544-42.00448 10.69056-72.4992 21.38112-91.5456l42.78272-114.23744h298.57792l69.40672 165.74464c3.3792 10.99776 5.50912 17.5104 6.47168 19.72224-0.4096-2.74432-0.77824-5.24288-1.26976-8.25344 1.90464 8.00768 2.29376 10.67008 1.26976 8.25344 2.7648 18.16576 4.23936 30.84288 4.23936 37.62176 3.39968 38.0928-23.22432 55.17312-80.09728 51.5072h-53.26848V1024H1024v-57.1392c-63.95904 0-106.72128-32.4608-127.8976-97.3824zM314.71616 614.4l117.18656-308.77696 122.88 308.77696H314.71616z"></path></symbol><symbol id="icon-tab" viewBox="0 0 1024 1024"><path d="M320 128H128v128h192V128z m384 0v128h192V128h-192zM128 320v576h768V320H128zM64 64h896v896H64V64z m320 64v128h256V128H384z"></path></symbol></svg>',function(){var e,t,i=document.createElement("style"),o=document.body;i.styleSheet?i.styleSheet.cssText=ice.editor.css:i.innerHTML=ice.editor.css,document.getElementsByTagName("head")[0].appendChild(i),e=document.createElement("div"),e.innerHTML=ice.editor.css+ice.editor.svg,ice.editor.svg=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",o.firstChild?o.firstChild.parentNode.insertBefore(t,o.firstChild):o.appendChild(t))}()}}]),t}())(t,i)};