Files
zb-admin/docs/assets/index.6b71c3d3.js

187 lines
801 KiB
JavaScript
Raw Normal View History

2023-02-27 19:43:11 +08:00
import{g as M1,i as Fl,Z as dP,x as s$,O as l$,$ as c$,a0 as f$,o as z1,c as $1,B as d$,P as p$,b as Tn,s as jh,a1 as h$,_ as g$,j as v$,r as Ya,a as Gi,w as mr,d as Nh,t as m$,M as y$}from"./index.8ab1f836.js";var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cs(t){var e={exports:{}};return t(e,e.exports),e.exports}var bi,q0,Ih=function(t){return t&&t.Math==Math&&t},kt=Ih(typeof globalThis=="object"&&globalThis)||Ih(typeof window=="object"&&window)||Ih(typeof self=="object"&&self)||Ih(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),u5=Function.prototype,Dx=u5.apply,w$=u5.bind,Cx=u5.call,pP=typeof Reflect=="object"&&Reflect.apply||(w$?Cx.bind(Dx):function(){return Cx.apply(Dx,arguments)}),hP=Function.prototype,x4=hP.bind,S4=hP.call,E$=x4&&x4.bind(S4),ge=x4?function(t){return t&&E$(S4,t)}:function(t){return t&&function(){return S4.apply(t,arguments)}},sn=function(t){return typeof t=="function"},qn=function(t){try{return!!t()}catch{return!0}},Vn=!qn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Tc=Function.prototype.call,$n=Tc.bind?Tc.bind(Tc):function(){return Tc.apply(Tc,arguments)},xx={}.propertyIsEnumerable,Sx=Object.getOwnPropertyDescriptor,D$=Sx&&!xx.call({1:2},1)?function(t){var e=Sx(this,t);return!!e&&e.enumerable}:xx,s5={f:D$},Zr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C$=ge({}.toString),x$=ge("".slice),Su=function(t){return x$(C$(t),8,-1)},Zm=kt.Object,S$=ge("".split),gP=qn(function(){return!Zm("z").propertyIsEnumerable(0)})?function(t){return Su(t)=="String"?S$(t,""):Zm(t)}:Zm,A$=kt.TypeError,l5=function(t){if(t==null)throw A$("Can't call method on "+t);return t},No=function(t){return gP(l5(t))},er=function(t){return typeof t=="object"?t!==null:sn(t)},tr={},Ax=function(t){return sn(t)?t:void 0},sc=function(t,e){return arguments.length<2?Ax(tr[t])||Ax(kt[t]):tr[t]&&tr[t][e]||kt[t]&&kt[t][e]},Id=ge({}.isPrototypeOf),Jm=sc("navigator","userAgent")||"",Ox=kt.process,kx=kt.Deno,Bx=Ox&&Ox.versions||kx&&kx.version,Fx=Bx&&Bx.v8;Fx&&(q0=(bi=Fx.split("."))[0]>0&&bi[0]<4?1:+(bi[0]+bi[1])),!q0&&Jm&&(!(bi=Jm.match(/Edge\/(\d+)/))||bi[1]>=74)&&(bi=Jm.match(/Chrome\/(\d+)/))&&(q0=+bi[1]);var Lh,Og=q0,go=!!Object.getOwnPropertySymbols&&!qn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Og&&Og<41}),c5=go&&!Symbol.sham&&typeof Symbol.iterator=="symbol",O$=kt.Object,ml=c5?function(t){return typeof t=="symbol"}:function(t){var e=sc("Symbol");return sn(e)&&Id(e.prototype,O$(t))},k$=kt.String,A4=function(t){try{return k$(t)}catch{return"Object"}},B$=kt.TypeError,f5=function(t){if(sn(t))return t;throw B$(A4(t)+" is not a function")},kg=function(t,e){var n=t[e];return n==null?void 0:f5(n)},F$=kt.TypeError,_$=Object.defineProperty,ra=kt["__core-js_shared__"]||function(t,e){try{_$(kt,t,{value:e,configurable:!0,writable:!0})}catch{kt[t]=e}return e}("__core-js_shared__",{}),fs=cs(function(t){(t.exports=function(e,n){return ra[e]||(ra[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),T$=kt.Object,jp=function(t){return T$(l5(t))},P$=ge({}.hasOwnProperty),Vt=Object.hasOwn||function(t,e){return P$(jp(t),e)},j$=0,N$=Math.random(),I$=ge(1 .toString),Bg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+I$(++j$+N$,36)},Pc=fs("wks"),Au=kt.Symbol,_x=Au&&Au.for,L$=c5?Au:Au&&Au.withoutSetter||Bg,Bn=function(t){if(!Vt(Pc,t)||!go&&typeof Pc[t]!="string"){var e="Symbol."+t;go&&Vt(Au,t)?Pc[t]=Au[t]:Pc[t]=c5&&_x?_x(e):L$(e)}return Pc[t]},R$=kt.TypeError,M$=Bn("toPrimitive"),z$=function(t,e){if(!er(t)||ml(t))return t;var n,r=kg(t,M$);if(r){if(e===void 0&&(e="default"),n=$n(r,t,e),!er(n)||ml(n))return n;throw R$("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&sn(a=o.toString)&&!er(u=$n(a,o))||s
2023-02-20 10:43:58 +08:00
`),e),`
`);return t},AH=function(t,e){er(e)&&"cause"in e&&Pn(t,"cause",e.cause)},ni={},OH=Bn("iterator"),kH=Array.prototype,CP={};CP[Bn("toStringTag")]="z";var v5=String(CP)==="[object z]",BH=Bn("toStringTag"),FH=kt.Object,_H=Su(function(){return arguments}())=="Arguments",Rp=v5?Su:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=FH(t),BH))=="string"?n:_H?Su(e):(r=Su(e))=="Object"&&sn(e.callee)?"Arguments":r},TH=Bn("iterator"),zx=function(t){if(t!=null)return kg(t,TH)||kg(t,"@@iterator")||ni[Rp(t)]},PH=kt.TypeError,$x=function(t,e,n){var r,o;ur(t);try{if(!(r=kg(t,"return"))){if(e==="throw")throw n;return n}r=$n(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return ur(r),n},jH=kt.TypeError,X0=function(t,e){this.stopped=t,this.result=e},Hx=X0.prototype,NH=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=d5(e,c),g=function(y){return r&&$x(r,"normal",y),new X0(!0,y)},v=function(y){return f?(ur(y),d?m(y[0],y[1],g):m(y[0],y[1])):d?m(y,g):m(y)};if(p)r=t;else{if(!(o=zx(t)))throw jH(A4(t)+" is not iterable");if(function(y){return y!==void 0&&(ni.Array===y||kH[OH]===y)}(o)){for(i=0,a=Ip(t);a>i;i++)if((u=v(t[i]))&&Id(Hx,u))return u;return new X0(!1)}r=function(y,h){var b=arguments.length<2?zx(y):h;if(f5(b))return ur($n(b,y));throw PH(A4(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=$n(s,r)).done;){try{u=v(l.value)}catch(y){$x(r,"throw",y)}if(typeof u=="object"&&u&&Id(Hx,u))return u}return new X0(!1)},IH=kt.String,Ld=function(t){if(Rp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return IH(t)},LH=function(t,e){return t===void 0?arguments.length<2?"":e:Ld(t)},RH=!qn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Zr(1,7)),t.stack!==7)}),MH=Bn("toStringTag"),Pg=kt.Error,zH=[].push,Rd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Id(ty,this);_g?n=_g(new Pg(void 0),o?Fg(this):ty):(n=o?this:ai(ty),Pn(n,MH,"Error")),Pn(n,"message",LH(e,"")),RH&&Pn(n,"stack",SH(n.stack,1)),AH(n,r);var i=[];return NH(t,zH,{that:i}),Pn(n,"errors",i),n};_g?_g(Rd,Pg):function(t,e){for(var n=gH(e),r=La.f,o=H1.f,i=0;i<n.length;i++){var a=n[i];Vt(t,a)||r(t,a,o(e,a))}}(Rd,Pg);var ty=Rd.prototype=ai(Pg.prototype,{constructor:Zr(1,Rd),message:Zr(1,""),name:Zr(1,"AggregateError")});Yo({global:!0},{AggregateError:Rd});var $H=ge(Function.toString);sn(ra.inspectSource)||(ra.inspectSource=function(t){return $H(t)});var jg,ld,Ng,xP=ra.inspectSource,Vx=kt.WeakMap,HH=sn(Vx)&&/native code/.test(xP(Vx)),T4=kt.TypeError,VH=kt.WeakMap;if(HH||ra.state){var Xa=ra.state||(ra.state=new VH),UH=ge(Xa.get),Ux=ge(Xa.has),WH=ge(Xa.set);jg=function(t,e){if(Ux(Xa,t))throw new T4("Object already initialized");return e.facade=t,WH(Xa,t,e),e},ld=function(t){return UH(Xa,t)||{}},Ng=function(t){return Ux(Xa,t)}}else{var Os=V1("state");Lp[Os]=!0,jg=function(t,e){if(Vt(t,Os))throw new T4("Object already initialized");return e.facade=t,Pn(t,Os,e),e},ld=function(t){return Vt(t,Os)?t[Os]:{}},Ng=function(t){return Vt(t,Os)}}var Zi,Wx,Gx,cc={set:jg,get:ld,has:Ng,enforce:function(t){return Ng(t)?ld(t):jg(t,{})},getterFor:function(t){return function(e){var n;if(!er(e)||(n=ld(e)).type!==t)throw T4("Incompatible receiver, "+t+" required");return n}}},SP=Function.prototype,GH=Vn&&Object.getOwnPropertyDescriptor,ey=Vt(SP,"name"),qH={EXISTS:ey,PROPER:ey&&function(){}.name==="something",CONFIGURABLE:ey&&(!Vn||Vn&&GH(SP,"name").configurable)},_l=function(t,e,n,r){r&&r.enumerable?t[e]=n:Pn(t,e,n)},P4=Bn("iterator"),AP=!1;[].keys&&("next"in(Gx=[].keys())?(Wx=Fg(Fg(Gx)))!==Object.prototype&&(Zi=Wx):AP=!0);var KH=Zi==null||qn(function(){var t={};return Zi[P4].call(t)!==t});Zi=KH?{}:ai(Zi),sn(Zi[P4])||_l(Zi,P4,function(){return this});var OP={IteratorPrototype:Zi,BUGGY_SAFARI_ITERATORS:AP},YH=v5?{}.toString:function(){return"[object "+Rp(this)+"]"},XH=La.f,qx=Bn("toStringTag"),Ig=function(t,e,n,r){if(t){var o=n?t:t.prototype;Vt(o,qx)||XH(o,qx,{configurable:!0,value:e}),r&&!v5&&Pn(o,"toString",
`)&&t.flags==="s")}),DU=Et.RegExp,CU=cn(function(){var t=DU("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),xU=Yu.get,SU=w5("native-string-replace",String.prototype.replace),$g=RegExp.prototype.exec,H4=$g,AU=ie("".charAt),OU=ie("".indexOf),kU=ie("".replace),cy=ie("".slice),fy=(ly=/b*/g,un($g,hS=/a/,"a"),un($g,ly,"a"),hS.lastIndex!==0||ly.lastIndex!==0),gS=vU.BROKEN_CARET,dy=/()??/.exec("")[1]!==void 0;(fy||dy||gS||EU||CU)&&(H4=function(t){var e,n,r,o,i,a,u,s=this,l=xU(s),c=Bu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=un(H4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=gS&&s.sticky,m=un(pU,s),g=s.source,v=0,y=c;if(d&&(m=kU(m,"y",""),OU(m,"g")===-1&&(m+="g"),y=cy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&AU(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),dy&&(n=new RegExp("^"+g+"$(?!\\s)",m)),fy&&(r=s.lastIndex),o=un($g,d?n:s,y),d?o?(o.input=cy(o.input,v),o[0]=cy(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:fy&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),dy&&o&&o.length>1&&un(SU,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Hp(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Hg=H4;$p({target:"RegExp",proto:!0,forced:/./.exec!==Hg},{exec:Hg});var BU=In("species"),py=RegExp.prototype,FU=ie("".charAt),vS=ie("".charCodeAt),_U=ie("".slice),mS=function(t){return function(e,n){var r,o,i=Bu(U1(e)),a=B5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=vS(i,a))<55296||r>56319||a+1===u||(o=vS(i,a+1))<56320||o>57343?t?FU(i,a):r:t?_U(i,a,a+2):o-56320+(r-55296<<10)+65536}},zP={codeAt:mS(!1),charAt:mS(!0)},TU=zP.charAt,PU=function(t,e,n){return e+(n?TU(t,e).length:1)},jU=Et.TypeError,yS=function(t,e){var n=t.exec;if(Ge(n)){var r=un(n,t,e);return r!==null&&sr(r),r}if(Ou(t)==="RegExp")return un(Hg,t,e);throw jU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=In(t),i=!cn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!cn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[BU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ie(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=ie(l),g=c.exec;return g===Hg||g===py.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});aa(String.prototype,t,s[0]),aa(py,o,s[1])}r&&Nn(py[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=U1(this),i=r==null?void 0:Md(r,t);return i?un(i,r,o):new RegExp(r)[t](Bu(o))},function(r){var o=sr(this),i=Bu(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return yS(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=yS(o,i))!==null;){var f=Bu(s[0]);l[c]=f,f===""&&(o.lastIndex=PU(i,jP(o.lastIndex),u)),c++}return c===0?null:l}]}),$p({global:!0},{globalThis:Et});var NU=!cn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),bS=A5("IE_PROTO"),V4=Et.Object,IU=V4.prototype,zd=NU?V4.getPrototypeOf:function(t){var e=E5(t);if(Un(e,bS))return e[bS];var n=e.constructor;return Ge(n)&&e instanceof n?n.prototype:e instanceof V4?IU:null},LU=Et.String,RU=Et.TypeError,Tl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return sr(r),function(i){if(typeof i=="object"||Ge(i))return i;throw RU("Can't set "+LU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),MU=Et.Array,zU=Math.max,$U=ie("".replace),HU=ie("".split),VU=ie([].join),U4=String(Error("zxcasd").stack),$P=/\n\s*at [^:]*:[^\n]*/,UU=$P.test(U4),WU=/@[^\n]*\n/.test(U4)&&!/zxcasd/.test(U4),GU=function(t,e){if(typeof t!="string")return t;if(UU)for(;e--;)t=$U(t,$P,"");else if(WU)return VU(function(n,r,o){for(var i,a,u,s,l=W1(n),c=$4(r,l),f=$4(o===void 0?l:o,l),p=MU(zU(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=D5(a))in i?dc.f(i,s,oa(0,u)):i[s]=u;return p.length=d,p}(HU(t,`
`),e),`
`);return t},qU=function(t,e){Wr(e)&&"cause"in e&&Nn(t,"cause",e.cause)},wS=ie(ie.bind),HP=function(t,e){return y5(t),e===void 0?t:wS?wS(t,e):function(){return t.apply(e,arguments)}},Pl={},KU=In("iterator"),YU=Array.prototype,XU=In("iterator"),ES=function(t){if(t!=null)return Md(t,XU)||Md(t,"@@iterator")||Pl[G1(t)]},ZU=Et.TypeError,DS=function(t,e,n){var r,o;sr(t);try{if(!(r=Md(t,"return"))){if(e==="throw")throw n;return n}r=un(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return sr(r),n},JU=Et.TypeError,Q0=function(t,e){this.stopped=t,this.result=e},CS=Q0.prototype,QU=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=HP(e,c),g=function(y){return r&&DS(r,"normal",y),new Q0(!0,y)},v=function(y){return f?(sr(y),d?m(y[0],y[1],g):m(y[0],y[1])):d?m(y,g):m(y)};if(p)r=t;else{if(!(o=ES(t)))throw JU(R4(t)+" is not iterable");if(function(y){return y!==void 0&&(Pl.Array===y||YU[KU]===y)}(o)){for(i=0,a=W1(t);a>i;i++)if((u=v(t[i]))&&Lg(CS,u))return u;return new Q0(!1)}r=function(y,h){var b=arguments.length<2?ES(y):h;if(y5(b))return sr(un(b,y));throw ZU(R4(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=un(s,r)).done;){try{u=v(l.value)}catch(y){DS(r,"throw",y)}if(typeof u=="object"&&u&&Lg(CS,u))return u}return new Q0(!1)},tW=function(t,e){return t===void 0?arguments.length<2?"":e:Bu(t)},eW=!cn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",oa(1,7)),t.stack!==7)}),nW=In("toStringTag"),Vg=Et.Error,rW=[].push,$d=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Lg(hy,this);Tl?n=Tl(new Vg(void 0),o?zd(this):hy):(n=o?this:Hp(hy),Nn(n,nW,"Error")),Nn(n,"message",tW(e,"")),eW&&Nn(n,"stack",GU(n.stack,1)),qU(n,r);var i=[];return QU(t,rW,{that:i}),Nn(n,"errors",i),n};Tl?Tl($d,Vg):IP($d,Vg);var hy=$d.prototype=Hp(Vg.prototype,{constructor:oa(1,$d),message:oa(1,""),name:oa(1,"AggregateError")});$p({global:!0},{AggregateError:$d});var W4=In("unscopables"),G4=Array.prototype;G4[W4]==null&&dc.f(G4,W4,{configurable:!0,value:Hp(null)});var Fu,xS,SS,gy=function(t){G4[W4][t]=!0},q4=In("iterator"),VP=!1;[].keys&&("next"in(SS=[].keys())?(xS=zd(zd(SS)))!==Object.prototype&&(Fu=xS):VP=!0);var oW=Fu==null||cn(function(){var t={};return Fu[q4].call(t)!==t});oW&&(Fu={}),Ge(Fu[q4])||aa(Fu,q4,function(){return this});var P5={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:VP},iW=dc.f,AS=In("toStringTag"),OS=function(t,e,n){t&&!Un(t=n?t:t.prototype,AS)&&iW(t,AS,{configurable:!0,value:e})},aW=P5.IteratorPrototype,uW=function(){return this},sW=k5.PROPER,lW=k5.CONFIGURABLE,kS=P5.IteratorPrototype,$h=P5.BUGGY_SAFARI_ITERATORS,Ic=In("iterator"),cW=function(){return this},UP=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Hp(aW,{next:oa(+!w,b)}),OS(y,D,!1),Pl[D]=uW})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!$h&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[Ic]||d["@@iterator"]||o&&d[o],g=!$h&&m||c(o),v=e=="Array"&&d.entries||m;if(v&&(u=zd(v.call(new t)))!==Object.prototype&&u.next&&(zd(u)!==kS&&(Tl?Tl(u,kS):Ge(u[Ic])||aa(u,Ic,cW)),OS(u,f,!0)),sW&&o=="values"&&m&&m.name!=="values"&&(lW?Nn(d,"name","values"):(p=!0,g=function(){return un(m,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)($h||p||!(l in d))&&aa(d,l,s[l]);else $p({target:e,proto:!0,forced:$h||p},s);return d[Ic]!==g&&aa(d,Ic,g,{name:o}),Pl[e]=g,s},fW=Yu.set,dW=Yu.getterFor("Array Iterator"),Qf=UP(Array,"Array",function(t,e){fW(this,{type:"Array Iterator",target:fc(t),index:0,kind:e})},function(){var t=dW(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");Pl.Arguments=Pl.Array,gy("keys"),gy("values"),gy("entries");var pW=zP.charAt,hW=Yu.set,gW=Yu.getterFor("String Iterator");UP(String,"String",function(t){hW(this,{type:"St
Sorry, wangEditor V5+ versions do not support IE browser.`),_S(),TS()):global&&((vy=global.navigator)===null||vy===void 0?void 0:vy.userAgent.match("QQBrowser"))&&(_S(),TS());function _S(){typeof globalThis>"u"&&(window.globalThis=window)}function TS(){lV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var PS,Wg=Array.isArray||function(t){return Su(t)=="Array"},qP=function(){},vW=[],KP=sc("Reflect","construct"),j5=/^\s*(?:class|function)\b/,mW=ge(j5.exec),yW=!j5.exec(qP),Lc=function(t){if(!sn(t))return!1;try{return KP(qP,vW,t),!0}catch{return!1}},bW=!KP||qn(function(){var t;return Lc(Lc.call)||!Lc(Object)||!Lc(function(){t=!0})||t})?function(t){if(!sn(t))return!1;switch(Rp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yW||!!mW(j5,xP(t))}:Lc,wW=Bn("species"),jS=kt.Array,YP=function(t,e){return new(function(n){var r;return Wg(n)&&(r=n.constructor,(bW(r)&&(r===jS||Wg(r.prototype))||er(r)&&(r=r[wW])===null)&&(r=void 0)),r===void 0?jS:r}(t))(e===0?0:e)},EW=Bn("species"),XP=Bn("isConcatSpreadable"),NS=kt.TypeError,DW=Og>=51||!qn(function(){var t=[];return t[XP]=!1,t.concat()[0]!==t}),CW=(PS="concat",Og>=51||!qn(function(){var t=[];return(t.constructor={})[EW]=function(){return{foo:1}},t[PS](Boolean).foo!==1})),xW=function(t){if(!er(t))return!1;var e=t[XP];return e!==void 0?!!e:Wg(t)};Yo({target:"Array",proto:!0,forced:!DW||!CW},{concat:function(t){var e,n,r,o,i,a=jp(this),u=YP(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(xW(i=e===-1?a:arguments[e])){if(s+(o=Ip(i))>9007199254740991)throw NS("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&F4(u,s,i[n])}else{if(s>=9007199254740991)throw NS("Maximum allowed index exceeded");F4(u,s++,i)}return u.length=s,u}});var IS=h5.f,LS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ZP={f:function(t){return LS&&Su(t)=="Window"?function(e){try{return IS(e)}catch{return EP(LS)}}(t):IS(No(t))}},SW=ge([].slice),N5={f:Bn},AW=La.f,je=function(t){var e=tr.Symbol||(tr.Symbol={});Vt(e,t)||AW(e,t,{value:N5.f(t)})},RS=ge([].push),Ei=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,m=jp(s),g=gP(m),v=d5(l,c),y=Ip(g),h=0,b=f||YP,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),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:RS(w,p)}else switch(t){case 4:return!1;case 7:RS(w,p)}return i?-1:r||o?o:w}},q1={forEach:Ei(0),map:Ei(1),filter:Ei(2),some:Ei(3),every:Ei(4),find:Ei(5),findIndex:Ei(6),filterReject:Ei(7)}.forEach,Mn=V1("hidden"),MS=Bn("toPrimitive"),OW=cc.set,zS=cc.getterFor("Symbol"),Kr=Object.prototype,qi=kt.Symbol,Ji=qi&&qi.prototype,$S=kt.TypeError,Ey=kt.QObject,Rc=sc("JSON","stringify"),JP=H1.f,Ki=La.f,QP=ZP.f,kW=s5.f,tj=ge([].push),ui=fs("symbols"),Vp=fs("op-symbols"),Dy=fs("string-to-symbol-registry"),Cy=fs("symbol-to-string-registry"),BW=fs("wks"),xy=!Ey||!Ey.prototype||!Ey.prototype.findChild,K4=Vn&&qn(function(){return ai(Ki({},"a",{get:function(){return Ki(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=JP(Kr,e);r&&delete Kr[e],Ki(t,e,n),r&&t!==Kr&&Ki(Kr,e,r)}:Ki,Sy=function(t,e){var n=ui[t]=ai(Ji);return OW(n,{type:"Symbol",tag:t,description:e}),Vn||(n.description=e),n},Gg=function(t,e,n){t===Kr&&Gg(Vp,e,n),ur(t);var r=lc(e);return ur(n),Vt(ui,r)?(n.enumerable?(Vt(t,Mn)&&t[Mn][r]&&(t[Mn][r]=!1),n=ai(n,{enumerable:Zr(0,!1)})):(Vt(t,Mn)||Ki(t,Mn,Zr(1,{})),t[Mn][r]=!0),K4(t,r,n)):Ki(t,r,n)},HS=function(t,e){ur(t);var n=No(e),r=g5(n).concat(Y4(n));return q1(r,function(o){Vn&&!$n(ej,n,o)||Gg(t,o,n[o])}),t},ej=function(t){var e=lc(t),n=$n(kW,this,e);return!(this===Kr&&Vt(ui,e)&&!Vt(Vp,e))&&(!(n||!Vt(this,e)||!Vt(ui,e)||Vt(this,Mn)&&this[Mn][e])||n)},VS=function(t,e){var n=No(t),r=lc(e);if(n!==Kr||!Vt(ui,r)||Vt(Vp,r)){var o=JP(n,r);return!o||!Vt(ui,r)||Vt(n,Mn)&&n[Mn][r]||(o.enumerable=!0),o}},US=function(t){var e=QP(No(t)),n=[];return q1(e,function(r){Vt(ui,r)||Vt(Lp,r)||tj(n,r)}),n},Y4=function(t){var e=t===Kr,n=QP(e?Vp:
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function WS(t){return Object.prototype.toString.call(t)==="[object Object]"}function Sn(t){var e,n;return WS(t)!==!1&&((e=t.constructor)===void 0||WS(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Gr(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xu(t){return!!t&&!!t[lr]}function Zu(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===VW}(t)||Array.isArray(t)||!!t[QS]||!!t.constructor[QS]||I5(t)||L5(t))}function Hd(t,e,n){n===void 0&&(n=!1),jl(t)===0?(n?Object.keys:H5)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function jl(t){var e=t[lr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:I5(t)?2:L5(t)?3:0}function X4(t,e){return jl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function rj(t,e,n){var r=jl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function I5(t){return $W&&t instanceof Map}function L5(t){return HW&&t instanceof Set}function lu(t){return t.o||t.t}function R5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=UW(t);delete e[lr];for(var n=H5(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function M5(t,e){return e===void 0&&(e=!1),z5(t)||Xu(t)||!Zu(t)||(jl(t)>1&&(t.set=t.add=t.clear=t.delete=RW),Object.freeze(t),e&&Hd(t,function(n,r){return M5(r,!0)},!0)),t}function RW(){Gr(2)}function z5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ri(t){var e=WW[t];return e||Gr(18,t),e}function GS(){return Vd}function Ay(t,e){e&&(ri("Patches"),t.u=[],t.s=[],t.v=e)}function qg(t){Z4(t),t.p.forEach(MW),t.p=null}function Z4(t){t===Vd&&(Vd=t.l)}function qS(t){return Vd={p:[],l:Vd,h:t,m:!0,_:0}}function MW(t){var e=t[lr];e.i===0||e.i===1?e.j():e.O=!0}function Oy(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ri("ES5").S(e,t,r),r?(n[lr].P&&(qg(e),Gr(4)),Zu(t)&&(t=Kg(e,t),e.l||Yg(e,t)),e.u&&ri("Patches").M(n[lr],t,e.u,e.s)):t=Kg(e,n,[]),qg(e),e.u&&e.v(e.u,e.s),t!==oj?t:void 0}function Kg(t,e,n){if(z5(e))return e;var r=e[lr];if(!r)return Hd(e,function(i,a){return KS(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Yg(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=R5(r.k):r.o;Hd(r.i===3?new Set(o):o,function(i,a){return KS(t,r,o,i,a,n)}),Yg(t,o,!1),n&&t.u&&ri("Patches").R(r,n,t.u,t.s)}return r.o}function KS(t,e,n,r,o,i){if(Xu(o)){var a=Kg(t,o,i&&e&&e.i!==3&&!X4(e.D,r)?i.concat(r):void 0);if(rj(n,r,a),!Xu(a))return;t.m=!1}if(Zu(o)&&!z5(o)){if(!t.h.F&&t._<1)return;Kg(t,o),e&&e.A.l||Yg(t,o)}}function Yg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&M5(e,n)}function ky(t,e){var n=t[lr];return(n?lu(n):t)[e]}function YS(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 J4(t){t.P||(t.P=!0,t.l&&J4(t.l))}function By(t){t.o||(t.o=R5(t.t))}function Q4(t,e,n){var r=I5(e)?ri("MapSet").N(e,n):L5(e)?ri("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:GS(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=tg;a&&(s=[u],l=eg);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):ri("ES5").J(e,n);return(n?n.A:GS()).p.push(r),r}function zW(t){return Xu(t)||Gr(22,t),function e(n){if(!Zu(n))return n;var r,o=n[lr],i=jl(n);if(o){if(!o.P&&(o.i<4||!ri("ES5").K(o)))return o.t;o.I=!0,r=XS(n,i),o.I=!1}else r=XS(n,i);return Hd(r,function(a,u){o&&function(s,l){return jl(s)===2?s.get(l):s[l]}(o.t,a)===u||rj(r,a,e(u))}),i===3?new Set(r):r}(t)}function XS(t,e){switch(e){cas
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(Q.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=j.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(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):j.common(e.anchor.path,e.focus.path)),Bt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.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=rA.get(t);return e||(e=new Set,rA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!ot.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(L.isRange(e)){var[s,l]=L.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=oA.get(t);return e||(e=new Set,oA.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]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,m=0;for(var[g,v]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ct.isElement(g)){if(!i&&t.isVoid(g)){yield E.start(t,v);continue}if(t.isInline(g))continue;if(E.hasInlines(t,g)){var y=j.isAncestor(v,s.path)?s:E.end(t,v),h=j.isAncestor(v,u.path)?u:E.start(t,v);f=E.string(t,{anchor:h,focus:y},{voids:i}),c=!0}}if(ot.isText(g)){var b=j.equals(v,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,m=l.offset):(d=g.text.length,m=o?d:0),(b||c||r==="offset")&&(yield{path:v,offset:m},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=eE(f,p,o)[1]}if(m=o?m-p:m+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:m}}}}}function w(D,x,C){return x==="character"?tE(D,C):x==="word"?function(O){for(var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=tE(O,_),[K,U]=eE(O,M,_);if(JW(K,U,_))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(D,C):x==="line"||x==="block"?D.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(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.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)=>L.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=iA.get(t);return e||(e=new Set,iA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){nA.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]=L.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:ot.isText,voids:r})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.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]:{}
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function e7(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=jK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var Ij=(_s=PK("apply"),class{constructor(t){Object.defineProperty(this,_s,{value:NK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(t7(this,_s)[_s],this):t7(this,_s)[_s](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 e7(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 e7(n,e)}});function NK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var Lj=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)],m=Object.keys(e),g=0,v=m.length;g<v;g++){var y=m[g];if(y==="*"&&(f=f.concat(e[y])),d.length===2&&d[0]===y){f=f.concat(e[y]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,m=f.length;d<m&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},t},IK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:LK}=IK,n7=t=>crypto.getRandomValues(new Uint8Array(t)),r7=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var RK={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)=>r7(t,e,n7),customRandom:r7,urlAlphabet:LK,random:n7},zy=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 Rj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Rj.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<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var MK=/[\/\+\.]/,zK=function(t,e){function n(r){var o=function(i,a,u){var s=new Rj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,MK);return o&&o.length>=2}return e?n(e.split(";")[0]):n},$K=0;function HK(t){return"__private_"+$K+++"_"+t}var $y=HK("publish");class Mj{constructor(){Object.defineProperty(this,$y,{value:VK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...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,$y)[$y](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function VK(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++
id: ${r[i].id}
type: ${r[i].type}`)}),r.length>0&&ft(this,Wc)[Wc](),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={...r},a={...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]={...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={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...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=ft(this,Go)[Go](n,{forceAllowNewUpload:!0});return ft(this,qo)[qo](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=ft(this,Go)[Go]([e],{forceAllowNewUpload:!0});return ft(this,qo)[qo](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:{...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 impo
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 ft(this,pn)[pn]?ft(this,pn)[pn][r.type].push(r):ft(this,pn)[pn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(ft(this,pn)[pn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[Hj](e){return ft(this,pn)[pn][e]}iteratePlugins(e){Object.values(ft(this,pn)[pn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=ft(this,pn)[pn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...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(),ft(this,Hc)[Hc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ft(this,Ur)[Ur]),window.removeEventListener("offline",ft(this,Ur)[Ur]))}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]?ft(this,qo)[qo](e):(ft(this,wu)[wu](e),Promise.reject(new Error("Nonexistent upload")))}[Vj](){return ft(this,Go)[Go](...arguments)}addResultData(e,n){if(!ft(this,Gy)[Gy](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=ft(this,pn)[pn].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(()=>{ft(this,Vy)[Vy](n),ft(this,Uy)[Uy](n)}).catch(o=>{ft(this,Je)[Je](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=ft(this,Go)[Go](a);return ft(this,qo)[qo](u)}).catch(o=>{ft(this,Je)[Je](o,{showInformer:!1})}))}}function ZK(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 bo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&zK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new bo(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 bo(this.i18n("exceedsSize",{size:zy(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new bo(this.i18n("exceedsSize",{size:zy(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new bo(this.i18n("inferiorSize",{size:zy(r)}))}function JK(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new bo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function QK(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new bo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),ft(this,Je)[Je](a,{file:t,showInformer:!1,t
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function R7(t){return Object.prototype.toString.call(t)==="[object Object]"}De({target:"Object",stat:!0,forced:KX},{keys:function(t){return bl(Ra(t))}});var YX={isHistory(t){return R7(e=t)!==!1&&((n=e.constructor)===void 0||R7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Qi.isOperationList(t.redos[0]))&&(t.undos.length===0||Qi.isOperationList(t.undos[0]));var e,n,r}},ib=new WeakMap,ab=new WeakMap,dl={isHistoryEditor:t=>YX.isHistory(t.history)&&E.isEditor(t),isMerging:t=>ab.get(t),isSaving:t=>ib.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=dl.isMerging(t);ab.set(t,!1),e(),ab.set(t,n)},withoutSaving(t,e){var n=dl.isSaving(t);ib.set(t,!1),e(),ib.set(t,n)}},XX=X.String,ue=function(t){if(rm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return XX(t)},u8=function(){var t=Le(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},ZX=pc.PROPER,SE=RegExp.prototype,lN=SE.toString,JX=pt(u8),QX=Zt(function(){return lN.call({source:"a",flags:"b"})!="/a/b"}),tZ=ZX&&lN.name!="toString";(QX||tZ)&&Wn(RegExp.prototype,"toString",function(){var t=Le(this),e=ue(t.source),n=t.flags;return"/"+e+"/"+ue(n===void 0&&Qu(SE,t)&&!("flags"in SE)?JX(t):n)},{unsafe:!0});var Xh,eZ=an?Object.defineProperties:function(t,e){Le(t);for(var n,r=Ma(e),o=bl(e),i=o.length,a=0;i>a;)io.f(t,n=o[a++],r[n]);return t},AE=vs("document","documentElement"),cN=i8("IE_PROTO"),ub=function(){},fN=function(t){return"<script>"+t+"<\/script>"},M7=function(t){t.write(fN("")),t.close();var e=t.parentWindow.Object;return t=null,e},ig=function(){try{Xh=new ActiveXObject("htmlfile")}catch{}var t,e;ig=typeof document<"u"?document.domain&&Xh?M7(Xh):((e=qd("iframe")).style.display="none",AE.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(fN("document.F=Object")),t.close(),t.F):M7(Xh);for(var n=pv.length;n--;)delete ig.prototype[pv[n]];return ig()};nm[cN]=!0;var am=Object.create||function(t,e){var n;return t!==null?(ub.prototype=Le(t),n=new ub,ub.prototype=null,n[cN]=t):n=ig(),e===void 0?n:eZ(n,e)},OE=xe("unscopables"),kE=Array.prototype;kE[OE]==null&&io.f(kE,OE,{configurable:!0,value:am(null)});var hd=function(t){kE[OE][t]=!0},nZ=aN.includes;De({target:"Array",proto:!0},{includes:function(t){return nZ(this,t,arguments.length>1?arguments[1]:void 0)}}),hd("includes");var rZ=xe("match"),s8=function(t){var e;return ce(t)&&((e=t[rZ])!==void 0?!!e:Qr(t)=="RegExp")},oZ=X.TypeError,l8=function(t){if(s8(t))throw oZ("The method doesn't accept regular expressions");return t},iZ=xe("match"),c8=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[iZ]=!1,"/./"[t](e)}catch{}}return!1},aZ=pt("".indexOf);De({target:"String",proto:!0,forced:!c8("includes")},{includes:function(t){return!!~aZ(ue(jr(this)),ue(l8(t)),arguments.length>1?arguments[1]:void 0)}});var uZ=/"/g,sZ=pt("".replace);De({target:"String",proto:!0,forced:Zt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ue(jr(this)),r="<a",(r+=' name="'+sZ(ue(e),uZ,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var BE=function(t,e,n){var r,o;Le(t);try{if(!(r=ts(t,"return"))){if(e==="throw")throw n;return n}r=Ut(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Le(r),n},lZ=function(t,e,n,r){try{return r?e(Le(n)[0],n[1]):e(n)}catch(o){BE(t,"throw",o)}},ql={},cZ=xe("iterator"),fZ=Array.prototype,dN=function(t){return t!==void 0&&(ql.Array===t||fZ[cZ]===t)},Xd=function(t,e,n){var r=o8(e);r in t?io.f(t,r,tm(0,n)):t[r]=n},dZ=xe("iterator"),f8=function(t){if(t!=null)return ts(t,dZ)||ts(t,"@@iterator")||ql[rm(t)]},pZ=X.TypeError,pN=function(t,e){var n=arguments.length<2?f8(t):e;if(Oa(n))return Le(Ut(n,t));throw pZ(Q1(t)+" is not iterable")},z7=X.Array,hN=xe("iterator"),gN=!1;try{var hZ=0,$7={next:function(){return{done:!!hZ++}},return:function(){gN=!0}};$7[hN]=function(){return this},Array.from($7,function(){throw
`)&&t.flags==="s")}),UZ=X.RegExp,m8=Zt(function(){var t=UZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),WZ=kn.get,GZ=t8("native-string-replace",String.prototype.replace),vv=RegExp.prototype.exec,PE=vv,qZ=pt("".charAt),KZ=pt("".indexOf),YZ=pt("".replace),lb=pt("".slice),cb=function(){var t=/a/,e=/b*/g;return Ut(vv,t,"a"),Ut(vv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),X7=sm.BROKEN_CARET,fb=/()??/.exec("")[1]!==void 0;(cb||fb||X7||v8||m8)&&(PE=function(t){var e,n,r,o,i,a,u,s=this,l=WZ(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ut(PE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=X7&&s.sticky,m=Ut(u8,s),g=s.source,v=0,y=c;if(d&&(m=YZ(m,"y",""),KZ(m,"g")===-1&&(m+="g"),y=lb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&qZ(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),fb&&(n=new RegExp("^"+g+"$(?!\\s)",m)),cb&&(r=s.lastIndex),o=Ut(vv,d?n:s,y),d?o?(o.input=lb(o.input,v),o[0]=lb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:cb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),fb&&o&&o.length>1&&Ut(GZ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=am(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Zd=PE;De({target:"RegExp",proto:!0,forced:/./.exec!==Zd},{exec:Zd});var y8=Function.prototype,Z7=y8.apply,XZ=y8.bind,J7=y8.call,b8=typeof Reflect=="object"&&Reflect.apply||(XZ?J7.bind(Z7):function(){return J7.apply(Z7,arguments)}),ZZ=xe("species"),db=RegExp.prototype,w8=function(t,e,n,r){var o=xe(t),i=!Zt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Zt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[ZZ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=pt(l),g=c.exec;return g===Zd||g===db.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Wn(String.prototype,t,s[0]),Wn(db,o,s[1])}r&&Jr(db[o],"sham",!0)},JZ=vN.charAt,E8=function(t,e,n){return e+(n?JZ(t,e).length:1)},QZ=Math.floor,pb=pt("".charAt),tJ=pt("".replace),hb=pt("".slice),eJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nJ=/\$([$&'`]|\d{1,2})/g,rJ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=nJ;return o!==void 0&&(o=Ra(o),s=eJ),tJ(i,s,function(l,c){var f;switch(pb(c,0)){case"$":return"$";case"&":return t;case"`":return hb(e,0,n);case"'":return hb(e,a);case"<":f=o[hb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=QZ(p/10);return d===0?l:d<=u?r[d-1]===void 0?pb(c,1):r[d-1]+pb(c,1):l}f=r[p-1]}return f===void 0?"":f})},oJ=X.TypeError,Jd=function(t,e){var n=t.exec;if(re(n)){var r=Ut(n,t,e);return r!==null&&Le(r),r}if(Qr(t)==="RegExp")return Ut(Zd,t,e);throw oJ("RegExp#exec called on incompatible receiver")},jE=xe("replace"),iJ=Math.max,aJ=Math.min,uJ=pt([].concat),gb=pt([].push),Q7=pt("".indexOf),t9=pt("".slice),sJ="a".replace(/./,"$0")==="$0",e9=!!/./[jE]&&/./[jE]("a","$0")==="";w8("replace",function(t,e,n){var r=e9?"$":"$0";return[function(o,i){var a=jr(this),u=o==null?void 0:ts(o,jE);return u?Ut(u,o,a,i):Ut(e,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o);if(typeof i=="string"&&Q7(i,r)===-1&&Q7(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=re(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Jd(a,u);if(d===null||(gb(p,d),!c))break;ue(d[0])===""&&(a.lastIndex=E8(u,hc(a.lastIndex),f))}for(var m,g="",v=0,y=0;y<p.length;y++){for(var h=ue((d=p[y])[0]),b=iJ(aJ(Kp(d.index),u.length),0),w=[],D=1;D<d.length;D++)gb(w,(m=d[D])===void 0?m:String(m));var x=d.groups;if(l){var C=uJ([h],w,b,u);x!==void 0&&gb(C,x);var O=ue(b8(i,void 0,C))}else O=rJ(h,u,b,w,x,i);b>=v&&(g+=t9(u,v,b)+O,v=b+h.length)}return g+t9(u,v)}]},!!Zt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!sJ||e9);/*! *****************************************************************************
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 NE=function(t,e){return NE=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])},NE(t,e)};function vc(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}NE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Cr=function(){return Cr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Cr.apply(this,arguments)};function xr(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=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 Ht(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 IE(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var lJ=0,n9=function(){this.id=""+lJ++},cJ=kn.set,fJ=kn.getterFor("Array Iterator"),nd=h8(Array,"Array",function(t,e){cJ(this,{type:"Array Iterator",target:Ma(t),index:0,kind:e})},function(){var t=fJ(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");ql.Arguments=ql.Array,hd("keys"),hd("values"),hd("entries");var Yl=function(t,e,n){for(var r in e)Wn(t,r,e[r],n);return t},dJ=X.Array,pJ=Math.max,LE=function(t,e,n){for(var r=ms(t),o=Gl(e,r),i=Gl(n===void 0?r:n,r),a=dJ(pJ(i-o,0)),u=0;o<i;o++,u++)Xd(a,u,t[o]);return a.length=u,a},r9=Kd.f,o9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hJ={f:function(t){return o9&&Qr(t)=="Window"?function(e){try{return r9(e)}catch{return LE(o9)}}(t):r9(Ma(t))}},i9=Zt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Jh=Object.isExtensible,Eu=Zt(function(){Jh(1)})||i9?function(t){return!!ce(t)&&(!i9||Qr(t)!="ArrayBuffer")&&(!Jh||Jh(t))}:Jh,gJ=!Zt(function(){return Object.isExtensible(Object.preventExtensions({}))}),lm=qp(function(t){var e=io.f,n=!1,r=e8("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Kd.f,s=pt([].splice),l={};l[r]=1,u(l).length&&(Kd.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},De({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:hJ.f}))},fastKey:function(u,s){if(!ce(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ie(u,r)){if(!Eu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ie(u,r)){if(!Eu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return gJ&&n&&Eu(u)&&!Ie(u,r)&&i(u),u}};nm[r]=!0}),vJ=X.TypeError,ag=function(t,e){this.stopped=t,this.result=e},a9=ag.prototype,Qd=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=es(e,c),g=function(y){return r&&BE(r,"normal",y),new ag(!0,y)},v=function(y){return f?(Le(y),d?m(y[0],y[1],g):m(y[0],y[1])):d?m(y,g):m(y)};if(p)r=t;else{if(!(o=f8(t)))throw vJ(Q1(t)+" is not iterable");if(dN(o)){for(i=0,a=ms(t);a>i;i++)if((u=v(t[i]))&&Qu(a9,u))return u;return new ag(!1)}r=pN(t,o)}for(s=r.next;!(l=Ut(s,r)).done;){try{u=v(l.value)}catch(y){BE(r,"throw",y)}if(typeof u=="object"&&u&&Qu(a9,u))return u}return new ag(!1)},mJ=X.TypeError,cm=function(t,e){if(Qu(e,t))return t;throw mJ("Incorrect invo
`)}return o};function kN(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||kN(o,e)}}function y9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==wo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(xn=wo||(wo={}))[xn.ELEMENT_NODE=1]="ELEMENT_NODE",xn[xn.TEXT_NODE=3]="TEXT_NODE",xn[xn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",xn[xn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",xn[xn.COMMENT_NODE=8]="COMMENT_NODE",xn[xn.DOCUMENT_NODE=9]="DOCUMENT_NODE",xn[xn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",xn[xn.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 UE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),gd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var nf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),FJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),_J=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),WE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent);typeof navigator<"u"&&/.*QQBrowser/.test(navigator.userAgent);var rf=!_J&&!FJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=SN.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=sg.get(e);return n||(n=new n9,sg.set(e,n)),n},setNewKey:function(t){var e=new n9;sg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Xl.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=tp.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 Xl.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 Q.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=x8.get(t);else{var r=A.findKey(t,e);n=HE.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=Vr(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=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Ht(o?a:i,2),l=s[0],c=s[1],f=Ht(o?i:a,2),p=f[0],d=f[1],m=!!(Vr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Vr(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Ht(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=xr(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,m=f.getAttribute("data-slate-length"),g=s+(m==null?d:parseInt(m,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.e
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=A.toSlateNode(t,c);return{path:A.findPath(t,y),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return E.hasPath(t,n.path)&&E.hasPath(t,r.path)},getNodeType:function(t){return ct.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=E.nodes(t,{universal:!0});try{for(var i=xr(o),a=i.next();!a.done;a=i.next()){var u=Ht(a.value,1)[0];ct.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Ht(E.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ht(E.nodes(t,{match:function(r){return ot.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Ht(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Ht(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(E.isEnd(t,n.anchor,e)||E.isEnd(t,n.focus,e))},getTextarea:function(t){var e=RE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return fm.get(t)||null},getHoverbar:function(t){return mv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=xr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(g){e={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(g){return!(!ct.isElement(g)||t.isInline(g))},universal:!0});try{for(var f=xr(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var m=d[0];kN(A.toDOMNode(t,m),function(g,v){var y=B(v);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||v.removeChild(g)})}}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=xr(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||L.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=Ht(n,1)[0].children;return r.length===1&&r[0].text===""}},TJ=1,BN={},ep={},PJ=gc.filter,jJ=um("filter");De({target:"Array",proto:!0,forced:!jJ},{filter:function(t){return PJ(this,t,arguments.length>1?arguments[1]:void 0)}});var GE=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,b9=pt("".replace),wv="["+GE+"]",NJ=RegExp("^"+wv+wv+"*"),IJ=RegExp(wv+wv+"*$"),Db=function(t){return function(e){var n=ue(jr(e));return 1&t&&(n=b9(n,NJ,"")),2&t&&(n=b9(n,IJ,"")),n}},LJ={start:Db(1),end:Db(2),trim:Db(3)},RJ=pc.PROPER,MJ=LJ.trim;De({target:"String",proto:!0,forced:function(t){return Zt(function(){return!!GE[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||RJ&&GE[t].name!==t})}("trim")},{trim:function(){return MJ(this)}});var qE=[],FN={};function zJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var np,js,w9,Cb,Ev=X.Promise,E9=xe("species"),A8=function(t){var e=vs(t),n=io.f;an&&e&&!e[E9]&&n(e,E9,{configurable:!0,get:function(){return this}})},$J=X.TypeError,HJ=xe("species"),_N=function(t,e){var n,r=Le(t).constructor;return r===void 0||(n=Le(r)[HJ])==null?e:function(o){if(im(o))return o;throw $J(Q1(o)+" is not a constructor")}(n)},TN=pt([].slice),PN=/(?:ipad|iphone|ipod).*applewebkit/i.test(yl),sa=Qr(X.process)=="process",KE=X.setImmediate,YE=X.clearImmediate,VJ=X.process,xb=X.Dispatch,UJ=X.Function,D9=X.MessageChannel,WJ=X.String,Sb=0,vd={};try{np=X.location}catch{}var O8=function(t){if(Ie(vd,t)){var e=vd[t];delete vd[t],e()}},Ab=function(t){return function(){O8(t)}},C9=function(t){O8(t.data)},x9=function(t){X.postMessage(WJ(t),np.protocol+"//"+np.host)};KE&&YE||(KE=function(t){var e=TN(arguments,1);return vd[++Sb]=function(){b8(re(t)?t:UJ(t),void 0,e)},js(Sb),Sb},YE=function(t){delete vd[t]},sa?js=function(t){VJ.nextTick(Ab(t))}:xb&&xb.now?js=function(t){xb.now(Ab(t))}:D9&&!PN?(Cb=(w9=new D9).port2,w9.port1.onmessage=C9,js=es(Cb.postMessage,Cb)):X.addEventListener&&re(X.postMessage)&&!X.importScripts&&np&&np.protocol!=="file:"&&!Zt(x9)?(js=x9,X.addEventListener("message",C9,!1)):js="onreadystatechange"in qd("script")?function(t){AE.appendChild(qd("script")).onreadystatechange=function(){AE.removeChild(this),O8(t)}}:function(t){setTimeout(Ab(t),0)});var of,mu,md,al,Ob,kb,Bb,S9,jN={set:KE,clear:YE},GJ=/ipad|iphone|ipod/i.test(yl)&&X.Pebble!==void 0,qJ=/web0s(?!.*chrome)/i.test(yl),KJ=Yp.f,Fb=jN.set,A9=X.MutationObserver||X.WebKitMutationObserver,O9=X.document,k9=X.process,r0=X.Promise,B9=KJ(X,"queueMicrotask"),NN=B9&&B9.value;NN||(of=function(){var t,e;for(sa&&(t=k9.domain)&&t.exit();mu;){e=mu.fn,mu=mu.next;try{e()}catch(n){throw mu?al():md=void 0,n}}md=void 0,t&&t.enter()},PN||sa||qJ||!A9||!O9?!GJ&&r0&&r0.resolve?((Bb=r0.resolve(void 0)).constructor=r0,S9=es(Bb.then,Bb),al=function(){S9(of)}):sa?al=function(){k9.nextTick(of)}:(Fb=es(Fb,X),al=function(){Fb(of)}):(Ob=!0,kb=O9.createTextNode(""),new A9(of).observe(kb,{characterData:!0}),al=function(){kb.data=Ob=!Ob}));var _b,F9,IN,_9,LN=NN||function(t){var e={fn:t,next:void 0};md&&(md.next=e),mu||(mu=e,al()),md=e},YJ=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=Oa(e),this.reject=Oa(n)},k8={f:function(t){return new YJ(t)}},XE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},XJ=typeof window=="object",RN=jN.set,ZJ=xe("species"),mo="Promise",T9=kn.getterFor(mo),JJ=kn.set,QJ=kn.getterFor(mo),fu=Ev&&Ev.prototype,Eo=Ev,af=fu,MN=X.TypeError,ZE=X.document,B8=X.process,wl=k8.f,tQ=wl,eQ=!!(ZE&&ZE.createEvent&&X.dispatchEvent),zN=re(X.PromiseRejectionEvent),$N=!1,yd=Yd(mo,function(){var t=em(Eo),e=t!==String(Eo);if(!e&&Gd===66)return!0;if(Gd>=51&&/native code/.test(t))return!1;var n=new Eo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[ZJ]=r,!($N=n.then(function(){})instanceof r)||!e&&XJ&&!zN}),nQ=yd||!d8(function(t){Eo.all(t).catch(function(){})}),HN=function(t){var e;return!(!ce(t)||!re(e=t.then))&&e},F8=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;LN(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&&oQ(t),t.rejection=1),c===!0?a=r:(d&&
`)>=0)return;c&&(c=XN(c),z9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(z9(u,`
`)||u.push({text:`
`}));var f=T8(B(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 Dv)if(i[0].matches(a))return Dv[a];return EQ}(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," ")}]),_8.forEach(function(a){i=a(t[0],i,e)}))}),o}function jb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var n=t[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"\xAE").replace(/&copy;/g,"\xA9").replace(/&trade;/g,"\u2122").replace(/&quot;/g,'"')}(n);var r={text:n=XN(n)};return _8.forEach(function(o){r=o(t[0],r,e)}),r}function T8(t,e){KN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=y9(t);return n==="span"?t.attr("data-w-e-type")?Pb(t,e):jb(t,e):n==="code"?y9(t.parent())==="pre"?Pb(t,e):jb(t,e):qN.includes(n)?jb(t,e):Pb(t,e)}function ZN(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function $9(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=B("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=T8(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var DQ=io.f,H9=lm.fastKey,V9=kn.set,Nb=kn.getterFor,CQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){cm(l,i),V9(l,{type:e,index:am(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&Qd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=Nb(e),u=function(l,c,f){var p,d,m=a(l),g=s(l,c);return g?g.value=f:(m.last=g={index:d=H9(c,!0),key:c,value:f,previous:p=m.last,next:void 0,removed:!1},m.first||(m.first=g),p&&(p.next=g),an?m.size++:l.size++,d!=="F"&&(m.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=H9(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Yl(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,an?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,m=p.previous;delete f.index[p.index],p.removed=!0,m&&(m.next=d),d&&(d.previous=m),f.first==p&&(f.first=d),f.last==p&&(f.last=m),an?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=es(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)}}),Yl(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)}}),an&&DQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Nb(e),i=Nb(r);h8(t,e,function(a,u){V9(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),A8(e)}};wN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},CQ);var U9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function W9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var xQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Ht(L.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(p=D)}),l){var d=Ht(l,1)[0],m=c.cloneRange(),g=A.toDOMNode(e,d);m.setEndAfter(g),f=m.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var x=D.getAttribute("data-slate-zero-width")==="n";D.textContent=x?`
`:""}),AN(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var y=e.getFragment(),h=JSON.stringify(y),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=xr(f),m=d.next();!m.done;m=d.next()){var g=m.value;p&&N.splitNodes(e,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{m&&!m.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},rd=function(t){return t!=null},SQ={object:!0,function:!0,undefined:!0},AQ=/^\s*class[\s{/}]/,OQ=Function.prototype.toString,G9=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{return!1}return!function(n){if(!function(r){return!!rd(r)&&hasOwnProperty.call(SQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!AQ.test(OQ.call(t))},P8=function(t){return t!=null},kQ=Object.keys,BQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return kQ(P8(t)?Object(t):t)},FQ=function(t){if(!P8(t))throw new TypeError("Cannot use null or undefined");return t},_Q=Math.max,q9=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=_Q(arguments.length,2);for(t=Object(FQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)BQ(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},TQ=Array.prototype.forEach,PQ=Object.create,jQ=function(t,e){var n;for(n in t)e[n]=t[n]},K9=function(t){var e=PQ(null);return TQ.call(arguments,function(n){P8(n)&&jQ(Object(n),e)}),e},Ib="razdwatrzy",NQ=String.prototype.indexOf,sf=typeof Ib.contains=="function"&&Ib.contains("dwa")===!0&&Ib.contains("foo")===!1?String.prototype.contains:function(t){return NQ.call(this,t,arguments[1])>-1},i0=qp(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],rd(n)?(o=sf.call(n,"c"),i=sf.call(n,"e"),a=sf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?q9(K9(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],rd(r)?G9(r)?rd(o)?G9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,rd(n)?(i=sf.call(n,"c"),a=sf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?q9(K9(u),s):s}}),Lb=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},IQ=qp(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,m=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,y){var h;return Lb(y),m.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(y):h[v]=[h[v],y]:h[v]=y,this},r=function(v,y){var h,b;return Lb(y),b=this,n.call(this,v,h=function(){o.call(b,v,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(v,y){var h,b,w,D;if(Lb(y),!m.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(b=h[v])=="object")for(D=0;w=b[D];++D)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[v]=b[D?0:1]:b.splice(D,1));else b!==y&&b.__eeOnceListener__!==y||delete h[v];retur
`:t)}function Mb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),bt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?bt("br",null):null)}function e6(t,e,n,r){return tp.set(t,e),Xl.set(t,n),ct.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=GN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,m=d===void 0?[]:d,g=function(D){return tI[D]||KQ}(p);a=l?null:m.map(function(D,x){return e6(D,x,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=Ht(Q.texts(o),1),b=Ht(h[0],1)[0],w=bt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},e6(b,0,o,i));v=bt(y,{style:{position:"relative"}},v,w),tp.set(b,0),Xl.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(D,x){var C=x;return t6.forEach(function(O){C=O(D,x)}),C}(o,v)),Nr(function(){var D=VE(c);D!=null&&(HE.set(u,D),bv.set(o,D),yv.set(D,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=ot.decorations(o,c),p=f.map(function(g,v){var y=function(h,b,w,D,x){b===void 0&&(b=!1);var C=h.text,O=A.findPath(x,w),_=j.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return x.isVoid(D)?Mb(Q.string(D).length):C!==""||D.children[D.children.length-1]!==w||x.isInline(D)||E.string(x,_)!==""?C===""?Mb():b&&C.slice(-1)===`
`?Q9(C,!0):Q9(C):Mb(0,!0)}(g,v===f.length-1,o,i,a);return y=function(h,b){var w=b;return t6.forEach(function(D){w=D(h,w)}),w}(g,y),bt("span",{"data-slate-leaf":!0},y)}),d=function(g){return"w-e-text-"+g}(u.id),m=bt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Nr(function(){var g=VE(d);g!=null&&(HE.set(u,g),bv.set(o,g),yv.set(g,o))}),m}(t,n,r)}function YQ(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),Wl("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var y=e6(g,v,e,e);return QN(y),y});var c=d9.get(t);if(c==null&&(c=!0),c){var f=function(g,v){return B(`<div
id="`+g+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=Mq([$q,Wq,qq,Hq,Uq,zq]))(n,s),d9.set(t,!1),p9.set(t,d)}else{var p=h9.get(t),d=p9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=VE(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var m=S8(n);m&&SN.set(e,m)}x8.set(e,n),bv.set(e,n),yv.set(n,e),h9.set(t,s)}}function tO(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function eO(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function zb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return eO(n.overflowY,e)||eO(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function u0(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function nO(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(Dt){return Dt!==a};if(!tO(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;tO(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&zb(f)&&!zb(document.documentElement)||f!=null&&zb(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),y=v.height,h=v.width,b=v.top,w=v.right,D=v.bottom,x=v.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+y/2,O=i==="center"?x+h/2:i==="end"?w:x,_=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,q=M.right,nt=M.bottom,lt=M.left;if(r==="if-needed"&&b>=0&&x>=0&&D<=d&&w<=p&&b>=W&&D<=nt&&x>=lt&&w<=q)return _;var st=getComputedStyle(H),at=parseInt(st.borderLeftWidth,10),k=parseInt(st.borderTopWidth,10),S=parseInt(st.borderRightWidth,10),P=parseInt(st.borderBottomWidth,10),$=0,Y=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-at-S:0,it="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?C:o==="end"?C-d:o==="nearest"?u0(g,g+d,d,k,P,g+C,g+C+y,y):C-d/2,Y=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:u0(m,m+p,p,at,S,m+O,m+O+h,h),$=Math.max(0,$+g),Y=Math.max(0,Y+m);else{$=o==="start"?C-W-k:o==="end"?C-nt+P+it:o==="nearest"?u0(W,nt,K,k,P+it,C,C+y,y):C-(W+K/2)+it/2,Y=i==="start"?O-lt-at:i==="center"?O-(lt+U/2)+V/2:i==="end"?O-q+S+V:u0(lt,q,U,at,S+V,O,O+h,h);var gt=H.scrollLeft,vt=H.scrollTop;C+=vt-($=Math.max(0,Math.min(vt+$,H.scrollHeight-K+it))),O+=gt-(Y=Math.max(0,Math.min(gt+Y,H.scrollWidth-U+V)))}_.push({el:H,top:$,left:Y})}return _}function rO(t){return t===Object(t)&&Object.keys(t).length!==0}function wr(t,e){return ns(e)&&A.hasDOMNode(t,e,{editable:!0})}function oO(t,e){if(t.getConfig().readOnly)return!1;var n=sl(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function sl(t,e){return ns(e)&&A.hasDOMNode(t,e)}function eI(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=x8.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&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,m=void 0;(m=d[p])&&m.matches("table")&&(c=!1),(m=d[p-1])&&m.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){L.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 y=document.body;(
`+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}w8("match",function(t,e,n){return[function(r){var o=jr(this),i=r==null?void 0:ts(r,t);return i?Ut(i,r,o):new RegExp(r)[t](ue(o))},function(r){var o=Le(this),i=ue(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Jd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Jd(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=E8(i,hc(o.lastIndex),u)),c++}return c===0?null:l}]});var M8=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),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=B(f);L8(d),p.append(d)}else p.text(u);rI(p,f,u,l,r),r&&f&&p.append(B('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Nr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),nr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=nr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=nr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=nr(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}(),ntt=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return vc(e,t),e.prototype.onButtonClick=function(){},e}(M8),z8=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=$E.get(e);n==null&&(n=new Set,$E.set(e,n)),n.add(this),ug.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=ug.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=ug.get(this);e&&e.emit("modalOrPanelHide")}},t}(),rtt=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=B('<div class="w-e-drop-panel"></div>'),r}return vc(e,t),e.prototype.genSelfElem=function(){return null},e}(z8),ott=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=R8();i.$button.append(a)}return i}return vc(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=nr(this);if(this.dropPanel==null){var o=new rtt(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}(M8),itt=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),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 vc(e,t),e.prototype.genSelfElem=function(){var n=this,r=B('<span class="btn-close"><svg viewBox="0 0 1024 1024"><pat
`)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(y,C)},h.getElemsByType=function(C,O){var _,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=xr(M),U=K.next();!U.done;U=K.next()){var W=Ht(U.value,1)[0];if(ct.isElement(W)&&(O?W.type.indexOf(C)>=0:W.type===C)){var q=GN(A.findKey(h,W).id);H.push(Cr(Cr({},W),{id:q}))}}}catch(nt){_={error:nt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(_)throw _.error}}return H},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 _=O[0];if(_==null)return!0;if(ct.isElement(_)&&_.type==="paragraph"){var R=_.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||ot.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.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 _=document.createElement("div");_.innerHTML=C;var R=Array.from(_.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===wo.TEXT_NODE||W===wo.ELEMENT_NODE&&!U9.has(q.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),_.setAttribute("hidden","true"),document.body.appendChild(_);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,nt=U.textContent,lt=nt===void 0?"":nt;if(W!==wo.TEXT_NODE)if(q!=="BR"){var st=U,at=!1;if(qN.includes(q.toLowerCase()))at=!0;else for(var k in Dv)if(st.matches(k)){at=!0;break}if(at){var S=T8(B(st),h);return Array.isArray(S)?(S.forEach(function($){return W9(h,$)}),K++):(W9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(st).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(`
`);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),_.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),_=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=$9(h,C);if(N.insertFragment(h,H),_||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch{h.select(E.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in ep)b.push(w);return b},h.getConfig=function(){var b=f9.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 D=h.getConfig().customAlert;D&&D(b,w)},h}(function(y){var h=xQ(qW());return h.id="wangEditor-"+TJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Pu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=wb.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Pu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Pu.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(),RE.delete(h),ME.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),fm.delete(h),D8.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),mv.delete(h),zE.delete(D)),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 D=B("#"+b);if(D.length!==0){var x=D[0];if(!A.hasDOMNode(h,x))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,x);var C=A.getTextarea(h),O=C.$textAreaContainer,_=C.$scroll,R=D.offset().top,H=O.offset().top;_[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=$E.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 D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[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`);D.addClass("w-e-full-screen-container");var x=D.css("z-index");D.attr("data-z-index",x.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(y,h){return ZN(y,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var h=Nj(BN),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return G5(h,function(x,C){b[C]=Cr(Cr({},x),D[C]||{})}),delete y.MENU_CONF,Cr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(x,C){window.alert(C+`:
`+x)}},y)}(o);f9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=$9(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 ett(n);RE.set(l,d),ME.set(d,l),d.changeViewState(),Nr(function(){var y=d.$scroll;y!=null&&y.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`,y)});var m=void 0;Object.keys(p).length>0&&(m=new ctt,zE.set(m,l),mv.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return iI(y,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)}),Nr(function(){return l.emit("created")}),l}var dtt=um("splice"),ptt=X.TypeError,htt=Math.max,gtt=Math.min;De({target:"Array",proto:!0,forced:!dtt},{splice:function(t,e){var n,r,o,i,a,u,s=Ra(this),l=ms(s),c=Gl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=gtt(htt(Kp(e),0),l-c)),l+n-r>9007199254740991)throw ptt("Maximum allowed length exceeded");for(o=nN(s,r),i=0;i<r;i++)(a=c+i)in s&&Xd(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-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<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var vtt=function(){function t(e,n){var r=this;this.$toolbar=B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=jj(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=B(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),Nr(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=Nj(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(m,g){f.splice(s.index+g,0,m)}));var p=f.filter(function(m){if(typeof m=="string"){if(c.includes(m))return!1}else if(c.includes(m.key))return!1;return!0}),d=p.length;p.forEach(function(m,g){if(m==="|"){if(g===0||g+1===d||n==="|")return;var v=nI();return r.append(v),void(n=m)}if(typeof m=="string")return e.registerSingleItem(m,e),void(n=m);e.registerGroup(m),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new aO(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 aO,i=this.menus,a=i[e];if(a==null){var u=ep[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=oI(e,a,o);this.toolbarItems.push(s),C8.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=D8.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}(),mtt=pc.EXISTS,ytt=io.f,aI=Function.prototype,btt=pt(aI.toString),uI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wtt=pt(uI.exec);function sI(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,m=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,y=t.timeout,h=y===void 0?1e4:y,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,x=D===void 0?function(K,U){}:D,C=t.onError,O=C===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:C,_=t.onProgress,R=_===void 0?function(K){}:_;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 H=n;p&&(H=function(K,U){var W=Ht(K.split("#"),2),q=W[0],nt=W[1],lt=[];G5(U,function(at,k){lt.push(k+"="+at)});var st=lt.join("&");return q=q.indexOf("?")>0?q+"&"+st:q+"?"+st,nt?q+"#"+nt:q}(H,c));var M=new td({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(qY,{endpoint:H,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{x(K,q)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function la(t){return la=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},la(t)}function Ett(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ve(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){Ett(t,o,n[o])})}return t}function ci(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fi(t,e,n){return e&&sO(t.prototype,e),n&&sO(t,n),t}function rs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rp(t,e){if(e&&(la(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rs(t)}function Zl(t){return Zl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zl(t)}function n6(t,e){return n6=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},n6(t,e)}function dm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n6(t,e)}an&&!mtt&&ytt(aI,"name",{configurable:!0,get:function(){try{return wtt(uI,btt(this))[1]}catch{return""}}});var Dtt={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},ei=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ci(this,t),this.init(e,n)}return fi(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;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(
`)&&t.flags==="s")}),int=St.RegExp,ant=Ce(function(){var t=int("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),unt=l6.get,snt=G8("native-string-replace",String.prototype.replace),_v=RegExp.prototype.exec,f6=_v,lnt=mt("".charAt),cnt=mt("".indexOf),fnt=mt("".replace),Zb=mt("".slice),Jb=(Xb=/b*/g,_e(_v,IO=/a/,"a"),_e(_v,Xb,"a"),IO.lastIndex!==0||Xb.lastIndex!==0),LO=_I.BROKEN_CARET,Qb=/()??/.exec("")[1]!==void 0;(Jb||Qb||LO||ont||ant)&&(f6=function(t){var e,n,r,o,i,a,u,s=this,l=unt(s),c=Ee(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=_e(f6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=LO&&s.sticky,m=_e(FI,s),g=s.source,v=0,y=c;if(d&&(m=fnt(m,"y",""),cnt(m,"g")===-1&&(m+="g"),y=Zb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&lnt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Qb&&(n=new RegExp("^"+g+"$(?!\\s)",m)),Jb&&(r=s.lastIndex),o=_e(_v,d?n:s,y),d?o?(o.input=Zb(o.input,v),o[0]=Zb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Jb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Qb&&o&&o.length>1&&_e(snt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=jI(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ap=f6;tn({target:"RegExp",proto:!0,forced:/./.exec!==ap},{exec:ap});var oD=Function.prototype,RO=oD.apply,dnt=oD.bind,MO=oD.call,NI=typeof Reflect=="object"&&Reflect.apply||(dnt?MO.bind(RO):function(){return MO.apply(RO,arguments)}),pnt=pr("species"),t2=RegExp.prototype,iD=function(t,e,n,r){var o=pr(t),i=!Ce(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ce(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[pnt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=mt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=mt(l),g=c.exec;return g===ap||g===t2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});op(String.prototype,t,s[0]),op(t2,o,s[1])}r&&Jl(t2[o],"sham",!0)},hnt=mt("".charAt),zO=mt("".charCodeAt),gnt=mt("".slice),vnt=function(t){return function(e,n){var r,o,i=Ee(Ir(e)),a=wc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=zO(i,a))<55296||r>56319||a+1===u||(o=zO(i,a+1))<56320||o>57343?t?hnt(i,a):r:t?gnt(i,a,a+2):o-56320+(r-55296<<10)+65536}},mnt=vnt(!0),aD=function(t,e,n){return e+(n?mnt(t,e).length:1)},ynt=Math.floor,e2=mt("".charAt),bnt=mt("".replace),n2=mt("".slice),wnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ent=/\$([$&'`]|\d{1,2})/g,Dnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Ent;return o!==void 0&&(o=Jp(o),s=wnt),bnt(i,s,function(l,c){var f;switch(e2(c,0)){case"$":return"$";case"&":return t;case"`":return n2(e,0,n);case"'":return n2(e,a);case"<":f=o[n2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=ynt(p/10);return d===0?l:d<=u?r[d-1]===void 0?e2(c,1):r[d-1]+e2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Cnt=St.TypeError,up=function(t,e){var n=t.exec;if(hn(n)){var r=_e(n,t,e);return r!==null&&or(r),r}if(ca(t)==="RegExp")return _e(ap,t,e);throw Cnt("RegExp#exec called on incompatible receiver")},d6=pr("replace"),xnt=Math.max,Snt=Math.min,Ant=mt([].concat),r2=mt([].push),$O=mt("".indexOf),HO=mt("".slice),Ont="a".replace(/./,"$0")==="$0",VO=!!/./[d6]&&/./[d6]("a","$0")==="";iD("replace",function(t,e,n){var r=VO?"$":"$0";return[function(o,i){var a=Ir(this),u=o==null?void 0:vm(o,d6);return u?_e(u,o,a,i):_e(e,Ee(a),o,i)},function(o,i){var a=or(this),u=Ee(o);if(typeof i=="string"&&$O(i,r)===-1&&$O(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=hn(i);l||(i=Ee(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=up(a,u);if(d===null||(r2(p,d),!c))break;Ee(d[0])===""&&(a.lastIndex=aD(u,Qp(a.lastIndex),f))}for(var m,g="",v=0,y=0;y<p.length;y++){for(var h=Ee((d=p[y])[0]),b=xnt(Snt(wc(d.index),u.length),0),w=[],D=1;D<d.length;D++)r2(w,(m=d[D])===void 0?m:String(m));var x=d.groups;if(l){var C=Ant([h],w,b,u);x!==void 0&&r2(C,x);var O=Ee(NI(i,void 0,C))}else O=Dnt(h,u,b,w,x,i);b>=v&&(g+=HO(u,v,b)+O,v=b+h.length)}return g+HO(u,v)}]},!!Ce(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Ont||VO);var p6=pr("unscopables"),h6=Array.prototype;h6[p6]==null&&bc.f(h6,p6,{configurable:!0,value:jI(null)});var II=function(t){h6[p6][t]=!0},knt=bm.find,UO=!0;"find"in[]&&Array(1).find(function(){UO=!1}),tn({target:"Array",proto:!0,forced:UO},{find:function(t){return knt(this,t,arguments.length>1?arguments[1]:void 0)}}),II("find");var Bnt=pr("match"),LI=function(t){var e;return Sr(t)&&((e=t[Bnt])!==void 0?!!e:ca(t)=="RegExp")},Fnt=St.TypeError,_nt=pr("species"),RI=function(t,e,n){var r=q8(e);r in t?bc.f(t,r,V8(0,n)):t[r]=n},Tnt=St.Array,Pnt=Math.max,WO=function(t,e,n){for(var r=ym(t),o=ip(e,r),i=ip(n==
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,GO=mt("".replace),Tv="["+g6+"]",Int=RegExp("^"+Tv+Tv+"*"),Lnt=RegExp(Tv+Tv+"*$"),o2=function(t){return function(e){var n=Ee(Ir(e));return 1&t&&(n=GO(n,Int,"")),2&t&&(n=GO(n,Lnt,"")),n}},Rnt={start:o2(1),end:o2(2),trim:o2(3)},Mnt=mm.PROPER,znt=Rnt.trim;function uD(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Ec(t){return t.length===0?"":t[0].outerHTML}function Dc(t){return t.length?t[0].tagName.toLowerCase():""}function to(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}tn({target:"String",proto:!0,forced:Ce(function(){return!!g6.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||Mnt&&g6.trim.name!=="trim"})},{trim:function(){return znt(this)}}),tn({global:!0},{globalThis:St}),rv&&(B.fn.css=rv),Pr&&(B.fn.append=Pr),PA&&(B.fn.prepend=PA),Nl&&(B.fn.addClass=Nl),Il&&(B.fn.removeClass=Il),Ll&&(B.fn.hasClass=Ll),Fo&&(B.fn.on=Fo),BA&&(B.fn.off=BA),Aa&&(B.fn.focus=Aa),Tr&&(B.fn.attr=Tr),Qg&&(B.fn.removeAttr=Qg),Ml&&(B.fn.hide=Ml),nv&&(B.fn.show=nv),av&&(B.fn.parents=av),Rl&&(B.fn.dataset=Rl),Bo&&(B.fn.val=Bo),iv&&(B.fn.text=iv),Sa&&(B.fn.html=Sa),Hl&&(B.fn.children=Hl),Vl&&(B.fn.remove=Vl),$l&&(B.fn.find=$l),tv&&(B.fn.width=tv),ev&&(B.fn.height=ev),_A&&(B.fn.filter=_A),Ul&&(B.fn.empty=Ul);var $nt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},v6=function(t,e){return v6=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])},v6(t,e);/*! *****************************************************************************
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.
***************************************************************************** */};function be(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}v6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Ba=function(){return Ba=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ba.apply(this,arguments)};function za(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function $a(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function zI(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=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 Yt(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 qO(t){var e=Yt(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(!ct.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ot.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var Hnt={renderElems:[Wtt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[$nt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){qO(r)||e(o)},r.deleteForward=function(o){qO(r)||n(o)},r}},Vnt=/"/g,Unt=mt("".replace),od=function(t,e,n,r){var o=Ee(Ir(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Unt(Ee(r),Vnt,"&quot;")+'"'),i+">"+o+"</"+e+">"},id=function(t){return Ce(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function i2(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function nu(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tn({target:"String",proto:!0,forced:id("bold")},{bold:function(){return od(this,"b","","")}}),tn({target:"String",proto:!0,forced:id("italics")},{italics:function(){return od(this,"i","","")}}),tn({target:"String",proto:!0,forced:id("sub")},{sub:function(){return od(this,"sub","","")}}),tn({target:"String",proto:!0,forced:id("sup")},{sup:function(){return od(t
<li data-value="0" class="clear">
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
`+u+`
</li>
`);return o.prepend(s),o[0]},t}(),Yrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=Qnt,n.mark="color",n}return be(e,t),e}(JI),Xrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=trt,n.mark="bgColor",n}return be(e,t),e}(JI),tk=["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&&os(i,{color:r}),o&&os(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((uD(e)||Dc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Ec(n)):e},preParseHtml:[Krt],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=to(r,"color");i&&(o.color=i);var a=to(r,"background-color");return a||(a=to(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Yrt},config:{colors:tk}},{key:"bgColor",factory:function(){return new Xrt},config:{colors:tk}}]},Jrt=/^(?:\w+:)?\/\/(\S+)$/,Qrt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,tot=/^[^\s\.]+\.\S{2,}$/,eot=xI.includes;function wm(t){return t===void 0&&(t="r"),t+"-"+wj()}function sD(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function QI(t,e,n,r){return za(this,void 0,void 0,function(){var o,i;return $a(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 tL(t,e,n){return za(this,void 0,void 0,function(){var r;return $a(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 lD(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 c2(t,e){return{type:"link",url:sD(t),children:e?[{text:e}]:[]}}function eL(t,e,n){return za(this,void 0,void 0,function(){var r,o,i;return $a(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),lD(t)?[2]:[4,QI("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,tL("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=c2(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=c2(r,e),N.insertNodes(t,i)):(i=c2(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}tn({target:"Array",proto:!0},{includes:function(t){return eot(this,t,arguments.length>1?arguments[1]:void 0)}}),II("
`)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},Not=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',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||!!Yt(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=B('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(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=B("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),Iot={menus:[{key:"emotion",factory:function(){return new Not},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(" ")}}]},Lot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Rot={selector:"font",preParseHtml:function(t){var e=B(t);if(Dc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Lot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Mot=mt("".indexOf);tn({target:"String",proto:!0,forced:!KI("includes")},{includes:function(t){return!!~Mot(Ee(Ir(this)),Ee(qI(t)),arguments.length>1?arguments[1]:void 0)}});var Ti,fg,p0=function(t){return t&&t.Math==Math&&t},Ft=p0(typeof globalThis=="object"&&globalThis)||p0(typeof window=="object"&&window)||p0(typeof self=="object"&&self)||p0(typeof Av=="object"&&Av)||function(){return this}()||Function("return this")(),fD=Function.prototype,uk=fD.apply,zot=fD.bind,sk=fD.call,aL=typeof Reflect=="object"&&Reflect.apply||(zot?sk.bind(uk):function(){return sk.apply(uk,arguments)}),uL=Function.prototype,b6=uL.bind,w6=uL.call,$ot=b6&&b6.bind(w6),Te=b6?function(t){return t&&$ot(w6,t)}:function(t){return t&&function(){return w6.apply(t,arguments)}},gn=function(t){return typeof t=="function"},cr=function(t){try{return!!t()}catch{return!0}},Gn=!cr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),yf=Function.prototype.call,Yr=yf.bind?yf.bind(yf):function(){return yf.apply(yf,arguments)},lk={}.propertyIsEnumerable,ck=Object.getOwnPropertyDescriptor,Hot=ck&&!lk.call({1:2},1)?function(t){var e=ck(this,t);return!!e&&e.enumerable}:lk,dD={f:Hot},is=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.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=zI(a),s=u.next();!s.done;s=u.next()){var l=Yt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
`)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),Qat={key:"codeBlock",factory:function(){return new Jat}};tn({target:"String",proto:!0,forced:id("anchor")},{anchor:function(t){return od(this,"a","name",t)}}),iD("match",function(t,e,n){return[function(r){var o=Ir(this),i=r==null?void 0:vm(r,t);return i?_e(i,r,o):new RegExp(r)[t](Ee(o))},function(r){var o=or(this),i=Ee(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return up(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=up(o,i))!==null;){var f=Ee(s[0]);l[c]=f,f===""&&(o.lastIndex=aD(i,Qp(o.lastIndex),u)),c++}return c===0?null:l}]});var tut={type:"pre",renderElem:function(t,e,n){return bt("pre",null,e)}},eut={type:"code",renderElem:function(t,e,n){return bt("code",null,e)}},nut={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(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"})}}},rut={menus:[Qat],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=Q.string(l),d=f.anchor.offset,m=p.slice(0,d).split(`
`),g=m.length;return g===0?"":m[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=Yt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.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:[tut,eut],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=B(t);if(Dc(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:B(t)[0].textContent||""}]}}},nut]},out=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',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}(),iut={menus:[{key:"fullScreen",factory:function(){return new out}}]},aut=function(){function t(){this.title=tt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',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||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),uut=[brt,Zrt,Fat,jat,Mat,$at,Eot,qat,Iot,sot,rut,jot,Grt,Hnt,Sot,Uat,iut,{menus:[{key:"enter",factory:function(){return new aut}}]}];Kn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Kn("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var Uk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ED(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,pg,m0=function(t){return t&&t.Math==Math&&t},wt=m0(typeof globalThis=="object"&&globalThis)||m0(typeof window=="object"&&window)||m0(typeof self=="object"&&self)||m0(typeof Uk=="object"&&Uk
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.
***************************************************************************** */};function fR(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}q6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function kB(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=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 Cd(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 BB(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Jst=HL.includes;_a({target:"Array",proto:!0},{includes:function(t){return Jst(this,t,arguments.length>1?arguments[1]:void 0)}}),Ed("includes");var FB,L2,Qst=function(){var t=Yn(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},MD=wt.RegExp,K6=Oe(function(){var t=MD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),tlt=K6||Oe(function(){return!MD("a","y").sticky}),elt={BROKEN_CARET:K6||Oe(function(){var t=MD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:tlt,UNSUPPORTED_Y:K6},nlt=wt.RegExp,rlt=Oe(function(){var t=nlt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),olt=wt.RegExp,ilt=Oe(function(){var t=olt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),alt=_o.get,ult=CD("native-string-replace",String.prototype.replace),Yv=RegExp.prototype.exec,Y6=Yv,slt=jt("".charAt),llt=jt("".indexOf),clt=jt("".replace),R2=jt("".slice),M2=(L2=/b*/g,en(Yv,FB=/a/,"a"),en(Yv,L2,"a"),FB.lastIndex!==0||L2.lastIndex!==0),_B=elt.BROKEN_CARET,z2=/()??/.exec("")[1]!==void 0;(M2||z2||_B||rlt||ilt)&&(Y6=function(t){var e,n,r,o,i,a,u,s=this,l=alt(s),c=Xo(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=en(Y6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=_B&&s.sticky,m=en(Qst,s),g=s.source,v=0,y=c;if(d&&(m=clt(m,"y",""),llt(m,"g")===-1&&(m+="g"),y=R2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&slt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),z2&&(n=new RegExp("^"+g+"$(?!\\s)",m)),M2&&(r=s.lastIndex),o=en(Yv,d?n:s,y),d?o?(o.input=R2(o.input,v),o[0]=R2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:M2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),z2&&o&&o.length>1&&en(ult,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=FD(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Xv=Y6;_a({target:"RegExp",proto:!0,forced:/./.exec!==Xv},{exec:Xv});var dR=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return A.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},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","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?N.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),flt='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',dlt='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',plt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=tt("listModule.unOrderedList"),n.iconSvg=flt,n}return fR(e,t),e}(dR),hlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=tt("listModule.orderedList"),n.iconSvg=dlt,n}return fR(e,t),e}(dR),glt={key:"bulletedList",factory:function(){return new plt}},vlt={key:"numberedList",factory:function(){return new hlt}},TB=[],mlt={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=G6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,g=f.level,v=g===void 0?0:g,y=A.findPath(c,l);if(y[0]===0)return v+1;var h=j.previous(y),b=E.node(c,h);if(!b)return 0;var w=Cd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,_=O===void 0?0:O;return _<v?v-_:_>v?0:_===v?C===m?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",TB.push(i);var s=function(l){var c=G6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,g=f.level,v=g===void 0?0:g,y=A.findPath(c,l);if(y[0]===c.children.length-1)return v+1;var h=j.next(y),b=E.node(c,h);if(!b)return 0;var w=Cd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,_=O===void 0?0:O;return _<v?v-_:_>v?0:_===v?C===m?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+TB.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},ylt=mn("species"),blt=RD.filter,wlt=T6>=51||!Oe(function(){var t=[];return(t.constructor={})[ylt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});_a({target:"Array",proto:!0,forced:!wlt},{filter:function(t){return blt(this,t,arguments.length>1?arguments[1]:void 0)}});var zD=Function.prototype,PB=zD.apply,Elt=zD.bind,jB=zD.call,Dlt=typeof Reflect=="object"&&Reflect.apply||(Elt?jB.bind(PB):function(){return jB.apply(PB,arguments)}),NB=(mn("species"),RegExp.prototype),Clt=JL.charAt,xlt=function(t,e,n){return e+(n?Clt(t,e).length:1)},Slt=Math.floor,$2=jt("".charAt),Alt=jt("".replace),H2=jt("".slice),Olt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,klt=/\$([$&'`]|\d{1,2})/g,Blt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=klt;return o!==void 0&&(o=sh(o),s=Olt),Alt(i,s,function(l,c)
`)&&t.flags==="s")}),qct=Tt.RegExp,Kct=Ye(function(){var t=qct("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Yct=r3.get,Xct=WD("native-string-replace",String.prototype.replace),t1=RegExp.prototype.exec,i3=t1,Zct=Rt("".charAt),Jct=Rt("".indexOf),Qct=Rt("".replace),Z2=Rt("".slice),J2=(X2=/b*/g,We(t1,tF=/a/,"a"),We(t1,X2,"a"),tF.lastIndex!==0||X2.lastIndex!==0),eF=BR.BROKEN_CARET,Q2=/()??/.exec("")[1]!==void 0;(J2||Q2||eF||Gct||Kct)&&(i3=function(t){var e,n,r,o,i,a,u,s=this,l=Yct(s),c=An(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=We(i3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=eF&&s.sticky,m=We(kR,s),g=s.source,v=0,y=c;if(d&&(m=Qct(m,"y",""),Jct(m,"g")===-1&&(m+="g"),y=Z2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Zct(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Q2&&(n=new RegExp("^"+g+"$(?!\\s)",m)),J2&&(r=s.lastIndex),o=We(t1,d?n:s,y),d?o?(o.input=Z2(o.input,v),o[0]=Z2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:J2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Q2&&o&&o.length>1&&We(Xct,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=TR(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var fp=i3;ja({target:"RegExp",proto:!0,forced:/./.exec!==fp},{exec:fp});var e1=Array.isArray||function(t){return ga(t)=="Array"},PR=function(){},tft=[],jR=ph("Reflect","construct"),nC=/^\s*(?:class|function)\b/,eft=Rt(nC.exec),nft=!nC.exec(PR),Ff=function(t){if(!vn(t))return!1;try{return jR(PR,tft,t),!0}catch{return!1}},rC=!jR||Ye(function(){var t;return Ff(Ff.call)||!Ff(Object)||!Ff(function(){t=!0})||t})?function(t){if(!vn(t))return!1;switch(tC(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nft||!!eft(nC,YD(t))}:Ff,NR=function(t,e,n){var r=qD(e);r in t?hh.f(t,r,$D(0,n)):t[r]=n},rft=Lr("species"),oC=function(t){return Q6>=51||!Ye(function(){var e=[];return(e.constructor={})[rft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},oft=Rt([].slice),ift=oC("slice"),aft=Lr("species"),tw=Tt.Array,uft=Math.max;function oo(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 nF(t){var e=t.selection;if(e==null)return!1;var n=oo(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=oo(n,2)[1],o=E.start(t,r);if(Bt.equals(e.anchor,o))return!0}return!1}function rF(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}ja({target:"Array",proto:!0,forced:!ift},{slice:function(t,e){var n,r,o,i=dh(this),a=Tm(i),u=cp(t,a),s=cp(e===void 0?a:e,a);if(e1(i)&&(n=i.constructor,(rC(n)&&(n===tw||e1(n.prototype))||Or(n)&&(n=n[aft])===null)&&(n=void 0),n===tw||n===void 0))return oft(i,u,s);for(r=new(n===void 0?tw:n)(uft(s-u,0)),o=0;u<s;u++,o++)u in i&&NR(r,o,i[u]);return r.length=o,r}});var oF=Rt(Rt.bind),sft=Lr("species"),iF=Tt.Array,lft=function(t,e){return new(function(n){var r;return e1(n)&&(r=n.constructor,(rC(r)&&(r===iF||e1(r.prototype))||Or(r)&&(r=r[sft])===null)&&(r=void 0)),r===void 0?iF:r}(t))(e===0?0:e)},aF=Rt([].push),Li=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,m=GD(s),g=mR(m),v=function(D,x){return wR(D),x===void 0?D:oF?oF(D,x):function(){return D.apply(x,arguments)}}(l,c),y=Tm(g),h=0,b=f||lft,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),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:aF(w,p)}else switch(t){case 4:return!1;case 7:aF(w,p)}return i?-1:r||o?o:w}},Pm={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)},cft=Pm.map;ja({target:"Array",proto:!0,forced:!oC("map")},{map:function(t){return cft(this,t,arguments.length>1?arguments[1]:void 0)}});var fft=QD?{}.toString:function(){return"[object "+tC(this)+"]"};function jm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function IR(t){return jm(t).every(function(e){return!!e.isHeader})}QD||lp(Object.prototype,"toString",fft,{unsafe:!0});var dft=ZD.PROPER,a3=RegExp.prototype,LR=a3.toString,pft=Rt(kR),hf
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,dF=Rt("".replace),n1="["+c3+"]",_ft=RegExp("^"+n1+n1+"*"),Tft=RegExp(n1+n1+"*$"),nw=function(t){return function(e){var n=An(Pa(e));return 1&t&&(n=dF(n,_ft,"")),2&t&&(n=dF(n,Tft,"")),n}},Pft={start:nw(1),end:nw(2),trim:nw(3)},jft=ZD.PROPER,Nft=Pft.trim;function HR(t){return t.length?t[0].tagName.toLowerCase():""}ja({target:"String",proto:!0,forced:function(t){return Ye(function(){return!!c3[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||jft&&c3[t].name!==t})}("trim")},{trim:function(){return Nft(this)}}),ja({global:!0},{globalThis:Tt}),Pr&&(B.fn.append=Pr),Fo&&(B.fn.on=Fo),Aa&&(B.fn.focus=Aa),Tr&&(B.fn.attr=Tr),Bo&&(B.fn.val=Bo),Sa&&(B.fn.html=Sa),Rl&&(B.fn.dataset=Rl),Nl&&(B.fn.addClass=Nl),Il&&(B.fn.removeClass=Il),Hl&&(B.fn.children=Hl),ov&&(B.fn.each=ov),$l&&(B.fn.find=$l);var dp=!1,VR=0,UR=0,pp=null,hp=null,Sd=B("body");function WR(t){dp=!1,hp=null,pp=null,Sd.off("mousemove",GR),Sd.off("mouseup",WR)}Sd.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),dp=!0;var n=t.clientX;VR=n;var r=e.getBoundingClientRect().width;UR=r,Sd.on("mousemove",GR),Sd.on("mouseup",WR)}});var GR=Ju(function(t){if(dp&&hp!=null&&pp!=null){t.preventDefault();var e=t.clientX,n=UR+(e-VR);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(hp,{width:n.toString()},{at:pp})}},100),Ift={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=A.findPath(u,s),d=E.start(u,p),m=E.end(u,p),g=Bt.compare(c,m)<=0&&Bt.compare(c,d)>=0,v=Bt.compare(f,m)<=0&&Bt.compare(f,d)>=0;return!!(g&&v&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=bt("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)}}}},bt("table",{width:i,contentEditable:r},bt("colgroup",null,jm(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},Lft={type:"table-row",renderElem:function(t,e,n){return bt("tr",null,e)}},Rft={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var m=A.getParentNode(p,d);if(m==null)return!1;var g=A.getParentNode(p,m);return g!=null&&jm(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 bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ju(function(p){var d=this.elm;if(d!=null){var m=d.getBoundingClientRect(),g=m.left,v=m.width,y=m.top,h=m.height,b=p.clientX,w=p.clientY;dp||(b>g+v-5&&b<g+v&&w>y&&w<y+h?(d.style.cursor="col-resize",hp=n,pp=A.findPath(n,t)):dp||(d.style.cursor="auto",hp=null,pp=null))}},100)}},e);return f}},Mft={selector:"table",preParseHtml:function(t){var e=B(t);if(HR(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},zft=Pm.filter;ja({target:"Array",proto:!0,forced:!oC("filter")},{filter:function(t){return zft(this,t,arguments.length>1?arguments[1]:void 0)}});var $ft=Math.floor,rw=Rt("".charAt),Hft=Rt("".replace),ow=Rt("".slice),Vft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uft=/\$([$&'`]|\d{1,2})/g,Wft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Uft;return o!==void 0&&(o=GD(o),s=Vft),Hft(i,s,function(l,c){var f;switch(rw(c,0)){case"$":return"$";case"&":return t;case"`":return ow(e,0,n);case"'":return ow(e,a);case"<":f=o[ow(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=$ft(p/10);return d===0?l:d<=u?r[d-1]===void 0?rw(c,1):r[d-1]+rw(c,1):l}f=r[p-1]}return f===void 0?"":f})},f3=Lr("replace"),Gft=Math.max,qft=Math.min,Kft=Rt([].concat),iw=Rt([].push)
`)},s.deleteBackward=function(l){if(!nF(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=rF(s,f),d=rF(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")&&N.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),N.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var m=A.genEmptyParagraph();N.insertNodes(s,m,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){nF(s)||r(l)},s.normalizeNode=function(l){var c=oo(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();N.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
`||/<img[^>]+>/.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(j.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Q.string(c).length!==0){var d=A.findPath(s,c),m={anchor:E.start(s,d),focus:E.end(s,d)};s.select(m)}else u();else u()}else u()}else u()},s}};Kn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Kn("zh-CN",{videoModule:{delete:"\u5220\u9664\u89C6\u9891",uploadVideo:"\u4E0A\u4F20\u89C6\u9891",insertVideo:"\u63D2\u5165\u89C6\u9891",videoSrc:"\u89C6\u9891\u5730\u5740",videoSrcPlaceHolder:"\u89C6\u9891\u6587\u4EF6 url \u6216\u7B2C\u4E09\u65B9 <iframe>",videoPoster:"\u89C6\u9891\u5C01\u9762",videoPosterPlaceHolder:"\u5C01\u9762\u56FE\u7247 url",ok:"\u786E\u5B9A",editSize:"\u4FEE\u6539\u5C3A\u5BF8",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"}});/*! *****************************************************************************
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 r1=function(){return r1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r1.apply(this,arguments)};function Nm(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function Im(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Vu(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 fdt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var yF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aC(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ri,yg,O0=function(t){return t&&t.Math==Math&&t},rt=O0(typeof globalThis=="object"&&globalThis)||O0(typeof window=="object"&&window)||O0(typeof self=="object"&&self)||O0(typeof yF=="object"&&yF)||function(){return this}()||Function("return this")(),de=function(t){try{return!!t()}catch{return!0}},To=!de(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Tf=Function.prototype.call,le=Tf.bind?Tf.bind(Tf):function(){return Tf.apply(Tf,arguments)},bF={}.propertyIsEnumerable,wF=Object.getOwnPropertyDescriptor,ddt={f:wF&&!bF.call({1:2},1)?function(t){var e=wF(this,t);return!!e&&e.enumerable}:bF},Lm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},KR=Function.prototype,d3=KR.bind,p3=KR.call,pdt=d3&&d3.bind(p3),Ct=d3?function(t){return t&&pdt(p3,t)}:function(t){return t&&function(){return p3.apply(t,arguments)}},hdt=Ct({}.toString),gdt=Ct("".slice),Ao=function(t){return gdt(hdt(t),8,-1)},lw=rt.Object,vdt=Ct("".split),uC=de(function(){return!lw("z").propertyIsEnumerable(0)})?function(t){return Ao(t)=="String"?vdt(t,""):lw(t)}:lw,mdt=rt.TypeError,vh=function(t){if(t==null)throw mdt("Can't call method on "+t);return t},Ha=function(t){return uC(vh(t))},oe=function(t){return typeof
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,PF=Ct("".replace),c1="["+m3+"]",spt=RegExp("^"+c1+c1+"*"),lpt=RegExp(c1+c1+"*$"),dw=function(t){return function(e){var n=Dr(vh(e));return 1&t&&(n=PF(n,spt,"")),2&t&&(n=PF(n,lpt,"")),n}},cpt={start:dw(1),end:dw(2),trim:dw(3)},fpt=Oc.PROPER,dpt=cpt.trim;function jF(t){return t.length?t[0].tagName.toLowerCase():""}function nM(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=B(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}Hn({target:"String",proto:!0,forced:de(function(){return!!m3.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||fpt&&m3.trim.name!=="trim"})},{trim:function(){return dpt(this)}}),Hn({global:!0},{globalThis:rt}),Pr&&(B.fn.append=Pr),Fo&&(B.fn.on=Fo),Aa&&(B.fn.focus=Aa),Tr&&(B.fn.attr=Tr),Bo&&(B.fn.val=Bo),Sa&&(B.fn.html=Sa),zl&&(B.fn.parent=zl),Ll&&(B.fn.hasClass=Ll),Ul&&(B.fn.empty=Ul);var k0,ppt={type:"video",renderElem:function(t,e,n){var r,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,p=f===void 0?"auto":f,d=A.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:nM(a,c,p)});else{var m=bt("video",{poster:s,controls:!0},bt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
\u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);c!=="auto"&&(m.data.width=c),p!=="auto"&&(m.data.height=p),r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},m)}return Wl("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},hpt={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?f+=nM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
</div>`}},gpt=Object.keys||function(t){return tM(t,u1)},vpt=To?Object.defineProperties:function(t,e){fn(t);for(var n,r=Ha(e),o=gpt(e),i=o.length,a=0;i>a;)di.f(t,n=o[a++],r[n]);return t},y3=ss("document","documentElement"),rM=hC("IE_PROTO"),pw=function(){},oM=function(t){return"<script>"+t+"<\/script>"},NF=function(t){t.write(oM("")),t.close();var e=t.parentWindow.Object;return t=null,e},bg=function(){try{k0=new ActiveXObject("htmlfile")}catch{}var t,e;bg=typeof document<"u"?document.domain&&k0?NF(k0):((e=yp("iframe")).style.display="none",y3.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(oM("document.F=Object")),t.close(),t.F):NF(k0);for(var n=u1.length;n--;)delete bg.prototype[u1[n]];return bg()};zm[rM]=!0;var vC=Object.create||function(t,e){var n;return t!==null?(pw.prototype=fn(t),n=new pw,pw.prototype=null,n[rM]=t):n=bg(),e===void 0?n:vpt(n,e)},b3=Re("unscopables"),w3=Array.prototype;w3[b3]==null&&di.f(w3,b3,{configurable:!0,value:vC(null)});var Od=function(t){w3[b3][t]=!0},mpt=QR.includes;Hn({target:"Array",proto:!0},{includes:function(t){return mpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Od("includes");var ypt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(jF(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=B(o))}}var a=jF(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},IF=Ct(Ct.bind),wp=function(t,e){return Na(t),e===void 0?t:IF?IF(t,e):function(){return t.apply(e,arguments)}},f1=Array.isArray||function(t){return Ao(t)=="Array"},iM=function(){},bpt=[],aM=ss("Reflect","construct"),mC=/^\s*(?:class|function)\b/,wpt=Ct(mC.exec),Ept=!mC.exec(iM),jf=function(t){if(!oe(t))return!1;try{return aM(iM,bpt,t),!0}catch{return!1}},yC=!aM||de(function(){var t;return jf(jf.call)||!jf(Object)||!jf(function(){t=!0})||t})?function(t){if(!oe(t))return!1;switch(Hm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ept||!!wpt(mC,Mm(t))}:jf,Dpt=Re("species"),LF=rt.Array,Cpt=function(t,e){return new(function(n){var r;return f1(n)&&(r=n.constructor,(yC(r)&&(r===LF||f1(r.prototype))||he(r)&&(r=r[Dpt])===null)&&(r=void 0)),r===void 0?LF:r}(t))(e===0?0:e)},RF=Ct([].push),Mi=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,m=Rm(s),g=uC(m),v=wp(l,c),y=mh(g),h=0,b=f||Cpt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=v(p=g[h],h,m),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:RF(w,p)}else switch(t){case 4:return!1;case 7:RF(w,p)}return i?-1:r||o?o:w}},bC={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},xpt=bC.find,MF=!0;"find"in[]&&Array(1).find(function(){MF=!1}),Hn({target:"Array",proto:!0,forced:MF},{find:function(t){return xpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Od("find");var Spt=gC?{}.toString:function(){return"[object "+Hm(this)+"]"};function zF(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}gC||ir(Object.prototype,"toString",Spt,{unsafe:!0});var $F,hw,Apt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=B(t),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",zF(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",zF(o,i=l.attr("poster")||"",a,u)}},uM=function(){var t=fn(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},wC=rt.RegExp,E3=de(function(){var t=wC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Opt=E3||de(function(){return!wC("
`)&&t.flags==="s")}),_pt=rt.RegExp,Tpt=de(function(){var t=_pt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Ppt=fr.get,jpt=cC("native-string-replace",String.prototype.replace),d1=RegExp.prototype.exec,D3=d1,Npt=Ct("".charAt),Ipt=Ct("".indexOf),Lpt=Ct("".replace),gw=Ct("".slice),vw=(hw=/b*/g,le(d1,$F=/a/,"a"),le(d1,hw,"a"),$F.lastIndex!==0||hw.lastIndex!==0),HF=kpt.BROKEN_CARET,mw=/()??/.exec("")[1]!==void 0;(vw||mw||HF||Fpt||Tpt)&&(D3=function(t){var e,n,r,o,i,a,u,s=this,l=Ppt(s),c=Dr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=le(D3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=HF&&s.sticky,m=le(uM,s),g=s.source,v=0,y=c;if(d&&(m=Lpt(m,"y",""),Ipt(m,"g")===-1&&(m+="g"),y=gw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Npt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),mw&&(n=new RegExp("^"+g+"$(?!\\s)",m)),vw&&(r=s.lastIndex),o=le(d1,d?n:s,y),d?o?(o.input=gw(o.input,v),o[0]=gw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:vw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mw&&o&&o.length>1&&le(jpt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=vC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var p1=D3;Hn({target:"RegExp",proto:!0,forced:/./.exec!==p1},{exec:p1});var EC=Function.prototype,VF=EC.apply,Rpt=EC.bind,UF=EC.call,sM=typeof Reflect=="object"&&Reflect.apply||(Rpt?UF.bind(VF):function(){return UF.apply(VF,arguments)}),WF=(Re("species"),RegExp.prototype),Mpt=Ct("".charAt),GF=Ct("".charCodeAt),zpt=Ct("".slice),qF=function(t){return function(e,n){var r,o,i=Dr(vh(e)),a=$m(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=GF(i,a))<55296||r>56319||a+1===u||(o=GF(i,a+1))<56320||o>57343?t?Mpt(i,a):r:t?zpt(i,a,a+2):o-56320+(r-55296<<10)+65536}},lM={codeAt:qF(!1),charAt:qF(!0)},$pt=lM.charAt,Hpt=function(t,e,n){return e+(n?$pt(t,e).length:1)},Vpt=Math.floor,yw=Ct("".charAt),Upt=Ct("".replace),bw=Ct("".slice),Wpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Gpt=/\$([$&'`]|\d{1,2})/g,qpt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Gpt;return o!==void 0&&(o=Rm(o),s=Wpt),Upt(i,s,function(l,c){var f;switch(yw(c,0)){case"$":return"$";case"&":return t;case"`":return bw(e,0,n);case"'":return bw(e,a);case"<":f=o[bw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Vpt(p/10);return d===0?l:d<=u?r[d-1]===void 0?yw(c,1):r[d-1]+yw(c,1):l}f=r[p-1]}return f===void 0?"":f})},Kpt=rt.TypeError,Ypt=function(t,e){var n=t.exec;if(oe(n)){var r=le(n,t,e);return r!==null&&fn(r),r}if(Ao(t)==="RegExp")return le(p1,t,e);throw Kpt("RegExp#exec called on incompatible receiver")},C3=Re("replace"),Xpt=Math.max,Zpt=Math.min,Jpt=Ct([].concat),ww=Ct([].push),KF=Ct("".indexOf),YF=Ct("".slice),Qpt="a".replace(/./,"$0")==="$0",XF=!!/./[C3]&&/./[C3]("a","$0")==="";function cM(t){return t===void 0&&(t="r"),t+"-"+wj()}(function(t,e,n,r){var o=Re(t),i=!de(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!de(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ct(/./[o]),s=function(l,c,f){var p=XF?"$":"$0";return[function(d,m){var g=vh(this),v=d==null?void 0:mp(d,C3);return v?le(v,d,g,m):le(c,Dr(g),d,m)},function(d,m){var g=fn(this),v=Dr(d);if(typeof m=="string"&&KF(m,p)===-1&&KF(m,"$<")===-1){var y=f(c,g,v,m);if(y.done)return y.value}var h=oe(m);h||(m=Dr(m));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var x=Ypt(g,v);if(x===null||(ww(D,x),!b))break;Dr(x[0])===""&&(g.lastIndex=Hpt(v,JR(g.lastIndex),w))}for(var C,O="",_=0,R=0;R<D.length;R++){for(var H=Dr((x=D[R])[0]),M=Xpt(Zpt($m(x.index),v.length),0),K=[],U=1;U<x.length;U++)ww(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=Jpt([H],K,M,v);W!==void 0&&ww(q,W);var nt=Dr(sM(m,void 0,q))}else nt=qpt(H,v,M,K,W,m);M>=_&&(O+=YF(v,_,M)+nt,_=M+H.length)}return O+YF(v,_)}]}(0,""[t],function(l,c,f,p,d){var m=Ct(l),g=c.exec;return g===p1||g===WF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});ir(String.prototype,t,s[0]),ir(WF,o,s[1])}})("replace",0,!!de(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Qpt||XF);var h1=rt.Promise,g1=function(t,e,n){for(var r in e)ir(t,r,e[r],n);return t},tht=rt.String,eht=rt.TypeError,nc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ct(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return fn(r),function(i){if(typeof i=="object"||oe(i))return i;throw eht("Can't set "+tht(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),nht=di.f,ZF=Re("toStringTag"),v1=function(t,e,n){t&&!qe(t=n?t:t.prototype,ZF)&&nht(t,ZF,{configurable:!0,value:e})},JF=Re("species"),rht=rt.TypeError,DC=function(t,e){if(gp(e
`)&&t.flags==="s")}),Fgt=et.RegExp,_gt=ve(function(){var t=Fgt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Tgt=dr.get,Pgt=PC("native-string-replace",String.prototype.replace),A1=RegExp.prototype.exec,M3=A1,jgt=_t("".charAt),Ngt=_t("".indexOf),Igt=_t("".replace),Uw=_t("".slice),Ww=(Vw=/b*/g,Jt(A1,U_=/a/,"a"),Jt(A1,Vw,"a"),U_.lastIndex!==0||Vw.lastIndex!==0),W_=XM.BROKEN_CARET,Gw=/()??/.exec("")[1]!==void 0;(Ww||Gw||W_||Bgt||_gt)&&(M3=function(t){var e,n,r,o,i,a,u,s=this,l=Tgt(s),c=Ea(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Jt(M3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=W_&&s.sticky,m=Jt(YM,s),g=s.source,v=0,y=c;if(d&&(m=Igt(m,"y",""),Ngt(m,"g")===-1&&(m+="g"),y=Uw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&jgt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),Gw&&(n=new RegExp("^"+g+"$(?!\\s)",m)),Ww&&(r=s.lastIndex),o=Jt(A1,d?n:s,y),d?o?(o.input=Uw(o.input,v),o[0]=Uw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ww&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Gw&&o&&o.length>1&&Jt(Pgt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=UC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Bp=M3;Co({target:"RegExp",proto:!0,forced:/./.exec!==Bp},{exec:Bp});var WC=Function.prototype,G_=WC.apply,Lgt=WC.bind,q_=WC.call,QM=typeof Reflect=="object"&&Reflect.apply||(Lgt?q_.bind(G_):function(){return q_.apply(G_,arguments)}),Rgt=Me("species"),qw=RegExp.prototype,Mgt=Me("match"),zgt=et.TypeError,$gt=Me("species"),tz=function(t,e){var n,r=dn(t).constructor;return r===void 0||(n=dn(r)[$gt])==null?e:function(o){if(HC(o))return o;throw zgt(b1(o)+" is not a constructor")}(n)},Hgt=_t("".charAt),K_=_t("".charCodeAt),Vgt=_t("".slice),Y_=function(t){return function(e,n){var r,o,i=Ea(Cp(e)),a=MC(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=K_(i,a))<55296||r>56319||a+1===u||(o=K_(i,a+1))<56320||o>57343?t?Hgt(i,a):r:t?Vgt(i,a,a+2):o-56320+(r-55296<<10)+65536}},ez={codeAt:Y_(!1),charAt:Y_(!0)},Ugt=ez.charAt,Wgt=function(t,e,n){return e+(n?Ugt(t,e).length:1)},Ggt=et.Array,qgt=Math.max,z3=function(t,e,n){for(var r=wh(t),o=kp(e,r),i=kp(n===void 0?r:n,r),a=Ggt(qgt(i-o,0)),u=0;o<i;o++,u++)qM(a,u,t[o]);return a.length=u,a},Kgt=et.TypeError,X_=function(t,e){var n=t.exec;if(ae(n)){var r=Jt(n,t,e);return r!==null&&dn(r),r}if(eo(t)==="RegExp")return Jt(Bp,t,e);throw Kgt("RegExp#exec called on incompatible receiver")},Js=XM.UNSUPPORTED_Y,Ygt=Math.min,nz=[].push,Xgt=_t(/./.exec),Qs=_t(nz),Vf=_t("".slice);(function(t,e,n,r){var o=Me(t),i=!ve(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ve(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Rgt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=_t(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,m){var g,v,y=Ea(Cp(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(d===void 0)return[y];if(!fe(g=d)||!((v=g[Mgt])!==void 0?v:eo(g)=="RegExp"))return Jt(c,y,d,h);for(var b,w,D,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,_=new RegExp(d.source,C+"g");(b=Jt(Bp,_,y))&&!((w=_.lastIndex)>O&&(Qs(x,Vf(y,O,b.index)),b.length>1&&b.index<y.length&&QM(nz,x,z3(b,1)),D=b[0].length,O=w,x.length>=h));)_.lastIndex===b.index&&_.lastIndex++;return O===y.length?!D&&Xgt(_,"")||Qs(x,""):Qs(x,Vf(y,O)),x.length>h?z3(x,0,h):x}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:Jt(c,this,d,m)}:c,[function(d,m){var g=Cp(this),v=d==null?void 0:Ap(d,l);return v?Jt(v,d,g,m):Jt(p,Ea(g),d,m)},function(d,m){var g=dn(this),v=Ea(d),y=f(p,g,v,m,p!==c);if(y.done)return y.value;var h=tz(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(Js?"g":"y"),D=new h(Js?"^(?:"+g.source+")":g,w),x=m===void 0?4294967295:m>>>0;if(x===0)return[];if(v.length===0)return X_(D,v)===null?[v]:[];for(var C=0,O=0,_=[];O<v.length;){D.lastIndex=Js?0:O;var R,H=X_(D,Js?Vf(v,O):v);if(H===null||(R=Ygt(HM(D.lastIndex+(Js?O:0)),v.length))===C)O=Wgt(v,O,b);else{if(Qs(_,Vf(v,C,O)),_.length===x)return _;for(var M=1;M<=H.length-1;M++)if(Qs(_,H[M]),_.length===x)return _;O=C=R}}return Qs(_,Vf(v,C)),_}]}(o,""[t],function(l,c,f,p,d){var m=_t(l),g=c.exec;return g===Bp||g===qw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});ar(String.prototype,t,s[0]),ar(qw,o,s[1])}r&&Oo(qw[o],"sham",!0)})("split",0,!!ve(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Js);/*! ***********
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 O1=function(){return O1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},O1.apply(this,arguments)};function GC(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function qC(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Zgt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var $3=Me("unscopables"),H3=Array.prototype;H3[$3]==null&&pi.f(H3,$3,{configurable:!0,value:UC(null)});var qu,Z_,J_,Kw=function(t){H3[$3][t]=!0},oc={},Jgt=!ve(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Q_=RC("IE_PROTO"),V3=et.Object,Qgt=V3.prototype,k1=Jgt?V3.getPrototypeOf:function(t){var e=jC(t);if(Ke(e,Q_))return e[Q_];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof V3?Qgt:null},U3=Me("iterator"),rz=!1;[].keys&&("next"in(J_=[].keys())?(Z_=k1(k1(J_)))!==Object.prototype&&(qu=Z_):rz=!0);var tvt=qu==null||ve(function(){var t={};return qu[U3].call(t)!==t});tvt&&(qu={}),ae(qu[U3])||ar(qu,U3,function(){return this});var KC={IteratorPrototype:qu,BUGGY_SAFARI_ITERATORS:rz},evt=pi.f,tT=Me("toStringTag"),B1=function(t,e,n){t&&!Ke(t=n?t:t.prototype,tT)&&evt(t,tT,{configurable:!0,value:e})},nvt=KC.IteratorPrototype,rvt=function(){return this},ovt=et.String,ivt=et.TypeError,ic=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=_t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return dn(r),function(i){if(typeof i=="object"||ae(i))return i;throw ivt("Can't set "+ovt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),avt=bh.PROPER,uvt=bh.CONFIGURABLE,eT=KC.IteratorPrototype,R0=KC.BUGGY_SAFARI_ITERATORS,Uf=Me("iterator"),svt=function(){return this},oz=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=UC(nvt,{next:Vm(1,b)}),B1(y,D,!1),oc[D]=rvt})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!R0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return func
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/t.exports&&(t.exports=e),j1!==void 0&&(j1.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\
`)&&t.flags==="s")}),Smt=Nt.RegExp,Amt=ln(function(){var t=Smt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Omt=n5.get,kmt=ox("native-string-replace",String.prototype.replace),R1=RegExp.prototype.exec,i5=R1,Bmt=Qt("".charAt),Fmt=Qt("".indexOf),_mt=Qt("".replace),w4=Qt("".slice),E4=(b4=/b*/g,Qe(R1,rP=/a/,"a"),Qe(R1,b4,"a"),rP.lastIndex!==0||b4.lastIndex!==0),oP=Qz.BROKEN_CARET,D4=/()??/.exec("")[1]!==void 0;(E4||D4||oP||xmt||Amt)&&(i5=function(t){var e,n,r,o,i,a,u,s=this,l=Omt(s),c=ii(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qe(i5,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=oP&&s.sticky,m=Qe(Jz,s),g=s.source,v=0,y=c;if(d&&(m=_mt(m,"y",""),Fmt(m,"g")===-1&&(m+="g"),y=w4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Bmt(c,s.lastIndex-1)!==`
`)&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),D4&&(n=new RegExp("^"+g+"$(?!\\s)",m)),E4&&(r=s.lastIndex),o=Qe(R1,d?n:s,y),d?o?(o.input=w4(o.input,v),o[0]=w4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:E4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),D4&&o&&o.length>1&&Qe(kmt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Dmt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Pp=i5;Ym({target:"RegExp",proto:!0,forced:/./.exec!==Pp},{exec:Pp});var bx=Function.prototype,iP=bx.apply,Tmt=bx.bind,aP=bx.call,Pmt=typeof Reflect=="object"&&Reflect.apply||(Tmt?aP.bind(iP):function(){return aP.apply(iP,arguments)}),jmt=Ua("species"),C4=RegExp.prototype,Nmt=Ua("match"),Imt=Nt.TypeError,Lmt=Ua("species"),Rmt=Qt("".charAt),uP=Qt("".charCodeAt),Mmt=Qt("".slice),zmt=function(t){return function(e,n){var r,o,i=ii(ac(e)),a=gx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=uP(i,a))<55296||r>56319||a+1===u||(o=uP(i,a+1))<56320||o>57343?t?Rmt(i,a):r:t?Mmt(i,a,a+2):o-56320+(r-55296<<10)+65536}},$mt=zmt(!0),Hmt=function(t,e,n){return e+(n?$mt(t,e).length:1)},Vmt=Nt.Array,Umt=Math.max,sP=function(t,e,n){for(var r,o,i,a,u=vx(t),s=r5(e,u),l=r5(n===void 0?u:n,u),c=Vmt(Umt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=lx(o))in r?qm.f(r,a,cx(0,i)):r[a]=i;return c.length=f,c},Wmt=Nt.TypeError,lP=function(t,e){var n=t.exec;if(On(n)){var r=Qe(n,t,e);return r!==null&&no(r),r}if(xa(t)==="RegExp")return Qe(Pp,t,e);throw Wmt("RegExp#exec called on incompatible receiver")},rl=Qz.UNSUPPORTED_Y,Gmt=Math.min,n$=[].push,qmt=Qt(/./.exec),ol=Qt(n$),Jf=Qt("".slice);(function(t,e,n,r){var o=Ua(t),i=!ln(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ln(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[jmt]=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=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,m){var g,v,y=ii(ac(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(d===void 0)return[y];if(!qr(g=d)||!((v=g[Nmt])!==void 0?v:xa(g)=="RegExp"))return Qe(c,y,d,h);for(var b,w,D,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,_=new RegExp(d.source,C+"g");(b=Qe(Pp,_,y))&&!((w=_.lastIndex)>O&&(ol(x,Jf(y,O,b.index)),b.length>1&&b.index<y.length&&Pmt(n$,x,sP(b,1)),D=b[0].length,O=w,x.length>=h));)_.lastIndex===b.index&&_.lastIndex++;return O===y.length?!D&&qmt(_,"")||ol(x,""):ol(x,Jf(y,O)),x.length>h?sP(x,0,h):x}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:Qe(c,this,d,m)}:c,[function(d,m){var g=ac(this),v=d==null?void 0:Rz(d,l);return v?Qe(v,d,g,m):Qe(p,ii(g),d,m)},function(d,m){var g=no(this),v=ii(d),y=f(p,g,v,m,p!==c);if(y.done)return y.value;var h=function(K,U){var W,q=no(K).constructor;return q===void 0||(W=no(q)[Lmt])==null?U:function(nt){if(Wz(nt))return nt;throw Imt(Iz(nt)+" is not a constructor")}(W)}(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(rl?"g":"y"),D=new h(rl?"^(?:"+g.source+")":g,w),x=m===void 0?4294967295:m>>>0;if(x===0)return[];if(v.length===0)return lP(D,v)===null?[v]:[];for(var C=0,O=0,_=[];O<v.length;){D.lastIndex=rl?0:O;var R,H=lP(D,rl?Jf(v,O):v);if(H===null||(R=Gmt(Hz(D.lastIndex+(rl?O:0)),v.length))===C)O=Hmt(v,O,b);else{if(ol(_,Jf(v,C,O)),_.length===x)return _;for(var M=1;M<=H.length-1;M++)if(ol(_,H[M]),_.length===x)return _;O=C=R}}return ol(_,Jf(v,C)),_}]}(o,""[t],function(l,c,f,p,d){var m=Qt(l),g=c.exec;return g===Pp||g===C4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Tp(String.prototype,t,s[0]),Tp(C4,o,s[1])}r&&uc(C4[o],"sham",!0)})("split",0,!!ln(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),rl)
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Se(Se({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Se(Se({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Se(Se({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Se(Se({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=Cr(Cr({},u),o||{});if(ep[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");ep[i]=a,function(l,c){c!=null&&(BN[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;tI[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){t6.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;FN[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){qE.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){KN.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Dv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){_8.push(n)})(e)},t.registerModule=function(e){hu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
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.
***************************************************************************** */function hu(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return on.registerMenu(c)}),n&&n.forEach(function(c){return on.registerRenderElem(c)}),r&&on.registerRenderStyle(r),o&&o.forEach(function(c){return on.registerElemToHtml(c)}),i&&on.registerStyleToHtml(i),a&&a.forEach(function(c){return on.registerPreParseHtml(c)}),u&&u.forEach(function(c){return on.registerParseElemHtml(c)}),s&&on.registerParseStyleHtml(s),l&&on.registerPlugin(l)}uut.forEach(function(t){return hu(t)}),hu(Rlt),hu(cdt),hu(b0t),hu(c1t),hu(Qmt);var i$='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',a$={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},nyt={hoverbarKeys:Se(Se({},a$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};on.setEditorConfig(Se(Se({},nyt),{decorate:o$}));var ryt={hoverbarKeys:a$};on.setSimpleEditorConfig(Se(Se({},ryt),{decorate:o$}));var oyt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:tt("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:tt("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:i$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};on.setToolbarConfig(oyt);var iyt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:i$,menuKeys:["insertImage","uploadImage"]},"insertVideo"
Please use '@${t}' event instead of props`,e}var u$=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const gyt=M1({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const n=Fl(null),r=dP(null),o=Fl(""),i=()=>{if(!n.value)return;const u=f$(t.defaultContent);ayt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:hyt(pyt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Ui("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Ui("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Ui("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Ui("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Ui("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Ui("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Ui("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Ui("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return s$(()=>{i()}),l$(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),vyt={ref:"box",style:{height:"100%"}};function myt(t,e,n,r,o,i){return z1(),$1("div",vyt,null,512)}var yyt=u$(gyt,[["render",myt]]);const byt=M1({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=Fl(null),n=r=>{if(!!e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||uyt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return c$(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),wyt={ref:"selector"};function Eyt(t,e,n,r,o,i){return z1(),$1("div",wyt,null,512)}var Dyt=u$(byt,[["render",Eyt]]);const Cyt={class:"m-wangEditor"},xyt=M1({__name:"index",props:{modelValue:String},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=dP(),o={},i={placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9..."},a=Fl("default"),u=l=>{r.value=l},s=d$({get(){return n.modelValue},set(l){r.value.isEmpty()&&(l=""),e("update:modelValue",l)}});return p$(()=>{const l=r.value;l!=null&&l.destroy()}),(l,c)=>(z1(),$1("div",Cyt,[Tn(jh(Dyt),{style:{"border-bottom":"1px solid #ccc"},editor:jh(r),defaultConfig:o,mode:a.value},null,8,["editor","mode"]),Tn(jh(yyt),{class:"editor-content'",style:{height:"300px","overflow-y":"hidden"},modelValue:jh(s),"onUpdate:modelValue":c[0]||(c[0]=f=>h$(s)?s.value=f:null),defaultConfig:i,mode:a.value,onOnCreated:u},null,8,["modelValue","mode"])]))}});const Syt=g$(xyt,[["__scopeId","data-v-3d802932"]]),Ayt={class:"app-container"},Oyt={class:"app-container-inner"},kyt=Gi("a",{href:"https://www.wangeditor.com/v5/for-frame.html",target:"_blank"}," https://www.wangeditor.com/v5/for-frame.html ",-1),Byt={style:{display:"flex","align-items":"center","margin-bottom":"20px"}},Fyt=Gi("span",{style:{width:"50px","font-weight":"bold"}},"\u6807\u9898\uFF1A",-1),_yt={style:{display:"flex","align-items":"center","margin-bottom":"20px"}},Tyt=Gi("span",{style:{width:"50px","font-weight":"bold"}},"\u5185\u5BB9",-1),Pyt=["innerHTML"],Nyt=M1({__name:"index",setup(t){const e=Fl(),n=Fl(!1),r=v$({title:"",content:""}),o=u=>{!u||u.validate(s=>{if(console.log("valid",s),s)y$.success("\u4FDD\u5B58\u6210\u529F");else return console.log("error submit!"),!1})},i=u=>{!u||u.validate(s=>{if(console.log("valid",s),s)n.value=!0;else return console.log("error submit!"),!1})},a=u=>{!u||u.resetFields()};return(u,s)=>{const l=Ya("el-input"),c=Ya("el-form-item"),f=Ya("e