!function (t, e) { "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.wangEditor = e() : t.wangEditor = e() }(window, (function () { return function (t) { var e = {}; function n(o) { if (e[o]) return e[o].exports; var r = e[o] = { i: o, l: !1, exports: {} }; return t[o].call(r.exports, r, r.exports, n), r.l = !0, r.exports } return n.m = t, n.c = e, n.d = function (t, e, o) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: o }) }, n.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function (t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var o = Object.create(null); if (n.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var r in t) n.d(o, r, function (e) { return t[e] }.bind(null, r)); return o }, n.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return n.d(e, "a", e), e }, n.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = "", n(n.s = 129) }([function (t, e) { t.exports = function (t) { return t && t.__esModule ? t : { default: t } } }, function (t, e, n) { t.exports = n(130) }, function (t, e, n) { "use strict"; var o = n(0), r = o(n(88)), i = o(n(89)), a = o(n(65)), l = o(n(90)), u = o(n(54)), c = o(n(114)), s = o(n(19)), f = o(n(29)), d = o(n(5)), p = o(n(93)), A = o(n(1)), v = function () { for (var t = 0, e = 0, n = arguments.length; e < n; e++)t += arguments[e].length; var o = Array(t), r = 0; for (e = 0; e < n; e++)for (var i = arguments[e], a = 0, l = i.length; a < l; a++, r++)o[r] = i[a]; return o }; (0, A.default)(e, "__esModule", { value: !0 }), e.DomElement = void 0; var h = n(7), g = []; function m(t) { var e = [], n = []; return e = (0, p.default)(t) ? t : t.split(";"), (0, d.default)(e).call(e, (function (t) { var e, o = (0, f.default)(e = t.split(":")).call(e, (function (t) { return (0, s.default)(t).call(t) })); 2 === o.length && n.push(o[0] + ":" + o[1]) })), n } var y = function () { function t(e) { if (this.elems = [], this.length = this.elems.length, this.dataSource = new c.default, e) { if (e instanceof t) return e; var n = [], o = e instanceof Node ? e.nodeType : -1; if (this.selector = e, 1 === o || 9 === o) n = [e]; else if (function (t) { return !!t && (t instanceof HTMLCollection || t instanceof NodeList) }(e)) n = h.toArray(e); else if (e instanceof Array) n = e; else if ("string" == typeof e) { var r, i = (0, s.default)(r = e.replace("/\n/mg", "")).call(r); n = 0 === (0, u.default)(i).call(i, "<") ? function (t) { var e = document.createElement("div"); e.innerHTML = t; var n = e.children; return h.toArray(n) }(i) : function (t) { var e = document.querySelectorAll(t); return h.toArray(e) }(i) } var a = n.length; if (!a) return this; for (var l = 0; l < a; l++)this.elems.push(n[l]); this.length = a } } return (0, A.default)(t.prototype, "id", { get: function () { return this.elems[0].id }, enumerable: !1, configurable: !0 }), t.prototype.forEach = function (t) { for (var e = 0; e < this.length; e++) { var n = this.elems[e]; if (!1 === t.call(n, n, e)) break } return this }, t.prototype.clone = function (t) { var e; void 0 === t && (t = !1); var n = []; return (0, d.default)(e = this.elems).call(e, (function (e) { n.push(e.cloneNode(!!t)) })), w(n) }, t.prototype.get = function (t) { void 0 === t && (t = 0); var e = this.length; return t >= e && (t %= e), w(this.elems[t]) }, t.prototype.first = function () { return this.get(0) }, t.prototype.last = function () { var t = this.length; return this.get(t - 1) }, t.prototype.on = function (t, e, n) { var o; return t ? ("function" == typeof e && (n = e, e = ""), (0, d.default)(o = this).call(o, (function (o) { if (e) { var r = function (t) { var o = t.target; o.matches(e) && n.call(o, t) }; o.addEventListener(t, r), g.push({ elem: o, selector: e, fn: n, agentFn: r }) } else o.addEventListener(t, n) }))) : this }, t.prototype.off = function (t, e, n) { var o; return t ? ("function" == typeof e && (n = e, e = ""), (0, d.default)(o = this).call(o, (function (o) { if (e) { for (var r = -1, i = 0; i < g.length; i++) { var a = g[i]; if (a.selector === e && a.fn === n && a.elem === o) { r = i; break } } if (-1 !== r) { var u = (0, l.default)(g).call(g, r, 1)[0].agentFn; o.removeEventListener(t, u) } } else o.removeEventListener(t, n) }))) : this }, t.prototype.attr = function (t, e) { var n; return null == e ? this.elems[0].getAttribute(t) || "" : (0, d.default)(n = this).call(n, (function (n) { n.setAttribute(t, e) })) }, t.prototype.removeAttr = function (t) { var e; (0, d.default)(e = this).call(e, (function (e) { e.removeAttribute(t) })) }, t.prototype.addClass = function (t) { var e; return t ? (0, d.default)(e = this).call(e, (function (e) { if (e.className) { var n = e.className.split(/\s/); n = (0, a.default)(n).call(n, (function (t) { return !!(0, s.default)(t).call(t) })), (0, u.default)(n).call(n, t) < 0 && n.push(t), e.className = n.join(" ") } else e.className = t })) : this }, t.prototype.removeClass = function (t) { var e; return t ? (0, d.default)(e = this).call(e, (function (e) { if (e.className) { var n = e.className.split(/\s/); n = (0, a.default)(n).call(n, (function (e) { return !(!(e = (0, s.default)(e).call(e)) || e === t) })), e.className = n.join(" ") } })) : this }, t.prototype.hasClass = function (t) { if (!t) return !1; var e = this.elems[0]; if (!e.className) return !1; var n = e.className.split(/\s/); return (0, i.default)(n).call(n, t) }, t.prototype.css = function (t, e) { var n, o; return o = "" == e ? "" : t + ":" + e + ";", (0, d.default)(n = this).call(n, (function (e) { var n, r = (0, s.default)(n = e.getAttribute("style") || "").call(n); if (r) { var i = m(r); i = (0, f.default)(i).call(i, (function (e) { return 0 === (0, u.default)(e).call(e, t) ? o : e })), "" != o && (0, u.default)(i).call(i, o) < 0 && i.push(o), "" == o && (i = m(i)), e.setAttribute("style", i.join("; ")) } else e.setAttribute("style", o) })) }, t.prototype.getBoundingClientRect = function () { return this.elems[0].getBoundingClientRect() }, t.prototype.show = function () { return this.css("display", "block") }, t.prototype.hide = function () { return this.css("display", "none") }, t.prototype.children = function () { var t = this.elems[0]; return t ? w(t.children) : null }, t.prototype.childNodes = function () { var t = this.elems[0]; return t ? w(t.childNodes) : null }, t.prototype.replaceChildAll = function (t) { for (var e = this.getNode(), n = this.elems[0]; n.hasChildNodes();)e.firstChild && n.removeChild(e.firstChild); this.append(t) }, t.prototype.append = function (t) { var e; return (0, d.default)(e = this).call(e, (function (e) { (0, d.default)(t).call(t, (function (t) { e.appendChild(t) })) })) }, t.prototype.remove = function () { var t; return (0, d.default)(t = this).call(t, (function (t) { if (t.remove) t.remove(); else { var e = t.parentElement; e && e.removeChild(t) } })) }, t.prototype.isContain = function (t) { var e = this.elems[0], n = t.elems[0]; return e.contains(n) }, t.prototype.getSizeData = function () { return this.elems[0].getBoundingClientRect() }, t.prototype.getNodeName = function () { return this.elems[0].nodeName }, t.prototype.getNode = function (t) { return void 0 === t && (t = 0), this.elems[t] }, t.prototype.getClientHeight = function () { return this.elems[0].clientHeight }, t.prototype.find = function (t) { return w(this.elems[0].querySelectorAll(t)) }, t.prototype.text = function (t) { var e; return t ? (0, d.default)(e = this).call(e, (function (e) { e.innerHTML = t })) : this.elems[0].innerHTML.replace(/<[^>]+>/g, (function () { return "" })) }, t.prototype.html = function (t) { var e = this.elems[0]; return t ? (e.innerHTML = t, this) : e.innerHTML }, t.prototype.val = function () { var t, e = this.elems[0]; return (0, s.default)(t = e.value).call(t) }, t.prototype.focus = function () { var t; return (0, d.default)(t = this).call(t, (function (t) { t.focus() })) }, t.prototype.prev = function () { return w(this.elems[0].previousElementSibling) }, t.prototype.next = function () { return w(this.elems[0].nextElementSibling) }, t.prototype.parent = function () { return w(this.elems[0].parentElement) }, t.prototype.parentUntil = function (t, e) { var n = e || this.elems[0]; if ("BODY" === n.nodeName) return null; var o = n.parentElement; return null === o ? null : o.matches(t) ? w(o) : this.parentUntil(t, o) }, t.prototype.parentUntilEditor = function (t, e, n) { var o = n || this.elems[0]; if (w(o).equal(e.$textContainerElem) || w(o).equal(e.$toolbarElem)) return null; var r = o.parentElement; return null === r ? null : r.matches(t) ? w(r) : this.parentUntilEditor(t, e, r) }, t.prototype.equal = function (e) { return e instanceof t ? this.elems[0] === e.elems[0] : e instanceof HTMLElement && this.elems[0] === e }, t.prototype.insertBefore = function (t) { var e, n = w(t).elems[0]; return n ? (0, d.default)(e = this).call(e, (function (t) { n.parentNode.insertBefore(t, n) })) : this }, t.prototype.insertAfter = function (t) { var e, n = w(t).elems[0], o = n && n.nextSibling; return n ? (0, d.default)(e = this).call(e, (function (t) { var e = n.parentNode; o ? e.insertBefore(t, o) : e.appendChild(t) })) : this }, t.prototype.data = function (t, e) { if (null == e) return this.dataSource.get(t); this.dataSource.set(t, e) }, t.prototype.getNodeTop = function (t) { if (this.length < 1) return this; var e = this.parent(); return t.$textElem.equal(e) ? this : e.getNodeTop(t) }, t.prototype.getOffsetData = function () { var t = this.elems[0]; return { top: t.offsetTop, left: t.offsetLeft, width: t.offsetWidth, height: t.offsetHeight, parent: t.offsetParent } }, t.prototype.scrollTop = function (t) { this.elems[0].scrollTo({ top: t }) }, t }(); function w() { for (var t = [], e = 0; e < arguments.length; e++)t[e] = arguments[e]; return new ((0, r.default)(y).apply(y, v([void 0], t))) } e.DomElement = y, e.default = w }, function (t, e, n) { t.exports = n(134) }, function (t, e, n) { "use strict"; var o = n(8), r = n(67).f, i = n(101), a = n(10), l = n(47), u = n(17), c = n(15), s = function (t) { var e = function (e, n, o) { if (this instanceof t) { switch (arguments.length) { case 0: return new t; case 1: return new t(e); case 2: return new t(e, n) }return new t(e, n, o) } return t.apply(this, arguments) }; return e.prototype = t.prototype, e }; t.exports = function (t, e) { var n, f, d, p, A, v, h, g, m = t.target, y = t.global, w = t.stat, x = t.proto, b = y ? o : w ? o[m] : (o[m] || {}).prototype, E = y ? a : a[m] || (a[m] = {}), _ = E.prototype; for (d in e) n = !i(y ? d : m + (w ? "." : "#") + d, t.forced) && b && c(b, d), A = E[d], n && (v = t.noTargetGet ? (g = r(b, d)) && g.value : b[d]), p = n && v ? v : e[d], n && typeof A == typeof p || (h = t.bind && n ? l(p, o) : t.wrap && n ? s(p) : x && "function" == typeof p ? l(Function.call, p) : p, (t.sham || p && p.sham || A && A.sham) && u(h, "sham", !0), E[d] = h, x && (c(a, f = m + "Prototype") || u(a, f, {}), a[f][d] = p, t.real && _ && !_[d] && u(_, d, p))) } }, function (t, e, n) { t.exports = n(177) }, function (t, e, n) { t.exports = n(305) }, function (t, e, n) { "use strict"; var o = n(0), r = o(n(29)), i = o(n(93)), a = o(n(94)), l = o(n(121)), u = o(n(43)), c = o(n(260)), s = o(n(1)), f = function () { for (var t = 0, e = 0, n = arguments.length; e < n; e++)t += arguments[e].length; var o = Array(t), r = 0; for (e = 0; e < n; e++)for (var i = arguments[e], a = 0, l = i.length; a < l; a++, r++)o[r] = i[a]; return o }; (0, s.default)(e, "__esModule", { value: !0 }), e.hexToRgb = e.getRandomCode = e.toArray = e.deepClone = e.isFunction = e.debounce = e.throttle = e.arrForEach = e.forEach = e.replaceSpecialSymbol = e.replaceHtmlSymbol = e.getRandom = e.UA = void 0; var d = function () { function t() { this._ua = navigator.userAgent; var t = this._ua.match(/(Edge?)\/(\d+)/); this.isOldEdge = !!(t && "Edge" == t[1] && (0, c.default)(t[2]) < 19), this.isFirefox = !(!/Firefox\/\d+/.test(this._ua) || /Seamonkey\/\d+/.test(this._ua)) } return t.prototype.isIE = function () { return "ActiveXObject" in window }, t.prototype.isWebkit = function () { return /webkit/i.test(this._ua) }, t }(); e.UA = new d, e.getRandom = function (t) { var e; return void 0 === t && (t = ""), t + (0, u.default)(e = Math.random().toString()).call(e, 2) }, e.replaceHtmlSymbol = function (t) { return t.replace(//gm, ">").replace(/"/gm, """).replace(/(\r\n|\r|\n)/g, "
") }, e.replaceSpecialSymbol = function (t) { return t.replace(/</gm, "<").replace(/>/gm, ">").replace(/"/gm, '"') }, e.forEach = function (t, e) { for (var n in t) { if (Object.prototype.hasOwnProperty.call(t, n)) if (!1 === e(n, t[n])) break } }, e.arrForEach = function (t, e) { var n, o, r = t.length || 0; for (n = 0; n < r && (o = t[n], !1 !== e.call(t, o, n)); n++); }, e.throttle = function (t, e) { void 0 === e && (e = 200); var n = !1; return function () { for (var o = this, r = [], i = 0; i < arguments.length; i++)r[i] = arguments[i]; n || (n = !0, (0, l.default)((function () { n = !1, t.call.apply(t, f([o], r)) }), e)) } }, e.debounce = function (t, e) { void 0 === e && (e = 200); var n = 0; return function () { for (var o = this, r = [], i = 0; i < arguments.length; i++)r[i] = arguments[i]; n && window.clearTimeout(n), n = window.setTimeout((function () { n = 0, t.call.apply(t, f([o], r)) }), e) } }, e.isFunction = function (t) { return "function" == typeof t }, e.deepClone = function t(e) { if ("object" !== (0, a.default)(e) || "function" == typeof e || null === e) return e; var n; for (var o in (0, i.default)(e) && (n = []), (0, i.default)(e) || (n = {}), e) Object.prototype.hasOwnProperty.call(e, o) && (n[o] = t(e[o])); return n }, e.toArray = function (t) { return (0, u.default)(Array.prototype).call(t) }, e.getRandomCode = function () { var t; return (0, u.default)(t = Math.random().toString(36)).call(t, -5) }, e.hexToRgb = function (t) { var e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t); if (null == e) return null; var n = (0, r.default)(e).call(e, (function (t) { return (0, c.default)(t, 16) })); return "rgb(" + n[1] + ", " + n[2] + ", " + n[3] + ")" } }, function (t, e, n) { (function (e) { var n = function (t) { return t && t.Math == Math && t }; t.exports = n("object" == typeof globalThis && globalThis) || n("object" == typeof window && window) || n("object" == typeof self && self) || n("object" == typeof e && e) || function () { return this }() || Function("return this")() }).call(this, n(133)) }, function (t, e, n) { var o = n(8), r = n(73), i = n(15), a = n(60), l = n(77), u = n(104), c = r("wks"), s = o.Symbol, f = u ? s : s && s.withoutSetter || a; t.exports = function (t) { return i(c, t) || (l && i(s, t) ? c[t] = s[t] : c[t] = f("Symbol." + t)), c[t] } }, function (t, e) { t.exports = {} }, function (t, e, n) { var o = n(10), r = n(15), i = n(95), a = n(18).f; t.exports = function (t) { var e = o.Symbol || (o.Symbol = {}); r(e, t) || a(e, t, { value: i.f(t) }) } }, function (t, e) { t.exports = function (t) { try { return !!t() } catch (t) { return !0 } } }, function (t, e) { t.exports = function (t) { return "object" == typeof t ? null !== t : "function" == typeof t } }, function (t, e, n) { var o = n(12); t.exports = !o((function () { return 7 != Object.defineProperty({}, 1, { get: function () { return 7 } })[1] })) }, function (t, e) { var n = {}.hasOwnProperty; t.exports = function (t, e) { return n.call(t, e) } }, function (t, e, n) { var o = n(10); t.exports = function (t) { return o[t + "Prototype"] } }, function (t, e, n) { var o = n(14), r = n(18), i = n(35); t.exports = o ? function (t, e, n) { return r.f(t, e, i(1, n)) } : function (t, e, n) { return t[e] = n, t } }, function (t, e, n) { var o = n(14), r = n(100), i = n(24), a = n(56), l = Object.defineProperty; e.f = o ? l : function (t, e, n) { if (i(t), e = a(e, !0), i(n), r) try { return l(t, e, n) } catch (t) { } if ("get" in n || "set" in n) throw TypeError("Accessors not supported"); return "value" in n && (t[e] = n.value), t } }, function (t, e, n) { t.exports = n(212) }, function (t, e, n) { "use strict"; var o, r = function () { return void 0 === o && (o = Boolean(window && document && document.all && !window.atob)), o }, i = function () { var t = {}; return function (e) { if (void 0 === t[e]) { var n = document.querySelector(e); if (window.HTMLIFrameElement && n instanceof window.HTMLIFrameElement) try { n = n.contentDocument.head } catch (t) { n = null } t[e] = n } return t[e] } }(), a = []; function l(t) { for (var e = -1, n = 0; n < a.length; n++)if (a[n].identifier === t) { e = n; break } return e } function u(t, e) { for (var n = {}, o = [], r = 0; r < t.length; r++) { var i = t[r], u = e.base ? i[0] + e.base : i[0], c = n[u] || 0, s = "".concat(u, " ").concat(c); n[u] = c + 1; var f = l(s), d = { css: i[1], media: i[2], sourceMap: i[3] }; -1 !== f ? (a[f].references++, a[f].updater(d)) : a.push({ identifier: s, updater: h(d, e), references: 1 }), o.push(s) } return o } function c(t) { var e = document.createElement("style"), o = t.attributes || {}; if (void 0 === o.nonce) { var r = n.nc; r && (o.nonce = r) } if (Object.keys(o).forEach((function (t) { e.setAttribute(t, o[t]) })), "function" == typeof t.insert) t.insert(e); else { var a = i(t.insert || "head"); if (!a) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); a.appendChild(e) } return e } var s, f = (s = [], function (t, e) { return s[t] = e, s.filter(Boolean).join("\n") }); function d(t, e, n, o) { var r = n ? "" : o.media ? "@media ".concat(o.media, " {").concat(o.css, "}") : o.css; if (t.styleSheet) t.styleSheet.cssText = f(e, r); else { var i = document.createTextNode(r), a = t.childNodes; a[e] && t.removeChild(a[e]), a.length ? t.insertBefore(i, a[e]) : t.appendChild(i) } } function p(t, e, n) { var o = n.css, r = n.media, i = n.sourceMap; if (r ? t.setAttribute("media", r) : t.removeAttribute("media"), i && "undefined" != typeof btoa && (o += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i)))), " */")), t.styleSheet) t.styleSheet.cssText = o; else { for (; t.firstChild;)t.removeChild(t.firstChild); t.appendChild(document.createTextNode(o)) } } var A = null, v = 0; function h(t, e) { var n, o, r; if (e.singleton) { var i = v++; n = A || (A = c(e)), o = d.bind(null, n, i, !1), r = d.bind(null, n, i, !0) } else n = c(e), o = p.bind(null, n, e), r = function () { !function (t) { if (null === t.parentNode) return !1; t.parentNode.removeChild(t) }(n) }; return o(t), function (e) { if (e) { if (e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap) return; o(t = e) } else r() } } t.exports = function (t, e) { (e = e || {}).singleton || "boolean" == typeof e.singleton || (e.singleton = r()); var n = u(t = t || [], e); return function (t) { if (t = t || [], "[object Array]" === Object.prototype.toString.call(t)) { for (var o = 0; o < n.length; o++) { var r = l(n[o]); a[r].references-- } for (var i = u(t, e), c = 0; c < n.length; c++) { var s = l(n[c]); 0 === a[s].references && (a[s].updater(), a.splice(s, 1)) } n = i } } } }, function (t, e, n) { "use strict"; t.exports = function (t) { var e = []; return e.toString = function () { return this.map((function (e) { var n = function (t, e) { var n = t[1] || "", o = t[3]; if (!o) return n; if (e && "function" == typeof btoa) { var r = (a = o, l = btoa(unescape(encodeURIComponent(JSON.stringify(a)))), u = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l), "/*# ".concat(u, " */")), i = o.sources.map((function (t) { return "/*# sourceURL=".concat(o.sourceRoot || "").concat(t, " */") })); return [n].concat(i).concat([r]).join("\n") } var a, l, u; return [n].join("\n") }(e, t); return e[2] ? "@media ".concat(e[2], " {").concat(n, "}") : n })).join("") }, e.i = function (t, n, o) { "string" == typeof t && (t = [[null, t, ""]]); var r = {}; if (o) for (var i = 0; i < this.length; i++) { var a = this[i][0]; null != a && (r[a] = !0) } for (var l = 0; l < t.length; l++) { var u = [].concat(t[l]); o && r[u[0]] || (n && (u[2] ? u[2] = "".concat(n, " and ").concat(u[2]) : u[2] = n), e.push(u)) } }, e } }, function (t, e, n) { "use strict"; var o, r = n(0), i = r(n(1)), a = r(n(3)), l = r(n(6)), u = (o = function (t, e) { return (o = l.default || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e } || function (t, e) { for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]) })(t, e) }, function (t, e) { function n() { this.constructor = t } o(t, e), t.prototype = null === e ? (0, a.default)(e) : (n.prototype = e.prototype, new n) }), c = function (t) { return t && t.__esModule ? t : { default: t } }; (0, i.default)(e, "__esModule", { value: !0 }); var s = function (t) { function e(e, n) { return t.call(this, e, n) || this } return u(e, t), e }(c(n(96)).default); e.default = s }, function (t, e, n) { "use strict"; var o, r = n(0), i = r(n(5)), a = r(n(1)), l = r(n(3)), u = r(n(6)), c = (o = function (t, e) { return (o = u.default || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e } || function (t, e) { for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]) })(t, e) }, function (t, e) { function n() { this.constructor = t } o(t, e), t.prototype = null === e ? (0, l.default)(e) : (n.prototype = e.prototype, new n) }), s = function (t) { return t && t.__esModule ? t : { default: t } }; (0, a.default)(e, "__esModule", { value: !0 }); var f = s(n(2)), d = s(n(96)), p = s(n(125)), A = function (t) { function e(e, n, o) { var r = t.call(this, e, n) || this; o.title = n.i18next.t("menus.dropListMenu." + o.title); var a, l = "zh-CN" === n.config.lang ? "" : "w-e-drop-list-tl"; "" !== l && "list" === o.type && (0, i.default)(a = o.list).call(a, (function (t) { var e = t.$elem, n = f.default(e.children()); if (n.length > 0) { var o = null == n ? void 0 : n.getNodeName(); o && "I" === o && e.addClass(l) } })); var u = new p.default(r, o); return r.dropList = u, e.on("mouseenter", (function () { var t; null != n.selection.getRange() && (e.css("z-index", n.zIndex.get("menu")), (0, i.default)(t = n.txt.eventHooks.dropListMenuHoverEvents).call(t, (function (t) { return t() })), u.showTimeoutId = window.setTimeout((function () { u.show() }), 200)) })).on("mouseleave", (function () { e.css("z-index", "auto"), u.hideTimeoutId = window.setTimeout((function () { u.hide() })) })), r } return c(e, t), e }(d.default); e.default = A }, function (t, e, n) { var o = n(13); t.exports = function (t) { if (!o(t)) throw TypeError(String(t) + " is not an object"); return t } }, function (t, e, n) { var o = n(14), r = n(12), i = n(15), a = Object.defineProperty, l = {}, u = function (t) { throw t }; t.exports = function (t, e) { if (i(l, t)) return l[t]; e || (e = {}); var n = [][t], c = !!i(e, "ACCESSORS") && e.ACCESSORS, s = i(e, 0) ? e[0] : u, f = i(e, 1) ? e[1] : void 0; return l[t] = !!n && !r((function () { if (c && !o) return !0; var t = { length: -1 }; c ? a(t, 1, { enumerable: !0, get: u }) : t[1] = 1, n.call(t, s, f) })) } }, function (t, e, n) { "use strict"; (0, n(0)(n(1)).default)(e, "__esModule", { value: !0 }), e.videoRegex = e.urlRegex = e.imgRegex = e.EMPTY_FN = void 0, e.EMPTY_FN = function () { }, e.imgRegex = /\.(gif|jpg|jpeg|png)$/i, e.urlRegex = /^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/, e.videoRegex = /((|<(iframe|video|embed|object)\s+[\s\S]*\/?>/ }, function (t, e, n) { var o = n(68), r = n(46); t.exports = function (t) { return o(r(t)) } }, function (t, e, n) { var o = n(10), r = n(8), i = function (t) { return "function" == typeof t ? t : void 0 }; t.exports = function (t, e) { return arguments.length < 2 ? i(o[t]) || i(r[t]) : o[t] && o[t][e] || r[t] && r[t][e] } }, function (t, e, n) { t.exports = n(217) }, function (t, e, n) { t.exports = n(284) }, function (t, e, n) { "use strict"; var o = n(0), r = o(n(124)), i = o(n(30)), a = o(n(5)), l = function (t) { return t && t.__esModule ? t : { default: t } }; (0, o(n(1)).default)(e, "__esModule", { value: !0 }); var u = l(n(2)), c = n(26), s = function () { function t(e, n) { this.menu = e, this.conf = n, this.$container = u.default('
'); var o = e.editor; o.txt.eventHooks.clickEvents.push(t.hideCurAllPanels), o.txt.eventHooks.toolbarClickEvents.push(t.hideCurAllPanels), o.txt.eventHooks.dropListMenuHoverEvents.push(t.hideCurAllPanels) } return t.prototype.create = function () { var e = this, n = this.menu; if (!t.createdMenus.has(n)) { var o = this.conf, r = this.$container, l = o.width || 300, s = n.editor.$toolbarElem.getBoundingClientRect(), f = n.$elem.getBoundingClientRect(), d = s.height + s.top - f.top, p = (s.width - l) / 2 + s.left - f.left; r.css("width", l + "px").css("margin-top", d + "px").css("margin-left", p + "px").css("z-index", n.editor.zIndex.get("panel")); var A = u.default(''); r.append(A), A.on("click", (function () { e.remove() })); var v = u.default(''), h = u.default('
'); r.append(v).append(h); var g = o.height; g && h.css("height", g + "px").css("overflow-y", "auto"); var m = o.tabs || [], y = [], w = []; (0, a.default)(m).call(m, (function (t, e) { if (t) { var n = t.title || "", o = t.tpl || "", r = u.default('
  • ' + n + "
  • "); v.append(r); var i = u.default(o); h.append(i), y.push(r), w.push(i), 0 === e ? (r.data("active", !0), r.addClass("w-e-active")) : i.hide(), r.on("click", (function () { r.data("active") || ((0, a.default)(y).call(y, (function (t) { t.data("active", !1), t.removeClass("w-e-active") })), (0, a.default)(w).call(w, (function (t) { t.hide() })), r.data("active", !0), r.addClass("w-e-active"), i.show()) })) } })), r.on("click", (function (t) { t.stopPropagation() })), n.$elem.append(r), (0, a.default)(m).call(m, (function (t, n) { if (t) { var o = t.events || []; (0, a.default)(o).call(o, (function (t) { var o = t.selector, r = t.type, a = t.fn || c.EMPTY_FN, l = w[n]; (0, i.default)(l).call(l, o).on(r, (function (t) { t.stopPropagation(), a(t) && e.remove() })) })) } })); var x = (0, i.default)(r).call(r, "input[type=text],textarea"); x.length && x.get(0).focus(), t.hideCurAllPanels(), n.setPanel(this), t.createdMenus.add(n) } }, t.prototype.remove = function () { var e = this.menu, n = this.$container; n && n.remove(), t.createdMenus.delete(e) }, t.hideCurAllPanels = function () { var e; 0 !== t.createdMenus.size && (0, a.default)(e = t.createdMenus).call(e, (function (t) { var e = t.panel; e && e.remove() })) }, t.createdMenus = new r.default, t }(); e.default = s }, function (t, e) { t.exports = function (t) { if ("function" != typeof t) throw TypeError(String(t) + " is not a function"); return t } }, function (t, e, n) { var o = n(47), r = n(68), i = n(38), a = n(36), l = n(86), u = [].push, c = function (t) { var e = 1 == t, n = 2 == t, c = 3 == t, s = 4 == t, f = 6 == t, d = 7 == t, p = 5 == t || f; return function (A, v, h, g) { for (var m, y, w = i(A), x = r(w), b = o(v, h, 3), E = a(x.length), _ = 0, C = g || l, S = e ? C(A, E) : n || d ? C(A, 0) : void 0; E > _; _++)if ((p || _ in x) && (y = b(m = x[_], _, w), t)) if (e) S[_] = y; else if (y) switch (t) { case 3: return !0; case 5: return m; case 6: return _; case 2: u.call(S, m) } else switch (t) { case 4: return !1; case 7: u.call(S, m) }return f ? -1 : c || s ? s : S } }; t.exports = { forEach: c(0), map: c(1), filter: c(2), some: c(3), every: c(4), find: c(5), findIndex: c(6), filterOut: c(7) } }, function (t, e, n) { "use strict"; var o, r = n(0), i = r(n(1)), a = r(n(3)), l = r(n(6)), u = (o = function (t, e) { return (o = l.default || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e } || function (t, e) { for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]) })(t, e) }, function (t, e) { function n() { this.constructor = t } o(t, e), t.prototype = null === e ? (0, a.default)(e) : (n.prototype = e.prototype, new n) }), c = function (t) { return t && t.__esModule ? t : { default: t } }; (0, i.default)(e, "__esModule", { value: !0 }); var s = function (t) { function e(e, n) { return t.call(this, e, n) || this } return u(e, t), e.prototype.setPanel = function (t) { this.panel = t }, e }(c(n(96)).default); e.default = s }, function (t, e) { t.exports = function (t, e) { return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e } } }, function (t, e, n) { var o = n(58), r = Math.min; t.exports = function (t) { return t > 0 ? r(o(t), 9007199254740991) : 0 } }, function (t, e) { t.exports = !0 }, function (t, e, n) { var o = n(46); t.exports = function (t) { return Object(o(t)) } }, function (t, e, n) { var o = n(24), r = n(160), i = n(36), a = n(47), l = n(161), u = n(162), c = function (t, e) { this.stopped = t, this.result = e }; t.exports = function (t, e, n) { var s, f, d, p, A, v, h, g = n && n.that, m = !(!n || !n.AS_ENTRIES), y = !(!n || !n.IS_ITERATOR), w = !(!n || !n.INTERRUPTED), x = a(e, g, 1 + m + w), b = function (t) { return s && u(s), new c(!0, t) }, E = function (t) { return m ? (o(t), w ? x(t[0], t[1], b) : x(t[0], t[1])) : w ? x(t, b) : x(t) }; if (y) s = t; else { if ("function" != typeof (f = l(t))) throw TypeError("Target is not iterable"); if (r(f)) { for (d = 0, p = i(t.length); p > d; d++)if ((A = E(t[d])) && A instanceof c) return A; return new c(!1) } s = f.call(t) } for (v = s.next; !(h = v.call(s)).done;) { try { A = E(h.value) } catch (t) { throw u(s), t } if ("object" == typeof A && A && A instanceof c) return A } return new c(!1) } }, function (t, e) { t.exports = {} }, function (t, e, n) { var o = n(78), r = n(18).f, i = n(17), a = n(15), l = n(164), u = n(9)("toStringTag"); t.exports = function (t, e, n, c) { if (t) { var s = n ? t : t.prototype; a(s, u) || r(s, u, { configurable: !0, value: e }), c && !o && i(s, "toString", l) } } }, function (t, e, n) { var o, r, i, a = n(168), l = n(8), u = n(13), c = n(17), s = n(15), f = n(74), d = n(59), p = n(49), A = l.WeakMap; if (a) { var v = f.state || (f.state = new A), h = v.get, g = v.has, m = v.set; o = function (t, e) { return e.facade = t, m.call(v, t, e), e }, r = function (t) { return h.call(v, t) || {} }, i = function (t) { return g.call(v, t) } } else { var y = d("state"); p[y] = !0, o = function (t, e) { return e.facade = t, c(t, y, e), e }, r = function (t) { return s(t, y) ? t[y] : {} }, i = function (t) { return s(t, y) } } t.exports = { set: o, get: r, has: i, enforce: function (t) { return i(t) ? r(t) : o(t, {}) }, getterFor: function (t) { return function (e) { var n; if (!u(e) || (n = r(e)).type !== t) throw TypeError("Incompatible receiver, " + t + " required"); return n } } } }, function (t, e, n) { t.exports = n(256) }, function (t, e, n) { "use strict"; var o = n(0), r = o(n(5)), i = o(n(1)), a = function (t) { return t && t.__esModule ? t : { default: t } }; (0, i.default)(e, "__esModule", { value: !0 }); var l = a(n(2)), u = function () { function t(t, e, n) { this.editor = t, this.$targetElem = e, this.conf = n, this._show = !1, this._isInsertTextContainer = !1; var o = l.default("
    "); o.addClass("w-e-tooltip"), this.$container = o } return t.prototype.getPositionData = function () { var t = this.$container, e = 0, n = 0, o = document.documentElement.scrollTop, r = this.$targetElem.getBoundingClientRect(), i = this.editor.$textElem.getBoundingClientRect(), a = this.$targetElem.getOffsetData(), u = l.default(a.parent), c = this.editor.$textElem.elems[0].scrollTop; if (this._isInsertTextContainer = u.equal(this.editor.$textContainerElem), this._isInsertTextContainer) { var s = u.getClientHeight(), f = a.top, d = a.left, p = a.height, A = f - c; A > 25 ? (e = A - 20 - 15, t.addClass("w-e-tooltip-up")) : A + p + 20 < s ? (e = A + p + 10, t.addClass("w-e-tooltip-down")) : (e = (A > 0 ? A : 0) + 20 + 10, t.addClass("w-e-tooltip-down")), n = d < 0 ? 0 : d } else r.top < 20 || r.top - i.top < 20 ? (e = r.bottom + o + 5, t.addClass("w-e-tooltip-down")) : (e = r.top + o - 20 - 15, t.addClass("w-e-tooltip-up")), n = r.left < 0 ? 0 : r.left; return { top: e, left: n } }, t.prototype.appendMenus = function () { var t = this, e = this.conf, n = this.editor, o = this.$targetElem, i = this.$container; (0, r.default)(e).call(e, (function (e, r) { var a = e.$elem, u = l.default("
    "); u.addClass("w-e-tooltip-item-wrapper "), u.append(a), i.append(u), a.on("click", (function (r) { r.preventDefault(), e.onClick(n, o) && t.remove() })) })) }, t.prototype.create = function () { var t = this.editor, e = this.$container; this.appendMenus(); var n = this.getPositionData(), o = n.top, r = n.left; e.css("top", o + "px"), e.css("left", r + "px"), e.css("z-index", t.zIndex.get("tooltip")), this._isInsertTextContainer ? this.editor.$textContainerElem.append(e) : l.default("body").append(e), this._show = !0 }, t.prototype.remove = function () { this.$container.remove(), this._show = !1 }, (0, i.default)(t.prototype, "isShow", { get: function () { return this._show }, enumerable: !1, configurable: !0 }), t }(); e.default = u }, function (t, e) { var n = {}.toString; t.exports = function (t) { return n.call(t).slice(8, -1) } }, function (t, e) { t.exports = function (t) { if (null == t) throw TypeError("Can't call method on " + t); return t } }, function (t, e, n) { var o = n(32); t.exports = function (t, e, n) { if (o(t), void 0 === e) return t; switch (n) { case 0: return function () { return t.call(e) }; case 1: return function (n) { return t.call(e, n) }; case 2: return function (n, o) { return t.call(e, n, o) }; case 3: return function (n, o, r) { return t.call(e, n, o, r) } }return function () { return t.apply(e, arguments) } } }, function (t, e, n) { var o, r = n(24), i = n(137), a = n(72), l = n(49), u = n(103), c = n(69), s = n(59), f = s("IE_PROTO"), d = function () { }, p = function (t) { return "