import{a4 as e,_ as t,e as n,c as o}from"./index-vtcwYVzc.js";var i,r={exports:{}};const a=e(i?r.exports:(i=1,window,r.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=141)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},function(e,t,n){n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return l})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return s})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return v})),n.d(t,"__read",(function(){return h})),n.d(t,"__spread",(function(){return A})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__spreadArray",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return w})),n.d(t,"__asyncDelegator",(function(){return x})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return E})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return M})),n.d(t,"__classPrivateFieldSet",(function(){return D}));
/*! *****************************************************************************
            		Copyright (c) Microsoft Corporation.
            
            		Permission to use, copy, modify, and/or distribute this software for any
            		purpose with or without fee is hereby granted.
            
            		THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
            		REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
            		AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
            		INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
            		LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
            		OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
            		PERFORMANCE OF THIS SOFTWARE.
            		***************************************************************************** */
var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function a(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function l(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,o){t(n,o,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{u(o.next(e))}catch(t){r(t)}}function l(e){try{u(o.throw(e))}catch(t){r(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((o=o.apply(e,t||[])).next())}))}function f(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(l){r=[6,l],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}}var d=Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(l){i={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function A(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,l=r.length;a<l;a++,i++)o[i]=r[a];return o}function g(e,t){for(var n=0,o=t.length,i=e.length;n<o;n++,i++)e[i]=t[n];return e}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){r.push([e,t,n,o])>1||l(e,t)}))})}function l(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):s(r[0][2],n)}catch(o){s(r[0][3],o)}var n}function u(e){l("next",e)}function c(e){l("throw",e)}function s(e,t){e(t),r.shift(),r.length&&l(r[0][0],r[0][1])}}function x(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:y(e[o](t)),done:"return"===o}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){!function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}(o,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var b=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return b(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function M(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function D(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(89)),a=o(n(4)),l=o(n(26)),u=o(n(17)),c=o(n(121)),s=o(n(27)),f=o(n(91)),d=o(n(70)),p=o(n(28)),v=o(n(57));(0,i.default)(t,"__esModule",{value:!0}),t.DomElement=void 0;var h=n(2),A=n(6),m=[];function g(e){var t=[],n=[];return t=(0,r.default)(e)?e:e.split(";"),(0,a.default)(t).call(t,(function(e){var t,o=(0,l.default)(t=e.split(":")).call(t,(function(e){return(0,u.default)(e).call(e)}));2===o.length&&n.push(o[0]+":"+o[1])})),n}var y=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,t){if(t instanceof e)return t;var n=[],o=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===o||9===o)n=[t];else if(function(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}(t))n=A.toArray(t);else if(t instanceof Array)n=t;else if("string"==typeof t){var i,r=(0,u.default)(i=t.replace("/\n/mg","")).call(i);n=0===(0,s.default)(r).call(r,"<")?function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return A.toArray(n)}(r):function(e){var t=document.querySelectorAll(e);return A.toArray(t)}(r)}var a=n.length;if(!a)return this;for(var l=0;l<a;l++)this.elems.push(n[l]);this.length=a}}return(0,i.default)(e.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t];if(!1===e.call(n,n,t))break}return this},e.prototype.clone=function(e){var t;void 0===e&&(e=!1);var n=[];return(0,a.default)(t=this.elems).call(t,(function(t){n.push(t.cloneNode(!!e))})),w(n)},e.prototype.get=function(e){void 0===e&&(e=0);var t=this.length;return e>=t&&(e%=t),w(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(this).call(this,(function(o){if(t){var i=function(e){var o=e.target;o.matches(t)&&n.call(o,e)};o.addEventListener(e,i),m.push({elem:o,selector:t,fn:n,agentFn:i})}else o.addEventListener(e,n)}))):this},e.prototype.off=function(e,t,n){return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(this).call(this,(function(o){if(t){for(var i=-1,r=0;r<m.length;r++){var a=m[r];if(a.selector===t&&a.fn===n&&a.elem===o){i=r;break}}if(-1!==i){var l=(0,f.default)(m).call(m,i,1)[0].agentFn;o.removeEventListener(e,l)}}else o.removeEventListener(e,n)}))):this},e.prototype.attr=function(e,t){return null==t?this.elems[0].getAttribute(e)||"":(0,a.default)(this).call(this,(function(n){n.setAttribute(e,t)}))},e.prototype.removeAttr=function(e){(0,a.default)(this).call(this,(function(t){t.removeAttribute(e)}))},e.prototype.addClass=function(e){return e?(0,a.default)(this).call(this,(function(t){if(t.className){var n=t.className.split(/\s/);n=(0,d.default)(n).call(n,(function(e){return!!(0,u.default)(e).call(e)})),(0,s.default)(n).call(n,e)<0&&n.push(e),t.className=n.join(" ")}else t.className=e})):this},e.prototype.removeClass=function(e){return e?(0,a.default)(this).call(this,(function(t){if(t.className){var n=t.className.split(/\s/);n=(0,d.default)(n).call(n,(function(t){return!(!(t=(0,u.default)(t).call(t))||t===e)})),t.className=n.join(" ")}})):this},e.prototype.hasClass=function(e){if(!e)return!1;var t=this.elems[0];if(!t.className)return!1;var n=t.className.split(/\s/);return(0,p.default)(n).call(n,e)},e.prototype.css=function(e,t){var n;return n=""==t?"":e+":"+t+";",(0,a.default)(this).call(this,(function(t){var o,i=(0,u.default)(o=t.getAttribute("style")||"").call(o);if(i){var r=g(i);r=(0,l.default)(r).call(r,(function(t){return 0===(0,s.default)(t).call(t,e)?n:t})),""!=n&&(0,s.default)(r).call(r,n)<0&&r.push(n),""==n&&(r=g(r)),t.setAttribute("style",r.join("; "))}else t.setAttribute("style",n)}))},e.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},e.prototype.show=function(){return this.css("display","block")},e.prototype.hide=function(){return this.css("display","none")},e.prototype.children=function(){var e=this.elems[0];return e?w(e.children):null},e.prototype.childNodes=function(){var e=this.elems[0];return e?w(e.childNodes):null},e.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},e.prototype.append=function(e){return(0,a.default)(this).call(this,(function(t){(0,a.default)(e).call(e,(function(e){t.appendChild(e)}))}))},e.prototype.remove=function(){return(0,a.default)(this).call(this,(function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}}))},e.prototype.isContain=function(e){var t=this.elems[0],n=e.elems[0];return t.contains(n)},e.prototype.getNodeName=function(){return this.elems[0].nodeName},e.prototype.getNode=function(e){return void 0===e&&(e=0),this.elems[e]},e.prototype.find=function(e){return w(this.elems[0].querySelectorAll(e))},e.prototype.text=function(e){return e?(0,a.default)(this).call(this,(function(t){t.innerHTML=e})):this.elems[0].innerHTML.replace(/<[^>]+>/g,(function(){return""}))},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,u.default)(e=t.value).call(e)},e.prototype.focus=function(){return(0,a.default)(this).call(this,(function(e){e.focus()}))},e.prototype.prev=function(){return w(this.elems[0].previousElementSibling)},e.prototype.next=function(){return w(this.elems[0].nextElementSibling)},e.prototype.getNextSibling=function(){return w(this.elems[0].nextSibling)},e.prototype.parent=function(){return w(this.elems[0].parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var o=n.parentElement;return null===o?null:o.matches(e)?w(o):this.parentUntil(e,o)},e.prototype.parentUntilEditor=function(e,t,n){var o=n||this.elems[0];if(w(o).equal(t.$textContainerElem)||w(o).equal(t.$toolbarElem))return null;var i=o.parentElement;return null===i?null:i.matches(e)?w(i):this.parentUntilEditor(e,t,i)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t=w(e).elems[0];return t?(0,a.default)(this).call(this,(function(e){var n=t.parentNode;null==n||n.insertBefore(e,t)})):this},e.prototype.insertAfter=function(e){var t=w(e).elems[0],n=t&&t.nextSibling;return t?(0,a.default)(this).call(this,(function(e){var o=t.parentNode;n?o.insertBefore(e,n):o.appendChild(e)})):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})},e}();function w(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,v.default)(y).apply(y,h.__spreadArrays([void 0],e)))}t.DomElement=y,t.default=w},function(e,t,n){e.exports=n(180)},function(e,t,n){var o=n(8),i=n(71).f,r=n(101),a=n(9),l=n(40),u=n(19),c=n(16),s=function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,f,d,p,v,h,A,m,g=e.target,y=e.global,w=e.stat,x=e.proto,_=y?o:w?o[g]:(o[g]||{}).prototype,E=y?a:a[g]||(a[g]={}),b=E.prototype;for(d in t)n=!r(y?d:g+(w?".":"#")+d,e.forced)&&_&&c(_,d),v=E[d],n&&(h=e.noTargetGet?(m=i(_,d))&&m.value:_[d]),p=n&&h?h:t[d],n&&typeof v==typeof p||(A=e.bind&&n?l(p,o):e.wrap&&n?s(p):x&&"function"==typeof p?l(Function.call,p):p,(e.sham||p&&p.sham||v&&v.sham)&&u(A,"sham",!0),E[d]=A,x&&(c(a,f=g+"Prototype")||u(a,f,{}),a[f][d]=p,e.real&&b&&!b[d]&&u(b,d,p)))}},function(e,t,n){var o=n(0),i=o(n(92)),r=o(n(1)),a=o(n(256)),l=o(n(45)),u=o(n(46)),c=o(n(89)),s=o(n(26));(0,r.default)(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0;var f=n(2),d=function(){function e(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,a.default)(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return e.prototype.isIE=function(){return"ActiveXObject"in window},e.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},e}();t.UA=new d,t.getRandom=function(e){var t;return void 0===e&&(e=""),e+(0,l.default)(t=Math.random().toString()).call(t,2)},t.replaceHtmlSymbol=function(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")},t.replaceSpecialSymbol=function(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')},t.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break},t.arrForEach=function(e,t){var n,o,i=e.length||0;for(n=0;n<i&&(o=e[n],!1!==t.call(e,o,n));n++);},t.throttle=function(e,t){void 0===t&&(t=200);var n=!1;return function(){for(var o=this,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];n||(n=!0,(0,u.default)((function(){n=!1,e.call.apply(e,f.__spreadArrays([o],i))}),t))}},t.debounce=function(e,t){void 0===t&&(t=200);var n=0;return function(){for(var o=this,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];n&&window.clearTimeout(n),n=(0,u.default)((function(){n=0,e.call.apply(e,f.__spreadArrays([o],i))}),t)}},t.isFunction=function(e){return"function"==typeof e},t.deepClone=function e(t){if("object"!==(0,i.default)(t)||"function"==typeof t||null===t)return t;var n;for(var o in(0,c.default)(t)&&(n=[]),(0,c.default)(t)||(n={}),t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=e(t[o]));return n},t.toArray=function(e){return(0,l.default)(Array.prototype).call(e)},t.getRandomCode=function(){var e;return(0,l.default)(e=Math.random().toString(36)).call(e,-5)},t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(null==t)return null;var n=(0,s.default)(t).call(t,(function(e){return(0,a.default)(e,16)}));return"rgb("+n[1]+", "+n[2]+", "+n[3]+")"}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=function(){},t.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var o=n(8),i=n(74),r=n(16),a=n(64),l=n(76),u=n(106),c=i("wks"),s=o.Symbol,f=u?s:s&&s.withoutSetter||a;e.exports=function(e){return r(c,e)||(l&&r(s,e)?c[e]=s[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var o=n(9),i=n(16),r=n(93),a=n(18).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});i(t,e)||a(t,e,{value:r.f(e)})}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var o=n(11);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var o=n(9);e.exports=function(e){return o[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var o=n(14),i=n(100),r=n(25),a=n(60),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return l(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(14),i=n(18),r=n(48);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=function(){var e;return function(){return void 0===e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(o){n=null}e[t]=n}return e[t]}}(),r=[];function a(e){for(var t=-1,n=0;n<r.length;n++)if(r[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},o=[],i=0;i<e.length;i++){var l=e[i],u=t.base?l[0]+t.base:l[0],c=n[u]||0,s="".concat(u," ").concat(c);n[u]=c+1;var f=a(s),d={css:l[1],media:l[2],sourceMap:l[3]};-1!==f?(r[f].references++,r[f].updater(d)):r.push({identifier:s,updater:v(d,t),references:1}),o.push(s)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function s(e,t,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function f(e,t,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var d=null,p=0;function v(e,t){var n,o,i;if(t.singleton){var r=p++;n=d||(d=u(t)),o=s.bind(null,n,r,!1),i=s.bind(null,n,r,!0)}else n=u(t),o=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var i=a(n[o]);r[i].references--}for(var u=l(e,t),c=0;c<n.length;c++){var s=a(n[c]);0===r[s].references&&(r[s].updater(),r.splice(s,1))}n=u}}}},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,o,i,r=e[1]||"",a=e[3];if(!a)return r;if(t&&"function"==typeof btoa){var l=(n=a,o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(i," */")),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[r].concat(u).concat([l]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);o&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){var o=n(14),i=n(11),r=n(16),a=Object.defineProperty,l={},u=function(e){throw e};e.exports=function(e,t){if(r(l,e))return l[e];t||(t={});var n=[][e],c=!!r(t,"ACCESSORS")&&t.ACCESSORS,s=r(t,0)?t[0]:u,f=r(t,1)?t[1]:void 0;return l[e]=!!n&&!i((function(){if(c&&!o)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,s,f)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(t,n){return e.call(this,t,n)||this}return o.__extends(t,e),t}(o.__importDefault(n(95)).default);t.default=i},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),c=l.__importDefault(n(95)),s=l.__importDefault(n(134)),f=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;o.title=n.i18next.t("menus.dropListMenu."+o.title);var l,c="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";""!==c&&"list"===o.type&&(0,r.default)(l=o.list).call(l,(function(e){var t=e.$elem,n=u.default(t.children());if(n.length>0){var o=null==n?void 0:n.getNodeName();o&&"I"===o&&t.addClass(c)}}));var f=new s.default(i,o);return i.dropList=f,t.on("click",(function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,r.default)(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,(function(e){return e()})),f.show())})).on("mouseleave",(function(){t.css("z-index","auto"),f.hideTimeoutId=(0,a.default)((function(){f.hide()}))})),i}return l.__extends(t,e),t}(c.default);t.default=f},function(e,t,n){var o=n(13);e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(283)},function(e,t,n){var o=n(72),i=n(49);e.exports=function(e){return o(i(e))}},function(e,t,n){var o=n(49);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(40),i=n(72),r=n(31),a=n(35),l=n(88),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,v,h,A){for(var m,g,y=r(p),w=i(y),x=o(v,h,3),_=a(w.length),E=0,b=A||l,C=t?b(p,_):n?b(p,0):void 0;_>E;E++)if((d||E in w)&&(g=x(m=w[E],E,y),e))if(t)C[E]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:u.call(C,m)}else if(s)return!1;return f?-1:c||s?s:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(29)),l=o(n(132));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),c=u.__importDefault(n(3)),s=n(7),f=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=c.default('<div class="w-e-panel-container"></div>');var o=t.editor;o.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),o.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),o.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var o=this.conf,i=this.$container,l=o.width||300,f=n.editor.$toolbarElem.getBoundingClientRect(),d=n.$elem.getBoundingClientRect(),p=f.height+f.top-d.top,v=(f.width-l)/2+f.left-d.left;Math.abs(v)>300&&(v=d.left<document.documentElement.clientWidth/2?-d.width/2:-l+d.width/2),i.css("width",l+"px").css("margin-top",p+"px").css("margin-left",v+"px").css("z-index",n.editor.zIndex.get("panel"));var h=c.default('<i class="w-e-icon-close w-e-panel-close"></i>');i.append(h),h.on("click",(function(){t.remove()}));var A=c.default('<ul class="w-e-panel-tab-title"></ul>'),m=c.default('<div class="w-e-panel-tab-content"></div>');i.append(A).append(m);var g=o.height;g&&m.css("height",g+"px").css("overflow-y","auto");var y=o.tabs||[],w=[],x=[];(0,r.default)(y).call(y,(function(e,t){if(e){var n=e.title||"",o=e.tpl||"",i=c.default('<li class="w-e-item">'+n+"</li>");A.append(i);var a=c.default(o);m.append(a),w.push(i),x.push(a),0===t?(i.data("active",!0),i.addClass("w-e-active")):a.hide(),i.on("click",(function(){i.data("active")||((0,r.default)(w).call(w,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,r.default)(x).call(x,(function(e){e.hide()})),i.data("active",!0),i.addClass("w-e-active"),a.show())}))}})),i.on("click",(function(e){e.stopPropagation()})),n.$elem.append(i),o.setLinkValue&&o.setLinkValue(i,"text"),o.setLinkValue&&o.setLinkValue(i,"link"),(0,r.default)(y).call(y,(function(e,n){if(e){var o=e.events||[];(0,r.default)(o).call(o,(function(e){var o,i=e.selector,r=e.type,l=e.fn||s.EMPTY_FN,c=x[n],f=null!==(o=e.bindEnter)&&void 0!==o&&o,d=function(e){return u.__awaiter(t,void 0,void 0,(function(){return u.__generator(this,(function(t){switch(t.label){case 0:return e.stopPropagation(),[4,l(e)];case 1:return t.sent()&&this.remove(),[2]}}))}))};(0,a.default)(c).call(c,i).on(r,d),f&&"click"===r&&c.on("keyup",(function(e){13==e.keyCode&&d(e)}))}))}}));var _=(0,a.default)(i).call(i,"input[type=text],textarea");_.length&&_.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus.delete(t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,r.default)(t=e.createdMenus).call(t,(function(e){var t=e.panel;t&&t.remove()}))},e.createdMenus=new l.default,e}();t.default=f},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(62),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},function(e,t,n){var o=n(9),i=n(8),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(o[e])||r(i[e]):o[e]&&o[e][t]||i[e]&&i[e][t]}},function(e,t,n){var o=n(81),i=n(18).f,r=n(19),a=n(16),l=n(170),u=n(10)("toStringTag");e.exports=function(e,t,n,c){if(e){var s=n?e:e.prototype;a(s,u)||i(s,u,{configurable:!0,value:t}),c&&!o&&r(s,"toString",l)}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(t,n){return e.call(this,t,n)||this}return o.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(o.__importDefault(n(95)).default);t.default=i},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(57));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var o=l.default("<div></div>");o.addClass("w-e-tooltip"),this.$container=o}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,o=20,i=document.documentElement.scrollTop,r=this.$targetElem.getBoundingClientRect(),a=this.editor.$textElem.getBoundingClientRect(),u=this.$targetElem.getOffsetData(),c=l.default(u.parent),s=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=c.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var f=c.getBoundingClientRect().height,d=u.top,p=u.left,v=u.height,h=d-s;h>25?(t=h-o-15,e.addClass("w-e-tooltip-up")):h+v+o<f?(t=h+v+10,e.addClass("w-e-tooltip-down")):(t=(h>0?h:0)+o+10,e.addClass("w-e-tooltip-down")),n=p<0?0:p}else r.top<o||r.top-a.top<o?(t=r.bottom+i+5,e.addClass("w-e-tooltip-down")):(t=r.top+i-o-15,e.addClass("w-e-tooltip-up")),n=r.left<0?0:r.left;return{top:t,left:n}},e.prototype.appendMenus=function(){var e=this,t=this.conf,n=this.editor,o=this.$targetElem,i=this.$container;(0,r.default)(t).call(t,(function(t,r){var a=t.$elem,u=l.default("<div></div>");u.addClass("w-e-tooltip-item-wrapper "),u.append(a),i.append(u),a.on("click",(function(i){i.preventDefault(),t.onClick(n,o)&&e.remove()}))}))},e.prototype.create=function(){var e,t,n=this.editor,o=this.$container;this.appendMenus();var i=this.getPositionData(),r=i.top,u=i.left;o.css("top",r+"px"),o.css("left",u+"px"),o.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(o):l.default("body").append(o),this._show=!0,n.beforeDestroy((0,a.default)(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,a.default)(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=u},function(e,t,n){var o=n(41);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var o,i,r,a=n(165),l=n(8),u=n(13),c=n(19),s=n(16),f=n(63),d=n(51),p=l.WeakMap;if(a){var v=new p,h=v.get,A=v.has,m=v.set;o=function(e,t){return m.call(v,e,t),t},i=function(e){return h.call(v,e)||{}},r=function(e){return A.call(v,e)}}else{var g=f("state");d[g]=!0,o=function(e,t){return c(e,g,t),t},i=function(e){return s(e,g)?e[g]:{}},r=function(e){return s(e,g)}}e.exports={set:o,get:i,has:r,enforce:function(e){return r(e)?i(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var a=n(2),l=n(137),u=a.__importDefault(n(3));function c(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,r.default)(e).call(e,(function(e){var n=e.getNodeName();if(n!==l.ListType.OrderedList&&n!==l.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var o=e.children();null==o||(0,r.default)(o).call(o,(function(e){t.push(u.default(e))}))}})),t},t.updateRange=function(e,t,n){var o=e.selection,i=document.createRange();t.length>1?(i.setStart(t.elems[0],0),i.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):i.selectNodeContents(t.elems[0]),n&&i.collapse(!1),o.saveRange(i),o.restoreSelection()},t.getStartPoint=function(e){var t;return e.prior?e.prior:u.default(null===(t=e.children())||void 0===t?void 0:t.elems[0])},t.getEndPoint=function(e){var t;return e.prior?e.prior:u.default(null===(t=e.children())||void 0===t?void 0:t.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=c,t.createDocumentFragment=function(){return document.createDocumentFragment()},t.createElementFragment=function(e,t,n){return void 0===n&&(n="li"),(0,r.default)(e).call(e,(function(e){var o=c(n);o.innerHTML=e.html(),t.appendChild(o),e.remove()})),t}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var o=n(164).charAt,i=n(42),r=n(75),a="String Iterator",l=i.set,u=i.getterFor(a);r(String,"String",(function(e){l(this,{type:a,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=o(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t){e.exports={}},function(e,t,n){var o=n(107),i=n(80);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t,n){var o=n(19);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:o(e,t,n)}},function(e,t,n){n(173);var o=n(174),i=n(8),r=n(65),a=n(19),l=n(44),u=n(10)("toStringTag");for(var c in o){var s=i[c],f=s&&s.prototype;f&&r(f)!==u&&a(f,u,c),l[c]=l.Array}},function(e,t,n){var o=n(34);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(11),i=n(10),r=n(86),a=i("species");e.exports=function(e){return r>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){e.exports=n(222)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var o=n(2).__importDefault(n(373)),i=function(){return function(e){this.options=e,this.selectionRangeElem=new o.default}}();t.ListHandle=i},function(e,t,n){var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:o},function(e,t,n){var o=n(13);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(74),i=n(64),r=o("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+o).toString(36)}},function(e,t,n){var o=n(81),i=n(34),r=n(10)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),r))?n:a?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var o=n(25),i=n(112),r=n(35),a=n(40),l=n(113),u=n(114),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,s,f){var d,p,v,h,A,m,g,y=a(t,n,s?2:1);if(f)d=e;else{if("function"!=typeof(p=l(e)))throw TypeError("Target is not iterable");if(i(p)){for(v=0,h=r(e.length);h>v;v++)if((A=s?y(o(g=e[v])[0],g[1]):y(e[v]))&&A instanceof c)return A;return new c(!1)}d=p.call(e)}for(m=d.next;!(g=m.call(d)).done;)if("object"==typeof(A=u(d,y,g.value,s))&&A&&A instanceof c)return A;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,n){var o=n(11);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){var o=n(60),i=n(18),r=n(48);e.exports=function(e,t,n){var a=o(t);a in e?i.f(e,a,r(0,n)):e[a]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var o=n(14),i=n(59),r=n(48),a=n(30),l=n(60),u=n(16),c=n(100),s=Object.getOwnPropertyDescriptor;t.f=o?s:function(e,t){if(e=a(e),t=l(t,!0),c)try{return s(e,t)}catch(n){}if(u(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var o=n(11),i=n(34),r="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?r.call(e,""):Object(e)}:Object},function(e,t,n){var o=n(8),i=n(13),r=o.document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,n){var o=n(43),i=n(103);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var o=n(5),i=n(167),r=n(105),a=n(171),l=n(37),u=n(19),c=n(53),s=n(10),f=n(43),d=n(44),p=n(104),v=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,A=s("iterator"),m="keys",g="values",y="entries",w=function(){return this};e.exports=function(e,t,n,s,p,x,_){i(n,t,s);var E,b,C,S=function(e){if(e===p&&T)return T;if(!h&&e in k)return k[e];switch(e){case m:case g:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",D=!1,k=e.prototype,N=k[A]||k["@@iterator"]||p&&k[p],T=!h&&N||S(p),B="Array"==t&&k.entries||N;if(B&&(E=r(B.call(new e)),v!==Object.prototype&&E.next&&(f||r(E)===v||(a?a(E,v):"function"!=typeof E[A]&&u(E,A,w)),l(E,M,!0,!0),f&&(d[M]=w))),p==g&&N&&N.name!==g&&(D=!0,T=function(){return N.call(this)}),f&&!_||k[A]===T||u(k,A,T),d[t]=T,p)if(b={values:S(g),keys:x?T:S(m),entries:S(y)},_)for(C in b)(h||D||!(C in k))&&c(k,C,b[C]);else o({target:t,proto:!0,forced:h||D},b);return b}},function(e,t,n){var o=n(11);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(e,t,n){var o,i=n(25),r=n(169),a=n(80),l=n(51),u=n(108),c=n(73),s=n(63),f="prototype",d="script",p=s("IE_PROTO"),v=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},A=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t,n;A=o?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):(t=c("iframe"),n="java"+d+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var i=a.length;i--;)delete A[f][a[i]];return A()};l[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=i(e),n=new v,v[f]=null,n[p]=e):n=A(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(30),i=n(35),r=n(79),a=function(e){return function(t,n,a){var l,u=o(t),c=i(u.length),s=r(a,c);if(e&&n!=n){for(;c>s;)if((l=u[s++])!=l)return!0}else for(;c>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var o=n(62),i=Math.max,r=Math.min;e.exports=function(e,t){var n=o(e);return n<0?i(n+t,0):r(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var o={};o[n(10)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var o=n(36);e.exports=o("navigator","userAgent")||""},function(e,t,n){var o=n(41),i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){var o,i,r=n(8),a=n(84),l=r.process,u=l&&l.versions,c=u&&u.v8;c?i=(o=c.split("."))[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(i=o[1]),e.exports=i&&+i},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(6),c=a.__importDefault(n(267)),s=a.__importDefault(n(280)),f=a.__importDefault(n(281)),d=a.__importDefault(n(282)),p=a.__importDefault(n(301)),v=a.__importStar(n(416)),h=a.__importDefault(n(417)),A=a.__importDefault(n(418)),m=a.__importDefault(n(419)),g=a.__importStar(n(420)),y=a.__importDefault(n(423)),w=a.__importDefault(n(424)),x=a.__importDefault(n(425)),_=a.__importDefault(n(427)),E=a.__importDefault(n(437)),b=a.__importDefault(n(440)),C=a.__importStar(n(441)),S=a.__importDefault(n(23)),M=a.__importDefault(n(134)),D=a.__importDefault(n(24)),k=a.__importDefault(n(33)),N=a.__importDefault(n(38)),T=a.__importDefault(n(39)),B=1,I=function(){function e(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+B++,this.toolbarSelector=e,this.textSelector=t,v.selectorValidator(this),this.config=u.deepClone(c.default),this.$toolbarElem=l.default("<div></div>"),this.$textContainerElem=l.default("<div></div>"),this.$textElem=l.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new s.default(this),this.cmd=new f.default(this),this.txt=new d.default(this),this.menus=new p.default(this),this.zIndex=new w.default,this.change=new x.default(this),this.history=new _.default(this),this.onSelectionChange=new b.default(this);var n=E.default(this),o=n.disable,i=n.enable;this.disable=o,this.enable=i,this.isEnable=!0}return e.prototype.initSelection=function(e){h.default(this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),m.default(this),v.default(this),this.txt.init(),this.menus.init(),g.default(this),this.initSelection(!0),A.default(this),this.change.observe(),this.history.observe(),C.default(this)},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,r.default)(e=this.beforeDestroyHooks).call(e,(function(e){return e.call(t)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){g.setFullScreen(this)},e.prototype.unFullScreen=function(){g.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){y.default(this,e)},e.registerMenu=function(t,n){n&&"function"==typeof n&&(e.globalCustomMenuConstructorList[t]=n)},e.prototype.registerPlugin=function(e,t){C.registerPlugin(e,t,this.pluginsFunctionList)},e.registerPlugin=function(t,n){C.registerPlugin(t,n,e.globalPluginsFunctionList)},e.$=l.default,e.BtnMenu=S.default,e.DropList=M.default,e.DropListMenu=D.default,e.Panel=k.default,e.PanelMenu=N.default,e.Tooltip=T.default,e.globalCustomMenuConstructorList={},e.globalPluginsFunctionList={},e}();t.default=I},function(e,t,n){var o=n(13),i=n(55),r=n(10)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[r])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var o=n(49),i="["+n(68)+"]",r=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),l=function(e){return function(t){var n=String(o(t));return 1&e&&(n=n.replace(r,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var o=n(227),i=n(230);function r(t){return e.exports=r="function"==typeof i&&"symbol"==typeof o?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t,n){var o=n(10);t.f=o},function(e,t,n){e.exports=n(306)},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(33)),l=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",(function(e){var o;a.default.hideCurAllPanels(),(0,r.default)(o=t.txt.eventHooks.menuClickEvents).call(o,(function(e){return e()})),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)}))}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t.default=l},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28));function a(e){for(var n=e.elems[0];n&&(0,r.default)(o=t.EXTRA_TAG).call(o,n.nodeName);){var o;if("A"===(n=n.parentElement).nodeName)return n}}(0,i.default)(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=a,t.default=function(e){var t,n=e.selection.getSelectionContainerElem();if(!(null===(t=null==n?void 0:n.elems)||void 0===t?void 0:t.length))return!1;if("A"===n.getNodeName())return!0;var o=a(n);return!(!o||"A"!==o.nodeName)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(57)),a=o(n(4)),l=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),c=n(6),s=u.__importDefault(n(135)),f=u.__importDefault(n(136)),d=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var o=this.editor,i=o.config,r=function(e,t){return void 0===t&&(t="validate."),o.i18next.t(t+e)},a=e.replace(/</g,"&lt;").replace(/>/g,"&gt;");a=a.replace("'",'"');var l="";n&&(l=n.replace("'",'"'),l="data-href='"+encodeURIComponent(l)+"' ");var u="";t&&(u="alt='"+(u=(u=t.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'))+"' "),o.cmd.do("insertHTML","<img src='"+a+"' "+u+l+'style="max-width:100%;" contenteditable="false"/>'),i.linkImgCallback(e,t,n);var c=document.createElement("img");c.onload=function(){c=null},c.onerror=function(){i.customAlert(r("插入图片错误"),"error","wangEditor: "+r("插入图片错误")+"，"+r("图片链接")+' "'+e+'"，'+r("下载链接失败")),c=null},c.onabort=function(){return c=null},c.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,o=n.config,i=function(e){return n.i18next.t("validate."+e)},u=o.uploadImgServer,d=o.uploadImgShowBase64,p=o.uploadImgMaxSize,v=p/1024/1024,h=o.uploadImgMaxLength,A=o.uploadFileName,m=o.uploadImgParams,g=o.uploadImgParamsWithUrl,y=o.uploadImgHeaders,w=o.uploadImgHooks,x=o.uploadImgTimeout,_=o.withCredentials,E=o.customUploadImg;if(E||u||d){var b=[],C=[];if(c.arrForEach(e,(function(e){if(e){var t=e.name||e.type.replace("/","."),o=e.size;if(t&&o){var r=n.config.uploadImgAccept.join("|");!1!==new RegExp(".("+r+")$","i").test(t)?p<o?C.push("【"+t+"】"+i("大于")+" "+v+"M"):b.push(e):C.push("【"+t+"】"+i("不是图片"))}}})),C.length)o.customAlert(i("图片验证未通过")+": \n"+C.join("\n"),"warning");else if(0!==b.length)if(b.length>h)o.customAlert(i("一次最多上传")+h+i("张图片"),"warning");else if(E&&"function"==typeof E){var S;E(b,(0,r.default)(S=this.insertImg).call(S,this))}else{var M=new FormData;if((0,a.default)(b).call(b,(function(e,t){var n=A||e.name;b.length>1&&(n+=t+1),M.append(n,e)})),u){var D=u.split("#");u=D[0];var k=D[1]||"";(0,a.default)(c).call(c,m,(function(e,t){g&&((0,l.default)(u).call(u,"?")>0?u+="&":u+="?",u=u+e+"="+t),M.append(e,t)})),k&&(u+="#"+k);var N=s.default(u,{timeout:x,formData:M,headers:y,withCredentials:!!_,beforeSend:function(e){if(w.before)return w.before(e,n,b)},onTimeout:function(e){o.customAlert(i("上传图片超时"),"error"),w.timeout&&w.timeout(e,n)},onProgress:function(e,t){var o=new f.default(n);t.lengthComputable&&(e=t.loaded/t.total,o.show(e))},onError:function(e){o.customAlert(i("上传图片错误"),"error",i("上传图片错误")+"，"+i("服务器返回状态")+": "+e.status),w.error&&w.error(e,n)},onFail:function(e,t){o.customAlert(i("上传图片失败"),"error",i("上传图片返回结果错误")+"，"+i("返回结果")+": "+t),w.fail&&w.fail(e,n,t)},onSuccess:function(e,l){if(w.customInsert){var u;w.customInsert((0,r.default)(u=t.insertImg).call(u,t),l,n)}else{if("0"!=l.errno)return o.customAlert(i("上传图片失败"),"error",i("上传图片返回结果错误")+"，"+i("返回结果")+" errno="+l.errno),void(w.fail&&w.fail(e,n,l));var c=l.data;(0,a.default)(c).call(c,(function(e){"string"==typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)})),w.success&&w.success(e,n,l)}}});"string"==typeof N&&o.customAlert(N,"error")}else d&&c.arrForEach(e,(function(e){var n=t,o=new FileReader;o.readAsDataURL(e),o.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}}))}else o.customAlert(i("传入的文件不合法"),"warning")}}},e}();t.default=d},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(410)),a=o(n(4)),l=o(n(45));function u(e){return!!e.length&&"w-e-todo"===e.attr("class")}function c(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function s(e,t,n){void 0===n&&(n=!0);var o=e.nodeValue,i=null==o?void 0:(0,l.default)(o).call(o,0,t);if(o=null==o?void 0:(0,l.default)(o).call(o,t),!n){var r=o;o=i,i=r}return e.nodeValue=i,o}(0,i.default)(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=u,t.isAllTodo=function(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,r.default)(t).call(t,(function(e){return u(e)}))},t.getCursorNextNode=function e(t,n,o){var i;if(t.hasChildNodes()){var r=t.cloneNode(),l=!1;""===n.nodeValue&&(l=!0);var u=[];return(0,a.default)(i=t.childNodes).call(i,(function(t){if(!c(t,n)&&l&&(r.appendChild(t.cloneNode(!0)),"BR"!==t.nodeName&&u.push(t)),c(t,n)){if(1===t.nodeType){var i=e(t,n,o);i&&""!==i.textContent&&(null==r||r.appendChild(i))}if(3===t.nodeType&&n.isEqualNode(t)){var a=s(t,o);r.textContent=a}l=!0}})),(0,a.default)(u).call(u,(function(e){e.remove()})),r}},t.dealTextNode=s},function(e,t,n){var o=n(0)(n(1));(0,o.default)(t,"__esModule",{value:!0});var i=n(430),r=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new i.CeilStack(e),this.revokeData=new i.CeilStack(e)}return(0,o.default)(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t.default=r},function(e,t,n){var o=n(14),i=n(11),r=n(73);e.exports=!o&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var o=n(11),i=/#|\.prototype\./,r=function(e,t){var n=l[a(e)];return n==c||n!=u&&("function"==typeof t?o(t):!!t)},a=r.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=r.data={},u=r.NATIVE="N",c=r.POLYFILL="P";e.exports=r},function(e,t,n){var o=n(103),i=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return i.call(e)}),e.exports=o.inspectSource},function(e,t,n){var o=n(8),i=n(166),r="__core-js_shared__",a=o[r]||i(r,{});e.exports=a},function(e,t,n){var o,i,r,a=n(105),l=n(19),u=n(16),c=n(10),s=n(43),f=c("iterator"),d=!1;[].keys&&("next"in(r=[].keys())?(i=a(a(r)))!==Object.prototype&&(o=i):d=!0),null==o&&(o={}),s||u(o,f)||l(o,f,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var o=n(16),i=n(31),r=n(63),a=n(168),l=r("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),o(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var o=n(76);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var o=n(16),i=n(30),r=n(78).indexOf,a=n(51);e.exports=function(e,t){var n,l=i(e),u=0,c=[];for(n in l)!o(a,n)&&o(l,n)&&c.push(n);for(;t.length>u;)o(l,n=t[u++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var o=n(36);e.exports=o("document","documentElement")},function(e,t,n){var o=n(8);e.exports=o.Promise},function(e,t,n){var o=n(53);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:o(e,i,t[i],n);return e}},function(e,t,n){var o=n(36),i=n(18),r=n(10),a=n(14),l=r("species");e.exports=function(e){var t=o(e),n=i.f;a&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(10),i=n(44),r=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},function(e,t,n){var o=n(65),i=n(44),r=n(10)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var o=n(25);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(a){var r=e.return;throw void 0!==r&&o(r.call(e)),a}}},function(e,t,n){var o=n(10)("iterator"),i=!1;try{var r=0,a={next:function(){return{done:!!r++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},function(e,t,n){var o=n(25),i=n(41),r=n(10)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||null==(n=o(a)[r])?t:i(n)}},function(e,t,n){var o,i,r,a=n(8),l=n(11),u=n(34),c=n(40),s=n(108),f=n(73),d=n(118),p=a.location,v=a.setImmediate,h=a.clearImmediate,A=a.process,m=a.MessageChannel,g=a.Dispatch,y=0,w={},x="onreadystatechange",_=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},E=function(e){return function(){_(e)}},b=function(e){_(e.data)},C=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};v&&h||(v=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},o(y),y},h=function(e){delete w[e]},"process"==u(A)?o=function(e){A.nextTick(E(e))}:g&&g.now?o=function(e){g.now(E(e))}:m&&!d?(r=(i=new m).port2,i.port1.onmessage=b,o=c(r.postMessage,r,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||l(C)||"file:"===p.protocol?o=x in f("script")?function(e){s.appendChild(f("script"))[x]=function(){s.removeChild(this),_(e)}}:function(e){setTimeout(E(e),0)}:(o=C,a.addEventListener("message",b,!1))),e.exports={set:v,clear:h}},function(e,t,n){var o=n(84);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(e,t,n){var o=n(25),i=n(13),r=n(85);e.exports=function(e,t){if(o(e),i(t)&&t.constructor===e)return t;var n=r.f(e);return(0,n.resolve)(t),n.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){var o=n(5),i=n(8),r=n(123),a=n(11),l=n(19),u=n(66),c=n(83),s=n(13),f=n(37),d=n(18).f,p=n(32).forEach,v=n(14),h=n(42),A=h.set,m=h.getterFor;e.exports=function(e,t,n){var h,g=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=g?"set":"add",x=i[e],_=x&&x.prototype,E={};if(v&&"function"==typeof x&&(y||_.forEach&&!a((function(){(new x).entries().next()})))){h=t((function(t,n){A(c(t,h,e),{type:e,collection:new x}),null!=n&&u(n,t[w],t,g)}));var b=m(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in _)||y&&"clear"==e||l(h.prototype,e,(function(n,o){var i=b(this).collection;if(!t&&y&&!s(n))return"get"==e&&void 0;var r=i[e](0===n?0:n,o);return t?this:r}))})),y||d(h.prototype,"size",{configurable:!0,get:function(){return b(this).collection.size}})}else h=n.getConstructor(t,e,g,w),r.REQUIRED=!0;return f(h,e,!1,!0),E[e]=h,o({global:!0,forced:!0},E),y||n.setStrong(h,e,g),h}},function(e,t,n){var o=n(51),i=n(13),r=n(16),a=n(18).f,l=n(64),u=n(200),c=l("meta"),s=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,c,{value:{objectID:"O"+ ++s,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!r(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return u&&p.REQUIRED&&f(e)&&!r(e,c)&&d(e),e}};o[c]=!0},function(e,t,n){var o=n(18).f,i=n(77),r=n(110),a=n(40),l=n(83),u=n(66),c=n(75),s=n(111),f=n(14),d=n(123).fastKey,p=n(42),v=p.set,h=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var s=e((function(e,o){l(e,s,t),v(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=o&&u(o,e[c],e,n)})),p=h(t),A=function(e,t,n){var o,i,r=p(e),a=m(e,t);return a?a.value=n:(r.last=a={index:i=d(t,!0),key:t,value:n,previous:o=r.last,next:void 0,removed:!1},r.first||(r.first=a),o&&(o.next=a),f?r.size++:e.size++,"F"!==i&&(r.index[i]=a)),e},m=function(e,t){var n,o=p(e),i=d(t);if("F"!==i)return o.index[i];for(n=o.first;n;n=n.next)if(n.key==t)return n};return r(s.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),o=m(t,e);if(o){var i=o.next,r=o.previous;delete n.index[o.index],o.removed=!0,r&&(r.next=i),i&&(i.previous=r),n.first==o&&(n.first=i),n.last==o&&(n.last=r),f?n.size--:t.size--}return!!o},forEach:function(e){for(var t,n=p(this),o=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),r(s.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return A(this,0===e?0:e,t)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),f&&o(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var o=t+" Iterator",i=h(t),r=h(o);c(e,t,(function(e,t){v(this,{type:o,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=r(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},function(e,t,n){n(12)("iterator")},function(e,t,n){var o=n(107),i=n(80).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={zIndex:1e4}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var a=n(2),l=n(6),u=a.__importDefault(n(292));function c(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),l.replaceHtmlSymbol(n)}t.getPasteText=c,t.getPasteHtml=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var o=e.clipboardData,i="";if(o&&(i=o.getData("text/html")),!i){var r=c(e);if(!r)return"";i="<p>"+r+"</p>"}return i=(i=i.replace(/<(\d)/gm,(function(e,t){return"&lt;"+t}))).replace(/<(\/?meta.*?)>/gim,""),i=u.default(i,t,n)},t.getPasteImgs=function(e){var t,n=[];if(c(e))return n;var o=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return o?((0,r.default)(l).call(l,o,(function(e,t){var o=t.type;/image/i.test(o)&&n.push(t.getAsFile())})),n):n}},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=n(7),c=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var o=l.default('<div class="w-e-droplist"></div>'),i=l.default("<p>"+t.title+"</p>");i.addClass("w-e-dp-title"),o.append(i);var c=t.list||[],s=t.type||"list",f=t.clickHandler||u.EMPTY_FN,d=l.default('<ul class="'+("list"===s?"w-e-list":"w-e-block")+'"></ul>');(0,r.default)(c).call(c,(function(e){var t=e.$elem,o=e.value,i=l.default('<li class="w-e-item"></li>');t&&(i.append(t),d.append(i),i.on("click",(function(e){f(o),e.stopPropagation(),n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})))})),o.append(d),o.on("mouseleave",(function(){n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})),this.$container=o,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu.$elem,t=this.$container;if(!this._show){if(this.rendered)t.show();else{var n=e.getBoundingClientRect().height||0,o=this.conf.width||100;t.css("margin-top",n+"px").css("width",o+"px"),e.append(t),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,i.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=c},function(e,t,n){var o=n(0),i=o(n(92)),r=o(n(1)),a=o(n(4));(0,r.default)(t,"__esModule",{value:!0});var l=n(6);t.default=function(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,a.default)(l).call(l,t.headers,(function(e,t){n.setRequestHeader(e,t)})),n.withCredentials=!!t.withCredentials,t.beforeSend){var o=t.beforeSend(n);if(o&&"object"===(0,i.default)(o)&&o.prevent)return o.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||e>=300&&e<400))if(e>=400)t.onError&&t.onError(n);else{var o,r=n.responseText;if("object"!==(0,i.default)(r))try{o=JSON.parse(r)}catch(a){return void(t.onFail&&t.onFail(n,r))}else o=r;t.onSuccess(n,o)}}},n.send(t.formData||null),n}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(342)),a=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=l.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar;this.$textContainer.append(n),(0,r.default)()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,r.default)());var o=this.timeoutId;o&&clearTimeout(o),this.timeoutId=(0,a.default)((function(){t.hide()}),500)}},e.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var o,i,r=n(2),a=r.__importDefault(n(3)),l=r.__importDefault(n(24)),u=n(47),c=r.__importStar(n(371));(i=o=t.ListType||(t.ListType={})).OrderedList="OL",i.UnorderedList="UL";var s=function(e){function t(t){var n=this,i=a.default('<div class="w-e-menu" data-title="序列">\n                <i class="w-e-icon-list2"></i>\n            </div>'),r={width:130,title:"序列",type:"list",list:[{$elem:a.default('\n                        <p>\n                            <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.list.无序列表")+"\n                        <p>"),value:o.UnorderedList},{$elem:a.default('<p>\n                            <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.list.有序列表")+"\n                        <p>"),value:o.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this}return r.__extends(t,e),t.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,o=e.toLowerCase(),i=n.getSelectionContainerElem(),r=n.getSelectionStartElem().getNodeTop(t),a=n.getSelectionEndElem().getNodeTop(t);if(this.validator(r,a,t.$textElem)){var l=n.getRange(),s=null==l?void 0:l.collapsed;t.$textElem.equal(i)||(i=i.getNodeTop(t));var f,d={editor:t,listType:e,listTarget:o,$selectionElem:i,$startElem:r,$endElem:a};f=this.isOrderElem(i)?c.ClassType.Wrap:this.isOrderElem(r)&&this.isOrderElem(a)?c.ClassType.Join:this.isOrderElem(r)?c.ClassType.StartJoin:this.isOrderElem(a)?c.ClassType.EndJoin:c.ClassType.Other;var p=new c.default(c.createListHandle(f,d,l));u.updateRange(t,p.getSelectionRangeElem(),!!s)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===o.OrderedList||t===o.UnorderedList},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=s},function(e,t,n){e.exports=n(395)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.selection.getSelectionContainerElem();return!(!(null==t?void 0:t.length)||"CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2).__importDefault(n(3)),l=function(){function e(e){var t;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=a.default(this.template),this.$child=null===(t=null==e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},e.prototype.getInput=function(){var e=this.$todo;return(0,r.default)(e).call(e,"input")},e.prototype.getInputContainer=function(){return this.getInput().parent()},e.prototype.getTodo=function(){return this.$todo},e}();t.todo=l,t.default=function(e){var t=new l(e);return t.init(),t}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var i=o.__importDefault(n(87));o.__exportStar(n(442),t);try{document}catch(r){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){var o=n(143);e.exports=o},function(e,t,n){n(144);var o=n(9).Object,i=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(i.sham=!0)},function(e,t,n){var o=n(5),i=n(14);o({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(18).f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var o=n(20),i=n(147);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n  padding: 0;\n  margin: 0;\n  box-sizing: border-box;\n  background-color: #fff;\n  /*表情菜单样式*/\n  /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n  font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n  font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n  font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n  font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n  font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n  font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n  cursor: pointer;\n  display: inline-block;\n  font-size: 18px;\n  padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n  padding: 0;\n  margin: 0;\n  box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n  cursor: pointer;\n  display: block;\n  height: 0px;\n  border: 0;\n  border-top: 3px solid #ccc;\n  margin: 20px 0;\n}\n.w-e-clear-fix:after {\n  content: "";\n  display: table;\n  clear: both;\n}\n.w-e-drop-list-item {\n  position: relative;\n  top: 1px;\n  padding-right: 7px;\n  color: #333 !important;\n}\n.w-e-drop-list-tl {\n  padding-left: 10px;\n  text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(149);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){var o=n(21),i=n(150),r=n(151);t=o(!1);var a=i(r);t.push([e.i,"@font-face {\n  font-family: 'w-e-icon';\n  src: url("+a+') format(\'truetype\');\n  font-weight: normal;\n  font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n  /* use !important to prevent issues with browser extensions that change fonts */\n  font-family: \'w-e-icon\' !important;\n  speak: none;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  line-height: 1;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n  content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n  content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n  content: "\\f014";\n}\n.w-e-icon-header:before {\n  content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n  content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n  content: "\\f1fc";\n}\n.w-e-icon-image:before {\n  content: "\\e90d";\n}\n.w-e-icon-play:before {\n  content: "\\e912";\n}\n.w-e-icon-location:before {\n  content: "\\e947";\n}\n.w-e-icon-undo:before {\n  content: "\\e965";\n}\n.w-e-icon-redo:before {\n  content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n  content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n  content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n  content: "\\e9bb";\n}\n.w-e-icon-link:before {\n  content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n  content: "\\e9df";\n}\n.w-e-icon-bold:before {\n  content: "\\ea62";\n}\n.w-e-icon-underline:before {\n  content: "\\ea63";\n}\n.w-e-icon-italic:before {\n  content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n  content: "\\ea65";\n}\n.w-e-icon-table2:before {\n  content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n  content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n  content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n  content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n  content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n  content: "\\f120";\n}\n.w-e-icon-page-break:before {\n  content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n  content: "\\ea0d";\n}\n.w-e-icon-font:before {\n  content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n  content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n  content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n  content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n  content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n  content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n  content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n  content: "\\e901";\n}\n.w-e-icon-split-line:before {\n  content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n  content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){n.r(t),t.default="data:font/woff;base64, "},function(e,t,n){var o=n(20),i=n(153);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar {\n  display: flex;\n  padding: 0 6px;\n  flex-wrap: wrap;\n  position: relative;\n  /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n  position: relative;\n  display: flex;\n  width: 40px;\n  height: 40px;\n  align-items: center;\n  justify-content: center;\n  text-align: center;\n  cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n  color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n  background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n  color: #333;\n}\n.w-e-toolbar .w-e-active i {\n  color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n  color: #1e88e5;\n}\n.w-e-menu-tooltip {\n  position: absolute;\n  display: flex;\n  color: #f1f1f1;\n  background-color: rgba(0, 0, 0, 0.75);\n  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n  border-radius: 4px;\n  padding: 4px 5px 6px;\n  justify-content: center;\n  align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n  content: "";\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n  content: "";\n  position: absolute;\n  bottom: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n  font-size: 14px;\n  margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(155);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n  position: relative;\n  height: 100%;\n}\n.w-e-text-container .w-e-progress {\n  position: absolute;\n  background-color: #1e88e5;\n  top: 0;\n  left: 0;\n  height: 1px;\n}\n.w-e-text-container .placeholder {\n  color: #D4D4D4;\n  position: absolute;\n  font-size: 11pt;\n  line-height: 22px;\n  left: 10px;\n  top: 10px;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  z-index: -1;\n}\n.w-e-text {\n  padding: 0 10px;\n  overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n  margin: 10px 0;\n  line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n  margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n  display: block;\n  border-left: 8px solid #d0e5f2;\n  padding: 5px 10px;\n  margin: 10px 0;\n  line-height: 1.4;\n  font-size: 100%;\n  background-color: #f1f1f1;\n}\n.w-e-text code {\n  display: inline-block;\n  background-color: #f1f1f1;\n  border-radius: 3px;\n  padding: 3px 5px;\n  margin: 0 3px;\n}\n.w-e-text pre code {\n  display: block;\n}\n.w-e-text table {\n  border-top: 1px solid #ccc;\n  border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n  border-bottom: 1px solid #ccc;\n  border-right: 1px solid #ccc;\n  padding: 3px 5px;\n  min-height: 30px;\n  height: 30px;\n}\n.w-e-text table th {\n  border-bottom: 2px solid #ccc;\n  text-align: center;\n  background-color: #f1f1f1;\n}\n.w-e-text:focus {\n  outline: none;\n}\n.w-e-text img {\n  cursor: pointer;\n}\n.w-e-text img:hover {\n  box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n  margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n  list-style: none;\n  font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n  position: relative;\n  left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n  position: absolute;\n  margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n  top: 50%;\n  margin-top: -6px;\n}\n.w-e-tooltip {\n  position: absolute;\n  display: flex;\n  color: #f1f1f1;\n  background-color: rgba(0, 0, 0, 0.75);\n  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n  border-radius: 4px;\n  padding: 4px 5px 6px;\n  justify-content: center;\n  align-items: center;\n}\n.w-e-tooltip-up::after {\n  content: "";\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n  content: "";\n  position: absolute;\n  bottom: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n  cursor: pointer;\n  font-size: 14px;\n  margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n  color: #ccc;\n  text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(157);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n  position: absolute;\n  top: 0;\n  left: 50%;\n  border: 1px solid #ccc;\n  border-top: 0;\n  box-shadow: 1px 1px 2px #ccc;\n  color: #333;\n  background-color: #fff;\n  text-align: left;\n  /* 为 emotion panel 定制的样式 */\n  /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n  position: absolute;\n  right: 0;\n  top: 0;\n  padding: 5px;\n  margin: 2px 5px 0 0;\n  cursor: pointer;\n  color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n  color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n  list-style: none;\n  display: flex;\n  font-size: 14px;\n  margin: 2px 10px 0 10px;\n  border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n  padding: 3px 5px;\n  color: #999;\n  cursor: pointer;\n  margin: 0 3px;\n  position: relative;\n  top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n  color: #333;\n  border-bottom: 1px solid #333;\n  cursor: default;\n  font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n  padding: 10px 15px 10px 15px;\n  font-size: 16px;\n  /* 输入框的样式 */\n  /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n  outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n  width: 100%;\n  border: 1px solid #ccc;\n  padding: 5px;\n  margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n  border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n  border: none;\n  border-bottom: 1px solid #ccc;\n  font-size: 14px;\n  height: 20px;\n  color: #333;\n  text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n  width: 30px;\n  text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n  display: block;\n  width: 100%;\n  margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n  border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n  font-size: 14px;\n  color: #1e88e5;\n  border: none;\n  padding: 5px 10px;\n  background-color: #fff;\n  cursor: pointer;\n  border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n  float: left;\n  margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n  float: right;\n  margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n  color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n  color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n  background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n  content: "";\n  display: table;\n  clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n  cursor: pointer;\n  font-size: 18px;\n  padding: 0 3px;\n  display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n  text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n  display: inline-block;\n  color: #999;\n  cursor: pointer;\n  font-size: 60px;\n  line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n  color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(159);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n  position: absolute;\n  left: 0;\n  top: 0;\n  background-color: #fff;\n  border: 1px solid #f1f1f1;\n  border-right-color: #ccc;\n  border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n  text-align: center;\n  color: #999;\n  line-height: 2;\n  border-bottom: 1px solid #f1f1f1;\n  font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n  list-style: none;\n  line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n  color: #333;\n  padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n  background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n  list-style: none;\n  text-align: left;\n  padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n  display: inline-block;\n  padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n  background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){var o=n(0)(n(161));Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;n>=0&&t.item(n)!==this;n--);return n>-1}),o.default||(window.Promise=o.default)},function(e,t,n){e.exports=n(162)},function(e,t,n){var o=n(163);e.exports=o},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179);var o=n(9);e.exports=o.Promise},function(e,t,n){var o=n(62),i=n(49),r=function(e){return function(t,n){var r,a,l=String(i(t)),u=o(n),c=l.length;return u<0||u>=c?e?"":void 0:(r=l.charCodeAt(u))<55296||r>56319||u+1===c||(a=l.charCodeAt(u+1))<56320||a>57343?e?l.charAt(u):r:e?l.slice(u,u+2):a-56320+(r-55296<<10)+65536}};e.exports={codeAt:r(!1),charAt:r(!0)}},function(e,t,n){var o=n(8),i=n(102),r=o.WeakMap;e.exports="function"==typeof r&&/native code/.test(i(r))},function(e,t,n){var o=n(8),i=n(19);e.exports=function(e,t){try{i(o,e,t)}catch(n){o[e]=t}return t}},function(e,t,n){var o=n(104).IteratorPrototype,i=n(77),r=n(48),a=n(37),l=n(44),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(o,{next:r(1,n)}),a(e,c,!1,!0),l[c]=u,e}},function(e,t,n){var o=n(11);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var o=n(14),i=n(18),r=n(25),a=n(52);e.exports=o?Object.defineProperties:function(e,t){r(e);for(var n,o=a(t),l=o.length,u=0;l>u;)i.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var o=n(81),i=n(65);e.exports=o?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var o=n(25),i=n(172);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return o(n),i(r),t?e.call(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){var o=n(13);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var o=n(30),i=n(82),r=n(44),a=n(42),l=n(75),u="Array Iterator",c=a.set,s=a.getterFor(u);e.exports=l(Array,"Array",(function(e,t){c(this,{type:u,target:o(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var o,i,r,a,l=n(5),u=n(43),c=n(8),s=n(36),f=n(109),d=n(53),p=n(110),v=n(37),h=n(111),A=n(13),m=n(41),g=n(83),y=n(34),w=n(102),x=n(66),_=n(115),E=n(116),b=n(117).set,C=n(176),S=n(119),M=n(177),D=n(85),k=n(120),N=n(42),T=n(101),B=n(10),I=n(86),R=B("species"),P="Promise",H=N.get,F=N.set,L=N.getterFor(P),Q=f,O=c.TypeError,U=c.document,j=c.process,Y=s("fetch"),z=D.f,$=z,V="process"==y(j),G=!!(U&&U.createEvent&&c.dispatchEvent),J="unhandledrejection",K=T(P,(function(){if(w(Q)===String(Q)){if(66===I)return!0;if(!V&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!Q.prototype.finally)return!0;if(I>=51&&/native code/.test(Q))return!1;var e=Q.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[R]=t,!(e.then((function(){}))instanceof t)})),W=K||!_((function(e){Q.all(e).catch((function(){}))})),q=function(e){var t;return!(!A(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t,n){if(!t.notified){t.notified=!0;var o=t.reactions;C((function(){for(var i=t.value,r=1==t.state,a=0;o.length>a;){var l,u,c,s=o[a++],f=r?s.ok:s.fail,d=s.resolve,p=s.reject,v=s.domain;try{f?(r||(2===t.rejection&&ne(e,t),t.rejection=1),!0===f?l=i:(v&&v.enter(),l=f(i),v&&(v.exit(),c=!0)),l===s.promise?p(O("Promise-chain cycle")):(u=q(l))?u.call(l,d,p):d(l)):p(i)}catch(h){v&&!c&&v.exit(),p(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},Z=function(e,t,n){var o,i;G?((o=U.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},(i=c["on"+e])?i(o):e===J&&M("Unhandled promise rejection",n)},ee=function(e,t){b.call(c,(function(){var n,o=t.value;if(te(t)&&(n=k((function(){V?j.emit("unhandledRejection",o,e):Z(J,e,o)})),t.rejection=V||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){b.call(c,(function(){V?j.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},oe=function(e,t,n,o){return function(i){e(t,n,i,o)}},ie=function(e,t,n,o){t.done||(t.done=!0,o&&(t=o),t.value=n,t.state=2,X(e,t,!0))},re=function(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw O("Promise can't be resolved itself");var i=q(n);i?C((function(){var o={done:!1};try{i.call(n,oe(re,e,o,t),oe(ie,e,o,t))}catch(r){ie(e,o,r,t)}})):(t.value=n,t.state=1,X(e,t,!1))}catch(r){ie(e,{done:!1},r,t)}}};K&&(Q=function(e){g(this,Q,P),m(e),o.call(this);var t=H(this);try{e(oe(re,this,t),oe(ie,this,t))}catch(n){ie(this,t,n)}},(o=function(e){F(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(Q.prototype,{then:function(e,t){var n=L(this),o=z(E(this,Q));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=V?j.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&X(this,n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new o,t=H(e);this.promise=e,this.resolve=oe(re,e,t),this.reject=oe(ie,e,t)},D.f=z=function(e){return e===Q||e===r?new i(e):$(e)},u||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new Q((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Y&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return S(Q,Y.apply(c,arguments))}}))),l({global:!0,wrap:!0,forced:K},{Promise:Q}),v(Q,P,!1,!0),h(P),r=s(P),l({target:P,stat:!0,forced:K},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),l({target:P,stat:!0,forced:u||K},{resolve:function(e){return S(u&&this===r?Q:this,e)}}),l({target:P,stat:!0,forced:W},{all:function(e){var t=this,n=z(t),o=n.resolve,i=n.reject,r=k((function(){var n=m(t.resolve),r=[],a=0,l=1;x(e,(function(e){var u=a++,c=!1;r.push(void 0),l++,n.call(t,e).then((function(e){c||(c=!0,r[u]=e,--l||o(r))}),i)})),--l||o(r)}));return r.error&&i(r.value),n.promise},race:function(e){var t=this,n=z(t),o=n.reject,i=k((function(){var i=m(t.resolve);x(e,(function(e){i.call(t,e).then(n.resolve,o)}))}));return i.error&&o(i.value),n.promise}})},function(e,t,n){var o,i,r,a,l,u,c,s,f=n(8),d=n(71).f,p=n(34),v=n(117).set,h=n(118),A=f.MutationObserver||f.WebKitMutationObserver,m=f.process,g=f.Promise,y="process"==p(m),w=d(f,"queueMicrotask"),x=w&&w.value;x||(o=function(){var e,t;for(y&&(e=m.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():r=void 0,n}}r=void 0,e&&e.enter()},y?a=function(){m.nextTick(o)}:A&&!h?(l=!0,u=document.createTextNode(""),new A(o).observe(u,{characterData:!0}),a=function(){u.data=l=!l}):g&&g.resolve?(c=g.resolve(void 0),s=c.then,a=function(){s.call(c,o)}):a=function(){v.call(f,o)}),e.exports=x||function(e){var t={fn:e,next:void 0};r&&(r.next=t),i||(i=t,a()),r=t}},function(e,t,n){var o=n(8);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){var o=n(5),i=n(41),r=n(85),a=n(120),l=n(66);o({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=r.f(t),o=n.resolve,u=n.reject,c=a((function(){var n=i(t.resolve),r=[],a=0,u=1;l(e,(function(e){var i=a++,l=!1;r.push(void 0),u++,n.call(t,e).then((function(e){l||(l=!0,r[i]={status:"fulfilled",value:e},--u||o(r))}),(function(e){l||(l=!0,r[i]={status:"rejected",reason:e},--u||o(r))}))})),--u||o(r)}));return c.error&&u(c.value),n.promise}})},function(e,t,n){var o=n(5),i=n(43),r=n(109),a=n(11),l=n(36),u=n(116),c=n(119),s=n(53);o({target:"Promise",proto:!0,real:!0,forced:!!r&&a((function(){r.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof r||r.prototype.finally||s(r.prototype,"finally",l("Promise").prototype.finally)},function(e,t,n){n(54);var o=n(181),i=n(65),r=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===r||e instanceof Array&&t===r.forEach||a.hasOwnProperty(i(e))?o:t}},function(e,t,n){var o=n(182);e.exports=o},function(e,t,n){n(183);var o=n(15);e.exports=o("Array").forEach},function(e,t,n){var o=n(5),i=n(184);o({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){var o=n(32).forEach,i=n(67),r=n(22),a=i("forEach"),l=r("forEach");e.exports=a&&l?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var o=n(186);e.exports=o},function(e,t,n){n(187);var o=n(9);e.exports=o.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(55)})},function(e,t,n){var o=n(189);e.exports=o},function(e,t,n){var o=n(190),i=Array.prototype;e.exports=function(e){var t=e.map;return e===i||e instanceof Array&&t===i.map?o:t}},function(e,t,n){n(191);var o=n(15);e.exports=o("Array").map},function(e,t,n){var o=n(5),i=n(32).map,r=n(56),a=n(22),l=r("map"),u=a("map");o({target:"Array",proto:!0,forced:!l||!u},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(193);e.exports=o},function(e,t,n){var o=n(194),i=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===i||e instanceof String&&t===i.trim?o:t}},function(e,t,n){n(195);var o=n(15);e.exports=o("String").trim},function(e,t,n){var o=n(5),i=n(90).trim;o({target:"String",proto:!0,forced:n(196)("trim")},{trim:function(){return i(this)}})},function(e,t,n){var o=n(11),i=n(68);e.exports=function(e){return o((function(){return!!i[e]()||"​᠎"!="​᠎"[e]()||i[e].name!==e}))}},function(e,t,n){var o=n(198);e.exports=o},function(e,t,n){n(199),n(61),n(50),n(54);var o=n(9);e.exports=o.Map},function(e,t,n){var o=n(122),i=n(124);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){var o=n(11);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var o=n(202);e.exports=o},function(e,t,n){var o=n(203),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||e instanceof Array&&t===i.indexOf?o:t}},function(e,t,n){n(204);var o=n(15);e.exports=o("Array").indexOf},function(e,t,n){var o=n(5),i=n(78).indexOf,r=n(67),a=n(22),l=[].indexOf,u=!!l&&1/[1].indexOf(1,-0)<0,c=r("indexOf"),s=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:u||!c||!s},{indexOf:function(e){return u?l.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(206);e.exports=o},function(e,t,n){var o=n(207),i=Array.prototype;e.exports=function(e){var t=e.splice;return e===i||e instanceof Array&&t===i.splice?o:t}},function(e,t,n){n(208);var o=n(15);e.exports=o("Array").splice},function(e,t,n){var o=n(5),i=n(79),r=n(62),a=n(35),l=n(31),u=n(88),c=n(69),s=n(56),f=n(22),d=s("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,h=Math.min;o({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,o,s,f,d,p,A=l(this),m=a(A.length),g=i(e,m),y=arguments.length;if(0===y?n=o=0:1===y?(n=0,o=m-g):(n=y-2,o=h(v(r(t),0),m-g)),m+n-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=u(A,o),f=0;f<o;f++)(d=g+f)in A&&c(s,f,A[d]);if(s.length=o,n<o){for(f=g;f<m-o;f++)p=f+n,(d=f+o)in A?A[p]=A[d]:delete A[p];for(f=m;f>m-o+n;f--)delete A[f-1]}else if(n>o)for(f=m-o;f>g;f--)p=f+n-1,(d=f+o-1)in A?A[p]=A[d]:delete A[p];for(f=0;f<n;f++)A[f+g]=arguments[f+2];return A.length=m-o+n,s}})},function(e,t,n){var o=n(210);e.exports=o},function(e,t,n){var o=n(211),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||e instanceof Array&&t===i.filter?o:t}},function(e,t,n){n(212);var o=n(15);e.exports=o("Array").filter},function(e,t,n){var o=n(5),i=n(32).filter,r=n(56),a=n(22),l=r("filter"),u=a("filter");o({target:"Array",proto:!0,forced:!l||!u},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(214);e.exports=o},function(e,t,n){var o=n(215),i=n(217),r=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===r||e instanceof Array&&t===r.includes?o:"string"==typeof e||e===a||e instanceof String&&t===a.includes?i:t}},function(e,t,n){n(216);var o=n(15);e.exports=o("Array").includes},function(e,t,n){var o=n(5),i=n(78).includes,r=n(82);o({target:"Array",proto:!0,forced:!n(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},function(e,t,n){n(218);var o=n(15);e.exports=o("String").includes},function(e,t,n){var o=n(5),i=n(219),r=n(49);o({target:"String",proto:!0,forced:!n(221)("includes")},{includes:function(e){return!!~String(r(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(220);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var o=n(13),i=n(34),r=n(10)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},function(e,t,n){var o=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(i){}}return!1}},function(e,t,n){var o=n(223);e.exports=o},function(e,t,n){var o=n(224),i=Function.prototype;e.exports=function(e){var t=e.bind;return e===i||e instanceof Function&&t===i.bind?o:t}},function(e,t,n){n(225);var o=n(15);e.exports=o("Function").bind},function(e,t,n){n(5)({target:"Function",proto:!0},{bind:n(226)})},function(e,t,n){var o=n(41),i=n(13),r=[].slice,a={};e.exports=Function.bind||function(e){var t=o(this),n=r.call(arguments,1),l=function(){var o=n.concat(r.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var o=[],i=0;i<t;i++)o[i]="a["+i+"]";a[t]=Function("C,a","return new C("+o.join(",")+")")}return a[t](e,n)}(t,o.length,o):t.apply(e,o)};return i(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t,n){e.exports=n(228)},function(e,t,n){var o=n(229);e.exports=o},function(e,t,n){n(125),n(50),n(54);var o=n(93);e.exports=o.f("iterator")},function(e,t,n){e.exports=n(231)},function(e,t,n){var o=n(232);n(251),n(252),n(253),n(254),n(255),e.exports=o},function(e,t,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(125),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250);var o=n(9);e.exports=o.Symbol},function(e,t,n){var o=n(5),i=n(11),r=n(55),a=n(13),l=n(31),u=n(35),c=n(69),s=n(88),f=n(56),d=n(10),p=n(86),v=d("isConcatSpreadable"),h=9007199254740991,A="Maximum allowed index exceeded",m=p>=51||!i((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),g=f("concat"),y=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:r(e)};o({target:"Array",proto:!0,forced:!m||!g},{concat:function(e){var t,n,o,i,r,a=l(this),f=s(a,0),d=0;for(t=-1,o=arguments.length;t<o;t++)if(y(r=-1===t?a:arguments[t])){if(d+(i=u(r.length))>h)throw TypeError(A);for(n=0;n<i;n++,d++)n in r&&c(f,d,r[n])}else{if(d>=h)throw TypeError(A);c(f,d++,r)}return f.length=d,f}})},function(e,t,n){var o=n(5),i=n(8),r=n(36),a=n(43),l=n(14),u=n(76),c=n(106),s=n(11),f=n(16),d=n(55),p=n(13),v=n(25),h=n(31),A=n(30),m=n(60),g=n(48),y=n(77),w=n(52),x=n(126),_=n(235),E=n(127),b=n(71),C=n(18),S=n(59),M=n(19),D=n(53),k=n(74),N=n(63),T=n(51),B=n(64),I=n(10),R=n(93),P=n(12),H=n(37),F=n(42),L=n(32).forEach,Q=N("hidden"),O="Symbol",U="prototype",j=I("toPrimitive"),Y=F.set,z=F.getterFor(O),$=Object[U],V=i.Symbol,G=r("JSON","stringify"),J=b.f,K=C.f,W=_.f,q=S.f,X=k("symbols"),Z=k("op-symbols"),ee=k("string-to-symbol-registry"),te=k("symbol-to-string-registry"),ne=k("wks"),oe=i.QObject,ie=!oe||!oe[U]||!oe[U].findChild,re=l&&s((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=J($,t);o&&delete $[t],K(e,t,n),o&&e!==$&&K($,t,o)}:K,ae=function(e,t){var n=X[e]=y(V[U]);return Y(n,{type:O,tag:e,description:t}),l||(n.description=t),n},le=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},ue=function(e,t,n){e===$&&ue(Z,t,n),v(e);var o=m(t,!0);return v(n),f(X,o)?(n.enumerable?(f(e,Q)&&e[Q][o]&&(e[Q][o]=!1),n=y(n,{enumerable:g(0,!1)})):(f(e,Q)||K(e,Q,g(1,{})),e[Q][o]=!0),re(e,o,n)):K(e,o,n)},ce=function(e,t){v(e);var n=A(t),o=w(n).concat(pe(n));return L(o,(function(t){l&&!se.call(n,t)||ue(e,t,n[t])})),e},se=function(e){var t=m(e,!0),n=q.call(this,t);return!(this===$&&f(X,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(X,t)||f(this,Q)&&this[Q][t])||n)},fe=function(e,t){var n=A(e),o=m(t,!0);if(n!==$||!f(X,o)||f(Z,o)){var i=J(n,o);return!i||!f(X,o)||f(n,Q)&&n[Q][o]||(i.enumerable=!0),i}},de=function(e){var t=W(A(e)),n=[];return L(t,(function(e){f(X,e)||f(T,e)||n.push(e)})),n},pe=function(e){var t=e===$,n=W(t?Z:A(e)),o=[];return L(n,(function(e){!f(X,e)||t&&!f($,e)||o.push(X[e])})),o};u||(V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=B(e),n=function(e){this===$&&n.call(Z,e),f(this,Q)&&f(this[Q],t)&&(this[Q][t]=!1),re(this,t,g(1,e))};return l&&ie&&re($,t,{configurable:!0,set:n}),ae(t,e)},D(V[U],"toString",(function(){return z(this).tag})),D(V,"withoutSetter",(function(e){return ae(B(e),e)})),S.f=se,C.f=ue,b.f=fe,x.f=_.f=de,E.f=pe,R.f=function(e){return ae(I(e),e)},l&&(K(V[U],"description",{configurable:!0,get:function(){return z(this).description}}),a||D($,"propertyIsEnumerable",se,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),L(w(ne),(function(e){P(e)})),o({target:O,stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=V(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!le(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),o({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:fe}),o({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),o({target:"Object",stat:!0,forced:s((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(h(e))}}),G&&o({target:"JSON",stat:!0,forced:!u||s((function(){var e=V();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,n){for(var o,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(o=t,(p(t)||void 0!==e)&&!le(e))return d(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!le(t))return t}),i[1]=t,G.apply(null,i)}}),V[U][j]||M(V[U],j,V[U].valueOf),H(V,O),T[Q]=!0},function(e,t,n){var o=n(30),i=n(126).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?function(e){try{return i(e)}catch(t){return a.slice()}}(e):i(o(e))}},function(e,t,n){n(12)("asyncIterator")},function(e,t){},function(e,t,n){n(12)("hasInstance")},function(e,t,n){n(12)("isConcatSpreadable")},function(e,t,n){n(12)("match")},function(e,t,n){n(12)("matchAll")},function(e,t,n){n(12)("replace")},function(e,t,n){n(12)("search")},function(e,t,n){n(12)("species")},function(e,t,n){n(12)("split")},function(e,t,n){n(12)("toPrimitive")},function(e,t,n){n(12)("toStringTag")},function(e,t,n){n(12)("unscopables")},function(e,t,n){n(37)(Math,"Math",!0)},function(e,t,n){var o=n(8);n(37)(o.JSON,"JSON",!0)},function(e,t,n){n(12)("asyncDispose")},function(e,t,n){n(12)("dispose")},function(e,t,n){n(12)("observable")},function(e,t,n){n(12)("patternMatch")},function(e,t,n){n(12)("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){var o=n(258);e.exports=o},function(e,t,n){n(259);var o=n(9);e.exports=o.parseInt},function(e,t,n){var o=n(5),i=n(260);o({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,n){var o=n(8),i=n(90).trim,r=n(68),a=o.parseInt,l=/^[+-]?0[Xx]/,u=8!==a(r+"08")||22!==a(r+"0x16");e.exports=u?function(e,t){var n=i(String(e));return a(n,t>>>0||(l.test(n)?16:10))}:a},function(e,t,n){var o=n(262);e.exports=o},function(e,t,n){var o=n(263),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?o:t}},function(e,t,n){n(264);var o=n(15);e.exports=o("Array").slice},function(e,t,n){var o=n(5),i=n(13),r=n(55),a=n(79),l=n(35),u=n(30),c=n(69),s=n(10),f=n(56),d=n(22),p=f("slice"),v=d("slice",{ACCESSORS:!0,0:0,1:2}),h=s("species"),A=[].slice,m=Math.max;o({target:"Array",proto:!0,forced:!p||!v},{slice:function(e,t){var n,o,s,f=u(this),d=l(f.length),p=a(e,d),v=a(void 0===t?d:t,d);if(r(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return A.call(f,p,v);for(o=new(void 0===n?Array:n)(m(v-p,0)),s=0;p<v;p++,s++)p in f&&c(o,s,f[p]);return o.length=s,o}})},function(e,t,n){n(266);var o=n(9);e.exports=o.setTimeout},function(e,t,n){var o=n(5),i=n(8),r=n(84),a=[].slice,l=function(e){return function(t,n){var o=arguments.length>2,i=o?a.call(arguments,2):void 0;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(r)},{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(128));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(272)),u=a.__importDefault(n(273)),c=a.__importDefault(n(129)),s=a.__importDefault(n(274)),f=a.__importDefault(n(275)),d=a.__importDefault(n(276)),p=a.__importDefault(n(130)),v=a.__importDefault(n(277)),h=a.__importDefault(n(278)),A=a.__importDefault(n(279)),m=(0,r.default)({},l.default,u.default,c.default,f.default,s.default,d.default,p.default,v.default,h.default,A.default,{linkCheck:function(e,t){return!0}});t.default=m},function(e,t,n){var o=n(269);e.exports=o},function(e,t,n){n(270);var o=n(9);e.exports=o.Object.assign},function(e,t,n){var o=n(5),i=n(271);o({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){var o=n(14),i=n(11),r=n(52),a=n(127),l=n(59),u=n(31),c=n(72),s=Object.assign,f=Object.defineProperty;e.exports=!s||i((function(){if(o&&1!==s({b:1},s(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||r(s({},t)).join("")!=i}))?function(e,t){for(var n=u(e),i=arguments.length,s=1,f=a.f,d=l.f;i>s;)for(var p,v=c(arguments[s++]),h=f?r(v).concat(f(v)):r(v),A=h.length,m=0;A>m;)p=h[m++],o&&!d.call(v,p)||(n[p]=v[p]);return n}:s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"　　　　",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(7);t.default={onchangeTimeout:200,onchange:null,onfocus:o.EMPTY_FN,onblur:o.EMPTY_FN,onCatalogChange:null,customAlert:function(e,t,n){window.alert(e)}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={styleWithCSS:!1}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(7);t.default={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:o.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"redo","撤销":"undo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(6);t.default={compatibleMode:function(){return!(!o.UA.isIE()&&!o.UA.isOldEdge)},historyMaxSize:30}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(7);t.default={onlineVideoCheck:function(e){return!0},onlineVideoCallback:o.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),l=n(6),u=n(7),c=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),o=this.getSelectionContainerElem(n);if((null==o?void 0:o.length)&&"false"!==o.attr("contenteditable")&&!o.parentUntil("[contenteditable=false]")){var i=this.editor,a=i.$textElem;if(a.isContain(o)){var l;if(a.elems[0]===o.elems[0]&&(0,r.default)(l=a.html()).call(l)===u.EMPTY_P){var c=a.children(),s=null==c?void 0:c.last();i.selection.createRangeByElem(s,!0,!0),i.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.commonAncestorContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.startContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.endContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{l.UA.isWebkit()?(t.cmd.do("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=a.default("<strong>&#8203;</strong>"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(o){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null==n||n.removeAllRanges();var o=document.createRange();o.setStart(e,0),o.setEnd(t,t.childNodes.length||1),this.saveRange(o),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var o=e.elems[0],i=document.createRange();n?i.selectNodeContents(o):i.selectNode(o),null!=t&&(i.collapse(t),t||(this.saveRange(i),this.editor.selection.moveCursor(o))),this.saveRange(i)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),o=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(a.default(n),a.default(o))},e.prototype.moveCursor=function(e,t){var n,o=this.getRange(),i=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(l.UA.isFirefox||l.UA.isIE())&&0!==i&&(3!==e.nodeType&&"BR"!==e.childNodes[i-1].nodeName||(i-=1));var r=null!=t?t:i;o&&e&&(o.setStart(e,r),o.setEnd(e,r),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){var n=[],o=!0;try{for(var i=e,r=this.editor.$textElem;o;){var l=null==i?void 0:i.getNodeTop(this.editor);"BODY"===l.getNodeName()&&(o=!1),l.length>0&&(n.push(a.default(i)),(null==t?void 0:t.equal(l))||r.equal(l)?o=!1:i=l.getNextSibling())}}catch(u){o=!1}return n},e.prototype.setRangeToElem=function(e){var t=this.getRange();null==t||t.setStart(e,0),null==t||t.setEnd(e,0)},e}();t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),i=function(){function e(e){this.editor=e}return e.prototype.do=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var o=n.selection;if(o.getRange()){switch(o.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t)}n.menus.changeActive(),o.saveRange(),o.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),o.default(e).elems.length>0)n.insertNode(o.default(e).elems[0]);else{var i=document.createElement("p");i.appendChild(document.createTextNode(e)),n.insertNode(i)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor.selection.getRange();null!=t&&t.insertNode&&(t.deleteContents(),t.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t.default=i},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29)),a=o(n(4)),l=o(n(17)),u=o(n(27)),c=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),f=s.__importDefault(n(3)),d=s.__importDefault(n(287)),p=n(6),v=s.__importDefault(n(299)),h=s.__importDefault(n(300)),A=n(7),m=function(){function e(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d.default(this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,r.default)(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),this.editor.isComposing||t&&" "!==t||n.show()},e.prototype.clear=function(){this.html(A.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var o=n.html(),i=(o=(o=(o=(o=o.replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(A.EMPTY_P_LAST_REGEX,"")).replace(A.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi);return null!==i&&(0,a.default)(i).call(i,(function(e){e.match(/\/>/)||(o=o.replace(e,e.substring(0,e.length-1)+"/>"))})),o}""===(e=(0,l.default)(e).call(e))&&(e=A.EMPTY_P),0!==(0,u.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),n.html(e),t.initSelection()},e.prototype.setJSON=function(e){var t=h.default(e).children(),n=this.editor.$textElem;t&&n.replaceChildAll(t)},e.prototype.getJSON=function(){var e=this.editor.$textElem;return v.default(e)},e.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e){var o=n.text();return o=o.replace(/\u200b/gm,"")}n.text("<p>"+e+"</p>"),t.initSelection()},e.prototype.append=function(e){var t=this.editor;0!==(0,u.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),this.html(this.html()+e),t.initSelection()},e.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=f.default(document);function o(){e.selection.saveRange(),e.menus.changeActive()}function i(){o(),n.off("mouseup",i)}function r(){n.on("mouseup",i),t.off("mouseleave",r)}t.on("keyup",o),t.on("click",(function e(){o(),t.off("click",e)})),t.on("mousedown",(function(){t.on("mouseleave",r)})),t.on("mouseup",(function(n){t.off("mouseleave",r),(0,c.default)((function(){null!==e.selection.getRange()&&o()}),0)}))},e.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function o(e){e.preventDefault()}t.on("click",(function(e){var t=n.clickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(13===e.keyCode){var t=n.enterUpEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keyup",(function(e){var t=n.keyupEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keydown",(function(e){var t=n.keydownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteUpEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteDownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("paste",(function(e){if(!p.UA.isIE()){e.preventDefault();var t=n.pasteEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())})),t.on("keyup",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabUpEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabDownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("scroll",p.throttle((function(e){var t=n.textScrollEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}),100)),f.default(document).on("dragleave",o).on("drop",o).on("dragenter",o).on("dragover",o),e.beforeDestroy((function(){f.default(document).off("dragleave",o).off("drop",o).off("dragenter",o).off("dragover",o)})),t.on("drop",(function(e){e.preventDefault();var t=n.dropEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("click",(function(e){var t=null,o=e.target,i=f.default(o);if("A"===i.getNodeName())t=i;else{var r=i.parentUntil("a");null!=r&&(t=r)}if(t){var l=n.linkClickEvents;(0,a.default)(l).call(l,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,o=e.target,i=f.default(o);if("IMG"!==i.getNodeName()||i.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=i),t){var r=n.imgClickEvents;(0,a.default)(r).call(r,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,o=e.target,i=f.default(o);if("PRE"===i.getNodeName())t=i;else{var r=i.parentUntil("pre");null!==r&&(t=r)}if(t){var l=n.codeClickEvents;(0,a.default)(l).call(l,(function(e){return e(t)}))}})),t.on("click",(function(t){var o=null,i=t.target,r=f.default(i);if("HR"===r.getNodeName()&&(o=r),o){e.selection.createRangeByElem(o),e.selection.restoreSelection();var l=n.splitLineEvents;(0,a.default)(l).call(l,(function(e){return e(o)}))}})),e.$toolbarElem.on("click",(function(e){var t=n.toolbarClickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),e.$textContainerElem.on("mousedown",(function(e){var t=e.target;if(f.default(t).hasClass("w-e-img-drag-rb")){var o=n.imgDragBarMouseDownEvents;(0,a.default)(o).call(o,(function(e){return e()}))}})),t.on("click",(function(t){var o,i=t.target;if(o=f.default(i).parentUntilEditor("TABLE",e,i)){var r=n.tableClickEvents;(0,a.default)(r).call(r,(function(e){return e(o,t)}))}})),t.on("keydown",(function(e){if(13===e.keyCode){var t=n.enterDownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("click",(function(e){var t=null,o=e.target,i=f.default(o);if("VIDEO"===i.getNodeName()&&(e.stopPropagation(),t=i),t){var r=n.videoClickEvents;(0,a.default)(r).call(r,(function(e){return e(t)}))}}))},e}();t.default=m},function(e,t,n){var o=n(284);e.exports=o},function(e,t,n){var o=n(285),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?o:t}},function(e,t,n){n(286);var o=n(15);e.exports=o("Array").find},function(e,t,n){var o=n(5),i=n(32).find,r=n(82),a=n(22),l="find",u=!0,c=a(l);l in[]&&Array(1)[l]((function(){u=!1})),o({target:"Array",proto:!0,forced:u||!c},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(l)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(288)),r=o.__importStar(n(289)),a=o.__importDefault(n(290)),l=o.__importDefault(n(291)),u=o.__importDefault(n(298));t.default=function(e){var t=e.editor,n=e.eventHooks;i.default(t,n.enterUpEvents,n.enterDownEvents),r.default(t,n.deleteUpEvents,n.deleteDownEvents),r.cutToKeepP(t,n.keyupEvents),a.default(t,n.tabDownEvents),l.default(t,n.pasteEvents),u.default(t,n.imgClickEvents)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=n(7),u=a.__importDefault(n(3));t.default=function(e,t,n){function o(t){var n,o=u.default(l.EMPTY_P);o.insertBefore(t),(0,r.default)(n=t.html()).call(n,"<img")>=0?o.remove():(e.selection.createRangeByElem(o,!0,!0),e.selection.restoreSelection(),t.remove())}t.push((function(){var t=e.$textElem,n=e.selection.getSelectionContainerElem(),i=n.parent();"<code><br></code>"===i.html()||"FONT"===n.getNodeName()&&""===n.text()&&"monospace"===n.attr("face")?o(i):i.equal(t)&&("P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||o(n))})),n.push((function(t){var n;e.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0)),e.selection.getSelectionContainerElem().id===e.textElemId&&(t.preventDefault(),e.cmd.do("insertHTML","<p><br></p>"))}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(28));(0,i.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var l=n(2),u=n(7),c=l.__importDefault(n(3));t.cutToKeepP=function(e,t){t.push((function(t){var n;if(88===t.keyCode){var o=e.$textElem,i=(0,r.default)(n=o.html().toLowerCase()).call(n);if(!i||"<br>"===i){var a=c.default(u.EMPTY_P);o.html(" "),o.append(a),e.selection.createRangeByElem(a,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(a.getNode(),0)}}}))},t.default=function(e,t,n){t.push((function(){var t=e.$textElem,n=e.$textElem.html(),o=e.$textElem.text(),i=(0,r.default)(n).call(n),l=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',u.EMPTY_P];if(/^\s*$/.test(o)&&(!i||(0,a.default)(l).call(l,i))){t.html(u.EMPTY_P);var c=t.getNode();e.selection.createRangeByElems(c.childNodes[0],c.childNodes[0]);var s=e.selection.getSelectionContainerElem();e.selection.restoreSelection(),e.selection.moveCursor(s.getNode(),0)}})),n.push((function(t){var n,o=e.$textElem;(0,r.default)(n=o.html().toLowerCase()).call(n)!==u.EMPTY_P||t.preventDefault()}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push((function(){if(e.cmd.queryCommandSupported("insertHTML")){var t=e.selection.getSelectionContainerElem();if(t){var n=t.parent(),o=t.getNodeName(),i=n.getNodeName();"CODE"==o||"CODE"===i||"PRE"===i||/hljs/.test(i)?e.cmd.do("insertHTML",e.config.languageTab):e.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var l=n(131),u=n(6),c=n(7);function s(e){var t,n=(0,r.default)(t=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(t),o=document.createElement("div");return o.innerHTML=n,o.innerHTML.replace(/<p><\/p>/gim,"")}t.default=function(e,t){t.push((function(t){var n=e.config,o=n.pasteFilterStyle,i=n.pasteIgnoreImg,r=n.pasteTextHandle,f=l.getPasteHtml(t,o,i),d=l.getPasteText(t);d=d.replace(/\n/gm,"<br>");var p=e.selection.getSelectionContainerElem();if(p){var v,h=null==p?void 0:p.getNodeName(),A=null==p?void 0:p.getNodeTop(e),m="";if(A.elems[0]&&(m=null==A?void 0:A.getNodeName()),"CODE"===h||"PRE"===m)return r&&u.isFunction(r)&&(d=""+(r(d)||"")),void e.cmd.do("insertHTML",(v=d,v.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"")));if(c.urlRegex.test(d)&&o){r&&u.isFunction(r)&&(d=""+(r(d)||""));var g=d.replace(c.urlRegex,(function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"})),y=e.selection.getRange(),w=document.createElement("div"),x=document.createDocumentFragment();if(w.innerHTML=g,null==y)return;for(;w.childNodes.length;)x.append(w.childNodes[0]);var _=x.querySelectorAll("a");return(0,a.default)(_).call(_,(function(e){e.innerText=e.href})),y.insertNode&&(y.deleteContents(),y.insertNode(x)),void e.selection.clearWindowSelectionRange()}if(f)try{if(r&&u.isFunction(r)&&(f=""+(r(f)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(f)&&o)e.cmd.do("insertHTML",""+s(d));else{var E=s(f);if(function(e){var t;if(""===e)return!1;var n=document.createElement("div");return n.innerHTML=e,"P"===(null===(t=n.firstChild)||void 0===t?void 0:t.nodeName)}(E)){var b=e.$textElem;if(e.cmd.do("insertHTML",E),b.equal(p))return void e.selection.createEmptyRange();(function(e){if(!(null==e?void 0:e.length))return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML})(A)&&A.remove()}else e.cmd.do("insertHTML",E)}}catch(C){r&&u.isFunction(r)&&(d=""+(r(d)||"")),e.cmd.do("insertHTML",""+s(d))}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(4)),l=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),c=n(293),s=u.__importDefault(n(297));function f(e,t){var n;return e=(0,r.default)(n=e.toLowerCase()).call(n),!!c.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}t.default=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var o=[],i="";function u(e){(e=(0,r.default)(e).call(e))&&(c.EMPTY_TAGS.has(e)||(i=e))}(new s.default).parse(e,{startElement:function(e,i){if(u(e),!f(e,n)){var r=c.NECESSARY_ATTRS.get(e)||[],s=[];(0,a.default)(i).call(i,(function(e){var n=e.name;"style"!==n?!1!==(0,l.default)(r).call(r,n)&&s.push(e):t||s.push(e)}));var d=function(e,t){var n="";n="<"+e;var o=[];return(0,a.default)(t).call(t,(function(e){o.push(e.name+'="'+e.value+'"')})),o.length>0&&(n=n+" "+o.join(" ")),n+(c.EMPTY_TAGS.has(e)?"/":"")+">"}(e,s);o.push(d)}},characters:function(e){e&&(f(i,n)||o.push(e))},endElement:function(e){if(!f(e,n)){var t=function(e){return"</"+e+">"}(e);o.push(t),i=""}},comment:function(e){u(e)}});var d=o.join("");return d=function(e){var t=/<span>(.*?)<\/span>/;return e.replace(/<span>.*?<\/span>/gi,(function(e){var n=e.match(t);return null==n?"":n[1]}))}(d)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(132)),a=o(n(121));(0,i.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new r.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new a.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new r.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new r.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){var o=n(295);e.exports=o},function(e,t,n){n(296),n(61),n(50),n(54);var o=n(9);e.exports=o.Set},function(e,t,n){var o=n(122),i=n(124);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){var n,o,i;t&&(this.contentHandler=t);for(var r=!1,a=this;e.length>0;)"\x3c!--"==e.substring(0,4)?-1!=(i=e.indexOf("--\x3e"))?(this.contentHandler.comment(e.substring(4,i)),e=e.substring(i+3),r=!1):r=!0:"</"==e.substring(0,2)?this.endTagRe.test(e)?(n=RegExp.lastMatch,o=RegExp.rightContext,n.replace(this.endTagRe,(function(){return a.parseEndTag.apply(a,arguments)})),e=o,r=!1):r=!0:"<"==e.charAt(0)&&(this.startTagRe.test(e)?(n=RegExp.lastMatch,o=RegExp.rightContext,n.replace(this.startTagRe,(function(){return a.parseStartTag.apply(a,arguments)})),e=o,r=!1):r=!0),r&&(-1==(i=e.indexOf("<"))?(this.contentHandler.characters(e),e=""):(this.contentHandler.characters(e.substring(0,i)),e=e.substring(i))),r=!0},parseStartTag:function(e,t,n){var o=this.parseAttributes(t,n);this.contentHandler.startElement(t,o)},parseEndTag:function(e,t){this.contentHandler.endElement(t)},parseAttributes:function(e,t){var n=this,o=[];return t.replace(this.attrRe,(function(t,i,r,a,l,u,c,s){o.push(n.parseAttribute(e,t,i,r,a,l,u,c,s))})),o},parseAttribute:function(e,t,n){var o="";return arguments[7]?o=arguments[8]:arguments[5]?o=arguments[6]:arguments[3]&&(o=arguments[4]),{name:n,value:o||arguments[3]?o:null}}},e.exports=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push((function(t){e.selection.createRangeByElem(t),e.selection.restoreSelection()}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3));t.default=function e(t){var n=[],o=t.childNodes()||[];return(0,r.default)(o).call(o,(function(t){var o,i=t.nodeType;if(3===i&&(o=t.textContent||"",o=l.replaceHtmlSymbol(o)),1===i){(o={}).tag=t.nodeName.toLowerCase();for(var r=[],a=t.attributes,c=a.length||0,s=0;s<c;s++){var f=a[s];r.push({name:f.name,value:f.value})}o.attrs=r,o.children=e(u.default(t))}o&&n.push(o)})),n}},function(e,t,n){var o=n(0),i=o(n(92)),r=o(n(1)),a=o(n(4));(0,r.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3));t.default=function e(t,n){void 0===n&&(n=document.createElement("div"));var o=n;return(0,a.default)(t).call(t,(function(t){var n,r;"string"==typeof t&&(n=document.createTextNode(t)),"object"===(0,i.default)(t)&&(n=document.createElement(t.tag),(0,a.default)(r=t.attrs).call(r,(function(e){l.default(n).attr(e.name,e.value)})),t.children&&t.children.length>0&&e(t.children,n.getRootNode())),n&&o.appendChild(n)})),l.default(o)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(89)),a=o(n(70)),l=o(n(28)),u=o(n(302)),c=o(n(4)),s=o(n(94)),f=o(n(133)),d=o(n(46)),p=o(n(57));(0,i.default)(t,"__esModule",{value:!0});var v=n(2),h=v.__importDefault(n(87)),A=v.__importDefault(n(314)),m=v.__importDefault(n(3)),g=function(){function e(e){this.editor=e,this.menuList=[],this.constructorList=A.default}return e.prototype.extend=function(e,t){t&&"function"==typeof t&&(this.constructorList[e]=t)},e.prototype.init=function(){var e,t,n=this,o=this.editor.config,i=o.excludeMenus;!1===(0,r.default)(i)&&(i=[]),o.menus=(0,a.default)(e=o.menus).call(e,(function(e){return!1===(0,l.default)(i).call(i,e)}));var f=(0,u.default)(h.default.globalCustomMenuConstructorList);f=(0,a.default)(f).call(f,(function(e){return(0,l.default)(i).call(i,e)})),(0,c.default)(f).call(f,(function(e){delete h.default.globalCustomMenuConstructorList[e]})),(0,c.default)(t=o.menus).call(t,(function(e){var t=n.constructorList[e];n._initMenuList(e,t)}));for(var d=0,p=(0,s.default)(h.default.globalCustomMenuConstructorList);d<p.length;d++){var v=p[d],A=v[0],m=v[1];this._initMenuList(A,m)}this._addToToolbar(),o.showMenuTooltips&&this._bindMenuTooltips()},e.prototype._initMenuList=function(e,t){var n;if(null!=t&&"function"==typeof t)if((0,f.default)(n=this.menuList).call(n,(function(t){return t.key===e})));else{var o=new t(this.editor);o.key=e,this.menuList.push(o)}},e.prototype._bindMenuTooltips=function(){var e=this.editor,t=e.$toolbarElem,n=e.config.menuTooltipPosition,o=m.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+n+'">\n            <div class="w-e-menu-tooltip-item-wrapper">\n              <div></div>\n            </div>\n          </div>');o.css("visibility","hidden"),t.append(o),o.css("z-index",e.zIndex.get("tooltip"));var i=0;function r(){i&&clearTimeout(i)}function a(){r(),o.css("visibility","hidden")}t.on("mouseover",(function(l){var u,c,s=l.target,f=m.default(s);if(f.isContain(t))a();else{if(null!=f.parentUntil(".w-e-droplist"))a();else if(f.attr("data-title"))u=f.attr("data-title"),c=f;else{var p=f.parentUntil(".w-e-menu");null!=p&&(u=p.attr("data-title"),c=p)}if(u&&c){r();var v=c.getOffsetData();o.text(e.i18next.t("menus.title."+u));var h=o.getOffsetData(),A=v.left+v.width/2-h.width/2;o.css("left",A+"px"),"up"===n?o.css("top",v.top-h.height-8+"px"):"down"===n&&o.css("top",v.top+v.height+8+"px"),i=(0,d.default)((function(){o.css("visibility","visible")}),200)}else a()}})).on("mouseleave",(function(){a()}))},e.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,c.default)(e=this.menuList).call(e,(function(e){var n=e.$elem;n&&t.append(n)}))},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,o=t.length;n<o;n++)if(t[n].key===e)return t[n];return t[0]},e.prototype.changeActive=function(){var e;(0,c.default)(e=this.menuList).call(e,(function(e){var t;(0,d.default)((0,p.default)(t=e.tryChangeActive).call(t,e),100)}))},e}();t.default=g},function(e,t,n){e.exports=n(303)},function(e,t,n){var o=n(304);e.exports=o},function(e,t,n){n(305);var o=n(9);e.exports=o.Object.keys},function(e,t,n){var o=n(5),i=n(31),r=n(52);o({target:"Object",stat:!0,forced:n(11)((function(){r(1)}))},{keys:function(e){return r(i(e))}})},function(e,t,n){var o=n(307);e.exports=o},function(e,t,n){n(308);var o=n(9);e.exports=o.Object.entries},function(e,t,n){var o=n(5),i=n(309).entries;o({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){var o=n(14),i=n(52),r=n(30),a=n(59).f,l=function(e){return function(t){for(var n,l=r(t),u=i(l),c=u.length,s=0,f=[];c>s;)n=u[s++],o&&!a.call(l,n)||f.push(e?[n,l[n]]:l[n]);return f}};e.exports={entries:l(!0),values:l(!1)}},function(e,t,n){var o=n(311);e.exports=o},function(e,t,n){var o=n(312),i=Array.prototype;e.exports=function(e){var t=e.some;return e===i||e instanceof Array&&t===i.some?o:t}},function(e,t,n){n(313);var o=n(15);e.exports=o("Array").some},function(e,t,n){var o=n(5),i=n(32).some,r=n(67),a=n(22),l=r("some"),u=a("some");o({target:"Array",proto:!0,forced:!l||!u},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(315)),r=o.__importDefault(n(316)),a=o.__importDefault(n(321)),l=o.__importDefault(n(326)),u=o.__importDefault(n(327)),c=o.__importDefault(n(328)),s=o.__importDefault(n(329)),f=o.__importDefault(n(331)),d=o.__importDefault(n(333)),p=o.__importDefault(n(334)),v=o.__importDefault(n(337)),h=o.__importDefault(n(338)),A=o.__importDefault(n(339)),m=o.__importDefault(n(350)),g=o.__importDefault(n(365)),y=o.__importDefault(n(369)),w=o.__importDefault(n(137)),x=o.__importDefault(n(378)),_=o.__importDefault(n(380)),E=o.__importDefault(n(381)),b=o.__importDefault(n(382)),C=o.__importDefault(n(401)),S=o.__importDefault(n(406)),M=o.__importDefault(n(409));t.default={bold:i.default,head:r.default,italic:l.default,link:a.default,underline:u.default,strikeThrough:c.default,fontName:s.default,fontSize:f.default,justify:d.default,quote:p.default,backColor:v.default,foreColor:h.default,video:A.default,image:m.default,indent:g.default,emoticon:y.default,list:w.default,lineHeight:x.default,undo:_.default,redo:E.default,table:b.default,code:C.default,splitLine:S.default,todo:M.default}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(23)),r=o.__importDefault(n(3)),a=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="加粗">\n                <i class="w-e-icon-bold"></i>\n            </div>');return e.call(this,n,t)||this}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(27)),a=o(n(29)),l=o(n(4)),u=o(n(317)),c=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),f=s.__importDefault(n(24)),d=s.__importDefault(n(3)),p=n(6),v=n(7),h=function(e){function t(t){var n=this,o=d.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),i={width:100,title:"设置标题",type:"list",list:[{$elem:d.default("<h1>H1</h1>"),value:"<h1>"},{$elem:d.default("<h2>H2</h2>"),value:"<h2>"},{$elem:d.default("<h3>H3</h3>"),value:"<h3>"},{$elem:d.default("<h4>H4</h4>"),value:"<h4>"},{$elem:d.default("<h5>H5</h5>"),value:"<h5>"},{$elem:d.default("<p>"+t.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,o,t,i)||this,t.config.onCatalogChange&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var o;if((0,r.default)(o=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(o,d.default(n).getNodeName())>-1)return;t.cmd.do("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=p.getRandomCode();d.default(e).attr("id",t)},t.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,o=(0,a.default)(t).call(t,"h1,h2,h3,h4,h5"),i=[];(0,l.default)(o).call(o,(function(e,t){var n=d.default(e),o=n.attr("id"),r=n.getNodeName(),a=n.text();o||(o=p.getRandomCode(),n.attr("id",o)),a&&i.push({tag:r,id:o,text:a})})),(0,u.default)(this.oldCatalogs)!==(0,u.default)(i)&&(this.oldCatalogs=i,n&&n(i))},t.prototype.setMultilineHead=function(e){var t,n,o=this,i=this.editor,r=i.selection,a=null===(t=r.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],u=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],c=d.default(r.getSelectionStartElem()),s=d.default(r.getSelectionEndElem());s.elems[0].outerHTML!==d.default(v.EMPTY_P).elems[0].outerHTML||s.elems[0].nextSibling||(s=s.prev());var f=[];f.push(c.getNodeTop(i));var p=[],h=null===(n=r.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null==h||(0,l.default)(h).call(h,(function(e,t){e===f[0].getNode()&&p.push(t),e===s.getNodeTop(i).getNode()&&p.push(t)}));for(var A=0;f[A].getNode()!==s.getNodeTop(i).getNode();){if(!f[A].elems[0])return;var m=d.default(f[A].next().getNode());f.push(m),A++}null==f||(0,l.default)(f).call(f,(function(t,n){if(!o.hasTag(t,u)){var i=d.default(e),r=t.parent().getNode();i.html(""+t.html()),r.insertBefore(i.getNode(),t.getNode()),t.remove()}})),r.createRangeByElems(a.children[p[0]],a.children[p[1]])},t.prototype.hasTag=function(e,t){var n,o=this;if(!e)return!1;if((0,c.default)(t).call(t,null==e?void 0:e.getNodeName()))return!0;var i=!1;return null===(n=e.children())||void 0===n||(0,l.default)(n).call(n,(function(e){i=o.hasTag(d.default(e),t)})),i},t.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},t}(f.default);t.default=h},function(e,t,n){e.exports=n(318)},function(e,t,n){var o=n(319);e.exports=o},function(e,t,n){n(320);var o=n(9);o.JSON||(o.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o.JSON.stringify.apply(null,arguments)}},function(e,t,n){var o=n(5),i=n(36),r=n(11),a=i("JSON","stringify"),l=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,s=function(e,t,n){var o=n.charAt(t-1),i=n.charAt(t+1);return u.test(e)&&!c.test(i)||c.test(e)&&!u.test(o)?"\\u"+e.charCodeAt(0).toString(16):e},f=r((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&o({target:"JSON",stat:!0,forced:f},{stringify:function(e,t,n){var o=a.apply(null,arguments);return"string"==typeof o?o.replace(l,s):o}})},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(38)),u=a.__importDefault(n(3)),c=a.__importDefault(n(322)),s=a.__importStar(n(96)),f=a.__importDefault(n(33)),d=a.__importDefault(n(324)),p=n(7),v=function(e){function t(t){var n,o=u.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return n=e.call(this,o,t)||this,d.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),o=t.$textElem,i=o.html();if((0,r.default)(i).call(i)===p.EMPTY_P){var a=o.children();t.selection.createRangeByElem(a,!0,!0),n=t.selection.getSelectionContainerElem()}if(!n||!t.$textElem.equal(n))if(this.isActive){var l,c;if(!(e=t.selection.getSelectionContainerElem()))return;if("A"!==e.getNodeName()){var f=s.getParentNodeA(e);e=u.default(f)}l=e.elems[0].innerText,c=e.attr("href"),this.createPanel(l,c)}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=c.default(this.editor,e,t);new f.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;s.default(e)?this.active():this.unActive()},t}(l.default);t.default=v},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28)),a=o(n(17)),l=o(n(29));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),c=n(6),s=u.__importDefault(n(3)),f=u.__importStar(n(96)),d=n(323);t.default=function(e,t,n){var o,i=c.getRandom("input-link"),u=c.getRandom("input-text"),p=c.getRandom("btn-ok"),v=c.getRandom("btn-del"),h=f.default(e)?"inline-block":"none";function A(){if(f.default(e)){var t=e.selection.getSelectionContainerElem();t&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),o=t)}}return{width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n                        <input\n                            id="'+u+'"\n                            type="text"\n                            class="block"\n                            placeholder="'+e.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n                        </td>\n                        <input\n                            id="'+i+'"\n                            type="text"\n                            class="block"\n                            placeholder="'+e.i18next.t("如")+' https://..."/>\n                        </td>\n                        <div class="w-e-button-container">\n                            <button type="button" id="'+p+'" class="right">\n                                '+e.i18next.t("插入")+'\n                            </button>\n                            <button type="button" id="'+v+'" class="gray right" style="display:'+h+'">\n                                '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n                            </button>\n                        </div>\n                    </div>",events:[{selector:"#"+p,type:"click",fn:function(){var t,n,o,l,c,p=e.selection.getSelectionContainerElem(),v=null==p?void 0:p.elems[0];e.selection.restoreSelection();var h=e.selection.getSelectionRangeTopNodes()[0].getNode(),m=window.getSelection(),g=s.default("#"+i),y=s.default("#"+u),w=(0,a.default)(t=g.val()).call(t),x=(0,a.default)(n=y.val()).call(n),_="";m&&!(null==m?void 0:m.isCollapsed)&&(_=null===(l=d.insertHtml(m,h))||void 0===l?void 0:(0,a.default)(l).call(l));var E=null==_?void 0:_.replace(/<.*?>/g,""),b=null!==(c=null==E?void 0:E.length)&&void 0!==c?c:0;if(b<=x.length){var C=x.substring(0,b),S=x.substring(b);E===C&&(x=E+S)}if(w&&(x||(x=w),function(t,n){var o=e.config.linkCheck(t,n);if(void 0===o);else{if(!0===o)return!0;e.config.customAlert(o,"warning")}return!1}(x,w))){if("A"===(null==v?void 0:v.nodeName))return v.setAttribute("href",w),v.innerText=x,!0;if("A"!==(null==v?void 0:v.nodeName)&&(0,r.default)(o=f.EXTRA_TAG).call(o,v.nodeName)){var M=f.getParentNodeA(p);if(M)return M.setAttribute("href",w),v.innerText=x,!0}return function(t,n){var o=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),i=s.default('<a target="_blank">'+o+"</a>"),r=i.elems[0];r.innerText=t,r.href=n,f.default(e)?(A(),e.cmd.do("insertElem",i)):e.cmd.do("insertElem",i)}(x,w),!0}},bindEnter:!0},{selector:"#"+v,type:"click",fn:function(){return function(){if(f.default(e))if(A(),"A"===o.getNodeName()){var t,n=o.elems[0],i=n.parentElement;i&&(0,r.default)(t=f.EXTRA_TAG).call(t,i.nodeName)?i.innerHTML=n.innerHTML:e.cmd.do("insertHTML","<span>"+n.innerHTML+"</span>")}else{var a=f.getParentNodeA(o).innerHTML;e.cmd.do("insertHTML","<span>"+a+"</span>")}}(),!0}}]}],setLinkValue:function(e,o){var r="",a="";"text"===o&&(r="#"+u,a=t),"link"===o&&(r="#"+i,a=n),(0,l.default)(e).call(e,r).elems[0].value=a}}}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));function a(e,t){var n=e,o=e;do{if(n.textContent===t)break;o=n,n.parentNode&&(n=null==n?void 0:n.parentNode)}while("P"!==(null==n?void 0:n.nodeName));return o}function l(e,t){var n=e.nodeName,o="";if(3===e.nodeType||/^(h|H)[1-6]$/.test(n))return t;if(1===e.nodeType){var i=e.getAttribute("style"),r=e.getAttribute("face"),a=e.getAttribute("color");i&&(o=o+' style="'+i+'"'),r&&(o=o+' face="'+r+'"'),a&&(o=o+' color="'+a+'"')}return"<"+(n=n.toLowerCase())+o+">"+t+"</"+n+">"}function u(e,t,n,o){var i,r=null===(i=t.textContent)||void 0===i?void 0:i.substring(n,o),a=t,u="";do{r=u=l(a,null!=r?r:""),a=null==a?void 0:a.parentElement}while(a&&a.textContent!==e);return u}function c(e,t){return(0,r.default)(e).call(e,(function(e){t=l(e,t)})),t}(0,i.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=a,t.makeHtmlString=l,t.createPartHtml=u,t.insertHtml=function(e,t){var n,o,i,r,s,f=e.anchorNode,d=e.focusNode,p=e.anchorOffset,v=e.focusOffset,h=null!==(n=t.textContent)&&void 0!==n?n:"",A=function(e){for(var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",o=[];(null==e?void 0:e.textContent)===n;)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&o.push(e),e=e.childNodes[0];return o}(t),m="",g="",y="",w=f,x=d,_=f;if(null==f?void 0:f.isEqualNode(null!=d?d:null)){var E=u(h,f,p,v);return E=c(A,E)}for(f&&(m=u(h,f,null!=p?p:0)),d&&(y=u(h,d,0,v)),f&&(w=a(f,h)),d&&(x=a(d,h)),_=null!==(o=null==w?void 0:w.nextSibling)&&void 0!==o?o:f;!(null==_?void 0:_.isEqualNode(null!=x?x:null));){if("#text"===(null==_?void 0:_.nodeName))g+=null==_?void 0:_.textContent;else{var b=null===(r=null===(i=null==_?void 0:_.firstChild)||void 0===i?void 0:i.parentElement)||void 0===r?void 0:r.innerHTML;_&&(g+=l(_,null!=b?b:""))}var C=null!==(s=null==_?void 0:_.nextSibling)&&void 0!==s?s:_;if(C===_)break;_=C}return c(A,""+m+g+y)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(325));t.default=function(e){o.default(e)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(39)),c=n(96);t.default=function(e){var t=function(e){var t;return{showLinkTooltip:function(n){var o=[{$elem:l.default("<span>"+e.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("href");return window.open(n,"_target"),!0}},{$elem:l.default("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){var n,o;e.selection.createRangeByElem(t),e.selection.restoreSelection();var i=t.childNodes();if("IMG"===(null==i?void 0:i.getNodeName())){var a=null===(o=null===(n=e.selection.getSelectionContainerElem())||void 0===n?void 0:n.children())||void 0===o?void 0:o.elems[0].children[0];e.cmd.do("insertHTML","<img \n                                src="+(null==a?void 0:a.getAttribute("src"))+" \n                                style="+(null==a?void 0:a.getAttribute("style"))+">")}else{var l,u=t.elems[0],s=u.innerHTML,f=u.parentElement;f&&(0,r.default)(l=c.EXTRA_TAG).call(l,f.nodeName)?f.innerHTML=s:e.cmd.do("insertHTML","<span>"+s+"</span>")}return!0}}];(t=new u.default(e,n,o)).create()},hideLinkTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showLinkTooltip,o=t.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(n),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(23)),r=o.__importDefault(n(3)),a=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="斜体">\n                <i class="w-e-icon-italic"></i>\n            </div>');return e.call(this,n,t)||this}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(23)),r=o.__importDefault(n(3)),a=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="下划线">\n                <i class="w-e-icon-underline"></i>\n            </div>');return e.call(this,n,t)||this}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(23)),r=o.__importDefault(n(3)),a=function(e){function t(t){var n=r.default('<div class="w-e-menu" data-title="删除线">\n                <i class="w-e-icon-strikethrough"></i>\n            </div>');return e.call(this,n,t)||this}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(24)),r=o.__importDefault(n(3)),a=o.__importDefault(n(330)),l=function(e){function t(t){var n=this,o=r.default('<div class="w-e-menu" data-title="字体">\n                <i class="w-e-icon-font"></i>\n            </div>'),i={width:100,title:"设置字体",type:"list",list:new a.default(t.config.fontNames).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,o,t,i)||this}return o.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var r="p"!==(null==i?void 0:i.nodeName.toLowerCase()),a=(null==i?void 0:i.getAttribute("face"))===e;if(o){if(r&&!a){var l=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(l[0]),n.selection.moveCursor(l[0].elems[0])}n.selection.setRangeToElem(i),n.selection.createEmptyRange()}n.cmd.do("fontName",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=l},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),l=function(){function e(e){var t=this;this.itemList=[],(0,r.default)(e).call(e,(function(e){var n="string"==typeof e?e:e.value,o="string"==typeof e?e:e.name;t.itemList.push({$elem:a.default("<p style=\"font-family:'"+n+"'\">"+o+"</p>"),value:o})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(24)),r=o.__importDefault(n(3)),a=o.__importDefault(n(332)),l=function(e){function t(t){var n=this,o=r.default('<div class="w-e-menu" data-title="字号">\n                <i class="w-e-icon-text-heigh"></i>\n            </div>'),i={width:160,title:"设置字号",type:"list",list:new a.default(t.config.fontSizes).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,o,t,i)||this}return o.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty();null!=(null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection()))},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),i=function(){function e(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:o.default('<p style="font-size:'+t+'">'+n.name+"</p>"),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=i},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(24)),c=l.__importDefault(n(3)),s=["LI"],f=["BLOCKQUOTE"],d=function(e){function t(t){var n=this,o=c.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),i={width:100,title:"对齐方式",type:"list",list:[{$elem:c.default('<p>\n                            <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.justify.靠左")+"\n                        </p>"),value:"left"},{$elem:c.default('<p>\n                            <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.justify.居中")+"\n                        </p>"),value:"center"},{$elem:c.default('<p>\n                            <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.justify.靠右")+"\n                        </p>"),value:"right"},{$elem:c.default('<p>\n                            <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.justify.两端")+"\n                        </p>"),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,o,t,i)||this}return l.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,o=n.getSelectionContainerElem();n.saveRange();var i=t.selection.getSelectionRangeTopNodes();if(null==o?void 0:o.length)if(this.isSpecialNode(o,i[0])||this.isSpecialTopNode(i[0])){var a=this.getSpecialNodeUntilTop(o,i[0]);if(null==a)return;c.default(a).css("text-align",e)}else(0,r.default)(i).call(i,(function(t){t.css("text-align",e)}));n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],o=t.elems[0];null!=n;){if(-1!==(0,a.default)(s).call(s,null==n?void 0:n.nodeName))return n;if(n.parentNode===o)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,a.default)(s).call(s,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,a.default)(f).call(f,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(u.default);t.default=d},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(23)),c=a.__importDefault(n(335)),s=a.__importDefault(n(336)),f=n(7),d=function(e){function t(t){var n,o=l.default('<div class="w-e-menu" data-title="引用">\n                <i class="w-e-icon-quotes-left"></i>\n            </div>');return n=e.call(this,o,t)||this,c.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t,n=this.editor,o=n.selection.isSelectionEmpty(),i=n.selection.getSelectionRangeTopNodes(),a=i[i.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var u=s.default(i);if(n.$textElem.equal(a)){var c=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0];n.selection.createRangeByElems(c.children[0],c.children[0]),i=n.selection.getSelectionRangeTopNodes(),u=s.default(i),a.append(u)}else u.insertAfter(a);this.delSelectNode(i);var d=null===(t=u.childNodes())||void 0===t?void 0:t.last().getNode();if(null==d)return;return d.textContent?n.selection.moveCursor(d):n.selection.moveCursor(d,0),this.tryChangeActive(),void l.default(f.EMPTY_P).insertAfter(u)}var p=l.default(a.childNodes()),v=p.length,h=a;(0,r.default)(p).call(p,(function(e){var t=l.default(e);t.insertAfter(h),h=t})),a.remove(),n.selection.moveCursor(p.elems[v-1]),this.tryChangeActive(),o&&(n.selection.collapseRange(),n.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null===(e=this.editor.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName())?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},t.prototype.delSelectNode=function(e){(0,r.default)(e).call(e,(function(e){e.remove()}))},t}(u.default);t.default=d},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(7),r=o.__importDefault(n(3));t.default=function(e){e.txt.eventHooks.enterDownEvents.push((function(t){var n,o=e.selection.getSelectionContainerElem(),a=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null==a?void 0:a.getNodeName())){if("BLOCKQUOTE"===o.getNodeName()){var l=null===(n=o.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(l)}if(""===o.text()){t.preventDefault(),o.remove();var u=r.default(i.EMPTY_P);u.insertAfter(a),e.selection.moveCursor(u.getNode(),0)}""===a.text()&&a.remove()}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e){var t=a.default("<blockquote></blockquote>");return(0,r.default)(e).call(e,(function(e){t.append(e.clone(!0))})),t}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(24)),u=a.__importDefault(n(3)),c=n(6),s=function(e){function t(t){var n,o=this,i=u.default('<div class="w-e-menu" data-title="背景色">\n                <i class="w-e-icon-paint-brush"></i>\n            </div>'),a={width:120,title:"背景颜色",type:"inline-block",list:(0,r.default)(n=t.config.colors).call(n,(function(e){return{$elem:u.default('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}})),clickHandler:function(e){o.command(e)}};return o=e.call(this,i,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var r="p"!==(null==i?void 0:i.nodeName.toLowerCase()),a=null==i?void 0:i.style.backgroundColor,l=c.hexToRgb(e)===a;if(o){if(r&&!l){var u=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("backColor",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=s},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(24)),u=a.__importDefault(n(3)),c=function(e){function t(t){var n,o=this,i=u.default('<div class="w-e-menu" data-title="文字颜色">\n                <i class="w-e-icon-pencil2"></i>\n            </div>'),a={width:120,title:"文字颜色",type:"inline-block",list:(0,r.default)(n=t.config.colors).call(n,(function(e){return{$elem:u.default('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}})),clickHandler:function(e){o.command(e)}};return o=e.call(this,i,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var r=n.selection.getSelectionText();if("A"===i.nodeName&&i.textContent===r){var a=u.default("<span>&#8203;</span>").getNode();i.appendChild(a)}n.cmd.do("foreColor",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(l.default);t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(33)),a=o.__importDefault(n(38)),l=o.__importDefault(n(340)),u=o.__importDefault(n(346)),c=function(e){function t(t){var n,o=i.default('<div class="w-e-menu" data-title="视频">\n                <i class="w-e-icon-play"></i>\n            </div>');return n=e.call(this,o,t)||this,u.default(t),n}return o.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=l.default(this.editor,e);new r.default(this,t).create()},t.prototype.tryChangeActive=function(){},t}(a.default);t.default=c},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3)),c=a.__importDefault(n(341)),s=n(7);t.default=function(e,t){var n=e.config,o=new c.default(e),i=l.getRandom("input-iframe"),a=l.getRandom("btn-ok"),f=l.getRandom("input-upload"),d=l.getRandom("btn-local-ok"),p=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n                    <div id="'+d+'" class="w-e-up-btn">\n                        <i class="w-e-icon-upload2"></i>\n                    </div>\n                    <div style="display:none;">\n                        <input id="'+f+'" type="file" accept="video/*"/>\n                    </div>\n                 </div>',events:[{selector:"#"+d,type:"click",fn:function(){var e=u.default("#"+f).elems[0];if(!e)return!0;e.click()}},{selector:"#"+f,type:"change",fn:function(){var e=u.default("#"+f).elems[0];if(!e)return!0;var t=e.files;return t.length&&o.uploadVideo(t),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n                    <input \n                        id="'+i+'" \n                        type="text" \n                        class="block" \n                        placeholder="'+e.i18next.t("如")+'：<iframe src=... ></iframe>"/>\n                    </td>\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+a+'" class="right">\n                            '+e.i18next.t("插入")+"\n                        </button>\n                    </div>\n                </div>",events:[{selector:"#"+a,type:"click",fn:function(){var t,n=u.default("#"+i),o=(0,r.default)(t=n.val()).call(t);if(o&&function(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"==typeof n&&e.config.customAlert(n,"error"),!1)}(o))return function(t){e.cmd.do("insertHTML",t+s.EMPTY_P),e.config.onlineVideoCallback(t)}(o),!0},bindEnter:!0}]}],v={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&v.tabs.push(p[0]),n.showLinkVideo&&v.tabs.push(p[1]),v}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(133)),a=o(n(57)),l=o(n(4)),u=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var c=n(2),s=n(6),f=c.__importDefault(n(135)),d=c.__importDefault(n(136)),p=n(7),v=n(6),h=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n=this.editor,o=n.config,i=function(e){return n.i18next.t("validate."+e)},c=o.uploadVideoServer,p=o.uploadVideoMaxSize/1024,v=o.uploadVideoName,h=o.uploadVideoParams,A=o.uploadVideoParamsWithUrl,m=o.uploadVideoHeaders,g=o.uploadVideoHooks,y=o.uploadVideoTimeout,w=o.withVideoCredentials,x=o.customUploadVideo,_=o.uploadVideoAccept,E=[],b=[];if(s.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(_ instanceof Array?(0,r.default)(_).call(_,(function(e){return e===t.split(".")[t.split(".").length-1]}))?p<n?b.push("【"+t+"】"+i("大于")+" "+p+"M"):E.push(e):b.push("【"+t+"】"+i("不是视频")):b.push("【"+_+"】"+i("uploadVideoAccept 不是Array")))})),b.length)o.customAlert(i("视频验证未通过")+": \n"+b.join("\n"),"warning");else if(0!==E.length)if(x&&"function"==typeof x){var C;x(E,(0,a.default)(C=this.insertVideo).call(C,this))}else{var S=new FormData;if((0,l.default)(E).call(E,(function(e,t){var n=v||e.name;E.length>1&&(n+=t+1),S.append(n,e)})),c){var M=c.split("#");c=M[0];var D=M[1]||"";(0,l.default)(s).call(s,h,(function(e,t){A&&((0,u.default)(c).call(c,"?")>0?c+="&":c+="?",c=c+e+"="+t),S.append(e,t)})),D&&(c+="#"+D);var k=f.default(c,{timeout:y,formData:S,headers:m,withCredentials:!!w,beforeSend:function(e){if(g.before)return g.before(e,n,E)},onTimeout:function(e){o.customAlert(i("上传视频超时"),"error"),g.timeout&&g.timeout(e,n)},onProgress:function(e,t){var o=new d.default(n);t.lengthComputable&&(e=t.loaded/t.total,o.show(e))},onError:function(e){o.customAlert(i("上传视频错误"),"error",i("上传视频错误")+"，"+i("服务器返回状态")+": "+e.status),g.error&&g.error(e,n)},onFail:function(e,t){o.customAlert(i("上传视频失败"),"error",i("上传视频返回结果错误")+"，"+i("返回结果")+": "+t),g.fail&&g.fail(e,n,t)},onSuccess:function(e,r){if(g.customInsert){var l;g.customInsert((0,a.default)(l=t.insertVideo).call(l,t),r,n)}else{if("0"!=r.errno)return o.customAlert(i("上传视频失败"),"error",i("上传视频返回结果错误")+"，"+i("返回结果")+" errno="+r.errno),void(g.fail&&g.fail(e,n,r));var u=r.data;t.insertVideo(u.url),g.success&&g.success(e,n,r)}}});"string"==typeof k&&o.customAlert(k,"error")}}else o.customAlert(i("传入的文件不合法"),"warning")}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,o=function(e,n){return void 0===n&&(n="validate."),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{v.UA.isFirefox?t.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):t.cmd.do("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+p.EMPTY_P);var i=document.createElement("video");i.onload=function(){i=null},i.onerror=function(){n.customAlert(o("插入视频错误"),"error","wangEditor: "+o("插入视频错误")+"，"+o("视频链接")+' "'+e+'"，'+o("下载链接失败")),i=null},i.onabort=function(){return i=null},i.src=e}},e}();t.default=h},function(e,t,n){e.exports=n(343)},function(e,t,n){var o=n(344);e.exports=o},function(e,t,n){n(345);var o=n(9);e.exports=o.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(347)),r=o.__importDefault(n(349));t.default=function(e){i.default(e),r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39)),a=o.__importDefault(n(348));function l(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showVideoTooltip:function(o){var l=[{$elem:i.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return t.remove(),!0}},{$elem:i.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:i.default("<span>"+n("menus.justify.靠左")+"</span>"),onClick:function(e,t){return a.default(t,"left"),!0}},{$elem:i.default("<span>"+n("menus.justify.居中")+"</span>"),onClick:function(e,t){return a.default(t,"center"),!0}},{$elem:i.default("<span>"+n("menus.justify.靠右")+"</span>"),onClick:function(e,t){return a.default(t,"right"),!0}}];(t=new r.default(e,o,l)).create()},hideVideoTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=l,t.default=function(e){var t=l(e),n=t.showVideoTooltip,o=t.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(n),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o),e.txt.eventHooks.changeEvents.push(o)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e,t){var n=function(e,t){for(var n,o=e.elems[0];null!=o;){if((0,r.default)(t).call(t,null==o?void 0:o.nodeName))return o;if("BODY"===(null===(n=null==o?void 0:o.parentNode)||void 0===n?void 0:n.nodeName))return null;o=o.parentNode}return o}(e,["P"]);n&&a.default(n).css("text-align",t)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(6);t.default=function(e){if(o.UA.isFirefox){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(t){var o=n.getSelectionContainerElem();if(o){var i=o.getNodeTop(e),r=i.length&&i.prev().length?i.prev():null;r&&r.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&r.remove()}}))}}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=n(7),u=a.__importDefault(n(3)),c=a.__importDefault(n(33)),s=a.__importDefault(n(38)),f=a.__importDefault(n(351)),d=a.__importDefault(n(364)),p=function(e){function t(t){var n,o=this,i=u.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),a=d.default(t);return a.onlyUploadConf&&(i=a.onlyUploadConf.$elem,(0,r.default)(n=a.onlyUploadConf.events).call(n,(function(e){var t=e.type,n=e.fn||l.EMPTY_FN;i.on(t,(function(e){e.stopPropagation(),n(e)}))}))),(o=e.call(this,i,t)||this).imgPanelConfig=a,f.default(t),o}return a.__extends(t,e),t.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},t.prototype.createPanel=function(){var e=this.imgPanelConfig,t=new c.default(this,e);this.setPanel(t),t.create()},t.prototype.tryChangeActive=function(){},t}(s.default);t.default=p},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(352)),r=o.__importDefault(n(353)),a=o.__importDefault(n(354)),l=o.__importDefault(n(362)),u=o.__importDefault(n(363));t.default=function(e){i.default(e),r.default(e),a.default(e),l.default(e),u.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(131),r=o.__importDefault(n(97));function a(e,t){if(function(e,t){for(var n,o=(null===(n=t.clipboardData)||void 0===n?void 0:n.types)||[],i=0;i<o.length;i++)if("Files"===o[i])return!0;return!1}(0,e)||!function(e,t){var n=e.config,o=n.pasteFilterStyle,r=n.pasteIgnoreImg;return!!i.getPasteHtml(t,o,r)||!!i.getPasteText(t)}(t,e)){var n=i.getPasteImgs(e);n.length&&new r.default(t).uploadImg(n)}}t.default=function(e){e.txt.eventHooks.pasteEvents.unshift((function(t){a(t,e)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(97));t.default=function(e){e.txt.eventHooks.dropEvents.push((function(t){var n=t.dataTransfer&&t.dataTransfer.files;n&&n.length&&new o.default(e).uploadImg(n)}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29)),a=o(n(355));(0,i.default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var l=n(2).__importDefault(n(3));n(360);var u=n(6);function c(e,t,n,o,i){e.attr("style","width:"+t+"px; height:"+n+"px; left:"+o+"px; top:"+i+"px;")}function s(e){var t,n,o,i=e.$textContainerElem,s=function(e,t){var n=l.default('<div class="w-e-img-drag-mask">\n            <div class="w-e-img-drag-show-size"></div>\n            <div class="w-e-img-drag-rb"></div>\n         </div>');return n.hide(),t.append(n),n}(0,i);function f(){(0,r.default)(i).call(i,".w-e-img-drag-mask").hide()}return o=i,(n=s).on("click",(function(e){e.stopPropagation()})),n.on("mousedown",".w-e-img-drag-rb",(function(e){if(e.preventDefault(),t){var i=e.clientX,u=e.clientY,s=o.getBoundingClientRect(),f=t.getBoundingClientRect(),d=f.width,p=f.height,v=f.left-s.left,h=f.top-s.top,A=d/p,m=d,g=p,y=l.default(document);y.on("mousemove",x),y.on("mouseup",_),y.on("mouseleave",w)}function w(){y.off("mousemove",x),y.off("mouseup",_)}function x(e){e.stopPropagation(),e.preventDefault(),m=d+(e.clientX-i),g=p+(e.clientY-u),m/g!=A&&(g=m/A),m=(0,a.default)(m.toFixed(2)),g=(0,a.default)(g.toFixed(2)),(0,r.default)(n).call(n,".w-e-img-drag-show-size").text(m.toFixed(2).replace(".00","")+"px * "+g.toFixed(2).replace(".00","")+"px"),c(n,m,g,v,h)}function _(){t.attr("width",m+""),t.attr("height",g+"");var e=t.getBoundingClientRect();c(n,m,g,e.left-s.left,e.top-s.top),w()}})),l.default(document).on("click",f),e.beforeDestroy((function(){l.default(document).off("click",f)})),{showDrag:function(e){if(u.UA.isIE())return!1;e&&function(e,t,n){var o=e.getBoundingClientRect(),i=n.getBoundingClientRect(),l=i.width.toFixed(2),u=i.height.toFixed(2);(0,r.default)(t).call(t,".w-e-img-drag-show-size").text(l+"px * "+u+"px"),c(t,(0,a.default)(l),(0,a.default)(u),i.left-o.left,i.top-o.top),t.show()}(i,s,t=e)},hideDrag:f}}t.createShowHideFn=s,t.default=function(e){var t=s(e),n=t.showDrag,o=t.hideDrag;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.changeEvents.push(o)}},function(e,t,n){e.exports=n(356)},function(e,t,n){var o=n(357);e.exports=o},function(e,t,n){n(358);var o=n(9);e.exports=o.parseFloat},function(e,t,n){var o=n(5),i=n(359);o({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(e,t,n){var o=n(8),i=n(90).trim,r=n(68),a=o.parseFloat,l=1/a(r+"-0")!=-1/0;e.exports=l?function(e){var t=i(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var o=n(20),i=n(361);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-text-container {\n  overflow: hidden;\n}\n.w-e-img-drag-mask {\n  position: absolute;\n  z-index: 1;\n  border: 1px dashed #ccc;\n  box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n  position: absolute;\n  right: -5px;\n  bottom: -5px;\n  width: 16px;\n  height: 16px;\n  border-radius: 50%;\n  background: #ccc;\n  cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n  min-width: 110px;\n  height: 22px;\n  line-height: 22px;\n  font-size: 14px;\n  color: #999;\n  position: absolute;\n  left: 0;\n  top: 0;\n  background-color: #999;\n  color: #fff;\n  border-radius: 2px;\n  padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39));function a(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showImgTooltip:function(o){var a=[{$elem:i.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:i.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];a.push({$elem:i.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),o.attr("data-href")&&a.push({$elem:i.default("<span>"+n("查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("data-href");return n&&(n=decodeURIComponent(n),window.open(n,"_target")),!0}}),(t=new r.default(e,o,a)).create()},hideImgTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=a(e),n=t.showImgTooltip,o=t.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o),e.txt.eventHooks.imgDragBarMouseDownEvents.push(o),e.txt.eventHooks.changeEvents.push(o)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(e){var t=n.getSelectionContainerElem(),o=n.getRange();if(o&&t&&8===e.keyCode&&n.isSelectionEmpty()){var i=o.startContainer,r=o.startOffset,a=null;if(0===r)for(;i!==t.elems[0]&&t.elems[0].contains(i)&&i.parentNode&&!a;){if(i.previousSibling){a=i.previousSibling;break}i=i.parentNode}else 3!==i.nodeType&&(a=i.childNodes[r-1]);if(a){for(var l=a;l.childNodes.length;)l=l.childNodes[l.childNodes.length-1];l instanceof HTMLElement&&"IMG"===l.tagName&&(l.remove(),e.preventDefault())}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),c=n(6),s=l.__importDefault(n(97));t.default=function(e){var t,n=e.config,o=new s.default(e),i=c.getRandom("up-trigger-id"),l=c.getRandom("up-file-id"),f=c.getRandom("input-link-url"),d=c.getRandom("input-link-url-alt"),p=c.getRandom("input-link-url-href"),v=c.getRandom("btn-link"),h=function(t,n){return void 0===n&&(n="menus.panelMenus.image."),e.i18next.t(n+t)},A=1===n.uploadImgMaxLength?"":'multiple="multiple"',m=(0,r.default)(t=n.uploadImgAccept).call(t,(function(e){return"image/"+e})).join(","),g=function(e,t,n){return'<div class="'+e+'" data-title="'+n+'">\n            <div id="'+i+'" class="w-e-up-btn">\n                <i class="'+t+'"></i>\n            </div>\n            <div style="display:none;">\n                <input id="'+l+'" type="file" '+A+' accept="'+m+'"/>\n            </div>\n        </div>'},y=[{selector:"#"+i,type:"click",fn:function(){var e=n.uploadImgFromMedia;if(e&&"function"==typeof e)return e(),!0;var t=u.default("#"+l).elems[0];if(!t)return!0;t.click()}},{selector:"#"+l,type:"change",fn:function(){var e=u.default("#"+l).elems[0];if(!e)return!0;var t=e.files;return(null==t?void 0:t.length)&&o.uploadImg(t),e&&(e.value=""),!0}}],w=['<input\n            id="'+f+'"\n            type="text"\n            class="block"\n            placeholder="'+h("图片地址")+'"/>'];n.showLinkImgAlt&&w.push('\n        <input\n            id="'+d+'"\n            type="text"\n            class="block"\n            placeholder="'+h("图片文字说明")+'"/>'),n.showLinkImgHref&&w.push('\n        <input\n            id="'+p+'"\n            type="text"\n            class="block"\n            placeholder="'+h("跳转链接")+'"/>');var x=[{title:h("上传图片"),tpl:g("w-e-up-img-container","w-e-icon-upload2",""),events:y},{title:h("网络图片"),tpl:"<div>\n                    "+w.join("")+'\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+v+'" class="right">'+h("插入","")+"</button>\n                    </div>\n                </div>",events:[{selector:"#"+v,type:"click",fn:function(){var e,t,i,r,l,c,s,v=u.default("#"+f),h=(0,a.default)(e=v.val()).call(e);if(h&&(n.showLinkImgAlt&&(t=(0,a.default)(i=u.default("#"+d).val()).call(i)),n.showLinkImgHref&&(r=(0,a.default)(l=u.default("#"+p).val()).call(l)),c=h,!0===(s=n.linkImgCheck(c))||("string"==typeof s&&n.customAlert(s,"error"),0)))return o.insertImg(h,t,r),!0},bindEnter:!0}]}],_={width:300,height:0,tabs:[],onlyUploadConf:{$elem:u.default(g("w-e-menu","w-e-icon-image","图片")),events:y}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&_.tabs.push(x[0]),n.showLinkImg&&(_.tabs.push(x[1]),_.onlyUploadConf=void 0),_}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(24)),c=a.__importDefault(n(366)),s=function(e){function t(t){var n=this,o=l.default('<div class="w-e-menu" data-title="缩进">\n                <i class="w-e-icon-indent-increase"></i>\n            </div>'),i={width:130,title:"设置缩进",type:"list",list:[{$elem:l.default('<p>\n                            <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n                        <p>"),value:"increase"},{$elem:l.default('<p>\n                            <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n                            '+t.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n                        <p>"),value:"decrease"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,o,t,i)||this}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n)){var o=t.selection.getSelectionRangeTopNodes();o.length>0&&(0,r.default)(o).call(o,(function(n){c.default(l.default(n),e,t)}))}else n&&n.length>0&&(0,r.default)(n).call(n,(function(n){c.default(l.default(n),e,t)}));t.selection.restoreSelection(),this.tryChangeActive()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem(),n=l.default(t).getNodeTop(e);n.length<=0||(""!=n.elems[0].style.paddingLeft?this.active():this.unActive())},t}(u.default);t.default=s},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45)),a=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(367)),c=l.__importDefault(n(368)),s=/^(\d+)(\w+)$/,f=/^(\d+)%$/;function d(e){var t=e.config.indentation;if("string"==typeof t){if(s.test(t)){var n,o=(0,r.default)(n=(0,a.default)(t).call(t).match(s)).call(n,1,3),i=o[0],l=o[1];return{value:Number(i),unit:l}}if(f.test(t))return{value:Number((0,a.default)(t).call(t).match(f)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}t.default=function(e,t,n){var o=e.getNodeTop(n);/^(P|H[0-9]*)$/.test(o.getNodeName())&&("increase"===t?u.default(o,d(n)):"decrease"===t&&c.default(o,d(n)))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""===n.style.paddingLeft)e.css("padding-left",t.value+t.unit);else{var o=n.style.paddingLeft,i=(0,r.default)(o).call(o,0,o.length-t.unit.length),a=Number(i)+t.value;e.css("padding-left",""+a+t.unit)}}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""!==n.style.paddingLeft){var o=n.style.paddingLeft,i=(0,r.default)(o).call(o,0,o.length-t.unit.length),a=Number(i)-t.value;a>0?e.css("padding-left",""+a+t.unit):e.css("padding-left","")}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(38)),a=o.__importDefault(n(33)),l=o.__importDefault(n(370)),u=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="表情">\n                <i class="w-e-icon-happy"></i>\n            </div>');return e.call(this,n,t)||this}return o.__extends(t,e),t.prototype.createPanel=function(){var e=l.default(this.editor);new a.default(this,e).create()},t.prototype.clickHandler=function(){this.createPanel()},t.prototype.tryChangeActive=function(){},t}(r.default);t.default=u},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=o(n(70)),l=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var u=n(2).__importDefault(n(3));t.default=function(e){var t=e.config.emotions;function n(e){var t,n,o=[];return"image"==e.type?(o=(0,r.default)(t=e.content).call(t,(function(e){return"string"==typeof e?"":'<span  title="'+e.alt+'">\n                    <img class="eleImg" data-emoji="'+e.alt+'" style src="'+e.src+'" alt="['+e.alt+']">\n                </span>'})),o=(0,a.default)(o).call(o,(function(e){return""!==e}))):o=(0,r.default)(n=e.content).call(n,(function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"})),o.join("").replace(/&nbsp;/g,"")}return{width:300,height:230,tabs:(0,r.default)(t).call(t,(function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"<div>"+n(t)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(t){var n,o,i=u.default(t.target);return n="IMG"===i.getNodeName()?(0,l.default)(o=i.parent().html()).call(o):"<span>"+i.html()+"</span>",e.cmd.do("insertHTML",n),!0}}]}}))}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var o,i,r=n(2),a=r.__importDefault(n(3)),l=r.__importDefault(n(372)),u=r.__importDefault(n(374)),c=r.__importDefault(n(375)),s=r.__importDefault(n(376)),f=r.__importDefault(n(377));(i=o=t.ClassType||(t.ClassType={})).Wrap="WrapListHandle",i.Join="JoinListHandle",i.StartJoin="StartJoinListHandle",i.EndJoin="EndJoinListHandle",i.Other="OtherListHandle";var d={WrapListHandle:l.default,JoinListHandle:u.default,StartJoinListHandle:c.default,EndJoinListHandle:s.default,OtherListHandle:f.default};t.createListHandle=function(e,t,n){if(e===o.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==o.Other?new d[e](t):new d[e](t,n)};var p=function(){function e(e){this.handle=e,this.handle.exec()}return e.prototype.getSelectionRangeElem=function(){return a.default(this.handle.selectionRangeElem.get())},e}();t.default=p},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),c=n(47),s=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t=this.options,n=t.listType,o=t.listTarget,i=t.$selectionElem,a=t.$startElem,u=t.$endElem,s=[],f=null==i?void 0:i.getNodeName(),d=a.prior,p=u.prior;if(!a.prior&&!u.prior||!(null==d?void 0:d.prev().length)&&!(null==p?void 0:p.next().length)){var v;(0,r.default)(v=null==i?void 0:i.children()).call(v,(function(e){s.push(l.default(e))})),f===n?e=c.createElementFragment(s,c.createDocumentFragment(),"p"):(e=c.createElement(o),(0,r.default)(s).call(s,(function(t){e.appendChild(t.elems[0])}))),this.selectionRangeElem.set(e),c.insertBefore(i,e,i.elems[0]),i.remove()}else{for(var h=d;h.length;)s.push(h),h=(null==p?void 0:p.equal(h))?l.default(void 0):h.next();var A=d.prev(),m=p.next();if(f===n?e=c.createElementFragment(s,c.createDocumentFragment(),"p"):(e=c.createElement(o),(0,r.default)(s).call(s,(function(t){e.append(t.elems[0])}))),A.length&&m.length){for(var g=[];m.length;)g.push(m),m=m.next();var y=c.createElement(f);(0,r.default)(g).call(g,(function(e){y.append(e.elems[0])})),l.default(y).insertAfter(i),this.selectionRangeElem.set(e),(w=i.next()).length?c.insertBefore(i,e,w.elems[0]):i.parent().elems[0].append(e)}else if(A.length){var w;this.selectionRangeElem.set(e),(w=i.next()).length?c.insertBefore(i,e,w.elems[0]):i.parent().elems[0].append(e)}else this.selectionRangeElem.set(e),c.insertBefore(i,e,i.elems[0])}},t}(u.ListHandle);t.default=s},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=function(){function e(){this._element=null}return e.prototype.set=function(e){if(e instanceof DocumentFragment){var t,n=[];(0,r.default)(t=e.childNodes).call(t,(function(e){n.push(e)})),e=n}this._element=e},e.prototype.get=function(){return this._element},e.prototype.clear=function(){this._element=null},e}();t.default=a},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),c=n(47),s=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,o,i,a,u,s,f=this.options,d=f.editor,p=f.listType,v=f.listTarget,h=f.$startElem,A=f.$endElem,m=d.selection.getSelectionRangeTopNodes(),g=null==h?void 0:h.getNodeName();if(g===(null==A?void 0:A.getNodeName()))if(m.length>2)if(m.shift(),m.pop(),s=c.createElementFragment(c.filterSelectionNodes(m),c.createDocumentFragment()),g===p)null===(e=A.children())||void 0===e||(0,r.default)(e).call(e,(function(e){s.append(e)})),A.remove(),this.selectionRangeElem.set(s),h.elems[0].append(s);else{for(var y=document.createDocumentFragment(),w=document.createDocumentFragment(),x=c.getStartPoint(h);x.length;){var _=x.elems[0];x=x.next(),y.append(_)}for(var E=c.getEndPoint(A),b=[];E.length;)b.unshift(E.elems[0]),E=E.prev();(0,r.default)(b).call(b,(function(e){w.append(e)}));var C=c.createElement(v);C.append(y),C.append(s),C.append(w),s=C,this.selectionRangeElem.set(s),l.default(C).insertAfter(h),!(null===(t=h.children())||void 0===t?void 0:t.length)&&h.remove(),!(null===(n=A.children())||void 0===n?void 0:n.length)&&A.remove()}else{for(m.length=0,x=c.getStartPoint(h);x.length;)m.push(x),x=x.next();for(E=c.getEndPoint(A),b=[];E.length;)b.unshift(E),E=E.prev();m.push.apply(m,b),g===p?(s=c.createElementFragment(m,c.createDocumentFragment(),"p"),this.selectionRangeElem.set(s),c.insertBefore(h,s,A.elems[0])):(s=c.createElement(v),(0,r.default)(m).call(m,(function(e){s.append(e.elems[0])})),this.selectionRangeElem.set(s),l.default(s).insertAfter(h)),!(null===(o=h.children())||void 0===o?void 0:o.length)&&A.remove(),!(null===(i=A.children())||void 0===i?void 0:i.length)&&A.remove()}else{var S=[];for(E=c.getEndPoint(A);E.length;)S.unshift(E),E=E.prev();var M=[];for(x=c.getStartPoint(h);x.length;)M.push(x),x=x.next();if(s=c.createDocumentFragment(),m.shift(),m.pop(),(0,r.default)(M).call(M,(function(e){return s.append(e.elems[0])})),s=c.createElementFragment(c.filterSelectionNodes(m),s),(0,r.default)(S).call(S,(function(e){return s.append(e.elems[0])})),this.selectionRangeElem.set(s),g===p)h.elems[0].append(s),!(null===(a=A.children())||void 0===a?void 0:a.length)&&A.remove();else if(null===(u=A.children())||void 0===u?void 0:u.length){var D=A.children();c.insertBefore(D,s,D.elems[0])}else A.elems[0].append(s)}},t}(u.ListHandle);t.default=s},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),c=n(47),s=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n=this.options,o=n.editor,i=n.listType,a=n.listTarget,u=n.$startElem,s=o.selection.getSelectionRangeTopNodes(),f=null==u?void 0:u.getNodeName();s.shift();for(var d=[],p=c.getStartPoint(u);p.length;)d.push(p),p=p.next();f===i?(t=c.createDocumentFragment(),(0,r.default)(d).call(d,(function(e){return t.append(e.elems[0])})),t=c.createElementFragment(c.filterSelectionNodes(s),t),this.selectionRangeElem.set(t),u.elems[0].append(t)):(t=c.createElement(a),(0,r.default)(d).call(d,(function(e){return t.append(e.elems[0])})),t=c.createElementFragment(c.filterSelectionNodes(s),t),this.selectionRangeElem.set(t),l.default(t).insertAfter(u),!(null===(e=u.children())||void 0===e?void 0:e.length)&&u.remove())},t}(u.ListHandle);t.default=s},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(58),c=n(47),s=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,o=this.options,i=o.editor,a=o.listType,u=o.listTarget,s=o.$endElem,f=i.selection.getSelectionRangeTopNodes(),d=null==s?void 0:s.getNodeName();f.pop();for(var p=[],v=c.getEndPoint(s);v.length;)p.unshift(v),v=v.prev();if(d===a)if(n=c.createElementFragment(c.filterSelectionNodes(f),c.createDocumentFragment()),(0,r.default)(p).call(p,(function(e){return n.append(e.elems[0])})),this.selectionRangeElem.set(n),null===(e=s.children())||void 0===e?void 0:e.length){var h=s.children();c.insertBefore(h,n,h.elems[0])}else s.elems[0].append(n);else{var A=c.filterSelectionNodes(f);A.push.apply(A,p),n=c.createElementFragment(A,c.createElement(u)),this.selectionRangeElem.set(n),l.default(n).insertBefore(s),!(null===(t=s.children())||void 0===t?void 0:t.length)&&s.remove()}},t}(u.ListHandle);t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(58),r=n(47),a=function(e){function t(t,n){var o=e.call(this,t)||this;return o.range=n,o}return o.__extends(t,e),t.prototype.exec=function(){var e=this.options,t=e.editor,n=e.listTarget,o=t.selection.getSelectionRangeTopNodes(),i=r.createElementFragment(r.filterSelectionNodes(o),r.createElement(n));this.selectionRangeElem.set(i),this.range.insertNode(i)},t}(i.ListHandle);t.default=a},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(24)),c=l.__importDefault(n(3)),s=l.__importDefault(n(379)),f=function(e){function t(t){var n=this,o=c.default('<div class="w-e-menu" data-title="行高">\n                    <i class="w-e-icon-row-height"></i>\n                </div>'),i={width:100,title:"设置行高",type:"list",list:new s.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=e.call(this,o,t,i)||this}return l.__extends(t,e),t.prototype.command=function(e){var t=this.editor;t.selection.restoreSelection();var n=c.default(t.selection.getSelectionContainerElem());if(n.elems.length)if(n&&t.$textElem.equal(n)){for(var o=!1,i=c.default(t.selection.getSelectionStartElem()).elems[0],r=c.default(t.selection.getSelectionEndElem()).elems[0],a=this.getDom(i),l=this.getDom(r),u=n.elems[0].children,s=0;s<u.length;s++){var f=u[s];if("P"===c.default(f).getNodeName()&&(f===a&&(o=!0),o&&(c.default(f).css("line-height",e),f===l)))return void(o=!1)}t.selection.createRangeByElems(i,r)}else{var d=n.elems[0],p=this.getDom(d);"P"===c.default(p).getNodeName()&&(c.default(p).css("line-height",e),t.selection.createRangeByElems(p,p))}},t.prototype.getDom=function(e){var t=c.default(e).elems[0];return t.parentNode?(t=function e(t,n){var o=c.default(t.parentNode);return n.$textElem.equal(o)?t:e(o.elems[0],n)}(t,this.editor),t):t},t.prototype.styleProcessing=function(e){var t="";return(0,r.default)(e).call(e,(function(e){""!==e&&-1===(0,a.default)(e).call(e,"line-height")&&(t=t+e+";")})),t},t.prototype.setRange=function(e,t){var n=this.editor,o=window.getSelection?window.getSelection():document.getSelection();null==o||o.removeAllRanges();var i=document.createRange(),r=e,a=t;i.setStart(r,0),i.setEnd(a,1),null==o||o.addRange(i),n.selection.saveRange(),null==o||o.removeAllRanges(),n.selection.restoreSelection()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(!t||!e.$textElem.equal(t)){var n=c.default(e.selection.getSelectionStartElem());if(0!==n.length){var o=(n=this.getDom(n.elems[0])).getAttribute("style")?n.getAttribute("style"):"";o&&-1!==(0,a.default)(o).call(o,"line-height")?this.active():this.unActive()}}},t}(u.default);t.default=f},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),l=function(){function e(e,t){var n=this;this.itemList=[{$elem:a.default("<span>"+e.i18next.t("默认")+"</span>"),value:""}],(0,r.default)(t).call(t,(function(e){n.itemList.push({$elem:a.default("<span>"+e+"</span>"),value:e})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="撤销">\n                <i class="w-e-icon-undo"></i>\n            </div>');return e.call(this,n,t)||this}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();if(null==t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},t}(o.__importDefault(n(23)).default);t.default=r},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="恢复">\n                <i class="w-e-icon-redo"></i>\n            </div>');return e.call(this,n,t)||this}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();if(null==t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},t}(o.__importDefault(n(23)).default);t.default=r},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(38)),r=o.__importDefault(n(3)),a=o.__importDefault(n(383)),l=o.__importDefault(n(33)),u=o.__importDefault(n(392)),c=function(e){function t(t){var n,o=r.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return n=e.call(this,o,t)||this,u.default(t),n}return o.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel()},t.prototype.createPanel=function(){var e=a.default(this.editor);new l.default(this,e).create()},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=c},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(384));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3));n(389);var c=a.__importDefault(n(391));function s(e){return e>0&&(0,r.default)(e)}t.default=function(e){var t=new c.default(e),n=l.getRandom("w-col-id"),o=l.getRandom("w-row-id"),i=l.getRandom("btn-link"),r="menus.panelMenus.table.",a=function(t){return e.i18next.t(t)},f=[{title:a(r+"插入表格"),tpl:'<div>\n                    <div class="w-e-table">\n                        <span>'+a("创建")+'</span>\n                        <input id="'+o+'"  type="text" class="w-e-table-input" value="5"/></td>\n                        <span>'+a(r+"行")+'</span>\n                        <input id="'+n+'" type="text" class="w-e-table-input" value="5"/></td>\n                        <span>'+(a(r+"列")+a(r+"的")+a(r+"表格"))+'</span>\n                    </div>\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+i+'" class="right">'+a("插入")+"</button>\n                    </div>\n                </div>",events:[{selector:"#"+i,type:"click",fn:function(){var i=Number(u.default("#"+n).val()),r=Number(u.default("#"+o).val());return s(r)&&s(i)?(t.createAction(r,i),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],d={width:330,height:0,tabs:[]};return d.tabs.push(f[0]),d}},function(e,t,n){e.exports=n(385)},function(e,t,n){var o=n(386);e.exports=o},function(e,t,n){n(387);var o=n(9);e.exports=o.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},function(e,t,n){var o=n(13),i=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var o=n(20),i=n(390);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-table {\n  display: flex;\n}\n.w-e-table .w-e-table-input {\n  width: 40px;\n  text-align: center!important;\n  margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(7),r=o.__importDefault(n(3)),a=function(){function e(e){this.editor=e}return e.prototype.createAction=function(e,t){var n=this.editor,o=r.default(n.selection.getSelectionContainerElem()),i=r.default(o.elems[0]).parentUntilEditor("UL",n),a=r.default(o.elems[0]).parentUntilEditor("OL",n);if(!i&&!a){var l=this.createTableHtml(e,t);n.cmd.do("insertHTML",l)}},e.prototype.createTableHtml=function(e,t){for(var n="",o="",r=0;r<e;r++){o="";for(var a=0;a<t;a++)o+=0===r?"<th></th>":"<td></td>";n=n+"<tr>"+o+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table>"+i.EMPTY_P},e}();t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(393)),i=n(400);t.default=function(e){o.default(e),i.bindEventKeyboardEvent(e),i.bindClickEvent(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39)),a=o.__importDefault(n(394)),l=o.__importDefault(n(399)),u=n(7);function c(e){var t=e.selection.getSelectionStartElem(),n=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==n?void 0:n.elems[0])}function s(e,t){var n=e.elems[0].nextSibling;return n&&"<br>"!==n.innerHTML||(t+=""+u.EMPTY_P),t}t.default=function(e){var t=function(e){var t;return{showTableTooltip:function(n){var o=new l.default(e),f=function(t,n){return void 0===n&&(n="menus.panelMenus.table."),e.i18next.t(n+t)},d=[{$elem:i.default("<span>"+f("删除表格")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u.EMPTY_P),!0}},{$elem:i.default("<span>"+f("添加行")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),r=o.getRowNode(n.elems[0]);if(!r)return!0;var l=Number(o.getCurrentRowIndex(t.elems[0],r)),u=o.getTableHtml(t.elems[0]),f=o.getTableHtml(a.default.ProcessingRow(i.default(u),l).elems[0]);return f=s(t,f),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",f),!0}},{$elem:i.default("<span>"+f("删除行")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),r=o.getRowNode(n.elems[0]);if(!r)return!0;var l=Number(o.getCurrentRowIndex(t.elems[0],r)),f=o.getTableHtml(t.elems[0]),d=a.default.DeleteRow(i.default(f),l).elems[0].children[0].children.length,p="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),p=s(t,p=0===d?u.EMPTY_P:o.getTableHtml(a.default.DeleteRow(i.default(f),l).elems[0])),e.cmd.do("insertHTML",p),!0}},{$elem:i.default("<span>"+f("添加列")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),r=o.getCurrentColIndex(n.elems[0]),l=o.getTableHtml(t.elems[0]),u=o.getTableHtml(a.default.ProcessingCol(i.default(l),r).elems[0]);return u=s(t,u),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u),!0}},{$elem:i.default("<span>"+f("删除列")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),r=o.getCurrentColIndex(n.elems[0]),l=o.getTableHtml(t.elems[0]),f=a.default.DeleteCol(i.default(l),r),d=f.elems[0].children[0].children[0].children.length,p="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),p=s(t,p=0===d?u.EMPTY_P:o.getTableHtml(f.elems[0])),e.cmd.do("insertHTML",p),!0}},{$elem:i.default("<span>"+f("设置表头")+"</span>"),onClick:function(e,t){if(c(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),r=o.getRowNode(n.elems[0]);if(!r)return!0;var l=Number(o.getCurrentRowIndex(t.elems[0],r));0!==l&&(l=0);var u=o.getTableHtml(t.elems[0]),f=o.getTableHtml(a.default.setTheHeader(i.default(u),l,"th").elems[0]);return f=s(t,f),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",f),!0}},{$elem:i.default("<span>"+f("取消表头")+"</span>"),onClick:function(e,t){var n=i.default(e.selection.getSelectionStartElem()),r=o.getRowNode(n.elems[0]);if(!r)return!0;var l=Number(o.getCurrentRowIndex(t.elems[0],r));0!==l&&(l=0);var u=o.getTableHtml(t.elems[0]),c=o.getTableHtml(a.default.setTheHeader(i.default(u),l,"td").elems[0]);return c=s(t,c),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",c),!0}}];(t=new r.default(e,n,d)).create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showTableTooltip,o=t.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(n),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45)),a=o(n(91)),l=o(n(4)),u=o(n(138));(0,i.default)(t,"__esModule",{value:!0});var c=n(2).__importDefault(n(3));function s(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n<t.length;n++)e.appendChild(t[n])}function f(e){var t=e.elems[0].children[0];return"COLGROUP"===t.nodeName&&(t=e.elems[0].children[e.elems[0].children.length-1]),t}t.default={ProcessingRow:function(e,t){for(var n=f(e),o=(0,r.default)(Array.prototype).apply(n.children),i=o[0].children.length,l=document.createElement("tr"),u=0;u<i;u++){var d=document.createElement("td");l.appendChild(d)}return(0,a.default)(o).call(o,t+1,0,l),s(n,o),c.default(n.parentNode)},ProcessingCol:function(e,t){for(var n=f(e),o=(0,r.default)(Array.prototype).apply(n.children),i=function(e){var n,i=[];for((0,l.default)(n=(0,u.default)(o[e].children)).call(n,(function(e){i.push(e)}));0!==o[e].children.length;)o[e].removeChild(o[e].children[0]);var r="TH"!==c.default(i[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,a.default)(i).call(i,t+1,0,r);for(var s=0;s<i.length;s++)o[e].appendChild(i[s])},d=0;d<o.length;d++)i(d);return s(n,o),c.default(n.parentNode)},DeleteRow:function(e,t){var n=f(e),o=(0,r.default)(Array.prototype).apply(n.children);return(0,a.default)(o).call(o,t,1),s(n,o),c.default(n.parentNode)},DeleteCol:function(e,t){for(var n=f(e),o=(0,r.default)(Array.prototype).apply(n.children),i=function(e){var n,i=[];for((0,l.default)(n=(0,u.default)(o[e].children)).call(n,(function(e){i.push(e)}));0!==o[e].children.length;)o[e].removeChild(o[e].children[0]);(0,a.default)(i).call(i,t,1);for(var r=0;r<i.length;r++)o[e].appendChild(i[r])},d=0;d<o.length;d++)i(d);return s(n,o),c.default(n.parentNode)},setTheHeader:function(e,t,n){for(var o=f(e),i=(0,r.default)(Array.prototype).apply(o.children),d=i[t].children,p=document.createElement("tr"),v=function(e){var t,o=document.createElement(n),i=d[e];(0,l.default)(t=(0,u.default)(i.childNodes)).call(t,(function(e){o.appendChild(e)})),p.appendChild(o)},h=0;h<d.length;h++)v(h);return(0,a.default)(i).call(i,t,1,p),s(o,i),c.default(o.parentNode)}}},function(e,t,n){var o=n(396);e.exports=o},function(e,t,n){n(50),n(397);var o=n(9);e.exports=o.Array.from},function(e,t,n){var o=n(5),i=n(398);o({target:"Array",stat:!0,forced:!n(115)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){var o=n(40),i=n(31),r=n(114),a=n(112),l=n(35),u=n(69),c=n(113);e.exports=function(e){var t,n,s,f,d,p,v=i(e),h="function"==typeof this?this:Array,A=arguments.length,m=A>1?arguments[1]:void 0,g=void 0!==m,y=c(v),w=0;if(g&&(m=o(m,A>2?arguments[2]:void 0,2)),null==y||h==Array&&a(y))for(n=new h(t=l(v.length));t>w;w++)p=g?m(v[w],w):v[w],u(n,w,p);else for(d=(f=y.call(v)).next,n=new h;!(s=d.call(f)).done;w++)p=g?r(f,m,[s.value,w],!0):s.value,u(n,w,p);return n.length=w,n}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(138));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),u=function(){function e(e){this.editor=e}return e.prototype.getRowNode=function(e){var t,n=l.default(e).elems[0];return n.parentNode?n=null===(t=l.default(n).parentUntil("TR",n))||void 0===t?void 0:t.elems[0]:n},e.prototype.getCurrentRowIndex=function(e,t){var n,o=0,i=e.children[0];return"COLGROUP"===i.nodeName&&(i=e.children[e.children.length-1]),(0,r.default)(n=(0,a.default)(i.children)).call(n,(function(e,n){e===t&&(o=n)})),o},e.prototype.getCurrentColIndex=function(e){var t,n,o=0,i="TD"===l.default(e).getNodeName()||"TH"===l.default(e).getNodeName()?e:null===(n=l.default(e).parentUntil("TD",e))||void 0===n?void 0:n.elems[0],u=l.default(i).parent();return(0,r.default)(t=(0,a.default)(u.elems[0].children)).call(t,(function(e,t){e===i&&(o=t)})),o},e.prototype.getTableHtml=function(e){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+l.default(e).html()+"</table>"},e}();t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var o=n(2).__importDefault(n(3));t.bindClickEvent=function(e){e.txt.eventHooks.tableClickEvents.push((function(t,n){if(n.detail>=3){var i=window.getSelection();if(i){var r=i.focusNode,a=i.anchorNode,l=o.default(null==a?void 0:a.parentElement);if(!t.isContain(o.default(r))){var u="TD"===l.elems[0].tagName?l:l.parentUntilEditor("td",e);if(u){var c=e.selection.getRange();null==c||c.setEnd(u.elems[0],u.elems[0].childNodes.length),e.selection.restoreSelection()}}}}}))},t.bindEventKeyboardEvent=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(t){e.selection.saveRange();var o=n.getSelectionContainerElem();if(o){var i=o.getNodeTop(e),r=i.length&&i.prev().length?i.prev():null;if(r&&"TABLE"===r.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode){var a=i.next();!!a.length&&function(e){if(!e.length)return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML}(i)&&(i.remove(),e.selection.setRangeToElem(a.elems[0])),t.preventDefault()}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var a=n(2),l=a.__importDefault(n(38)),u=a.__importDefault(n(3)),c=n(6),s=a.__importDefault(n(402)),f=a.__importDefault(n(139)),d=a.__importDefault(n(33)),p=a.__importDefault(n(403));t.formatCodeHtml=function(e,t){return t?(t=function e(t){var n,o=t.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!o||!o.length)return t;for(var i=(0,r.default)(n=c.deepClone(o)).call(n,(function(e){return(e=e.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")})),a=0;a<o.length;a++)t=t.replace(o[a],i[a]);return e(t)}(t),null===(o=(n=t).match(/<pre[\s|\S]+?\/pre>/g))||(0,r.default)(o).call(o,(function(e){n=n.replace(e,e.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))})),t=n,t=c.replaceSpecialSymbol(t)):t;var n,o};var v=function(e){function t(t){var n,o=u.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return n=e.call(this,o,t)||this,p.default(t),n}return a.__extends(t,e),t.prototype.insertLineCode=function(e){var t=this.editor,n=u.default("<code>"+e+"</code>");t.cmd.do("insertElem",n),t.selection.createRangeByElem(n,!1),t.selection.restoreSelection()},t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},t.prototype.createPanel=function(e,t){var n=s.default(this.editor,e,t);new d.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;f.default(e)?this.active():this.unActive()},t}(l.default);t.default=v},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3)),c=a.__importDefault(n(139)),s=n(7);t.default=function(e,t,n){var o,i=l.getRandom("input-iframe"),a=l.getRandom("select"),f=l.getRandom("btn-ok");function d(t,n){var o;c.default(e)&&function(){if(c.default(e)){var t=e.selection.getSelectionStartElem(),n=null==t?void 0:t.getNodeTop(e);n&&(e.selection.createRangeByElem(n),e.selection.restoreSelection())}}(),(null===(o=e.selection.getSelectionStartElem())||void 0===o?void 0:o.elems[0].innerHTML)&&e.cmd.do("insertHTML",s.EMPTY_P);var i=n.replace(/</g,"&lt;").replace(/>/g,"&gt;");e.highlight&&(i=e.highlight.highlightAuto(i).value),e.cmd.do("insertHTML",'<pre><code class="'+t+'">'+i+"</code></pre>");var r=e.selection.getSelectionStartElem(),a=null==r?void 0:r.getNodeTop(e);0===(null==a?void 0:a.getNextSibling().elems.length)&&u.default(s.EMPTY_P).insertAfter(a)}var p=function(t){return e.i18next.t(t)};return{width:500,height:0,tabs:[{title:p("menus.panelMenus.code.插入代码"),tpl:'<div>\n                        <select name="" id="'+a+'">\n                            '+(0,r.default)(o=e.config.languageType).call(o,(function(e){return"<option "+(n==e?"selected":"")+' value ="'+e+'">'+e+"</option>"}))+'\n                        </select>\n                        <textarea id="'+i+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+t.replace(/&quot;/g,'"')+'</textarea>\n                        <div class="w-e-button-container">\n                            <button type="button" id="'+f+'" class="right">'+(c.default(e)?p("修改"):p("插入"))+"</button>\n                        </div>\n                    </div>",events:[{selector:"#"+f,type:"click",fn:function(){var t=document.getElementById(i),n=u.default("#"+a).val(),o=t.value;if(o)return!c.default(e)&&(d(n,o),!0)}}]}]}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(404)),r=o.__importDefault(n(405));t.default=function(e){i.default(e),r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39));function a(e){var t;return{showCodeTooltip:function(n){var o,a,l=[{$elem:i.default("<span>"+(o="删除代码",void 0===a&&(a="menus.panelMenus.code."),e.i18next.t(a+o)+"</span>")),onClick:function(e,t){return t.remove(),!0}}];(t=new r.default(e,n,l)).create()},hideCodeTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=a(e),n=t.showCodeTooltip,o=t.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(n),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=n(7),r=o.__importDefault(n(3));t.default=function(e){var t=e.$textElem,n=e.selection,o=e.txt.eventHooks.keydownEvents;o.push((function(e){var o;if(40===e.keyCode){var a=n.getSelectionContainerElem(),l=null===(o=t.children())||void 0===o?void 0:o.last();if("XMP"===(null==a?void 0:a.elems[0].tagName)&&"PRE"===(null==l?void 0:l.elems[0].tagName)){var u=r.default(i.EMPTY_P);t.append(u)}}})),o.push((function(o){e.selection.saveRange();var a=n.getSelectionContainerElem();if(a){var l=a.getNodeTop(e),u=null==l?void 0:l.prev(),c=null==l?void 0:l.getNextSibling();if(u.length&&"PRE"===(null==u?void 0:u.getNodeName())&&0===c.length&&0===n.getCursorPos()&&8===o.keyCode){var s=r.default(i.EMPTY_P);t.append(s)}}}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(23)),r=o.__importDefault(n(3)),a=o.__importDefault(n(407)),l=n(6),u=n(7),c=function(e){function t(t){var n,o=r.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return n=e.call(this,o,t)||this,a.default(t),n}return o.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getRange(),n=e.selection.getSelectionContainerElem();if(null==n?void 0:n.length){var o=r.default(n.elems[0]),i=o.parentUntil("TABLE",n.elems[0]),a=o.children();"CODE"!==o.getNodeName()&&(i&&"TABLE"===r.default(i.elems[0]).getNodeName()||a&&0!==a.length&&"IMG"===r.default(a.elems[0]).getNodeName()&&!(null==t?void 0:t.collapsed)||this.createSplitLine())}},t.prototype.createSplitLine=function(){var e="<hr/>"+u.EMPTY_P;l.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd.do("insertHTML",e)},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(408));t.default=function(e){o.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39));t.default=function(e){var t=function(e){var t;return{showSplitLineTooltip:function(n){var o=[{$elem:i.default("<span>"+e.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(t=new r.default(e,n,o)).create()},hideSplitLineTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showSplitLineTooltip,o=t.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(n),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(23)),c=n(98),s=a.__importDefault(n(415)),f=a.__importDefault(n(140)),d=function(e){function t(t){var n,o=l.default('<div class="w-e-menu" data-title="待办事项">\n                    <i class="w-e-icon-checkbox-checked"></i>\n                </div>');return n=e.call(this,o,t)||this,s.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;c.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},t.prototype.tryChangeActive=function(){c.isAllTodo(this.editor)?this.active():this.unActive()},t.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,r.default)(t).call(t,(function(t){var n;if("P"===(null==t?void 0:t.getNodeName())){var o=f.default(t).getTodo(),i=null===(n=o.children())||void 0===n?void 0:n.getNode();o.insertAfter(t),e.selection.moveCursor(i),t.remove()}})),this.tryChangeActive()},t.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,r.default)(t).call(t,(function(t){var n,o,i,r=null===(o=null===(n=t.childNodes())||void 0===n?void 0:n.childNodes())||void 0===o?void 0:o.clone(!0),a=l.default("<p></p>");a.append(r),a.insertAfter(t),null===(i=a.childNodes())||void 0===i||i.get(0).remove(),e.selection.moveCursor(a.getNode()),t.remove()}))},t}(u.default);t.default=d},function(e,t,n){e.exports=n(411)},function(e,t,n){var o=n(412);e.exports=o},function(e,t,n){var o=n(413),i=Array.prototype;e.exports=function(e){var t=e.every;return e===i||e instanceof Array&&t===i.every?o:t}},function(e,t,n){n(414);var o=n(15);e.exports=o("Array").every},function(e,t,n){var o=n(5),i=n(32).every,r=n(67),a=n(22),l=r("every"),u=a("every");o({target:"Array",proto:!0,forced:!l||!u},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(98),c=a.__importDefault(n(140)),s=n(98),f=n(7);t.default=function(e){e.txt.eventHooks.enterDownEvents.push((function(t){var n,o;if(u.isAllTodo(e)){t.preventDefault();var i=e.selection,a=i.getSelectionRangeTopNodes()[0],d=null===(n=a.childNodes())||void 0===n?void 0:n.get(0),p=null===(o=window.getSelection())||void 0===o?void 0:o.anchorNode,v=i.getRange();if(!(null==v?void 0:v.collapsed)){var h=null==v?void 0:v.commonAncestorContainer.childNodes,A=null==v?void 0:v.startContainer,m=null==v?void 0:v.endContainer,g=null==v?void 0:v.startOffset,y=null==v?void 0:v.endOffset,w=0,x=0,_=[];null==h||(0,r.default)(h).call(h,(function(e,t){e.contains(A)&&(w=t),e.contains(m)&&(x=t)})),x-w>1&&(null==h||(0,r.default)(h).call(h,(function(e,t){t<=w||t>=x||_.push(e)})),(0,r.default)(_).call(_,(function(e){e.remove()}))),s.dealTextNode(A,g),s.dealTextNode(m,y,!1),e.selection.moveCursor(m,0)}if(""===a.text()){var E=l.default(f.EMPTY_P);return E.insertAfter(a),i.moveCursor(E.getNode()),void a.remove()}var b=i.getCursorPos(),C=u.getCursorNextNode(null==d?void 0:d.getNode(),p,b),S=c.default(l.default(C)),M=S.getInputContainer(),D=M.parent().getNode(),k=S.getTodo(),N=M.getNode().nextSibling;""===(null==d?void 0:d.text())&&(null==d||d.append(l.default("<br>"))),k.insertAfter(a),N&&""!==(null==N?void 0:N.textContent)?i.moveCursor(D):("BR"!==(null==N?void 0:N.nodeName)&&l.default("<br>").insertAfter(M),i.moveCursor(D,1))}})),e.txt.eventHooks.deleteUpEvents.push((function(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&s.isTodo(t)&&""===t.text()&&(l.default(f.EMPTY_P).insertAfter(t),t.remove())})),e.txt.eventHooks.deleteDownEvents.push((function(t){var n,o;if(u.isAllTodo(e)){var i,a=e.selection,c=a.getSelectionRangeTopNodes()[0],s=null===(n=c.childNodes())||void 0===n?void 0:n.getNode(),d=l.default("<p></p>"),p=d.getNode(),v=null===(o=window.getSelection())||void 0===o?void 0:o.anchorNode,h=a.getCursorPos(),A=v.previousSibling;if(""===c.text()){t.preventDefault();var m=l.default(f.EMPTY_P);return m.insertAfter(c),c.remove(),void a.moveCursor(m.getNode(),0)}"SPAN"===(null==A?void 0:A.nodeName)&&"INPUT"===A.childNodes[0].nodeName&&0===h&&(t.preventDefault(),null==s||(0,r.default)(i=s.childNodes).call(i,(function(e,t){0!==t&&p.appendChild(e.cloneNode(!0))})),d.insertAfter(c),c.remove())}})),e.txt.eventHooks.clickEvents.push((function(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var o=n(2),i=o.__importDefault(n(3)),r=n(6),a=n(7),l=o.__importDefault(n(130)),u="1px solid #c9d8db",c="#FFF",s="1px solid #EEE";t.default=function(e){var t,n,o,f=e.toolbarSelector,d=i.default(f),p=e.textSelector,v=e.config.height,h=e.i18next,A=i.default("<div></div>"),m=i.default("<div></div>"),g=null;null==p?(n=d.children(),d.append(A).append(m),A.css("background-color",c).css("border",u).css("border-bottom",s),m.css("border",u).css("border-top","none").css("height",v+"px")):(d.append(A),g=i.default(p).children(),i.default(p).append(m),n=m.children()),(t=i.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var y=e.config.placeholder;(o=y!==l.default.placeholder?i.default("<div>"+y+"</div>"):i.default("<div>"+h.t(y)+"</div>")).addClass("placeholder"),n&&n.length?(t.append(n),o.hide()):t.append(i.default(a.EMPTY_P)),g&&g.length&&(t.append(g),o.hide()),m.append(t),m.append(o),A.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),m.addClass("w-e-text-container"),m.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var w=r.getRandom("toolbar-elem");A.attr("id",w);var x=r.getRandom("text-elem");t.attr("id",x);var _=m.getBoundingClientRect().height;_!==t.getBoundingClientRect().height&&t.css("min-height",_+"px"),e.$toolbarElem=A,e.$textContainerElem=m,e.$textElem=t,e.toolbarElemId=w,e.textElemId=x},t.selectorValidator=function(e){var t="data-we-id",n=/^wangEditor-\d+$/,o=e.textSelector,r=e.toolbarSelector,a={bar:i.default("<div></div>"),text:i.default("<div></div>")};if(null==r)throw new Error("错误：初始化编辑器时候未传入任何参数，请查阅文档");if(a.bar=i.default(r),!a.bar.elems.length)throw new Error("无效的节点选择器："+r);if(n.test(a.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例，无法重复创建编辑器");if(o){if(a.text=i.default(o),!a.text.elems.length)throw new Error("无效的节点选择器："+o);if(n.test(a.text.attr(t)))throw new Error("初始化节点已存在编辑器实例，无法重复创建编辑器")}a.bar.attr(t,e.id),a.text.attr(t,e.id),e.beforeDestroy((function(){a.bar.removeAttr(t),a.text.removeAttr(t)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),i=n(7);t.default=function e(t,n){var r=t.$textElem,a=r.children();if(!a||!a.length)return r.append(o.default(i.EMPTY_P)),void e(t);var l=a.last();if(n){var u=l.html().toLowerCase(),c=l.getNodeName();if("<br>"!==u&&"<br/>"!==u||"P"!==c)return r.append(o.default(i.EMPTY_P)),void e(t)}t.selection.createRangeByElem(l,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){!function(e){e.txt.eventHooks.changeEvents.push((function(){var t=e.config.onchange;if(t){var n=e.txt.html()||"";e.isFocus=!0,t(n)}e.txt.togglePlaceholder()}))}(e),function(e){function t(t){var n=t.target,o=a.default(n),i=e.$textElem,u=e.$toolbarElem,c=i.isContain(o),s=u.isContain(o),f=u.elems[0]==t.target;if(c)e.isFocus||l(e),e.isFocus=!0;else{if(s&&!f||!e.isFocus)return;!function(e){var t,n=e.config,o=n.onblur,i=e.txt.html()||"";(0,r.default)(t=e.txt.eventHooks.onBlurEvents).call(t,(function(e){return e()})),o(i)}(e),e.isFocus=!1}}e.isFocus=!1,document.activeElement===e.$textElem.elems[0]&&e.config.focus&&(l(e),e.isFocus=!0),a.default(document).on("click",t),e.beforeDestroy((function(){a.default(document).off("click",t)}))}(e),function(e){e.$textElem.on("compositionstart",(function(){e.isComposing=!0,e.txt.togglePlaceholder()})).on("compositionend",(function(){e.isComposing=!1,e.txt.togglePlaceholder()}))}(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.config,n=t.lang,o=t.languages;if(null==e.i18next)e.i18next={t:function(e){var t=e.split(".");return t[t.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:o})}catch(i){throw new Error("i18next:"+i)}}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var a=n(2).__importDefault(n(3));n(421);var l="w-e-icon-fullscreen",u="w-e-icon-fullscreen_exit",c="w-e-full-screen-editor";t.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,o=e.$toolbarElem,i=(0,r.default)(o).call(o,"i."+l),s=e.config;i.removeClass(l),i.addClass(u),t.addClass(c),t.css("z-index",s.zIndexFullScreen);var f=o.getBoundingClientRect();n.css("height","calc(100% - "+f.height+"px)")},t.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,o=e.$toolbarElem,i=(0,r.default)(o).call(o,"i."+u),s=e.config;i.removeClass(u),i.addClass(l),t.removeClass(c),t.css("z-index","auto"),n.css("height",s.height+"px")},t.default=function(e){if(!e.textSelector&&e.config.showFullScreen){var n=e.$toolbarElem,o=a.default('<div class="w-e-menu" data-title="全屏">\n            <i class="'+l+'"></i>\n        </div>');o.on("click",(function(n){var i;(0,r.default)(i=a.default(n.currentTarget)).call(i,"i").hasClass(l)?(o.attr("data-title","取消全屏"),t.setFullScreen(e)):(o.attr("data-title","全屏"),t.setUnFullScreen(e))})),n.append(o)}}},function(e,t,n){var o=n(20),i=n(422);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-full-screen-editor {\n  position: fixed;\n  width: 100%!important;\n  height: 100%!important;\n  left: 0;\n  top: 0;\n}\n",""]),e.exports=t},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o=e.isEnable?e.$textElem:(0,r.default)(n=e.$textContainerElem).call(n,".w-e-content-mantle"),i=(0,r.default)(o).call(o,"[id='"+t+"']").getOffsetData().top;o.scrollTop(i)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(129)),i={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},r=function(){function e(){this.tier=i,this.baseZIndex=o.default.zIndex}return e.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},e.prototype.init=function(e){this.baseZIndex==o.default.zIndex&&(this.baseZIndex=e.config.zIndex)},e}();t.default=r},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(70)),a=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(426)),c=n(6),s=n(7),f=function(e){function t(t){var n=e.call(this,(function(e,o){var i;if(e=function(e,t){return(0,r.default)(e).call(e,(function(e){var n=e.type,o=e.target,i=e.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==i||o!=t)}))}(e,o.target),(i=n.data).push.apply(i,e),t.isCompatibleMode)n.asyncSave();else if(!t.isComposing)return n.asyncSave()}))||this;return n.editor=t,n.data=[],n.asyncSave=s.EMPTY_FN,n}return l.__extends(t,e),t.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},t.prototype.emit=function(){var e;(0,a.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,(function(e){return e()}))},t.prototype.observe=function(){var t=this;e.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=c.debounce((function(){t.save()}),n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){t.asyncSave()}))},t}(u.default);t.default=f},function(e,t,n){var o=n(0)(n(1));(0,o.default)(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}return(0,o.default)(e.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},e.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定，请您先绑定有效的 Node 节点")},e.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},e}();t.default=i},function(e,t,n){var o=n(0)(n(1));(0,o.default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(428)),a=i.__importDefault(n(435)),l=i.__importDefault(n(436)),u=function(){function e(e){this.editor=e,this.content=new r.default(e),this.scroll=new a.default(e),this.range=new l.default(e)}return(0,o.default)(e.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),e.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},e.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},e.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e}();t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(429)),r=o.__importDefault(n(433)),a=function(){function e(e){this.editor=e}return e.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new r.default(this.editor):this.cache=new i.default(this.editor),this.cache.observe()},e.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},e.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},e.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},e}();t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(99)),r=o.__importDefault(n(431)),a=n(432),l=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n}return o.__extends(t,e),t.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.compile=function(e){return this.save(r.default(e)),this},t.prototype.revoke=function(){return e.prototype.revoke.call(this,(function(e){a.revoke(e)}))},t.prototype.restore=function(){return e.prototype.restore.call(this,(function(e){a.restore(e)}))},t}(i.default);t.default=l},function(e,t,n){var o=n(0)(n(1));(0,o.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0;var i=function(){function e(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}return e.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,o.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},e.prototype.outstack=function(){return this.data.shift()},e.prototype.clear=function(){return this.data.length=0,this},e}();t.CeilStack=i},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(27));(0,i.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var l=n(6);function u(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function c(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function s(e){var t={};return e.addedNodes.length&&(t.add=l.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=l.toArray(e.removedNodes)),t}function f(e){return e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target}}t.compileType=u,t.compileValue=c,t.complieNodes=s,t.compliePosition=f;var d=["UL","OL","H1","H2","H3","H4","H5","H6"];function p(e,t){for(var n=0,o=t.length-1;o>0&&e.contains(t[o]);o--)n++;return n}t.default=function(e){var t=[],n=!1,o=[];return(0,r.default)(e).call(e,(function(e,i){var r={type:u(e.type),target:e.target,attr:e.attributeName||"",value:c(e)||"",oldValue:e.oldValue||"",nodes:s(e),position:f(e)};if(t.push(r),l.UA.isFirefox){if(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType){var v=e.addedNodes[0],h={type:"node",target:v,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:v}};-1!=(0,a.default)(d).call(d,v.nodeName)?(h.nodes.add=l.toArray(v.childNodes),t.push(h)):3==n.nodeType?(p(v,o)&&(h.nodes.add=l.toArray(v.childNodes)),t.push(h)):-1==(0,a.default)(d).call(d,e.target.nodeName)&&p(v,o)&&(h.nodes.add=l.toArray(v.childNodes),t.push(h))}"node"==r.type&&1==e.removedNodes.length?(n=e.removedNodes[0],o.push(n)):(n=!1,o.length=0)}})),t}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(94));function l(e,t){var n=e.position.target;switch(e.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,r.default)(t).call(t,(function(t){e.target.insertBefore(t,n)}))):(0,r.default)(t).call(t,(function(t){e.target.appendChild(t)}));break;case"after":(0,r.default)(t).call(t,(function(t){e.target.insertBefore(t,n)}));break;default:(0,r.default)(t).call(t,(function(e){n.appendChild(e)}))}}(0,i.default)(t,"__esModule",{value:!0}),t.restore=t.revoke=void 0;var u={node:function(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var o=n[t],i=o[0],u=o[1];"add"===i?(0,r.default)(u).call(u,(function(t){e.target.removeChild(t)})):l(e,u)}},text:function(e){e.target.textContent=e.oldValue},attr:function(e){var t=e.target;null==e.oldValue?t.removeAttribute(e.attr):t.setAttribute(e.attr,e.oldValue)}};t.revoke=function(e){for(var t=e.length-1;t>-1;t--){var n=e[t];u[n.type](n)}};var c={node:function(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var o=n[t],i=o[0],u=o[1];"add"===i?l(e,u):(0,r.default)(u).call(u,(function(e){e.parentNode.removeChild(e)}))}},text:function(e){e.target.textContent=e.value},attr:function(e){e.target.setAttribute(e.attr,e.value)}};t.restore=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];c[o.type](o)}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(434),i=function(){function e(e){this.editor=e,this.data=new o.TailChain}return e.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},e.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},e.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},e.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},e}();t.default=i},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(91));(0,i.default)(t,"__esModule",{value:!0}),t.TailChain=void 0;var a=function(){function e(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return e.prototype.resetMax=function(e){(e=Math.abs(e))&&(this.max=e)},(0,i.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.insertLast=function(e){var t;for(this.isRe&&((0,r.default)(t=this.data).call(t,this.point+1),this.isRe=!1),this.data.push(e);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},e.prototype.current=function(){return this.data[this.point]},e.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},e.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},e}();t.TailChain=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.last=0,n.target=t.$textElem.elems[0],n}return o.__extends(t,e),t.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",(function(){e.last=e.target.scrollTop})),this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.save=function(){return e.prototype.save.call(this,[this.last,this.target.scrollTop]),this},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.target.scrollTop=e[0]}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.target.scrollTop=e[1]}))},t}(o.__importDefault(n(99)).default);t.default=i},function(e,t,n){var o=n(0)(n(1));(0,o.default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(99)),a=i.__importDefault(n(3)),l=n(6);function u(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var c=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.lastRange=u(document.createRange()),n.root=t.$textElem.elems[0],n.updateLastRange=l.debounce((function(){n.lastRange=u(n.rangeHandle)}),t.config.onchangeTimeout),n}return i.__extends(t,e),(0,o.default)(t.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),t.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;(e.root===t.commonAncestorContainer||e.root.contains(t.commonAncestorContainer))&&(e.editor.isComposing||e.updateLastRange())}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a.default(document).on("selectionchange",t),this.editor.beforeDestroy((function(){a.default(document).off("selectionchange",t)})),e.editor.$textElem.on("keydown",(function(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()}))},t.prototype.save=function(){var t=u(this.rangeHandle);return e.prototype.save.call(this,[this.lastRange,t]),this.lastRange=t,this},t.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(n){return!1}return!1},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.set(e[0])}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.set(e[1])}))},t}(r.default);t.default=c},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));n(438),t.default=function(e){var t,n,o=!1;return e.txt.eventHooks.changeEvents.push((function(){o&&(0,r.default)(t).call(t,".w-e-content-preview").html(e.$textElem.html())})),{disable:function(){if(!o){e.$textElem.hide();var i=e.zIndex.get("textContainer"),r=e.txt.html();t=a.default('<div class="w-e-content-mantle" style="z-index:'+i+'">\n                <div class="w-e-content-preview w-e-text">'+r+"</div>\n            </div>"),e.$textContainerElem.append(t);var l=e.zIndex.get("menu");n=a.default('<div class="w-e-menue-mantle" style="z-index:'+l+'"></div>'),e.$toolbarElem.append(n),o=!0,e.isEnable=!1}},enable:function(){o&&(t.remove(),n.remove(),e.$textElem.show(),o=!1,e.isEnable=!0)}}}},function(e,t,n){var o=n(20),i=n(439);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var r={insert:"head",singleton:!1};o(i,r),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\n  width: 100%;\n  height: 100%;\n  overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n  width: 100%;\n  min-height: 100%;\n  padding: 0 10px;\n  line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n  cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n  box-shadow: none;\n}\n.w-e-menue-mantle {\n  position: absolute;\n  height: 100%;\n  width: 100%;\n  top: 0;\n  left: 0;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=function(){function e(e){var t=this;this.editor=e;var n=function(){document.activeElement===e.$textElem.elems[0]&&t.emit()};window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy((function(){window.document.removeEventListener("selectionchange",n)}))}return e.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;if(t){var n=this.editor.selection;n.saveRange(),n.isSelectionEmpty()||t({text:n.getSelectionText(),html:null===(e=n.getSelectionContainerElem())||void 0===e?void 0:e.elems[0].innerHTML,selection:n})}},e}();t.default=o},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(128)),a=o(n(94)),l=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2).__importDefault(n(87)),c=n(6);t.registerPlugin=function(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e],n[e]=t},t.default=function(e){var t=(0,r.default)({},c.deepClone(u.default.globalPluginsFunctionList),c.deepClone(e.pluginsFunctionList)),n=(0,a.default)(t);(0,l.default)(n).call(n,(function(t){t[0];var n=t[1],o=n.intention,i=n.config;o(e,i)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}]).default)),l={class:"hello",ref:"volWangEditor"};const u=t({props:{url:{type:String,default:""},upload:{type:Function,default:null},uploadCount:{type:Number,default:3},modelValue:"",width:{type:String,default:"100%"},height:{type:Number,default:250},minWidth:{type:Number,default:650},minHeight:{type:Number,default:100}},name:"wang-editor",data:()=>({lastHtml:"",change:!1,editor:null,init:!1}),watch:{modelValue(e,t){(e!==t&&""!==this.lastHtml&&t===this.lastHtml&&this.editor.txt.html()===this.lastHtml||""===this.editor.txt.html())&&this.editor.txt.html(e),this.lastHtml=e}},destroyed(){this.editor=null},mounted(){this.editor=null;let e=new a(this.$refs.volWangEditor);this.editor=e;let t=this;e.config.zIndex=500,e.config.height=this.height,e.config.onchange=e=>{this.init||""!==this.lastHtml||(this.lastHtml=e,this.init=!0),this.$emit("update:modelValue",e)},e.config.uploadImgServer=this.http.ipAddress+this.url,e.config.customUploadImg=function(e,n){if(t.upload)e.map((e=>{t.upload(e,n)}));else{let o=new FormData,i=[];if(e.forEach((function(e){o.append("fileInput",e,e.name),i.push(e.name)})),!t.url)return void t.$message.error("未配置url");t.http.post(t.url,o,!0).then((e=>{if(!e.status)return t.$message.error(e.message);i.forEach((o=>{n(t.http.ipAddress+e.data+o)}))}))}},e.create(),e.txt.html(this.modelValue)}},[["render",function(e,t,i,r,a,u){return n(),o("div",l,null,512)}],["__scopeId","data-v-2af5b22f"]]);export{u as default};
