new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-cd762f2e.da4c6f38.js
2025-03-13 09:24:48 +08:00

16 lines
262 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cd762f2e"],{"0095":function(e,t,n){n("b09a")},"03ce":function(e,t,n){n("9346")},1812:function(e,t,n){n("c741")},"6fad":function(e,t,n){var o;window,o=function(){return t=[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 d})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return A})),n.d(t,"__spreadArrays",(function(){return v})),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 k})),n.d(t,"__classPrivateFieldSet",(function(){return M}));
/*! *****************************************************************************
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}).apply(this,arguments)};function a(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);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;0<=l;l--)(i=e[l])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&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(e){r(e)}}function l(e){try{u(o.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((o=o.apply(e,t||[])).next())}))}function d(e,t){var n,o,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var u=[a,l];if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,(u=i?[2&u[0],i.value]:u)[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(!(i=0<(i=r.trys).length&&i[i.length-1])&&(6===u[0]||2===u[0])){r=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3]))r.label=u[1];else if(6===u[0]&&r.label<i[1])r.label=i[1],i=u;else{if(!(i&&r.label<i[2])){i[2]&&r.ops.pop(),r.trys.pop();continue}r.label=i[2],r.ops.push(u)}}u=t.call(e,r)}catch(l){u=[6,l],o=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var f=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){e[o=void 0===o?n:o]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function h(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{value:(e=e&&o>=e.length?void 0:e)&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(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||0<t--)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}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(m(arguments[t]));return e}function v(){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){var o,i,r;if(Symbol.asyncIterator)return o=n.apply(e,t||[]),i=[],r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;throw new TypeError("Symbol.asyncIterator is not defined.");function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,o){1<i.push([e,t,n,o])||l(e,t)}))})}function l(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):s(i[0][2],n)}catch(e){s(i[0][3],e)}var n}function u(e){l("next",e)}function c(e){l("throw",e)}function s(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function x(e){var t,n={};return o("next"),o("throw",(function(e){throw e})),o("return"),n[Symbol.iterator]=function(){return this},n;function o(o,i){n[o]=e[o]?function(n){return(t=!t)?{value:y(e[o](n)),done:"return"===o}:i?i(n):n}:i}}function _(e){var t,n;if(Symbol.asyncIterator)return(t=e[Symbol.asyncIterator])?t.call(e):(e=h(e),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);throw new TypeError("Symbol.asyncIterator is not defined.");function o(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){var r,a;n=e[t](n),r=o,o=i,a=n.done,i=n.value,Promise.resolve(i).then((function(e){r({value:e,done:a})}),o)}))}}}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)&&f(t,e,n);return b(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(t.has(e))return t.get(e);throw new TypeError("attempted to get private field on non-instance")}function M(e,t,n){if(t.has(e))return t.set(e,n),n;throw new TypeError("attempted to set private field on non-instance")}},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)),d=o(n(91)),f=o(n(70)),p=o(n(28)),h=o(n(57)),m=((0,i.default)(t,"__esModule",{value:!0}),t.DomElement=void 0,n(2)),A=n(6),v=[];function g(e){var t=[],n=[];t=(0,r.default)(e)?e:e.split(";");return(0,a.default)(t).call(t,(function(e){e=(0,l.default)(e=e.split(":")).call(e,(function(e){return(0,u.default)(e).call(e)})),2===e.length&&n.push(e[0]+":"+e[1])})),n}(0,i.default)(w.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),w.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},w.prototype.clone=function(e){void 0===e&&(e=!1);var t,n=[];return(0,a.default)(t=this.elems).call(t,(function(t){n.push(t.cloneNode(!!e))})),x(n)},w.prototype.get=function(e){var t=this.length;return t<=(e=void 0===e?0:e)&&(e%=t),x(this.elems[e])},w.prototype.first=function(){return this.get(0)},w.prototype.last=function(){var e=this.length;return this.get(e-1)},w.prototype.on=function(e,t,n){return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(this).call(this,(function(o){var i;t?(o.addEventListener(e,i=function(e){var o=e.target;o.matches(t)&&n.call(o,e)}),v.push({elem:o,selector:t,fn:n,agentFn:i})):o.addEventListener(e,n)}))):this},w.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,r=-1,a=0;a<v.length;a++){var l=v[a];if(l.selector===t&&l.fn===n&&l.elem===o){r=a;break}}-1!==r&&(i=(0,d.default)(v).call(v,r,1)[0].agentFn,o.removeEventListener(e,i))}else o.removeEventListener(e,n)}))):this},w.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)}))},w.prototype.removeAttr=function(e){(0,a.default)(this).call(this,(function(t){t.removeAttribute(e)}))},w.prototype.addClass=function(e){return e?(0,a.default)(this).call(this,(function(t){var n;t.className?(n=t.className.split(/\s/),n=(0,f.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(" ")):t.className=e})):this},w.prototype.removeClass=function(e){return e?(0,a.default)(this).call(this,(function(t){var n;t.className&&(n=t.className.split(/\s/),n=(0,f.default)(n).call(n,(function(t){return!(!(t=(0,u.default)(t).call(t))||t===e)})),t.className=n.join(" "))})):this},w.prototype.hasClass=function(e){var t;return!!e&&!!(t=this.elems[0]).className&&(t=t.className.split(/\s/),(0,p.default)(t).call(t,e))},w.prototype.css=function(e,t){var n=""==t?"":e+":"+t+";";return(0,a.default)(this).call(this,(function(t){var o=(0,u.default)(o=t.getAttribute("style")||"").call(o);o?(o=g(o),o=(0,l.default)(o).call(o,(function(t){return 0===(0,s.default)(t).call(t,e)?n:t})),""!=n&&(0,s.default)(o).call(o,n)<0&&o.push(n),""==n&&(o=g(o)),t.setAttribute("style",o.join("; "))):t.setAttribute("style",n)}))},w.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},w.prototype.show=function(){return this.css("display","block")},w.prototype.hide=function(){return this.css("display","none")},w.prototype.children=function(){var e=this.elems[0];return e?x(e.children):null},w.prototype.childNodes=function(){var e=this.elems[0];return e?x(e.childNodes):null},w.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},w.prototype.append=function(e){return(0,a.default)(this).call(this,(function(t){(0,a.default)(e).call(e,(function(e){t.appendChild(e)}))}))},w.prototype.remove=function(){return(0,a.default)(this).call(this,(function(e){var t;e.remove?e.remove():(t=e.parentElement)&&t.removeChild(e)}))},w.prototype.isContain=function(e){var t=this.elems[0];e=e.elems[0];return t.contains(e)},w.prototype.getNodeName=function(){return this.elems[0].nodeName},w.prototype.getNode=function(e){return this.elems[e=void 0===e?0:e]},w.prototype.find=function(e){return x(this.elems[0].querySelectorAll(e))},w.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""}))},w.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},w.prototype.val=function(){var e=this.elems[0];return(0,u.default)(e=e.value).call(e)},w.prototype.focus=function(){return(0,a.default)(this).call(this,(function(e){e.focus()}))},w.prototype.prev=function(){return x(this.elems[0].previousElementSibling)},w.prototype.next=function(){return x(this.elems[0].nextElementSibling)},w.prototype.getNextSibling=function(){return x(this.elems[0].nextSibling)},w.prototype.parent=function(){return x(this.elems[0].parentElement)},w.prototype.parentUntil=function(e,t){t=t||this.elems[0];return"BODY"===t.nodeName||null===(t=t.parentElement)?null:t.matches(e)?x(t):this.parentUntil(e,t)},w.prototype.parentUntilEditor=function(e,t,n){n=n||this.elems[0];return x(n).equal(t.$textContainerElem)||x(n).equal(t.$toolbarElem)||null===(n=n.parentElement)?null:n.matches(e)?x(n):this.parentUntilEditor(e,t,n)},w.prototype.equal=function(e){return e instanceof w?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e},w.prototype.insertBefore=function(e){var t=x(e).elems[0];return t?(0,a.default)(this).call(this,(function(e){var n=t.parentNode;null!=n&&n.insertBefore(e,t)})):this},w.prototype.insertAfter=function(e){var t=x(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},w.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},w.prototype.getNodeTop=function(e){var t;return this.length<1||(t=this.parent(),e.$textElem.equal(this))||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},w.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},w.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})};var y=w;function w(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,e){if(e instanceof w)return e;var t,n=[],o=e instanceof Node?e.nodeType:-1,i=(this.selector=e,1===o||9===o?n=[e]:(o=e)&&(o instanceof HTMLCollection||o instanceof NodeList)?n=A.toArray(e):e instanceof Array?n=e:"string"==typeof e&&(e=(0,u.default)(o=e.replace("/\n/mg","")).call(o),n=0===(0,s.default)(e).call(e,"<")?(o=e,(t=document.createElement("div")).innerHTML=o,A.toArray(t.children)):(o=e,o=document.querySelectorAll(e),A.toArray(o))),n.length);if(!i)return this;for(var r=0;r<i;r++)this.elems.push(n[r]);this.length=i}}function x(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,h.default)(y).apply(y,m.__spreadArrays([void 0],e)))}t.DomElement=y,t.default=x},function(e,t,n){e.exports=n(180)},function(e,t,n){function o(e){function t(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}var i=n(8),r=n(71).f,a=n(101),l=n(9),u=n(40),c=n(19),s=n(16);e.exports=function(e,t){var n,d,f,p,h,m=e.target,A=e.global,v=e.stat,g=e.proto,y=A?i:v?i[m]:(i[m]||{}).prototype,w=A?l:l[m]||(l[m]={}),x=w.prototype;for(n in t)p=!a(A?n:m+(v?".":"#")+n,e.forced)&&y&&s(y,n),f=w[n],p&&(h=e.noTargetGet?(h=r(y,n))&&h.value:y[n]),d=p&&h?h:t[n],p&&typeof f==typeof d||(p=e.bind&&p?u(d,i):e.wrap&&p?o(d):g&&"function"==typeof d?u(Function.call,d):d,(e.sham||d&&d.sham||f&&f.sham)&&c(p,"sham",!0),w[n]=p,g&&(s(l,f=m+"Prototype")||c(l,f,{}),l[f][n]=d,e.real)&&x&&!x[n]&&c(x,n,d))}},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)),d=((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,n(2));f.prototype.isIE=function(){return"ActiveXObject"in window},f.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},o=f;function f(){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))}t.UA=new o,t.getRandom=function(e){return(e=void 0===e?"":e)+(0,l.default)(e=Math.random().toString()).call(e,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){for(var n,o=e.length||0,i=0;i<o&&(n=e[i],!1!==t.call(e,n,i));i++);},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,d.__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,d.__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,o;for(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){return null==(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?null:"rgb("+(e=(0,s.default)(e).call(e,(function(e){return(0,a.default)(e,16)})))[1]+", "+e[2]+", "+e[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){function n(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=n(106),i("wks")),c=o.Symbol,s=n?c:c&&c.withoutSetter||a;e.exports=function(e){return r(u,e)||(l&&r(c,e)?u[e]=c[e]:u[e]=s("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){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){n=n(11),e.exports=!n((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(e){}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,i,r=function(){return o=void 0===o?Boolean(window&&document&&document.all&&!window.atob):o},a=(i={},function(e){if(void 0===i[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}i[e]=t}return i[e]}),l=[];function u(e){for(var t=-1,n=0;n<l.length;n++)if(l[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],i=0;i<e.length;i++){var r=e[i],a=t.base?r[0]+t.base:r[0],c=n[a]||0,d="".concat(a," ").concat(c);a=(n[a]=c+1,u(d)),c={css:r[1],media:r[2],sourceMap:r[3]};-1!==a?(l[a].references++,l[a].updater(c)):l.push({identifier:d,updater:((e,t)=>{var n,o,i,r;return i=t.singleton?(r=m++,n=h=h||s(t),o=p.bind(null,n,r,!1),p.bind(null,n,r,!0)):(n=s(t),o=function(e,t,n){var o=n.css,i=n.media;n=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,n,t),function(){var e=n;null!==e.parentNode&&e.parentNode.removeChild(e)}),o(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||o(e=t):i()}})(c,t),references:1}),o.push(d)}return o}function s(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce&&(i=n.nc)&&(o.nonce=i),Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}d=[];var d,f=function(e,t){return d[e]=t,d.filter(Boolean).join("\n")};function p(e,t,n,o){n=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;e.styleSheet?e.styleSheet.cssText=f(t,n):(o=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(o,n[t]):e.appendChild(o))}var h=null,m=0;e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(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=u(n[o]);l[i].references--}e=c(e,t);for(var r=0;r<n.length;r++){var a=u(n[r]);0===l[a].references&&(l[a].updater(),l.splice(a,1))}n=e}}}},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=((e,t)=>{var n=e[1]||"",o=e[3];return o?(t&&"function"==typeof btoa?(e=(e=>(e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e),"/*# ".concat(e," */")))(o),t=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")})),[n].concat(t).concat([e])):[n]).join("\n"):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){function o(e){throw e}var i=n(14),r=n(11),a=n(16),l=Object.defineProperty,u={};e.exports=function(e,t){var n,c,s,d;return a(u,e)?u[e]:(n=[][e],c=!!a(t=t||{},"ACCESSORS")&&t.ACCESSORS,s=a(t,0)?t[0]:o,d=a(t,1)?t[1]:void 0,u[e]=!!n&&!r((function(){if(c&&!i)return!0;var e={length:-1};c?l(e,1,{enumerable:!0,get:o}):e[1]=1,n.call(e,s,d)})))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2);n=i.__importDefault(n(95)),o=n.default,i.__extends(r,o),n=r;function r(e,t){return o.call(this,e,t)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=i(n(46)),u=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),c=(r=i.__importDefault(n(95)),i.__importDefault(n(134)));o=r.default,i.__extends(s,o),n=s;function s(e,t,n){var i,r=o.call(this,e,t)||this,s=(n.title=t.i18next.t("menus.dropListMenu."+n.title),"zh-CN"===t.config.lang?"":"w-e-drop-list-tl"),d=(s&&"list"===n.type&&(0,a.default)(i=n.list).call(i,(function(e){e=e.$elem;var t=u.default(e.children());0<t.length&&(t=null==t?void 0:t.getNodeName())&&"I"===t&&e.addClass(s)})),new c.default(r,n));return r.dropList=d,e.on("click",(function(){var n;null!=t.selection.getRange()&&(e.css("z-index",t.zIndex.get("menu")),(0,a.default)(n=t.txt.eventHooks.dropListMenuHoverEvents).call(n,(function(e){return e()})),d.show())})).on("mouseleave",(function(){e.css("z-index","auto"),d.hideTimeoutId=(0,l.default)((function(){d.hide()}))})),r}t.default=n},function(e,t,n){var o=n(13);e.exports=function(e){if(o(e))return e;throw TypeError(String(e)+" is not an object")}},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){function o(e){var t=1==e,n=2==e,o=3==e,s=4==e,d=6==e,f=5==e||d;return function(p,h,m,A){for(var v,g,y=a(p),w=r(y),x=i(h,m,3),_=l(w.length),E=0,b=(h=A||u,t?h(p,_):n?h(p,0):void 0);E<_;E++)if((f||E in w)&&(g=x(v=w[E],E,y),e))if(t)b[E]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:c.call(b,v)}else if(s)return!1;return d?-1:o||s?s:b}}var i=n(40),r=n(72),a=n(31),l=n(35),u=n(88),c=[].push;e.exports={forEach:o(0),map:o(1),filter:o(2),some:o(3),every:o(4),find:o(5),findIndex:o(6)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(29)),l=(o=o(n(132)),(0,i.default)(t,"__esModule",{value:!0}),n(2)),u=l.__importDefault(n(3)),c=n(7);s.prototype.create=function(){var e,t,n,o,i,d,f,p,h,m,A=this,v=this.menu;s.createdMenus.has(v)||(e=this.conf,t=this.$container,d=e.width||300,m=v.editor.$toolbarElem.getBoundingClientRect(),n=v.$elem.getBoundingClientRect(),f=m.height+m.top-n.top,m=(m.width-d)/2+m.left-n.left,300<Math.abs(m)&&(m=n.left<document.documentElement.clientWidth/2?-n.width/2:-d+n.width/2),t.css("width",d+"px").css("margin-top",f+"px").css("margin-left",m+"px").css("z-index",v.editor.zIndex.get("panel")),n=u.default('<i class="w-e-icon-close w-e-panel-close"></i>'),t.append(n),n.on("click",(function(){A.remove()})),o=u.default('<ul class="w-e-panel-tab-title"></ul>'),i=u.default('<div class="w-e-panel-tab-content"></div>'),t.append(o).append(i),(d=e.height)&&i.css("height",d+"px").css("overflow-y","auto"),f=e.tabs||[],p=[],h=[],(0,r.default)(f).call(f,(function(e,t){var n,a,l;e&&(n=e.title||"",e=e.tpl||"",a=u.default('<li class="w-e-item">'+n+"</li>"),o.append(a),l=u.default(e),i.append(l),p.push(a),h.push(l),0===t?(a.data("active",!0),a.addClass("w-e-active")):l.hide(),a.on("click",(function(){a.data("active")||((0,r.default)(p).call(p,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,r.default)(h).call(h,(function(e){e.hide()})),a.data("active",!0),a.addClass("w-e-active"),l.show())})))})),t.on("click",(function(e){e.stopPropagation()})),v.$elem.append(t),e.setLinkValue&&e.setLinkValue(t,"text"),e.setLinkValue&&e.setLinkValue(t,"link"),(0,r.default)(f).call(f,(function(e,t){e&&(e=e.events||[],(0,r.default)(e).call(e,(function(e){function n(e){return l.__awaiter(A,void 0,void 0,(function(){return l.__generator(this,(function(t){switch(t.label){case 0:return e.stopPropagation(),[4,r(e)];case 1:return t.sent()&&this.remove(),[2]}}))}))}var o=e.selector,i=e.type,r=e.fn||c.EMPTY_FN,u=h[t];e=null!=(e=e.bindEnter)&&e;(0,a.default)(u).call(u,o).on(i,n),e&&"click"===i&&u.on("keyup",(function(e){13==e.keyCode&&n(e)}))})))})),(m=(0,a.default)(t).call(t,"input[type=text],textarea")).length&&m.get(0).focus(),s.hideCurAllPanels(),v.setPanel(this),s.createdMenus.add(v))},s.prototype.remove=function(){var e=this.menu,t=this.$container;t&&t.remove(),s.createdMenus.delete(e)},s.hideCurAllPanels=function(){var e;0!==s.createdMenus.size&&(0,r.default)(e=s.createdMenus).call(e,(function(e){e=e.panel,e&&e.remove()}))},s.createdMenus=new o.default,i=s;function s(e,t){this.menu=e,this.conf=t,this.$container=u.default('<div class="w-e-panel-container"></div>'),t=e.editor,t.txt.eventHooks.clickEvents.push(s.hideCurAllPanels),t.txt.eventHooks.toolbarClickEvents.push(s.hideCurAllPanels),t.txt.eventHooks.dropListMenuHoverEvents.push(s.hideCurAllPanels)}t.default=i},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 0<e?i(o(e),9007199254740991):0}},function(e,t,n){function o(e){return"function"==typeof e?e:void 0}var i=n(9),r=n(8);e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[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){e&&(n=n?e:e.prototype,a(n,u)||i(n,u,{configurable:!0,value:t}),c)&&!o&&r(n,"toString",l)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2);n=i.__importDefault(n(95)),o=n.default,i.__extends(r,o),r.prototype.setPanel=function(e){this.panel=e},n=r;function r(e,t){return o.call(this,e,t)||this}t.default=n},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));function u(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1,e=l.default("<div></div>"),e.addClass("w-e-tooltip"),this.$container=e}u.prototype.getPositionData=function(){var e,t,n=this.$container,o=0,i=0,r=document.documentElement.scrollTop,a=this.$targetElem.getBoundingClientRect(),u=this.editor.$textElem.getBoundingClientRect(),c=this.$targetElem.getOffsetData(),s=l.default(c.parent),d=this.editor.$textElem.elems[0].scrollTop;return this._isInsertTextContainer=s.equal(this.editor.$textContainerElem),i=this._isInsertTextContainer?(s=s.getBoundingClientRect().height,t=c.top,e=c.left,c=c.height,25<(t-=d)?(o=t-20-15,n.addClass("w-e-tooltip-up")):(o=t+c+20<s?t+c+10:20+(0<t?t:0)+10,n.addClass("w-e-tooltip-down")),e<0?0:e):(a.top<20||a.top-u.top<20?(o=a.bottom+r+5,n.addClass("w-e-tooltip-down")):(o=a.top+r-20-15,n.addClass("w-e-tooltip-up")),a.left<0?0:a.left),{top:o,left:i}},u.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()}))}))},u.prototype.create=function(){var e=this.editor,t=this.$container,n=(this.appendMenus(),this.getPositionData()),o=n.top;n=n.left;t.css("top",o+"px"),t.css("left",n+"px"),t.css("z-index",e.zIndex.get("tooltip")),(this._isInsertTextContainer?this.editor.$textContainerElem:l.default("body")).append(t),this._show=!0,e.beforeDestroy((0,a.default)(o=this.remove).call(o,this)),e.txt.eventHooks.onBlurEvents.push((0,a.default)(n=this.remove).call(n,this))},u.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(u.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),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,l,u,c,s,d=n(165),f=n(8),p=n(13),h=n(19),m=n(16),A=n(63);n=n(51),f=f.WeakMap;c=d?(o=new f,i=o.get,r=o.has,a=o.set,l=function(e,t){return a.call(o,e,t),t},u=function(e){return i.call(o,e)||{}},function(e){return r.call(o,e)}):(n[s=A("state")]=!0,l=function(e,t){return h(e,s,t),t},u=function(e){return m(e,s)?e[s]:{}},function(e){return m(e,s)}),e.exports={set:l,get:u,has:c,enforce:function(e){return c(e)?u(e):l(e,{})},getterFor:function(e){return function(t){if(p(t)&&(t=u(t)).type===e)return t;throw TypeError("Incompatible receiver, "+e+" required")}}}},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)),a=(o=((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,n(2)),n(137)),l=o.__importDefault(n(3));function u(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,r.default)(e).call(e,(function(e){var n=e.getNodeName();n!==a.ListType.OrderedList&&n!==a.ListType.UnorderedList?t.push(e):e.prior?t.push(e.prior):null!=(n=e.children())&&(0,r.default)(n).call(n,(function(e){t.push(l.default(e))}))})),t},t.updateRange=function(e,t,n){e=e.selection;var o=document.createRange();1<t.length?(o.setStart(t.elems[0],0),o.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):o.selectNodeContents(t.elems[0]),n&&o.collapse(!1),e.saveRange(o),e.restoreSelection()},t.getStartPoint=function(e){return e.prior||l.default(null==(e=e.children())?void 0:e.elems[0])},t.getEndPoint=function(e){return e.prior||l.default(null==(e=e.children())?void 0:e.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=u,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=u(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=n(75),"String Iterator"),a=i.set,l=i.getterFor(r);n(String,"String",(function(e){a(this,{type:r,string:String(e),index:0})}),(function(){var e=l(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=o(t,n),e.index+=t.length,{value:t,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,i=n(174),r=n(8),a=n(65),l=n(19),u=n(44),c=n(10)("toStringTag");for(o in i){var s=r[o];s=s&&s.prototype;s&&a(s)!==c&&l(s,c,o),u[o]=u.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 51<=r||!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));t.ListHandle=function(e){this.options=e,this.selectionRangeElem=new o.default}},function(e,t,n){var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);t.f=r?function(e){return e=i(this,e),!!e&&e.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))||"function"==typeof(n=e.valueOf)&&!o(i=n.call(e))||!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:(0<e?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;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=((e,t)=>{try{return e[t]}catch(e){}})(e=Object(e),r))?t:a?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},function(e,t,n){function o(e,t){this.stopped=e,this.result=t}var i=n(25),r=n(112),a=n(35),l=n(40),u=n(113),c=n(114);(e.exports=function(e,t,n,s,d){var f,p,h,m,A,v,g=l(t,n,s?2:1);if(d)f=e;else{if("function"!=typeof(t=u(e)))throw TypeError("Target is not iterable");if(r(t)){for(p=0,h=a(e.length);p<h;p++)if((m=s?g(i(v=e[p])[0],v[1]):g(e[p]))&&m instanceof o)return m;return new o(!1)}f=t.call(e)}for(A=f.next;!(v=A.call(f)).done;)if("object"==typeof(m=c(f,g,v.value,s))&&m&&m instanceof o)return m;return new o(!1)}).stop=function(e){return new o(!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){t=o(t),t in e?i.f(e,t,r(0,n)):e[t]=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(e){}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=n(13),o.document),r=n(i)&&n(i.createElement);e.exports=function(e){return r?i.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){function o(){return this}var i=n(5),r=n(167),a=n(105),l=n(171),u=n(37),c=n(19),s=n(53),d=n(10),f=n(43),p=n(44),h=(n=n(104),n.IteratorPrototype),m=n.BUGGY_SAFARI_ITERATORS,A=d("iterator"),v="values",g="entries";e.exports=function(e,t,n,d,y,w,x){function _(e){if(e===y&&M)return M;if(!m&&e in S)return S[e];switch(e){case"keys":case v:case g:return function(){return new n(this,e)}}return function(){return new n(this)}}r(n,t,d);d=t+" Iterator";var E,b,C=!1,S=e.prototype,k=S[A]||S["@@iterator"]||y&&S[y],M=!m&&k||_(y),D="Array"==t&&S.entries||k;if(D&&(D=a(D.call(new e)),h!==Object.prototype)&&D.next&&(f||a(D)===h||(l?l(D,h):"function"!=typeof D[A]&&c(D,A,o)),u(D,d,!0,!0),f)&&(p[d]=o),y==v&&k&&k.name!==v&&(C=!0,M=function(){return k.call(this)}),f&&!x||S[A]===M||c(S,A,M),p[t]=M,y)if(E={values:_(v),keys:w?M:_("keys"),entries:_(g)},x)for(b in E)!m&&!C&&b in S||s(S,b,E[b]);else i({target:t,proto:!0,forced:m||C},E);return E}},function(e,t,n){n=n(11),e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,n){function o(){}var i,r=n(25),a=n(169),l=n(80),u=n(51),c=n(108),s=n(73),d=(n=n(63),">"),f="<",p="prototype",h="script",m=n("IE_PROTO"),A=function(e){return f+h+d+e+f+"/"+h+d},v=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}v=i?((e=i).write(A("")),e.close(),t=e.parentWindow.Object,e=null,t):(e=s("iframe"),t="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(A("document.F=Object")),t.close(),t.F);for(var e,t,n=l.length;n--;)delete v[p][l[n]];return v()};u[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(o[p]=r(e),n=new o,o[p]=null,n[m]=e):n=v(),void 0===t?n:a(n,t)}},function(e,t,n){function o(e){return function(t,n,o){var l,u=i(t),c=r(u.length),s=a(o,c);if(e&&n!=n){for(;s<c;)if((l=u[s++])!=l)return!0}else for(;s<c;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}}var i=n(30),r=n(35),a=n(79);e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var o=n(62),i=Math.max,r=Math.min;e.exports=function(e,t){return e=o(e),e<0?i(e+t,0):r(e,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)return e;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},function(e,t,n){n=n(36),e.exports=n("navigator","userAgent")||""},function(e,t,n){function o(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=i(t),this.reject=i(n)}var i=n(41);e.exports.f=function(e){return new o(e)}},function(e,t,n){var o,i,r=n(8);n=n(84),r=r.process,r=r&&r.versions,r=r&&r.v8;r?i=(o=r.split("."))[0]+o[1]:n&&(!(o=n.match(/Edge\/(\d+)/))||74<=o[1])&&(o=n.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)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(3))),l=n(6),u=o.__importDefault(n(267)),c=o.__importDefault(n(280)),s=o.__importDefault(n(281)),d=o.__importDefault(n(282)),f=o.__importDefault(n(301)),p=o.__importStar(n(416)),h=o.__importDefault(n(417)),m=o.__importDefault(n(418)),A=o.__importDefault(n(419)),v=o.__importStar(n(420)),g=o.__importDefault(n(423)),y=o.__importDefault(n(424)),w=o.__importDefault(n(425)),x=o.__importDefault(n(427)),_=o.__importDefault(n(437)),E=o.__importDefault(n(440)),b=o.__importStar(n(441)),C=(i=o.__importDefault(n(23)),o.__importDefault(n(134))),S=o.__importDefault(n(24)),k=o.__importDefault(n(33)),M=o.__importDefault(n(38)),D=(o=o.__importDefault(n(39)),1);function T(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+D++,this.toolbarSelector=e,this.textSelector=t,p.selectorValidator(this),this.config=l.deepClone(u.default),this.$toolbarElem=a.default("<div></div>"),this.$textContainerElem=a.default("<div></div>"),this.$textElem=a.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new s.default(this),this.txt=new d.default(this),this.menus=new f.default(this),this.zIndex=new y.default,this.change=new w.default(this),this.history=new x.default(this),this.onSelectionChange=new E.default(this),e=_.default(this),t=e.disable,e=e.enable,this.disable=t,this.enable=e,this.isEnable=!0}T.prototype.initSelection=function(e){h.default(this,e)},T.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),A.default(this),p.default(this),this.txt.init(),this.menus.init(),v.default(this),this.initSelection(!0),m.default(this),this.change.observe(),this.history.observe(),b.default(this)},T.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},T.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()},T.prototype.fullScreen=function(){v.setFullScreen(this)},T.prototype.unFullScreen=function(){v.setUnFullScreen(this)},T.prototype.scrollToHead=function(e){g.default(this,e)},T.registerMenu=function(e,t){t&&"function"==typeof t&&(T.globalCustomMenuConstructorList[e]=t)},T.prototype.registerPlugin=function(e,t){b.registerPlugin(e,t,this.pluginsFunctionList)},T.registerPlugin=function(e,t){b.registerPlugin(e,t,T.globalPluginsFunctionList)},T.$=a.default,T.BtnMenu=i.default,T.DropList=C.default,T.DropListMenu=S.default,T.Panel=k.default,T.PanelMenu=M.default,T.Tooltip=o.default,T.globalCustomMenuConstructorList={},T.globalPluginsFunctionList={},t.default=T},function(e,t,n){var o=n(13),i=n(55),r=n(10)("species");e.exports=function(e,t){var n;return new(void 0===(n=i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||o(n)&&null===(n=n[r]))?void 0:n)?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){function o(e){return function(t){return t=String(i(t)),1&e&&(t=t.replace(r,"")),2&e?t.replace(a,""):t}}var i=n(49),r=(n="["+n(68)+"]",RegExp("^"+n+n+"*")),a=RegExp(n+n+"*$");e.exports={start:o(1),end:o(2),trim:o(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){n=n(10),t.f=n},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));function l(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)}))}l.prototype.clickHandler=function(e){},l.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},l.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(l.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),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,o=e.elems[0];o&&(0,r.default)(n=t.EXTRA_TAG).call(n,o.nodeName);)if("A"===(o=o.parentElement).nodeName)return o}(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;e=e.selection.getSelectionContainerElem();return!(null==(t=null==e?void 0:e.elems)||!t.length||"A"!==e.getNodeName()&&(!(t=a(e))||"A"!==t.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)),u=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),c=o.__importDefault(n(135)),s=o.__importDefault(n(136));function d(e){this.editor=e}d.prototype.insertImg=function(e,t,n){function o(e,t){return i.i18next.t((t=void 0===t?a:t)+e)}var i=this.editor,r=i.config,a="validate.",l=(l=e.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'),u="",c=(n&&(u=n.replace("'",'"'),u="data-href='"+encodeURIComponent(u)+"' "),""),s=(t&&(c="alt='"+(c=(c=t.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'))+"' "),i.cmd.do("insertHTML","<img src='"+l+"' "+c+u+'style="max-width:100%;" contenteditable="false"/>'),r.linkImgCallback(e,t,n),document.createElement("img"));s.onload=function(){s=null},s.onerror=function(){r.customAlert(o("插入图片错误"),"error","wangEditor: "+o("插入图片错误")+""+o("图片链接")+' "'+e+'"'+o("下载链接失败")),s=null},s.onabort=function(){return s=null},s.src=e},d.prototype.uploadImg=function(e){var t,n,o,i,d,f,p,h,m,A,v,g,y,w,x,_,E,b,C,S=this;e.length&&(t=this.editor,n=t.config,o=function(e){return t.i18next.t("validate."+e)},E=n.uploadImgServer,i=n.uploadImgShowBase64,f=(d=n.uploadImgMaxSize)/1024/1024,b=n.uploadImgMaxLength,p=n.uploadFileName,h=n.uploadImgParams,m=n.uploadImgParamsWithUrl,A=n.uploadImgHeaders,v=n.uploadImgHooks,g=n.uploadImgTimeout,y=n.withCredentials,(C=n.customUploadImg)||E||i)&&(w=[],x=[],u.arrForEach(e,(function(e){var n,i,r;e&&(n=e.name||e.type.replace("/","."),i=e.size,n)&&i&&(r=t.config.uploadImgAccept.join("|"),!1===new RegExp(".("+r+")$","i").test(n)?x.push("【"+n+"】"+o("不是图片")):d<i?x.push("【"+n+"】"+o("大于")+" "+f+"M"):w.push(e))})),x.length?n.customAlert(o("图片验证未通过")+": \n"+x.join("\n"),"warning"):0===w.length?n.customAlert(o("传入的文件不合法"),"warning"):b<w.length?n.customAlert(o("一次最多上传")+b+o("张图片"),"warning"):C&&"function"==typeof C?C(w,(0,r.default)(b=this.insertImg).call(b,this)):(_=new FormData,(0,a.default)(w).call(w,(function(e,t){var n=p||e.name;1<w.length&&(n+=t+1),_.append(n,e)})),E?(E=(C=E.split("#"))[0],b=C[1]||"",(0,a.default)(u).call(u,h,(function(e,t){m&&(0<(0,l.default)(E).call(E,"?")?E+="&":E+="?",E=E+e+"="+t),_.append(e,t)})),b&&(E+="#"+b),"string"==typeof(C=c.default(E,{timeout:g,formData:_,headers:A,withCredentials:!!y,beforeSend:function(e){if(v.before)return v.before(e,t,w)},onTimeout:function(e){n.customAlert(o("上传图片超时"),"error"),v.timeout&&v.timeout(e,t)},onProgress:function(e,n){var o=new s.default(t);n.lengthComputable&&(e=n.loaded/n.total,o.show(e))},onError:function(e){n.customAlert(o("上传图片错误"),"error",o("上传图片错误")+""+o("服务器返回状态")+": "+e.status),v.error&&v.error(e,t)},onFail:function(e,i){n.customAlert(o("上传图片失败"),"error",o("上传图片返回结果错误")+""+o("返回结果")+": "+i),v.fail&&v.fail(e,t,i)},onSuccess:function(e,i){var l;v.customInsert?v.customInsert((0,r.default)(l=S.insertImg).call(l,S),i,t):"0"!=i.errno?(n.customAlert(o("上传图片失败"),"error",o("上传图片返回结果错误")+""+o("返回结果")+" errno="+i.errno),v.fail&&v.fail(e,t,i)):((0,a.default)(l=i.data).call(l,(function(e){"string"==typeof e?S.insertImg(e):S.insertImg(e.url,e.alt,e.href)})),v.success&&v.success(e,t,i))}}))&&n.customAlert(C,"error")):i&&u.arrForEach(e,(function(e){var t=S,n=new FileReader;n.readAsDataURL(e),n.onload=function(){var e;this.result&&(e=this.result.toString(),t.insertImg(e,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);return o=null==o?void 0:(0,l.default)(o).call(o,t),n||(t=o,o=i,i=t),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){if(0!==(e=e.selection.getSelectionRangeTopNodes()).length)return(0,r.default)(e).call(e,u)},t.getCursorNextNode=function e(t,n,o){var i,r,l;if(t.hasChildNodes())return i=t.cloneNode(),r=!1,""===n.nodeValue&&(r=!0),l=[],(0,a.default)(t=t.childNodes).call(t,(function(t){var a;!c(t,n)&&r&&(i.appendChild(t.cloneNode(!0)),"BR"!==t.nodeName)&&l.push(t),c(t,n)&&(1===t.nodeType&&(a=e(t,n,o))&&""!==a.textContent&&null!=i&&i.appendChild(a),3===t.nodeType&&n.isEqualNode(t)&&(a=s(t,o),i.textContent=a),r=!0)})),(0,a.default)(l).call(l,(function(e){e.remove()})),i},t.dealTextNode=s},function(e,t,n){var o=n(0)(n(1)),i=((0,o.default)(t,"__esModule",{value:!0}),n(430));function r(e){this.maxSize=e,this.isRe=!1,this.data=new i.CeilStack(e),this.revokeData=new i.CeilStack(e)}(0,o.default)(r.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),r.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},r.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},r.prototype.revoke=function(e){this.isRe||(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},r.prototype.restore=function(e){this.isRe||(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},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){function o(e,t){return(e=l[a(e)])==c||e!=u&&("function"==typeof t?i(t):!!t)}var i=n(11),r=/#|\.prototype\./,a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){n=n(103);var o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,n){var o=n(8),i=(n=n(166),"__core-js_shared__");o=o[i]||n(i,{});e.exports=o},function(e,t,n){var o,i,r=n(105),a=n(19),l=n(16),u=n(10),c=(n=n(43),u=u("iterator"),!1);[].keys&&("next"in(i=[].keys())?(r=r(r(i)))!==Object.prototype&&(o=r):c=!0),null==o&&(o={}),n||l(o,u)||a(o,u,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:c}},function(e,t,n){var o=n(16),i=n(31),r=n(63),a=(n=n(168),r("IE_PROTO")),l=Object.prototype;e.exports=n?Object.getPrototypeOf:function(e){return e=i(e),o(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){n=n(76),e.exports=n&&!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){n=n(36),e.exports=n("document","documentElement")},function(e,t,n){n=n(8),e.exports=n.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){e=o(e);var t=i.f;a&&e&&!e[l]&&t(e,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(t){throw i=e.return,void 0!==i&&o(i.call(e)),t}}},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(e){}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(e){}return n}},function(e,t,n){var o=n(25),i=n(41),r=n(10)("species");e.exports=function(e,t){e=o(e).constructor;return void 0===e||null==(e=o(e)[r])?t:i(e)}},function(e,t,n){function o(e){return function(){_(e)}}function i(e){_(e.data)}function r(e){l.postMessage(e+"",p.protocol+"//"+p.host)}var a,l=n(8),u=n(11),c=n(34),s=n(40),d=n(108),f=n(73),p=(n=n(118),l.location),h=l.setImmediate,m=l.clearImmediate,A=l.process,v=l.MessageChannel,g=l.Dispatch,y=0,w={},x="onreadystatechange",_=function(e){var t;w.hasOwnProperty(e)&&(t=w[e],delete w[e],t())};h&&m||(h=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},a(y),y},m=function(e){delete w[e]},"process"==c(A)?a=function(e){A.nextTick(o(e))}:g&&g.now?a=function(e){g.now(o(e))}:v&&!n?(n=(c=new v).port2,c.port1.onmessage=i,a=s(n.postMessage,n,1)):!l.addEventListener||"function"!=typeof postMessage||l.importScripts||u(r)||"file:"===p.protocol?a=x in f("script")?function(e){d.appendChild(f("script"))[x]=function(){d.removeChild(this),_(e)}}:function(e){setTimeout(o(e),0)}:(a=r,l.addEventListener("message",i,!1))),e.exports={set:h,clear:m}},function(e,t,n){n=n(84),e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,n){var o=n(25),i=n(13),r=n(85);e.exports=function(e,t){return o(e),i(t)&&t.constructor===e?t:((0,(e=r.f(e)).resolve)(t),e.promise)}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},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),d=n(37),f=n(18).f,p=n(32).forEach,h=n(14),m=(n=n(42),n.set),A=n.getterFor;e.exports=function(e,t,n){var v,g,y=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),x=y?"set":"add",_=i[e],E=_&&_.prototype,b={};return h&&"function"==typeof _&&(w||E.forEach&&!a((function(){(new _).entries().next()})))?(v=t((function(t,n){m(c(t,v,e),{type:e,collection:new _}),null!=n&&u(n,t[x],t,y)})),g=A(e),p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;e in E&&(!w||"clear"!=e)&&l(v.prototype,e,(function(n,o){var i=g(this).collection;return t||!w||s(n)?(i=i[e](0===n?0:n,o),t?this:i):"get"==e&&void 0}))})),w||f(v.prototype,"size",{configurable:!0,get:function(){return g(this).collection.size}})):(v=n.getConstructor(t,e,y,x),r.REQUIRED=!0),d(v,e,!1,!0),b[e]=v,o({global:!0,forced:!0},b),w||n.setStrong(v,e,y),v}},function(e,t,n){function o(e){l(e,s,{value:{objectID:"O"+ ++d,weakData:{}}})}var i=n(51),r=n(13),a=n(16),l=n(18).f,u=n(64),c=n(200),s=u("meta"),d=0,f=Object.isExtensible||function(){return!0},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,s)){if(!f(e))return"F";if(!t)return"E";o(e)}return e[s].objectID},getWeakData:function(e,t){if(!a(e,s)){if(!f(e))return!0;if(!t)return!1;o(e)}return e[s].weakData},onFreeze:function(e){return c&&p.REQUIRED&&f(e)&&!a(e,s)&&o(e),e}};i[s]=!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),d=n(14),f=n(123).fastKey,p=(n=n(42),n.set),h=n.getterFor;e.exports={getConstructor:function(e,t,n,c){function s(e,t,n){var o,i=v(e),r=m(e,t);return r?r.value=n:(i.last=r={index:o=f(t,!0),key:t,value:n,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=r),t&&(t.next=r),d?i.size++:e.size++,"F"!==o&&(i.index[o]=r)),e}function m(e,t){e=v(e);var n,o=f(t);if("F"!==o)return e.index[o];for(n=e.first;n;n=n.next)if(n.key==t)return n}var A=e((function(e,o){l(e,A,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=o&&u(o,e[c],e,n)})),v=h(t);return r(A.prototype,{clear:function(){for(var e=v(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,d?e.size=0:this.size=0},delete:function(e){var t,n,o=v(this);e=m(this,e);return e&&(t=e.next,n=e.previous,delete o.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),o.first==e&&(o.first=t),o.last==e&&(o.last=n),d?o.size--:this.size--),!!e},forEach:function(e){for(var t,n=v(this),o=a(e,1<arguments.length?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(A.prototype,n?{get:function(e){return e=m(this,e),e&&e.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),d&&o(A.prototype,"size",{get:function(){return v(this).size}}),A},setStrong:function(e,t,n){var o=t+" Iterator",i=h(t),r=h(o);c(e,t,(function(e,t){p(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}:{value:e.target=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)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0,n(2)),n(6)),l=o.__importDefault(n(292));function u(e){e=e.clipboardData;var t="";t=null==e?window.clipboardData&&window.clipboardData.getData("text"):e.getData("text/plain");return a.replaceHtmlSymbol(t)}t.getPasteText=u,t.getPasteHtml=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var o=e.clipboardData,i="";if(!(i=o?o.getData("text/html"):i)){if(o=u(e),!o)return"";i="<p>"+o+"</p>"}return i=(i=i.replace(/<(\d)/gm,(function(e,t){return"&lt;"+t}))).replace(/<(\/?meta.*?)>/gim,""),l.default(i,t,n)},t.getPasteImgs=function(e){var t=[];return u(e)||(e=null==(e=e.clipboardData)?void 0:e.items)&&(0,r.default)(a).call(a,e,(function(e,n){var o=n.type;/image/i.test(o)&&t.push(n.getAsFile())})),t}},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);function c(e,t){var n=this,o=(e=(this.hideTimeoutId=0,this.menu=e,this.conf=t,l.default('<div class="w-e-droplist"></div>')),l.default("<p>"+t.title+"</p>")),i=(o=(o.addClass("w-e-dp-title"),e.append(o),t.list||[]),t.clickHandler||u.EMPTY_FN),c=l.default('<ul class="'+("list"===(t.type||"list")?"w-e-list":"w-e-block")+'"></ul>');(0,r.default)(o).call(o,(function(e){var t=e.$elem,o=e.value;e=l.default('<li class="w-e-item"></li>');t&&(e.append(t),c.append(e),e.on("click",(function(e){i(o),e.stopPropagation(),n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})))})),e.append(c),e.on("mouseleave",(function(){n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})),this.$container=e,this.rendered=!1,this._show=!1}c.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e,t,n=this.menu.$elem,o=this.$container;this._show||(this.rendered?o.show():(e=n.getBoundingClientRect().height||0,t=this.conf.width||100,o.css("margin-top",e+"px").css("width",t+"px"),n.append(o),this.rendered=!0),this._show=!0)},c.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,i.default)(c.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),t.default=c},function(e,t,n){var o=n(0),i=o(n(92)),r=o(n(1)),a=o(n(4)),l=((0,r.default)(t,"__esModule",{value:!0}),n(6));t.default=function(e,t){var n=new XMLHttpRequest;return 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&&(e=t.beforeSend(n),e&&"object"===(0,i.default)(e)&&e.prevent)?e.msg:(n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||300<=e&&e<400))if(400<=e)t.onError&&t.onError(n);else{var o;e=n.responseText;if("object"!==(0,i.default)(e))try{o=JSON.parse(e)}catch(o){return void(t.onFail&&t.onFail(n,e))}else o=e;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));function u(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}u.prototype.show=function(e){var t,n=this;this.isShow||(this.isShow=!0,t=this.$bar,this.$textContainer.append(t),100<(0,r.default)()-this.time&&e<=1&&(t.css("width",100*e+"%"),this.time=(0,r.default)()),(t=this.timeoutId)&&clearTimeout(t),this.timeoutId=(0,a.default)((function(){n.hide()}),500))},u.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},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));(n=o=t.ListType||(t.ListType={})).OrderedList="OL",n.UnorderedList="UL",i=l.default,r.__extends(s,i),s.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},s.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},s.prototype.handleSelectionRangeNodes=function(e){var t,n=this.editor,o=n.selection,i=e.toLowerCase(),r=o.getSelectionContainerElem(),a=o.getSelectionStartElem().getNodeTop(n),l=o.getSelectionEndElem().getNodeTop(n);this.validator(a,l,n.$textElem)&&(t=null==(o=o.getRange())?void 0:o.collapsed,n.$textElem.equal(r)||(r=r.getNodeTop(n)),e={editor:n,listType:e,listTarget:i,$selectionElem:r,$startElem:a,$endElem:l},i=this.isOrderElem(r)?c.ClassType.Wrap:this.isOrderElem(a)&&this.isOrderElem(l)?c.ClassType.Join:this.isOrderElem(a)?c.ClassType.StartJoin:this.isOrderElem(l)?c.ClassType.EndJoin:c.ClassType.Other,r=new c.default(c.createListHandle(i,e,o)),u.updateRange(n,r.getSelectionRangeElem(),!!t))},s.prototype.isOrderElem=function(e){return e=e.getNodeName(),e===o.OrderedList||e===o.UnorderedList},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=this,n=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 '+e.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 '+e.i18next.t("menus.dropListMenu.list.有序列表")+"\n <p>"),value:o.OrderedList}],clickHandler:function(e){t.command(e)}};return t=i.call(this,n,e,r)||this}t.default=n},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){return!(null==(e=e.selection.getSelectionContainerElem())||!e.length||"CODE"!=e.getNodeName()&&"PRE"!=e.getNodeName()&&"CODE"!=e.parent().getNodeName()&&"PRE"!=e.parent().getNodeName()&&!/hljs/.test(e.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=(u.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},u.prototype.getInput=function(){var e=this.$todo;return(0,r.default)(e).call(e,"input")},u.prototype.getInputContainer=function(){return this.getInput().parent()},u.prototype.getTodo=function(){return this.$todo},u);function u(e){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==(e=null==e?void 0:e.childNodes())?void 0:e.clone(!0)}t.todo=l,t.default=function(e){return(e=new l(e)).init(),e}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=(n(146),n(148),n(152),n(154),n(156),n(158),n(160),o.__importDefault(n(87)));o.__exportStar(n(442),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){n=n(143),e.exports=n},function(e,t,n){n(144);var o=n(9).Object;n=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(n.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=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var o=n(20),i=(n=n(147),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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=n(149),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){var o=n(21),i=n(150);n=n(151),t=o(!1),o=i(n);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+o+') 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)&&(/^['"].*['"]$/.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,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var o=n(20),i=(n=n(153),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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=n(155),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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=n(157),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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=n(159),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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){n=n(0)(n(161)),Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;0<=n&&t.item(n)!==this;n--);return-1<n}),n.default||(window.Promise=n.default)},function(e,t,n){e.exports=n(162)},function(e,t,n){n=n(163),e.exports=n},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179),n=n(9),e.exports=n.Promise},function(e,t,n){function o(e){return function(t,n){t=String(r(t)),n=i(n);var o,a=t.length;return n<0||a<=n?e?"":void 0:(o=t.charCodeAt(n))<55296||56319<o||n+1===a||(a=t.charCodeAt(n+1))<56320||57343<a?e?t.charAt(n):o:e?t.slice(n,n+2):a-56320+(o-55296<<10)+65536}}var i=n(62),r=n(49);e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var o=n(8);n=n(102),o=o.WeakMap;e.exports="function"==typeof o&&/native code/.test(n(o))},function(e,t,n){var o=n(8),i=n(19);e.exports=function(t,n){try{i(o,t,n)}catch(e){o[t]=n}return n}},function(e,t,n){function o(){return this}var i=n(104).IteratorPrototype,r=n(77),a=n(48),l=n(37),u=n(44);e.exports=function(e,t,n){return t+=" Iterator",e.prototype=r(i,{next:a(1,n)}),l(e,t,!1,!0),u[t]=o,e}},function(e,t,n){n=n(11),e.exports=!n((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;u<l;)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{}?(()=>{var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(n){}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)return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,n){var o=n(30),i=n(82),r=n(44),a=n(42),l=(n=n(75),"Array Iterator"),u=a.set,c=a.getterFor(l);e.exports=n(Array,"Array",(function(e,t){u(this,{type:l,target:o(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=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){function o(e,t){S.call(d,(function(){var n=t.value,o=re(t);if(o&&(o=N((function(){J?z.emit("unhandledRejection",n,e):ie(W,e,n)})),t.rejection=J||re(t)?te:ee,o.error))throw o.value}))}function i(e,t){S.call(d,(function(){J?z.emit("rejectionHandled",e):ie(q,e,t.value)}))}var r,a,l,u,c=n(5),s=n(43),d=n(8),f=n(36),p=n(109),h=n(53),m=n(110),A=n(37),v=n(111),g=n(13),y=n(41),w=n(83),x=n(34),_=n(102),E=n(66),b=n(115),C=n(116),S=n(117).set,k=n(176),M=n(119),D=n(177),T=n(85),N=n(120),B=n(42),I=n(101),R=n(10),P=n(86),H=R("species"),F="Promise",L=B.get,O=B.set,Q=B.getterFor(F),j=p,U=d.TypeError,Y=d.document,z=d.process,$=f("fetch"),V=T.f,G=V,J="process"==x(z),K=!!(Y&&Y.createEvent&&d.dispatchEvent),W="unhandledrejection",q="rejectionhandled",X=1,Z=2,ee=1,te=2,ne=(n=I(F,(function(){var e,t;if(_(j)===String(j)){if(66===P)return!0;if(!J&&"function"!=typeof PromiseRejectionEvent)return!0}return!(!s||j.prototype.finally)||!(51<=P&&/native code/.test(j)||(t=function(e){e((function(){}),(function(){}))},((e=j.resolve(1)).constructor={})[H]=t,e.then((function(){}))instanceof t))})),R=n||!b((function(e){j.all(e).catch((function(){}))})),function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t}),oe=function(e,t,n){var r;t.notified||(t.notified=!0,r=t.reactions,k((function(){for(var a=t.value,l=t.state==X,u=0;r.length>u;){var c,s,d,f=r[u++],p=l?f.ok:f.fail,h=f.resolve,m=f.reject,A=f.domain;try{p?(l||(t.rejection===te&&i(e,t),t.rejection=ee),!0===p?c=a:(A&&A.enter(),c=p(a),A&&(A.exit(),d=!0)),c===f.promise?m(U("Promise-chain cycle")):(s=ne(c))?s.call(c,h,m):h(c)):m(a)}catch(a){A&&!d&&A.exit(),m(a)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&o(e,t)})))},ie=function(e,t,n){var o;K?((o=Y.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),d.dispatchEvent(o)):o={promise:t,reason:n},(t=d["on"+e])?t(o):e===W&&D("Unhandled promise rejection",n)},re=function(e){return e.rejection!==ee&&!e.parent},ae=function(e,t,n,o){return function(i){e(t,n,i,o)}},le=function(e,t,n,o){t.done||(t.done=!0,(t=o||t).value=n,t.state=Z,oe(e,t,!0))},ue=function(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw U("Promise can't be resolved itself");var i=ne(n);i?k((function(){var o={done:!1};try{i.call(n,ae(ue,e,o,t),ae(le,e,o,t))}catch(n){le(e,o,n,t)}})):(t.value=n,t.state=X,oe(e,t,!1))}catch(n){le(e,{done:!1},n,t)}}};n&&(j=function(e){w(this,j,F),y(e),r.call(this);var t=L(this);try{e(ae(ue,this,t),ae(le,this,t))}catch(e){le(this,t,e)}},(r=function(e){O(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=m(j.prototype,{then:function(e,t){var n=Q(this),o=V(C(this,j));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=J?z.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&oe(this,n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=L(e);this.promise=e,this.resolve=ae(ue,e,t),this.reject=ae(le,e,t)},T.f=V=function(e){return e===j||e===l?new a:G(e)},s||"function"!=typeof p||(u=p.prototype.then,h(p.prototype,"then",(function(e,t){var n=this;return new j((function(e,t){u.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof $&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return M(j,$.apply(d,arguments))}}))),c({global:!0,wrap:!0,forced:n},{Promise:j}),A(j,F,!1,!0),v(F),l=f(F),c({target:F,stat:!0,forced:n},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),c({target:F,stat:!0,forced:s||n},{resolve:function(e){return M(s&&this===l?j:this,e)}}),c({target:F,stat:!0,forced:R},{all:function(e){var t=this,n=V(t),o=n.resolve,i=n.reject,r=N((function(){var n=y(t.resolve),r=[],a=0,l=1;E(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=V(t),o=n.reject,i=N((function(){var i=y(t.resolve);E(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,d=n(8),f=n(71).f,p=n(34),h=n(117).set,m=(n=n(118),d.MutationObserver||d.WebKitMutationObserver),A=d.process,v=d.Promise,g="process"==p(A);p=f(d,"queueMicrotask"),f=p&&p.value;f||(o=function(){var e,t;for(g&&(e=A.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():r=void 0,e}}r=void 0,e&&e.enter()},a=g?function(){A.nextTick(o)}:m&&!n?(l=!0,u=document.createTextNode(""),new m(o).observe(u,{characterData:!0}),function(){u.data=l=!l}):v&&v.resolve?(c=v.resolve(void 0),s=c.then,function(){s.call(c,o)}):function(){h.call(d,o)}),e.exports=f||function(e){e={fn:e,next:void 0},r&&(r.next=e),i||(i=e,a()),r=e}},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);n=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||n(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){n=n(182),e.exports=n},function(e,t,n){n(183),n=n(15),e.exports=n("Array").forEach},function(e,t,n){var o=n(5);n=n(184);o({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},function(e,t,n){var o=n(32).forEach,i=n(67);n=n(22),i=i("forEach"),n=n("forEach");e.exports=i&&n?[].forEach:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}},function(e,t,n){n=n(186),e.exports=n},function(e,t,n){n(187),n=n(9),e.exports=n.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(55)})},function(e,t,n){n=n(189),e.exports=n},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),n=n(15),e.exports=n("Array").map},function(e,t,n){var o=n(5),i=n(32).map,r=n(56);n=n(22),r=r("map"),n=n("map");o({target:"Array",proto:!0,forced:!r||!n},{map:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){n=n(193),e.exports=n},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),n=n(15),e.exports=n("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){n=n(198),e.exports=n},function(e,t,n){n(199),n(61),n(50),n(54),n=n(9),e.exports=n.Map},function(e,t,n){var o=n(122);n=n(124);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},function(e,t,n){n=n(11),e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){n=n(202),e.exports=n},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),n=n(15),e.exports=n("Array").indexOf},function(e,t,n){var o=n(5),i=n(78).indexOf,r=n(67),a=(n=n(22),[].indexOf),l=!!a&&1/[1].indexOf(1,-0)<0;r=r("indexOf"),n=n("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:l||!r||!n},{indexOf:function(e){return l?a.apply(this,arguments)||0:i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){n=n(206),e.exports=n},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),n=n(15),e.exports=n("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),d=(n=n(22),s=s("splice"),n=n("splice",{ACCESSORS:!0,0:0,1:2}),Math.max),f=Math.min;o({target:"Array",proto:!0,forced:!s||!n},{splice:function(e,t){var n,o,s,p,h,m,A=l(this),v=a(A.length),g=i(e,v);e=arguments.length;if(0===e?n=o=0:o=1===e?(n=0,v-g):(n=e-2,f(d(r(t),0),v-g)),9007199254740991<v+n-o)throw TypeError("Maximum allowed length exceeded");for(s=u(A,o),p=0;p<o;p++)(h=g+p)in A&&c(s,p,A[h]);if(n<(s.length=o)){for(p=g;p<v-o;p++)m=p+n,(h=p+o)in A?A[m]=A[h]:delete A[m];for(p=v;v-o+n<p;p--)delete A[p-1]}else if(o<n)for(p=v-o;g<p;p--)m=p+n-1,(h=p+o-1)in A?A[m]=A[h]:delete A[m];for(p=0;p<n;p++)A[p+g]=arguments[p+2];return A.length=v-o+n,s}})},function(e,t,n){n=n(210),e.exports=n},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),n=n(15),e.exports=n("Array").filter},function(e,t,n){var o=n(5),i=n(32).filter,r=n(56);n=n(22),r=r("filter"),n=n("filter");o({target:"Array",proto:!0,forced:!r||!n},{filter:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){n=n(214),e.exports=n},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),n=n(15),e.exports=n("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,1<arguments.length?arguments[1]:void 0)}}),r("includes")},function(e,t,n){n(218),n=n(15),e.exports=n("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),1<arguments.length?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(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[o]=!1,"/./"[t](n)}catch(e){}}return!1}},function(e,t,n){n=n(223),e.exports=n},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),n=n(15),e.exports=n("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));if(this instanceof l){var i=t,u=o.length,c=o;if(!(u in a)){for(var s=[],d=0;d<u;d++)s[d]="a["+d+"]";a[u]=Function("C,a","return new C("+s.join(",")+")")}return a[u](i,c)}return 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){n=n(229),e.exports=n},function(e,t,n){n(125),n(50),n(54),n=n(93),e.exports=n.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),n=n(9),e.exports=n.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),d=n(56),f=n(10),p=(n=n(86),f("isConcatSpreadable")),h=9007199254740991,m="Maximum allowed index exceeded";f=51<=n||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),n=d("concat");o({target:"Array",proto:!0,forced:!f||!n},{concat:function(e){for(var t,n,o,i,d,f=l(this),A=s(f,0),v=0,g=-1,y=arguments.length;g<y;g++)if(d=void 0,a(i=o=-1===g?f:arguments[g])&&(void 0!==(d=i[p])?d:r(i))){if(n=u(o.length),h<v+n)throw TypeError(m);for(t=0;t<n;t++,v++)t in o&&c(A,v,o[t])}else{if(h<=v)throw TypeError(m);c(A,v++,o)}return A.length=v,A}})},function(e,t,n){function o(e,t){var n=te[e]=E(K[$]);return V(n,{type:z,tag:e,description:t}),d||(n.description=t),n}function i(e,t){g(e);var n=w(t);t=b(n).concat(se(n));return U(t,(function(t){d&&!ce.call(n,t)||ue(e,t,n[t])})),e}function r(e,t){var n;e=w(e),t=x(t,!0);if(e!==J||!m(te,t)||m(ne,t))return!(n=q(e,t))||!m(te,t)||m(e,Y)&&e[Y][t]||(n.enumerable=!0),n}function a(e){e=Z(w(e));var t=[];return U(e,(function(e){m(te,e)||m(P,e)||t.push(e)})),t}var l=n(5),u=n(8),c=n(36),s=n(43),d=n(14),f=n(76),p=n(106),h=n(11),m=n(16),A=n(55),v=n(13),g=n(25),y=n(31),w=n(30),x=n(60),_=n(48),E=n(77),b=n(52),C=n(126),S=n(235),k=n(127),M=n(71),D=n(18),T=n(59),N=n(19),B=n(53),I=n(74),R=n(63),P=n(51),H=n(64),F=n(10),L=n(93),O=n(12),Q=n(37),j=n(42),U=n(32).forEach,Y=R("hidden"),z="Symbol",$="prototype",V=(n=F("toPrimitive"),j.set),G=j.getterFor(z),J=Object[$],K=u.Symbol,W=c("JSON","stringify"),q=M.f,X=D.f,Z=S.f,ee=T.f,te=I("symbols"),ne=I("op-symbols"),oe=I("string-to-symbol-registry"),ie=I("symbol-to-string-registry"),re=(R=I("wks"),j=u.QObject,!j||!j[$]||!j[$].findChild),ae=d&&h((function(){return 7!=E(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=q(J,t);o&&delete J[t],X(e,t,n),o&&e!==J&&X(J,t,o)}:X,le=p?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof K},ue=function(e,t,n){return e===J&&ue(ne,t,n),g(e),t=x(t,!0),g(n),(m(te,t)?(n.enumerable?(m(e,Y)&&e[Y][t]&&(e[Y][t]=!1),n=E(n,{enumerable:_(0,!1)})):(m(e,Y)||X(e,Y,_(1,{})),e[Y][t]=!0),ae):X)(e,t,n)},ce=function(e){e=x(e,!0);var t=ee.call(this,e);return!(this===J&&m(te,e)&&!m(ne,e))&&(!(t||!m(this,e)||!m(te,e)||m(this,Y)&&this[Y][e])||t)},se=function(e){var t=e===J,n=(e=Z(t?ne:w(e)),[]);return U(e,(function(e){!m(te,e)||t&&!m(J,e)||n.push(te[e])})),n};f||(B((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=H(e),n=function(e){this===J&&n.call(ne,e),m(this,Y)&&m(this[Y],t)&&(this[Y][t]=!1),ae(this,t,_(1,e))};return d&&re&&ae(J,t,{configurable:!0,set:n}),o(t,e)})[$],"toString",(function(){return G(this).tag})),B(K,"withoutSetter",(function(e){return o(H(e),e)})),T.f=ce,D.f=ue,M.f=r,C.f=S.f=a,k.f=se,L.f=function(e){return o(F(e),e)},d&&(X(K[$],"description",{configurable:!0,get:function(){return G(this).description}}),s||B(J,"propertyIsEnumerable",ce,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:K}),U(b(R),(function(e){O(e)})),l({target:z,stat:!0,forced:!f},{for:function(e){var t;e=String(e);return m(oe,e)?oe[e]:(t=K(e),oe[e]=t,ie[t]=e,t)},keyFor:function(e){if(!le(e))throw TypeError(e+" is not a symbol");if(m(ie,e))return ie[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),l({target:"Object",stat:!0,forced:!f,sham:!d},{create:function(e,t){return void 0===t?E(e):i(E(e),t)},defineProperty:ue,defineProperties:i,getOwnPropertyDescriptor:r}),l({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:a,getOwnPropertySymbols:se}),l({target:"Object",stat:!0,forced:h((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(y(e))}}),W&&l({target:"JSON",stat:!0,forced:!f||h((function(){var e=K();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))}))},{stringify:function(e,t,n){for(var o,i=[e],r=1;r<arguments.length;)i.push(arguments[r++]);if((v(o=t)||void 0!==e)&&!le(e))return A(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!le(t))return t}),i[1]=t,W.apply(null,i)}}),K[$][n]||N(K[$],n,K[$].valueOf),Q(K,z),P[Y]=!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){if(!a||"[object Window]"!=r.call(e))return i(o(e));try{return i(e)}catch(e){return a.slice()}}},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){n=n(258),e.exports=n},function(e,t,n){n(259),n=n(9),e.exports=n.parseInt},function(e,t,n){var o=n(5);n=n(260);o({global:!0,forced:parseInt!=n},{parseInt:n})},function(e,t,n){var o=n(8),i=n(90).trim,r=(n=n(68),o.parseInt),a=/^[+-]?0[Xx]/;o=8!==r(n+"08")||22!==r(n+"0x16");e.exports=o?function(e,t){return e=i(String(e)),r(e,t>>>0||(a.test(e)?16:10))}:r},function(e,t,n){n=n(262),e.exports=n},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),n=n(15),e.exports=n("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),d=n(56),f=(n=n(22),d=d("slice"),n=n("slice",{ACCESSORS:!0,0:0,1:2}),s("species")),p=[].slice,h=Math.max;o({target:"Array",proto:!0,forced:!d||!n},{slice:function(e,t){var n,o,s,d=u(this),m=l(d.length),A=a(e,m),v=a(void 0===t?m:t,m);if(r(d)&&((n="function"==typeof(n=d.constructor)&&(n===Array||r(n.prototype))||i(n)&&null===(n=n[f])?void 0:n)===Array||void 0===n))return p.call(d,A,v);for(o=new(void 0===n?Array:n)(h(v-A,0)),s=0;A<v;A++,s++)A in d&&c(o,s,d[A]);return o.length=s,o}})},function(e,t,n){n(266),n=n(9),e.exports=n.setTimeout},function(e,t,n){function o(e){return function(t,n){var o=2<arguments.length,i=o?a.call(arguments,2):void 0;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}}var i=n(5),r=n(8),a=(n=n(84),[].slice);i({global:!0,bind:!0,forced:/MSIE .\./.test(n)},{setTimeout:o(r.setTimeout),setInterval:o(r.setInterval)})},function(e,t,n){var o=n(0),i=o(n(1)),r=(o=o(n(128)),i=((0,i.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(272))),a=i.__importDefault(n(273)),l=i.__importDefault(n(129)),u=i.__importDefault(n(274)),c=i.__importDefault(n(275)),s=i.__importDefault(n(276)),d=i.__importDefault(n(130)),f=i.__importDefault(n(277)),p=i.__importDefault(n(278));i=i.__importDefault(n(279)),n=(0,o.default)({},r.default,a.default,l.default,c.default,u.default,s.default,d.default,f.default,p.default,i.default,{linkCheck:function(e,t){return!0}});t.default=n},function(e,t,n){n=n(269),e.exports=n},function(e,t,n){n(270),n=n(9),e.exports=n.Object.assign},function(e,t,n){var o=n(5);n=n(271);o({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},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,d=Object.defineProperty;e.exports=!s||i((function(){var e,t,n,i;return!(!o||1===s({b:1},s(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},i="abcdefghijklmnopqrst",(e={})[n=Symbol()]=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,d=a.f,f=l.f;s<i;)for(var p,h=c(arguments[s++]),m=d?r(h).concat(d(h)):r(h),A=m.length,v=0;v<A;)p=m[v++],o&&!f.call(h,p)||(n[p]=h[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}),n=n(7),t.default={onchangeTimeout:200,onchange:null,onfocus:n.EMPTY_FN,onblur:n.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}),n=n(7),t.default={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:n.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}),n=n(7),t.default={onlineVideoCheck:function(e){return!0},onlineVideoCallback:n.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);function c(e){this._currentRange=null,this.editor=e}c.prototype.getRange=function(){return this._currentRange},c.prototype.saveRange=function(e){var t,n,o;e?this._currentRange=e:0!==(e=window.getSelection()).rangeCount&&(e=e.getRangeAt(0),null!=(n=this.getSelectionContainerElem(e)))&&n.length&&"false"!==n.attr("contenteditable")&&!n.parentUntil("[contenteditable=false]")&&(o=(t=this.editor).$textElem).isContain(n)&&(o.elems[0]===n.elems[0]&&(0,r.default)(n=o.html()).call(n)===u.EMPTY_P&&(o=null==(n=o.children())?void 0:n.last(),t.selection.createRangeByElem(o,!0,!0),t.selection.restoreSelection()),this._currentRange=e)},c.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},c.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},c.prototype.getSelectionContainerElem=function(e){e=e||this._currentRange;if(e)return e=e.commonAncestorContainer,a.default(1===e.nodeType?e:e.parentNode)},c.prototype.getSelectionStartElem=function(e){e=e||this._currentRange;if(e)return e=e.startContainer,a.default(1===e.nodeType?e:e.parentNode)},c.prototype.getSelectionEndElem=function(e){e=e||this._currentRange;if(e)return e=e.endContainer,a.default(1===e.nodeType?e:e.parentNode)},c.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},c.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},c.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(e){}},c.prototype.createRangeByElems=function(e,t){var n=(window.getSelection?window:document).getSelection();null!=n&&n.removeAllRanges(),n=document.createRange();n.setStart(e,0),n.setEnd(t,t.childNodes.length||1),this.saveRange(n),this.restoreSelection()},c.prototype.createRangeByElem=function(e,t,n){var o;e.length&&(e=e.elems[0],o=document.createRange(),n?o.selectNodeContents(e):o.selectNode(e),null!=t&&(o.collapse(t),t||(this.saveRange(o),this.editor.selection.moveCursor(e))),this.saveRange(o))},c.prototype.getSelectionRangeTopNodes=function(){var e=null==(e=this.getSelectionStartElem())?void 0:e.getNodeTop(this.editor),t=null==(t=this.getSelectionEndElem())?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(a.default(e),a.default(t))},c.prototype.moveCursor=function(e,t){var n=this.getRange(),o=3===e.nodeType?null==(o=e.nodeValue)?void 0:o.length:e.childNodes.length;!l.UA.isFirefox&&!l.UA.isIE()||0===o||3!==e.nodeType&&"BR"!==e.childNodes[o-1].nodeName||(o-=1),t=null!=t?t:o;n&&e&&(n.setStart(e,t),n.setEnd(e,t),this.restoreSelection())},c.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},c.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},c.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),0<l.length&&(n.push(a.default(i)),null!=t&&t.equal(l)||r.equal(l)?o=!1:i=l.getNextSibling())}}catch(e){o=!1}return n},c.prototype.setRangeToElem=function(e){var t=this.getRange();null!=t&&t.setStart(e,0),null!=t&&t.setEnd(e,0)},t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));function i(e){this.editor=e}i.prototype.do=function(e,t){var n=this.editor,o=(n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true"),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()}},i.prototype.insertHTML=function(e){var t,n=this.editor,i=n.selection.getRange();null!=i&&(this.queryCommandSupported("insertHTML")?this.execCommand("insertHTML",e):i.insertNode&&(i.deleteContents(),0<o.default(e).elems.length?i.insertNode(o.default(e).elems[0]):((t=document.createElement("p")).appendChild(document.createTextNode(e)),i.insertNode(t)),n.selection.collapseRange()))},i.prototype.insertElem=function(e){var t=this.editor.selection.getRange();null!=t&&t.insertNode&&(t.deleteContents(),t.insertNode(e.elems[0]))},i.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},i.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},i.prototype.queryCommandState=function(e){return document.queryCommandState(e)},i.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(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)),s=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(3))),d=o.__importDefault(n(287)),f=n(6),p=o.__importDefault(n(299)),h=o.__importDefault(n(300)),m=n(7);function A(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:[]}}A.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d.default(this)},A.prototype.togglePlaceholder=function(){var e=this.html(),t=(0,r.default)(t=this.editor.$textContainerElem).call(t,".placeholder");t.hide(),this.editor.isComposing||e&&" "!==e||t.show()},A.prototype.clear=function(){this.html(m.EMPTY_P)},A.prototype.html=function(e){var t,n,o=this.editor,i=o.$textElem;if(null==e)return null!==(n=(t=(t=(t=(t=(t=i.html()).replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(m.EMPTY_P_LAST_REGEX,"")).replace(m.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi))&&(0,a.default)(n).call(n,(function(e){e.match(/\/>/)||(t=t.replace(e,e.substring(0,e.length-1)+"/>"))})),t;""===(e=(0,l.default)(e).call(e))&&(e=m.EMPTY_P),0!==(0,u.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),i.html(e),o.initSelection()},A.prototype.setJSON=function(e){e=h.default(e).children();var t=this.editor.$textElem;e&&t.replaceChildAll(e)},A.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},A.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e)return n.text().replace(/\u200b/gm,"");n.text("<p>"+e+"</p>"),t.initSelection()},A.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()},A.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=s.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)}))},A.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){var t;13===e.keyCode&&(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){var t;8!==e.keyCode&&46!==e.keyCode||(t=n.deleteUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(e){var t;8!==e.keyCode&&46!==e.keyCode||(t=n.deleteDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("paste",(function(e){var t;f.UA.isIE()||(e.preventDefault(),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){var t;9===e.keyCode&&(e.preventDefault(),t=n.tabUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(e){var t;9===e.keyCode&&(e.preventDefault(),t=n.tabDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("scroll",f.throttle((function(e){var t=n.textScrollEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}),100)),s.default(document).on("dragleave",o).on("drop",o).on("dragenter",o).on("dragover",o),e.beforeDestroy((function(){s.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;e=e.target,e=s.default(e);("A"===e.getNodeName()||null!=(e=e.parentUntil("a")))&&(t=e),t&&(e=n.linkClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(e){var t=null,o=e.target;o=s.default(o);"IMG"!==o.getNodeName()||o.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=o),t&&(e=n.imgClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(e){var t=null;e=e.target,e=s.default(e);("PRE"===e.getNodeName()||null!==(e=e.parentUntil("pre")))&&(t=e),t&&(e=n.codeClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(t){var o=null;t=t.target,t=s.default(t);(o="HR"===t.getNodeName()?t:o)&&(e.selection.createRangeByElem(o),e.selection.restoreSelection(),t=n.splitLineEvents,(0,a.default)(t).call(t,(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){e=e.target;s.default(e).hasClass("w-e-img-drag-rb")&&(e=n.imgDragBarMouseDownEvents,(0,a.default)(e).call(e,(function(e){return e()})))})),t.on("click",(function(t){var o,i=t.target;(o=s.default(i).parentUntilEditor("TABLE",e,i))&&(i=n.tableClickEvents,(0,a.default)(i).call(i,(function(e){return e(o,t)})))})),t.on("keydown",(function(e){var t;13===e.keyCode&&(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;o=s.default(o);"VIDEO"===o.getNodeName()&&(e.stopPropagation(),t=o),t&&(e=n.videoClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))}))},t.default=A},function(e,t,n){n=n(284),e.exports=n},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),n=n(15),e.exports=n("Array").find},function(e,t,n){var o=n(5),i=n(32).find,r=n(82),a=(n=n(22),"find"),l=!0;n=n(a);a in[]&&Array(1).find((function(){l=!1})),o({target:"Array",proto:!0,forced:l||!n},{find:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),r(a)},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;e=e.eventHooks;i.default(t,e.enterUpEvents,e.enterDownEvents),r.default(t,e.deleteUpEvents,e.deleteDownEvents),r.cutToKeepP(t,e.keyupEvents),a.default(t,e.tabDownEvents),l.default(t,e.pasteEvents),u.default(t,e.imgClickEvents)}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(27)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(7)),l=o.__importDefault(n(3));t.default=function(e,t,n){function o(t){var n,o=l.default(a.EMPTY_P);o.insertBefore(t),(0<=(0,r.default)(n=t.html()).call(n,"<img")?o:(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.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)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0,n(2)),n(7)),u=o.__importDefault(n(3));t.cutToKeepP=function(e,t){t.push((function(t){var n;88!==t.keyCode||(t=e.$textElem,(n=(0,r.default)(n=t.html().toLowerCase()).call(n))&&"<br>"!==n)||(n=u.default(l.EMPTY_P),t.html(" "),t.append(n),e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(n.getNode(),0))}))},t.default=function(e,t,n){t.push((function(){var t=e.$textElem,n=e.$textElem.html(),o=e.$textElem.text(),i=(n=(0,r.default)(n).call(n),["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',l.EMPTY_P]);!/^\s*$/.test(o)||n&&!(0,a.default)(i).call(i,n)||(t.html(l.EMPTY_P),o=t.getNode(),e.selection.createRangeByElems(o.childNodes[0],o.childNodes[0]),i=e.selection.getSelectionContainerElem(),e.selection.restoreSelection(),e.selection.moveCursor(i.getNode(),0))})),n.push((function(t){var n=e.$textElem;(0,r.default)(n=n.html().toLowerCase()).call(n)===l.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(){var t,n;e.cmd.queryCommandSupported("insertHTML")&&(t=e.selection.getSelectionContainerElem())&&(n=t.parent(),t=t.getNodeName(),n=n.getNodeName(),"CODE"==t||"CODE"===n||"PRE"===n||/hljs/.test(n)?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)),l=((0,i.default)(t,"__esModule",{value:!0}),n(131)),u=n(6),c=n(7);function s(e){e=(0,r.default)(e=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(e);var t=document.createElement("div");return t.innerHTML=e,t.innerHTML.replace(/<p><\/p>/gim,"")}t.default=function(e,t){t.push((function(t){var n=(i=e.config).pasteFilterStyle,o=i.pasteTextHandle,i=l.getPasteHtml(t,n,i.pasteIgnoreImg),r=(t=(t=l.getPasteText(t)).replace(/\n/gm,"<br>"),e.selection.getSelectionContainerElem());if(r){var d,f,p=null==r?void 0:r.getNodeName(),h=null==r?void 0:r.getNodeTop(e),m="";if(h.elems[0]&&(m=null==h?void 0:h.getNodeName()),"CODE"===p||"PRE"===m)o&&u.isFunction(o)&&(t=""+(o(t)||"")),e.cmd.do("insertHTML",t.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,""));else if(c.urlRegex.test(t)&&n){p=(t=o&&u.isFunction(o)?""+(o(t)||""):t).replace(c.urlRegex,(function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"})),m=e.selection.getRange();var A=document.createElement("div"),v=document.createDocumentFragment();if(A.innerHTML=p,null!=m){for(;A.childNodes.length;)v.append(A.childNodes[0]);p=v.querySelectorAll("a"),(0,a.default)(p).call(p,(function(e){e.innerText=e.href})),m.insertNode&&(m.deleteContents(),m.insertNode(v)),e.selection.clearWindowSelectionRange()}}else if(i)try{o&&u.isFunction(o)&&(i=""+(o(i)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(i)&&n?e.cmd.do("insertHTML",""+s(t)):(e=>{var t;return""!==e&&((t=document.createElement("div")).innerHTML=e,"P"===(null==(e=t.firstChild)?void 0:e.nodeName))})(d=s(i))?(f=e.$textElem,e.cmd.do("insertHTML",d),f.equal(r)?e.selection.createEmptyRange():(e=>null!=e&&e.length&&"P"===(e=e.elems[0]).nodeName&&"<br>"===e.innerHTML)(h)&&h.remove()):e.cmd.do("insertHTML",d)}catch(n){o&&u.isFunction(o)&&(t=""+(o(t)||"")),e.cmd.do("insertHTML",""+s(t))}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(4)),l=o(n(28)),u=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(293)),c=o.__importDefault(n(297));function s(e,t){var n;return e=(0,r.default)(n=e.toLowerCase()).call(n),u.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 d(e){(e=(0,r.default)(e).call(e))&&!u.EMPTY_TAGS.has(e)&&(i=e)}(new c.default).parse(e,{startElement:function(e,i){var r,c,f,p;d(e),s(e,n)||(r=u.NECESSARY_ATTRS.get(e)||[],c=[],(0,a.default)(i).call(i,(function(e){var n=e.name;"style"===n?t||c.push(e):!1!==(0,l.default)(r).call(r,n)&&c.push(e)})),i=c,f="",f="<"+(e=e),p=[],(0,a.default)(i).call(i,(function(e){p.push(e.name+'="'+e.value+'"')})),0<p.length&&(f=f+" "+p.join(" ")),i=u.EMPTY_TAGS.has(e),e=f=f+(i?"/":"")+">",o.push(e))},characters:function(e){!e||s(i,n)||o.push(e)},endElement:function(e){s(e,n)||(o.push("</"+e+">"),i="")},comment:function(e){d(e)}});var f;e=o.join("");return f=/<span>(.*?)<\/span>/,e.replace(/<span>.*?<\/span>/gi,(function(e){return e=e.match(f),null==e?"":e[1]}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(132));o=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 o.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){n=n(295),e.exports=n},function(e,t,n){n(296),n(61),n(50),n(54),n=n(9),e.exports=n.Set},function(e,t,n){var o=n(122);n=n(124);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},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){t&&(this.contentHandler=t);for(var n,o,i=!1,r=this;0<e.length;)"\x3c!--"==e.substring(0,4)?i=-1==(o=e.indexOf("--\x3e"))||(this.contentHandler.comment(e.substring(4,o)),e=e.substring(o+3),!1):"</"==e.substring(0,2)?i=!this.endTagRe.test(e)||(RegExp.leftContext,n=RegExp.rightContext,RegExp.lastMatch.replace(this.endTagRe,(function(){return r.parseEndTag.apply(r,arguments)})),e=n,!1):"<"==e.charAt(0)&&(i=!this.startTagRe.test(e)||(RegExp.leftContext,n=RegExp.rightContext,RegExp.lastMatch.replace(this.startTagRe,(function(){return r.parseStartTag.apply(r,arguments)})),e=n,!1)),i&&(e=-1==(o=e.indexOf("<"))?(this.contentHandler.characters(e),""):(this.contentHandler.characters(e.substring(0,o)),e.substring(o))),i=!0},parseStartTag:function(e,t,n){n=this.parseAttributes(t,n),this.contentHandler.startElement(t,n)},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)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=o.__importDefault(n(3));t.default=function e(t){var n=[];t=t.childNodes()||[];return(0,r.default)(t).call(t,(function(t){var o,i=t.nodeType;if(3===i&&(o=t.textContent||"",o=a.replaceHtmlSymbol(o)),1===i){(o={}).tag=t.nodeName.toLowerCase();for(var r=[],u=t.attributes,c=u.length||0,s=0;s<c;s++){var d=u[s];r.push({name:d.name,value:d.value})}o.attrs=r,o.children=e(l.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){var o=n=void 0===n?document.createElement("div"):n;return(0,a.default)(t).call(t,(function(t){var n,r;"string"==typeof t&&(r=document.createTextNode(t)),"object"===(0,i.default)(t)&&(r=document.createElement(t.tag),(0,a.default)(n=t.attrs).call(n,(function(e){l.default(r).attr(e.name,e.value)})),t.children)&&0<t.children.length&&e(t.children,r.getRootNode()),r&&o.appendChild(r)})),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)),d=o(n(133)),f=o(n(46)),p=o(n(57)),h=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(87))),m=o.__importDefault(n(314)),A=o.__importDefault(n(3));function v(e){this.editor=e,this.menuList=[],this.constructorList=m.default}v.prototype.extend=function(e,t){t&&"function"==typeof t&&(this.constructorList[e]=t)},v.prototype.init=function(){var e=this,t=this.editor.config,n=t.excludeMenus,o=(!1===(0,r.default)(n)&&(n=[]),t.menus=(0,a.default)(o=t.menus).call(o,(function(e){return!1===(0,l.default)(n).call(n,e)})),(0,u.default)(h.default.globalCustomMenuConstructorList));o=(0,a.default)(o).call(o,(function(e){return(0,l.default)(n).call(n,e)}));(0,c.default)(o).call(o,(function(e){delete h.default.globalCustomMenuConstructorList[e]})),(0,c.default)(o=t.menus).call(o,(function(t){var n=e.constructorList[t];e._initMenuList(t,n)}));for(var i=0,d=(0,s.default)(h.default.globalCustomMenuConstructorList);i<d.length;i++){var f=d[i],p=f[0];this._initMenuList(p,f[1])}this._addToToolbar(),t.showMenuTooltips&&this._bindMenuTooltips()},v.prototype._initMenuList=function(e,t){var n;null==t||"function"!=typeof t||(0,d.default)(n=this.menuList).call(n,(function(t){return t.key===e}))||((n=new t(this.editor)).key=e,this.menuList.push(n))},v.prototype._bindMenuTooltips=function(){var e=this.editor,t=e.$toolbarElem,n=e.config.menuTooltipPosition,o=A.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>'),i=(o.css("visibility","hidden"),t.append(o),o.css("z-index",e.zIndex.get("tooltip")),0);function r(){i&&clearTimeout(i)}function a(){r(),o.css("visibility","hidden")}t.on("mouseover",(function(l){var u,c;l=l.target,l=A.default(l);!l.isContain(t)&&(null!=l.parentUntil(".w-e-droplist")?a():(l.attr("data-title")||null!=(l=l.parentUntil(".w-e-menu")))&&(c=l.attr("data-title"),u=l),c)&&u?(r(),l=u.getOffsetData(),o.text(e.i18next.t("menus.title."+c)),u=o.getOffsetData(),c=l.left+l.width/2-u.width/2,o.css("left",c+"px"),"up"===n?o.css("top",l.top-u.height-8+"px"):"down"===n&&o.css("top",l.top+l.height+8+"px"),i=(0,f.default)((function(){o.css("visibility","visible")}),200)):a()})).on("mouseleave",(function(){a()}))},v.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,c.default)(e=this.menuList).call(e,(function(e){e=e.$elem,e&&t.append(e)}))},v.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]},v.prototype.changeActive=function(){var e;(0,c.default)(e=this.menuList).call(e,(function(e){var t;(0,f.default)((0,p.default)(t=e.tryChangeActive).call(t,e),100)}))},t.default=v},function(e,t,n){e.exports=n(303)},function(e,t,n){n=n(304),e.exports=n},function(e,t,n){n(305),n=n(9),e.exports=n.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){n=n(307),e.exports=n},function(e,t,n){n(308),n=n(9),e.exports=n.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){function o(e){return function(t){for(var n,o=a(t),u=r(o),c=u.length,s=0,d=[];s<c;)n=u[s++],i&&!l.call(o,n)||d.push(e?[n,o[n]]:o[n]);return d}}var i=n(14),r=n(52),a=n(30),l=n(59).f;e.exports={entries:o(!0),values:o(!1)}},function(e,t,n){n=n(311),e.exports=n},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),n=n(15),e.exports=n("Array").some},function(e,t,n){var o=n(5),i=n(32).some,r=n(67);n=n(22),r=r("some"),n=n("some");o({target:"Array",proto:!0,forced:!r||!n},{some:function(e){return i(this,e,1<arguments.length?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)),d=o.__importDefault(n(331)),f=o.__importDefault(n(333)),p=o.__importDefault(n(334)),h=o.__importDefault(n(337)),m=o.__importDefault(n(338)),A=o.__importDefault(n(339)),v=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));o=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:d.default,justify:f.default,quote:p.default,backColor:h.default,foreColor:m.default,video:A.default,image:v.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:o.default}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3));o=r.default,i.__extends(l,o),l.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())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},n=l;function l(e){var t=a.default('<div class="w-e-menu" data-title="加粗">\n <i class="w-e-icon-bold"></i>\n </div>');return o.call(this,t,e)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(27)),l=i(n(29)),u=i(n(4)),c=i(n(317)),s=i(n(28)),d=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3))),f=n(6),p=n(7);o=r.default,i.__extends(h,o),h.prototype.command=function(e){var t,n=this.editor,o=n.selection.getSelectionContainerElem();if(o&&n.$textElem.equal(o))this.setMultilineHead(e);else{if(-1<(0,a.default)(t=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(t,d.default(o).getNodeName()))return;n.cmd.do("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},h.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=f.getRandomCode();d.default(e).attr("id",t)},h.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},h.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=(e=e.config.onCatalogChange,t=(0,l.default)(t).call(t,"h1,h2,h3,h4,h5"),[]);(0,u.default)(t).call(t,(function(e,t){e=d.default(e);var o=e.attr("id"),i=e.getNodeName(),r=e.text();o||(o=f.getRandomCode(),e.attr("id",o)),r&&n.push({tag:i,id:o,text:r})})),(0,c.default)(this.oldCatalogs)!==(0,c.default)(n)&&(this.oldCatalogs=n,e)&&e(n)},h.prototype.setMultilineHead=function(e){for(var t=this,n=this.editor,o=n.selection,i=null==(i=o.getSelectionContainerElem())?void 0:i.elems[0],r=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],a=d.default(o.getSelectionStartElem()),l=d.default(o.getSelectionEndElem()),c=(l.elems[0].outerHTML!==d.default(p.EMPTY_P).elems[0].outerHTML||l.elems[0].nextSibling||(l=l.prev()),[]),s=(c.push(a.getNodeTop(n)),[]),f=(a=null==(a=o.getRange())?void 0:a.commonAncestorContainer.childNodes,null!=a&&(0,u.default)(a).call(a,(function(e,t){e===c[0].getNode()&&s.push(t),e===l.getNodeTop(n).getNode()&&s.push(t)})),0);c[f].getNode()!==l.getNodeTop(n).getNode();){if(!c[f].elems[0])return;var h=d.default(c[f].next().getNode());c.push(h),f++}null!=c&&(0,u.default)(c).call(c,(function(n,o){var i,a;t.hasTag(n,r)||(i=d.default(e),a=n.parent().getNode(),i.html(""+n.html()),a.insertBefore(i.getNode(),n.getNode()),n.remove())})),o.createRangeByElems(i.children[s[0]],i.children[s[1]])},h.prototype.hasTag=function(e,t){var n,o=this;return!!e&&(!!(0,s.default)(t).call(t,null==e?void 0:e.getNodeName())||(n=!1,null!=(e=e.children())&&(0,u.default)(e).call(e,(function(e){n=o.hasTag(d.default(e),t)})),n))},h.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},n=h;function h(e){var t=this,n=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>"+e.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){t.command(e)}};t=o.call(this,n,e,i)||this;return e.config.onCatalogChange&&(t.oldCatalogs=[],t.addListenerCatalog(),t.getCatalogs()),t}t.default=n},function(e,t,n){e.exports=n(318)},function(e,t,n){n=n(319),e.exports=n},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){function o(e,t,n){var o=n.charAt(t-1);n=n.charAt(t+1);return u.test(e)&&!c.test(n)||c.test(e)&&!u.test(o)?"\\u"+e.charCodeAt(0).toString(16):e}var i=n(5),r=n(36),a=(n=n(11),r("JSON","stringify")),l=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/;r=n((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&i({target:"JSON",stat:!0,forced:r},{stringify:function(e,t,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(l,o):i}})},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(17)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(38)),i.__importDefault(n(3))),u=i.__importDefault(n(322)),c=i.__importStar(n(96)),s=i.__importDefault(n(33)),d=i.__importDefault(n(324)),f=n(7);o=r.default,i.__extends(p,o),p.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),o=t.$textElem,i=o.html();(0,a.default)(i).call(i)===f.EMPTY_P&&(i=o.children(),t.selection.createRangeByElem(i,!0,!0),n=t.selection.getSelectionContainerElem()),n&&t.$textElem.equal(n)||(this.isActive?(i=o="",(n=t.selection.getSelectionContainerElem())&&("A"!==n.getNodeName()&&(e=c.getParentNodeA(n),n=l.default(e)),o=n.elems[0].innerText,i=n.attr("href"),this.createPanel(o,i))):t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),""))},p.prototype.createPanel=function(e,t){e=u.default(this.editor,e,t),new s.default(this,e).create()},p.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()},n=p;function p(e){var t=l.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');t=o.call(this,t,e)||this;return d.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(28)),a=o(n(17)),l=o(n(29)),u=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),c=o.__importDefault(n(3)),s=o.__importStar(n(96)),d=n(323);t.default=function(e,t,n){var o,i=u.getRandom("input-link"),f=u.getRandom("input-text"),p=u.getRandom("btn-ok"),h=u.getRandom("btn-del"),m=s.default(e)?"inline-block":"none";function A(){var t;s.default(e)&&(t=e.selection.getSelectionContainerElem())&&(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="'+f+'"\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="'+h+'" class="gray right" style="display:'+m+'">\n '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+p,type:"click",fn:function(){var t=e.selection.getSelectionContainerElem(),n=null==t?void 0:t.elems[0],o=(e.selection.restoreSelection(),e.selection.getSelectionRangeTopNodes()[0].getNode()),l=window.getSelection(),u=c.default("#"+i),p=c.default("#"+f),h=(u=(0,a.default)(u=u.val()).call(u),p=(0,a.default)(p=p.val()).call(p),"");o=null==(h=!l||null!=l&&l.isCollapsed?h:null==(l=d.insertHtml(l,o))?void 0:(0,a.default)(l).call(l))?void 0:h.replace(/<.*?>/g,""),h=null!=(l=null==o?void 0:o.length)?l:0;if(h<=p.length&&(l=p.substring(0,h),h=p.substring(h),o===l)&&(p=o+h),u&&((t,n)=>{if(void 0!==(t=e.config.linkCheck(t,n))){if(!0===t)return 1;e.config.customAlert(t,"warning")}})(p=p||u,u)){if("A"===(null==n?void 0:n.nodeName))n.setAttribute("href",u),n.innerText=p;else{if("A"!==(null==n?void 0:n.nodeName)&&(0,r.default)(l=s.EXTRA_TAG).call(l,n.nodeName)&&(o=s.getParentNodeA(t),o))return o.setAttribute("href",u),n.innerText=p,!0;h=u,t=(l=p).replace(/</g,"&lt;").replace(/>/g,"&gt;"),(o=(t=c.default('<a target="_blank">'+t+"</a>")).elems[0]).innerText=l,o.href=h,s.default(e)&&A(),e.cmd.do("insertElem",t)}return!0}},bindEnter:!0},{selector:"#"+h,type:"click",fn:function(){var t,n,i;return s.default(e)&&(A(),"A"===o.getNodeName()?(n=(t=o.elems[0]).parentElement)&&(0,r.default)(i=s.EXTRA_TAG).call(i,n.nodeName)?n.innerHTML=t.innerHTML:e.cmd.do("insertHTML","<span>"+t.innerHTML+"</span>"):(i=s.getParentNodeA(o).innerHTML,e.cmd.do("insertHTML","<span>"+i+"</span>"))),!0}}]}],setLinkValue:function(e,o){var r="",a="";"text"===o&&(r="#"+f,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){for(var n=e,o=e;n.textContent!==t&&"P"!==(null==(n=(o=n).parentNode?null==n?void 0:n.parentNode:n)?void 0:n.nodeName););return o}function l(e,t){var n,o=e.nodeName,i="";return 3===e.nodeType||/^(h|H)[1-6]$/.test(o)?t:(1===e.nodeType&&((n=e.getAttribute("style"))&&(i=i+' style="'+n+'"'),(n=e.getAttribute("face"))&&(i=i+' face="'+n+'"'),n=e.getAttribute("color"))&&(i=i+' color="'+n+'"'),"<"+(o=o.toLowerCase())+i+">"+t+"</"+o+">")}function u(e,t,n,o){for(var i,r=null==(i=t.textContent)?void 0:i.substring(n,o),a=t,u="";r=u=l(a,null!=r?r:""),(a=null==a?void 0:a.parentElement)&&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=e.anchorNode,o=e.focusNode,i=e.anchorOffset,r=(e=e.focusOffset,null!=(r=t.textContent)?r:""),s=(t=(e=>{for(var t,n=null!=(t=e.textContent)?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),""),d="",f="",p=n,h=o,m=n;if(null!=n&&n.isEqualNode(null!=o?o:null))return c(t,u(r,n,i,e));for(n&&(s=u(r,n,null!=i?i:0)),o&&(f=u(r,o,0,e)),n&&(p=a(n,r)),o&&(h=a(o,r)),m=null!=(i=null==p?void 0:p.nextSibling)?i:n;null==m||!m.isEqualNode(null!=h?h:null);){"#text"===(null==m?void 0:m.nodeName)?d+=null==m?void 0:m.textContent:(A=null==(A=null==(A=null==m?void 0:m.firstChild)?void 0:A.parentElement)?void 0:A.innerHTML,m&&(d+=l(m,null!=A?A:"")));var A,v=null!=(A=null==m?void 0:m.nextSibling)?A:m;if(v===m)break;m=v}return c(t,""+s+d+f)}},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)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(3))),l=o.__importDefault(n(39)),u=n(96);function c(e){var t;return{showLinkTooltip:function(n){var o=[{$elem:a.default("<span>"+e.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){return t=t.attr("href"),window.open(t,"_target"),!0}},{$elem:a.default("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n,o=t.childNodes();return"IMG"===(null==o?void 0:o.getNodeName())?(o=null==(o=null==(o=e.selection.getSelectionContainerElem())?void 0:o.children())?void 0:o.elems[0].children[0],e.cmd.do("insertHTML","<img \n src="+(null==o?void 0:o.getAttribute("src"))+" \n style="+(null==o?void 0:o.getAttribute("style"))+">")):(t=(o=t.elems[0]).innerHTML,(o=o.parentElement)&&(0,r.default)(n=u.EXTRA_TAG).call(n,o.nodeName)?o.innerHTML=t:e.cmd.do("insertHTML","<span>"+t+"</span>")),!0}}];(t=new l.default(e,n,o)).create()},hideLinkTooltip:function(){t&&(t.remove(),t=null)}}}t.default=function(e){var t=(n=c(e)).showLinkTooltip,n=n.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3));o=r.default,i.__extends(l,o),l.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())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},n=l;function l(e){var t=a.default('<div class="w-e-menu" data-title="斜体">\n <i class="w-e-icon-italic"></i>\n </div>');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3));o=r.default,i.__extends(l,o),l.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())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},n=l;function l(e){var t=a.default('<div class="w-e-menu" data-title="下划线">\n <i class="w-e-icon-underline"></i>\n </div>');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3));o=r.default,i.__extends(l,o),l.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())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},n=l;function l(e){var t=a.default('<div class="w-e-menu" data-title="删除线">\n <i class="w-e-icon-strikethrough"></i>\n </div>');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(24)),a=i.__importDefault(n(3)),l=i.__importDefault(n(330));o=r.default,i.__extends(u,o),u.prototype.command=function(e){var t,n,o=this.editor,i=o.selection.isSelectionEmpty(),r=null==(r=o.selection.getSelectionContainerElem())?void 0:r.elems[0];null!=r&&(n="p"!==(null==r?void 0:r.nodeName.toLowerCase()),t=(null==r?void 0:r.getAttribute("face"))===e,i&&(n&&!t&&(n=o.selection.getSelectionRangeTopNodes(),o.selection.createRangeByElem(n[0]),o.selection.moveCursor(n[0].elems[0])),o.selection.setRangeToElem(r),o.selection.createEmptyRange()),o.cmd.do("fontName",e),i)&&(o.selection.collapseRange(),o.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=a.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 l.default(e.config.fontNames).getItemList(),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},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){var t=this;this.itemList=[],(0,r.default)(e).call(e,(function(e){var n="string"==typeof e?e:e.value;e="string"==typeof e?e:e.name;t.itemList.push({$elem:a.default("<p style=\"font-family:'"+n+"'\">"+e+"</p>"),value:e})}))}l.prototype.getItemList=function(){return this.itemList},t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(24)),a=i.__importDefault(n(3)),l=i.__importDefault(n(332));o=r.default,i.__extends(u,o),u.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty();null!=(null==(t=n.selection.getSelectionContainerElem())?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),o)&&(n.selection.collapseRange(),n.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=a.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 l.default(e.config.fontSizes).getItemList(),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3));function i(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})}}i.prototype.getItemList=function(){return this.itemList},t.default=i},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=i(n(27)),u=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3))),c=["LI"],s=["BLOCKQUOTE"];o=r.default,i.__extends(d,o),d.prototype.command=function(e){var t=this.editor,n=t.selection,o=n.getSelectionContainerElem();n.saveRange(),t=t.selection.getSelectionRangeTopNodes();if(null!=o&&o.length)if(this.isSpecialNode(o,t[0])||this.isSpecialTopNode(t[0])){if(o=this.getSpecialNodeUntilTop(o,t[0]),null==o)return;u.default(o).css("text-align",e)}else(0,a.default)(t).call(t,(function(t){t.css("text-align",e)}));n.restoreSelection()},d.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],o=t.elems[0];null!=n;){if(-1!==(0,l.default)(c).call(c,null==n?void 0:n.nodeName))return n;if(n.parentNode===o)return n;n=n.parentNode}return n},d.prototype.isSpecialNode=function(e,t){return e=this.getSpecialNodeUntilTop(e,t),null!=e&&-1!==(0,l.default)(c).call(c,e.nodeName)},d.prototype.isSpecialTopNode=function(e){return null!=e&&-1!==(0,l.default)(s).call(s,null==(e=e.elems[0])?void 0:e.nodeName)},d.prototype.tryChangeActive=function(){},n=d;function d(e){var t=this,n=u.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:u.default('<p>\n <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n '+e.i18next.t("menus.dropListMenu.justify.靠左")+"\n </p>"),value:"left"},{$elem:u.default('<p>\n <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n '+e.i18next.t("menus.dropListMenu.justify.居中")+"\n </p>"),value:"center"},{$elem:u.default('<p>\n <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n '+e.i18next.t("menus.dropListMenu.justify.靠右")+"\n </p>"),value:"right"},{$elem:u.default('<p>\n <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n '+e.i18next.t("menus.dropListMenu.justify.两端")+"\n </p>"),value:"justify"}],clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=i.__importDefault(n(23)),i.__importDefault(n(335))),c=i.__importDefault(n(336)),s=n(7);o=r.default,i.__extends(d,o),d.prototype.clickHandler=function(){var e,t,n,o=this.editor,i=o.selection.isSelectionEmpty(),r=o.selection.getSelectionRangeTopNodes(),u=r[r.length-1];if("BLOCKQUOTE"!==this.getTopNodeName())return t=c.default(r),o.$textElem.equal(u)?(n=null==(n=o.selection.getSelectionContainerElem())?void 0:n.elems[0],o.selection.createRangeByElems(n.children[0],n.children[0]),r=o.selection.getSelectionRangeTopNodes(),t=c.default(r),u.append(t)):t.insertAfter(u),this.delSelectNode(r),null==(r=null==(n=t.childNodes())?void 0:n.last().getNode())?void 0:(r.textContent?o.selection.moveCursor(r):o.selection.moveCursor(r,0),this.tryChangeActive(),void l.default(s.EMPTY_P).insertAfter(t));r=(n=l.default(u.childNodes())).length,e=u,(0,a.default)(n).call(n,(function(t){t=l.default(t),t.insertAfter(e),e=t})),u.remove(),o.selection.moveCursor(n.elems[r-1]),this.tryChangeActive(),i&&(o.selection.collapseRange(),o.selection.restoreSelection())},d.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null==(e=this.editor.selection.getSelectionRangeTopNodes()[0])?void 0:e.getNodeName())?this.active():this.unActive()},d.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},d.prototype.delSelectNode=function(e){(0,a.default)(e).call(e,(function(e){e.remove()}))},n=d;function d(e){var t=l.default('<div class="w-e-menu" data-title="引用">\n <i class="w-e-icon-quotes-left"></i>\n </div>');t=o.call(this,t,e)||this;return u.default(e),t}t.default=n},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];"BLOCKQUOTE"===(null==a?void 0:a.getNodeName())&&("BLOCKQUOTE"===o.getNodeName()&&(n=null==(n=o.childNodes())?void 0:n.getNode(),e.selection.moveCursor(n)),""===o.text()&&(t.preventDefault(),o.remove(),(n=r.default(i.EMPTY_P)).insertAfter(a),e.selection.moveCursor(n.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,i=n(0),r=i(n(1)),a=i(n(26)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3))),u=n(6);o=r.default,i.__extends(c,o),c.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null==(i=n.selection.getSelectionContainerElem())?void 0:i.elems[0];null!=i&&(t="p"!==(null==i?void 0:i.nodeName.toLowerCase()),i=null==i?void 0:i.style.backgroundColor,i=u.hexToRgb(e)===i,o&&(t&&!i&&(t=n.selection.getSelectionRangeTopNodes(),n.selection.createRangeByElem(t[0]),n.selection.moveCursor(t[0].elems[0])),n.selection.createEmptyRange()),n.cmd.do("backColor",e),o)&&(n.selection.collapseRange(),n.selection.restoreSelection())},c.prototype.tryChangeActive=function(){},n=c;function c(e){var t=this,n=l.default('<div class="w-e-menu" data-title="背景色">\n <i class="w-e-icon-paint-brush"></i>\n </div>'),i={width:120,title:"背景颜色",type:"inline-block",list:(0,a.default)(i=e.config.colors).call(i,(function(e){return{$elem:l.default('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}})),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(26)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3)));o=r.default,i.__extends(u,o),u.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null==(i=n.selection.getSelectionContainerElem())?void 0:i.elems[0];null!=i&&(t=n.selection.getSelectionText(),"A"===i.nodeName&&i.textContent===t&&(t=l.default("<span>&#8203;</span>").getNode(),i.appendChild(t)),n.cmd.do("foreColor",e),o)&&(n.selection.collapseRange(),n.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=l.default('<div class="w-e-menu" data-title="文字颜色">\n <i class="w-e-icon-pencil2"></i>\n </div>'),i={width:120,title:"文字颜色",type:"inline-block",list:(0,a.default)(i=e.config.colors).call(i,(function(e){return{$elem:l.default('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}})),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(33)),l=i.__importDefault(n(38)),u=i.__importDefault(n(340)),c=i.__importDefault(n(346));o=l.default,i.__extends(s,o),s.prototype.clickHandler=function(){this.createPanel("")},s.prototype.createPanel=function(e){e=u.default(this.editor,e),new a.default(this,e).create()},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=r.default('<div class="w-e-menu" data-title="视频">\n <i class="w-e-icon-play"></i>\n </div>');t=o.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(17)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=o.__importDefault(n(3)),u=o.__importDefault(n(341)),c=n(7);t.default=function(e,t){var n=e.config,o=new u.default(e),i=a.getRandom("input-iframe"),s=a.getRandom("btn-ok"),d=a.getRandom("input-upload"),f=a.getRandom("btn-local-ok");return f=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n <div id="'+f+'" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="'+d+'" type="file" accept="video/*"/>\n </div>\n </div>',events:[{selector:"#"+f,type:"click",fn:function(){var e=l.default("#"+d).elems[0];if(!e)return!0;e.click()}},{selector:"#"+d,type:"change",fn:function(){var e=l.default("#"+d).elems[0];return e&&(e=e.files).length&&o.uploadVideo(e),!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="'+s+'" class="right">\n '+e.i18next.t("插入")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+s,type:"click",fn:function(){var t=l.default("#"+i);t=(0,r.default)(t=t.val()).call(t);if(t&&(t=>{if(!0===(t=e.config.onlineVideoCheck(t)))return 1;"string"==typeof t&&e.config.customAlert(t,"error")})(t))return t=t,e.cmd.do("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t),!0},bindEnter:!0}]}],s={width:300,height:0,tabs:[]},window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&s.tabs.push(f[0]),n.showLinkVideo&&s.tabs.push(f[1]),s}},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)),c=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),s=o.__importDefault(n(135)),d=o.__importDefault(n(136)),f=n(7),p=n(6);function h(e){this.editor=e}h.prototype.uploadVideo=function(e){var t,n,o,i,f,p,h,m,A,v,g,y,w,x,_,E,b,C=this;e.length&&(t=this.editor,n=t.config,o=function(e){return t.i18next.t("validate."+e)},E=n.uploadVideoServer,i=n.uploadVideoMaxSize/1024,f=n.uploadVideoName,p=n.uploadVideoParams,h=n.uploadVideoParamsWithUrl,m=n.uploadVideoHeaders,A=n.uploadVideoHooks,v=n.uploadVideoTimeout,g=n.withVideoCredentials,b=n.customUploadVideo,y=n.uploadVideoAccept,w=[],x=[],c.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(y instanceof Array?(0,r.default)(y).call(y,(function(e){return e===t.split(".")[t.split(".").length-1]}))?i<n?x.push("【"+t+"】"+o("大于")+" "+i+"M"):w.push(e):x.push("【"+t+"】"+o("不是视频")):x.push("【"+y+"】"+o("uploadVideoAccept 不是Array")))})),x.length?n.customAlert(o("视频验证未通过")+": \n"+x.join("\n"),"warning"):0===w.length?n.customAlert(o("传入的文件不合法"),"warning"):b&&"function"==typeof b?b(w,(0,a.default)(e=this.insertVideo).call(e,this)):(_=new FormData,(0,l.default)(w).call(w,(function(e,t){var n=f||e.name;1<w.length&&(n+=t+1),_.append(n,e)})),E&&(E=(b=E.split("#"))[0],e=b[1]||"",(0,l.default)(c).call(c,p,(function(e,t){h&&(0<(0,u.default)(E).call(E,"?")?E+="&":E+="?",E=E+e+"="+t),_.append(e,t)})),e&&(E+="#"+e),"string"==typeof(b=s.default(E,{timeout:v,formData:_,headers:m,withCredentials:!!g,beforeSend:function(e){if(A.before)return A.before(e,t,w)},onTimeout:function(e){n.customAlert(o("上传视频超时"),"error"),A.timeout&&A.timeout(e,t)},onProgress:function(e,n){var o=new d.default(t);n.lengthComputable&&(e=n.loaded/n.total,o.show(e))},onError:function(e){n.customAlert(o("上传视频错误"),"error",o("上传视频错误")+""+o("服务器返回状态")+": "+e.status),A.error&&A.error(e,t)},onFail:function(e,i){n.customAlert(o("上传视频失败"),"error",o("上传视频返回结果错误")+""+o("返回结果")+": "+i),A.fail&&A.fail(e,t,i)},onSuccess:function(e,i){var r;A.customInsert?A.customInsert((0,a.default)(r=C.insertVideo).call(r,C),i,t):"0"!=i.errno?(n.customAlert(o("上传视频失败"),"error",o("上传视频返回结果错误")+""+o("返回结果")+" errno="+i.errno),A.fail&&A.fail(e,t,i)):(C.insertVideo(i.data.url),A.success&&A.success(e,t,i))}})))&&n.customAlert(b,"error")))},h.prototype.insertVideo=function(e){function t(e,t){return o.i18next.t((t=void 0===t?r:t)+e)}var n,o=this.editor,i=o.config,r="validate.";i.customInsertVideo?i.customInsertVideo(e):(p.UA.isFirefox?o.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):o.cmd.do("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+f.EMPTY_P),(n=document.createElement("video")).onload=function(){n=null},n.onerror=function(){i.customAlert(t("插入视频错误"),"error","wangEditor: "+t("插入视频错误")+""+t("视频链接")+' "'+e+'"'+t("下载链接失败")),n=null},n.onabort=function(){return n=null},n.src=e)},t.default=h},function(e,t,n){e.exports=n(343)},function(e,t,n){n=n(344),e.exports=n},function(e,t,n){n(345),n=n(9),e.exports=n.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){function t(t,n){return e.i18next.t((n=void 0===n?"":n)+t)}var n;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>"+t("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:i.default("<span>"+t("menus.justify.靠左")+"</span>"),onClick:function(e,t){return a.default(t,"left"),!0}},{$elem:i.default("<span>"+t("menus.justify.居中")+"</span>"),onClick:function(e,t){return a.default(t,"center"),!0}},{$elem:i.default("<span>"+t("menus.justify.靠右")+"</span>"),onClick:function(e,t){return a.default(t,"right"),!0}}];(n=new r.default(e,o,l)).create()},hideVideoTooltip:function(){n&&(n.remove(),n=null)}}}t.createShowHideFn=l,t.default=function(e){var t=(n=l(e)).showVideoTooltip,n=n.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},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){(e=((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.nodeName))return null;o=o.parentNode}return o})(e,["P"]))&&a.default(e).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){var t,n;o.UA.isFirefox&&(t=e.txt,n=e.selection,t.eventHooks.keydownEvents.push((function(t){var o=n.getSelectionContainerElem();o&&(o=(o=o.getNodeTop(e)).length&&o.prev().length?o.prev():null)&&o.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&o.remove()})))}},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(26)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),n(7)),u=i.__importDefault(n(3)),c=i.__importDefault(n(33)),s=(r=i.__importDefault(n(38)),i.__importDefault(n(351))),d=i.__importDefault(n(364));o=r.default,i.__extends(f,o),f.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},f.prototype.createPanel=function(){var e=this.imgPanelConfig;e=new c.default(this,e);this.setPanel(e),e.create()},f.prototype.tryChangeActive=function(){},n=f;function f(e){var t,n=this,i=u.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),r=d.default(e);return r.onlyUploadConf&&(i=r.onlyUploadConf.$elem,(0,a.default)(t=r.onlyUploadConf.events).call(t,(function(e){var t=e.type,n=e.fn||l.EMPTY_FN;i.on(t,(function(e){e.stopPropagation(),n(e)}))}))),(n=o.call(this,i,e)||this).imgPanelConfig=r,s.default(e),n}t.default=n},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){var n,o,a;!(e=>{for(var t=(null==(e=e.clipboardData)?void 0:e.types)||[],n=0;n<t.length;n++)if("Files"===t[n])return 1})(e)&&(o=e,a=(n=(n=t).config).pasteFilterStyle,i.getPasteHtml(o,a,n.pasteIgnoreImg)||i.getPasteText(o))||!(a=i.getPasteImgs(e)).length||new r.default(t).uploadImg(a)}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){(t=t.dataTransfer&&t.dataTransfer.files)&&t.length&&new o.default(e).uploadImg(t)}))}},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)),u=(n(360),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,s,d=e.$textContainerElem,f=(n=d,(o=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>')).hide(),n.append(o),o);function p(){(0,r.default)(d).call(d,".w-e-img-drag-mask").hide()}return s=d,(i=f).on("click",(function(e){e.stopPropagation()})),i.on("mousedown",".w-e-img-drag-rb",(function(e){var n,o,u,d,f,p,h,m,A,v,g;function y(){g.off("mousemove",w),g.off("mouseup",x)}function w(e){e.stopPropagation(),e.preventDefault(),(A=d+(e.clientX-n))/(v=f+(e.clientY-o))!=m&&(v=A/m),A=(0,a.default)(A.toFixed(2)),v=(0,a.default)(v.toFixed(2)),(0,r.default)(i).call(i,".w-e-img-drag-show-size").text(A.toFixed(2).replace(".00","")+"px * "+v.toFixed(2).replace(".00","")+"px"),c(i,A,v,p,h)}function x(){t.attr("width",A+""),t.attr("height",v+"");var e=t.getBoundingClientRect();c(i,A,v,e.left-u.left,e.top-u.top),y()}e.preventDefault(),t&&(n=e.clientX,o=e.clientY,u=s.getBoundingClientRect(),e=t.getBoundingClientRect(),d=e.width,f=e.height,p=e.left-u.left,h=e.top-u.top,m=d/f,A=d,v=f,(g=l.default(document)).on("mousemove",w),g.on("mouseup",x),g.on("mouseleave",y))})),l.default(document).on("click",p),e.beforeDestroy((function(){l.default(document).off("click",p)})),{showDrag:function(e){if(u.UA.isIE())return!1;var n,o,i,l;e&&(o=f,e=t=e,n=(n=d).getBoundingClientRect(),i=(e=e.getBoundingClientRect()).width.toFixed(2),l=e.height.toFixed(2),(0,r.default)(o).call(o,".w-e-img-drag-show-size").text(i+"px * "+l+"px"),c(o,(0,a.default)(i),(0,a.default)(l),e.left-n.left,e.top-n.top),o.show())},hideDrag:p}}t.createShowHideFn=s,t.default=function(e){var t=(n=s(e)).showDrag,n=n.hideDrag;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){e.exports=n(356)},function(e,t,n){n=n(357),e.exports=n},function(e,t,n){n(358),n=n(9),e.exports=n.parseFloat},function(e,t,n){var o=n(5);n=n(359);o({global:!0,forced:parseFloat!=n},{parseFloat:n})},function(e,t,n){var o=n(8),i=n(90).trim,r=(n=n(68),o.parseFloat);o=1/r(n+"-0")!=-1/0;e.exports=o?function(e){e=i(String(e));var t=r(e);return 0===t&&"-"==e.charAt(0)?-0:t}:r},function(e,t,n){var o=n(20),i=(n=n(361),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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){function t(t,n){return e.i18next.t((n=void 0===n?"":n)+t)}var n;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>"+t("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),o.attr("data-href")&&a.push({$elem:i.default("<span>"+t("查看链接")+"</span>"),onClick:function(e,t){return t=t.attr("data-href"),t&&(t=decodeURIComponent(t),window.open(t,"_target")),!0}}),(n=new r.default(e,o,a)).create()},hideImgTooltip:function(){n&&(n.remove(),n=null)}}}t.createShowHideFn=a,t.default=function(e){var t=(n=a(e)).showImgTooltip,n=n.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.imgDragBarMouseDownEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},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=o.startOffset,null);if(0===o)for(;i!==t.elems[0]&&t.elems[0].contains(i)&&i.parentNode&&!r;){if(i.previousSibling){r=i.previousSibling;break}i=i.parentNode}else 3!==i.nodeType&&(r=i.childNodes[o-1]);if(r){for(var a=r;a.childNodes.length;)a=a.childNodes[a.childNodes.length-1];a instanceof HTMLElement&&"IMG"===a.tagName&&(a.remove(),e.preventDefault())}}}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=o(n(17)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(3))),u=n(6),c=o.__importDefault(n(97));t.default=function(e){function t(t,n){return e.i18next.t((n=void 0===n?"menus.panelMenus.image.":n)+t)}var n=e.config,o=new c.default(e),i=u.getRandom("up-trigger-id"),s=u.getRandom("up-file-id"),d=u.getRandom("input-link-url"),f=u.getRandom("input-link-url-alt"),p=u.getRandom("input-link-url-href"),h=u.getRandom("btn-link");function m(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="'+s+'" type="file" '+A+' accept="'+v+'"/>\n </div>\n </div>'}var A=1===n.uploadImgMaxLength?"":'multiple="multiple"',v=(0,r.default)(g=n.uploadImgAccept).call(g,(function(e){return"image/"+e})).join(","),g=[{selector:"#"+i,type:"click",fn:function(){var e=n.uploadImgFromMedia;return e&&"function"==typeof e?(e(),!0):!(e=l.default("#"+s).elems[0])||void e.click()}},{selector:"#"+s,type:"change",fn:function(){var e,t=l.default("#"+s).elems[0];return t&&(null!=(e=t.files)&&e.length&&o.uploadImg(e),t)&&(t.value=""),!0}}],y=['<input\n id="'+d+'"\n type="text"\n class="block"\n placeholder="'+t("图片地址")+'"/>'];n.showLinkImgAlt&&y.push('\n <input\n id="'+f+'"\n type="text"\n class="block"\n placeholder="'+t("图片文字说明")+'"/>'),n.showLinkImgHref&&y.push('\n <input\n id="'+p+'"\n type="text"\n class="block"\n placeholder="'+t("跳转链接")+'"/>'),y=[{title:t("上传图片"),tpl:m("w-e-up-img-container","w-e-icon-upload2",""),events:g},{title:t("网络图片"),tpl:"<div>\n "+y.join("")+'\n <div class="w-e-button-container">\n <button type="button" id="'+h+'" class="right">'+t("插入","")+"</button>\n </div>\n </div>",events:[{selector:"#"+h,type:"click",fn:function(){var e,t,i=l.default("#"+d);i=(0,a.default)(i=i.val()).call(i);if(i&&(n.showLinkImgAlt&&(e=(0,a.default)(e=l.default("#"+f).val()).call(e)),n.showLinkImgHref&&(t=(0,a.default)(t=l.default("#"+p).val()).call(t)),(e=>{if(!0===(e=n.linkImgCheck(e)))return 1;"string"==typeof e&&n.customAlert(e,"error")})(i)))return o.insertImg(i,e,t),!0},bindEnter:!0}]}],h={width:300,height:0,tabs:[],onlyUploadConf:{$elem:l.default(m("w-e-menu","w-e-icon-image","图片")),events:g}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&h.tabs.push(y[0]),n.showLinkImg&&(h.tabs.push(y[1]),h.onlyUploadConf=void 0),h}},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=i.__importDefault(n(24)),i.__importDefault(n(366)));o=r.default,i.__extends(c,o),c.prototype.command=function(e){var t,n=this.editor,o=n.selection.getSelectionContainerElem();o&&n.$textElem.equal(o)?0<(t=n.selection.getSelectionRangeTopNodes()).length&&(0,a.default)(t).call(t,(function(t){u.default(l.default(t),e,n)})):o&&0<o.length&&(0,a.default)(o).call(o,(function(t){u.default(l.default(t),e,n)})),n.selection.restoreSelection(),this.tryChangeActive()},c.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem();t=l.default(t).getNodeTop(e);t.length<=0||(""!=t.elems[0].style.paddingLeft?this.active():this.unActive())},n=c;function c(e){var t=this,n=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 '+e.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 '+e.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n <p>"),value:"decrease"}],clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(45)),a=o(n(17)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(367))),u=o.__importDefault(n(368)),c=/^(\d+)(\w+)$/,s=/^(\d+)%$/;function d(e){var t,n;e=e.config.indentation;if("string"==typeof e){if(c.test(e))return t=(n=(0,r.default)(n=(0,a.default)(e).call(e).match(c)).call(n,1,3))[0],n=n[1],{value:Number(t),unit:n};if(s.test(e))return{value:Number((0,a.default)(e).call(e).match(s)[1]),unit:"%"}}else if(void 0!==e.value&&e.unit)return e;return{value:2,unit:"em"}}t.default=function(e,t,n){e=e.getNodeTop(n),/^(P|H[0-9]*)$/.test(e.getNodeName())&&("increase"===t?l.default(e,d(n)):"decrease"===t&&u.default(e,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];""===n.style.paddingLeft?e.css("padding-left",t.value+t.unit):(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),n=Number(n)+t.value,e.css("padding-left",""+n+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];""!==n.style.paddingLeft&&(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),0<(n=Number(n)-t.value)?e.css("padding-left",""+n+t.unit):e.css("padding-left",""))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(38)),l=i.__importDefault(n(33)),u=i.__importDefault(n(370));o=a.default,i.__extends(c,o),c.prototype.createPanel=function(){var e=u.default(this.editor);new l.default(this,e).create()},c.prototype.clickHandler=function(){this.createPanel()},c.prototype.tryChangeActive=function(){},n=c;function c(e){var t=r.default('<div class="w-e-menu" data-title="表情">\n <i class="w-e-icon-happy"></i>\n </div>');return o.call(this,t,e)||this}t.default=n},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;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>"+(o=[],(o="image"==(t=t).type?(o=(0,r.default)(n=t.content).call(n,(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>'})),(0,a.default)(o).call(o,(function(e){return""!==e}))):(0,r.default)(n=t.content).call(n,(function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"}))).join("").replace(/&nbsp;/g,"")+"</div>"),events:[{selector:".eleImg",type:"click",fn:function(t){var n;t=u.default(t.target);return n="IMG"===t.getNodeName()?(0,l.default)(n=t.parent().html()).call(n):"<span>"+t.html()+"</span>",e.cmd.do("insertHTML",n),!0}}]};var n,o}))}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(372)),l=i.__importDefault(n(374)),u=i.__importDefault(n(375)),c=i.__importDefault(n(376)),s=(i=i.__importDefault(n(377)),(n=o=t.ClassType||(t.ClassType={})).Wrap="WrapListHandle",n.Join="JoinListHandle",n.StartJoin="StartJoinListHandle",n.EndJoin="EndJoinListHandle",n.Other="OtherListHandle",{WrapListHandle:a.default,JoinListHandle:l.default,StartJoinListHandle:u.default,EndJoinListHandle:c.default,OtherListHandle:i.default});function d(e){this.handle=e,this.handle.exec()}t.createListHandle=function(e,t,n){if(e===o.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==o.Other?new s[e](t):new s[e](t,n)},d.prototype.getSelectionRangeElem=function(){return r.default(this.handle.selectionRangeElem.get())},t.default=d},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=n(58),n(47));o=r.ListHandle,i.__extends(c,o),c.prototype.exec=function(){var e,t=this.options,n=t.listType,o=t.listTarget,i=t.$selectionElem,r=t.$startElem,c=(t=t.$endElem,[]),s=null==i?void 0:i.getNodeName(),d=r.prior,f=t.prior;if((r.prior||t.prior)&&(null!=d&&d.prev().length||null!=f&&f.next().length)){for(var p=d;p.length;)c.push(p),p=null!=f&&f.equal(p)?l.default(void 0):p.next();r=d.prev();var h=f.next();if(s===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(o),(0,a.default)(c).call(c,(function(t){e.append(t.elems[0])}))),r.length&&h.length){for(var m=[];h.length;)m.push(h),h=h.next();var A,v=u.createElement(s);(0,a.default)(m).call(m,(function(e){v.append(e.elems[0])})),l.default(v).insertAfter(i),this.selectionRangeElem.set(e),(A=i.next()).length?u.insertBefore(i,e,A.elems[0]):i.parent().elems[0].append(e)}else r.length?(this.selectionRangeElem.set(e),(A=i.next()).length?u.insertBefore(i,e,A.elems[0]):i.parent().elems[0].append(e)):(this.selectionRangeElem.set(e),u.insertBefore(i,e,i.elems[0]))}else(0,a.default)(t=null==i?void 0:i.children()).call(t,(function(e){c.push(l.default(e))})),s===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(o),(0,a.default)(c).call(c,(function(t){e.appendChild(t.elems[0])}))),this.selectionRangeElem.set(e),u.insertBefore(i,e,i.elems[0]),i.remove()},n=c;function c(e){return o.call(this,e)||this}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4));function a(){this._element=null}(0,i.default)(t,"__esModule",{value:!0}),a.prototype.set=function(e){var t,n;e instanceof DocumentFragment&&(n=[],(0,r.default)(t=e.childNodes).call(t,(function(e){n.push(e)})),e=n),this._element=e},a.prototype.get=function(){return this._element},a.prototype.clear=function(){this._element=null},t.default=a},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=n(58),n(47));o=r.ListHandle,i.__extends(c,o),c.prototype.exec=function(){var e,t=this.options,n=t.editor,o=t.listType,i=t.listTarget,r=t.$startElem,c=(t=t.$endElem,n.selection.getSelectionRangeTopNodes());n=null==r?void 0:r.getNodeName();if(n===(null==t?void 0:t.getNodeName()))if(2<c.length)if(c.shift(),c.pop(),e=u.createElementFragment(u.filterSelectionNodes(c),u.createDocumentFragment()),n===o)null!=(A=t.children())&&(0,a.default)(A).call(A,(function(t){e.append(t)})),t.remove(),this.selectionRangeElem.set(e),r.elems[0].append(e);else{for(var s=document.createDocumentFragment(),d=document.createDocumentFragment(),f=u.getStartPoint(r);f.length;){var p=f.elems[0];f=f.next(),s.append(p)}for(var h=u.getEndPoint(t),m=[];h.length;)m.unshift(h.elems[0]),h=h.prev();(0,a.default)(m).call(m,(function(e){d.append(e)}));var A=u.createElement(i);A.append(s),A.append(e),A.append(d),e=A,this.selectionRangeElem.set(e),l.default(A).insertAfter(r),null!=(A=r.children())&&A.length||r.remove(),null!=(A=t.children())&&A.length||t.remove()}else{for(c.length=0,f=u.getStartPoint(r);f.length;)c.push(f),f=f.next();for(h=u.getEndPoint(t),m=[];h.length;)m.unshift(h),h=h.prev();c.push.apply(c,m),n===o?(e=u.createElementFragment(c,u.createDocumentFragment(),"p"),this.selectionRangeElem.set(e),u.insertBefore(r,e,t.elems[0])):(e=u.createElement(i),(0,a.default)(c).call(c,(function(t){e.append(t.elems[0])})),this.selectionRangeElem.set(e),l.default(e).insertAfter(r)),null!=(A=r.children())&&A.length||t.remove(),null!=(i=t.children())&&i.length||t.remove()}else{var v=[];for(h=u.getEndPoint(t);h.length;)v.unshift(h),h=h.prev();var g=[];for(f=u.getStartPoint(r);f.length;)g.push(f),f=f.next();e=u.createDocumentFragment(),c.shift(),c.pop(),(0,a.default)(g).call(g,(function(t){return e.append(t.elems[0])})),e=u.createElementFragment(u.filterSelectionNodes(c),e),(0,a.default)(v).call(v,(function(t){return e.append(t.elems[0])})),this.selectionRangeElem.set(e),n===o?(r.elems[0].append(e),null!=(A=t.children())&&A.length||t.remove()):null!=(i=t.children())&&i.length?(n=t.children(),u.insertBefore(n,e,n.elems[0])):t.elems[0].append(e)}},n=c;function c(e){return o.call(this,e)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=n(58),n(47));o=r.ListHandle,i.__extends(c,o),c.prototype.exec=function(){for(var e,t=this.options,n=t.editor,o=t.listType,i=t.listTarget,r=(t=t.$startElem,n=n.selection.getSelectionRangeTopNodes(),null==t?void 0:t.getNodeName()),c=(n.shift(),[]),s=u.getStartPoint(t);s.length;)c.push(s),s=s.next();r===o?(e=u.createDocumentFragment(),(0,a.default)(c).call(c,(function(t){return e.append(t.elems[0])})),e=u.createElementFragment(u.filterSelectionNodes(n),e),this.selectionRangeElem.set(e),t.elems[0].append(e)):(e=u.createElement(i),(0,a.default)(c).call(c,(function(t){return e.append(t.elems[0])})),e=u.createElementFragment(u.filterSelectionNodes(n),e),this.selectionRangeElem.set(e),l.default(e).insertAfter(t),null!=(r=t.children())&&r.length||t.remove())},n=c;function c(e){return o.call(this,e)||this}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=n(58),n(47));o=r.ListHandle,i.__extends(c,o),c.prototype.exec=function(){for(var e,t=this.options,n=t.editor,o=t.listType,i=t.listTarget,r=(t=t.$endElem,n=n.selection.getSelectionRangeTopNodes(),null==t?void 0:t.getNodeName()),c=(n.pop(),[]),s=u.getEndPoint(t);s.length;)c.unshift(s),s=s.prev();r===o?(e=u.createElementFragment(u.filterSelectionNodes(n),u.createDocumentFragment()),(0,a.default)(c).call(c,(function(t){return e.append(t.elems[0])})),this.selectionRangeElem.set(e),null!=(r=t.children())&&r.length?(o=t.children(),u.insertBefore(o,e,o.elems[0])):t.elems[0].append(e)):((r=u.filterSelectionNodes(n)).push.apply(r,c),e=u.createElementFragment(r,u.createElement(i)),this.selectionRangeElem.set(e),l.default(e).insertBefore(t),null!=(o=t.children())&&o.length||t.remove())},n=c;function c(e){return o.call(this,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=n(58),a=n(47);o=r.ListHandle,i.__extends(l,o),l.prototype.exec=function(){var e=this.options,t=e.editor;e=e.listTarget,t=t.selection.getSelectionRangeTopNodes(),t=a.createElementFragment(a.filterSelectionNodes(t),a.createElement(e));this.selectionRangeElem.set(t),this.range.insertNode(t)},n=l;function l(e,t){return e=o.call(this,e)||this,e.range=t,e}t.default=n},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=i(n(27)),u=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(24)),i.__importDefault(n(3))),c=i.__importDefault(n(379));o=r.default,i.__extends(s,o),s.prototype.command=function(e){var t=this.editor,n=(t.selection.restoreSelection(),u.default(t.selection.getSelectionContainerElem()));if(n.elems.length)if(n&&t.$textElem.equal(n)){for(var o=!1,i=u.default(t.selection.getSelectionStartElem()).elems[0],r=u.default(t.selection.getSelectionEndElem()).elems[0],a=this.getDom(i),l=this.getDom(r),c=n.elems[0].children,s=0;s<c.length;s++){var d=c[s];if("P"===u.default(d).getNodeName()&&(o=d===a||o)&&(u.default(d).css("line-height",e),d===l))return void(o=!1)}t.selection.createRangeByElems(i,r)}else i=n.elems[0],r=this.getDom(i),"P"===u.default(r).getNodeName()&&(u.default(r).css("line-height",e),t.selection.createRangeByElems(r,r))},s.prototype.getDom=function(e){return e=u.default(e).elems[0],e.parentNode?function e(t,n){var o=u.default(t.parentNode);return n.$textElem.equal(o)?t:e(o.elems[0],n)}(e,this.editor):e},s.prototype.styleProcessing=function(e){var t="";return(0,a.default)(e).call(e,(function(e){""!==e&&-1===(0,l.default)(e).call(e,"line-height")&&(t=t+e+";")})),t},s.prototype.setRange=function(e,t){var n=this.editor,o=(window.getSelection?window:document).getSelection(),i=(null!=o&&o.removeAllRanges(),document.createRange());i.setStart(e,0),i.setEnd(t,1),null!=o&&o.addRange(i),n.selection.saveRange(),null!=o&&o.removeAllRanges(),n.selection.restoreSelection()},s.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();t&&e.$textElem.equal(t)||0!==(t=u.default(e.selection.getSelectionStartElem())).length&&((e=(t=this.getDom(t.elems[0])).getAttribute("style")?t.getAttribute("style"):"")&&-1!==(0,l.default)(e).call(e,"line-height")?this.active():this.unActive())},n=s;function s(e){var t=this,n=u.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 c.default(e,e.config.lineHeights).getItemList(),clickHandler:function(n){e.selection.saveRange(),t.command(n)}};return t=o.call(this,n,e,i)||this}t.default=n},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,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})}))}l.prototype.getItemList=function(){return this.itemList},t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3));n=i.__importDefault(n(23)),o=n.default,i.__extends(a,o),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.revoke(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},n=a;function a(e){var t=r.default('<div class="w-e-menu" data-title="撤销">\n <i class="w-e-icon-undo"></i>\n </div>');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3));n=i.__importDefault(n(23)),o=n.default,i.__extends(a,o),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.restore(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},n=a;function a(e){var t=r.default('<div class="w-e-menu" data-title="恢复">\n <i class="w-e-icon-redo"></i>\n </div>');return o.call(this,t,e)||this}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(38)),a=i.__importDefault(n(3)),l=i.__importDefault(n(383)),u=i.__importDefault(n(33)),c=i.__importDefault(n(392));o=r.default,i.__extends(s,o),s.prototype.clickHandler=function(){this.createPanel()},s.prototype.createPanel=function(){var e=l.default(this.editor);new u.default(this,e).create()},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=a.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');t=o.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(384)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=o.__importDefault(n(3)),u=(n(389),o.__importDefault(n(391)));function c(e){return 0<e&&(0,r.default)(e)}t.default=function(e){function t(t){return e.i18next.t(t)}var n=new u.default(e),o=a.getRandom("w-col-id"),i=a.getRandom("w-row-id"),r=a.getRandom("btn-link"),s=[{title:t((s="menus.panelMenus.table.")+"插入表格"),tpl:'<div>\n <div class="w-e-table">\n <span>'+t("创建")+'</span>\n <input id="'+i+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+t(s+"行")+'</span>\n <input id="'+o+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+(t(s+"列")+t(s+"的")+t(s+"表格"))+'</span>\n </div>\n <div class="w-e-button-container">\n <button type="button" id="'+r+'" class="right">'+t("插入")+"</button>\n </div>\n </div>",events:[{selector:"#"+r,type:"click",fn:function(){var t=Number(l.default("#"+o).val()),r=Number(l.default("#"+i).val());return c(r)&&c(t)?(n.createAction(r,t),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}];return(r={width:330,height:0,tabs:[]}).tabs.push(s[0]),r}},function(e,t,n){e.exports=n(385)},function(e,t,n){n=n(386),e.exports=n},function(e,t,n){n(387),n=n(9),e.exports=n.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=n(390),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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));function a(e){this.editor=e}a.prototype.createAction=function(e,t){var n=this.editor,o=r.default(n.selection.getSelectionContainerElem()),i=r.default(o.elems[0]).parentUntilEditor("UL",n);o=r.default(o.elems[0]).parentUntilEditor("OL",n);i||o||(i=this.createTableHtml(e,t),n.cmd.do("insertHTML",i))},a.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},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;return{showTableTooltip:function(n){function o(t,n){return e.i18next.t((n=void 0===n?"menus.panelMenus.table.":n)+t)}var c=new l.default(e),f=[{$elem:i.default("<span>"+o("删除表格")+"</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>"+o("添加行")+"</span>"),onClick:function(e,t){var n,o;return!s(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(n=Number(c.getCurrentRowIndex(t.elems[0],n)),o=c.getTableHtml(t.elems[0]),o=d(t,o=c.getTableHtml(a.default.ProcessingRow(i.default(o),n).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o)),!0}},{$elem:i.default("<span>"+o("删除行")+"</span>"),onClick:function(e,t){var n,o,r,l;return!s(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(n=Number(c.getCurrentRowIndex(t.elems[0],n)),o=c.getTableHtml(t.elems[0]),r=a.default.DeleteRow(i.default(o),n).elems[0].children[0].children.length,l="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),l=d(t,l=0===r?u.EMPTY_P:c.getTableHtml(a.default.DeleteRow(i.default(o),n).elems[0])),e.cmd.do("insertHTML",l)),!0}},{$elem:i.default("<span>"+o("添加列")+"</span>"),onClick:function(e,t){var n,o;return s(e)||(n=i.default(e.selection.getSelectionStartElem()),n=c.getCurrentColIndex(n.elems[0]),o=c.getTableHtml(t.elems[0]),o=d(t,o=c.getTableHtml(a.default.ProcessingCol(i.default(o),n).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o)),!0}},{$elem:i.default("<span>"+o("删除列")+"</span>"),onClick:function(e,t){var n,o,r;return s(e)||(o=i.default(e.selection.getSelectionStartElem()),o=c.getCurrentColIndex(o.elems[0]),n=c.getTableHtml(t.elems[0]),o=(n=a.default.DeleteCol(i.default(n),o)).elems[0].children[0].children[0].children.length,r="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),r=d(t,r=0===o?u.EMPTY_P:c.getTableHtml(n.elems[0])),e.cmd.do("insertHTML",r)),!0}},{$elem:i.default("<span>"+o("设置表头")+"</span>"),onClick:function(e,t){var n,o;return!s(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(0!==(n=Number(c.getCurrentRowIndex(t.elems[0],n)))&&(n=0),o=c.getTableHtml(t.elems[0]),o=d(t,o=c.getTableHtml(a.default.setTheHeader(i.default(o),n,"th").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o)),!0}},{$elem:i.default("<span>"+o("取消表头")+"</span>"),onClick:function(e,t){var n,o=i.default(e.selection.getSelectionStartElem());o=c.getRowNode(o.elems[0]);return o&&(0!==(o=Number(c.getCurrentRowIndex(t.elems[0],o)))&&(o=0),n=c.getTableHtml(t.elems[0]),n=d(t,n=c.getTableHtml(a.default.setTheHeader(i.default(n),o,"td").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n)),!0}}];(t=new r.default(e,n,f)).create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}function s(e){var t=e.selection.getSelectionStartElem();e=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==e?void 0:e.elems[0])}function d(e,t){return e=e.elems[0].nextSibling,e&&"<br>"!==e.innerHTML||(t+=""+u.EMPTY_P),t}t.default=function(e){var t=(n=c(e)).showTableTooltip,n=n.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},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 d(e){var t=e.elems[0].children[0];return"COLGROUP"===t.nodeName?e.elems[0].children[e.elems[0].children.length-1]:t}t.default={ProcessingRow:function(e,t){e=d(e);for(var n=(0,r.default)(Array.prototype).apply(e.children),o=n[0].children.length,i=document.createElement("tr"),l=0;l<o;l++){var u=document.createElement("td");i.appendChild(u)}return(0,a.default)(n).call(n,t+1,0,i),s(e,n),c.default(e.parentNode)},ProcessingCol:function(e,t){e=d(e);for(var n=(0,r.default)(Array.prototype).apply(e.children),o=0;o<n.length;o++)(e=>{var o=[];for((0,l.default)(i=(0,u.default)(n[e].children)).call(i,(function(e){o.push(e)}));0!==n[e].children.length;)n[e].removeChild(n[e].children[0]);var i="TH"!==c.default(o[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,a.default)(o).call(o,t+1,0,i);for(var r=0;r<o.length;r++)n[e].appendChild(o[r])})(o);return s(e,n),c.default(e.parentNode)},DeleteRow:function(e,t){e=d(e);var n=(0,r.default)(Array.prototype).apply(e.children);return(0,a.default)(n).call(n,t,1),s(e,n),c.default(e.parentNode)},DeleteCol:function(e,t){e=d(e);for(var n=(0,r.default)(Array.prototype).apply(e.children),o=0;o<n.length;o++)(e=>{var o,i=[];for((0,l.default)(o=(0,u.default)(n[e].children)).call(o,(function(e){i.push(e)}));0!==n[e].children.length;)n[e].removeChild(n[e].children[0]);(0,a.default)(i).call(i,t,1);for(var r=0;r<i.length;r++)n[e].appendChild(i[r])})(o);return s(e,n),c.default(e.parentNode)},setTheHeader:function(e,t,n){e=d(e);for(var o=(0,r.default)(Array.prototype).apply(e.children),i=o[t].children,f=document.createElement("tr"),p=0;p<i.length;p++)(e=>{var t=document.createElement(n);e=i[e];(0,l.default)(e=(0,u.default)(e.childNodes)).call(e,(function(e){t.appendChild(e)})),f.appendChild(t)})(p);return(0,a.default)(o).call(o,t,1,f),s(e,o),c.default(e.parentNode)}}},function(e,t,n){n=n(396),e.exports=n},function(e,t,n){n(50),n(397),n=n(9),e.exports=n.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,d,f,p,h=i(e),m=(e="function"==typeof this?this:Array,arguments.length),A=1<m?arguments[1]:void 0,v=void 0!==A,g=c(h),y=0;if(v&&(A=o(A,2<m?arguments[2]:void 0,2)),null==g||e==Array&&a(g))for(n=new e(t=l(h.length));y<t;y++)p=v?A(h[y],y):h[y],u(n,y,p);else for(f=(d=g.call(h)).next,n=new e;!(s=f.call(d)).done;y++)p=v?r(d,A,[s.value,y],!0):s.value,u(n,y,p);return n.length=y,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));function u(e){this.editor=e}u.prototype.getRowNode=function(e){var t;e=l.default(e).elems[0];return e.parentNode?null==(t=l.default(e).parentUntil("TR",e))?void 0:t.elems[0]:e},u.prototype.getCurrentRowIndex=function(e,t){var n=0,o=e.children[0];return"COLGROUP"===o.nodeName&&(o=e.children[e.children.length-1]),(0,r.default)(e=(0,a.default)(o.children)).call(e,(function(e,o){e===t&&(n=o)})),n},u.prototype.getCurrentColIndex=function(e){var t=0,n="TD"===l.default(e).getNodeName()||"TH"===l.default(e).getNodeName()?e:null==(e=l.default(e).parentUntil("TD",e))?void 0:e.elems[0];e=l.default(n).parent();return(0,r.default)(e=(0,a.default)(e.elems[0].children)).call(e,(function(e,o){e===n&&(t=o)})),t},u.prototype.getTableHtml=function(e){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+l.default(e).html()+"</table>"},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){var i;3<=n.detail&&(n=window.getSelection())&&(i=n.focusNode,n=n.anchorNode,n=o.default(null==n?void 0:n.parentElement),t.isContain(o.default(i))||(t="TD"===n.elems[0].tagName?n:n.parentUntilEditor("td",e))&&(null!=(i=e.selection.getRange())&&i.setEnd(t.elems[0],t.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,i=n.getSelectionContainerElem();i&&(o=(i=i.getNodeTop(e)).length&&i.prev().length?i.prev():null)&&"TABLE"===o.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode&&(!!(o=i.next()).length&&(e=>e.length&&"P"===(e=e.elems[0]).nodeName&&"<br>"===e.innerHTML)(i)&&(i.remove(),e.selection.setRangeToElem(o.elems[0])),t.preventDefault())}))}},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0,n(2)),i=o.__importDefault(n(38)),o.__importDefault(n(3))),l=n(6),u=o.__importDefault(n(402)),c=o.__importDefault(n(139)),s=o.__importDefault(n(33)),d=o.__importDefault(n(403));t.formatCodeHtml=function(e,t){var n,o;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=l.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=l.replaceSpecialSymbol(t)),t},f=i.default,o.__extends(p,f),p.prototype.insertLineCode=function(e){var t=this.editor;e=a.default("<code>"+e+"</code>");t.cmd.do("insertElem",e),t.selection.createRangeByElem(e,!1),t.selection.restoreSelection()},p.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},p.prototype.createPanel=function(e,t){e=u.default(this.editor,e,t),new s.default(this,e).create()},p.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()};var f;n=p;function p(e){var t=a.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');t=f.call(this,t,e)||this;return d.default(e),t}t.default=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(26)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=o.__importDefault(n(3)),u=o.__importDefault(n(139)),c=n(7);t.default=function(e,t,n){var o,i=a.getRandom("input-iframe"),s=a.getRandom("select"),d=a.getRandom("btn-ok");function f(t,n){var o;u.default(e)&&u.default(e)&&(o=null==(o=e.selection.getSelectionStartElem())?void 0:o.getNodeTop(e))&&(e.selection.createRangeByElem(o),e.selection.restoreSelection()),(null==(o=e.selection.getSelectionStartElem())?void 0:o.elems[0].innerHTML)&&e.cmd.do("insertHTML",c.EMPTY_P),n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e.highlight&&(n=e.highlight.highlightAuto(n).value),e.cmd.do("insertHTML",'<pre><code class="'+t+'">'+n+"</code></pre>"),t=e.selection.getSelectionStartElem(),n=null==t?void 0:t.getNodeTop(e),0===(null==n?void 0:n.getNextSibling().elems.length)&&l.default(c.EMPTY_P).insertAfter(n)}function p(t){return e.i18next.t(t)}return{width:500,height:0,tabs:[{title:p("menus.panelMenus.code.插入代码"),tpl:'<div>\n <select name="" id="'+s+'">\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="'+d+'" class="right">'+(u.default(e)?p("修改"):p("插入"))+"</button>\n </div>\n </div>",events:[{selector:"#"+d,type:"click",fn:function(){var t=document.getElementById(i),n=l.default("#"+s).val();t=t.value;if(t)return!u.default(e)&&(f(n,t),!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=[{$elem:i.default("<span>"+(o="删除代码",e.i18next.t((a=void 0===a?"menus.panelMenus.code.":a)+o)+"</span>")),onClick:function(e,t){return t.remove(),!0}}];(t=new r.default(e,n,a)).create()},hideCodeTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=(n=a(e)).showCodeTooltip,n=n.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},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;40===e.keyCode&&(e=n.getSelectionContainerElem(),o=null==(o=t.children())?void 0:o.last(),"XMP"===(null==e?void 0:e.elems[0].tagName))&&"PRE"===(null==o?void 0:o.elems[0].tagName)&&(e=r.default(i.EMPTY_P),t.append(e))})),o.push((function(o){e.selection.saveRange();var a,l=n.getSelectionContainerElem();l&&(a=null==(l=l.getNodeTop(e))?void 0:l.prev(),l=null==l?void 0:l.getNextSibling(),a.length)&&"PRE"===(null==a?void 0:a.getNodeName())&&0===l.length&&0===n.getCursorPos()&&8===o.keyCode&&(a=r.default(i.EMPTY_P),t.append(a))}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3)),l=i.__importDefault(n(407)),u=n(6),c=n(7);o=r.default,i.__extends(s,o),s.prototype.clickHandler=function(){var e,t,n=this.editor,o=n.selection.getRange();n=n.selection.getSelectionContainerElem();null!=n&&n.length&&(n=(e=a.default(n.elems[0])).parentUntil("TABLE",n.elems[0]),t=e.children(),"CODE"===e.getNodeName()||n&&"TABLE"===a.default(n.elems[0]).getNodeName()||(!t||0===t.length||"IMG"!==a.default(t.elems[0]).getNodeName()||null!=o&&o.collapsed)&&this.createSplitLine())},s.prototype.createSplitLine=function(){var e="<hr/>"+c.EMPTY_P;u.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd.do("insertHTML",e)},s.prototype.tryChangeActive=function(){},n=s;function s(e){var t=a.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');t=o.call(this,t,e)||this;return l.default(e),t}t.default=n},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));function a(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)}}}t.default=function(e){var t=(n=a(e)).showSplitLineTooltip,n=n.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){var o,i=n(0),r=i(n(1)),a=i(n(4)),l=(i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(r=i.__importDefault(n(23)),n(98)),c=i.__importDefault(n(415)),s=i.__importDefault(n(140));o=r.default,i.__extends(d,o),d.prototype.clickHandler=function(){var e=this.editor;u.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},d.prototype.tryChangeActive=function(){u.isAllTodo(this.editor)?this.active():this.unActive()},d.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,(function(t){var n,o;"P"===(null==t?void 0:t.getNodeName())&&(o=null==(o=(n=s.default(t).getTodo()).children())?void 0:o.getNode(),n.insertAfter(t),e.selection.moveCursor(o),t.remove())})),this.tryChangeActive()},d.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,(function(t){var n=null==(n=null==(n=t.childNodes())?void 0:n.childNodes())?void 0:n.clone(!0),o=l.default("<p></p>");o.append(n),o.insertAfter(t),null!=(n=o.childNodes())&&n.get(0).remove(),e.selection.moveCursor(o.getNode()),t.remove()}))},n=d;function d(e){var t=l.default('<div class="w-e-menu" data-title="待办事项">\n <i class="w-e-icon-checkbox-checked"></i>\n </div>');t=o.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){e.exports=n(411)},function(e,t,n){n=n(412),e.exports=n},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),n=n(15),e.exports=n("Array").every},function(e,t,n){var o=n(5),i=n(32).every,r=n(67);n=n(22),r=r("every"),n=n("every");o({target:"Array",proto:!0,forced:!r||!n},{every:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),o.__importDefault(n(3))),l=n(98),u=o.__importDefault(n(140)),c=n(98),s=n(7);t.default=function(e){e.txt.eventHooks.enterDownEvents.push((function(t){var n,o,i,d,f,p,h,m,A,v,g;l.isAllTodo(e)&&(t.preventDefault(),o=null==(o=(n=(t=e.selection).getSelectionRangeTopNodes()[0]).childNodes())?void 0:o.get(0),m=null==(m=window.getSelection())?void 0:m.anchorNode,null!=(v=t.getRange())&&v.collapsed||(g=null==v?void 0:v.commonAncestorContainer.childNodes,i=null==v?void 0:v.startContainer,d=null==v?void 0:v.endContainer,A=null==v?void 0:v.startOffset,v=null==v?void 0:v.endOffset,p=f=0,h=[],null!=g&&(0,r.default)(g).call(g,(function(e,t){e.contains(i)&&(f=t),e.contains(d)&&(p=t)})),1<p-f&&(null!=g&&(0,r.default)(g).call(g,(function(e,t){t<=f||p<=t||h.push(e)})),(0,r.default)(h).call(h,(function(e){e.remove()}))),c.dealTextNode(i,A),c.dealTextNode(d,v,!1),e.selection.moveCursor(d,0)),""===n.text()?((g=a.default(s.EMPTY_P)).insertAfter(n),t.moveCursor(g.getNode()),n.remove()):(A=t.getCursorPos(),v=l.getCursorNextNode(null==o?void 0:o.getNode(),m,A),A=(m=(g=u.default(a.default(v))).getInputContainer()).parent().getNode(),v=g.getTodo(),g=m.getNode().nextSibling,""===(null==o?void 0:o.text())&&null!=o&&o.append(a.default("<br>")),v.insertAfter(n),g&&""!==(null==g?void 0:g.textContent)?t.moveCursor(A):("BR"!==(null==g?void 0:g.nodeName)&&a.default("<br>").insertAfter(m),t.moveCursor(A,1))))})),e.txt.eventHooks.deleteUpEvents.push((function(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&c.isTodo(t)&&""===t.text()&&(a.default(s.EMPTY_P).insertAfter(t),t.remove())})),e.txt.eventHooks.deleteDownEvents.push((function(t){var n,o,i,u,c,d,f,p;l.isAllTodo(e)&&(o=null==(o=(n=(p=e.selection).getSelectionRangeTopNodes()[0]).childNodes())?void 0:o.getNode(),i=a.default("<p></p>"),u=i.getNode(),d=null==(d=window.getSelection())?void 0:d.anchorNode,c=p.getCursorPos(),d=d.previousSibling,""===n.text()?(t.preventDefault(),(f=a.default(s.EMPTY_P)).insertAfter(n),n.remove(),p.moveCursor(f.getNode(),0)):"SPAN"===(null==d?void 0:d.nodeName)&&"INPUT"===d.childNodes[0].nodeName&&0===c&&(t.preventDefault(),null!=o&&(0,r.default)(p=o.childNodes).call(p,(function(e,t){0!==t&&u.appendChild(e.cloneNode(!0))})),i.insertAfter(n),n.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=e.toolbarSelector,n=(t=i.default(t),e.textSelector),o=e.config.height,d=e.i18next,f=i.default("<div></div>"),p=i.default("<div></div>"),h=null,m=(t=(null==n?(m=t.children(),t.append(f).append(p),f.css("background-color",c).css("border",u).css("border-bottom",s),p.css("border",u).css("border-top","none").css("height",o+"px")):(t.append(f),h=i.default(n).children(),i.default(n).append(p),m=p.children()),(o=i.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%"),e.config.placeholder),d=((n=t!==l.default.placeholder?i.default("<div>"+t+"</div>"):i.default("<div>"+d.t(t)+"</div>")).addClass("placeholder"),m&&m.length?(o.append(m),n.hide()):o.append(i.default(a.EMPTY_P)),h&&h.length&&(o.append(h),n.hide()),p.append(o),p.append(n),f.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),p.addClass("w-e-text-container"),p.css("z-index",e.zIndex.get()),o.addClass("w-e-text"),r.getRandom("toolbar-elem")),t=(f.attr("id",d),r.getRandom("text-elem")),o.attr("id",t),p.getBoundingClientRect().height);m!==o.getBoundingClientRect().height&&o.css("min-height",m+"px"),e.$toolbarElem=f,e.$textContainerElem=p,e.$textElem=o,e.toolbarElemId=d,e.textElemId=t},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){if(a=a.last(),n){n=a.html().toLowerCase();var l=a.getNodeName();if("<br>"!==n&&"<br/>"!==n||"P"!==l)return r.append(o.default(i.EMPTY_P)),void e(t)}t.selection.createRangeByElem(a,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}else r.append(o.default(i.EMPTY_P)),e(t)}},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){(t=e).txt.eventHooks.changeEvents.push((function(){var e,n=t.config.onchange;n&&(e=t.txt.html()||"",t.isFocus=!0,n(e)),t.txt.togglePlaceholder()}));var t,n,o=e;function i(e){var t=e.target,n=(t=a.default(t),o.$textElem),i=o.$toolbarElem;n=n.isContain(t),t=i.isContain(t),i=i.elems[0]==e.target;n?(o.isFocus||l(o),o.isFocus=!0):t&&!i||!o.isFocus||(n=(e=o).config.onblur,t=e.txt.html()||"",(0,r.default)(e=e.txt.eventHooks.onBlurEvents).call(e,(function(e){return e()})),n(t),o.isFocus=!1)}o.isFocus=!1,document.activeElement===o.$textElem.elems[0]&&o.config.focus&&(l(o),o.isFocus=!0),a.default(document).on("click",i),o.beforeDestroy((function(){a.default(document).off("click",i)})),(n=e).$textElem.on("compositionstart",(function(){n.isComposing=!0,n.txt.togglePlaceholder()})).on("compositionend",(function(){n.isComposing=!1,n.txt.togglePlaceholder()}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=(n=e.config).lang,n=n.languages;if(null!=e.i18next)try{e.i18next.init({ns:"wangEditor",lng:t,defaultNS:"wangEditor",resources:n})}catch(e){throw new Error("i18next:"+e)}else e.i18next={t:function(e){return e=e.split("."),e[e.length-1]}}}},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)),l=(n(421),"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);e=e.config,i.removeClass(l),i.addClass(u),t.addClass(c),t.css("z-index",e.zIndexFullScreen),i=o.getBoundingClientRect();n.css("height","calc(100% - "+i.height+"px)")},t.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,o=e.$toolbarElem;o=(0,r.default)(o).call(o,"i."+u),e=e.config;o.removeClass(u),o.addClass(l),t.removeClass(c),t.css("z-index","auto"),n.css("height",e.height+"px")},t.default=function(e){var n,o;e.textSelector||e.config.showFullScreen&&(n=e.$toolbarElem,(o=a.default('<div class="w-e-menu" data-title="全屏">\n <i class="'+l+'"></i>\n </div>')).on("click",(function(n){(0,r.default)(n=a.default(n.currentTarget)).call(n,"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=n(422),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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){e=e.isEnable?e.$textElem:(0,r.default)(e=e.$textContainerElem).call(e,".w-e-content-mantle"),t=(0,r.default)(e).call(e,"[id='"+t+"']").getOffsetData().top,e.scrollTop(t)}},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};function r(){this.tier=i,this.baseZIndex=o.default.zIndex}r.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},r.prototype.init=function(e){this.baseZIndex==o.default.zIndex&&(this.baseZIndex=e.config.zIndex)},t.default=r},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(70)),a=o(n(4)),l=(o=((0,i.default)(t,"__esModule",{value:!0}),n(2)),i=o.__importDefault(n(426)),n(6)),u=n(7);c=i.default,o.__extends(s,c),s.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},s.prototype.emit=function(){var e;(0,a.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,(function(e){return e()}))},s.prototype.observe=function(){var e=this,t=(c.prototype.observe.call(this,this.editor.$textElem.elems[0]),this.editor.config.onchangeTimeout);this.asyncSave=l.debounce((function(){e.save()}),t),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){e.asyncSave()}))};var c;n=s;function s(e){var t=c.call(this,(function(n,o){var i,a;if(i=n,a=o.target,n=(0,r.default)(i).call(i,(function(e){var t=e.type;return"attributes"!=t||"attributes"==t&&("contenteditable"==e.attributeName||e.target!=a)})),(o=t.data).push.apply(o,n),e.isCompatibleMode)t.asyncSave();else if(!e.isComposing)return t.asyncSave()}))||this;return t.editor=e,t.data=[],t.asyncSave=u.EMPTY_FN,t}t.default=n},function(e,t,n){function o(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)}n=n(0)(n(1)),(0,n.default)(t,"__esModule",{value:!0}),(0,n.default)(o.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),o.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},o.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},o.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},t.default=o},function(e,t,n){var o=n(0)(n(1)),i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),r=i.__importDefault(n(428)),a=i.__importDefault(n(435)),l=i.__importDefault(n(436));function u(e){this.editor=e,this.content=new r.default(e),this.scroll=new a.default(e),this.range=new l.default(e)}(0,o.default)(u.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),u.prototype.observe=function(){this.content.observe(),this.scroll.observe(),this.editor.isCompatibleMode||this.range.observe()},u.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),this.editor.isCompatibleMode||this.range.save())},u.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()},u.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()},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));function a(e){this.editor=e}a.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new r.default(this.editor):this.cache=new i.default(this.editor),this.cache.observe()},a.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},a.prototype.revoke=function(){var e;return null==(e=this.cache)?void 0:e.revoke()},a.prototype.restore=function(){var e;return null==(e=this.cache)?void 0:e.restore()},t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(99)),a=i.__importDefault(n(431)),l=n(432);o=r.default,i.__extends(u,o),u.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},u.prototype.compile=function(e){return this.save(a.default(e)),this},u.prototype.revoke=function(){return o.prototype.revoke.call(this,(function(e){l.revoke(e)}))},u.prototype.restore=function(){return o.prototype.restore.call(this,(function(e){l.restore(e)}))},n=u;function u(e){var t=o.call(this,e.config.historyMaxSize)||this;return t.editor=e,t}t.default=n},function(e,t,n){function o(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}n=n(0)(n(1)),(0,n.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0,o.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,n.default)(o.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),o.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},o.prototype.outstack=function(){return this.data.shift()},o.prototype.clear=function(){return this.data.length=0,this},n=o,t.CeilStack=n},function(e,t,n){var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(27)),l=((0,i.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0,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 d(e){return e=e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target},e}t.compileType=u,t.compileValue=c,t.complieNodes=s,t.compliePosition=d;var f=["UL","OL","H1","H2","H3","H4","H5","H6"];function p(e,t){for(var n=0,o=t.length-1;0<o&&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,h,m={type:u(e.type),target:e.target,attr:e.attributeName||"",value:c(e)||"",oldValue:e.oldValue||"",nodes:s(e),position:d(e)};t.push(m),l.UA.isFirefox&&(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType&&(h={type:"node",target:r=e.addedNodes[0],attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:r}},-1!=(0,a.default)(f).call(f,r.nodeName)?(h.nodes.add=l.toArray(r.childNodes),t.push(h)):3==n.nodeType?(p(r,o)&&(h.nodes.add=l.toArray(r.childNodes)),t.push(h)):-1==(0,a.default)(f).call(f,e.target.nodeName)&&p(r,o)&&(h.nodes.add=l.toArray(r.childNodes),t.push(h))),"node"==m.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];o=o[1];"add"===i?(0,r.default)(o).call(o,(function(t){e.target.removeChild(t)})):l(e,o)}},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;-1<t;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];o=o[1];"add"===i?l(e,o):(0,r.default)(o).call(o,(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);function i(e){this.editor=e,this.data=new o.TailChain}i.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},i.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},i.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},i.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},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,a.prototype.resetMax=function(e){(e=Math.abs(e))&&(this.max=e)},(0,i.default)(a.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),a.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},a.prototype.current=function(){return this.data[this.point]},a.prototype.prev=function(){if(this.isRe||(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},a.prototype.next=function(){if(this.isRe||(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},o=a;function a(){this.data=[],this.max=0,this.point=0,this.isRe=!1}t.TailChain=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2);n=i.__importDefault(n(99)),o=n.default,i.__extends(r,o),r.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)},r.prototype.save=function(){return o.prototype.save.call(this,[this.last,this.target.scrollTop]),this},r.prototype.revoke=function(){var e=this;return o.prototype.revoke.call(this,(function(t){e.target.scrollTop=t[0]}))},r.prototype.restore=function(){var e=this;return o.prototype.restore.call(this,(function(t){e.target.scrollTop=t[1]}))},n=r;function r(e){var t=o.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.last=0,t.target=e.$textElem.elems[0],t}t.default=n},function(e,t,n){var o=n(0)(n(1)),i=((0,o.default)(t,"__esModule",{value:!0}),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}}c=r.default,i.__extends(s,c),(0,o.default)(s.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),s.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()}))},s.prototype.save=function(){var e=u(this.rangeHandle);return c.prototype.save.call(this,[this.lastRange,e]),this.lastRange=e,this},s.prototype.set=function(e){try{var t;if(e)return(t=this.rangeHandle).setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}catch(e){}return!1},s.prototype.revoke=function(){var e=this;return c.prototype.revoke.call(this,(function(t){e.set(t[0])}))},s.prototype.restore=function(){var e=this;return c.prototype.restore.call(this,(function(t){e.set(t[1])}))};var c;n=s;function s(e){var t=c.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.lastRange=u(document.createRange()),t.root=e.$textElem.elems[0],t.updateLastRange=l.debounce((function(){t.lastRange=u(t.rangeHandle)}),e.config.onchangeTimeout),t}t.default=n},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(){var i,r;o||(e.$textElem.hide(),r=e.zIndex.get("textContainer"),i=e.txt.html(),t=a.default('<div class="w-e-content-mantle" style="z-index:'+r+'">\n <div class="w-e-content-preview w-e-text">'+i+"</div>\n </div>"),e.$textContainerElem.append(t),r=e.zIndex.get("menu"),n=a.default('<div class="w-e-menue-mantle" style="z-index:'+r+'"></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=n(439),{insert:"head",singleton:!1});o(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.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){function o(e){function t(){document.activeElement===e.$textElem.elems[0]&&n.emit()}var n=this;this.editor=e,window.document.addEventListener("selectionchange",t),this.editor.beforeDestroy((function(){window.document.removeEventListener("selectionchange",t)}))}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),o.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;t&&((e=this.editor.selection).saveRange(),e.isSelectionEmpty()||t({text:e.getSelectionText(),html:null==(t=e.getSelectionContainerElem())?void 0:t.elems[0].innerHTML,selection: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));t=(0,a.default)(t);(0,l.default)(t).call(t,(function(t){t[0];t=t[1];var n=t.intention;t=t.config;n(e,t)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}],n={},e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(o,i,function(e){return t[e]}.bind(null,i));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=141).default;function e(o){var i;return(n[o]||(i=n[o]={i:o,l:!1,exports:{}},t[o].call(i.exports,i,i.exports,e),i.l=!0,i)).exports}var t,n},e.exports=o()},9346:function(e,t,n){},a069:function(e,t,n){n("99af"),n("d81d"),n("e9f5"),n("ab43"),n("d3b7");var o={data:function(){return{monacoInstance:null,content:""}},props:{value:{type:String,default:""}},watch:{value:function(e){}},mounted:function(){this.content=this.value},methods:{changeContent:function(){this.$emit("change",this.content)},setValue:function(e){},seteditor:function(){var e=this;this.monacoInstance=monaco.editor.create(this.$refs.code_box,{value:this.value,theme:"vs",language:"html",readOnly:!1}),this.monacoInstance.onDidChangeModelContent((function(){e.$emit("change",e.monacoInstance.getValue())}))}},beforeDestroy:function(){this.monacoInstance.dispose(),this.monacoInstance=null}},i=(n("0095"),n("2877")),r=(o=Object(i.a)(o,(function(){var e=this,t=e._self._c;return t("div",{ref:"code_box",staticClass:"text"},[t("el-input",{attrs:{type:"textarea",placeholder:""},on:{change:e.changeContent},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)}),[],!1,null,"037ad986",null).exports,n("6fad")),a=n.n(r),l=n("d4ec"),u=n("bee2");function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}var d=n("53ca");function f(e,t){if(t&&("object"==Object(d.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(t=e,void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(e,t,n){return t=c(t),f(e,s()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}var A=new(n("a026").default),v=(a.a.$,a.a.BtnMenu),g=(a.a.DropListMenu,a.a.PanelMenu,a.a.DropList,a.a.Panel,a.a.Tooltip,(()=>{function e(t){return Object(l.a)(this,e),p(this,e,[a.a.$('<div class="w-e-menu" data-title="视频">\n <div class="iconfont iconshipin"></div>\n </div>'),t])}return m(e,v),Object(u.a)(e,[{key:"clickHandler",value:function(){A.$emit("Video")}},{key:"tryChangeActive",value:function(){this.active()}}])})()),y=(a.a.$,a.a.BtnMenu),w=(a.a.DropListMenu,a.a.PanelMenu,a.a.DropList,a.a.Panel,a.a.Tooltip,(()=>{function e(t){return Object(l.a)(this,e),p(this,e,[a.a.$('<div class="w-e-menu" data-title="html">\n <div>HTML</div>\n </div>'),t])}return m(e,y),Object(u.a)(e,[{key:"clickHandler",value:function(){A.$emit("Html")}},{key:"tryChangeActive",value:function(){this.active()}}])})()),x=(r=n("b0e7"),n("b0c0"),n("0e5c")),_=n("c4c8"),E=n("d708"),b=n("c276"),C={name:"vide11o",data:function(){return{fileUrl:E.a.apiBaseURL+"/file/upload",upload:{videoIng:!1},progress:0,videoLink:"",formValidate:{video_link:""},upload_type:"",uploadData:{},header:{}}},created:function(){this.uploadType(),this.getToken()},methods:{videoSaveToUrl:function(e){var t=this;return Object(x.a)({file:e,pieceSize:3,success:function(e){t.formValidate.video_link=e.file_path,t.progress=100},error:function(e){t.$message.error(e.msg)},uploading:function(e,n){t.videoIng=!0,e=Math.floor(e/n*100),t.progress=e}}),!1},delVideo:function(){this.$set(this.formValidate,"video_link","")},uploadType:function(){var e=this;Object(_.G)().then((function(t){e.upload_type=t.data.upload_type}))},handleSuccess:function(e,t,n){200===e.status?(this.formValidate.video_link=e.data.src,this.$message.success(e.msg)):this.$message.error(e.msg)},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(b.c)("token")},beforeUpload:function(){var e=this;return this.uploadData={},new Promise((function(t){e.$nextTick((function(){t(!0)}))}))},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this;if("video/mp4"!==e.target.files[0].type)return t.$message.error("只能上传mp4文件");var n={key:e.target.files[0].name,contentType:e.target.files[0].type};Object(_.r)(n).then((function(n){t.$videoCloud.videoUpload({type:n.data.type,evfile:e,res:n,uploading:function(e,n){t.upload.videoIng=e}}).then((function(e){t.formValidate.video_link=e.url,t.$message.success("视频上传成功")})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.$emit("getVideo",this.formValidate.video_link)}}};n("03ce"),C=Object(i.a)(C,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mt20 ml20"},[t("el-input",{staticClass:"perW35",attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),t("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),"1"!==e.upload_type||e.videoLink?t("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]):e._e(),"1"!==e.upload_type||e.videoLink?e._e():t("el-upload",{staticClass:"ml10",staticStyle:{display:"inline-block"},attrs:{"show-file-list":!1,action:e.fileUrl,"before-upload":e.videoSaveToUrl,data:e.uploadData,headers:e.header,multiple:!0}},[t("el-button",{attrs:{type:"primary",icon:"ios-cloud-upload-outline"}},[e._v("上传视频")])],1),e.upload.videoIng?t("Progress",{attrs:{percent:e.progress,"stroke-width":5}}):e._e(),e.formValidate.video_link?t("div",{staticClass:"video-style"},[t("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),t("div",{staticClass:"mark"}),t("i",{staticClass:"el-icon-delete iconv",on:{click:e.delVideo}})]):e._e()],1),t("div",{staticClass:"mt50 ml20"},[t("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])}),[],!1,null,"b87926c8",null).exports,r={name:"Index",components:{uploadPictures:r.a,uploadVideo:C,monaco:o},props:{content:{type:String,default:""}},data:function(){return{monacoBox:!1,value:"",modalPic:!1,isChoice:"多选",picTit:"danFrom",img:"",modalVideo:!1,editor:null,uploadSize:2,video:""}},watch:{content:function(e){this.editor.txt.html(e)}},created:function(){},mounted:function(){var e=this;this.createEditor(),A.$on("Video",(function(t){e.getvideoint()})),A.$on("Html",(function(t){e.getHtmlint()}))},methods:{changeValue:function(e){this.newHtml=e,this.$emit("editorContent",e),this.$emit("input",e)},getPic:function(e){this.img=e.att_dir,this.modalPic=!1,this.editor.cmd.do("insertHTML",'<img src="'.concat(this.img,'" style="max-width:100%;"/>'))},getimg:function(){this.modalPic=!0,this.isChoice="多选"},getvideoint:function(){this.modalVideo=!0},getHtmlint:function(){this.monacoBox=!this.monacoBox,this.value=this.newHtml,this.monacoBox||this.editor.txt.html(this.newHtml)},getPicD:function(e){var t=this;this.modalPic=!1,e.map((function(e){t.editor.cmd.do("insertHTML",'<img src="'.concat(e.att_dir,'" style="max-width:100%;"/>'))}))},getvideo:function(e){this.modalVideo=!1,this.video=e,e='<video src="'+this.video+'" controls style="max-width:100%;min-height:500rpx"></video><p><br></p>',this.editor.cmd.do("insertHTML",e)},createEditor:function(){var e=this,t=this,n="alertMenuKey";this.editor=new a.a(this.$refs["wang-editor"]),this.editor.menus.extend(n,g),this.editor.menus.extend("alertHtml",w),this.editor.config.menus=this.editor.config.menus.concat("alertHtml"),this.editor.config.menus=this.editor.config.menus.concat(n),this.editor.config.uploadImgFromMedia=function(){t.getimg()},this.editor.config.height=600,this.editor.config.menus=["alertHtml","head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","justify","quote","emoticon","image","alertMenuKey","code","splitLine"],this.editor.config.uploadImgShowBase64=!1,this.editor.config.zIndex=0,this.editor.config.compatibleMode=function(){return!0},this.editor.config.onchange=function(t){e.newHtml=t,e.$emit("editorContent",t)},this.editor.config.onchangeTimeout=300,this.editor.create()}}},n("1812"),C=Object(i.a)(r,(function(){var e=this,t=e._self._c;return t("div",[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.monacoBox,expression:"!monacoBox"}]},[t("div",{ref:"wang-editor",staticClass:"wang-editor"})]),e.monacoBox?t("div",[t("el-button",{staticClass:"bottom",attrs:{type:"primary"},on:{click:e.getHtmlint}},[e._v("可视化界面")]),t("monaco",{staticClass:"monaco-box",attrs:{value:e.newHtml},on:{change:e.changeValue}})],1):e._e(),t("el-dialog",{attrs:{visible:e.modalPic,width:"1024px",title:"上传图片","close-on-click-modal":!1},on:{"update:visible":function(t){e.modalPic=t}}},[e.modalPic?t("uploadPictures",{attrs:{isChoice:e.isChoice},on:{getPic:e.getPic,getPicD:e.getPicD}}):e._e()],1),t("el-dialog",{attrs:{visible:e.modalVideo,width:"720px",title:"上传视频","close-on-click-modal":!1},on:{"update:visible":function(t){e.modalVideo=t}}},[e.modalVideo?t("uploadVideo",{on:{getVideo:e.getvideo}}):e._e()],1)],1)}),[],!1,null,"0ba3c460",null);t.a=C.exports},b09a:function(e,t,n){},c741:function(e,t,n){}}]);