import{i18nAddResources as t,DomEditor as e,t as r}from"@wangeditor/core";import{Path as n,Editor as o,Text as i,Range as u,Transforms as a}from"slate";import{jsx as c}from"snabbdom";import f,{append as l,attr as s,parent as v}from"dom7";t("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){var e={exports:{}};return t(e,e.exports),e.exports}var y,h,g=function(t){return t&&t.Math==Math&&t},b=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof d&&d)||function(){return this}()||Function("return this")(),m=Function.prototype,w=m.bind,x=m.call,S=w&&w.bind(x),O=w?function(t){return t&&S(x,t)}:function(t){return t&&function(){return x.apply(t,arguments)}},E=function(t){try{return!!t()}catch(t){return!0}},T=O({}.toString),j=O("".slice),A=function(t){return j(T(t),8,-1)},I=b.Object,P=O("".split),L=E((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?P(t,""):I(t)}:I,R=b.TypeError,k=function(t){if(null==t)throw R("Can't call method on "+t);return t},_=function(t){return L(k(t))},N=Object.defineProperty,M=function(t,e){try{N(b,t,{value:e,configurable:!0,writable:!0})}catch(r){b[t]=e}return e},z=b["__core-js_shared__"]||M("__core-js_shared__",{}),C=p((function(t){(t.exports=function(t,e){return z[t]||(z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),F=b.Object,D=function(t){return F(k(t))},H=O({}.hasOwnProperty),B=Object.hasOwn||function(t,e){return H(D(t),e)},G=0,$=Math.random(),V=O(1..toString),W=function(t){return"Symbol("+(void 0===t?"":t)+")_"+V(++G+$,36)},U=function(t){return"function"==typeof t},K=function(t){return U(t)?t:void 0},Y=function(t,e){return arguments.length<2?K(b[t]):b[t]&&b[t][e]},X=Y("navigator","userAgent")||"",q=b.process,J=b.Deno,Q=q&&q.versions||J&&J.version,Z=Q&&Q.v8;Z&&(h=(y=Z.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!h&&X&&(!(y=X.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=X.match(/Chrome\/(\d+)/))&&(h=+y[1]);var tt,et=h,rt=!!Object.getOwnPropertySymbols&&!E((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),nt=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=C("wks"),it=b.Symbol,ut=it&&it.for,at=nt?it:it&&it.withoutSetter||W,ct=function(t){if(!B(ot,t)||!rt&&"string"!=typeof ot[t]){var e="Symbol."+t;rt&&B(it,t)?ot[t]=it[t]:ot[t]=nt&&ut?ut(e):at(e)}return ot[t]},ft=function(t){return"object"==typeof t?null!==t:U(t)},lt=b.String,st=b.TypeError,vt=function(t){if(ft(t))return t;throw st(lt(t)+" is not an object")},dt=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),pt=b.document,yt=ft(pt)&&ft(pt.createElement),ht=function(t){return yt?pt.createElement(t):{}},gt=!dt&&!E((function(){return 7!=Object.defineProperty(ht("div"),"a",{get:function(){return 7}}).a})),bt=Function.prototype.call,mt=bt.bind?bt.bind(bt):function(){return bt.apply(bt,arguments)},wt=O({}.isPrototypeOf),xt=b.Object,St=nt?function(t){return"symbol"==typeof t}:function(t){var e=Y("Symbol");return U(e)&&wt(e.prototype,xt(t))},Ot=b.String,Et=function(t){try{return Ot(t)}catch(t){return"Object"}},Tt=b.TypeError,jt=function(t){if(U(t))return t;throw Tt(Et(t)+" is not a function")},At=function(t,e){var r=t[e];return null==r?void 0:jt(r)},It=b.TypeError,Pt=b.TypeError,Lt=ct("toPrimitive"),Rt=function(t,e){if(!ft(t)||St(t))return t;var r,n=At(t,Lt);if(n){if(void 0===e&&(e="default"),r=mt(n,t,e),!ft(r)||St(r))return r;throw Pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&U(r=t.toString)&&!ft(n=mt(r,t)))return n;if(U(r=t.valueOf)&&!ft(n=mt(r,t)))return n;if("string"!==e&&U(r=t.toString)&&!ft(n=mt(r,t)))return n;throw It("Can't convert object to primitive value")}(t,e)},kt=function(t){var e=Rt(t,"string");return St(e)?e:e+""},_t=b.TypeError,Nt=Object.defineProperty,Mt={f:dt?Nt:function(t,e,r){if(vt(t),e=kt(e),vt(r),gt)try{return Nt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw _t("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},zt=Math.ceil,Ct=Math.floor,Ft=function(t){var e=+t;return e!=e||0===e?0:(e>0?Ct:zt)(e)},Dt=Math.max,Ht=Math.min,Bt=function(t,e){var r=Ft(t);return r<0?Dt(r+e,0):Ht(r,e)},Gt=Math.min,$t=function(t){return t>0?Gt(Ft(t),9007199254740991):0},Vt=function(t){return $t(t.length)},Wt=function(t){return function(e,r,n){var o,i=_(e),u=Vt(i),a=Bt(n,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},Ut={includes:Wt(!0),indexOf:Wt(!1)},Kt={},Yt=Ut.indexOf,Xt=O([].push),qt=function(t,e){var r,n=_(t),o=0,i=[];for(r in n)!B(Kt,r)&&B(n,r)&&Xt(i,r);for(;e.length>o;)B(n,r=e[o++])&&(~Yt(i,r)||Xt(i,r));return i},Jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qt=Object.keys||function(t){return qt(t,Jt)},Zt=dt?Object.defineProperties:function(t,e){vt(t);for(var r,n=_(e),o=Qt(e),i=o.length,u=0;i>u;)Mt.f(t,r=o[u++],n[r]);return t},te=Y("document","documentElement"),ee=C("keys"),re=function(t){return ee[t]||(ee[t]=W(t))},ne=re("IE_PROTO"),oe=function(){},ie=function(t){return"