@wangeditor-next/list-module 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.1.8](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.7...@wangeditor-next/list-module@1.1.8) (2024-09-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **list:** add the function of getting list color ([ef8bebf](https://github.com/cycleccc/wangEditor/commit/ef8bebf7b5455162e06b8958fcd7cc2aaa886455))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.1.7](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.6...@wangeditor-next/list-module@1.1.7) (2024-08-29)
18
+
19
+
20
+ ### Reverts
21
+
22
+ * Revert "chore: modify package publish config" ([7e2785e](https://github.com/cycleccc/wangEditor/commit/7e2785ede4512e19f8a337e745440e7bf9de2f30))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [1.1.6](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/list-module@1.1.5...@wangeditor-next/list-module@1.1.6) (2024-08-25)
7
29
 
8
30
  **Note:** Version bump only for package @wangeditor-next/list-module
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i18nAddResources as t,DomEditor as e,t as r}from"@wangeditor-next/core";import{Path as n,Editor as o,Text as i,Transforms as u,Range as a}from"slate";import{jsx as c}from"snabbdom";import f,{append as l,attr as s,parent as d}from"dom7";t("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var v="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 v&&v)||function(){return this}()||Function("return this")(),m=Function.prototype,w=m.bind,x=m.call,O=w&&w.bind(x),S=w?function(t){return t&&O(x,t)}:function(t){return t&&function(){return x.apply(t,arguments)}},E=function(t){try{return!!t()}catch(t){return!0}},T=S({}.toString),j=S("".slice),A=function(t){return j(T(t),8,-1)},I=b.Object,P=S("".split),k=E((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?P(t,""):I(t)}:I,L=b.TypeError,R=function(t){if(null==t)throw L("Can't call method on "+t);return t},N=function(t){return k(R(t))},M=Object.defineProperty,_=function(t,e){try{M(b,t,{value:e,configurable:!0,writable:!0})}catch(r){b[t]=e}return e},z="__core-js_shared__",C=b[z]||_(z,{}),F=p((function(t){(t.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),B=b.Object,D=function(t){return B(R(t))},H=S({}.hasOwnProperty),G=Object.hasOwn||function(t,e){return H(D(t),e)},$=0,V=Math.random(),W=S(1..toString),U=function(t){return"Symbol("+(void 0===t?"":t)+")_"+W(++$+V,36)},K=function(t){return"function"==typeof t},Y=function(t,e){return arguments.length<2?(r=b[t],K(r)?r:void 0):b[t]&&b[t][e];var r},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=F("wks"),it=b.Symbol,ut=it&&it.for,at=nt?it:it&&it.withoutSetter||U,ct=function(t){if(!G(ot,t)||!rt&&"string"!=typeof ot[t]){var e="Symbol."+t;rt&&G(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:K(t)},lt=b.String,st=b.TypeError,dt=function(t){if(ft(t))return t;throw st(lt(t)+" is not an object")},vt=!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=!vt&&!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=S({}.isPrototypeOf),xt=b.Object,Ot=nt?function(t){return"symbol"==typeof t}:function(t){var e=Y("Symbol");return K(e)&&wt(e.prototype,xt(t))},St=b.String,Et=function(t){try{return St(t)}catch(t){return"Object"}},Tt=b.TypeError,jt=function(t){if(K(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,kt=ct("toPrimitive"),Lt=function(t,e){if(!ft(t)||Ot(t))return t;var r,n=At(t,kt);if(n){if(void 0===e&&(e="default"),r=mt(n,t,e),!ft(r)||Ot(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&&K(r=t.toString)&&!ft(n=mt(r,t)))return n;if(K(r=t.valueOf)&&!ft(n=mt(r,t)))return n;if("string"!==e&&K(r=t.toString)&&!ft(n=mt(r,t)))return n;throw It("Can't convert object to primitive value")}(t,e)},Rt=function(t){var e=Lt(t,"string");return Ot(e)?e:e+""},Nt=b.TypeError,Mt=Object.defineProperty,_t={f:vt?Mt:function(t,e,r){if(dt(t),e=Rt(e),dt(r),gt)try{return Mt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Nt("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)},Bt=Math.max,Dt=Math.min,Ht=function(t,e){var r=Ft(t);return r<0?Bt(r+e,0):Dt(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=N(e),u=Vt(i),a=Ht(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=S([].push),qt=function(t,e){var r,n=N(t),o=0,i=[];for(r in n)!G(Kt,r)&&G(n,r)&&Xt(i,r);for(;e.length>o;)G(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=vt?Object.defineProperties:function(t,e){dt(t);for(var r,n=N(e),o=Qt(e),i=o.length,u=0;i>u;)_t.f(t,r=o[u++],n[r]);return t},te=Y("document","documentElement"),ee=F("keys"),re=function(t){return ee[t]||(ee[t]=U(t))},ne="prototype",oe="script",ie=re("IE_PROTO"),ue=function(){},ae=function(t){return"<"+oe+">"+t+"</"+oe+">"},ce=function(t){t.write(ae("")),t.close();var e=t.parentWindow.Object;return t=null,e},fe=function(){try{tt=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;fe="undefined"!=typeof document?document.domain&&tt?ce(tt):(e=ht("iframe"),r="java"+oe+":",e.style.display="none",te.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ae("document.F=Object")),t.close(),t.F):ce(tt);for(var n=Jt.length;n--;)delete fe[ne][Jt[n]];return fe()};Kt[ie]=!0;var le=Object.create||function(t,e){var r;return null!==t?(ue[ne]=dt(t),r=new ue,ue[ne]=null,r[ie]=t):r=fe(),void 0===e?r:Zt(r,e)},se=ct("unscopables"),de=Array.prototype;null==de[se]&&_t.f(de,se,{configurable:!0,value:le(null)});var ve=function(t){de[se][t]=!0},pe={},ye=S(Function.toString);K(C.inspectSource)||(C.inspectSource=function(t){return ye(t)});var he,ge,be,me=C.inspectSource,we=b.WeakMap,xe=K(we)&&/native code/.test(me(we)),Oe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Se=vt?function(t,e,r){return _t.f(t,e,Oe(1,r))}:function(t,e,r){return t[e]=r,t},Ee="Object already initialized",Te=b.TypeError,je=b.WeakMap;if(xe||C.state){var Ae=C.state||(C.state=new je),Ie=S(Ae.get),Pe=S(Ae.has),ke=S(Ae.set);he=function(t,e){if(Pe(Ae,t))throw new Te(Ee);return e.facade=t,ke(Ae,t,e),e},ge=function(t){return Ie(Ae,t)||{}},be=function(t){return Pe(Ae,t)}}else{var Le=re("state");Kt[Le]=!0,he=function(t,e){if(G(t,Le))throw new Te(Ee);return e.facade=t,Se(t,Le,e),e},ge=function(t){return G(t,Le)?t[Le]:{}},be=function(t){return G(t,Le)}}var Re,Ne,Me,_e={set:he,get:ge,has:be,enforce:function(t){return be(t)?ge(t):he(t,{})},getterFor:function(t){return function(e){var r;if(!ft(e)||(r=ge(e)).type!==t)throw Te("Incompatible receiver, "+t+" required");return r}}},ze={}.propertyIsEnumerable,Ce=Object.getOwnPropertyDescriptor,Fe={f:Ce&&!ze.call({1:2},1)?function(t){var e=Ce(this,t);return!!e&&e.enumerable}:ze},Be=Object.getOwnPropertyDescriptor,De={f:vt?Be:function(t,e){if(t=N(t),e=Rt(e),gt)try{return Be(t,e)}catch(t){}if(G(t,e))return Oe(!mt(Fe.f,t,e),t[e])}},He=Function.prototype,Ge=vt&&Object.getOwnPropertyDescriptor,$e=G(He,"name"),Ve={EXISTS:$e,PROPER:$e&&"something"===function(){}.name,CONFIGURABLE:$e&&(!vt||vt&&Ge(He,"name").configurable)},We=p((function(t){var e=Ve.CONFIGURABLE,r=_e.get,n=_e.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var a,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,l=!!u&&!!u.noTargetGet,s=u&&void 0!==u.name?u.name:r;K(i)&&("Symbol("===String(s).slice(0,7)&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!G(i,"name")||e&&i.name!==s)&&Se(i,"name",s),(a=n(i)).source||(a.source=o.join("string"==typeof s?s:""))),t!==b?(c?!l&&t[r]&&(f=!0):delete t[r],f?t[r]=i:Se(t,r,i)):f?t[r]=i:_(r,i)})(Function.prototype,"toString",(function(){return K(this)&&r(this).source||me(this)}))})),Ue=Jt.concat("length","prototype"),Ke={f:Object.getOwnPropertyNames||function(t){return qt(t,Ue)}},Ye={f:Object.getOwnPropertySymbols},Xe=S([].concat),qe=Y("Reflect","ownKeys")||function(t){var e=Ke.f(dt(t)),r=Ye.f;return r?Xe(e,r(t)):e},Je=function(t,e){for(var r=qe(e),n=_t.f,o=De.f,i=0;i<r.length;i++){var u=r[i];G(t,u)||n(t,u,o(e,u))}},Qe=/#|\.prototype\./,Ze=function(t,e){var r=er[tr(t)];return r==nr||r!=rr&&(K(e)?E(e):!!e)},tr=Ze.normalize=function(t){return String(t).replace(Qe,".").toLowerCase()},er=Ze.data={},rr=Ze.NATIVE="N",nr=Ze.POLYFILL="P",or=Ze,ir=De.f,ur=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?b:f?b[a]||_(a,{}):(b[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=ir(r,n))&&u.value:r[n],!or(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Je(i,o)}(t.sham||o&&o.sham)&&Se(i,"sham",!0),We(r,n,i,t)}},ar=!E((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cr=re("IE_PROTO"),fr=b.Object,lr=fr.prototype,sr=ar?fr.getPrototypeOf:function(t){var e=D(t);if(G(e,cr))return e[cr];var r=e.constructor;return K(r)&&e instanceof r?r.prototype:e instanceof fr?lr:null},dr=ct("iterator"),vr=!1;[].keys&&("next"in(Me=[].keys())?(Ne=sr(sr(Me)))!==Object.prototype&&(Re=Ne):vr=!0);var pr=null==Re||E((function(){var t={};return Re[dr].call(t)!==t}));pr&&(Re={}),K(Re[dr])||We(Re,dr,(function(){return this}));var yr={IteratorPrototype:Re,BUGGY_SAFARI_ITERATORS:vr},hr=_t.f,gr=ct("toStringTag"),br=function(t,e,r){t&&!G(t=r?t:t.prototype,gr)&&hr(t,gr,{configurable:!0,value:e})},mr=yr.IteratorPrototype,wr=function(){return this},xr=b.String,Or=b.TypeError,Sr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=S(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return dt(r),function(t){if("object"==typeof t||K(t))return t;throw Or("Can't set "+xr(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Er=Ve.PROPER,Tr=Ve.CONFIGURABLE,jr=yr.IteratorPrototype,Ar=yr.BUGGY_SAFARI_ITERATORS,Ir=ct("iterator"),Pr="keys",kr="values",Lr="entries",Rr=function(){return this},Nr=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=le(mr,{next:Oe(+!n,r)}),br(t,o,!1),pe[o]=wr}(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!Ar&&t in v)return v[t];switch(t){case Pr:case kr:case Lr:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,v=t.prototype,p=v[Ir]||v["@@iterator"]||o&&v[o],y=!Ar&&p||l(o),h="Array"==e&&v.entries||p;if(h&&(a=sr(h.call(new t)))!==Object.prototype&&a.next&&(sr(a)!==jr&&(Sr?Sr(a,jr):K(a[Ir])||We(a,Ir,Rr)),br(a,s,!0)),Er&&o==kr&&p&&p.name!==kr&&(Tr?Se(v,"name",kr):(d=!0,y=function(){return mt(p,this)})),o)if(c={values:l(kr),keys:i?y:l(Pr),entries:l(Lr)},u)for(f in c)(Ar||d||!(f in v))&&We(v,f,c[f]);else ur({target:e,proto:!0,forced:Ar||d},c);return v[Ir]!==y&&We(v,Ir,y,{name:o}),pe[e]=y,c},Mr="Array Iterator",_r=_e.set,zr=_e.getterFor(Mr),Cr=Nr(Array,"Array",(function(t,e){_r(this,{type:Mr,target:N(t),index:0,kind:e})}),(function(){var t=zr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");pe.Arguments=pe.Array,ve("keys"),ve("values"),ve("entries");var Fr={};Fr[ct("toStringTag")]="z";var Br="[object z]"===String(Fr),Dr=ct("toStringTag"),Hr=b.Object,Gr="Arguments"==A(function(){return arguments}()),$r=Br?A:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Hr(t),Dr))?r:Gr?A(e):"Object"==(n=A(e))&&K(e.callee)?"Arguments":n},Vr=Br?{}.toString:function(){return"[object "+$r(this)+"]"};Br||We(Object.prototype,"toString",Vr,{unsafe:!0});var Wr=b.String,Ur=function(t){if("Symbol"===$r(t))throw TypeError("Cannot convert a Symbol value to a string");return Wr(t)},Kr=S("".charAt),Yr=S("".charCodeAt),Xr=S("".slice),qr=function(t){return function(e,r){var n,o,i=Ur(R(e)),u=Ft(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Yr(i,u))<55296||n>56319||u+1===a||(o=Yr(i,u+1))<56320||o>57343?t?Kr(i,u):n:t?Xr(i,u,u+2):o-56320+(n-55296<<10)+65536}},Jr={codeAt:qr(!1),charAt:qr(!0)},Qr=Jr.charAt,Zr="String Iterator",tn=_e.set,en=_e.getterFor(Zr);Nr(String,"String",(function(t){tn(this,{type:Zr,string:Ur(t),index:0})}),(function(){var t,e=en(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Qr(r,n),e.index+=t.length,{value:t,done:!1})}));var rn=function(t,e,r){for(var n in e)We(t,n,e[n],r);return t},nn=b.Array,on=Math.max,un=Ke.f,an="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cn=function(t){try{return un(t)}catch(t){return function(t,e,r){for(var n,o,i,u,a=Vt(t),c=Ht(e,a),f=Ht(void 0===r?a:r,a),l=nn(on(f-c,0)),s=0;c<f;c++,s++)n=l,o=s,i=t[c],u=void 0,(u=Rt(o))in n?_t.f(n,u,Oe(0,i)):n[u]=i;return l.length=s,l}(an)}},fn={f:function(t){return an&&"Window"==A(t)?cn(t):un(N(t))}},ln=E((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),sn=Object.isExtensible,dn=E((function(){sn(1)}))||ln?function(t){return!!ft(t)&&((!ln||"ArrayBuffer"!=A(t))&&(!sn||sn(t)))}:sn,vn=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),pn=p((function(t){var e=_t.f,r=!1,n=U("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=Ke.f,e=S([].splice),o={};o[n]=1,t(o).length&&(Ke.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},ur({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:fn.f}))},fastKey:function(t,e){if(!ft(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!G(t,n)){if(!dn(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!G(t,n)){if(!dn(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return vn&&r&&dn(t)&&!G(t,n)&&i(t),t}};Kt[n]=!0})),yn=S(S.bind),hn=function(t,e){return jt(t),void 0===e?t:yn?yn(t,e):function(){return t.apply(e,arguments)}},gn=ct("iterator"),bn=Array.prototype,mn=ct("iterator"),wn=function(t){if(null!=t)return At(t,mn)||At(t,"@@iterator")||pe[$r(t)]},xn=b.TypeError,On=function(t,e,r){var n,o;dt(t);try{if(!(n=At(t,"return"))){if("throw"===e)throw r;return r}n=mt(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return dt(n),r},Sn=b.TypeError,En=function(t,e){this.stopped=t,this.result=e},Tn=En.prototype,jn=function(t,e,r){var n,o,i,u,a,c,f,l,s=r&&r.that,d=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),y=hn(e,s),h=function(t){return n&&On(n,"normal",t),new En(!0,t)},g=function(t){return d?(dt(t),p?y(t[0],t[1],h):y(t[0],t[1])):p?y(t,h):y(t)};if(v)n=t;else{if(!(o=wn(t)))throw Sn(Et(t)+" is not iterable");if(void 0!==(l=o)&&(pe.Array===l||bn[gn]===l)){for(i=0,u=Vt(t);u>i;i++)if((a=g(t[i]))&&wt(Tn,a))return a;return new En(!1)}n=function(t,e){var r=arguments.length<2?wn(t):e;if(jt(r))return dt(mt(r,t));throw xn(Et(t)+" is not iterable")}(t,o)}for(c=n.next;!(f=mt(c,n)).done;){try{a=g(f.value)}catch(t){On(n,"throw",t)}if("object"==typeof a&&a&&wt(Tn,a))return a}return new En(!1)},An=b.TypeError,In=function(t,e){if(wt(e,t))return t;throw An("Incorrect invocation")},Pn=ct("iterator"),kn=!1;try{var Ln=0,Rn={next:function(){return{done:!!Ln++}},return:function(){kn=!0}};Rn[Pn]=function(){return this},Array.from(Rn,(function(){throw 2}))}catch(t){}var Nn=Array.isArray||function(t){return"Array"==A(t)},Mn=function(){},_n=[],zn=Y("Reflect","construct"),Cn=/^\s*(?:class|function)\b/,Fn=S(Cn.exec),Bn=!Cn.exec(Mn),Dn=function(t){if(!K(t))return!1;try{return zn(Mn,_n,t),!0}catch(t){return!1}},Hn=!zn||E((function(){var t;return Dn(Dn.call)||!Dn(Object)||!Dn((function(){t=!0}))||t}))?function(t){if(!K(t))return!1;switch($r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bn||!!Fn(Cn,me(t))}:Dn,Gn=ct("species"),$n=b.Array,Vn=function(t,e){return new(function(t){var e;return Nn(t)&&(e=t.constructor,(Hn(e)&&(e===$n||Nn(e.prototype))||ft(e)&&null===(e=e[Gn]))&&(e=void 0)),void 0===e?$n:e}(t))(0===e?0:e)},Wn=S([].push),Un=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,f,l,s){for(var d,v,p=D(c),y=k(p),h=hn(f,l),g=Vt(y),b=0,m=s||Vn,w=e?m(c,g):r||u?m(c,0):void 0;g>b;b++)if((a||b in y)&&(v=h(d=y[b],b,p),t))if(e)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:Wn(w,d)}else switch(t){case 4:return!1;case 7:Wn(w,d)}return i?-1:n||o?o:w}},Kn={forEach:Un(0),map:Un(1),filter:Un(2),some:Un(3),every:Un(4),find:Un(5),findIndex:Un(6),filterReject:Un(7)},Yn=pn.getWeakData,Xn=_e.set,qn=_e.getterFor,Jn=Kn.find,Qn=Kn.findIndex,Zn=S([].splice),to=0,eo=function(t){return t.frozen||(t.frozen=new ro)},ro=function(){this.entries=[]},no=function(t,e){return Jn(t.entries,(function(t){return t[0]===e}))};ro.prototype={get:function(t){var e=no(this,t);if(e)return e[1]},has:function(t){return!!no(this,t)},set:function(t,e){var r=no(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Qn(this.entries,(function(e){return e[0]===t}));return~e&&Zn(this.entries,e,1),!!~e}};var oo,io={getConstructor:function(t,e,r,n){var o=t((function(t,o){In(t,i),Xn(t,{type:e,id:to++,frozen:void 0}),null!=o&&jn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=qn(e),a=function(t,e,r){var n=u(t),o=Yn(dt(e),!0);return!0===o?eo(n).set(e,r):o[n.id]=r,t};return rn(i,{delete:function(t){var e=u(this);if(!ft(t))return!1;var r=Yn(t);return!0===r?eo(e).delete(t):r&&G(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!ft(t))return!1;var r=Yn(t);return!0===r?eo(e).has(t):r&&G(r,e.id)}}),rn(i,r?{get:function(t){var e=u(this);if(ft(t)){var r=Yn(t);return!0===r?eo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},uo=_e.enforce,ao=!b.ActiveXObject&&"ActiveXObject"in b,co=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},fo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=b[t],a=u&&u.prototype,c=u,f={},l=function(t){var e=S(a[t]);We(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!ft(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(or(t,!K(u)||!(o||a.forEach&&!E((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),pn.enable();else if(or(t,!0)){var s=new c,d=s[i](o?{}:-0,1)!=s,v=E((function(){s.has(1)})),p=function(t,e){if(!e&&!kn)return!1;var r=!1;try{var n={};n[Pn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),y=!o&&E((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((c=e((function(t,e){In(t,a);var r=function(t,e,r){var n,o;return Sr&&K(n=e.constructor)&&n!==r&&ft(o=n.prototype)&&o!==r.prototype&&Sr(t,o),t}(new u,t,c);return null!=e&&jn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(v||y)&&(l("delete"),l("has"),n&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}return f[t]=c,ur({global:!0,forced:c!=u},f),br(c,t),o||r.setStrong(c,t,n),c}("WeakMap",co,io);if(xe&&ao){oo=io.getConstructor(co,"WeakMap",!0),pn.enable();var lo=fo.prototype,so=S(lo.delete),vo=S(lo.has),po=S(lo.get),yo=S(lo.set);rn(lo,{delete:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),so(this,t)||e.frozen.delete(t)}return so(this,t)},has:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),vo(this,t)||e.frozen.has(t)}return vo(this,t)},get:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),vo(this,t)?po(this,t):e.frozen.get(t)}return po(this,t)},set:function(t,e){if(ft(t)&&!dn(t)){var r=uo(this);r.frozen||(r.frozen=new oo),vo(this,t)?yo(this,t,e):r.frozen.set(t,e)}else yo(this,t,e);return this}})}var ho={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},go=ht("span").classList,bo=go&&go.constructor&&go.constructor.prototype,mo=bo===Object.prototype?void 0:bo,wo=ct("iterator"),xo=ct("toStringTag"),Oo=Cr.values,So=function(t,e){if(t){if(t[wo]!==Oo)try{Se(t,wo,Oo)}catch(e){t[wo]=Oo}if(t[xo]||Se(t,xo,e),ho[e])for(var r in Cr)if(t[r]!==Cr[r])try{Se(t,r,Cr[r])}catch(e){t[r]=Cr[r]}}};for(var Eo in ho)So(b[Eo]&&b[Eo].prototype,Eo);So(mo,"DOMTokenList");var To=new WeakMap;var jo={type:"list-item",renderElem:function(t,r,u){To.set(t,u);var a=t,f=a.level,l=void 0===f?0:f,s=a.ordered,d={margin:"5px 0 5px "+20*l+"px"},v="";if(void 0!==s&&s){var p=function(t,r){var i=r,u=i.type,a=i.level,c=void 0===a?0:a,f=i.ordered,l=void 0!==f&&f,s=1,d=r,v=e.findPath(t,d);if(0===v[0])return 1;for(;v[0]>0;){var p=n.previous(v),y=o.node(t,p);if(null==y)break;var h=y[0],g=h.level,b=void 0===g?0:g,m=h.type,w=h.ordered;if(m!==u)break;if(b<c)break;if(b===c){if(w!==l)break;s++}d=h,v=p}return s}(u,t);v=p+"."}else v=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪"}return e}(l);var y=function(t){var e,r=t.children||[],n=r.length;if(0===n)return"";for(var o=0;o<n&&!e;o++){var u=r[o];i.isText(u)&&(e=u)}return null==e?"":e.color||""}(t);return c("div",{style:d},c("span",{contentEditable:!1,style:{marginRight:"0.5em",color:y},"data-w-e-reserve":!0},v),c("span",null,r))}},Ao=function(t,e){return Ao=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Ao(t,e)};function Io(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Ao(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Po(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ko(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function Lo(t,r,i){for(var u=r.type,a=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(r,["type"]),c=void 0!==i?i:a.level||0,f=e.findPath(t,r),l=f;;){if(0===l.length||0===f[f.length-1])return null;l=n.previous(l);var s=o.node(t,l);if(!s)return null;var d=ko(s,1)[0],v=d.level,p=void 0===v?0:v;if(e.getNodeType(d)!==u)return null;if(p===c)return d}}function Ro(t,e,r){var n=Lo(t,e,r);return!!n&&n.ordered===e.ordered}function No(t){return o.nodes(t,{at:t.selection||void 0,match:function(r){return 1===e.findPath(t,r).length}})}"function"==typeof SuppressedError&&SuppressedError;var Mo=Ut.includes;ur({target:"Array",proto:!0},{includes:function(t){return Mo(this,t,arguments.length>1?arguments[1]:void 0)}}),ve("includes");var _o,zo,Co=function(){var t=dt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Fo=b.RegExp,Bo=E((function(){var t=Fo("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Do=Bo||E((function(){return!Fo("a","y").sticky})),Ho={BROKEN_CARET:Bo||E((function(){var t=Fo("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Do,UNSUPPORTED_Y:Bo},Go=b.RegExp,$o=E((function(){var t=Go(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Vo=b.RegExp,Wo=E((function(){var t=Vo("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Uo=_e.get,Ko=F("native-string-replace",String.prototype.replace),Yo=RegExp.prototype.exec,Xo=Yo,qo=S("".charAt),Jo=S("".indexOf),Qo=S("".replace),Zo=S("".slice),ti=(zo=/b*/g,mt(Yo,_o=/a/,"a"),mt(Yo,zo,"a"),0!==_o.lastIndex||0!==zo.lastIndex),ei=Ho.BROKEN_CARET,ri=void 0!==/()??/.exec("")[1];(ti||ri||ei||$o||Wo)&&(Xo=function(t){var e,r,n,o,i,u,a,c=this,f=Uo(c),l=Ur(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,e=mt(Xo,s,l),c.lastIndex=s.lastIndex,e;var d=f.groups,v=ei&&c.sticky,p=mt(Co,c),y=c.source,h=0,g=l;if(v&&(p=Qo(p,"y",""),-1===Jo(p,"g")&&(p+="g"),g=Zo(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==qo(l,c.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,h++),r=new RegExp("^(?:"+y+")",p)),ri&&(r=new RegExp("^"+y+"$(?!\\s)",p)),ti&&(n=c.lastIndex),o=mt(Yo,v?r:c,g),v?o?(o.input=Zo(o.input,h),o[0]=Zo(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ti&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ri&&o&&o.length>1&&mt(Ko,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=u=le(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var ni=Xo;ur({target:"RegExp",proto:!0,forced:/./.exec!==ni},{exec:ni});var oi=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(t){var r=this.type;return e.getSelectedNodeByType(t,r)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return!1;var r=e.ordered;return(void 0!==r&&r)===this.ordered},t.prototype.isDisabled=function(t){return null==t.selection||!!e.getSelectedElems(t).some((function(e){if(o.isVoid(t,e)&&o.isBlock(t,e))return!0;var r=e.type;return!!["pre","code","table"].includes(r)||void 0}))},t.prototype.exec=function(t,e){this.isActive(t)?u.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):u.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),ii=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!1,e.title=r("listModule.unOrderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',e}return Io(e,t),e}(oi),ui=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!0,e.title=r("listModule.orderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',e}return Io(e,t),e}(oi),ai={key:"bulletedList",factory:function(){return new ii}},ci={key:"numberedList",factory:function(){return new ui}};var fi=[];var li,si={type:"list-item",elemToHtml:function(t,r){var i="",u="",a=t.ordered,c=void 0!==a&&a?"ol":"ul",f=function(t){var r=To.get(t);if(null==r)return 0;var i=t,u=i.type,a=i.ordered,c=void 0!==a&&a,f=i.level,l=void 0===f?0:f,s=e.findPath(r,t);if(0===s[0])return l+1;var d=n.previous(s),v=o.node(r,d);if(!v)return 0;var p=ko(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?l-m:m>l?Ro(r,t)?0:1:m===l?g===c?0:1:0}(t);if(f>0)for(var l=0;l<f;l++)i+="<"+c+">",fi.push(c);var s=function(t){var r=To.get(t);if(null==r)return 0;var i=t,u=i.type,a=i.ordered,c=void 0!==a&&a,f=i.level,l=void 0===f?0:f,s=e.findPath(r,t);if(s[0]===r.children.length-1)return l+1;var d=n.next(s),v=o.node(r,d);if(!v)return 0;var p=ko(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?Ro(r,p)?l-m:l-m+1:m>l?0:m===l?g===c?0:1:0}(t);if(s>0)for(l=0;l<s;l++){u+="</"+fi.pop()+">"}return{html:"<li>"+r+"</li>",prefix:i,suffix:u}}},di=ct("species"),vi=Kn.filter,pi=(li="filter",et>=51||!E((function(){var t=[];return(t.constructor={})[di]=function(){return{foo:1}},1!==t[li](Boolean).foo})));ur({target:"Array",proto:!0,forced:!pi},{filter:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var yi=b.TypeError,hi=function(t,e,r,n,o,i,u,a){for(var c,f,l=o,s=0,d=!!u&&hn(u,a);s<n;){if(s in r){if(c=d?d(r[s],s,e):r[s],i>0&&Nn(c))f=Vt(c),l=hi(t,e,c,f,l,i-1)-1;else{if(l>=9007199254740991)throw yi("Exceed the acceptable array length");t[l]=c}l++}s++}return l},gi=hi;ur({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=D(this),r=Vt(e),n=Vn(e,0);return n.length=gi(n,e,e,r,0,void 0===t?1:Ft(t)),n}}),ve("flat");var bi=Function.prototype,mi=bi.apply,wi=bi.bind,xi=bi.call,Oi="object"==typeof Reflect&&Reflect.apply||(wi?xi.bind(mi):function(){return xi.apply(mi,arguments)}),Si=ct("species"),Ei=RegExp.prototype,Ti=Jr.charAt,ji=function(t,e,r){return e+(r?Ti(t,e).length:1)},Ai=Math.floor,Ii=S("".charAt),Pi=S("".replace),ki=S("".slice),Li=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ri=/\$([$&'`]|\d{1,2})/g,Ni=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=Ri;return void 0!==o&&(o=D(o),c=Li),Pi(i,c,(function(i,c){var f;switch(Ii(c,0)){case"$":return"$";case"&":return t;case"`":return ki(e,0,r);case"'":return ki(e,u);case"<":f=o[ki(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var s=Ai(l/10);return 0===s?i:s<=a?void 0===n[s-1]?Ii(c,1):n[s-1]+Ii(c,1):i}f=n[l-1]}return void 0===f?"":f}))},Mi=b.TypeError,_i=function(t,e){var r=t.exec;if(K(r)){var n=mt(r,t,e);return null!==n&&dt(n),n}if("RegExp"===A(t))return mt(ni,t,e);throw Mi("RegExp#exec called on incompatible receiver")},zi=ct("replace"),Ci=Math.max,Fi=Math.min,Bi=S([].concat),Di=S([].push),Hi=S("".indexOf),Gi=S("".slice),$i="$0"==="a".replace(/./,"$0"),Vi=!!/./[zi]&&""===/./[zi]("a","$0");function Wi(t){return t.length?t[0].tagName.toLowerCase():""}!function(t,e,r,n){var o=ct(t),i=!E((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!E((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Si]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=S(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var u=S(t),c=e.exec;return c===ni||c===Ei.exec?i&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));We(String.prototype,t,c[0]),We(Ei,o,c[1])}n&&Se(Ei[o],"sham",!0)}("replace",(function(t,e,r){var n=Vi?"$":"$0";return[function(t,r){var n=R(this),o=null==t?void 0:At(t,zi);return o?mt(o,t,n,r):mt(e,Ur(n),t,r)},function(t,o){var i=dt(this),u=Ur(t);if("string"==typeof o&&-1===Hi(o,n)&&-1===Hi(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=K(o);c||(o=Ur(o));var f=i.global;if(f){var l=i.unicode;i.lastIndex=0}for(var s=[];;){var d=_i(i,u);if(null===d)break;if(Di(s,d),!f)break;""===Ur(d[0])&&(i.lastIndex=ji(u,$t(i.lastIndex),l))}for(var v,p="",y=0,h=0;h<s.length;h++){for(var g=Ur((d=s[h])[0]),b=Ci(Fi(Ft(d.index),u.length),0),m=[],w=1;w<d.length;w++)Di(m,void 0===(v=d[w])?v:String(v));var x=d.groups;if(c){var O=Bi([g],m,b,u);void 0!==x&&Di(O,x);var S=Ur(Oi(o,void 0,O))}else S=Ni(g,u,b,m,x,o);b>=y&&(p+=Gi(u,y,b)+S,y=b+g.length)}return p+Gi(u,y)}]}),!!E((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!$i||Vi),ur({global:!0},{globalThis:b}),l&&(f.fn.append=l),s&&(f.fn.attr=s),d&&(f.fn.parent=d);var Ui={renderElems:[jo],editorPlugin:function(t){var r=t.deleteBackward,n=t.handleTab,i=t.normalizeNode,c=t.insertBreak,f=t;return f.insertBreak=function(){var r=ko(o.nodes(t,{match:function(t){return e.checkNodeType(t,"list-item")},universal:!0}),1)[0];return r?""!==r[0].children[0].text?c():void u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0}):c()},f.deleteBackward=function(n){var o=f.selection;if(null!=o)if(a.isExpanded(o))r(n);else{var i=e.getSelectedNodeByType(f,"list-item");if(null!=i)if(0!==o.focus.offset)r(n);else{var c=i,l=c.level,s=void 0===l?0:l,d=c.ordered,v=void 0!==d&&d;if(s>0){var p=Lo(t,i,s-1);p&&p.ordered!==v?u.setNodes(f,{level:s-1,ordered:!v}):u.setNodes(f,{level:s-1})}else u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0})}else r(n)}else r(n)},f.handleTab=function(){var t,r,o,i,c=f.selection;if(null!=c){if(a.isCollapsed(c)){var l=e.getSelectedNodeByType(f,"list-item");if(null==l)return void n();if(0===c.focus.offset){var s=l.level,d=void 0===s?0:s;return void u.setNodes(f,{level:d+1})}}if(a.isExpanded(c)){var v=0,p=!1;try{for(var y=Po(No(f)),h=y.next();!h.done;h=y.next()){var g=ko(h.value,1)[0];"list-item"===e.getNodeType(g)?v++:p=!0}}catch(e){t={error:e}}finally{try{h&&!h.done&&(r=y.return)&&r.call(y)}finally{if(t)throw t.error}}if(p||v<=1)return void n();try{for(var b=Po(No(f)),m=b.next();!m.done;m=b.next()){var w=ko(m.value,2),x=(g=w[0],w[1]),O=g.level;d=void 0===O?0:O;u.setNodes(f,{level:d+1},{at:x})}}catch(t){o={error:t}}finally{try{m&&!m.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}else n()}else n()},f.normalizeNode=function(t){var r=ko(t,2),n=r[0],o=r[1],a=e.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||u.unwrapNodes(f,{at:o}),i([n,o])},f},menus:[ai,ci],elemsToHtml:[si],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=f(t);0===(e=e.filter((function(t){return!!i.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(t){return"ol"===Wi(t.parent())}(n),u=function(t){for(var e=0,r=t.parent(),n=Wi(r);"ul"===n||"ol"===n;)n=Wi(r=r.parent()),e++;return e-1}(n);return{type:"list-item",ordered:o,level:u,children:e}}}]};export{Ui as default};
1
+ import{i18nAddResources as t,DomEditor as e,t as r}from"@wangeditor-next/core";import{Text as n,Path as o,Editor as i,Transforms as u,Range as a}from"slate";import{jsx as c}from"snabbdom";import f,{append as l,attr as s,parent as d}from"dom7";t("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var v="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 v&&v)||function(){return this}()||Function("return this")(),m=Function.prototype,w=m.bind,x=m.call,O=w&&w.bind(x),S=w?function(t){return t&&O(x,t)}:function(t){return t&&function(){return x.apply(t,arguments)}},E=function(t){try{return!!t()}catch(t){return!0}},T=S({}.toString),j=S("".slice),A=function(t){return j(T(t),8,-1)},I=b.Object,P=S("".split),k=E((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?P(t,""):I(t)}:I,L=b.TypeError,R=function(t){if(null==t)throw L("Can't call method on "+t);return t},N=function(t){return k(R(t))},M=Object.defineProperty,_=function(t,e){try{M(b,t,{value:e,configurable:!0,writable:!0})}catch(r){b[t]=e}return e},z="__core-js_shared__",C=b[z]||_(z,{}),F=p((function(t){(t.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),B=b.Object,D=function(t){return B(R(t))},H=S({}.hasOwnProperty),G=Object.hasOwn||function(t,e){return H(D(t),e)},$=0,V=Math.random(),W=S(1..toString),U=function(t){return"Symbol("+(void 0===t?"":t)+")_"+W(++$+V,36)},K=function(t){return"function"==typeof t},Y=function(t,e){return arguments.length<2?(r=b[t],K(r)?r:void 0):b[t]&&b[t][e];var r},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=F("wks"),it=b.Symbol,ut=it&&it.for,at=nt?it:it&&it.withoutSetter||U,ct=function(t){if(!G(ot,t)||!rt&&"string"!=typeof ot[t]){var e="Symbol."+t;rt&&G(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:K(t)},lt=b.String,st=b.TypeError,dt=function(t){if(ft(t))return t;throw st(lt(t)+" is not an object")},vt=!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=!vt&&!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=S({}.isPrototypeOf),xt=b.Object,Ot=nt?function(t){return"symbol"==typeof t}:function(t){var e=Y("Symbol");return K(e)&&wt(e.prototype,xt(t))},St=b.String,Et=function(t){try{return St(t)}catch(t){return"Object"}},Tt=b.TypeError,jt=function(t){if(K(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,kt=ct("toPrimitive"),Lt=function(t,e){if(!ft(t)||Ot(t))return t;var r,n=At(t,kt);if(n){if(void 0===e&&(e="default"),r=mt(n,t,e),!ft(r)||Ot(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&&K(r=t.toString)&&!ft(n=mt(r,t)))return n;if(K(r=t.valueOf)&&!ft(n=mt(r,t)))return n;if("string"!==e&&K(r=t.toString)&&!ft(n=mt(r,t)))return n;throw It("Can't convert object to primitive value")}(t,e)},Rt=function(t){var e=Lt(t,"string");return Ot(e)?e:e+""},Nt=b.TypeError,Mt=Object.defineProperty,_t={f:vt?Mt:function(t,e,r){if(dt(t),e=Rt(e),dt(r),gt)try{return Mt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Nt("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)},Bt=Math.max,Dt=Math.min,Ht=function(t,e){var r=Ft(t);return r<0?Bt(r+e,0):Dt(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=N(e),u=Vt(i),a=Ht(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=S([].push),qt=function(t,e){var r,n=N(t),o=0,i=[];for(r in n)!G(Kt,r)&&G(n,r)&&Xt(i,r);for(;e.length>o;)G(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=vt?Object.defineProperties:function(t,e){dt(t);for(var r,n=N(e),o=Qt(e),i=o.length,u=0;i>u;)_t.f(t,r=o[u++],n[r]);return t},te=Y("document","documentElement"),ee=F("keys"),re=function(t){return ee[t]||(ee[t]=U(t))},ne="prototype",oe="script",ie=re("IE_PROTO"),ue=function(){},ae=function(t){return"<"+oe+">"+t+"</"+oe+">"},ce=function(t){t.write(ae("")),t.close();var e=t.parentWindow.Object;return t=null,e},fe=function(){try{tt=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;fe="undefined"!=typeof document?document.domain&&tt?ce(tt):(e=ht("iframe"),r="java"+oe+":",e.style.display="none",te.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ae("document.F=Object")),t.close(),t.F):ce(tt);for(var n=Jt.length;n--;)delete fe[ne][Jt[n]];return fe()};Kt[ie]=!0;var le=Object.create||function(t,e){var r;return null!==t?(ue[ne]=dt(t),r=new ue,ue[ne]=null,r[ie]=t):r=fe(),void 0===e?r:Zt(r,e)},se=ct("unscopables"),de=Array.prototype;null==de[se]&&_t.f(de,se,{configurable:!0,value:le(null)});var ve=function(t){de[se][t]=!0},pe={},ye=S(Function.toString);K(C.inspectSource)||(C.inspectSource=function(t){return ye(t)});var he,ge,be,me=C.inspectSource,we=b.WeakMap,xe=K(we)&&/native code/.test(me(we)),Oe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Se=vt?function(t,e,r){return _t.f(t,e,Oe(1,r))}:function(t,e,r){return t[e]=r,t},Ee="Object already initialized",Te=b.TypeError,je=b.WeakMap;if(xe||C.state){var Ae=C.state||(C.state=new je),Ie=S(Ae.get),Pe=S(Ae.has),ke=S(Ae.set);he=function(t,e){if(Pe(Ae,t))throw new Te(Ee);return e.facade=t,ke(Ae,t,e),e},ge=function(t){return Ie(Ae,t)||{}},be=function(t){return Pe(Ae,t)}}else{var Le=re("state");Kt[Le]=!0,he=function(t,e){if(G(t,Le))throw new Te(Ee);return e.facade=t,Se(t,Le,e),e},ge=function(t){return G(t,Le)?t[Le]:{}},be=function(t){return G(t,Le)}}var Re,Ne,Me,_e={set:he,get:ge,has:be,enforce:function(t){return be(t)?ge(t):he(t,{})},getterFor:function(t){return function(e){var r;if(!ft(e)||(r=ge(e)).type!==t)throw Te("Incompatible receiver, "+t+" required");return r}}},ze={}.propertyIsEnumerable,Ce=Object.getOwnPropertyDescriptor,Fe={f:Ce&&!ze.call({1:2},1)?function(t){var e=Ce(this,t);return!!e&&e.enumerable}:ze},Be=Object.getOwnPropertyDescriptor,De={f:vt?Be:function(t,e){if(t=N(t),e=Rt(e),gt)try{return Be(t,e)}catch(t){}if(G(t,e))return Oe(!mt(Fe.f,t,e),t[e])}},He=Function.prototype,Ge=vt&&Object.getOwnPropertyDescriptor,$e=G(He,"name"),Ve={EXISTS:$e,PROPER:$e&&"something"===function(){}.name,CONFIGURABLE:$e&&(!vt||vt&&Ge(He,"name").configurable)},We=p((function(t){var e=Ve.CONFIGURABLE,r=_e.get,n=_e.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var a,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,l=!!u&&!!u.noTargetGet,s=u&&void 0!==u.name?u.name:r;K(i)&&("Symbol("===String(s).slice(0,7)&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!G(i,"name")||e&&i.name!==s)&&Se(i,"name",s),(a=n(i)).source||(a.source=o.join("string"==typeof s?s:""))),t!==b?(c?!l&&t[r]&&(f=!0):delete t[r],f?t[r]=i:Se(t,r,i)):f?t[r]=i:_(r,i)})(Function.prototype,"toString",(function(){return K(this)&&r(this).source||me(this)}))})),Ue=Jt.concat("length","prototype"),Ke={f:Object.getOwnPropertyNames||function(t){return qt(t,Ue)}},Ye={f:Object.getOwnPropertySymbols},Xe=S([].concat),qe=Y("Reflect","ownKeys")||function(t){var e=Ke.f(dt(t)),r=Ye.f;return r?Xe(e,r(t)):e},Je=function(t,e){for(var r=qe(e),n=_t.f,o=De.f,i=0;i<r.length;i++){var u=r[i];G(t,u)||n(t,u,o(e,u))}},Qe=/#|\.prototype\./,Ze=function(t,e){var r=er[tr(t)];return r==nr||r!=rr&&(K(e)?E(e):!!e)},tr=Ze.normalize=function(t){return String(t).replace(Qe,".").toLowerCase()},er=Ze.data={},rr=Ze.NATIVE="N",nr=Ze.POLYFILL="P",or=Ze,ir=De.f,ur=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?b:f?b[a]||_(a,{}):(b[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=ir(r,n))&&u.value:r[n],!or(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Je(i,o)}(t.sham||o&&o.sham)&&Se(i,"sham",!0),We(r,n,i,t)}},ar=!E((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cr=re("IE_PROTO"),fr=b.Object,lr=fr.prototype,sr=ar?fr.getPrototypeOf:function(t){var e=D(t);if(G(e,cr))return e[cr];var r=e.constructor;return K(r)&&e instanceof r?r.prototype:e instanceof fr?lr:null},dr=ct("iterator"),vr=!1;[].keys&&("next"in(Me=[].keys())?(Ne=sr(sr(Me)))!==Object.prototype&&(Re=Ne):vr=!0);var pr=null==Re||E((function(){var t={};return Re[dr].call(t)!==t}));pr&&(Re={}),K(Re[dr])||We(Re,dr,(function(){return this}));var yr={IteratorPrototype:Re,BUGGY_SAFARI_ITERATORS:vr},hr=_t.f,gr=ct("toStringTag"),br=function(t,e,r){t&&!G(t=r?t:t.prototype,gr)&&hr(t,gr,{configurable:!0,value:e})},mr=yr.IteratorPrototype,wr=function(){return this},xr=b.String,Or=b.TypeError,Sr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=S(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return dt(r),function(t){if("object"==typeof t||K(t))return t;throw Or("Can't set "+xr(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Er=Ve.PROPER,Tr=Ve.CONFIGURABLE,jr=yr.IteratorPrototype,Ar=yr.BUGGY_SAFARI_ITERATORS,Ir=ct("iterator"),Pr="keys",kr="values",Lr="entries",Rr=function(){return this},Nr=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=le(mr,{next:Oe(+!n,r)}),br(t,o,!1),pe[o]=wr}(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!Ar&&t in v)return v[t];switch(t){case Pr:case kr:case Lr:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,v=t.prototype,p=v[Ir]||v["@@iterator"]||o&&v[o],y=!Ar&&p||l(o),h="Array"==e&&v.entries||p;if(h&&(a=sr(h.call(new t)))!==Object.prototype&&a.next&&(sr(a)!==jr&&(Sr?Sr(a,jr):K(a[Ir])||We(a,Ir,Rr)),br(a,s,!0)),Er&&o==kr&&p&&p.name!==kr&&(Tr?Se(v,"name",kr):(d=!0,y=function(){return mt(p,this)})),o)if(c={values:l(kr),keys:i?y:l(Pr),entries:l(Lr)},u)for(f in c)(Ar||d||!(f in v))&&We(v,f,c[f]);else ur({target:e,proto:!0,forced:Ar||d},c);return v[Ir]!==y&&We(v,Ir,y,{name:o}),pe[e]=y,c},Mr="Array Iterator",_r=_e.set,zr=_e.getterFor(Mr),Cr=Nr(Array,"Array",(function(t,e){_r(this,{type:Mr,target:N(t),index:0,kind:e})}),(function(){var t=zr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");pe.Arguments=pe.Array,ve("keys"),ve("values"),ve("entries");var Fr={};Fr[ct("toStringTag")]="z";var Br="[object z]"===String(Fr),Dr=ct("toStringTag"),Hr=b.Object,Gr="Arguments"==A(function(){return arguments}()),$r=Br?A:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Hr(t),Dr))?r:Gr?A(e):"Object"==(n=A(e))&&K(e.callee)?"Arguments":n},Vr=Br?{}.toString:function(){return"[object "+$r(this)+"]"};Br||We(Object.prototype,"toString",Vr,{unsafe:!0});var Wr=b.String,Ur=function(t){if("Symbol"===$r(t))throw TypeError("Cannot convert a Symbol value to a string");return Wr(t)},Kr=S("".charAt),Yr=S("".charCodeAt),Xr=S("".slice),qr=function(t){return function(e,r){var n,o,i=Ur(R(e)),u=Ft(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Yr(i,u))<55296||n>56319||u+1===a||(o=Yr(i,u+1))<56320||o>57343?t?Kr(i,u):n:t?Xr(i,u,u+2):o-56320+(n-55296<<10)+65536}},Jr={codeAt:qr(!1),charAt:qr(!0)},Qr=Jr.charAt,Zr="String Iterator",tn=_e.set,en=_e.getterFor(Zr);Nr(String,"String",(function(t){tn(this,{type:Zr,string:Ur(t),index:0})}),(function(){var t,e=en(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Qr(r,n),e.index+=t.length,{value:t,done:!1})}));var rn=function(t,e,r){for(var n in e)We(t,n,e[n],r);return t},nn=b.Array,on=Math.max,un=Ke.f,an="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cn=function(t){try{return un(t)}catch(t){return function(t,e,r){for(var n,o,i,u,a=Vt(t),c=Ht(e,a),f=Ht(void 0===r?a:r,a),l=nn(on(f-c,0)),s=0;c<f;c++,s++)n=l,o=s,i=t[c],u=void 0,(u=Rt(o))in n?_t.f(n,u,Oe(0,i)):n[u]=i;return l.length=s,l}(an)}},fn={f:function(t){return an&&"Window"==A(t)?cn(t):un(N(t))}},ln=E((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),sn=Object.isExtensible,dn=E((function(){sn(1)}))||ln?function(t){return!!ft(t)&&((!ln||"ArrayBuffer"!=A(t))&&(!sn||sn(t)))}:sn,vn=!E((function(){return Object.isExtensible(Object.preventExtensions({}))})),pn=p((function(t){var e=_t.f,r=!1,n=U("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=Ke.f,e=S([].splice),o={};o[n]=1,t(o).length&&(Ke.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},ur({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:fn.f}))},fastKey:function(t,e){if(!ft(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!G(t,n)){if(!dn(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!G(t,n)){if(!dn(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return vn&&r&&dn(t)&&!G(t,n)&&i(t),t}};Kt[n]=!0})),yn=S(S.bind),hn=function(t,e){return jt(t),void 0===e?t:yn?yn(t,e):function(){return t.apply(e,arguments)}},gn=ct("iterator"),bn=Array.prototype,mn=ct("iterator"),wn=function(t){if(null!=t)return At(t,mn)||At(t,"@@iterator")||pe[$r(t)]},xn=b.TypeError,On=function(t,e,r){var n,o;dt(t);try{if(!(n=At(t,"return"))){if("throw"===e)throw r;return r}n=mt(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return dt(n),r},Sn=b.TypeError,En=function(t,e){this.stopped=t,this.result=e},Tn=En.prototype,jn=function(t,e,r){var n,o,i,u,a,c,f,l,s=r&&r.that,d=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),y=hn(e,s),h=function(t){return n&&On(n,"normal",t),new En(!0,t)},g=function(t){return d?(dt(t),p?y(t[0],t[1],h):y(t[0],t[1])):p?y(t,h):y(t)};if(v)n=t;else{if(!(o=wn(t)))throw Sn(Et(t)+" is not iterable");if(void 0!==(l=o)&&(pe.Array===l||bn[gn]===l)){for(i=0,u=Vt(t);u>i;i++)if((a=g(t[i]))&&wt(Tn,a))return a;return new En(!1)}n=function(t,e){var r=arguments.length<2?wn(t):e;if(jt(r))return dt(mt(r,t));throw xn(Et(t)+" is not iterable")}(t,o)}for(c=n.next;!(f=mt(c,n)).done;){try{a=g(f.value)}catch(t){On(n,"throw",t)}if("object"==typeof a&&a&&wt(Tn,a))return a}return new En(!1)},An=b.TypeError,In=function(t,e){if(wt(e,t))return t;throw An("Incorrect invocation")},Pn=ct("iterator"),kn=!1;try{var Ln=0,Rn={next:function(){return{done:!!Ln++}},return:function(){kn=!0}};Rn[Pn]=function(){return this},Array.from(Rn,(function(){throw 2}))}catch(t){}var Nn=Array.isArray||function(t){return"Array"==A(t)},Mn=function(){},_n=[],zn=Y("Reflect","construct"),Cn=/^\s*(?:class|function)\b/,Fn=S(Cn.exec),Bn=!Cn.exec(Mn),Dn=function(t){if(!K(t))return!1;try{return zn(Mn,_n,t),!0}catch(t){return!1}},Hn=!zn||E((function(){var t;return Dn(Dn.call)||!Dn(Object)||!Dn((function(){t=!0}))||t}))?function(t){if(!K(t))return!1;switch($r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bn||!!Fn(Cn,me(t))}:Dn,Gn=ct("species"),$n=b.Array,Vn=function(t,e){return new(function(t){var e;return Nn(t)&&(e=t.constructor,(Hn(e)&&(e===$n||Nn(e.prototype))||ft(e)&&null===(e=e[Gn]))&&(e=void 0)),void 0===e?$n:e}(t))(0===e?0:e)},Wn=S([].push),Un=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,f,l,s){for(var d,v,p=D(c),y=k(p),h=hn(f,l),g=Vt(y),b=0,m=s||Vn,w=e?m(c,g):r||u?m(c,0):void 0;g>b;b++)if((a||b in y)&&(v=h(d=y[b],b,p),t))if(e)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:Wn(w,d)}else switch(t){case 4:return!1;case 7:Wn(w,d)}return i?-1:n||o?o:w}},Kn={forEach:Un(0),map:Un(1),filter:Un(2),some:Un(3),every:Un(4),find:Un(5),findIndex:Un(6),filterReject:Un(7)},Yn=pn.getWeakData,Xn=_e.set,qn=_e.getterFor,Jn=Kn.find,Qn=Kn.findIndex,Zn=S([].splice),to=0,eo=function(t){return t.frozen||(t.frozen=new ro)},ro=function(){this.entries=[]},no=function(t,e){return Jn(t.entries,(function(t){return t[0]===e}))};ro.prototype={get:function(t){var e=no(this,t);if(e)return e[1]},has:function(t){return!!no(this,t)},set:function(t,e){var r=no(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Qn(this.entries,(function(e){return e[0]===t}));return~e&&Zn(this.entries,e,1),!!~e}};var oo,io={getConstructor:function(t,e,r,n){var o=t((function(t,o){In(t,i),Xn(t,{type:e,id:to++,frozen:void 0}),null!=o&&jn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=qn(e),a=function(t,e,r){var n=u(t),o=Yn(dt(e),!0);return!0===o?eo(n).set(e,r):o[n.id]=r,t};return rn(i,{delete:function(t){var e=u(this);if(!ft(t))return!1;var r=Yn(t);return!0===r?eo(e).delete(t):r&&G(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!ft(t))return!1;var r=Yn(t);return!0===r?eo(e).has(t):r&&G(r,e.id)}}),rn(i,r?{get:function(t){var e=u(this);if(ft(t)){var r=Yn(t);return!0===r?eo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},uo=_e.enforce,ao=!b.ActiveXObject&&"ActiveXObject"in b,co=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},fo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=b[t],a=u&&u.prototype,c=u,f={},l=function(t){var e=S(a[t]);We(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!ft(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!ft(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(or(t,!K(u)||!(o||a.forEach&&!E((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),pn.enable();else if(or(t,!0)){var s=new c,d=s[i](o?{}:-0,1)!=s,v=E((function(){s.has(1)})),p=function(t,e){if(!e&&!kn)return!1;var r=!1;try{var n={};n[Pn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),y=!o&&E((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((c=e((function(t,e){In(t,a);var r=function(t,e,r){var n,o;return Sr&&K(n=e.constructor)&&n!==r&&ft(o=n.prototype)&&o!==r.prototype&&Sr(t,o),t}(new u,t,c);return null!=e&&jn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(v||y)&&(l("delete"),l("has"),n&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}return f[t]=c,ur({global:!0,forced:c!=u},f),br(c,t),o||r.setStrong(c,t,n),c}("WeakMap",co,io);if(xe&&ao){oo=io.getConstructor(co,"WeakMap",!0),pn.enable();var lo=fo.prototype,so=S(lo.delete),vo=S(lo.has),po=S(lo.get),yo=S(lo.set);rn(lo,{delete:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),so(this,t)||e.frozen.delete(t)}return so(this,t)},has:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),vo(this,t)||e.frozen.has(t)}return vo(this,t)},get:function(t){if(ft(t)&&!dn(t)){var e=uo(this);return e.frozen||(e.frozen=new oo),vo(this,t)?po(this,t):e.frozen.get(t)}return po(this,t)},set:function(t,e){if(ft(t)&&!dn(t)){var r=uo(this);r.frozen||(r.frozen=new oo),vo(this,t)?yo(this,t,e):r.frozen.set(t,e)}else yo(this,t,e);return this}})}var ho={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},go=ht("span").classList,bo=go&&go.constructor&&go.constructor.prototype,mo=bo===Object.prototype?void 0:bo,wo=ct("iterator"),xo=ct("toStringTag"),Oo=Cr.values,So=function(t,e){if(t){if(t[wo]!==Oo)try{Se(t,wo,Oo)}catch(e){t[wo]=Oo}if(t[xo]||Se(t,xo,e),ho[e])for(var r in Cr)if(t[r]!==Cr[r])try{Se(t,r,Cr[r])}catch(e){t[r]=Cr[r]}}};for(var Eo in ho)So(b[Eo]&&b[Eo].prototype,Eo);So(mo,"DOMTokenList");var To=new WeakMap;function jo(t){var e,r=t.children||[],o=r.length;if(0===o)return"";for(var i=0;i<o&&!e;i++){var u=r[i];n.isText(u)&&(e=u)}return null==e?"":e.color||""}var Ao={type:"list-item",renderElem:function(t,r,n){To.set(t,n);var u=t,a=u.level,f=void 0===a?0:a,l=u.ordered,s={margin:"5px 0 5px "+20*f+"px"},d="";if(void 0!==l&&l){var v=function(t,r){var n=r,u=n.type,a=n.level,c=void 0===a?0:a,f=n.ordered,l=void 0!==f&&f,s=1,d=r,v=e.findPath(t,d);if(0===v[0])return 1;for(;v[0]>0;){var p=o.previous(v),y=i.node(t,p);if(null==y)break;var h=y[0],g=h.level,b=void 0===g?0:g,m=h.type,w=h.ordered;if(m!==u)break;if(b<c)break;if(b===c){if(w!==l)break;s++}d=h,v=p}return s}(n,t);d=v+"."}else d=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪"}return e}(f);var p=jo(t);return c("div",{style:s},c("span",{contentEditable:!1,style:{marginRight:"0.5em",color:p},"data-w-e-reserve":!0},d),c("span",null,r))}},Io=function(t,e){return Io=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Io(t,e)};function Po(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Io(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ko(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Lo(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function Ro(t,r,n){for(var u=r.type,a=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(r,["type"]),c=void 0!==n?n:a.level||0,f=e.findPath(t,r),l=f;;){if(0===l.length||0===f[f.length-1])return null;l=o.previous(l);var s=i.node(t,l);if(!s)return null;var d=Lo(s,1)[0],v=d.level,p=void 0===v?0:v;if(e.getNodeType(d)!==u)return null;if(p===c)return d}}function No(t,e,r){var n=Ro(t,e,r);return!!n&&n.ordered===e.ordered}function Mo(t){return i.nodes(t,{at:t.selection||void 0,match:function(r){return 1===e.findPath(t,r).length}})}"function"==typeof SuppressedError&&SuppressedError;var _o=Ut.includes;ur({target:"Array",proto:!0},{includes:function(t){return _o(this,t,arguments.length>1?arguments[1]:void 0)}}),ve("includes");var zo,Co,Fo=function(){var t=dt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Bo=b.RegExp,Do=E((function(){var t=Bo("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ho=Do||E((function(){return!Bo("a","y").sticky})),Go={BROKEN_CARET:Do||E((function(){var t=Bo("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Ho,UNSUPPORTED_Y:Do},$o=b.RegExp,Vo=E((function(){var t=$o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Wo=b.RegExp,Uo=E((function(){var t=Wo("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ko=_e.get,Yo=F("native-string-replace",String.prototype.replace),Xo=RegExp.prototype.exec,qo=Xo,Jo=S("".charAt),Qo=S("".indexOf),Zo=S("".replace),ti=S("".slice),ei=(Co=/b*/g,mt(Xo,zo=/a/,"a"),mt(Xo,Co,"a"),0!==zo.lastIndex||0!==Co.lastIndex),ri=Go.BROKEN_CARET,ni=void 0!==/()??/.exec("")[1];(ei||ni||ri||Vo||Uo)&&(qo=function(t){var e,r,n,o,i,u,a,c=this,f=Ko(c),l=Ur(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,e=mt(qo,s,l),c.lastIndex=s.lastIndex,e;var d=f.groups,v=ri&&c.sticky,p=mt(Fo,c),y=c.source,h=0,g=l;if(v&&(p=Zo(p,"y",""),-1===Qo(p,"g")&&(p+="g"),g=ti(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Jo(l,c.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,h++),r=new RegExp("^(?:"+y+")",p)),ni&&(r=new RegExp("^"+y+"$(?!\\s)",p)),ei&&(n=c.lastIndex),o=mt(Xo,v?r:c,g),v?o?(o.input=ti(o.input,h),o[0]=ti(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ei&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ni&&o&&o.length>1&&mt(Yo,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=u=le(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var oi=qo;ur({target:"RegExp",proto:!0,forced:/./.exec!==oi},{exec:oi});var ii=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(t){var r=this.type;return e.getSelectedNodeByType(t,r)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return!1;var r=e.ordered;return(void 0!==r&&r)===this.ordered},t.prototype.isDisabled=function(t){return null==t.selection||!!e.getSelectedElems(t).some((function(e){if(i.isVoid(t,e)&&i.isBlock(t,e))return!0;var r=e.type;return!!["pre","code","table"].includes(r)||void 0}))},t.prototype.exec=function(t,e){this.isActive(t)?u.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):u.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),ui=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!1,e.title=r("listModule.unOrderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',e}return Po(e,t),e}(ii),ai=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!0,e.title=r("listModule.orderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',e}return Po(e,t),e}(ii),ci={key:"bulletedList",factory:function(){return new ui}},fi={key:"numberedList",factory:function(){return new ai}};var li=[];var si,di={type:"list-item",elemToHtml:function(t,r){var n="",u="",a=t.ordered,c=void 0!==a&&a?"ol":"ul",f=function(t){var r=To.get(t);if(null==r)return 0;var n=t,u=n.type,a=n.ordered,c=void 0!==a&&a,f=n.level,l=void 0===f?0:f,s=e.findPath(r,t);if(0===s[0])return l+1;var d=o.previous(s),v=i.node(r,d);if(!v)return 0;var p=Lo(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?l-m:m>l?No(r,t)?0:1:m===l?g===c?0:1:0}(t);if(f>0)for(var l=0;l<f;l++)n+="<"+c+">",li.push(c);var s=function(t){var r=To.get(t);if(null==r)return 0;var n=t,u=n.type,a=n.ordered,c=void 0!==a&&a,f=n.level,l=void 0===f?0:f,s=e.findPath(r,t);if(s[0]===r.children.length-1)return l+1;var d=o.next(s),v=i.node(r,d);if(!v)return 0;var p=Lo(v,1)[0];if(e.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?No(r,p)?l-m:l-m+1:m>l?0:m===l?g===c?0:1:0}(t);if(s>0)for(l=0;l<s;l++){u+="</"+li.pop()+">"}var d=jo(t);return{html:"<li"+(d?' style="color:'+d+'"':"")+">"+r+"</li>",prefix:n,suffix:u}}},vi=ct("species"),pi=Kn.filter,yi=(si="filter",et>=51||!E((function(){var t=[];return(t.constructor={})[vi]=function(){return{foo:1}},1!==t[si](Boolean).foo})));ur({target:"Array",proto:!0,forced:!yi},{filter:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var hi=b.TypeError,gi=function(t,e,r,n,o,i,u,a){for(var c,f,l=o,s=0,d=!!u&&hn(u,a);s<n;){if(s in r){if(c=d?d(r[s],s,e):r[s],i>0&&Nn(c))f=Vt(c),l=gi(t,e,c,f,l,i-1)-1;else{if(l>=9007199254740991)throw hi("Exceed the acceptable array length");t[l]=c}l++}s++}return l},bi=gi;ur({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=D(this),r=Vt(e),n=Vn(e,0);return n.length=bi(n,e,e,r,0,void 0===t?1:Ft(t)),n}}),ve("flat");var mi=Function.prototype,wi=mi.apply,xi=mi.bind,Oi=mi.call,Si="object"==typeof Reflect&&Reflect.apply||(xi?Oi.bind(wi):function(){return Oi.apply(wi,arguments)}),Ei=ct("species"),Ti=RegExp.prototype,ji=Jr.charAt,Ai=function(t,e,r){return e+(r?ji(t,e).length:1)},Ii=Math.floor,Pi=S("".charAt),ki=S("".replace),Li=S("".slice),Ri=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ni=/\$([$&'`]|\d{1,2})/g,Mi=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=Ni;return void 0!==o&&(o=D(o),c=Ri),ki(i,c,(function(i,c){var f;switch(Pi(c,0)){case"$":return"$";case"&":return t;case"`":return Li(e,0,r);case"'":return Li(e,u);case"<":f=o[Li(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var s=Ii(l/10);return 0===s?i:s<=a?void 0===n[s-1]?Pi(c,1):n[s-1]+Pi(c,1):i}f=n[l-1]}return void 0===f?"":f}))},_i=b.TypeError,zi=function(t,e){var r=t.exec;if(K(r)){var n=mt(r,t,e);return null!==n&&dt(n),n}if("RegExp"===A(t))return mt(oi,t,e);throw _i("RegExp#exec called on incompatible receiver")},Ci=ct("replace"),Fi=Math.max,Bi=Math.min,Di=S([].concat),Hi=S([].push),Gi=S("".indexOf),$i=S("".slice),Vi="$0"==="a".replace(/./,"$0"),Wi=!!/./[Ci]&&""===/./[Ci]("a","$0");function Ui(t){return t.length?t[0].tagName.toLowerCase():""}!function(t,e,r,n){var o=ct(t),i=!E((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!E((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ei]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=S(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var u=S(t),c=e.exec;return c===oi||c===Ti.exec?i&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));We(String.prototype,t,c[0]),We(Ti,o,c[1])}n&&Se(Ti[o],"sham",!0)}("replace",(function(t,e,r){var n=Wi?"$":"$0";return[function(t,r){var n=R(this),o=null==t?void 0:At(t,Ci);return o?mt(o,t,n,r):mt(e,Ur(n),t,r)},function(t,o){var i=dt(this),u=Ur(t);if("string"==typeof o&&-1===Gi(o,n)&&-1===Gi(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=K(o);c||(o=Ur(o));var f=i.global;if(f){var l=i.unicode;i.lastIndex=0}for(var s=[];;){var d=zi(i,u);if(null===d)break;if(Hi(s,d),!f)break;""===Ur(d[0])&&(i.lastIndex=Ai(u,$t(i.lastIndex),l))}for(var v,p="",y=0,h=0;h<s.length;h++){for(var g=Ur((d=s[h])[0]),b=Fi(Bi(Ft(d.index),u.length),0),m=[],w=1;w<d.length;w++)Hi(m,void 0===(v=d[w])?v:String(v));var x=d.groups;if(c){var O=Di([g],m,b,u);void 0!==x&&Hi(O,x);var S=Ur(Si(o,void 0,O))}else S=Mi(g,u,b,m,x,o);b>=y&&(p+=$i(u,y,b)+S,y=b+g.length)}return p+$i(u,y)}]}),!!E((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Vi||Wi),ur({global:!0},{globalThis:b}),l&&(f.fn.append=l),s&&(f.fn.attr=s),d&&(f.fn.parent=d);var Ki={renderElems:[Ao],editorPlugin:function(t){var r=t.deleteBackward,n=t.handleTab,o=t.normalizeNode,c=t.insertBreak,f=t;return f.insertBreak=function(){var r=Lo(i.nodes(t,{match:function(t){return e.checkNodeType(t,"list-item")},universal:!0}),1)[0];return r?""!==r[0].children[0].text?c():void u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0}):c()},f.deleteBackward=function(n){var o=f.selection;if(null!=o)if(a.isExpanded(o))r(n);else{var i=e.getSelectedNodeByType(f,"list-item");if(null!=i)if(0!==o.focus.offset)r(n);else{var c=i,l=c.level,s=void 0===l?0:l,d=c.ordered,v=void 0!==d&&d;if(s>0){var p=Ro(t,i,s-1);p&&p.ordered!==v?u.setNodes(f,{level:s-1,ordered:!v}):u.setNodes(f,{level:s-1})}else u.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0})}else r(n)}else r(n)},f.handleTab=function(){var t,r,o,i,c=f.selection;if(null!=c){if(a.isCollapsed(c)){var l=e.getSelectedNodeByType(f,"list-item");if(null==l)return void n();if(0===c.focus.offset){var s=l.level,d=void 0===s?0:s;return void u.setNodes(f,{level:d+1})}}if(a.isExpanded(c)){var v=0,p=!1;try{for(var y=ko(Mo(f)),h=y.next();!h.done;h=y.next()){var g=Lo(h.value,1)[0];"list-item"===e.getNodeType(g)?v++:p=!0}}catch(e){t={error:e}}finally{try{h&&!h.done&&(r=y.return)&&r.call(y)}finally{if(t)throw t.error}}if(p||v<=1)return void n();try{for(var b=ko(Mo(f)),m=b.next();!m.done;m=b.next()){var w=Lo(m.value,2),x=(g=w[0],w[1]),O=g.level;d=void 0===O?0:O;u.setNodes(f,{level:d+1},{at:x})}}catch(t){o={error:t}}finally{try{m&&!m.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}else n()}else n()},f.normalizeNode=function(t){var r=Lo(t,2),n=r[0],i=r[1],a=e.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||u.unwrapNodes(f,{at:i}),o([n,i])},f},menus:[ci,fi],elemsToHtml:[di],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var o=f(t);0===(e=e.filter((function(t){return!!n.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]);var i=function(t){return"ol"===Ui(t.parent())}(o),u=function(t){for(var e=0,r=t.parent(),n=Ui(r);"ul"===n||"ol"===n;)n=Ui(r=r.parent()),e++;return e-1}(o);return{type:"list-item",ordered:i,level:u,children:e}}}]};export{Ki as default};
2
2
  //# sourceMappingURL=index.esm.js.map