var V=Object.assign;var c8=(D0,hl,ot)=>new Promise((We,ne)=>{var cn=zn=>{try{Mn(ot.next(zn))}catch(kr){ne(kr)}},gr=zn=>{try{Mn(ot.throw(zn))}catch(kr){ne(kr)}},Mn=zn=>zn.done?We(zn.value):Promise.resolve(zn.value).then(cn,gr);Mn((ot=ot.apply(D0,hl)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{66247:function(){},3996:function(D0,hl,ot){"use strict";ot.d(hl,{M:function(){return Wmt},o:function(){return Gmt}});var We=ot(67294),ne=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof ot.g!="undefined"?ot.g:typeof self!="undefined"?self:{};function cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gr(t){var e={exports:{}};return t(e,e.exports),e.exports}var Mn,zn,kr=function(t){return t&&t.Math==Math&&t},It=kr(typeof globalThis=="object"&&globalThis)||kr(typeof window=="object"&&window)||kr(typeof self=="object"&&self)||kr(typeof ne=="object"&&ne)||function(){return this}()||Function("return this")(),Go=Function.prototype,xt=Go.apply,Ky=Go.bind,x0=Go.call,A0=typeof Reflect=="object"&&Reflect.apply||(Ky?x0.bind(xt):function(){return x0.apply(xt,arguments)}),xf=Function.prototype,gl=xf.bind,vl=xf.call,qy=gl&&gl.bind(vl),Ae=gl?function(t){return t&&qy(vl,t)}:function(t){return t&&function(){return vl.apply(t,arguments)}},en=function(t){return typeof t=="function"},Kn=function(t){try{return!!t()}catch(e){return!0}},qn=!Kn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Nu=Function.prototype.call,Zn=Nu.bind?Nu.bind(Nu):function(){return Nu.apply(Nu,arguments)},O0={}.propertyIsEnumerable,k0=Object.getOwnPropertyDescriptor,Zy=k0&&!O0.call({1:2},1)?function(t){var e=k0(this,t);return!!e&&e.enumerable}:O0,Af={f:Zy},Br=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Yy=Ae({}.toString),Of=Ae("".slice),xi=function(t){return Of(Yy(t),8,-1)},kf=It.Object,Xy=Ae("".split),B0=Kn(function(){return!kf("z").propertyIsEnumerable(0)})?function(t){return xi(t)=="String"?Xy(t,""):kf(t)}:kf,F0=It.TypeError,Bf=function(t){if(t==null)throw F0("Can't call method on "+t);return t},qr=function(t){return B0(Bf(t))},fn=function(t){return typeof t=="object"?t!==null:en(t)},$n={},Ff=function(t){return en(t)?t:void 0},Ai=function(t,e){return arguments.length<2?Ff($n[t])||Ff(It[t]):$n[t]&&$n[t][e]||It[t]&&It[t][e]},ia=Ae({}.isPrototypeOf),Tf=Ai("navigator","userAgent")||"",Pf=It.process,Lu=It.Deno,T0=Pf&&Pf.versions||Lu&&Lu.version,Oe=T0&&T0.v8;Oe&&(zn=(Mn=Oe.split("."))[0]>0&&Mn[0]<4?1:+(Mn[0]+Mn[1])),!zn&&Tf&&(!(Mn=Tf.match(/Edge\/(\d+)/))||Mn[1]>=74)&&(Mn=Tf.match(/Chrome\/(\d+)/))&&(zn=+Mn[1]);var Vt,pe=zn,kt=!!Object.getOwnPropertySymbols&&!Kn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pe&&pe<41}),N=kt&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ct=It.Object,pt=N?function(t){return typeof t=="symbol"}:function(t){var e=Ai("Symbol");return en(e)&&ia(e.prototype,ct(t))},st=It.String,ht=function(t){try{return st(t)}catch(e){return"Object"}},J=It.TypeError,lt=function(t){if(en(t))return t;throw J(ht(t)+" is not a function")},At=function(t,e){var n=t[e];return n==null?void 0:lt(n)},Wt=It.TypeError,Jt=Object.defineProperty,Ot=It["__core-js_shared__"]||function(t,e){try{Jt(It,t,{value:e,configurable:!0,writable:!0})}catch(n){It[t]=e}return e}("__core-js_shared__",{}),he=gr(function(t){(t.exports=function(e,n){return Ot[e]||(Ot[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Ye=It.Object,dn=function(t){return Ye(Bf(t))},Zr=Ae({}.hasOwnProperty),Bt=Object.hasOwn||function(t,e){return Zr(dn(t),e)},Yn=0,So=Math.random(),Co=Ae(1 .toString),Yr=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Co(++Yn+So,36)},Fr=he("wks"),Xr=It.Symbol,ml=Xr&&Xr.for,Ko=N?Xr:Xr&&Xr.withoutSetter||Yr,je=function(t){if(!Bt(Fr,t)||!kt&&typeof Fr[t]!="string"){var e="Symbol."+t;kt&&Bt(Xr,t)?Fr[t]=Xr[t]:Fr[t]=N&&ml?ml(e):Ko(e)}return Fr[t]},Oi=It.TypeError,yl=je("toPrimitive"),Ru=function(t,e){if(!fn(t)||pt(t))return t;var n,r=At(t,yl);if(r){if(e===void 0&&(e="default"),n=Zn(r,t,e),!fn(n)||pt(n))return n;throw Oi("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&en(a=o.toString)&&!fn(u=Zn(a,o))||en(a=o.valueOf)&&!fn(u=Zn(a,o))||i!=="string"&&en(a=o.toString)&&!fn(u=Zn(a,o)))return u;throw Wt("Can't convert object to primitive value")}(t,e)},vr=function(t){var e=Ru(t,"string");return pt(e)?e:e+""},Mu=It.document,mr=fn(Mu)&&fn(Mu.createElement),aa=function(t){return mr?Mu.createElement(t):{}},ua=!qn&&!Kn(function(){return Object.defineProperty(aa("div"),"a",{get:function(){return 7}}).a!=7}),Jr=Object.getOwnPropertyDescriptor,bl=qn?Jr:function(t,e){if(t=qr(t),e=vr(e),ua)try{return Jr(t,e)}catch(n){}if(Bt(t,e))return Br(!Zn(Af.f,t,e),t[e])},sa={f:bl},wl=/#|\.prototype\./,qo=function(t,e){var n=jf[zu(t)];return n==Fn||n!=Zo&&(en(e)?Kn(e):!!e)},zu=qo.normalize=function(t){return String(t).replace(wl,".").toLowerCase()},jf=qo.data={},Zo=qo.NATIVE="N",Fn=qo.POLYFILL="P",Do=qo,sr=Ae(Ae.bind),ki=function(t,e){return lt(t),e===void 0?t:sr?sr(t,e):function(){return t.apply(e,arguments)}},P0=It.String,$u=It.TypeError,Tr=function(t){if(fn(t))return t;throw $u(P0(t)+" is not an object")},$$=It.TypeError,f8=Object.defineProperty,H$=qn?f8:function(t,e,n){if(Tr(t),e=vr(e),Tr(n),ua)try{return f8(t,e,n)}catch(r){}if("get"in n||"set"in n)throw $$("Accessors not supported");return"value"in n&&(t[e]=n.value),t},la={f:H$},lr=qn?function(t,e,n){return la.f(t,e,Br(1,n))}:function(t,e,n){return t[e]=n,t},U$=sa.f,V$=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return A0(t,this,arguments)};return e.prototype=t.prototype,e},Bi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?It:p?It[c]:(It[c]||{}).prototype,g=f?$n:$n[c]||lr($n,c,{})[c],v=g.prototype;for(o in e)n=!Do(f?o:c+(p?".":"#")+o,t.forced)&&y&&Bt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=U$(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?ki(i,It):t.wrap&&n?V$(i):d&&en(i)?Ae(i):i,(t.sham||i&&i.sham||a&&a.sham)&&lr(s,"sham",!0),lr(g,o,s),d&&(Bt($n,r=c+"Prototype")||lr($n,r,{}),lr($n[r],o,i),t.real&&v&&!v[o]&&lr(v,o,i)))},d8=he("keys"),j0=function(t){return d8[t]||(d8[t]=Yr(t))},W$=!Kn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),p8=j0("IE_PROTO"),Jy=It.Object,G$=Jy.prototype,_0=W$?Jy.getPrototypeOf:function(t){var e=dn(t);if(Bt(e,p8))return e[p8];var n=e.constructor;return en(n)&&e instanceof n?n.prototype:e instanceof Jy?G$:null},K$=It.String,q$=It.TypeError,I0=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ae(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Tr(r),function(i){if(typeof i=="object"||en(i))return i;throw q$("Can't set "+K$(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Z$=Math.ceil,Y$=Math.floor,Qy=function(t){var e=+t;return e!=e||e===0?0:(e>0?Y$:Z$)(e)},X$=Math.max,J$=Math.min,tb=function(t,e){var n=Qy(t);return n<0?X$(n+e,0):J$(n,e)},Q$=Math.min,_f=function(t){return(e=t.length)>0?Q$(Qy(e),9007199254740991):0;var e},h8=function(t){return function(e,n,r){var o,i=qr(e),a=_f(i),u=tb(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},tH={includes:h8(!0),indexOf:h8(!1)},If={},eH=tH.indexOf,g8=Ae([].push),v8=function(t,e){var n,r=qr(t),o=0,i=[];for(n in r)!Bt(If,n)&&Bt(r,n)&&g8(i,n);for(;e.length>o;)Bt(r,n=e[o++])&&(~eH(i,n)||g8(i,n));return i},N0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nH=N0.concat("length","prototype"),rH=Object.getOwnPropertyNames||function(t){return v8(t,nH)},eb={f:rH},L0={f:Object.getOwnPropertySymbols},oH=Ae([].concat),iH=Ai("Reflect","ownKeys")||function(t){var e=eb.f(Tr(t)),n=L0.f;return n?oH(e,n(t)):e},nb=Object.keys||function(t){return v8(t,N0)},aH=qn?Object.defineProperties:function(t,e){Tr(t);for(var n,r=qr(e),o=nb(e),i=o.length,a=0;i>a;)la.f(t,n=o[a++],r[n]);return t},uH=Ai("document","documentElement"),m8=j0("IE_PROTO"),rb=function(){},y8=function(t){return""},b8=function(t){t.write(y8("")),t.close();var e=t.parentWindow.Object;return t=null,e},R0=function(){try{Vt=new ActiveXObject("htmlfile")}catch(r){}var t,e;R0=typeof document!="undefined"?document.domain&&Vt?b8(Vt):((e=aa("iframe")).style.display="none",uH.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(y8("document.F=Object")),t.close(),t.F):b8(Vt);for(var n=N0.length;n--;)delete R0.prototype[N0[n]];return R0()};If[m8]=!0;var Fi=Object.create||function(t,e){var n;return t!==null?(rb.prototype=Tr(t),n=new rb,rb.prototype=null,n[m8]=t):n=R0(),e===void 0?n:aH(n,e)},ob=function(t,e,n){var r=vr(e);r in t?la.f(t,r,Br(0,n)):t[r]=n},sH=It.Array,lH=Math.max,w8=function(t,e,n){for(var r=_f(t),o=tb(e,r),i=tb(n===void 0?r:n,r),a=sH(lH(i-o,0)),u=0;oi;i++)if((u=v(t[i]))&&ia(x8,u))return u;return new M0(!1)}r=function(m,h){var b=arguments.length<2?C8(m):h;if(lt(b))return Tr(Zn(b,m));throw CH(ht(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=Zn(s,r)).done;){try{u=v(l.value)}catch(m){D8(r,"throw",m)}if(typeof u=="object"&&u&&ia(x8,u))return u}return new M0(!1)},AH=It.String,Lf=function(t){if(Nf(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return AH(t)},OH=function(t,e){return t===void 0?arguments.length<2?"":e:Lf(t)},kH=!Kn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Br(1,7)),t.stack!==7)}),BH=je("toStringTag"),z0=It.Error,FH=[].push,Rf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=ia(ub,this);I0?n=I0(new z0(void 0),o?_0(this):ub):(n=o?this:Fi(ub),lr(n,BH,"Error")),lr(n,"message",OH(e,"")),kH&&lr(n,"stack",gH(n.stack,1)),vH(n,r);var i=[];return xH(t,FH,{that:i}),lr(n,"errors",i),n};I0?I0(Rf,z0):function(t,e){for(var n=iH(e),r=la.f,o=sa.f,i=0;i=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Ti.Arguments=Ti.Array;var KH=Ae("".charAt),N8=Ae("".charCodeAt),qH=Ae("".slice),L8=function(t){return function(e,n){var r,o,i=Lf(Bf(e)),a=Qy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=N8(i,a))<55296||r>56319||a+1===u||(o=N8(i,a+1))<56320||o>57343?t?KH(i,a):r:t?qH(i,a,a+2):o-56320+(r-55296<<10)+65536}},ZH={codeAt:L8(!1),charAt:L8(!0)}.charAt,YH=Sl.set,XH=Sl.getterFor("String Iterator");I8(String,"String",function(t){YH(this,{type:"String Iterator",string:Lf(t),index:0})},function(){var t,e=XH(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=ZH(n,r),e.index+=t.length,{value:t,done:!1})});var JH=$n.AggregateError,R8=je("toStringTag");for(var db in{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}){var M8=It[db],pb=M8&&M8.prototype;pb&&Nf(pb)!==R8&&lr(pb,R8,db),Ti[db]=Ti.Array}var fa,W0,QH=JH,G0=function(t){return t&&t.Math==Math&&t},Nt=G0(typeof globalThis=="object"&&globalThis)||G0(typeof window=="object"&&window)||G0(typeof self=="object"&&self)||G0(typeof ne=="object"&&ne)||function(){return this}()||Function("return this")(),Tn=function(t){try{return!!t()}catch(e){return!0}},Yo=!Tn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),zf=Function.prototype.call,Pn=zf.bind?zf.bind(zf):function(){return zf.apply(zf,arguments)},z8={}.propertyIsEnumerable,$8=Object.getOwnPropertyDescriptor,tU=$8&&!z8.call({1:2},1)?function(t){var e=$8(this,t);return!!e&&e.enumerable}:z8,eU={f:tU},da=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},H8=Function.prototype,hb=H8.bind,gb=H8.call,nU=hb&&hb.bind(gb),De=hb?function(t){return t&&nU(gb,t)}:function(t){return t&&function(){return gb.apply(t,arguments)}},rU=De({}.toString),oU=De("".slice),Uu=function(t){return oU(rU(t),8,-1)},vb=Nt.Object,iU=De("".split),U8=Tn(function(){return!vb("z").propertyIsEnumerable(0)})?function(t){return Uu(t)=="String"?iU(t,""):vb(t)}:vb,aU=Nt.TypeError,K0=function(t){if(t==null)throw aU("Can't call method on "+t);return t},Dl=function(t){return U8(K0(t))},pn=function(t){return typeof t=="function"},xo=function(t){return typeof t=="object"?t!==null:pn(t)},uU=function(t){return pn(t)?t:void 0},$f=function(t,e){return arguments.length<2?uU(Nt[t]):Nt[t]&&Nt[t][e]},q0=De({}.isPrototypeOf),mb=$f("navigator","userAgent")||"",V8=Nt.process,W8=Nt.Deno,G8=V8&&V8.versions||W8&&W8.version,K8=G8&&G8.v8;K8&&(W0=(fa=K8.split("."))[0]>0&&fa[0]<4?1:+(fa[0]+fa[1])),!W0&&mb&&(!(fa=mb.match(/Edge\/(\d+)/))||fa[1]>=74)&&(fa=mb.match(/Chrome\/(\d+)/))&&(W0=+fa[1]);var q8=W0,yb=!!Object.getOwnPropertySymbols&&!Tn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q8&&q8<41}),bb=yb&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sU=Nt.Object,wb=bb?function(t){return typeof t=="symbol"}:function(t){var e=$f("Symbol");return pn(e)&&q0(e.prototype,sU(t))},lU=Nt.String,Eb=function(t){try{return lU(t)}catch(e){return"Object"}},cU=Nt.TypeError,Sb=function(t){if(pn(t))return t;throw cU(Eb(t)+" is not a function")},Hf=function(t,e){var n=t[e];return n==null?void 0:Sb(n)},fU=Nt.TypeError,dU=Object.defineProperty,Cb=function(t,e){try{dU(Nt,t,{value:e,configurable:!0,writable:!0})}catch(n){Nt[t]=e}return e},pa=Nt["__core-js_shared__"]||Cb("__core-js_shared__",{}),Db=gr(function(t){(t.exports=function(e,n){return pa[e]||(pa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),pU=Nt.Object,xb=function(t){return pU(K0(t))},hU=De({}.hasOwnProperty),yr=Object.hasOwn||function(t,e){return hU(xb(t),e)},gU=0,vU=Math.random(),mU=De(1 .toString),Z8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+mU(++gU+vU,36)},Uf=Db("wks"),Vu=Nt.Symbol,Y8=Vu&&Vu.for,yU=bb?Vu:Vu&&Vu.withoutSetter||Z8,cr=function(t){if(!yr(Uf,t)||!yb&&typeof Uf[t]!="string"){var e="Symbol."+t;yb&&yr(Vu,t)?Uf[t]=Vu[t]:Uf[t]=bb&&Y8?Y8(e):yU(e)}return Uf[t]},bU=Nt.TypeError,wU=cr("toPrimitive"),EU=function(t,e){if(!xo(t)||wb(t))return t;var n,r=Hf(t,wU);if(r){if(e===void 0&&(e="default"),n=Pn(r,t,e),!xo(n)||wb(n))return n;throw bU("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&pn(a=o.toString)&&!xo(u=Pn(a,o))||pn(a=o.valueOf)&&!xo(u=Pn(a,o))||i!=="string"&&pn(a=o.toString)&&!xo(u=Pn(a,o)))return u;throw fU("Can't convert object to primitive value")}(t,e)},Ab=function(t){var e=EU(t,"string");return wb(e)?e:e+""},Ob=Nt.document,SU=xo(Ob)&&xo(Ob.createElement),kb=function(t){return SU?Ob.createElement(t):{}},X8=!Yo&&!Tn(function(){return Object.defineProperty(kb("div"),"a",{get:function(){return 7}}).a!=7}),J8=Object.getOwnPropertyDescriptor,CU=Yo?J8:function(t,e){if(t=Dl(t),e=Ab(e),X8)try{return J8(t,e)}catch(n){}if(yr(t,e))return da(!Pn(eU.f,t,e),t[e])},Bb={f:CU},DU=Nt.String,xU=Nt.TypeError,Pr=function(t){if(xo(t))return t;throw xU(DU(t)+" is not an object")},AU=Nt.TypeError,Q8=Object.defineProperty,OU=Yo?Q8:function(t,e,n){if(Pr(t),e=Ab(e),Pr(n),X8)try{return Q8(t,e,n)}catch(r){}if("get"in n||"set"in n)throw AU("Accessors not supported");return"value"in n&&(t[e]=n.value),t},xl={f:OU},fr=Yo?function(t,e,n){return xl.f(t,e,da(1,n))}:function(t,e,n){return t[e]=n,t},kU=De(Function.toString);pn(pa.inspectSource)||(pa.inspectSource=function(t){return kU(t)});var Z0,Vf,Y0,Fb=pa.inspectSource,tA=Nt.WeakMap,BU=pn(tA)&&/native code/.test(Fb(tA)),eA=Db("keys"),Tb=function(t){return eA[t]||(eA[t]=Z8(t))},Pb={},jb=Nt.TypeError,FU=Nt.WeakMap;if(BU||pa.state){var Wu=pa.state||(pa.state=new FU),TU=De(Wu.get),nA=De(Wu.has),PU=De(Wu.set);Z0=function(t,e){if(nA(Wu,t))throw new jb("Object already initialized");return e.facade=t,PU(Wu,t,e),e},Vf=function(t){return TU(Wu,t)||{}},Y0=function(t){return nA(Wu,t)}}else{var Al=Tb("state");Pb[Al]=!0,Z0=function(t,e){if(yr(t,Al))throw new jb("Object already initialized");return e.facade=t,fr(t,Al,e),e},Vf=function(t){return yr(t,Al)?t[Al]:{}},Y0=function(t){return yr(t,Al)}}var Gu={set:Z0,get:Vf,has:Y0,enforce:function(t){return Y0(t)?Vf(t):Z0(t,{})},getterFor:function(t){return function(e){var n;if(!xo(e)||(n=Vf(e)).type!==t)throw jb("Incompatible receiver, "+t+" required");return n}}},rA=Function.prototype,jU=Yo&&Object.getOwnPropertyDescriptor,_b=yr(rA,"name"),Ib={EXISTS:_b,PROPER:_b&&function(){}.name==="something",CONFIGURABLE:_b&&(!Yo||Yo&&jU(rA,"name").configurable)},ha=gr(function(t){var e=Ib.CONFIGURABLE,n=Gu.get,r=Gu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;pn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yr(u,"name")||e&&u.name!==d)&&fr(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Nt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:fr(i,a,u)):f?i[a]=u:Cb(a,u)})(Function.prototype,"toString",function(){return pn(this)&&n(this).source||Fb(this)})}),_U=Math.ceil,IU=Math.floor,Nb=function(t){var e=+t;return e!=e||e===0?0:(e>0?IU:_U)(e)},NU=Math.max,LU=Math.min,Lb=function(t,e){var n=Nb(t);return n<0?NU(n+e,0):LU(n,e)},RU=Math.min,oA=function(t){return t>0?RU(Nb(t),9007199254740991):0},X0=function(t){return oA(t.length)},iA=function(t){return function(e,n,r){var o,i=Dl(e),a=X0(i),u=Lb(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},MU={includes:iA(!0),indexOf:iA(!1)}.indexOf,aA=De([].push),uA=function(t,e){var n,r=Dl(t),o=0,i=[];for(n in r)!yr(Pb,n)&&yr(r,n)&&aA(i,n);for(;e.length>o;)yr(r,n=e[o++])&&(~MU(i,n)||aA(i,n));return i},J0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zU=J0.concat("length","prototype"),$U=Object.getOwnPropertyNames||function(t){return uA(t,zU)},HU={f:$U},UU={f:Object.getOwnPropertySymbols},VU=De([].concat),WU=$f("Reflect","ownKeys")||function(t){var e=HU.f(Pr(t)),n=UU.f;return n?VU(e,n(t)):e},sA=function(t,e){for(var n=WU(e),r=xl.f,o=Bb.f,i=0;ia;)xl.f(t,n=o[a++],r[n]);return t},lV=$f("document","documentElement"),cA=Tb("IE_PROTO"),$b=function(){},fA=function(t){return""},dA=function(t){t.write(fA("")),t.close();var e=t.parentWindow.Object;return t=null,e},eg=function(){try{Q0=new ActiveXObject("htmlfile")}catch(r){}var t,e;eg=typeof document!="undefined"?document.domain&&Q0?dA(Q0):((e=kb("iframe")).style.display="none",lV.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(fA("document.F=Object")),t.close(),t.F):dA(Q0);for(var n=J0.length;n--;)delete eg.prototype[J0[n]];return eg()};Pb[cA]=!0;var pA,Hb,Kf=Object.create||function(t,e){var n;return t!==null?($b.prototype=Pr(t),n=new $b,$b.prototype=null,n[cA]=t):n=eg(),e===void 0?n:sV(n,e)},cV=Nt.RegExp,fV=Tn(function(){var t=cV(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),dV=Nt.RegExp,pV=Tn(function(){var t=dV("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),hV=Gu.get,gV=Db("native-string-replace",String.prototype.replace),ng=RegExp.prototype.exec,Ub=ng,vV=De("".charAt),mV=De("".indexOf),yV=De("".replace),Vb=De("".slice),Wb=(Hb=/b*/g,Pn(ng,pA=/a/,"a"),Pn(ng,Hb,"a"),pA.lastIndex!==0||Hb.lastIndex!==0),hA=aV.BROKEN_CARET,Gb=/()??/.exec("")[1]!==void 0;(Wb||Gb||hA||fV||pV)&&(Ub=function(t){var e,n,r,o,i,a,u,s=this,l=hV(s),c=Ku(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Pn(Ub,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=hA&&s.sticky,y=Pn(rV,s),g=s.source,v=0,m=c;if(d&&(y=yV(y,"y",""),mV(y,"g")===-1&&(y+="g"),m=Vb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&vV(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Gb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),Wb&&(r=s.lastIndex),o=Pn(ng,d?n:s,m),d?o?(o.input=Vb(o.input,v),o[0]=Vb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Wb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Gb&&o&&o.length>1&&Pn(gV,o[0],n,function(){for(i=1;i=u?t?"":void 0:(r=gA(i,a))<55296||r>56319||a+1===u||(o=gA(i,a+1))<56320||o>57343?t?wV(i,a):r:t?EV(i,a,a+2):o-56320+(r-55296<<10)+65536}},mA={codeAt:vA(!1),charAt:vA(!0)},SV=mA.charAt,CV=function(t,e,n){return e+(n?SV(t,e).length:1)},DV=Nt.TypeError,yA=function(t,e){var n=t.exec;if(pn(n)){var r=Pn(n,t,e);return r!==null&&Pr(r),r}if(Uu(t)==="RegExp")return Pn(rg,t,e);throw DV("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=cr(t),i=!Tn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Tn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[bV]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=De(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=De(l),g=c.exec;return g===rg||g===Kb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ha(String.prototype,t,s[0]),ha(Kb,o,s[1])}r&&fr(Kb[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=K0(this),i=r==null?void 0:Hf(r,t);return i?Pn(i,r,o):new RegExp(r)[t](Ku(o))},function(r){var o=Pr(this),i=Ku(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return yA(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=yA(o,i))!==null;){var f=Ku(s[0]);l[c]=f,f===""&&(o.lastIndex=CV(i,oA(o.lastIndex),u)),c++}return c===0?null:l}]}),Gf({global:!0},{globalThis:Nt});var xV=!Tn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),bA=Tb("IE_PROTO"),qb=Nt.Object,AV=qb.prototype,qf=xV?qb.getPrototypeOf:function(t){var e=xb(t);if(yr(e,bA))return e[bA];var n=e.constructor;return pn(n)&&e instanceof n?n.prototype:e instanceof qb?AV:null},OV=Nt.String,kV=Nt.TypeError,Ol=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=De(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Pr(r),function(i){if(typeof i=="object"||pn(i))return i;throw kV("Can't set "+OV(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),BV=Nt.Array,FV=Math.max,TV=De("".replace),PV=De("".split),jV=De([].join),Zb=String(Error("zxcasd").stack),wA=/\n\s*at [^:]*:[^\n]*/,_V=wA.test(Zb),IV=/@[^\n]*\n/.test(Zb)&&!/zxcasd/.test(Zb),NV=function(t,e){if(typeof t!="string")return t;if(_V)for(;e--;)t=TV(t,wA,"");else if(IV)return jV(function(n,r,o){for(var i,a,u,s,l=X0(n),c=Lb(r,l),f=Lb(o===void 0?l:o,l),p=BV(FV(f-c,0)),d=0;ci;i++)if((u=v(t[i]))&&q0(xA,u))return u;return new og(!1)}r=function(m,h){var b=arguments.length<2?CA(m):h;if(Sb(b))return Pr(Pn(b,m));throw $V(Eb(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=Pn(s,r)).done;){try{u=v(l.value)}catch(m){DA(r,"throw",m)}if(typeof u=="object"&&u&&q0(xA,u))return u}return new og(!1)},VV=function(t,e){return t===void 0?arguments.length<2?"":e:Ku(t)},WV=!Tn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",da(1,7)),t.stack!==7)}),GV=cr("toStringTag"),ig=Nt.Error,KV=[].push,Zf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=q0(Yb,this);Ol?n=Ol(new ig(void 0),o?qf(this):Yb):(n=o?this:Kf(Yb),fr(n,GV,"Error")),fr(n,"message",VV(e,"")),WV&&fr(n,"stack",NV(n.stack,1)),LV(n,r);var i=[];return UV(t,KV,{that:i}),fr(n,"errors",i),n};Ol?Ol(Zf,ig):sA(Zf,ig);var Yb=Zf.prototype=Kf(ig.prototype,{constructor:da(1,Zf),message:da(1,""),name:da(1,"AggregateError")});Gf({global:!0},{AggregateError:Zf});var Xb=cr("unscopables"),Jb=Array.prototype;Jb[Xb]==null&&xl.f(Jb,Xb,{configurable:!0,value:Kf(null)});var qu,AA,OA,Qb=function(t){Jb[Xb][t]=!0},t2=cr("iterator"),kA=!1;[].keys&&("next"in(OA=[].keys())?(AA=qf(qf(OA)))!==Object.prototype&&(qu=AA):kA=!0);var qV=qu==null||Tn(function(){var t={};return qu[t2].call(t)!==t});qV&&(qu={}),pn(qu[t2])||ha(qu,t2,function(){return this});var e2={IteratorPrototype:qu,BUGGY_SAFARI_ITERATORS:kA},ZV=xl.f,BA=cr("toStringTag"),FA=function(t,e,n){t&&!yr(t=n?t:t.prototype,BA)&&ZV(t,BA,{configurable:!0,value:e})},YV=e2.IteratorPrototype,XV=function(){return this},JV=Ib.PROPER,QV=Ib.CONFIGURABLE,TA=e2.IteratorPrototype,ag=e2.BUGGY_SAFARI_ITERATORS,Yf=cr("iterator"),tW=function(){return this},PA=function(t,e,n,r,o,i,a){(function(m,h,b,w){var S=h+" Iterator";m.prototype=Kf(YV,{next:da(+!w,b)}),FA(m,S,!1),kl[S]=XV})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!ag&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Yf]||d["@@iterator"]||o&&d[o],g=!ag&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=qf(v.call(new t)))!==Object.prototype&&u.next&&(qf(u)!==TA&&(Ol?Ol(u,TA):pn(u[Yf])||ha(u,Yf,tW)),FA(u,f,!0)),JV&&o=="values"&&y&&y.name!=="values"&&(QV?fr(d,"name","values"):(p=!0,g=function(){return Pn(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ag||p||!(l in d))&&ha(d,l,s[l]);else Gf({target:e,proto:!0,forced:ag||p},s);return d[Yf]!==g&&ha(d,Yf,g,{name:o}),kl[e]=g,s},eW=Gu.set,nW=Gu.getterFor("Array Iterator"),Xf=PA(Array,"Array",function(t,e){eW(this,{type:"Array Iterator",target:Dl(t),index:0,kind:e})},function(){var t=nW(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");kl.Arguments=kl.Array,Qb("keys"),Qb("values"),Qb("entries");var rW=mA.charAt,oW=Gu.set,iW=Gu.getterFor("String Iterator");PA(String,"String",function(t){oW(this,{type:"String Iterator",string:Ku(t),index:0})},function(){var t,e=iW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=rW(n,r),e.index+=t.length,{value:t,done:!1})});var n2,ug={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},r2=kb("span").classList,jA=r2&&r2.constructor&&r2.constructor.prototype,_A=jA===Object.prototype?void 0:jA,o2=cr("iterator"),IA=cr("toStringTag"),i2=Xf.values,NA=function(t,e){if(t){if(t[o2]!==i2)try{fr(t,o2,i2)}catch(r){t[o2]=i2}if(t[IA]||fr(t,IA,e),ug[e]){for(var n in Xf)if(t[n]!==Xf[n])try{fr(t,n,Xf[n])}catch(r){t[n]=Xf[n]}}}};for(var a2 in ug)NA(Nt[a2]&&Nt[a2].prototype,a2);NA(_A,"DOMTokenList"),typeof ot.g=="undefined"?("ActiveXObject"in window&&console.error(`\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668 Sorry, wangEditor V5+ versions do not support IE browser.`),LA(),RA()):ot.g&&((n2=ot.g.navigator)===null||n2===void 0?void 0:n2.userAgent.match("QQBrowser"))&&(LA(),RA());function LA(){typeof globalThis=="undefined"&&(window.globalThis=window)}function RA(){QH===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var MA,sg=Array.isArray||function(t){return xi(t)=="Array"},zA=function(){},aW=[],$A=Ai("Reflect","construct"),u2=/^\s*(?:class|function)\b/,uW=Ae(u2.exec),sW=!u2.exec(zA),Jf=function(t){if(!en(t))return!1;try{return $A(zA,aW,t),!0}catch(e){return!1}},lW=!$A||Kn(function(){var t;return Jf(Jf.call)||!Jf(Object)||!Jf(function(){t=!0})||t})?function(t){if(!en(t))return!1;switch(Nf(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sW||!!uW(u2,A8(t))}:Jf,cW=je("species"),HA=It.Array,UA=function(t,e){return new(function(n){var r;return sg(n)&&(r=n.constructor,(lW(r)&&(r===HA||sg(r.prototype))||fn(r)&&(r=r[cW])===null)&&(r=void 0)),r===void 0?HA:r}(t))(e===0?0:e)},fW=je("species"),VA=je("isConcatSpreadable"),WA=It.TypeError,dW=pe>=51||!Kn(function(){var t=[];return t[VA]=!1,t.concat()[0]!==t}),pW=(MA="concat",pe>=51||!Kn(function(){var t=[];return(t.constructor={})[fW]=function(){return{foo:1}},t[MA](Boolean).foo!==1})),hW=function(t){if(!fn(t))return!1;var e=t[VA];return e!==void 0?!!e:sg(t)};Bi({target:"Array",proto:!0,forced:!dW||!pW},{concat:function(t){var e,n,r,o,i,a=dn(this),u=UA(a,0),s=0;for(e=-1,r=arguments.length;e9007199254740991)throw WA("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw WA("Maximum allowed index exceeded");ob(u,s++,i)}return u.length=s,u}});var GA=eb.f,KA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qA={f:function(t){return KA&&xi(t)=="Window"?function(e){try{return GA(e)}catch(n){return w8(KA)}}(t):GA(qr(t))}},gW=Ae([].slice),s2={f:je},vW=la.f,nn=function(t){var e=$n.Symbol||($n.Symbol={});Bt(e,t)||vW(e,t,{value:s2.f(t)})},ZA=Ae([].push),ga=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=dn(s),g=B0(y),v=ki(l,c),m=_f(g),h=0,b=f||UA,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:ZA(w,p)}else switch(t){case 4:return!1;case 7:ZA(w,p)}return i?-1:r||o?o:w}},lg={forEach:ga(0),map:ga(1),filter:ga(2),some:ga(3),every:ga(4),find:ga(5),findIndex:ga(6),filterReject:ga(7)}.forEach,br=j0("hidden"),YA=je("toPrimitive"),mW=Sl.set,XA=Sl.getterFor("Symbol"),Ao=Object.prototype,va=It.Symbol,ma=va&&va.prototype,JA=It.TypeError,l2=It.QObject,Qf=Ai("JSON","stringify"),QA=sa.f,ya=la.f,t7=qA.f,yW=Af.f,e7=Ae([].push),Pi=he("symbols"),td=he("op-symbols"),c2=he("string-to-symbol-registry"),f2=he("symbol-to-string-registry"),bW=he("wks"),d2=!l2||!l2.prototype||!l2.prototype.findChild,p2=qn&&Kn(function(){return Fi(ya({},"a",{get:function(){return ya(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=QA(Ao,e);r&&delete Ao[e],ya(t,e,n),r&&t!==Ao&&ya(Ao,e,r)}:ya,h2=function(t,e){var n=Pi[t]=Fi(ma);return mW(n,{type:"Symbol",tag:t,description:e}),qn||(n.description=e),n},cg=function(t,e,n){t===Ao&&cg(td,e,n),Tr(t);var r=vr(e);return Tr(n),Bt(Pi,r)?(n.enumerable?(Bt(t,br)&&t[br][r]&&(t[br][r]=!1),n=Fi(n,{enumerable:Br(0,!1)})):(Bt(t,br)||ya(t,br,Br(1,{})),t[br][r]=!0),p2(t,r,n)):ya(t,r,n)},n7=function(t,e){Tr(t);var n=qr(e),r=nb(n).concat(g2(n));return lg(r,function(o){qn&&!Zn(r7,n,o)||cg(t,o,n[o])}),t},r7=function(t){var e=vr(t),n=Zn(yW,this,e);return!(this===Ao&&Bt(Pi,e)&&!Bt(td,e))&&(!(n||!Bt(this,e)||!Bt(Pi,e)||Bt(this,br)&&this[br][e])||n)},o7=function(t,e){var n=qr(t),r=vr(e);if(n!==Ao||!Bt(Pi,r)||Bt(td,r)){var o=QA(n,r);return!o||!Bt(Pi,r)||Bt(n,br)&&n[br][r]||(o.enumerable=!0),o}},i7=function(t){var e=t7(qr(t)),n=[];return lg(e,function(r){Bt(Pi,r)||Bt(If,r)||e7(n,r)}),n},g2=function(t){var e=t===Ao,n=t7(e?td:qr(t)),r=[];return lg(n,function(o){!Bt(Pi,o)||e&&!Bt(Ao,o)||e7(r,Pi[o])}),r};if(kt||(ma=(va=function(){if(ia(ma,this))throw JA("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Lf(arguments[0]):void 0,e=Yr(t),n=function(r){this===Ao&&Zn(n,td,r),Bt(this,br)&&Bt(this[br],e)&&(this[br][e]=!1),p2(this,e,Br(1,r))};return qn&&d2&&p2(Ao,e,{configurable:!0,set:n}),h2(e,t)}).prototype,Cl(ma,"toString",function(){return XA(this).tag}),Cl(va,"withoutSetter",function(t){return h2(Yr(t),t)}),Af.f=r7,la.f=cg,sa.f=o7,eb.f=qA.f=i7,L0.f=g2,s2.f=function(t){return h2(je(t),t)},qn&&ya(ma,"description",{configurable:!0,get:function(){return XA(this).description}})),Bi({global:!0,wrap:!0,forced:!kt,sham:!kt},{Symbol:va}),lg(nb(bW),function(t){nn(t)}),Bi({target:"Symbol",stat:!0,forced:!kt},{for:function(t){var e=Lf(t);if(Bt(c2,e))return c2[e];var n=va(e);return c2[e]=n,f2[n]=e,n},keyFor:function(t){if(!pt(t))throw JA(t+" is not a symbol");if(Bt(f2,t))return f2[t]},useSetter:function(){d2=!0},useSimple:function(){d2=!1}}),Bi({target:"Object",stat:!0,forced:!kt,sham:!qn},{create:function(t,e){return e===void 0?Fi(t):n7(Fi(t),e)},defineProperty:cg,defineProperties:n7,getOwnPropertyDescriptor:o7}),Bi({target:"Object",stat:!0,forced:!kt},{getOwnPropertyNames:i7,getOwnPropertySymbols:g2}),Bi({target:"Object",stat:!0,forced:Kn(function(){L0.f(1)})},{getOwnPropertySymbols:function(t){return L0.f(dn(t))}}),Qf){var wW=!kt||Kn(function(){var t=va();return Qf([t])!="[null]"||Qf({a:t})!="{}"||Qf(Object(t))!="{}"});Bi({target:"JSON",stat:!0,forced:wW},{stringify:function(t,e,n){var r=gW(arguments),o=e;if((fn(e)||t!==void 0)&&!pt(t))return sg(e)||(e=function(i,a){if(en(o)&&(a=Zn(o,this,i,a)),!pt(a))return a}),r[1]=e,A0(Qf,null,r)}})}if(!ma[YA]){var EW=ma.valueOf;Cl(ma,YA,function(t){return Zn(EW,this)})}U0(va,"Symbol"),If[br]=!0,nn("asyncIterator"),nn("hasInstance"),nn("isConcatSpreadable"),nn("iterator"),nn("match"),nn("matchAll"),nn("replace"),nn("search"),nn("species"),nn("split"),nn("toPrimitive"),nn("toStringTag"),nn("unscopables"),U0(It.JSON,"JSON",!0);var SW=$n.Symbol;nn("asyncDispose"),nn("dispose"),nn("matcher"),nn("metadata"),nn("observable"),nn("patternMatch"),nn("replaceAll");var fg=SW,CW=s2.f("iterator"),DW=gr(function(t){function e(n){return typeof fg=="function"&&typeof CW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof fg=="function"&&r.constructor===fg&&r!==fg.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),xW=cn(DW),a7=Bb.f,AW=Tn(function(){a7(1)});if(Gf({target:"Object",stat:!0,forced:!Yo||AW,sham:!Yo},{getOwnPropertyDescriptor:function(t,e){return a7(Dl(t),e)}}),(typeof ot.g=="undefined"?"undefined":xW(ot.g))==="object"){var OW=Object.getOwnPropertyDescriptor(ot.g,"window");ot.g.window&&!OW.set||(ot.g.window=ot.g,ot.g.requestAnimationFrame=function(){},ot.g.navigator={userAgent:""},ot.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},ot.g.btoa=function(){},ot.g.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),ot.g.document!=null&&ot.g.document.getElementsByTagName==null&&(ot.g.document.getElementsByTagName=function(){return[]})}/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function u7(t){return Object.prototype.toString.call(t)==="[object Object]"}function Xn(t){var e,n;return u7(t)!==!1&&((e=t.constructor)===void 0||u7(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Oo(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:m2(t)?2:y2(t)?3:0}function v2(t,e){return Bl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function s7(t,e,n){var r=Bl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function m2(t){return TW&&t instanceof Map}function y2(t){return PW&&t instanceof Set}function Xu(t){return t.o||t.t}function b2(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=_W(t);delete e[jr];for(var n=F2(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=kW),Object.freeze(t),e&&ed(t,function(n,r){return w2(r,!0)},!0)),t}function kW(){Oo(2)}function E2(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ji(t){var e=IW[t];return e||Oo(18,t),e}function l7(){return nd}function S2(t,e){e&&(ji("Patches"),t.u=[],t.s=[],t.v=e)}function dg(t){C2(t),t.p.forEach(BW),t.p=null}function C2(t){t===nd&&(nd=t.l)}function c7(t){return nd={p:[],l:nd,h:t,m:!0,_:0}}function BW(t){var e=t[jr];e.i===0||e.i===1?e.j():e.O=!0}function D2(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ji("ES5").S(e,t,r),r?(n[jr].P&&(dg(e),Oo(4)),Yu(t)&&(t=pg(e,t),e.l||hg(e,t)),e.u&&ji("Patches").M(n[jr],t,e.u,e.s)):t=pg(e,n,[]),dg(e),e.u&&e.v(e.u,e.s),t!==v7?t:void 0}function pg(t,e,n){if(E2(e))return e;var r=e[jr];if(!r)return ed(e,function(i,a){return f7(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return hg(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=b2(r.k):r.o;ed(r.i===3?new Set(o):o,function(i,a){return f7(t,r,o,i,a,n)}),hg(t,o,!1),n&&t.u&&ji("Patches").R(r,n,t.u,t.s)}return r.o}function f7(t,e,n,r,o,i){if(Zu(o)){var a=pg(t,o,i&&e&&e.i!==3&&!v2(e.D,r)?i.concat(r):void 0);if(s7(n,r,a),!Zu(a))return;t.m=!1}if(Yu(o)&&!E2(o)){if(!t.h.F&&t._<1)return;pg(t,o),e&&e.A.l||hg(t,o)}}function hg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&w2(e,n)}function x2(t,e){var n=t[jr];return(n?Xu(n):t)[e]}function d7(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function A2(t){t.P||(t.P=!0,t.l&&A2(t.l))}function O2(t){t.o||(t.o=b2(t.t))}function k2(t,e,n){var r=m2(e)?ji("MapSet").N(e,n):y2(e)?ji("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:l7(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=gg;a&&(s=[u],l=vg);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):ji("ES5").J(e,n);return(n?n.A:l7()).p.push(r),r}function FW(t){return Zu(t)||Oo(22,t),function e(n){if(!Yu(n))return n;var r,o=n[jr],i=Bl(n);if(o){if(!o.P&&(o.i<4||!ji("ES5").K(o)))return o.t;o.I=!0,r=p7(n,i),o.I=!1}else r=p7(n,i);return ed(r,function(a,u){o&&function(s,l){return Bl(s)===2?s.get(l):s[l]}(o.t,a)===u||s7(r,a,e(u))}),i===3?new Set(r):r}(t)}function p7(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return b2(t)}var h7,nd,B2=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",TW=typeof Map!="undefined",PW=typeof Set!="undefined",g7=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",v7=B2?Symbol.for("immer-nothing"):((h7={})["immer-nothing"]=!0,h7),m7=B2?Symbol.for("immer-draftable"):"__$immer_draftable",jr=B2?Symbol.for("immer-state"):"__$immer_state",jW=""+Object.prototype.constructor,F2=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,_W=Object.getOwnPropertyDescriptors||function(t){var e={};return F2(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},IW={},gg={get:function(t,e){if(e===jr)return t;var n=Xu(t);if(!v2(n,e))return function(o,i,a){var u,s=d7(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!Yu(r)?r:r===x2(t.t,e)?(O2(t),t.o[e]=k2(t.A.h,r,t)):r},has:function(t,e){return e in Xu(t)},ownKeys:function(t){return Reflect.ownKeys(Xu(t))},set:function(t,e,n){var r=d7(Xu(t),e);if(r==null?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=x2(Xu(t),e),i=o==null?void 0:o[jr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||v2(t.t,e)))return!0;O2(t),A2(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return x2(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,O2(t),A2(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Xu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Oo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Oo(12)}},vg={};ed(gg,function(t,e){vg[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vg.deleteProperty=function(t,e){return gg.deleteProperty.call(this,t[0],e)},vg.set=function(t,e,n){return gg.set.call(this,t[0],e,n,t[0])};var NW=function(){function t(n){var r=this;this.g=g7,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var y=this;d===void 0&&(d=u);for(var g=arguments.length,v=Array(g>1?g-1:0),m=1;m1?l-1:0),f=1;f=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ji("Patches").$;return Zu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),_r=new NW,mg=_r.produce;_r.produceWithPatches.bind(_r),_r.setAutoFreeze.bind(_r),_r.setUseProxies.bind(_r),_r.applyPatches.bind(_r);var y7=_r.createDraft.bind(_r),b7=_r.finishDraft.bind(_r);function Xo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yg=new WeakMap,rd=new WeakMap,w7=new WeakMap,E7=new WeakMap,S7=new WeakMap,C7=new WeakMap;function D7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function bg(t){for(var e=1;e{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))pG.transform(n,e);for(var r of E.pointRefs(t))hG.transform(r,e);for(var o of E.rangeRefs(t))vG.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=yg.get(t)||[],l=RW(e);for(var c of s)u(_.transform(c,e));for(var f of l)u(f);yg.set(t,a),I.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),rd.get(t)||(rd.set(t,!0),Promise.resolve().then(()=>{rd.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(M.isExpanded(r))I.setNodes(t,{[e]:n},{match:ft.isText,split:!0});else{var o=bg(bg({},E.marks(t)||{}),{},{[e]:n});t.marks=o,rd.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&M.isCollapsed(n)&&I.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&M.isCollapsed(n)&&I.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&M.isExpanded(n)&&I.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?et.fragment(t,e):[]},insertBreak:()=>{I.splitNodes(t,{always:!0})},insertFragment:e=>{I.insertFragment(t,e)},insertNode:e=>{I.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=bg({text:e},r);I.insertNodes(t,o)}else I.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!ft.isText(n))if(bt.isElement(n)&&n.children.length===0)I.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&bt.isElement(n)&&(t.isInline(n)||n.children.length===0||ft.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a{var{selection:n}=t;if(n)if(M.isExpanded(n))I.unsetNodes(t,e,{match:ft.isText,split:!0});else{var r=bg({},E.marks(t)||{});delete r[e],t.marks=r,rd.get(t)||t.onChange()}}};return t},RW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return _.levels(e);case"insert_node":var{node:n,path:r}=t,o=_.levels(r),i=ft.isText(n)?[]:Array.from(et.nodes(n),w=>{var[,S]=w;return r.concat(S)});return[...o,...i];case"merge_node":var{path:a}=t;return[..._.ancestors(a),_.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(_.equals(u,s))return[];var l=[],c=[];for(var f of _.ancestors(u)){var p=_.transform(f,t);l.push(p)}for(var d of _.ancestors(s)){var y=_.transform(d,t);c.push(y)}var g=c[c.length-1],v=s[s.length-1],m=g.concat(v);return[...l,...c,m];case"remove_node":var{path:h}=t;return[..._.ancestors(h)];case"split_node":var{path:b}=t;return[..._.levels(b),_.next(b)];default:return[]}};function _i(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Mt,T2=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?UW(t):t,o=Mt.None,i=Mt.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=eG(s,l);if([o,i]=n?[i,c]:[c,o],Fl(o,Mt.ZWJ)&&Fl(i,Mt.ExtPict)&&!iG(n?t.substring(0,a):t.substring(0,t.length-a))||Fl(o,Mt.RI)&&Fl(i,Mt.RI)&&!(u=u!==null?!u:!!n||uG(t.substring(0,t.length-a)))||o!==Mt.None&&i!==Mt.None&&rG(o,i))break;a+=s.length}return a||1},MW=/\s/,zW=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,$W=/['\u2018\u2019]/,P2=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},HW=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(MW.test(e))return!1;if($W.test(e)){var o=T2(n,r),[i,a]=P2(n,o,r);if(t(i,a,r))return!0}return!zW.test(e)},UW=function*(t){for(var e=t.length-1,n=0;nt>=55296&&t<=56319,WW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(Mt||(Mt={}));var GW=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,KW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,qW=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,ZW=/^[\u1100-\u115F\uA960-\uA97C]$/,YW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,XW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,JW=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,QW=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,tG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,eG=(t,e)=>{var n=Mt.Any;return t.search(GW)!==-1&&(n|=Mt.Extend),e===8205&&(n|=Mt.ZWJ),e>=127462&&e<=127487&&(n|=Mt.RI),t.search(KW)!==-1&&(n|=Mt.Prepend),t.search(qW)!==-1&&(n|=Mt.SpacingMark),t.search(ZW)!==-1&&(n|=Mt.L),t.search(YW)!==-1&&(n|=Mt.V),t.search(XW)!==-1&&(n|=Mt.T),t.search(JW)!==-1&&(n|=Mt.LV),t.search(QW)!==-1&&(n|=Mt.LVT),t.search(tG)!==-1&&(n|=Mt.ExtPict),n};function Fl(t,e){return(t&e)!=0}var nG=[[Mt.L,Mt.L|Mt.V|Mt.LV|Mt.LVT],[Mt.LV|Mt.V,Mt.V|Mt.T],[Mt.LVT|Mt.T,Mt.T],[Mt.Any,Mt.Extend|Mt.ZWJ],[Mt.Any,Mt.SpacingMark],[Mt.Prepend,Mt.Any],[Mt.ZWJ,Mt.ExtPict],[Mt.RI,Mt.RI]];function rG(t,e){return nG.findIndex(n=>Fl(t,n[0])&&Fl(e,n[1]))===-1}var oG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,iG=t=>t.search(oG)!==-1,aG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,uG=t=>{var e=t.match(aG);return e!==null&&e[0].length/2%2==1},x7=t=>Xn(t)&&et.isNodeList(t.children)&&!E.isEditor(t),bt={isAncestor:t=>Xn(t)&&et.isNodeList(t.children),isElement:x7,isElementList:t=>Array.isArray(t)&&t.every(e=>bt.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return x7(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},sG=["text"],lG=["text"];function A7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Tl(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!ft.isText(s)&&!_.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,Tl(Tl({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,Tl(Tl({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return et.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>ft.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>ft.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>bt.isElement(e)&&!t.isInline(e),isEditor(t){if(!Xn(t))return!1;var e=O7.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Xn(t.marks))&&(t.selection===null||M.isRange(t.selection))&&et.isNodeList(t.children)&&ba.isOperationList(t.operations);return O7.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return Ut.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&ft.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>bt.isElement(e)&&t.isInline(e),isNormalizing(t){var e=w7.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return Ut.equals(e,r)},isVoid:(t,e)=>bt.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[et.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of et.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(M.isExpanded(n)){var[r]=E.nodes(t,{match:ft.isText});if(r){var[o]=r;return _i(o,sG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:ft.isText}),l=E.above(t,{match:d=>E.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;_.isAncestor(p,f)&&(u=c)}}return _i(u,lG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(_.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(_.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[et.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(cG.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=et.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),y=[];for(var[g,v]of d){var m=p&&_.compare(v,p[1])===0;if(r!=="highest"||!m){if(u(g,v))if(r==="lowest"&&m)p=[g,v];else{var h=r==="lowest"?p:[g,v];h&&(o?y.push(h):yield h),p=[g,v]}else if(o&&!m&&ft.isText(g))return}}r==="lowest"&&p&&(o?y.push(p):yield p),o&&(yield*y)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>yg.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(et.nodes(t),i=>{var[,a]=i;return a});yg.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(et.has(t,i)){var a=E.node(t,i),[u,s]=a;bt.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(` Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state. `));var f=r(t).pop();if(et.has(t,f)){var p=E.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=_.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(_.isPath(e)){if(o==="start"){var[,i]=et.first(t,e);e=i}else if(o==="end"){var[,a]=et.last(t,e);e=a}}return M.isRange(e)&&(e=o==="start"?M.start(e):o==="end"?M.end(e):_.common(e.anchor.path,e.focus.path)),Ut.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>et.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=E7.get(t);return e||(e=new Set,E7.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(_.isPath(e)){var o;if(r==="end"){var[,i]=et.last(t,e);o=i}else{var[,a]=et.first(t,e);o=a}var u=et.get(t,o);if(!ft.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(M.isRange(e)){var[s,l]=M.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=S7.get(t);return e||(e=new Set,S7.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=M.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,y=0;for(var[g,v]of E.nodes(t,{at:n,reverse:o,voids:i})){if(bt.isElement(g)){if(!i&&t.isVoid(g)){yield E.start(t,v);continue}if(t.isInline(g))continue;if(E.hasInlines(t,g)){var m=_.isAncestor(v,s.path)?s:E.end(t,v),h=_.isAncestor(v,u.path)?u:E.start(t,v);f=E.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(ft.isText(g)){var b=_.equals(v,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,y=l.offset):(d=g.text.length,y=o?d:0),(b||c||r==="offset")&&(yield{path:v,offset:y},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=P2(f,p,o)[1]}if(y=o?y-p:y+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:y}}}}}function w(S,D,C){return D==="character"?T2(S,C):D==="word"?function(O){for(var T=arguments.length>1&&arguments[1]!==void 0&&arguments[1],L=0,z=!1;O.length>0;){var $=T2(O,T),[Y,G]=P2(O,$,T);if(HW(Y,G,T))z=!0,L+=$;else{if(z)break;L+=$}O=G}return L}(S,C):D==="line"||D==="block"?S.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(_.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(_.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>M.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=C7.get(t);return e||(e=new Set,C7.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){w7.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(t,e),[i,a]=M.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:ft.isText,voids:r})){var c=s.text;_.equals(l,a.path)&&(c=c.slice(0,a.offset)),_.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=M.edges(e);if(o.offset!==0||i.offset!==0||M.isCollapsed(e))return e;var a=E.above(t,{at:i,match:p=>E.isBlock(t,p)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:ft.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||_.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,Tl(Tl({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},Kmt={isLocation:t=>_.isPath(t)||Ut.isPoint(t)||M.isRange(t)},cG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(_.isPath)},fG=["children"],dG=["text"],k7=new WeakMap,et={ancestor(t,e){var n=et.get(t,e);if(ft.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of _.ancestors(e,n)){var o=[et.ancestor(t,r),r];yield o}},child(t,e){if(ft.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=et.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of et.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of et.nodes(t,e))bt.isElement(n)&&(yield[n,r])},extractProps:t=>bt.isAncestor(t)?_i(t,fG):_i(t,dG),first(t,e){for(var n=e.slice(),r=et.get(t,n);r&&!ft.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(ft.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=mg({children:t.children},r=>{var[o,i]=M.edges(e),a=et.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!M.includes(e,d)}});for(var[,u]of a){if(!M.includes(e,u)){var s=et.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(_.equals(u,i.path)){var c=et.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(_.equals(u,o.path)){var f=et.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;rft.isText(t)||bt.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=k7.get(t);if(e!==void 0)return e;var n=t.every(r=>et.isNode(r));return k7.set(t,n),n},last(t,e){for(var n=e.slice(),r=et.get(t,n);r&&!ft.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=et.get(t,e);if(!ft.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of _.levels(e,n)){var o=et.get(t,r);yield[o,r]}},matches:(t,e)=>bt.isElement(t)&&bt.isElementProps(e)&&bt.matches(t,e)||ft.isText(t)&&ft.isTextProps(e)&&ft.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?_.isBefore(u,i):_.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ft.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=_.next(u);if(et.has(t,l)){u=l,s=et.get(t,u);continue}}r&&u[u.length-1]!==0?(u=_.previous(u),s=et.get(t,u)):(u=_.parent(u),s=et.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;_.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=et.get(t,u)}},parent(t,e){var n=_.parent(e),r=et.get(t,n);if(ft.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>ft.isText(t)?t.text:t.children.map(et.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of et.nodes(t,e))ft.isText(n)&&(yield[n,r])}};function B7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function hn(t){for(var e=1;eba.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Xn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return _.isPath(t.path)&&et.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&_.isPath(t.path);case"merge_node":return typeof t.position=="number"&&_.isPath(t.path)&&Xn(t.properties);case"move_node":return _.isPath(t.path)&&_.isPath(t.newPath);case"set_node":return _.isPath(t.path)&&Xn(t.properties)&&Xn(t.newProperties);case"set_selection":return t.properties===null&&M.isRange(t.newProperties)||t.newProperties===null&&M.isRange(t.properties)||Xn(t.properties)&&Xn(t.newProperties);case"split_node":return _.isPath(t.path)&&typeof t.position=="number"&&Xn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ba.isOperation(e)),isSelectionOperation:t=>ba.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ba.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return hn(hn({},t),{},{type:"remove_node"});case"insert_text":return hn(hn({},t),{},{type:"remove_text"});case"merge_node":return hn(hn({},t),{},{type:"split_node",path:_.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(_.equals(e,n))return t;if(_.isSibling(n,e))return hn(hn({},t),{},{path:e,newPath:n});var r=_.transform(n,t),o=_.transform(_.next(n),t);return hn(hn({},t),{},{path:r,newPath:o});case"remove_node":return hn(hn({},t),{},{type:"insert_node"});case"remove_text":return hn(hn({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return hn(hn({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return hn(hn({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return hn(hn({},t),{},{type:"merge_node",path:_.next(t.path)})}}},_={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=_.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;re[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return _.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return _.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return _.equals(r,o)&&it.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>_.compare(t,e)===1,isAncestor:(t,e)=>t.length_.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&_.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&_.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&_.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&_.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&_.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!_.isAncestor(e,t)&&!_.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return mg(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(_.equals(i,r)||_.endsBefore(i,r)||_.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(_.equals(a,r)||_.isAncestor(a,r))return null;_.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;_.equals(u,r)||_.endsBefore(u,r)?r[u.length-1]-=1:_.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(_.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else _.endsBefore(l,r)?r[l.length-1]+=1:_.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(_.equals(f,p))return;if(_.isAncestor(f,r)||_.equals(f,r)){var d=p.slice();return _.endsBefore(f,p)&&f.lengthe.offset?1:0:n},isAfter:(t,e)=>Ut.compare(t,e)===1,isBefore:(t,e)=>Ut.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&_.equals(t.path,e.path),isPoint:t=>Xn(t)&&typeof t.offset=="number"&&_.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return mg(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=_.transform(i,e,n);break;case"insert_text":_.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":_.equals(e.path,i)&&(r.offset+=e.position),r.path=_.transform(i,e,n);break;case"remove_text":_.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(_.equals(e.path,i)||_.isAncestor(e.path,i))return null;r.path=_.transform(i,e,n);break;case"split_node":if(_.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return M.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=M.edges(t);return e},equals:(t,e)=>Ut.equals(t.anchor,e.anchor)&&Ut.equals(t.focus,e.focus),includes(t,e){if(M.isRange(e)){if(M.includes(t,e.anchor)||M.includes(t,e.focus))return!0;var[n,r]=M.edges(t),[o,i]=M.edges(e);return Ut.isBefore(n,o)&&Ut.isAfter(r,i)}var[a,u]=M.edges(t),s=!1,l=!1;return Ut.isPoint(e)?(s=Ut.compare(e,a)>=0,l=Ut.compare(e,u)<=0):(s=_.compare(e,a.path)>=0,l=_.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=_i(t,gG),[r,o]=M.edges(t),[i,a]=M.edges(e),u=Ut.isBefore(r,i)?i:r,s=Ut.isBefore(o,a)?o:a;return Ut.isBefore(s,u)?null:function(l){for(var c=1;c!M.isCollapsed(t),isForward:t=>!M.isBackward(t),isRange:t=>Xn(t)&&Ut.isPoint(t.anchor)&&Ut.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=M.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return mg(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=M.isCollapsed(r);M.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?M.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Ut.transform(r.anchor,e,{affinity:o}),l=Ut.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},vG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=M.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},j7=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Xn(r)&&Xn(o)){if(!j7(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return _i(i,mG)}return j7(r?o(t):t,r?o(e):e)},isText:t=>Xn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>ft.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Ii({},t)];for(var r of e){var o=_i(r,yG),[i,a]=M.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offsetf){var v=i.offset-f;d=Ii(Ii({},p),{},{text:p.text.slice(0,v)}),p=Ii(Ii({},p),{},{text:p.text.slice(v)})}Object.assign(p,o),d&&u.push(d),u.push(p),y&&u.push(y)}}n=u}return n}};function I7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function od(t){for(var e=1;e{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=et.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of M.points(o))o[f]=Ut.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:y}=i;if(y.length===0)break;var g=et.leaf(r,p),v=g.text.slice(0,d),m=g.text.slice(d);if(g.text=v+y+m,o)for(var[h,b]of M.points(o))o[b]=Ut.transform(h,i);break;case"merge_node":var{path:w}=i,S=et.get(r,w),D=_.previous(w),C=et.get(r,D),O=et.parent(r,w),T=w[w.length-1];if(ft.isText(S)&&ft.isText(C))C.text+=S.text;else{if(ft.isText(S)||ft.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(S," ").concat(C));C.children.push(...S.children)}if(O.children.splice(T,1),o)for(var[L,z]of M.points(o))o[z]=Ut.transform(L,i);break;case"move_node":var{path:$,newPath:Y}=i;if(_.isAncestor($,Y))throw new Error("Cannot move a path [".concat($,"] to new path [").concat(Y,"] because the destination is inside itself."));var G=et.get(r,$),K=et.parent(r,$),Z=$[$.length-1];K.children.splice(Z,1);var ut=_.transform($,i),yt=et.get(r,_.parent(ut)),mt=ut[ut.length-1];if(yt.children.splice(mt,0,G),o)for(var[gt,B]of M.points(o))o[B]=Ut.transform(gt,i);break;case"remove_node":var{path:x}=i,j=x[x.length-1];if(et.parent(r,x).children.splice(j,1),o)for(var[U,X]of M.points(o)){var W=Ut.transform(U,i);if(o!=null&&W!=null)o[X]=W;else{var dt=void 0,Dt=void 0;for(var[Tt,Rt]of et.texts(r)){if(_.compare(Rt,x)!==-1){Dt=[Tt,Rt];break}dt=[Tt,Rt]}var q=!1;dt&&Dt&&(q=_.equals(Dt[1],x)?!_.hasPrevious(Dt[1]):_.common(dt[1],x).length<_.common(Dt[1],x).length),dt&&!q?(U.path=dt[1],U.offset=dt[0].text.length):Dt?(U.path=Dt[1],U.offset=0):o=null}}break;case"remove_text":var{path:te,offset:$t,text:St}=i;if(St.length===0)break;var Ht=et.leaf(r,te),Qe=Ht.text.slice(0,$t),ue=Ht.text.slice($t+St.length);if(Ht.text=Qe+ue,o)for(var[Ee,Me]of M.points(o))o[Me]=Ut.transform(Ee,i);break;case"set_node":var{path:rr,properties:oe,newProperties:Ar}=i;if(rr.length===0)throw new Error("Cannot set properties on the root node!");var $o=et.get(r,rr);for(var wi in Ar){if(wi==="children"||wi==="text")throw new Error('Cannot set the "'.concat(wi,'" property of nodes!'));var wf=Ar[wi];wf==null?delete $o[wi]:$o[wi]=wf}for(var cl in oe)Ar.hasOwnProperty(cl)||delete $o[cl];break;case"set_selection":var{newProperties:Ho}=i;if(Ho==null)o=Ho;else{if(o==null){if(!M.isRange(Ho))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Ho)," when there is no current selection."));o=od({},Ho)}for(var Ei in Ho){var Qi=Ho[Ei];if(Qi==null){if(Ei==="anchor"||Ei==="focus")throw new Error('Cannot remove the "'.concat(Ei,'" selection property'));delete o[Ei]}else o[Ei]=Qi}}break;case"split_node":var{path:or,position:ir,properties:ar}=i;if(or.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(or,"] because the root node cannot be split."));var pr,Rn=et.get(r,or),wo=et.parent(r,or),w0=or[or.length-1];if(ft.isText(Rn)){var Tu=Rn.text.slice(0,ir),ta=Rn.text.slice(ir);Rn.text=Tu,pr=od(od({},ar),{},{text:ta})}else{var Ef=Rn.children.slice(0,ir),fl=Rn.children.slice(ir);Rn.children=Ef,pr=od(od({},ar),{},{children:fl})}if(wo.children.splice(w0+1,0,pr),o)for(var[Sf,Uo]of M.points(o))o[Uo]=Ut.transform(Sf,i)}return o})(t,n,e)}finally{t.children=b7(t.children),t.selection=n?Zu(n)?b7(n):n:null}}},wG=["text"],EG=["children"];function N7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function L7(t){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(et.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),M.isRange(a))if(r||(a=E.unhangRange(t,a)),M.isCollapsed(a))a=a.anchor;else{var[,c]=M.edges(a),f=E.pointRef(t,c);I.delete(t,{at:a}),a=f.unref()}if(Ut.isPoint(a)){u==null&&(u=ft.isText(l)?D=>ft.isText(D):t.isInline(l)?D=>ft.isText(D)||E.isInline(t,D):D=>E.isBlock(t,D));var[p]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,y=E.pathRef(t,d),g=E.isEnd(t,a,d);I.splitNodes(t,{at:a,match:u,mode:i,voids:o});var v=y.unref();a=g?_.next(v):v}var m=_.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:m})){for(var b of e){var w=m.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=_.next(a)}if(a=_.previous(a),s){var S=E.end(t,a);S&&I.select(t,S)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=_.isPath(n)?Pl(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(t,_.parent(l)),[f,p]=c,d=l[l.length-1],{length:y}=f.children;if(y===1){var g=_.next(p);I.moveNodes(t,{at:l,to:g,voids:o}),I.removeNodes(t,{at:p,voids:o})}else if(d===0)I.moveNodes(t,{at:l,to:p,voids:o});else if(d===y-1){var v=_.next(p);I.moveNodes(t,{at:l,to:v,voids:o})}else{var m=_.next(l),h=_.next(p);I.splitNodes(t,{at:m,voids:o}),I.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(_.isPath(r)){var[u]=E.parent(t,r);n=T=>u.children.includes(T)}else n=T=>E.isBlock(t,T);if(!o&&M.isRange(r)&&(r=E.unhangRange(t,r)),M.isRange(r))if(M.isCollapsed(r))r=r.anchor;else{var[,s]=M.edges(r),l=E.pointRef(t,s);I.delete(t,{at:r}),r=l.unref(),e.at==null&&I.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[y,g]=f;if(d.length!==0&&g.length!==0){var v,m,h=_.next(g),b=_.common(d,g),w=_.isSibling(d,g),S=Array.from(E.levels(t,{at:d}),T=>{var[L]=T;return L}).slice(b.length).slice(0,-1),D=E.above(t,{at:d,mode:"highest",match:T=>S.includes(T)&&R7(t,T)}),C=D&&E.pathRef(t,D[1]);if(ft.isText(p)&&ft.isText(y)){var O=_i(p,wG);m=y.text.length,v=O}else{if(!bt.isElement(p)||!bt.isElement(y))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(y)));O=_i(p,EG),m=y.children.length,v=O}w||I.moveNodes(t,{at:d,to:h,voids:i}),C&&I.removeNodes(t,{at:C.current,voids:i}),bt.isElement(y)&&E.isEmpty(t,y)||ft.isText(y)&&y.text===""&&g[g.length-1]!==0?I.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:v}),C&&C.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=_.isPath(r)?Pl(t,r):d=>E.isBlock(t,d));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,y]=d;return E.pathRef(t,y)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&_.isSibling(p,f)&&_.isAfter(p,f)&&(u.current=_.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=_.isPath(i)?Pl(t,i):p=>E.isBlock(t,p)),!n&&M.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return E.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=_.isPath(o)?Pl(t,o):S=>E.isBlock(t,S)),!i&&M.isRange(o)&&(o=E.unhangRange(t,o)),u&&M.isRange(o)){if(M.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=M.edges(o),p=a==="lowest"?"lowest":"highest",d=E.isEnd(t,f,f.path);I.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var y=E.isStart(t,c,c.path);I.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!y}),o=l.unref(),n.at==null&&I.select(t,o)}for(var[g,v]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(v.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(m[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:v,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=G=>E.isBlock(t,G)),M.isRange(i)&&(i=CG(t,i)),_.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=G=>G===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[p]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=E.void(t,{at:i,mode:"highest"});if(!r&&d){var[y,g]=d;if(bt.isElement(y)&&t.isInline(y)){var v=E.after(t,g);if(!v){var m=_.next(g);I.insertNodes(t,{text:""},{at:m,voids:r}),v=E.point(t,m)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=p,S=i.path.slice(0,b),D=a===0?i.offset:i.path[b]+0;for(var[C,O]of E.levels(t,{at:S,reverse:!0,voids:r})){var T=!1;if(O.length2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;I.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=_.isPath(i)?Pl(t,i):p=>E.isBlock(t,p)),_.isPath(i)&&(i=E.range(t,i));var u=M.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return E.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[y]=E.node(t,d),g=E.range(t,d);r&&u&&(g=M.intersection(u.current,g)),I.liftNodes(t,{at:g,match:v=>bt.isAncestor(y)&&y.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=_.isPath(u)?Pl(t,u):t.isInline(e)?v=>E.isInline(t,v)||ft.isText(v):v=>E.isBlock(t,v)),o&&M.isRange(u)){var[s,l]=M.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});I.splitNodes(t,{at:l,match:a,voids:i}),I.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&I.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?v=>E.isBlock(t,v):v=>E.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=M.isRange(u)?M.intersection(u,E.range(t,p)):u;if(d){var y=Array.from(E.nodes(t,{at:d,match:a,mode:r,voids:i}));if(y.length>0){var g=function(){var[v]=y,m=y[y.length-1],[,h]=v,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=_.equals(h,b)?_.parent(h):_.common(h,b),S=E.range(t,h,b),D=E.node(t,w),[C]=D,O=w.length+1,T=_.next(b.slice(0,O)),L=L7(L7({},e),{},{children:[]});I.insertNodes(t,L,{at:T,voids:i}),I.moveNodes(t,{at:S,match:z=>bt.isAncestor(C)&&C.children.includes(z),to:T.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},R7=(t,e)=>{if(bt.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&R7(t,n.children[0])}return!E.isEditor(e)},CG=(t,e)=>{if(M.isCollapsed(e))return e.anchor;var[,n]=M.edges(e),r=E.pointRef(t,n);return I.delete(t,{at:e}),r.unref()},Pl=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function M7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function z7(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")I.select(t,r.anchor);else if(n==="focus")I.select(t,r.focus);else if(n==="start"){var[o]=M.edges(r);I.select(t,o)}else if(n==="end"){var[,i]=M.edges(r);I.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=M.isBackward(n)?"focus":"anchor"),a==="end"&&(a=M.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?E.before(t,s,l):E.after(t,s,l);p&&(c.focus=p)}I.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)I.setSelection(t,e);else{if(!M.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=M.isBackward(r)?"focus":"anchor"),o==="end"&&(o=M.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;I.setSelection(t,{[o==="anchor"?"anchor":"focus"]:z7(z7({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Ut.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Ut.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},xG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(M.isRange(a)&&M.isCollapsed(a)&&(a=a.anchor),Ut.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(_.isPath(a))I.removeNodes(t,{at:a,voids:i});else if(!M.isCollapsed(a)){if(!u){var[,f]=M.edges(a),p=E.end(t,[]);Ut.equals(f,p)||(a=E.unhangRange(t,a,{voids:i}))}var[d,y]=M.edges(a),g=E.above(t,{match:Dt=>E.isBlock(t,Dt),at:d,voids:i}),v=E.above(t,{match:Dt=>E.isBlock(t,Dt),at:y,voids:i}),m=g&&v&&!_.equals(g[1],v[1]),h=_.equals(d.path,y.path),b=i?null:E.void(t,{at:d,mode:"highest"}),w=i?null:E.void(t,{at:y,mode:"highest"});if(b){var S=E.before(t,d);S&&g&&_.isAncestor(g[1],S.path)&&(d=S)}if(w){var D=E.after(t,y);D&&v&&_.isAncestor(v[1],D.path)&&(y=D)}var C,O=[];for(var T of E.nodes(t,{at:a,voids:i})){var[L,z]=T;C&&_.compare(z,C)===0||(!i&&E.isVoid(t,L)||!_.isCommon(z,d.path)&&!_.isCommon(z,y.path))&&(O.push(T),C=z)}var $=Array.from(O,Dt=>{var[,Tt]=Dt;return E.pathRef(t,Tt)}),Y=E.pointRef(t,d),G=E.pointRef(t,y);if(!h&&!b){var K=Y.current,[Z]=E.leaf(t,K),{path:ut}=K,{offset:yt}=d,mt=Z.text.slice(yt);mt.length>0&&t.apply({type:"remove_text",path:ut,offset:yt,text:mt})}for(var gt of $){var B=gt.unref();I.removeNodes(t,{at:B,voids:i})}if(!w){var x=G.current,[j]=E.leaf(t,x),{path:U}=x,X=h?d.offset:0,W=j.text.slice(X,y.offset);W.length>0&&t.apply({type:"remove_text",path:U,offset:X,text:W})}!h&&m&&G.current&&Y.current&&I.mergeNodes(t,{at:G.current,hanging:!0,voids:i});var dt=n?Y.unref()||G.unref():G.unref()||Y.unref();e.at==null&&dt&&I.select(t,dt)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(M.isRange(i))if(r||(i=E.unhangRange(t,i)),M.isCollapsed(i))i=i.anchor;else{var[,a]=M.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);I.delete(t,{at:i}),i=u.unref()}else _.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:x=>E.isInline(t,x),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:x=>E.isBlock(t,x),at:i,voids:o}),[,f]=c,p=E.isStart(t,i,f),d=E.isEnd(t,i,f),y=p&&d,g=!p||p&&d,v=!d,[,m]=et.first({children:e},[]),[,h]=et.last({children:e},[]),b=[],w=x=>{var[j,U]=x;return U.length!==0&&(!!y||!(g&&_.isAncestor(U,m)&&bt.isElement(j)&&!t.isVoid(j)&&!t.isInline(j))&&!(v&&_.isAncestor(U,h)&&bt.isElement(j)&&!t.isVoid(j)&&!t.isInline(j)))};for(var S of et.nodes({children:e},{pass:w}))w(S)&&b.push(S);var D=[],C=[],O=[],T=!0,L=!1;for(var[z]of b)bt.isElement(z)&&!t.isInline(z)?(T=!1,L=!0,C.push(z)):T?D.push(z):O.push(z);var[$]=E.nodes(t,{at:i,match:x=>ft.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),[,Y]=$,G=E.isStart(t,i,Y),K=E.isEnd(t,i,Y),Z=E.pathRef(t,d?_.next(f):f),ut=E.pathRef(t,K?_.next(Y):Y),yt=E.pathRef(t,f);I.splitNodes(t,{at:i,match:x=>L?E.isBlock(t,x):ft.isText(x)||E.isInline(t,x),mode:L?"lowest":"highest",voids:o});var mt=E.pathRef(t,!G||G&&K?_.next(Y):Y);if(I.insertNodes(t,D,{at:mt.current,match:x=>ft.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),y&&C.length&&I.delete(t,{at:yt.unref(),voids:o}),I.insertNodes(t,C,{at:Z.current,match:x=>E.isBlock(t,x),mode:"lowest",voids:o}),I.insertNodes(t,O,{at:ut.current,match:x=>ft.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),!n.at){var gt;gt=O.length>0?_.previous(ut.current):C.length>0?_.previous(Z.current):_.previous(mt.current);var B=E.end(t,gt);I.select(t,B)}mt.unref(),Z.unref(),ut.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(_.isPath(o)&&(o=E.range(t,o)),M.isRange(o))if(M.isCollapsed(o))o=o.anchor;else{var i=M.end(o);if(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);I.delete(t,{at:o,voids:r}),o=a.unref(),I.setSelection(t,{anchor:o,focus:o})}if(r||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function $7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function wg(t){for(var e=1;e-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}(t.length)&&!J7(t)}function J7(t){var e=Q7(t)?id.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function Q7(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function t9(t){return!!t&&typeof t=="object"}function JG(t){return t?IG(t,function(e){return V2(e)?qG(e):YG(e)}(t)):[]}var e9=function(t){if(!t)return[];if(V2(t))return function(n){return typeof n=="string"||!X7(n)&&t9(n)&&id.call(n)=="[object String]"}(t)?RG(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o0&&W2(t[n],e[n])})}var r9={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ud(){var t=typeof document!="undefined"?document:{};return W2(t,r9),t}var QG={document:r9,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout=="undefined"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout!="undefined"&&clearTimeout(t)}};function es(){var t=typeof window!="undefined"?window:{};return W2(t,QG),t}function G2(t){return G2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},G2(t)}function Cg(t,e){return Cg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Cg(t,e)}function tK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function K2(t,e,n){return K2=tK()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Cg(u,i.prototype),u},K2.apply(null,arguments)}function q2(t){var e=typeof Map=="function"?new Map:void 0;return q2=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return K2(n,arguments,G2(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Cg(r,n)},q2(t)}var wa=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(q2(Array));function Dg(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,Dg(n)):e.push(n)}),e}function o9(t,e){return Array.prototype.filter.call(t,e)}function k(t,e){var n=es(),r=ud(),o=[];if(!e&&t instanceof wa)return t;if(!t)return new wa(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("0}).length>0}function Qr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Jo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r=0;else i.value=t}return this}function Qo(){for(var t=arguments.length,e=new Array(t),n=0;n=0;d-=1){var y=p[d];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1))}}return this}function Ag(){var t=es();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Og(){var t=es();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function a9(){if(this.length>0){var t=es(),e=ud(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Ll(){for(var t=0;t=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof wa)for(n=0;n-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?d9.call(e):"";return n=="[object Function]"||n==nK}(t)}function dK(t){return Y2(t)?uK(t):cK(t)}function pK(t){return t}var X2=function(t,e){return(g9(t)?oK:sK)(t,typeof e=="function"?e:pK)};let v9=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var hK=/^\s+|\s+$/g,gK=/^[-+]0x[0-9a-f]+$/i,vK=/^0b[01]+$/i,mK=/^0o[0-7]+$/i,yK=parseInt,bK=typeof ne=="object"&&ne&&ne.Object===Object&&ne,wK=typeof self=="object"&&self&&self.Object===Object&&self,EK=bK||wK||Function("return this")(),SK=Object.prototype.toString,CK=Math.max,DK=Math.min,J2=function(){return EK.Date.now()};function xK(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,S=o;return r=o=void 0,l=b,a=t.apply(S,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=J2();if(g(b))return m(b);u=setTimeout(v,function(w){var S=e-(w-s);return f?DK(S,i-(w-l)):S}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=J2(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=m9(e)||0,_g(n)&&(c=!!n.leading,i=(f="maxWait"in n)?CK(m9(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(J2())},h}function _g(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function m9(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&SK.call(r)=="[object Symbol]"}(t))return NaN;if(_g(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=_g(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(hK,"");var n=vK.test(t);return n||mK.test(t)?yK(t.slice(2),n?2:8):gK.test(t)?NaN:+t}var ns=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return _g(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),xK(t,e,{leading:r,maxWait:e,trailing:o})};const AK={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function sd(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const Q2=Array.isArray;function Ig(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function tw(t){return t===void 0}function Ir(t){return t!==void 0}const y9=sd("",{},[],void 0,void 0);function ld(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function OK(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const kK=["create","update","remove","destroy","pre","post"];function BK(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:AK;for(const f of kK)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),y=d?"."+d.split(" ").join("."):"";return sd(r.tagName(f).toLowerCase()+p+y,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,y;let g,v=f.data;if(v!==void 0){const b=(d=v.hook)===null||d===void 0?void 0:d.init;Ir(b)&&(b(f),v=f.data)}const m=f.children,h=f.sel;if(h==="!")tw(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),S=b>0?b:h.length,D=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(S,D)):h,O=f.elm=Ir(v)&&Ir(g=v.ns)?r.createElementNS(g,C,v):r.createElement(C,v);for(S0&&O.setAttribute("class",h.slice(D+1).replace(/\./g," ")),g=0;gut?(G=T[gt+1]==null?null:T[gt+1].elm,u(C,G,T,Z,gt,L)):l(C,O,K,ut))}(w,S,D,d):Ir(D)?(Ir(f.text)&&r.setTextContent(w,""),u(w,null,D,0,D.length-1,d)):Ir(S)?l(w,S,0,S.length-1):Ir(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(Ir(S)&&l(w,S,0,S.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,y,g;const v=[];for(d=0;d=r?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u1;b&&(h=h.slice(0,-1));var w=G9(h),S=uw[w];if(h.length>1&&!S&&!V9[h]&&!sw[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&S||(s?l.key=w:l.which=lq(h)),S&&(l[S]=!b||null)}}catch(D){y=!0,g=D}finally{try{!d&&m.return&&m.return()}finally{if(y)throw g}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function lq(t){return t=G9(t),sw[t]||t.toUpperCase().charCodeAt(0)}function G9(t){return t=t.toLowerCase(),t=V9[t]||t}var cq=W9,lw=function(t,e){return W9(t,{byKey:!0},e)},fq=/^\s+|\s+$/g,dq=/^[-+]0x[0-9a-f]+$/i,pq=/^0b[01]+$/i,hq=/^0o[0-7]+$/i,gq=parseInt,vq=typeof ne=="object"&&ne&&ne.Object===Object&&ne,mq=typeof self=="object"&&self&&self.Object===Object&&self,yq=vq||mq||Function("return this")(),bq=Object.prototype.toString,wq=Math.max,Eq=Math.min,cw=function(){return yq.Date.now()};function fw(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function K9(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&bq.call(r)=="[object Symbol]"}(t))return NaN;if(fw(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=fw(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(fq,"");var n=pq.test(t);return n||hq.test(t)?gq(t.slice(2),n?2:8):dq.test(t)?NaN:+t}var Wl,q9=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,S=o;return r=o=void 0,l=b,a=t.apply(S,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=cw();if(g(b))return m(b);u=setTimeout(v,function(w){var S=e-(w-s);return f?Eq(S,i-(w-l)):S}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=cw(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=K9(e)||0,fw(n)&&(c=!!n.leading,i=(f="maxWait"in n)?wq(K9(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(cw())},h},Z9=gr(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",D="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",L="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",Y=/\w*$/,G=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,Z={};Z[o]=Z["[object Array]"]=Z[h]=Z[b]=Z[i]=Z[a]=Z[w]=Z[S]=Z[D]=Z[C]=Z[O]=Z[l]=Z[c]=Z[f]=Z[d]=Z[y]=Z[g]=Z[v]=Z[T]=Z[L]=Z[z]=Z[$]=!0,Z["[object Error]"]=Z[u]=Z[m]=!1;var ut=typeof ne=="object"&&ne&&ne.Object===Object&&ne,yt=typeof self=="object"&&self&&self.Object===Object&&self,mt=ut||yt||Function("return this")(),gt=e&&!e.nodeType&&e,B=gt&&t&&!t.nodeType&&t,x=B&&B.exports===gt;function j(F,H){return F.set(H[0],H[1]),F}function U(F,H){return F.add(H),F}function X(F,H,rt,vt){var re=-1,Ne=F?F.length:0;for(vt&&Ne&&(rt=F[++re]);++re-1},Eo.prototype.set=function(F,H){var rt=this.__data__,vt=Kr(rt,F);return vt<0?rt.push([F,H]):rt[vt][1]=H,this},ea.prototype.clear=function(){this.__data__={hash:new Uo,map:new(or||Eo),string:new Uo}},ea.prototype.delete=function(F){return ra(this,F).delete(F)},ea.prototype.get=function(F){return ra(this,F).get(F)},ea.prototype.has=function(F){return ra(this,F).has(F)},ea.prototype.set=function(F,H){return ra(this,F).set(F,H),this},Vo.prototype.clear=function(){this.__data__=new Eo},Vo.prototype.delete=function(F){return this.__data__.delete(F)},Vo.prototype.get=function(F){return this.__data__.get(F)},Vo.prototype.has=function(F){return this.__data__.has(F)},Vo.prototype.set=function(F,H){var rt=this.__data__;if(rt instanceof Eo){var vt=rt.__data__;if(!or||vt.length<199)return vt.push([F,H]),this;rt=this.__data__=new ea(vt)}return rt.set(F,H),this};var S0=cl?Dt(cl,Object):function(){return[]},Ci=function(F){return ue.call(F)};function My(F,H){return!!(H=H==null?r:H)&&(typeof F=="number"||K.test(F))&&F>-1&&F%1==0&&F-1&&H%1==0&&H<=r}(F.length)&&!Ct(F)}var tt=Ho||function(){return!1};function Ct(F){var H=Se(F)?ue.call(F):"";return H==u||H==s}function Se(F){var H=typeof F;return!!F&&(H=="object"||H=="function")}function Xt(F){return R(F)?Pu(F):function(H){if(!ju(H))return Ei(H);var rt=[];for(var vt in Object(H))Qe.call(H,vt)&&vt!="constructor"&&rt.push(vt);return rt}(F)}t.exports=function(F){return E0(F,!0,!0)}});function Y9(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Sq=0;function Cq(t){return"__private_"+Sq+++"_"+t}function Dq(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),ae===1?0:1},Array.isArray(t)?t.forEach(Y9(this,Wl)[Wl],this):Y9(this,Wl)[Wl](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return X9(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return X9(n,e)}});function xq(t){if(t==null||!t.strings)return;const e=this.locale;this.locale=V(V({},e),{strings:V(V({},e.strings),t.strings)}),this.locale.pluralize=t.pluralize||e.pluralize}var Q9=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],y=Object.keys(e),g=0,v=y.length;gcrypto.getRandomValues(new Uint8Array(t)),eO=(t,e,n)=>{let r=(2<{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var kq={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>eO(t,e,tO),customRandom:eO,urlAlphabet:Oq,random:tO},dw=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function nO(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}nO.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e=2}return e?n(e.split(";")[0]):n},Tq=0;function Pq(t){return"__private_"+Tq+++"_"+t}var pw=Pq("publish");class rO{constructor(){Object.defineProperty(this,pw,{value:jq}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n=V({},this.state),r=V(V({},this.state),e);this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,pw)[pw](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function jq(){for(var t=arguments.length,e=new Array(t),n=0;n{r(...e)})}rO.VERSION="2.0.3";var oO=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},iO={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function aO(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var _q=function(t){if(t==null&&(t=typeof navigator!="undefined"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function hw(t){return t<10?`0${t}`:t.toString()}var Mg=function(){const t=new Date;return`${hw(t.getHours())}:${hw(t.getMinutes())}:${hw(t.getSeconds())}`},uO={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;nr,onBeforeUpload:r=>r,store:new rO,logger:Rq,infoTimeout:5e3};if(this.opts=V(V(V({},n),e),{restrictions:V(V({},n.restrictions),e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Mq),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ns(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:_q(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:V({},this.opts.meta),info:[],recoveredState:null}),wt(this,cd)[cd]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),wt(this,mw)[mw]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can\u2019t set state for ${e} (the file could have been removed)`);this.setState({files:V(V({},this.getState().files),{[e]:V(V({},this.getState().files[e]),n)})})}i18nInit(){const e=new J9([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts=V(V(V({},this.opts),e),{restrictions:V(V({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n=V({},this.getState().files),r={};Object.keys(n).forEach(o=>{const i=V({},n[o]);i.progress=V(V({},i.progress),e),r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){wt(this,rs)[rs].add(e)}removePreProcessor(e){return wt(this,rs)[rs].delete(e)}addPostProcessor(e){wt(this,Li)[Li].add(e)}removePostProcessor(e){return wt(this,Li)[Li].delete(e)}addUploader(e){wt(this,os)[os].add(e)}removeUploader(e){return wt(this,os)[os].delete(e)}setMeta(e){const n=V(V({},this.getState().meta),e),r=V({},this.getState().files);Object.keys(r).forEach(o=>{r[o]=V(V({},r[o]),{meta:V(V({},r[o].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r=V({},this.getState().files);if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o=V(V({},r[e].meta),n);r[e]=V(V({},r[e]),{meta:o}),this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(y=>{let{progress:g}=y;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(y=>!y.progress.uploadStarted),u=o.filter(y=>y.progress.uploadStarted||y.progress.preprocess||y.progress.postprocess),s=o.filter(y=>y.progress.uploadStarted),l=o.filter(y=>y.isPaused),c=o.filter(y=>y.progress.uploadComplete),f=o.filter(y=>y.error),p=i.filter(y=>!y.isPaused),d=o.filter(y=>y.progress.preprocess||y.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(y=>y.isGhost)}}validateRestrictions(e,n){try{return wt(this,fd)[fd](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){wt(this,pd)[pd](e);const{files:n}=this.getState();let r=wt(this,hd)[hd](n,e);return n[r.id]&&n[r.id].isGhost&&(r=V(V({},n[r.id]),{data:e.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:V(V({},n),{[r.id]:r})}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),wt(this,gd)[gd](),r.id}addFiles(e){wt(this,pd)[pd]();const n=V({},this.getState().files),r=[],o=[];for(let i=0;i{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name} id: ${r[i].id} type: ${r[i].type}`)}),r.length>0&&wt(this,gd)[gd](),o.length>0){let i=`Multiple errors occurred while adding files: `;if(o.forEach(a=>{i+=` * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i=V({},r),a=V({},o),u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]=V(V({},o[f]),{fileIDs:p}):delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e=V({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=V(V({},e[n]),{isPaused:!0});e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=V({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=V(V({},e[n]),{isPaused:!1,error:null});e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=V({},this.getState().files),n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i=V(V({},e[o]),{isPaused:!1,error:null});e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=wt(this,Ri)[Ri](n,{forceAllowNewUpload:!0});return wt(this,Mi)[Mi](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=wt(this,Ri)[Ri]([e],{forceAllowNewUpload:!0});return wt(this,Mi)[Mi](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:V(V({},this.getFile(e.id).progress),{bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in wt(this,Hn)[Hn]?wt(this,Hn)[Hn][r.type].push(r):wt(this,Hn)[Hn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(wt(this,Hn)[Hn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[lO](e){return wt(this,Hn)[Hn][e]}iteratePlugins(e){Object.values(wt(this,Hn)[Hn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=wt(this,Hn)[Hn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:V(V({},this.getState().plugins),{[e.id]:void 0})};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),wt(this,cd)[cd](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",wt(this,ko)[ko]),window.removeEventListener("offline",wt(this,ko)[ko]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?wt(this,Mi)[Mi](e):(wt(this,is)[is](e),Promise.reject(new Error("Nonexistent upload")))}[cO](){return wt(this,Ri)[Ri](...arguments)}addResultData(e,n){if(!wt(this,yw)[yw](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o=V(V({},r[e]),{result:V(V({},r[e].result),n)});this.setState({currentUploads:V(V({},r),{[e]:o})})}upload(){var e;(e=wt(this,Hn)[Hn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{wt(this,gw)[gw](n),wt(this,vw)[vw](n)}).catch(o=>{wt(this,Dn)[Dn](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=wt(this,Ri)[Ri](a);return wt(this,Mi)[Mi](u)}).catch(o=>{wt(this,Dn)[Dn](o,{showInformer:!1})}))}}function $q(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new ti(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&Fq(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new ti(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new ti(this.i18n("exceedsSize",{size:dw(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new ti(this.i18n("exceedsSize",{size:dw(n),file:t.name}));if(r&&t.size!=null&&t.size{const r=this.getFile(n);return wt(this,dd)[dd](r)});if(e.length)throw new zq(e,`${this.i18n("missingRequiredMetaField")}`)}function Wq(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function Gq(t){const{allowNewUpload:e}=this.getState();e===!1&&wt(this,Dn)[Dn](new ti(this.i18n("noMoreFilesAllowed")),{file:t})}function Kq(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=oO(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in iO?iO[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=oO(r).extension,i=Boolean(e.isRemote),a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${aO(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${aO(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}(V(V({},e),{type:n}));if(this.checkIfFileAlreadyExists(a)){const f=new ti(this.i18n("noDuplicates",{fileName:r}));wt(this,Dn)[Dn](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:V(V({},this.getState().meta),u),type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?wt(this,Dn)[Dn](new ti("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);wt(this,fd)[fd](l,f)}catch(f){wt(this,Dn)[Dn](f,{file:l})}return l}function qq(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function Zq(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),wt(this,Dn)[Dn](o,{throwErr:!1})}else wt(this,Dn)[Dn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:V(V({},r),{postprocess:wt(this,Li)[Li].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:V(V({},this.getFile(e.id).progress),{preprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=V({},this.getState().files);n[e.id]=V(V({},n[e.id]),{progress:V({},n[e.id].progress)}),delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:V(V({},this.getState().files[e.id].progress),{postprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=V({},this.getState().files);n[e.id]=V(V({},n[e.id]),{progress:V({},n[e.id].progress)}),delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&wt(this,dd)[dd](e)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",wt(this,ko)[ko]),window.addEventListener("offline",wt(this,ko)[ko]),setTimeout(wt(this,ko)[ko],3e3))}function Yq(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Lq();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:V(V({},o),{[i]:{fileIDs:t,step:0,result:{}}})}),i}function Xq(t){const{currentUploads:e}=this.getState();return e[t]}function Jq(t){const e=V({},this.getState().currentUploads);delete e[t],this.setState({currentUploads:e})}function Qq(t){return c8(this,null,function*(){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...wt(this,rs)[rs],...wt(this,os)[os],...wt(this,Li)[Li]];try{for(let a=r;a{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);yield this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),wt(this,is)[is](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i})}fO.VERSION="2.1.3";var dO=fO,tZ=gr(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(B,x){for(var j in x)B[j]=x[j];return B}function y(B){var x=B.parentNode;x&&x.removeChild(B)}function g(B,x,j){var U,X,W,dt={};for(W in x)W=="key"?U=x[W]:W=="ref"?X=x[W]:dt[W]=x[W];if(arguments.length>2&&(dt.children=arguments.length>3?n.call(arguments,2):j),typeof B=="function"&&B.defaultProps!=null)for(W in B.defaultProps)dt[W]===void 0&&(dt[W]=B.defaultProps[W]);return v(B,dt,U,X,null)}function v(B,x,j,U,X){var W={type:B,props:x,key:j,ref:U,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X==null?++o:X};return X==null&&r.vnode!=null&&r.vnode(W),W}function m(B){return B.children}function h(B,x){this.props=B,this.context=x}function b(B,x){if(x==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var j;x0?v(St.type,St.props,St.key,null,St.__v):St)!=null){if(St.__=j,St.__b=j.__b+1,($t=Ee[q])===null||$t&&St.key==$t.key&&St.type===$t.type)Ee[q]=void 0;else for(te=0;te2&&(dt.children=arguments.length>3?n.call(arguments,2):j),v(B.type,dt,U||B.key,X||B.ref,null)},e.createContext=function(B,x){var j={__c:x="__cC"+l++,__:B,Consumer:function(U,X){return U.children(X)},Provider:function(U){var X,W;return this.getChildContext||(X=[],(W={})[x]=this,this.getChildContext=function(){return W},this.shouldComponentUpdate=function(dt){this.props.value!==dt.value&&X.some(S)},this.sub=function(dt){X.push(dt);var Dt=dt.componentWillUnmount;dt.componentWillUnmount=function(){X.splice(X.indexOf(dt),1),Dt&&Dt.call(dt)}}),U.children}};return j.Provider.__=j.Consumer.contextType=j},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function B(x,j){gt(x,j,B)},e.isValidElement=i,e.options=r,e.render=gt,e.toChildArray=function B(x,j){return j=j||[],x==null||typeof x=="boolean"||(Array.isArray(x)?x.some(function(U){B(U,j)}):j.push(x)),j}}),eZ=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},bw=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:V(V({},e),{[this.id]:V(V({},e[this.id]),t)})})}setOptions(t){this.opts=V(V({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new J9([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function pO(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var nZ=0;function rZ(t){return"__private_"+nZ+++"_"+t}const{render:hO}=tZ;var vd=rZ("updateUI");class ww extends bw{constructor(){super(...arguments),Object.defineProperty(this,vd,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=eZ(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return pO(this,vd)[vd]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(hO(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),hO(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof ww)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the "},ck=function(t){t.write(lk("")),t.close();var e=t.parentWindow.Object;return t=null,e},ov=function(){try{rv=new ActiveXObject("htmlfile")}catch(r){}var t,e;ov=typeof document!="undefined"?document.domain&&rv?ck(rv):((e=Ad("iframe")).style.display="none",Qw.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(lk("document.F=Object")),t.close(),t.F):ck(rv);for(var n=nv.length;n--;)delete ov.prototype[nv[n]];return ov()};Yg[sk]=!0;var iv=Object.create||function(t,e){var n;return t!==null?(t4.prototype=on(t),n=new t4,t4.prototype=null,n[sk]=t):n=ov(),e===void 0?n:WY(n,e)},e4=ze("unscopables"),n4=Array.prototype;n4[e4]==null&&Bo.f(n4,e4,{configurable:!0,value:iv(null)});var Id=function(t){n4[e4][t]=!0},GY=nk.includes;$e({target:"Array",proto:!0},{includes:function(t){return GY(this,t,arguments.length>1?arguments[1]:void 0)}}),Id("includes");var KY=ze("match"),r4=function(t){var e;return Fe(t)&&((e=t[KY])!==void 0?!!e:To(t)=="RegExp")},qY=Q.TypeError,o4=function(t){if(r4(t))throw qY("The method doesn't accept regular expressions");return t},ZY=ze("match"),i4=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[ZY]=!1,"/./"[t](e)}catch(r){}}return!1},YY=Et("".indexOf);$e({target:"String",proto:!0,forced:!i4("includes")},{includes:function(t){return!!~YY(ke(ro(this)),ke(o4(t)),arguments.length>1?arguments[1]:void 0)}});var XY=/"/g,JY=Et("".replace);$e({target:"String",proto:!0,forced:ge(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ke(ro(this)),r=""+n+"";var e,n,r}});var a4=function(t,e,n){var r,o;on(t);try{if(!(r=ds(t,"return"))){if(e==="throw")throw n;return n}r=ie(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return on(r),n},QY=function(t,e,n,r){try{return r?e(on(n)[0],n[1]):e(n)}catch(o){a4(t,"throw",o)}},ec={},tX=ze("iterator"),eX=Array.prototype,fk=function(t){return t!==void 0&&(ec.Array===t||eX[tX]===t)},Nd=function(t,e,n){var r=zw(e);r in t?Bo.f(t,r,Gg(0,n)):t[r]=n},nX=ze("iterator"),u4=function(t){if(t!=null)return ds(t,nX)||ds(t,"@@iterator")||ec[Xg(t)]},rX=Q.TypeError,dk=function(t,e){var n=arguments.length<2?u4(t):e;if(Fa(n))return on(ie(n,t));throw rX(Wg(t)+" is not iterable")},pk=Q.Array,hk=ze("iterator"),gk=!1;try{var oX=0,vk={next:function(){return{done:!!oX++}},return:function(){gk=!0}};vk[hk]=function(){return this},Array.from(vk,function(){throw 2})}catch(t){}var s4=function(t,e){if(!e&&!gk)return!1;var n=!1;try{var r={};r[hk]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},iX=!s4(function(t){Array.from(t)});$e({target:"Array",stat:!0,forced:iX},{from:function(t){var e=Ba(t),n=ev(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=hs(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=u4(e),d=0;if(!p||this==pk&&fk(p))for(a=gs(e),u=n?new this(a):pk(a);a>d;d++)f=i?o(e[d],d):e[d],Nd(u,d,f);else for(c=(l=dk(e,p)).next,u=n?new this:[];!(s=ie(c,l)).done;d++)f=i?QY(l,o,[s.value,d],!0):s.value,Nd(u,d,f);return u.length=d,u}});var vs,mk,yk,aX=Et("".charAt),bk=Et("".charCodeAt),uX=Et("".slice),wk=function(t){return function(e,n){var r,o,i=ke(ro(e)),a=Bd(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=bk(i,a))<55296||r>56319||a+1===u||(o=bk(i,a+1))<56320||o>57343?t?aX(i,a):r:t?uX(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ek={codeAt:wk(!1),charAt:wk(!0)},sX=!ge(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Sk=$w("IE_PROTO"),l4=Q.Object,lX=l4.prototype,av=sX?l4.getPrototypeOf:function(t){var e=Ba(t);if(rn(e,Sk))return e[Sk];var n=e.constructor;return be(n)&&e instanceof n?n.prototype:e instanceof l4?lX:null},c4=ze("iterator"),Ck=!1;[].keys&&("next"in(yk=[].keys())?(mk=av(av(yk)))!==Object.prototype&&(vs=mk):Ck=!0);var cX=vs==null||ge(function(){var t={};return vs[c4].call(t)!==t});cX&&(vs={}),be(vs[c4])||wr(vs,c4,function(){return this});var f4={IteratorPrototype:vs,BUGGY_SAFARI_ITERATORS:Ck},fX=Bo.f,Dk=ze("toStringTag"),uv=function(t,e,n){t&&!rn(t=n?t:t.prototype,Dk)&&fX(t,Dk,{configurable:!0,value:e})},dX=f4.IteratorPrototype,pX=function(){return this},hX=Q.String,gX=Q.TypeError,nc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Et(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return on(r),function(i){if(typeof i=="object"||be(i))return i;throw gX("Can't set "+hX(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),vX=Zl.PROPER,mX=Zl.CONFIGURABLE,xk=f4.IteratorPrototype,sv=f4.BUGGY_SAFARI_ITERATORS,Ld=ze("iterator"),yX=function(){return this},d4=function(t,e,n,r,o,i,a){(function(m,h,b,w){var S=h+" Iterator";m.prototype=iv(dX,{next:Gg(1,b)}),uv(m,S,!1),ec[S]=pX})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!sv&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Ld]||d["@@iterator"]||o&&d[o],g=!sv&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=av(v.call(new t)))!==Object.prototype&&u.next&&(av(u)!==xk&&(nc?nc(u,xk):be(u[Ld])||wr(u,Ld,yX)),uv(u,f,!0)),vX&&o=="values"&&y&&y.name!=="values"&&(mX?Fo(d,"name","values"):(p=!0,g=function(){return ie(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(sv||p||!(l in d))&&wr(d,l,s[l]);else $e({target:e,proto:!0,forced:sv||p},s);return d[Ld]!==g&&wr(d,Ld,g,{name:o}),ec[e]=g,s},bX=Ek.charAt,wX=Qn.set,EX=Qn.getterFor("String Iterator");d4(String,"String",function(t){wX(this,{type:"String Iterator",string:ke(t),index:0})},function(){var t,e=EX(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=bX(n,r),e.index+=t.length,{value:t,done:!1})});var p4,SX=Td.f,Ak=Et("".endsWith),CX=Et("".slice),DX=Math.min,Ok=i4("endsWith"),xX=!(Ok||(p4=SX(String.prototype,"endsWith"),!p4||p4.writable));$e({target:"String",proto:!0,forced:!xX&&!Ok},{endsWith:function(t){var e=ke(ro(this));o4(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:DX(Yl(n),r),i=ke(t);return Ak?Ak(e,i,o):CX(e,o-i.length,o)===i}});var AX=Et([].join),OX=Qg!=Object,kX=ZO("join",",");$e({target:"Array",proto:!0,forced:OX||!kX},{join:function(t){return AX(Pa(this),t===void 0?",":t)}});var BX=ze("species"),lv=function(t){return Dd>=51||!ge(function(){var e=[];return(e.constructor={})[BX]=function(){return{foo:1}},e[t](Boolean).foo!==1})},FX=Xl.map,TX=lv("map");$e({target:"Array",proto:!0,forced:!TX},{map:function(t){return FX(this,t,arguments.length>1?arguments[1]:void 0)}});var h4=Q.RegExp,g4=ge(function(){var t=h4("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),PX=g4||ge(function(){return!h4("a","y").sticky}),cv={BROKEN_CARET:g4||ge(function(){var t=h4("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:PX,UNSUPPORTED_Y:g4},jX=Q.RegExp,v4=ge(function(){var t=jX(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),_X=Q.RegExp,m4=ge(function(){var t=_X("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),IX=Qn.get,NX=Tw("native-string-replace",String.prototype.replace),fv=RegExp.prototype.exec,y4=fv,LX=Et("".charAt),RX=Et("".indexOf),MX=Et("".replace),b4=Et("".slice),w4=function(){var t=/a/,e=/b*/g;return ie(fv,t,"a"),ie(fv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),kk=cv.BROKEN_CARET,E4=/()??/.exec("")[1]!==void 0;(w4||E4||kk||v4||m4)&&(y4=function(t){var e,n,r,o,i,a,u,s=this,l=IX(s),c=ke(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ie(y4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=kk&&s.sticky,y=ie(Xw,s),g=s.source,v=0,m=c;if(d&&(y=MX(y,"y",""),RX(y,"g")===-1&&(y+="g"),m=b4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&LX(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),E4&&(n=new RegExp("^"+g+"$(?!\\s)",y)),w4&&(r=s.lastIndex),o=ie(fv,d?n:s,m),d?o?(o.input=b4(o.input,v),o[0]=b4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:w4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),E4&&o&&o.length>1&&ie(NX,o[0],n,function(){for(i=1;i]*>)/g,GX=/\$([$&'`]|\d{1,2})/g,KX=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=GX;return o!==void 0&&(o=Ba(o),s=WX),VX(i,s,function(l,c){var f;switch(O4(c,0)){case"$":return"$";case"&":return t;case"`":return k4(e,0,n);case"'":return k4(e,a);case"<":f=o[k4(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=UX(p/10);return d===0?l:d<=u?r[d-1]===void 0?O4(c,1):r[d-1]+O4(c,1):l}f=r[p-1]}return f===void 0?"":f})},qX=Q.TypeError,Md=function(t,e){var n=t.exec;if(be(n)){var r=ie(n,t,e);return r!==null&&on(r),r}if(To(t)==="RegExp")return ie(Rd,t,e);throw qX("RegExp#exec called on incompatible receiver")},B4=ze("replace"),ZX=Math.max,YX=Math.min,XX=Et([].concat),F4=Et([].push),Tk=Et("".indexOf),Pk=Et("".slice),JX="a".replace(/./,"$0")==="$0",jk=!!/./[B4]&&/./[B4]("a","$0")==="";x4("replace",function(t,e,n){var r=jk?"$":"$0";return[function(o,i){var a=ro(this),u=o==null?void 0:ds(o,B4);return u?ie(u,o,a,i):ie(e,ke(a),o,i)},function(o,i){var a=on(this),u=ke(o);if(typeof i=="string"&&Tk(i,r)===-1&&Tk(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=be(i);l||(i=ke(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Md(a,u);if(d===null||(F4(p,d),!c))break;ke(d[0])===""&&(a.lastIndex=A4(u,Yl(a.lastIndex),f))}for(var y,g="",v=0,m=0;m=v&&(g+=Pk(u,v,b)+O,v=b+h.length)}return g+Pk(u,v)}]},!!ge(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!JX||jk);/*! ***************************************************************************** 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 T4=function(t,e){return T4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},T4(t,e)};function rc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}T4(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var oo=function(){return oo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ae(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function P4(t,e){for(var n=0,r=e.length,o=t.length;n=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");ec.Arguments=ec.Array,Id("keys"),Id("values"),Id("entries");var oc=function(t,e,n){for(var r in e)wr(t,r,e[r],n);return t},nJ=Q.Array,rJ=Math.max,j4=function(t,e,n){for(var r=gs(t),o=Jl(e,r),i=Jl(n===void 0?r:n,r),a=nJ(rJ(i-o,0)),u=0;oi;i++)if((u=v(t[i]))&&fs(Rk,u))return u;return new hv(!1)}r=dk(t,o)}for(s=r.next;!(l=ie(s,r)).done;){try{u=v(l.value)}catch(m){a4(r,"throw",m)}if(typeof u=="object"&&u&&fs(Rk,u))return u}return new hv(!1)},uJ=Q.TypeError,gv=function(t,e){if(fs(e,t))return t;throw uJ("Incorrect invocation")},Mk=function(t,e,n){var r,o;return nc&&be(r=e.constructor)&&r!==n&&Fe(o=r.prototype)&&o!==n.prototype&&nc(t,o),t},zk=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Q[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Et(u[v]);wr(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!Fe(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!Fe(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!Fe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(_d(t,!be(a)||!(o||u.forEach&&!ge(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),pv.enable();else if(_d(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ge(function(){f.has(1)}),y=s4(function(v){new a(v)}),g=!o&&ge(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){gv(v,u);var h=Mk(new a,v,s);return m!=null&&$d(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,$e({global:!0,forced:s!=a},l),uv(s,t),o||n.setStrong(s,t,r),s},vv=pv.getWeakData,sJ=Qn.set,lJ=Qn.getterFor,cJ=Xl.find,fJ=Xl.findIndex,dJ=Et([].splice),pJ=0,mv=function(t){return t.frozen||(t.frozen=new $k)},$k=function(){this.entries=[]},_4=function(t,e){return cJ(t.entries,function(n){return n[0]===e})};$k.prototype={get:function(t){var e=_4(this,t);if(e)return e[1]},has:function(t){return!!_4(this,t)},set:function(t,e){var n=_4(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=fJ(this.entries,function(n){return n[0]===t});return~e&&dJ(this.entries,e,1),!!~e}};var Hd,Hk={getConstructor:function(t,e,n,r){var o=t(function(s,l){gv(s,i),sJ(s,{type:e,id:pJ++,frozen:void 0}),l!=null&&$d(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=lJ(e),u=function(s,l,c){var f=a(s),p=vv(on(l),!0);return p===!0?mv(f).set(l,c):p[f.id]=c,s};return oc(i,{delete:function(s){var l=a(this);if(!Fe(s))return!1;var c=vv(s);return c===!0?mv(l).delete(s):c&&rn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Fe(s))return!1;var c=vv(s);return c===!0?mv(l).has(s):c&&rn(c,l.id)}}),oc(i,n?{get:function(s){var l=a(this);if(Fe(s)){var c=vv(s);return c===!0?mv(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},yv=Qn.enforce,hJ=!Q.ActiveXObject&&"ActiveXObject"in Q,Uk=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},gJ=zk("WeakMap",Uk,Hk);if(LO&&hJ){Hd=Hk.getConstructor(Uk,"WeakMap",!0),pv.enable();var Ud=gJ.prototype,Vk=Et(Ud.delete),bv=Et(Ud.has),Wk=Et(Ud.get),Gk=Et(Ud.set);oc(Ud,{delete:function(t){if(Fe(t)&&!ms(t)){var e=yv(this);return e.frozen||(e.frozen=new Hd),Vk(this,t)||e.frozen.delete(t)}return Vk(this,t)},has:function(t){if(Fe(t)&&!ms(t)){var e=yv(this);return e.frozen||(e.frozen=new Hd),bv(this,t)||e.frozen.has(t)}return bv(this,t)},get:function(t){if(Fe(t)&&!ms(t)){var e=yv(this);return e.frozen||(e.frozen=new Hd),bv(this,t)?Wk(this,t):e.frozen.get(t)}return Wk(this,t)},set:function(t,e){if(Fe(t)&&!ms(t)){var n=yv(this);n.frozen||(n.frozen=new Hd),bv(this,t)?Gk(this,t,e):n.frozen.set(t,e)}else Gk(this,t,e);return this}})}var I4=ze("iterator"),Kk=ze("toStringTag"),N4=zd.values,qk=function(t,e){if(t){if(t[I4]!==N4)try{Fo(t,I4,N4)}catch(r){t[I4]=N4}if(t[Kk]||Fo(t,Kk,e),Jg[e]){for(var n in zd)if(t[n]!==zd[n])try{Fo(t,n,zd[n])}catch(r){t[n]=zd[n]}}}};for(var L4 in Jg)qk(Q[L4]&&Q[L4].prototype,L4);qk(HO,"DOMTokenList");var R4=new WeakMap,M4=new WeakMap,z4=new WeakMap,wv=new WeakMap,$4=new WeakMap,Ev=new WeakMap,H4=new WeakMap,U4=new WeakMap,Sv=new WeakMap,Zk=new WeakMap,Yk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Vd=new WeakMap,ic=new WeakMap,V4=new WeakMap,Cv=new WeakMap,W4=new WeakMap,Dv=new WeakMap,xv=new WeakMap,Qk=new WeakMap,ys=new WeakMap,G4=new WeakMap,tB=new WeakMap,K4=new WeakMap,vJ=Xl.find,eB=!0;"find"in[]&&Array(1).find(function(){eB=!1}),$e({target:"Array",proto:!0,forced:eB},{find:function(t){return vJ(this,t,arguments.length>1?arguments[1]:void 0)}}),Id("find"),$e({global:!0},{globalThis:Q});const mJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Bg&&(k.fn.css=Bg),to&&(k.fn.append=to),jl&&(k.fn.addClass=jl),_l&&(k.fn.removeClass=_l),Il&&(k.fn.hasClass=Il),Qo&&(k.fn.on=Qo),Sa&&(k.fn.focus=Sa),Qr&&(k.fn.attr=Qr),xg&&(k.fn.removeAttr=xg),Ll&&(k.fn.hide=Ll),kg&&(k.fn.show=kg),a9&&(k.fn.offset=a9),Ag&&(k.fn.width=Ag),Og&&(k.fn.height=Og),Rl&&(k.fn.parent=Rl),Pg&&(k.fn.parents=Pg),s9&&(k.fn.is=s9),Nl&&(k.fn.dataset=Nl),Jo&&(k.fn.val=Jo),Tg&&(k.fn.text=Tg),Ea&&(k.fn.html=Ea),zl&&(k.fn.children=zl),$l&&(k.fn.remove=$l),Ml&&(k.fn.find=Ml),Fg&&(k.fn.each=Fg),Hl&&(k.fn.empty=Hl);var oi,tr,q4=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Po=function(t){return bs(t)&&t.nodeType===1},bs=function(t){var e=q4(t);return!!e&&t instanceof e.Node},nB=function(t){var e=t&&t.anchorNode&&q4(t.anchorNode);return!!e&&t instanceof e.Selection},rB=function(t){return bs(t)&&t.nodeType===3},Z4=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},oB=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(bs(r=i)&&r.nodeType===8||Po(i)&&i.childNodes.length===0||Po(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},yJ=function(t,e,n){return ae(oB(t,e,n),1)[0]},bJ=function t(e){var n,r,o="";if(rB(e)&&e.nodeValue)return e.nodeValue;if(Po(e)){try{for(var i=io(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=` `)}return o};function iB(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||iB(o,e)}}function aB(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==oi.ELEMENT_NODE?"":e.tagName.toLowerCase()}(tr=oi||(oi={}))[tr.ELEMENT_NODE=1]="ELEMENT_NODE",tr[tr.TEXT_NODE=3]="TEXT_NODE",tr[tr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",tr[tr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",tr[tr.COMMENT_NODE=8]="COMMENT_NODE",tr[tr.DOCUMENT_NODE=9]="DOCUMENT_NODE",tr[tr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",tr[tr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Y4=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Wd=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Gd=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),wJ=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),EJ=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),X4=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var Kd=!EJ&&!wJ&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=Qk.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=xv.get(e);return n||(n=new _k,xv.set(e,n)),n},setNewKey:function(t){var e=new _k;xv.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=ic.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Vd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return ic.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return et.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=V4.get(t);else{var r=A.findKey(t,e);n=W4.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=Po(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=M.isBackward(e),i=A.toDOMPoint(t,n),a=M.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=ae(o?a:i,2),l=s[0],c=s[1],f=ae(o?i:a,2),p=f[0],d=f[1],y=!!(Po(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Po(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=ae(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=io(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,y=f.getAttribute("data-slate-length"),g=s+(y==null?d:parseInt(y,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=Po(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Cv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||M.isExpanded(e))return!1;var n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=ae(n,1)[0].children;return r.length===1&&r[0].text===""}},SJ=1,uB={},qd={},CJ=Xl.filter,DJ=lv("filter");$e({target:"Array",proto:!0,forced:!DJ},{filter:function(t){return CJ(this,t,arguments.length>1?arguments[1]:void 0)}});var J4=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,sB=Et("".replace),Av="["+J4+"]",xJ=RegExp("^"+Av+Av+"*"),AJ=RegExp(Av+Av+"*$"),Q4=function(t){return function(e){var n=ke(ro(e));return 1&t&&(n=sB(n,xJ,"")),2&t&&(n=sB(n,AJ,"")),n}},OJ={start:Q4(1),end:Q4(2),trim:Q4(3)},kJ=Zl.PROPER,BJ=OJ.trim;$e({target:"String",proto:!0,forced:function(t){return ge(function(){return!!J4[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||kJ&&J4[t].name!==t})}("trim")},{trim:function(){return BJ(this)}});var tE=[],lB={};function FJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+""}var Zd,ac,cB,eE,Ov=Q.Promise,fB=ze("species"),nE=function(t){var e=ls(t),n=Bo.f;jn&&e&&!e[fB]&&n(e,fB,{configurable:!0,get:function(){return this}})},TJ=Q.TypeError,PJ=ze("species"),dB=function(t,e){var n,r=on(t).constructor;return r===void 0||(n=on(r)[PJ])==null?e:function(o){if(ev(o))return o;throw TJ(Wg(o)+" is not a constructor")}(n)},pB=Et([].slice),hB=/(?:ipad|iphone|ipod).*applewebkit/i.test(Kl),ja=To(Q.process)=="process",rE=Q.setImmediate,oE=Q.clearImmediate,jJ=Q.process,iE=Q.Dispatch,_J=Q.Function,gB=Q.MessageChannel,IJ=Q.String,aE=0,Yd={};try{Zd=Q.location}catch(t){}var uE=function(t){if(rn(Yd,t)){var e=Yd[t];delete Yd[t],e()}},sE=function(t){return function(){uE(t)}},vB=function(t){uE(t.data)},mB=function(t){Q.postMessage(IJ(t),Zd.protocol+"//"+Zd.host)};rE&&oE||(rE=function(t){var e=pB(arguments,1);return Yd[++aE]=function(){C4(be(t)?t:_J(t),void 0,e)},ac(aE),aE},oE=function(t){delete Yd[t]},ja?ac=function(t){jJ.nextTick(sE(t))}:iE&&iE.now?ac=function(t){iE.now(sE(t))}:gB&&!hB?(eE=(cB=new gB).port2,cB.port1.onmessage=vB,ac=hs(eE.postMessage,eE)):Q.addEventListener&&be(Q.postMessage)&&!Q.importScripts&&Zd&&Zd.protocol!=="file:"&&!ge(mB)?(ac=mB,Q.addEventListener("message",vB,!1)):ac="onreadystatechange"in Ad("script")?function(t){Qw.appendChild(Ad("script")).onreadystatechange=function(){Qw.removeChild(this),uE(t)}}:function(t){setTimeout(sE(t),0)});var Xd,ws,Jd,uc,lE,cE,fE,yB,bB={set:rE,clear:oE},NJ=/ipad|iphone|ipod/i.test(Kl)&&Q.Pebble!==void 0,LJ=/web0s(?!.*chrome)/i.test(Kl),RJ=Td.f,dE=bB.set,wB=Q.MutationObserver||Q.WebKitMutationObserver,EB=Q.document,SB=Q.process,kv=Q.Promise,CB=RJ(Q,"queueMicrotask"),DB=CB&&CB.value;DB||(Xd=function(){var t,e;for(ja&&(t=SB.domain)&&t.exit();ws;){e=ws.fn,ws=ws.next;try{e()}catch(n){throw ws?uc():Jd=void 0,n}}Jd=void 0,t&&t.enter()},hB||ja||LJ||!wB||!EB?!NJ&&kv&&kv.resolve?((fE=kv.resolve(void 0)).constructor=kv,yB=hs(fE.then,fE),uc=function(){yB(Xd)}):ja?uc=function(){SB.nextTick(Xd)}:(dE=hs(dE,Q),uc=function(){dE(Xd)}):(lE=!0,cE=EB.createTextNode(""),new wB(Xd).observe(cE,{characterData:!0}),uc=function(){cE.data=lE=!lE}));var pE,xB,AB,OB,kB=DB||function(t){var e={fn:t,next:void 0};Jd&&(Jd.next=e),ws||(ws=e,uc()),Jd=e},MJ=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Fa(e),this.reject=Fa(n)},hE={f:function(t){return new MJ(t)}},gE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},zJ=typeof window=="object",BB=bB.set,$J=ze("species"),ii="Promise",FB=Qn.getterFor(ii),HJ=Qn.set,UJ=Qn.getterFor(ii),Es=Ov&&Ov.prototype,ai=Ov,Qd=Es,TB=Q.TypeError,vE=Q.document,mE=Q.process,sc=hE.f,VJ=sc,WJ=!!(vE&&vE.createEvent&&Q.dispatchEvent),PB=be(Q.PromiseRejectionEvent),jB=!1,tp=_d(ii,function(){var t=Zg(ai),e=t!==String(ai);if(!e&&Dd===66)return!0;if(Dd>=51&&/native code/.test(t))return!1;var n=new ai(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[$J]=r,!(jB=n.then(function(){})instanceof r)||!e&&zJ&&!PB}),GJ=tp||!s4(function(t){ai.all(t).catch(function(){})}),_B=function(t){var e;return!(!Fe(t)||!be(e=t.then))&&e},yE=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;kB(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&qJ(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(TB("Promise-chain cycle")):(u=_B(a))?ie(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&KJ(t)})}},IB=function(t,e,n){var r,o;WJ?((r=vE.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Q.dispatchEvent(r)):r={promise:e,reason:n},!PB&&(o=Q["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=Q.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},KJ=function(t){ie(BB,Q,function(){var e,n=t.facade,r=t.value;if(NB(t)&&(e=gE(function(){ja?mE.emit("unhandledRejection",r,n):IB("unhandledrejection",n,r)}),t.rejection=ja||NB(t)?2:1,e.error))throw e.value})},NB=function(t){return t.rejection!==1&&!t.parent},qJ=function(t){ie(BB,Q,function(){var e=t.facade;ja?mE.emit("rejectionHandled",e):IB("rejectionhandled",e,t.value)})},lc=function(t,e,n){return function(r){t(e,r,n)}},cc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,yE(t,!0))},bE=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw TB("Promise can't be resolved itself");var r=_B(e);r?kB(function(){var o={done:!1};try{ie(r,e,lc(bE,o,t),lc(cc,o,t))}catch(i){cc(o,i,t)}}):(t.value=e,t.state=1,yE(t,!1))}catch(o){cc({done:!1},o,t)}}};if(tp&&(Qd=(ai=function(t){gv(this,Qd),Fa(t),ie(pE,this);var e=FB(this);try{t(lc(bE,e),lc(cc,e))}catch(n){cc(e,n)}}).prototype,(pE=function(t){HJ(this,{type:ii,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=oc(Qd,{then:function(t,e){var n=UJ(this),r=n.reactions,o=sc(dB(this,ai));return o.ok=!be(t)||t,o.fail=be(e)&&e,o.domain=ja?mE.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&yE(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),xB=function(){var t=new pE,e=FB(t);this.promise=t,this.resolve=lc(bE,e),this.reject=lc(cc,e)},hE.f=sc=function(t){return t===ai||t===AB?new xB(t):VJ(t)},be(Ov)&&Es!==Object.prototype)){OB=Es.then,jB||(wr(Es,"then",function(t,e){var n=this;return new ai(function(r,o){ie(OB,n,r,o)}).then(t,e)},{unsafe:!0}),wr(Es,"catch",Qd.catch,{unsafe:!0}));try{delete Es.constructor}catch(t){}nc&&nc(Es,Qd)}$e({global:!0,wrap:!0,forced:tp},{Promise:ai}),uv(ai,ii,!1),nE(ii),AB=ls(ii),$e({target:ii,stat:!0,forced:tp},{reject:function(t){var e=sc(this);return ie(e.reject,void 0,t),e.promise}}),$e({target:ii,stat:!0,forced:tp},{resolve:function(t){return function(e,n){if(on(e),Fe(n)&&n.constructor===e)return n;var r=hE.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),$e({target:ii,stat:!0,forced:GJ},{all:function(t){var e=this,n=sc(e),r=n.resolve,o=n.reject,i=gE(function(){var a=Fa(e.resolve),u=[],s=0,l=1;$d(t,function(c){var f=s++,p=!1;l++,ie(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=sc(e),r=n.reject,o=gE(function(){var i=Fa(e.resolve);$d(t,function(a){ie(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var fc=cv.UNSUPPORTED_Y,ZJ=Math.min,LB=[].push,YJ=Et(/./.exec),dc=Et(LB),ep=Et("".slice);function ao(t){Promise.resolve().then(t)}function RB(t,e){return bt.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(m){return RB(m,r)}).join(""));var c=function(m){return lB[m]||FJ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||tE.forEach(function(m){return p=m(n,p)}),typeof f=="string")return p;var d=f.prefix,y=d===void 0?"":d,g=f.suffix,v=g===void 0?"":g;return y&&(p=y+p),v&&(p+=v),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g,"  ").replace(//g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"
")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="
"}return tE.forEach(function(s){return i=s(n,i)}),i}(t,e)}function MB(t){return"w-e-element-"+t}x4("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ke(ro(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!r4(o))return ie(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=ie(Rd,y,a))&&!((l=y.lastIndex)>d&&(dc(f,ep(a,d,s.index)),s.length>1&&s.index=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&YJ(y,"")||dc(f,""):dc(f,ep(a,d)),f.length>u?j4(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:ie(e,this,o,i)}:e,[function(o,i){var a=ro(this),u=o==null?void 0:ds(o,t);return u?ie(u,o,a,i):ie(r,ke(a),o,i)},function(o,i){var a=on(this),u=ke(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=dB(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(fc?"g":"y"),p=new l(fc?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Md(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g=n},$B=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return zB(r,o)&&zB(o,r)},HB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],UB=[],wE=[],Bv={},XJ=Bo.f,JJ=Pd.f,QJ=Qn.enforce,tQ=ze("match"),$i=Q.RegExp,pc=$i.prototype,eQ=Q.SyntaxError,nQ=Et(Xw),rQ=Et(pc.exec),Fv=Et("".charAt),VB=Et("".replace),WB=Et("".indexOf),oQ=Et("".slice),iQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ss=/a/g,EE=/a/g,aQ=new $i(Ss)!==Ss,GB=cv.MISSED_STICKY,uQ=cv.UNSUPPORTED_Y,sQ=jn&&(!aQ||GB||v4||m4||ge(function(){return EE[tQ]=!1,$i(Ss)!=Ss||$i(EE)==EE||$i(Ss,"i")!="/a/i"}));if(_d("RegExp",sQ)){for(var _a=function(t,e){var n,r,o,i,a,u,s=fs(pc,this),l=r4(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===_a)return t;if((l||fs(pc,t))&&(t=t.source,c&&(e="flags"in p?p.flags:nQ(p))),t=t===void 0?"":ke(t),e=e===void 0?"":ke(e),p=t,v4&&"dotAll"in Ss&&(r=!!e&&WB(e,"s")>-1)&&(e=VB(e,/s/g,"")),n=e,GB&&"sticky"in Ss&&(o=!!e&&WB(e,"y")>-1)&&uQ&&(e=VB(e,/y/g,"")),m4&&(i=function(d){for(var y,g=d.length,v=0,m="",h=[],b={},w=!1,S=!1,D=0,C="";v<=g;v++){if((y=Fv(d,v))==="\\")y+=Fv(d,++v);else if(y==="]")w=!1;else if(!w)switch(!0){case y==="[":w=!0;break;case y==="(":rQ(iQ,oQ(d,v+1))&&(v+=2,S=!0),m+=y,D++;continue;case(y===">"&&S):if(C===""||rn(b,C))throw new eQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,D],S=!1,C="";continue}S?C+=y:m+=y}return[m,h]}(t),t=i[0],f=i[1]),a=Mk($i(t,e),s?this:pc,_a),(r||o||f.length)&&(u=QJ(a),r&&(u.dotAll=!0,u.raw=_a(function(d){for(var y,g=d.length,v=0,m="",h=!1;v<=g;v++)(y=Fv(d,v))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),m+=y):m+="[\\s\\S]":m+=y+Fv(d,++v);return m}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{Fo(a,"source",p===""?"(?:)":p)}catch(d){}return a},lQ=function(t){t in _a||XJ(_a,t,{configurable:!0,get:function(){return $i[t]},set:function(e){$i[t]=e}})},KB=JJ($i),qB=0;KB.length>qB;)lQ(KB[qB++]);pc.constructor=_a,_a.prototype=pc,wr(Q,"RegExp",_a)}nE("RegExp");var cQ=new RegExp(String.fromCharCode(160),"g");function ZB(t){return t.replace(cQ," ")}function YB(t,e){var n=t.length;if(n){var r=t[n-1];if(ft.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function fQ(t,e,n){return{type:"paragraph",children:[{text:k(t).text().replace(/\s+/gm," ")}]}}function SE(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==oi.ELEMENT_NODE){if(l.nodeType===oi.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(` `)>=0)return;c&&(c=ZB(c),YB(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(YB(u,` `)||u.push({text:` `}));var f=DE(k(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in Bv)if(i[0].matches(a))return Bv[a];return fQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),wE.forEach(function(a){i=a(t[0],i,e)}))}),o}function CE(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/
/g,` `));var n=t[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122").replace(/"/g,'"')}(n);var r={text:n=ZB(n)};return wE.forEach(function(o){r=o(t[0],r,e)}),r}function DE(t,e){UB.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=k(i(t[0])))});var n=aB(t);return n==="span"?t.attr("data-w-e-type")?SE(t,e):CE(t,e):n==="code"?aB(t.parent())==="pre"?SE(t,e):CE(t,e):HB.includes(n)?CE(t,e):SE(t,e)}function XB(t,e,n){var r=k(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function JB(t,e){e===void 0&&(e="");var n=[];e===""&&(e="


"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"

"+o+"

"}).join(""));var r=k("
"+e+"
");return Array.from(r.children()).forEach(function(o){var i=DE(k(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var dQ=Bo.f,QB=pv.fastKey,tF=Qn.set,xE=Qn.getterFor,pQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){gv(l,i),tF(l,{type:e,index:iv(null),first:void 0,last:void 0,size:0}),jn||(l.size=0),c!=null&&$d(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=xE(e),u=function(l,c,f){var p,d,y=a(l),g=s(l,c);return g?g.value=f:(y.last=g={index:d=QB(c,!0),key:c,value:f,previous:p=y.last,next:void 0,removed:!1},y.first||(y.first=g),p&&(p.next=g),jn?y.size++:l.size++,d!=="F"&&(y.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=QB(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return oc(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,jn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,y=p.previous;delete f.index[p.index],p.removed=!0,y&&(y.next=d),d&&(d.previous=y),f.first==p&&(f.first=d),f.last==p&&(f.last=y),jn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=hs(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),oc(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),jn&&dQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=xE(e),i=xE(r);d4(t,e,function(a,u){tF(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),nE(e)}};zk("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},pQ);var eF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function nF(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):I.insertNodes(t,e,{mode:"highest"})}var hQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=ae(M.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!M.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(S){S.textContent&&S.textContent.trim()!==""&&(p=S)}),l){var d=ae(l,1)[0],y=c.cloneRange(),g=A.toDOMNode(e,d);y.setEndAfter(g),f=y.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(S){var D=S.getAttribute("data-slate-zero-width")==="n";S.textContent=D?` `:""}),rB(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",bJ(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=io(f),y=d.next();!y.done;y=d.next()){var g=y.value;p&&I.splitNodes(e,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},np=function(t){return t!=null},gQ={object:!0,function:!0,undefined:!0},vQ=/^\s*class[\s{/}]/,mQ=Function.prototype.toString,rF=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(n){return!1}return!function(n){if(!function(r){return!!np(r)&&hasOwnProperty.call(gQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch(r){return!1}}(e)}(t)&&!vQ.test(mQ.call(t))},AE=function(t){return t!=null},yQ=Object.keys,bQ=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return yQ(AE(t)?Object(t):t)},wQ=function(t){if(!AE(t))throw new TypeError("Cannot use null or undefined");return t},EQ=Math.max,oF=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=EQ(arguments.length,2);for(t=Object(wQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r-1},Tv=Cd(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],np(n)?(o=rp.call(n,"c"),i=rp.call(n,"e"),a=rp.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?oF(iF(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],np(r)?rF(r)?np(o)?rF(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,np(n)?(i=rp.call(n,"c"),a=rp.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?oF(iF(u),s):s}}),kE=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},AQ=Cd(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var h;return kE(m),y.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[v]?typeof h[v]=="object"?h[v].push(m):h[v]=[h[v],m]:h[v]=m,this},r=function(v,m){var h,b;return kE(m),b=this,n.call(this,v,h=function(){o.call(b,v,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(v,m){var h,b,w,S;if(kE(m),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(b=h[v])=="object")for(S=0;w=b[S];++S)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[v]=b[S?0:1]:b.splice(S,1));else b!==m&&b.__eeOnceListener__!==m||delete h[v];return this},i=function(v){var m,h,b,w,S;if(y.call(this,"__ee__")&&(w=this.__ee__[v]))if(typeof w=="object"){for(h=arguments.length,S=new Array(h-1),m=1;ma/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var y=u-f;c.bottom=y+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function TE(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=bt.isElement(e)&&t.isVoid(e),i=bt.isElement(e)&&t.isInline(e),a=Dv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(C){var O=[];O.push(C);for(var T=0;O.length>0;){var L=O.pop();if(L==null||++T>1e4)break;var z=L.nodeName;if(L.nodeType===1){var $=z.toLowerCase();if(mJ.includes($)||$==="iframe"||$==="video")return L;var Y=L.children||[],G=Y.length;if(G)for(var K=G-1;K>=0;K--)O.push(Y[K])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var y=BE(t);if(y==null)return r;var g,v=y.top,m=y.left,h=y.width,b=y.height,w={},S=s-v,D=l-m;if(n==="bar")return w.left=D+"px",S>40?w.bottom=b-S+5+"px":w.top=S+c+5+"px",w;if(n==="modal")return o?i?D>(h-f)/2?w.right=h-D+5+"px":w.left=D+f+5+"px":w.left="20px":w.left=D+"px",o?((g=S)<0&&(g=0),w.top=g+"px"):S>(b-c)/2?w.bottom=b-S+5+"px":((g=S+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function PE(t,e){ao(function(){var n=BE(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,y=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=e.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=y+f-a)>0){var w=e.css("left"),S=parseInt(w.toString())-r;S<0&&(S=0),e.css("left",S+"px")}if(g.indexOf("right")>=0&&c<0){var D=e.css("right"),C=parseInt(D.toString())-Math.abs(c);e.css("right",C+"px")}}})}var BQ=lv("slice"),FQ=ze("species"),jE=Q.Array,TQ=Math.max;$e({target:"Array",proto:!0,forced:!BQ},{slice:function(t,e){var n,r,o,i=Pa(this),a=gs(i),u=Jl(t,a),s=Jl(e===void 0?a:e,a);if(tv(i)&&(n=i.constructor,(ev(n)&&(n===jE||tv(n.prototype))||Fe(n)&&(n=n[FQ])===null)&&(n=void 0),n===jE||n===void 0))return pB(i,u,s);for(r=new(n===void 0?jE:n)(TQ(s-u,0)),o=0;u1?arguments[1]:void 0,e.length)),r=ke(t);return uF?uF(e,r,n):jQ(e,n,n+r.length)===r}});var hc=Object.assign,lF=Object.defineProperty,NQ=Et([].concat),cF=!hc||ge(function(){if(jn&&hc({b:1},hc(lF({},"a",{enumerable:!0,get:function(){lF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),hc({},t)[n]!=7||Ql(hc({},e)).join("")!=r})?function(t,e){for(var n=Ba(t),r=arguments.length,o=1,i=ik.f,a=QO.f;r>o;)for(var u,s=Qg(arguments[o++]),l=i?NQ(Ql(s),i(s)):Ql(s),c=l.length,f=0;c>f;)u=l[f++],jn&&!ie(a,s,u)||(n[u]=s[u]);return n}:hc;$e({target:"Object",stat:!0,forced:Object.assign!==cF},{assign:cF});var LQ=["props","attrs","style","dataset","on","hook"];function fF(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!LQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=uq(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&fF(i)})}var _E=[],dF={};function RQ(t,e,n){return Pt(n.isInline(t)?"span":"div",null,e)}function pF(t,e){return e===void 0&&(e=!1),Pt("span",{"data-slate-string":!0},e?t+` `:t)}function IE(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),Pt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?Pt("br",null):null)}function NE(t,e,n,r){return Vd.set(t,e),ic.set(t,n),bt.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=MB(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,y=d===void 0?[]:d,g=function(S){return dF[S]||RQ}(p);a=l?null:y.map(function(S,D){return NE(S,D,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=ae(et.texts(o),1),b=ae(h[0],1)[0],w=Pt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},NE(b,0,o,i));v=Pt(m,{style:{position:"relative"}},v,w),Vd.set(b,0),ic.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(S,D){var C=D;return _E.forEach(function(O){C=O(S,D)}),C}(o,v)),ao(function(){var S=Z4(c);S!=null&&(W4.set(u,S),Dv.set(o,S),Cv.set(S,o))}),v}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=ft.decorations(o,c),p=f.map(function(g,v){var m=function(h,b,w,S,D){b===void 0&&(b=!1);var C=h.text,O=A.findPath(D,w),T=_.parent(O);if(E.isEditor(S))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return D.isVoid(S)?IE(et.string(S).length):C!==""||S.children[S.children.length-1]!==w||D.isInline(S)||E.string(D,T)!==""?C===""?IE():b&&C.slice(-1)===` `?pF(C,!0):pF(C):IE(0,!0)}(g,v===f.length-1,o,i,a);return m=function(h,b){var w=b;return _E.forEach(function(S){w=S(h,w)}),w}(g,m),Pt("span",{"data-slate-leaf":!0},m)}),d=function(g){return"w-e-text-"+g}(u.id),y=Pt("span",{"data-slate-node":"text",id:d,key:u.id},p);return ao(function(){var g=Z4(d);g!=null&&(W4.set(u,g),Dv.set(o,g),Cv.set(g,o))}),y}(t,n,r)}function MQ(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,v){return v===void 0&&(v=!1),Ul("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var m=NE(g,v,e,e);return fF(m),m});var c=Yk.get(t);if(c==null&&(c=!0),c){var f=function(g,v){return k(`
`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=BK([TK,IK,LK,PK,_K,FK]))(n,s),Yk.set(t,!1),Xk.set(t,d)}else{var p=Jk.get(t),d=Xk.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=Z4(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var y=q4(n);y&&Qk.set(e,y)}V4.set(e,n),Dv.set(e,n),Cv.set(n,e),Jk.set(t,s)}}function hF(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function gF(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function LE(t,e){if(t.clientHeighte||i>t&&a=e&&u>=n?i-t-r:a>e&&un?a-e+o:0}function vF(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Rt){return Rt!==a};if(!hF(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;hF(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&LE(f)&&!LE(document.documentElement)||f!=null&&LE(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),m=v.height,h=v.width,b=v.top,w=v.right,S=v.bottom,D=v.left,C=o==="start"||o==="nearest"?b:o==="end"?S:b+m/2,O=i==="center"?D+h/2:i==="end"?w:D,T=[],L=0;L=0&&D>=0&&S<=d&&w<=p&&b>=K&&S<=ut&&D>=yt&&w<=Z)return T;var mt=getComputedStyle(z),gt=parseInt(mt.borderLeftWidth,10),B=parseInt(mt.borderTopWidth,10),x=parseInt(mt.borderRightWidth,10),j=parseInt(mt.borderBottomWidth,10),U=0,X=0,W="offsetWidth"in z?z.offsetWidth-z.clientWidth-gt-x:0,dt="offsetHeight"in z?z.offsetHeight-z.clientHeight-B-j:0;if(l===z)U=o==="start"?C:o==="end"?C-d:o==="nearest"?_v(g,g+d,d,B,j,g+C,g+C+m,m):C-d/2,X=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:_v(y,y+p,p,gt,x,y+O,y+O+h,h),U=Math.max(0,U+g),X=Math.max(0,X+y);else{U=o==="start"?C-K-B:o==="end"?C-ut+j+dt:o==="nearest"?_v(K,ut,Y,B,j+dt,C,C+m,m):C-(K+Y/2)+dt/2,X=i==="start"?O-yt-gt:i==="center"?O-(yt+G/2)+W/2:i==="end"?O-Z+x+W:_v(yt,Z,G,gt,x+W,O,O+h,h);var Dt=z.scrollLeft,Tt=z.scrollTop;C+=Tt-(U=Math.max(0,Math.min(Tt+U,z.scrollHeight-Y+dt))),O+=Dt-(X=Math.max(0,Math.min(Dt+X,z.scrollWidth-G+W)))}T.push({el:z,top:U,left:X})}return T}function mF(t){return t===Object(t)&&Object.keys(t).length!==0}function uo(t,e){return bs(e)&&A.hasDOMNode(t,e,{editable:!0})}function yF(t,e){if(t.getConfig().readOnly)return!1;var n=gc(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function gc(t,e){return bs(e)&&A.hasDOMNode(t,e)}function bF(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=V4.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&M.equals(l,r)){var c=!0;if(M.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,y=void 0;(y=d[p])&&y.matches("table")&&(c=!1),(y=d[p-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,r);if(g){M.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(mF(b)&&typeof b.behavior=="function")return b.behavior(w?[]:vF(h,b));if(!w){var S=function(D){return D===!1?{block:"end",inline:"nearest"}:mF(D)?D:{block:"start",inline:"nearest"}}(b);(function(D,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;D.forEach(function(T){var L=T.el,z=T.top,$=T.left;L.scroll&&O?L.scroll({top:z,left:$,behavior:C}):(L.scrollTop=z,L.scrollLeft=$)})})(vF(h,S),S.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&Wd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var RE=new WeakMap,wF=new WeakMap,zQ={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},$Q={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},HQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Le=function(t){var e=zQ[t],n=$Q[t],r=HQ[t],o=e&&lw(e),i=n&&lw(n),a=r&&lw(r);return function(u){return!(!o||!o(u))||!!(Y4&&i&&i(u))||!(Y4||!a||!a(u))}},He={isBold:Le("bold"),isCompose:Le("compose"),isMoveBackward:Le("moveBackward"),isMoveForward:Le("moveForward"),isDeleteBackward:Le("deleteBackward"),isDeleteForward:Le("deleteForward"),isDeleteLineBackward:Le("deleteLineBackward"),isDeleteLineForward:Le("deleteLineForward"),isDeleteWordBackward:Le("deleteWordBackward"),isDeleteWordForward:Le("deleteWordForward"),isExtendBackward:Le("extendBackward"),isExtendForward:Le("extendForward"),isExtendLineBackward:Le("extendLineBackward"),isExtendLineForward:Le("extendLineForward"),isItalic:Le("italic"),isMoveLineBackward:Le("moveLineBackward"),isMoveLineForward:Le("moveLineForward"),isMoveWordBackward:Le("moveWordBackward"),isMoveWordForward:Le("moveWordForward"),isRedo:Le("redo"),isSplitBlock:Le("splitBlock"),isTransposeCharacter:Le("transposeCharacter"),isUndo:Le("undo"),isTab:Le("tab"),isSelectAll:Le("selectAll")};function yn(t){t.preventDefault()}var UQ={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(Kd&&!o&&uo(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=ae(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&M.equals(i,l)||I.select(n,l)}}if(i&&M.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!K4.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&uo(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Po(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&bs(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(bt.isElement(s)&&!n.isVoid(s))return}if(Gd){var l=a.getSelection();l==null||l.removeAllRanges()}ys.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,Wd&&t.target!==r?r.focus():ys.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&gc(n,t.target)&&bs(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&et.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&_.equals(u[1],s[1])){var l=E.range(n,i);I.select(n,l)}}}},compositionstart:function(t,e,n){if(uo(n,t.target)){var r=n.selection;if(r&&M.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){bF(e,n,!0)})),r&&M.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";RE.set(n,i),wF.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(uo(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(X4||Wd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=M.isBackward(o)?o.focus:o.anchor,a=ae(E.node(n,[i.path[0]]),1)[0],u=0;u0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Gd||setTimeout(function(){var f=n.selection;if(f!=null){var p=wF.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=RE.get(n)||"")}})}}}},compositionupdate:function(t,e,n){uo(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&uo(n,r.target)){if(function(a,u){var s=wv.get(a),l=s&&s.getMenus(),c=Ev.get(a),f=c&&c.getMenus(),p=oo(oo({},l),f);for(var d in p){var y=p[d],g=y.hotkey;if(g&&cq(g,u)&&!y.isDisabled(a)){var v=y.getValue(a);y.exec(a,v)}}}(n,r),He.isTab(r))return yn(r),void n.handleTab();if(He.isRedo(r))return yn(r),void(typeof n.redo=="function"&&n.redo());if(He.isUndo(r))return yn(r),void(typeof n.undo=="function"&&n.undo());if(He.isMoveLineBackward(r))return yn(r),void I.move(n,{unit:"line",reverse:!0});if(He.isMoveLineForward(r))return yn(r),void I.move(n,{unit:"line"});if(He.isExtendLineBackward(r))return yn(r),void I.move(n,{unit:"line",edge:"focus",reverse:!0});if(He.isExtendLineForward(r))return yn(r),void I.move(n,{unit:"line",edge:"focus"});if(He.isMoveBackward(r))return yn(r),void(o&&M.isCollapsed(o)?I.move(n,{reverse:!0}):I.collapse(n,{edge:"start"}));if(He.isMoveForward(r))return yn(r),void(o&&M.isCollapsed(o)?I.move(n):I.collapse(n,{edge:"end"}));if(He.isMoveWordBackward(r))return yn(r),o&&M.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word",reverse:!0});if(He.isMoveWordForward(r))return yn(r),o&&M.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word"});if(He.isSelectAll(r))return yn(r),void n.selectAll();if(Kd){if((X4||Gd)&&o&&(He.isDeleteBackward(r)||He.isDeleteForward(r))&&M.isCollapsed(o)){var i=et.parent(n,o.anchor.path);if(bt.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void I.delete(n,{unit:"block"})}}else{if(He.isBold(r)||He.isItalic(r)||He.isTransposeCharacter(r))return void yn(r);if(He.isSplitBlock(r))return yn(r),void E.insertBreak(n);if(He.isDeleteBackward(r))return yn(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(He.isDeleteForward(r))return yn(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(He.isDeleteLineBackward(r))return yn(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(He.isDeleteLineForward(r))return yn(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(He.isDeleteWordBackward(r))return yn(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(He.isDeleteWordForward(r))return yn(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!Kd&&!n.getConfig().readOnly&&uo(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(uo(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&uo(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(M.isExpanded(o))E.deleteFragment(n);else{var a=et.parent(n,o.anchor.path);E.isVoid(n,a)&&I.delete(n)}}},paste:function(t,e,n){K4.set(n,!0);var r=t;if(!n.getConfig().readOnly&&uo(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void K4.set(n,!1);if(!Kd||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(gc(n,t.target)){var r=A.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(gc(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.range(n,i);I.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&gc(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&gc(n,r.target)&&o!=null&&!(Kd&&Gd&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);I.select(n,a),e.isDraggingInternally&&(i&&I.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},VQ=1,WQ=function(){function t(e){var n=this;this.id=VQ++,this.$textArea=null,this.$progressBar=k('
'),this.$maxLengthInfo=k('
'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=ns(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=A.findDocumentOrShadowRoot(s),d=p.activeElement,y=A.toDOMNode(s,s),g=p.getSelection();if(d===y?(u.latestElement=d,ys.set(s,!0)):ys.delete(s),!g)return I.deselect(s);var v=g.anchorNode,m=g.focusNode,h=uo(s,v)||yF(s,v),b=uo(s,m)||yF(s,m);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});I.select(s,w)}else I.deselect(s)}})(n,a)},100);var r=k(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=k('
');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=k('
');o.append(i),this.$scroll=i,this.$textAreaContainer=o,ao(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=M4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(X2(UQ,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",ns(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;MQ(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=k('
'+a+"
");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),ao(function(){bF(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function ME(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&ME(e)}function zE(){return k('')}function EF(){return k('
')}function SF(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=Y4?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+` `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}x4("match",function(t,e,n){return[function(r){var o=ro(this),i=r==null?void 0:ds(r,t);return i?ie(i,r,o):new RegExp(r)[t](ke(o))},function(r){var o=on(this),i=ke(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Md(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Md(o,i))!==null;){var f=ke(s[0]);l[c]=f,f===""&&(o.lastIndex=A4(i,Yl(o.lastIndex),u)),c++}return c===0?null:l}]});var $E=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('
'),this.$button=k(''),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=k(f);ME(d),p.append(d)}else p.text(u);SF(p,f,u,l,r),r&&f&&p.append(k(''+u+"")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),ao(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Rr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=Rr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=Rr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=Rr(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),GQ=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return rc(e,t),e.prototype.onButtonClick=function(){},e}($E),HE=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=U4.get(e);n==null&&(n=new Set,U4.set(e,n)),n.add(this),Sv.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Sv.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Sv.get(this);e&&e.emit("modalOrPanelHide")}},t}(),KQ=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=k('
'),r}return rc(e,t),e.prototype.genSelfElem=function(){return null},e}(HE),qQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=zE();i.$button.append(a)}return i}return rc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Rr(this);if(this.dropPanel==null){var o=new KQ(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}($E),ZQ=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=k('
'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return rc(e,t),e.prototype.genSelfElem=function(){var n=this,r=k(''),o=Sv.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(HE);function Lr(t,e,n){var r=k('');r.append(""+t+"");var o=k('');return r.append(o),[r[0],o[0]]}function qmt(t,e,n){var r=k('');r.append(""+t+"");var o=k('');return r.append(o),[r[0],o[0]]}function vc(t,e){var n=k('
'),r=k('");return n.append(r),[n[0],r[0]]}var YQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=k("body"),i.modal=null,i.menu=r,i}return rc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=Rr(this),r=this.menu.getModalPositionNode(n);return bt.isElement(r)?TE(n,r,"modal"):FE(n)},e.prototype.handleModal=function(){var n=Rr(this),r=this.menu;if(this.modal==null){var o=new ZQ(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=Rr(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||PE(o,n.$elem),setTimeout(function(){o.blur()})}},e}($E),XQ=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=k('
'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return rc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=k("
    ");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=k('
  • ');if(l&&c.css(l),s){var f=k('');c.append(f),c.addClass("selected")}c.append(k(''+u+"")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(HE),JQ=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('
    '),this.$button=k(''),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),SF(p,l,a,f,r),this.$elem.append(p),this.menu=n,ao(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Rr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=Rr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new XQ(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=k(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=Rr(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=Rr(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f'),this.$container=k('
    '),this.$button=k('');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=k(r);ME(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=zE();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){k(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),DF=new WeakMap;function Rr(t){var e=H4.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function xF(t,e,n){n===void 0&&(n=!1);var r=DF.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new qQ(t,e,n):a?new YQ(t,e,n):new GQ(t,e,n)}if(o==="select"&&(r=new JQ(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return DF.set(e,r),r}function QQ(t,e){var n=t.selection;return n!=null&&!M.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!ft.isText(e)}var ttt=function(){function t(){var e=this;this.$elem=k('
    '),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=q9(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&bt.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),ao(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;ao(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=EF();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=qd[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=xF(e,o);this.hoverbarItems.push(a),H4.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),bt.isElement(e)){var o=TE(n,e,"bar");return r.css(o),void PE(n,r)}if(ft.isText(e))return o=FE(n),r.css(o),void PE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(g,v){return A.checkNodeType(v,u)},d=ae(E.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),y=d[0];if(y!=null)return r=y[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=$4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=QQ),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return _.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function AF(t,e,n,r){if(Vd.set(t,e),ic.set(t,n),bt.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return AF(u,s,t,r)}),E.isVoid(r,t)){var i=ae(et.texts(t),1),a=ae(i[0],1)[0];Vd.set(a,0),ic.set(a,t)}}}function ett(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:S}=w;if(S.length>0){var D=S[S.length-1];tc.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of D)h.apply(C)})}),w.redos.pop(),w.undos.push(D)}},h.undo=()=>{var{history:w}=h,{undos:S}=w;if(S.length>0){var D=S[S.length-1];tc.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=D.map(ba.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(D),w.undos.pop()}},h.apply=w=>{var{operations:S,history:D}=h,{undos:C}=D,O=C[C.length-1],T=O&&O[O.length-1],L=((G,K)=>!(!K||G.type!=="set_selection"||K.type!=="set_selection"))(w,T),z=tc.isSaving(h),$=tc.isMerging(h);if(z==null&&(z=((G,K)=>G.type!=="set_selection"||G.properties!=null&&G.newProperties!=null)(w)),z){if($==null&&($=O!=null&&(S.length!==0||((G,K)=>G.type==="set_selection"||!(!K||G.type!=="insert_text"||K.type!=="insert_text"||G.offset!==K.offset+K.text.length||!_.equals(G.path,K.path))||!(!K||G.type!=="remove_text"||K.type!=="remove_text"||G.offset+G.text.length!==K.offset||!_.equals(G.path,K.path)))(w,T)||L)),O&&$)L&&O.pop(),O.push(w);else{var Y=[w];C.push(Y)}for(;C.length>100;)C.shift();(G=>G.type!=="set_selection")(w)&&(D.redos=[])}b(w)},h})(function(m){var h=m,b=h.insertText,w=h.insertNode,S=h.insertFragment,D=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O0&&w.removeAllRanges(),b&&I.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||I.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=G4.get(h);b!=null&&(h.focus(),I.select(h,b))},h.getSelectionPosition=function(){return FE(h)},h.getNodePosition=function(b){return TE(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=ae(M.edges(b),2),S=w[0],D=w[1],C=ae(E.edges(h,[]),2),O=C[0],T=C[1];return!(!Ut.equals(S,O)||!Ut.equals(D,T))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);I.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,S=h.apply,D=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,T,L,z,$,Y,G,K,Z=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var ut=io(E.levels(h,{at:C.path})),yt=ut.next();!yt.done;yt=ut.next()){var mt=ae(yt.value,2),gt=mt[0],B=mt[1],x=A.findKey(h,gt);Z.push([B,x])}}catch(te){O={error:te}}finally{try{yt&&!yt.done&&(T=ut.return)&&T.call(ut)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var j=io(E.levels(h,{at:_.parent(C.path)})),U=j.next();!U.done;U=j.next()){var X=ae(U.value,2);gt=X[0],B=X[1],x=A.findKey(h,gt),Z.push([B,x])}}catch(te){L={error:te}}finally{try{U&&!U.done&&(z=j.return)&&z.call(j)}finally{if(L)throw L.error}}break;case"move_node":try{for(var W=io(E.levels(h,{at:_.common(_.parent(C.path),_.parent(C.newPath))})),dt=W.next();!dt.done;dt=W.next()){var Dt=ae(dt.value,2);gt=Dt[0],B=Dt[1],x=A.findKey(h,gt),Z.push([B,x])}}catch(te){$={error:te}}finally{try{dt&&!dt.done&&(Y=W.return)&&Y.call(W)}finally{if($)throw $.error}}}S(C);try{for(var Tt=io(Z),Rt=Tt.next();!Rt.done;Rt=Tt.next()){var q=ae(Rt.value,2);B=q[0],x=q[1],gt=ae(E.node(h,B),1)[0],xv.set(gt,x)}}catch(te){G={error:te}}finally{try{Rt&&!Rt.done&&(K=Tt.return)&&K.call(Tt)}finally{if(G)throw G.error}}},h.deleteBackward=function(C){if(C!=="line")return D(C);if(m.selection&&M.isCollapsed(m.selection)){var O=E.above(m,{match:function($){return E.isBlock(m,$)},at:m.selection});if(O){var T=ae(O,2)[1],L=E.range(m,T,m.selection.anchor),z=function($,Y){var G=E.range($,M.end(Y)),K=Array.from(E.positions($,{at:Y})),Z=0,ut=K.length,yt=Math.floor(ut/2);if($B($,E.range($,K[Z]),G))return E.range($,K[Z],G);if(K.length<2)return E.range($,K[K.length-1],G);for(;yt!==K.length&&yt!==Z;)$B($,E.range($,K[yt]),G)?ut=yt:Z=yt,yt=Math.floor((Z+ut)/2);return E.range($,K[ut],G)}(h,L);M.isCollapsed(z)||I.delete(m,{at:z})}}},h.onChange=function(){var C=h.selection;C!=null&&G4.set(h,C),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return RB(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return et.string(O)}).join(` `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(m,C)},h.getElemsByType=function(C,O){var T,L;O===void 0&&(O=!1);var z=[],$=E.nodes(h,{at:[],universal:!0});try{for(var Y=io($),G=Y.next();!G.done;G=Y.next()){var K=ae(G.value,1)[0];if(bt.isElement(K)&&(O?K.type.indexOf(C)>=0:K.type===C)){var Z=MB(A.findKey(h,K).id);z.push(oo(oo({},K),{id:Z}))}}}catch(ut){T={error:ut}}finally{try{G&&!G.done&&(L=Y.return)&&L.call(Y)}finally{if(T)throw T.error}}return z},h.getElemsByTypePrefix=function(C){return h.getElemsByType(C,!0)},h.isEmpty=function(){var C=h.children,O=C===void 0?[]:C;if(O.length>1)return!1;var T=O[0];if(T==null)return!0;if(bt.isElement(T)&&T.type==="paragraph"){var L=T.children,z=L===void 0?[]:L;if(z.length>1)return!1;var $=z[0];if($==null||ft.isText($)&&$.text==="")return!0}return!1},h.clear=function(){I.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&I.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var T=document.createElement("div");T.innerHTML=C;var L=Array.from(T.childNodes);if(L=L.filter(function(G){var K=G.nodeType,Z=G.nodeName;return K===oi.TEXT_NODE||K===oi.ELEMENT_NODE&&!eF.has(Z.toLowerCase())}),L.length!==0){var z=h.selection;if(z!=null){var $=null;A.isSelectedEmptyParagraph(h)&&!O&&($=[z.focus.path[0]]),T.setAttribute("hidden","true"),document.body.appendChild(T);var Y=0;L.forEach(function(G){var K=G.nodeType,Z=G.nodeName,ut=G.textContent,yt=ut===void 0?"":ut;if(K!==oi.TEXT_NODE)if(Z!=="BR"){var mt=G,gt=!1;if(HB.includes(Z.toLowerCase()))gt=!0;else for(var B in Bv)if(mt.matches(B)){gt=!0;break}if(gt){var x=DE(k(mt),h);return Array.isArray(x)?(x.forEach(function(U){return nF(h,U)}),Y++):(nF(h,x),Y++),void(A.isSelectedVoidNode(h)&&h.move(1))}var j=window.getComputedStyle(mt).display;A.isSelectedEmptyParagraph(h)||j.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(mt.innerHTML,!0)}else h.insertText(` `);else{if(!yt||!yt.trim())return;h.insertNode({text:yt})}}),Y&&$&&A.isEmptyPath(h,$)&&I.removeNodes(h,{at:$}),T.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),T=h.isFocused(),L=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var z=JB(h,C);if(I.insertFragment(h,z),T||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(L))}catch($){h.select(E.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in qd)b.push(w);return b},h.getConfig=function(){var b=Zk.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var S=h.getConfig().customAlert;S&&S(b,w)},h}(function(m){var h=hQ(LW());return h.id="wangEditor-"+SJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),ys.set(h,!0),b){var w=E.end(h,[]);I.select(h,w)}else{var S=G4.get(h);S?I.select(h,S):I.select(h,E.start(h,[]))}},h.isFocused=function(){return!!ys.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),I.deselect(h),ys.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),R4.delete(h),M4.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),wv.delete(h),z4.delete(w));var S=A.getHoverbar(h);S&&(S.destroy(),Ev.delete(h),$4.delete(S)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="\u7F16\u8F91\u5668\u7981\u7528\u4E86 scroll \uFF0C\u7F16\u8F91\u5668\u5185\u5BB9\u65E0\u6CD5\u6EDA\u52A8\uFF0C\u8BF7\u81EA\u884C\u5B9E\u73B0\u8BE5\u529F\u80FD";return w+=` You has disabled editor scroll, please do this yourself`,void console.warn(w)}var S=k("#"+b);if(S.length!==0){var D=S[0];if(!A.hasDOMNode(h,D))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=` \u901A\u8FC7 id '`+b+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(w,D);var C=A.getTextarea(h),O=C.$textAreaContainer,T=C.$scroll,L=S.offset().top,z=O.offset().top;T[0].scrollBy({top:L-z,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=U4.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var S=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==S[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent \u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);S.addClass("w-e-full-screen-container");var D=S.css("z-index");S.attr("data-z-index",D.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(m,h){return XB(m,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var h=Z9(uB),b={},w=m.MENU_CONF,S=w===void 0?{}:w;return X2(h,function(D,C){b[C]=oo(oo({},D),S[C]||{})}),delete m.MENU_CONF,oo({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(D,C){window.alert(C+`: `+D)}},m)}(o);Zk.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=JB(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var d=new WQ(n);R4.set(l,d),M4.set(d,l),d.changeViewState(),ao(function(){var m=d.$scroll;m!=null&&m.height()<300&&console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38 Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var y=void 0;Object.keys(p).length>0&&(y=new ttt,$4.set(y,l),Ev.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return AF(m,h,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),v&&l.on("destroyed",function(){return v(l)}),ao(function(){return l.emit("created")}),l}var ntt=lv("splice"),rtt=Q.TypeError,ott=Math.max,itt=Math.min;$e({target:"Array",proto:!0,forced:!ntt},{splice:function(t,e){var n,r,o,i,a,u,s=Ba(this),l=gs(s),c=Jl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=itt(ott(Bd(e),0),l-c)),l+n-r>9007199254740991)throw rtt("Maximum allowed length exceeded");for(o=KO(s,r),i=0;il-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=q9(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=k(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),ao(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=Z9(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,g){f.splice(s.index+g,0,y)}));var p=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),d=p.length;p.forEach(function(y,g){if(y==="|"){if(g===0||g+1===d||n==="|")return;var v=EF();return r.append(v),void(n=y)}if(typeof y=="string")return e.registerSingleItem(y,e),void(n=y);e.registerGroup(y),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new CF(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof CF,i=this.menus,a=i[e];if(a==null){var u=qd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`' \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+e+"'");var s=xF(e,a,o);this.toolbarItems.push(s),H4.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=z4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),utt=Zl.EXISTS,stt=Bo.f,OF=Function.prototype,ltt=Et(OF.toString),kF=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ctt=Et(kF.exec);function BF(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,y=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(Y){return Y}:b,S=t.onSuccess,D=S===void 0?function(Y,G){}:S,C=t.onError,O=C===void 0?function(Y,G,K){console.error(Y.name+" upload error",G,K)}:C,T=t.onProgress,L=T===void 0?function(Y){}:T;if(!n)throw new Error(`Cannot get upload server address \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!o)throw new Error(`Cannot get fieldName \u6CA1\u6709\u914D\u7F6E fieldName`);var z=n;p&&(z=function(Y,G){var K=ae(Y.split("#"),2),Z=K[0],ut=K[1],yt=[];X2(G,function(gt,B){yt.push(B+"="+gt)});var mt=yt.join("&");return Z=Z.indexOf("?")>0?Z+"&"+mt:Z+"?"+mt,ut?Z+"#"+ut:Z}(z,c));var $=new md({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(LZ,{endpoint:z,headers:y,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return $.on("upload-success",function(Y,G){var K=G.body,Z=K===void 0?{}:K;try{D(Y,Z)}catch(ut){console.error("wangEditor upload file - onSuccess error",ut)}$.removeFile(Y.id)}),$.on("progress",function(Y){Y<1||L(Y)}),$.on("upload-error",function(Y,G,K){try{O(Y,G,K)}catch(Z){console.error("wangEditor upload file - onError error",Z)}$.removeFile(Y.id)}),$.on("restriction-failed",function(Y,G){try{O(Y,G)}catch(K){console.error("wangEditor upload file - onError error",K)}$.removeFile(Y.id)}),$}function Ia(t){return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(t)}function ftt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bn(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};Hi(this,t),this.init(e,n)}return Ui(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||dtt,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r1?n-1:0),o=1;o-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function PF(t,e,n){var r=VE(t,e,Object);r.obj[r.k]=n}function Nv(t,e){var n=VE(t,e),r=n.obj,o=n.k;if(r)return r[o]}function jF(t,e,n){var r=Nv(t,n);return r!==void 0?r:Nv(e,n)}function _F(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):_F(t[r],e[r],n):t[r]=e[r]);return t}function yc(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var htt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function gtt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return htt[e]}):t}var Lv=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function IF(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;ii+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?IF(s,l,n):void 0}o=o[r[i]]}return o}}var vtt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Hi(this,e),r=op(this,mc(e).call(this)),Lv&&Na.call(Cs(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return Iv(e,Na),Ui(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Nv(this.data,s);return l||!u||typeof o!="string"?l:IF(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),PF(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=Nv(this.data,s)||{};i?_F(l,o,a):l=bn({},l,o),PF(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?bn({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),NF={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},LF={},RF=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Hi(this,e),r=op(this,mc(e).call(this)),Lv&&Na.call(Cs(r)),ptt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Cs(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Vi.create("translator"),r}return Iv(e,Na),Ui(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(Ia(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var y=this.resolve(n,r),g=y&&y.res,v=y&&y.usedKey||s,m=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(S&&g&&D&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,bn({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},T=C?m:v;for(var L in g)if(Object.prototype.hasOwnProperty.call(g,L)){var z="".concat(T).concat(a).concat(L);O[L]=this.translate(z,bn({},r,{joinArrays:!1,ns:l})),O[L]===z&&(O[L]=g[L])}g=O}}else if(S&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var $=!1,Y=!1,G=r.count!==void 0&&typeof r.count!="string",K=e.hasDefaultValue(r),Z=G?this.pluralResolver.getSuffix(f,r.count):"",ut=r["defaultValue".concat(Z)]||r.defaultValue;!this.isValidLookup(g)&&K&&($=!0,g=ut),this.isValidLookup(g)||(Y=!0,g=s);var yt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,mt=yt&&Y?void 0:g,gt=K&&ut!==g&&this.options.updateMissing;if(Y||$||gt){if(this.logger.log(gt?"updateKey":"missingKey",f,c,s,gt?ut:g),a){var B=this.resolve(s,bn({},r,{keySeparator:!1}));B&&B.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var x=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(var U=0;U1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var y=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(m){s.isValidLookup(r)||(u=m,!LF["".concat(v[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(LF["".concat(v[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,S=p,D=[S];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(D,p,h,m,l):(y&&(b=s.pluralResolver.getSuffix(h,l.count)),y&&g&&D.push(S+b),g&&D.push(S+="".concat(s.options.contextSeparator).concat(l.context)),y&&D.push(S+=b));w=D.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,m,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function WE(t){return t.charAt(0).toUpperCase()+t.slice(1)}var mtt=function(){function t(e){Hi(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vi.create("languageUtils")}return Ui(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=WE(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=WE(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=WE(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),ytt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],btt={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};function wtt(){var t={};return ytt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:btt[e.fc]}})}),t}var Ett=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Hi(this,t),this.languageUtils=e,this.options=n,this.logger=Vi.create("pluralResolver"),this.rules=wtt()}return Ui(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),Stt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hi(this,t),this.logger=Vi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return Ui(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:gtt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?yc(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?yc(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?yc(n.nestingPrefix):n.nestingPrefixEscaped||yc("$t("),this.nestingSuffix=n.nestingSuffix?yc(n.nestingSuffix):n.nestingSuffixEscaped||yc(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=jF(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,bn({},o,n,{interpolationkey:g})):v}var m=g.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(jF(n,l,h),b,r,bn({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return y.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(e,i,o);a=typeof v=="string"?v:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=TF(a));var m=g.safeValue(a);if(e=e.replace(i[0],m),d?(g.regex.lastIndex+=m.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=bn({},a);function s(p,d){var y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;var g=p.split(new RegExp("".concat(y,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),d&&(u=bn({},d,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(y).concat(v)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=TF(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,bn({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Ctt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Hi(this,e),i=op(this,mc(e).call(this)),Lv&&Na.call(Cs(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Vi.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Iv(e,Na),Ui(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var y="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,p=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var y=VE(c,f,Object),g=y.obj,v=y.k;g[v]=g[v]||[],g[v].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,bn({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function Dtt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(Ia(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),Ia(t[2])==="object"||Ia(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function MF(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Rv(){}var xtt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Hi(this,e),n=op(this,mc(e).call(this)),Lv&&Na.call(Cs(n)),n.options=MF(r),n.services={},n.logger=Vi,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),op(n,Cs(n));setTimeout(function(){n.init(r,o)},0)}return n}return Iv(e,Na),Ui(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=bn({},Dtt(),this.options,MF(r)),this.format=this.options.interpolation.format,o||(o=Rv),!this.options.isClone){this.modules.logger?Vi.init(i(this.modules.logger),this.options):Vi.init(null,this.options);var a=new mtt(this.options);this.store=new vtt(this.options.resources,this.options);var u=this.services;u.logger=Vi,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Ett(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Stt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Ctt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v1?y-1:0),v=1;v0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments),n}});var f=ip(),p=function(){var d=function(y,g){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(g),o(y,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rv,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=ip();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Rv),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&NF.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=ip();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(Ia(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=ip();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=ip();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rv,i=bn({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=bn({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new RF(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;fh;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:VF(w,p)}else switch(t){case 4:return!1;case 7:VF(w,p)}return i?-1:r||o?o:w}},jtt={forEach:La(0),map:La(1),filter:La(2),some:La(3),every:La(4),find:La(5),findIndex:La(6),filterReject:La(7)}.forEach,_tt=function(t,e){var n=[][t];return!!n&&Tn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),KE=_tt?[].forEach:function(t){return jtt(this,t,arguments.length>1?arguments[1]:void 0)},WF=function(t){if(t&&t.forEach!==KE)try{fr(t,"forEach",KE)}catch(e){t.forEach=KE}};for(var qE in ug)ug[qE]&&WF(Nt[qE]&&Nt[qE].prototype);WF(_A),Er("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Er("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var Itt={type:"paragraph",renderElem:function(t,e,n){return Pt("p",null,e)}},Mv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof ot.g!="undefined"?ot.g:typeof self!="undefined"?self:{};function zv(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ra,$v,Hv=function(t){return t&&t.Math==Math&&t},zt=Hv(typeof globalThis=="object"&&globalThis)||Hv(typeof window=="object"&&window)||Hv(typeof self=="object"&&self)||Hv(typeof Mv=="object"&&Mv)||function(){return this}()||Function("return this")(),Ue=function(t){try{return!!t()}catch(e){return!0}},jo=!Ue(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),up=Function.prototype.call,Xe=up.bind?up.bind(up):function(){return up.apply(up,arguments)},GF={}.propertyIsEnumerable,KF=Object.getOwnPropertyDescriptor,Ntt=KF&&!GF.call({1:2},1)?function(t){var e=KF(this,t);return!!e&&e.enumerable}:GF,qF={f:Ntt},ZE=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ZF=Function.prototype,YE=ZF.bind,XE=ZF.call,Ltt=YE&&YE.bind(XE),Ft=YE?function(t){return t&&Ltt(XE,t)}:function(t){return t&&function(){return XE.apply(t,arguments)}},Rtt=Ft({}.toString),Mtt=Ft("".slice),Ma=function(t){return Mtt(Rtt(t),8,-1)},JE=zt.Object,ztt=Ft("".split),Uv=Ue(function(){return!JE("z").propertyIsEnumerable(0)})?function(t){return Ma(t)=="String"?ztt(t,""):JE(t)}:JE,$tt=zt.TypeError,so=function(t){if(t==null)throw $tt("Can't call method on "+t);return t},wc=function(t){return Uv(so(t))},Un=function(t){return typeof t=="function"},lo=function(t){return typeof t=="object"?t!==null:Un(t)},Htt=function(t){return Un(t)?t:void 0},sp=function(t,e){return arguments.length<2?Htt(zt[t]):zt[t]&&zt[t][e]},YF=Ft({}.isPrototypeOf),QE=sp("navigator","userAgent")||"",XF=zt.process,JF=zt.Deno,QF=XF&&XF.versions||JF&&JF.version,tT=QF&&QF.v8;tT&&($v=(Ra=tT.split("."))[0]>0&&Ra[0]<4?1:+(Ra[0]+Ra[1])),!$v&&QE&&(!(Ra=QE.match(/Edge\/(\d+)/))||Ra[1]>=74)&&(Ra=QE.match(/Chrome\/(\d+)/))&&($v=+Ra[1]);var tS=$v,eS=!!Object.getOwnPropertySymbols&&!Ue(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tS&&tS<41}),nS=eS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Utt=zt.Object,rS=nS?function(t){return typeof t=="symbol"}:function(t){var e=sp("Symbol");return Un(e)&&YF(e.prototype,Utt(t))},Vtt=zt.String,eT=function(t){try{return Vtt(t)}catch(e){return"Object"}},Wtt=zt.TypeError,nT=function(t){if(Un(t))return t;throw Wtt(eT(t)+" is not a function")},Vv=function(t,e){var n=t[e];return n==null?void 0:nT(n)},Gtt=zt.TypeError,Ktt=Object.defineProperty,oS=function(t,e){try{Ktt(zt,t,{value:e,configurable:!0,writable:!0})}catch(n){zt[t]=e}return e},za=zt["__core-js_shared__"]||oS("__core-js_shared__",{}),iS=zv(function(t){(t.exports=function(e,n){return za[e]||(za[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),qtt=zt.Object,lp=function(t){return qtt(so(t))},Ztt=Ft({}.hasOwnProperty),co=Object.hasOwn||function(t,e){return Ztt(lp(t),e)},Ytt=0,Xtt=Math.random(),Jtt=Ft(1 .toString),rT=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Jtt(++Ytt+Xtt,36)},cp=iS("wks"),Ds=zt.Symbol,oT=Ds&&Ds.for,Qtt=nS?Ds:Ds&&Ds.withoutSetter||rT,Mr=function(t){if(!co(cp,t)||!eS&&typeof cp[t]!="string"){var e="Symbol."+t;eS&&co(Ds,t)?cp[t]=Ds[t]:cp[t]=nS&&oT?oT(e):Qtt(e)}return cp[t]},tet=zt.TypeError,eet=Mr("toPrimitive"),aS=function(t){var e=function(n,r){if(!lo(n)||rS(n))return n;var o,i=Vv(n,eet);if(i){if(r===void 0&&(r="default"),o=Xe(i,n,r),!lo(o)||rS(o))return o;throw tet("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Un(s=a.toString)&&!lo(l=Xe(s,a))||Un(s=a.valueOf)&&!lo(l=Xe(s,a))||u!=="string"&&Un(s=a.toString)&&!lo(l=Xe(s,a)))return l;throw Gtt("Can't convert object to primitive value")}(n,r)}(t,"string");return rS(e)?e:e+""},uS=zt.document,net=lo(uS)&&lo(uS.createElement),sS=function(t){return net?uS.createElement(t):{}},iT=!jo&&!Ue(function(){return Object.defineProperty(sS("div"),"a",{get:function(){return 7}}).a!=7}),aT=Object.getOwnPropertyDescriptor,lS={f:jo?aT:function(t,e){if(t=wc(t),e=aS(e),iT)try{return aT(t,e)}catch(n){}if(co(t,e))return ZE(!Xe(qF.f,t,e),t[e])}},ret=zt.String,oet=zt.TypeError,zr=function(t){if(lo(t))return t;throw oet(ret(t)+" is not an object")},iet=zt.TypeError,uT=Object.defineProperty,Ec={f:jo?uT:function(t,e,n){if(zr(t),e=aS(e),zr(n),iT)try{return uT(t,e,n)}catch(r){}if("get"in n||"set"in n)throw iet("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Sc=jo?function(t,e,n){return Ec.f(t,e,ZE(1,n))}:function(t,e,n){return t[e]=n,t},aet=Ft(Function.toString);Un(za.inspectSource)||(za.inspectSource=function(t){return aet(t)});var Wv,fp,Gv,cS=za.inspectSource,sT=zt.WeakMap,uet=Un(sT)&&/native code/.test(cS(sT)),lT=iS("keys"),cT=function(t){return lT[t]||(lT[t]=rT(t))},fS={},dS=zt.TypeError,set=zt.WeakMap;if(uet||za.state){var xs=za.state||(za.state=new set),cet=Ft(xs.get),fT=Ft(xs.has),fet=Ft(xs.set);Wv=function(t,e){if(fT(xs,t))throw new dS("Object already initialized");return e.facade=t,fet(xs,t,e),e},fp=function(t){return cet(xs,t)||{}},Gv=function(t){return fT(xs,t)}}else{var Cc=cT("state");fS[Cc]=!0,Wv=function(t,e){if(co(t,Cc))throw new dS("Object already initialized");return e.facade=t,Sc(t,Cc,e),e},fp=function(t){return co(t,Cc)?t[Cc]:{}},Gv=function(t){return co(t,Cc)}}var pS={set:Wv,get:fp,has:Gv,enforce:function(t){return Gv(t)?fp(t):Wv(t,{})},getterFor:function(t){return function(e){var n;if(!lo(e)||(n=fp(e)).type!==t)throw dS("Incompatible receiver, "+t+" required");return n}}},dT=Function.prototype,det=jo&&Object.getOwnPropertyDescriptor,hS=co(dT,"name"),Kv={EXISTS:hS,PROPER:hS&&function(){}.name==="something",CONFIGURABLE:hS&&(!jo||jo&&det(dT,"name").configurable)},dp=zv(function(t){var e=Kv.CONFIGURABLE,n=pS.get,r=pS.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Un(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!co(u,"name")||e&&u.name!==d)&&Sc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==zt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Sc(i,a,u)):f?i[a]=u:oS(a,u)})(Function.prototype,"toString",function(){return Un(this)&&n(this).source||cS(this)})}),pet=Math.ceil,het=Math.floor,Dc=function(t){var e=+t;return e!=e||e===0?0:(e>0?het:pet)(e)},get=Math.max,vet=Math.min,pp=function(t,e){var n=Dc(t);return n<0?get(n+e,0):vet(n,e)},met=Math.min,hp=function(t){return t>0?met(Dc(t),9007199254740991):0},qv=function(t){return hp(t.length)},pT=function(t){return function(e,n,r){var o,i=wc(e),a=qv(i),u=pp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},hT={includes:pT(!0),indexOf:pT(!1)},yet=hT.indexOf,gT=Ft([].push),vT=function(t,e){var n,r=wc(t),o=0,i=[];for(n in r)!co(fS,n)&&co(r,n)&&gT(i,n);for(;e.length>o;)co(r,n=e[o++])&&(~yet(i,n)||gT(i,n));return i},Zv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bet=Zv.concat("length","prototype"),wet={f:Object.getOwnPropertyNames||function(t){return vT(t,bet)}},mT={f:Object.getOwnPropertySymbols},Eet=Ft([].concat),Cet=sp("Reflect","ownKeys")||function(t){var e=wet.f(zr(t)),n=mT.f;return n?Eet(e,n(t)):e},Det=function(t,e){for(var n=Cet(e),r=Ec.f,o=lS.f,i=0;ih;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:CT(w,p)}else switch(t){case 4:return!1;case 7:CT(w,p)}return i?-1:r||o?o:w}},Xv={forEach:$a(0),map:$a(1),filter:$a(2),some:$a(3),every:$a(4),find:$a(5),findIndex:$a(6),filterReject:$a(7)},zet=Mr("species"),bS=function(t){return tS>=51||!Ue(function(){var e=[];return(e.constructor={})[zet]=function(){return{foo:1}},e[t](Boolean).foo!==1})},$et=Xv.filter;xn({target:"Array",proto:!0,forced:!bS("filter")},{filter:function(t){return $et(this,t,arguments.length>1?arguments[1]:void 0)}});var Het=gS?{}.toString:function(){return"[object "+vS(this)+"]"};gS||dp(Object.prototype,"toString",Het,{unsafe:!0});var Jv,Uet=zt.String,Ve=function(t){if(vS(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Uet(t)},DT=function(){var t=zr(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},wS=zt.RegExp,ES=Ue(function(){var t=wS("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Vet=ES||Ue(function(){return!wS("a","y").sticky}),xT={BROKEN_CARET:ES||Ue(function(){var t=wS("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Vet,UNSUPPORTED_Y:ES},xc=Object.keys||function(t){return vT(t,Zv)},Wet=jo?Object.defineProperties:function(t,e){zr(t);for(var n,r=wc(e),o=xc(e),i=o.length,a=0;i>a;)Ec.f(t,n=o[a++],r[n]);return t},Get=sp("document","documentElement"),AT=cT("IE_PROTO"),SS=function(){},OT=function(t){return""},kT=function(t){t.write(OT("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qv=function(){try{Jv=new ActiveXObject("htmlfile")}catch(r){}var t,e;Qv=typeof document!="undefined"?document.domain&&Jv?kT(Jv):((e=sS("iframe")).style.display="none",Get.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(OT("document.F=Object")),t.close(),t.F):kT(Jv);for(var n=Zv.length;n--;)delete Qv.prototype[Zv[n]];return Qv()};fS[AT]=!0;var BT,CS,FT=Object.create||function(t,e){var n;return t!==null?(SS.prototype=zr(t),n=new SS,SS.prototype=null,n[AT]=t):n=Qv(),e===void 0?n:Wet(n,e)},Ket=zt.RegExp,qet=Ue(function(){var t=Ket(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),Zet=zt.RegExp,Yet=Ue(function(){var t=Zet("(?
    b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),Xet=pS.get,Jet=iS("native-string-replace",String.prototype.replace),t1=RegExp.prototype.exec,DS=t1,Qet=Ft("".charAt),tnt=Ft("".indexOf),ent=Ft("".replace),xS=Ft("".slice),AS=(CS=/b*/g,Xe(t1,BT=/a/,"a"),Xe(t1,CS,"a"),BT.lastIndex!==0||CS.lastIndex!==0),TT=xT.BROKEN_CARET,OS=/()??/.exec("")[1]!==void 0;(AS||OS||TT||qet||Yet)&&(DS=function(t){var e,n,r,o,i,a,u,s=this,l=Xet(s),c=Ve(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Xe(DS,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=TT&&s.sticky,y=Xe(DT,s),g=s.source,v=0,m=c;if(d&&(y=ent(y,"y",""),tnt(y,"g")===-1&&(y+="g"),m=xS(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Qet(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),OS&&(n=new RegExp("^"+g+"$(?!\\s)",y)),AS&&(r=s.lastIndex),o=Xe(t1,d?n:s,m),d?o?(o.input=xS(o.input,v),o[0]=xS(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:AS&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),OS&&o&&o.length>1&&Xe(Jet,o[0],n,function(){for(i=1;i=u?t?"":void 0:(r=IT(i,a))<55296||r>56319||a+1===u||(o=IT(i,a+1))<56320||o>57343?t?ont(i,a):r:t?int(i,a,a+2):o-56320+(r-55296<<10)+65536}},ant=(NT(!1),NT(!0)),TS=function(t,e,n){return e+(n?ant(t,e).length:1)},unt=Math.floor,PS=Ft("".charAt),snt=Ft("".replace),jS=Ft("".slice),lnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cnt=/\$([$&'`]|\d{1,2})/g,fnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=cnt;return o!==void 0&&(o=lp(o),s=lnt),snt(i,s,function(l,c){var f;switch(PS(c,0)){case"$":return"$";case"&":return t;case"`":return jS(e,0,n);case"'":return jS(e,a);case"<":f=o[jS(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=unt(p/10);return d===0?l:d<=u?r[d-1]===void 0?PS(c,1):r[d-1]+PS(c,1):l}f=r[p-1]}return f===void 0?"":f})},dnt=zt.TypeError,yp=function(t,e){var n=t.exec;if(Un(n)){var r=Xe(n,t,e);return r!==null&&zr(r),r}if(Ma(t)==="RegExp")return Xe(mp,t,e);throw dnt("RegExp#exec called on incompatible receiver")},_S=Mr("replace"),pnt=Math.max,hnt=Math.min,gnt=Ft([].concat),IS=Ft([].push),LT=Ft("".indexOf),RT=Ft("".slice),vnt="a".replace(/./,"$0")==="$0",MT=!!/./[_S]&&/./[_S]("a","$0")==="";FS("replace",function(t,e,n){var r=MT?"$":"$0";return[function(o,i){var a=so(this),u=o==null?void 0:Vv(o,_S);return u?Xe(u,o,a,i):Xe(e,Ve(a),o,i)},function(o,i){var a=zr(this),u=Ve(o);if(typeof i=="string"&<(i,r)===-1&<(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=Un(i);l||(i=Ve(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=yp(a,u);if(d===null||(IS(p,d),!c))break;Ve(d[0])===""&&(a.lastIndex=TS(u,hp(a.lastIndex),f))}for(var y,g="",v=0,m=0;m=v&&(g+=RT(u,v,b)+O,v=b+h.length)}return g+RT(u,v)}]},!!Ue(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!vnt||MT);var NS=Mr("unscopables"),LS=Array.prototype;LS[NS]==null&&Ec.f(LS,NS,{configurable:!0,value:FT(null)});var zT=function(t){LS[NS][t]=!0},mnt=Xv.find,$T=!0;"find"in[]&&Array(1).find(function(){$T=!1}),xn({target:"Array",proto:!0,forced:$T},{find:function(t){return mnt(this,t,arguments.length>1?arguments[1]:void 0)}}),zT("find");var ynt=Mr("match"),HT=function(t){var e;return lo(t)&&((e=t[ynt])!==void 0?!!e:Ma(t)=="RegExp")},bnt=zt.TypeError,wnt=Mr("species"),UT=function(t,e,n){var r=aS(e);r in t?Ec.f(t,r,ZE(0,n)):t[r]=n},Ent=zt.Array,Snt=Math.max,VT=function(t,e,n){for(var r=qv(t),o=pp(e,r),i=pp(n===void 0?r:n,r),a=Ent(Snt(i-o,0)),u=0;o1||"".split(/.?/).length?function(o,i){var a=Ve(so(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!HT(o))return Xe(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Xe(mp,y,a))&&!((l=y.lastIndex)>d&&(Oc(f,bp(a,d,s.index)),s.length>1&&s.index=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&Dnt(y,"")||Oc(f,""):Oc(f,bp(a,d)),f.length>u?VT(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Xe(e,this,o,i)}:e,[function(o,i){var a=so(this),u=o==null?void 0:Vv(o,t);return u?Xe(u,o,a,i):Xe(r,Ve(a),o,i)},function(o,i){var a=zr(this),u=Ve(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,S){var D,C=zr(w).constructor;return C===void 0||(D=zr(C)[wnt])==null?S:function(O){if(yS(O))return O;throw bnt(eT(O)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ac?"g":"y"),p=new l(Ac?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return yp(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g"+t+"").children().filter(function(e){return e.tagName!=="BR"}).length===0}function kc(t){return t.length===0?"":t[0].outerHTML}function Bc(t){return t.length?t[0].tagName.toLowerCase():""}function _o(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function qT(t){var e=se(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!bt.isElement(n)||n.type==="paragraph"||et.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ft.isText(o[0])&&(I.setNodes(t,{type:"paragraph"}),!0)}var Tnt={renderElems:[Itt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"


    ":"

    "+e+"

    "}}],parseElemsHtml:[Fnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){qT(r)||e(o)},r.deleteForward=function(o){qT(r)||n(o)},r}},Pnt=/"/g,jnt=Ft("".replace),wp=function(t,e,n,r){var o=Ve(so(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+jnt(Ve(r),Pnt,""")+'"'),i+">"+o+""},Ep=function(t){return Ue(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function HS(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n=""+n+""),r.code&&(n=""+n+""),i&&(n=""+n+""),a&&(n=""+n+""),r.through&&(n=""+n+""),r.sub&&(n=""+n+""),r.sup&&(n=""+n+""),n}function As(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}xn({target:"String",proto:!0,forced:Ep("bold")},{bold:function(){return wp(this,"b","","")}}),xn({target:"String",proto:!0,forced:Ep("italics")},{italics:function(){return wp(this,"i","","")}}),xn({target:"String",proto:!0,forced:Ep("sub")},{sub:function(){return wp(this,"sub","","")}}),xn({target:"String",proto:!0,forced:Ep("sup")},{sup:function(){return wp(this,"sup","","")}});var ZT={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},US=sS("span").classList,YT=US&&US.constructor&&US.constructor.prototype,_nt=YT===Object.prototype?void 0:YT,XT=function(t,e){var n=[][t];return!!n&&Ue(function(){n.call(null,e||function(){throw 1},1)})},Int=Xv.forEach,VS=XT("forEach")?[].forEach:function(t){return Int(this,t,arguments.length>1?arguments[1]:void 0)},JT=function(t){if(t&&t.forEach!==VS)try{Sc(t,"forEach",VS)}catch(e){t.forEach=VS}};for(var WS in ZT)ZT[WS]&&JT(zt[WS]&&zt[WS].prototype);function QT(t,e){return t.selection==null||!!se(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function Nnt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}JT(_nt),xn({target:"Object",stat:!0,forced:Ue(function(){xc(1)})},{keys:function(t){return xc(lp(t))}});var Os=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!se(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return QT(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),Lnt='',Rnt='',Mnt='',znt='',$nt='',tP='',eP='',Hnt='',Unt='',Vnt='',Wnt='',Gnt='',Knt='',qnt='',Znt='',Ynt='',Xnt='',Jnt='',Qnt='',trt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=nt("textStyle.bold"),n.iconSvg=Lnt,n.hotkey="mod+b",n}return Re(e,t),e}(Os),ert=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=nt("textStyle.code"),n.iconSvg=$nt,n.hotkey="mod+e",n}return Re(e,t),e}(Os),nrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=nt("textStyle.italic"),n.iconSvg=Mnt,n.hotkey="mod+i",n}return Re(e,t),e}(Os),rrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=nt("textStyle.through"),n.iconSvg=znt,n.hotkey="mod+shift+x",n}return Re(e,t),e}(Os),ort=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=nt("textStyle.underline"),n.iconSvg=Rnt,n.hotkey="mod+u",n}return Re(e,t),e}(Os),irt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=nt("textStyle.sub"),n.iconSvg=Qnt,n.hotkey="",n}return Re(e,t),e}(Os),art=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=nt("textStyle.sup"),n.iconSvg=Jnt,n.hotkey="",n}return Re(e,t),e}(Os),urt=function(){function t(){this.title=nt("textStyle.clear"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return QT(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return ft.isText(s)},universal:!0});try{for(var a=KT(i),u=a.next();!u.done;u=a.next())Nnt(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),srt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=Pt("strong",null,c)),a&&(c=Pt("code",null,c)),o&&(c=Pt("em",null,c)),i&&(c=Pt("u",null,c)),u&&(c=Pt("s",null,c)),s&&(c=Pt("sub",null,c)),l&&(c=Pt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new trt}},{key:"underline",factory:function(){return new ort}},{key:"italic",factory:function(){return new nrt}},{key:"through",factory:function(){return new rrt}},{key:"code",factory:function(){return new ert}},{key:"sub",factory:function(){return new irt}},{key:"sup",factory:function(){return new art}},{key:"clearStyle",factory:function(){return new urt}}],styleToHtml:function(t,e){if(!ft.isText(t))return e;if(zS(e))return HS(t,e);var n=k(e);if(Bc(n)==="br")return HS(t,"
    ");var r=n.html();return r=HS(t,r),n.html(r),kc(n)},parseStyleHtml:function(t,e,n){var r=k(t);if(!ft.isText(e))return e;var o=e;return As(r,"b,strong")&&(o.bold=!0),As(r,"i,em")&&(o.italic=!0),As(r,"u")&&(o.underline=!0),As(r,"s,strike")&&(o.through=!0),As(r,"sub")&&(o.sub=!0),As(r,"sup")&&(o.sup=!0),As(r,"code")&&(o.code=!0),o}};function Sp(t){return function(e,n,r){return Pt("h"+t,null,n)}}var lrt={type:"header1",renderElem:Sp(1)},crt={type:"header2",renderElem:Sp(2)},frt={type:"header3",renderElem:Sp(3)},drt={type:"header4",renderElem:Sp(4)},prt={type:"header5",renderElem:Sp(5)},hrt=Kv.PROPER,GS=RegExp.prototype,nP=GS.toString,grt=Ft(DT),vrt=Ue(function(){return nP.call({source:"a",flags:"b"})!="/a/b"}),mrt=hrt&&nP.name!="toString";(vrt||mrt)&&dp(RegExp.prototype,"toString",function(){var t=zr(this),e=Ve(t.source),n=t.flags;return"/"+e+"/"+Ve(n===void 0&&YF(GS,t)&&!("flags"in GS)?grt(t):n)},{unsafe:!0});var KS,yrt=zt.TypeError,rP=function(t){if(HT(t))throw yrt("The method doesn't accept regular expressions");return t},brt=Mr("match"),oP=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[brt]=!1,"/./"[t](e)}catch(r){}}return!1},wrt=lS.f,iP=Ft("".startsWith),Ert=Ft("".slice),Srt=Math.min,aP=oP("startsWith");function uP(t){var e=se(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=se(n,1)[0];return A.getNodeType(r)}function sP(t){return t.selection==null||!se(E.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function lP(t,e){e&&I.setNodes(t,{type:e})}xn({target:"String",proto:!0,forced:!(!aP&&(KS=wrt(String.prototype,"startsWith"),KS&&!KS.writable)||aP)},{startsWith:function(t){var e=Ve(so(this));rP(t);var n=hp(Srt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ve(t);return iP?iP(e,r,n):Ert(e,n,n+r.length)===r}});var Crt=function(){function t(){this.title=nt("header.title"),this.iconSvg='',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:nt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return uP(e)},t.prototype.isDisabled=function(e){return sP(e)},t.prototype.exec=function(e,n){lP(e,n.toString())},t}(),Cp=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return uP(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return sP(e)},t.prototype.exec=function(e,n){var r=this.type;lP(e,n===r?"paragraph":r)},t}(),Drt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Re(e,t),e}(Cp),xrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Re(e,t),e}(Cp),Art=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Re(e,t),e}(Cp),Ort=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Re(e,t),e}(Cp),krt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Re(e,t),e}(Cp),Brt={key:"headerSelect",factory:function(){return new Crt}},Frt={key:"header1",factory:function(){return new Drt}},Trt={key:"header2",factory:function(){return new xrt}},Prt={key:"header3",factory:function(){return new Art}},jrt={key:"header4",factory:function(){return new Ort}},_rt={key:"header5",factory:function(){return new krt}};function Dp(t){return function(e,n){return""+n+""}}function xp(t){return function(e,n,r){var o=k(e);return(n=n.filter(function(i){return!!ft.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Irt={renderElems:[lrt,crt,frt,drt,prt],elemsToHtml:[{type:"header1",elemToHtml:Dp(1)},{type:"header2",elemToHtml:Dp(2)},{type:"header3",elemToHtml:Dp(3)},{type:"header4",elemToHtml:Dp(4)},{type:"header5",elemToHtml:Dp(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:xp(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:xp(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:xp(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:xp(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:xp(5)}],menus:[Brt,Frt,Trt,Prt,jrt,_rt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=se(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?I.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Fc=Object.assign,cP=Object.defineProperty,Nrt=Ft([].concat),fP=!Fc||Ue(function(){if(jo&&Fc({b:1},Fc(cP({},"a",{enumerable:!0,get:function(){cP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Fc({},t)[n]!=7||xc(Fc({},e)).join("")!=r})?function(t,e){for(var n=lp(t),r=arguments.length,o=1,i=mT.f,a=qF.f;r>o;)for(var u,s=Uv(arguments[o++]),l=i?Nrt(xc(s),i(s)):xc(s),c=l.length,f=0;c>f;)u=l[f++],jo&&!Xe(a,s,u)||(n[u]=s[u]);return n}:Fc;function ks(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}xn({target:"Object",stat:!0,forced:Object.assign!==fP},{assign:fP});var Lrt={selector:"font",preParseHtml:function(t){var e=k(t);if(Bc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},dP=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!se(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=k('
      ');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=k(c).attr("data-value");f==="0"?E.removeMark(e,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=k('
      ');c.css("background-color",l);var f=k('
    • ');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=nt("color.default")),n==="bgColor"&&(u=nt("color.clear"));var s=k(`
    • `+u+`
    • `);return o.prepend(s),o[0]},t}(),Rrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("color.color"),n.iconSvg=Hnt,n.mark="color",n}return Re(e,t),e}(dP),Mrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("color.bgColor"),n.iconSvg=Unt,n.mark="bgColor",n}return Re(e,t),e}(dP),pP=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],zrt={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&ks(i,{color:r}),o&&ks(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ft.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((zS(e)||Bc(n=k(e))!=="span")&&(n=k(""+e+"")),o&&n.css("color",o),i&&n.css("background-color",i),kc(n)):e},preParseHtml:[Lrt],parseStyleHtml:function(t,e,n){var r=k(t);if(!ft.isText(e))return e;var o=e,i=_o(r,"color");i&&(o.color=i);var a=_o(r,"background-color");return a||(a=_o(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Rrt},config:{colors:pP}},{key:"bgColor",factory:function(){return new Mrt},config:{colors:pP}}]},$rt=/^(?:\w+:)?\/\/(\S+)$/,Hrt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Urt=/^[^\s\.]+\.\S{2,}$/,Vrt=hT.includes;function n1(t){return t===void 0&&(t="r"),t+"-"+v9()}function qS(t){return t.replace(//g,">")}function hP(t,e,n,r){return Ua(this,void 0,void 0,function(){var o,i;return Va(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function gP(t,e,n){return Ua(this,void 0,void 0,function(){var r;return Va(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function ZS(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function YS(t,e){return{type:"link",url:qS(t),children:e?[{text:e}]:[]}}function vP(t,e,n){return Ua(this,void 0,void 0,function(){var r,o,i;return Va(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),ZS(t)?[2]:[4,hP("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,gP("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(M.isCollapsed(o)?(t.insertText(" "),i=YS(r,e),I.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=YS(r,e),I.insertNodes(t,i)):(i=YS(r),I.wrapNodes(t,i,{split:!0}),I.collapse(t,{edge:"end"}))),[2]}})})}xn({target:"Array",proto:!0},{includes:function(t){return Vrt(this,t,arguments.length>1?arguments[1]:void 0)}}),zT("includes");var Wrt={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return Pt("a",{href:o,target:i===void 0?"_blank":i},e)}},Grt={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return!!ft.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function XS(){return n1("w-e-insert-link")}var Krt=function(){function t(){this.title=nt("link.insert"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=XS(),this.urlInputId=XS(),this.buttonId=XS()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return ZS(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=se(Lr(nt("link.text"),o),2),s=u[0],l=k(u[1]),c=se(Lr(nt("link.url"),i),2),f=c[0],p=k(c[1]),d=se(vc(a,nt("common.ok")),1)[0];if(this.$content==null){var y=k("
      ");y.on("click","#"+a,function(m){m.preventDefault();var h=y.find("#"+o).val(),b=y.find("#"+i).val();vP(e,h,b),e.hidePanelOrModal()}),this.$content=y}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||M.isCollapsed(n))l.val("");else{var v=E.string(e,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function mP(){return n1("w-e-update-link")}var qrt=function(){function t(){this.title=nt("link.edit"),this.iconSvg=tP,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=mP(),this.buttonId=mP()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=se(Lr(nt("link.url"),n),2),i=o[0],a=k(o[1]),u=se(vc(r,nt("common.ok")),1)[0];if(this.$content==null){var s=k("
      ");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?et.string(p):"",y=s.find("#"+n).val();(function(g,v,m){Ua(this,void 0,void 0,function(){var h,b;return Va(this,function(w){switch(w.label){case 0:return m?[4,hP("editLink",g,v,m)]:[2];case 1:return w.sent()?[4,gP("editLink",g,m)]:[2];case 2:return h=w.sent(),b={url:qS(h)},I.setNodes(g,b,{match:function(S){return A.checkNodeType(S,"link")}}),[2]}})})})(e,d,y),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),Zrt=function(){function t(){this.title=nt("link.unLink"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),Yrt=function(){function t(){this.title=nt("link.view"),this.iconSvg=eP,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),yP={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Xrt={renderElems:[Wrt],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'
      '+e+""}}],parseElemsHtml:[Grt],menus:[{key:"insertLink",factory:function(){return new Krt},config:yP},{key:"editLink",factory:function(){return new qrt},config:yP},{key:"unLink",factory:function(){return new Zrt}},{key:"viewLink",factory:function(){return new Yrt}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match($rt);if(!c)return!1;var f=c[1];return!(!f||!Hrt.test(f)&&!Urt.test(f))}(a)){if(!ZS(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);vP(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=se(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):et.string(u)===""?I.removeNodes(o,{at:s}):r([u,s])},o}},Jrt=Ft(1 .valueOf),Qrt=zt.RangeError,tot=zt.RangeError,bP=zt.String,wP=Math.floor,JS=Ft(function(t){var e=Ve(so(this)),n="",r=Dc(t);if(r<0||r==1/0)throw Qrt("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),EP=Ft("".slice),Ap=Ft(1 .toFixed),Tc=function(t,e,n){return e===0?n:e%2==1?Tc(t,e-1,n*t):Tc(t*t,e/2,n)},Pc=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=wP(o/1e7)},QS=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=wP(r/e),r=r%e*1e7},SP=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=bP(t[e]);n=n===""?r:n+JS("0",7-r.length)+r}return n};function CP(t,e){return"w-e-image-container-"+A.findKey(t,e).id}xn({target:"Number",proto:!0,forced:Ue(function(){return Ap(8e-5,3)!=="0.000"||Ap(.9,0)!=="1"||Ap(1.255,2)!=="1.25"||Ap(1000000000000000100,0)!=="1000000000000000128"})||!Ue(function(){Ap({})})},{toFixed:function(t){var e,n,r,o,i=Jrt(this),a=Dc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw tot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return bP(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*Tc(2,69,1))-69)<0?i*Tc(2,-e,1):i/Tc(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Pc(u,0,n),r=a;r>=7;)Pc(u,1e7,0),r-=7;for(Pc(u,Tc(10,r,1),0),r=e-1;r>=23;)QS(u,1<<23),r-=23;QS(u,1<0?s+((o=l.length)<=a?"0."+JS("0",a-o)+l:EP(l,0,o-a)+"."+EP(l,o-a)):s+l}});var eot={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,y=d===void 0?"":d,g=A.isNodeSelected(n,t),v={};p&&(v.width="100%"),y&&(v.height="100%");var m=Pt("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,S,D){var C=k("body"),O=CP(b,w),T=D.width,L=D.height,z=0,$=0,Y=0,G=!1,K=null;function Z(gt){K=function(){var j=k("#"+O);if(j.length===0)throw new Error("Cannot find image container elem");return j}(),z=gt;var B=K.find("img");if(B.length===0)throw new Error("Cannot find image elem");$=B.width(),Y=B.height(),C.on("mousemove",ut),C.on("mouseup",yt);var x=A.getHoverbar(b);x&&x.hideAndClean()}var ut=ns(function(gt){gt.preventDefault();var B=gt.clientX,x=$+(G?z-B:B-z),j=Y*(x/$);K!=null&&(x<=15||j<=15||(K.css("width",x+"px"),K.css("height",j+"px")))},100);function yt(gt){if(C.off("mousemove",ut),K!=null){var B=K.width().toFixed(2),x=K.height().toFixed(2),j={style:Ha(Ha({},w.style),{width:B+"px",height:x+"px"})};I.setNodes(b,j,{at:A.findPath(b,w)}),C.off("mouseup",yt)}}var mt={};return T&&(mt.width=T),L&&(mt.height=L),Pt("div",{id:O,style:mt,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(gt){var B=k(gt.target);B.hasClass("w-e-image-dragger")&&(gt.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(G=!0),Z(gt.clientX))}}},S,Pt("div",{className:"w-e-image-dragger left-top"}),Pt("div",{className:"w-e-image-dragger right-top"}),Pt("div",{className:"w-e-image-dragger left-bottom"}),Pt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,m,{width:p,height:y}):function(b,w,S,D){var C=D.width,O=D.height,T={};return C&&(T.width=C),O&&(T.height=O),Pt("div",{id:CP(b,w),style:T,className:"w-e-image-container"},S)}(n,t,m,{width:p,height:y})}},not={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:_o(r,"width"),height:_o(r,"height")},children:[{text:""}]}}};function DP(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Ua(this,void 0,void 0,function(){var i,a;return Va(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function xP(t,e,n){return Ua(this,void 0,void 0,function(){var r;return Va(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Bs(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Ua(this,void 0,void 0,function(){var o,i,a;return Va(this,function(u){switch(u.label){case 0:return[4,DP("insertImage",t,e,n,r)];case 1:return u.sent()?[4,xP("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:qS(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),r1(t)||(I.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function r1(t){var e=t.selection;return e==null||!M.isCollapsed(e)||!!se(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function o1(){return n1("w-e-insert-image")}var rot=function(){function t(){this.title=nt("image.netImage"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=o1(),this.altInputId=o1(),this.hrefInputId=o1(),this.buttonId=o1()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return r1(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=se(Lr(nt("image.src"),o),2),l=s[0],c=k(s[1]),f=se(Lr(nt("image.desc"),i),2),p=f[0],d=k(f[1]),y=se(Lr(nt("image.link"),a),2),g=y[0],v=k(y[1]),m=se(vc(u,nt("common.ok")),1)[0];if(this.$content==null){var h=k("
      ");h.on("click","#"+u,function(w){w.preventDefault();var S=h.find("#"+o).val().trim(),D=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(e,S,D,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(m),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Bs(e,n,r,o))},t}(),oot=function(){function t(){this.title=nt("image.delete"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function i1(){return n1("w-e-edit-image")}var iot=function(){function t(){this.title=nt("image.edit"),this.iconSvg=tP,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=i1(),this.altInputId=i1(),this.hrefInputId=i1(),this.buttonId=i1()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=se(Lr(nt("image.src"),o),2),c=l[0],f=k(l[1]),p=se(Lr(nt("image.desc"),i),2),d=p[0],y=k(p[1]),g=se(Lr(nt("image.link"),a),2),v=g[0],m=k(g[1]),h=se(vc(u,nt("common.ok")),1)[0];if(this.$content==null){var b=k("
      ");b.on("click","#"+u,function(z){z.preventDefault();var $=b.find("#"+o).val(),Y=b.find("#"+i).val(),G=b.find("#"+a).val();n.updateImage(e,$,Y,G),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(v),w.append(h);var S=s,D=S.src,C=S.alt,O=C===void 0?"":C,T=S.href,L=T===void 0?"":T;return f.val(D),y.val(O),m.val(L),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ua(this,void 0,void 0,function(){var f,p,d,y,g,v;return Va(this,function(m){switch(m.label){case 0:return[4,DP("editImage",a,u,s,l)];case 1:return m.sent()?[4,xP("editImage",a,u)]:[2];case 2:return f=m.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,y={src:f,alt:s,href:l,style:Ha(Ha({},d===void 0?{}:d),c)},I.setNodes(a,y,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(e,n,r,o,i))},t}(),aot=function(){function t(){this.title=nt("image.viewLink"),this.iconSvg=eP,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),t6=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Ha(Ha({},i===void 0?{}:i),{width:this.value,height:""})};I.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),uot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Re(e,t),e}(t6),sot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Re(e,t),e}(t6),lot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Re(e,t),e}(t6),AP={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},cot={renderElems:[eot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,y="";return f&&(y+="width: "+f+";"),d&&(y+="height: "+d+";"),''+i+''}}],parseElemsHtml:[not],menus:[{key:"insertImage",factory:function(){return new rot},config:AP},{key:"deleteImage",factory:function(){return new oot}},{key:"editImage",factory:function(){return new iot},config:AP},{key:"viewImageLink",factory:function(){return new aot}},{key:"imageWidth30",factory:function(){return new uot}},{key:"imageWidth50",factory:function(){return new sot}},{key:"imageWidth100",factory:function(){return new lot}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},fot={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=Pt("div",{style:{margin:"5px 0"}},Pt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Pt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};I.setNodes(n,u,{at:a})}}})),Pt("span",null,e));return o}},dot=function(){function t(){this.title=nt("todo.todo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);I.setNodes(e,{type:r?"paragraph":"todo"})},t}(),pot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(i){return!!ft.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},hot={renderElems:[fot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'
      "+e+"
      "}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=k(t).find("li"),n=k('
      '),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[pot],menus:[{key:"todo",factory:function(){return new dot}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&M.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&et.string(i).length===0)return void I.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},got={type:"blockquote",renderElem:function(t,e,n){return Pt("blockquote",null,e)}},vot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return!!ft.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},mot=function(){function t(){this.title=nt("blockQuote.title"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!se(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";I.setNodes(e,{type:r},{mode:"highest"})}},t}(),yot={key:"blockquote",factory:function(){return new mot}},bot=Ft([].slice),wot=bS("slice"),Eot=Mr("species"),e6=zt.Array,Sot=Math.max;xn({target:"Array",proto:!0,forced:!wot},{slice:function(t,e){var n,r,o,i=wc(this),a=qv(i),u=pp(t,a),s=pp(e===void 0?a:e,a);if(Yv(i)&&(n=i.constructor,(yS(n)&&(n===e6||Yv(n.prototype))||lo(n)&&(n=n[Eot])===null)&&(n=void 0),n===e6||n===void 0))return bot(i,u,s);for(r=new(n===void 0?e6:n)(Sot(s-u,0)),o=0;u"+e+""}}],parseElemsHtml:[vot],menus:[yot],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=se(E.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=E.end(t,u);if(Ut.equals(s,o.focus)){var l=et.string(a);if(l&&l.slice(-1)===` `)return t.deleteBackward("character"),void I.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(` `)},r}},Dot=function(){function t(){this.title=nt("emotion.title"),this.iconSvg='',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!se(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=k('
        ');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=k(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=k("
      • "+i+"
      • ");r.append(a)}),r[0]},t}(),xot={menus:[{key:"emotion",factory:function(){return new Dot},config:{emotions:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463} \u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(" ")}}]},Aot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Oot={selector:"font",preParseHtml:function(t){var e=k(t);if(Bc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Aot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},kot=Ft("".indexOf);xn({target:"String",proto:!0,forced:!oP("includes")},{includes:function(t){return!!~kot(Ve(so(this)),Ve(rP(t)),arguments.length>1?arguments[1]:void 0)}});var Wa,a1,u1=function(t){return t&&t.Math==Math&&t},Gt=u1(typeof globalThis=="object"&&globalThis)||u1(typeof window=="object"&&window)||u1(typeof self=="object"&&self)||u1(typeof Mv=="object"&&Mv)||function(){return this}()||Function("return this")(),n6=Function.prototype,OP=n6.apply,Bot=n6.bind,kP=n6.call,BP=typeof Reflect=="object"&&Reflect.apply||(Bot?kP.bind(OP):function(){return kP.apply(OP,arguments)}),FP=Function.prototype,r6=FP.bind,o6=FP.call,Fot=r6&&r6.bind(o6),Je=r6?function(t){return t&&Fot(o6,t)}:function(t){return t&&function(){return o6.apply(t,arguments)}},Vn=function(t){return typeof t=="function"},$r=function(t){try{return!!t()}catch(e){return!0}},Sr=!$r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Op=Function.prototype.call,Io=Op.bind?Op.bind(Op):function(){return Op.apply(Op,arguments)},TP={}.propertyIsEnumerable,PP=Object.getOwnPropertyDescriptor,Tot=PP&&!TP.call({1:2},1)?function(t){var e=PP(this,t);return!!e&&e.enumerable}:TP,i6={f:Tot},Fs=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Pot=Je({}.toString),jot=Je("".slice),Ts=function(t){return jot(Pot(t),8,-1)},a6=Gt.Object,_ot=Je("".split),jP=$r(function(){return!a6("z").propertyIsEnumerable(0)})?function(t){return Ts(t)=="String"?_ot(t,""):a6(t)}:a6,Iot=Gt.TypeError,u6=function(t){if(t==null)throw Iot("Can't call method on "+t);return t},ui=function(t){return jP(u6(t))},fo=function(t){return typeof t=="object"?t!==null:Vn(t)},po={},_P=function(t){return Vn(t)?t:void 0},kp=function(t,e){return arguments.length<2?_P(po[t])||_P(Gt[t]):po[t]&&po[t][e]||Gt[t]&&Gt[t][e]},IP=Je({}.isPrototypeOf),s6=kp("navigator","userAgent")||"",NP=Gt.process,LP=Gt.Deno,RP=NP&&NP.versions||LP&&LP.version,MP=RP&&RP.v8;MP&&(a1=(Wa=MP.split("."))[0]>0&&Wa[0]<4?1:+(Wa[0]+Wa[1])),!a1&&s6&&(!(Wa=s6.match(/Edge\/(\d+)/))||Wa[1]>=74)&&(Wa=s6.match(/Chrome\/(\d+)/))&&(a1=+Wa[1]);var s1=a1,si=!!Object.getOwnPropertySymbols&&!$r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s1&&s1<41}),l6=si&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Not=Gt.Object,jc=l6?function(t){return typeof t=="symbol"}:function(t){var e=kp("Symbol");return Vn(e)&&IP(e.prototype,Not(t))},Lot=Gt.String,Rot=Gt.TypeError,zP=function(t){if(Vn(t))return t;throw Rot(function(e){try{return Lot(e)}catch(n){return"Object"}}(t)+" is not a function")},Mot=Gt.TypeError,zot=Object.defineProperty,Ga=Gt["__core-js_shared__"]||function(t,e){try{zot(Gt,t,{value:e,configurable:!0,writable:!0})}catch(n){Gt[t]=e}return e}("__core-js_shared__",{}),Ps=zv(function(t){(t.exports=function(e,n){return Ga[e]||(Ga[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),$ot=Gt.Object,Bp=function(t){return $ot(u6(t))},Hot=Je({}.hasOwnProperty),le=Object.hasOwn||function(t,e){return Hot(Bp(t),e)},Uot=0,Vot=Math.random(),Wot=Je(1 .toString),l1=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Wot(++Uot+Vot,36)},Fp=Ps("wks"),js=Gt.Symbol,$P=js&&js.for,Got=l6?js:js&&js.withoutSetter||l1,Hr=function(t){if(!le(Fp,t)||!si&&typeof Fp[t]!="string"){var e="Symbol."+t;si&&le(js,t)?Fp[t]=js[t]:Fp[t]=l6&&$P?$P(e):Got(e)}return Fp[t]},Kot=Gt.TypeError,qot=Hr("toPrimitive"),_c=function(t){var e=function(n,r){if(!fo(n)||jc(n))return n;var o,i,a=(o=n[qot])==null?void 0:zP(o);if(a){if(r===void 0&&(r="default"),i=Io(a,n,r),!fo(i)||jc(i))return i;throw Kot("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&Vn(l=u.toString)&&!fo(c=Io(l,u))||Vn(l=u.valueOf)&&!fo(c=Io(l,u))||s!=="string"&&Vn(l=u.toString)&&!fo(c=Io(l,u)))return c;throw Mot("Can't convert object to primitive value")}(n,r)}(t,"string");return jc(e)?e:e+""},c6=Gt.document,Zot=fo(c6)&&fo(c6.createElement),HP=function(t){return Zot?c6.createElement(t):{}},UP=!Sr&&!$r(function(){return Object.defineProperty(HP("div"),"a",{get:function(){return 7}}).a!=7}),VP=Object.getOwnPropertyDescriptor,f6={f:Sr?VP:function(t,e){if(t=ui(t),e=_c(e),UP)try{return VP(t,e)}catch(n){}if(le(t,e))return Fs(!Io(i6.f,t,e),t[e])}},Yot=/#|\.prototype\./,Tp=function(t,e){var n=Jot[Xot(t)];return n==tit||n!=Qot&&(Vn(e)?$r(e):!!e)},Xot=Tp.normalize=function(t){return String(t).replace(Yot,".").toLowerCase()},Jot=Tp.data={},Qot=Tp.NATIVE="N",tit=Tp.POLYFILL="P",eit=Tp,WP=Je(Je.bind),GP=function(t,e){return zP(t),e===void 0?t:WP?WP(t,e):function(){return t.apply(e,arguments)}},nit=Gt.String,rit=Gt.TypeError,_s=function(t){if(fo(t))return t;throw rit(nit(t)+" is not an object")},oit=Gt.TypeError,KP=Object.defineProperty,Is={f:Sr?KP:function(t,e,n){if(_s(t),e=_c(e),_s(n),UP)try{return KP(t,e,n)}catch(r){}if("get"in n||"set"in n)throw oit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},li=Sr?function(t,e,n){return Is.f(t,e,Fs(1,n))}:function(t,e,n){return t[e]=n,t},iit=f6.f,ait=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return BP(t,this,arguments)};return e.prototype=t.prototype,e},Ka=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?Gt:p?Gt[c]:(Gt[c]||{}).prototype,g=f?po:po[c]||li(po,c,{})[c],v=g.prototype;for(o in e)n=!eit(f?o:c+(p?".":"#")+o,t.forced)&&y&&le(y,o),a=g[o],n&&(u=t.noTargetGet?(l=iit(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?GP(i,Gt):t.wrap&&n?ait(i):d&&Vn(i)?Je(i):i,(t.sham||i&&i.sham||a&&a.sham)&&li(s,"sham",!0),li(g,o,s),d&&(le(po,r=c+"Prototype")||li(po,r,{}),li(po[r],o,i),t.real&&v&&!v[o]&&li(v,o,i)))},c1=Array.isArray||function(t){return Ts(t)=="Array"},uit=Math.ceil,sit=Math.floor,d6=function(t){var e=+t;return e!=e||e===0?0:(e>0?sit:uit)(e)},lit=Math.min,f1=function(t){return(e=t.length)>0?lit(d6(e),9007199254740991):0;var e},p6=function(t,e,n){var r=_c(e);r in t?Is.f(t,r,Fs(0,n)):t[r]=n},qP={};qP[Hr("toStringTag")]="z";var h6=String(qP)==="[object z]",cit=Hr("toStringTag"),fit=Gt.Object,dit=Ts(function(){return arguments}())=="Arguments",d1=h6?Ts:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=fit(t),cit))=="string"?n:dit?Ts(e):(r=Ts(e))=="Object"&&Vn(e.callee)?"Arguments":r},pit=Je(Function.toString);Vn(Ga.inspectSource)||(Ga.inspectSource=function(t){return pit(t)});var ZP=Ga.inspectSource,YP=function(){},hit=[],XP=kp("Reflect","construct"),g6=/^\s*(?:class|function)\b/,git=Je(g6.exec),vit=!g6.exec(YP),Pp=function(t){if(!Vn(t))return!1;try{return XP(YP,hit,t),!0}catch(e){return!1}},mit=!XP||$r(function(){var t;return Pp(Pp.call)||!Pp(Object)||!Pp(function(){t=!0})||t})?function(t){if(!Vn(t))return!1;switch(d1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vit||!!git(g6,ZP(t))}:Pp,yit=Hr("species"),JP=Gt.Array,QP=function(t,e){return new(function(n){var r;return c1(n)&&(r=n.constructor,(mit(r)&&(r===JP||c1(r.prototype))||fo(r)&&(r=r[yit])===null)&&(r=void 0)),r===void 0?JP:r}(t))(e===0?0:e)},bit=Hr("species"),tj=Hr("isConcatSpreadable"),ej=Gt.TypeError,wit=s1>=51||!$r(function(){var t=[];return t[tj]=!1,t.concat()[0]!==t}),Eit=s1>=51||!$r(function(){var t=[];return(t.constructor={})[bit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Sit=function(t){if(!fo(t))return!1;var e=t[tj];return e!==void 0?!!e:c1(t)};Ka({target:"Array",proto:!0,forced:!wit||!Eit},{concat:function(t){var e,n,r,o,i,a=Bp(this),u=QP(a,0),s=0;for(e=-1,r=arguments.length;e9007199254740991)throw ej("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw ej("Maximum allowed index exceeded");p6(u,s++,i)}return u.length=s,u}});var p1,Cit=Gt.String,h1=function(t){if(d1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Cit(t)},Dit=Math.max,xit=Math.min,v6=function(t,e){var n=d6(t);return n<0?Dit(n+e,0):xit(n,e)},nj=function(t){return function(e,n,r){var o,i=ui(e),a=f1(i),u=v6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Ait={includes:nj(!0),indexOf:nj(!1)},jp={},Oit=Ait.indexOf,rj=Je([].push),oj=function(t,e){var n,r=ui(t),o=0,i=[];for(n in r)!le(jp,n)&&le(r,n)&&rj(i,n);for(;e.length>o;)le(r,n=e[o++])&&(~Oit(i,n)||rj(i,n));return i},g1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],m6=Object.keys||function(t){return oj(t,g1)},kit=Sr?Object.defineProperties:function(t,e){_s(t);for(var n,r=ui(e),o=m6(e),i=o.length,a=0;i>a;)Is.f(t,n=o[a++],r[n]);return t},Bit=kp("document","documentElement"),ij=Ps("keys"),v1=function(t){return ij[t]||(ij[t]=l1(t))},aj=v1("IE_PROTO"),y6=function(){},uj=function(t){return""},sj=function(t){t.write(uj("")),t.close();var e=t.parentWindow.Object;return t=null,e},m1=function(){try{p1=new ActiveXObject("htmlfile")}catch(r){}var t,e;m1=typeof document!="undefined"?document.domain&&p1?sj(p1):((e=HP("iframe")).style.display="none",Bit.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(uj("document.F=Object")),t.close(),t.F):sj(p1);for(var n=g1.length;n--;)delete m1.prototype[g1[n]];return m1()};jp[aj]=!0;var y1,_p,b1,Ns=Object.create||function(t,e){var n;return t!==null?(y6.prototype=_s(t),n=new y6,y6.prototype=null,n[aj]=t):n=m1(),e===void 0?n:kit(n,e)},Fit=g1.concat("length","prototype"),lj={f:Object.getOwnPropertyNames||function(t){return oj(t,Fit)}},Tit=Gt.Array,Pit=Math.max,cj=lj.f,fj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dj={f:function(t){return fj&&Ts(t)=="Window"?function(e){try{return cj(e)}catch(n){return function(r,o,i){for(var a=f1(r),u=v6(void 0,a),s=v6(a,a),l=Tit(Pit(s-u,0)),c=0;uh;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:vj(w,p)}else switch(t){case 4:return!1;case 7:vj(w,p)}return i?-1:r||o?o:w}},E1=[qa(0),qa(1),qa(2),qa(3),qa(4),qa(5),qa(6),qa(7)][0],Cr=v1("hidden"),mj=Hr("toPrimitive"),$it=Lc.set,yj=Lc.getterFor("Symbol"),No=Object.prototype,Za=Gt.Symbol,Ya=Za&&Za.prototype,bj=Gt.TypeError,S6=Gt.QObject,Ip=kp("JSON","stringify"),wj=f6.f,Xa=Is.f,Ej=dj.f,Hit=i6.f,Sj=Je([].push),Wi=Ps("symbols"),Np=Ps("op-symbols"),C6=Ps("string-to-symbol-registry"),D6=Ps("symbol-to-string-registry"),Uit=Ps("wks"),x6=!S6||!S6.prototype||!S6.prototype.findChild,A6=Sr&&$r(function(){return Ns(Xa({},"a",{get:function(){return Xa(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=wj(No,e);r&&delete No[e],Xa(t,e,n),r&&t!==No&&Xa(No,e,r)}:Xa,O6=function(t,e){var n=Wi[t]=Ns(Ya);return $it(n,{type:"Symbol",tag:t,description:e}),Sr||(n.description=e),n},S1=function(t,e,n){t===No&&S1(Np,e,n),_s(t);var r=_c(e);return _s(n),le(Wi,r)?(n.enumerable?(le(t,Cr)&&t[Cr][r]&&(t[Cr][r]=!1),n=Ns(n,{enumerable:Fs(0,!1)})):(le(t,Cr)||Xa(t,Cr,Fs(1,{})),t[Cr][r]=!0),A6(t,r,n)):Xa(t,r,n)},Cj=function(t,e){_s(t);var n=ui(e),r=m6(n).concat(k6(n));return E1(r,function(o){Sr&&!Io(Dj,n,o)||S1(t,o,n[o])}),t},Dj=function(t){var e=_c(t),n=Io(Hit,this,e);return!(this===No&&le(Wi,e)&&!le(Np,e))&&(!(n||!le(this,e)||!le(Wi,e)||le(this,Cr)&&this[Cr][e])||n)},xj=function(t,e){var n=ui(t),r=_c(e);if(n!==No||!le(Wi,r)||le(Np,r)){var o=wj(n,r);return!o||!le(Wi,r)||le(n,Cr)&&n[Cr][r]||(o.enumerable=!0),o}},Aj=function(t){var e=Ej(ui(t)),n=[];return E1(e,function(r){le(Wi,r)||le(jp,r)||Sj(n,r)}),n},k6=function(t){var e=t===No,n=Ej(e?Np:ui(t)),r=[];return E1(n,function(o){!le(Wi,o)||e&&!le(No,o)||Sj(r,Wi[o])}),r};if(si||(Ya=(Za=function(){if(IP(Ya,this))throw bj("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?h1(arguments[0]):void 0,e=l1(t),n=function(r){this===No&&Io(n,Np,r),le(this,Cr)&&le(this[Cr],e)&&(this[Cr][e]=!1),A6(this,e,Fs(1,r))};return Sr&&x6&&A6(No,e,{configurable:!0,set:n}),O6(e,t)}).prototype,Ic(Ya,"toString",function(){return yj(this).tag}),Ic(Za,"withoutSetter",function(t){return O6(l1(t),t)}),i6.f=Dj,Is.f=S1,f6.f=xj,lj.f=dj.f=Aj,b6.f=k6,w6.f=function(t){return O6(Hr(t),t)},Sr&&Xa(Ya,"description",{configurable:!0,get:function(){return yj(this).description}})),Ka({global:!0,wrap:!0,forced:!si,sham:!si},{Symbol:Za}),E1(m6(Uit),function(t){an(t)}),Ka({target:"Symbol",stat:!0,forced:!si},{for:function(t){var e=h1(t);if(le(C6,e))return C6[e];var n=Za(e);return C6[e]=n,D6[n]=e,n},keyFor:function(t){if(!jc(t))throw bj(t+" is not a symbol");if(le(D6,t))return D6[t]},useSetter:function(){x6=!0},useSimple:function(){x6=!1}}),Ka({target:"Object",stat:!0,forced:!si,sham:!Sr},{create:function(t,e){return e===void 0?Ns(t):Cj(Ns(t),e)},defineProperty:S1,defineProperties:Cj,getOwnPropertyDescriptor:xj}),Ka({target:"Object",stat:!0,forced:!si},{getOwnPropertyNames:Aj,getOwnPropertySymbols:k6}),Ka({target:"Object",stat:!0,forced:$r(function(){b6.f(1)})},{getOwnPropertySymbols:function(t){return b6.f(Bp(t))}}),Ip){var Vit=!si||$r(function(){var t=Za();return Ip([t])!="[null]"||Ip({a:t})!="{}"||Ip(Object(t))!="{}"});Ka({target:"JSON",stat:!0,forced:Vit},{stringify:function(t,e,n){var r=jit(arguments),o=e;if((fo(e)||t!==void 0)&&!jc(t))return c1(e)||(e=function(i,a){if(Vn(o)&&(a=Io(o,this,i,a)),!jc(a))return a}),r[1]=e,BP(Ip,null,r)}})}if(!Ya[mj]){var Wit=Ya.valueOf;Ic(Ya,mj,function(t){return Io(Wit,this)})}w1(Za,"Symbol"),jp[Cr]=!0,an("asyncIterator"),an("hasInstance"),an("isConcatSpreadable"),an("iterator"),an("match"),an("matchAll"),an("replace"),an("search"),an("species"),an("split"),an("toPrimitive"),an("toStringTag"),an("unscopables"),w1(Gt.JSON,"JSON",!0);var Ja,Oj,kj,Git=po.Symbol,Rs={},Bj=Function.prototype,Kit=Sr&&Object.getOwnPropertyDescriptor,B6=le(Bj,"name"),qit={EXISTS:B6,PROPER:B6&&function(){}.name==="something",CONFIGURABLE:B6&&(!Sr||Sr&&Kit(Bj,"name").configurable)},Zit=!$r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Fj=v1("IE_PROTO"),F6=Gt.Object,Yit=F6.prototype,T6=Zit?F6.getPrototypeOf:function(t){var e=Bp(t);if(le(e,Fj))return e[Fj];var n=e.constructor;return Vn(n)&&e instanceof n?n.prototype:e instanceof F6?Yit:null},P6=Hr("iterator"),Tj=!1;[].keys&&("next"in(kj=[].keys())?(Oj=T6(T6(kj)))!==Object.prototype&&(Ja=Oj):Tj=!0);var Xit=Ja==null||$r(function(){var t={};return Ja[P6].call(t)!==t});Ja=Xit?{}:Ns(Ja),Vn(Ja[P6])||Ic(Ja,P6,function(){return this});var Pj={IteratorPrototype:Ja,BUGGY_SAFARI_ITERATORS:Tj},Jit=Pj.IteratorPrototype,Qit=function(){return this};Gt.String,Gt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Je(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch(e){}}();var tat=qit.PROPER,C1=Pj.BUGGY_SAFARI_ITERATORS,j6=Hr("iterator"),eat=function(){return this},jj=function(t,e,n,r,o,i,a){(function(m,h,b,w){var S=h+" Iterator";m.prototype=Ns(Jit,{next:Fs(1,b)}),w1(m,S,!1,!0),Rs[S]=Qit})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!C1&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[j6]||d["@@iterator"]||o&&d[o],g=!C1&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=T6(v.call(new t)))!==Object.prototype&&u.next&&(w1(u,f,!0,!0),Rs[f]=eat),tat&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return Io(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(C1||p||!(l in d))&&Ic(d,l,s[l]);else Ka({target:e,proto:!0,forced:C1||p},s);return a&&d[j6]!==g&&Ic(d,j6,g,{name:o}),Rs[e]=g,s},nat=Lc.set,rat=Lc.getterFor("Array Iterator");jj(Array,"Array",function(t,e){nat(this,{type:"Array Iterator",target:ui(t),index:0,kind:e})},function(){var t=rat(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Rs.Arguments=Rs.Array;var _j=Hr("toStringTag");for(var _6 in{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}){var Ij=Gt[_6],I6=Ij&&Ij.prototype;I6&&d1(I6)!==_j&&li(I6,_j,_6),Rs[_6]=Rs.Array}var oat=Git;an("asyncDispose"),an("dispose"),an("matcher"),an("metadata"),an("observable"),an("patternMatch"),an("replaceAll");var D1=oat,iat=Je("".charAt),Nj=Je("".charCodeAt),aat=Je("".slice),Lj=function(t){return function(e,n){var r,o,i=h1(u6(e)),a=d6(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Nj(i,a))<55296||r>56319||a+1===u||(o=Nj(i,a+1))<56320||o>57343?t?iat(i,a):r:t?aat(i,a,a+2):o-56320+(r-55296<<10)+65536}},uat=(Lj(!1),Lj(!0)),sat=Lc.set,lat=Lc.getterFor("String Iterator");jj(String,"String",function(t){sat(this,{type:"String Iterator",string:h1(t),index:0})},function(){var t,e=lat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=uat(n,r),e.index+=t.length,{value:t,done:!1})});var cat=w6.f("iterator"),fat=zv(function(t){function e(n){return typeof D1=="function"&&typeof cat=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof D1=="function"&&r.constructor===D1&&r!==D1.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),Rj=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(fat),dat=Kv.EXISTS,pat=Ec.f,Mj=Function.prototype,hat=Ft(Mj.toString),zj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gat=Ft(zj.exec);jo&&!dat&&pat(Mj,"name",{configurable:!0,get:function(){try{return gat(zj,hat(this))[1]}catch(t){return""}}});var $j=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!se(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),vat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("fontSize.title"),n.iconSvg=Vnt,n.mark="fontSize",n}return Re(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:nt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(Rj(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}($j),mat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("fontFamily.title"),n.iconSvg=Wnt,n.mark="fontFamily",n.selectPanelWidth=150,n}return Re(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:nt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(Rj(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}($j),yat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&ks(i,{fontSize:r}),o&&ks(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!ft.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((zS(e)||Bc(n=k(e))!=="span")&&(n=k(""+e+"")),o&&n.css("font-size",o),i&&n.css("font-family",i),kc(n)):e},preParseHtml:[Oot],parseStyleHtml:function(t,e,n){var r=k(t);if(!ft.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=_o(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=_o(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new vat},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new mat},config:{fontFamilyList:["\u9ED1\u4F53",{name:"\u4EFF\u5B8B",value:"\u4EFF\u5B8B"},"\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53",{name:"\u5B8B\u4F53",value:"\u5B8B\u4F53"},"\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},bat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=k(t),n=_o(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},Hj=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=se(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":se(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=se(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),wat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("indent.decrease"),n.iconSvg=Gnt,n}return Re(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:null},{match:function(o){return bt.isElement(o)}})},e}(Hj),Eat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("indent.increase"),n.iconSvg=Knt,n}return Re(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:"2em"},{match:function(o){return bt.isElement(o)},mode:"highest"})},e}(Hj),Sat={renderStyle:function(t,e){if(!bt.isElement(t))return e;var n=t.indent,r=e;return n&&ks(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!bt.isElement(t))return e;var n=t.indent;if(!n)return e;var r=k(e);return r.css("text-indent",n),kc(r)},preParseHtml:[bat],parseStyleHtml:function(t,e,n){var r=k(t);if(!bt.isElement(e))return e;var o=e,i=_o(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Eat}},{key:"delIndent",factory:function(){return new wat}}]},x1=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=se(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),Cat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.left"),n.iconSvg=qnt,n}return Re(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"left"},{match:function(o){return bt.isElement(o)&&!n.isInline(o)}})},e}(x1),Dat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.right"),n.iconSvg=Znt,n}return Re(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"right"},{match:function(o){return bt.isElement(o)&&!n.isInline(o)}})},e}(x1),xat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.center"),n.iconSvg=Ynt,n}return Re(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"center"},{match:function(o){return bt.isElement(o)&&!n.isInline(o)}})},e}(x1),Aat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.justify"),n.iconSvg=Xnt,n}return Re(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"justify"},{match:function(o){return bt.isElement(o)&&!n.isInline(o)}})},e}(x1),Oat={renderStyle:function(t,e){if(!bt.isElement(t))return e;var n=t.textAlign,r=e;return n&&ks(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!bt.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=k(e);return r.css("text-align",n),kc(r)},parseStyleHtml:function(t,e,n){var r=k(t);if(!bt.isElement(e))return e;var o=e,i=_o(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Cat}},{key:"justifyRight",factory:function(){return new Dat}},{key:"justifyCenter",factory:function(){return new xat}},{key:"justifyJustify",factory:function(){return new Aat}}]},kat=function(){function t(){this.title=nt("lineHeight.title"),this.iconSvg='',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:nt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=se(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":bt.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){I.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Bat={renderStyle:function(t,e){if(!bt.isElement(t))return e;var n=t.lineHeight,r=e;return n&&ks(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!bt.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=k(e);return r.css("line-height",n),kc(r)},parseStyleHtml:function(t,e,n){var r=k(t);if(!bt.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=_o(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new kat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Fat=function(){function t(){this.title=nt("undo.redo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),Tat=function(){function t(){this.title=nt("undo.undo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),Pat={menus:[{key:"redo",factory:function(){return new Fat}},{key:"undo",factory:function(){return new Tat}}]},jat={type:"divider",renderElem:function(t,e,n){return Ul("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Ul("hr")])}},_at=function(){function t(){this.title=nt("divider.title"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){I.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Iat={renderElems:[jat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"
        "}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new _at}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=se(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&I.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},Nat=Xv.map;xn({target:"Array",proto:!0,forced:!bS("map")},{map:function(t){return Nat(this,t,arguments.length>1?arguments[1]:void 0)}});var Lat=Ft([].join),Rat=Uv!=Object,Mat=XT("join",",");xn({target:"Array",proto:!0,forced:Rat||!Mat},{join:function(t){return Lat(wc(this),t===void 0?",":t)}});var zat=function(){function t(){this.title=nt("codeBlock.title"),this.iconSvg='',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=et.string(n);I.removeNodes(e,{mode:"highest"});var o=r.split(` `).map(function(i){return{type:"paragraph",children:[{text:i}]}});I.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=KT(a),s=u.next();!s.done;s=u.next()){var l=se(s.value,1)[0];l&&i.push(et.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}I.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(` `)}]}]};I.insertNodes(e,c,{mode:"highest"})},t}(),$at={key:"codeBlock",factory:function(){return new zat}};xn({target:"String",proto:!0,forced:Ep("anchor")},{anchor:function(t){return wp(this,"a","name",t)}}),FS("match",function(t,e,n){return[function(r){var o=so(this),i=r==null?void 0:Vv(r,t);return i?Xe(i,r,o):new RegExp(r)[t](Ve(o))},function(r){var o=zr(this),i=Ve(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return yp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=yp(o,i))!==null;){var f=Ve(s[0]);l[c]=f,f===""&&(o.lastIndex=TS(i,hp(o.lastIndex),u)),c++}return c===0?null:l}]});var Hat={type:"pre",renderElem:function(t,e,n){return Pt("pre",null,e)}},Uat={type:"code",renderElem:function(t,e,n){return Pt("code",null,e)}},Vat={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},Wat={menus:[$at],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=et.string(l),d=f.anchor.offset,y=p.slice(0,d).split(` `),g=y.length;return g===0?"":y[g-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(` `+s)}}o.insertText(` `)}else e()},o.normalizeNode=function(i){var a=se(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&I.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&I.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(I.unwrapNodes(o),I.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[Hat,Uat],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return""+e+""}},{type:"pre",elemToHtml:function(t,e){return"
        "+e+"
        "}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=k(t);if(Bc(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:k(t)[0].textContent||""}]}}},Vat]},Gat=function(){function t(){this.title=nt("fullScreen.title"),this.iconSvg='',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),Kat={menus:[{key:"fullScreen",factory:function(){return new Gat}}]},qat=function(){function t(){this.title=nt("common.enter"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!M.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];I.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),Zat=[srt,zrt,yat,Sat,Oat,Bat,cot,Iat,xot,Xrt,Wat,Cot,Irt,Tnt,hot,Pat,Kat,{menus:[{key:"enter",factory:function(){return new qat}}]}];Er("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Er("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var Uj=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof ot.g!="undefined"?ot.g:typeof self!="undefined"?self:{};function N6(t){var e={exports:{}};return t(e,e.exports),e.exports}var Qa,A1,O1=function(t){return t&&t.Math==Math&&t},jt=O1(typeof globalThis=="object"&&globalThis)||O1(typeof window=="object"&&window)||O1(typeof self=="object"&&self)||O1(typeof Uj=="object"&&Uj)||function(){return this}()||Function("return this")(),Vj=Function.prototype,L6=Vj.bind,R6=Vj.call,Yat=L6&&L6.bind(R6),Zt=L6?function(t){return t&&Yat(R6,t)}:function(t){return t&&function(){return R6.apply(t,arguments)}},Ge=function(t){try{return!!t()}catch(e){return!0}},Xat=Zt({}.toString),Jat=Zt("".slice),Gi=function(t){return Jat(Xat(t),8,-1)},M6=jt.Object,Qat=Zt("".split),Wj=Ge(function(){return!M6("z").propertyIsEnumerable(0)})?function(t){return Gi(t)=="String"?Qat(t,""):M6(t)}:M6,tut=jt.TypeError,k1=function(t){if(t==null)throw tut("Can't call method on "+t);return t},Rc=function(t){return Wj(k1(t))},eut=Object.defineProperty,z6=function(t,e){try{eut(jt,t,{value:e,configurable:!0,writable:!0})}catch(n){jt[t]=e}return e},tu=jt["__core-js_shared__"]||z6("__core-js_shared__",{}),$6=N6(function(t){(t.exports=function(e,n){return tu[e]||(tu[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),nut=jt.Object,Lp=function(t){return nut(k1(t))},rut=Zt({}.hasOwnProperty),An=Object.hasOwn||function(t,e){return rut(Lp(t),e)},out=0,iut=Math.random(),aut=Zt(1 .toString),H6=function(t){return"Symbol("+(t===void 0?"":t)+")_"+aut(++out+iut,36)},Ke=function(t){return typeof t=="function"},uut=function(t){return Ke(t)?t:void 0},Rp=function(t,e){return arguments.length<2?uut(jt[t]):jt[t]&&jt[t][e]},U6=Rp("navigator","userAgent")||"",Gj=jt.process,Kj=jt.Deno,qj=Gj&&Gj.versions||Kj&&Kj.version,Zj=qj&&qj.v8;Zj&&(A1=(Qa=Zj.split("."))[0]>0&&Qa[0]<4?1:+(Qa[0]+Qa[1])),!A1&&U6&&(!(Qa=U6.match(/Edge\/(\d+)/))||Qa[1]>=74)&&(Qa=U6.match(/Chrome\/(\d+)/))&&(A1=+Qa[1]);var B1,V6=A1,W6=!!Object.getOwnPropertySymbols&&!Ge(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&V6&&V6<41}),G6=W6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mp=$6("wks"),Ms=jt.Symbol,Yj=Ms&&Ms.for,sut=G6?Ms:Ms&&Ms.withoutSetter||H6,Wn=function(t){if(!An(Mp,t)||!W6&&typeof Mp[t]!="string"){var e="Symbol."+t;W6&&An(Ms,t)?Mp[t]=Ms[t]:Mp[t]=G6&&Yj?Yj(e):sut(e)}return Mp[t]},qe=function(t){return typeof t=="object"?t!==null:Ke(t)},lut=jt.String,cut=jt.TypeError,Dr=function(t){if(qe(t))return t;throw cut(lut(t)+" is not an object")},eu=!Ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),K6=jt.document,fut=qe(K6)&&qe(K6.createElement),q6=function(t){return fut?K6.createElement(t):{}},Xj=!eu&&!Ge(function(){return Object.defineProperty(q6("div"),"a",{get:function(){return 7}}).a!=7}),zp=Function.prototype.call,On=zp.bind?zp.bind(zp):function(){return zp.apply(zp,arguments)},F1=Zt({}.isPrototypeOf),dut=jt.Object,Z6=G6?function(t){return typeof t=="symbol"}:function(t){var e=Rp("Symbol");return Ke(e)&&F1(e.prototype,dut(t))},put=jt.String,Y6=function(t){try{return put(t)}catch(e){return"Object"}},hut=jt.TypeError,X6=function(t){if(Ke(t))return t;throw hut(Y6(t)+" is not a function")},$p=function(t,e){var n=t[e];return n==null?void 0:X6(n)},gut=jt.TypeError,vut=jt.TypeError,mut=Wn("toPrimitive"),J6=function(t){var e=function(n,r){if(!qe(n)||Z6(n))return n;var o,i=$p(n,mut);if(i){if(r===void 0&&(r="default"),o=On(i,n,r),!qe(o)||Z6(o))return o;throw vut("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Ke(s=a.toString)&&!qe(l=On(s,a))||Ke(s=a.valueOf)&&!qe(l=On(s,a))||u!=="string"&&Ke(s=a.toString)&&!qe(l=On(s,a)))return l;throw gut("Can't convert object to primitive value")}(n,r)}(t,"string");return Z6(e)?e:e+""},yut=jt.TypeError,Jj=Object.defineProperty,zs={f:eu?Jj:function(t,e,n){if(Dr(t),e=J6(e),Dr(n),Xj)try{return Jj(t,e,n)}catch(r){}if("get"in n||"set"in n)throw yut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},but=Math.ceil,wut=Math.floor,Hp=function(t){var e=+t;return e!=e||e===0?0:(e>0?wut:but)(e)},Eut=Math.max,Sut=Math.min,Q6=function(t,e){var n=Hp(t);return n<0?Eut(n+e,0):Sut(n,e)},Cut=Math.min,Qj=function(t){return t>0?Cut(Hp(t),9007199254740991):0},Mc=function(t){return Qj(t.length)},t_=function(t){return function(e,n,r){var o,i=Rc(e),a=Mc(i),u=Q6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},e_={includes:t_(!0),indexOf:t_(!1)},T1={},Dut=e_.indexOf,n_=Zt([].push),r_=function(t,e){var n,r=Rc(t),o=0,i=[];for(n in r)!An(T1,n)&&An(r,n)&&n_(i,n);for(;e.length>o;)An(r,n=e[o++])&&(~Dut(i,n)||n_(i,n));return i},P1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xut=Object.keys||function(t){return r_(t,P1)},Aut=eu?Object.defineProperties:function(t,e){Dr(t);for(var n,r=Rc(e),o=xut(e),i=o.length,a=0;i>a;)zs.f(t,n=o[a++],r[n]);return t},Out=Rp("document","documentElement"),o_=$6("keys"),t3=function(t){return o_[t]||(o_[t]=H6(t))},i_=t3("IE_PROTO"),e3=function(){},a_=function(t){return""},u_=function(t){t.write(a_("")),t.close();var e=t.parentWindow.Object;return t=null,e},j1=function(){try{B1=new ActiveXObject("htmlfile")}catch(r){}var t,e;j1=typeof document!="undefined"?document.domain&&B1?u_(B1):((e=q6("iframe")).style.display="none",Out.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(a_("document.F=Object")),t.close(),t.F):u_(B1);for(var n=P1.length;n--;)delete j1.prototype[P1[n]];return j1()};T1[i_]=!0;var n3=Object.create||function(t,e){var n;return t!==null?(e3.prototype=Dr(t),n=new e3,e3.prototype=null,n[i_]=t):n=j1(),e===void 0?n:Aut(n,e)},r3=Wn("unscopables"),o3=Array.prototype;o3[r3]==null&&zs.f(o3,r3,{configurable:!0,value:n3(null)});var Up=function(t){o3[r3][t]=!0},zc={},kut=Zt(Function.toString);Ke(tu.inspectSource)||(tu.inspectSource=function(t){return kut(t)});var _1,Vp,I1,i3=tu.inspectSource,s_=jt.WeakMap,l_=Ke(s_)&&/native code/.test(i3(s_)),N1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nu=eu?function(t,e,n){return zs.f(t,e,N1(1,n))}:function(t,e,n){return t[e]=n,t},a3=jt.TypeError,But=jt.WeakMap;if(l_||tu.state){var $s=tu.state||(tu.state=new But),Fut=Zt($s.get),c_=Zt($s.has),Tut=Zt($s.set);_1=function(t,e){if(c_($s,t))throw new a3("Object already initialized");return e.facade=t,Tut($s,t,e),e},Vp=function(t){return Fut($s,t)||{}},I1=function(t){return c_($s,t)}}else{var $c=t3("state");T1[$c]=!0,_1=function(t,e){if(An(t,$c))throw new a3("Object already initialized");return e.facade=t,nu(t,$c,e),e},Vp=function(t){return An(t,$c)?t[$c]:{}},I1=function(t){return An(t,$c)}}var Hs,f_,d_,ci={set:_1,get:Vp,has:I1,enforce:function(t){return I1(t)?Vp(t):_1(t,{})},getterFor:function(t){return function(e){var n;if(!qe(e)||(n=Vp(e)).type!==t)throw a3("Incompatible receiver, "+t+" required");return n}}},p_={}.propertyIsEnumerable,h_=Object.getOwnPropertyDescriptor,Put={f:h_&&!p_.call({1:2},1)?function(t){var e=h_(this,t);return!!e&&e.enumerable}:p_},g_=Object.getOwnPropertyDescriptor,v_={f:eu?g_:function(t,e){if(t=Rc(t),e=J6(e),Xj)try{return g_(t,e)}catch(n){}if(An(t,e))return N1(!On(Put.f,t,e),t[e])}},m_=Function.prototype,jut=eu&&Object.getOwnPropertyDescriptor,u3=An(m_,"name"),s3={EXISTS:u3,PROPER:u3&&function(){}.name==="something",CONFIGURABLE:u3&&(!eu||eu&&jut(m_,"name").configurable)},fi=N6(function(t){var e=s3.CONFIGURABLE,n=ci.get,r=ci.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ke(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!An(u,"name")||e&&u.name!==d)&&nu(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==jt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:nu(i,a,u)):f?i[a]=u:z6(a,u)})(Function.prototype,"toString",function(){return Ke(this)&&n(this).source||i3(this)})}),_ut=P1.concat("length","prototype"),L1={f:Object.getOwnPropertyNames||function(t){return r_(t,_ut)}},Iut={f:Object.getOwnPropertySymbols},Nut=Zt([].concat),Lut=Rp("Reflect","ownKeys")||function(t){var e=L1.f(Dr(t)),n=Iut.f;return n?Nut(e,n(t)):e},Rut=function(t,e){for(var n=Lut(e),r=zs.f,o=v_.f,i=0;i=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");zc.Arguments=zc.Array,Up("keys"),Up("values"),Up("entries");var C_={};C_[Wn("toStringTag")]="z";var h3=String(C_)==="[object z]",ost=Wn("toStringTag"),ist=jt.Object,ast=Gi(function(){return arguments}())=="Arguments",$1=h3?Gi:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=ist(t),ost))=="string"?n:ast?Gi(e):(r=Gi(e))=="Object"&&Ke(e.callee)?"Arguments":r},ust=h3?{}.toString:function(){return"[object "+$1(this)+"]"};h3||fi(Object.prototype,"toString",ust,{unsafe:!0});var sst=jt.String,Ki=function(t){if($1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sst(t)},lst=Zt("".charAt),D_=Zt("".charCodeAt),cst=Zt("".slice),x_=function(t){return function(e,n){var r,o,i=Ki(k1(e)),a=Hp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=D_(i,a))<55296||r>56319||a+1===u||(o=D_(i,a+1))<56320||o>57343?t?lst(i,a):r:t?cst(i,a,a+2):o-56320+(r-55296<<10)+65536}},A_={codeAt:x_(!1),charAt:x_(!0)},fst=A_.charAt,dst=ci.set,pst=ci.getterFor("String Iterator");S_(String,"String",function(t){dst(this,{type:"String Iterator",string:Ki(t),index:0})},function(){var t,e=pst(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=fst(n,r),e.index+=t.length,{value:t,done:!1})});var g3=function(t,e,n){for(var r in e)fi(t,r,e[r],n);return t},hst=jt.Array,gst=Math.max,O_=L1.f,k_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vst={f:function(t){return k_&&Gi(t)=="Window"?function(e){try{return O_(e)}catch(n){return function(r,o,i){for(var a,u,s,l,c=Mc(r),f=Q6(void 0,c),p=Q6(c,c),d=hst(gst(p-f,0)),y=0;fi;i++)if((u=m(t[i]))&&F1(j_,u))return u;return new U1(!1)}r=function(h,b){var w=arguments.length<2?T_(h):b;if(X6(w))return Dr(On(w,h));throw Est(Y6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=On(s,r)).done;){try{u=m(l.value)}catch(h){P_(r,"throw",h)}if(typeof u=="object"&&u&&F1(j_,u))return u}return new U1(!1)},Cst=jt.TypeError,I_=function(t,e){if(F1(e,t))return t;throw Cst("Incorrect invocation")},N_=Wn("iterator"),L_=!1;try{var Dst=0,R_={next:function(){return{done:!!Dst++}},return:function(){L_=!0}};R_[N_]=function(){return this},Array.from(R_,function(){throw 2})}catch(t){}var y3=Array.isArray||function(t){return Gi(t)=="Array"},M_=function(){},xst=[],z_=Rp("Reflect","construct"),b3=/^\s*(?:class|function)\b/,Ast=Zt(b3.exec),Ost=!b3.exec(M_),qp=function(t){if(!Ke(t))return!1;try{return z_(M_,xst,t),!0}catch(e){return!1}},kst=!z_||Ge(function(){var t;return qp(qp.call)||!qp(Object)||!qp(function(){t=!0})||t})?function(t){if(!Ke(t))return!1;switch($1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ost||!!Ast(b3,i3(t))}:qp,Bst=Wn("species"),$_=jt.Array,H_=function(t,e){return new(function(n){var r;return y3(n)&&(r=n.constructor,(kst(r)&&(r===$_||y3(r.prototype))||qe(r)&&(r=r[Bst])===null)&&(r=void 0)),r===void 0?$_:r}(t))(e===0?0:e)},U_=Zt([].push),ou=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Lp(s),g=Wj(y),v=m3(l,c),m=Mc(g),h=0,b=f||H_,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:U_(w,p)}else switch(t){case 4:return!1;case 7:U_(w,p)}return i?-1:r||o?o:w}},w3={forEach:ou(0),map:ou(1),filter:ou(2),some:ou(3),every:ou(4),find:ou(5),findIndex:ou(6),filterReject:ou(7)},V1=v3.getWeakData,Fst=ci.set,Tst=ci.getterFor,Pst=w3.find,jst=w3.findIndex,_st=Zt([].splice),Ist=0,W1=function(t){return t.frozen||(t.frozen=new V_)},V_=function(){this.entries=[]},E3=function(t,e){return Pst(t.entries,function(n){return n[0]===e})};V_.prototype={get:function(t){var e=E3(this,t);if(e)return e[1]},has:function(t){return!!E3(this,t)},set:function(t,e){var n=E3(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=jst(this.entries,function(n){return n[0]===t});return~e&&_st(this.entries,e,1),!!~e}};var Zp,W_={getConstructor:function(t,e,n,r){var o=t(function(s,l){I_(s,i),Fst(s,{type:e,id:Ist++,frozen:void 0}),l!=null&&__(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Tst(e),u=function(s,l,c){var f=a(s),p=V1(Dr(l),!0);return p===!0?W1(f).set(l,c):p[f.id]=c,s};return g3(i,{delete:function(s){var l=a(this);if(!qe(s))return!1;var c=V1(s);return c===!0?W1(l).delete(s):c&&An(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!qe(s))return!1;var c=V1(s);return c===!0?W1(l).has(s):c&&An(c,l.id)}}),g3(i,n?{get:function(s){var l=a(this);if(qe(s)){var c=V1(s);return c===!0?W1(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},G1=ci.enforce,Nst=!jt.ActiveXObject&&"ActiveXObject"in jt,G_=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Lst=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=jt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Zt(u[v]);fi(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!qe(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!qe(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!qe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(l3(t,!Ke(a)||!(o||u.forEach&&!Ge(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),v3.enable();else if(l3(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Ge(function(){f.has(1)}),y=function(v,m){if(!L_)return!1;var h=!1;try{var b={};b[N_]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch(w){}return h}(),g=!o&&Ge(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){I_(v,u);var h=function(b,w,S){var D,C;return M1&&Ke(D=w.constructor)&&D!==S&&qe(C=D.prototype)&&C!==S.prototype&&M1(b,C),b}(new a,v,s);return m!=null&&__(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,ru({global:!0,forced:s!=a},l),p3(s,t),o||n.setStrong(s,t,r),s}("WeakMap",G_,W_);if(l_&&Nst){Zp=W_.getConstructor(G_,"WeakMap",!0),v3.enable();var Yp=Lst.prototype,K_=Zt(Yp.delete),K1=Zt(Yp.has),q_=Zt(Yp.get),Z_=Zt(Yp.set);g3(Yp,{delete:function(t){if(qe(t)&&!Us(t)){var e=G1(this);return e.frozen||(e.frozen=new Zp),K_(this,t)||e.frozen.delete(t)}return K_(this,t)},has:function(t){if(qe(t)&&!Us(t)){var e=G1(this);return e.frozen||(e.frozen=new Zp),K1(this,t)||e.frozen.has(t)}return K1(this,t)},get:function(t){if(qe(t)&&!Us(t)){var e=G1(this);return e.frozen||(e.frozen=new Zp),K1(this,t)?q_(this,t):e.frozen.get(t)}return q_(this,t)},set:function(t,e){if(qe(t)&&!Us(t)){var n=G1(this);n.frozen||(n.frozen=new Zp),K1(this,t)?Z_(this,t,e):n.frozen.set(t,e)}else Z_(this,t,e);return this}})}var Y_={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},S3=q6("span").classList,X_=S3&&S3.constructor&&S3.constructor.prototype,Rst=X_===Object.prototype?void 0:X_,C3=Wn("iterator"),J_=Wn("toStringTag"),D3=Kp.values,Q_=function(t,e){if(t){if(t[C3]!==D3)try{nu(t,C3,D3)}catch(r){t[C3]=D3}if(t[J_]||nu(t,J_,e),Y_[e]){for(var n in Kp)if(t[n]!==Kp[n])try{nu(t,n,Kp[n])}catch(r){t[n]=Kp[n]}}}};for(var x3 in Y_)Q_(jt[x3]&&jt[x3].prototype,x3);Q_(Rst,"DOMTokenList");var A3=new WeakMap,Mst={type:"list-item",renderElem:function(t,e,n){A3.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,y=d.type,g=d.level,v=g===void 0?0:g,m=d.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=p,S=A.findPath(f,w);if(S[0]===0)return 1;for(;S[0]>0;){var D=_.previous(S),C=E.node(f,D);if(C==null)break;var O=C[0],T=O.level,L=T===void 0?0:T,z=O.type,$=O.ordered;if(z!==y||L=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xp(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function nI(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var zst=e_.includes;ru({target:"Array",proto:!0},{includes:function(t){return zst(this,t,arguments.length>1?arguments[1]:void 0)}}),Up("includes");var rI,k3,$st=function(){var t=Dr(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},B3=jt.RegExp,F3=Ge(function(){var t=B3("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Hst=F3||Ge(function(){return!B3("a","y").sticky}),Ust={BROKEN_CARET:F3||Ge(function(){var t=B3("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Hst,UNSUPPORTED_Y:F3},Vst=jt.RegExp,Wst=Ge(function(){var t=Vst(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),Gst=jt.RegExp,Kst=Ge(function(){var t=Gst("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),qst=ci.get,Zst=$6("native-string-replace",String.prototype.replace),q1=RegExp.prototype.exec,T3=q1,Yst=Zt("".charAt),Xst=Zt("".indexOf),Jst=Zt("".replace),P3=Zt("".slice),j3=(k3=/b*/g,On(q1,rI=/a/,"a"),On(q1,k3,"a"),rI.lastIndex!==0||k3.lastIndex!==0),oI=Ust.BROKEN_CARET,_3=/()??/.exec("")[1]!==void 0;(j3||_3||oI||Wst||Kst)&&(T3=function(t){var e,n,r,o,i,a,u,s=this,l=qst(s),c=Ki(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=On(T3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=oI&&s.sticky,y=On($st,s),g=s.source,v=0,m=c;if(d&&(y=Jst(y,"y",""),Xst(y,"g")===-1&&(y+="g"),m=P3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Yst(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),_3&&(n=new RegExp("^"+g+"$(?!\\s)",y)),j3&&(r=s.lastIndex),o=On(q1,d?n:s,m),d?o?(o.input=P3(o.input,v),o[0]=P3(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:j3&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_3&&o&&o.length>1&&On(Zst,o[0],n,function(){for(i=1;iv?0:T===v?C===y?0:1:0}(t);if(a>0)for(var u=0;u",aI.push(i);var s=function(l){var c=A3.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===c.children.length-1)return v+1;var h=_.next(m),b=E.node(c,h);if(!b)return 0;var w=Xp(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var S=w,D=S.ordered,C=D!==void 0&&D,O=S.level,T=O===void 0?0:O;return Tv?0:T===v?C===y?0:1:0}(t);if(s>0)for(u=0;u";return{html:"
      • "+e+"
      • ",prefix:n,suffix:r}}},alt=Wn("species"),ult=w3.filter,slt=V6>=51||!Ge(function(){var t=[];return(t.constructor={})[alt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});ru({target:"Array",proto:!0,forced:!slt},{filter:function(t){return ult(this,t,arguments.length>1?arguments[1]:void 0)}});var I3=Function.prototype,uI=I3.apply,llt=I3.bind,sI=I3.call,clt=typeof Reflect=="object"&&Reflect.apply||(llt?sI.bind(uI):function(){return sI.apply(uI,arguments)}),lI=(Wn("species"),RegExp.prototype),flt=A_.charAt,dlt=function(t,e,n){return e+(n?flt(t,e).length:1)},plt=Math.floor,N3=Zt("".charAt),hlt=Zt("".replace),L3=Zt("".slice),glt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vlt=/\$([$&'`]|\d{1,2})/g,mlt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=vlt;return o!==void 0&&(o=Lp(o),s=glt),hlt(i,s,function(l,c){var f;switch(N3(c,0)){case"$":return"$";case"&":return t;case"`":return L3(e,0,n);case"'":return L3(e,a);case"<":f=o[L3(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=plt(p/10);return d===0?l:d<=u?r[d-1]===void 0?N3(c,1):r[d-1]+N3(c,1):l}f=r[p-1]}return f===void 0?"":f})},ylt=jt.TypeError,blt=function(t,e){var n=t.exec;if(Ke(n)){var r=On(n,t,e);return r!==null&&Dr(r),r}if(Gi(t)==="RegExp")return On(Z1,t,e);throw ylt("RegExp#exec called on incompatible receiver")},R3=Wn("replace"),wlt=Math.max,Elt=Math.min,Slt=Zt([].concat),M3=Zt([].push),cI=Zt("".indexOf),fI=Zt("".slice),Clt="a".replace(/./,"$0")==="$0",dI=!!/./[R3]&&/./[R3]("a","$0")==="";(function(t,e,n,r){var o=Wn(t),i=!Ge(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ge(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Zt(/./[o]),s=function(l,c,f){var p=dI?"$":"$0";return[function(d,y){var g=k1(this),v=d==null?void 0:$p(d,R3);return v?On(v,d,g,y):On(c,Ki(g),d,y)},function(d,y){var g=Dr(this),v=Ki(d);if(typeof y=="string"&&cI(y,p)===-1&&cI(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=Ke(y);h||(y=Ki(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var S=[];;){var D=blt(g,v);if(D===null||(M3(S,D),!b))break;Ki(D[0])===""&&(g.lastIndex=dlt(v,Qj(g.lastIndex),w))}for(var C,O="",T=0,L=0;L=T&&(O+=fI(v,T,$)+ut,T=$+z.length)}return O+fI(v,T)}]}(0,""[t],function(l,c,f,p,d){var y=Zt(l),g=c.exec;return g===Z1||g===lI.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});fi(String.prototype,t,s[0]),fi(lI,o,s[1])}})("replace",0,!!Ge(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$
        ")!=="7"})||!Clt||dI);var Dlt=jt.TypeError,pI=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&m3(a,u);f0&&y3(s))l=Mc(s),c=pI(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Dlt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},xlt=pI;function z3(t){return t.length?t[0].tagName.toLowerCase():""}ru({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Lp(this),n=Mc(e),r=H_(e,0);return r.length=xlt(r,e,e,n,0,t===void 0?1:Hp(t)),r}}),Up("flat"),ru({global:!0},{globalThis:jt}),to&&(k.fn.append=to),Qr&&(k.fn.attr=Qr),Rl&&(k.fn.parent=Rl);var Alt={renderElems:[Mst],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(M.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?I.setNodes(o,{level:l-1}):I.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(M.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void I.setNodes(o,{level:p+1})}}if(M.isExpanded(l)){var d=0,y=!1;try{for(var g=eI(nI(o)),v=g.next();!v.done;v=g.next()){var m=Xp(v.value,1)[0];A.getNodeType(m)==="list-item"?d++:y=!0}}catch(C){i={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(y||d<=1)return void n();try{for(var h=eI(nI(o)),b=h.next();!b.done;b=h.next()){var w=Xp(b.value,2),S=(m=w[0],w[1]),D=m.level;p=D===void 0?0:D,I.setNodes(o,{level:p+1},{at:S})}}catch(C){u={error:C}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=Xp(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||I.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[rlt,olt],elemsToHtml:[ilt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(a){return!!ft.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return z3(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=z3(s);l==="ul"||l==="ol";)l=z3(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},hI=gr(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",S=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[p]=C[y]=C[g]=C[v]=C[h]=!1;var O=typeof ne=="object"&&ne&&ne.Object===Object&&ne,T=typeof self=="object"&&self&&self.Object===Object&&self,L=O||T||Function("return this")(),z=e&&!e.nodeType&&e,$=z&&t&&!t.nodeType&&t,Y=$&&$.exports===z,G=Y&&O.process,K=function(){try{return G&&G.binding&&G.binding("util")}catch(P){}}(),Z=K&&K.isTypedArray;function ut(P,R){for(var tt=-1,Ct=P==null?0:P.length;++ttH))return!1;var vt=Xt.get(P);if(vt&&Xt.get(R))return vt==R;var re=-1,Ne=!0,Ce=2&tt?new Rn:void 0;for(Xt.set(P,R),Xt.set(R,P);++re-1},ar.prototype.set=function(P,R){var tt=this.__data__,Ct=Tu(tt,P);return Ct<0?(++this.size,tt.push([P,R])):tt[Ct][1]=R,this},pr.prototype.clear=function(){this.size=0,this.__data__={hash:new ir,map:new(Me||ar),string:new ir}},pr.prototype.delete=function(P){var R=Vo(this,P).delete(P);return this.size-=R?1:0,R},pr.prototype.get=function(P){return Vo(this,P).get(P)},pr.prototype.has=function(P){return Vo(this,P).has(P)},pr.prototype.set=function(P,R){var tt=Vo(this,P),Ct=tt.size;return tt.set(P,R),this.size+=tt.size==Ct?0:1,this},Rn.prototype.add=Rn.prototype.push=function(P){return this.__data__.set(P,n),this},Rn.prototype.has=function(P){return this.__data__.has(P)},wo.prototype.clear=function(){this.__data__=new ar,this.size=0},wo.prototype.delete=function(P){var R=this.__data__,tt=R.delete(P);return this.size=R.size,tt},wo.prototype.get=function(P){return this.__data__.get(P)},wo.prototype.has=function(P){return this.__data__.has(P)},wo.prototype.set=function(P,R){var tt=this.__data__;if(tt instanceof ar){var Ct=tt.__data__;if(!Me||Ct.length<199)return Ct.push([P,R]),this.size=++tt.size,this;tt=this.__data__=new pr(Ct)}return tt.set(P,R),this.size=tt.size,this};var Ly=Ht?function(P){return P==null?[]:(P=Object(P),function(R,tt){for(var Ct=-1,Se=R==null?0:R.length,Xt=0,F=[];++Ct-1&&P%1==0&&P-1&&P%1==0&&P<=r}function My(P){var R=typeof P;return P!=null&&(R=="object"||R=="function")}function ju(P){return P!=null&&typeof P=="object"}var Di=Z?function(P){return function(R){return P(R)}}(Z):function(P){return ju(P)&&Ci(P.length)&&!!C[ta(P)]};function zy(P){return(R=P)!=null&&Ci(R.length)&&!S0(R)?w0(P):Uo(P);var R}t.exports=function(P,R){return fl(P,R)}});Er("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Er("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var gI=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof ot.g!="undefined"?ot.g:typeof self!="undefined"?self:{};function vI(t){var e={exports:{}};return t(e,e.exports),e.exports}var iu,Y1,X1=function(t){return t&&t.Math==Math&&t},Kt=X1(typeof globalThis=="object"&&globalThis)||X1(typeof window=="object"&&window)||X1(typeof self=="object"&&self)||X1(typeof gI=="object"&&gI)||function(){return this}()||Function("return this")(),wn=function(t){try{return!!t()}catch(e){return!0}},au=!wn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jp=Function.prototype.call,En=Jp.bind?Jp.bind(Jp):function(){return Jp.apply(Jp,arguments)},mI={}.propertyIsEnumerable,yI=Object.getOwnPropertyDescriptor,Olt={f:yI&&!mI.call({1:2},1)?function(t){var e=yI(this,t);return!!e&&e.enumerable}:mI},$3=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},bI=Function.prototype,H3=bI.bind,U3=bI.call,klt=H3&&H3.bind(U3),Qt=H3?function(t){return t&&klt(U3,t)}:function(t){return t&&function(){return U3.apply(t,arguments)}},Blt=Qt({}.toString),Flt=Qt("".slice),uu=function(t){return Flt(Blt(t),8,-1)},V3=Kt.Object,Tlt=Qt("".split),wI=wn(function(){return!V3("z").propertyIsEnumerable(0)})?function(t){return uu(t)=="String"?Tlt(t,""):V3(t)}:V3,Plt=Kt.TypeError,su=function(t){if(t==null)throw Plt("Can't call method on "+t);return t},Qp=function(t){return wI(su(t))},Gn=function(t){return typeof t=="function"},ho=function(t){return typeof t=="object"?t!==null:Gn(t)},jlt=function(t){return Gn(t)?t:void 0},th=function(t,e){return arguments.length<2?jlt(Kt[t]):Kt[t]&&Kt[t][e]},EI=Qt({}.isPrototypeOf),W3=th("navigator","userAgent")||"",SI=Kt.process,CI=Kt.Deno,DI=SI&&SI.versions||CI&&CI.version,xI=DI&&DI.v8;xI&&(Y1=(iu=xI.split("."))[0]>0&&iu[0]<4?1:+(iu[0]+iu[1])),!Y1&&W3&&(!(iu=W3.match(/Edge\/(\d+)/))||iu[1]>=74)&&(iu=W3.match(/Chrome\/(\d+)/))&&(Y1=+iu[1]);var G3=Y1,K3=!!Object.getOwnPropertySymbols&&!wn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G3&&G3<41}),q3=K3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_lt=Kt.Object,Z3=q3?function(t){return typeof t=="symbol"}:function(t){var e=th("Symbol");return Gn(e)&&EI(e.prototype,_lt(t))},Ilt=Kt.String,AI=function(t){try{return Ilt(t)}catch(e){return"Object"}},Nlt=Kt.TypeError,OI=function(t){if(Gn(t))return t;throw Nlt(AI(t)+" is not a function")},Y3=function(t,e){var n=t[e];return n==null?void 0:OI(n)},Llt=Kt.TypeError,Rlt=Object.defineProperty,X3=function(t,e){try{Rlt(Kt,t,{value:e,configurable:!0,writable:!0})}catch(n){Kt[t]=e}return e},lu=Kt["__core-js_shared__"]||X3("__core-js_shared__",{}),J3=vI(function(t){(t.exports=function(e,n){return lu[e]||(lu[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Mlt=Kt.Object,Q3=function(t){return Mlt(su(t))},zlt=Qt({}.hasOwnProperty),go=Object.hasOwn||function(t,e){return zlt(Q3(t),e)},$lt=0,Hlt=Math.random(),Ult=Qt(1 .toString),kI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ult(++$lt+Hlt,36)},eh=J3("wks"),Vs=Kt.Symbol,BI=Vs&&Vs.for,Vlt=q3?Vs:Vs&&Vs.withoutSetter||kI,vo=function(t){if(!go(eh,t)||!K3&&typeof eh[t]!="string"){var e="Symbol."+t;K3&&go(Vs,t)?eh[t]=Vs[t]:eh[t]=q3&&BI?BI(e):Vlt(e)}return eh[t]},Wlt=Kt.TypeError,Glt=vo("toPrimitive"),tC=function(t){var e=function(n,r){if(!ho(n)||Z3(n))return n;var o,i=Y3(n,Glt);if(i){if(r===void 0&&(r="default"),o=En(i,n,r),!ho(o)||Z3(o))return o;throw Wlt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Gn(s=a.toString)&&!ho(l=En(s,a))||Gn(s=a.valueOf)&&!ho(l=En(s,a))||u!=="string"&&Gn(s=a.toString)&&!ho(l=En(s,a)))return l;throw Llt("Can't convert object to primitive value")}(n,r)}(t,"string");return Z3(e)?e:e+""},eC=Kt.document,Klt=ho(eC)&&ho(eC.createElement),nC=function(t){return Klt?eC.createElement(t):{}},FI=!au&&!wn(function(){return Object.defineProperty(nC("div"),"a",{get:function(){return 7}}).a!=7}),TI=Object.getOwnPropertyDescriptor,PI={f:au?TI:function(t,e){if(t=Qp(t),e=tC(e),FI)try{return TI(t,e)}catch(n){}if(go(t,e))return $3(!En(Olt.f,t,e),t[e])}},qlt=Kt.String,Zlt=Kt.TypeError,mo=function(t){if(ho(t))return t;throw Zlt(qlt(t)+" is not an object")},Ylt=Kt.TypeError,jI=Object.defineProperty,nh={f:au?jI:function(t,e,n){if(mo(t),e=tC(e),mo(n),FI)try{return jI(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Ylt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Hc=au?function(t,e,n){return nh.f(t,e,$3(1,n))}:function(t,e,n){return t[e]=n,t},Xlt=Qt(Function.toString);Gn(lu.inspectSource)||(lu.inspectSource=function(t){return Xlt(t)});var J1,rh,Q1,rC=lu.inspectSource,_I=Kt.WeakMap,Jlt=Gn(_I)&&/native code/.test(rC(_I)),II=J3("keys"),NI=function(t){return II[t]||(II[t]=kI(t))},oC={},iC=Kt.TypeError,Qlt=Kt.WeakMap;if(Jlt||lu.state){var Ws=lu.state||(lu.state=new Qlt),tct=Qt(Ws.get),LI=Qt(Ws.has),ect=Qt(Ws.set);J1=function(t,e){if(LI(Ws,t))throw new iC("Object already initialized");return e.facade=t,ect(Ws,t,e),e},rh=function(t){return tct(Ws,t)||{}},Q1=function(t){return LI(Ws,t)}}else{var Uc=NI("state");oC[Uc]=!0,J1=function(t,e){if(go(t,Uc))throw new iC("Object already initialized");return e.facade=t,Hc(t,Uc,e),e},rh=function(t){return go(t,Uc)?t[Uc]:{}},Q1=function(t){return go(t,Uc)}}var aC={set:J1,get:rh,has:Q1,enforce:function(t){return Q1(t)?rh(t):J1(t,{})},getterFor:function(t){return function(e){var n;if(!ho(e)||(n=rh(e)).type!==t)throw iC("Incompatible receiver, "+t+" required");return n}}},RI=Function.prototype,nct=au&&Object.getOwnPropertyDescriptor,uC=go(RI,"name"),sC={EXISTS:uC,PROPER:uC&&function(){}.name==="something",CONFIGURABLE:uC&&(!au||au&&nct(RI,"name").configurable)},oh=vI(function(t){var e=sC.CONFIGURABLE,n=aC.get,r=aC.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Gn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!go(u,"name")||e&&u.name!==d)&&Hc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Kt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Hc(i,a,u)):f?i[a]=u:X3(a,u)})(Function.prototype,"toString",function(){return Gn(this)&&n(this).source||rC(this)})}),rct=Math.ceil,oct=Math.floor,tm=function(t){var e=+t;return e!=e||e===0?0:(e>0?oct:rct)(e)},ict=Math.max,act=Math.min,ih=function(t,e){var n=tm(t);return n<0?ict(n+e,0):act(n,e)},uct=Math.min,lC=function(t){return t>0?uct(tm(t),9007199254740991):0},em=function(t){return lC(t.length)},MI=function(t){return function(e,n,r){var o,i=Qp(e),a=em(i),u=ih(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},sct=(MI(!0),MI(!1)),zI=Qt([].push),$I=function(t,e){var n,r=Qp(t),o=0,i=[];for(n in r)!go(oC,n)&&go(r,n)&&zI(i,n);for(;e.length>o;)go(r,n=e[o++])&&(~sct(i,n)||zI(i,n));return i},nm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lct=nm.concat("length","prototype"),cct={f:Object.getOwnPropertyNames||function(t){return $I(t,lct)}},fct={f:Object.getOwnPropertySymbols},dct=Qt([].concat),pct=th("Reflect","ownKeys")||function(t){var e=cct.f(mo(t)),n=fct.f;return n?dct(e,n(t)):e},hct=function(t,e){for(var n=pct(e),r=nh.f,o=PI.f,i=0;i3})},{anchor:function(t){return e=t,n=er(su(this)),r=""+n+"";var e,n,r}});var rm,UI=function(){var t=mo(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},dC=Kt.RegExp,pC=wn(function(){var t=dC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),kct=pC||wn(function(){return!dC("a","y").sticky}),VI={BROKEN_CARET:pC||wn(function(){var t=dC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:kct,UNSUPPORTED_Y:pC},Bct=Object.keys||function(t){return $I(t,nm)},Fct=au?Object.defineProperties:function(t,e){mo(t);for(var n,r=Qp(e),o=Bct(e),i=o.length,a=0;i>a;)nh.f(t,n=o[a++],r[n]);return t},Tct=th("document","documentElement"),WI=NI("IE_PROTO"),hC=function(){},GI=function(t){return""},KI=function(t){t.write(GI("")),t.close();var e=t.parentWindow.Object;return t=null,e},om=function(){try{rm=new ActiveXObject("htmlfile")}catch(r){}var t,e;om=typeof document!="undefined"?document.domain&&rm?KI(rm):((e=nC("iframe")).style.display="none",Tct.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(GI("document.F=Object")),t.close(),t.F):KI(rm);for(var n=nm.length;n--;)delete om.prototype[nm[n]];return om()};oC[WI]=!0;var qI,gC,ZI=Object.create||function(t,e){var n;return t!==null?(hC.prototype=mo(t),n=new hC,hC.prototype=null,n[WI]=t):n=om(),e===void 0?n:Fct(n,e)},Pct=Kt.RegExp,jct=wn(function(){var t=Pct(".","s");return!(t.dotAll&&t.exec(` `)&&t.flags==="s")}),_ct=Kt.RegExp,Ict=wn(function(){var t=_ct("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),Nct=aC.get,Lct=J3("native-string-replace",String.prototype.replace),im=RegExp.prototype.exec,vC=im,Rct=Qt("".charAt),Mct=Qt("".indexOf),zct=Qt("".replace),mC=Qt("".slice),yC=(gC=/b*/g,En(im,qI=/a/,"a"),En(im,gC,"a"),qI.lastIndex!==0||gC.lastIndex!==0),YI=VI.BROKEN_CARET,bC=/()??/.exec("")[1]!==void 0;(yC||bC||YI||jct||Ict)&&(vC=function(t){var e,n,r,o,i,a,u,s=this,l=Nct(s),c=er(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=En(vC,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=YI&&s.sticky,y=En(UI,s),g=s.source,v=0,m=c;if(d&&(y=zct(y,"y",""),Mct(y,"g")===-1&&(y+="g"),m=mC(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Rct(c,s.lastIndex-1)!==` `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),bC&&(n=new RegExp("^"+g+"$(?!\\s)",y)),yC&&(r=s.lastIndex),o=En(im,d?n:s,m),d?o?(o.input=mC(o.input,v),o[0]=mC(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:yC&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),bC&&o&&o.length>1&&En(Lct,o[0],n,function(){for(i=1;i=51||!wn(function(){var e=[];return(e.constructor={})[Vct]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Wct=Qt([].slice),Gct=SC("slice"),Kct=vo("species"),CC=Kt.Array,qct=Math.max;function Lo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function tN(t){var e=t.selection;if(e==null)return!1;var n=Lo(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Lo(n,2)[1],o=E.start(t,r);if(Ut.equals(e.anchor,o))return!0}return!1}function eN(t,e){var n,r,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}cu({target:"Array",proto:!0,forced:!Gct},{slice:function(t,e){var n,r,o,i=Qp(this),a=em(i),u=ih(t,a),s=ih(e===void 0?a:e,a);if(am(i)&&(n=i.constructor,(EC(n)&&(n===CC||am(n.prototype))||ho(n)&&(n=n[Kct])===null)&&(n=void 0),n===CC||n===void 0))return Wct(i,u,s);for(r=new(n===void 0?CC:n)(qct(s-u,0)),o=0;uh;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:oN(w,p)}else switch(t){case 4:return!1;case 7:oN(w,p)}return i?-1:r||o?o:w}},um={forEach:fu(0),map:fu(1),filter:fu(2),some:fu(3),every:fu(4),find:fu(5),findIndex:fu(6),filterReject:fu(7)},Xct=um.map;cu({target:"Array",proto:!0,forced:!SC("map")},{map:function(t){return Xct(this,t,arguments.length>1?arguments[1]:void 0)}});var Jct=cC?{}.toString:function(){return"[object "+fC(this)+"]"};function sm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function iN(t){return sm(t).every(function(e){return!!e.isHeader})}cC||oh(Object.prototype,"toString",Jct,{unsafe:!0});var Qct=sC.PROPER,DC=RegExp.prototype,aN=DC.toString,tft=Qt(UI),eft=wn(function(){return aN.call({source:"a",flags:"b"})!="/a/b"}),nft=Qct&&aN.name!="toString";(eft||nft)&&oh(RegExp.prototype,"toString",function(){var t=mo(this),e=er(t.source),n=t.flags;return"/"+e+"/"+er(n===void 0&&EI(DC,t)&&!("flags"in DC)?tft(t):n)},{unsafe:!0});var xC=vo("unscopables"),AC=Array.prototype;AC[xC]==null&&nh.f(AC,xC,{configurable:!0,value:ZI(null)});var rft=um.find,uN=!0;"find"in[]&&Array(1).find(function(){uN=!1}),cu({target:"Array",proto:!0,forced:uN},{find:function(t){return rft(this,t,arguments.length>1?arguments[1]:void 0)}}),AC[xC].find=!0;var OC=Function.prototype,sN=OC.apply,oft=OC.bind,lN=OC.call,cN=typeof Reflect=="object"&&Reflect.apply||(oft?lN.bind(sN):function(){return lN.apply(sN,arguments)}),ift=vo("species"),kC=RegExp.prototype,fN=function(t,e,n,r){var o=vo(t),i=!wn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!wn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[ift]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Qt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=Qt(l),g=c.exec;return g===uh||g===kC.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});oh(String.prototype,t,s[0]),oh(kC,o,s[1])}r&&Hc(kC[o],"sham",!0)},aft=vo("match"),uft=Kt.TypeError,sft=vo("species"),lft=Qt("".charAt),dN=Qt("".charCodeAt),cft=Qt("".slice),pN=function(t){return function(e,n){var r,o,i=er(su(e)),a=tm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=dN(i,a))<55296||r>56319||a+1===u||(o=dN(i,a+1))<56320||o>57343?t?lft(i,a):r:t?cft(i,a,a+2):o-56320+(r-55296<<10)+65536}},fft=(pN(!1),pN(!0)),hN=function(t,e,n){return e+(n?fft(t,e).length:1)},dft=Kt.Array,pft=Math.max,gN=function(t,e,n){for(var r=em(t),o=ih(e,r),i=ih(n===void 0?r:n,r),a=dft(pft(i-o,0)),u=0;o1||"".split(/.?/).length?function(o,i){var a,u,s=er(su(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!ho(a=o)||!((u=a[aft])!==void 0?u:uu(a)=="RegExp"))return En(e,s,o,l);for(var c,f,p,d=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,v=new RegExp(o.source,y+"g");(c=En(uh,v,s))&&!((f=v.lastIndex)>g&&(Wc(d,lh(s,g,c.index)),c.length>1&&c.index=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&vft(v,"")||Wc(d,""):Wc(d,lh(s,g)),d.length>l?gN(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:En(e,this,o,i)}:e,[function(o,i){var a=su(this),u=o==null?void 0:Y3(o,t);return u?En(u,o,a,i):En(r,er(a),o,i)},function(o,i){var a=mo(this),u=er(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,S){var D,C=mo(w).constructor;return C===void 0||(D=mo(C)[sft])==null?S:function(O){if(EC(O))return O;throw uft(AI(O)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Vc?"g":"y"),p=new l(Vc?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return BC(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g=0,v=Ut.compare(f,y)<=0&&Ut.compare(f,d)>=0;return!!(g&&v&&_.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=Pt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},Pt("table",{width:i,contentEditable:r},Pt("colgroup",null,sm(t).map(function(u){var s=u.width;return Pt("col",{width:s===void 0?"auto":s})})),Pt("tbody",null,e)));return a}},Cft={type:"table-row",renderElem:function(t,e,n){return Pt("tr",null,e)}},Dft={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var y=A.getParentNode(p,d);if(y==null)return!1;var g=A.getParentNode(p,y);return g!=null&&sm(g).some(function(v){return v===d})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return Pt("td",{colSpan:a,rowSpan:s},e);var f=Pt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ns(function(p){var d=this.elm;if(d!=null){var y=d.getBoundingClientRect(),g=y.left,v=y.width,m=y.top,h=y.height,b=p.clientX,w=p.clientY;ch||(b>g+v-5&&bm&&w1?arguments[1]:void 0)}});var Oft=Math.floor,PC=Qt("".charAt),kft=Qt("".replace),jC=Qt("".slice),Bft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Fft=/\$([$&'`]|\d{1,2})/g,Tft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Fft;return o!==void 0&&(o=Q3(o),s=Bft),kft(i,s,function(l,c){var f;switch(PC(c,0)){case"$":return"$";case"&":return t;case"`":return jC(e,0,n);case"'":return jC(e,a);case"<":f=o[jC(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Oft(p/10);return d===0?l:d<=u?r[d-1]===void 0?PC(c,1):r[d-1]+PC(c,1):l}f=r[p-1]}return f===void 0?"":f})},_C=vo("replace"),Pft=Math.max,jft=Math.min,_ft=Qt([].concat),IC=Qt([].push),CN=Qt("".indexOf),DN=Qt("".slice),Ift="a".replace(/./,"$0")==="$0",xN=!!/./[_C]&&/./[_C]("a","$0")==="";fN("replace",function(t,e,n){var r=xN?"$":"$0";return[function(o,i){var a=su(this),u=o==null?void 0:Y3(o,_C);return u?En(u,o,a,i):En(e,er(a),o,i)},function(o,i){var a=mo(this),u=er(o);if(typeof i=="string"&&CN(i,r)===-1&&CN(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=Gn(i);l||(i=er(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=BC(a,u);if(d===null||(IC(p,d),!c))break;er(d[0])===""&&(a.lastIndex=hN(u,lC(a.lastIndex),f))}for(var y,g="",v=0,m=0;m=v&&(g+=DN(u,v,b)+O,v=b+h.length)}return g+DN(u,v)}]},!!wn(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!Ift||xN);var Nft={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t);(e=e.filter(function(u){return!!ft.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:yN(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Lft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Rft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=k(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=k('
        '),o=k("0 × 0"),i=k("
        "),a=0;a<10;a++){for(var u=k(""),s=0;s<10;s++){var l=k("");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=k(f).dataset(),d=p.x,y=p.y;o[0].innerHTML=d+1+" × "+(y+1),i.children().each(function(g){k(g).children().each(function(v){var m=k(v),h=m.dataset(),b=h.x,w=h.y;b<=d&&w<=y?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=k(f).dataset(),d=p.x,y=p.y;n.insertTable(e,y+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&I.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{mode:"highest"})},t}(),$ft=function(){function t(){this.title=nt("tableModule.insertRow"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Lo(E.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=Lo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Lo(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Lo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?I.removeNodes(e,{mode:"highest"}):I.removeNodes(e,{at:a})}},t}(),AN={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},NC=nC("span").classList,ON=NC&&NC.constructor&&NC.constructor.prototype,Uft=ON===Object.prototype?void 0:ON,Vft=um.forEach,Wft=function(t,e){var n=[].forEach;return!!n&&wn(function(){n.call(null,function(){throw 1},1)})}(),LC=Wft?[].forEach:function(t){return Vft(this,t,arguments.length>1?arguments[1]:void 0)},kN=function(t){if(t&&t.forEach!==LC)try{Hc(t,"forEach",LC)}catch(e){t.forEach=LC}};for(var RC in AN)AN[RC]&&kN(Kt[RC]&&Kt[RC].prototype);kN(Uft);var Gft=function(){function t(){this.title=nt("tableModule.insertCol"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Lo(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Lo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){bt.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&hI(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&iN(s)&&(d.isHeader=!0),I.insertNodes(e,d,{at:p})}})})}}},t}(),Kft=function(){function t(){this.title=nt("tableModule.deleteCol"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Lo(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Lo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)I.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){bt.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&hI(p.slice(-1),a.slice(-1))&&I.removeNodes(e,{at:p})})})}}},t}(),qft=function(){function t(){this.title=nt("tableModule.header"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&iN(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&sm(o).forEach(function(i){return I.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),Zft=function(){function t(){this.title=nt("tableModule.widthAuto"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};I.setNodes(e,r,{mode:"highest"})}},t}(),Yft={renderElems:[Sft,Cft,Dft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return''+e+"
        "}},{type:"table-row",elemToHtml:function(t,e){return""+e+""}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+""}}],preParseHtml:[xft],parseElemsHtml:[Nft,Lft,Rft],menus:[{key:"insertTable",factory:function(){return new Mft}},{key:"deleteTable",factory:function(){return new zft}},{key:"insertTableRow",factory:function(){return new $ft}},{key:"deleteTableRow",factory:function(){return new Hft}},{key:"insertTableCol",factory:function(){return new Gft}},{key:"deleteTableCol",factory:function(){return new Kft}},{key:"tableHeader",factory:function(){return new qft}},{key:"tableFullWidth",factory:function(){return new Zft}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(` `)},s.deleteBackward=function(l){if(!tN(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=eN(s,f),d=eN(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&I.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),I.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var y=A.genEmptyParagraph();I.insertNodes(s,y,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){tN(s)||r(l)},s.normalizeNode=function(l){var c=Lo(l,2),f=c[0],p=c[1];if(A.getNodeType(f)!=="table")return o([f,p]);if(A.isLastNode(s,f)){var d=A.genEmptyParagraph();I.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===` `||/]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(_.equals(f.path.slice(0,3),p.path.slice(0,3)))if(et.string(c).length!==0){var d=A.findPath(s,c),y={anchor:E.start(s,d),focus:E.end(s,d)};s.select(y)}else u();else u()}else u()}else u()},s}};Er("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party