UNPKG

@form-create/vant-designer

Version:

基于Vant的移动端低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。

34 lines (32 loc) 305 kB
/*! * FormCreate 移动端可视化表单设计器 * @form-create/vant-designer v3.4.0 * (c) 2021-2025 xaboy * Github https://github.com/xaboy/form-create-designer * Site https://form-create.com/ * Released under the MIT License. */ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-m-signature{width:100%}._fc-m-signature-btn,._fc-m-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-m-signature-btn{cursor:pointer}._fc-m-signature.disabled ._fc-m-signature-btn{color:#c9ccd8;cursor:not-allowed}._fc-m-signature-preview>img{display:inline-block;height:88px}._fc-m-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-m-signature-btn i{font-size:14px}._fc-m-signature-dialog .van-dialog__header{padding:15px 0;position:relative}._fc-m-signature-dialog .icon-add2{color:#aaa;display:inline-block;position:absolute;right:18px;transform:rotate(45deg)}._fc-m-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;min-height:170px;width:100%}._fc-table-form{color:#666;overflow:auto}._fc-table-form .van-button{margin-top:10px;overflow:hidden}._fc-table-form .van-button__text{align-items:center;display:flex}._fc-table-form .form-create td .el-form-item{margin-bottom:1px}._fc-table-form .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form .van-field__label{display:none!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;font-weight:500;height:40px;padding:0 5px;text-align:center}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table{overflow:auto}._fc-table>table{border-bottom:1px solid #ebeef5;border-collapse:collapse;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative;text-align:center;vertical-align:middle}._fc-table.is-mini td{min-height:12px;padding:0}._fc-table.is-mini .van-cell{margin:0;padding:0}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); (function(pt,Rt){typeof exports=="object"&&typeof module<"u"?Rt(exports,require("@form-create/vant"),require("vue")):typeof define=="function"&&define.amd?define(["exports","@form-create/vant","vue"],Rt):(pt=typeof globalThis<"u"?globalThis:pt||self,Rt(pt.FcDesignerMobileComponents={},pt.formCreateMobile,pt.Vue))})(this,function(pt,Rt,$){"use strict";const Qt=(b=>b&&typeof b=="object"&&"default"in b?b:{default:b})(Rt);/*! * @form-create/component-wangeditor v3.2.14 * (c) 2018-2024 xaboy * Github https://github.com/xaboy/form-create with wangeditor * Released under the MIT License. */function bt(b,M){var o=Object.keys(b);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(b);M&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(b,t).enumerable})),o.push.apply(o,n)}return o}function Vt(b){for(var M=1;M<arguments.length;M++){var o=arguments[M]!=null?arguments[M]:{};M%2?bt(Object(o),!0).forEach(function(n){Yt(b,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(o)):bt(Object(o)).forEach(function(n){Object.defineProperty(b,n,Object.getOwnPropertyDescriptor(o,n))})}return b}function it(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?it=function(M){return typeof M}:it=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},it(b)}function Yt(b,M,o){return M in b?Object.defineProperty(b,M,{value:o,enumerable:!0,configurable:!0,writable:!0}):b[M]=o,b}function zt(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}var Ut={exports:{}};(function(b,M){(function(n,t){b.exports=t()})(window,function(){return function(o){var n={};function t(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return o[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=o,t.c=n,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:r})},t.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(i&1&&(e=t(e)),i&8||i&4&&it(e)==="object"&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),i&2&&typeof e!="string")for(var a in e)t.d(r,a,function(s){return e[s]}.bind(null,a));return r},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=141)}([function(o,n){function t(e){return e&&e.__esModule?e:{default:e}}o.exports=t},function(o,n,t){o.exports=t(142)},function(o,n,t){t.r(n),t.d(n,"__extends",function(){return i}),t.d(n,"__assign",function(){return r}),t.d(n,"__rest",function(){return a}),t.d(n,"__decorate",function(){return s}),t.d(n,"__param",function(){return h}),t.d(n,"__metadata",function(){return c}),t.d(n,"__awaiter",function(){return p}),t.d(n,"__generator",function(){return d}),t.d(n,"__createBinding",function(){return l}),t.d(n,"__exportStar",function(){return f}),t.d(n,"__values",function(){return u}),t.d(n,"__read",function(){return m}),t.d(n,"__spread",function(){return v}),t.d(n,"__spreadArrays",function(){return A}),t.d(n,"__spreadArray",function(){return g}),t.d(n,"__await",function(){return y}),t.d(n,"__asyncGenerator",function(){return x}),t.d(n,"__asyncDelegator",function(){return S}),t.d(n,"__asyncValues",function(){return D}),t.d(n,"__makeTemplateObject",function(){return P}),t.d(n,"__importStar",function(){return E}),t.d(n,"__importDefault",function(){return T}),t.d(n,"__classPrivateFieldGet",function(){return I}),t.d(n,"__classPrivateFieldSet",function(){return B});/*! ***************************************************************************** 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 e=function(N,F){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,w){L.__proto__=w}||function(L,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(L[O]=w[O])},e(N,F)};function i(R,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");e(R,N);function F(){this.constructor=R}R.prototype=N===null?Object.create(N):(F.prototype=N.prototype,new F)}var r=function(){return r=Object.assign||function(F){for(var L,w=1,O=arguments.length;w<O;w++){L=arguments[w];for(var H in L)Object.prototype.hasOwnProperty.call(L,H)&&(F[H]=L[H])}return F},r.apply(this,arguments)};function a(R,N){var F={};for(var L in R)Object.prototype.hasOwnProperty.call(R,L)&&N.indexOf(L)<0&&(F[L]=R[L]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,L=Object.getOwnPropertySymbols(R);w<L.length;w++)N.indexOf(L[w])<0&&Object.prototype.propertyIsEnumerable.call(R,L[w])&&(F[L[w]]=R[L[w]]);return F}function s(R,N,F,L){var w=arguments.length,O=w<3?N:L===null?L=Object.getOwnPropertyDescriptor(N,F):L,H;if((typeof Reflect>"u"?"undefined":it(Reflect))==="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(R,N,F,L);else for(var U=R.length-1;U>=0;U--)(H=R[U])&&(O=(w<3?H(O):w>3?H(N,F,O):H(N,F))||O);return w>3&&O&&Object.defineProperty(N,F,O),O}function h(R,N){return function(F,L){N(F,L,R)}}function c(R,N){if((typeof Reflect>"u"?"undefined":it(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(R,N)}function p(R,N,F,L){function w(O){return O instanceof F?O:new F(function(H){H(O)})}return new(F||(F=Promise))(function(O,H){function U(J){try{Q(L.next(J))}catch(W){H(W)}}function K(J){try{Q(L.throw(J))}catch(W){H(W)}}function Q(J){J.done?O(J.value):w(J.value).then(U,K)}Q((L=L.apply(R,N||[])).next())})}function d(R,N){var F={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},L,w,O,H;return H={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function U(Q){return function(J){return K([Q,J])}}function K(Q){if(L)throw new TypeError("Generator is already executing.");for(;F;)try{if(L=1,w&&(O=Q[0]&2?w.return:Q[0]?w.throw||((O=w.return)&&O.call(w),0):w.next)&&!(O=O.call(w,Q[1])).done)return O;switch(w=0,O&&(Q=[Q[0]&2,O.value]),Q[0]){case 0:case 1:O=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,w=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(O=F.trys,!(O=O.length>0&&O[O.length-1])&&(Q[0]===6||Q[0]===2)){F=0;continue}if(Q[0]===3&&(!O||Q[1]>O[0]&&Q[1]<O[3])){F.label=Q[1];break}if(Q[0]===6&&F.label<O[1]){F.label=O[1],O=Q;break}if(O&&F.label<O[2]){F.label=O[2],F.ops.push(Q);break}O[2]&&F.ops.pop(),F.trys.pop();continue}Q=N.call(R,F)}catch(J){Q=[6,J],w=0}finally{L=O=0}if(Q[0]&5)throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}}var l=Object.create?function(R,N,F,L){L===void 0&&(L=F),Object.defineProperty(R,L,{enumerable:!0,get:function(){return N[F]}})}:function(R,N,F,L){L===void 0&&(L=F),R[L]=N[F]};function f(R,N){for(var F in R)F!=="default"&&!Object.prototype.hasOwnProperty.call(N,F)&&l(N,R,F)}function u(R){var N=typeof Symbol=="function"&&Symbol.iterator,F=N&&R[N],L=0;if(F)return F.call(R);if(R&&typeof R.length=="number")return{next:function(){return R&&L>=R.length&&(R=void 0),{value:R&&R[L++],done:!R}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(R,N){var F=typeof Symbol=="function"&&R[Symbol.iterator];if(!F)return R;var L=F.call(R),w,O=[],H;try{for(;(N===void 0||N-- >0)&&!(w=L.next()).done;)O.push(w.value)}catch(U){H={error:U}}finally{try{w&&!w.done&&(F=L.return)&&F.call(L)}finally{if(H)throw H.error}}return O}function v(){for(var R=[],N=0;N<arguments.length;N++)R=R.concat(m(arguments[N]));return R}function A(){for(var R=0,N=0,F=arguments.length;N<F;N++)R+=arguments[N].length;for(var L=Array(R),w=0,N=0;N<F;N++)for(var O=arguments[N],H=0,U=O.length;H<U;H++,w++)L[w]=O[H];return L}function g(R,N){for(var F=0,L=N.length,w=R.length;F<L;F++,w++)R[w]=N[F];return R}function y(R){return this instanceof y?(this.v=R,this):new y(R)}function x(R,N,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L=F.apply(R,N||[]),w,O=[];return w={},H("next"),H("throw"),H("return"),w[Symbol.asyncIterator]=function(){return this},w;function H(j){L[j]&&(w[j]=function(G){return new Promise(function(Z,_){O.push([j,G,Z,_])>1||U(j,G)})})}function U(j,G){try{K(L[j](G))}catch(Z){W(O[0][3],Z)}}function K(j){j.value instanceof y?Promise.resolve(j.value.v).then(Q,J):W(O[0][2],j)}function Q(j){U("next",j)}function J(j){U("throw",j)}function W(j,G){j(G),O.shift(),O.length&&U(O[0][0],O[0][1])}}function S(R){var N,F;return N={},L("next"),L("throw",function(w){throw w}),L("return"),N[Symbol.iterator]=function(){return this},N;function L(w,O){N[w]=R[w]?function(H){return(F=!F)?{value:y(R[w](H)),done:w==="return"}:O?O(H):H}:O}}function D(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=R[Symbol.asyncIterator],F;return N?N.call(R):(R=typeof u=="function"?u(R):R[Symbol.iterator](),F={},L("next"),L("throw"),L("return"),F[Symbol.asyncIterator]=function(){return this},F);function L(O){F[O]=R[O]&&function(H){return new Promise(function(U,K){H=R[O](H),w(U,K,H.done,H.value)})}}function w(O,H,U,K){Promise.resolve(K).then(function(Q){O({value:Q,done:U})},H)}}function P(R,N){return Object.defineProperty?Object.defineProperty(R,"raw",{value:N}):R.raw=N,R}var C=Object.create?function(R,N){Object.defineProperty(R,"default",{enumerable:!0,value:N})}:function(R,N){R.default=N};function E(R){if(R&&R.__esModule)return R;var N={};if(R!=null)for(var F in R)F!=="default"&&Object.prototype.hasOwnProperty.call(R,F)&&l(N,R,F);return C(N,R),N}function T(R){return R&&R.__esModule?R:{default:R}}function I(R,N){if(!N.has(R))throw new TypeError("attempted to get private field on non-instance");return N.get(R)}function B(R,N,F){if(!N.has(R))throw new TypeError("attempted to set private field on non-instance");return N.set(R,F),F}},function(o,n,t){var e=t(0),i=e(t(1)),r=e(t(89)),a=e(t(4)),s=e(t(26)),h=e(t(17)),c=e(t(121)),p=e(t(27)),d=e(t(91)),l=e(t(70)),f=e(t(28)),u=e(t(57));(0,i.default)(n,"__esModule",{value:!0}),n.DomElement=void 0;var m=t(2),v=t(6),A=[];function g(C){var E=document.createElement("div");E.innerHTML=C;var T=E.children;return v.toArray(T)}function y(C){return C?C instanceof HTMLCollection||C instanceof NodeList:!1}function x(C){var E=document.querySelectorAll(C);return v.toArray(E)}function S(C){var E=[],T=[];return(0,r.default)(C)?E=C:E=C.split(";"),(0,a.default)(E).call(E,function(I){var B,R=(0,s.default)(B=I.split(":")).call(B,function(N){return(0,h.default)(N).call(N)});R.length===2&&T.push(R[0]+":"+R[1])}),T}var D=function(){function C(E){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,!!E){if(E instanceof C)return E;var T=[],I=E instanceof Node?E.nodeType:-1;if(this.selector=E,I===1||I===9)T=[E];else if(y(E))T=v.toArray(E);else if(E instanceof Array)T=E;else if(typeof E=="string"){var B,R=(0,h.default)(B=E.replace(`/ /mg`,"")).call(B);(0,p.default)(R).call(R,"<")===0?T=g(R):T=x(R)}var N=T.length;if(!N)return this;for(var F=0;F<N;F++)this.elems.push(T[F]);this.length=N}}return(0,i.default)(C.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),C.prototype.forEach=function(E){for(var T=0;T<this.length;T++){var I=this.elems[T],B=E.call(I,I,T);if(B===!1)break}return this},C.prototype.clone=function(E){var T;E===void 0&&(E=!1);var I=[];return(0,a.default)(T=this.elems).call(T,function(B){I.push(B.cloneNode(!!E))}),P(I)},C.prototype.get=function(E){E===void 0&&(E=0);var T=this.length;return E>=T&&(E=E%T),P(this.elems[E])},C.prototype.first=function(){return this.get(0)},C.prototype.last=function(){var E=this.length;return this.get(E-1)},C.prototype.on=function(E,T,I){var B;return E?(typeof T=="function"&&(I=T,T=""),(0,a.default)(B=this).call(B,function(R){if(!T){R.addEventListener(E,I);return}var N=function(L){var w=L.target;w.matches(T)&&I.call(w,L)};R.addEventListener(E,N),A.push({elem:R,selector:T,fn:I,agentFn:N})})):this},C.prototype.off=function(E,T,I){var B;return E?(typeof T=="function"&&(I=T,T=""),(0,a.default)(B=this).call(B,function(R){if(T){for(var N=-1,F=0;F<A.length;F++){var L=A[F];if(L.selector===T&&L.fn===I&&L.elem===R){N=F;break}}if(N!==-1){var w=(0,d.default)(A).call(A,N,1)[0].agentFn;R.removeEventListener(E,w)}}else R.removeEventListener(E,I)})):this},C.prototype.attr=function(E,T){var I;return T==null?this.elems[0].getAttribute(E)||"":(0,a.default)(I=this).call(I,function(B){B.setAttribute(E,T)})},C.prototype.removeAttr=function(E){var T;(0,a.default)(T=this).call(T,function(I){I.removeAttribute(E)})},C.prototype.addClass=function(E){var T;return E?(0,a.default)(T=this).call(T,function(I){if(I.className){var B=I.className.split(/\s/);B=(0,l.default)(B).call(B,function(R){return!!(0,h.default)(R).call(R)}),(0,p.default)(B).call(B,E)<0&&B.push(E),I.className=B.join(" ")}else I.className=E}):this},C.prototype.removeClass=function(E){var T;return E?(0,a.default)(T=this).call(T,function(I){if(!!I.className){var B=I.className.split(/\s/);B=(0,l.default)(B).call(B,function(R){return R=(0,h.default)(R).call(R),!(!R||R===E)}),I.className=B.join(" ")}}):this},C.prototype.hasClass=function(E){if(!E)return!1;var T=this.elems[0];if(!T.className)return!1;var I=T.className.split(/\s/);return(0,f.default)(I).call(I,E)},C.prototype.css=function(E,T){var I,B;return T==""?B="":B=E+":"+T+";",(0,a.default)(I=this).call(I,function(R){var N,F=(0,h.default)(N=R.getAttribute("style")||"").call(N);if(F){var L=S(F);L=(0,s.default)(L).call(L,function(w){return(0,p.default)(w).call(w,E)===0?B:w}),B!=""&&(0,p.default)(L).call(L,B)<0&&L.push(B),B==""&&(L=S(L)),R.setAttribute("style",L.join("; "))}else R.setAttribute("style",B)})},C.prototype.getBoundingClientRect=function(){var E=this.elems[0];return E.getBoundingClientRect()},C.prototype.show=function(){return this.css("display","block")},C.prototype.hide=function(){return this.css("display","none")},C.prototype.children=function(){var E=this.elems[0];return E?P(E.children):null},C.prototype.childNodes=function(){var E=this.elems[0];return E?P(E.childNodes):null},C.prototype.replaceChildAll=function(E){for(var T=this.getNode(),I=this.elems[0];I.hasChildNodes();)T.firstChild&&I.removeChild(T.firstChild);this.append(E)},C.prototype.append=function(E){var T;return(0,a.default)(T=this).call(T,function(I){(0,a.default)(E).call(E,function(B){I.appendChild(B)})})},C.prototype.remove=function(){var E;return(0,a.default)(E=this).call(E,function(T){if(T.remove)T.remove();else{var I=T.parentElement;I&&I.removeChild(T)}})},C.prototype.isContain=function(E){var T=this.elems[0],I=E.elems[0];return T.contains(I)},C.prototype.getNodeName=function(){var E=this.elems[0];return E.nodeName},C.prototype.getNode=function(E){E===void 0&&(E=0);var T;return T=this.elems[E],T},C.prototype.find=function(E){var T=this.elems[0];return P(T.querySelectorAll(E))},C.prototype.text=function(E){if(E){var I;return(0,a.default)(I=this).call(I,function(B){B.innerHTML=E})}else{var T=this.elems[0];return T.innerHTML.replace(/<[^>]+>/g,function(){return""})}},C.prototype.html=function(E){var T=this.elems[0];return E?(T.innerHTML=E,this):T.innerHTML},C.prototype.val=function(){var E,T=this.elems[0];return(0,h.default)(E=T.value).call(E)},C.prototype.focus=function(){var E;return(0,a.default)(E=this).call(E,function(T){T.focus()})},C.prototype.prev=function(){var E=this.elems[0];return P(E.previousElementSibling)},C.prototype.next=function(){var E=this.elems[0];return P(E.nextElementSibling)},C.prototype.getNextSibling=function(){var E=this.elems[0];return P(E.nextSibling)},C.prototype.parent=function(){var E=this.elems[0];return P(E.parentElement)},C.prototype.parentUntil=function(E,T){var I=T||this.elems[0];if(I.nodeName==="BODY")return null;var B=I.parentElement;return B===null?null:B.matches(E)?P(B):this.parentUntil(E,B)},C.prototype.parentUntilEditor=function(E,T,I){var B=I||this.elems[0];if(P(B).equal(T.$textContainerElem)||P(B).equal(T.$toolbarElem))return null;var R=B.parentElement;return R===null?null:R.matches(E)?P(R):this.parentUntilEditor(E,T,R)},C.prototype.equal=function(E){return E instanceof C?this.elems[0]===E.elems[0]:E instanceof HTMLElement?this.elems[0]===E:!1},C.prototype.insertBefore=function(E){var T,I=P(E),B=I.elems[0];return B?(0,a.default)(T=this).call(T,function(R){var N=B.parentNode;N==null||N.insertBefore(R,B)}):this},C.prototype.insertAfter=function(E){var T,I=P(E),B=I.elems[0],R=B&&B.nextSibling;return B?(0,a.default)(T=this).call(T,function(N){var F=B.parentNode;R?F.insertBefore(N,R):F.appendChild(N)}):this},C.prototype.data=function(E,T){if(T!=null)this.dataSource.set(E,T);else return this.dataSource.get(E)},C.prototype.getNodeTop=function(E){if(this.length<1)return this;var T=this.parent();return E.$textElem.equal(this)||E.$textElem.equal(T)?this:(T.prior=this,T.getNodeTop(E))},C.prototype.getOffsetData=function(){var E=this.elems[0];return{top:E.offsetTop,left:E.offsetLeft,width:E.offsetWidth,height:E.offsetHeight,parent:E.offsetParent}},C.prototype.scrollTop=function(E){var T=this.elems[0];T.scrollTo({top:E})},C}();n.DomElement=D;function P(){for(var C=[],E=0;E<arguments.length;E++)C[E]=arguments[E];return new((0,u.default)(D).apply(D,m.__spreadArrays([void 0],C)))}n.default=P},function(o,n,t){o.exports=t(180)},function(o,n,t){var e=t(8),i=t(71).f,r=t(101),a=t(9),s=t(40),h=t(19),c=t(16),p=function(l){var f=function(m,v,A){if(this instanceof l){switch(arguments.length){case 0:return new l;case 1:return new l(m);case 2:return new l(m,v)}return new l(m,v,A)}return l.apply(this,arguments)};return f.prototype=l.prototype,f};o.exports=function(d,l){var f=d.target,u=d.global,m=d.stat,v=d.proto,A=u?e:m?e[f]:(e[f]||{}).prototype,g=u?a:a[f]||(a[f]={}),y=g.prototype,x,S,D,P,C,E,T,I,B;for(P in l)x=r(u?P:f+(m?".":"#")+P,d.forced),S=!x&&A&&c(A,P),E=g[P],S&&(d.noTargetGet?(B=i(A,P),T=B&&B.value):T=A[P]),C=S&&T?T:l[P],!(S&&it(E)===it(C))&&(d.bind&&S?I=s(C,e):d.wrap&&S?I=p(C):v&&typeof C=="function"?I=s(Function.call,C):I=C,(d.sham||C&&C.sham||E&&E.sham)&&h(I,"sham",!0),g[P]=I,v&&(D=f+"Prototype",c(a,D)||h(a,D,{}),a[D][P]=C,d.real&&y&&!y[P]&&h(y,P,C)))}},function(o,n,t){var e=t(0),i=e(t(92)),r=e(t(1)),a=e(t(256)),s=e(t(45)),h=e(t(46)),c=e(t(89)),p=e(t(26));(0,r.default)(n,"__esModule",{value:!0}),n.hexToRgb=n.getRandomCode=n.toArray=n.deepClone=n.isFunction=n.debounce=n.throttle=n.arrForEach=n.forEach=n.replaceSpecialSymbol=n.replaceHtmlSymbol=n.getRandom=n.UA=void 0;var d=t(2),l=function(){function E(){this._ua=navigator.userAgent;var T=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(T&&T[1]=="Edge"&&(0,a.default)(T[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return E.prototype.isIE=function(){return"ActiveXObject"in window},E.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},E}();n.UA=new l;function f(E){var T;return E===void 0&&(E=""),E+(0,s.default)(T=Math.random().toString()).call(T,2)}n.getRandom=f;function u(E){return E.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}n.replaceHtmlSymbol=u;function m(E){return E.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')}n.replaceSpecialSymbol=m;function v(E,T){for(var I in E)if(Object.prototype.hasOwnProperty.call(E,I)){var B=T(I,E[I]);if(B===!1)break}}n.forEach=v;function A(E,T){var I,B,R,N=E.length||0;for(I=0;I<N&&(B=E[I],R=T.call(E,B,I),R!==!1);I++);}n.arrForEach=A;function g(E,T){T===void 0&&(T=200);var I=!1;return function(){for(var B=this,R=[],N=0;N<arguments.length;N++)R[N]=arguments[N];I||(I=!0,(0,h.default)(function(){I=!1,E.call.apply(E,d.__spreadArrays([B],R))},T))}}n.throttle=g;function y(E,T){T===void 0&&(T=200);var I=0;return function(){for(var B=this,R=[],N=0;N<arguments.length;N++)R[N]=arguments[N];I&&window.clearTimeout(I),I=(0,h.default)(function(){I=0,E.call.apply(E,d.__spreadArrays([B],R))},T)}}n.debounce=y;function x(E){return typeof E=="function"}n.isFunction=x;function S(E){if((0,i.default)(E)!=="object"||typeof E=="function"||E===null)return E;var T;(0,c.default)(E)&&(T=[]),(0,c.default)(E)||(T={});for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&(T[I]=S(E[I]));return T}n.deepClone=S;function D(E){return(0,s.default)(Array.prototype).call(E)}n.toArray=D;function P(){var E;return(0,s.default)(E=Math.random().toString(36)).call(E,-5)}n.getRandomCode=P;function C(E){var T=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(E);if(T==null)return null;var I=(0,p.default)(T).call(T,function(F){return(0,a.default)(F,16)}),B=I[1],R=I[2],N=I[3];return"rgb("+B+", "+R+", "+N+")"}n.hexToRgb=C},function(o,n,t){var e=t(0),i=e(t(1));(0,i.default)(n,"__esModule",{value:!0}),n.EMPTY_P_REGEX=n.EMPTY_P_LAST_REGEX=n.EMPTY_P=n.urlRegex=n.EMPTY_FN=void 0;function r(){}n.EMPTY_FN=r,n.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,n.EMPTY_P='<p data-we-empty-p=""><br></p>',n.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,n.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(o,n,t){(function(e){var i=function(a){return a&&a.Math==Math&&a};o.exports=i((typeof globalThis>"u"?"undefined":it(globalThis))=="object"&&globalThis)||i((typeof window>"u"?"undefined":it(window))=="object"&&window)||i((typeof self>"u"?"undefined":it(self))=="object"&&self)||i(it(e)=="object"&&e)||Function("return this")()}).call(this,t(145))},function(o,n){o.exports={}},function(o,n,t){var e=t(8),i=t(74),r=t(16),a=t(64),s=t(76),h=t(106),c=i("wks"),p=e.Symbol,d=h?p:p&&p.withoutSetter||a;o.exports=function(l){return r(c,l)||(s&&r(p,l)?c[l]=p[l]:c[l]=d("Symbol."+l)),c[l]}},function(o,n){o.exports=function(t){try{return!!t()}catch{return!0}}},function(o,n,t){var e=t(9),i=t(16),r=t(93),a=t(18).f;o.exports=function(s){var h=e.Symbol||(e.Symbol={});i(h,s)||a(h,s,{value:r.f(s)})}},function(o,n){o.exports=function(t){return it(t)==="object"?t!==null:typeof t=="function"}},function(o,n,t){var e=t(11);o.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(o,n,t){var e=t(9);o.exports=function(i){return e[i+"Prototype"]}},function(o,n){var t={}.hasOwnProperty;o.exports=function(e,i){return t.call(e,i)}},function(o,n,t){o.exports=t(192)},function(o,n,t){var e=t(14),i=t(100),r=t(25),a=t(60),s=Object.defineProperty;n.f=e?s:function(c,p,d){if(r(c),p=a(p,!0),r(d),i)try{return s(c,p,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported");return"value"in d&&(c[p]=d.value),c}},function(o,n,t){var e=t(14),i=t(18),r=t(48);o.exports=e?function(a,s,h){return i.f(a,s,r(1,h))}:function(a,s,h){return a[s]=h,a}},function(o,n,t){var e=function(){var A;return function(){return typeof A>"u"&&(A=Boolean(window&&document&&document.all&&!window.atob)),A}}(),i=function(){var A={};return function(y){if(typeof A[y]>"u"){var x=document.querySelector(y);if(window.HTMLIFrameElement&&x instanceof window.HTMLIFrameElement)try{x=x.contentDocument.head}catch{x=null}A[y]=x}return A[y]}}(),r=[];function a(v){for(var A=-1,g=0;g<r.length;g++)if(r[g].identifier===v){A=g;break}return A}function s(v,A){for(var g={},y=[],x=0;x<v.length;x++){var S=v[x],D=A.base?S[0]+A.base:S[0],P=g[D]||0,C="".concat(D," ").concat(P);g[D]=P+1;var E=a(C),T={css:S[1],media:S[2],sourceMap:S[3]};E!==-1?(r[E].references++,r[E].updater(T)):r.push({identifier:C,updater:m(T,A),references:1}),y.push(C)}return y}function h(v){var A=document.createElement("style"),g=v.attributes||{};if(typeof g.nonce>"u"){var y=t.nc;y&&(g.nonce=y)}if(Object.keys(g).forEach(function(S){A.setAttribute(S,g[S])}),typeof v.insert=="function")v.insert(A);else{var x=i(v.insert||"head");if(!x)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");x.appendChild(A)}return A}function c(v){if(v.parentNode===null)return!1;v.parentNode.removeChild(v)}var p=function(){var A=[];return function(y,x){return A[y]=x,A.filter(Boolean).join(` `)}}();function d(v,A,g,y){var x=g?"":y.media?"@media ".concat(y.media," {").concat(y.css,"}"):y.css;if(v.styleSheet)v.styleSheet.cssText=p(A,x);else{var S=document.createTextNode(x),D=v.childNodes;D[A]&&v.removeChild(D[A]),D.length?v.insertBefore(S,D[A]):v.appendChild(S)}}function l(v,A,g){var y=g.css,x=g.media,S=g.sourceMap;if(x?v.setAttribute("media",x):v.removeAttribute("media"),S&&typeof btoa<"u"&&(y+=` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(S))))," */")),v.styleSheet)v.styleSheet.cssText=y;else{for(;v.firstChild;)v.removeChild(v.firstChild);v.appendChild(document.createTextNode(y))}}var f=null,u=0;function m(v,A){var g,y,x;if(A.singleton){var S=u++;g=f||(f=h(A)),y=d.bind(null,g,S,!1),x=d.bind(null,g,S,!0)}else g=h(A),y=l.bind(null,g,A),x=function(){c(g)};return y(v),function(P){if(P){if(P.css===v.css&&P.media===v.media&&P.sourceMap===v.sourceMap)return;y(v=P)}else x()}}o.exports=function(v,A){A=A||{},!A.singleton&&typeof A.singleton!="boolean"&&(A.singleton=e()),v=v||[];var g=s(v,A);return function(x){if(x=x||[],Object.prototype.toString.call(x)==="[object Array]"){for(var S=0;S<g.length;S++){var D=g[S],P=a(D);r[P].references--}for(var C=s(x,A),E=0;E<g.length;E++){var T=g[E],I=a(T);r[I].references===0&&(r[I].updater(),r.splice(I,1))}g=C}}}},function(o,n,t){o.exports=function(r){var a=[];return a.toString=function(){return this.map(function(h){var c=e(h,r);return h[2]?"@media ".concat(h[2]," {").concat(c,"}"):c}).join("")},a.i=function(s,h,c){typeof s=="string"&&(s=[[null,s,""]]);var p={};if(c)for(var d=0;d<this.length;d++){var l=this[d][0];l!=null&&(p[l]=!0)}for(var f=0;f<s.length;f++){var u=[].concat(s[f]);c&&p[u[0]]||(h&&(u[2]?u[2]="".concat(h," and ").concat(u[2]):u[2]=h),a.push(u))}},a};function e(r,a){var s=r[1]||"",h=r[3];if(!h)return s;if(a&&typeof btoa=="function"){var c=i(h),p=h.sources.map(function(d){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(d," */")});return[s].concat(p).concat([c]).join(` `)}return[s].join(` `)}function i(r){var a=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a);return"/*# ".concat(s," */")}},function(o,n,t){var e=t(14),i=t(11),r=t(16),a=Object.defineProperty,s={},h=function(p){throw p};o.exports=function(c,p){if(r(s,c))return s[c];p||(p={});var d=[][c],l=r(p,"ACCESSORS")?p.ACCESSORS:!1,f=r(p,0)?p[0]:h,u=r(p,1)?p[1]:void 0;return s[c]=!!d&&!i(function(){if(l&&!e)return!0;var m={length:-1};l?a(m,1,{enumerable:!0,get:h}):m[1]=1,d.call(m,f,u)})}},function(o,n,t){var e=t(0),i=e(t(1));(0,i.default)(n,"__esModule",{value:!0});var r=t(2),a=r.__importDefault(t(95)),s=function(h){r.__extends(c,h);function c(p,d){return h.call(this,p,d)||this}return c}(a.default);n.default=s},function(o,n,t){var e=t(0),i=e(t(1)),r=e(t(4)),a=e(t(46));(0,i.default)(n,"__esModule",{value:!0});var s=t(2),h=s.__importDefault(t(3)),c=s.__importDefault(t(95)),p=s.__importDefault(t(134)),d=function(l){s.__extends(f,l);function f(u,m,v){var A=l.call(this,u,m)||this;v.title=m.i18next.t("menus.dropListMenu."+v.title);var g=m.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(g!==""&&v.type==="list"){var y;(0,r.default)(y=v.list).call(y,function(S){var D=S.$elem,P=h.default(D.children());if(P.length>0){var C=P==null?void 0:P.getNodeName();C&&C==="I"&&D.addClass(g)}})}var x=new p.default(A,v);return A.dropList=x,u.on("click",function(){var S;m.selection.getRange()!=null&&(u.css("z-index",m.zIndex.get("menu")),(0,r.default)(S=m.txt.eventHooks.dropListMenuHoverEvents).call(S,function(D){return D()}),x.show())}).on("mouseleave",function(){u.css("z-index","auto"),x.hideTimeoutId=(0,a.default)(function(){x.hide()})}),A}return f}(c.default);n.default=d},function(o,n,t){var e=t(13);o.exports=function(i){if(!e(i))throw TypeError(String(i)+" is not an object");return i}},function(o,n,t){o.exports=t(188)},function(o,n,t){o.exports=t(201)},function(o,n,t){o.exports=t(213)},function(o,n,t){o.exports=t(283)},function(o,n,t){var e=t(72),i=t(49);o.exports=function(r){return e(i(r))}},function(o,n,t){var e=t(49);o.exports=function(i){return Object(e(i))}},function(o,n,t){var e=t(40),i=t(72),r=t(31),a=t(35),s=t(88),h=[].push,c=function(d){var l=d==1,f=d==2,u=d==3,m=d==4,v=d==6,A=d==5||v;return function(g,y,x,S){for(var D=r(g),P=i(D),C=e(y,x,3),E=a(P.length),T=0,I=S||s,B=l?I(g,E):f?I(g,0):void 0,R,N;E>T;T++)if((A||T in P)&&(R=P[T],N=C(R,T,D),d)){if(l)B[T]=N;else if(N)switch(d){case 3:return!0;case 5:return R;case 6:return T;case 2:h.call(B,R)}else if(m)return!1}return v?-1:u||m?m:B}};o.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(o,n,t){var e=t(0),i=e(t(1)),r=e(t(4)),a=e(t(29)),s=e(t(132));(0,i.default)(n,"__esModule",{value:!0});var h=t(2),c=h.__importDefault(t(3)),p=t(7),d=function(){function l(f,u){this.menu=f,this.conf=u,this.$container=c.default('<div class="w-e-panel-container"></div>');var m=f.editor;m.txt.eventHooks.clickEvents.push(l.hideCurAllPanels),m.txt.eventHooks.toolbarClickEvents.push(l.hideCurAllPanels),m.txt.eventHooks.dropListMenuHoverEvents.push(l.hideCurAllPanels)}return l.prototype.create=function(){var f=this,u=this.menu;if(!l.createdMenus.has(u)){var m=this.conf,v=this.$container,A=m.width||300,g=u.editor.$toolbarElem.getBoundingClientRect(),y=u.$elem.getBoundingClientRect(),x=g.height+g.top-y.top,S=(g.width-A)/2+g.left-y.left,D=300;Math.abs(S)>D&&(y.left<document.documentElement.clientWidth/2?S=-y.width/2:S=-A+y.width/2),v.css("width",A+"px").css("margin-top",x+"px").css("margin-left",S+"px").css("z-index",u.editor.zIndex.get("panel"));var P=c.default('<i class="w-e-icon-close w-e-panel-close"></i>');v.append(P),P.on("click",function(){f.remove()});var C=c.default('<ul class="w-e-panel-tab-title"></ul>'),E=c.default('<div class="w-e-panel-tab-content"></div>');v.append(C).append(E);var T=m.height;T&&E.css("height",T+"px").css("overflow-y","auto");var I=m.tabs||[],B=[],R=[];(0,r.default)(I).call(I,function(F,L){if(!!F){var w=F.title||"",O=F.tpl||"",H=c.default('<li class="w-e-item">'+w+"</li>");C.append(H);var U=c.default(O);E.append(U),B.push(H),R.push(U),L===0?(H.data("active",!0),H.addClass("w-e-active")):U.hide(),H.on("click",function(){H.data("active")||((0,r.default)(B).call(B,function(K){K.data("active",!1),K.removeClass("w-e-active")}),(0,r.default)(R).call(R,function(K){K.hide()}),H.data("active",!0),H.addClass("w-e-active"),U.show())})}}),v.on("click",function(F){F.stopPropagation()}),u.$elem.append(v),m.setLinkValue&&m.setLinkValue(v,"text"),m.setLinkValue&&m.setLinkValue(v,"link"),(0,r.default)(I).call(I,function(F,L){if(!!F){var w=F.events||[];(0,r.default)(w).call(w,function(O){var H,U=O.selector,K=O.type,Q=O.fn||p.EMPTY_FN,J=R[L],W=(H=O.bindEnter)!==null&&H!==void 0?H:!1,j=function(Z){return h.__awaiter(f,void 0,void 0,function(){var _;return h.__generator(this,function(nt){switch(nt.label){case 0:return Z.stopPropagation(),[4,Q(Z)];case 1:return _=nt.sent(),_&&this.remove(),[2]}})})};(0,a.default)(J).call(J,U).on(K,j),W&&K==="click"&&J.on("keyup",function(G){G.keyCode==13&&j(G)})})}});var N=(0,a.default)(v).call(v,"input[type=text],textarea");N.length&&N.get(0).focus(),l.hideCurAllPanels(),u.setPanel(this),l.createdMenus.add(u)}},l.prototype.remove=function(){var f=this.menu,u=this.$container;u&&u.remove(),l.createdMenus.delete(f)},l.hideCurAllPanels=function(){var f;l.createdMenus.size!==0&&(0,r.default)(f=l.createdMenus).call(f,function(u){var m=u.panel;m&&m.remove()})},l.createdMenus=new s.default,l}();n.default=d},function(o,n){var t={}.toString;o.exports=function(e){return t.call(e).slice(8,-1)}},function(o,n,t){var e=t(62),i=Math.min;o.exports=function(r){return r>0?i(e(r),9007199254740991):0}},function(o,n,t){var e=t(9),i=t(8),r=function(s){return typeof s=="function"?s:void 0};o.exports=function(a,s){return arguments.length<2?r(e[a])||r(i[a]):e[a]&&e[a][s]||i[a]&&i[a][s]}},function(o,n,t){var e=t(81),i=t(18).f,r=t(19),a=t(16),s=t(170),h=t(10),c=h("toStringTag");o.exports=function(p,d,l,f){if(p){var u=l?p:p.prototype;a(u,c)||i(u,c,{configurable:!0,value:d}),f&&!e&&r(u,"toString",s)}}},function(o,n,t){var e=t(0),i=e(t(1));(0,i.default)(n,"__esModule",{value:!0});var r=t(2),a=r.__importDefault(t(95)),s=function(h){r.__extends(c,h);function c(p,d){return h.call(this,p,d)||this}return c.prototype.setPanel=function(p){this.panel=p},c}(a.default);n.default=s},function(o,n,t){var e=t(0),i=e(t(1)),r=e(t(4)),a=e(t(57));(0,i.default)(n,"__esModule",{value:!0});var s=t(2),h=s.__importDefault(t(3)),c=function(){function p(d,l,f){this.editor=d,this.$targetElem=l,this.conf=f,this._show=!1,this._isInsertTextContainer=!1;var u=h.default("<div></div>");u.addClass("w-e-tooltip"),this.$container=u}return p.prototype.getPositionData=function(){var d=this.$container,l=0,f=0,u=20,m=document.documentElement.scrollTop,v=this.$targetElem.getBoundingClientRect(),A=this.editor.$textElem.getBoundingClientRect(),g=this.$targetElem.getOffsetData(),y=h.default(g.parent),x=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=y.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var S=y.getBoundingClientRect().height,D=g.top,P=g.left,C=g.height,E=D-x;E>u+5?(l=E-u-15,d.addClass("w-e-tooltip-up")):E+C+u<S?(l=E+C+10,d.addClass("w-e-tooltip-down")):(l=(E>0?E:0)+u+10,d.addClass("w-e-tooltip-down")),P<0?f=0:f=P}else v.top<u||v.top-A.top<u?(l=v.bottom+m+5,d.addClass("w-e-tooltip-down")):(l=v.top+m-u-15,d.addClass("w-e-tooltip-up")),v.left<0?f=0:f=v.left;return{top:l,left:f}},p.prototype.appendMenus=function(){var d=this,l=this.conf,f=this.editor,u=this.$targetElem,m=this.$container;(0,r.default)(l).call(l,function(v,A){var g=v.$elem,y=h.default("<div></div>");y.addClass("w-e-tooltip-item-wrapper "),y.append(g),m.append(y),g.on("click",function(x){x.preventDefault();var S=v.onClick(f,u);S&&d.remove()})})},p.prototype.create=function(){var d,l,f=this.editor,u=this.$container;this.appendMenus();var m=this.getPositionData(),v=m.top,A=m.left;u.css("top",v+"px"),u.css("left",A+"px"),u.css("z-index",f.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(u):h.default("body").append(u),this._show=!0,f.beforeDestroy((0,a.default)(d=this.remove).call(d,this)),f.txt.eventHooks.onBlurEvents.push((0,a.default)(l=this.remove).call(l,this))},p.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(p.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),p}();n.default=c},function(o,n,t){var e=t(41);o.exports=function(i,r,a){if(e(i),r===void 0)return i;switch(a){case 0:return function(){return i.call(r)};case 1:return function(s){return i.call(r,s)};case 2:return function(s,h){return i.call(r,s,h)};case 3:return function(s,h,c){return i.call(r,s,h,c)}}return function(){return i.apply(r,arguments)}}},function(o,n){o.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},function(o,n,t){var e=t(165),i=t(8),r=t(13),a=t(19),s=t(16),h=t(63),c=t(51),p=i.WeakMap,d,l,f,u=function(D){return f(D)?l(D):d(D,{})},m=function(D){return function(P){var C;if(!r(P)||(C=l(P)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return C}};if(e){var v=new p,A=v.get,g=v.has,y=v.set;d=function(D,P){return y.call(v,D,P),P},l=function(D){return A.call(v,D)||{}},f=function(D){return g.call(v,D)}}else{var x=h("state");c[x]=!0,d=function(D,P){return a(D,x,P),P},l=function(D){return s(D,x)?D[x]:{}},f=function(D){return s(D,x)}}o.exports={set:d,get:l,has:f,enforce:u,getterFor:m}},function(o,n){o.exports=!0},function(o,n){o.exports={}},function(o,n,t){o.exports=t(261)},function(o,n,t){o.exports=t(265)},function(o,n,t){var e=t(0),i=e(t(1)),r=e(t(4));(0,i.default)(n,"__esModule",{value:!0}),n.createElementFragment=n.createDocumentFragment=n.createElement=n.insertBefore=n.getEndPoint=n.getStartPoint=n.updateRange=n.filterSelectionNodes=void 0;var a=t(2),s=t(137),h=a.__importDefault(t(3));function c(A){var g=[];return(0,r.default)(A).call(A,function(y){var x=y.getNodeName();if(x!==s.ListType.OrderedList&&x!==s.ListType.UnorderedList)g.push(y);else if(y.prior)g.push(y.prior);else{var S=y.children();S==null||(0,r.default)(S).call(S,function(D){g.push(h.default(D))})}}),g}n.filterSelectionNodes=c;function p(A,g,y){var x=A.selection,S=document.createRange();g.length>1?(S.setStart(g.elems[0],0),S.setEnd(g.elems[g.length-1],g.elems[g.length-1].childNodes.length)):S.selectNodeContents(g.elems[0]),y&&S.collapse(!1),x.saveRange(S),x.restoreSelection()}n.updateRange=p;function d(A){var g;return A.prior?A.prior:h.default((g=A.children())===null||g===void 0?void 0:g.elems[0])}n.getStartPoint=d;function l(A){var g;return A.prior?A.prior:h.default((g=A.children())===null||g===void 0?void 0:g.last().elems[0])}n.getEndPoint=l;function f(A,g,y){y===void 0&&(y=null),A.parent().elems[0].insertBefore(g,y)}n.insertBefore=f;function u(A){return document.createElement(A)}n.createElement=u;function m(){return document.createDocumentFragment()}n.createDocumentFragment=m;function v(A,g,y){return y===void 0&&(y="li"),(0,r.default)(A).call(A,function(x){var S=u(y);S.innerHTML=x.html(),g.appendChild(S),x.remove()}),g}n.createElementFragment=v},function(o,n){o.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}},function(o,n){o.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(o,n,t){var e=t(164).charAt,i=t(42),r=t(75),a="String Iterator",s=i.set,h=i.getterFor(a);r(String,"String",function(c){s(this,{type:a,string:String(c),index:0})},function(){var p=h(this),d=p.string,l=p.index,f;return l>=d.length?{value:void 0,done:!0}:(f=e(d,l),p.index+=f.length,{value:f,done:!1})})},function(o,n){o.exports={}},function(o,n,t){var e=t(107),i=t(80);o.exports=Object.keys||function(a){return e(a,i)}},function(o,n,t){var e=t(19);o.exports=function(i,r,a,s){s&&s.enumerable?i[r]=a:e(i,r,a)}},function(o,n,t){t(173);var e=t(174),i=t(8),r=t(65),a=t(19),s=t(44),h=t(10),c=h("toStringTag");for(var p in e){var d=i[p],l=d&&d.prototype;l&&r(l)!==c&&a(l,c,p),s[p]=s.Array}},function(o,n,t){var e=t(34);o.exports=Array.isArray||function(r){return e(r)=="Array"}},function(o,n,t){var e=t(11),i=t(10),r=t(86),a=i("species");o.exports=function(s){return r>=51||!e(function(){var h=[],c=h.constructor={};return c[a]=function(){return{foo:1}},h[s](Boolean).foo!==1})}},function(o,n,t){o.exports=t(222)},function(o,n,t){var e=t(0),i=e(t(1));(0,i.default)(n,"__esModule",{value:!0}),n.ListHandle=void 0;var r=t(2),a=r.__importDefault(t(373)),s=function(){function h(c){this.options=c,this.selectionRangeElem=new a.default}return h}();n.ListHandle=s},function(o,n,t){var e={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!e.call({1:2},1);n.f=r?function(s){var h=i(this,s);return!!h&&h.enumerable}:e},function(o,n,t){var e=t(13);o.exports=function(i,r){if(!e(i))return i;var a,s;if(r&&typeof(a=i.toString)=="function"&&!e(s=a.call(i))||typeof(a=i.valueOf)=="function"&&!e(s=a.call(i))||!r&&typeof(a=i.toString)=="function"&&!e(s=a.call(i)))return s;throw TypeError("Can't convert object to primitive value")}},function(o,n){},function(o,n){var t=Math.ceil,e=Math.floor;o.exports=function(i){return isNaN(i=+i)?0:(i>0?e:t)(i)}},function(o,n,t){var e=t(74),i=t(64),r=e("keys");o.exports=function(a){return r[a]||(r[a]=i(a))}},function(o,n){var t=0,e=Math.random();o.exports=function(i){return"Symbol("+String(i===void 0?"":i)+")_"+(++t+e).toString(36)}},function(o,n,t){var e=t(81),i=t(34),r=t(10),a=r("toStringTag"),s=i(function(){return arguments}())=="Arguments",h=function(p,d){try{return p[d]}catch{}};o.exports=e?i:function(c){var p,d,l;return c===void 0?"Undefined":c===null?"Null":typeof(d=h(p=Object(c),a))=="string"?d:s?i(p):(l=i(p))=="Object"&&typeof p.callee=="function"?"Arguments":l}},function(o,n,t){var e=t(25),i=t(112),r=t(35),a=t(40),s=t(113),h=t(114),c=function(l,f){this.stopped=l,this.result=f},p=o.exports=function(d,l,f,u,m){var v=a(l,f,u?2:1),A,g,y,x,S,D,P;if(m)A=d;else{if(g=s(d),typeof g!="function")throw TypeError("Target is not iterable");if(i(g)){for(y=0,x=r(d.length);x>y;y++)if(S=u?v(e(P=d[y])[0],P[1]):v(d[y]),S&&S instanceof c)return S;return new c(!1)}A=g.call(d)}for(D=A.next;!(P=D.call(A)).done;)if(S=h(A,v,P.value,u),it(S)=="object"&&S&&S instanceof c)return S;return new c(!1)};p.stop=function(d){return new c(!0,d)}},function(o,n,t){var e=t(11);o.exports=function(i,r){var a=[][i];return!!a&&e(function(){a.call(null,r||function(){throw 1},1)})}},function(o,n){o.exports=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(o,n,t){var e=t(60),i=t(18),r=t(48);o.exports=function(a,s,h){var c=e(s);c in a?i.f(a,c,r(0,h)):a[c]=h}},function(o,n,t){o.exports=t(209)},function(o,n,t){var e=t(14),i=t(59),r=t(48),a=t(30),s=t(60),h=t(16),c=t(100),p=Object.getOwnPropertyDescriptor;n.f=e?p:function(l,f){if(l=a(l),f=s(f,!0),c)try{return p(l,f)}catch{}if(h(l,f))return r(!i.f.call(l,f),l[f])}},function(o,n,t){var e=t(11),i=t(34),r="".split;o.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return i(a)=="String"?r.call(a,""):Object(a)}:Object},function(o,n,t){var e=t(8),i=t(13),r=e.document,a=i(r)&&i(r.createElement);o.exports=function(s){return a?r.createElement(s):{}}},function(o,n,t){var e=t(43),i=t(103);(o.exports=function(r,a){return i[r]||(i[r]=a!==void 0?a:{})})("versions",[]).push({version:"3.6.4",mode:e?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n,t){var e=t(5),i=t(167),r=t(105),a=t(171),s=t(37),h=t(19),c=t(53),p=t(10),d=t(43),l=t(44),f=t(104),u=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,v=p("iterator"),A="keys",g="values",y="entries",x=function(){return this};o.exports=function(S,D,P,C,E,T,I){i(P,D,C);var B=function(J){if(J===E&&w)return w;if(!m&&J in F)return F[J];switch(J){case A:return function(){return new P(this,J)};case g:return function(){return new P(this,J)};case y:return function(){return new P(this,J)}}return function(){return new P(this)}},R=D+" Iterator",N=!1,F=S.prototype,L=F[v]||F["@@iterator"]||E&&F[E],w=!m&&L||B(E),O=D=="Array"&&F.entries||L,H,U,K;if(O&&(H=r(O.call(new S)),u!==Object.prototype&&H.next&&(!d&&r(H)!==u&&(a?a(H,u):typeof H[v]!="function"&&h(H,v,x)),s(H,R,!0,!0),d&&(l[R]=x))),E==g&&L&&L.name!==g&&(N=!0,w=function(){return L.call(this)}),(!d||I)&&F[v]!==w&&h(F,v,w),l[D]=w,E)if(U={values:B(g),keys:T?w:B(A),entries:B(y)},I)for(K in U)(m||N||!(K in F))&&c(F,K,U[K]);else e({target:D,proto:!0,forced:m||N},U);return U}},function(o,n,t){var e=t(11);o.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},function(o,n,t){var e=t(25),i=t(169),r=t(80),a=t(51),s=t(108),h=t(73),c=t(63),p=">",d="<",l="prototype",f="script",u=c("IE_PROTO"),m=function(){},v=function(D){return d+f+p+D+d+"/"+f+p},A=function(D){D.write(v("")),D.close();var P=D.parentWindow.Object;return D=null,P},g=function(){var D=h("iframe"),P="java"+f+":",C;return D.style.display="none",s.appendChild(D),D.src=String(P),C=D.contentWindow.document,C.open(),C.write(v("document.F=Object")),C.close(),C.F},y,x=function(){try{y=document.domain&&new ActiveXObject("htmlfile")}catch{}x=y?A(y):g();for(var D=r.length;D--;)delete x[l][r[D]];return x()};a[u]=!0,o.exports=Object.create||function(D,P){var C;return D!==null?(m[l]=e(D),C=new m,m[l]=null,C[u]=D):C=x(),P===void 0?C:i(C,P)}},function(o,n,t){var e=t(30),i=t(35),r=t(79),a=function(h){return function(c,p,d){var l=e(c),f=i(l.length),u=r(d,f),m;if(h&&p!=p){for(;f>u;)if(m=l[u++],m!=m)return!0}else for(;f>u;u++)if((h||u in l)&&l[u]===p)return h||u||0;return!h&&-1}};o.exports={includes:a(!0),indexOf:a(!1)}},function(o,n,t){var e=t(62),i=Math.max,r=Math.min;o.exports=function(a,s){var h=e(a);return h<0?i(h+s,0):r(h,s)}},function(o,n){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,n,t){var e=t(10),i=e("toStringTag"),r={};r[i]="z",o.exports=String(r)==="[object z]"},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},function(o,n,t){var e=t(36);o.exports=e("navigator","userAgent")||""},function(o,n,t){var e=t(41),i=function(a){var s,h;this.promise=new a(function(c,p){if(s!==void 0||h!==void 0)throw TypeError("Bad Promise constructor");s=c,h=p}),this.resolve=e(s),this.reject=e(h)};o.exports.f=function(r){return new i(r)}},function(o,n,t){var e=t(8),i=t(84),r=e.process,a=r&&r.versions,s=a&&a.v8,h,c;s?(h=s.split("."),c=h[0]+h[1]):i&&(h=i.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=i.match(/Chrome\/(\d+)/),h&&(c=h[1]))),o.exports=c&&+c},function(o,n,t){var e=t(0),i=e(t(1)),r=e(t(4));(0,i.default)(n,"__esModule",{value:!0});var a=t(2),s=a.__importDefault(t(3)),h=t(6),c=a.__importDefault(t(267)),p=a.__importDef