|
- var p$=Object.defineProperty,h$=Object.defineProperties;var g$=Object.getOwnPropertyDescriptors;var Dx=Object.getOwnPropertySymbols;var v$=Object.prototype.hasOwnProperty,m$=Object.prototype.propertyIsEnumerable;var Cx=(t,e,n)=>e in t?p$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X=(t,e)=>{for(var n in e||(e={}))v$.call(e,n)&&Cx(t,n,e[n]);if(Dx)for(var n of Dx(e))m$.call(e,n)&&Cx(t,n,e[n]);return t},Zt=(t,e)=>h$(t,g$(e));var Bs=(t,e,n)=>new Promise((r,o)=>{var i=s=>{try{u(n.next(s))}catch(l){o(l)}},a=s=>{try{u(n.throw(s))}catch(l){o(l)}},u=s=>s.done?r(s.value):Promise.resolve(s.value).then(i,a);u((n=n.apply(t,e)).next())});import{d as i5,r as Rd,ar as gP,o as y$,L as vP,as as b$,at as w$,e as a5,f as mP,_ as E$,D as D$,c as Xa,I as C$,j as An,i as gn,k as Za,g as x$,u as xx,au as S$,x as A$}from"./index.eb58a47a.js";import{s as O$}from"./noticeManage.e1b6fed7.js";var ce=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function k$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ds(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ei,K0,Lh=function(t){return t&&t.Math==Math&&t},Bt=Lh(typeof globalThis=="object"&&globalThis)||Lh(typeof window=="object"&&window)||Lh(typeof self=="object"&&self)||Lh(typeof ce=="object"&&ce)||function(){return this}()||Function("return this")(),u5=Function.prototype,Sx=u5.apply,B$=u5.bind,Ax=u5.call,yP=typeof Reflect=="object"&&Reflect.apply||(B$?Ax.bind(Sx):function(){return Ax.apply(Sx,arguments)}),bP=Function.prototype,D4=bP.bind,C4=bP.call,F$=D4&&D4.bind(C4),me=D4?function(t){return t&&F$(C4,t)}:function(t){return t&&function(){return C4.apply(t,arguments)}},cn=function(t){return typeof t=="function"},Xn=function(t){try{return!!t()}catch(e){return!0}},Gn=!Xn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),jc=Function.prototype.call,Un=jc.bind?jc.bind(jc):function(){return jc.apply(jc,arguments)},Ox={}.propertyIsEnumerable,kx=Object.getOwnPropertyDescriptor,_$=kx&&!Ox.call({1:2},1)?function(t){var e=kx(this,t);return!!e&&e.enumerable}:Ox,s5={f:_$},Qr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T$=me({}.toString),P$=me("".slice),Ou=function(t){return P$(T$(t),8,-1)},Ym=Bt.Object,j$=me("".split),wP=Xn(function(){return!Ym("z").propertyIsEnumerable(0)})?function(t){return Ou(t)=="String"?j$(t,""):Ym(t)}:Ym,N$=Bt.TypeError,l5=function(t){if(t==null)throw N$("Can't call method on "+t);return t},Lo=function(t){return wP(l5(t))},or=function(t){return typeof t=="object"?t!==null:cn(t)},rr={},Bx=function(t){return cn(t)?t:void 0},cc=function(t,e){return arguments.length<2?Bx(rr[t])||Bx(Bt[t]):rr[t]&&rr[t][e]||Bt[t]&&Bt[t][e]},Md=me({}.isPrototypeOf),Xm=cc("navigator","userAgent")||"",Fx=Bt.process,_x=Bt.Deno,Tx=Fx&&Fx.versions||_x&&_x.version,Px=Tx&&Tx.v8;Px&&(K0=(Ei=Px.split("."))[0]>0&&Ei[0]<4?1:+(Ei[0]+Ei[1])),!K0&&Xm&&(!(Ei=Xm.match(/Edge\/(\d+)/))||Ei[1]>=74)&&(Ei=Xm.match(/Chrome\/(\d+)/))&&(K0=+Ei[1]);var Rh,kg=K0,mo=!!Object.getOwnPropertySymbols&&!Xn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kg&&kg<41}),c5=mo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",I$=Bt.Object,wl=c5?function(t){return typeof t=="symbol"}:function(t){var e=cc("Symbol");return cn(e)&&Md(e.prototype,I$(t))},L$=Bt.String,x4=function(t){try{return L$(t)}catch(e){return"Object"}},R$=Bt.TypeError,f5=function(t){if(cn(t))return t;throw R$(x4(t)+" is not a function")},Bg=function(t,e){var n=t[e];return n==null?void 0:f5(n)},M$=Bt.TypeError,z$=Object.defineProperty,oa=Bt["__core-js_shared__"]||function(t,e){try{z$(Bt,t,{value:e,configurable:!0,writable:!0})}catch(n){Bt[t]=e}return e}("__core-js_shared__",{}),ps=ds(function(t){(t.exports=function(e,n){return oa[e]||(oa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),$$=Bt.Object,Lp=function(t){return $$(l5(t))},H$=me({}.hasOwnProperty),Ut=Object.hasOwn||function(t,e){return H$(Lp(t),e)},V$=0,U$=Math.random(),W$=me(1 .toString),Fg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+W$(++V$+U$,36)},Nc=ps("wks"),ku=Bt.Symbol,jx=ku&&ku.for,G$=c5?ku:ku&&ku.withoutSetter||Fg,Pn=function(t){if(!Ut(Nc,t)||!mo&&typeof Nc[t]!="string"){var e="Symbol."+t;mo&&Ut(ku,t)?Nc[t]=ku[t]:Nc[t]=c5&&jx?jx(e):G$(e)}return Nc[t]},q$=Bt.TypeError,K$=Pn("toPrimitive"),Y$=function(t,e){if(!or(t)||wl(t))return t;var n,r=Bg(t,K$);if(r){if(e===void 0&&(e="default"),n=Un(r,t,e),!or(n)||wl(n))return n;throw q$("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&cn(a=o.toString)&&!or(u=Un(a,o))||cn(a=o.valueOf)&&!or(u=Un(a,o))||i!=="string"&&cn(a=o.toString)&&!or(u=Un(a,o)))return u;throw M$("Can't convert object to primitive value")}(t,e)},fc=function(t){var e=Y$(t,"string");return wl(e)?e:e+""},S4=Bt.document,X$=or(S4)&&or(S4.createElement),EP=function(t){return X$?S4.createElement(t):{}},DP=!Gn&&!Xn(function(){return Object.defineProperty(EP("div"),"a",{get:function(){return 7}}).a!=7}),Nx=Object.getOwnPropertyDescriptor,Z$=Gn?Nx:function(t,e){if(t=Lo(t),e=fc(e),DP)try{return Nx(t,e)}catch(n){}if(Ut(t,e))return Qr(!Un(s5.f,t,e),t[e])},z1={f:Z$},J$=/#|\.prototype\./,Rp=function(t,e){var n=tH[Q$(t)];return n==nH||n!=eH&&(cn(e)?Xn(e):!!e)},Q$=Rp.normalize=function(t){return String(t).replace(J$,".").toLowerCase()},tH=Rp.data={},eH=Rp.NATIVE="N",nH=Rp.POLYFILL="P",rH=Rp,Ix=me(me.bind),d5=function(t,e){return f5(t),e===void 0?t:Ix?Ix(t,e):function(){return t.apply(e,arguments)}},oH=Bt.String,iH=Bt.TypeError,cr=function(t){if(or(t))return t;throw iH(oH(t)+" is not an object")},aH=Bt.TypeError,Lx=Object.defineProperty,uH=Gn?Lx:function(t,e,n){if(cr(t),e=fc(e),cr(n),DP)try{return Lx(t,e,n)}catch(r){}if("get"in n||"set"in n)throw aH("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Ra={f:uH},In=Gn?function(t,e,n){return Ra.f(t,e,Qr(1,n))}:function(t,e,n){return t[e]=n,t},sH=z1.f,lH=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return yP(t,this,arguments)};return e.prototype=t.prototype,e},Zo=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?Bt:p?Bt[c]:(Bt[c]||{}).prototype,g=f?rr:rr[c]||In(rr,c,{})[c],v=g.prototype;for(o in e)n=!rH(f?o:c+(p?".":"#")+o,t.forced)&&y&&Ut(y,o),a=g[o],n&&(u=t.noTargetGet?(l=sH(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?d5(i,Bt):t.wrap&&n?lH(i):d&&cn(i)?me(i):i,(t.sham||i&&i.sham||a&&a.sham)&&In(s,"sham",!0),In(g,o,s),d&&(Ut(rr,r=c+"Prototype")||In(rr,r,{}),In(rr[r],o,i),t.real&&v&&!v[o]&&In(v,o,i)))},Rx=ps("keys"),$1=function(t){return Rx[t]||(Rx[t]=Fg(t))},cH=!Xn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Mx=$1("IE_PROTO"),A4=Bt.Object,fH=A4.prototype,_g=cH?A4.getPrototypeOf:function(t){var e=Lp(t);if(Ut(e,Mx))return e[Mx];var n=e.constructor;return cn(n)&&e instanceof n?n.prototype:e instanceof A4?fH:null},dH=Bt.String,pH=Bt.TypeError,Tg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=me(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return cr(r),function(i){if(typeof i=="object"||cn(i))return i;throw pH("Can't set "+dH(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),hH=Math.ceil,gH=Math.floor,p5=function(t){var e=+t;return e!=e||e===0?0:(e>0?gH:hH)(e)},vH=Math.max,mH=Math.min,O4=function(t,e){var n=p5(t);return n<0?vH(n+e,0):mH(n,e)},yH=Math.min,Mp=function(t){return(e=t.length)>0?yH(p5(e),9007199254740991):0;var e},zx=function(t){return function(e,n,r){var o,i=Lo(e),a=Mp(i),u=O4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},bH={includes:zx(!0),indexOf:zx(!1)},zp={},wH=bH.indexOf,$x=me([].push),CP=function(t,e){var n,r=Lo(t),o=0,i=[];for(n in r)!Ut(zp,n)&&Ut(r,n)&&$x(i,n);for(;e.length>o;)Ut(r,n=e[o++])&&(~wH(i,n)||$x(i,n));return i},Pg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],EH=Pg.concat("length","prototype"),DH=Object.getOwnPropertyNames||function(t){return CP(t,EH)},h5={f:DH},Y0={f:Object.getOwnPropertySymbols},CH=me([].concat),xH=cc("Reflect","ownKeys")||function(t){var e=h5.f(cr(t)),n=Y0.f;return n?CH(e,n(t)):e},g5=Object.keys||function(t){return CP(t,Pg)},SH=Gn?Object.defineProperties:function(t,e){cr(t);for(var n,r=Lo(e),o=g5(e),i=o.length,a=0;i>a;)Ra.f(t,n=o[a++],r[n]);return t},AH=cc("document","documentElement"),xP=$1("IE_PROTO"),Zm=function(){},SP=function(t){return"<script>"+t+"<\/script>"},Hx=function(t){t.write(SP("")),t.close();var e=t.parentWindow.Object;return t=null,e},X0=function(){try{Rh=new ActiveXObject("htmlfile")}catch(r){}var t,e;X0=typeof document!="undefined"?document.domain&&Rh?Hx(Rh):((e=EP("iframe")).style.display="none",AH.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(SP("document.F=Object")),t.close(),t.F):Hx(Rh);for(var n=Pg.length;n--;)delete X0.prototype[Pg[n]];return X0()};zp[xP]=!0;var si=Object.create||function(t,e){var n;return t!==null?(Zm.prototype=cr(t),n=new Zm,Zm.prototype=null,n[xP]=t):n=X0(),e===void 0?n:SH(n,e)},k4=function(t,e,n){var r=fc(e);r in t?Ra.f(t,r,Qr(0,n)):t[r]=n},OH=Bt.Array,kH=Math.max,AP=function(t,e,n){for(var r=Mp(t),o=O4(e,r),i=O4(n===void 0?r:n,r),a=OH(kH(i-o,0)),u=0;o<i;o++,u++)k4(a,u,t[o]);return a.length=u,a},BH=me("".replace),FH=me("".split),_H=me([].join),B4=String(Error("zxcasd").stack),OP=/\n\s*at [^:]*:[^\n]*/,TH=OP.test(B4),PH=/@[^\n]*\n/.test(B4)&&!/zxcasd/.test(B4),jH=function(t,e){if(typeof t!="string")return t;if(TH)for(;e--;)t=BH(t,OP,"");else if(PH)return _H(AP(FH(t,`
- `),e),`
- `);return t},NH=function(t,e){or(e)&&"cause"in e&&In(t,"cause",e.cause)},oi={},IH=Pn("iterator"),LH=Array.prototype,kP={};kP[Pn("toStringTag")]="z";var v5=String(kP)==="[object z]",RH=Pn("toStringTag"),MH=Bt.Object,zH=Ou(function(){return arguments}())=="Arguments",$p=v5?Ou:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=MH(t),RH))=="string"?n:zH?Ou(e):(r=Ou(e))=="Object"&&cn(e.callee)?"Arguments":r},$H=Pn("iterator"),Vx=function(t){if(t!=null)return Bg(t,$H)||Bg(t,"@@iterator")||oi[$p(t)]},HH=Bt.TypeError,Ux=function(t,e,n){var r,o;cr(t);try{if(!(r=Bg(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 cr(r),n},VH=Bt.TypeError,Z0=function(t,e){this.stopped=t,this.result=e},Wx=Z0.prototype,UH=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),y=d5(e,c),g=function(m){return r&&Ux(r,"normal",m),new Z0(!0,m)},v=function(m){return f?(cr(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=Vx(t)))throw VH(x4(t)+" is not iterable");if(function(m){return m!==void 0&&(oi.Array===m||LH[IH]===m)}(o)){for(i=0,a=Mp(t);a>i;i++)if((u=v(t[i]))&&Md(Wx,u))return u;return new Z0(!1)}r=function(m,h){var b=arguments.length<2?Vx(m):h;if(f5(b))return cr(Un(b,m));throw HH(x4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=Un(s,r)).done;){try{u=v(l.value)}catch(m){Ux(r,"throw",m)}if(typeof u=="object"&&u&&Md(Wx,u))return u}return new Z0(!1)},WH=Bt.String,zd=function(t){if($p(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return WH(t)},GH=function(t,e){return t===void 0?arguments.length<2?"":e:zd(t)},qH=!Xn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Qr(1,7)),t.stack!==7)}),KH=Pn("toStringTag"),jg=Bt.Error,YH=[].push,$d=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Md(Jm,this);Tg?n=Tg(new jg(void 0),o?_g(this):Jm):(n=o?this:si(Jm),In(n,KH,"Error")),In(n,"message",GH(e,"")),qH&&In(n,"stack",jH(n.stack,1)),NH(n,r);var i=[];return UH(t,YH,{that:i}),In(n,"errors",i),n};Tg?Tg($d,jg):function(t,e){for(var n=xH(e),r=Ra.f,o=z1.f,i=0;i<n.length;i++){var a=n[i];Ut(t,a)||r(t,a,o(e,a))}}($d,jg);var Jm=$d.prototype=si(jg.prototype,{constructor:Qr(1,$d),message:Qr(1,""),name:Qr(1,"AggregateError")});Zo({global:!0},{AggregateError:$d});var XH=me(Function.toString);cn(oa.inspectSource)||(oa.inspectSource=function(t){return XH(t)});var Ng,fd,Ig,BP=oa.inspectSource,Gx=Bt.WeakMap,ZH=cn(Gx)&&/native code/.test(BP(Gx)),F4=Bt.TypeError,JH=Bt.WeakMap;if(ZH||oa.state){var Ja=oa.state||(oa.state=new JH),QH=me(Ja.get),qx=me(Ja.has),tV=me(Ja.set);Ng=function(t,e){if(qx(Ja,t))throw new F4("Object already initialized");return e.facade=t,tV(Ja,t,e),e},fd=function(t){return QH(Ja,t)||{}},Ig=function(t){return qx(Ja,t)}}else{var Fs=$1("state");zp[Fs]=!0,Ng=function(t,e){if(Ut(t,Fs))throw new F4("Object already initialized");return e.facade=t,In(t,Fs,e),e},fd=function(t){return Ut(t,Fs)?t[Fs]:{}},Ig=function(t){return Ut(t,Fs)}}var Ji,Kx,Yx,dc={set:Ng,get:fd,has:Ig,enforce:function(t){return Ig(t)?fd(t):Ng(t,{})},getterFor:function(t){return function(e){var n;if(!or(e)||(n=fd(e)).type!==t)throw F4("Incompatible receiver, "+t+" required");return n}}},FP=Function.prototype,eV=Gn&&Object.getOwnPropertyDescriptor,Qm=Ut(FP,"name"),nV={EXISTS:Qm,PROPER:Qm&&function(){}.name==="something",CONFIGURABLE:Qm&&(!Gn||Gn&&eV(FP,"name").configurable)},Pl=function(t,e,n,r){r&&r.enumerable?t[e]=n:In(t,e,n)},_4=Pn("iterator"),_P=!1;[].keys&&("next"in(Yx=[].keys())?(Kx=_g(_g(Yx)))!==Object.prototype&&(Ji=Kx):_P=!0);var rV=Ji==null||Xn(function(){var t={};return Ji[_4].call(t)!==t});Ji=rV?{}:si(Ji),cn(Ji[_4])||Pl(Ji,_4,function(){return this});var TP={IteratorPrototype:Ji,BUGGY_SAFARI_ITERATORS:_P},oV=v5?{}.toString:function(){return"[object "+$p(this)+"]"},iV=Ra.f,Xx=Pn("toStringTag"),Lg=function(t,e,n,r){if(t){var o=n?t:t.prototype;Ut(o,Xx)||iV(o,Xx,{configurable:!0,value:e}),r&&!v5&&In(o,"toString",oV)}},aV=TP.IteratorPrototype,uV=function(){return this},sV=nV.PROPER,Mh=TP.BUGGY_SAFARI_ITERATORS,ty=Pn("iterator"),lV=function(){return this},PP=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=si(aV,{next:Qr(+!w,b)}),Lg(m,E,!1,!0),oi[E]=uV})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Mh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[ty]||d["@@iterator"]||o&&d[o],g=!Mh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=_g(v.call(new t)))!==Object.prototype&&u.next&&(Lg(u,f,!0,!0),oi[f]=lV),sV&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return Un(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Mh||p||!(l in d))&&Pl(d,l,s[l]);else Zo({target:e,proto:!0,forced:Mh||p},s);return a&&d[ty]!==g&&Pl(d,ty,g,{name:o}),oi[e]=g,s},cV=dc.set,fV=dc.getterFor("Array Iterator");PP(Array,"Array",function(t,e){cV(this,{type:"Array Iterator",target:Lo(t),index:0,kind:e})},function(){var t=fV(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"),oi.Arguments=oi.Array;var dV=me("".charAt),Zx=me("".charCodeAt),pV=me("".slice),Jx=function(t){return function(e,n){var r,o,i=zd(l5(e)),a=p5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Zx(i,a))<55296||r>56319||a+1===u||(o=Zx(i,a+1))<56320||o>57343?t?dV(i,a):r:t?pV(i,a,a+2):o-56320+(r-55296<<10)+65536}},hV={codeAt:Jx(!1),charAt:Jx(!0)}.charAt,gV=dc.set,vV=dc.getterFor("String Iterator");PP(String,"String",function(t){gV(this,{type:"String Iterator",string:zd(t),index:0})},function(){var t,e=vV(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=hV(n,r),e.index+=t.length,{value:t,done:!1})});var mV=rr.AggregateError,Qx=Pn("toStringTag");for(var ey in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var tS=Bt[ey],ny=tS&&tS.prototype;ny&&$p(ny)!==Qx&&In(ny,Qx,ey),oi[ey]=oi.Array}var Di,J0,yV=mV,zh=function(t){return t&&t.Math==Math&&t},Dt=zh(typeof globalThis=="object"&&globalThis)||zh(typeof window=="object"&&window)||zh(typeof self=="object"&&self)||zh(typeof ce=="object"&&ce)||function(){return this}()||Function("return this")(),dn=function(t){try{return!!t()}catch(e){return!0}},Fo=!dn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ic=Function.prototype.call,ln=Ic.bind?Ic.bind(Ic):function(){return Ic.apply(Ic,arguments)},eS={}.propertyIsEnumerable,nS=Object.getOwnPropertyDescriptor,bV=nS&&!eS.call({1:2},1)?function(t){var e=nS(this,t);return!!e&&e.enumerable}:eS,wV={f:bV},ia=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},jP=Function.prototype,T4=jP.bind,P4=jP.call,EV=T4&&T4.bind(P4),ue=T4?function(t){return t&&EV(P4,t)}:function(t){return t&&function(){return P4.apply(t,arguments)}},DV=ue({}.toString),CV=ue("".slice),Bu=function(t){return CV(DV(t),8,-1)},ry=Dt.Object,xV=ue("".split),NP=dn(function(){return!ry("z").propertyIsEnumerable(0)})?function(t){return Bu(t)=="String"?xV(t,""):ry(t)}:ry,SV=Dt.TypeError,H1=function(t){if(t==null)throw SV("Can't call method on "+t);return t},pc=function(t){return NP(H1(t))},Ke=function(t){return typeof t=="function"},qr=function(t){return typeof t=="object"?t!==null:Ke(t)},AV=function(t){return Ke(t)?t:void 0},Hp=function(t,e){return arguments.length<2?AV(Dt[t]):Dt[t]&&Dt[t][e]},Rg=ue({}.isPrototypeOf),oy=Hp("navigator","userAgent")||"",rS=Dt.process,oS=Dt.Deno,iS=rS&&rS.versions||oS&&oS.version,aS=iS&&iS.v8;aS&&(J0=(Di=aS.split("."))[0]>0&&Di[0]<4?1:+(Di[0]+Di[1])),!J0&&oy&&(!(Di=oy.match(/Edge\/(\d+)/))||Di[1]>=74)&&(Di=oy.match(/Chrome\/(\d+)/))&&(J0=+Di[1]);var uS=J0,j4=!!Object.getOwnPropertySymbols&&!dn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&uS&&uS<41}),m5=j4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",OV=Dt.Object,N4=m5?function(t){return typeof t=="symbol"}:function(t){var e=Hp("Symbol");return Ke(e)&&Rg(e.prototype,OV(t))},kV=Dt.String,I4=function(t){try{return kV(t)}catch(e){return"Object"}},BV=Dt.TypeError,y5=function(t){if(Ke(t))return t;throw BV(I4(t)+" is not a function")},Hd=function(t,e){var n=t[e];return n==null?void 0:y5(n)},FV=Dt.TypeError,_V=Object.defineProperty,b5=function(t,e){try{_V(Dt,t,{value:e,configurable:!0,writable:!0})}catch(n){Dt[t]=e}return e},aa=Dt["__core-js_shared__"]||b5("__core-js_shared__",{}),w5=ds(function(t){(t.exports=function(e,n){return aa[e]||(aa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),TV=Dt.Object,E5=function(t){return TV(H1(t))},PV=ue({}.hasOwnProperty),qn=Object.hasOwn||function(t,e){return PV(E5(t),e)},jV=0,NV=Math.random(),IV=ue(1 .toString),IP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+IV(++jV+NV,36)},Lc=w5("wks"),Fu=Dt.Symbol,sS=Fu&&Fu.for,LV=m5?Fu:Fu&&Fu.withoutSetter||IP,Mn=function(t){if(!qn(Lc,t)||!j4&&typeof Lc[t]!="string"){var e="Symbol."+t;j4&&qn(Fu,t)?Lc[t]=Fu[t]:Lc[t]=m5&&sS?sS(e):LV(e)}return Lc[t]},RV=Dt.TypeError,MV=Mn("toPrimitive"),zV=function(t,e){if(!qr(t)||N4(t))return t;var n,r=Hd(t,MV);if(r){if(e===void 0&&(e="default"),n=ln(r,t,e),!qr(n)||N4(n))return n;throw RV("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&Ke(a=o.toString)&&!qr(u=ln(a,o))||Ke(a=o.valueOf)&&!qr(u=ln(a,o))||i!=="string"&&Ke(a=o.toString)&&!qr(u=ln(a,o)))return u;throw FV("Can't convert object to primitive value")}(t,e)},D5=function(t){var e=zV(t,"string");return N4(e)?e:e+""},L4=Dt.document,$V=qr(L4)&&qr(L4.createElement),C5=function(t){return $V?L4.createElement(t):{}},LP=!Fo&&!dn(function(){return Object.defineProperty(C5("div"),"a",{get:function(){return 7}}).a!=7}),lS=Object.getOwnPropertyDescriptor,HV=Fo?lS:function(t,e){if(t=pc(t),e=D5(e),LP)try{return lS(t,e)}catch(n){}if(qn(t,e))return ia(!ln(wV.f,t,e),t[e])},x5={f:HV},VV=Dt.String,UV=Dt.TypeError,fr=function(t){if(qr(t))return t;throw UV(VV(t)+" is not an object")},WV=Dt.TypeError,cS=Object.defineProperty,GV=Fo?cS:function(t,e,n){if(fr(t),e=D5(e),fr(n),LP)try{return cS(t,e,n)}catch(r){}if("get"in n||"set"in n)throw WV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},hc={f:GV},Rn=Fo?function(t,e,n){return hc.f(t,e,ia(1,n))}:function(t,e,n){return t[e]=n,t},qV=ue(Function.toString);Ke(aa.inspectSource)||(aa.inspectSource=function(t){return qV(t)});var Mg,dd,zg,S5=aa.inspectSource,fS=Dt.WeakMap,KV=Ke(fS)&&/native code/.test(S5(fS)),dS=w5("keys"),A5=function(t){return dS[t]||(dS[t]=IP(t))},O5={},R4=Dt.TypeError,YV=Dt.WeakMap;if(KV||aa.state){var Qa=aa.state||(aa.state=new YV),XV=ue(Qa.get),pS=ue(Qa.has),ZV=ue(Qa.set);Mg=function(t,e){if(pS(Qa,t))throw new R4("Object already initialized");return e.facade=t,ZV(Qa,t,e),e},dd=function(t){return XV(Qa,t)||{}},zg=function(t){return pS(Qa,t)}}else{var _s=A5("state");O5[_s]=!0,Mg=function(t,e){if(qn(t,_s))throw new R4("Object already initialized");return e.facade=t,Rn(t,_s,e),e},dd=function(t){return qn(t,_s)?t[_s]:{}},zg=function(t){return qn(t,_s)}}var Zu={set:Mg,get:dd,has:zg,enforce:function(t){return zg(t)?dd(t):Mg(t,{})},getterFor:function(t){return function(e){var n;if(!qr(e)||(n=dd(e)).type!==t)throw R4("Incompatible receiver, "+t+" required");return n}}},RP=Function.prototype,JV=Fo&&Object.getOwnPropertyDescriptor,iy=qn(RP,"name"),k5={EXISTS:iy,PROPER:iy&&function(){}.name==="something",CONFIGURABLE:iy&&(!Fo||Fo&&JV(RP,"name").configurable)},ua=ds(function(t){var e=k5.CONFIGURABLE,n=Zu.get,r=Zu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ke(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qn(u,"name")||e&&u.name!==d)&&Rn(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Dt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Rn(i,a,u)):f?i[a]=u:b5(a,u)})(Function.prototype,"toString",function(){return Ke(this)&&n(this).source||S5(this)})}),QV=Math.ceil,tU=Math.floor,B5=function(t){var e=+t;return e!=e||e===0?0:(e>0?tU:QV)(e)},eU=Math.max,nU=Math.min,M4=function(t,e){var n=B5(t);return n<0?eU(n+e,0):nU(n,e)},rU=Math.min,MP=function(t){return t>0?rU(B5(t),9007199254740991):0},V1=function(t){return MP(t.length)},hS=function(t){return function(e,n,r){var o,i=pc(e),a=V1(i),u=M4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},oU={includes:hS(!0),indexOf:hS(!1)}.indexOf,gS=ue([].push),zP=function(t,e){var n,r=pc(t),o=0,i=[];for(n in r)!qn(O5,n)&&qn(r,n)&&gS(i,n);for(;e.length>o;)qn(r,n=e[o++])&&(~oU(i,n)||gS(i,n));return i},$g=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iU=$g.concat("length","prototype"),aU=Object.getOwnPropertyNames||function(t){return zP(t,iU)},uU={f:aU},sU={f:Object.getOwnPropertySymbols},lU=ue([].concat),cU=Hp("Reflect","ownKeys")||function(t){var e=uU.f(fr(t)),n=sU.f;return n?lU(e,n(t)):e},$P=function(t,e){for(var n=cU(e),r=hc.f,o=x5.f,i=0;i<n.length;i++){var a=n[i];qn(t,a)||r(t,a,o(e,a))}},fU=/#|\.prototype\./,Vp=function(t,e){var n=pU[dU(t)];return n==gU||n!=hU&&(Ke(e)?dn(e):!!e)},dU=Vp.normalize=function(t){return String(t).replace(fU,".").toLowerCase()},pU=Vp.data={},hU=Vp.NATIVE="N",gU=Vp.POLYFILL="P",vU=Vp,mU=x5.f,Up=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Dt:l?Dt[u]||b5(u,{}):(Dt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=mU(n,r))&&a.value:n[r],!vU(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;$P(i,o)}(t.sham||o&&o.sham)&&Rn(i,"sham",!0),ua(n,r,i,t)}},HP={};HP[Mn("toStringTag")]="z";var $h,F5=String(HP)==="[object z]",yU=Mn("toStringTag"),bU=Dt.Object,wU=Bu(function(){return arguments}())=="Arguments",U1=F5?Bu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=bU(t),yU))=="string"?n:wU?Bu(e):(r=Bu(e))=="Object"&&Ke(e.callee)?"Arguments":r},EU=Dt.String,_u=function(t){if(U1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return EU(t)},DU=function(){var t=fr(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},_5=Dt.RegExp,T5=dn(function(){var t=_5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),CU=T5||dn(function(){return!_5("a","y").sticky}),xU=T5||dn(function(){var t=_5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),SU={BROKEN_CARET:xU,MISSED_STICKY:CU,UNSUPPORTED_Y:T5},AU=Object.keys||function(t){return zP(t,$g)},OU=Fo?Object.defineProperties:function(t,e){fr(t);for(var n,r=pc(e),o=AU(e),i=o.length,a=0;i>a;)hc.f(t,n=o[a++],r[n]);return t},kU=Hp("document","documentElement"),VP=A5("IE_PROTO"),ay=function(){},UP=function(t){return"<script>"+t+"<\/script>"},vS=function(t){t.write(UP("")),t.close();var e=t.parentWindow.Object;return t=null,e},Q0=function(){try{$h=new ActiveXObject("htmlfile")}catch(r){}var t,e;Q0=typeof document!="undefined"?document.domain&&$h?vS($h):((e=C5("iframe")).style.display="none",kU.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(UP("document.F=Object")),t.close(),t.F):vS($h);for(var n=$g.length;n--;)delete Q0.prototype[$g[n]];return Q0()};O5[VP]=!0;var mS,uy,Wp=Object.create||function(t,e){var n;return t!==null?(ay.prototype=fr(t),n=new ay,ay.prototype=null,n[VP]=t):n=Q0(),e===void 0?n:OU(n,e)},BU=Dt.RegExp,FU=dn(function(){var t=BU(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),_U=Dt.RegExp,TU=dn(function(){var t=_U("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),PU=Zu.get,jU=w5("native-string-replace",String.prototype.replace),Hg=RegExp.prototype.exec,z4=Hg,NU=ue("".charAt),IU=ue("".indexOf),LU=ue("".replace),sy=ue("".slice),ly=(uy=/b*/g,ln(Hg,mS=/a/,"a"),ln(Hg,uy,"a"),mS.lastIndex!==0||uy.lastIndex!==0),yS=SU.BROKEN_CARET,cy=/()??/.exec("")[1]!==void 0;(ly||cy||yS||FU||TU)&&(z4=function(t){var e,n,r,o,i,a,u,s=this,l=PU(s),c=_u(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ln(z4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=yS&&s.sticky,y=ln(DU,s),g=s.source,v=0,m=c;if(d&&(y=LU(y,"y",""),IU(y,"g")===-1&&(y+="g"),m=sy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&NU(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),cy&&(n=new RegExp("^"+g+"$(?!\\s)",y)),ly&&(r=s.lastIndex),o=ln(Hg,d?n:s,m),d?o?(o.input=sy(o.input,v),o[0]=sy(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ly&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),cy&&o&&o.length>1&&ln(jU,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=Wp(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Vg=z4;Up({target:"RegExp",proto:!0,forced:/./.exec!==Vg},{exec:Vg});var RU=Mn("species"),fy=RegExp.prototype,MU=ue("".charAt),bS=ue("".charCodeAt),zU=ue("".slice),wS=function(t){return function(e,n){var r,o,i=_u(H1(e)),a=B5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=bS(i,a))<55296||r>56319||a+1===u||(o=bS(i,a+1))<56320||o>57343?t?MU(i,a):r:t?zU(i,a,a+2):o-56320+(r-55296<<10)+65536}},WP={codeAt:wS(!1),charAt:wS(!0)},$U=WP.charAt,HU=function(t,e,n){return e+(n?$U(t,e).length:1)},VU=Dt.TypeError,ES=function(t,e){var n=t.exec;if(Ke(n)){var r=ln(n,t,e);return r!==null&&fr(r),r}if(Bu(t)==="RegExp")return ln(Vg,t,e);throw VU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Mn(t),i=!dn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!dn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[RU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ue(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=ue(l),g=c.exec;return g===Vg||g===fy.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ua(String.prototype,t,s[0]),ua(fy,o,s[1])}r&&Rn(fy[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=H1(this),i=r==null?void 0:Hd(r,t);return i?ln(i,r,o):new RegExp(r)[t](_u(o))},function(r){var o=fr(this),i=_u(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return ES(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=ES(o,i))!==null;){var f=_u(s[0]);l[c]=f,f===""&&(o.lastIndex=HU(i,MP(o.lastIndex),u)),c++}return c===0?null:l}]}),Up({global:!0},{globalThis:Dt});var UU=!dn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),DS=A5("IE_PROTO"),$4=Dt.Object,WU=$4.prototype,Vd=UU?$4.getPrototypeOf:function(t){var e=E5(t);if(qn(e,DS))return e[DS];var n=e.constructor;return Ke(n)&&e instanceof n?n.prototype:e instanceof $4?WU:null},GU=Dt.String,qU=Dt.TypeError,jl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ue(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return fr(r),function(i){if(typeof i=="object"||Ke(i))return i;throw qU("Can't set "+GU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),KU=Dt.Array,YU=Math.max,XU=ue("".replace),ZU=ue("".split),JU=ue([].join),H4=String(Error("zxcasd").stack),GP=/\n\s*at [^:]*:[^\n]*/,QU=GP.test(H4),tW=/@[^\n]*\n/.test(H4)&&!/zxcasd/.test(H4),eW=function(t,e){if(typeof t!="string")return t;if(QU)for(;e--;)t=XU(t,GP,"");else if(tW)return JU(function(n,r,o){for(var i,a,u,s,l=V1(n),c=M4(r,l),f=M4(o===void 0?l:o,l),p=KU(YU(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=D5(a))in i?hc.f(i,s,ia(0,u)):i[s]=u;return p.length=d,p}(ZU(t,`
- `),e),`
- `);return t},nW=function(t,e){qr(e)&&"cause"in e&&Rn(t,"cause",e.cause)},CS=ue(ue.bind),qP=function(t,e){return y5(t),e===void 0?t:CS?CS(t,e):function(){return t.apply(e,arguments)}},Nl={},rW=Mn("iterator"),oW=Array.prototype,iW=Mn("iterator"),xS=function(t){if(t!=null)return Hd(t,iW)||Hd(t,"@@iterator")||Nl[U1(t)]},aW=Dt.TypeError,SS=function(t,e,n){var r,o;fr(t);try{if(!(r=Hd(t,"return"))){if(e==="throw")throw n;return n}r=ln(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return fr(r),n},uW=Dt.TypeError,tg=function(t,e){this.stopped=t,this.result=e},AS=tg.prototype,sW=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),y=qP(e,c),g=function(m){return r&&SS(r,"normal",m),new tg(!0,m)},v=function(m){return f?(fr(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=xS(t)))throw uW(I4(t)+" is not iterable");if(function(m){return m!==void 0&&(Nl.Array===m||oW[rW]===m)}(o)){for(i=0,a=V1(t);a>i;i++)if((u=v(t[i]))&&Rg(AS,u))return u;return new tg(!1)}r=function(m,h){var b=arguments.length<2?xS(m):h;if(y5(b))return fr(ln(b,m));throw aW(I4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=ln(s,r)).done;){try{u=v(l.value)}catch(m){SS(r,"throw",m)}if(typeof u=="object"&&u&&Rg(AS,u))return u}return new tg(!1)},lW=function(t,e){return t===void 0?arguments.length<2?"":e:_u(t)},cW=!dn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ia(1,7)),t.stack!==7)}),fW=Mn("toStringTag"),Ug=Dt.Error,dW=[].push,Ud=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Rg(dy,this);jl?n=jl(new Ug(void 0),o?Vd(this):dy):(n=o?this:Wp(dy),Rn(n,fW,"Error")),Rn(n,"message",lW(e,"")),cW&&Rn(n,"stack",eW(n.stack,1)),nW(n,r);var i=[];return sW(t,dW,{that:i}),Rn(n,"errors",i),n};jl?jl(Ud,Ug):$P(Ud,Ug);var dy=Ud.prototype=Wp(Ug.prototype,{constructor:ia(1,Ud),message:ia(1,""),name:ia(1,"AggregateError")});Up({global:!0},{AggregateError:Ud});var V4=Mn("unscopables"),U4=Array.prototype;U4[V4]==null&&hc.f(U4,V4,{configurable:!0,value:Wp(null)});var Tu,OS,kS,py=function(t){U4[V4][t]=!0},W4=Mn("iterator"),KP=!1;[].keys&&("next"in(kS=[].keys())?(OS=Vd(Vd(kS)))!==Object.prototype&&(Tu=OS):KP=!0);var pW=Tu==null||dn(function(){var t={};return Tu[W4].call(t)!==t});pW&&(Tu={}),Ke(Tu[W4])||ua(Tu,W4,function(){return this});var P5={IteratorPrototype:Tu,BUGGY_SAFARI_ITERATORS:KP},hW=hc.f,BS=Mn("toStringTag"),FS=function(t,e,n){t&&!qn(t=n?t:t.prototype,BS)&&hW(t,BS,{configurable:!0,value:e})},gW=P5.IteratorPrototype,vW=function(){return this},mW=k5.PROPER,yW=k5.CONFIGURABLE,_S=P5.IteratorPrototype,Hh=P5.BUGGY_SAFARI_ITERATORS,Rc=Mn("iterator"),bW=function(){return this},YP=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=Wp(gW,{next:ia(+!w,b)}),FS(m,E,!1),Nl[E]=vW})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Hh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Rc]||d["@@iterator"]||o&&d[o],g=!Hh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Vd(v.call(new t)))!==Object.prototype&&u.next&&(Vd(u)!==_S&&(jl?jl(u,_S):Ke(u[Rc])||ua(u,Rc,bW)),FS(u,f,!0)),mW&&o=="values"&&y&&y.name!=="values"&&(yW?Rn(d,"name","values"):(p=!0,g=function(){return ln(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Hh||p||!(l in d))&&ua(d,l,s[l]);else Up({target:e,proto:!0,forced:Hh||p},s);return d[Rc]!==g&&ua(d,Rc,g,{name:o}),Nl[e]=g,s},wW=Zu.set,EW=Zu.getterFor("Array Iterator"),ed=YP(Array,"Array",function(t,e){wW(this,{type:"Array Iterator",target:pc(t),index:0,kind:e})},function(){var t=EW(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");Nl.Arguments=Nl.Array,py("keys"),py("values"),py("entries");var DW=WP.charAt,CW=Zu.set,xW=Zu.getterFor("String Iterator");YP(String,"String",function(t){CW(this,{type:"String Iterator",string:_u(t),index:0})},function(){var t,e=xW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=DW(n,r),e.index+=t.length,{value:t,done:!1})});var hy,Wg={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},gy=C5("span").classList,TS=gy&&gy.constructor&&gy.constructor.prototype,XP=TS===Object.prototype?void 0:TS,vy=Mn("iterator"),PS=Mn("toStringTag"),my=ed.values,ZP=function(t,e){if(t){if(t[vy]!==my)try{Rn(t,vy,my)}catch(r){t[vy]=my}if(t[PS]||Rn(t,PS,e),Wg[e]){for(var n in ed)if(t[n]!==ed[n])try{Rn(t,n,ed[n])}catch(r){t[n]=ed[n]}}}};for(var yy in Wg)ZP(Dt[yy]&&Dt[yy].prototype,yy);ZP(XP,"DOMTokenList"),typeof global=="undefined"?("ActiveXObject"in window&&console.error(`\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668
- Sorry, wangEditor V5+ versions do not support IE browser.`),jS(),NS()):global&&((hy=global.navigator)===null||hy===void 0?void 0:hy.userAgent.match("QQBrowser"))&&(jS(),NS());function jS(){typeof globalThis=="undefined"&&(window.globalThis=window)}function NS(){yV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var IS,Gg=Array.isArray||function(t){return Ou(t)=="Array"},JP=function(){},SW=[],QP=cc("Reflect","construct"),j5=/^\s*(?:class|function)\b/,AW=me(j5.exec),OW=!j5.exec(JP),Mc=function(t){if(!cn(t))return!1;try{return QP(JP,SW,t),!0}catch(e){return!1}},kW=!QP||Xn(function(){var t;return Mc(Mc.call)||!Mc(Object)||!Mc(function(){t=!0})||t})?function(t){if(!cn(t))return!1;switch($p(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return OW||!!AW(j5,BP(t))}:Mc,BW=Pn("species"),LS=Bt.Array,tj=function(t,e){return new(function(n){var r;return Gg(n)&&(r=n.constructor,(kW(r)&&(r===LS||Gg(r.prototype))||or(r)&&(r=r[BW])===null)&&(r=void 0)),r===void 0?LS:r}(t))(e===0?0:e)},FW=Pn("species"),ej=Pn("isConcatSpreadable"),RS=Bt.TypeError,_W=kg>=51||!Xn(function(){var t=[];return t[ej]=!1,t.concat()[0]!==t}),TW=(IS="concat",kg>=51||!Xn(function(){var t=[];return(t.constructor={})[FW]=function(){return{foo:1}},t[IS](Boolean).foo!==1})),PW=function(t){if(!or(t))return!1;var e=t[ej];return e!==void 0?!!e:Gg(t)};Zo({target:"Array",proto:!0,forced:!_W||!TW},{concat:function(t){var e,n,r,o,i,a=Lp(this),u=tj(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(PW(i=e===-1?a:arguments[e])){if(s+(o=Mp(i))>9007199254740991)throw RS("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&k4(u,s,i[n])}else{if(s>=9007199254740991)throw RS("Maximum allowed index exceeded");k4(u,s++,i)}return u.length=s,u}});var MS=h5.f,zS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nj={f:function(t){return zS&&Ou(t)=="Window"?function(e){try{return MS(e)}catch(n){return AP(zS)}}(t):MS(Lo(t))}},jW=me([].slice),N5={f:Pn},NW=Ra.f,Ie=function(t){var e=rr.Symbol||(rr.Symbol={});Ut(e,t)||NW(e,t,{value:N5.f(t)})},$S=me([].push),Ci=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Lp(s),g=wP(y),v=d5(l,c),m=Mp(g),h=0,b=f||tj,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:$S(w,p)}else switch(t){case 4:return!1;case 7:$S(w,p)}return i?-1:r||o?o:w}},W1={forEach:Ci(0),map:Ci(1),filter:Ci(2),some:Ci(3),every:Ci(4),find:Ci(5),findIndex:Ci(6),filterReject:Ci(7)}.forEach,Hn=$1("hidden"),HS=Pn("toPrimitive"),IW=dc.set,VS=dc.getterFor("Symbol"),Xr=Object.prototype,Ki=Bt.Symbol,Qi=Ki&&Ki.prototype,US=Bt.TypeError,by=Bt.QObject,zc=cc("JSON","stringify"),rj=z1.f,Yi=Ra.f,oj=nj.f,LW=s5.f,ij=me([].push),li=ps("symbols"),Gp=ps("op-symbols"),wy=ps("string-to-symbol-registry"),Ey=ps("symbol-to-string-registry"),RW=ps("wks"),Dy=!by||!by.prototype||!by.prototype.findChild,G4=Gn&&Xn(function(){return si(Yi({},"a",{get:function(){return Yi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=rj(Xr,e);r&&delete Xr[e],Yi(t,e,n),r&&t!==Xr&&Yi(Xr,e,r)}:Yi,Cy=function(t,e){var n=li[t]=si(Qi);return IW(n,{type:"Symbol",tag:t,description:e}),Gn||(n.description=e),n},qg=function(t,e,n){t===Xr&&qg(Gp,e,n),cr(t);var r=fc(e);return cr(n),Ut(li,r)?(n.enumerable?(Ut(t,Hn)&&t[Hn][r]&&(t[Hn][r]=!1),n=si(n,{enumerable:Qr(0,!1)})):(Ut(t,Hn)||Yi(t,Hn,Qr(1,{})),t[Hn][r]=!0),G4(t,r,n)):Yi(t,r,n)},WS=function(t,e){cr(t);var n=Lo(e),r=g5(n).concat(q4(n));return W1(r,function(o){Gn&&!Un(aj,n,o)||qg(t,o,n[o])}),t},aj=function(t){var e=fc(t),n=Un(LW,this,e);return!(this===Xr&&Ut(li,e)&&!Ut(Gp,e))&&(!(n||!Ut(this,e)||!Ut(li,e)||Ut(this,Hn)&&this[Hn][e])||n)},GS=function(t,e){var n=Lo(t),r=fc(e);if(n!==Xr||!Ut(li,r)||Ut(Gp,r)){var o=rj(n,r);return!o||!Ut(li,r)||Ut(n,Hn)&&n[Hn][r]||(o.enumerable=!0),o}},qS=function(t){var e=oj(Lo(t)),n=[];return W1(e,function(r){Ut(li,r)||Ut(zp,r)||ij(n,r)}),n},q4=function(t){var e=t===Xr,n=oj(e?Gp:Lo(t)),r=[];return W1(n,function(o){!Ut(li,o)||e&&!Ut(Xr,o)||ij(r,li[o])}),r};if(mo||(Qi=(Ki=function(){if(Md(Qi,this))throw US("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?zd(arguments[0]):void 0,e=Fg(t),n=function(r){this===Xr&&Un(n,Gp,r),Ut(this,Hn)&&Ut(this[Hn],e)&&(this[Hn][e]=!1),G4(this,e,Qr(1,r))};return Gn&&Dy&&G4(Xr,e,{configurable:!0,set:n}),Cy(e,t)}).prototype,Pl(Qi,"toString",function(){return VS(this).tag}),Pl(Ki,"withoutSetter",function(t){return Cy(Fg(t),t)}),s5.f=aj,Ra.f=qg,z1.f=GS,h5.f=nj.f=qS,Y0.f=q4,N5.f=function(t){return Cy(Pn(t),t)},Gn&&Yi(Qi,"description",{configurable:!0,get:function(){return VS(this).description}})),Zo({global:!0,wrap:!0,forced:!mo,sham:!mo},{Symbol:Ki}),W1(g5(RW),function(t){Ie(t)}),Zo({target:"Symbol",stat:!0,forced:!mo},{for:function(t){var e=zd(t);if(Ut(wy,e))return wy[e];var n=Ki(e);return wy[e]=n,Ey[n]=e,n},keyFor:function(t){if(!wl(t))throw US(t+" is not a symbol");if(Ut(Ey,t))return Ey[t]},useSetter:function(){Dy=!0},useSimple:function(){Dy=!1}}),Zo({target:"Object",stat:!0,forced:!mo,sham:!Gn},{create:function(t,e){return e===void 0?si(t):WS(si(t),e)},defineProperty:qg,defineProperties:WS,getOwnPropertyDescriptor:GS}),Zo({target:"Object",stat:!0,forced:!mo},{getOwnPropertyNames:qS,getOwnPropertySymbols:q4}),Zo({target:"Object",stat:!0,forced:Xn(function(){Y0.f(1)})},{getOwnPropertySymbols:function(t){return Y0.f(Lp(t))}}),zc){var MW=!mo||Xn(function(){var t=Ki();return zc([t])!="[null]"||zc({a:t})!="{}"||zc(Object(t))!="{}"});Zo({target:"JSON",stat:!0,forced:MW},{stringify:function(t,e,n){var r=jW(arguments),o=e;if((or(e)||t!==void 0)&&!wl(t))return Gg(e)||(e=function(i,a){if(cn(o)&&(a=Un(o,this,i,a)),!wl(a))return a}),r[1]=e,yP(zc,null,r)}})}if(!Qi[HS]){var zW=Qi.valueOf;Pl(Qi,HS,function(t){return Un(zW,this)})}Lg(Ki,"Symbol"),zp[Hn]=!0,Ie("asyncIterator"),Ie("hasInstance"),Ie("isConcatSpreadable"),Ie("iterator"),Ie("match"),Ie("matchAll"),Ie("replace"),Ie("search"),Ie("species"),Ie("split"),Ie("toPrimitive"),Ie("toStringTag"),Ie("unscopables"),Lg(Bt.JSON,"JSON",!0);var $W=rr.Symbol;Ie("asyncDispose"),Ie("dispose"),Ie("matcher"),Ie("metadata"),Ie("observable"),Ie("patternMatch"),Ie("replaceAll");var Vh=$W,HW=N5.f("iterator"),VW=ds(function(t){function e(n){return typeof Vh=="function"&&typeof HW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof Vh=="function"&&r.constructor===Vh&&r!==Vh.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),UW=k$(VW),uj=x5.f,WW=dn(function(){uj(1)});if(Up({target:"Object",stat:!0,forced:!Fo||WW,sham:!Fo},{getOwnPropertyDescriptor:function(t,e){return uj(pc(t),e)}}),(typeof global=="undefined"?"undefined":UW(global))==="object"){var GW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!GW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function KS(t){return Object.prototype.toString.call(t)==="[object Object]"}function Bn(t){var e,n;return KS(t)!==!1&&((e=t.constructor)===void 0||KS(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Kr(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 Ju(t){return!!t&&!!t[dr]}function Qu(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)===JW}(t)||Array.isArray(t)||!!t[nA]||!!t.constructor[nA]||I5(t)||L5(t))}function Wd(t,e,n){n===void 0&&(n=!1),Il(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 Il(t){var e=t[dr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:I5(t)?2:L5(t)?3:0}function K4(t,e){return Il(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function sj(t,e,n){var r=Il(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function I5(t){return XW&&t instanceof Map}function L5(t){return ZW&&t instanceof Set}function fu(t){return t.o||t.t}function R5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=QW(t);delete e[dr];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)||Ju(t)||!Qu(t)||(Il(t)>1&&(t.set=t.add=t.clear=t.delete=qW),Object.freeze(t),e&&Wd(t,function(n,r){return M5(r,!0)},!0)),t}function qW(){Kr(2)}function z5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ii(t){var e=tG[t];return e||Kr(18,t),e}function YS(){return Gd}function xy(t,e){e&&(ii("Patches"),t.u=[],t.s=[],t.v=e)}function Kg(t){Y4(t),t.p.forEach(KW),t.p=null}function Y4(t){t===Gd&&(Gd=t.l)}function XS(t){return Gd={p:[],l:Gd,h:t,m:!0,_:0}}function KW(t){var e=t[dr];e.i===0||e.i===1?e.j():e.O=!0}function Sy(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ii("ES5").S(e,t,r),r?(n[dr].P&&(Kg(e),Kr(4)),Qu(t)&&(t=Yg(e,t),e.l||Xg(e,t)),e.u&&ii("Patches").M(n[dr],t,e.u,e.s)):t=Yg(e,n,[]),Kg(e),e.u&&e.v(e.u,e.s),t!==lj?t:void 0}function Yg(t,e,n){if(z5(e))return e;var r=e[dr];if(!r)return Wd(e,function(i,a){return ZS(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Xg(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;Wd(r.i===3?new Set(o):o,function(i,a){return ZS(t,r,o,i,a,n)}),Xg(t,o,!1),n&&t.u&&ii("Patches").R(r,n,t.u,t.s)}return r.o}function ZS(t,e,n,r,o,i){if(Ju(o)){var a=Yg(t,o,i&&e&&e.i!==3&&!K4(e.D,r)?i.concat(r):void 0);if(sj(n,r,a),!Ju(a))return;t.m=!1}if(Qu(o)&&!z5(o)){if(!t.h.F&&t._<1)return;Yg(t,o),e&&e.A.l||Xg(t,o)}}function Xg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&M5(e,n)}function Ay(t,e){var n=t[dr];return(n?fu(n):t)[e]}function JS(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 X4(t){t.P||(t.P=!0,t.l&&X4(t.l))}function Oy(t){t.o||(t.o=R5(t.t))}function Z4(t,e,n){var r=I5(e)?ii("MapSet").N(e,n):L5(e)?ii("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:YS(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=eg;a&&(s=[u],l=ng);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):ii("ES5").J(e,n);return(n?n.A:YS()).p.push(r),r}function YW(t){return Ju(t)||Kr(22,t),function e(n){if(!Qu(n))return n;var r,o=n[dr],i=Il(n);if(o){if(!o.P&&(o.i<4||!ii("ES5").K(o)))return o.t;o.I=!0,r=QS(n,i),o.I=!1}else r=QS(n,i);return Wd(r,function(a,u){o&&function(s,l){return Il(s)===2?s.get(l):s[l]}(o.t,a)===u||sj(r,a,e(u))}),i===3?new Set(r):r}(t)}function QS(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return R5(t)}var tA,Gd,$5=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",XW=typeof Map!="undefined",ZW=typeof Set!="undefined",eA=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",lj=$5?Symbol.for("immer-nothing"):((tA={})["immer-nothing"]=!0,tA),nA=$5?Symbol.for("immer-draftable"):"__$immer_draftable",dr=$5?Symbol.for("immer-state"):"__$immer_state",JW=""+Object.prototype.constructor,H5=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,QW=Object.getOwnPropertyDescriptors||function(t){var e={};return H5(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},tG={},eg={get:function(t,e){if(e===dr)return t;var n=fu(t);if(!K4(n,e))return function(o,i,a){var u,s=JS(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!Qu(r)?r:r===Ay(t.t,e)?(Oy(t),t.o[e]=Z4(t.A.h,r,t)):r},has:function(t,e){return e in fu(t)},ownKeys:function(t){return Reflect.ownKeys(fu(t))},set:function(t,e,n){var r=JS(fu(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Ay(fu(t),e),i=o==null?void 0:o[dr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||K4(t.t,e)))return!0;Oy(t),X4(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Ay(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Oy(t),X4(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=fu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Kr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Kr(12)}},ng={};Wd(eg,function(t,e){ng[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ng.deleteProperty=function(t,e){return eg.deleteProperty.call(this,t[0],e)},ng.set=function(t,e,n){return eg.set.call(this,t[0],e,n,t[0])};var eG=function(){function t(n){var r=this;this.g=eA,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var y=this;d===void 0&&(d=u);for(var g=arguments.length,v=Array(g>1?g-1:0),m=1;m<g;m++)v[m-1]=arguments[m];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[y,h].concat(v))})}}var l;if(typeof i!="function"&&Kr(6),a!==void 0&&typeof a!="function"&&Kr(7),Qu(o)){var c=XS(r),f=Z4(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?Kg(c):Y4(c)}return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(d){return xy(c,a),Sy(d,c)},function(d){throw Kg(c),d}):(xy(c,a),Sy(l,c))}if(!o||typeof o!="object")return(l=i(o))===lj?void 0:(l===void 0&&(l=o),r.F&&M5(l,!0),l);Kr(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(p){return o.apply(void 0,[p].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){Qu(n)||Kr(8),Ju(n)&&(n=YW(n));var r=XS(this),o=Z4(this,n,void 0);return o[dr].C=!0,Y4(r),o},e.finishDraft=function(n,r){var o=(n&&n[dr]).A;return xy(o,r),Sy(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!eA&&Kr(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ii("Patches").$;return Ju(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),er=new eG,G1=er.produce;er.produceWithPatches.bind(er),er.setAutoFreeze.bind(er),er.setUseProxies.bind(er),er.applyPatches.bind(er);var rA=er.createDraft.bind(er),oA=er.finishDraft.bind(er);function Ro(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zg=new WeakMap,$c=new WeakMap,iA=new WeakMap,aA=new WeakMap,uA=new WeakMap,sA=new WeakMap;function lA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Uh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var nG=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of D.pathRefs(t))TG.transform(n,e);for(var r of D.pointRefs(t))PG.transform(r,e);for(var o of D.rangeRefs(t))NG.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=Zg.get(t)||[],l=rG(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);Zg.set(t,a),N.transform(t,e),t.operations.push(e),D.normalize(t),e.type==="set_selection"&&(t.marks=null),$c.get(t)||($c.set(t,!0),Promise.resolve().then(()=>{$c.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.setNodes(t,{[e]:n},{match:it.isText,split:!0});else{var o=Uh(Uh({},D.marks(t)||{}),{},{[e]:n});t.marks=o,$c.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?tt.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=Uh({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!it.isText(n))if(ft.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!D.isEditor(n)&&ft.isElement(n)&&(t.isInline(n)||n.children.length===0||it.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=tt.get(t,r);if(!it.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(it.isText(s)||ft.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--):ft.isElement(s)?t.isInline(s)&&(l!=null&&it.isText(l)?c&&(N.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&it.isText(l)&&(it.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.unsetNodes(t,e,{match:it.isText,split:!0});else{var r=Uh({},D.marks(t)||{});delete r[e],t.marks=r,$c.get(t)||t.onChange()}}};return t},rG=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:n,path:r}=t,o=j.levels(r),i=it.isText(n)?[]:Array.from(tt.nodes(n),w=>{var[,E]=w;return r.concat(E)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var p=j.transform(f,t);l.push(p)}for(var d of j.ancestors(s)){var y=j.transform(d,t);c.push(y)}var g=c[c.length-1],v=s[s.length-1],m=g.concat(v);return[...l,...c,m];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:b}=t;return[...j.levels(b),j.next(b)];default:return[]}};function ci(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var St,J4=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?sG(t):t,o=St.None,i=St.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=wG(s,l);if([o,i]=n?[i,c]:[c,o],hl(o,St.ZWJ)&&hl(i,St.ExtPict)&&!xG(n?t.substring(0,a):t.substring(0,t.length-a))||hl(o,St.RI)&&hl(i,St.RI)&&!(u=u!==null?!u:!!n||AG(t.substring(0,t.length-a)))||o!==St.None&&i!==St.None&&DG(o,i))break;a+=s.length}return a||1},oG=/\s/,iG=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,aG=/['\u2018\u2019]/,Q4=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},uG=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(oG.test(e))return!1;if(aG.test(e)){var o=J4(n,r),[i,a]=Q4(n,o,r);if(t(i,a,r))return!0}return!iG.test(e)},sG=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(cG(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(lG(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},lG=t=>t>=55296&&t<=56319,cG=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(St||(St={}));var fG=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,dG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,pG=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,hG=/^[\u1100-\u115F\uA960-\uA97C]$/,gG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,vG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,mG=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,yG=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,bG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,wG=(t,e)=>{var n=St.Any;return t.search(fG)!==-1&&(n|=St.Extend),e===8205&&(n|=St.ZWJ),e>=127462&&e<=127487&&(n|=St.RI),t.search(dG)!==-1&&(n|=St.Prepend),t.search(pG)!==-1&&(n|=St.SpacingMark),t.search(hG)!==-1&&(n|=St.L),t.search(gG)!==-1&&(n|=St.V),t.search(vG)!==-1&&(n|=St.T),t.search(mG)!==-1&&(n|=St.LV),t.search(yG)!==-1&&(n|=St.LVT),t.search(bG)!==-1&&(n|=St.ExtPict),n};function hl(t,e){return(t&e)!=0}var EG=[[St.L,St.L|St.V|St.LV|St.LVT],[St.LV|St.V,St.V|St.T],[St.LVT|St.T,St.T],[St.Any,St.Extend|St.ZWJ],[St.Any,St.SpacingMark],[St.Prepend,St.Any],[St.ZWJ,St.ExtPict],[St.RI,St.RI]];function DG(t,e){return EG.findIndex(n=>hl(t,n[0])&&hl(e,n[1]))===-1}var CG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,xG=t=>t.search(CG)!==-1,SG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,AG=t=>{var e=t.match(SG);return e!==null&&e[0].length/2%2==1},cA=t=>Bn(t)&&tt.isNodeList(t.children)&&!D.isEditor(t),ft={isAncestor:t=>Bn(t)&&tt.isNodeList(t.children),isElement:cA,isElementList:t=>Array.isArray(t)&&t.every(e=>ft.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return cA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},OG=["text"],kG=["text"];function fA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ts(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var dA=new WeakMap,D={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=D.path(t,o),u=r==="lowest";for(var[s,l]of D.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!it.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.point(t,e,{edge:"end"}),focus:D.end(t,[])},{distance:i=1}=r,a=0;for(var u of D.positions(t,Ts(Ts({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.start(t,[]),focus:D.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of D.positions(t,Ts(Ts({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[D.start(t,e),D.end(t,e)],end:(t,e)=>D.point(t,e,{edge:"end"}),first(t,e){var n=D.path(t,e,{edge:"start"});return D.node(t,n)},fragment(t,e){var n=D.range(t,e);return tt.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>D.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>it.isText(n)||D.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>it.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ft.isElement(e)&&!t.isInline(e),isEditor(t){if(!Bn(t))return!1;var e=dA.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Bn(t.marks))&&(t.selection===null||L.isRange(t.selection))&&tt.isNodeList(t.children)&&ta.isOperationList(t.operations);return dA.set(t,n),n},isEnd(t,e,n){var r=D.end(t,n);return Ft.equals(e,r)},isEdge:(t,e,n)=>D.isStart(t,e,n)||D.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&it.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ft.isElement(e)&&t.isInline(e),isNormalizing(t){var e=iA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=D.start(t,n);return Ft.equals(e,r)},isVoid:(t,e)=>ft.isElement(e)&&t.isVoid(e),last(t,e){var n=D.path(t,e,{edge:"end"});return D.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n);return[tt.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=D.path(t,n);for(var[s,l]of tt.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&D.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(L.isExpanded(n)){var[r]=D.nodes(t,{match:it.isText});if(r){var[o]=r;return ci(o,OG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=D.leaf(t,a);if(i.offset===0){var s=D.previous(t,{at:a,match:it.isText}),l=D.above(t,{match:d=>D.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;j.isAncestor(p,f)&&(u=c)}}return ci(u,kG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=D.after(t,i,{voids:r});if(a){var[,u]=D.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=D.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n);return[tt.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(BG.isSpan(n))s=n[0],l=n[1];else{var c=D.path(t,n,{edge:"start"}),f=D.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=tt.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&D.isVoid(t,w)}}),y=[];for(var[g,v]of d){var m=p&&j.compare(v,p[1])===0;if(r!=="highest"||!m){if(u(g,v))if(r==="lowest"&&m)p=[g,v];else{var h=r==="lowest"?p:[g,v];h&&(o?y.push(h):yield h),p=[g,v]}else if(o&&!m&&it.isText(g))return}}r==="lowest"&&p&&(o?y.push(p):yield p),o&&(yield*y)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>Zg.get(i)||[];if(D.isNormalizing(t)){if(n){var o=Array.from(tt.nodes(t),i=>{var[,a]=i;return a});Zg.set(t,o)}r(t).length!==0&&D.withoutNormalizing(t,()=>{for(var i of r(t))if(tt.has(t,i)){var a=D.node(t,i),[u,s]=a;ft.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
- Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
- `));var f=r(t).pop();if(tt.has(t,f)){var p=D.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(t,e,n),o=j.parent(r);return D.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]=tt.first(t,e);e=i}else if(o==="end"){var[,a]=tt.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)),Ft.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>tt.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 D.pathRefs(t).delete(o),o.current=null,i}};return D.pathRefs(t).add(o),o},pathRefs(t){var e=aA.get(t);return e||(e=new Set,aA.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]=tt.last(t,e);o=i}else{var[,a]=tt.first(t,e);o=a}var u=tt.get(t,o);if(!it.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 D.pointRefs(t).delete(o),o.current=null,i}};return D.pointRefs(t).add(o),o},pointRefs(t){var e=uA.get(t);return e||(e=new Set,uA.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=D.range(t,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,y=0;for(var[g,v]of D.nodes(t,{at:n,reverse:o,voids:i})){if(ft.isElement(g)){if(!i&&t.isVoid(g)){yield D.start(t,v);continue}if(t.isInline(g))continue;if(D.hasInlines(t,g)){var m=j.isAncestor(v,s.path)?s:D.end(t,v),h=j.isAncestor(v,u.path)?u:D.start(t,v);f=D.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(it.isText(g)){var b=j.equals(v,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,y=l.offset):(d=g.text.length,y=o?d:0),(b||c||r==="offset")&&(yield{path:v,offset:y},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=Q4(f,p,o)[1]}if(y=o?y-p:y+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:y}}}}}function w(E,x,C){return x==="character"?J4(E,C):x==="word"?function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=J4(O,F),[K,U]=Q4(O,M,F);if(uG(K,U,F))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(E,C):x==="line"||x==="block"?E.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=D.before(t,i,{voids:r});if(a){var[,u]=D.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]=D.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>L.isRange(e)&&!n?e:{anchor:D.start(t,e),focus:D.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 D.rangeRefs(t).delete(o),o.current=null,i}};return D.rangeRefs(t).add(o),o},rangeRefs(t){var e=sA.get(t);return e||(e=new Set,sA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){iA.set(t,e)},start:(t,e)=>D.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=D.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of D.nodes(t,{at:o,match:it.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]:{},{voids:r=!1}=n,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=D.above(t,{at:i,match:p=>D.isBlock(t,p)}),u=a?a[1]:[],s={anchor:D.start(t,[]),focus:i},l=!0;for(var[c,f]of D.nodes(t,{at:s,match:it.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Ts(Ts({},e),{},{match:n=>D.isVoid(t,n)}))},withoutNormalizing(t,e){var n=D.isNormalizing(t);D.setNormalizing(t,!1);try{e()}finally{D.setNormalizing(t,n)}D.normalize(t)}},BG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},FG=["children"],_G=["text"],pA=new WeakMap,tt={ancestor(t,e){var n=tt.get(t,e);if(it.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[tt.ancestor(t,r),r];yield o}},child(t,e){if(it.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=tt.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=tt.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=j.common(e,n);return[tt.get(t,r),r]},descendant(t,e){var n=tt.get(t,e);if(D.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))ft.isElement(n)&&(yield[n,r])},extractProps:t=>ft.isAncestor(t)?ci(t,FG):ci(t,_G),first(t,e){for(var n=e.slice(),r=tt.get(t,n);r&&!it.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(it.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=G1({children:t.children},r=>{var[o,i]=L.edges(e),a=tt.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!L.includes(e,d)}});for(var[,u]of a){if(!L.includes(e,u)){var s=tt.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=tt.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=tt.leaf(r,u);f.text=f.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(it.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(it.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>it.isText(t)||ft.isElement(t)||D.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=pA.get(t);if(e!==void 0)return e;var n=t.every(r=>tt.isNode(r));return pA.set(t,n),n},last(t,e){for(var n=e.slice(),r=tt.get(t,n);r&&!it.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=tt.get(t,e);if(!it.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=tt.get(t,r);yield[o,r]}},matches:(t,e)=>ft.isElement(t)&&ft.isElementProps(e)&&ft.matches(t,e)||it.isText(t)&&it.isTextProps(e)&&it.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||it.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(tt.has(t,l)){u=l,s=tt.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=tt.get(t,u)):(u=j.parent(u),s=tt.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=tt.get(t,u)}},parent(t,e){var n=j.parent(e),r=tt.get(t,n);if(it.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>it.isText(t)?t.text:t.children.map(tt.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))it.isText(n)&&(yield[n,r])}};function hA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function He(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ta={isNodeOperation:t=>ta.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Bn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&tt.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&Bn(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&Bn(t.properties)&&Bn(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||Bn(t.properties)&&Bn(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&Bn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ta.isOperation(e)),isSelectionOperation:t=>ta.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ta.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return He(He({},t),{},{type:"remove_node"});case"insert_text":return He(He({},t),{},{type:"remove_text"});case"merge_node":return He(He({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return He(He({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return He(He({},t),{},{path:r,newPath:o});case"remove_node":return He(He({},t),{},{type:"insert_node"});case"remove_text":return He(He({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return He(He({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return He(He({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return He(He({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&j.compare(t,e)===0,isBefore:(t,e)=>j.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return G1(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(j.equals(f,p))return;if(j.isAncestor(f,r)||j.equals(f,r)){var d=p.slice();return j.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}j.isSibling(f,p)&&(j.isAncestor(p,r)||j.equals(p,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(p,r)||j.equals(p,r)||j.isAncestor(p,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):j.endsBefore(f,r)&&(j.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},TG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=j.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function gA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ft={compare(t,e){var n=j.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Ft.compare(t,e)===1,isBefore:(t,e)=>Ft.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>Bn(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return G1(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;r.path=j.transform(i,e,n);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(r.offset-=e.position,r.path=j.transform(i,e,vA(vA({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},PG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Ft.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},jG=["anchor","focus"];function mA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Ft.equals(t.anchor,e.anchor)&&Ft.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[n,r]=L.edges(t),[o,i]=L.edges(e);return Ft.isBefore(n,o)&&Ft.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Ft.isPoint(e)?(s=Ft.compare(e,a)>=0,l=Ft.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=ci(t,jG),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Ft.isBefore(r,i)?i:r,s=Ft.isBefore(o,a)?o:a;return Ft.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?mA(Object(f),!0).forEach(function(p){Ro(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):mA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Ft.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Ft.equals(e,n)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>Bn(t)&&Ft.isPoint(t.anchor)&&Ft.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return G1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Ft.transform(r.anchor,e,{affinity:o}),l=Ft.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},NG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},cj=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Bn(r)&&Bn(o)){if(!cj(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},IG=["text"],LG=["anchor","focus"];function yA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Go(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var it={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ci(i,IG)}return cj(r?o(t):t,r?o(e):e)},isText:t=>Bn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>it.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Go({},t)];for(var r of e){var o=ci(r,LG),[i,a]=L.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var p=l,d=void 0,y=void 0;if(a.offset<s){var g=a.offset-f;y=Go(Go({},p),{},{text:p.text.slice(g)}),p=Go(Go({},p),{},{text:p.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;d=Go(Go({},p),{},{text:p.text.slice(0,v)}),p=Go(Go({},p),{},{text:p.text.slice(v)})}Object.assign(p,o),d&&u.push(d),u.push(p),y&&u.push(y)}}n=u}return n}};function bA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Hc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var RG={transform(t,e){t.children=rA(t.children);var n=t.selection&&rA(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=tt.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=Ft.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:y}=i;if(y.length===0)break;var g=tt.leaf(r,p),v=g.text.slice(0,d),m=g.text.slice(d);if(g.text=v+y+m,o)for(var[h,b]of L.points(o))o[b]=Ft.transform(h,i);break;case"merge_node":var{path:w}=i,E=tt.get(r,w),x=j.previous(w),C=tt.get(r,x),O=tt.parent(r,w),F=w[w.length-1];if(it.isText(E)&&it.isText(C))C.text+=E.text;else{if(it.isText(E)||it.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(E," ").concat(C));C.children.push(...E.children)}if(O.children.splice(F,1),o)for(var[R,H]of L.points(o))o[H]=Ft.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(j.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=tt.get(r,M),W=tt.parent(r,M),q=M[M.length-1];W.children.splice(q,1);var rt=j.transform(M,i),ct=tt.get(r,j.parent(rt)),lt=rt[rt.length-1];if(ct.children.splice(lt,0,U),o)for(var[ut,k]of L.points(o))o[k]=Ft.transform(ut,i);break;case"remove_node":var{path:S}=i,P=S[S.length-1];if(tt.parent(r,S).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=Ft.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var at=void 0,vt=void 0;for(var[mt,Ct]of tt.texts(r)){if(j.compare(Ct,S)!==-1){vt=[mt,Ct];break}at=[mt,Ct]}var G=!1;at&&vt&&(G=j.equals(vt[1],S)?!j.hasPrevious(vt[1]):j.common(at[1],S).length<j.common(vt[1],S).length),at&&!G?($.path=at[1],$.offset=at[0].text.length):vt?($.path=vt[1],$.offset=0):o=null}}break;case"remove_text":var{path:Lt,offset:Ot,text:pt}=i;if(pt.length===0)break;var kt=tt.leaf(r,Lt),_e=kt.text.slice(0,Ot),Ht=kt.text.slice(Ot+pt.length);if(kt.text=_e+Ht,o)for(var[ne,be]of L.points(o))o[be]=Ft.transform(ne,i);break;case"set_node":var{path:En,properties:$t,newProperties:zn}=i;if(En.length===0)throw new Error("Cannot set properties on the root node!");var zr=tt.get(r,En);for(var so in zn){if(so==="children"||so==="text")throw new Error('Cannot set the "'.concat(so,'" property of nodes!'));var xs=zn[so];xs==null?delete zr[so]:zr[so]=xs}for(var Ga in $t)zn.hasOwnProperty(Ga)||delete zr[Ga];break;case"set_selection":var{newProperties:$r}=i;if($r==null)o=$r;else{if(o==null){if(!L.isRange($r))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify($r)," when there is no current selection."));o=Hc({},$r)}for(var lo in $r){var zo=$r[lo];if(zo==null){if(lo==="anchor"||lo==="focus")throw new Error('Cannot remove the "'.concat(lo,'" selection property'));delete o[lo]}else o[lo]=zo}}break;case"split_node":var{path:Dn,position:Cn,properties:xn}=i;if(Dn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Dn,"] because the root node cannot be split."));var jn,an=tt.get(r,Dn),yr=tt.parent(r,Dn),Fc=Dn[Dn.length-1];if(it.isText(an)){var vi=an.text.slice(0,Cn),$o=an.text.slice(Cn);an.text=vi,jn=Hc(Hc({},xn),{},{text:$o})}else{var Ss=an.children.slice(0,Cn),qa=an.children.slice(Cn);an.children=Ss,jn=Hc(Hc({},xn),{},{children:qa})}if(yr.children.splice(Fc+1,0,jn),o)for(var[As,Hr]of L.points(o))o[Hr]=Ft.transform(As,i)}return o})(t,n,e)}finally{t.children=oA(t.children),t.selection=n?Ju(n)?oA(n):n:null}}},MG=["text"],zG=["children"];function wA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function EA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var $G={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(tt.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?D.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=D.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=D.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Ft.isPoint(a)){u==null&&(u=it.isText(l)?x=>it.isText(x):t.isInline(l)?x=>it.isText(x)||D.isInline(t,x):x=>D.isBlock(t,x));var[p]=D.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,y=D.pathRef(t,d),g=D.isEnd(t,a,d);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var v=y.unref();a=g?j.next(v):v}var m=j.parent(a),h=a[a.length-1];if(o||!D.void(t,{at:m})){for(var b of e){var w=m.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var E=D.end(t,a);E&&N.select(t,E)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?Ps(t,n):b=>D.isBlock(t,b)),n){var a=D.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return D.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=D.node(t,j.parent(l)),[f,p]=c,d=l[l.length-1],{length:y}=f.children;if(y===1){var g=j.next(p);N.moveNodes(t,{at:l,to:g,voids:o}),N.removeNodes(t,{at:p,voids:o})}else if(d===0)N.moveNodes(t,{at:l,to:p,voids:o});else if(d===y-1){var v=j.next(p);N.moveNodes(t,{at:l,to:v,voids:o})}else{var m=j.next(l),h=j.next(p);N.splitNodes(t,{at:m,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=D.parent(t,r);n=F=>u.children.includes(F)}else n=F=>D.isBlock(t,F);if(!o&&L.isRange(r)&&(r=D.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=D.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=D.nodes(t,{at:r,match:n,voids:i,mode:a}),f=D.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[y,g]=f;if(d.length!==0&&g.length!==0){var v,m,h=j.next(g),b=j.common(d,g),w=j.isSibling(d,g),E=Array.from(D.levels(t,{at:d}),F=>{var[R]=F;return R}).slice(b.length).slice(0,-1),x=D.above(t,{at:d,mode:"highest",match:F=>E.includes(F)&&fj(t,F)}),C=x&&D.pathRef(t,x[1]);if(it.isText(p)&&it.isText(y)){var O=ci(p,MG);m=y.text.length,v=O}else{if(!ft.isElement(p)||!ft.isElement(y))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(y)));O=ci(p,zG),m=y.children.length,v=O}w||N.moveNodes(t,{at:d,to:h,voids:i}),C&&N.removeNodes(t,{at:C.current,voids:i}),ft.isElement(y)&&D.isEmpty(t,y)||it.isText(y)&&y.text===""&&g[g.length-1]!==0?N.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:v}),C&&C.unref()}}}})},moveNodes(t,e){D.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?Ps(t,r):d=>D.isBlock(t,d));var u=D.pathRef(t,n),s=D.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,y]=d;return D.pathRef(t,y)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&j.isSibling(p,f)&&j.isAfter(p,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Ps(t,i):p=>D.isBlock(t,p)),!n&&L.isRange(i)&&(i=D.unhangRange(t,i));var u=D.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return D.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=D.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?Ps(t,o):E=>D.isBlock(t,E)),!i&&L.isRange(o)&&(o=D.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&D.leaf(t,o.anchor)[0].text.length>0)return;var l=D.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),p=a==="lowest"?"lowest":"highest",d=D.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var y=D.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!y}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[g,v]of D.nodes(t,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(v.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(m[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:v,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>D.isBlock(t,U)),L.isRange(i)&&(i=HG(t,i)),j.isPath(i)){var s=i,l=D.point(t,s),[c]=D.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=D.pointRef(t,i,{affinity:"backward"}),[p]=D.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=D.void(t,{at:i,mode:"highest"});if(!r&&d){var[y,g]=d;if(ft.isElement(y)&&t.isInline(y)){var v=D.after(t,g);if(!v){var m=j.next(g);N.insertNodes(t,{text:""},{at:m,voids:r}),v=D.point(t,m)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=D.pointRef(t,i),b=i.path.length-a,[,w]=p,E=i.path.slice(0,b),x=a===0?i.offset:i.path[b]+0;for(var[C,O]of D.levels(t,{at:E,reverse:!0,voids:r})){var F=!1;if(O.length<w.length||O.length===0||!r&&D.isVoid(t,C))break;var R=f.current,H=D.isEnd(t,R,O);if(u||!f||!D.isEdge(t,R,O)){F=!0;var M=tt.extractProps(C);t.apply({type:"split_node",path:O,position:x,properties:M})}x=O[O.length-1]+(F||H?1:0)}if(e.at==null){var K=h.current||D.end(t,[]);N.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;N.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Ps(t,i):p=>D.isBlock(t,p)),j.isPath(i)&&(i=D.range(t,i));var u=L.isRange(i)?D.rangeRef(t,i):null,s=D.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return D.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[y]=D.node(t,d),g=D.range(t,d);r&&u&&(g=L.intersection(u.current,g)),N.liftNodes(t,{at:g,match:v=>ft.isAncestor(y)&&y.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?Ps(t,u):t.isInline(e)?v=>D.isInline(t,v)||it.isText(v):v=>D.isBlock(t,v)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=D.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(t,u)}var f=Array.from(D.nodes(t,{at:u,match:t.isInline(e)?v=>D.isBlock(t,v):v=>D.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=L.isRange(u)?L.intersection(u,D.range(t,p)):u;if(d){var y=Array.from(D.nodes(t,{at:d,match:a,mode:r,voids:i}));if(y.length>0){var g=function(){var[v]=y,m=y[y.length-1],[,h]=v,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),E=D.range(t,h,b),x=D.node(t,w),[C]=x,O=w.length+1,F=j.next(b.slice(0,O)),R=EA(EA({},e),{},{children:[]});N.insertNodes(t,R,{at:F,voids:i}),N.moveNodes(t,{at:E,match:H=>ft.isAncestor(C)&&C.children.includes(H),to:F.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},fj=(t,e)=>{if(ft.isElement(e)){var n=e;return!!D.isVoid(t,e)||n.children.length===1&&fj(t,n.children[0])}return!D.isEditor(e)},HG=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=D.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},Ps=(t,e)=>{var[n]=D.node(t,e);return r=>r===n};function DA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function CA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?DA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):DA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var VG={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);N.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?D.before(t,u,l):D.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?D.before(t,s,l):D.after(t,s,l);p&&(c.focus=p)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=D.range(t,e),n)N.setSelection(t,e);else{if(!L.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:CA(CA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Ft.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Ft.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},UG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Ft.isPoint(a)){var s=D.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?D.before(t,a,c)||D.start(t,[]):D.after(t,a,c)||D.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),p=D.end(t,[]);Ft.equals(f,p)||(a=D.unhangRange(t,a,{voids:i}))}var[d,y]=L.edges(a),g=D.above(t,{match:vt=>D.isBlock(t,vt),at:d,voids:i}),v=D.above(t,{match:vt=>D.isBlock(t,vt),at:y,voids:i}),m=g&&v&&!j.equals(g[1],v[1]),h=j.equals(d.path,y.path),b=i?null:D.void(t,{at:d,mode:"highest"}),w=i?null:D.void(t,{at:y,mode:"highest"});if(b){var E=D.before(t,d);E&&g&&j.isAncestor(g[1],E.path)&&(d=E)}if(w){var x=D.after(t,y);x&&v&&j.isAncestor(v[1],x.path)&&(y=x)}var C,O=[];for(var F of D.nodes(t,{at:a,voids:i})){var[R,H]=F;C&&j.compare(H,C)===0||(!i&&D.isVoid(t,R)||!j.isCommon(H,d.path)&&!j.isCommon(H,y.path))&&(O.push(F),C=H)}var M=Array.from(O,vt=>{var[,mt]=vt;return D.pathRef(t,mt)}),K=D.pointRef(t,d),U=D.pointRef(t,y);if(!h&&!b){var W=K.current,[q]=D.leaf(t,W),{path:rt}=W,{offset:ct}=d,lt=q.text.slice(ct);lt.length>0&&t.apply({type:"remove_text",path:rt,offset:ct,text:lt})}for(var ut of M){var k=ut.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var S=U.current,[P]=D.leaf(t,S),{path:$}=S,Y=h?d.offset:0,V=P.text.slice(Y,y.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var at=n?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&at&&N.select(t,at)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(L.isRange(i))if(r||(i=D.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&D.void(t,{at:a}))return;var u=D.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=D.start(t,i));if(o||!D.void(t,{at:i})){var s=D.above(t,{at:i,match:S=>D.isInline(t,S),mode:"highest",voids:o});if(s){var[,l]=s;D.isEnd(t,i,l)?i=D.after(t,l):D.isStart(t,i,l)&&(i=D.before(t,l))}var c=D.above(t,{match:S=>D.isBlock(t,S),at:i,voids:o}),[,f]=c,p=D.isStart(t,i,f),d=D.isEnd(t,i,f),y=p&&d,g=!p||p&&d,v=!d,[,m]=tt.first({children:e},[]),[,h]=tt.last({children:e},[]),b=[],w=S=>{var[P,$]=S;return $.length!==0&&(!!y||!(g&&j.isAncestor($,m)&&ft.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(v&&j.isAncestor($,h)&&ft.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var E of tt.nodes({children:e},{pass:w}))w(E)&&b.push(E);var x=[],C=[],O=[],F=!0,R=!1;for(var[H]of b)ft.isElement(H)&&!t.isInline(H)?(F=!1,R=!0,C.push(H)):F?x.push(H):O.push(H);var[M]=D.nodes(t,{at:i,match:S=>it.isText(S)||D.isInline(t,S),mode:"highest",voids:o}),[,K]=M,U=D.isStart(t,i,K),W=D.isEnd(t,i,K),q=D.pathRef(t,d?j.next(f):f),rt=D.pathRef(t,W?j.next(K):K),ct=D.pathRef(t,f);N.splitNodes(t,{at:i,match:S=>R?D.isBlock(t,S):it.isText(S)||D.isInline(t,S),mode:R?"lowest":"highest",voids:o});var lt=D.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,x,{at:lt.current,match:S=>it.isText(S)||D.isInline(t,S),mode:"highest",voids:o}),y&&C.length&&N.delete(t,{at:ct.unref(),voids:o}),N.insertNodes(t,C,{at:q.current,match:S=>D.isBlock(t,S),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:rt.current,match:S=>it.isText(S)||D.isInline(t,S),mode:"highest",voids:o}),!n.at){var ut;ut=O.length>0?j.previous(rt.current):C.length>0?j.previous(q.current):j.previous(lt.current);var k=D.end(t,ut);N.select(t,k)}lt.unref(),q.unref(),rt.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=D.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&D.void(t,{at:i}))return;var a=D.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!D.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function xA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Wh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var N=Wh(Wh(Wh(Wh({},RG),$G),VG),UG),tE="[object Map]",eE="[object Set]",WG=/^\[object .+?Constructor\]$/,GG=/^(?:0|[1-9]\d*)$/,qG="[\\ud800-\\udfff]",nE="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",rE="\\ud83c[\\udffb-\\udfff]",dj="[^\\ud800-\\udfff]",pj="(?:\\ud83c[\\udde6-\\uddff]){2}",hj="[\\ud800-\\udbff][\\udc00-\\udfff]",SA="(?:"+nE+"|"+rE+")?",KG="[\\ufe0e\\ufe0f]?"+SA+("(?:\\u200d(?:"+[dj,pj,hj].join("|")+")[\\ufe0e\\ufe0f]?"+SA+")*"),YG="(?:"+[dj+nE+"?",nE,pj,hj,qG].join("|")+")",XG=RegExp(rE+"(?="+rE+")|"+YG+KG,"g"),ZG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),JG=typeof ce=="object"&&ce&&ce.Object===Object&&ce,QG=typeof self=="object"&&self&&self.Object===Object&&self,hs=JG||QG||Function("return this")();function tq(t,e){return function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a}(e,function(n){return t[n]})}function eq(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function nq(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function rq(t){return function(e){return ZG.test(e)}(t)?function(e){return e.match(XG)||[]}(t):function(e){return e.split("")}(t)}var AA,OA,oq=Function.prototype,q1=Object.prototype,ky=hs["__core-js_shared__"],kA=function(){var t=/[^.]+$/.exec(ky&&ky.keys&&ky.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),gj=oq.toString,Jg=q1.hasOwnProperty,qp=q1.toString,iq=RegExp("^"+gj.call(Jg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),BA=hs.Symbol,By=BA?BA.iterator:void 0,aq=q1.propertyIsEnumerable,uq=(AA=Object.keys,OA=Object,function(t){return AA(OA(t))}),oE=Kp(hs,"DataView"),iE=Kp(hs,"Map"),aE=Kp(hs,"Promise"),uE=Kp(hs,"Set"),sE=Kp(hs,"WeakMap"),sq=gs(oE),lq=gs(iE),cq=gs(aE),fq=gs(uE),dq=gs(sE);function pq(t,e){var n=vj(t)||function(a){return function(u){return bj(u)&&V5(u)}(a)&&Jg.call(a,"callee")&&(!aq.call(a,"callee")||qp.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!Jg.call(t,i)||o&&(i=="length"||vq(i,r))||n.push(i);return n}function hq(t){if(!yj(t)||function(n){return!!kA&&kA in n}(t))return!1;var e=mj(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch(o){}return r}(t)?iq:WG;return e.test(gs(t))}function gq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||q1,e!==r)return uq(t);var e,n,r,o=[];for(var i in Object(t))Jg.call(t,i)&&i!="constructor"&&o.push(i);return o}function Kp(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return hq(n)?n:void 0}var du=function(t){return qp.call(t)};function vq(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||GG.test(t))&&t>-1&&t%1==0&&t<e}function gs(t){if(t!=null){try{return gj.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(oE&&du(new oE(new ArrayBuffer(1)))!="[object DataView]"||iE&&du(new iE)!=tE||aE&&du(aE.resolve())!="[object Promise]"||uE&&du(new uE)!=eE||sE&&du(new sE)!="[object WeakMap]")&&(du=function(t){var e=qp.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?gs(n):void 0;if(r)switch(r){case sq:return"[object DataView]";case lq:return tE;case cq:return"[object Promise]";case fq:return eE;case dq:return"[object WeakMap]"}return e});var vj=Array.isArray;function V5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!mj(t)}function mj(t){var e=yj(t)?qp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function yj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function bj(t){return!!t&&typeof t=="object"}function mq(t){return t?tq(t,function(e){return V5(e)?pq(e):gq(e)}(t)):[]}var FA=function(t){if(!t)return[];if(V5(t))return function(n){return typeof n=="string"||!vj(n)&&bj(n)&&qp.call(n)=="[object String]"}(t)?rq(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(By&&t[By])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[By]());var e=du(t);return(e==tE?eq:e==eE?nq:mq)(t)};function _A(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function U5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:_A(e[n])&&_A(t[n])&&Object.keys(e[n]).length>0&&U5(t[n],e[n])})}var wj={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Yp(){var t=typeof document!="undefined"?document:{};return U5(t,wj),t}var yq={document:wj,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout=="undefined"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout!="undefined"&&clearTimeout(t)}};function vs(){var t=typeof window!="undefined"?window:{};return U5(t,yq),t}function lE(t){return lE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lE(t)}function Qg(t,e){return Qg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Qg(t,e)}function bq(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function cE(t,e,n){return cE=bq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Qg(u,i.prototype),u},cE.apply(null,arguments)}function fE(t){var e=typeof Map=="function"?new Map:void 0;return fE=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return cE(n,arguments,lE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Qg(r,n)},fE(t)}var ea=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(fE(Array));function K1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,K1(n)):e.push(n)}),e}function Ej(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=vs(),r=Yp(),o=[];if(!e&&t instanceof ea)return t;if(!t)return new ea(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof ea)return t;o=t}return new ea(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function Ll(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=K1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function Rl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=K1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function Ml(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=K1(e.map(function(o){return o.split(" ")}));return Ej(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function jr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function tv(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function zl(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function _o(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function To(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(g){var v=g.target;if(v){var m=g.target.dom7EventData||[];if(m.indexOf(g)<0&&m.unshift(g),B(v).is(o))i.apply(v,m);else for(var h=B(v).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],m)}}function s(g){var v=g&&g.target&&g.target.dom7EventData||[];v.indexOf(g)<0&&v.unshift(g),i.apply(this,v)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var y=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[y]||(p.dom7Listeners[y]=[]),p.dom7Listeners[y].push({listener:i,proxyListener:s}),p.addEventListener(y,s,a)}}return this}function TA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var y=p[d];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1))}}return this}function ev(){var t=vs();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function nv(){var t=vs();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function PA(){if(this.length>0){var t=vs(),e=Yp(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function $l(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function rv(){for(var t=vs(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function ov(t,e){var n,r=vs();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function iv(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function jA(t){return B(Ej(this,t))}function Aa(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function av(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function NA(t){var e,n,r=vs(),o=Yp(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=B(t),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof ea){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function Nr(){for(var t,e=Yp(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof ea)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function IA(t){var e,n,r=Yp();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof ea)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Hl(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?B(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return B(e)}function uv(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?B(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return B(e)}function Vl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return B(e)}function Ul(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!B(r[o]).is(t)||e.push(r[o]);return B(e)}function Wl(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Gl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}B.fn=ea.prototype;var wq="resize scroll".split(" ");function Dj(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)wq.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var LA=Dj("click"),Oa=Dj("focus"),Eq="[object GeneratorFunction]",Dq=/^(?:0|[1-9]\d*)$/;function Cq(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var Y1=Object.prototype,dE=Y1.hasOwnProperty,Cj=Y1.toString,xq=Y1.propertyIsEnumerable,Sq=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function Aq(t,e){var n=xj(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&W5(u)}(a)&&dE.call(a,"callee")&&(!xq.call(a,"callee")||Cj.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!dE.call(t,i)||o&&(i=="length"||Fq(i,r))||n.push(i);return n}var RA,Oq=(RA=function(t,e){return t&&kq(t,e,_q)},function(t,e){if(t==null)return t;if(!W5(t))return RA(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),kq=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(n(i[s],s,i)===!1)break}return e}}();function Bq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||Y1,e!==r)return Sq(t);var e,n,r,o=[];for(var i in Object(t))dE.call(t,i)&&i!="constructor"&&o.push(i);return o}function Fq(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||Dq.test(t))&&t>-1&&t%1==0&&t<e}var xj=Array.isArray;function W5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?Cj.call(e):"";return n=="[object Function]"||n==Eq}(t)}function _q(t){return W5(t)?Aq(t):Bq(t)}function Tq(t){return t}var G5=function(t,e){return(xj(t)?Cq:Oq)(t,typeof e=="function"?e:Tq)};let Sj=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var Pq=/^\s+|\s+$/g,jq=/^[-+]0x[0-9a-f]+$/i,Nq=/^0b[01]+$/i,Iq=/^0o[0-7]+$/i,Lq=parseInt,Rq=typeof ce=="object"&&ce&&ce.Object===Object&&ce,Mq=typeof self=="object"&&self&&self.Object===Object&&self,zq=Rq||Mq||Function("return this")(),$q=Object.prototype.toString,Hq=Math.max,Vq=Math.min,Fy=function(){return zq.Date.now()};function Uq(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,E=o;return r=o=void 0,l=b,a=t.apply(E,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=Fy();if(g(b))return m(b);u=setTimeout(v,function(w){var E=e-(w-s);return f?Vq(E,i-(w-l)):E}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Fy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=MA(e)||0,sv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Hq(MA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(Fy())},h}function sv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function MA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&$q.call(r)=="[object Symbol]"}(t))return NaN;if(sv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=sv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Pq,"");var n=Nq.test(t);return n||Iq.test(t)?Lq(t.slice(2),n?2:8):jq.test(t)?NaN:+t}var ts=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return sv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Uq(t,e,{leading:r,maxWait:e,trailing:o})};const Wq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function qd(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const pE=Array.isArray;function rg(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function _y(t){return t===void 0}function tr(t){return t!==void 0}const zA=qd("",{},[],void 0,void 0);function Vc(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function Gq(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const qq=["create","update","remove","destroy","pre","post"];function Kq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:Wq;for(const f of qq)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),y=d?"."+d.split(" ").join("."):"";return qd(r.tagName(f).toLowerCase()+p+y,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,y;let g,v=f.data;if(v!==void 0){const b=(d=v.hook)===null||d===void 0?void 0:d.init;tr(b)&&(b(f),v=f.data)}const m=f.children,h=f.sel;if(h==="!")_y(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),E=b>0?b:h.length,x=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(E,x)):h,O=f.elm=tr(v)&&tr(g=v.ns)?r.createElementNS(g,C,v):r.createElement(C,v);for(E<x&&O.setAttribute("id",h.slice(E+1,x)),w>0&&O.setAttribute("class",h.slice(x+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](zA,f);if(pE(m))for(g=0;g<m.length;++g){const R=m[g];R!=null&&r.appendChild(O,a(R,p))}else rg(f.text)&&r.appendChild(O,r.createTextNode(f.text));const F=f.data.hook;tr(F)&&((y=F.create)===null||y===void 0||y.call(F,zA,f),F.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,y,g,v){for(;y<=g;++y){const m=d[y];m!=null&&r.insertBefore(f,a(m,v),p)}}function s(f){var p,d;const y=f.data;if(y!==void 0){(d=(p=y==null?void 0:y.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let g=0;g<n.destroy.length;++g)n.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const v=f.children[g];v!=null&&typeof v!="string"&&s(v)}}}function l(f,p,d,y){for(var g,v;d<=y;++d){let m,h;const b=p[d];if(b!=null)if(tr(b.sel)){s(b),m=n.remove.length+1,h=i(b.elm,m);for(let E=0;E<n.remove.length;++E)n.remove[E](b,h);const w=(v=(g=b==null?void 0:b.data)===null||g===void 0?void 0:g.hook)===null||v===void 0?void 0:v.remove;tr(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,p,d){var y,g,v,m,h;const b=(y=p.data)===null||y===void 0?void 0:y.hook;(g=b==null?void 0:b.prepatch)===null||g===void 0||g.call(b,f,p);const w=p.elm=f.elm,E=f.children,x=p.children;if(f!==p){if(p.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,p);(m=(v=p.data.hook)===null||v===void 0?void 0:v.update)===null||m===void 0||m.call(v,f,p)}_y(p.text)?tr(E)&&tr(x)?E!==x&&function(C,O,F,R){let H,M,K,U,W=0,q=0,rt=O.length-1,ct=O[0],lt=O[rt],ut=F.length-1,k=F[0],S=F[ut];for(;W<=rt&&q<=ut;)ct==null?ct=O[++W]:lt==null?lt=O[--rt]:k==null?k=F[++q]:S==null?S=F[--ut]:Vc(ct,k)?(c(ct,k,R),ct=O[++W],k=F[++q]):Vc(lt,S)?(c(lt,S,R),lt=O[--rt],S=F[--ut]):Vc(ct,S)?(c(ct,S,R),r.insertBefore(C,ct.elm,r.nextSibling(lt.elm)),ct=O[++W],S=F[--ut]):Vc(lt,k)?(c(lt,k,R),r.insertBefore(C,lt.elm,ct.elm),lt=O[--rt],k=F[++q]):(H===void 0&&(H=Gq(O,W,rt)),M=H[k.key],_y(M)?r.insertBefore(C,a(k,R),ct.elm):(K=O[M],K.sel!==k.sel?r.insertBefore(C,a(k,R),ct.elm):(c(K,k,R),O[M]=void 0,r.insertBefore(C,K.elm,ct.elm))),k=F[++q]);(W<=rt||q<=ut)&&(W>rt?(U=F[ut+1]==null?null:F[ut+1].elm,u(C,U,F,q,ut,R)):l(C,O,W,rt))}(w,E,x,d):tr(x)?(tr(f.text)&&r.setTextContent(w,""),u(w,null,x,0,x.length-1,d)):tr(E)?l(w,E,0,E.length-1):tr(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(tr(E)&&l(w,E,0,E.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,y,g;const v=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(m){return m.sel!==void 0}(f)||(f=o(f)),Vc(f,p)?c(f,p,v):(y=f.elm,g=r.parentNode(y),a(p,v),g!==null&&(r.insertBefore(g,p.elm,r.nextSibling(y)),l(g,[f],0,0))),d=0;d<v.length;++d)v[d].data.hook.insert(v[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function Aj(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&Aj(o,e[r].children,e[r].sel)}}function ql(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),pE(n)?r=n:rg(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(pE(e)?r=e:rg(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)rg(r[i])&&(r[i]=qd(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||Aj(a,r,t),qd(t,a,r,o,void 0)}function $A(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const Yq={create:$A,update:$A};function HA(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Xq={create:HA,update:HA},VA=/[A-Z]/g;function UA(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(VA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(VA,"-$&").toLowerCase(),i[r]))}const Zq={create:UA,update:UA};function Oj(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)Oj(t[r],e,n)}function Jq(t,e){const n=t.type,r=e.data.on;r&&r[n]&&Oj(r[n],e,t)}function Ty(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=e.listener=t.listener||function l(c){Jq(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Qq={create:Ty,update:Ty,destroy:Ty};function WA(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const tK={create:WA,update:WA},GA=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout;let Py=!1;function eK(t,e,n){(function(r){GA(function(){GA(r)})})(function(){t[e]=n})}function qA(t,e){let n,r;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||eK(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const nK={pre:function(){Py=!1},create:qA,update:qA,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;Py||(t.elm.offsetLeft,Py=!0);const o=t.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function kj(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?kj(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(qd(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function wt(t,e,...n){const r=kj(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?ql(t,e,r[0].text):ql(t,e,r)}wt||(wt={});var rK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bj="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",iK="[\\ud800-\\udfff]",KA="["+Bj+"]",lv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Fj="\\d+",aK="[\\u2700-\\u27bf]",_j="[a-z\\xdf-\\xf6\\xf8-\\xff]",Tj="[^\\ud800-\\udfff"+Bj+Fj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",hE="\\ud83c[\\udffb-\\udfff]",Pj="[^\\ud800-\\udfff]",q5="(?:\\ud83c[\\udde6-\\uddff]){2}",K5="[\\ud800-\\udbff][\\udc00-\\udfff]",sl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",YA="(?:"+_j+"|"+Tj+")",uK="(?:"+sl+"|"+Tj+")",XA="(?:"+lv+"|"+hE+")?",jj="[\\ufe0e\\ufe0f]?"+XA+("(?:\\u200d(?:"+[Pj,q5,K5].join("|")+")[\\ufe0e\\ufe0f]?"+XA+")*"),sK="(?:"+[aK,q5,K5].join("|")+")"+jj,lK="(?:"+[Pj+lv+"?",lv,q5,K5,iK].join("|")+")",cK=RegExp("['\u2019]","g"),fK=RegExp(lv,"g"),dK=RegExp(hE+"(?="+hE+")|"+lK+jj,"g"),pK=RegExp([sl+"?"+_j+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[KA,sl,"$"].join("|")+")",uK+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[KA,sl+YA,"$"].join("|")+")",sl+"?"+YA+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",sl+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Fj,sK].join("|"),"g"),hK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),gK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vK=typeof ce=="object"&&ce&&ce.Object===Object&&ce,mK=typeof self=="object"&&self&&self.Object===Object&&self,yK=vK||mK||Function("return this")(),jy,bK=(jy={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},function(t){return jy==null?void 0:jy[t]});function Nj(t){return hK.test(t)}function wK(t){return Nj(t)?function(e){return e.match(dK)||[]}(t):function(e){return e.split("")}(t)}var EK=Object.prototype.toString,ZA=yK.Symbol,JA=ZA?ZA.prototype:void 0,QA=JA?JA.toString:void 0;function DK(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&EK.call(n)=="[object Symbol]"}(t))return QA?QA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function CK(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,n)}function og(t){return t==null?"":DK(t)}var t7,xK=(t7=function(t,e,n){return e=e.toLowerCase(),t+(n?SK(og(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o&&a&&(r=e[++i]);++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=og(e),(n=r?void 0:n)===void 0?function(o){return gK.test(o)}(e)?function(o){return o.match(pK)||[]}(e):function(o){return o.match(rK)||[]}(e):e.match(n)||[]}(function(e){return(e=og(e))&&e.replace(oK,bK).replace(fK,"")}(t).replace(cK,"")),t7,"")}),e7,SK=(e7="toUpperCase",function(t){var e=Nj(t=og(t))?wK(t):void 0,n=e?e[0]:t.charAt(0),r=e?CK(e,1).join(""):t.slice(1);return n[e7]()+r});for(var AK=xK,OK=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ny={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Ij={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:OK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Y5={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Gh=1;Gh<20;Gh++)Y5["f"+Gh]=111+Gh;function Lj(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in Ny)l[Ny[p]]=!1;var d=!0,y=!1,g=void 0;try{for(var v,m=c[Symbol.iterator]();!(d=(v=m.next()).done);d=!0){var h=v.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=Rj(h),E=Ny[w];if(h.length>1&&!E&&!Ij[h]&&!Y5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&E||(s?l.key=w:l.which=kK(h)),E&&(l[E]=!b||null)}}catch(x){y=!0,g=x}finally{try{!d&&m.return&&m.return()}finally{if(y)throw g}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function kK(t){return t=Rj(t),Y5[t]||t.toUpperCase().charCodeAt(0)}function Rj(t){return t=t.toLowerCase(),t=Ij[t]||t}var BK=Lj,Iy=function(t,e){return Lj(t,{byKey:!0},e)},FK=/^\s+|\s+$/g,_K=/^[-+]0x[0-9a-f]+$/i,TK=/^0b[01]+$/i,PK=/^0o[0-7]+$/i,jK=parseInt,NK=typeof ce=="object"&&ce&&ce.Object===Object&&ce,IK=typeof self=="object"&&self&&self.Object===Object&&self,LK=NK||IK||Function("return this")(),RK=Object.prototype.toString,MK=Math.max,zK=Math.min,Ly=function(){return LK.Date.now()};function gE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function n7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&RK.call(r)=="[object Symbol]"}(t))return NaN;if(gE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=gE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(FK,"");var n=TK.test(t);return n||PK.test(t)?jK(t.slice(2),n?2:8):_K.test(t)?NaN:+t}var js,Mj=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,E=o;return r=o=void 0,l=b,a=t.apply(E,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=Ly();if(g(b))return m(b);u=setTimeout(v,function(w){var E=e-(w-s);return f?zK(E,i-(w-l)):E}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Ly(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=n7(e)||0,gE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?MK(n7(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(Ly())},h},zj=ds(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[E]=q[x]=q[C]=q[O]=q[l]=q[c]=q[f]=q[d]=q[y]=q[g]=q[v]=q[F]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var rt=typeof ce=="object"&&ce&&ce.Object===Object&&ce,ct=typeof self=="object"&&self&&self.Object===Object&&self,lt=rt||ct||Function("return this")(),ut=e&&!e.nodeType&&e,k=ut&&t&&!t.nodeType&&t,S=k&&k.exports===ut;function P(_,z){return _.set(z[0],z[1]),_}function $(_,z){return _.add(z),_}function Y(_,z,Q,st){var zt=-1,ge=_?_.length:0;for(st&&ge&&(Q=_[++zt]);++zt<ge;)Q=z(Q,_[zt],zt,_);return Q}function V(_){var z=!1;if(_!=null&&typeof _.toString!="function")try{z=!!(_+"")}catch(Q){}return z}function at(_){var z=-1,Q=Array(_.size);return _.forEach(function(st,zt){Q[++z]=[zt,st]}),Q}function vt(_,z){return function(Q){return _(z(Q))}}function mt(_){var z=-1,Q=Array(_.size);return _.forEach(function(st){Q[++z]=st}),Q}var Ct=Array.prototype,G=Function.prototype,Lt=Object.prototype,Ot=lt["__core-js_shared__"],pt=function(){var _=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),kt=G.toString,_e=Lt.hasOwnProperty,Ht=Lt.toString,ne=RegExp("^"+kt.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=S?lt.Buffer:void 0,En=lt.Symbol,$t=lt.Uint8Array,zn=vt(Object.getPrototypeOf,Object),zr=Object.create,so=Lt.propertyIsEnumerable,xs=Ct.splice,Ga=Object.getOwnPropertySymbols,$r=be?be.isBuffer:void 0,lo=vt(Object.keys,Object),zo=co(lt,"DataView"),Dn=co(lt,"Map"),Cn=co(lt,"Promise"),xn=co(lt,"Set"),jn=co(lt,"WeakMap"),an=co(Object,"create"),yr=po(zo),Fc=po(Dn),vi=po(Cn),$o=po(xn),Ss=po(jn),qa=En?En.prototype:void 0,As=qa?qa.valueOf:void 0;function Hr(_){var z=-1,Q=_?_.length:0;for(this.clear();++z<Q;){var st=_[z];this.set(st[0],st[1])}}function br(_){var z=-1,Q=_?_.length:0;for(this.clear();++z<Q;){var st=_[z];this.set(st[0],st[1])}}function Ho(_){var z=-1,Q=_?_.length:0;for(this.clear();++z<Q;){var st=_[z];this.set(st[0],st[1])}}function Vr(_){this.__data__=new br(_)}function mi(_,z){var Q=T(_)||function(oe){return function(Gt){return function(Qe){return!!Qe&&typeof Qe=="object"}(Gt)&&I(Gt)}(oe)&&_e.call(oe,"callee")&&(!so.call(oe,"callee")||Ht.call(oe)==o)}(_)?function(oe,Gt){for(var Qe=-1,Sn=Array(oe);++Qe<oe;)Sn[Qe]=Gt(Qe);return Sn}(_.length,String):[],st=Q.length,zt=!!st;for(var ge in _)!z&&!_e.call(_,ge)||zt&&(ge=="length"||Bh(ge,st))||Q.push(ge);return Q}function Oh(_,z,Q){var st=_[z];_e.call(_,z)&&Fh(st,Q)&&(Q!==void 0||z in _)||(_[z]=Q)}function Qn(_,z){for(var Q=_.length;Q--;)if(Fh(_[Q][0],z))return Q;return-1}function _c(_,z,Q,st,zt,ge,oe){var Gt;if(st&&(Gt=ge?st(_,zt,ge,oe):st(_)),Gt!==void 0)return Gt;if(!re(_))return _;var Qe=T(_);if(Qe){if(Gt=function(bt){var Jt=bt.length,Ne=bt.constructor(Jt);return Jt&&typeof bt[0]=="string"&&_e.call(bt,"index")&&(Ne.index=bt.index,Ne.input=bt.input),Ne}(_),!z)return function(bt,Jt){var Ne=-1,Rt=bt.length;for(Jt||(Jt=Array(Rt));++Ne<Rt;)Jt[Ne]=bt[Ne];return Jt}(_,Gt)}else{var Sn=fo(_),Ka=Sn==u||Sn==s;if(J(_))return function(bt,Jt){if(Jt)return bt.slice();var Ne=new bt.constructor(bt.length);return bt.copy(Ne),Ne}(_,z);if(Sn==f||Sn==o||Ka&&!ge){if(V(_))return ge?_:{};if(Gt=function(bt){return typeof bt.constructor!="function"||yi(bt)?{}:(Jt=zn(bt),re(Jt)?zr(Jt):{});var Jt}(Ka?{}:_),!z)return function(bt,Jt){return kh(bt,Tc(bt),Jt)}(_,function(bt,Jt){return bt&&kh(Jt,jt(Jt),bt)}(Gt,_))}else{if(!q[Sn])return ge?_:{};Gt=function(bt,Jt,Ne,Rt){var qt=bt.constructor;switch(Jt){case h:return Os(bt);case i:case a:return new qt(+bt);case b:return function(Kt,Te){var Nn=Te?Os(Kt.buffer):Kt.buffer;return new Kt.constructor(Nn,Kt.byteOffset,Kt.byteLength)}(bt,Rt);case w:case E:case x:case C:case O:case F:case R:case H:case M:return function(Kt,Te){var Nn=Te?Os(Kt.buffer):Kt.buffer;return new Kt.constructor(Nn,Kt.byteOffset,Kt.length)}(bt,Rt);case l:return function(Kt,Te,Nn){return Y(Te?Nn(at(Kt),!0):at(Kt),P,new Kt.constructor)}(bt,Rt,Ne);case c:case g:return new qt(bt);case d:return function(Kt){var Te=new Kt.constructor(Kt.source,K.exec(Kt));return Te.lastIndex=Kt.lastIndex,Te}(bt);case y:return function(Kt,Te,Nn){return Y(Te?Nn(mt(Kt),!0):mt(Kt),$,new Kt.constructor)}(bt,Rt,Ne);case v:return function(Kt){return As?Object(As.call(Kt)):{}}(bt)}}(_,Sn,_c,z)}}oe||(oe=new Vr);var Wo=oe.get(_);if(Wo)return Wo;if(oe.set(_,Gt),!Qe)var bi=Q?function(bt){return function(Jt,Ne,Rt){var qt=Ne(Jt);return T(Jt)?qt:function(Kt,Te){for(var Nn=-1,$n=Te.length,Ur=Kt.length;++Nn<$n;)Kt[Ur+Nn]=Te[Nn];return Kt}(qt,Rt(Jt))}(bt,jt,Tc)}(_):jt(_);return function(bt,Jt){for(var Ne=-1,Rt=bt?bt.length:0;++Ne<Rt&&Jt(bt[Ne],Ne,bt)!==!1;);}(bi||_,function(bt,Jt){bi&&(bt=_[Jt=bt]),Oh(Gt,Jt,_c(bt,z,Q,st,Jt,_,oe))}),Gt}function Vo(_){return!(!re(_)||function(z){return!!pt&&pt in z}(_))&&(gt(_)||V(_)?ne:U).test(po(_))}function Os(_){var z=new _.constructor(_.byteLength);return new $t(z).set(new $t(_)),z}function kh(_,z,Q,st){Q||(Q={});for(var zt=-1,ge=z.length;++zt<ge;){var oe=z[zt],Gt=st?st(Q[oe],_[oe],oe,Q,_):void 0;Oh(Q,oe,Gt===void 0?_[oe]:Gt)}return Q}function Uo(_,z){var Q,st,zt=_.__data__;return((st=typeof(Q=z))=="string"||st=="number"||st=="symbol"||st=="boolean"?Q!=="__proto__":Q===null)?zt[typeof z=="string"?"string":"hash"]:zt.map}function co(_,z){var Q=function(st,zt){return st==null?void 0:st[zt]}(_,z);return Vo(Q)?Q:void 0}Hr.prototype.clear=function(){this.__data__=an?an(null):{}},Hr.prototype.delete=function(_){return this.has(_)&&delete this.__data__[_]},Hr.prototype.get=function(_){var z=this.__data__;if(an){var Q=z[_];return Q===n?void 0:Q}return _e.call(z,_)?z[_]:void 0},Hr.prototype.has=function(_){var z=this.__data__;return an?z[_]!==void 0:_e.call(z,_)},Hr.prototype.set=function(_,z){return this.__data__[_]=an&&z===void 0?n:z,this},br.prototype.clear=function(){this.__data__=[]},br.prototype.delete=function(_){var z=this.__data__,Q=Qn(z,_);return!(Q<0)&&(Q==z.length-1?z.pop():xs.call(z,Q,1),!0)},br.prototype.get=function(_){var z=this.__data__,Q=Qn(z,_);return Q<0?void 0:z[Q][1]},br.prototype.has=function(_){return Qn(this.__data__,_)>-1},br.prototype.set=function(_,z){var Q=this.__data__,st=Qn(Q,_);return st<0?Q.push([_,z]):Q[st][1]=z,this},Ho.prototype.clear=function(){this.__data__={hash:new Hr,map:new(Dn||br),string:new Hr}},Ho.prototype.delete=function(_){return Uo(this,_).delete(_)},Ho.prototype.get=function(_){return Uo(this,_).get(_)},Ho.prototype.has=function(_){return Uo(this,_).has(_)},Ho.prototype.set=function(_,z){return Uo(this,_).set(_,z),this},Vr.prototype.clear=function(){this.__data__=new br},Vr.prototype.delete=function(_){return this.__data__.delete(_)},Vr.prototype.get=function(_){return this.__data__.get(_)},Vr.prototype.has=function(_){return this.__data__.has(_)},Vr.prototype.set=function(_,z){var Q=this.__data__;if(Q instanceof br){var st=Q.__data__;if(!Dn||st.length<199)return st.push([_,z]),this;Q=this.__data__=new Ho(st)}return Q.set(_,z),this};var Tc=Ga?vt(Ga,Object):function(){return[]},fo=function(_){return Ht.call(_)};function Bh(_,z){return!!(z=z==null?r:z)&&(typeof _=="number"||W.test(_))&&_>-1&&_%1==0&&_<z}function yi(_){var z=_&&_.constructor;return _===(typeof z=="function"&&z.prototype||Lt)}function po(_){if(_!=null){try{return kt.call(_)}catch(z){}try{return _+""}catch(z){}}return""}function Fh(_,z){return _===z||_!=_&&z!=z}(zo&&fo(new zo(new ArrayBuffer(1)))!=b||Dn&&fo(new Dn)!=l||Cn&&fo(Cn.resolve())!=p||xn&&fo(new xn)!=y||jn&&fo(new jn)!=m)&&(fo=function(_){var z=Ht.call(_),Q=z==f?_.constructor:void 0,st=Q?po(Q):void 0;if(st)switch(st){case yr:return b;case Fc:return l;case vi:return p;case $o:return y;case Ss:return m}return z});var T=Array.isArray;function I(_){return _!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(_.length)&&!gt(_)}var J=$r||function(){return!1};function gt(_){var z=re(_)?Ht.call(_):"";return z==u||z==s}function re(_){var z=typeof _;return!!_&&(z=="object"||z=="function")}function jt(_){return I(_)?mi(_):function(z){if(!yi(z))return lo(z);var Q=[];for(var st in Object(z))_e.call(z,st)&&st!="constructor"&&Q.push(st);return Q}(_)}t.exports=function(_){return _c(_,!0,!0)}});function r7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var $K=0;function HK(t){return"__private_"+$K+++"_"+t}function VK(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
- * 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 o7(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=VK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var $j=(js=HK("apply"),class{constructor(t){Object.defineProperty(this,js,{value:UK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(r7(this,js)[js],this):r7(this,js)[js](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 o7(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 o7(n,e)}});function UK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale=Zt(X({},e),{strings:X(X({},e.strings),t.strings)}),this.locale.pluralize=t.pluralize||e.pluralize}var Hj=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],y=Object.keys(e),g=0,v=y.length;g<v;g++){var m=y[g];if(m==="*"&&(f=f.concat(e[m])),d.length===2&&d[0]===m){f=f.concat(e[m]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,y=f.length;d<y&&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},WK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:GK}=WK,i7=t=>crypto.getRandomValues(new Uint8Array(t)),a7=(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 qK={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)=>a7(t,e,i7),customRandom:a7,urlAlphabet:GK,random:i7},Ry=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 Vj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Vj.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 KK=/[\/\+\.]/,YK=function(t,e){function n(r){var o=function(i,a,u){var s=new Vj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,KK);return o&&o.length>=2}return e?n(e.split(";")[0]):n},XK=0;function ZK(t){return"__private_"+XK+++"_"+t}var My=ZK("publish");class Uj{constructor(){Object.defineProperty(this,My,{value:JK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n=X({},this.state),r=X(X({},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,My)[My](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function JK(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}Uj.VERSION="2.0.3";var u7=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},s7={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function l7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var QK=function(t){if(t==null&&(t=typeof navigator!="undefined"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function zy(t){return t<10?`0${t}`:t.toString()}var qh=function(){const t=new Date;return`${zy(t.getHours())}:${zy(t.getMinutes())}:${zy(t.getSeconds())}`},Wj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${qh()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${qh()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${qh()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${qh()}]`,...e)}}},tY={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Gj=qK;let qj,Kj;function dt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var eY=0;function Je(t){return"__private_"+eY+++"_"+t}const{nanoid:nY}=Gj,{justErrorsLogger:rY,debugLogger:oY}=Wj;class Eo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError=="undefined"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class iY extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var vn=Je("plugins"),Uc=Je("storeUnsubscribe"),qo=Je("emitter"),mu=Je("preProcessors"),yu=Je("uploaders"),Qo=Je("postProcessors"),pd=Je("checkRestrictions"),$y=Je("checkMinNumberOfFiles"),Kd=Je("checkRequiredMetaFieldsOnFile"),Hy=Je("checkRequiredMetaFields"),tn=Je("showOrLogErrorAndThrow"),Wc=Je("assertNewUploadAllowed"),Gc=Je("checkAndCreateFileStateObject"),qc=Je("startIfAutoProceed"),Vy=Je("addListeners"),Gr=Je("updateOnlineStatus"),Ko=Je("createUpload"),Uy=Je("getUpload"),Du=Je("removeUpload"),Yo=Je("runUpload");qj=Symbol.for("uppy test: getPlugins"),Kj=Symbol.for("uppy test: createUpload");class Yj{constructor(e){Object.defineProperty(this,Yo,{value:yY}),Object.defineProperty(this,Du,{value:mY}),Object.defineProperty(this,Uy,{value:vY}),Object.defineProperty(this,Ko,{value:gY}),Object.defineProperty(this,Vy,{value:hY}),Object.defineProperty(this,qc,{value:pY}),Object.defineProperty(this,Gc,{value:dY}),Object.defineProperty(this,Wc,{value:fY}),Object.defineProperty(this,tn,{value:cY}),Object.defineProperty(this,Hy,{value:lY}),Object.defineProperty(this,Kd,{value:sY}),Object.defineProperty(this,$y,{value:uY}),Object.defineProperty(this,pd,{value:aY}),Object.defineProperty(this,vn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Uc,{writable:!0,value:void 0}),Object.defineProperty(this,qo,{writable:!0,value:Hj()}),Object.defineProperty(this,mu,{writable:!0,value:new Set}),Object.defineProperty(this,yu,{writable:!0,value:new Set}),Object.defineProperty(this,Qo,{writable:!0,value:new Set}),Object.defineProperty(this,Gr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=tY;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new Uj,logger:rY,infoTimeout:5e3};if(this.opts=Zt(X(X({},n),e),{restrictions:X(X({},n.restrictions),e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=oY),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ts(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:QK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:X({},this.opts.meta),info:[],recoveredState:null}),dt(this,Uc)[Uc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),dt(this,Vy)[Vy]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];dt(this,qo)[qo].emit(e,...r)}on(e,n){return dt(this,qo)[qo].on(e,n),this}once(e,n){return dt(this,qo)[qo].once(e,n),this}off(e,n){return dt(this,qo)[qo].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can\u2019t set state for ${e} (the file could have been removed)`);this.setState({files:Zt(X({},this.getState().files),{[e]:X(X({},this.getState().files[e]),n)})})}i18nInit(){const e=new $j([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts=Zt(X(X({},this.opts),e),{restrictions:X(X({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n=X({},this.getState().files),r={};Object.keys(n).forEach(o=>{const i=X({},n[o]);i.progress=X(X({},i.progress),e),r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){dt(this,mu)[mu].add(e)}removePreProcessor(e){return dt(this,mu)[mu].delete(e)}addPostProcessor(e){dt(this,Qo)[Qo].add(e)}removePostProcessor(e){return dt(this,Qo)[Qo].delete(e)}addUploader(e){dt(this,yu)[yu].add(e)}removeUploader(e){return dt(this,yu)[yu].delete(e)}setMeta(e){const n=X(X({},this.getState().meta),e),r=X({},this.getState().files);Object.keys(r).forEach(o=>{r[o]=Zt(X({},r[o]),{meta:X(X({},r[o].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r=X({},this.getState().files);if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o=X(X({},r[e].meta),n);r[e]=Zt(X({},r[e]),{meta:o}),this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(y=>{let{progress:g}=y;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(y=>!y.progress.uploadStarted),u=o.filter(y=>y.progress.uploadStarted||y.progress.preprocess||y.progress.postprocess),s=o.filter(y=>y.progress.uploadStarted),l=o.filter(y=>y.isPaused),c=o.filter(y=>y.progress.uploadComplete),f=o.filter(y=>y.error),p=i.filter(y=>!y.isPaused),d=o.filter(y=>y.progress.preprocess||y.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(y=>y.isGhost)}}validateRestrictions(e,n){try{return dt(this,pd)[pd](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){dt(this,Wc)[Wc](e);const{files:n}=this.getState();let r=dt(this,Gc)[Gc](n,e);return n[r.id]&&n[r.id].isGhost&&(r=Zt(X({},n[r.id]),{data:e.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:Zt(X({},n),{[r.id]:r})}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),dt(this,qc)[qc](),r.id}addFiles(e){dt(this,Wc)[Wc]();const n=X({},this.getState().files),r=[],o=[];for(let i=0;i<e.length;i++)try{let a=dt(this,Gc)[Gc](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a=Zt(X({},n[a.id]),{data:e[i].data,isGhost:!1}),this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
- id: ${r[i].id}
- type: ${r[i].type}`)}),r.length>0&&dt(this,qc)[qc](),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=X({},r),a=X({},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]=Zt(X({},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=X({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=Zt(X({},e[n]),{isPaused:!0});e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=X({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=Zt(X({},e[n]),{isPaused:!1,error:null});e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=X({},this.getState().files),n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i=Zt(X({},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=dt(this,Ko)[Ko](n,{forceAllowNewUpload:!0});return dt(this,Yo)[Yo](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=dt(this,Ko)[Ko]([e],{forceAllowNewUpload:!0});return dt(this,Yo)[Yo](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:Zt(X({},this.getFile(e.id).progress),{bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in dt(this,vn)[vn]?dt(this,vn)[vn][r.type].push(r):dt(this,vn)[vn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(dt(this,vn)[vn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[qj](e){return dt(this,vn)[vn][e]}iteratePlugins(e){Object.values(dt(this,vn)[vn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=dt(this,vn)[vn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:Zt(X({},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(),dt(this,Uc)[Uc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",dt(this,Gr)[Gr]),window.removeEventListener("offline",dt(this,Gr)[Gr]))}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]?dt(this,Yo)[Yo](e):(dt(this,Du)[Du](e),Promise.reject(new Error("Nonexistent upload")))}[Kj](){return dt(this,Ko)[Ko](...arguments)}addResultData(e,n){if(!dt(this,Uy)[Uy](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o=Zt(X({},r[e]),{result:X(X({},r[e].result),n)});this.setState({currentUploads:Zt(X({},r),{[e]:o})})}upload(){var e;(e=dt(this,vn)[vn].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(()=>{dt(this,$y)[$y](n),dt(this,Hy)[Hy](n)}).catch(o=>{dt(this,tn)[tn](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=dt(this,Ko)[Ko](a);return dt(this,Yo)[Yo](u)}).catch(o=>{dt(this,tn)[tn](o,{showInformer:!1})}))}}function aY(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 Eo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&YK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new Eo(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 Eo(this.i18n("exceedsSize",{size:Ry(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new Eo(this.i18n("exceedsSize",{size:Ry(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new Eo(this.i18n("inferiorSize",{size:Ry(r)}))}function uY(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new Eo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function sY(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 Eo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),dt(this,tn)[tn](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function lY(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return dt(this,Kd)[Kd](r)});if(e.length)throw new iY(e,`${this.i18n("missingRequiredMetaField")}`)}function cY(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function fY(t){const{allowNewUpload:e}=this.getState();e===!1&&dt(this,tn)[tn](new Eo(this.i18n("noMoreFilesAllowed")),{file:t})}function dY(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=u7(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in s7?s7[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=u7(r).extension,i=Boolean(e.isRemote),a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${l7(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${l7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}(Zt(X({},e),{type:n}));if(this.checkIfFileAlreadyExists(a)){const f=new Eo(this.i18n("noDuplicates",{fileName:r}));dt(this,tn)[tn](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:X(X({},this.getState().meta),u),type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?dt(this,tn)[tn](new Eo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);dt(this,pd)[pd](l,f)}catch(f){dt(this,tn)[tn](f,{file:l})}return l}function pY(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function hY(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),dt(this,tn)[tn](o,{throwErr:!1})}else dt(this,tn)[tn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:Zt(X({},r),{postprocess:dt(this,Qo)[Qo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:Zt(X({},this.getFile(e.id).progress),{preprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=X({},this.getState().files);n[e.id]=Zt(X({},n[e.id]),{progress:X({},n[e.id].progress)}),delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:Zt(X({},this.getState().files[e.id].progress),{postprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=X({},this.getState().files);n[e.id]=Zt(X({},n[e.id]),{progress:X({},n[e.id].progress)}),delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&dt(this,Kd)[Kd](e)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",dt(this,Gr)[Gr]),window.addEventListener("offline",dt(this,Gr)[Gr]),setTimeout(dt(this,Gr)[Gr],3e3))}function gY(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=nY();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:Zt(X({},o),{[i]:{fileIDs:t,step:0,result:{}}})}),i}function vY(t){const{currentUploads:e}=this.getState();return e[t]}function mY(t){const e=X({},this.getState().currentUploads);delete e[t],this.setState({currentUploads:e})}function yY(t){return Bs(this,null,function*(){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...dt(this,mu)[mu],...dt(this,yu)[yu],...dt(this,Qo)[Qo]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s=Zt(X({},n),{step:a});this.setState({currentUploads:Zt(X({},e),{[t]:s})}),yield u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),dt(this,Du)[Du](t),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);yield this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),dt(this,Du)[Du](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i})}Yj.VERSION="2.1.3";var Xj=Yj,bY=ds(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(k,S){for(var P in S)k[P]=S[P];return k}function y(k){var S=k.parentNode;S&&S.removeChild(k)}function g(k,S,P){var $,Y,V,at={};for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:at[V]=S[V];if(arguments.length>2&&(at.children=arguments.length>3?n.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)at[V]===void 0&&(at[V]=k.defaultProps[V]);return v(k,at,$,Y,null)}function v(k,S,P,$,Y){var V={type:k,props:S,key:P,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y==null?++o:Y};return Y==null&&r.vnode!=null&&r.vnode(V),V}function m(k){return k.children}function h(k,S){this.props=k,this.context=S}function b(k,S){if(S==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var P;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null)return P.__e;return typeof k.type=="function"?b(k):null}function w(k){var S,P;if((k=k.__)!=null&&k.__c!=null){for(k.__e=k.__c.base=null,S=0;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null){k.__e=k.__c.base=P.__e;break}return w(k)}}function E(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var k;x.__r=a.length;)k=a.sort(function(S,P){return S.__v.__b-P.__v.__b}),a=[],k.some(function(S){var P,$,Y,V,at,vt;S.__d&&(at=(V=(P=S).__v).__e,(vt=P.__P)&&($=[],(Y=d({},V)).__v=V.__v+1,U(vt,V,Y,P.__n,vt.ownerSVGElement!==void 0,V.__h!=null?[at]:null,$,at==null?b(V):at,V.__h),W($,V),V.__e!=at&&w(V)))})}function C(k,S,P,$,Y,V,at,vt,mt,Ct){var G,Lt,Ot,pt,kt,_e,Ht,ne=$&&$.__k||f,be=ne.length;for(P.__k=[],G=0;G<S.length;G++)if((pt=P.__k[G]=(pt=S[G])==null||typeof pt=="boolean"?null:typeof pt=="string"||typeof pt=="number"||typeof pt=="bigint"?v(null,pt,null,null,pt):Array.isArray(pt)?v(m,{children:pt},null,null,null):pt.__b>0?v(pt.type,pt.props,pt.key,null,pt.__v):pt)!=null){if(pt.__=P,pt.__b=P.__b+1,(Ot=ne[G])===null||Ot&&pt.key==Ot.key&&pt.type===Ot.type)ne[G]=void 0;else for(Lt=0;Lt<be;Lt++){if((Ot=ne[Lt])&&pt.key==Ot.key&&pt.type===Ot.type){ne[Lt]=void 0;break}Ot=null}U(k,pt,Ot=Ot||c,Y,V,at,vt,mt,Ct),kt=pt.__e,(Lt=pt.ref)&&Ot.ref!=Lt&&(Ht||(Ht=[]),Ot.ref&&Ht.push(Ot.ref,null,pt),Ht.push(Lt,pt.__c||kt,pt)),kt!=null?(_e==null&&(_e=kt),typeof pt.type=="function"&&pt.__k===Ot.__k?pt.__d=mt=O(pt,mt,k):mt=F(k,pt,Ot,ne,kt,mt),typeof P.type=="function"&&(P.__d=mt)):mt&&Ot.__e==mt&&mt.parentNode!=k&&(mt=b(Ot))}for(P.__e=_e,G=be;G--;)ne[G]!=null&&(typeof P.type=="function"&&ne[G].__e!=null&&ne[G].__e==P.__d&&(P.__d=b($,G+1)),ct(ne[G],ne[G]));if(Ht)for(G=0;G<Ht.length;G++)rt(Ht[G],Ht[++G],Ht[++G])}function O(k,S,P){for(var $,Y=k.__k,V=0;Y&&V<Y.length;V++)($=Y[V])&&($.__=k,S=typeof $.type=="function"?O($,S,P):F(P,$,$,Y,$.__e,S));return S}function F(k,S,P,$,Y,V){var at,vt,mt;if(S.__d!==void 0)at=S.__d,S.__d=void 0;else if(P==null||Y!=V||Y.parentNode==null)t:if(V==null||V.parentNode!==k)k.appendChild(Y),at=null;else{for(vt=V,mt=0;(vt=vt.nextSibling)&&mt<$.length;mt+=2)if(vt==Y)break t;k.insertBefore(Y,V),at=V}return at!==void 0?at:Y.nextSibling}function R(k,S,P){S[0]==="-"?k.setProperty(S,P):k[S]=P==null?"":typeof P!="number"||p.test(S)?P:P+"px"}function H(k,S,P,$,Y){var V;t:if(S==="style")if(typeof P=="string")k.style.cssText=P;else{if(typeof $=="string"&&(k.style.cssText=$=""),$)for(S in $)P&&S in P||R(k.style,S,"");if(P)for(S in P)$&&P[S]===$[S]||R(k.style,S,P[S])}else if(S[0]==="o"&&S[1]==="n")V=S!==(S=S.replace(/Capture$/,"")),S=S.toLowerCase()in k?S.toLowerCase().slice(2):S.slice(2),k.l||(k.l={}),k.l[S+V]=P,P?$||k.addEventListener(S,V?K:M,V):k.removeEventListener(S,V?K:M,V);else if(S!=="dangerouslySetInnerHTML"){if(Y)S=S.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(S!=="href"&&S!=="list"&&S!=="form"&&S!=="tabIndex"&&S!=="download"&&S in k)try{k[S]=P==null?"":P;break t}catch(at){}typeof P=="function"||(P!=null&&(P!==!1||S[0]==="a"&&S[1]==="r")?k.setAttribute(S,P):k.removeAttribute(S))}}function M(k){this.l[k.type+!1](r.event?r.event(k):k)}function K(k){this.l[k.type+!0](r.event?r.event(k):k)}function U(k,S,P,$,Y,V,at,vt,mt){var Ct,G,Lt,Ot,pt,kt,_e,Ht,ne,be,En,$t=S.type;if(S.constructor!==void 0)return null;P.__h!=null&&(mt=P.__h,vt=S.__e=P.__e,S.__h=null,V=[vt]),(Ct=r.__b)&&Ct(S);try{t:if(typeof $t=="function"){if(Ht=S.props,ne=(Ct=$t.contextType)&&$[Ct.__c],be=Ct?ne?ne.props.value:Ct.__:$,P.__c?_e=(G=S.__c=P.__c).__=G.__E:("prototype"in $t&&$t.prototype.render?S.__c=G=new $t(Ht,be):(S.__c=G=new h(Ht,be),G.constructor=$t,G.render=lt),ne&&ne.sub(G),G.props=Ht,G.state||(G.state={}),G.context=be,G.__n=$,Lt=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),$t.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=d({},G.__s)),d(G.__s,$t.getDerivedStateFromProps(Ht,G.__s))),Ot=G.props,pt=G.state,Lt)$t.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if($t.getDerivedStateFromProps==null&&Ht!==Ot&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps(Ht,be),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate(Ht,G.__s,be)===!1||S.__v===P.__v){G.props=Ht,G.state=G.__s,S.__v!==P.__v&&(G.__d=!1),G.__v=S,S.__e=P.__e,S.__k=P.__k,S.__k.forEach(function(zn){zn&&(zn.__=S)}),G.__h.length&&at.push(G);break t}G.componentWillUpdate!=null&&G.componentWillUpdate(Ht,G.__s,be),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(Ot,pt,kt)})}G.context=be,G.props=Ht,G.state=G.__s,(Ct=r.__r)&&Ct(S),G.__d=!1,G.__v=S,G.__P=k,Ct=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&($=d(d({},$),G.getChildContext())),Lt||G.getSnapshotBeforeUpdate==null||(kt=G.getSnapshotBeforeUpdate(Ot,pt)),En=Ct!=null&&Ct.type===m&&Ct.key==null?Ct.props.children:Ct,C(k,Array.isArray(En)?En:[En],S,P,$,Y,V,at,vt,mt),G.base=S.__e,S.__h=null,G.__h.length&&at.push(G),_e&&(G.__E=G.__=null),G.__e=!1}else V==null&&S.__v===P.__v?(S.__k=P.__k,S.__e=P.__e):S.__e=q(P.__e,S,P,$,Y,V,at,mt);(Ct=r.diffed)&&Ct(S)}catch(zn){S.__v=null,(mt||V!=null)&&(S.__e=vt,S.__h=!!mt,V[V.indexOf(vt)]=null),r.__e(zn,S,P)}}function W(k,S){r.__c&&r.__c(S,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function($){$.call(P)})}catch($){r.__e($,P.__v)}})}function q(k,S,P,$,Y,V,at,vt){var mt,Ct,G,Lt=P.props,Ot=S.props,pt=S.type,kt=0;if(pt==="svg"&&(Y=!0),V!=null){for(;kt<V.length;kt++)if((mt=V[kt])&&"setAttribute"in mt==!!pt&&(pt?mt.localName===pt:mt.nodeType===3)){k=mt,V[kt]=null;break}}if(k==null){if(pt===null)return document.createTextNode(Ot);k=Y?document.createElementNS("http://www.w3.org/2000/svg",pt):document.createElement(pt,Ot.is&&Ot),V=null,vt=!1}if(pt===null)Lt===Ot||vt&&k.data===Ot||(k.data=Ot);else{if(V=V&&n.call(k.childNodes),Ct=(Lt=P.props||c).dangerouslySetInnerHTML,G=Ot.dangerouslySetInnerHTML,!vt){if(V!=null)for(Lt={},kt=0;kt<k.attributes.length;kt++)Lt[k.attributes[kt].name]=k.attributes[kt].value;(G||Ct)&&(G&&(Ct&&G.__html==Ct.__html||G.__html===k.innerHTML)||(k.innerHTML=G&&G.__html||""))}if(function(_e,Ht,ne,be,En){var $t;for($t in ne)$t==="children"||$t==="key"||$t in Ht||H(_e,$t,null,ne[$t],be);for($t in Ht)En&&typeof Ht[$t]!="function"||$t==="children"||$t==="key"||$t==="value"||$t==="checked"||ne[$t]===Ht[$t]||H(_e,$t,Ht[$t],ne[$t],be)}(k,Ot,Lt,Y,vt),G)S.__k=[];else if(kt=S.props.children,C(k,Array.isArray(kt)?kt:[kt],S,P,$,Y&&pt!=="foreignObject",V,at,V?V[0]:P.__k&&b(P,0),vt),V!=null)for(kt=V.length;kt--;)V[kt]!=null&&y(V[kt]);vt||("value"in Ot&&(kt=Ot.value)!==void 0&&(kt!==Lt.value||kt!==k.value||pt==="progress"&&!kt)&&H(k,"value",kt,Lt.value,!1),"checked"in Ot&&(kt=Ot.checked)!==void 0&&kt!==k.checked&&H(k,"checked",kt,Lt.checked,!1))}return k}function rt(k,S,P){try{typeof k=="function"?k(S):k.current=S}catch($){r.__e($,P)}}function ct(k,S,P){var $,Y;if(r.unmount&&r.unmount(k),($=k.ref)&&($.current&&$.current!==k.__e||rt($,null,S)),($=k.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){r.__e(V,S)}$.base=$.__P=null}if($=k.__k)for(Y=0;Y<$.length;Y++)$[Y]&&ct($[Y],S,typeof k.type!="function");P||k.__e==null||y(k.__e),k.__e=k.__d=void 0}function lt(k,S,P){return this.constructor(k,P)}function ut(k,S,P){var $,Y,V;r.__&&r.__(k,S),Y=($=typeof P=="function")?null:P&&P.__k||S.__k,V=[],U(S,k=(!$&&P||S).__k=g(m,null,[k]),Y||c,c,S.ownerSVGElement!==void 0,!$&&P?[P]:Y?null:S.firstChild?n.call(S.childNodes):null,V,!$&&P?P:Y?Y.__e:S.firstChild,$),W(V,k)}n=f.slice,r={__e:function(k,S){for(var P,$,Y;S=S.__;)if((P=S.__c)&&!P.__)try{if(($=P.constructor)&&$.getDerivedStateFromError!=null&&(P.setState($.getDerivedStateFromError(k)),Y=P.__d),P.componentDidCatch!=null&&(P.componentDidCatch(k),Y=P.__d),Y)return P.__E=P}catch(V){k=V}throw k}},o=0,i=function(k){return k!=null&&k.constructor===void 0},h.prototype.setState=function(k,S){var P;P=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof k=="function"&&(k=k(d({},P),this.props)),k&&d(P,k),k!=null&&this.__v&&(S&&this.__h.push(S),E(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),E(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,e.Component=h,e.Fragment=m,e.cloneElement=function(k,S,P){var $,Y,V,at=d({},k.props);for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:at[V]=S[V];return arguments.length>2&&(at.children=arguments.length>3?n.call(arguments,2):P),v(k.type,at,$||k.key,Y||k.ref,null)},e.createContext=function(k,S){var P={__c:S="__cC"+l++,__:k,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,V;return this.getChildContext||(Y=[],(V={})[S]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(at){this.props.value!==at.value&&Y.some(E)},this.sub=function(at){Y.push(at);var vt=at.componentWillUnmount;at.componentWillUnmount=function(){Y.splice(Y.indexOf(at),1),vt&&vt.call(at)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function k(S,P){ut(S,P,k)},e.isValidElement=i,e.options=r,e.render=ut,e.toChildArray=function k(S,P){return P=P||[],S==null||typeof S=="boolean"||(Array.isArray(S)?S.some(function($){k($,P)}):P.push(S)),P}}),wY=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},X5=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:Zt(X({},e),{[this.id]:X(X({},e[this.id]),t)})})}setOptions(t){this.opts=X(X({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new $j([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function c7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var EY=0;function DY(t){return"__private_"+EY+++"_"+t}const{render:f7}=bY;var Kc=DY("updateUI");class Z5 extends X5{constructor(){super(...arguments),Object.defineProperty(this,Kc,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=wY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return c7(this,Kc)[Kc]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(f7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),f7(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof Z5)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(e){var n,r;this.el!=null&&((n=(r=c7(this,Kc))[Kc])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var CY=Z5;const{debugLogger:xY}=Wj;var nd=Xj,SY=Xj,AY=CY,OY=X5,kY=xY;nd.Uppy=SY,nd.UIPlugin=AY,nd.BasePlugin=OY,nd.debugLogger=kY;class BY extends Error{constructor(e,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=n}}var J5=BY,Wy=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new J5(t)})};class FY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Kh,xi,vo,Si,d7,_Y=FY;function go(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var TY=0;function Gy(t){return"__private_"+TY+++"_"+t}function qy(t){return Bs(this,null,function*(){if(t.status===401)throw new _Y;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=yield e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e})}var Ky=(xi=Gy("getPostResponseFunc"),vo=Gy("getUrl"),Si=Gy("errorHandler"),d7=Kh=class Zj{constructor(e,n){Object.defineProperty(this,Si,{value:jY}),Object.defineProperty(this,vo,{value:PY}),Object.defineProperty(this,xi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve(X(X({},Zj.defaultHeaders),e))}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:Zt(X({},n),{[r]:o.get("i-am")})}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(go(this,vo)[vo](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>Wy(go(this,vo)[vo](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(go(this,xi)[xi](n)).then(qy).catch(go(this,Si)[Si]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>Wy(go(this,vo)[vo](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(go(this,xi)[xi](r)).then(qy).catch(go(this,Si)[Si](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>Wy(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(go(this,xi)[xi](r)).then(qy).catch(go(this,Si)[Si](o,e))}},Kh.VERSION="2.0.4",Kh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Kh.VERSION}`},d7);function PY(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function jY(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${go(this,vo)[vo](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var NY={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},ho,Ai,wr,On,Yh;let p7,h7;function Ve(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var IY=0;function Yc(t){return"__private_"+IY+++"_"+t}var LY=(ho=Yc("queued"),Ai=Yc("emitter"),wr=Yc("isOpen"),On=Yc("socket"),Yh=Yc("handleMessage"),p7=Symbol.for("uppy test: getSocket"),h7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,ho,{writable:!0,value:[]}),Object.defineProperty(this,Ai,{writable:!0,value:Hj()}),Object.defineProperty(this,wr,{writable:!0,value:!1}),Object.defineProperty(this,On,{writable:!0,value:void 0}),Object.defineProperty(this,Yh,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return Ve(this,wr)[wr]}[p7](){return Ve(this,On)[On]}[h7](){return Ve(this,ho)[ho]}open(){Ve(this,On)[On]=new WebSocket(this.opts.target),Ve(this,On)[On].onopen=()=>{for(Ve(this,wr)[wr]=!0;Ve(this,ho)[ho].length>0&&Ve(this,wr)[wr];){const t=Ve(this,ho)[ho].shift();this.send(t.action,t.payload)}},Ve(this,On)[On].onclose=()=>{Ve(this,wr)[wr]=!1},Ve(this,On)[On].onmessage=Ve(this,Yh)[Yh]}close(){var t;(t=Ve(this,On)[On])==null||t.close()}send(t,e){Ve(this,wr)[wr]?Ve(this,On)[On].send(JSON.stringify({action:t,payload:e})):Ve(this,ho)[ho].push({action:t,payload:e})}on(t,e){Ve(this,Ai)[Ai].on(t,e)}emit(t,e){Ve(this,Ai)[Ai].emit(t,e)}once(t,e){Ve(this,Ai)[Ai].once(t,e)}}),RY={RequestClient:Ky,Provider:class extends Ky{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),X(X({},e),r)})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts=X(X({},n),e)),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||NY}},SearchProvider:class extends Ky{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:LY},Oi,Ns,MY=ts(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Xc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var zY=0;function g7(t){return"__private_"+zY+++"_"+t}var v7=(Oi=g7("emitter"),Ns=g7("events"),class{constructor(t){Object.defineProperty(this,Oi,{writable:!0,value:void 0}),Object.defineProperty(this,Ns,{writable:!0,value:[]}),Xc(this,Oi)[Oi]=t}on(t,e){return Xc(this,Ns)[Ns].push([t,e]),Xc(this,Oi)[Oi].on(t,e)}remove(){for(const[t,e]of Xc(this,Ns)[Ns].splice(0))Xc(this,Oi)[Oi].off(t,e)}});function Er(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var $Y=0;function X1(t){return"__private_"+$Y+++"_"+t}var Xo=X1("aliveTimer"),tu=X1("isDone"),Zc=X1("onTimedOut"),eu=X1("timeout"),m7=class{constructor(t,e){Object.defineProperty(this,Xo,{writable:!0,value:void 0}),Object.defineProperty(this,tu,{writable:!0,value:!1}),Object.defineProperty(this,Zc,{writable:!0,value:void 0}),Object.defineProperty(this,eu,{writable:!0,value:void 0}),Er(this,eu)[eu]=t,Er(this,Zc)[Zc]=e}progress(){Er(this,tu)[tu]||Er(this,eu)[eu]>0&&(clearTimeout(Er(this,Xo)[Xo]),Er(this,Xo)[Xo]=setTimeout(Er(this,Zc)[Zc],Er(this,eu)[eu]))}done(){Er(this,tu)[tu]||(clearTimeout(Er(this,Xo)[Xo]),Er(this,Xo)[Xo]=null,Er(this,tu)[tu]=!0)}};function Ge(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var HY=0;function ms(t){return"__private_"+HY+++"_"+t}function VY(){return new Error("Cancelled")}var nr=ms("activeRequests"),Ln=ms("queuedHandlers"),hd=ms("call"),rd=ms("queueNext"),vE=ms("next"),Yy=ms("queue"),mE=ms("dequeue");function UY(t){Ge(this,nr)[nr]+=1;let e,n=!1;try{e=t()}catch(r){throw Ge(this,nr)[nr]-=1,r}return{abort:()=>{n||(n=!0,Ge(this,nr)[nr]-=1,e(),Ge(this,rd)[rd]())},done:()=>{n||(n=!0,Ge(this,nr)[nr]-=1,Ge(this,rd)[rd]())}}}function WY(){queueMicrotask(()=>Ge(this,vE)[vE]())}function GY(){if(Ge(this,nr)[nr]>=this.limit||Ge(this,Ln)[Ln].length===0)return;const t=Ge(this,Ln)[Ln].shift(),e=Ge(this,hd)[hd](t.fn);t.abort=e.abort,t.done=e.done}function qY(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Ge(this,mE)[mE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ge(this,Ln)[Ln].findIndex(o=>n.priority>o.priority);return r===-1?Ge(this,Ln)[Ln].push(n):Ge(this,Ln)[Ln].splice(r,0,n),n}function KY(t){const e=Ge(this,Ln)[Ln].indexOf(t);e!==-1&&Ge(this,Ln)[Ln].splice(e,1)}var YY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,mE,{value:KY}),Object.defineProperty(this,Yy,{value:qY}),Object.defineProperty(this,vE,{value:GY}),Object.defineProperty(this,rd,{value:WY}),Object.defineProperty(this,hd,{value:UY}),Object.defineProperty(this,nr,{writable:!0,value:0}),Object.defineProperty(this,Ln,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ge(this,nr)[nr]<this.limit?Ge(this,hd)[hd](t):Ge(this,Yy)[Yy](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=VY()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},y7,b7,Jj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},XY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:ZY}=Gj,{Provider:JY,RequestClient:QY,Socket:tX}=RY,{RateLimitedQueue:eX,internalRateLimitedQueue:Xy}=YY;function w7(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Jj(t)?(n=new J5(n,t),n):(n.request=t,n)}function E7(t){return t.data.slice(0,t.data.size,t.meta.type)}var nX=(b7=y7=class extends X5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=XY;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return Jj(o)&&(i=new J5(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts=X(X({},n),e),this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Xy in this.opts?this.requests=this.opts[Xy]:this.requests=new eX(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r=Zt(X(X(X({},this.opts),e||{}),t.xhrUpload||{}),{headers:{}});return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=E7(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=E7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new v7(this.uppy);const s=new m7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=ZY();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const g=r.getResponseData(u.responseText,u),v=g[r.responseUrlFieldName],m={status:f.target.status,body:g,uploadURL:v};return this.uppy.emit("upload-success",t,m),v&&this.uppy.log(`Download ${t.name} from ${v}`),o(t)}const p=r.getResponseData(u.responseText,u),d=w7(u,r.getResponseError(u.responseText,u)),y={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,y),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=w7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?JY:QY)(this.uppy,t.remote.providerOptions).post(t.remote.url,Zt(X({},t.remote.body),{endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers})).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new tX({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new v7(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>MY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),p=f[e.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,X(X({},this.opts),i||{})),u=new XMLHttpRequest,s=new m7(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return t.forEach(y=>{this.uppy.emit("upload-success",y,d)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,i=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[Xy]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.isRemote))throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:Zt(X({},t),{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:Zt(X({},t),{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)}},y7.VERSION="2.0.6",b7),D7=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xp(t){var e={exports:{}};return t(e,e.exports),e.exports}var ki,ig,Xh=function(t){return t&&t.Math==Math&&t},Z=Xh(typeof globalThis=="object"&&globalThis)||Xh(typeof window=="object"&&window)||Xh(typeof self=="object"&&self)||Xh(typeof D7=="object"&&D7)||function(){return this}()||Function("return this")(),rX=Object.defineProperty,Q5=function(t,e){try{rX(Z,t,{value:e,configurable:!0,writable:!0})}catch(n){Z[t]=e}return e},sa=Z["__core-js_shared__"]||Q5("__core-js_shared__",{}),tD=Xp(function(t){(t.exports=function(e,n){return sa[e]||(sa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Qj=Function.prototype,yE=Qj.bind,bE=Qj.call,oX=yE&&yE.bind(bE),ht=yE?function(t){return t&&oX(bE,t)}:function(t){return t&&function(){return bE.apply(t,arguments)}},iX=Z.TypeError,Ir=function(t){if(t==null)throw iX("Can't call method on "+t);return t},aX=Z.Object,Ma=function(t){return aX(Ir(t))},uX=ht({}.hasOwnProperty),Re=Object.hasOwn||function(t,e){return uX(Ma(t),e)},sX=0,lX=Math.random(),cX=ht(1 .toString),eD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+cX(++sX+lX,36)},ie=function(t){return typeof t=="function"},fX=function(t){return ie(t)?t:void 0},ys=function(t,e){return arguments.length<2?fX(Z[t]):Z[t]&&Z[t][e]},El=ys("navigator","userAgent")||"",C7=Z.process,x7=Z.Deno,S7=C7&&C7.versions||x7&&x7.version,A7=S7&&S7.v8;A7&&(ig=(ki=A7.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!ig&&El&&(!(ki=El.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=El.match(/Chrome\/(\d+)/))&&(ig=+ki[1]);var Yd=ig,Qt=function(t){try{return!!t()}catch(e){return!0}},wE=!!Object.getOwnPropertySymbols&&!Qt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Yd&&Yd<41}),nD=wE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Jc=tD("wks"),Pu=Z.Symbol,O7=Pu&&Pu.for,dX=nD?Pu:Pu&&Pu.withoutSetter||eD,Ae=function(t){if(!Re(Jc,t)||!wE&&typeof Jc[t]!="string"){var e="Symbol."+t;wE&&Re(Pu,t)?Jc[t]=Pu[t]:Jc[t]=nD&&O7?O7(e):dX(e)}return Jc[t]},tN={};tN[Ae("toStringTag")]="z";var rD=String(tN)==="[object z]",sn=!Qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),de=function(t){return typeof t=="object"?t!==null:ie(t)},EE=Z.document,pX=de(EE)&&de(EE.createElement),Xd=function(t){return pX?EE.createElement(t):{}},eN=!sn&&!Qt(function(){return Object.defineProperty(Xd("div"),"a",{get:function(){return 7}}).a!=7}),hX=Z.String,gX=Z.TypeError,Me=function(t){if(de(t))return t;throw gX(hX(t)+" is not an object")},Qc=Function.prototype.call,Wt=Qc.bind?Qc.bind(Qc):function(){return Qc.apply(Qc,arguments)},es=ht({}.isPrototypeOf),vX=Z.Object,Zy=nD?function(t){return typeof t=="symbol"}:function(t){var e=ys("Symbol");return ie(e)&&es(e.prototype,vX(t))},mX=Z.String,Z1=function(t){try{return mX(t)}catch(e){return"Object"}},yX=Z.TypeError,ka=function(t){if(ie(t))return t;throw yX(Z1(t)+" is not a function")},ns=function(t,e){var n=t[e];return n==null?void 0:ka(n)},bX=Z.TypeError,wX=Z.TypeError,EX=Ae("toPrimitive"),oD=function(t){var e=function(n,r){if(!de(n)||Zy(n))return n;var o,i=ns(n,EX);if(i){if(r===void 0&&(r="default"),o=Wt(i,n,r),!de(o)||Zy(o))return o;throw wX("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ie(s=a.toString)&&!de(l=Wt(s,a))||ie(s=a.valueOf)&&!de(l=Wt(s,a))||u!=="string"&&ie(s=a.toString)&&!de(l=Wt(s,a)))return l;throw bX("Can't convert object to primitive value")}(n,r)}(t,"string");return Zy(e)?e:e+""},DX=Z.TypeError,k7=Object.defineProperty,uo={f:sn?k7:function(t,e,n){if(Me(t),e=oD(e),Me(n),eN)try{return k7(t,e,n)}catch(r){}if("get"in n||"set"in n)throw DX("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},J1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},to=sn?function(t,e,n){return uo.f(t,e,J1(1,n))}:function(t,e,n){return t[e]=n,t},CX=ht(Function.toString);ie(sa.inspectSource)||(sa.inspectSource=function(t){return CX(t)});var cv,gd,fv,Q1=sa.inspectSource,B7=Z.WeakMap,nN=ie(B7)&&/native code/.test(Q1(B7)),F7=tD("keys"),iD=function(t){return F7[t]||(F7[t]=eD(t))},tm={},DE=Z.TypeError,xX=Z.WeakMap;if(nN||sa.state){var nu=sa.state||(sa.state=new xX),SX=ht(nu.get),_7=ht(nu.has),AX=ht(nu.set);cv=function(t,e){if(_7(nu,t))throw new DE("Object already initialized");return e.facade=t,AX(nu,t,e),e},gd=function(t){return SX(nu,t)||{}},fv=function(t){return _7(nu,t)}}else{var Is=iD("state");tm[Is]=!0,cv=function(t,e){if(Re(t,Is))throw new DE("Object already initialized");return e.facade=t,to(t,Is,e),e},gd=function(t){return Re(t,Is)?t[Is]:{}},fv=function(t){return Re(t,Is)}}var Tn={set:cv,get:gd,has:fv,enforce:function(t){return fv(t)?gd(t):cv(t,{})},getterFor:function(t){return function(e){var n;if(!de(e)||(n=gd(e)).type!==t)throw DE("Incompatible receiver, "+t+" required");return n}}},rN=Function.prototype,OX=sn&&Object.getOwnPropertyDescriptor,Jy=Re(rN,"name"),gc={EXISTS:Jy,PROPER:Jy&&function(){}.name==="something",CONFIGURABLE:Jy&&(!sn||sn&&OX(rN,"name").configurable)},Kn=Xp(function(t){var e=gc.CONFIGURABLE,n=Tn.get,r=Tn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ie(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Re(u,"name")||e&&u.name!==d)&&to(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Z?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:to(i,a,u)):f?i[a]=u:Q5(a,u)})(Function.prototype,"toString",function(){return ie(this)&&n(this).source||Q1(this)})}),kX=ht({}.toString),BX=ht("".slice),eo=function(t){return BX(kX(t),8,-1)},FX=Ae("toStringTag"),_X=Z.Object,TX=eo(function(){return arguments}())=="Arguments",em=rD?eo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=_X(t),FX))=="string"?n:TX?eo(e):(r=eo(e))=="Object"&&ie(e.callee)?"Arguments":r},PX=rD?{}.toString:function(){return"[object "+em(this)+"]"};rD||Kn(Object.prototype,"toString",PX,{unsafe:!0});var dv={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Qy=Xd("span").classList,T7=Qy&&Qy.constructor&&Qy.constructor.prototype,oN=T7===Object.prototype?void 0:T7,P7=ht(ht.bind),rs=function(t,e){return ka(t),e===void 0?t:P7?P7(t,e):function(){return t.apply(e,arguments)}},tb=Z.Object,jX=ht("".split),nm=Qt(function(){return!tb("z").propertyIsEnumerable(0)})?function(t){return eo(t)=="String"?jX(t,""):tb(t)}:tb,NX=Math.ceil,IX=Math.floor,Zp=function(t){var e=+t;return e!=e||e===0?0:(e>0?IX:NX)(e)},LX=Math.min,vc=function(t){return t>0?LX(Zp(t),9007199254740991):0},bs=function(t){return vc(t.length)},pv=Array.isArray||function(t){return eo(t)=="Array"},iN=function(){},RX=[],aN=ys("Reflect","construct"),aD=/^\s*(?:class|function)\b/,MX=ht(aD.exec),zX=!aD.exec(iN),tf=function(t){if(!ie(t))return!1;try{return aN(iN,RX,t),!0}catch(e){return!1}},rm=!aN||Qt(function(){var t;return tf(tf.call)||!tf(Object)||!tf(function(){t=!0})||t})?function(t){if(!ie(t))return!1;switch(em(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zX||!!MX(aD,Q1(t))}:tf,$X=Ae("species"),j7=Z.Array,uN=function(t,e){return new(function(n){var r;return pv(n)&&(r=n.constructor,(rm(r)&&(r===j7||pv(r.prototype))||de(r)&&(r=r[$X])===null)&&(r=void 0)),r===void 0?j7:r}(t))(e===0?0:e)},N7=ht([].push),Bi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Ma(s),g=nm(y),v=rs(l,c),m=bs(g),h=0,b=f||uN,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:N7(w,p)}else switch(t){case 4:return!1;case 7:N7(w,p)}return i?-1:r||o?o:w}},mc={forEach:Bi(0),map:Bi(1),filter:Bi(2),some:Bi(3),every:Bi(4),find:Bi(5),findIndex:Bi(6),filterReject:Bi(7)},sN=function(t,e){var n=[][t];return!!n&&Qt(function(){n.call(null,e||function(){throw 1},1)})},HX=mc.forEach,eb=sN("forEach")?[].forEach:function(t){return HX(this,t,arguments.length>1?arguments[1]:void 0)},lN=function(t){if(t&&t.forEach!==eb)try{to(t,"forEach",eb)}catch(e){t.forEach=eb}};for(var nb in dv)dv[nb]&&lN(Z[nb]&&Z[nb].prototype);lN(oN);var I7={}.propertyIsEnumerable,L7=Object.getOwnPropertyDescriptor,VX=L7&&!I7.call({1:2},1)?function(t){var e=L7(this,t);return!!e&&e.enumerable}:I7,cN={f:VX},za=function(t){return nm(Ir(t))},R7=Object.getOwnPropertyDescriptor,Jp={f:sn?R7:function(t,e){if(t=za(t),e=oD(e),eN)try{return R7(t,e)}catch(n){}if(Re(t,e))return J1(!Wt(cN.f,t,e),t[e])}},UX=Math.max,WX=Math.min,Kl=function(t,e){var n=Zp(t);return n<0?UX(n+e,0):WX(n,e)},M7=function(t){return function(e,n,r){var o,i=za(e),a=bs(i),u=Kl(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},fN={includes:M7(!0),indexOf:M7(!1)},GX=fN.indexOf,z7=ht([].push),dN=function(t,e){var n,r=za(t),o=0,i=[];for(n in r)!Re(tm,n)&&Re(r,n)&&z7(i,n);for(;e.length>o;)Re(r,n=e[o++])&&(~GX(i,n)||z7(i,n));return i},hv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qX=hv.concat("length","prototype"),Zd={f:Object.getOwnPropertyNames||function(t){return dN(t,qX)}},pN={f:Object.getOwnPropertySymbols},KX=ht([].concat),YX=ys("Reflect","ownKeys")||function(t){var e=Zd.f(Me(t)),n=pN.f;return n?KX(e,n(t)):e},XX=function(t,e){for(var n=YX(e),r=uo.f,o=Jp.f,i=0;i<n.length;i++){var a=n[i];Re(t,a)||r(t,a,o(e,a))}},ZX=/#|\.prototype\./,Qp=function(t,e){var n=QX[JX(t)];return n==eZ||n!=tZ&&(ie(e)?Qt(e):!!e)},JX=Qp.normalize=function(t){return String(t).replace(ZX,".").toLowerCase()},QX=Qp.data={},tZ=Qp.NATIVE="N",eZ=Qp.POLYFILL="P",Jd=Qp,nZ=Jp.f,xe=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Z:l?Z[u]||Q5(u,{}):(Z[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=nZ(n,r))&&a.value:n[r],!Jd(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;XX(i,o)}(t.sham||o&&o.sham)&&to(i,"sham",!0),Kn(n,r,i,t)}},Dl=Object.keys||function(t){return dN(t,hv)},rZ=Qt(function(){Dl(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function $7(t){return Object.prototype.toString.call(t)==="[object Object]"}xe({target:"Object",stat:!0,forced:rZ},{keys:function(t){return Dl(Ma(t))}});var oZ={isHistory(t){return $7(e=t)!==!1&&((n=e.constructor)===void 0||$7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||ta.isOperationList(t.redos[0]))&&(t.undos.length===0||ta.isOperationList(t.undos[0]));var e,n,r}},rb=new WeakMap,ob=new WeakMap,gl={isHistoryEditor:t=>oZ.isHistory(t.history)&&D.isEditor(t),isMerging:t=>ob.get(t),isSaving:t=>rb.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=gl.isMerging(t);ob.set(t,!1),e(),ob.set(t,n)},withoutSaving(t,e){var n=gl.isSaving(t);rb.set(t,!1),e(),rb.set(t,n)}},iZ=Z.String,le=function(t){if(em(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return iZ(t)},uD=function(){var t=Me(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},aZ=gc.PROPER,CE=RegExp.prototype,hN=CE.toString,uZ=ht(uD),sZ=Qt(function(){return hN.call({source:"a",flags:"b"})!="/a/b"}),lZ=aZ&&hN.name!="toString";(sZ||lZ)&&Kn(RegExp.prototype,"toString",function(){var t=Me(this),e=le(t.source),n=t.flags;return"/"+e+"/"+le(n===void 0&&es(CE,t)&&!("flags"in CE)?uZ(t):n)},{unsafe:!0});var Zh,cZ=sn?Object.defineProperties:function(t,e){Me(t);for(var n,r=za(e),o=Dl(e),i=o.length,a=0;i>a;)uo.f(t,n=o[a++],r[n]);return t},xE=ys("document","documentElement"),gN=iD("IE_PROTO"),ib=function(){},vN=function(t){return"<script>"+t+"<\/script>"},H7=function(t){t.write(vN("")),t.close();var e=t.parentWindow.Object;return t=null,e},ag=function(){try{Zh=new ActiveXObject("htmlfile")}catch(r){}var t,e;ag=typeof document!="undefined"?document.domain&&Zh?H7(Zh):((e=Xd("iframe")).style.display="none",xE.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(vN("document.F=Object")),t.close(),t.F):H7(Zh);for(var n=hv.length;n--;)delete ag.prototype[hv[n]];return ag()};tm[gN]=!0;var om=Object.create||function(t,e){var n;return t!==null?(ib.prototype=Me(t),n=new ib,ib.prototype=null,n[gN]=t):n=ag(),e===void 0?n:cZ(n,e)},SE=Ae("unscopables"),AE=Array.prototype;AE[SE]==null&&uo.f(AE,SE,{configurable:!0,value:om(null)});var vd=function(t){AE[SE][t]=!0},fZ=fN.includes;xe({target:"Array",proto:!0},{includes:function(t){return fZ(this,t,arguments.length>1?arguments[1]:void 0)}}),vd("includes");var dZ=Ae("match"),sD=function(t){var e;return de(t)&&((e=t[dZ])!==void 0?!!e:eo(t)=="RegExp")},pZ=Z.TypeError,lD=function(t){if(sD(t))throw pZ("The method doesn't accept regular expressions");return t},hZ=Ae("match"),cD=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[hZ]=!1,"/./"[t](e)}catch(r){}}return!1},gZ=ht("".indexOf);xe({target:"String",proto:!0,forced:!cD("includes")},{includes:function(t){return!!~gZ(le(Ir(this)),le(lD(t)),arguments.length>1?arguments[1]:void 0)}});var vZ=/"/g,mZ=ht("".replace);xe({target:"String",proto:!0,forced:Qt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=le(Ir(this)),r="<a",(r+=' name="'+mZ(le(e),vZ,""")+'"')+">"+n+"</a>";var e,n,r}});var OE=function(t,e,n){var r,o;Me(t);try{if(!(r=ns(t,"return"))){if(e==="throw")throw n;return n}r=Wt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Me(r),n},yZ=function(t,e,n,r){try{return r?e(Me(n)[0],n[1]):e(n)}catch(o){OE(t,"throw",o)}},Yl={},bZ=Ae("iterator"),wZ=Array.prototype,mN=function(t){return t!==void 0&&(Yl.Array===t||wZ[bZ]===t)},Qd=function(t,e,n){var r=oD(e);r in t?uo.f(t,r,J1(0,n)):t[r]=n},EZ=Ae("iterator"),fD=function(t){if(t!=null)return ns(t,EZ)||ns(t,"@@iterator")||Yl[em(t)]},DZ=Z.TypeError,yN=function(t,e){var n=arguments.length<2?fD(t):e;if(ka(n))return Me(Wt(n,t));throw DZ(Z1(t)+" is not iterable")},V7=Z.Array,bN=Ae("iterator"),wN=!1;try{var CZ=0,U7={next:function(){return{done:!!CZ++}},return:function(){wN=!0}};U7[bN]=function(){return this},Array.from(U7,function(){throw 2})}catch(t){}var dD=function(t,e){if(!e&&!wN)return!1;var n=!1;try{var r={};r[bN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},xZ=!dD(function(t){Array.from(t)});xe({target:"Array",stat:!0,forced:xZ},{from:function(t){var e=Ma(t),n=rm(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=rs(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=fD(e),d=0;if(!p||this==V7&&mN(p))for(a=bs(e),u=n?new this(a):V7(a);a>d;d++)f=i?o(e[d],d):e[d],Qd(u,d,f);else for(c=(l=yN(e,p)).next,u=n?new this:[];!(s=Wt(c,l)).done;d++)f=i?yZ(l,o,[s.value,d],!0):s.value,Qd(u,d,f);return u.length=d,u}});var ju,W7,G7,SZ=ht("".charAt),q7=ht("".charCodeAt),AZ=ht("".slice),K7=function(t){return function(e,n){var r,o,i=le(Ir(e)),a=Zp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=q7(i,a))<55296||r>56319||a+1===u||(o=q7(i,a+1))<56320||o>57343?t?SZ(i,a):r:t?AZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},EN={codeAt:K7(!1),charAt:K7(!0)},OZ=!Qt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Y7=iD("IE_PROTO"),kE=Z.Object,kZ=kE.prototype,gv=OZ?kE.getPrototypeOf:function(t){var e=Ma(t);if(Re(e,Y7))return e[Y7];var n=e.constructor;return ie(n)&&e instanceof n?n.prototype:e instanceof kE?kZ:null},BE=Ae("iterator"),DN=!1;[].keys&&("next"in(G7=[].keys())?(W7=gv(gv(G7)))!==Object.prototype&&(ju=W7):DN=!0);var BZ=ju==null||Qt(function(){var t={};return ju[BE].call(t)!==t});BZ&&(ju={}),ie(ju[BE])||Kn(ju,BE,function(){return this});var pD={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:DN},FZ=uo.f,X7=Ae("toStringTag"),vv=function(t,e,n){t&&!Re(t=n?t:t.prototype,X7)&&FZ(t,X7,{configurable:!0,value:e})},_Z=pD.IteratorPrototype,TZ=function(){return this},PZ=Z.String,jZ=Z.TypeError,Xl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Me(r),function(i){if(typeof i=="object"||ie(i))return i;throw jZ("Can't set "+PZ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),NZ=gc.PROPER,IZ=gc.CONFIGURABLE,Z7=pD.IteratorPrototype,Jh=pD.BUGGY_SAFARI_ITERATORS,ef=Ae("iterator"),LZ=function(){return this},hD=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=om(_Z,{next:J1(1,b)}),vv(m,E,!1),Yl[E]=TZ})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Jh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[ef]||d["@@iterator"]||o&&d[o],g=!Jh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=gv(v.call(new t)))!==Object.prototype&&u.next&&(gv(u)!==Z7&&(Xl?Xl(u,Z7):ie(u[ef])||Kn(u,ef,LZ)),vv(u,f,!0)),NZ&&o=="values"&&y&&y.name!=="values"&&(IZ?to(d,"name","values"):(p=!0,g=function(){return Wt(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Jh||p||!(l in d))&&Kn(d,l,s[l]);else xe({target:e,proto:!0,forced:Jh||p},s);return d[ef]!==g&&Kn(d,ef,g,{name:o}),Yl[e]=g,s},RZ=EN.charAt,MZ=Tn.set,zZ=Tn.getterFor("String Iterator");hD(String,"String",function(t){MZ(this,{type:"String Iterator",string:le(t),index:0})},function(){var t,e=zZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=RZ(n,r),e.index+=t.length,{value:t,done:!1})});var ab,$Z=Jp.f,J7=ht("".endsWith),HZ=ht("".slice),VZ=Math.min,CN=cD("endsWith"),UZ=!(CN||(ab=$Z(String.prototype,"endsWith"),!ab||ab.writable));xe({target:"String",proto:!0,forced:!UZ&&!CN},{endsWith:function(t){var e=le(Ir(this));lD(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:VZ(vc(n),r),i=le(t);return J7?J7(e,i,o):HZ(e,o-i.length,o)===i}});var WZ=ht([].join),GZ=nm!=Object,qZ=sN("join",",");xe({target:"Array",proto:!0,forced:GZ||!qZ},{join:function(t){return WZ(za(this),t===void 0?",":t)}});var KZ=Ae("species"),im=function(t){return Yd>=51||!Qt(function(){var e=[];return(e.constructor={})[KZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},YZ=mc.map,XZ=im("map");xe({target:"Array",proto:!0,forced:!XZ},{map:function(t){return YZ(this,t,arguments.length>1?arguments[1]:void 0)}});var gD=Z.RegExp,FE=Qt(function(){var t=gD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ZZ=FE||Qt(function(){return!gD("a","y").sticky}),am={BROKEN_CARET:FE||Qt(function(){var t=gD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:ZZ,UNSUPPORTED_Y:FE},JZ=Z.RegExp,vD=Qt(function(){var t=JZ(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),QZ=Z.RegExp,mD=Qt(function(){var t=QZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),tJ=Tn.get,eJ=tD("native-string-replace",String.prototype.replace),mv=RegExp.prototype.exec,_E=mv,nJ=ht("".charAt),rJ=ht("".indexOf),oJ=ht("".replace),ub=ht("".slice),sb=function(){var t=/a/,e=/b*/g;return Wt(mv,t,"a"),Wt(mv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),Q7=am.BROKEN_CARET,lb=/()??/.exec("")[1]!==void 0;(sb||lb||Q7||vD||mD)&&(_E=function(t){var e,n,r,o,i,a,u,s=this,l=tJ(s),c=le(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Wt(_E,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=Q7&&s.sticky,y=Wt(uD,s),g=s.source,v=0,m=c;if(d&&(y=oJ(y,"y",""),rJ(y,"g")===-1&&(y+="g"),m=ub(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&nJ(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),lb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),sb&&(r=s.lastIndex),o=Wt(mv,d?n:s,m),d?o?(o.input=ub(o.input,v),o[0]=ub(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:sb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),lb&&o&&o.length>1&&Wt(eJ,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=om(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var tp=_E;xe({target:"RegExp",proto:!0,forced:/./.exec!==tp},{exec:tp});var yD=Function.prototype,t9=yD.apply,iJ=yD.bind,e9=yD.call,bD=typeof Reflect=="object"&&Reflect.apply||(iJ?e9.bind(t9):function(){return e9.apply(t9,arguments)}),aJ=Ae("species"),cb=RegExp.prototype,wD=function(t,e,n,r){var o=Ae(t),i=!Qt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Qt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[aJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ht(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=ht(l),g=c.exec;return g===tp||g===cb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Kn(String.prototype,t,s[0]),Kn(cb,o,s[1])}r&&to(cb[o],"sham",!0)},uJ=EN.charAt,ED=function(t,e,n){return e+(n?uJ(t,e).length:1)},sJ=Math.floor,fb=ht("".charAt),lJ=ht("".replace),db=ht("".slice),cJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fJ=/\$([$&'`]|\d{1,2})/g,dJ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=fJ;return o!==void 0&&(o=Ma(o),s=cJ),lJ(i,s,function(l,c){var f;switch(fb(c,0)){case"$":return"$";case"&":return t;case"`":return db(e,0,n);case"'":return db(e,a);case"<":f=o[db(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=sJ(p/10);return d===0?l:d<=u?r[d-1]===void 0?fb(c,1):r[d-1]+fb(c,1):l}f=r[p-1]}return f===void 0?"":f})},pJ=Z.TypeError,ep=function(t,e){var n=t.exec;if(ie(n)){var r=Wt(n,t,e);return r!==null&&Me(r),r}if(eo(t)==="RegExp")return Wt(tp,t,e);throw pJ("RegExp#exec called on incompatible receiver")},TE=Ae("replace"),hJ=Math.max,gJ=Math.min,vJ=ht([].concat),pb=ht([].push),n9=ht("".indexOf),r9=ht("".slice),mJ="a".replace(/./,"$0")==="$0",o9=!!/./[TE]&&/./[TE]("a","$0")==="";wD("replace",function(t,e,n){var r=o9?"$":"$0";return[function(o,i){var a=Ir(this),u=o==null?void 0:ns(o,TE);return u?Wt(u,o,a,i):Wt(e,le(a),o,i)},function(o,i){var a=Me(this),u=le(o);if(typeof i=="string"&&n9(i,r)===-1&&n9(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=ie(i);l||(i=le(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=ep(a,u);if(d===null||(pb(p,d),!c))break;le(d[0])===""&&(a.lastIndex=ED(u,vc(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=le((d=p[m])[0]),b=hJ(gJ(Zp(d.index),u.length),0),w=[],E=1;E<d.length;E++)pb(w,(y=d[E])===void 0?y:String(y));var x=d.groups;if(l){var C=vJ([h],w,b,u);x!==void 0&&pb(C,x);var O=le(bD(i,void 0,C))}else O=dJ(h,u,b,w,x,i);b>=v&&(g+=r9(u,v,b)+O,v=b+h.length)}return g+r9(u,v)}]},!!Qt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!mJ||o9);/*! *****************************************************************************
- 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 PE=function(t,e){return PE=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])},PE(t,e)};function yc(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}PE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Sr=function(){return Sr=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},Sr.apply(this,arguments)};function Ar(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 Vt(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 jE(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var yJ=0,i9=function(){this.id=""+yJ++},bJ=Tn.set,wJ=Tn.getterFor("Array Iterator"),od=hD(Array,"Array",function(t,e){bJ(this,{type:"Array Iterator",target:za(t),index:0,kind:e})},function(){var t=wJ(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");Yl.Arguments=Yl.Array,vd("keys"),vd("values"),vd("entries");var Zl=function(t,e,n){for(var r in e)Kn(t,r,e[r],n);return t},EJ=Z.Array,DJ=Math.max,NE=function(t,e,n){for(var r=bs(t),o=Kl(e,r),i=Kl(n===void 0?r:n,r),a=EJ(DJ(i-o,0)),u=0;o<i;o++,u++)Qd(a,u,t[o]);return a.length=u,a},a9=Zd.f,u9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],CJ={f:function(t){return u9&&eo(t)=="Window"?function(e){try{return a9(e)}catch(n){return NE(u9)}}(t):a9(za(t))}},s9=Qt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Qh=Object.isExtensible,Cu=Qt(function(){Qh(1)})||s9?function(t){return!!de(t)&&(!s9||eo(t)!="ArrayBuffer")&&(!Qh||Qh(t))}:Qh,xJ=!Qt(function(){return Object.isExtensible(Object.preventExtensions({}))}),um=Xp(function(t){var e=uo.f,n=!1,r=eD("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=Zd.f,s=ht([].splice),l={};l[r]=1,u(l).length&&(Zd.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},xe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:CJ.f}))},fastKey:function(u,s){if(!de(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Re(u,r)){if(!Cu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Re(u,r)){if(!Cu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return xJ&&n&&Cu(u)&&!Re(u,r)&&i(u),u}};tm[r]=!0}),SJ=Z.TypeError,ug=function(t,e){this.stopped=t,this.result=e},l9=ug.prototype,np=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),y=rs(e,c),g=function(m){return r&&OE(r,"normal",m),new ug(!0,m)},v=function(m){return f?(Me(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=fD(t)))throw SJ(Z1(t)+" is not iterable");if(mN(o)){for(i=0,a=bs(t);a>i;i++)if((u=v(t[i]))&&es(l9,u))return u;return new ug(!1)}r=yN(t,o)}for(s=r.next;!(l=Wt(s,r)).done;){try{u=v(l.value)}catch(m){OE(r,"throw",m)}if(typeof u=="object"&&u&&es(l9,u))return u}return new ug(!1)},AJ=Z.TypeError,sm=function(t,e){if(es(e,t))return t;throw AJ("Incorrect invocation")},xN=function(t,e,n){var r,o;return Xl&&ie(r=e.constructor)&&r!==n&&de(o=r.prototype)&&o!==n.prototype&&Xl(t,o),t},SN=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Z[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=ht(u[v]);Kn(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!de(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!de(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!de(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(Jd(t,!ie(a)||!(o||u.forEach&&!Qt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),um.enable();else if(Jd(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Qt(function(){f.has(1)}),y=dD(function(v){new a(v)}),g=!o&&Qt(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){sm(v,u);var h=xN(new a,v,s);return m!=null&&np(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,xe({global:!0,forced:s!=a},l),vv(s,t),o||n.setStrong(s,t,r),s},t0=um.getWeakData,OJ=Tn.set,kJ=Tn.getterFor,BJ=mc.find,FJ=mc.findIndex,_J=ht([].splice),TJ=0,e0=function(t){return t.frozen||(t.frozen=new AN)},AN=function(){this.entries=[]},hb=function(t,e){return BJ(t.entries,function(n){return n[0]===e})};AN.prototype={get:function(t){var e=hb(this,t);if(e)return e[1]},has:function(t){return!!hb(this,t)},set:function(t,e){var n=hb(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=FJ(this.entries,function(n){return n[0]===t});return~e&&_J(this.entries,e,1),!!~e}};var nf,ON={getConstructor:function(t,e,n,r){var o=t(function(s,l){sm(s,i),OJ(s,{type:e,id:TJ++,frozen:void 0}),l!=null&&np(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=kJ(e),u=function(s,l,c){var f=a(s),p=t0(Me(l),!0);return p===!0?e0(f).set(l,c):p[f.id]=c,s};return Zl(i,{delete:function(s){var l=a(this);if(!de(s))return!1;var c=t0(s);return c===!0?e0(l).delete(s):c&&Re(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!de(s))return!1;var c=t0(s);return c===!0?e0(l).has(s):c&&Re(c,l.id)}}),Zl(i,n?{get:function(s){var l=a(this);if(de(s)){var c=t0(s);return c===!0?e0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},n0=Tn.enforce,PJ=!Z.ActiveXObject&&"ActiveXObject"in Z,kN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},jJ=SN("WeakMap",kN,ON);if(nN&&PJ){nf=ON.getConstructor(kN,"WeakMap",!0),um.enable();var rf=jJ.prototype,c9=ht(rf.delete),r0=ht(rf.has),f9=ht(rf.get),d9=ht(rf.set);Zl(rf,{delete:function(t){if(de(t)&&!Cu(t)){var e=n0(this);return e.frozen||(e.frozen=new nf),c9(this,t)||e.frozen.delete(t)}return c9(this,t)},has:function(t){if(de(t)&&!Cu(t)){var e=n0(this);return e.frozen||(e.frozen=new nf),r0(this,t)||e.frozen.has(t)}return r0(this,t)},get:function(t){if(de(t)&&!Cu(t)){var e=n0(this);return e.frozen||(e.frozen=new nf),r0(this,t)?f9(this,t):e.frozen.get(t)}return f9(this,t)},set:function(t,e){if(de(t)&&!Cu(t)){var n=n0(this);n.frozen||(n.frozen=new nf),r0(this,t)?d9(this,t,e):n.frozen.set(t,e)}else d9(this,t,e);return this}})}var gb=Ae("iterator"),p9=Ae("toStringTag"),vb=od.values,BN=function(t,e){if(t){if(t[gb]!==vb)try{to(t,gb,vb)}catch(r){t[gb]=vb}if(t[p9]||to(t,p9,e),dv[e]){for(var n in od)if(t[n]!==od[n])try{to(t,n,od[n])}catch(r){t[n]=od[n]}}}};for(var mb in dv)BN(Z[mb]&&Z[mb].prototype,mb);BN(oN,"DOMTokenList");var IE=new WeakMap,LE=new WeakMap,DD=new WeakMap,lm=new WeakMap,RE=new WeakMap,yv=new WeakMap,CD=new WeakMap,ME=new WeakMap,sg=new WeakMap,h9=new WeakMap,g9=new WeakMap,v9=new WeakMap,m9=new WeakMap,rp=new WeakMap,Jl=new WeakMap,xD=new WeakMap,bv=new WeakMap,zE=new WeakMap,wv=new WeakMap,lg=new WeakMap,FN=new WeakMap,Nu=new WeakMap,yb=new WeakMap,y9=new WeakMap,bb=new WeakMap,NJ=mc.find,b9=!0;"find"in[]&&Array(1).find(function(){b9=!1}),xe({target:"Array",proto:!0,forced:b9},{find:function(t){return NJ(this,t,arguments.length>1?arguments[1]:void 0)}}),vd("find"),xe({global:!0},{globalThis:Z});const IJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];ov&&(B.fn.css=ov),Nr&&(B.fn.append=Nr),Ll&&(B.fn.addClass=Ll),Rl&&(B.fn.removeClass=Rl),Ml&&(B.fn.hasClass=Ml),To&&(B.fn.on=To),Oa&&(B.fn.focus=Oa),jr&&(B.fn.attr=jr),tv&&(B.fn.removeAttr=tv),$l&&(B.fn.hide=$l),rv&&(B.fn.show=rv),PA&&(B.fn.offset=PA),ev&&(B.fn.width=ev),nv&&(B.fn.height=nv),Hl&&(B.fn.parent=Hl),uv&&(B.fn.parents=uv),NA&&(B.fn.is=NA),zl&&(B.fn.dataset=zl),_o&&(B.fn.val=_o),av&&(B.fn.text=av),Aa&&(B.fn.html=Aa),Ul&&(B.fn.children=Ul),Wl&&(B.fn.remove=Wl),Vl&&(B.fn.find=Vl),iv&&(B.fn.each=iv),Gl&&(B.fn.empty=Gl);var Do,kn,SD=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Wr=function(t){return os(t)&&t.nodeType===1},os=function(t){var e=SD(t);return!!e&&t instanceof e.Node},w9=function(t){var e=t&&t.anchorNode&&SD(t.anchorNode);return!!e&&t instanceof e.Selection},_N=function(t){return os(t)&&t.nodeType===3},$E=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},TN=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(os(r=i)&&r.nodeType===8||Wr(i)&&i.childNodes.length===0||Wr(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},LJ=function(t,e,n){return Vt(TN(t,e,n),1)[0]},RJ=function t(e){var n,r,o="";if(_N(e)&&e.nodeValue)return e.nodeValue;if(Wr(e)){try{for(var i=Ar(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
- `)}return o};function PN(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||PN(o,e)}}function E9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==Do.ELEMENT_NODE?"":e.tagName.toLowerCase()}(kn=Do||(Do={}))[kn.ELEMENT_NODE=1]="ELEMENT_NODE",kn[kn.TEXT_NODE=3]="TEXT_NODE",kn[kn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",kn[kn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",kn[kn.COMMENT_NODE=8]="COMMENT_NODE",kn[kn.DOCUMENT_NODE=9]="DOCUMENT_NODE",kn[kn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",kn[kn.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 HE=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),md=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var of=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),MJ=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),zJ=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),VE=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var af=!zJ&&!MJ&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=FN.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=lg.get(e);return n||(n=new i9,lg.set(e,n)),n},setNewKey:function(t){var e=new i9;lg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Jl.get(r);if(o==null){if(D.isEditor(r))return n;break}var i=rp.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 Jl.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 tt.get(t,n)},toDOMNode:function(t,e){var n;if(D.isEditor(e))n=xD.get(t);else{var r=A.findKey(t,e);n=zE.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=Wr(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=Vt(o?a:i,2),l=s[0],c=s[1],f=Vt(o?i:a,2),p=f[0],d=f[1],y=!!(Wr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Wr(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Vt(D.node(t,e.path),1)[0],a=A.toDOMNode(t,i);D.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=Ar(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,y=f.getAttribute("data-slate-length"),g=s+(y==null?d:parseInt(y,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=Wr(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?bv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(D.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=D.point(t,u,{edge:l?"start":"end"}),f=l?D.before(t,c):D.after(t,c);if(f)return D.range(t,f)}var p=this.getWindow(t).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((w9(e)?e.anchorNode:e.startContainer)&&(w9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=VE&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return L.isExpanded(p)&&L.isForward(p)&&Wr(i)&&D.void(t,{at:p.focus,mode:"highest"})&&(p=D.unhangRange(t,p,{voids:!0})),p},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Vt(o?e:function(h){var b,w=Vt(h,2),E=w[0],x=w[1];if(Wr(E)&&E.childNodes.length){var C=x===E.childNodes.length,O=C?x-1:x;for(E=(b=Vt(TN(E,O,C?"backward":"forward"),2))[0],C=(O=b[1])<x;Wr(E)&&E.childNodes.length;){var F=C?E.childNodes.length-1:0;E=LJ(E,F,C?"backward":"forward")}x=C&&E.textContent!=null?E.textContent.length:0}return[E,x]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),y=null;if(d){c=d.closest('[data-slate-node="text"]');var g=A.getWindow(t).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();jE(jE([],Vt(FA(v.querySelectorAll("[data-slate-zero-width]")))),Vt(FA(v.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=v.textContent.length,y=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(y=d).textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);y&&f===y.textContent.length&&(l.hasAttribute("data-slate-zero-width")||md&&((r=y.textContent)===null||r===void 0?void 0:r.endsWith(`
- `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=A.toSlateNode(t,c);return{path:A.findPath(t,m),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return D.hasPath(t,n.path)&&D.hasPath(t,r.path)},getNodeType:function(t){return ft.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return tt.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=D.nodes(t,{universal:!0});try{for(var i=Ar(o),a=i.next();!a.done;a=i.next()){var u=Vt(a.value,1)[0];ft.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=Vt(D.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=Vt(D.nodes(t,{match:function(r){return it.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Vt(D.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Vt(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(D.isEnd(t,n.anchor,e)||D.isEnd(t,n.focus,e))},getTextarea:function(t){var e=IE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return lm.get(t)||null},getHoverbar:function(t){return yv.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=Ar(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=D.nodes(t,{match:function(g){return!(!ft.isElement(g)||t.isInline(g))},universal:!0});try{for(var f=Ar(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var y=d[0];PN(A.toDOMNode(t,y),function(g,v){var m=B(v);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.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=D.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Ar(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=D.node(t,e);if(n==null)return!1;var r=Vt(n,1)[0].children;return r.length===1&&r[0].text===""}},$J=1,jN={},op={},HJ=mc.filter,VJ=im("filter");xe({target:"Array",proto:!0,forced:!VJ},{filter:function(t){return HJ(this,t,arguments.length>1?arguments[1]:void 0)}});var UE=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,D9=ht("".replace),Ev="["+UE+"]",UJ=RegExp("^"+Ev+Ev+"*"),WJ=RegExp(Ev+Ev+"*$"),wb=function(t){return function(e){var n=le(Ir(e));return 1&t&&(n=D9(n,UJ,"")),2&t&&(n=D9(n,WJ,"")),n}},GJ={start:wb(1),end:wb(2),trim:wb(3)},qJ=gc.PROPER,KJ=GJ.trim;xe({target:"String",proto:!0,forced:function(t){return Qt(function(){return!!UE[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||qJ&&UE[t].name!==t})}("trim")},{trim:function(){return KJ(this)}});var WE=[],NN={};function YJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var ip,Ls,C9,Eb,Dv=Z.Promise,x9=Ae("species"),AD=function(t){var e=ys(t),n=uo.f;sn&&e&&!e[x9]&&n(e,x9,{configurable:!0,get:function(){return this}})},XJ=Z.TypeError,ZJ=Ae("species"),IN=function(t,e){var n,r=Me(t).constructor;return r===void 0||(n=Me(r)[ZJ])==null?e:function(o){if(rm(o))return o;throw XJ(Z1(o)+" is not a constructor")}(n)},LN=ht([].slice),RN=/(?:ipad|iphone|ipod).*applewebkit/i.test(El),la=eo(Z.process)=="process",GE=Z.setImmediate,qE=Z.clearImmediate,JJ=Z.process,Db=Z.Dispatch,QJ=Z.Function,S9=Z.MessageChannel,tQ=Z.String,Cb=0,yd={};try{ip=Z.location}catch(t){}var OD=function(t){if(Re(yd,t)){var e=yd[t];delete yd[t],e()}},xb=function(t){return function(){OD(t)}},A9=function(t){OD(t.data)},O9=function(t){Z.postMessage(tQ(t),ip.protocol+"//"+ip.host)};GE&&qE||(GE=function(t){var e=LN(arguments,1);return yd[++Cb]=function(){bD(ie(t)?t:QJ(t),void 0,e)},Ls(Cb),Cb},qE=function(t){delete yd[t]},la?Ls=function(t){JJ.nextTick(xb(t))}:Db&&Db.now?Ls=function(t){Db.now(xb(t))}:S9&&!RN?(Eb=(C9=new S9).port2,C9.port1.onmessage=A9,Ls=rs(Eb.postMessage,Eb)):Z.addEventListener&&ie(Z.postMessage)&&!Z.importScripts&&ip&&ip.protocol!=="file:"&&!Qt(O9)?(Ls=O9,Z.addEventListener("message",A9,!1)):Ls="onreadystatechange"in Xd("script")?function(t){xE.appendChild(Xd("script")).onreadystatechange=function(){xE.removeChild(this),OD(t)}}:function(t){setTimeout(xb(t),0)});var uf,bu,bd,ll,Sb,Ab,Ob,k9,MN={set:GE,clear:qE},eQ=/ipad|iphone|ipod/i.test(El)&&Z.Pebble!==void 0,nQ=/web0s(?!.*chrome)/i.test(El),rQ=Jp.f,kb=MN.set,B9=Z.MutationObserver||Z.WebKitMutationObserver,F9=Z.document,_9=Z.process,o0=Z.Promise,T9=rQ(Z,"queueMicrotask"),zN=T9&&T9.value;zN||(uf=function(){var t,e;for(la&&(t=_9.domain)&&t.exit();bu;){e=bu.fn,bu=bu.next;try{e()}catch(n){throw bu?ll():bd=void 0,n}}bd=void 0,t&&t.enter()},RN||la||nQ||!B9||!F9?!eQ&&o0&&o0.resolve?((Ob=o0.resolve(void 0)).constructor=o0,k9=rs(Ob.then,Ob),ll=function(){k9(uf)}):la?ll=function(){_9.nextTick(uf)}:(kb=rs(kb,Z),ll=function(){kb(uf)}):(Sb=!0,Ab=F9.createTextNode(""),new B9(uf).observe(Ab,{characterData:!0}),ll=function(){Ab.data=Sb=!Sb}));var Bb,P9,$N,j9,HN=zN||function(t){var e={fn:t,next:void 0};bd&&(bd.next=e),bu||(bu=e,ll()),bd=e},oQ=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=ka(e),this.reject=ka(n)},kD={f:function(t){return new oQ(t)}},KE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},iQ=typeof window=="object",VN=MN.set,aQ=Ae("species"),bo="Promise",N9=Tn.getterFor(bo),uQ=Tn.set,sQ=Tn.getterFor(bo),pu=Dv&&Dv.prototype,Co=Dv,sf=pu,UN=Z.TypeError,YE=Z.document,BD=Z.process,Cl=kD.f,lQ=Cl,cQ=!!(YE&&YE.createEvent&&Z.dispatchEvent),WN=ie(Z.PromiseRejectionEvent),GN=!1,wd=Jd(bo,function(){var t=Q1(Co),e=t!==String(Co);if(!e&&Yd===66)return!0;if(Yd>=51&&/native code/.test(t))return!1;var n=new Co(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[aQ]=r,!(GN=n.then(function(){})instanceof r)||!e&&iQ&&!WN}),fQ=wd||!dD(function(t){Co.all(t).catch(function(){})}),qN=function(t){var e;return!(!de(t)||!ie(e=t.then))&&e},FD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;HN(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&&pQ(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(UN("Promise-chain cycle")):(u=qN(a))?Wt(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&dQ(t)})}},KN=function(t,e,n){var r,o;cQ?((r=YE.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Z.dispatchEvent(r)):r={promise:e,reason:n},!WN&&(o=Z["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=Z.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},dQ=function(t){Wt(VN,Z,function(){var e,n=t.facade,r=t.value;if(I9(t)&&(e=KE(function(){la?BD.emit("unhandledRejection",r,n):KN("unhandledrejection",n,r)}),t.rejection=la||I9(t)?2:1,e.error))throw e.value})},I9=function(t){return t.rejection!==1&&!t.parent},pQ=function(t){Wt(VN,Z,function(){var e=t.facade;la?BD.emit("rejectionHandled",e):KN("rejectionhandled",e,t.value)})},vl=function(t,e,n){return function(r){t(e,r,n)}},xl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,FD(t,!0))},XE=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw UN("Promise can't be resolved itself");var r=qN(e);r?HN(function(){var o={done:!1};try{Wt(r,e,vl(XE,o,t),vl(xl,o,t))}catch(i){xl(o,i,t)}}):(t.value=e,t.state=1,FD(t,!1))}catch(o){xl({done:!1},o,t)}}};if(wd&&(sf=(Co=function(t){sm(this,sf),ka(t),Wt(Bb,this);var e=N9(this);try{t(vl(XE,e),vl(xl,e))}catch(n){xl(e,n)}}).prototype,(Bb=function(t){uQ(this,{type:bo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Zl(sf,{then:function(t,e){var n=sQ(this),r=n.reactions,o=Cl(IN(this,Co));return o.ok=!ie(t)||t,o.fail=ie(e)&&e,o.domain=la?BD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&FD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),P9=function(){var t=new Bb,e=N9(t);this.promise=t,this.resolve=vl(XE,e),this.reject=vl(xl,e)},kD.f=Cl=function(t){return t===Co||t===$N?new P9(t):lQ(t)},ie(Dv)&&pu!==Object.prototype)){j9=pu.then,GN||(Kn(pu,"then",function(t,e){var n=this;return new Co(function(r,o){Wt(j9,n,r,o)}).then(t,e)},{unsafe:!0}),Kn(pu,"catch",sf.catch,{unsafe:!0}));try{delete pu.constructor}catch(t){}Xl&&Xl(pu,sf)}xe({global:!0,wrap:!0,forced:wd},{Promise:Co}),vv(Co,bo,!1),AD(bo),$N=ys(bo),xe({target:bo,stat:!0,forced:wd},{reject:function(t){var e=Cl(this);return Wt(e.reject,void 0,t),e.promise}}),xe({target:bo,stat:!0,forced:wd},{resolve:function(t){return function(e,n){if(Me(e),de(n)&&n.constructor===e)return n;var r=kD.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),xe({target:bo,stat:!0,forced:fQ},{all:function(t){var e=this,n=Cl(e),r=n.resolve,o=n.reject,i=KE(function(){var a=ka(e.resolve),u=[],s=0,l=1;np(t,function(c){var f=s++,p=!1;l++,Wt(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Cl(e),r=n.reject,o=KE(function(){var i=ka(e.resolve);np(t,function(a){Wt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Rs=am.UNSUPPORTED_Y,hQ=Math.min,YN=[].push,gQ=ht(/./.exec),Ms=ht(YN),lf=ht("".slice);function Lr(t){Promise.resolve().then(t)}function XN(t,e){return ft.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=D.isVoid(r,n),l="";s||(l=u.map(function(m){return XN(m,r)}).join(""));var c=function(m){return NN[m]||YJ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||WE.forEach(function(m){return p=m(n,p)}),typeof f=="string")return p;var d=f.prefix,y=d===void 0?"":d,g=f.suffix,v=g===void 0?"":g;return y&&(p=y+p),v&&(p+=v),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return WE.forEach(function(s){return i=s(n,i)}),i}(t,e)}function ZN(t){return"w-e-element-"+t}wD("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=le(Ir(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!sD(o))return Wt(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Wt(tp,y,a))&&!((l=y.lastIndex)>d&&(Ms(f,lf(a,d,s.index)),s.length>1&&s.index<a.length&&bD(YN,f,NE(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&gQ(y,"")||Ms(f,""):Ms(f,lf(a,d)),f.length>u?NE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Wt(e,this,o,i)}:e,[function(o,i){var a=Ir(this),u=o==null?void 0:ns(o,t);return u?Wt(u,o,a,i):Wt(r,le(a),o,i)},function(o,i){var a=Me(this),u=le(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=IN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Rs?"g":"y"),p=new l(Rs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return ep(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Rs?0:g;var m,h=ep(p,Rs?lf(u,g):u);if(h===null||(m=hQ(vc(p.lastIndex+(Rs?g:0)),u.length))===y)g=ED(u,g,c);else{if(Ms(v,lf(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Ms(v,h[b]),v.length===d)return v;g=y=m}}return Ms(v,lf(u,y)),v}]},!!Qt(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"}),Rs);var L9=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},R9=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return L9(r,o)&&L9(o,r)},JN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],QN=[],_D=[],Cv={},vQ=uo.f,mQ=Zd.f,yQ=Tn.enforce,bQ=Ae("match"),ni=Z.RegExp,cl=ni.prototype,wQ=Z.SyntaxError,EQ=ht(uD),DQ=ht(cl.exec),i0=ht("".charAt),M9=ht("".replace),z9=ht("".indexOf),CQ=ht("".slice),xQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Iu=/a/g,Fb=/a/g,SQ=new ni(Iu)!==Iu,tI=am.MISSED_STICKY,AQ=am.UNSUPPORTED_Y,OQ=sn&&(!SQ||tI||vD||mD||Qt(function(){return Fb[bQ]=!1,ni(Iu)!=Iu||ni(Fb)==Fb||ni(Iu,"i")!="/a/i"}));if(Jd("RegExp",OQ)){for(var Fi=function(t,e){var n,r,o,i,a,u,s=es(cl,this),l=sD(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Fi)return t;if((l||es(cl,t))&&(t=t.source,c&&(e="flags"in p?p.flags:EQ(p))),t=t===void 0?"":le(t),e=e===void 0?"":le(e),p=t,vD&&"dotAll"in Iu&&(r=!!e&&z9(e,"s")>-1)&&(e=M9(e,/s/g,"")),n=e,tI&&"sticky"in Iu&&(o=!!e&&z9(e,"y")>-1)&&AQ&&(e=M9(e,/y/g,"")),mD&&(i=function(d){for(var y,g=d.length,v=0,m="",h=[],b={},w=!1,E=!1,x=0,C="";v<=g;v++){if((y=i0(d,v))==="\\")y+=i0(d,++v);else if(y==="]")w=!1;else if(!w)switch(!0){case y==="[":w=!0;break;case y==="(":DQ(xQ,CQ(d,v+1))&&(v+=2,E=!0),m+=y,x++;continue;case(y===">"&&E):if(C===""||Re(b,C))throw new wQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,x],E=!1,C="";continue}E?C+=y:m+=y}return[m,h]}(t),t=i[0],f=i[1]),a=xN(ni(t,e),s?this:cl,Fi),(r||o||f.length)&&(u=yQ(a),r&&(u.dotAll=!0,u.raw=Fi(function(d){for(var y,g=d.length,v=0,m="",h=!1;v<=g;v++)(y=i0(d,v))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),m+=y):m+="[\\s\\S]":m+=y+i0(d,++v);return m}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{to(a,"source",p===""?"(?:)":p)}catch(d){}return a},kQ=function(t){t in Fi||vQ(Fi,t,{configurable:!0,get:function(){return ni[t]},set:function(e){ni[t]=e}})},$9=mQ(ni),H9=0;$9.length>H9;)kQ($9[H9++]);cl.constructor=Fi,Fi.prototype=cl,Kn(Z,"RegExp",Fi)}AD("RegExp");var BQ=new RegExp(String.fromCharCode(160),"g");function eI(t){return t.replace(BQ," ")}function V9(t,e){var n=t.length;if(n){var r=t[n-1];if(it.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function FQ(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function _b(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==Do.ELEMENT_NODE){if(l.nodeType===Do.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=eI(c),V9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(V9(u,`
- `)||u.push({text:`
- `}));var f=TD(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 Cv)if(i[0].matches(a))return Cv[a];return FQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){D.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),_D.forEach(function(a){i=a(t[0],i,e)}))}),o}function Tb(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(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122").replace(/"/g,'"')}(n);var r={text:n=eI(n)};return _D.forEach(function(o){r=o(t[0],r,e)}),r}function TD(t,e){QN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=E9(t);return n==="span"?t.attr("data-w-e-type")?_b(t,e):Tb(t,e):n==="code"?E9(t.parent())==="pre"?_b(t,e):Tb(t,e):JN.includes(n)?Tb(t,e):_b(t,e)}function nI(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function U9(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=TD(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var _Q=uo.f,W9=um.fastKey,G9=Tn.set,Pb=Tn.getterFor,TQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){sm(l,i),G9(l,{type:e,index:om(null),first:void 0,last:void 0,size:0}),sn||(l.size=0),c!=null&&np(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=Pb(e),u=function(l,c,f){var p,d,y=a(l),g=s(l,c);return g?g.value=f:(y.last=g={index:d=W9(c,!0),key:c,value:f,previous:p=y.last,next:void 0,removed:!1},y.first||(y.first=g),p&&(p.next=g),sn?y.size++:l.size++,d!=="F"&&(y.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=W9(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Zl(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,sn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,y=p.previous;delete f.index[p.index],p.removed=!0,y&&(y.next=d),d&&(d.previous=y),f.first==p&&(f.first=d),f.last==p&&(f.last=y),sn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=rs(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)}}),Zl(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)}}),sn&&_Q(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Pb(e),i=Pb(r);hD(t,e,function(a,u){G9(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),AD(e)}};SN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},TQ);var q9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function K9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var PQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Vt(L.edges(o),2),a=i[0],u=i[1],s=D.void(e,{at:a.path}),l=D.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(E){E.textContent&&E.textContent.trim()!==""&&(p=E)}),l){var d=Vt(l,1)[0],y=c.cloneRange(),g=A.toDOMNode(e,d);y.setEndAfter(g),f=y.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(E){var x=E.getAttribute("data-slate-zero-width")==="n";E.textContent=x?`
- `:""}),_N(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",RJ(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=Ar(f),y=d.next();!y.done;y=d.next()){var g=y.value;p&&N.splitNodes(e,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},id=function(t){return t!=null},jQ={object:!0,function:!0,undefined:!0},NQ=/^\s*class[\s{/}]/,IQ=Function.prototype.toString,Y9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(n){return!1}return!function(n){if(!function(r){return!!id(r)&&hasOwnProperty.call(jQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch(r){return!1}}(e)}(t)&&!NQ.test(IQ.call(t))},PD=function(t){return t!=null},LQ=Object.keys,RQ=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return LQ(PD(t)?Object(t):t)},MQ=function(t){if(!PD(t))throw new TypeError("Cannot use null or undefined");return t},zQ=Math.max,X9=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=zQ(arguments.length,2);for(t=Object(MQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)RQ(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},$Q=Array.prototype.forEach,HQ=Object.create,VQ=function(t,e){var n;for(n in t)e[n]=t[n]},Z9=function(t){var e=HQ(null);return $Q.call(arguments,function(n){PD(n)&&VQ(Object(n),e)}),e},jb="razdwatrzy",UQ=String.prototype.indexOf,cf=typeof jb.contains=="function"&&jb.contains("dwa")===!0&&jb.contains("foo")===!1?String.prototype.contains:function(t){return UQ.call(this,t,arguments[1])>-1},a0=Xp(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],id(n)?(o=cf.call(n,"c"),i=cf.call(n,"e"),a=cf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?X9(Z9(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],id(r)?Y9(r)?id(o)?Y9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,id(n)?(i=cf.call(n,"c"),a=cf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?X9(Z9(u),s):s}}),Nb=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},WQ=Xp(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var h;return Nb(m),y.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[v]?typeof h[v]=="object"?h[v].push(m):h[v]=[h[v],m]:h[v]=m,this},r=function(v,m){var h,b;return Nb(m),b=this,n.call(this,v,h=function(){o.call(b,v,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(v,m){var h,b,w,E;if(Nb(m),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(b=h[v])=="object")for(E=0;w=b[E];++E)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[v]=b[E?0:1]:b.splice(E,1));else b!==m&&b.__eeOnceListener__!==m||delete h[v];return this},i=function(v){var m,h,b,w,E;if(y.call(this,"__ee__")&&(w=this.__ee__[v]))if(typeof w=="object"){for(h=arguments.length,E=new Array(h-1),m=1;m<h;++m)E[m-1]=arguments[m];for(w=w.slice(),m=0;b=w[m];++m)l.call(b,this,E)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,E=new Array(h-1),m=1;m<h;++m)E[m-1]=arguments[m];l.call(w,this,E)}},a={on:n,once:r,off:o,emit:i},u={on:a0(n),once:a0(r),off:a0(o),emit:a0(i)},s=d({},u),t.exports=e=function(v){return v==null?f(s):d(Object(v),u)},e.methods=a});function u0(t){var e=y9.get(t);return e==null&&(e=WQ(),y9.set(t,e)),e}var xv=new WeakMap;function J9(t,e){var n=xv.get(t);n==null&&(n=new Set,xv.set(t,n)),n.add(e)}function GQ(t){return xv.get(t)||new Set}function qQ(t){xv.set(t,new Set)}function jD(t){var e=A.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function ND(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=jD(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var y=u-f;c.bottom=y+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function ID(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ft.isElement(e)&&t.isVoid(e),i=ft.isElement(e)&&t.isInline(e),a=wv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(C){var O=[];O.push(C);for(var F=0;O.length>0;){var R=O.pop();if(R==null||++F>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(IJ.includes(M)||M==="iframe"||M==="video")return R;var K=R.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)O.push(K[W])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var y=jD(t);if(y==null)return r;var g,v=y.top,m=y.left,h=y.width,b=y.height,w={},E=s-v,x=l-m;if(n==="bar")return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if(n==="modal")return o?i?x>(h-f)/2?w.right=h-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function ZE(t,e){Lr(function(){var n=jD(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,y=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=e.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=y+f-a)>0){var w=e.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),e.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var x=e.css("right"),C=parseInt(x.toString())-Math.abs(c);e.css("right",C+"px")}}})}var KQ=im("slice"),YQ=Ae("species"),Ib=Z.Array,XQ=Math.max;xe({target:"Array",proto:!0,forced:!KQ},{slice:function(t,e){var n,r,o,i=za(this),a=bs(i),u=Kl(t,a),s=Kl(e===void 0?a:e,a);if(pv(i)&&(n=i.constructor,(rm(n)&&(n===Ib||pv(n.prototype))||de(n)&&(n=n[YQ])===null)&&(n=void 0),n===Ib||n===void 0))return LN(i,u,s);for(r=new(n===void 0?Ib:n)(XQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Qd(r,o,i[u]);return r.length=o,r}});var ZQ=Jp.f,Q9=ht("".startsWith),JQ=ht("".slice),QQ=Math.min,rI=cD("startsWith"),ttt=!rI&&!!function(){var t=ZQ(String.prototype,"startsWith");return t&&!t.writable}();xe({target:"String",proto:!0,forced:!ttt&&!rI},{startsWith:function(t){var e=le(Ir(this));lD(t);var n=vc(QQ(arguments.length>1?arguments[1]:void 0,e.length)),r=le(t);return Q9?Q9(e,r,n):JQ(e,n,n+r.length)===r}});var zs=Object.assign,tO=Object.defineProperty,ett=ht([].concat),eO=!zs||Qt(function(){if(sn&&zs({b:1},zs(tO({},"a",{enumerable:!0,get:function(){tO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),zs({},t)[n]!=7||Dl(zs({},e)).join("")!=r})?function(t,e){for(var n=Ma(t),r=arguments.length,o=1,i=pN.f,a=cN.f;r>o;)for(var u,s=nm(arguments[o++]),l=i?ett(Dl(s),i(s)):Dl(s),c=l.length,f=0;c>f;)u=l[f++],sn&&!Wt(a,s,u)||(n[u]=s[u]);return n}:zs;xe({target:"Object",stat:!0,forced:Object.assign!==eO},{assign:eO});var ntt=["props","attrs","style","dataset","on","hook"];function oI(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!ntt.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=AK(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&oI(i)})}var JE=[],iI={};function rtt(t,e,n){return wt(n.isInline(t)?"span":"div",null,e)}function nO(t,e){return e===void 0&&(e=!1),wt("span",{"data-slate-string":!0},e?t+`
- `:t)}function Lb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),wt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?wt("br",null):null)}function QE(t,e,n,r){return rp.set(t,e),Jl.set(t,n),ft.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=D.isVoid(i,o),c=ZN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,y=d===void 0?[]:d,g=function(E){return iI[E]||rtt}(p);a=l?null:y.map(function(E,x){return QE(E,x,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Vt(tt.texts(o),1),b=Vt(h[0],1)[0],w=wt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},QE(b,0,o,i));v=wt(m,{style:{position:"relative"}},v,w),rp.set(b,0),Jl.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(E,x){var C=x;return JE.forEach(function(O){C=O(E,x)}),C}(o,v)),Lr(function(){var E=$E(c);E!=null&&(zE.set(u,E),wv.set(o,E),bv.set(E,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=it.decorations(o,c),p=f.map(function(g,v){var m=function(h,b,w,E,x){b===void 0&&(b=!1);var C=h.text,O=A.findPath(x,w),F=j.parent(O);if(D.isEditor(E))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return x.isVoid(E)?Lb(tt.string(E).length):C!==""||E.children[E.children.length-1]!==w||x.isInline(E)||D.string(x,F)!==""?C===""?Lb():b&&C.slice(-1)===`
- `?nO(C,!0):nO(C):Lb(0,!0)}(g,v===f.length-1,o,i,a);return m=function(h,b){var w=b;return JE.forEach(function(E){w=E(h,w)}),w}(g,m),wt("span",{"data-slate-leaf":!0},m)}),d=function(g){return"w-e-text-"+g}(u.id),y=wt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Lr(function(){var g=$E(d);g!=null&&(zE.set(u,g),wv.set(o,g),bv.set(g,o))}),y}(t,n,r)}function ott(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),ql("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var m=QE(g,v,e,e);return oI(m),m});var c=g9.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=Kq([Xq,tK,nK,Zq,Qq,Yq]))(n,s),g9.set(t,!1),v9.set(t,d)}else{var p=m9.get(t),d=v9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=$E(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var y=SD(n);y&&FN.set(e,y)}xD.set(e,n),wv.set(e,n),bv.set(n,e),m9.set(t,s)}}function rO(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function oO(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Rb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return oO(n.overflowY,e)||oO(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function s0(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 iO(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(Ct){return Ct!==a};if(!rO(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;rO(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Rb(f)&&!Rb(document.documentElement)||f!=null&&Rb(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),m=v.height,h=v.width,b=v.top,w=v.right,E=v.bottom,x=v.left,C=o==="start"||o==="nearest"?b:o==="end"?E:b+m/2,O=i==="center"?x+h/2:i==="end"?w:x,F=[],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,rt=M.bottom,ct=M.left;if(r==="if-needed"&&b>=0&&x>=0&&E<=d&&w<=p&&b>=W&&E<=rt&&x>=ct&&w<=q)return F;var lt=getComputedStyle(H),ut=parseInt(lt.borderLeftWidth,10),k=parseInt(lt.borderTopWidth,10),S=parseInt(lt.borderRightWidth,10),P=parseInt(lt.borderBottomWidth,10),$=0,Y=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-ut-S:0,at="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?C:o==="end"?C-d:o==="nearest"?s0(g,g+d,d,k,P,g+C,g+C+m,m):C-d/2,Y=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:s0(y,y+p,p,ut,S,y+O,y+O+h,h),$=Math.max(0,$+g),Y=Math.max(0,Y+y);else{$=o==="start"?C-W-k:o==="end"?C-rt+P+at:o==="nearest"?s0(W,rt,K,k,P+at,C,C+m,m):C-(W+K/2)+at/2,Y=i==="start"?O-ct-ut:i==="center"?O-(ct+U/2)+V/2:i==="end"?O-q+S+V:s0(ct,q,U,ut,S+V,O,O+h,h);var vt=H.scrollLeft,mt=H.scrollTop;C+=mt-($=Math.max(0,Math.min(mt+$,H.scrollHeight-K+at))),O+=vt-(Y=Math.max(0,Math.min(vt+Y,H.scrollWidth-U+V)))}F.push({el:H,top:$,left:Y})}return F}function aO(t){return t===Object(t)&&Object.keys(t).length!==0}function Dr(t,e){return os(e)&&A.hasDOMNode(t,e,{editable:!0})}function uO(t,e){if(t.getConfig().readOnly)return!1;var n=fl(t,e)&&A.toSlateNode(t,e);return D.isVoid(t,n)}function fl(t,e){return os(e)&&A.hasDOMNode(t,e)}function aI(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=xD.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,y=void 0;(y=d[p])&&y.matches("table")&&(c=!1),(y=d[p-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,r);if(g){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 m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(aO(b)&&typeof b.behavior=="function")return b.behavior(w?[]:iO(h,b));if(!w){var E=function(x){return x===!1?{block:"end",inline:"nearest"}:aO(x)?x:{block:"start",inline:"nearest"}}(b);(function(x,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;x.forEach(function(F){var R=F.el,H=F.top,M=F.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:C}):(R.scrollTop=H,R.scrollLeft=M)})})(iO(h,E),E.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&md&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Mb=new WeakMap,sO=new WeakMap,itt={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},att={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},utt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},we=function(t){var e=itt[t],n=att[t],r=utt[t],o=e&&Iy(e),i=n&&Iy(n),a=r&&Iy(r);return function(u){return!(!o||!o(u))||!!(HE&&i&&i(u))||!(HE||!a||!a(u))}},De={isBold:we("bold"),isCompose:we("compose"),isMoveBackward:we("moveBackward"),isMoveForward:we("moveForward"),isDeleteBackward:we("deleteBackward"),isDeleteForward:we("deleteForward"),isDeleteLineBackward:we("deleteLineBackward"),isDeleteLineForward:we("deleteLineForward"),isDeleteWordBackward:we("deleteWordBackward"),isDeleteWordForward:we("deleteWordForward"),isExtendBackward:we("extendBackward"),isExtendForward:we("extendForward"),isExtendLineBackward:we("extendLineBackward"),isExtendLineForward:we("extendLineForward"),isItalic:we("italic"),isMoveLineBackward:we("moveLineBackward"),isMoveLineForward:we("moveLineForward"),isMoveWordBackward:we("moveWordBackward"),isMoveWordForward:we("moveWordForward"),isRedo:we("redo"),isSplitBlock:we("splitBlock"),isTransposeCharacter:we("transposeCharacter"),isUndo:we("undo"),isTab:we("tab"),isSelectAll:we("selectAll")};function Ue(t){t.preventDefault()}var stt={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(af&&!o&&Dr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Vt(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";D.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":D.deleteForward(n);break;case"deleteContentBackward":D.deleteBackward(n);break;case"deleteEntireSoftLine":D.deleteBackward(n,{unit:"line"}),D.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":D.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!bb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&D.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&Dr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Wr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&os(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ft.isElement(s)&&!n.isVoid(s))return}if(of){var l=a.getSelection();l==null||l.removeAllRanges()}Nu.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,md&&t.target!==r?r.focus():Nu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&fl(n,t.target)&&os(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(D.hasPath(n,o)&&tt.get(n,o)===r){var i=D.start(n,o),a=D.end(n,o),u=D.void(n,{at:i}),s=D.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=D.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(Dr(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(D.deleteFragment(n),Promise.resolve().then(function(){aI(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Mb.set(n,i),sO.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(Dr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(VE||md)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Vt(D.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Vt(D.node(n,i.path.slice(0,u+1)),1)[0];if(ft.isElement(s)&&((of||md)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=Mb.get(n)||"",c>0&&D.insertText(n,l.slice(0,c)),e.changeViewState()):D.insertText(n,l)}else D.insertText(n,l);of||setTimeout(function(){var f=n.selection;if(f!=null){var p=sO.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=Mb.get(n)||"")}})}}}},compositionupdate:function(t,e,n){Dr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&Dr(n,r.target)){if(function(a,u){var s=lm.get(a),l=s&&s.getMenus(),c=yv.get(a),f=c&&c.getMenus(),p=Sr(Sr({},l),f);for(var d in p){var y=p[d],g=y.hotkey;if(g&&BK(g,u)&&!y.isDisabled(a)){var v=y.getValue(a);y.exec(a,v)}}}(n,r),De.isTab(r))return Ue(r),void n.handleTab();if(De.isRedo(r))return Ue(r),void(typeof n.redo=="function"&&n.redo());if(De.isUndo(r))return Ue(r),void(typeof n.undo=="function"&&n.undo());if(De.isMoveLineBackward(r))return Ue(r),void N.move(n,{unit:"line",reverse:!0});if(De.isMoveLineForward(r))return Ue(r),void N.move(n,{unit:"line"});if(De.isExtendLineBackward(r))return Ue(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(De.isExtendLineForward(r))return Ue(r),void N.move(n,{unit:"line",edge:"focus"});if(De.isMoveBackward(r))return Ue(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(De.isMoveForward(r))return Ue(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(De.isMoveWordBackward(r))return Ue(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(De.isMoveWordForward(r))return Ue(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(De.isSelectAll(r))return Ue(r),void n.selectAll();if(af){if((VE||of)&&o&&(De.isDeleteBackward(r)||De.isDeleteForward(r))&&L.isCollapsed(o)){var i=tt.parent(n,o.anchor.path);if(ft.isElement(i)&&D.isVoid(n,i)&&D.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(De.isBold(r)||De.isItalic(r)||De.isTransposeCharacter(r))return void Ue(r);if(De.isSplitBlock(r))return Ue(r),void D.insertBreak(n);if(De.isDeleteBackward(r))return Ue(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n));if(De.isDeleteForward(r))return Ue(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n));if(De.isDeleteLineBackward(r))return Ue(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"line"}));if(De.isDeleteLineForward(r))return Ue(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"line"}));if(De.isDeleteWordBackward(r))return Ue(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"word"}));if(De.isDeleteWordForward(r))return Ue(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!af&&!n.getConfig().readOnly&&Dr(n,t.target)){t.preventDefault();var r=t.key;D.insertText(n,r)}},copy:function(t,e,n){var r=t;if(Dr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&Dr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))D.deleteFragment(n);else{var a=tt.parent(n,o.anchor.path);D.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){bb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&Dr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void bb.set(n,!1);if(!af||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(fl(n,t.target)){var r=A.toSlateNode(n,t.target);D.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(fl(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(D.isVoid(n,o)||D.void(n,{at:i,voids:!0})){var a=D.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&fl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&fl(n,r.target)&&o!=null&&!(af&&of&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},ltt=1,ctt=function(){function t(e){var n=this;this.id=ltt++,this.$textArea=null,this.$progressBar=B('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=B('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=ts(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=A.findDocumentOrShadowRoot(s),d=p.activeElement,y=A.toDOMNode(s,s),g=p.getSelection();if(d===y?(u.latestElement=d,Nu.set(s,!0)):Nu.delete(s),!g)return N.deselect(s);var v=g.anchorNode,m=g.focusNode,h=Dr(s,v)||uO(s,v),b=Dr(s,m)||uO(s,m);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=B(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Lr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=LE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(G5(stt,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",ts(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;ott(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Lr(function(){aI(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function LD(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&LD(e)}function RD(){return B('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function uI(){return B('<div class="w-e-bar-divider"></div>')}function sI(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=HE?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
- `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}wD("match",function(t,e,n){return[function(r){var o=Ir(this),i=r==null?void 0:ns(r,t);return i?Wt(i,r,o):new RegExp(r)[t](le(o))},function(r){var o=Me(this),i=le(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return ep(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=ep(o,i))!==null;){var f=le(s[0]);l[c]=f,f===""&&(o.lastIndex=ED(i,vc(o.lastIndex),u)),c++}return c===0?null:l}]});var MD=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);LD(d),p.append(d)}else p.text(u);sI(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),Lr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),ir(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=ir(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=ir(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=ir(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}(),ftt=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return yc(e,t),e.prototype.onButtonClick=function(){},e}(MD),zD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=ME.get(e);n==null&&(n=new Set,ME.set(e,n)),n.add(this),sg.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=sg.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=sg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),dtt=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 yc(e,t),e.prototype.genSelfElem=function(){return null},e}(zD),ptt=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=RD();i.$button.append(a)}return i}return yc(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=ir(this);if(this.dropPanel==null){var o=new dtt(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}(MD),htt=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 yc(e,t),e.prototype.genSelfElem=function(){var n=this,r=B('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=sg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(zD);function ar(t,e,n){var r=B('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function bc(t,e){var n=B('<div class="button-container"></div>'),r=B('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var gtt=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=B("body"),i.modal=null,i.menu=r,i}return yc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=ir(this),r=this.menu.getModalPositionNode(n);return ft.isElement(r)?ID(n,r,"modal"):ND(n)},e.prototype.handleModal=function(){var n=ir(this),r=this.menu;if(this.modal==null){var o=new htt(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=ir(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||ZE(o,n.$elem),setTimeout(function(){o.blur()})}},e}(MD),vtt=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return yc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=B("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=B('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(B('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(zD),mtt=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" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),sI(p,l,a,f,r),this.$elem.append(p),this.menu=n,Lr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),ir(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=ir(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new vtt(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=ir(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=ir(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=RD();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=ir(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),lO=function(){function t(e){this.$elem=B('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=B('<div class="w-e-bar-item-menus-container"></div>'),this.$button=B('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=B(r);LD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=RD();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),cO=new WeakMap;function ir(t){var e=CD.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function lI(t,e,n){n===void 0&&(n=!1);var r=cO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new ptt(t,e,n):a?new gtt(t,e,n):new ftt(t,e,n)}if(o==="select"&&(r=new mtt(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return cO.set(e,r),r}function ytt(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!it.isText(e)}var btt=function(){function t(){var e=this;this.$elem=B('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Mj(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ft.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Lr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Lr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=uI();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=op[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=lI(e,o);this.hoverbarItems.push(a),CD.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ft.isElement(e)){var o=ID(n,e,"bar");return r.css(o),void ZE(n,r)}if(it.isText(e))return o=ND(n),r.css(o),void ZE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(g,v){return A.checkNodeType(v,u)},d=Vt(D.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),y=d[0];if(y!=null)return r=y[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=RE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=ytt),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function cI(t,e,n,r){if(rp.set(t,e),Jl.set(t,n),ft.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return cI(u,s,t,r)}),D.isVoid(r,t)){var i=Vt(tt.texts(t),1),a=Vt(i[0],1)[0];rp.set(a,0),Jl.set(a,t)}}}function wtt(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:E}=w;if(E.length>0){var x=E[E.length-1];gl.withoutSaving(h,()=>{D.withoutNormalizing(h,()=>{for(var C of x)h.apply(C)})}),w.redos.pop(),w.undos.push(x)}},h.undo=()=>{var{history:w}=h,{undos:E}=w;if(E.length>0){var x=E[E.length-1];gl.withoutSaving(h,()=>{D.withoutNormalizing(h,()=>{var C=x.map(ta.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(x),w.undos.pop()}},h.apply=w=>{var{operations:E,history:x}=h,{undos:C}=x,O=C[C.length-1],F=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,F),H=gl.isSaving(h),M=gl.isMerging(h);if(H==null&&(H=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(E.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!j.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!j.equals(U.path,W.path)))(w,F)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(U=>U.type!=="set_selection")(w)&&(x.redos=[])}b(w)},h})(function(m){var h=m,b=h.insertText,w=h.insertNode,E=h.insertFragment,x=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<C.length?b(C.slice(0,O)):b(C))}else b(C)},h.insertNode=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<tt.string(C).length||w(C)}else w(C)},h.insertFragment=function(C){if(h.getConfig().maxLength)if(C.length!==1)C.forEach(function(F){h.insertNode(F)});else{var O=C[0];if(A.getLeftLengthOfMaxLength(h)<tt.string(O).length)return;E(C)}else E(C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var R=document.createElement("div");R.innerHTML=C;var H=Array.from(R.childNodes).reduce(function(M,K){var U=K.nodeType,W=K.nodeName;return K?U===Do.TEXT_NODE?M+(K.textContent||""):U===Do.ELEMENT_NODE?q9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");F<H.length||x(C,O)}}else x(C,O)},h}(function(m){var h=m;return h.on=function(b,w){var E=u0(h);if(E.on(b,w),b==="destroyed"&&J9(h,w),b!=="destroyed"){var x=function(){return E.off(b,w)};E.on("destroyed",x),J9(h,x)}},h.once=function(b,w){u0(h).once(b,w)},h.off=function(b,w){u0(h).off(b,w)},h.emit=function(b){for(var w=[],E=1;E<arguments.length;E++)w[E-1]=arguments[E];var x=u0(h);x.emit.apply(x,jE([b],Vt(w))),b==="destroyed"&&(GQ(h).forEach(function(C){return x.off("destroyed",C)}),qQ(h))},h}(function(m){var h=m;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=yb.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return ND(h)},h.getNodePosition=function(b){return ID(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Vt(L.edges(b),2),E=w[0],x=w[1],C=Vt(D.edges(h,[]),2),O=C[0],F=C[1];return!(!Ft.equals(E,O)||!Ft.equals(x,F))},h.selectAll=function(){var b=D.start(h,[]),w=D.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,E=h.apply,x=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,F,R,H,M,K,U,W,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var rt=Ar(D.levels(h,{at:C.path})),ct=rt.next();!ct.done;ct=rt.next()){var lt=Vt(ct.value,2),ut=lt[0],k=lt[1],S=A.findKey(h,ut);q.push([k,S])}}catch(Lt){O={error:Lt}}finally{try{ct&&!ct.done&&(F=rt.return)&&F.call(rt)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=Ar(D.levels(h,{at:j.parent(C.path)})),$=P.next();!$.done;$=P.next()){var Y=Vt($.value,2);ut=Y[0],k=Y[1],S=A.findKey(h,ut),q.push([k,S])}}catch(Lt){R={error:Lt}}finally{try{$&&!$.done&&(H=P.return)&&H.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=Ar(D.levels(h,{at:j.common(j.parent(C.path),j.parent(C.newPath))})),at=V.next();!at.done;at=V.next()){var vt=Vt(at.value,2);ut=vt[0],k=vt[1],S=A.findKey(h,ut),q.push([k,S])}}catch(Lt){M={error:Lt}}finally{try{at&&!at.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}E(C);try{for(var mt=Ar(q),Ct=mt.next();!Ct.done;Ct=mt.next()){var G=Vt(Ct.value,2);k=G[0],S=G[1],ut=Vt(D.node(h,k),1)[0],lg.set(ut,S)}}catch(Lt){U={error:Lt}}finally{try{Ct&&!Ct.done&&(W=mt.return)&&W.call(mt)}finally{if(U)throw U.error}}},h.deleteBackward=function(C){if(C!=="line")return x(C);if(m.selection&&L.isCollapsed(m.selection)){var O=D.above(m,{match:function(M){return D.isBlock(m,M)},at:m.selection});if(O){var F=Vt(O,2)[1],R=D.range(m,F,m.selection.anchor),H=function(M,K){var U=D.range(M,L.end(K)),W=Array.from(D.positions(M,{at:K})),q=0,rt=W.length,ct=Math.floor(rt/2);if(R9(M,D.range(M,W[q]),U))return D.range(M,W[q],U);if(W.length<2)return D.range(M,W[W.length-1],U);for(;ct!==W.length&&ct!==q;)R9(M,D.range(M,W[ct]),U)?rt=ct:q=ct,ct=Math.floor((q+rt)/2);return D.range(M,W[rt],U)}(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&yb.set(h,C),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return XN(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return tt.string(O)}).join(`
- `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":D.string(m,C)},h.getElemsByType=function(C,O){var F,R;O===void 0&&(O=!1);var H=[],M=D.nodes(h,{at:[],universal:!0});try{for(var K=Ar(M),U=K.next();!U.done;U=K.next()){var W=Vt(U.value,1)[0];if(ft.isElement(W)&&(O?W.type.indexOf(C)>=0:W.type===C)){var q=ZN(A.findKey(h,W).id);H.push(Sr(Sr({},W),{id:q}))}}}catch(rt){F={error:rt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(F)throw F.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 F=O[0];if(F==null)return!0;if(ft.isElement(F)&&F.type==="paragraph"){var R=F.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||it.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:D.start(h,[]),focus:D.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 F=document.createElement("div");F.innerHTML=C;var R=Array.from(F.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===Do.TEXT_NODE||W===Do.ELEMENT_NODE&&!q9.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]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,rt=U.textContent,ct=rt===void 0?"":rt;if(W!==Do.TEXT_NODE)if(q!=="BR"){var lt=U,ut=!1;if(JN.includes(q.toLowerCase()))ut=!0;else for(var k in Cv)if(lt.matches(k)){ut=!0;break}if(ut){var S=TD(B(lt),h);return Array.isArray(S)?(S.forEach(function($){return K9(h,$)}),K++):(K9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(lt).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(lt.innerHTML,!0)}else h.insertText(`
- `);else{if(!ct||!ct.trim())return;h.insertNode({text:ct})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),F=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=U9(h,C);if(N.insertFragment(h,H),F||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch(M){h.select(D.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in op)b.push(w);return b},h.getConfig=function(){var b=h9.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 E=h.getConfig().customAlert;E&&E(b,w)},h}(function(m){var h=PQ(nG());return h.id="wangEditor-"+$J++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Nu.set(h,!0),b){var w=D.end(h,[]);N.select(h,w)}else{var E=yb.get(h);E?N.select(h,E):N.select(h,D.start(h,[]))}},h.isFocused=function(){return!!Nu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Nu.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(),IE.delete(h),LE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),lm.delete(h),DD.delete(w));var E=A.getHoverbar(h);E&&(E.destroy(),yv.delete(h),RE.delete(E)),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 E=B("#"+b);if(E.length!==0){var x=E[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,F=C.$scroll,R=E.offset().top,H=O.offset().top;F[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=ME.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 E=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==E[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`);E.addClass("w-e-full-screen-container");var x=E.css("z-index");E.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(m,h){return nI(m,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var h=zj(jN),b={},w=m.MENU_CONF,E=w===void 0?{}:w;return G5(h,function(x,C){b[C]=Sr(Sr({},x),E[C]||{})}),delete m.MENU_CONF,Sr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(x,C){window.alert(C+`:
- `+x)}},m)}(o);h9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=U9(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 ctt(n);IE.set(l,d),LE.set(d,l),d.changeViewState(),Lr(function(){var m=d.$scroll;m!=null&&m.height()<300&&console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38
- Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var y=void 0;Object.keys(p).length>0&&(y=new btt,RE.set(y,l),yv.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return cI(m,h,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),v&&l.on("destroyed",function(){return v(l)}),Lr(function(){return l.emit("created")}),l}var Ett=im("splice"),Dtt=Z.TypeError,Ctt=Math.max,xtt=Math.min;xe({target:"Array",proto:!0,forced:!Ett},{splice:function(t,e){var n,r,o,i,a,u,s=Ma(this),l=bs(s),c=Kl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=xtt(Ctt(Zp(e),0),l-c)),l+n-r>9007199254740991)throw Dtt("Maximum allowed length exceeded");for(o=uN(s,r),i=0;i<r;i++)(a=c+i)in s&&Qd(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 Stt=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=Mj(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),Lr(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=zj(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,g){f.splice(s.index+g,0,y)}));var p=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),d=p.length;p.forEach(function(y,g){if(y==="|"){if(g===0||g+1===d||n==="|")return;var v=uI();return r.append(v),void(n=y)}if(typeof y=="string")return e.registerSingleItem(y,e),void(n=y);e.registerGroup(y),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new lO(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 lO,i=this.menus,a=i[e];if(a==null){var u=op[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=lI(e,a,o);this.toolbarItems.push(s),CD.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=DD.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}(),Att=gc.EXISTS,Ott=uo.f,fI=Function.prototype,ktt=ht(fI.toString),dI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Btt=ht(dI.exec);function pI(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,y=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,E=t.onSuccess,x=E===void 0?function(K,U){}:E,C=t.onError,O=C===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:C,F=t.onProgress,R=F===void 0?function(K){}:F;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=Vt(K.split("#"),2),q=W[0],rt=W[1],ct=[];G5(U,function(ut,k){ct.push(k+"="+ut)});var lt=ct.join("&");return q=q.indexOf("?")>0?q+"&"+lt:q+"?"+lt,rt?q+"#"+rt:q}(H,c));var M=new nd({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(nX,{endpoint:H,headers:y,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(rt){console.error("wangEditor upload file - onSuccess error",rt)}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 ca(t){return ca=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},ca(t)}function Ftt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function We(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){Ftt(t,o,n[o])})}return t}function di(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fO(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 pi(t,e,n){return e&&fO(t.prototype,e),n&&fO(t,n),t}function is(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ap(t,e){if(e&&(ca(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return is(t)}function Ql(t){return Ql=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ql(t)}function t6(t,e){return t6=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},t6(t,e)}function cm(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&&t6(t,e)}sn&&!Att&&Ott(fI,"name",{configurable:!0,get:function(){try{return Btt(dI,ktt(this))[1]}catch(t){return""}}});var _tt={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)}},ri=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};di(this,t),this.init(e,n)}return pi(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||_tt,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(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,We({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Ba=function(){function t(){di(this,t),this.observers={}}return pi(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function ff(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function dO(t){return t==null?"":""+t}function Ttt(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function $D(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function pO(t,e,n){var r=$D(t,e,Object);r.obj[r.k]=n}function Sv(t,e){var n=$D(t,e),r=n.obj,o=n.k;if(r)return r[o]}function hO(t,e,n){var r=Sv(t,n);return r!==void 0?r:Sv(e,n)}function hI(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):hI(t[r],e[r],n):t[r]=e[r]);return t}function $s(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ptt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function jtt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Ptt[e]}):t}var fm=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function gI(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?gI(s,l,n):void 0}o=o[r[i]]}return o}}var Ntt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return di(this,e),r=ap(this,Ql(e).call(this)),fm&&Ba.call(is(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return cm(e,Ba),pi(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Sv(this.data,s);return l||!u||typeof o!="string"?l:gI(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),pO(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=Sv(this.data,s)||{};i?hI(l,o,a):l=We({},l,o),pO(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),vI={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},gO={},vO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return di(this,e),r=ap(this,Ql(e).call(this)),fm&&Ba.call(is(r)),Ttt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,is(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ri.create("translator"),r}return cm(e,Ba),pi(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(ca(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var y=this.resolve(n,r),g=y&&y.res,v=y&&y.usedKey||s,m=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,x=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(E&&g&&x&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,We({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},F=C?m:v;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var H="".concat(F).concat(a).concat(R);O[R]=this.translate(H,We({},r,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=g[R])}g=O}}else if(E&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var M=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=e.hasDefaultValue(r),q=U?this.pluralResolver.getSuffix(f,r.count):"",rt=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(g)&&W&&(M=!0,g=rt),this.isValidLookup(g)||(K=!0,g=s);var ct=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,lt=ct&&K?void 0:g,ut=W&&rt!==g&&this.options.updateMissing;if(K||M||ut){if(this.logger.log(ut?"updateKey":"missingKey",f,c,s,ut?rt:g),a){var k=this.resolve(s,We({},r,{keySeparator:!1}));k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var S=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var $=0;$<P.length;$++)S.push(P[$]);else this.options.saveMissingTo==="all"?S=this.languageUtils.toResolveHierarchy(r.lng||this.language):S.push(r.lng||this.language);var Y=function(V,at,vt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,at,ut?vt:lt,ut,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,at,ut?vt:lt,ut,r),i.emit("missingKey",V,c,at,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(at){Y([V],s+at,r["defaultValue".concat(at)]||rt)})}):Y(S,s,rt))}g=this.extendTranslation(g,n,r,y,o),K&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(We({},o,{interpolation:We({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=We({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return a&&a[0]===v[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):u.translate.apply(u,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,y=typeof d=="string"?[d]:d;return n!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(n=vI.handle(y,n,r,this.options&&this.options.postProcessPassResolved?We({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var y=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(m){s.isValidLookup(r)||(u=m,!gO["".concat(v[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(gO["".concat(v[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,E=p,x=[E];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(x,p,h,m,l):(y&&(b=s.pluralResolver.getSuffix(h,l.count)),y&&g&&x.push(E+b),g&&x.push(E+="".concat(s.options.contextSeparator).concat(l.context)),y&&x.push(E+=b));w=x.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,m,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function zb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Itt=function(){function t(e){di(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ri.create("languageUtils")}return pi(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=zb(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=zb(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=zb(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),Ltt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Rtt={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};function Mtt(){var t={};return Ltt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Rtt[e.fc]}})}),t}var ztt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};di(this,t),this.languageUtils=e,this.options=n,this.logger=ri.create("pluralResolver"),this.rules=Mtt()}return pi(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),$tt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};di(this,t),this.logger=ri.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return pi(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:jtt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?$s(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?$s(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?$s(n.nestingPrefix):n.nestingPrefixEscaped||$s("$t("),this.nestingSuffix=n.nestingSuffix?$s(n.nestingSuffix):n.nestingSuffixEscaped||$s(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=hO(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,We({},o,n,{interpolationkey:g})):v}var m=g.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(hO(n,l,h),b,r,We({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return y.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(e,i,o);a=typeof v=="string"?v:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=dO(a));var m=g.safeValue(a);if(e=e.replace(i[0],m),d?(g.regex.lastIndex+=m.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=We({},a);function s(p,d){var y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;var g=p.split(new RegExp("".concat(y,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),d&&(u=We({},d,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(y).concat(v)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=dO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,We({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Htt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return di(this,e),i=ap(this,Ql(e).call(this)),fm&&Ba.call(is(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ri.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return cm(e,Ba),pi(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var y="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,p=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var y=$D(c,f,Object),g=y.obj,v=y.k;g[v]=g[v]||[],g[v].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,We({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function Vtt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(ca(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),ca(t[2])==="object"||ca(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function mO(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function l0(){}var Utt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(di(this,e),n=ap(this,Ql(e).call(this)),fm&&Ba.call(is(n)),n.options=mO(r),n.services={},n.logger=ri,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),ap(n,is(n));setTimeout(function(){n.init(r,o)},0)}return n}return cm(e,Ba),pi(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=We({},Vtt(),this.options,mO(r)),this.format=this.options.interpolation.format,o||(o=l0),!this.options.isClone){this.modules.logger?ri.init(i(this.modules.logger),this.options):ri.init(null,this.options);var a=new Itt(this.options);this.store=new Ntt(this.options.resources,this.options);var u=this.services;u.logger=ri,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new ztt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new $tt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Htt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new vO(this.services,this.options),this.translator.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.external.forEach(function(d){d.init&&d.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments),n}});var f=ff(),p=function(){var d=function(y,g){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(g),o(y,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l0,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=ff();return n||(n=this.languages),r||(r=this.options.ns),o||(o=l0),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&vI.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=ff();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(ca(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=We({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var y=i.options.keySeparator||".",g=o?"".concat(o).concat(y).concat(s):s;return i.t(g,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=ff();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=ff();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l0,i=We({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=We({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new vO(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Av=new Utt;function Zn(t,e){Av.addResourceBundle(t,"translation",e,!0,!0)}Av.init({lng:"zh-CN",resources:{}});var et=Av.t.bind(Av);Zn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Zn("zh-CN",{editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}});var Wtt=F5?{}.toString:function(){return"[object "+U1(this)+"]"};F5||ua(Object.prototype,"toString",Wtt,{unsafe:!0});var yO=Array.isArray||function(t){return Bu(t)=="Array"},mI=function(){},Gtt=[],yI=Hp("Reflect","construct"),HD=/^\s*(?:class|function)\b/,qtt=ue(HD.exec),Ktt=!HD.exec(mI),df=function(t){if(!Ke(t))return!1;try{return yI(mI,Gtt,t),!0}catch(e){return!1}},Ytt=!yI||dn(function(){var t;return df(df.call)||!df(Object)||!df(function(){t=!0})||t})?function(t){if(!Ke(t))return!1;switch(U1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ktt||!!qtt(HD,S5(t))}:df,Xtt=Mn("species"),bO=Dt.Array,Ztt=function(t,e){return new(function(n){var r;return yO(n)&&(r=n.constructor,(Ytt(r)&&(r===bO||yO(r.prototype))||qr(r)&&(r=r[Xtt])===null)&&(r=void 0)),r===void 0?bO:r}(t))(e===0?0:e)},wO=ue([].push),_i=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=E5(s),g=NP(y),v=qP(l,c),m=V1(g),h=0,b=f||Ztt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:wO(w,p)}else switch(t){case 4:return!1;case 7:wO(w,p)}return i?-1:r||o?o:w}},Jtt={forEach:_i(0),map:_i(1),filter:_i(2),some:_i(3),every:_i(4),find:_i(5),findIndex:_i(6),filterReject:_i(7)}.forEach,Qtt=function(t,e){var n=[][t];return!!n&&dn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),$b=Qtt?[].forEach:function(t){return Jtt(this,t,arguments.length>1?arguments[1]:void 0)},bI=function(t){if(t&&t.forEach!==$b)try{Rn(t,"forEach",$b)}catch(e){t.forEach=$b}};for(var Hb in Wg)Wg[Hb]&&bI(Dt[Hb]&&Dt[Hb].prototype);bI(XP),Zn("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Zn("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var tet={type:"paragraph",renderElem:function(t,e,n){return wt("p",null,e)}},Ov=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function dm(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ti,cg,c0=function(t){return t&&t.Math==Math&&t},At=c0(typeof globalThis=="object"&&globalThis)||c0(typeof window=="object"&&window)||c0(typeof self=="object"&&self)||c0(typeof Ov=="object"&&Ov)||function(){return this}()||Function("return this")(),Se=function(t){try{return!!t()}catch(e){return!0}},io=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pf=Function.prototype.call,Pe=pf.bind?pf.bind(pf):function(){return pf.apply(pf,arguments)},EO={}.propertyIsEnumerable,DO=Object.getOwnPropertyDescriptor,eet=DO&&!EO.call({1:2},1)?function(t){var e=DO(this,t);return!!e&&e.enumerable}:EO,wI={f:eet},VD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},EI=Function.prototype,e6=EI.bind,n6=EI.call,net=e6&&e6.bind(n6),yt=e6?function(t){return t&&net(n6,t)}:function(t){return t&&function(){return n6.apply(t,arguments)}},ret=yt({}.toString),oet=yt("".slice),fa=function(t){return oet(ret(t),8,-1)},Vb=At.Object,iet=yt("".split),pm=Se(function(){return!Vb("z").propertyIsEnumerable(0)})?function(t){return fa(t)=="String"?iet(t,""):Vb(t)}:Vb,aet=At.TypeError,Rr=function(t){if(t==null)throw aet("Can't call method on "+t);return t},wc=function(t){return pm(Rr(t))},mn=function(t){return typeof t=="function"},Or=function(t){return typeof t=="object"?t!==null:mn(t)},uet=function(t){return mn(t)?t:void 0},th=function(t,e){return arguments.length<2?uet(At[t]):At[t]&&At[t][e]},DI=yt({}.isPrototypeOf),Ub=th("navigator","userAgent")||"",CO=At.process,xO=At.Deno,SO=CO&&CO.versions||xO&&xO.version,AO=SO&&SO.v8;AO&&(cg=(Ti=AO.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!cg&&Ub&&(!(Ti=Ub.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=Ub.match(/Chrome\/(\d+)/))&&(cg=+Ti[1]);var r6=cg,o6=!!Object.getOwnPropertySymbols&&!Se(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r6&&r6<41}),UD=o6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",set=At.Object,Wb=UD?function(t){return typeof t=="symbol"}:function(t){var e=th("Symbol");return mn(e)&&DI(e.prototype,set(t))},cet=At.String,CI=function(t){try{return cet(t)}catch(e){return"Object"}},fet=At.TypeError,xI=function(t){if(mn(t))return t;throw fet(CI(t)+" is not a function")},hm=function(t,e){var n=t[e];return n==null?void 0:xI(n)},det=At.TypeError,pet=Object.defineProperty,WD=function(t,e){try{pet(At,t,{value:e,configurable:!0,writable:!0})}catch(n){At[t]=e}return e},da=At["__core-js_shared__"]||WD("__core-js_shared__",{}),GD=dm(function(t){(t.exports=function(e,n){return da[e]||(da[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),het=At.Object,eh=function(t){return het(Rr(t))},get=yt({}.hasOwnProperty),Fr=Object.hasOwn||function(t,e){return get(eh(t),e)},vet=0,met=Math.random(),yet=yt(1 .toString),SI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+yet(++vet+met,36)},hf=GD("wks"),Lu=At.Symbol,OO=Lu&&Lu.for,bet=UD?Lu:Lu&&Lu.withoutSetter||SI,vr=function(t){if(!Fr(hf,t)||!o6&&typeof hf[t]!="string"){var e="Symbol."+t;o6&&Fr(Lu,t)?hf[t]=Lu[t]:hf[t]=UD&&OO?OO(e):bet(e)}return hf[t]},wet=At.TypeError,Eet=vr("toPrimitive"),qD=function(t){var e=function(n,r){if(!Or(n)||Wb(n))return n;var o,i=hm(n,Eet);if(i){if(r===void 0&&(r="default"),o=Pe(i,n,r),!Or(o)||Wb(o))return o;throw wet("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&mn(s=a.toString)&&!Or(l=Pe(s,a))||mn(s=a.valueOf)&&!Or(l=Pe(s,a))||u!=="string"&&mn(s=a.toString)&&!Or(l=Pe(s,a)))return l;throw det("Can't convert object to primitive value")}(n,r)}(t,"string");return Wb(e)?e:e+""},i6=At.document,Det=Or(i6)&&Or(i6.createElement),KD=function(t){return Det?i6.createElement(t):{}},AI=!io&&!Se(function(){return Object.defineProperty(KD("div"),"a",{get:function(){return 7}}).a!=7}),kO=Object.getOwnPropertyDescriptor,YD={f:io?kO:function(t,e){if(t=wc(t),e=qD(e),AI)try{return kO(t,e)}catch(n){}if(Fr(t,e))return VD(!Pe(wI.f,t,e),t[e])}},Cet=At.String,xet=At.TypeError,ur=function(t){if(Or(t))return t;throw xet(Cet(t)+" is not an object")},Aet=At.TypeError,BO=Object.defineProperty,Ec={f:io?BO:function(t,e,n){if(ur(t),e=qD(e),ur(n),AI)try{return BO(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Aet("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},tc=io?function(t,e,n){return Ec.f(t,e,VD(1,n))}:function(t,e,n){return t[e]=n,t},Oet=yt(Function.toString);mn(da.inspectSource)||(da.inspectSource=function(t){return Oet(t)});var kv,Ed,Bv,XD=da.inspectSource,FO=At.WeakMap,ket=mn(FO)&&/native code/.test(XD(FO)),_O=GD("keys"),OI=function(t){return _O[t]||(_O[t]=SI(t))},ZD={},a6=At.TypeError,Bet=At.WeakMap;if(ket||da.state){var ru=da.state||(da.state=new Bet),Fet=yt(ru.get),TO=yt(ru.has),_et=yt(ru.set);kv=function(t,e){if(TO(ru,t))throw new a6("Object already initialized");return e.facade=t,_et(ru,t,e),e},Ed=function(t){return Fet(ru,t)||{}},Bv=function(t){return TO(ru,t)}}else{var Hs=OI("state");ZD[Hs]=!0,kv=function(t,e){if(Fr(t,Hs))throw new a6("Object already initialized");return e.facade=t,tc(t,Hs,e),e},Ed=function(t){return Fr(t,Hs)?t[Hs]:{}},Bv=function(t){return Fr(t,Hs)}}var u6={set:kv,get:Ed,has:Bv,enforce:function(t){return Bv(t)?Ed(t):kv(t,{})},getterFor:function(t){return function(e){var n;if(!Or(e)||(n=Ed(e)).type!==t)throw a6("Incompatible receiver, "+t+" required");return n}}},kI=Function.prototype,Tet=io&&Object.getOwnPropertyDescriptor,Gb=Fr(kI,"name"),gm={EXISTS:Gb,PROPER:Gb&&function(){}.name==="something",CONFIGURABLE:Gb&&(!io||io&&Tet(kI,"name").configurable)},up=dm(function(t){var e=gm.CONFIGURABLE,n=u6.get,r=u6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;mn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Fr(u,"name")||e&&u.name!==d)&&tc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==At?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:tc(i,a,u)):f?i[a]=u:WD(a,u)})(Function.prototype,"toString",function(){return mn(this)&&n(this).source||XD(this)})}),Pet=Math.ceil,jet=Math.floor,Dc=function(t){var e=+t;return e!=e||e===0?0:(e>0?jet:Pet)(e)},Net=Math.max,Iet=Math.min,sp=function(t,e){var n=Dc(t);return n<0?Net(n+e,0):Iet(n,e)},Let=Math.min,nh=function(t){return t>0?Let(Dc(t),9007199254740991):0},vm=function(t){return nh(t.length)},PO=function(t){return function(e,n,r){var o,i=wc(e),a=vm(i),u=sp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},BI={includes:PO(!0),indexOf:PO(!1)},Ret=BI.indexOf,jO=yt([].push),FI=function(t,e){var n,r=wc(t),o=0,i=[];for(n in r)!Fr(ZD,n)&&Fr(r,n)&&jO(i,n);for(;e.length>o;)Fr(r,n=e[o++])&&(~Ret(i,n)||jO(i,n));return i},Fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Met=Fv.concat("length","prototype"),zet={f:Object.getOwnPropertyNames||function(t){return FI(t,Met)}},_I={f:Object.getOwnPropertySymbols},$et=yt([].concat),Het=th("Reflect","ownKeys")||function(t){var e=zet.f(ur(t)),n=_I.f;return n?$et(e,n(t)):e},Vet=function(t,e){for(var n=Het(e),r=Ec.f,o=YD.f,i=0;i<n.length;i++){var a=n[i];Fr(t,a)||r(t,a,o(e,a))}},Uet=/#|\.prototype\./,rh=function(t,e){var n=Get[Wet(t)];return n==Ket||n!=qet&&(mn(e)?Se(e):!!e)},Wet=rh.normalize=function(t){return String(t).replace(Uet,".").toLowerCase()},Get=rh.data={},qet=rh.NATIVE="N",Ket=rh.POLYFILL="P",Yet=rh,Xet=YD.f,nn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?At:l?At[u]||WD(u,{}):(At[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Xet(n,r))&&a.value:n[r],!Yet(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Vet(i,o)}(t.sham||o&&o.sham)&&tc(i,"sham",!0),up(n,r,i,t)}},NO=yt(yt.bind),_v=Array.isArray||function(t){return fa(t)=="Array"},TI={};TI[vr("toStringTag")]="z";var JD=String(TI)==="[object z]",Zet=vr("toStringTag"),Jet=At.Object,Qet=fa(function(){return arguments}())=="Arguments",QD=JD?fa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Jet(t),Zet))=="string"?n:Qet?fa(e):(r=fa(e))=="Object"&&mn(e.callee)?"Arguments":r},PI=function(){},tnt=[],jI=th("Reflect","construct"),tC=/^\s*(?:class|function)\b/,ent=yt(tC.exec),nnt=!tC.exec(PI),gf=function(t){if(!mn(t))return!1;try{return jI(PI,tnt,t),!0}catch(e){return!1}},eC=!jI||Se(function(){var t;return gf(gf.call)||!gf(Object)||!gf(function(){t=!0})||t})?function(t){if(!mn(t))return!1;switch(QD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nnt||!!ent(tC,XD(t))}:gf,rnt=vr("species"),IO=At.Array,ont=function(t,e){return new(function(n){var r;return _v(n)&&(r=n.constructor,(eC(r)&&(r===IO||_v(r.prototype))||Or(r)&&(r=r[rnt])===null)&&(r=void 0)),r===void 0?IO:r}(t))(e===0?0:e)},LO=yt([].push),Pi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=eh(s),g=pm(y),v=function(E,x){return xI(E),x===void 0?E:NO?NO(E,x):function(){return E.apply(x,arguments)}}(l,c),m=vm(g),h=0,b=f||ont,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:LO(w,p)}else switch(t){case 4:return!1;case 7:LO(w,p)}return i?-1:r||o?o:w}},mm={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)},int=vr("species"),nC=function(t){return r6>=51||!Se(function(){var e=[];return(e.constructor={})[int]=function(){return{foo:1}},e[t](Boolean).foo!==1})},ant=mm.filter;nn({target:"Array",proto:!0,forced:!nC("filter")},{filter:function(t){return ant(this,t,arguments.length>1?arguments[1]:void 0)}});var unt=JD?{}.toString:function(){return"[object "+QD(this)+"]"};JD||up(Object.prototype,"toString",unt,{unsafe:!0});var f0,snt=At.String,Ce=function(t){if(QD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return snt(t)},NI=function(){var t=ur(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},rC=At.RegExp,s6=Se(function(){var t=rC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),lnt=s6||Se(function(){return!rC("a","y").sticky}),II={BROKEN_CARET:s6||Se(function(){var t=rC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:lnt,UNSUPPORTED_Y:s6},Sl=Object.keys||function(t){return FI(t,Fv)},cnt=io?Object.defineProperties:function(t,e){ur(t);for(var n,r=wc(e),o=Sl(e),i=o.length,a=0;i>a;)Ec.f(t,n=o[a++],r[n]);return t},fnt=th("document","documentElement"),LI=OI("IE_PROTO"),qb=function(){},RI=function(t){return"<script>"+t+"<\/script>"},RO=function(t){t.write(RI("")),t.close();var e=t.parentWindow.Object;return t=null,e},fg=function(){try{f0=new ActiveXObject("htmlfile")}catch(r){}var t,e;fg=typeof document!="undefined"?document.domain&&f0?RO(f0):((e=KD("iframe")).style.display="none",fnt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(RI("document.F=Object")),t.close(),t.F):RO(f0);for(var n=Fv.length;n--;)delete fg.prototype[Fv[n]];return fg()};ZD[LI]=!0;var MO,Kb,MI=Object.create||function(t,e){var n;return t!==null?(qb.prototype=ur(t),n=new qb,qb.prototype=null,n[LI]=t):n=fg(),e===void 0?n:cnt(n,e)},dnt=At.RegExp,pnt=Se(function(){var t=dnt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),hnt=At.RegExp,gnt=Se(function(){var t=hnt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),vnt=u6.get,mnt=GD("native-string-replace",String.prototype.replace),Tv=RegExp.prototype.exec,l6=Tv,ynt=yt("".charAt),bnt=yt("".indexOf),wnt=yt("".replace),Yb=yt("".slice),Xb=(Kb=/b*/g,Pe(Tv,MO=/a/,"a"),Pe(Tv,Kb,"a"),MO.lastIndex!==0||Kb.lastIndex!==0),zO=II.BROKEN_CARET,Zb=/()??/.exec("")[1]!==void 0;(Xb||Zb||zO||pnt||gnt)&&(l6=function(t){var e,n,r,o,i,a,u,s=this,l=vnt(s),c=Ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Pe(l6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=zO&&s.sticky,y=Pe(NI,s),g=s.source,v=0,m=c;if(d&&(y=wnt(y,"y",""),bnt(y,"g")===-1&&(y+="g"),m=Yb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&ynt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Zb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),Xb&&(r=s.lastIndex),o=Pe(Tv,d?n:s,m),d?o?(o.input=Yb(o.input,v),o[0]=Yb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Xb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Zb&&o&&o.length>1&&Pe(mnt,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=MI(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var lp=l6;nn({target:"RegExp",proto:!0,forced:/./.exec!==lp},{exec:lp});var oC=Function.prototype,$O=oC.apply,Ent=oC.bind,HO=oC.call,zI=typeof Reflect=="object"&&Reflect.apply||(Ent?HO.bind($O):function(){return HO.apply($O,arguments)}),Dnt=vr("species"),Jb=RegExp.prototype,iC=function(t,e,n,r){var o=vr(t),i=!Se(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Se(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Dnt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=yt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=yt(l),g=c.exec;return g===lp||g===Jb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});up(String.prototype,t,s[0]),up(Jb,o,s[1])}r&&tc(Jb[o],"sham",!0)},Cnt=yt("".charAt),VO=yt("".charCodeAt),xnt=yt("".slice),Snt=function(t){return function(e,n){var r,o,i=Ce(Rr(e)),a=Dc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=VO(i,a))<55296||r>56319||a+1===u||(o=VO(i,a+1))<56320||o>57343?t?Cnt(i,a):r:t?xnt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ant=Snt(!0),aC=function(t,e,n){return e+(n?Ant(t,e).length:1)},Ont=Math.floor,Qb=yt("".charAt),knt=yt("".replace),t2=yt("".slice),Bnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Fnt=/\$([$&'`]|\d{1,2})/g,_nt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Fnt;return o!==void 0&&(o=eh(o),s=Bnt),knt(i,s,function(l,c){var f;switch(Qb(c,0)){case"$":return"$";case"&":return t;case"`":return t2(e,0,n);case"'":return t2(e,a);case"<":f=o[t2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Ont(p/10);return d===0?l:d<=u?r[d-1]===void 0?Qb(c,1):r[d-1]+Qb(c,1):l}f=r[p-1]}return f===void 0?"":f})},Tnt=At.TypeError,cp=function(t,e){var n=t.exec;if(mn(n)){var r=Pe(n,t,e);return r!==null&&ur(r),r}if(fa(t)==="RegExp")return Pe(lp,t,e);throw Tnt("RegExp#exec called on incompatible receiver")},c6=vr("replace"),Pnt=Math.max,jnt=Math.min,Nnt=yt([].concat),e2=yt([].push),UO=yt("".indexOf),WO=yt("".slice),Int="a".replace(/./,"$0")==="$0",GO=!!/./[c6]&&/./[c6]("a","$0")==="";iC("replace",function(t,e,n){var r=GO?"$":"$0";return[function(o,i){var a=Rr(this),u=o==null?void 0:hm(o,c6);return u?Pe(u,o,a,i):Pe(e,Ce(a),o,i)},function(o,i){var a=ur(this),u=Ce(o);if(typeof i=="string"&&UO(i,r)===-1&&UO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=mn(i);l||(i=Ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=cp(a,u);if(d===null||(e2(p,d),!c))break;Ce(d[0])===""&&(a.lastIndex=aC(u,nh(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=Ce((d=p[m])[0]),b=Pnt(jnt(Dc(d.index),u.length),0),w=[],E=1;E<d.length;E++)e2(w,(y=d[E])===void 0?y:String(y));var x=d.groups;if(l){var C=Nnt([h],w,b,u);x!==void 0&&e2(C,x);var O=Ce(zI(i,void 0,C))}else O=_nt(h,u,b,w,x,i);b>=v&&(g+=WO(u,v,b)+O,v=b+h.length)}return g+WO(u,v)}]},!!Se(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Int||GO);var f6=vr("unscopables"),d6=Array.prototype;d6[f6]==null&&Ec.f(d6,f6,{configurable:!0,value:MI(null)});var $I=function(t){d6[f6][t]=!0},Lnt=mm.find,qO=!0;"find"in[]&&Array(1).find(function(){qO=!1}),nn({target:"Array",proto:!0,forced:qO},{find:function(t){return Lnt(this,t,arguments.length>1?arguments[1]:void 0)}}),$I("find");var Rnt=vr("match"),HI=function(t){var e;return Or(t)&&((e=t[Rnt])!==void 0?!!e:fa(t)=="RegExp")},Mnt=At.TypeError,znt=vr("species"),VI=function(t,e,n){var r=qD(e);r in t?Ec.f(t,r,VD(0,n)):t[r]=n},$nt=At.Array,Hnt=Math.max,KO=function(t,e,n){for(var r=vm(t),o=sp(e,r),i=sp(n===void 0?r:n,r),a=$nt(Hnt(i-o,0)),u=0;o<i;o++,u++)VI(a,u,t[o]);return a.length=u,a},Vs=II.UNSUPPORTED_Y,Vnt=Math.min,UI=[].push,Unt=yt(/./.exec),Us=yt(UI),vf=yt("".slice);iC("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ce(Rr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!HI(o))return Pe(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Pe(lp,y,a))&&!((l=y.lastIndex)>d&&(Us(f,vf(a,d,s.index)),s.length>1&&s.index<a.length&&zI(UI,f,KO(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&Unt(y,"")||Us(f,""):Us(f,vf(a,d)),f.length>u?KO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Pe(e,this,o,i)}:e,[function(o,i){var a=Rr(this),u=o==null?void 0:hm(o,t);return u?Pe(u,o,a,i):Pe(r,Ce(a),o,i)},function(o,i){var a=ur(this),u=Ce(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,E){var x,C=ur(w).constructor;return C===void 0||(x=ur(C)[znt])==null?E:function(O){if(eC(O))return O;throw Mnt(CI(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Vs?"g":"y"),p=new l(Vs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return cp(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Vs?0:g;var m,h=cp(p,Vs?vf(u,g):u);if(h===null||(m=Vnt(nh(p.lastIndex+(Vs?g:0)),u.length))===y)g=aC(u,g,c);else{if(Us(v,vf(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Us(v,h[b]),v.length===d)return v;g=y=m}}return Us(v,vf(u,y)),v}]},!!Se(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"}),Vs);var p6=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,YO=yt("".replace),Pv="["+p6+"]",Wnt=RegExp("^"+Pv+Pv+"*"),Gnt=RegExp(Pv+Pv+"*$"),n2=function(t){return function(e){var n=Ce(Rr(e));return 1&t&&(n=YO(n,Wnt,"")),2&t&&(n=YO(n,Gnt,"")),n}},qnt={start:n2(1),end:n2(2),trim:n2(3)},Knt=gm.PROPER,Ynt=qnt.trim;function uC(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Cc(t){return t.length===0?"":t[0].outerHTML}function xc(t){return t.length?t[0].tagName.toLowerCase():""}function no(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}nn({target:"String",proto:!0,forced:Se(function(){return!!p6.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||Knt&&p6.trim.name!=="trim"})},{trim:function(){return Ynt(this)}}),nn({global:!0},{globalThis:At}),ov&&(B.fn.css=ov),Nr&&(B.fn.append=Nr),IA&&(B.fn.prepend=IA),Ll&&(B.fn.addClass=Ll),Rl&&(B.fn.removeClass=Rl),Ml&&(B.fn.hasClass=Ml),To&&(B.fn.on=To),TA&&(B.fn.off=TA),Oa&&(B.fn.focus=Oa),jr&&(B.fn.attr=jr),tv&&(B.fn.removeAttr=tv),$l&&(B.fn.hide=$l),rv&&(B.fn.show=rv),uv&&(B.fn.parents=uv),zl&&(B.fn.dataset=zl),_o&&(B.fn.val=_o),av&&(B.fn.text=av),Aa&&(B.fn.html=Aa),Ul&&(B.fn.children=Ul),Wl&&(B.fn.remove=Wl),Vl&&(B.fn.find=Vl),ev&&(B.fn.width=ev),nv&&(B.fn.height=nv),jA&&(B.fn.filter=jA),Gl&&(B.fn.empty=Gl);var Xnt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},h6=function(t,e){return h6=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])},h6(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 Ee(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}h6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Fa=function(){return Fa=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},Fa.apply(this,arguments)};function $a(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 Ha(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 WI(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 Xt(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 XO(t){var e=Xt(D.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ft.isElement(n)||n.type==="paragraph"||tt.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!it.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var Znt={renderElems:[tet],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Xnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){XO(r)||e(o)},r.deleteForward=function(o){XO(r)||n(o)},r}},Jnt=/"/g,Qnt=yt("".replace),ad=function(t,e,n,r){var o=Ce(Rr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Qnt(Ce(r),Jnt,""")+'"'),i+">"+o+"</"+e+">"},ud=function(t){return Se(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function r2(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 ou(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}nn({target:"String",proto:!0,forced:ud("bold")},{bold:function(){return ad(this,"b","","")}}),nn({target:"String",proto:!0,forced:ud("italics")},{italics:function(){return ad(this,"i","","")}}),nn({target:"String",proto:!0,forced:ud("sub")},{sub:function(){return ad(this,"sub","","")}}),nn({target:"String",proto:!0,forced:ud("sup")},{sup:function(){return ad(this,"sup","","")}});var ZO={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},o2=KD("span").classList,JO=o2&&o2.constructor&&o2.constructor.prototype,trt=JO===Object.prototype?void 0:JO,GI=function(t,e){var n=[][t];return!!n&&Se(function(){n.call(null,e||function(){throw 1},1)})},ert=mm.forEach,i2=GI("forEach")?[].forEach:function(t){return ert(this,t,arguments.length>1?arguments[1]:void 0)},qI=function(t){if(t&&t.forEach!==i2)try{tc(t,"forEach",i2)}catch(e){t.forEach=i2}};for(var a2 in ZO)ZO[a2]&&qI(At[a2]&&At[a2].prototype);function KI(t,e){return t.selection==null||!!Xt(D.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(t,n)},universal:!0}),1)[0]}function nrt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&D.removeMark(t,n)})}qI(trt),nn({target:"Object",stat:!0,forced:Se(function(){Sl(1)})},{keys:function(t){return Sl(eh(t))}});var ws=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r?r[n]:!!Xt(D.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return KI(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),rrt='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',ort='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',irt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',art='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',urt='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',YI='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',XI='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',srt='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',lrt='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',crt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',frt='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',drt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',prt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',hrt='<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>',grt='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',vrt='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',mrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',yrt='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',brt='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',wrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=et("textStyle.bold"),n.iconSvg=rrt,n.hotkey="mod+b",n}return Ee(e,t),e}(ws),Ert=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=et("textStyle.code"),n.iconSvg=urt,n.hotkey="mod+e",n}return Ee(e,t),e}(ws),Drt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=et("textStyle.italic"),n.iconSvg=irt,n.hotkey="mod+i",n}return Ee(e,t),e}(ws),Crt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=et("textStyle.through"),n.iconSvg=art,n.hotkey="mod+shift+x",n}return Ee(e,t),e}(ws),xrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=et("textStyle.underline"),n.iconSvg=ort,n.hotkey="mod+u",n}return Ee(e,t),e}(ws),Srt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=et("textStyle.sub"),n.iconSvg=brt,n.hotkey="",n}return Ee(e,t),e}(ws),Art=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=et("textStyle.sup"),n.iconSvg=yrt,n.hotkey="",n}return Ee(e,t),e}(ws),Ort=function(){function t(){this.title=et("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return KI(e)},t.prototype.exec=function(e,n){var r,o,i=D.nodes(e,{match:function(s){return it.isText(s)},universal:!0});try{for(var a=WI(i),u=a.next();!u.done;u=a.next())nrt(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),krt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=wt("strong",null,c)),a&&(c=wt("code",null,c)),o&&(c=wt("em",null,c)),i&&(c=wt("u",null,c)),u&&(c=wt("s",null,c)),s&&(c=wt("sub",null,c)),l&&(c=wt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new wrt}},{key:"underline",factory:function(){return new xrt}},{key:"italic",factory:function(){return new Drt}},{key:"through",factory:function(){return new Crt}},{key:"code",factory:function(){return new Ert}},{key:"sub",factory:function(){return new Srt}},{key:"sup",factory:function(){return new Art}},{key:"clearStyle",factory:function(){return new Ort}}],styleToHtml:function(t,e){if(!it.isText(t))return e;if(uC(e))return r2(t,e);var n=B(e);if(xc(n)==="br")return r2(t,"<br>");var r=n.html();return r=r2(t,r),n.html(r),Cc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e;return ou(r,"b,strong")&&(o.bold=!0),ou(r,"i,em")&&(o.italic=!0),ou(r,"u")&&(o.underline=!0),ou(r,"s,strike")&&(o.through=!0),ou(r,"sub")&&(o.sub=!0),ou(r,"sup")&&(o.sup=!0),ou(r,"code")&&(o.code=!0),o}};function oh(t){return function(e,n,r){return wt("h"+t,null,n)}}var Brt={type:"header1",renderElem:oh(1)},Frt={type:"header2",renderElem:oh(2)},_rt={type:"header3",renderElem:oh(3)},Trt={type:"header4",renderElem:oh(4)},Prt={type:"header5",renderElem:oh(5)},jrt=gm.PROPER,g6=RegExp.prototype,ZI=g6.toString,Nrt=yt(NI),Irt=Se(function(){return ZI.call({source:"a",flags:"b"})!="/a/b"}),Lrt=jrt&&ZI.name!="toString";(Irt||Lrt)&&up(RegExp.prototype,"toString",function(){var t=ur(this),e=Ce(t.source),n=t.flags;return"/"+e+"/"+Ce(n===void 0&&DI(g6,t)&&!("flags"in g6)?Nrt(t):n)},{unsafe:!0});var u2,Rrt=At.TypeError,JI=function(t){if(HI(t))throw Rrt("The method doesn't accept regular expressions");return t},Mrt=vr("match"),QI=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Mrt]=!1,"/./"[t](e)}catch(r){}}return!1},zrt=YD.f,QO=yt("".startsWith),$rt=yt("".slice),Hrt=Math.min,tk=QI("startsWith");function tL(t){var e=Xt(D.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Xt(n,1)[0];return A.getNodeType(r)}function eL(t){return t.selection==null||!Xt(D.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function nL(t,e){e&&N.setNodes(t,{type:e})}nn({target:"String",proto:!0,forced:!(!tk&&(u2=zrt(String.prototype,"startsWith"),u2&&!u2.writable)||tk)},{startsWith:function(t){var e=Ce(Rr(this));JI(t);var n=nh(Hrt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ce(t);return QO?QO(e,r,n):$rt(e,n,n+r.length)===r}});var Vrt=function(){function t(){this.title=et("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:et("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return tL(e)},t.prototype.isDisabled=function(e){return eL(e)},t.prototype.exec=function(e,n){nL(e,n.toString())},t}(),ih=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return tL(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return eL(e)},t.prototype.exec=function(e,n){var r=this.type;nL(e,n===r?"paragraph":r)},t}(),Urt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Ee(e,t),e}(ih),Wrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Ee(e,t),e}(ih),Grt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Ee(e,t),e}(ih),qrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Ee(e,t),e}(ih),Krt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Ee(e,t),e}(ih),Yrt={key:"headerSelect",factory:function(){return new Vrt}},Xrt={key:"header1",factory:function(){return new Urt}},Zrt={key:"header2",factory:function(){return new Wrt}},Jrt={key:"header3",factory:function(){return new Grt}},Qrt={key:"header4",factory:function(){return new qrt}},tot={key:"header5",factory:function(){return new Krt}};function mf(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function yf(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!it.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var eot={renderElems:[Brt,Frt,_rt,Trt,Prt],elemsToHtml:[{type:"header1",elemToHtml:mf(1)},{type:"header2",elemToHtml:mf(2)},{type:"header3",elemToHtml:mf(3)},{type:"header4",elemToHtml:mf(4)},{type:"header5",elemToHtml:mf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:yf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:yf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:yf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:yf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:yf(5)}],menus:[Yrt,Xrt,Zrt,Jrt,Qrt,tot],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Xt(D.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Ws=Object.assign,ek=Object.defineProperty,not=yt([].concat),nk=!Ws||Se(function(){if(io&&Ws({b:1},Ws(ek({},"a",{enumerable:!0,get:function(){ek(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Ws({},t)[n]!=7||Sl(Ws({},e)).join("")!=r})?function(t,e){for(var n=eh(t),r=arguments.length,o=1,i=_I.f,a=wI.f;r>o;)for(var u,s=pm(arguments[o++]),l=i?not(Sl(s),i(s)):Sl(s),c=l.length,f=0;c>f;)u=l[f++],io&&!Pe(a,s,u)||(n[u]=s[u]);return n}:Ws;function as(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}nn({target:"Object",stat:!0,forced:Object.assign!==nk},{assign:nk});var rot={selector:"font",preParseHtml:function(t){var e=B(t);if(xc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},rL=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(D.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=B('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?D.removeMark(e,n):D.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=B('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=B('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=et("color.default")),n==="bgColor"&&(u=et("color.clear"));var s=B(`
- <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}(),oot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("color.color"),n.iconSvg=srt,n.mark="color",n}return Ee(e,t),e}(rL),iot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("color.bgColor"),n.iconSvg=lrt,n.mark="bgColor",n}return Ee(e,t),e}(rL),rk=["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)"],aot={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&as(i,{color:r}),o&&as(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((uC(e)||xc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Cc(n)):e},preParseHtml:[rot],parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e,i=no(r,"color");i&&(o.color=i);var a=no(r,"background-color");return a||(a=no(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new oot},config:{colors:rk}},{key:"bgColor",factory:function(){return new iot},config:{colors:rk}}]},uot=/^(?:\w+:)?\/\/(\S+)$/,sot=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,lot=/^[^\s\.]+\.\S{2,}$/,cot=BI.includes;function ym(t){return t===void 0&&(t="r"),t+"-"+Sj()}function sC(t){return t.replace(/</g,"<").replace(/>/g,">")}function oL(t,e,n,r){return $a(this,void 0,void 0,function(){var o,i;return Ha(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 iL(t,e,n){return $a(this,void 0,void 0,function(){var r;return Ha(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 lC(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 s2(t,e){return{type:"link",url:sC(t),children:e?[{text:e}]:[]}}function aL(t,e,n){return $a(this,void 0,void 0,function(){var r,o,i;return Ha(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),lC(t)?[2]:[4,oL("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,iL("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=s2(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):D.string(t,o)!==e?(t.deleteFragment(),i=s2(r,e),N.insertNodes(t,i)):(i=s2(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}nn({target:"Array",proto:!0},{includes:function(t){return cot(this,t,arguments.length>1?arguments[1]:void 0)}}),$I("includes");var fot={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return wt("a",{href:o,target:i===void 0?"_blank":i},e)}},dot={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function l2(){return ym("w-e-insert-link")}var pot=function(){function t(){this.title=et("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=l2(),this.urlInputId=l2(),this.buttonId=l2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return lC(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Xt(ar(et("link.text"),o),2),s=u[0],l=B(u[1]),c=Xt(ar(et("link.url"),i),2),f=c[0],p=B(c[1]),d=Xt(bc(a,et("common.ok")),1)[0];if(this.$content==null){var y=B("<div></div>");y.on("click","#"+a,function(m){m.preventDefault();var h=y.find("#"+o).val(),b=y.find("#"+i).val();aL(e,h,b),e.hidePanelOrModal()}),this.$content=y}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||L.isCollapsed(n))l.val("");else{var v=D.string(e,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function ok(){return ym("w-e-update-link")}var hot=function(){function t(){this.title=et("link.edit"),this.iconSvg=YI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ok(),this.buttonId=ok()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Xt(ar(et("link.url"),n),2),i=o[0],a=B(o[1]),u=Xt(bc(r,et("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?tt.string(p):"",y=s.find("#"+n).val();(function(g,v,m){$a(this,void 0,void 0,function(){var h,b;return Ha(this,function(w){switch(w.label){case 0:return m?[4,oL("editLink",g,v,m)]:[2];case 1:return w.sent()?[4,iL("editLink",g,m)]:[2];case 2:return h=w.sent(),b={url:sC(h)},N.setNodes(g,b,{match:function(E){return A.checkNodeType(E,"link")}}),[2]}})})})(e,d,y),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),got=function(){function t(){this.title=et("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),vot=function(){function t(){this.title=et("link.view"),this.iconSvg=XI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),ik={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},mot={renderElems:[fot],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[dot],menus:[{key:"insertLink",factory:function(){return new pot},config:ik},{key:"editLink",factory:function(){return new hot},config:ik},{key:"unLink",factory:function(){return new got}},{key:"viewLink",factory:function(){return new vot}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(uot);if(!c)return!1;var f=c[1];return!(!f||!sot.test(f)&&!lot.test(f))}(a)){if(!lC(o)){var u=o.selection;if(u!=null){var s=D.string(o,u);aL(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):tt.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},yot=yt(1 .valueOf),bot=At.RangeError,wot=At.RangeError,uL=At.String,sL=Math.floor,v6=yt(function(t){var e=Ce(Rr(this)),n="",r=Dc(t);if(r<0||r==1/0)throw bot("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),ak=yt("".slice),bf=yt(1 .toFixed),ml=function(t,e,n){return e===0?n:e%2==1?ml(t,e-1,n*t):ml(t*t,e/2,n)},Gs=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=sL(o/1e7)},c2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=sL(r/e),r=r%e*1e7},uk=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=uL(t[e]);n=n===""?r:n+v6("0",7-r.length)+r}return n};function sk(t,e){return"w-e-image-container-"+A.findKey(t,e).id}nn({target:"Number",proto:!0,forced:Se(function(){return bf(8e-5,3)!=="0.000"||bf(.9,0)!=="1"||bf(1.255,2)!=="1.25"||bf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Se(function(){bf({})})},{toFixed:function(t){var e,n,r,o,i=yot(this),a=Dc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw wot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return uL(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*ml(2,69,1))-69)<0?i*ml(2,-e,1):i/ml(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Gs(u,0,n),r=a;r>=7;)Gs(u,1e7,0),r-=7;for(Gs(u,ml(10,r,1),0),r=e-1;r>=23;)c2(u,1<<23),r-=23;c2(u,1<<r),Gs(u,1,1),c2(u,2),l=uk(u)}else Gs(u,0,n),Gs(u,1<<-e,0),l=uk(u)+v6("0",a);return a>0?s+((o=l.length)<=a?"0."+v6("0",a-o)+l:ak(l,0,o-a)+"."+ak(l,o-a)):s+l}});var Eot={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,y=d===void 0?"":d,g=A.isNodeSelected(n,t),v={};p&&(v.width="100%"),y&&(v.height="100%");var m=wt("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,E,x){var C=B("body"),O=sk(b,w),F=x.width,R=x.height,H=0,M=0,K=0,U=!1,W=null;function q(ut){W=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),H=ut;var k=W.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),K=k.height(),C.on("mousemove",rt),C.on("mouseup",ct);var S=A.getHoverbar(b);S&&S.hideAndClean()}var rt=ts(function(ut){ut.preventDefault();var k=ut.clientX,S=M+(U?H-k:k-H),P=K*(S/M);W!=null&&(S<=15||P<=15||(W.css("width",S+"px"),W.css("height",P+"px")))},100);function ct(ut){if(C.off("mousemove",rt),W!=null){var k=W.width().toFixed(2),S=W.height().toFixed(2),P={style:Fa(Fa({},w.style),{width:k+"px",height:S+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),C.off("mouseup",ct)}}var lt={};return F&&(lt.width=F),R&&(lt.height=R),wt("div",{id:O,style:lt,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ut){var k=B(ut.target);k.hasClass("w-e-image-dragger")&&(ut.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(U=!0),q(ut.clientX))}}},E,wt("div",{className:"w-e-image-dragger left-top"}),wt("div",{className:"w-e-image-dragger right-top"}),wt("div",{className:"w-e-image-dragger left-bottom"}),wt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,m,{width:p,height:y}):function(b,w,E,x){var C=x.width,O=x.height,F={};return C&&(F.width=C),O&&(F.height=O),wt("div",{id:sk(b,w),style:F,className:"w-e-image-container"},E)}(n,t,m,{width:p,height:y})}},Dot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:no(r,"width"),height:no(r,"height")},children:[{text:""}]}}};function lL(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),$a(this,void 0,void 0,function(){var i,a;return Ha(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function cL(t,e,n){return $a(this,void 0,void 0,function(){var r;return Ha(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Ru(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),$a(this,void 0,void 0,function(){var o,i,a;return Ha(this,function(u){switch(u.label){case 0:return[4,lL("insertImage",t,e,n,r)];case 1:return u.sent()?[4,cL("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:sC(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),bm(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function bm(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Xt(D.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!D.isVoid(t,n)},universal:!0}),1)[0]}function d0(){return ym("w-e-insert-image")}var Cot=function(){function t(){this.title=et("image.netImage"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=d0(),this.altInputId=d0(),this.hrefInputId=d0(),this.buttonId=d0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return bm(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Xt(ar(et("image.src"),o),2),l=s[0],c=B(s[1]),f=Xt(ar(et("image.desc"),i),2),p=f[0],d=B(f[1]),y=Xt(ar(et("image.link"),a),2),g=y[0],v=B(y[1]),m=Xt(bc(u,et("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var E=h.find("#"+o).val().trim(),x=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(e,E,x,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(m),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Ru(e,n,r,o))},t}(),xot=function(){function t(){this.title=et("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function p0(){return ym("w-e-edit-image")}var Sot=function(){function t(){this.title=et("image.edit"),this.iconSvg=YI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=p0(),this.altInputId=p0(),this.hrefInputId=p0(),this.buttonId=p0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Xt(ar(et("image.src"),o),2),c=l[0],f=B(l[1]),p=Xt(ar(et("image.desc"),i),2),d=p[0],y=B(p[1]),g=Xt(ar(et("image.link"),a),2),v=g[0],m=B(g[1]),h=Xt(bc(u,et("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();n.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(v),w.append(h);var E=s,x=E.src,C=E.alt,O=C===void 0?"":C,F=E.href,R=F===void 0?"":F;return f.val(x),y.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),$a(this,void 0,void 0,function(){var f,p,d,y,g,v;return Ha(this,function(m){switch(m.label){case 0:return[4,lL("editImage",a,u,s,l)];case 1:return m.sent()?[4,cL("editImage",a,u)]:[2];case 2:return f=m.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,y={src:f,alt:s,href:l,style:Fa(Fa({},d===void 0?{}:d),c)},N.setNodes(a,y,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(e,n,r,o,i))},t}(),Aot=function(){function t(){this.title=et("image.viewLink"),this.iconSvg=XI,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),cC=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Fa(Fa({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),Oot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Ee(e,t),e}(cC),kot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Ee(e,t),e}(cC),Bot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Ee(e,t),e}(cC),lk={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Fot={renderElems:[Eot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,y="";return f&&(y+="width: "+f+";"),d&&(y+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+y+'"/>'}}],parseElemsHtml:[Dot],menus:[{key:"insertImage",factory:function(){return new Cot},config:lk},{key:"deleteImage",factory:function(){return new xot}},{key:"editImage",factory:function(){return new Sot},config:lk},{key:"viewImageLink",factory:function(){return new Aot}},{key:"imageWidth30",factory:function(){return new Oot}},{key:"imageWidth50",factory:function(){return new kot}},{key:"imageWidth100",factory:function(){return new Bot}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},_ot={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=wt("div",{style:{margin:"5px 0"}},wt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},wt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),wt("span",null,e));return o}},Tot=function(){function t(){this.title=et("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),Pot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!it.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},jot={renderElems:[_ot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=B(t).find("li"),n=B('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[Pot],menus:[{key:"todo",factory:function(){return new Tot}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&tt.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Not={type:"blockquote",renderElem:function(t,e,n){return wt("blockquote",null,e)}},Iot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},Lot=function(){function t(){this.title=et("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Xt(D.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),Rot={key:"blockquote",factory:function(){return new Lot}},Mot=yt([].slice),zot=nC("slice"),$ot=vr("species"),f2=At.Array,Hot=Math.max;nn({target:"Array",proto:!0,forced:!zot},{slice:function(t,e){var n,r,o,i=wc(this),a=vm(i),u=sp(t,a),s=sp(e===void 0?a:e,a);if(_v(i)&&(n=i.constructor,(eC(n)&&(n===f2||_v(n.prototype))||Or(n)&&(n=n[$ot])===null)&&(n=void 0),n===f2||n===void 0))return Mot(i,u,s);for(r=new(n===void 0?f2:n)(Hot(s-u,0)),o=0;u<s;u++,o++)u in i&&VI(r,o,i[u]);return r.length=o,r}});var Vot={renderElems:[Not],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Iot],menus:[Rot],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=Xt(D.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=D.end(t,u);if(Ft.equals(s,o.focus)){var l=tt.string(a);if(l&&l.slice(-1)===`
- `)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},Uot=function(){function t(){this.title=et("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||!!Xt(D.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!D.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}(),Wot={menus:[{key:"emotion",factory:function(){return new Uot},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(" ")}}]},Got={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},qot={selector:"font",preParseHtml:function(t){var e=B(t);if(xc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Got[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Kot=yt("".indexOf);nn({target:"String",proto:!0,forced:!QI("includes")},{includes:function(t){return!!~Kot(Ce(Rr(this)),Ce(JI(t)),arguments.length>1?arguments[1]:void 0)}});var ji,dg,h0=function(t){return t&&t.Math==Math&&t},_t=h0(typeof globalThis=="object"&&globalThis)||h0(typeof window=="object"&&window)||h0(typeof self=="object"&&self)||h0(typeof Ov=="object"&&Ov)||function(){return this}()||Function("return this")(),fC=Function.prototype,ck=fC.apply,Yot=fC.bind,fk=fC.call,fL=typeof Reflect=="object"&&Reflect.apply||(Yot?fk.bind(ck):function(){return fk.apply(ck,arguments)}),dL=Function.prototype,m6=dL.bind,y6=dL.call,Xot=m6&&m6.bind(y6),je=m6?function(t){return t&&Xot(y6,t)}:function(t){return t&&function(){return y6.apply(t,arguments)}},yn=function(t){return typeof t=="function"},pr=function(t){try{return!!t()}catch(e){return!0}},Yn=!pr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wf=Function.prototype.call,Zr=wf.bind?wf.bind(wf):function(){return wf.apply(wf,arguments)},dk={}.propertyIsEnumerable,pk=Object.getOwnPropertyDescriptor,Zot=pk&&!dk.call({1:2},1)?function(t){var e=pk(this,t);return!!e&&e.enumerable}:dk,dC={f:Zot},us=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Jot=je({}.toString),Qot=je("".slice),Mu=function(t){return Qot(Jot(t),8,-1)},d2=_t.Object,tit=je("".split),pL=pr(function(){return!d2("z").propertyIsEnumerable(0)})?function(t){return Mu(t)=="String"?tit(t,""):d2(t)}:d2,eit=_t.TypeError,pC=function(t){if(t==null)throw eit("Can't call method on "+t);return t},Mo=function(t){return pL(pC(t))},kr=function(t){return typeof t=="object"?t!==null:yn(t)},Cr={},hk=function(t){return yn(t)?t:void 0},ah=function(t,e){return arguments.length<2?hk(Cr[t])||hk(_t[t]):Cr[t]&&Cr[t][e]||_t[t]&&_t[t][e]},hL=je({}.isPrototypeOf),p2=ah("navigator","userAgent")||"",gk=_t.process,vk=_t.Deno,mk=gk&&gk.versions||vk&&vk.version,yk=mk&&mk.v8;yk&&(dg=(ji=yk.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!dg&&p2&&(!(ji=p2.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=p2.match(/Chrome\/(\d+)/))&&(dg=+ji[1]);var jv=dg,yo=!!Object.getOwnPropertySymbols&&!pr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&jv&&jv<41}),hC=yo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nit=_t.Object,Al=hC?function(t){return typeof t=="symbol"}:function(t){var e=ah("Symbol");return yn(e)&&hL(e.prototype,nit(t))},rit=_t.String,oit=_t.TypeError,gL=function(t){if(yn(t))return t;throw oit(function(e){try{return rit(e)}catch(n){return"Object"}}(t)+" is not a function")},iit=_t.TypeError,ait=Object.defineProperty,pa=_t["__core-js_shared__"]||function(t,e){try{ait(_t,t,{value:e,configurable:!0,writable:!0})}catch(n){_t[t]=e}return e}("__core-js_shared__",{}),Es=dm(function(t){(t.exports=function(e,n){return pa[e]||(pa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),uit=_t.Object,uh=function(t){return uit(pC(t))},sit=je({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return sit(uh(t),e)},lit=0,cit=Math.random(),fit=je(1 .toString),Nv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+fit(++lit+cit,36)},Ef=Es("wks"),zu=_t.Symbol,bk=zu&&zu.for,dit=hC?zu:zu&&zu.withoutSetter||Nv,mr=function(t){if(!Yt(Ef,t)||!yo&&typeof Ef[t]!="string"){var e="Symbol."+t;yo&&Yt(zu,t)?Ef[t]=zu[t]:Ef[t]=hC&&bk?bk(e):dit(e)}return Ef[t]},pit=_t.TypeError,hit=mr("toPrimitive"),Sc=function(t){var e=function(n,r){if(!kr(n)||Al(n))return n;var o,i,a=(o=n[hit])==null?void 0:gL(o);if(a){if(r===void 0&&(r="default"),i=Zr(a,n,r),!kr(i)||Al(i))return i;throw pit("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&yn(l=u.toString)&&!kr(c=Zr(l,u))||yn(l=u.valueOf)&&!kr(c=Zr(l,u))||s!=="string"&&yn(l=u.toString)&&!kr(c=Zr(l,u)))return c;throw iit("Can't convert object to primitive value")}(n,r)}(t,"string");return Al(e)?e:e+""},b6=_t.document,git=kr(b6)&&kr(b6.createElement),vL=function(t){return git?b6.createElement(t):{}},mL=!Yn&&!pr(function(){return Object.defineProperty(vL("div"),"a",{get:function(){return 7}}).a!=7}),wk=Object.getOwnPropertyDescriptor,gC={f:Yn?wk:function(t,e){if(t=Mo(t),e=Sc(e),mL)try{return wk(t,e)}catch(n){}if(Yt(t,e))return us(!Zr(dC.f,t,e),t[e])}},vit=/#|\.prototype\./,sh=function(t,e){var n=yit[mit(t)];return n==wit||n!=bit&&(yn(e)?pr(e):!!e)},mit=sh.normalize=function(t){return String(t).replace(vit,".").toLowerCase()},yit=sh.data={},bit=sh.NATIVE="N",wit=sh.POLYFILL="P",Eit=sh,Ek=je(je.bind),yL=function(t,e){return gL(t),e===void 0?t:Ek?Ek(t,e):function(){return t.apply(e,arguments)}},Dit=_t.String,Cit=_t.TypeError,ss=function(t){if(kr(t))return t;throw Cit(Dit(t)+" is not an object")},xit=_t.TypeError,Dk=Object.defineProperty,Ds={f:Yn?Dk:function(t,e,n){if(ss(t),e=Sc(e),ss(n),mL)try{return Dk(t,e,n)}catch(r){}if("get"in n||"set"in n)throw xit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},wo=Yn?function(t,e,n){return Ds.f(t,e,us(1,n))}:function(t,e,n){return t[e]=n,t},Sit=gC.f,Ait=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return fL(t,this,arguments)};return e.prototype=t.prototype,e},qi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?_t:p?_t[c]:(_t[c]||{}).prototype,g=f?Cr:Cr[c]||wo(Cr,c,{})[c],v=g.prototype;for(o in e)n=!Eit(f?o:c+(p?".":"#")+o,t.forced)&&y&&Yt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=Sit(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?yL(i,_t):t.wrap&&n?Ait(i):d&&yn(i)?je(i):i,(t.sham||i&&i.sham||a&&a.sham)&&wo(s,"sham",!0),wo(g,o,s),d&&(Yt(Cr,r=c+"Prototype")||wo(Cr,r,{}),wo(Cr[r],o,i),t.real&&v&&!v[o]&&wo(v,o,i)))},Iv=Array.isArray||function(t){return Mu(t)=="Array"},Oit=Math.ceil,kit=Math.floor,vC=function(t){var e=+t;return e!=e||e===0?0:(e>0?kit:Oit)(e)},Bit=Math.min,wm=function(t){return(e=t.length)>0?Bit(vC(e),9007199254740991):0;var e},w6=function(t,e,n){var r=Sc(e);r in t?Ds.f(t,r,us(0,n)):t[r]=n},bL={};bL[mr("toStringTag")]="z";var mC=String(bL)==="[object z]",Fit=mr("toStringTag"),_it=_t.Object,Tit=Mu(function(){return arguments}())=="Arguments",Em=mC?Mu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=_it(t),Fit))=="string"?n:Tit?Mu(e):(r=Mu(e))=="Object"&&yn(e.callee)?"Arguments":r},Pit=je(Function.toString);yn(pa.inspectSource)||(pa.inspectSource=function(t){return Pit(t)});var wL=pa.inspectSource,EL=function(){},jit=[],DL=ah("Reflect","construct"),yC=/^\s*(?:class|function)\b/,Nit=je(yC.exec),Iit=!yC.exec(EL),Df=function(t){if(!yn(t))return!1;try{return DL(EL,jit,t),!0}catch(e){return!1}},Lit=!DL||pr(function(){var t;return Df(Df.call)||!Df(Object)||!Df(function(){t=!0})||t})?function(t){if(!yn(t))return!1;switch(Em(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Iit||!!Nit(yC,wL(t))}:Df,Rit=mr("species"),Ck=_t.Array,CL=function(t,e){return new(function(n){var r;return Iv(n)&&(r=n.constructor,(Lit(r)&&(r===Ck||Iv(r.prototype))||kr(r)&&(r=r[Rit])===null)&&(r=void 0)),r===void 0?Ck:r}(t))(e===0?0:e)},Mit=mr("species"),xL=mr("isConcatSpreadable"),xk=_t.TypeError,zit=jv>=51||!pr(function(){var t=[];return t[xL]=!1,t.concat()[0]!==t}),$it=jv>=51||!pr(function(){var t=[];return(t.constructor={})[Mit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Hit=function(t){if(!kr(t))return!1;var e=t[xL];return e!==void 0?!!e:Iv(t)};qi({target:"Array",proto:!0,forced:!zit||!$it},{concat:function(t){var e,n,r,o,i,a=uh(this),u=CL(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Hit(i=e===-1?a:arguments[e])){if(s+(o=wm(i))>9007199254740991)throw xk("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&w6(u,s,i[n])}else{if(s>=9007199254740991)throw xk("Maximum allowed index exceeded");w6(u,s++,i)}return u.length=s,u}});var g0,Vit=_t.String,Lv=function(t){if(Em(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vit(t)},Uit=Math.max,Wit=Math.min,E6=function(t,e){var n=vC(t);return n<0?Uit(n+e,0):Wit(n,e)},Sk=function(t){return function(e,n,r){var o,i=Mo(e),a=wm(i),u=E6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Git={includes:Sk(!0),indexOf:Sk(!1)},lh={},qit=Git.indexOf,Ak=je([].push),SL=function(t,e){var n,r=Mo(t),o=0,i=[];for(n in r)!Yt(lh,n)&&Yt(r,n)&&Ak(i,n);for(;e.length>o;)Yt(r,n=e[o++])&&(~qit(i,n)||Ak(i,n));return i},Rv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bC=Object.keys||function(t){return SL(t,Rv)},Kit=Yn?Object.defineProperties:function(t,e){ss(t);for(var n,r=Mo(e),o=bC(e),i=o.length,a=0;i>a;)Ds.f(t,n=o[a++],r[n]);return t},Yit=ah("document","documentElement"),Ok=Es("keys"),Dm=function(t){return Ok[t]||(Ok[t]=Nv(t))},AL=Dm("IE_PROTO"),h2=function(){},OL=function(t){return"<script>"+t+"<\/script>"},kk=function(t){t.write(OL("")),t.close();var e=t.parentWindow.Object;return t=null,e},pg=function(){try{g0=new ActiveXObject("htmlfile")}catch(r){}var t,e;pg=typeof document!="undefined"?document.domain&&g0?kk(g0):((e=vL("iframe")).style.display="none",Yit.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(OL("document.F=Object")),t.close(),t.F):kk(g0);for(var n=Rv.length;n--;)delete pg.prototype[Rv[n]];return pg()};lh[AL]=!0;var Mv,Dd,zv,ls=Object.create||function(t,e){var n;return t!==null?(h2.prototype=ss(t),n=new h2,h2.prototype=null,n[AL]=t):n=pg(),e===void 0?n:Kit(n,e)},Xit=Rv.concat("length","prototype"),kL={f:Object.getOwnPropertyNames||function(t){return SL(t,Xit)}},Zit=_t.Array,Jit=Math.max,Bk=kL.f,Fk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],BL={f:function(t){return Fk&&Mu(t)=="Window"?function(e){try{return Bk(e)}catch(n){return function(r,o,i){for(var a=wm(r),u=E6(void 0,a),s=E6(a,a),l=Zit(Jit(s-u,0)),c=0;u<s;u++,c++)w6(l,c,r[u]);return l.length=c,l}(Fk)}}(t):Bk(Mo(t))}},g2={f:Object.getOwnPropertySymbols},Qit=je([].slice),ec=function(t,e,n,r){r&&r.enumerable?t[e]=n:wo(t,e,n)},wC={f:mr},tat=Ds.f,Le=function(t){var e=Cr.Symbol||(Cr.Symbol={});Yt(e,t)||tat(e,t,{value:wC.f(t)})},eat=mC?{}.toString:function(){return"[object "+Em(this)+"]"},nat=Ds.f,_k=mr("toStringTag"),$v=function(t,e,n,r){if(t){var o=n?t:t.prototype;Yt(o,_k)||nat(o,_k,{configurable:!0,value:e}),r&&!mC&&wo(o,"toString",eat)}},Tk=_t.WeakMap,rat=yn(Tk)&&/native code/.test(wL(Tk)),D6=_t.TypeError,oat=_t.WeakMap;if(rat||pa.state){var iu=pa.state||(pa.state=new oat),iat=je(iu.get),Pk=je(iu.has),aat=je(iu.set);Mv=function(t,e){if(Pk(iu,t))throw new D6("Object already initialized");return e.facade=t,aat(iu,t,e),e},Dd=function(t){return iat(iu,t)||{}},zv=function(t){return Pk(iu,t)}}else{var qs=Dm("state");lh[qs]=!0,Mv=function(t,e){if(Yt(t,qs))throw new D6("Object already initialized");return e.facade=t,wo(t,qs,e),e},Dd=function(t){return Yt(t,qs)?t[qs]:{}},zv=function(t){return Yt(t,qs)}}var Ac={set:Mv,get:Dd,has:zv,enforce:function(t){return zv(t)?Dd(t):Mv(t,{})},getterFor:function(t){return function(e){var n;if(!kr(e)||(n=Dd(e)).type!==t)throw D6("Incompatible receiver, "+t+" required");return n}}},jk=je([].push),Ni=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=uh(s),g=pL(y),v=yL(l,c),m=wm(g),h=0,b=f||CL,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:jk(w,p)}else switch(t){case 4:return!1;case 7:jk(w,p)}return i?-1:r||o?o:w}},Cm=[Ni(0),Ni(1),Ni(2),Ni(3),Ni(4),Ni(5),Ni(6),Ni(7)][0],Vn=Dm("hidden"),Nk=mr("toPrimitive"),uat=Ac.set,Ik=Ac.getterFor("Symbol"),Jr=Object.prototype,Xi=_t.Symbol,na=Xi&&Xi.prototype,Lk=_t.TypeError,v2=_t.QObject,Cf=ah("JSON","stringify"),FL=gC.f,Zi=Ds.f,_L=BL.f,sat=dC.f,TL=je([].push),fi=Es("symbols"),ch=Es("op-symbols"),m2=Es("string-to-symbol-registry"),y2=Es("symbol-to-string-registry"),lat=Es("wks"),b2=!v2||!v2.prototype||!v2.prototype.findChild,C6=Yn&&pr(function(){return ls(Zi({},"a",{get:function(){return Zi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=FL(Jr,e);r&&delete Jr[e],Zi(t,e,n),r&&t!==Jr&&Zi(Jr,e,r)}:Zi,w2=function(t,e){var n=fi[t]=ls(na);return uat(n,{type:"Symbol",tag:t,description:e}),Yn||(n.description=e),n},Hv=function(t,e,n){t===Jr&&Hv(ch,e,n),ss(t);var r=Sc(e);return ss(n),Yt(fi,r)?(n.enumerable?(Yt(t,Vn)&&t[Vn][r]&&(t[Vn][r]=!1),n=ls(n,{enumerable:us(0,!1)})):(Yt(t,Vn)||Zi(t,Vn,us(1,{})),t[Vn][r]=!0),C6(t,r,n)):Zi(t,r,n)},Rk=function(t,e){ss(t);var n=Mo(e),r=bC(n).concat(x6(n));return Cm(r,function(o){Yn&&!Zr(PL,n,o)||Hv(t,o,n[o])}),t},PL=function(t){var e=Sc(t),n=Zr(sat,this,e);return!(this===Jr&&Yt(fi,e)&&!Yt(ch,e))&&(!(n||!Yt(this,e)||!Yt(fi,e)||Yt(this,Vn)&&this[Vn][e])||n)},Mk=function(t,e){var n=Mo(t),r=Sc(e);if(n!==Jr||!Yt(fi,r)||Yt(ch,r)){var o=FL(n,r);return!o||!Yt(fi,r)||Yt(n,Vn)&&n[Vn][r]||(o.enumerable=!0),o}},zk=function(t){var e=_L(Mo(t)),n=[];return Cm(e,function(r){Yt(fi,r)||Yt(lh,r)||TL(n,r)}),n},x6=function(t){var e=t===Jr,n=_L(e?ch:Mo(t)),r=[];return Cm(n,function(o){!Yt(fi,o)||e&&!Yt(Jr,o)||TL(r,fi[o])}),r};if(yo||(na=(Xi=function(){if(hL(na,this))throw Lk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Lv(arguments[0]):void 0,e=Nv(t),n=function(r){this===Jr&&Zr(n,ch,r),Yt(this,Vn)&&Yt(this[Vn],e)&&(this[Vn][e]=!1),C6(this,e,us(1,r))};return Yn&&b2&&C6(Jr,e,{configurable:!0,set:n}),w2(e,t)}).prototype,ec(na,"toString",function(){return Ik(this).tag}),ec(Xi,"withoutSetter",function(t){return w2(Nv(t),t)}),dC.f=PL,Ds.f=Hv,gC.f=Mk,kL.f=BL.f=zk,g2.f=x6,wC.f=function(t){return w2(mr(t),t)},Yn&&Zi(na,"description",{configurable:!0,get:function(){return Ik(this).description}})),qi({global:!0,wrap:!0,forced:!yo,sham:!yo},{Symbol:Xi}),Cm(bC(lat),function(t){Le(t)}),qi({target:"Symbol",stat:!0,forced:!yo},{for:function(t){var e=Lv(t);if(Yt(m2,e))return m2[e];var n=Xi(e);return m2[e]=n,y2[n]=e,n},keyFor:function(t){if(!Al(t))throw Lk(t+" is not a symbol");if(Yt(y2,t))return y2[t]},useSetter:function(){b2=!0},useSimple:function(){b2=!1}}),qi({target:"Object",stat:!0,forced:!yo,sham:!Yn},{create:function(t,e){return e===void 0?ls(t):Rk(ls(t),e)},defineProperty:Hv,defineProperties:Rk,getOwnPropertyDescriptor:Mk}),qi({target:"Object",stat:!0,forced:!yo},{getOwnPropertyNames:zk,getOwnPropertySymbols:x6}),qi({target:"Object",stat:!0,forced:pr(function(){g2.f(1)})},{getOwnPropertySymbols:function(t){return g2.f(uh(t))}}),Cf){var cat=!yo||pr(function(){var t=Xi();return Cf([t])!="[null]"||Cf({a:t})!="{}"||Cf(Object(t))!="{}"});qi({target:"JSON",stat:!0,forced:cat},{stringify:function(t,e,n){var r=Qit(arguments),o=e;if((kr(e)||t!==void 0)&&!Al(t))return Iv(e)||(e=function(i,a){if(yn(o)&&(a=Zr(o,this,i,a)),!Al(a))return a}),r[1]=e,fL(Cf,null,r)}})}if(!na[Nk]){var fat=na.valueOf;ec(na,Nk,function(t){return Zr(fat,this)})}$v(Xi,"Symbol"),lh[Vn]=!0,Le("asyncIterator"),Le("hasInstance"),Le("isConcatSpreadable"),Le("iterator"),Le("match"),Le("matchAll"),Le("replace"),Le("search"),Le("species"),Le("split"),Le("toPrimitive"),Le("toStringTag"),Le("unscopables"),$v(_t.JSON,"JSON",!0);var ra,$k,Hk,dat=Cr.Symbol,$u={},jL=Function.prototype,pat=Yn&&Object.getOwnPropertyDescriptor,E2=Yt(jL,"name"),hat={EXISTS:E2,PROPER:E2&&function(){}.name==="something",CONFIGURABLE:E2&&(!Yn||Yn&&pat(jL,"name").configurable)},gat=!pr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Vk=Dm("IE_PROTO"),S6=_t.Object,vat=S6.prototype,A6=gat?S6.getPrototypeOf:function(t){var e=uh(t);if(Yt(e,Vk))return e[Vk];var n=e.constructor;return yn(n)&&e instanceof n?n.prototype:e instanceof S6?vat:null},O6=mr("iterator"),NL=!1;[].keys&&("next"in(Hk=[].keys())?($k=A6(A6(Hk)))!==Object.prototype&&(ra=$k):NL=!0);var mat=ra==null||pr(function(){var t={};return ra[O6].call(t)!==t});ra=mat?{}:ls(ra),yn(ra[O6])||ec(ra,O6,function(){return this});var IL={IteratorPrototype:ra,BUGGY_SAFARI_ITERATORS:NL},yat=IL.IteratorPrototype,bat=function(){return this};_t.String,_t.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{je(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch(e){}}();var wat=hat.PROPER,v0=IL.BUGGY_SAFARI_ITERATORS,D2=mr("iterator"),Eat=function(){return this},LL=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=ls(yat,{next:us(1,b)}),$v(m,E,!1,!0),$u[E]=bat})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!v0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[D2]||d["@@iterator"]||o&&d[o],g=!v0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=A6(v.call(new t)))!==Object.prototype&&u.next&&($v(u,f,!0,!0),$u[f]=Eat),wat&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return Zr(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(v0||p||!(l in d))&&ec(d,l,s[l]);else qi({target:e,proto:!0,forced:v0||p},s);return a&&d[D2]!==g&&ec(d,D2,g,{name:o}),$u[e]=g,s},Dat=Ac.set,Cat=Ac.getterFor("Array Iterator");LL(Array,"Array",function(t,e){Dat(this,{type:"Array Iterator",target:Mo(t),index:0,kind:e})},function(){var t=Cat(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"),$u.Arguments=$u.Array;var Uk=mr("toStringTag");for(var C2 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Wk=_t[C2],x2=Wk&&Wk.prototype;x2&&Em(x2)!==Uk&&wo(x2,Uk,C2),$u[C2]=$u.Array}var xat=dat;Le("asyncDispose"),Le("dispose"),Le("matcher"),Le("metadata"),Le("observable"),Le("patternMatch"),Le("replaceAll");var m0=xat,Sat=je("".charAt),Gk=je("".charCodeAt),Aat=je("".slice),Oat=function(t){return function(e,n){var r,o,i=Lv(pC(e)),a=vC(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Gk(i,a))<55296||r>56319||a+1===u||(o=Gk(i,a+1))<56320||o>57343?t?Sat(i,a):r:t?Aat(i,a,a+2):o-56320+(r-55296<<10)+65536}},kat=Oat(!0),Bat=Ac.set,Fat=Ac.getterFor("String Iterator");LL(String,"String",function(t){Bat(this,{type:"String Iterator",string:Lv(t),index:0})},function(){var t,e=Fat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=kat(n,r),e.index+=t.length,{value:t,done:!1})});var _at=wC.f("iterator"),Tat=dm(function(t){function e(n){return typeof m0=="function"&&typeof _at=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof m0=="function"&&r.constructor===m0&&r!==m0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),RL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Tat),Pat=gm.EXISTS,jat=Ec.f,ML=Function.prototype,Nat=yt(ML.toString),zL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Iat=yt(zL.exec);io&&!Pat&&jat(ML,"name",{configurable:!0,get:function(){try{return Iat(zL,Nat(this))[1]}catch(t){return""}}});var $L=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=D.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Xt(D.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),Lat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("fontSize.title"),n.iconSvg=crt,n.mark="fontSize",n}return Ee(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:et("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(RL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}($L),Rat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("fontFamily.title"),n.iconSvg=frt,n.mark="fontFamily",n.selectPanelWidth=150,n}return Ee(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:et("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(RL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}($L),Mat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&as(i,{fontSize:r}),o&&as(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((uC(e)||xc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),Cc(n)):e},preParseHtml:[qot],parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=no(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=no(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Lat},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Rat},config:{fontFamilyList:["\u9ED1\u4F53",{name:"\u4EFF\u5B8B",value:"\u4EFF\u5B8B"},"\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53",{name:"\u5B8B\u4F53",value:"\u5B8B\u4F53"},"\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},zat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=no(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},HL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Xt(D.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Xt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Xt(D.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),$at=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("indent.decrease"),n.iconSvg=drt,n}return Ee(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ft.isElement(o)}})},e}(HL),Hat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("indent.increase"),n.iconSvg=prt,n}return Ee(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ft.isElement(o)},mode:"highest"})},e}(HL),Vat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.indent,r=e;return n&&as(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),Cc(r)},preParseHtml:[zat],parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e))return e;var o=e,i=no(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Hat}},{key:"delIndent",factory:function(){return new $at}}]},xm=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Xt(D.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(D.isVoid(e,n)&&D.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),Uat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.left"),n.iconSvg=hrt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(xm),Wat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.right"),n.iconSvg=grt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(xm),Gat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.center"),n.iconSvg=vrt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(xm),qat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.justify"),n.iconSvg=mrt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(xm),Kat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.textAlign,r=e;return n&&as(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),Cc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e))return e;var o=e,i=no(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Uat}},{key:"justifyRight",factory:function(){return new Wat}},{key:"justifyCenter",factory:function(){return new Gat}},{key:"justifyJustify",factory:function(){return new qat}}]},Yat=function(){function t(){this.title=et("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:et("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Xt(D.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ft.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Xat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.lineHeight,r=e;return n&&as(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),Cc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=no(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Yat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Zat=function(){function t(){this.title=et("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),Jat=function(){function t(){this.title=et("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),Qat={menus:[{key:"redo",factory:function(){return new Zat}},{key:"undo",factory:function(){return new Jat}}]},tut={type:"divider",renderElem:function(t,e,n){return ql("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[ql("hr")])}},eut=function(){function t(){this.title=et("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),nut={renderElems:[tut],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new eut}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Xt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},rut=mm.map;nn({target:"Array",proto:!0,forced:!nC("map")},{map:function(t){return rut(this,t,arguments.length>1?arguments[1]:void 0)}});var out=yt([].join),iut=pm!=Object,aut=GI("join",",");nn({target:"Array",proto:!0,forced:iut||!aut},{join:function(t){return out(wc(this),t===void 0?",":t)}});var uut=function(){function t(){this.title=et("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=tt.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(`
- `).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=D.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=WI(a),s=u.next();!s.done;s=u.next()){var l=Xt(s.value,1)[0];l&&i.push(tt.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}(),sut={key:"codeBlock",factory:function(){return new uut}};nn({target:"String",proto:!0,forced:ud("anchor")},{anchor:function(t){return ad(this,"a","name",t)}}),iC("match",function(t,e,n){return[function(r){var o=Rr(this),i=r==null?void 0:hm(r,t);return i?Pe(i,r,o):new RegExp(r)[t](Ce(o))},function(r){var o=ur(this),i=Ce(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return cp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=cp(o,i))!==null;){var f=Ce(s[0]);l[c]=f,f===""&&(o.lastIndex=aC(i,nh(o.lastIndex),u)),c++}return c===0?null:l}]});var lut={type:"pre",renderElem:function(t,e,n){return wt("pre",null,e)}},cut={type:"code",renderElem:function(t,e,n){return wt("code",null,e)}},fut={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"})}}},dut={menus:[sut],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=tt.string(l),d=f.anchor.offset,y=p.slice(0,d).split(`
- `),g=y.length;return g===0?"":y[g-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
- `+s)}}o.insertText(`
- `)}else e()},o.normalizeNode=function(i){var a=Xt(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");D.insertText(o,a)}else r(i)},o},renderElems:[lut,cut],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(xc(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||""}]}}},fut]},put=function(){function t(){this.title=et("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}(),hut={menus:[{key:"fullScreen",factory:function(){return new put}}]},gut=function(){function t(){this.title=et("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(D.start(e,o))}},t}(),vut=[krt,aot,Mat,Vat,Kat,Xat,Fot,nut,Wot,mot,dut,Vot,eot,Znt,jot,Qat,hut,{menus:[{key:"enter",factory:function(){return new gut}}]}];Zn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Zn("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var qk=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function EC(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ii,hg,y0=function(t){return t&&t.Math==Math&&t},Et=y0(typeof globalThis=="object"&&globalThis)||y0(typeof window=="object"&&window)||y0(typeof self=="object"&&self)||y0(typeof qk=="object"&&qk)||function(){return this}()||Function("return this")(),VL=Function.prototype,k6=VL.bind,B6=VL.call,mut=k6&&k6.bind(B6),Nt=k6?function(t){return t&&mut(B6,t)}:function(t){return t&&function(){return B6.apply(t,arguments)}},Be=function(t){try{return!!t()}catch(e){return!0}},yut=Nt({}.toString),but=Nt("".slice),ai=function(t){return but(yut(t),8,-1)},S2=Et.Object,wut=Nt("".split),UL=Be(function(){return!S2("z").propertyIsEnumerable(0)})?function(t){return ai(t)=="String"?wut(t,""):S2(t)}:S2,Eut=Et.TypeError,Sm=function(t){if(t==null)throw Eut("Can't call method on "+t);return t},Oc=function(t){return UL(Sm(t))},Dut=Object.defineProperty,DC=function(t,e){try{Dut(Et,t,{value:e,configurable:!0,writable:!0})}catch(n){Et[t]=e}return e},ha=Et["__core-js_shared__"]||DC("__core-js_shared__",{}),CC=EC(function(t){(t.exports=function(e,n){return ha[e]||(ha[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Cut=Et.Object,fh=function(t){return Cut(Sm(t))},xut=Nt({}.hasOwnProperty),on=Object.hasOwn||function(t,e){return xut(fh(t),e)},Sut=0,Aut=Math.random(),Out=Nt(1 .toString),xC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Out(++Sut+Aut,36)},Fe=function(t){return typeof t=="function"},kut=function(t){return Fe(t)?t:void 0},dh=function(t,e){return arguments.length<2?kut(Et[t]):Et[t]&&Et[t][e]},A2=dh("navigator","userAgent")||"",Kk=Et.process,Yk=Et.Deno,Xk=Kk&&Kk.versions||Yk&&Yk.version,Zk=Xk&&Xk.v8;Zk&&(hg=(Ii=Zk.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!hg&&A2&&(!(Ii=A2.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=A2.match(/Chrome\/(\d+)/))&&(hg=+Ii[1]);var b0,F6=hg,_6=!!Object.getOwnPropertySymbols&&!Be(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F6&&F6<41}),SC=_6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xf=CC("wks"),Hu=Et.Symbol,Jk=Hu&&Hu.for,But=SC?Hu:Hu&&Hu.withoutSetter||xC,wn=function(t){if(!on(xf,t)||!_6&&typeof xf[t]!="string"){var e="Symbol."+t;_6&&on(Hu,t)?xf[t]=Hu[t]:xf[t]=SC&&Jk?Jk(e):But(e)}return xf[t]},ke=function(t){return typeof t=="object"?t!==null:Fe(t)},Fut=Et.String,_ut=Et.TypeError,Jn=function(t){if(ke(t))return t;throw _ut(Fut(t)+" is not an object")},_a=!Be(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),T6=Et.document,Tut=ke(T6)&&ke(T6.createElement),AC=function(t){return Tut?T6.createElement(t):{}},WL=!_a&&!Be(function(){return Object.defineProperty(AC("div"),"a",{get:function(){return 7}}).a!=7}),Sf=Function.prototype.call,rn=Sf.bind?Sf.bind(Sf):function(){return Sf.apply(Sf,arguments)},Vv=Nt({}.isPrototypeOf),Put=Et.Object,O2=SC?function(t){return typeof t=="symbol"}:function(t){var e=dh("Symbol");return Fe(e)&&Vv(e.prototype,Put(t))},jut=Et.String,P6=function(t){try{return jut(t)}catch(e){return"Object"}},Nut=Et.TypeError,OC=function(t){if(Fe(t))return t;throw Nut(P6(t)+" is not a function")},fp=function(t,e){var n=t[e];return n==null?void 0:OC(n)},Iut=Et.TypeError,Lut=Et.TypeError,Rut=wn("toPrimitive"),kC=function(t){var e=function(n,r){if(!ke(n)||O2(n))return n;var o,i=fp(n,Rut);if(i){if(r===void 0&&(r="default"),o=rn(i,n,r),!ke(o)||O2(o))return o;throw Lut("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Fe(s=a.toString)&&!ke(l=rn(s,a))||Fe(s=a.valueOf)&&!ke(l=rn(s,a))||u!=="string"&&Fe(s=a.toString)&&!ke(l=rn(s,a)))return l;throw Iut("Can't convert object to primitive value")}(n,r)}(t,"string");return O2(e)?e:e+""},Mut=Et.TypeError,Qk=Object.defineProperty,Cs={f:_a?Qk:function(t,e,n){if(Jn(t),e=kC(e),Jn(n),WL)try{return Qk(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Mut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zut=Math.ceil,$ut=Math.floor,ph=function(t){var e=+t;return e!=e||e===0?0:(e>0?$ut:zut)(e)},Hut=Math.max,Vut=Math.min,j6=function(t,e){var n=ph(t);return n<0?Hut(n+e,0):Vut(n,e)},Uut=Math.min,GL=function(t){return t>0?Uut(ph(t),9007199254740991):0},kc=function(t){return GL(t.length)},tB=function(t){return function(e,n,r){var o,i=Oc(e),a=kc(i),u=j6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},qL={includes:tB(!0),indexOf:tB(!1)},Am={},Wut=qL.indexOf,eB=Nt([].push),KL=function(t,e){var n,r=Oc(t),o=0,i=[];for(n in r)!on(Am,n)&&on(r,n)&&eB(i,n);for(;e.length>o;)on(r,n=e[o++])&&(~Wut(i,n)||eB(i,n));return i},Uv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gut=Object.keys||function(t){return KL(t,Uv)},qut=_a?Object.defineProperties:function(t,e){Jn(t);for(var n,r=Oc(e),o=Gut(e),i=o.length,a=0;i>a;)Cs.f(t,n=o[a++],r[n]);return t},Kut=dh("document","documentElement"),nB=CC("keys"),BC=function(t){return nB[t]||(nB[t]=xC(t))},YL=BC("IE_PROTO"),k2=function(){},XL=function(t){return"<script>"+t+"<\/script>"},rB=function(t){t.write(XL("")),t.close();var e=t.parentWindow.Object;return t=null,e},gg=function(){try{b0=new ActiveXObject("htmlfile")}catch(r){}var t,e;gg=typeof document!="undefined"?document.domain&&b0?rB(b0):((e=AC("iframe")).style.display="none",Kut.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(XL("document.F=Object")),t.close(),t.F):rB(b0);for(var n=Uv.length;n--;)delete gg.prototype[Uv[n]];return gg()};Am[YL]=!0;var FC=Object.create||function(t,e){var n;return t!==null?(k2.prototype=Jn(t),n=new k2,k2.prototype=null,n[YL]=t):n=gg(),e===void 0?n:qut(n,e)},N6=wn("unscopables"),I6=Array.prototype;I6[N6]==null&&Cs.f(I6,N6,{configurable:!0,value:FC(null)});var Cd=function(t){I6[N6][t]=!0},nc={},Yut=Nt(Function.toString);Fe(ha.inspectSource)||(ha.inspectSource=function(t){return Yut(t)});var Wv,xd,Gv,_C=ha.inspectSource,oB=Et.WeakMap,ZL=Fe(oB)&&/native code/.test(_C(oB)),Om=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ga=_a?function(t,e,n){return Cs.f(t,e,Om(1,n))}:function(t,e,n){return t[e]=n,t},L6=Et.TypeError,Xut=Et.WeakMap;if(ZL||ha.state){var au=ha.state||(ha.state=new Xut),Zut=Nt(au.get),iB=Nt(au.has),Jut=Nt(au.set);Wv=function(t,e){if(iB(au,t))throw new L6("Object already initialized");return e.facade=t,Jut(au,t,e),e},xd=function(t){return Zut(au,t)||{}},Gv=function(t){return iB(au,t)}}else{var Ks=BC("state");Am[Ks]=!0,Wv=function(t,e){if(on(t,Ks))throw new L6("Object already initialized");return e.facade=t,ga(t,Ks,e),e},xd=function(t){return on(t,Ks)?t[Ks]:{}},Gv=function(t){return on(t,Ks)}}var Vu,aB,uB,Po={set:Wv,get:xd,has:Gv,enforce:function(t){return Gv(t)?xd(t):Wv(t,{})},getterFor:function(t){return function(e){var n;if(!ke(e)||(n=xd(e)).type!==t)throw L6("Incompatible receiver, "+t+" required");return n}}},sB={}.propertyIsEnumerable,lB=Object.getOwnPropertyDescriptor,Qut={f:lB&&!sB.call({1:2},1)?function(t){var e=lB(this,t);return!!e&&e.enumerable}:sB},cB=Object.getOwnPropertyDescriptor,JL={f:_a?cB:function(t,e){if(t=Oc(t),e=kC(e),WL)try{return cB(t,e)}catch(n){}if(on(t,e))return Om(!rn(Qut.f,t,e),t[e])}},QL=Function.prototype,tst=_a&&Object.getOwnPropertyDescriptor,B2=on(QL,"name"),TC={EXISTS:B2,PROPER:B2&&function(){}.name==="something",CONFIGURABLE:B2&&(!_a||_a&&tst(QL,"name").configurable)},Oo=EC(function(t){var e=TC.CONFIGURABLE,n=Po.get,r=Po.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Fe(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!on(u,"name")||e&&u.name!==d)&&ga(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ga(i,a,u)):f?i[a]=u:DC(a,u)})(Function.prototype,"toString",function(){return Fe(this)&&n(this).source||_C(this)})}),est=Uv.concat("length","prototype"),qv={f:Object.getOwnPropertyNames||function(t){return KL(t,est)}},nst={f:Object.getOwnPropertySymbols},rst=Nt([].concat),ost=dh("Reflect","ownKeys")||function(t){var e=qv.f(Jn(t)),n=nst.f;return n?rst(e,n(t)):e},ist=function(t,e){for(var n=ost(e),r=Cs.f,o=JL.f,i=0;i<n.length;i++){var a=n[i];on(t,a)||r(t,a,o(e,a))}},ast=/#|\.prototype\./,hh=function(t,e){var n=sst[ust(t)];return n==cst||n!=lst&&(Fe(e)?Be(e):!!e)},ust=hh.normalize=function(t){return String(t).replace(ast,".").toLowerCase()},sst=hh.data={},lst=hh.NATIVE="N",cst=hh.POLYFILL="P",R6=hh,fst=JL.f,Ta=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Et:l?Et[u]||DC(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=fst(n,r))&&a.value:n[r],!R6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ist(i,o)}(t.sham||o&&o.sham)&&ga(i,"sham",!0),Oo(n,r,i,t)}},dst=!Be(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),fB=BC("IE_PROTO"),M6=Et.Object,pst=M6.prototype,Kv=dst?M6.getPrototypeOf:function(t){var e=fh(t);if(on(e,fB))return e[fB];var n=e.constructor;return Fe(n)&&e instanceof n?n.prototype:e instanceof M6?pst:null},z6=wn("iterator"),tR=!1;[].keys&&("next"in(uB=[].keys())?(aB=Kv(Kv(uB)))!==Object.prototype&&(Vu=aB):tR=!0);var hst=Vu==null||Be(function(){var t={};return Vu[z6].call(t)!==t});hst&&(Vu={}),Fe(Vu[z6])||Oo(Vu,z6,function(){return this});var PC={IteratorPrototype:Vu,BUGGY_SAFARI_ITERATORS:tR},gst=Cs.f,dB=wn("toStringTag"),$6=function(t,e,n){t&&!on(t=n?t:t.prototype,dB)&&gst(t,dB,{configurable:!0,value:e})},vst=PC.IteratorPrototype,mst=function(){return this},yst=Et.String,bst=Et.TypeError,Yv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Jn(r),function(i){if(typeof i=="object"||Fe(i))return i;throw bst("Can't set "+yst(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),wst=TC.PROPER,Est=TC.CONFIGURABLE,pB=PC.IteratorPrototype,w0=PC.BUGGY_SAFARI_ITERATORS,Af=wn("iterator"),Dst=function(){return this},eR=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=FC(vst,{next:Om(1,b)}),$6(m,E,!1),nc[E]=mst})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!w0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Af]||d["@@iterator"]||o&&d[o],g=!w0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Kv(v.call(new t)))!==Object.prototype&&u.next&&(Kv(u)!==pB&&(Yv?Yv(u,pB):Fe(u[Af])||Oo(u,Af,Dst)),$6(u,f,!0)),wst&&o=="values"&&y&&y.name!=="values"&&(Est?ga(d,"name","values"):(p=!0,g=function(){return rn(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(w0||p||!(l in d))&&Oo(d,l,s[l]);else Ta({target:e,proto:!0,forced:w0||p},s);return d[Af]!==g&&Oo(d,Af,g,{name:o}),nc[e]=g,s},Cst=Po.set,xst=Po.getterFor("Array Iterator"),sd=eR(Array,"Array",function(t,e){Cst(this,{type:"Array Iterator",target:Oc(t),index:0,kind:e})},function(){var t=xst(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");nc.Arguments=nc.Array,Cd("keys"),Cd("values"),Cd("entries");var nR={};nR[wn("toStringTag")]="z";var jC=String(nR)==="[object z]",Sst=wn("toStringTag"),Ast=Et.Object,Ost=ai(function(){return arguments}())=="Arguments",km=jC?ai:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Ast(t),Sst))=="string"?n:Ost?ai(e):(r=ai(e))=="Object"&&Fe(e.callee)?"Arguments":r},kst=jC?{}.toString:function(){return"[object "+km(this)+"]"};jC||Oo(Object.prototype,"toString",kst,{unsafe:!0});var Bst=Et.String,Jo=function(t){if(km(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Bst(t)},Fst=Nt("".charAt),hB=Nt("".charCodeAt),_st=Nt("".slice),gB=function(t){return function(e,n){var r,o,i=Jo(Sm(e)),a=ph(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=hB(i,a))<55296||r>56319||a+1===u||(o=hB(i,a+1))<56320||o>57343?t?Fst(i,a):r:t?_st(i,a,a+2):o-56320+(r-55296<<10)+65536}},rR={codeAt:gB(!1),charAt:gB(!0)},Tst=rR.charAt,Pst=Po.set,jst=Po.getterFor("String Iterator");eR(String,"String",function(t){Pst(this,{type:"String Iterator",string:Jo(t),index:0})},function(){var t,e=jst(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Tst(n,r),e.index+=t.length,{value:t,done:!1})});var H6=function(t,e,n){for(var r in e)Oo(t,r,e[r],n);return t},Nst=Et.Array,Ist=Math.max,vB=qv.f,mB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Lst={f:function(t){return mB&&ai(t)=="Window"?function(e){try{return vB(e)}catch(n){return function(r,o,i){for(var a,u,s,l,c=kc(r),f=j6(void 0,c),p=j6(c,c),d=Nst(Ist(p-f,0)),y=0;f<p;f++,y++)a=d,u=y,s=r[f],(l=kC(u))in a?Cs.f(a,l,Om(0,s)):a[l]=s;return d.length=y,d}(mB)}}(t):vB(Oc(t))}},yB=Be(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),E0=Object.isExtensible,xu=Be(function(){E0(1)})||yB?function(t){return!!ke(t)&&(!yB||ai(t)!="ArrayBuffer")&&(!E0||E0(t))}:E0,Rst=!Be(function(){return Object.isExtensible(Object.preventExtensions({}))}),NC=EC(function(t){var e=Cs.f,n=!1,r=xC("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=qv.f,s=Nt([].splice),l={};l[r]=1,u(l).length&&(qv.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},Ta({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Lst.f}))},fastKey:function(u,s){if(!ke(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!on(u,r)){if(!xu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!on(u,r)){if(!xu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Rst&&n&&xu(u)&&!on(u,r)&&i(u),u}};Am[r]=!0}),bB=Nt(Nt.bind),IC=function(t,e){return OC(t),e===void 0?t:bB?bB(t,e):function(){return t.apply(e,arguments)}},Mst=wn("iterator"),zst=Array.prototype,$st=wn("iterator"),wB=function(t){if(t!=null)return fp(t,$st)||fp(t,"@@iterator")||nc[km(t)]},Hst=Et.TypeError,EB=function(t,e,n){var r,o;Jn(t);try{if(!(r=fp(t,"return"))){if(e==="throw")throw n;return n}r=rn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Jn(r),n},Vst=Et.TypeError,vg=function(t,e){this.stopped=t,this.result=e},DB=vg.prototype,oR=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=IC(e,f),v=function(h){return r&&EB(r,"normal",h),new vg(!0,h)},m=function(h){return p?(Jn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=wB(t)))throw Vst(P6(t)+" is not iterable");if((c=o)!==void 0&&(nc.Array===c||zst[Mst]===c)){for(i=0,a=kc(t);a>i;i++)if((u=m(t[i]))&&Vv(DB,u))return u;return new vg(!1)}r=function(h,b){var w=arguments.length<2?wB(h):b;if(OC(w))return Jn(rn(w,h));throw Hst(P6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=rn(s,r)).done;){try{u=m(l.value)}catch(h){EB(r,"throw",h)}if(typeof u=="object"&&u&&Vv(DB,u))return u}return new vg(!1)},Ust=Et.TypeError,iR=function(t,e){if(Vv(e,t))return t;throw Ust("Incorrect invocation")},aR=wn("iterator"),uR=!1;try{var Wst=0,CB={next:function(){return{done:!!Wst++}},return:function(){uR=!0}};CB[aR]=function(){return this},Array.from(CB,function(){throw 2})}catch(t){}var V6=Array.isArray||function(t){return ai(t)=="Array"},sR=function(){},Gst=[],lR=dh("Reflect","construct"),LC=/^\s*(?:class|function)\b/,qst=Nt(LC.exec),Kst=!LC.exec(sR),Of=function(t){if(!Fe(t))return!1;try{return lR(sR,Gst,t),!0}catch(e){return!1}},Yst=!lR||Be(function(){var t;return Of(Of.call)||!Of(Object)||!Of(function(){t=!0})||t})?function(t){if(!Fe(t))return!1;switch(km(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Kst||!!qst(LC,_C(t))}:Of,Xst=wn("species"),xB=Et.Array,cR=function(t,e){return new(function(n){var r;return V6(n)&&(r=n.constructor,(Yst(r)&&(r===xB||V6(r.prototype))||ke(r)&&(r=r[Xst])===null)&&(r=void 0)),r===void 0?xB:r}(t))(e===0?0:e)},SB=Nt([].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,y=fh(s),g=UL(y),v=IC(l,c),m=kc(g),h=0,b=f||cR,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:SB(w,p)}else switch(t){case 4:return!1;case 7:SB(w,p)}return i?-1:r||o?o:w}},RC={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)},D0=NC.getWeakData,Zst=Po.set,Jst=Po.getterFor,Qst=RC.find,tlt=RC.findIndex,elt=Nt([].splice),nlt=0,C0=function(t){return t.frozen||(t.frozen=new fR)},fR=function(){this.entries=[]},F2=function(t,e){return Qst(t.entries,function(n){return n[0]===e})};fR.prototype={get:function(t){var e=F2(this,t);if(e)return e[1]},has:function(t){return!!F2(this,t)},set:function(t,e){var n=F2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=tlt(this.entries,function(n){return n[0]===t});return~e&&elt(this.entries,e,1),!!~e}};var kf,dR={getConstructor:function(t,e,n,r){var o=t(function(s,l){iR(s,i),Zst(s,{type:e,id:nlt++,frozen:void 0}),l!=null&&oR(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Jst(e),u=function(s,l,c){var f=a(s),p=D0(Jn(l),!0);return p===!0?C0(f).set(l,c):p[f.id]=c,s};return H6(i,{delete:function(s){var l=a(this);if(!ke(s))return!1;var c=D0(s);return c===!0?C0(l).delete(s):c&&on(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ke(s))return!1;var c=D0(s);return c===!0?C0(l).has(s):c&&on(c,l.id)}}),H6(i,n?{get:function(s){var l=a(this);if(ke(s)){var c=D0(s);return c===!0?C0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},x0=Po.enforce,rlt=!Et.ActiveXObject&&"ActiveXObject"in Et,pR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},olt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Et[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Nt(u[v]);Oo(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ke(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!ke(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ke(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(R6(t,!Fe(a)||!(o||u.forEach&&!Be(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),NC.enable();else if(R6(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Be(function(){f.has(1)}),y=function(v,m){if(!uR)return!1;var h=!1;try{var b={};b[aR]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch(w){}return h}(),g=!o&&Be(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){iR(v,u);var h=function(b,w,E){var x,C;return Yv&&Fe(x=w.constructor)&&x!==E&&ke(C=x.prototype)&&C!==E.prototype&&Yv(b,C),b}(new a,v,s);return m!=null&&oR(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ta({global:!0,forced:s!=a},l),$6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",pR,dR);if(ZL&&rlt){kf=dR.getConstructor(pR,"WeakMap",!0),NC.enable();var Bf=olt.prototype,AB=Nt(Bf.delete),S0=Nt(Bf.has),OB=Nt(Bf.get),kB=Nt(Bf.set);H6(Bf,{delete:function(t){if(ke(t)&&!xu(t)){var e=x0(this);return e.frozen||(e.frozen=new kf),AB(this,t)||e.frozen.delete(t)}return AB(this,t)},has:function(t){if(ke(t)&&!xu(t)){var e=x0(this);return e.frozen||(e.frozen=new kf),S0(this,t)||e.frozen.has(t)}return S0(this,t)},get:function(t){if(ke(t)&&!xu(t)){var e=x0(this);return e.frozen||(e.frozen=new kf),S0(this,t)?OB(this,t):e.frozen.get(t)}return OB(this,t)},set:function(t,e){if(ke(t)&&!xu(t)){var n=x0(this);n.frozen||(n.frozen=new kf),S0(this,t)?kB(this,t,e):n.frozen.set(t,e)}else kB(this,t,e);return this}})}var hR={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_2=AC("span").classList,BB=_2&&_2.constructor&&_2.constructor.prototype,ilt=BB===Object.prototype?void 0:BB,T2=wn("iterator"),FB=wn("toStringTag"),P2=sd.values,gR=function(t,e){if(t){if(t[T2]!==P2)try{ga(t,T2,P2)}catch(r){t[T2]=P2}if(t[FB]||ga(t,FB,e),hR[e]){for(var n in sd)if(t[n]!==sd[n])try{ga(t,n,sd[n])}catch(r){t[n]=sd[n]}}}};for(var j2 in hR)gR(Et[j2]&&Et[j2].prototype,j2);gR(ilt,"DOMTokenList");var U6=new WeakMap,alt={type:"list-item",renderElem:function(t,e,n){U6.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,y=d.type,g=d.level,v=g===void 0?0:g,m=d.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=p,E=A.findPath(f,w);if(E[0]===0)return 1;for(;E[0]>0;){var x=j.previous(E),C=D.node(f,x);if(C==null)break;var O=C[0],F=O.level,R=F===void 0?0:F,H=O.type,M=O.ordered;if(H!==y||R<v)break;if(R===v){if(M!==h)break;b++}w=O,E=x}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="\u2022";break;case 1:p="\u25E6";break;default:p="\u25AA"}return p}(i);var c=function(f){var p,d=f.children||[],y=d.length;if(y===0)return"";for(var g=0;g<y&&!p;g++){var v=d[g];it.isText(v)&&(p=v)}return p==null?"":p.color||""}(t);return wt("div",{style:u},wt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),wt("span",null,e))}},W6=function(t,e){return W6=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])},W6(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 vR(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}W6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function _B(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 Sd(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 TB(t){return D.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var ult=qL.includes;Ta({target:"Array",proto:!0},{includes:function(t){return ult(this,t,arguments.length>1?arguments[1]:void 0)}}),Cd("includes");var PB,N2,slt=function(){var t=Jn(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},MC=Et.RegExp,G6=Be(function(){var t=MC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),llt=G6||Be(function(){return!MC("a","y").sticky}),clt={BROKEN_CARET:G6||Be(function(){var t=MC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:llt,UNSUPPORTED_Y:G6},flt=Et.RegExp,dlt=Be(function(){var t=flt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),plt=Et.RegExp,hlt=Be(function(){var t=plt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),glt=Po.get,vlt=CC("native-string-replace",String.prototype.replace),Xv=RegExp.prototype.exec,q6=Xv,mlt=Nt("".charAt),ylt=Nt("".indexOf),blt=Nt("".replace),I2=Nt("".slice),L2=(N2=/b*/g,rn(Xv,PB=/a/,"a"),rn(Xv,N2,"a"),PB.lastIndex!==0||N2.lastIndex!==0),jB=clt.BROKEN_CARET,R2=/()??/.exec("")[1]!==void 0;(L2||R2||jB||dlt||hlt)&&(q6=function(t){var e,n,r,o,i,a,u,s=this,l=glt(s),c=Jo(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=rn(q6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=jB&&s.sticky,y=rn(slt,s),g=s.source,v=0,m=c;if(d&&(y=blt(y,"y",""),ylt(y,"g")===-1&&(y+="g"),m=I2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&mlt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),R2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),L2&&(r=s.lastIndex),o=rn(Xv,d?n:s,m),d?o?(o.input=I2(o.input,v),o[0]=I2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:L2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),R2&&o&&o.length>1&&rn(vlt,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=FC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Zv=q6;Ta({target:"RegExp",proto:!0,forced:/./.exec!==Zv},{exec:Zv});var mR=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(D.isVoid(e,n)&&D.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}(),wlt='<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>',Elt='<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>',Dlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=et("listModule.unOrderedList"),n.iconSvg=wlt,n}return vR(e,t),e}(mR),Clt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=et("listModule.orderedList"),n.iconSvg=Elt,n}return vR(e,t),e}(mR),xlt={key:"bulletedList",factory:function(){return new Dlt}},Slt={key:"numberedList",factory:function(){return new Clt}},NB=[],Alt={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=U6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===0)return v+1;var h=j.previous(m),b=D.node(c,h);if(!b)return 0;var w=Sd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var E=w,x=E.ordered,C=x!==void 0&&x,O=E.level,F=O===void 0?0:O;return F<v?v-F:F>v?0:F===v?C===y?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",NB.push(i);var s=function(l){var c=U6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===c.children.length-1)return v+1;var h=j.next(m),b=D.node(c,h);if(!b)return 0;var w=Sd(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var E=w,x=E.ordered,C=x!==void 0&&x,O=E.level,F=O===void 0?0:O;return F<v?v-F:F>v?0:F===v?C===y?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+NB.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},Olt=wn("species"),klt=RC.filter,Blt=F6>=51||!Be(function(){var t=[];return(t.constructor={})[Olt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Ta({target:"Array",proto:!0,forced:!Blt},{filter:function(t){return klt(this,t,arguments.length>1?arguments[1]:void 0)}});var zC=Function.prototype,IB=zC.apply,Flt=zC.bind,LB=zC.call,_lt=typeof Reflect=="object"&&Reflect.apply||(Flt?LB.bind(IB):function(){return LB.apply(IB,arguments)}),RB=(wn("species"),RegExp.prototype),Tlt=rR.charAt,Plt=function(t,e,n){return e+(n?Tlt(t,e).length:1)},jlt=Math.floor,M2=Nt("".charAt),Nlt=Nt("".replace),z2=Nt("".slice),Ilt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Llt=/\$([$&'`]|\d{1,2})/g,Rlt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Llt;return o!==void 0&&(o=fh(o),s=Ilt),Nlt(i,s,function(l,c){var f;switch(M2(c,0)){case"$":return"$";case"&":return t;case"`":return z2(e,0,n);case"'":return z2(e,a);case"<":f=o[z2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=jlt(p/10);return d===0?l:d<=u?r[d-1]===void 0?M2(c,1):r[d-1]+M2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Mlt=Et.TypeError,zlt=function(t,e){var n=t.exec;if(Fe(n)){var r=rn(n,t,e);return r!==null&&Jn(r),r}if(ai(t)==="RegExp")return rn(Zv,t,e);throw Mlt("RegExp#exec called on incompatible receiver")},K6=wn("replace"),$lt=Math.max,Hlt=Math.min,Vlt=Nt([].concat),$2=Nt([].push),MB=Nt("".indexOf),zB=Nt("".slice),Ult="a".replace(/./,"$0")==="$0",$B=!!/./[K6]&&/./[K6]("a","$0")==="";(function(t,e,n,r){var o=wn(t),i=!Be(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Be(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Nt(/./[o]),s=function(l,c,f){var p=$B?"$":"$0";return[function(d,y){var g=Sm(this),v=d==null?void 0:fp(d,K6);return v?rn(v,d,g,y):rn(c,Jo(g),d,y)},function(d,y){var g=Jn(this),v=Jo(d);if(typeof y=="string"&&MB(y,p)===-1&&MB(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=Fe(y);h||(y=Jo(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var E=[];;){var x=zlt(g,v);if(x===null||($2(E,x),!b))break;Jo(x[0])===""&&(g.lastIndex=Plt(v,GL(g.lastIndex),w))}for(var C,O="",F=0,R=0;R<E.length;R++){for(var H=Jo((x=E[R])[0]),M=$lt(Hlt(ph(x.index),v.length),0),K=[],U=1;U<x.length;U++)$2(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=Vlt([H],K,M,v);W!==void 0&&$2(q,W);var rt=Jo(_lt(y,void 0,q))}else rt=Rlt(H,v,M,K,W,y);M>=F&&(O+=zB(v,F,M)+rt,F=M+H.length)}return O+zB(v,F)}]}(0,""[t],function(l,c,f,p,d){var y=Nt(l),g=c.exec;return g===Zv||g===RB.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Oo(String.prototype,t,s[0]),Oo(RB,o,s[1])}})("replace",0,!!Be(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Ult||$B);var Wlt=Et.TypeError,yR=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&IC(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&V6(s))l=kc(s),c=yR(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Wlt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Glt=yR;function H2(t){return t.length?t[0].tagName.toLowerCase():""}Ta({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=fh(this),n=kc(e),r=cR(e,0);return r.length=Glt(r,e,e,n,0,t===void 0?1:ph(t)),r}}),Cd("flat"),Ta({global:!0},{globalThis:Et}),Nr&&(B.fn.append=Nr),jr&&(B.fn.attr=jr),Hl&&(B.fn.parent=Hl);var qlt={renderElems:[alt],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void N.setNodes(o,{level:p+1})}}if(L.isExpanded(l)){var d=0,y=!1;try{for(var g=_B(TB(o)),v=g.next();!v.done;v=g.next()){var m=Sd(v.value,1)[0];A.getNodeType(m)==="list-item"?d++:y=!0}}catch(C){i={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(y||d<=1)return void n();try{for(var h=_B(TB(o)),b=h.next();!b.done;b=h.next()){var w=Sd(b.value,2),E=(m=w[0],w[1]),x=m.level;p=x===void 0?0:x,N.setNodes(o,{level:p+1},{at:E})}}catch(C){u={error:C}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=Sd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[xlt,Slt],elemsToHtml:[Alt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(a){return!!it.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return H2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=H2(s);l==="ul"||l==="ol";)l=H2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},bR=ds(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[p]=C[y]=C[g]=C[v]=C[h]=!1;var O=typeof ce=="object"&&ce&&ce.Object===Object&&ce,F=typeof self=="object"&&self&&self.Object===Object&&self,R=O||F||Function("return this")(),H=e&&!e.nodeType&&e,M=H&&t&&!t.nodeType&&t,K=M&&M.exports===H,U=K&&O.process,W=function(){try{return U&&U.binding&&U.binding("util")}catch(T){}}(),q=W&&W.isTypedArray;function rt(T,I){for(var J=-1,gt=T==null?0:T.length;++J<gt;)if(I(T[J],J,T))return!0;return!1}function ct(T){var I=-1,J=Array(T.size);return T.forEach(function(gt,re){J[++I]=[re,gt]}),J}function lt(T){var I=-1,J=Array(T.size);return T.forEach(function(gt){J[++I]=gt}),J}var ut=Array.prototype,k=Function.prototype,S=Object.prototype,P=R["__core-js_shared__"],$=k.toString,Y=S.hasOwnProperty,V=function(){var T=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),at=S.toString,vt=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=K?R.Buffer:void 0,Ct=R.Symbol,G=R.Uint8Array,Lt=S.propertyIsEnumerable,Ot=ut.splice,pt=Ct?Ct.toStringTag:void 0,kt=Object.getOwnPropertySymbols,_e=mt?mt.isBuffer:void 0,Ht=function(T,I){return function(J){return T(I(J))}}(Object.keys,Object),ne=mi(R,"DataView"),be=mi(R,"Map"),En=mi(R,"Promise"),$t=mi(R,"Set"),zn=mi(R,"WeakMap"),zr=mi(Object,"create"),so=Vo(ne),xs=Vo(be),Ga=Vo(En),$r=Vo($t),lo=Vo(zn),zo=Ct?Ct.prototype:void 0,Dn=zo?zo.valueOf:void 0;function Cn(T){var I=-1,J=T==null?0:T.length;for(this.clear();++I<J;){var gt=T[I];this.set(gt[0],gt[1])}}function xn(T){var I=-1,J=T==null?0:T.length;for(this.clear();++I<J;){var gt=T[I];this.set(gt[0],gt[1])}}function jn(T){var I=-1,J=T==null?0:T.length;for(this.clear();++I<J;){var gt=T[I];this.set(gt[0],gt[1])}}function an(T){var I=-1,J=T==null?0:T.length;for(this.__data__=new jn;++I<J;)this.add(T[I])}function yr(T){var I=this.__data__=new xn(T);this.size=I.size}function Fc(T,I){var J=Uo(T),gt=!J&&kh(T),re=!J&&!gt&&co(T),jt=!J&&!gt&&!re&&po(T),_=J||gt||re||jt,z=_?function(zt,ge){for(var oe=-1,Gt=Array(zt);++oe<zt;)Gt[oe]=ge(oe);return Gt}(T.length,String):[],Q=z.length;for(var st in T)!I&&!Y.call(T,st)||_&&(st=="length"||re&&(st=="offset"||st=="parent")||jt&&(st=="buffer"||st=="byteLength"||st=="byteOffset")||_c(st,Q))||z.push(st);return z}function vi(T,I){for(var J=T.length;J--;)if(Os(T[J][0],I))return J;return-1}function $o(T){return T==null?T===void 0?"[object Undefined]":"[object Null]":pt&&pt in Object(T)?function(I){var J=Y.call(I,pt),gt=I[pt];try{I[pt]=void 0;var re=!0}catch(_){}var jt=at.call(I);return re&&(J?I[pt]=gt:delete I[pt]),jt}(T):function(I){return at.call(I)}(T)}function Ss(T){return yi(T)&&$o(T)==o}function qa(T,I,J,gt,re){return T===I||(T==null||I==null||!yi(T)&&!yi(I)?T!=T&&I!=I:function(jt,_,z,Q,st,zt){var ge=Uo(jt),oe=Uo(_),Gt=ge?i:Qn(jt),Qe=oe?i:Qn(_),Sn=(Gt=Gt==o?p:Gt)==p,Ka=(Qe=Qe==o?p:Qe)==p,Wo=Gt==Qe;if(Wo&&co(jt)){if(!co(_))return!1;ge=!0,Sn=!1}if(Wo&&!Sn)return zt||(zt=new yr),ge||po(jt)?br(jt,_,z,Q,st,zt):function(Rt,qt,Kt,Te,Nn,$n,Ur){switch(Kt){case w:if(Rt.byteLength!=qt.byteLength||Rt.byteOffset!=qt.byteOffset)return!1;Rt=Rt.buffer,qt=qt.buffer;case b:return!(Rt.byteLength!=qt.byteLength||!$n(new G(Rt),new G(qt)));case a:case u:case f:return Os(+Rt,+qt);case s:return Rt.name==qt.name&&Rt.message==qt.message;case y:case v:return Rt==qt+"";case c:var wi=ct;case g:var Pc=1&Te;if(wi||(wi=lt),Rt.size!=qt.size&&!Pc)return!1;var _h=Ur.get(Rt);if(_h)return _h==qt;Te|=2,Ur.set(Rt,qt);var ks=br(wi(Rt),wi(qt),Te,Nn,$n,Ur);return Ur.delete(Rt),ks;case m:if(Dn)return Dn.call(Rt)==Dn.call(qt)}return!1}(jt,_,Gt,z,Q,st,zt);if(!(1&z)){var bi=Sn&&Y.call(jt,"__wrapped__"),bt=Ka&&Y.call(_,"__wrapped__");if(bi||bt){var Jt=bi?jt.value():jt,Ne=bt?_.value():_;return zt||(zt=new yr),st(Jt,Ne,z,Q,zt)}}return Wo?(zt||(zt=new yr),function(Rt,qt,Kt,Te,Nn,$n){var Ur=1&Kt,wi=Ho(Rt),Pc=wi.length,_h=Ho(qt).length;if(Pc!=_h&&!Ur)return!1;for(var ks=Pc;ks--;){var Ya=wi[ks];if(!(Ur?Ya in qt:Y.call(qt,Ya)))return!1}var wx=$n.get(Rt);if(wx&&$n.get(qt))return wx==qt;var Th=!0;$n.set(Rt,qt),$n.set(qt,Rt);for(var Km=Ur;++ks<Pc;){var Ph=Rt[Ya=wi[ks]],jh=qt[Ya];if(Te)var Ex=Ur?Te(jh,Ph,Ya,qt,Rt,$n):Te(Ph,jh,Ya,Rt,qt,$n);if(!(Ex===void 0?Ph===jh||Nn(Ph,jh,Kt,Te,$n):Ex)){Th=!1;break}Km||(Km=Ya=="constructor")}if(Th&&!Km){var Nh=Rt.constructor,Ih=qt.constructor;Nh==Ih||!("constructor"in Rt)||!("constructor"in qt)||typeof Nh=="function"&&Nh instanceof Nh&&typeof Ih=="function"&&Ih instanceof Ih||(Th=!1)}return $n.delete(Rt),$n.delete(qt),Th}(jt,_,z,Q,st,zt)):!1}(T,I,J,gt,qa,re))}function As(T){return!(!Bh(T)||function(I){return!!V&&V in I}(T))&&(Tc(T)?vt:E).test(Vo(T))}function Hr(T){if(J=(I=T)&&I.constructor,gt=typeof J=="function"&&J.prototype||S,I!==gt)return Ht(T);var I,J,gt,re=[];for(var jt in Object(T))Y.call(T,jt)&&jt!="constructor"&&re.push(jt);return re}function br(T,I,J,gt,re,jt){var _=1&J,z=T.length,Q=I.length;if(z!=Q&&!(_&&Q>z))return!1;var st=jt.get(T);if(st&&jt.get(I))return st==I;var zt=-1,ge=!0,oe=2&J?new an:void 0;for(jt.set(T,I),jt.set(I,T);++zt<z;){var Gt=T[zt],Qe=I[zt];if(gt)var Sn=_?gt(Qe,Gt,zt,I,T,jt):gt(Gt,Qe,zt,T,I,jt);if(Sn!==void 0){if(Sn)continue;ge=!1;break}if(oe){if(!rt(I,function(Ka,Wo){if(bi=Wo,!oe.has(bi)&&(Gt===Ka||re(Gt,Ka,J,gt,jt)))return oe.push(Wo);var bi})){ge=!1;break}}else if(Gt!==Qe&&!re(Gt,Qe,J,gt,jt)){ge=!1;break}}return jt.delete(T),jt.delete(I),ge}function Ho(T){return function(I,J,gt){var re=J(I);return Uo(I)?re:function(jt,_){for(var z=-1,Q=_.length,st=jt.length;++z<Q;)jt[st+z]=_[z];return jt}(re,gt(I))}(T,Fh,Oh)}function Vr(T,I){var J,gt,re=T.__data__;return((gt=typeof(J=I))=="string"||gt=="number"||gt=="symbol"||gt=="boolean"?J!=="__proto__":J===null)?re[typeof I=="string"?"string":"hash"]:re.map}function mi(T,I){var J=function(gt,re){return gt==null?void 0:gt[re]}(T,I);return As(J)?J:void 0}Cn.prototype.clear=function(){this.__data__=zr?zr(null):{},this.size=0},Cn.prototype.delete=function(T){var I=this.has(T)&&delete this.__data__[T];return this.size-=I?1:0,I},Cn.prototype.get=function(T){var I=this.__data__;if(zr){var J=I[T];return J===n?void 0:J}return Y.call(I,T)?I[T]:void 0},Cn.prototype.has=function(T){var I=this.__data__;return zr?I[T]!==void 0:Y.call(I,T)},Cn.prototype.set=function(T,I){var J=this.__data__;return this.size+=this.has(T)?0:1,J[T]=zr&&I===void 0?n:I,this},xn.prototype.clear=function(){this.__data__=[],this.size=0},xn.prototype.delete=function(T){var I=this.__data__,J=vi(I,T);return!(J<0)&&(J==I.length-1?I.pop():Ot.call(I,J,1),--this.size,!0)},xn.prototype.get=function(T){var I=this.__data__,J=vi(I,T);return J<0?void 0:I[J][1]},xn.prototype.has=function(T){return vi(this.__data__,T)>-1},xn.prototype.set=function(T,I){var J=this.__data__,gt=vi(J,T);return gt<0?(++this.size,J.push([T,I])):J[gt][1]=I,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Cn,map:new(be||xn),string:new Cn}},jn.prototype.delete=function(T){var I=Vr(this,T).delete(T);return this.size-=I?1:0,I},jn.prototype.get=function(T){return Vr(this,T).get(T)},jn.prototype.has=function(T){return Vr(this,T).has(T)},jn.prototype.set=function(T,I){var J=Vr(this,T),gt=J.size;return J.set(T,I),this.size+=J.size==gt?0:1,this},an.prototype.add=an.prototype.push=function(T){return this.__data__.set(T,n),this},an.prototype.has=function(T){return this.__data__.has(T)},yr.prototype.clear=function(){this.__data__=new xn,this.size=0},yr.prototype.delete=function(T){var I=this.__data__,J=I.delete(T);return this.size=I.size,J},yr.prototype.get=function(T){return this.__data__.get(T)},yr.prototype.has=function(T){return this.__data__.has(T)},yr.prototype.set=function(T,I){var J=this.__data__;if(J instanceof xn){var gt=J.__data__;if(!be||gt.length<199)return gt.push([T,I]),this.size=++J.size,this;J=this.__data__=new jn(gt)}return J.set(T,I),this.size=J.size,this};var Oh=kt?function(T){return T==null?[]:(T=Object(T),function(I,J){for(var gt=-1,re=I==null?0:I.length,jt=0,_=[];++gt<re;){var z=I[gt];J(z,gt,I)&&(_[jt++]=z)}return _}(kt(T),function(I){return Lt.call(T,I)}))}:function(){return[]},Qn=$o;function _c(T,I){return!!(I=I==null?r:I)&&(typeof T=="number"||x.test(T))&&T>-1&&T%1==0&&T<I}function Vo(T){if(T!=null){try{return $.call(T)}catch(I){}try{return T+""}catch(I){}}return""}function Os(T,I){return T===I||T!=T&&I!=I}(ne&&Qn(new ne(new ArrayBuffer(1)))!=w||be&&Qn(new be)!=c||En&&Qn(En.resolve())!=d||$t&&Qn(new $t)!=g||zn&&Qn(new zn)!=h)&&(Qn=function(T){var I=$o(T),J=I==p?T.constructor:void 0,gt=J?Vo(J):"";if(gt)switch(gt){case so:return w;case xs:return c;case Ga:return d;case $r:return g;case lo:return h}return I});var kh=Ss(function(){return arguments}())?Ss:function(T){return yi(T)&&Y.call(T,"callee")&&!Lt.call(T,"callee")},Uo=Array.isArray,co=_e||function(){return!1};function Tc(T){if(!Bh(T))return!1;var I=$o(T);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function fo(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=r}function Bh(T){var I=typeof T;return T!=null&&(I=="object"||I=="function")}function yi(T){return T!=null&&typeof T=="object"}var po=q?function(T){return function(I){return T(I)}}(q):function(T){return yi(T)&&fo(T.length)&&!!C[$o(T)]};function Fh(T){return(I=T)!=null&&fo(I.length)&&!Tc(I)?Fc(T):Hr(T);var I}t.exports=function(T,I){return qa(T,I)}});Zn("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Zn("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var HB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function wR(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ri,mg,A0=function(t){return t&&t.Math==Math&&t},Pt=A0(typeof globalThis=="object"&&globalThis)||A0(typeof window=="object"&&window)||A0(typeof self=="object"&&self)||A0(typeof HB=="object"&&HB)||function(){return this}()||Function("return this")(),Ze=function(t){try{return!!t()}catch(e){return!0}},Pa=!Ze(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ff=Function.prototype.call,qe=Ff.bind?Ff.bind(Ff):function(){return Ff.apply(Ff,arguments)},VB={}.propertyIsEnumerable,UB=Object.getOwnPropertyDescriptor,Klt={f:UB&&!VB.call({1:2},1)?function(t){var e=UB(this,t);return!!e&&e.enumerable}:VB},$C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ER=Function.prototype,Y6=ER.bind,X6=ER.call,Ylt=Y6&&Y6.bind(X6),Mt=Y6?function(t){return t&&Ylt(X6,t)}:function(t){return t&&function(){return X6.apply(t,arguments)}},Xlt=Mt({}.toString),Zlt=Mt("".slice),va=function(t){return Zlt(Xlt(t),8,-1)},V2=Pt.Object,Jlt=Mt("".split),DR=Ze(function(){return!V2("z").propertyIsEnumerable(0)})?function(t){return va(t)=="String"?Jlt(t,""):V2(t)}:V2,Qlt=Pt.TypeError,ja=function(t){if(t==null)throw Qlt("Can't call method on "+t);return t},gh=function(t){return DR(ja(t))},bn=function(t){return typeof t=="function"},Br=function(t){return typeof t=="object"?t!==null:bn(t)},tct=function(t){return bn(t)?t:void 0},vh=function(t,e){return arguments.length<2?tct(Pt[t]):Pt[t]&&Pt[t][e]},CR=Mt({}.isPrototypeOf),U2=vh("navigator","userAgent")||"",WB=Pt.process,GB=Pt.Deno,qB=WB&&WB.versions||GB&&GB.version,KB=qB&&qB.v8;KB&&(mg=(Ri=KB.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!mg&&U2&&(!(Ri=U2.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=U2.match(/Chrome\/(\d+)/))&&(mg=+Ri[1]);var Z6=mg,J6=!!Object.getOwnPropertySymbols&&!Ze(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Z6&&Z6<41}),HC=J6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ect=Pt.Object,W2=HC?function(t){return typeof t=="symbol"}:function(t){var e=vh("Symbol");return bn(e)&&CR(e.prototype,ect(t))},nct=Pt.String,xR=function(t){try{return nct(t)}catch(e){return"Object"}},rct=Pt.TypeError,SR=function(t){if(bn(t))return t;throw rct(xR(t)+" is not a function")},VC=function(t,e){var n=t[e];return n==null?void 0:SR(n)},oct=Pt.TypeError,ict=Object.defineProperty,UC=function(t,e){try{ict(Pt,t,{value:e,configurable:!0,writable:!0})}catch(n){Pt[t]=e}return e},ma=Pt["__core-js_shared__"]||UC("__core-js_shared__",{}),WC=wR(function(t){(t.exports=function(e,n){return ma[e]||(ma[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),act=Pt.Object,GC=function(t){return act(ja(t))},uct=Mt({}.hasOwnProperty),_r=Object.hasOwn||function(t,e){return uct(GC(t),e)},sct=0,lct=Math.random(),cct=Mt(1 .toString),AR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+cct(++sct+lct,36)},_f=WC("wks"),Uu=Pt.Symbol,YB=Uu&&Uu.for,fct=HC?Uu:Uu&&Uu.withoutSetter||AR,Mr=function(t){if(!_r(_f,t)||!J6&&typeof _f[t]!="string"){var e="Symbol."+t;J6&&_r(Uu,t)?_f[t]=Uu[t]:_f[t]=HC&&YB?YB(e):fct(e)}return _f[t]},dct=Pt.TypeError,pct=Mr("toPrimitive"),qC=function(t){var e=function(n,r){if(!Br(n)||W2(n))return n;var o,i=VC(n,pct);if(i){if(r===void 0&&(r="default"),o=qe(i,n,r),!Br(o)||W2(o))return o;throw dct("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&bn(s=a.toString)&&!Br(l=qe(s,a))||bn(s=a.valueOf)&&!Br(l=qe(s,a))||u!=="string"&&bn(s=a.toString)&&!Br(l=qe(s,a)))return l;throw oct("Can't convert object to primitive value")}(n,r)}(t,"string");return W2(e)?e:e+""},Q6=Pt.document,hct=Br(Q6)&&Br(Q6.createElement),KC=function(t){return hct?Q6.createElement(t):{}},OR=!Pa&&!Ze(function(){return Object.defineProperty(KC("div"),"a",{get:function(){return 7}}).a!=7}),XB=Object.getOwnPropertyDescriptor,kR={f:Pa?XB:function(t,e){if(t=gh(t),e=qC(e),OR)try{return XB(t,e)}catch(n){}if(_r(t,e))return $C(!qe(Klt.f,t,e),t[e])}},gct=Pt.String,vct=Pt.TypeError,Tr=function(t){if(Br(t))return t;throw vct(gct(t)+" is not an object")},mct=Pt.TypeError,ZB=Object.defineProperty,mh={f:Pa?ZB:function(t,e,n){if(Tr(t),e=qC(e),Tr(n),OR)try{return ZB(t,e,n)}catch(r){}if("get"in n||"set"in n)throw mct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},rc=Pa?function(t,e,n){return mh.f(t,e,$C(1,n))}:function(t,e,n){return t[e]=n,t},yct=Mt(Function.toString);bn(ma.inspectSource)||(ma.inspectSource=function(t){return yct(t)});var Jv,Ad,Qv,YC=ma.inspectSource,JB=Pt.WeakMap,bct=bn(JB)&&/native code/.test(YC(JB)),QB=WC("keys"),BR=function(t){return QB[t]||(QB[t]=AR(t))},XC={},t3=Pt.TypeError,wct=Pt.WeakMap;if(bct||ma.state){var uu=ma.state||(ma.state=new wct),Ect=Mt(uu.get),tF=Mt(uu.has),Dct=Mt(uu.set);Jv=function(t,e){if(tF(uu,t))throw new t3("Object already initialized");return e.facade=t,Dct(uu,t,e),e},Ad=function(t){return Ect(uu,t)||{}},Qv=function(t){return tF(uu,t)}}else{var Ys=BR("state");XC[Ys]=!0,Jv=function(t,e){if(_r(t,Ys))throw new t3("Object already initialized");return e.facade=t,rc(t,Ys,e),e},Ad=function(t){return _r(t,Ys)?t[Ys]:{}},Qv=function(t){return _r(t,Ys)}}var e3={set:Jv,get:Ad,has:Qv,enforce:function(t){return Qv(t)?Ad(t):Jv(t,{})},getterFor:function(t){return function(e){var n;if(!Br(e)||(n=Ad(e)).type!==t)throw t3("Incompatible receiver, "+t+" required");return n}}},FR=Function.prototype,Cct=Pa&&Object.getOwnPropertyDescriptor,G2=_r(FR,"name"),ZC={EXISTS:G2,PROPER:G2&&function(){}.name==="something",CONFIGURABLE:G2&&(!Pa||Pa&&Cct(FR,"name").configurable)},dp=wR(function(t){var e=ZC.CONFIGURABLE,n=e3.get,r=e3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;bn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_r(u,"name")||e&&u.name!==d)&&rc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Pt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:rc(i,a,u)):f?i[a]=u:UC(a,u)})(Function.prototype,"toString",function(){return bn(this)&&n(this).source||YC(this)})}),xct=Math.ceil,Sct=Math.floor,Bm=function(t){var e=+t;return e!=e||e===0?0:(e>0?Sct:xct)(e)},Act=Math.max,Oct=Math.min,pp=function(t,e){var n=Bm(t);return n<0?Act(n+e,0):Oct(n,e)},kct=Math.min,JC=function(t){return t>0?kct(Bm(t),9007199254740991):0},Fm=function(t){return JC(t.length)},Bct=function(t){return function(e,n,r){var o,i=gh(e),a=Fm(i),u=pp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Fct=Bct(!1),eF=Mt([].push),_R=function(t,e){var n,r=gh(t),o=0,i=[];for(n in r)!_r(XC,n)&&_r(r,n)&&eF(i,n);for(;e.length>o;)_r(r,n=e[o++])&&(~Fct(i,n)||eF(i,n));return i},t1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_ct=t1.concat("length","prototype"),Tct={f:Object.getOwnPropertyNames||function(t){return _R(t,_ct)}},Pct={f:Object.getOwnPropertySymbols},jct=Mt([].concat),Nct=vh("Reflect","ownKeys")||function(t){var e=Tct.f(Tr(t)),n=Pct.f;return n?jct(e,n(t)):e},Ict=function(t,e){for(var n=Nct(e),r=mh.f,o=kR.f,i=0;i<n.length;i++){var a=n[i];_r(t,a)||r(t,a,o(e,a))}},Lct=/#|\.prototype\./,yh=function(t,e){var n=Mct[Rct(t)];return n==$ct||n!=zct&&(bn(e)?Ze(e):!!e)},Rct=yh.normalize=function(t){return String(t).replace(Lct,".").toLowerCase()},Mct=yh.data={},zct=yh.NATIVE="N",$ct=yh.POLYFILL="P",Hct=yh,Vct=kR.f,Na=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Pt:l?Pt[u]||UC(u,{}):(Pt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Vct(n,r))&&a.value:n[r],!Hct(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ict(i,o)}(t.sham||o&&o.sham)&&rc(i,"sham",!0),dp(n,r,i,t)}},TR={};TR[Mr("toStringTag")]="z";var QC=String(TR)==="[object z]",Uct=Mr("toStringTag"),Wct=Pt.Object,Gct=va(function(){return arguments}())=="Arguments",t8=QC?va:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Wct(t),Uct))=="string"?n:Gct?va(e):(r=va(e))=="Object"&&bn(e.callee)?"Arguments":r},qct=Pt.String,Fn=function(t){if(t8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qct(t)},Kct=/"/g,Yct=Mt("".replace);Na({target:"String",proto:!0,forced:Ze(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Fn(ja(this)),r="<a",(r+=' name="'+Yct(Fn(e),Kct,""")+'"')+">"+n+"</a>";var e,n,r}});var O0,PR=function(){var t=Tr(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},e8=Pt.RegExp,n3=Ze(function(){var t=e8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Xct=n3||Ze(function(){return!e8("a","y").sticky}),jR={BROKEN_CARET:n3||Ze(function(){var t=e8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Xct,UNSUPPORTED_Y:n3},Zct=Object.keys||function(t){return _R(t,t1)},Jct=Pa?Object.defineProperties:function(t,e){Tr(t);for(var n,r=gh(e),o=Zct(e),i=o.length,a=0;i>a;)mh.f(t,n=o[a++],r[n]);return t},Qct=vh("document","documentElement"),NR=BR("IE_PROTO"),q2=function(){},IR=function(t){return"<script>"+t+"<\/script>"},nF=function(t){t.write(IR("")),t.close();var e=t.parentWindow.Object;return t=null,e},yg=function(){try{O0=new ActiveXObject("htmlfile")}catch(r){}var t,e;yg=typeof document!="undefined"?document.domain&&O0?nF(O0):((e=KC("iframe")).style.display="none",Qct.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(IR("document.F=Object")),t.close(),t.F):nF(O0);for(var n=t1.length;n--;)delete yg.prototype[t1[n]];return yg()};XC[NR]=!0;var rF,K2,LR=Object.create||function(t,e){var n;return t!==null?(q2.prototype=Tr(t),n=new q2,q2.prototype=null,n[NR]=t):n=yg(),e===void 0?n:Jct(n,e)},tft=Pt.RegExp,eft=Ze(function(){var t=tft(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),nft=Pt.RegExp,rft=Ze(function(){var t=nft("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),oft=e3.get,ift=WC("native-string-replace",String.prototype.replace),e1=RegExp.prototype.exec,r3=e1,aft=Mt("".charAt),uft=Mt("".indexOf),sft=Mt("".replace),Y2=Mt("".slice),X2=(K2=/b*/g,qe(e1,rF=/a/,"a"),qe(e1,K2,"a"),rF.lastIndex!==0||K2.lastIndex!==0),oF=jR.BROKEN_CARET,Z2=/()??/.exec("")[1]!==void 0;(X2||Z2||oF||eft||rft)&&(r3=function(t){var e,n,r,o,i,a,u,s=this,l=oft(s),c=Fn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=qe(r3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=oF&&s.sticky,y=qe(PR,s),g=s.source,v=0,m=c;if(d&&(y=sft(y,"y",""),uft(y,"g")===-1&&(y+="g"),m=Y2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&aft(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Z2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),X2&&(r=s.lastIndex),o=qe(e1,d?n:s,m),d?o?(o.input=Y2(o.input,v),o[0]=Y2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:X2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Z2&&o&&o.length>1&&qe(ift,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=LR(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var hp=r3;Na({target:"RegExp",proto:!0,forced:/./.exec!==hp},{exec:hp});var n1=Array.isArray||function(t){return va(t)=="Array"},RR=function(){},lft=[],MR=vh("Reflect","construct"),n8=/^\s*(?:class|function)\b/,cft=Mt(n8.exec),fft=!n8.exec(RR),Tf=function(t){if(!bn(t))return!1;try{return MR(RR,lft,t),!0}catch(e){return!1}},r8=!MR||Ze(function(){var t;return Tf(Tf.call)||!Tf(Object)||!Tf(function(){t=!0})||t})?function(t){if(!bn(t))return!1;switch(t8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fft||!!cft(n8,YC(t))}:Tf,zR=function(t,e,n){var r=qC(e);r in t?mh.f(t,r,$C(0,n)):t[r]=n},dft=Mr("species"),o8=function(t){return Z6>=51||!Ze(function(){var e=[];return(e.constructor={})[dft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},pft=Mt([].slice),hft=o8("slice"),gft=Mr("species"),J2=Pt.Array,vft=Math.max;function ao(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 iF(t){var e=t.selection;if(e==null)return!1;var n=ao(D.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=ao(n,2)[1],o=D.start(t,r);if(Ft.equals(e.anchor,o))return!0}return!1}function aF(t,e){var n,r,o=D.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}Na({target:"Array",proto:!0,forced:!hft},{slice:function(t,e){var n,r,o,i=gh(this),a=Fm(i),u=pp(t,a),s=pp(e===void 0?a:e,a);if(n1(i)&&(n=i.constructor,(r8(n)&&(n===J2||n1(n.prototype))||Br(n)&&(n=n[gft])===null)&&(n=void 0),n===J2||n===void 0))return pft(i,u,s);for(r=new(n===void 0?J2:n)(vft(s-u,0)),o=0;u<s;u++,o++)u in i&&zR(r,o,i[u]);return r.length=o,r}});var uF=Mt(Mt.bind),mft=Mr("species"),sF=Pt.Array,yft=function(t,e){return new(function(n){var r;return n1(n)&&(r=n.constructor,(r8(r)&&(r===sF||n1(r.prototype))||Br(r)&&(r=r[mft])===null)&&(r=void 0)),r===void 0?sF:r}(t))(e===0?0:e)},lF=Mt([].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,y=GC(s),g=DR(y),v=function(E,x){return SR(E),x===void 0?E:uF?uF(E,x):function(){return E.apply(x,arguments)}}(l,c),m=Fm(g),h=0,b=f||yft,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:lF(w,p)}else switch(t){case 4:return!1;case 7:lF(w,p)}return i?-1:r||o?o:w}},_m={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},bft=_m.map;Na({target:"Array",proto:!0,forced:!o8("map")},{map:function(t){return bft(this,t,arguments.length>1?arguments[1]:void 0)}});var wft=QC?{}.toString:function(){return"[object "+t8(this)+"]"};function Tm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function $R(t){return Tm(t).every(function(e){return!!e.isHeader})}QC||dp(Object.prototype,"toString",wft,{unsafe:!0});var Eft=ZC.PROPER,o3=RegExp.prototype,HR=o3.toString,Dft=Mt(PR),Cft=Ze(function(){return HR.call({source:"a",flags:"b"})!="/a/b"}),xft=Eft&&HR.name!="toString";(Cft||xft)&&dp(RegExp.prototype,"toString",function(){var t=Tr(this),e=Fn(t.source),n=t.flags;return"/"+e+"/"+Fn(n===void 0&&CR(o3,t)&&!("flags"in o3)?Dft(t):n)},{unsafe:!0});var i3=Mr("unscopables"),a3=Array.prototype;a3[i3]==null&&mh.f(a3,i3,{configurable:!0,value:LR(null)});var Sft=_m.find,cF=!0;"find"in[]&&Array(1).find(function(){cF=!1}),Na({target:"Array",proto:!0,forced:cF},{find:function(t){return Sft(this,t,arguments.length>1?arguments[1]:void 0)}}),a3[i3].find=!0;var i8=Function.prototype,fF=i8.apply,Aft=i8.bind,dF=i8.call,VR=typeof Reflect=="object"&&Reflect.apply||(Aft?dF.bind(fF):function(){return dF.apply(fF,arguments)}),Oft=Mr("species"),Q2=RegExp.prototype,UR=function(t,e,n,r){var o=Mr(t),i=!Ze(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ze(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Oft]=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 y=Mt(l),g=c.exec;return g===hp||g===Q2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});dp(String.prototype,t,s[0]),dp(Q2,o,s[1])}r&&rc(Q2[o],"sham",!0)},kft=Mr("match"),Bft=Pt.TypeError,Fft=Mr("species"),_ft=Mt("".charAt),pF=Mt("".charCodeAt),Tft=Mt("".slice),Pft=function(t){return function(e,n){var r,o,i=Fn(ja(e)),a=Bm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=pF(i,a))<55296||r>56319||a+1===u||(o=pF(i,a+1))<56320||o>57343?t?_ft(i,a):r:t?Tft(i,a,a+2):o-56320+(r-55296<<10)+65536}},jft=Pft(!0),WR=function(t,e,n){return e+(n?jft(t,e).length:1)},Nft=Pt.Array,Ift=Math.max,hF=function(t,e,n){for(var r=Fm(t),o=pp(e,r),i=pp(n===void 0?r:n,r),a=Nft(Ift(i-o,0)),u=0;o<i;o++,u++)zR(a,u,t[o]);return a.length=u,a},Lft=Pt.TypeError,u3=function(t,e){var n=t.exec;if(bn(n)){var r=qe(n,t,e);return r!==null&&Tr(r),r}if(va(t)==="RegExp")return qe(hp,t,e);throw Lft("RegExp#exec called on incompatible receiver")},Xs=jR.UNSUPPORTED_Y,Rft=Math.min,GR=[].push,Mft=Mt(/./.exec),Zs=Mt(GR),Pf=Mt("".slice);UR("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Fn(ja(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Br(a=o)||!((u=a[kft])!==void 0?u:va(a)=="RegExp"))return qe(e,s,o,l);for(var c,f,p,d=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,v=new RegExp(o.source,y+"g");(c=qe(hp,v,s))&&!((f=v.lastIndex)>g&&(Zs(d,Pf(s,g,c.index)),c.length>1&&c.index<s.length&&VR(GR,d,hF(c,1)),p=c[0].length,g=f,d.length>=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&Mft(v,"")||Zs(d,""):Zs(d,Pf(s,g)),d.length>l?hF(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:qe(e,this,o,i)}:e,[function(o,i){var a=ja(this),u=o==null?void 0:VC(o,t);return u?qe(u,o,a,i):qe(r,Fn(a),o,i)},function(o,i){var a=Tr(this),u=Fn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,E){var x,C=Tr(w).constructor;return C===void 0||(x=Tr(C)[Fft])==null?E:function(O){if(r8(O))return O;throw Bft(xR(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Xs?"g":"y"),p=new l(Xs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return u3(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Xs?0:g;var m,h=u3(p,Xs?Pf(u,g):u);if(h===null||(m=Rft(JC(p.lastIndex+(Xs?g:0)),u.length))===y)g=WR(u,g,c);else{if(Zs(v,Pf(u,y,g)),v.length===d)return v;for(var b=1;b<=h.length-1;b++)if(Zs(v,h[b]),v.length===d)return v;g=y=m}}return Zs(v,Pf(u,y)),v}]},!!Ze(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"}),Xs);var s3=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,gF=Mt("".replace),r1="["+s3+"]",zft=RegExp("^"+r1+r1+"*"),$ft=RegExp(r1+r1+"*$"),tw=function(t){return function(e){var n=Fn(ja(e));return 1&t&&(n=gF(n,zft,"")),2&t&&(n=gF(n,$ft,"")),n}},Hft={start:tw(1),end:tw(2),trim:tw(3)},Vft=ZC.PROPER,Uft=Hft.trim;function qR(t){return t.length?t[0].tagName.toLowerCase():""}Na({target:"String",proto:!0,forced:function(t){return Ze(function(){return!!s3[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||Vft&&s3[t].name!==t})}("trim")},{trim:function(){return Uft(this)}}),Na({global:!0},{globalThis:Pt}),Nr&&(B.fn.append=Nr),To&&(B.fn.on=To),Oa&&(B.fn.focus=Oa),jr&&(B.fn.attr=jr),_o&&(B.fn.val=_o),Aa&&(B.fn.html=Aa),zl&&(B.fn.dataset=zl),Ll&&(B.fn.addClass=Ll),Rl&&(B.fn.removeClass=Rl),Ul&&(B.fn.children=Ul),iv&&(B.fn.each=iv),Vl&&(B.fn.find=Vl);var gp=!1,KR=0,YR=0,vp=null,mp=null,Od=B("body");function XR(t){gp=!1,mp=null,vp=null,Od.off("mousemove",ZR),Od.off("mouseup",XR)}Od.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(),gp=!0;var n=t.clientX;KR=n;var r=e.getBoundingClientRect().width;YR=r,Od.on("mousemove",ZR),Od.on("mouseup",XR)}});var ZR=ts(function(t){if(gp&&mp!=null&&vp!=null){t.preventDefault();var e=t.clientX,n=YR+(e-KR);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(mp,{width:n.toString()},{at:vp})}},100),Wft={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=D.start(u,p),y=D.end(u,p),g=Ft.compare(c,y)<=0&&Ft.compare(c,d)>=0,v=Ft.compare(f,y)<=0&&Ft.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=wt("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=D.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},wt("table",{width:i,contentEditable:r},wt("colgroup",null,Tm(t).map(function(u){var s=u.width;return wt("col",{width:s===void 0?"auto":s})})),wt("tbody",null,e)));return a}},Gft={type:"table-row",renderElem:function(t,e,n){return wt("tr",null,e)}},qft={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var y=A.getParentNode(p,d);if(y==null)return!1;var g=A.getParentNode(p,y);return g!=null&&Tm(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 wt("td",{colSpan:a,rowSpan:s},e);var f=wt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ts(function(p){var d=this.elm;if(d!=null){var y=d.getBoundingClientRect(),g=y.left,v=y.width,m=y.top,h=y.height,b=p.clientX,w=p.clientY;gp||(b>g+v-5&&b<g+v&&w>m&&w<m+h?(d.style.cursor="col-resize",mp=n,vp=A.findPath(n,t)):gp||(d.style.cursor="auto",mp=null,vp=null))}},100)}},e);return f}},Kft={selector:"table",preParseHtml:function(t){var e=B(t);if(qR(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]}},Yft=_m.filter;Na({target:"Array",proto:!0,forced:!o8("filter")},{filter:function(t){return Yft(this,t,arguments.length>1?arguments[1]:void 0)}});var Xft=Math.floor,ew=Mt("".charAt),Zft=Mt("".replace),nw=Mt("".slice),Jft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Qft=/\$([$&'`]|\d{1,2})/g,tdt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Qft;return o!==void 0&&(o=GC(o),s=Jft),Zft(i,s,function(l,c){var f;switch(ew(c,0)){case"$":return"$";case"&":return t;case"`":return nw(e,0,n);case"'":return nw(e,a);case"<":f=o[nw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Xft(p/10);return d===0?l:d<=u?r[d-1]===void 0?ew(c,1):r[d-1]+ew(c,1):l}f=r[p-1]}return f===void 0?"":f})},l3=Mr("replace"),edt=Math.max,ndt=Math.min,rdt=Mt([].concat),rw=Mt([].push),vF=Mt("".indexOf),mF=Mt("".slice),odt="a".replace(/./,"$0")==="$0",yF=!!/./[l3]&&/./[l3]("a","$0")==="";UR("replace",function(t,e,n){var r=yF?"$":"$0";return[function(o,i){var a=ja(this),u=o==null?void 0:VC(o,l3);return u?qe(u,o,a,i):qe(e,Fn(a),o,i)},function(o,i){var a=Tr(this),u=Fn(o);if(typeof i=="string"&&vF(i,r)===-1&&vF(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=bn(i);l||(i=Fn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=u3(a,u);if(d===null||(rw(p,d),!c))break;Fn(d[0])===""&&(a.lastIndex=WR(u,JC(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=Fn((d=p[m])[0]),b=edt(ndt(Bm(d.index),u.length),0),w=[],E=1;E<d.length;E++)rw(w,(y=d[E])===void 0?y:String(y));var x=d.groups;if(l){var C=rdt([h],w,b,u);x!==void 0&&rw(C,x);var O=Fn(VR(i,void 0,C))}else O=tdt(h,u,b,w,x,i);b>=v&&(g+=mF(u,v,b)+O,v=b+h.length)}return g+mF(u,v)}]},!!Ze(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!odt||yF);var idt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(u){return!!it.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:qR(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},adt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},udt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},sdt=function(){function t(){this.title=et("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 × 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;o[0].innerHTML=d+1+" × "+(y+1),i.children().each(function(g){B(g).children().each(function(v){var m=B(v),h=m.dataset(),b=h.x,w=h.y;b<=d&&w<=y?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;n.insertTable(e,y+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),ldt=function(){function t(){this.title=et("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),cdt=function(){function t(){this.title=et("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></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.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ao(D.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=ao(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=j.parent(a),p=j.next(f);N.insertNodes(e,l,{at:p})}}},t}(),fdt=function(){function t(){this.title=et("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></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.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ao(D.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=ao(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),bF={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ow=KC("span").classList,wF=ow&&ow.constructor&&ow.constructor.prototype,ddt=wF===Object.prototype?void 0:wF,pdt=_m.forEach,hdt=function(t,e){var n=[].forEach;return!!n&&Ze(function(){n.call(null,function(){throw 1},1)})}(),iw=hdt?[].forEach:function(t){return pdt(this,t,arguments.length>1?arguments[1]:void 0)},JR=function(t){if(t&&t.forEach!==iw)try{rc(t,"forEach",iw)}catch(e){t.forEach=iw}};for(var aw in bF)bF[aw]&&JR(Pt[aw]&&Pt[aw].prototype);JR(ddt);var gdt=function(){function t(){this.title=et("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></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.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ao(D.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=ao(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ft.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&bR(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&$R(s)&&(d.isHeader=!0),N.insertNodes(e,d,{at:p})}})})}}},t}(),vdt=function(){function t(){this.title=et("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></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.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ao(D.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=ao(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ft.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&bR(p.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:p})})})}}},t}(),mdt=function(){function t(){this.title=et("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&$R(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&Tm(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),ydt=function(){function t(){this.title=et("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),bdt={renderElems:[Wft,Gft,qft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Kft],parseElemsHtml:[idt,adt,udt],menus:[{key:"insertTable",factory:function(){return new sdt}},{key:"deleteTable",factory:function(){return new ldt}},{key:"insertTableRow",factory:function(){return new cdt}},{key:"deleteTableRow",factory:function(){return new fdt}},{key:"insertTableCol",factory:function(){return new gdt}},{key:"deleteTableCol",factory:function(){return new vdt}},{key:"tableHeader",factory:function(){return new mdt}},{key:"tableFullWidth",factory:function(){return new ydt}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
- `)},s.deleteBackward=function(l){if(!iF(s)){var c=s.selection;if(c){var f=D.before(s,c);if(f){var p=aF(s,f),d=aF(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=D.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=D.next(t);if(f)f[0]&&f[0].text&&(f=(l=D.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 y=A.genEmptyParagraph();N.insertNodes(s,y,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){iF(s)||r(l)},s.normalizeNode=function(l){var c=ao(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):D.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(tt.string(c).length!==0){var d=A.findPath(s,c),y={anchor:D.start(s,d),focus:D.end(s,d)};s.select(y)}else u();else u()}else u()}else u()},s}};Zn("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"}}),Zn("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 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 Pm(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 jm(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 Wu(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 wdt(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 EF=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function a8(t){var e={exports:{}};return t(e,e.exports),e.exports}var zi,bg,k0=function(t){return t&&t.Math==Math&&t},ot=k0(typeof globalThis=="object"&&globalThis)||k0(typeof window=="object"&&window)||k0(typeof self=="object"&&self)||k0(typeof EF=="object"&&EF)||function(){return this}()||Function("return this")(),he=function(t){try{return!!t()}catch(e){return!0}},jo=!he(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),jf=Function.prototype.call,fe=jf.bind?jf.bind(jf):function(){return jf.apply(jf,arguments)},DF={}.propertyIsEnumerable,CF=Object.getOwnPropertyDescriptor,Edt={f:CF&&!DF.call({1:2},1)?function(t){var e=CF(this,t);return!!e&&e.enumerable}:DF},Nm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},QR=Function.prototype,c3=QR.bind,f3=QR.call,Ddt=c3&&c3.bind(f3),xt=c3?function(t){return t&&Ddt(f3,t)}:function(t){return t&&function(){return f3.apply(t,arguments)}},Cdt=xt({}.toString),xdt=xt("".slice),ko=function(t){return xdt(Cdt(t),8,-1)},uw=ot.Object,Sdt=xt("".split),u8=he(function(){return!uw("z").propertyIsEnumerable(0)})?function(t){return ko(t)=="String"?Sdt(t,""):uw(t)}:uw,Adt=ot.TypeError,bh=function(t){if(t==null)throw Adt("Can't call method on "+t);return t},Va=function(t){return u8(bh(t))},ae=function(t){return typeof t=="function"},ve=function(t){return typeof t=="object"?t!==null:ae(t)},Odt=function(t){return ae(t)?t:void 0},cs=function(t,e){return arguments.length<2?Odt(ot[t]):ot[t]&&ot[t][e]},yp=xt({}.isPrototypeOf),Ol=cs("navigator","userAgent")||"",xF=ot.process,SF=ot.Deno,AF=xF&&xF.versions||SF&&SF.version,OF=AF&&AF.v8;OF&&(bg=(zi=OF.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!bg&&Ol&&(!(zi=Ol.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=Ol.match(/Chrome\/(\d+)/))&&(bg=+zi[1]);var bp=bg,d3=!!Object.getOwnPropertySymbols&&!he(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&bp&&bp<41}),s8=d3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kdt=ot.Object,sw=s8?function(t){return typeof t=="symbol"}:function(t){var e=cs("Symbol");return ae(e)&&yp(e.prototype,kdt(t))},Bdt=ot.String,i1=function(t){try{return Bdt(t)}catch(e){return"Object"}},Fdt=ot.TypeError,Ia=function(t){if(ae(t))return t;throw Fdt(i1(t)+" is not a function")},wp=function(t,e){var n=t[e];return n==null?void 0:Ia(n)},_dt=ot.TypeError,Tdt=Object.defineProperty,l8=function(t,e){try{Tdt(ot,t,{value:e,configurable:!0,writable:!0})}catch(n){ot[t]=e}return e},ya=ot["__core-js_shared__"]||l8("__core-js_shared__",{}),c8=a8(function(t){(t.exports=function(e,n){return ya[e]||(ya[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Pdt=ot.Object,Im=function(t){return Pdt(bh(t))},jdt=xt({}.hasOwnProperty),Ye=Object.hasOwn||function(t,e){return jdt(Im(t),e)},Ndt=0,Idt=Math.random(),Ldt=xt(1 .toString),f8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ldt(++Ndt+Idt,36)},Nf=c8("wks"),Gu=ot.Symbol,kF=Gu&&Gu.for,Rdt=s8?Gu:Gu&&Gu.withoutSetter||f8,ze=function(t){if(!Ye(Nf,t)||!d3&&typeof Nf[t]!="string"){var e="Symbol."+t;d3&&Ye(Gu,t)?Nf[t]=Gu[t]:Nf[t]=s8&&kF?kF(e):Rdt(e)}return Nf[t]},Mdt=ot.TypeError,zdt=ze("toPrimitive"),d8=function(t){var e=function(n,r){if(!ve(n)||sw(n))return n;var o,i=wp(n,zdt);if(i){if(r===void 0&&(r="default"),o=fe(i,n,r),!ve(o)||sw(o))return o;throw Mdt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ae(s=a.toString)&&!ve(l=fe(s,a))||ae(s=a.valueOf)&&!ve(l=fe(s,a))||u!=="string"&&ae(s=a.toString)&&!ve(l=fe(s,a)))return l;throw _dt("Can't convert object to primitive value")}(n,r)}(t,"string");return sw(e)?e:e+""},p3=ot.document,$dt=ve(p3)&&ve(p3.createElement),Ep=function(t){return $dt?p3.createElement(t):{}},tM=!jo&&!he(function(){return Object.defineProperty(Ep("div"),"a",{get:function(){return 7}}).a!=7}),BF=Object.getOwnPropertyDescriptor,p8={f:jo?BF:function(t,e){if(t=Va(t),e=d8(e),tM)try{return BF(t,e)}catch(n){}if(Ye(t,e))return Nm(!fe(Edt.f,t,e),t[e])}},Hdt=ot.String,Vdt=ot.TypeError,pn=function(t){if(ve(t))return t;throw Vdt(Hdt(t)+" is not an object")},Udt=ot.TypeError,FF=Object.defineProperty,hi={f:jo?FF:function(t,e,n){if(pn(t),e=d8(e),pn(n),tM)try{return FF(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Udt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ba=jo?function(t,e,n){return hi.f(t,e,Nm(1,n))}:function(t,e,n){return t[e]=n,t},Wdt=xt(Function.toString);ae(ya.inspectSource)||(ya.inspectSource=function(t){return Wdt(t)});var a1,kd,u1,Lm=ya.inspectSource,_F=ot.WeakMap,eM=ae(_F)&&/native code/.test(Lm(_F)),TF=c8("keys"),h8=function(t){return TF[t]||(TF[t]=f8(t))},Rm={},h3=ot.TypeError,Gdt=ot.WeakMap;if(eM||ya.state){var su=ya.state||(ya.state=new Gdt),qdt=xt(su.get),PF=xt(su.has),Kdt=xt(su.set);a1=function(t,e){if(PF(su,t))throw new h3("Object already initialized");return e.facade=t,Kdt(su,t,e),e},kd=function(t){return qdt(su,t)||{}},u1=function(t){return PF(su,t)}}else{var Js=h8("state");Rm[Js]=!0,a1=function(t,e){if(Ye(t,Js))throw new h3("Object already initialized");return e.facade=t,ba(t,Js,e),e},kd=function(t){return Ye(t,Js)?t[Js]:{}},u1=function(t){return Ye(t,Js)}}var hr={set:a1,get:kd,has:u1,enforce:function(t){return u1(t)?kd(t):a1(t,{})},getterFor:function(t){return function(e){var n;if(!ve(e)||(n=kd(e)).type!==t)throw h3("Incompatible receiver, "+t+" required");return n}}},nM=Function.prototype,Ydt=jo&&Object.getOwnPropertyDescriptor,lw=Ye(nM,"name"),Bc={EXISTS:lw,PROPER:lw&&function(){}.name==="something",CONFIGURABLE:lw&&(!jo||jo&&Ydt(nM,"name").configurable)},sr=a8(function(t){var e=Bc.CONFIGURABLE,n=hr.get,r=hr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ae(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ye(u,"name")||e&&u.name!==d)&&ba(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==ot?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ba(i,a,u)):f?i[a]=u:l8(a,u)})(Function.prototype,"toString",function(){return ae(this)&&n(this).source||Lm(this)})}),Xdt=Math.ceil,Zdt=Math.floor,Mm=function(t){var e=+t;return e!=e||e===0?0:(e>0?Zdt:Xdt)(e)},Jdt=Math.max,Qdt=Math.min,Dp=function(t,e){var n=Mm(t);return n<0?Jdt(n+e,0):Qdt(n,e)},tpt=Math.min,rM=function(t){return t>0?tpt(Mm(t),9007199254740991):0},wh=function(t){return rM(t.length)},jF=function(t){return function(e,n,r){var o,i=Va(e),a=wh(i),u=Dp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},oM={includes:jF(!0),indexOf:jF(!1)},ept=oM.indexOf,NF=xt([].push),iM=function(t,e){var n,r=Va(t),o=0,i=[];for(n in r)!Ye(Rm,n)&&Ye(r,n)&&NF(i,n);for(;e.length>o;)Ye(r,n=e[o++])&&(~ept(i,n)||NF(i,n));return i},s1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],npt=s1.concat("length","prototype"),l1={f:Object.getOwnPropertyNames||function(t){return iM(t,npt)}},rpt={f:Object.getOwnPropertySymbols},opt=xt([].concat),ipt=cs("Reflect","ownKeys")||function(t){var e=l1.f(pn(t)),n=rpt.f;return n?opt(e,n(t)):e},apt=function(t,e){for(var n=ipt(e),r=hi.f,o=p8.f,i=0;i<n.length;i++){var a=n[i];Ye(t,a)||r(t,a,o(e,a))}},upt=/#|\.prototype\./,Eh=function(t,e){var n=lpt[spt(t)];return n==fpt||n!=cpt&&(ae(e)?he(e):!!e)},spt=Eh.normalize=function(t){return String(t).replace(upt,".").toLowerCase()},lpt=Eh.data={},cpt=Eh.NATIVE="N",fpt=Eh.POLYFILL="P",c1=Eh,dpt=p8.f,Wn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?ot:l?ot[u]||l8(u,{}):(ot[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=dpt(n,r))&&a.value:n[r],!c1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;apt(i,o)}(t.sham||o&&o.sham)&&ba(i,"sham",!0),sr(n,r,i,t)}},aM={};aM[ze("toStringTag")]="z";var g8=String(aM)==="[object z]",ppt=ze("toStringTag"),hpt=ot.Object,gpt=ko(function(){return arguments}())=="Arguments",zm=g8?ko:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=hpt(t),ppt))=="string"?n:gpt?ko(e):(r=ko(e))=="Object"&&ae(e.callee)?"Arguments":r},vpt=ot.String,xr=function(t){if(zm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vpt(t)},g3=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,IF=xt("".replace),f1="["+g3+"]",mpt=RegExp("^"+f1+f1+"*"),ypt=RegExp(f1+f1+"*$"),cw=function(t){return function(e){var n=xr(bh(e));return 1&t&&(n=IF(n,mpt,"")),2&t&&(n=IF(n,ypt,"")),n}},bpt={start:cw(1),end:cw(2),trim:cw(3)},wpt=Bc.PROPER,Ept=bpt.trim;function LF(t){return t.length?t[0].tagName.toLowerCase():""}function uM(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}Wn({target:"String",proto:!0,forced:he(function(){return!!g3.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||wpt&&g3.trim.name!=="trim"})},{trim:function(){return Ept(this)}}),Wn({global:!0},{globalThis:ot}),Nr&&(B.fn.append=Nr),To&&(B.fn.on=To),Oa&&(B.fn.focus=Oa),jr&&(B.fn.attr=jr),_o&&(B.fn.val=_o),Aa&&(B.fn.html=Aa),Hl&&(B.fn.parent=Hl),Ml&&(B.fn.hasClass=Ml),Gl&&(B.fn.empty=Gl);var B0,Dpt={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=wt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:uM(a,c,p)});else{var y=wt("video",{poster:s,controls:!0},wt("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"&&(y.data.width=c),p!=="auto"&&(y.data.height=p),r=wt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},y)}return ql("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},Cpt={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+=uM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
- </div>`}},xpt=Object.keys||function(t){return iM(t,s1)},Spt=jo?Object.defineProperties:function(t,e){pn(t);for(var n,r=Va(e),o=xpt(e),i=o.length,a=0;i>a;)hi.f(t,n=o[a++],r[n]);return t},v3=cs("document","documentElement"),sM=h8("IE_PROTO"),fw=function(){},lM=function(t){return"<script>"+t+"<\/script>"},RF=function(t){t.write(lM("")),t.close();var e=t.parentWindow.Object;return t=null,e},wg=function(){try{B0=new ActiveXObject("htmlfile")}catch(r){}var t,e;wg=typeof document!="undefined"?document.domain&&B0?RF(B0):((e=Ep("iframe")).style.display="none",v3.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(lM("document.F=Object")),t.close(),t.F):RF(B0);for(var n=s1.length;n--;)delete wg.prototype[s1[n]];return wg()};Rm[sM]=!0;var v8=Object.create||function(t,e){var n;return t!==null?(fw.prototype=pn(t),n=new fw,fw.prototype=null,n[sM]=t):n=wg(),e===void 0?n:Spt(n,e)},m3=ze("unscopables"),y3=Array.prototype;y3[m3]==null&&hi.f(y3,m3,{configurable:!0,value:v8(null)});var Bd=function(t){y3[m3][t]=!0},Apt=oM.includes;Wn({target:"Array",proto:!0},{includes:function(t){return Apt(this,t,arguments.length>1?arguments[1]:void 0)}}),Bd("includes");var Opt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(LF(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=LF(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]}},MF=xt(xt.bind),Cp=function(t,e){return Ia(t),e===void 0?t:MF?MF(t,e):function(){return t.apply(e,arguments)}},d1=Array.isArray||function(t){return ko(t)=="Array"},cM=function(){},kpt=[],fM=cs("Reflect","construct"),m8=/^\s*(?:class|function)\b/,Bpt=xt(m8.exec),Fpt=!m8.exec(cM),If=function(t){if(!ae(t))return!1;try{return fM(cM,kpt,t),!0}catch(e){return!1}},y8=!fM||he(function(){var t;return If(If.call)||!If(Object)||!If(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch(zm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fpt||!!Bpt(m8,Lm(t))}:If,_pt=ze("species"),zF=ot.Array,Tpt=function(t,e){return new(function(n){var r;return d1(n)&&(r=n.constructor,(y8(r)&&(r===zF||d1(r.prototype))||ve(r)&&(r=r[_pt])===null)&&(r=void 0)),r===void 0?zF:r}(t))(e===0?0:e)},$F=xt([].push),$i=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Im(s),g=u8(y),v=Cp(l,c),m=wh(g),h=0,b=f||Tpt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:$F(w,p)}else switch(t){case 4:return!1;case 7:$F(w,p)}return i?-1:r||o?o:w}},b8={forEach:$i(0),map:$i(1),filter:$i(2),some:$i(3),every:$i(4),find:$i(5),findIndex:$i(6),filterReject:$i(7)},Ppt=b8.find,HF=!0;"find"in[]&&Array(1).find(function(){HF=!1}),Wn({target:"Array",proto:!0,forced:HF},{find:function(t){return Ppt(this,t,arguments.length>1?arguments[1]:void 0)}}),Bd("find");var jpt=g8?{}.toString:function(){return"[object "+zm(this)+"]"};function VF(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:""}]}}g8||sr(Object.prototype,"toString",jpt,{unsafe:!0});var UF,dw,Npt={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",VF(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",VF(o,i=l.attr("poster")||"",a,u)}},dM=function(){var t=pn(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},w8=ot.RegExp,b3=he(function(){var t=w8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Ipt=b3||he(function(){return!w8("a","y").sticky}),Lpt={BROKEN_CARET:b3||he(function(){var t=w8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Ipt,UNSUPPORTED_Y:b3},Rpt=ot.RegExp,Mpt=he(function(){var t=Rpt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),zpt=ot.RegExp,$pt=he(function(){var t=zpt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Hpt=hr.get,Vpt=c8("native-string-replace",String.prototype.replace),p1=RegExp.prototype.exec,w3=p1,Upt=xt("".charAt),Wpt=xt("".indexOf),Gpt=xt("".replace),pw=xt("".slice),hw=(dw=/b*/g,fe(p1,UF=/a/,"a"),fe(p1,dw,"a"),UF.lastIndex!==0||dw.lastIndex!==0),WF=Lpt.BROKEN_CARET,gw=/()??/.exec("")[1]!==void 0;(hw||gw||WF||Mpt||$pt)&&(w3=function(t){var e,n,r,o,i,a,u,s=this,l=Hpt(s),c=xr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=fe(w3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=WF&&s.sticky,y=fe(dM,s),g=s.source,v=0,m=c;if(d&&(y=Gpt(y,"y",""),Wpt(y,"g")===-1&&(y+="g"),m=pw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Upt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),gw&&(n=new RegExp("^"+g+"$(?!\\s)",y)),hw&&(r=s.lastIndex),o=fe(p1,d?n:s,m),d?o?(o.input=pw(o.input,v),o[0]=pw(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:hw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),gw&&o&&o.length>1&&fe(Vpt,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=v8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var h1=w3;Wn({target:"RegExp",proto:!0,forced:/./.exec!==h1},{exec:h1});var E8=Function.prototype,GF=E8.apply,qpt=E8.bind,qF=E8.call,pM=typeof Reflect=="object"&&Reflect.apply||(qpt?qF.bind(GF):function(){return qF.apply(GF,arguments)}),KF=(ze("species"),RegExp.prototype),Kpt=xt("".charAt),YF=xt("".charCodeAt),Ypt=xt("".slice),XF=function(t){return function(e,n){var r,o,i=xr(bh(e)),a=Mm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=YF(i,a))<55296||r>56319||a+1===u||(o=YF(i,a+1))<56320||o>57343?t?Kpt(i,a):r:t?Ypt(i,a,a+2):o-56320+(r-55296<<10)+65536}},hM={codeAt:XF(!1),charAt:XF(!0)},Xpt=hM.charAt,Zpt=function(t,e,n){return e+(n?Xpt(t,e).length:1)},Jpt=Math.floor,vw=xt("".charAt),Qpt=xt("".replace),mw=xt("".slice),tht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,eht=/\$([$&'`]|\d{1,2})/g,nht=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=eht;return o!==void 0&&(o=Im(o),s=tht),Qpt(i,s,function(l,c){var f;switch(vw(c,0)){case"$":return"$";case"&":return t;case"`":return mw(e,0,n);case"'":return mw(e,a);case"<":f=o[mw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Jpt(p/10);return d===0?l:d<=u?r[d-1]===void 0?vw(c,1):r[d-1]+vw(c,1):l}f=r[p-1]}return f===void 0?"":f})},rht=ot.TypeError,oht=function(t,e){var n=t.exec;if(ae(n)){var r=fe(n,t,e);return r!==null&&pn(r),r}if(ko(t)==="RegExp")return fe(h1,t,e);throw rht("RegExp#exec called on incompatible receiver")},E3=ze("replace"),iht=Math.max,aht=Math.min,uht=xt([].concat),yw=xt([].push),ZF=xt("".indexOf),JF=xt("".slice),sht="a".replace(/./,"$0")==="$0",QF=!!/./[E3]&&/./[E3]("a","$0")==="";function gM(t){return t===void 0&&(t="r"),t+"-"+Sj()}(function(t,e,n,r){var o=ze(t),i=!he(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!he(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=xt(/./[o]),s=function(l,c,f){var p=QF?"$":"$0";return[function(d,y){var g=bh(this),v=d==null?void 0:wp(d,E3);return v?fe(v,d,g,y):fe(c,xr(g),d,y)},function(d,y){var g=pn(this),v=xr(d);if(typeof y=="string"&&ZF(y,p)===-1&&ZF(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=ae(y);h||(y=xr(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var E=[];;){var x=oht(g,v);if(x===null||(yw(E,x),!b))break;xr(x[0])===""&&(g.lastIndex=Zpt(v,rM(g.lastIndex),w))}for(var C,O="",F=0,R=0;R<E.length;R++){for(var H=xr((x=E[R])[0]),M=iht(aht(Mm(x.index),v.length),0),K=[],U=1;U<x.length;U++)yw(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=uht([H],K,M,v);W!==void 0&&yw(q,W);var rt=xr(pM(y,void 0,q))}else rt=nht(H,v,M,K,W,y);M>=F&&(O+=JF(v,F,M)+rt,F=M+H.length)}return O+JF(v,F)}]}(0,""[t],function(l,c,f,p,d){var y=xt(l),g=c.exec;return g===h1||g===KF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});sr(String.prototype,t,s[0]),sr(KF,o,s[1])}})("replace",0,!!he(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!sht||QF);var g1=ot.Promise,v1=function(t,e,n){for(var r in e)sr(t,r,e[r],n);return t},lht=ot.String,cht=ot.TypeError,oc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=xt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return pn(r),function(i){if(typeof i=="object"||ae(i))return i;throw cht("Can't set "+lht(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),fht=hi.f,t_=ze("toStringTag"),m1=function(t,e,n){t&&!Ye(t=n?t:t.prototype,t_)&&fht(t,t_,{configurable:!0,value:e})},e_=ze("species"),dht=ot.TypeError,D8=function(t,e){if(yp(e,t))return t;throw dht("Incorrect invocation")},ic={},pht=ze("iterator"),hht=Array.prototype,ght=ze("iterator"),n_=function(t){if(t!=null)return wp(t,ght)||wp(t,"@@iterator")||ic[zm(t)]},vht=ot.TypeError,r_=function(t,e,n){var r,o;pn(t);try{if(!(r=wp(t,"return"))){if(e==="throw")throw n;return n}r=fe(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return pn(r),n},mht=ot.TypeError,Eg=function(t,e){this.stopped=t,this.result=e},o_=Eg.prototype,y1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Cp(e,f),v=function(h){return r&&r_(r,"normal",h),new Eg(!0,h)},m=function(h){return p?(pn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=n_(t)))throw mht(i1(t)+" is not iterable");if((c=o)!==void 0&&(ic.Array===c||hht[pht]===c)){for(i=0,a=wh(t);a>i;i++)if((u=m(t[i]))&&yp(o_,u))return u;return new Eg(!1)}r=function(h,b){var w=arguments.length<2?n_(h):b;if(Ia(w))return pn(fe(w,h));throw vht(i1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=fe(s,r)).done;){try{u=m(l.value)}catch(h){r_(r,"throw",h)}if(typeof u=="object"&&u&&yp(o_,u))return u}return new Eg(!1)},vM=ze("iterator"),mM=!1;try{var yht=0,i_={next:function(){return{done:!!yht++}},return:function(){mM=!0}};i_[vM]=function(){return this},Array.from(i_,function(){throw 2})}catch(t){}var xp,Qs,a_,bw,yM=function(t,e){if(!e&&!mM)return!1;var n=!1;try{var r={};r[vM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},bht=ot.TypeError,wht=ze("species"),bM=xt([].slice),wM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ol),wa=ko(ot.process)=="process",D3=ot.setImmediate,C3=ot.clearImmediate,Eht=ot.process,ww=ot.Dispatch,Dht=ot.Function,u_=ot.MessageChannel,Cht=ot.String,Ew=0,Fd={};try{xp=ot.location}catch(t){}var C8=function(t){if(Ye(Fd,t)){var e=Fd[t];delete Fd[t],e()}},Dw=function(t){return function(){C8(t)}},s_=function(t){C8(t.data)},l_=function(t){ot.postMessage(Cht(t),xp.protocol+"//"+xp.host)};D3&&C3||(D3=function(t){var e=bM(arguments,1);return Fd[++Ew]=function(){pM(ae(t)?t:Dht(t),void 0,e)},Qs(Ew),Ew},C3=function(t){delete Fd[t]},wa?Qs=function(t){Eht.nextTick(Dw(t))}:ww&&ww.now?Qs=function(t){ww.now(Dw(t))}:u_&&!wM?(bw=(a_=new u_).port2,a_.port1.onmessage=s_,Qs=Cp(bw.postMessage,bw)):ot.addEventListener&&ae(ot.postMessage)&&!ot.importScripts&&xp&&xp.protocol!=="file:"&&!he(l_)?(Qs=l_,ot.addEventListener("message",s_,!1)):Qs="onreadystatechange"in Ep("script")?function(t){v3.appendChild(Ep("script")).onreadystatechange=function(){v3.removeChild(this),C8(t)}}:function(t){setTimeout(Dw(t),0)});var Lf,wu,_d,dl,Cw,xw,Sw,c_,EM={set:D3,clear:C3},xht=/ipad|iphone|ipod/i.test(Ol)&&ot.Pebble!==void 0,Sht=/web0s(?!.*chrome)/i.test(Ol),Aht=p8.f,Aw=EM.set,f_=ot.MutationObserver||ot.WebKitMutationObserver,d_=ot.document,p_=ot.process,F0=ot.Promise,h_=Aht(ot,"queueMicrotask"),DM=h_&&h_.value;DM||(Lf=function(){var t,e;for(wa&&(t=p_.domain)&&t.exit();wu;){e=wu.fn,wu=wu.next;try{e()}catch(n){throw wu?dl():_d=void 0,n}}_d=void 0,t&&t.enter()},wM||wa||Sht||!f_||!d_?!xht&&F0&&F0.resolve?((Sw=F0.resolve(void 0)).constructor=F0,c_=Cp(Sw.then,Sw),dl=function(){c_(Lf)}):wa?dl=function(){p_.nextTick(Lf)}:(Aw=Cp(Aw,ot),dl=function(){Aw(Lf)}):(Cw=!0,xw=d_.createTextNode(""),new f_(Lf).observe(xw,{characterData:!0}),dl=function(){xw.data=Cw=!Cw}));var Ow,g_,CM,v_,xM=DM||function(t){var e={fn:t,next:void 0};_d&&(_d.next=e),wu||(wu=e,dl()),_d=e},Oht=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=Ia(e),this.reject=Ia(n)},x8={f:function(t){return new Oht(t)}},x3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},kht=typeof window=="object",SM=EM.set,Bht=ze("species"),ti="Promise",m_=hr.getterFor(ti),Fht=hr.set,_ht=hr.getterFor(ti),hu=g1&&g1.prototype,xo=g1,Rf=hu,AM=ot.TypeError,S3=ot.document,S8=ot.process,kl=x8.f,Tht=kl,Pht=!!(S3&&S3.createEvent&&ot.dispatchEvent),OM=ae(ot.PromiseRejectionEvent),kM=!1,Td=c1(ti,function(){var t=Lm(xo),e=t!==String(xo);if(!e&&bp===66)return!0;if(bp>=51&&/native code/.test(t))return!1;var n=new xo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Bht]=r,!(kM=n.then(function(){})instanceof r)||!e&&kht&&!OM}),jht=Td||!yM(function(t){xo.all(t).catch(function(){})}),BM=function(t){var e;return!(!ve(t)||!ae(e=t.then))&&e},A8=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;xM(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&&Iht(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(AM("Promise-chain cycle")):(u=BM(a))?fe(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Nht(t)})}},FM=function(t,e,n){var r,o;Pht?((r=S3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),ot.dispatchEvent(r)):r={promise:e,reason:n},!OM&&(o=ot["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=ot.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Nht=function(t){fe(SM,ot,function(){var e,n=t.facade,r=t.value;if(y_(t)&&(e=x3(function(){wa?S8.emit("unhandledRejection",r,n):FM("unhandledrejection",n,r)}),t.rejection=wa||y_(t)?2:1,e.error))throw e.value})},y_=function(t){return t.rejection!==1&&!t.parent},Iht=function(t){fe(SM,ot,function(){var e=t.facade;wa?S8.emit("rejectionHandled",e):FM("rejectionhandled",e,t.value)})},yl=function(t,e,n){return function(r){t(e,r,n)}},Bl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,A8(t,!0))},A3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw AM("Promise can't be resolved itself");var r=BM(e);r?xM(function(){var o={done:!1};try{fe(r,e,yl(A3,o,t),yl(Bl,o,t))}catch(i){Bl(o,i,t)}}):(t.value=e,t.state=1,A8(t,!1))}catch(o){Bl({done:!1},o,t)}}};if(Td&&(Rf=(xo=function(t){D8(this,Rf),Ia(t),fe(Ow,this);var e=m_(this);try{t(yl(A3,e),yl(Bl,e))}catch(n){Bl(e,n)}}).prototype,(Ow=function(t){Fht(this,{type:ti,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v1(Rf,{then:function(t,e){var n=_ht(this),r=n.reactions,o=kl(function(i,a){var u,s=pn(i).constructor;return s===void 0||(u=pn(s)[wht])==null?a:function(l){if(y8(l))return l;throw bht(i1(l)+" is not a constructor")}(u)}(this,xo));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=wa?S8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&A8(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),g_=function(){var t=new Ow,e=m_(t);this.promise=t,this.resolve=yl(A3,e),this.reject=yl(Bl,e)},x8.f=kl=function(t){return t===xo||t===CM?new g_(t):Tht(t)},ae(g1)&&hu!==Object.prototype)){v_=hu.then,kM||(sr(hu,"then",function(t,e){var n=this;return new xo(function(r,o){fe(v_,n,r,o)}).then(t,e)},{unsafe:!0}),sr(hu,"catch",Rf.catch,{unsafe:!0}));try{delete hu.constructor}catch(t){}oc&&oc(hu,Rf)}function Sp(t,e,n){return n===void 0&&(n=""),Pm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return jm(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function kw(){return gM("w-e-insert-video")}Wn({global:!0,wrap:!0,forced:Td},{Promise:xo}),m1(xo,ti,!1),function(t){var e=cs("Promise"),n=hi.f;jo&&e&&!e[e_]&&n(e,e_,{configurable:!0,get:function(){return this}})}(),CM=cs(ti),Wn({target:ti,stat:!0,forced:Td},{reject:function(t){var e=kl(this);return fe(e.reject,void 0,t),e.promise}}),Wn({target:ti,stat:!0,forced:Td},{resolve:function(t){return function(e,n){if(pn(e),ve(n)&&n.constructor===e)return n;var r=x8.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Wn({target:ti,stat:!0,forced:jht},{all:function(t){var e=this,n=kl(e),r=n.resolve,o=n.reject,i=x3(function(){var a=Ia(e.resolve),u=[],s=0,l=1;y1(t,function(c){var f=s++,p=!1;l++,fe(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=kl(e),r=n.reject,o=x3(function(){var i=Ia(e.resolve);y1(t,function(a){fe(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Lht=function(){function t(){this.title=et("videoModule.insertVideo"),this.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>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=kw(),this.posterInputId=kw(),this.buttonId=kw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Wu(ar(et("videoModule.videoSrc"),o,et("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Wu(ar(et("videoModule.videoPoster"),i,et("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=B(l),y=B(p),g=Wu(bc(a,et("videoModule.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(h){return Pm(n,void 0,void 0,function(){var b,w;return jm(this,function(E){switch(E.label){case 0:return h.preventDefault(),b=v.find("#"+o).val().trim(),w=v.find("#"+i).val().trim(),[4,Sp(e,b,w)];case 1:return E.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=v}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(g),d.val(""),y.val(""),setTimeout(function(){d.focus()}),m[0]},t}(),Rht=xt([].join),Mht=u8!=Object,zht=function(t,e){var n=[].join;return!!n&&he(function(){n.call(null,",",1)})}();Wn({target:"Array",proto:!0,forced:Mht||!zht},{join:function(t){return Rht(Va(this),t===void 0?",":t)}});var qu,b_,w_,$ht=!he(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),E_=h8("IE_PROTO"),O3=ot.Object,Hht=O3.prototype,b1=$ht?O3.getPrototypeOf:function(t){var e=Im(t);if(Ye(e,E_))return e[E_];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof O3?Hht:null},k3=ze("iterator"),_M=!1;[].keys&&("next"in(w_=[].keys())?(b_=b1(b1(w_)))!==Object.prototype&&(qu=b_):_M=!0);var Vht=qu==null||he(function(){var t={};return qu[k3].call(t)!==t});Vht&&(qu={}),ae(qu[k3])||sr(qu,k3,function(){return this});var O8={IteratorPrototype:qu,BUGGY_SAFARI_ITERATORS:_M},Uht=O8.IteratorPrototype,Wht=function(){return this},Ght=Bc.PROPER,qht=Bc.CONFIGURABLE,D_=O8.IteratorPrototype,_0=O8.BUGGY_SAFARI_ITERATORS,Mf=ze("iterator"),Kht=function(){return this},TM=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=v8(Uht,{next:Nm(1,b)}),m1(m,E,!1),ic[E]=Wht})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!_0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Mf]||d["@@iterator"]||o&&d[o],g=!_0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=b1(v.call(new t)))!==Object.prototype&&u.next&&(b1(u)!==D_&&(oc?oc(u,D_):ae(u[Mf])||sr(u,Mf,Kht)),m1(u,f,!0)),Ght&&o=="values"&&y&&y.name!=="values"&&(qht?ba(d,"name","values"):(p=!0,g=function(){return fe(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(_0||p||!(l in d))&&sr(d,l,s[l]);else Wn({target:e,proto:!0,forced:_0||p},s);return d[Mf]!==g&&sr(d,Mf,g,{name:o}),ic[e]=g,s},Yht=hr.set,Xht=hr.getterFor("Array Iterator"),ld=TM(Array,"Array",function(t,e){Yht(this,{type:"Array Iterator",target:Va(t),index:0,kind:e})},function(){var t=Xht(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");ic.Arguments=ic.Array,Bd("keys"),Bd("values"),Bd("entries");var Zht=hM.charAt,Jht=hr.set,Qht=hr.getterFor("String Iterator");TM(String,"String",function(t){Jht(this,{type:"String Iterator",string:xr(t),index:0})},function(){var t,e=Qht(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Zht(n,r),e.index+=t.length,{value:t,done:!1})});var PM=function(t,e,n){var r=d8(e);r in t?hi.f(t,r,Nm(0,n)):t[r]=n},t0t=ot.Array,e0t=Math.max,C_=l1.f,x_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n0t={f:function(t){return x_&&ko(t)=="Window"?function(e){try{return C_(e)}catch(n){return function(r,o,i){for(var a=wh(r),u=Dp(void 0,a),s=Dp(a,a),l=t0t(e0t(s-u,0)),c=0;u<s;u++,c++)PM(l,c,r[u]);return l.length=c,l}(x_)}}(t):C_(Va(t))}},S_=he(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),T0=Object.isExtensible,Su=he(function(){T0(1)})||S_?function(t){return!!ve(t)&&(!S_||ko(t)!="ArrayBuffer")&&(!T0||T0(t))}:T0,r0t=!he(function(){return Object.isExtensible(Object.preventExtensions({}))}),k8=a8(function(t){var e=hi.f,n=!1,r=f8("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=l1.f,s=xt([].splice),l={};l[r]=1,u(l).length&&(l1.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},Wn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:n0t.f}))},fastKey:function(u,s){if(!ve(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ye(u,r)){if(!Su(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ye(u,r)){if(!Su(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return r0t&&n&&Su(u)&&!Ye(u,r)&&i(u),u}};Rm[r]=!0}),P0=k8.getWeakData,o0t=hr.set,i0t=hr.getterFor,a0t=b8.find,u0t=b8.findIndex,s0t=xt([].splice),l0t=0,j0=function(t){return t.frozen||(t.frozen=new jM)},jM=function(){this.entries=[]},Bw=function(t,e){return a0t(t.entries,function(n){return n[0]===e})};jM.prototype={get:function(t){var e=Bw(this,t);if(e)return e[1]},has:function(t){return!!Bw(this,t)},set:function(t,e){var n=Bw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=u0t(this.entries,function(n){return n[0]===t});return~e&&s0t(this.entries,e,1),!!~e}};var zf,NM={getConstructor:function(t,e,n,r){var o=t(function(s,l){D8(s,i),o0t(s,{type:e,id:l0t++,frozen:void 0}),l!=null&&y1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=i0t(e),u=function(s,l,c){var f=a(s),p=P0(pn(l),!0);return p===!0?j0(f).set(l,c):p[f.id]=c,s};return v1(i,{delete:function(s){var l=a(this);if(!ve(s))return!1;var c=P0(s);return c===!0?j0(l).delete(s):c&&Ye(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ve(s))return!1;var c=P0(s);return c===!0?j0(l).has(s):c&&Ye(c,l.id)}}),v1(i,n?{get:function(s){var l=a(this);if(ve(s)){var c=P0(s);return c===!0?j0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},N0=hr.enforce,c0t=!ot.ActiveXObject&&"ActiveXObject"in ot,IM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},f0t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=ot[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=xt(u[v]);sr(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ve(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!ve(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ve(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(c1(t,!ae(a)||!(o||u.forEach&&!he(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),k8.enable();else if(c1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=he(function(){f.has(1)}),y=yM(function(v){new a(v)}),g=!o&&he(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){D8(v,u);var h=function(b,w,E){var x,C;return oc&&ae(x=w.constructor)&&x!==E&&ve(C=x.prototype)&&C!==E.prototype&&oc(b,C),b}(new a,v,s);return m!=null&&y1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Wn({global:!0,forced:s!=a},l),m1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",IM,NM);if(eM&&c0t){zf=NM.getConstructor(IM,"WeakMap",!0),k8.enable();var $f=f0t.prototype,A_=xt($f.delete),I0=xt($f.has),O_=xt($f.get),k_=xt($f.set);v1($f,{delete:function(t){if(ve(t)&&!Su(t)){var e=N0(this);return e.frozen||(e.frozen=new zf),A_(this,t)||e.frozen.delete(t)}return A_(this,t)},has:function(t){if(ve(t)&&!Su(t)){var e=N0(this);return e.frozen||(e.frozen=new zf),I0(this,t)||e.frozen.has(t)}return I0(this,t)},get:function(t){if(ve(t)&&!Su(t)){var e=N0(this);return e.frozen||(e.frozen=new zf),I0(this,t)?O_(this,t):e.frozen.get(t)}return O_(this,t)},set:function(t,e){if(ve(t)&&!Su(t)){var n=N0(this);n.frozen||(n.frozen=new zf),I0(this,t)?k_(this,t,e):n.frozen.set(t,e)}else k_(this,t,e);return this}})}var LM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Fw=Ep("span").classList,B_=Fw&&Fw.constructor&&Fw.constructor.prototype,d0t=B_===Object.prototype?void 0:B_,_w=ze("iterator"),F_=ze("toStringTag"),Tw=ld.values,RM=function(t,e){if(t){if(t[_w]!==Tw)try{ba(t,_w,Tw)}catch(r){t[_w]=Tw}if(t[F_]||ba(t,F_,e),LM[e]){for(var n in ld)if(t[n]!==ld[n])try{ba(t,n,ld[n])}catch(r){t[n]=ld[n]}}}};for(var Pw in LM)RM(ot[Pw]&&ot[Pw].prototype,Pw);RM(d0t,"DOMTokenList");var p0t=Bc.EXISTS,h0t=hi.f,MM=Function.prototype,g0t=xt(MM.toString),zM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,v0t=xt(zM.exec);jo&&!p0t&&h0t(MM,"name",{configurable:!0,get:function(){try{return v0t(zM,g0t(this))[1]}catch(t){return""}}});var m0t=ze("species"),y0t=bp>=51||!he(function(){var t=[];return(t.constructor={})[m0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),b0t=ze("species"),jw=ot.Array,w0t=Math.max;function $M(t){return t.getMenuConfig("uploadVideo")}Wn({target:"Array",proto:!0,forced:!y0t},{slice:function(t,e){var n,r,o,i=Va(this),a=wh(i),u=Dp(t,a),s=Dp(e===void 0?a:e,a);if(d1(i)&&(n=i.constructor,(y8(n)&&(n===jw||d1(n.prototype))||ve(n)&&(n=n[b0t])===null)&&(n=void 0),n===jw||n===void 0))return bM(i,u,s);for(r=new(n===void 0?jw:n)(w0t(s-u,0)),o=0;u<s;u++,o++)u in i&&PM(r,o,i[u]);return r.length=o,r}});var __=new WeakMap;function E0t(t,e){return Pm(this,void 0,void 0,function(){var n,r,o,i;return jm(this,function(a){switch(a.label){case 0:return n=function(u){var s=__.get(u);if(s!=null)return s;var l=$M(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=pI(o1(o1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(O,F){return Sp(u,O,F)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,b=v.data,w=b===void 0?{}:b;if(h===0){var E=w.url,x=E===void 0?"":E,C=w.poster;Sp(u,x,C===void 0?"":C),c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),__.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var D0t=function(){function t(){this.title=et("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return Sp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,p){var d,y;Pm(this,void 0,void 0,function(){var g,v,m,h,b,w;return jm(this,function(E){switch(E.label){case 0:if(p==null)return[2];g=Array.prototype.slice.call(p),v=$M(f).customUpload,E.label=1;case 1:E.trys.push([1,9,10,15]),m=wdt(g),E.label=2;case 2:return[4,m.next()];case 3:return(h=E.sent()).done?[3,8]:(b=h.value,v?[4,v(b,function(x,C){return Sp(f,x,C)})]:[3,5]);case 4:return E.sent(),[3,7];case 5:return[4,E0t(f,b)];case 6:E.sent(),E.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=E.sent(),d={error:w},[3,15];case 10:return E.trys.push([10,,13,14]),h&&!h.done&&(y=m.return)?[4,y.call(m)]:[3,12];case 11:E.sent(),E.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),C0t=Bc.PROPER,B3=RegExp.prototype,HM=B3.toString,x0t=xt(dM),S0t=he(function(){return HM.call({source:"a",flags:"b"})!="/a/b"}),A0t=C0t&&HM.name!="toString";function Nw(){return gM("w-e-insert-video")}(S0t||A0t)&&sr(RegExp.prototype,"toString",function(){var t=pn(this),e=xr(t.source),n=t.flags;return"/"+e+"/"+xr(n===void 0&&yp(B3,t)&&!("flags"in B3)?x0t(t):n)},{unsafe:!0});var O0t=function(){function t(){this.title=et("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Nw(),this.heightInputId=Nw(),this.buttonId=Nw()}return t.prototype.getSelectedVideoNode=function(e){return A.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Wu(ar(et("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=Wu(ar(et("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),p=Wu(bc(i,et("videoModule.ok")),1)[0];if(this.$content==null){var d=B("<div></div>");d.on("click","#"+i,function(w){w.preventDefault();var E=d.find("#"+r).val().trim(),x=d.find("#"+o).val().trim(),C=parseInt(E),O=parseInt(x),F=C?C.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:F,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),e.hidePanelOrModal()}),this.$content=d}var y=this.$content;y.empty(),y.append(u),y.append(c),y.append(p);var g=this.getSelectedVideoNode(e);if(g==null)return y[0];var v=g.width,m=v===void 0?"auto":v,h=g.height,b=h===void 0?"auto":h;return s.val(m),f.val(b),setTimeout(function(){s.focus()}),y[0]},t}(),k0t={renderElems:[Dpt],elemsToHtml:[Cpt],preParseHtml:[Opt],parseElemsHtml:[Npt],menus:[{key:"insertVideo",factory:function(){return new Lht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new D0t},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new O0t}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=Wu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Zn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Zn("zh-CN",{uploadImgModule:{uploadImage:"\u4E0A\u4F20\u56FE\u7247",uploadError:"{{fileName}} \u4E0A\u4F20\u51FA\u9519"}});var T_=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function B8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Hi,Dg,L0=function(t){return t&&t.Math==Math&&t},nt=L0(typeof globalThis=="object"&&globalThis)||L0(typeof window=="object"&&window)||L0(typeof self=="object"&&self)||L0(typeof T_=="object"&&T_)||function(){return this}()||Function("return this")(),ye=function(t){try{return!!t()}catch(e){return!0}},No=!ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Hf=Function.prototype.call,te=Hf.bind?Hf.bind(Hf):function(){return Hf.apply(Hf,arguments)},P_={}.propertyIsEnumerable,j_=Object.getOwnPropertyDescriptor,B0t={f:j_&&!P_.call({1:2},1)?function(t){var e=j_(this,t);return!!e&&e.enumerable}:P_},$m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},VM=Function.prototype,F3=VM.bind,_3=VM.call,F0t=F3&&F3.bind(_3),Tt=F3?function(t){return t&&F0t(_3,t)}:function(t){return t&&function(){return _3.apply(t,arguments)}},_0t=Tt({}.toString),T0t=Tt("".slice),ro=function(t){return T0t(_0t(t),8,-1)},Iw=nt.Object,P0t=Tt("".split),F8=ye(function(){return!Iw("z").propertyIsEnumerable(0)})?function(t){return ro(t)=="String"?P0t(t,""):Iw(t)}:Iw,j0t=nt.TypeError,Ap=function(t){if(t==null)throw j0t("Can't call method on "+t);return t},Ua=function(t){return F8(Ap(t))},se=function(t){return typeof t=="function"},pe=function(t){return typeof t=="object"?t!==null:se(t)},N0t=function(t){return se(t)?t:void 0},fs=function(t,e){return arguments.length<2?N0t(nt[t]):nt[t]&&nt[t][e]},Op=Tt({}.isPrototypeOf),Fl=fs("navigator","userAgent")||"",N_=nt.process,I_=nt.Deno,L_=N_&&N_.versions||I_&&I_.version,R_=L_&&L_.v8;R_&&(Dg=(Hi=R_.split("."))[0]>0&&Hi[0]<4?1:+(Hi[0]+Hi[1])),!Dg&&Fl&&(!(Hi=Fl.match(/Edge\/(\d+)/))||Hi[1]>=74)&&(Hi=Fl.match(/Chrome\/(\d+)/))&&(Dg=+Hi[1]);var kp=Dg,T3=!!Object.getOwnPropertySymbols&&!ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kp&&kp<41}),_8=T3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",I0t=nt.Object,Lw=_8?function(t){return typeof t=="symbol"}:function(t){var e=fs("Symbol");return se(e)&&Op(e.prototype,I0t(t))},L0t=nt.String,w1=function(t){try{return L0t(t)}catch(e){return"Object"}},R0t=nt.TypeError,La=function(t){if(se(t))return t;throw R0t(w1(t)+" is not a function")},Bp=function(t,e){var n=t[e];return n==null?void 0:La(n)},M0t=nt.TypeError,z0t=Object.defineProperty,T8=function(t,e){try{z0t(nt,t,{value:e,configurable:!0,writable:!0})}catch(n){nt[t]=e}return e},Ea=nt["__core-js_shared__"]||T8("__core-js_shared__",{}),P8=B8(function(t){(t.exports=function(e,n){return Ea[e]||(Ea[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),$0t=nt.Object,j8=function(t){return $0t(Ap(t))},H0t=Tt({}.hasOwnProperty),Xe=Object.hasOwn||function(t,e){return H0t(j8(t),e)},V0t=0,U0t=Math.random(),W0t=Tt(1 .toString),N8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+W0t(++V0t+U0t,36)},Vf=P8("wks"),Ku=nt.Symbol,M_=Ku&&Ku.for,G0t=_8?Ku:Ku&&Ku.withoutSetter||N8,$e=function(t){if(!Xe(Vf,t)||!T3&&typeof Vf[t]!="string"){var e="Symbol."+t;T3&&Xe(Ku,t)?Vf[t]=Ku[t]:Vf[t]=_8&&M_?M_(e):G0t(e)}return Vf[t]},q0t=nt.TypeError,K0t=$e("toPrimitive"),I8=function(t){var e=function(n,r){if(!pe(n)||Lw(n))return n;var o,i=Bp(n,K0t);if(i){if(r===void 0&&(r="default"),o=te(i,n,r),!pe(o)||Lw(o))return o;throw q0t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&se(s=a.toString)&&!pe(l=te(s,a))||se(s=a.valueOf)&&!pe(l=te(s,a))||u!=="string"&&se(s=a.toString)&&!pe(l=te(s,a)))return l;throw M0t("Can't convert object to primitive value")}(n,r)}(t,"string");return Lw(e)?e:e+""},P3=nt.document,Y0t=pe(P3)&&pe(P3.createElement),Fp=function(t){return Y0t?P3.createElement(t):{}},UM=!No&&!ye(function(){return Object.defineProperty(Fp("div"),"a",{get:function(){return 7}}).a!=7}),z_=Object.getOwnPropertyDescriptor,L8={f:No?z_:function(t,e){if(t=Ua(t),e=I8(e),UM)try{return z_(t,e)}catch(n){}if(Xe(t,e))return $m(!te(B0t.f,t,e),t[e])}},X0t=nt.String,Z0t=nt.TypeError,hn=function(t){if(pe(t))return t;throw Z0t(X0t(t)+" is not an object")},J0t=nt.TypeError,$_=Object.defineProperty,gi={f:No?$_:function(t,e,n){if(hn(t),e=I8(e),hn(n),UM)try{return $_(t,e,n)}catch(r){}if("get"in n||"set"in n)throw J0t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Bo=No?function(t,e,n){return gi.f(t,e,$m(1,n))}:function(t,e,n){return t[e]=n,t},Q0t=Tt(Function.toString);se(Ea.inspectSource)||(Ea.inspectSource=function(t){return Q0t(t)});var E1,Pd,D1,Hm=Ea.inspectSource,H_=nt.WeakMap,WM=se(H_)&&/native code/.test(Hm(H_)),V_=P8("keys"),R8=function(t){return V_[t]||(V_[t]=N8(t))},Vm={},j3=nt.TypeError,tgt=nt.WeakMap;if(WM||Ea.state){var lu=Ea.state||(Ea.state=new tgt),egt=Tt(lu.get),U_=Tt(lu.has),ngt=Tt(lu.set);E1=function(t,e){if(U_(lu,t))throw new j3("Object already initialized");return e.facade=t,ngt(lu,t,e),e},Pd=function(t){return egt(lu,t)||{}},D1=function(t){return U_(lu,t)}}else{var tl=R8("state");Vm[tl]=!0,E1=function(t,e){if(Xe(t,tl))throw new j3("Object already initialized");return e.facade=t,Bo(t,tl,e),e},Pd=function(t){return Xe(t,tl)?t[tl]:{}},D1=function(t){return Xe(t,tl)}}var gr={set:E1,get:Pd,has:D1,enforce:function(t){return D1(t)?Pd(t):E1(t,{})},getterFor:function(t){return function(e){var n;if(!pe(e)||(n=Pd(e)).type!==t)throw j3("Incompatible receiver, "+t+" required");return n}}},GM=Function.prototype,rgt=No&&Object.getOwnPropertyDescriptor,Rw=Xe(GM,"name"),Dh={EXISTS:Rw,PROPER:Rw&&function(){}.name==="something",CONFIGURABLE:Rw&&(!No||No&&rgt(GM,"name").configurable)},lr=B8(function(t){var e=Dh.CONFIGURABLE,n=gr.get,r=gr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;se(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xe(u,"name")||e&&u.name!==d)&&Bo(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==nt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Bo(i,a,u)):f?i[a]=u:T8(a,u)})(Function.prototype,"toString",function(){return se(this)&&n(this).source||Hm(this)})}),ogt=Math.ceil,igt=Math.floor,M8=function(t){var e=+t;return e!=e||e===0?0:(e>0?igt:ogt)(e)},agt=Math.max,ugt=Math.min,_p=function(t,e){var n=M8(t);return n<0?agt(n+e,0):ugt(n,e)},sgt=Math.min,qM=function(t){return t>0?sgt(M8(t),9007199254740991):0},Ch=function(t){return qM(t.length)},lgt=function(t){return function(e,n,r){var o,i=Ua(e),a=Ch(i),u=_p(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},cgt=lgt(!1),W_=Tt([].push),KM=function(t,e){var n,r=Ua(t),o=0,i=[];for(n in r)!Xe(Vm,n)&&Xe(r,n)&&W_(i,n);for(;e.length>o;)Xe(r,n=e[o++])&&(~cgt(i,n)||W_(i,n));return i},C1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fgt=C1.concat("length","prototype"),x1={f:Object.getOwnPropertyNames||function(t){return KM(t,fgt)}},dgt={f:Object.getOwnPropertySymbols},pgt=Tt([].concat),hgt=fs("Reflect","ownKeys")||function(t){var e=x1.f(hn(t)),n=dgt.f;return n?pgt(e,n(t)):e},ggt=function(t,e){for(var n=hgt(e),r=gi.f,o=L8.f,i=0;i<n.length;i++){var a=n[i];Xe(t,a)||r(t,a,o(e,a))}},vgt=/#|\.prototype\./,xh=function(t,e){var n=ygt[mgt(t)];return n==wgt||n!=bgt&&(se(e)?ye(e):!!e)},mgt=xh.normalize=function(t){return String(t).replace(vgt,".").toLowerCase()},ygt=xh.data={},bgt=xh.NATIVE="N",wgt=xh.POLYFILL="P",S1=xh,Egt=L8.f,So=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?nt:l?nt[u]||T8(u,{}):(nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Egt(n,r))&&a.value:n[r],!S1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ggt(i,o)}(t.sham||o&&o.sham)&&Bo(i,"sham",!0),lr(n,r,i,t)}},A1=Array.isArray||function(t){return ro(t)=="Array"},YM={};YM[$e("toStringTag")]="z";var z8=String(YM)==="[object z]",Dgt=$e("toStringTag"),Cgt=nt.Object,xgt=ro(function(){return arguments}())=="Arguments",Um=z8?ro:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Cgt(t),Dgt))=="string"?n:xgt?ro(e):(r=ro(e))=="Object"&&se(e.callee)?"Arguments":r},XM=function(){},Sgt=[],ZM=fs("Reflect","construct"),$8=/^\s*(?:class|function)\b/,Agt=Tt($8.exec),Ogt=!$8.exec(XM),Uf=function(t){if(!se(t))return!1;try{return ZM(XM,Sgt,t),!0}catch(e){return!1}},H8=!ZM||ye(function(){var t;return Uf(Uf.call)||!Uf(Object)||!Uf(function(){t=!0})||t})?function(t){if(!se(t))return!1;switch(Um(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ogt||!!Agt($8,Hm(t))}:Uf,JM=function(t,e,n){var r=I8(e);r in t?gi.f(t,r,$m(0,n)):t[r]=n},kgt=$e("species"),QM=Tt([].slice),Bgt=kp>=51||!ye(function(){var t=[];return(t.constructor={})[kgt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Fgt=$e("species"),Mw=nt.Array,_gt=Math.max;So({target:"Array",proto:!0,forced:!Bgt},{slice:function(t,e){var n,r,o,i=Ua(this),a=Ch(i),u=_p(t,a),s=_p(e===void 0?a:e,a);if(A1(i)&&(n=i.constructor,(H8(n)&&(n===Mw||A1(n.prototype))||pe(n)&&(n=n[Fgt])===null)&&(n=void 0),n===Mw||n===void 0))return QM(i,u,s);for(r=new(n===void 0?Mw:n)(_gt(s-u,0)),o=0;u<s;u++,o++)u in i&&JM(r,o,i[u]);return r.length=o,r}});var Tgt=z8?{}.toString:function(){return"[object "+Um(this)+"]"};z8||lr(Object.prototype,"toString",Tgt,{unsafe:!0});var R0,Pgt=nt.String,Da=function(t){if(Um(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pgt(t)},tz=function(){var t=hn(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},V8=nt.RegExp,N3=ye(function(){var t=V8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),jgt=N3||ye(function(){return!V8("a","y").sticky}),ez={BROKEN_CARET:N3||ye(function(){var t=V8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:jgt,UNSUPPORTED_Y:N3},Ngt=Object.keys||function(t){return KM(t,C1)},Igt=No?Object.defineProperties:function(t,e){hn(t);for(var n,r=Ua(e),o=Ngt(e),i=o.length,a=0;i>a;)gi.f(t,n=o[a++],r[n]);return t},I3=fs("document","documentElement"),nz=R8("IE_PROTO"),zw=function(){},rz=function(t){return"<script>"+t+"<\/script>"},G_=function(t){t.write(rz("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cg=function(){try{R0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Cg=typeof document!="undefined"?document.domain&&R0?G_(R0):((e=Fp("iframe")).style.display="none",I3.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(rz("document.F=Object")),t.close(),t.F):G_(R0);for(var n=C1.length;n--;)delete Cg.prototype[C1[n]];return Cg()};Vm[nz]=!0;var q_,$w,U8=Object.create||function(t,e){var n;return t!==null?(zw.prototype=hn(t),n=new zw,zw.prototype=null,n[nz]=t):n=Cg(),e===void 0?n:Igt(n,e)},Lgt=nt.RegExp,Rgt=ye(function(){var t=Lgt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Mgt=nt.RegExp,zgt=ye(function(){var t=Mgt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),$gt=gr.get,Hgt=P8("native-string-replace",String.prototype.replace),O1=RegExp.prototype.exec,L3=O1,Vgt=Tt("".charAt),Ugt=Tt("".indexOf),Wgt=Tt("".replace),Hw=Tt("".slice),Vw=($w=/b*/g,te(O1,q_=/a/,"a"),te(O1,$w,"a"),q_.lastIndex!==0||$w.lastIndex!==0),K_=ez.BROKEN_CARET,Uw=/()??/.exec("")[1]!==void 0;(Vw||Uw||K_||Rgt||zgt)&&(L3=function(t){var e,n,r,o,i,a,u,s=this,l=$gt(s),c=Da(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=te(L3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=K_&&s.sticky,y=te(tz,s),g=s.source,v=0,m=c;if(d&&(y=Wgt(y,"y",""),Ugt(y,"g")===-1&&(y+="g"),m=Hw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Vgt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Uw&&(n=new RegExp("^"+g+"$(?!\\s)",y)),Vw&&(r=s.lastIndex),o=te(O1,d?n:s,m),d?o?(o.input=Hw(o.input,v),o[0]=Hw(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),Uw&&o&&o.length>1&&te(Hgt,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=U8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Tp=L3;So({target:"RegExp",proto:!0,forced:/./.exec!==Tp},{exec:Tp});var W8=Function.prototype,Y_=W8.apply,Ggt=W8.bind,X_=W8.call,oz=typeof Reflect=="object"&&Reflect.apply||(Ggt?X_.bind(Y_):function(){return X_.apply(Y_,arguments)}),qgt=$e("species"),Ww=RegExp.prototype,Kgt=$e("match"),Ygt=nt.TypeError,Xgt=$e("species"),iz=function(t,e){var n,r=hn(t).constructor;return r===void 0||(n=hn(r)[Xgt])==null?e:function(o){if(H8(o))return o;throw Ygt(w1(o)+" is not a constructor")}(n)},Zgt=Tt("".charAt),Z_=Tt("".charCodeAt),Jgt=Tt("".slice),J_=function(t){return function(e,n){var r,o,i=Da(Ap(e)),a=M8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Z_(i,a))<55296||r>56319||a+1===u||(o=Z_(i,a+1))<56320||o>57343?t?Zgt(i,a):r:t?Jgt(i,a,a+2):o-56320+(r-55296<<10)+65536}},az={codeAt:J_(!1),charAt:J_(!0)},Qgt=az.charAt,tvt=function(t,e,n){return e+(n?Qgt(t,e).length:1)},evt=nt.Array,nvt=Math.max,R3=function(t,e,n){for(var r=Ch(t),o=_p(e,r),i=_p(n===void 0?r:n,r),a=evt(nvt(i-o,0)),u=0;o<i;o++,u++)JM(a,u,t[o]);return a.length=u,a},rvt=nt.TypeError,Q_=function(t,e){var n=t.exec;if(se(n)){var r=te(n,t,e);return r!==null&&hn(r),r}if(ro(t)==="RegExp")return te(Tp,t,e);throw rvt("RegExp#exec called on incompatible receiver")},el=ez.UNSUPPORTED_Y,ovt=Math.min,uz=[].push,ivt=Tt(/./.exec),nl=Tt(uz),Wf=Tt("".slice);(function(t,e,n,r){var o=$e(t),i=!ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ye(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[qgt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Tt(/./[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,y){var g,v,m=Da(Ap(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!pe(g=d)||!((v=g[Kgt])!==void 0?v:ro(g)=="RegExp"))return te(c,m,d,h);for(var b,w,E,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=te(Tp,F,m))&&!((w=F.lastIndex)>O&&(nl(x,Wf(m,O,b.index)),b.length>1&&b.index<m.length&&oz(uz,x,R3(b,1)),E=b[0].length,O=w,x.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===m.length?!E&&ivt(F,"")||nl(x,""):nl(x,Wf(m,O)),x.length>h?R3(x,0,h):x}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:te(c,this,d,y)}:c,[function(d,y){var g=Ap(this),v=d==null?void 0:Bp(d,l);return v?te(v,d,g,y):te(p,Da(g),d,y)},function(d,y){var g=hn(this),v=Da(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=iz(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(el?"g":"y"),E=new h(el?"^(?:"+g.source+")":g,w),x=y===void 0?4294967295:y>>>0;if(x===0)return[];if(v.length===0)return Q_(E,v)===null?[v]:[];for(var C=0,O=0,F=[];O<v.length;){E.lastIndex=el?0:O;var R,H=Q_(E,el?Wf(v,O):v);if(H===null||(R=ovt(qM(E.lastIndex+(el?O:0)),v.length))===C)O=tvt(v,O,b);else{if(nl(F,Wf(v,C,O)),F.length===x)return F;for(var M=1;M<=H.length-1;M++)if(nl(F,H[M]),F.length===x)return F;O=C=R}}return nl(F,Wf(v,C)),F}]}(o,""[t],function(l,c,f,p,d){var y=Tt(l),g=c.exec;return g===Tp||g===Ww.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});lr(String.prototype,t,s[0]),lr(Ww,o,s[1])}r&&Bo(Ww[o],"sham",!0)})("split",0,!!ye(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"}),el);/*! *****************************************************************************
- 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 k1=function(){return k1=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},k1.apply(this,arguments)};function G8(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 q8(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 avt(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 M3=$e("unscopables"),z3=Array.prototype;z3[M3]==null&&gi.f(z3,M3,{configurable:!0,value:U8(null)});var Yu,tT,eT,Gw=function(t){z3[M3][t]=!0},ac={},uvt=!ye(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),nT=R8("IE_PROTO"),$3=nt.Object,svt=$3.prototype,B1=uvt?$3.getPrototypeOf:function(t){var e=j8(t);if(Xe(e,nT))return e[nT];var n=e.constructor;return se(n)&&e instanceof n?n.prototype:e instanceof $3?svt:null},H3=$e("iterator"),sz=!1;[].keys&&("next"in(eT=[].keys())?(tT=B1(B1(eT)))!==Object.prototype&&(Yu=tT):sz=!0);var lvt=Yu==null||ye(function(){var t={};return Yu[H3].call(t)!==t});lvt&&(Yu={}),se(Yu[H3])||lr(Yu,H3,function(){return this});var K8={IteratorPrototype:Yu,BUGGY_SAFARI_ITERATORS:sz},cvt=gi.f,rT=$e("toStringTag"),F1=function(t,e,n){t&&!Xe(t=n?t:t.prototype,rT)&&cvt(t,rT,{configurable:!0,value:e})},fvt=K8.IteratorPrototype,dvt=function(){return this},pvt=nt.String,hvt=nt.TypeError,uc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return hn(r),function(i){if(typeof i=="object"||se(i))return i;throw hvt("Can't set "+pvt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),gvt=Dh.PROPER,vvt=Dh.CONFIGURABLE,oT=K8.IteratorPrototype,M0=K8.BUGGY_SAFARI_ITERATORS,Gf=$e("iterator"),mvt=function(){return this},lz=function(t,e,n,r,o,i,a){(function(m,h,b,w){var E=h+" Iterator";m.prototype=U8(fvt,{next:$m(1,b)}),F1(m,E,!1),ac[E]=dvt})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!M0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Gf]||d["@@iterator"]||o&&d[o],g=!M0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=B1(v.call(new t)))!==Object.prototype&&u.next&&(B1(u)!==oT&&(uc?uc(u,oT):se(u[Gf])||lr(u,Gf,mvt)),F1(u,f,!0)),gvt&&o=="values"&&y&&y.name!=="values"&&(vvt?Bo(d,"name","values"):(p=!0,g=function(){return te(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(M0||p||!(l in d))&&lr(d,l,s[l]);else So({target:e,proto:!0,forced:M0||p},s);return d[Gf]!==g&&lr(d,Gf,g,{name:o}),ac[e]=g,s},yvt=gr.set,bvt=gr.getterFor("Array Iterator"),cd=lz(Array,"Array",function(t,e){yvt(this,{type:"Array Iterator",target:Ua(t),index:0,kind:e})},function(){var t=bvt(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");ac.Arguments=ac.Array,Gw("keys"),Gw("values"),Gw("entries");var wvt=az.charAt,Evt=gr.set,Dvt=gr.getterFor("String Iterator");lz(String,"String",function(t){Evt(this,{type:"String Iterator",string:Da(t),index:0})},function(){var t,e=Dvt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=wvt(n,r),e.index+=t.length,{value:t,done:!1})});var _1=function(t,e,n){for(var r in e)lr(t,r,e[r],n);return t},iT=x1.f,aT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Cvt={f:function(t){return aT&&ro(t)=="Window"?function(e){try{return iT(e)}catch(n){return R3(aT)}}(t):iT(Ua(t))}},uT=ye(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),z0=Object.isExtensible,Au=ye(function(){z0(1)})||uT?function(t){return!!pe(t)&&(!uT||ro(t)!="ArrayBuffer")&&(!z0||z0(t))}:z0,xvt=!ye(function(){return Object.isExtensible(Object.preventExtensions({}))}),Y8=B8(function(t){var e=gi.f,n=!1,r=N8("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=x1.f,s=Tt([].splice),l={};l[r]=1,u(l).length&&(x1.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},So({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cvt.f}))},fastKey:function(u,s){if(!pe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Xe(u,r)){if(!Au(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Xe(u,r)){if(!Au(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return xvt&&n&&Au(u)&&!Xe(u,r)&&i(u),u}};Vm[r]=!0}),sT=Tt(Tt.bind),Pp=function(t,e){return La(t),e===void 0?t:sT?sT(t,e):function(){return t.apply(e,arguments)}},Svt=$e("iterator"),Avt=Array.prototype,Ovt=$e("iterator"),lT=function(t){if(t!=null)return Bp(t,Ovt)||Bp(t,"@@iterator")||ac[Um(t)]},kvt=nt.TypeError,cT=function(t,e,n){var r,o;hn(t);try{if(!(r=Bp(t,"return"))){if(e==="throw")throw n;return n}r=te(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return hn(r),n},Bvt=nt.TypeError,xg=function(t,e){this.stopped=t,this.result=e},fT=xg.prototype,T1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Pp(e,f),v=function(h){return r&&cT(r,"normal",h),new xg(!0,h)},m=function(h){return p?(hn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=lT(t)))throw Bvt(w1(t)+" is not iterable");if((c=o)!==void 0&&(ac.Array===c||Avt[Svt]===c)){for(i=0,a=Ch(t);a>i;i++)if((u=m(t[i]))&&Op(fT,u))return u;return new xg(!1)}r=function(h,b){var w=arguments.length<2?lT(h):b;if(La(w))return hn(te(w,h));throw kvt(w1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=te(s,r)).done;){try{u=m(l.value)}catch(h){cT(r,"throw",h)}if(typeof u=="object"&&u&&Op(fT,u))return u}return new xg(!1)},Fvt=nt.TypeError,X8=function(t,e){if(Op(e,t))return t;throw Fvt("Incorrect invocation")},cz=$e("iterator"),fz=!1;try{var _vt=0,dT={next:function(){return{done:!!_vt++}},return:function(){fz=!0}};dT[cz]=function(){return this},Array.from(dT,function(){throw 2})}catch(t){}var dz=function(t,e){if(!e&&!fz)return!1;var n=!1;try{var r={};r[cz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},Tvt=$e("species"),pT=nt.Array,Pvt=function(t,e){return new(function(n){var r;return A1(n)&&(r=n.constructor,(H8(r)&&(r===pT||A1(r.prototype))||pe(r)&&(r=r[Tvt])===null)&&(r=void 0)),r===void 0?pT:r}(t))(e===0?0:e)},hT=Tt([].push),Vi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=j8(s),g=F8(y),v=Pp(l,c),m=Ch(g),h=0,b=f||Pvt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:hT(w,p)}else switch(t){case 4:return!1;case 7:hT(w,p)}return i?-1:r||o?o:w}},Z8={forEach:Vi(0),map:Vi(1),filter:Vi(2),some:Vi(3),every:Vi(4),find:Vi(5),findIndex:Vi(6),filterReject:Vi(7)},$0=Y8.getWeakData,jvt=gr.set,Nvt=gr.getterFor,Ivt=Z8.find,Lvt=Z8.findIndex,Rvt=Tt([].splice),Mvt=0,H0=function(t){return t.frozen||(t.frozen=new pz)},pz=function(){this.entries=[]},qw=function(t,e){return Ivt(t.entries,function(n){return n[0]===e})};pz.prototype={get:function(t){var e=qw(this,t);if(e)return e[1]},has:function(t){return!!qw(this,t)},set:function(t,e){var n=qw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Lvt(this.entries,function(n){return n[0]===t});return~e&&Rvt(this.entries,e,1),!!~e}};var qf,hz={getConstructor:function(t,e,n,r){var o=t(function(s,l){X8(s,i),jvt(s,{type:e,id:Mvt++,frozen:void 0}),l!=null&&T1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Nvt(e),u=function(s,l,c){var f=a(s),p=$0(hn(l),!0);return p===!0?H0(f).set(l,c):p[f.id]=c,s};return _1(i,{delete:function(s){var l=a(this);if(!pe(s))return!1;var c=$0(s);return c===!0?H0(l).delete(s):c&&Xe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pe(s))return!1;var c=$0(s);return c===!0?H0(l).has(s):c&&Xe(c,l.id)}}),_1(i,n?{get:function(s){var l=a(this);if(pe(s)){var c=$0(s);return c===!0?H0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},V0=gr.enforce,zvt=!nt.ActiveXObject&&"ActiveXObject"in nt,gz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$vt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=nt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Tt(u[v]);lr(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!pe(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!pe(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!pe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(S1(t,!se(a)||!(o||u.forEach&&!ye(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),Y8.enable();else if(S1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ye(function(){f.has(1)}),y=dz(function(v){new a(v)}),g=!o&&ye(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){X8(v,u);var h=function(b,w,E){var x,C;return uc&&se(x=w.constructor)&&x!==E&&pe(C=x.prototype)&&C!==E.prototype&&uc(b,C),b}(new a,v,s);return m!=null&&T1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,So({global:!0,forced:s!=a},l),F1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",gz,hz);if(WM&&zvt){qf=hz.getConstructor(gz,"WeakMap",!0),Y8.enable();var Kf=$vt.prototype,gT=Tt(Kf.delete),U0=Tt(Kf.has),vT=Tt(Kf.get),mT=Tt(Kf.set);_1(Kf,{delete:function(t){if(pe(t)&&!Au(t)){var e=V0(this);return e.frozen||(e.frozen=new qf),gT(this,t)||e.frozen.delete(t)}return gT(this,t)},has:function(t){if(pe(t)&&!Au(t)){var e=V0(this);return e.frozen||(e.frozen=new qf),U0(this,t)||e.frozen.has(t)}return U0(this,t)},get:function(t){if(pe(t)&&!Au(t)){var e=V0(this);return e.frozen||(e.frozen=new qf),U0(this,t)?vT(this,t):e.frozen.get(t)}return vT(this,t)},set:function(t,e){if(pe(t)&&!Au(t)){var n=V0(this);n.frozen||(n.frozen=new qf),U0(this,t)?mT(this,t,e):n.frozen.set(t,e)}else mT(this,t,e);return this}})}var P1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Kw=Fp("span").classList,yT=Kw&&Kw.constructor&&Kw.constructor.prototype,vz=yT===Object.prototype?void 0:yT,Yw=$e("iterator"),bT=$e("toStringTag"),Xw=cd.values,mz=function(t,e){if(t){if(t[Yw]!==Xw)try{Bo(t,Yw,Xw)}catch(r){t[Yw]=Xw}if(t[bT]||Bo(t,bT,e),P1[e]){for(var n in cd)if(t[n]!==cd[n])try{Bo(t,n,cd[n])}catch(r){t[n]=cd[n]}}}};for(var Zw in P1)mz(nt[Zw]&&nt[Zw].prototype,Zw);mz(vz,"DOMTokenList");var yz=function(t,e){var n=[][t];return!!n&&ye(function(){n.call(null,e||function(){throw 1},1)})},Hvt=Z8.forEach,Jw=yz("forEach")?[].forEach:function(t){return Hvt(this,t,arguments.length>1?arguments[1]:void 0)},bz=function(t){if(t&&t.forEach!==Jw)try{Bo(t,"forEach",Jw)}catch(e){t.forEach=Jw}};for(var Qw in P1)P1[Qw]&&bz(nt[Qw]&&nt[Qw].prototype);bz(vz);var jp,rl,wT,t4,j1=nt.Promise,ET=$e("species"),wz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Fl),Ca=ro(nt.process)=="process",V3=nt.setImmediate,U3=nt.clearImmediate,Vvt=nt.process,e4=nt.Dispatch,Uvt=nt.Function,DT=nt.MessageChannel,Wvt=nt.String,n4=0,jd={};try{jp=nt.location}catch(t){}var J8=function(t){if(Xe(jd,t)){var e=jd[t];delete jd[t],e()}},r4=function(t){return function(){J8(t)}},CT=function(t){J8(t.data)},xT=function(t){nt.postMessage(Wvt(t),jp.protocol+"//"+jp.host)};V3&&U3||(V3=function(t){var e=QM(arguments,1);return jd[++n4]=function(){oz(se(t)?t:Uvt(t),void 0,e)},rl(n4),n4},U3=function(t){delete jd[t]},Ca?rl=function(t){Vvt.nextTick(r4(t))}:e4&&e4.now?rl=function(t){e4.now(r4(t))}:DT&&!wz?(t4=(wT=new DT).port2,wT.port1.onmessage=CT,rl=Pp(t4.postMessage,t4)):nt.addEventListener&&se(nt.postMessage)&&!nt.importScripts&&jp&&jp.protocol!=="file:"&&!ye(xT)?(rl=xT,nt.addEventListener("message",CT,!1)):rl="onreadystatechange"in Fp("script")?function(t){I3.appendChild(Fp("script")).onreadystatechange=function(){I3.removeChild(this),J8(t)}}:function(t){setTimeout(r4(t),0)});var Yf,Eu,Nd,pl,o4,i4,a4,ST,Ez={set:V3,clear:U3},Gvt=/ipad|iphone|ipod/i.test(Fl)&&nt.Pebble!==void 0,qvt=/web0s(?!.*chrome)/i.test(Fl),Kvt=L8.f,u4=Ez.set,AT=nt.MutationObserver||nt.WebKitMutationObserver,OT=nt.document,kT=nt.process,W0=nt.Promise,BT=Kvt(nt,"queueMicrotask"),Dz=BT&&BT.value;Dz||(Yf=function(){var t,e;for(Ca&&(t=kT.domain)&&t.exit();Eu;){e=Eu.fn,Eu=Eu.next;try{e()}catch(n){throw Eu?pl():Nd=void 0,n}}Nd=void 0,t&&t.enter()},wz||Ca||qvt||!AT||!OT?!Gvt&&W0&&W0.resolve?((a4=W0.resolve(void 0)).constructor=W0,ST=Pp(a4.then,a4),pl=function(){ST(Yf)}):Ca?pl=function(){kT.nextTick(Yf)}:(u4=Pp(u4,nt),pl=function(){u4(Yf)}):(o4=!0,i4=OT.createTextNode(""),new AT(Yf).observe(i4,{characterData:!0}),pl=function(){i4.data=o4=!o4}));var s4,FT,Cz,_T,xz=Dz||function(t){var e={fn:t,next:void 0};Nd&&(Nd.next=e),Eu||(Eu=e,pl()),Nd=e},Yvt=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=La(e),this.reject=La(n)},Q8={f:function(t){return new Yvt(t)}},W3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Xvt=typeof window=="object",Sz=Ez.set,Zvt=$e("species"),ei="Promise",TT=gr.getterFor(ei),Jvt=gr.set,Qvt=gr.getterFor(ei),gu=j1&&j1.prototype,Ao=j1,Xf=gu,Az=nt.TypeError,G3=nt.document,tx=nt.process,_l=Q8.f,t1t=_l,e1t=!!(G3&&G3.createEvent&&nt.dispatchEvent),Oz=se(nt.PromiseRejectionEvent),kz=!1,Id=S1(ei,function(){var t=Hm(Ao),e=t!==String(Ao);if(!e&&kp===66)return!0;if(kp>=51&&/native code/.test(t))return!1;var n=new Ao(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Zvt]=r,!(kz=n.then(function(){})instanceof r)||!e&&Xvt&&!Oz}),n1t=Id||!dz(function(t){Ao.all(t).catch(function(){})}),Bz=function(t){var e;return!(!pe(t)||!se(e=t.then))&&e},ex=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;xz(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&&o1t(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(Az("Promise-chain cycle")):(u=Bz(a))?te(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&r1t(t)})}},Fz=function(t,e,n){var r,o;e1t?((r=G3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),nt.dispatchEvent(r)):r={promise:e,reason:n},!Oz&&(o=nt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=nt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},r1t=function(t){te(Sz,nt,function(){var e,n=t.facade,r=t.value;if(PT(t)&&(e=W3(function(){Ca?tx.emit("unhandledRejection",r,n):Fz("unhandledrejection",n,r)}),t.rejection=Ca||PT(t)?2:1,e.error))throw e.value})},PT=function(t){return t.rejection!==1&&!t.parent},o1t=function(t){te(Sz,nt,function(){var e=t.facade;Ca?tx.emit("rejectionHandled",e):Fz("rejectionhandled",e,t.value)})},bl=function(t,e,n){return function(r){t(e,r,n)}},Tl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ex(t,!0))},q3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Az("Promise can't be resolved itself");var r=Bz(e);r?xz(function(){var o={done:!1};try{te(r,e,bl(q3,o,t),bl(Tl,o,t))}catch(i){Tl(o,i,t)}}):(t.value=e,t.state=1,ex(t,!1))}catch(o){Tl({done:!1},o,t)}}};if(Id&&(Xf=(Ao=function(t){X8(this,Xf),La(t),te(s4,this);var e=TT(this);try{t(bl(q3,e),bl(Tl,e))}catch(n){Tl(e,n)}}).prototype,(s4=function(t){Jvt(this,{type:ei,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=_1(Xf,{then:function(t,e){var n=Qvt(this),r=n.reactions,o=_l(iz(this,Ao));return o.ok=!se(t)||t,o.fail=se(e)&&e,o.domain=Ca?tx.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&ex(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),FT=function(){var t=new s4,e=TT(t);this.promise=t,this.resolve=bl(q3,e),this.reject=bl(Tl,e)},Q8.f=_l=function(t){return t===Ao||t===Cz?new FT(t):t1t(t)},se(j1)&&gu!==Object.prototype)){_T=gu.then,kz||(lr(gu,"then",function(t,e){var n=this;return new Ao(function(r,o){te(_T,n,r,o)}).then(t,e)},{unsafe:!0}),lr(gu,"catch",Xf.catch,{unsafe:!0}));try{delete gu.constructor}catch(t){}uc&&uc(gu,Xf)}So({global:!0,wrap:!0,forced:Id},{Promise:Ao}),F1(Ao,ei,!1),function(t){var e=fs("Promise"),n=gi.f;No&&e&&!e[ET]&&n(e,ET,{configurable:!0,get:function(){return this}})}(),Cz=fs(ei),So({target:ei,stat:!0,forced:Id},{reject:function(t){var e=_l(this);return te(e.reject,void 0,t),e.promise}}),So({target:ei,stat:!0,forced:Id},{resolve:function(t){return function(e,n){if(hn(e),pe(n)&&n.constructor===e)return n;var r=Q8.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),So({target:ei,stat:!0,forced:n1t},{all:function(t){var e=this,n=_l(e),r=n.resolve,o=n.reject,i=W3(function(){var a=La(e.resolve),u=[],s=0,l=1;T1(t,function(c){var f=s++,p=!1;l++,te(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=_l(e),r=n.reject,o=W3(function(){var i=La(e.resolve);T1(t,function(a){te(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var i1t=Dh.PROPER,K3=RegExp.prototype,_z=K3.toString,a1t=Tt(tz),u1t=ye(function(){return _z.call({source:"a",flags:"b"})!="/a/b"}),s1t=i1t&&_z.name!="toString";(u1t||s1t)&&lr(RegExp.prototype,"toString",function(){var t=hn(this),e=Da(t.source),n=t.flags;return"/"+e+"/"+Da(n===void 0&&Op(K3,t)&&!("flags"in K3)?a1t(t):n)},{unsafe:!0});var l1t=Dh.EXISTS,c1t=gi.f,Tz=Function.prototype,f1t=Tt(Tz.toString),Pz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d1t=Tt(Pz.exec);No&&!l1t&&c1t(Tz,"name",{configurable:!0,get:function(){try{return d1t(Pz,f1t(this))[1]}catch(t){return""}}});var jT=new WeakMap;function jz(t){return t.getMenuConfig("uploadImage")}function p1t(t,e){return G8(this,void 0,void 0,function(){return q8(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Ru(t,a,e.name,u),r("ok")}}})]})})}function h1t(t,e){return G8(this,void 0,void 0,function(){var n,r,o,i;return q8(this,function(a){switch(a.label){case 0:return n=function(u){var s=jT.get(u);if(s!=null)return s;var l=jz(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=pI(k1(k1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(R,H,M){return Ru(u,R,H,M)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,b=v.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(R){var H=R.url,M=H===void 0?"":H,K=R.alt,U=K===void 0?"":K,W=R.href;Ru(u,M,U,W===void 0?"":W)});else{var E=w.url,x=E===void 0?"":E,C=w.alt,O=C===void 0?"":C,F=w.href;Ru(u,x,O,F===void 0?"":F)}c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),jT.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function Nz(t,e){var n,r;return G8(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return q8(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=jz(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=avt(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,p1t(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(y,g,v){return Ru(t,y,g,v)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,h1t(t,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var g1t=Tt([].join),v1t=F8!=Object,m1t=yz("join",",");So({target:"Array",proto:!0,forced:v1t||!m1t},{join:function(t){return g1t(Ua(this),t===void 0?",":t)}}),Nr&&(B.fn.append=Nr),To&&(B.fn.on=To),Wl&&(B.fn.remove=Wl),_o&&(B.fn.val=_o),LA&&(B.fn.click=LA),$l&&(B.fn.hide=$l);var y1t=function(){function t(){this.title=et("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return bm(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return Ru(e,c,f,p)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;Nz(e,c)})}},t}(),b1t={menus:[{key:"uploadImage",factory:function(){return new y1t},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(bm(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p}(i.type.split("/"),1)[0]==="image"})?Nz(t,o):e(r)}},n}};Zn("en",{highLightModule:{selectLang:"Language"}}),Zn("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var N1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function nx(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ui,Sg,G0=function(t){return t&&t.Math==Math&&t},It=G0(typeof globalThis=="object"&&globalThis)||G0(typeof window=="object"&&window)||G0(typeof self=="object"&&self)||G0(typeof N1=="object"&&N1)||function(){return this}()||Function("return this")(),w1t=Object.defineProperty,rx=function(t,e){try{w1t(It,t,{value:e,configurable:!0,writable:!0})}catch(n){It[t]=e}return e},xa=It["__core-js_shared__"]||rx("__core-js_shared__",{}),ox=nx(function(t){(t.exports=function(e,n){return xa[e]||(xa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Iz=Function.prototype,Y3=Iz.bind,X3=Iz.call,E1t=Y3&&Y3.bind(X3),ee=Y3?function(t){return t&&E1t(X3,t)}:function(t){return t&&function(){return X3.apply(t,arguments)}},D1t=It.TypeError,sc=function(t){if(t==null)throw D1t("Can't call method on "+t);return t},C1t=It.Object,ix=function(t){return C1t(sc(t))},x1t=ee({}.hasOwnProperty),Pr=Object.hasOwn||function(t,e){return x1t(ix(t),e)},S1t=0,A1t=Math.random(),O1t=ee(1 .toString),Lz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+O1t(++S1t+A1t,36)},_n=function(t){return typeof t=="function"},k1t=function(t){return _n(t)?t:void 0},Sh=function(t,e){return arguments.length<2?k1t(It[t]):It[t]&&It[t][e]},l4=Sh("navigator","userAgent")||"",NT=It.process,IT=It.Deno,LT=NT&&NT.versions||IT&&IT.version,RT=LT&<.v8;RT&&(Sg=(Ui=RT.split("."))[0]>0&&Ui[0]<4?1:+(Ui[0]+Ui[1])),!Sg&&l4&&(!(Ui=l4.match(/Edge\/(\d+)/))||Ui[1]>=74)&&(Ui=l4.match(/Chrome\/(\d+)/))&&(Sg=+Ui[1]);var MT=Sg,fn=function(t){try{return!!t()}catch(e){return!0}},Z3=!!Object.getOwnPropertySymbols&&!fn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&MT&&MT<41}),ax=Z3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zf=ox("wks"),Xu=It.Symbol,zT=Xu&&Xu.for,B1t=ax?Xu:Xu&&Xu.withoutSetter||Lz,Wa=function(t){if(!Pr(Zf,t)||!Z3&&typeof Zf[t]!="string"){var e="Symbol."+t;Z3&&Pr(Xu,t)?Zf[t]=Xu[t]:Zf[t]=ax&&zT?zT(e):B1t(e)}return Zf[t]},Rz={};Rz[Wa("toStringTag")]="z";var ux=String(Rz)==="[object z]",Io=!fn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Yr=function(t){return typeof t=="object"?t!==null:_n(t)},J3=It.document,F1t=Yr(J3)&&Yr(J3.createElement),sx=function(t){return F1t?J3.createElement(t):{}},Mz=!Io&&!fn(function(){return Object.defineProperty(sx("div"),"a",{get:function(){return 7}}).a!=7}),_1t=It.String,T1t=It.TypeError,oo=function(t){if(Yr(t))return t;throw T1t(_1t(t)+" is not an object")},Jf=Function.prototype.call,en=Jf.bind?Jf.bind(Jf):function(){return Jf.apply(Jf,arguments)},zz=ee({}.isPrototypeOf),P1t=It.Object,c4=ax?function(t){return typeof t=="symbol"}:function(t){var e=Sh("Symbol");return _n(e)&&zz(e.prototype,P1t(t))},j1t=It.String,$z=function(t){try{return j1t(t)}catch(e){return"Object"}},N1t=It.TypeError,Hz=function(t){if(_n(t))return t;throw N1t($z(t)+" is not a function")},Vz=function(t,e){var n=t[e];return n==null?void 0:Hz(n)},I1t=It.TypeError,L1t=It.TypeError,R1t=Wa("toPrimitive"),lx=function(t){var e=function(n,r){if(!Yr(n)||c4(n))return n;var o,i=Vz(n,R1t);if(i){if(r===void 0&&(r="default"),o=en(i,n,r),!Yr(o)||c4(o))return o;throw L1t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&_n(s=a.toString)&&!Yr(l=en(s,a))||_n(s=a.valueOf)&&!Yr(l=en(s,a))||u!=="string"&&_n(s=a.toString)&&!Yr(l=en(s,a)))return l;throw I1t("Can't convert object to primitive value")}(n,r)}(t,"string");return c4(e)?e:e+""},M1t=It.TypeError,$T=Object.defineProperty,Wm={f:Io?$T:function(t,e,n){if(oo(t),e=lx(e),oo(n),Mz)try{return $T(t,e,n)}catch(r){}if("get"in n||"set"in n)throw M1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},cx=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},lc=Io?function(t,e,n){return Wm.f(t,e,cx(1,n))}:function(t,e,n){return t[e]=n,t},z1t=ee(Function.toString);_n(xa.inspectSource)||(xa.inspectSource=function(t){return z1t(t)});var I1,Ld,L1,fx=xa.inspectSource,HT=It.WeakMap,$1t=_n(HT)&&/native code/.test(fx(HT)),VT=ox("keys"),Uz=function(t){return VT[t]||(VT[t]=Lz(t))},dx={},Q3=It.TypeError,H1t=It.WeakMap;if($1t||xa.state){var cu=xa.state||(xa.state=new H1t),V1t=ee(cu.get),UT=ee(cu.has),U1t=ee(cu.set);I1=function(t,e){if(UT(cu,t))throw new Q3("Object already initialized");return e.facade=t,U1t(cu,t,e),e},Ld=function(t){return V1t(cu,t)||{}},L1=function(t){return UT(cu,t)}}else{var ol=Uz("state");dx[ol]=!0,I1=function(t,e){if(Pr(t,ol))throw new Q3("Object already initialized");return e.facade=t,lc(t,ol,e),e},Ld=function(t){return Pr(t,ol)?t[ol]:{}},L1=function(t){return Pr(t,ol)}}var t5={set:I1,get:Ld,has:L1,enforce:function(t){return L1(t)?Ld(t):I1(t,{})},getterFor:function(t){return function(e){var n;if(!Yr(e)||(n=Ld(e)).type!==t)throw Q3("Incompatible receiver, "+t+" required");return n}}},Wz=Function.prototype,W1t=Io&&Object.getOwnPropertyDescriptor,f4=Pr(Wz,"name"),Gz={EXISTS:f4,PROPER:f4&&function(){}.name==="something",CONFIGURABLE:f4&&(!Io||Io&&W1t(Wz,"name").configurable)},Np=nx(function(t){var e=Gz.CONFIGURABLE,n=t5.get,r=t5.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;_n(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pr(u,"name")||e&&u.name!==d)&&lc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==It?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:lc(i,a,u)):f?i[a]=u:rx(a,u)})(Function.prototype,"toString",function(){return _n(this)&&n(this).source||fx(this)})}),G1t=ee({}.toString),q1t=ee("".slice),Sa=function(t){return q1t(G1t(t),8,-1)},K1t=Wa("toStringTag"),Y1t=It.Object,X1t=Sa(function(){return arguments}())=="Arguments",px=ux?Sa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Y1t(t),K1t))=="string"?n:X1t?Sa(e):(r=Sa(e))=="Object"&&_n(e.callee)?"Arguments":r},Z1t=ux?{}.toString:function(){return"[object "+px(this)+"]"};ux||Np(Object.prototype,"toString",Z1t,{unsafe:!0});var WT,GT={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},d4=sx("span").classList,qT=d4&&d4.constructor&&d4.constructor.prototype,J1t=qT===Object.prototype?void 0:qT,KT=ee(ee.bind),p4=It.Object,Q1t=ee("".split),hx=fn(function(){return!p4("z").propertyIsEnumerable(0)})?function(t){return Sa(t)=="String"?Q1t(t,""):p4(t)}:p4,tmt=Math.ceil,emt=Math.floor,gx=function(t){var e=+t;return e!=e||e===0?0:(e>0?emt:tmt)(e)},nmt=Math.min,qz=function(t){return t>0?nmt(gx(t),9007199254740991):0},vx=function(t){return qz(t.length)},YT=Array.isArray||function(t){return Sa(t)=="Array"},Kz=function(){},rmt=[],Yz=Sh("Reflect","construct"),mx=/^\s*(?:class|function)\b/,omt=ee(mx.exec),imt=!mx.exec(Kz),Qf=function(t){if(!_n(t))return!1;try{return Yz(Kz,rmt,t),!0}catch(e){return!1}},Xz=!Yz||fn(function(){var t;return Qf(Qf.call)||!Qf(Object)||!Qf(function(){t=!0})||t})?function(t){if(!_n(t))return!1;switch(px(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return imt||!!omt(mx,fx(t))}:Qf,amt=Wa("species"),XT=It.Array,umt=function(t,e){return new(function(n){var r;return YT(n)&&(r=n.constructor,(Xz(r)&&(r===XT||YT(r.prototype))||Yr(r)&&(r=r[amt])===null)&&(r=void 0)),r===void 0?XT:r}(t))(e===0?0:e)},ZT=ee([].push),Wi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=ix(s),g=hx(y),v=function(E,x){return Hz(E),x===void 0?E:KT?KT(E,x):function(){return E.apply(x,arguments)}}(l,c),m=vx(g),h=0,b=f||umt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:ZT(w,p)}else switch(t){case 4:return!1;case 7:ZT(w,p)}return i?-1:r||o?o:w}},smt=[Wi(0),Wi(1),Wi(2),Wi(3),Wi(4),Wi(5),Wi(6),Wi(7)][0],h4=(WT=[].forEach)&&fn(function(){WT.call(null,function(){throw 1},1)})?[].forEach:function(t){return smt(this,t,arguments.length>1?arguments[1]:void 0)},Zz=function(t){if(t&&t.forEach!==h4)try{lc(t,"forEach",h4)}catch(e){t.forEach=h4}};for(var g4 in GT)GT[g4]&&Zz(It[g4]&&It[g4].prototype);Zz(J1t);var JT={}.propertyIsEnumerable,QT=Object.getOwnPropertyDescriptor,Jz={f:QT&&!JT.call({1:2},1)?function(t){var e=QT(this,t);return!!e&&e.enumerable}:JT},Gm=function(t){return hx(sc(t))},tP=Object.getOwnPropertyDescriptor,Qz={f:Io?tP:function(t,e){if(t=Gm(t),e=lx(e),Mz)try{return tP(t,e)}catch(n){}if(Pr(t,e))return cx(!en(Jz.f,t,e),t[e])}},lmt=Math.max,cmt=Math.min,e5=function(t,e){var n=gx(t);return n<0?lmt(n+e,0):cmt(n,e)},fmt=function(t){return function(e,n,r){var o,i=Gm(e),a=vx(i),u=e5(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},dmt=fmt(!1),eP=ee([].push),t$=function(t,e){var n,r=Gm(t),o=0,i=[];for(n in r)!Pr(dx,n)&&Pr(r,n)&&eP(i,n);for(;e.length>o;)Pr(r,n=e[o++])&&(~dmt(i,n)||eP(i,n));return i},R1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pmt=R1.concat("length","prototype"),hmt={f:Object.getOwnPropertyNames||function(t){return t$(t,pmt)}},e$={f:Object.getOwnPropertySymbols},gmt=ee([].concat),vmt=Sh("Reflect","ownKeys")||function(t){var e=hmt.f(oo(t)),n=e$.f;return n?gmt(e,n(t)):e},mmt=function(t,e){for(var n=vmt(e),r=Wm.f,o=Qz.f,i=0;i<n.length;i++){var a=n[i];Pr(t,a)||r(t,a,o(e,a))}},ymt=/#|\.prototype\./,Ah=function(t,e){var n=wmt[bmt(t)];return n==Dmt||n!=Emt&&(_n(e)?fn(e):!!e)},bmt=Ah.normalize=function(t){return String(t).replace(ymt,".").toLowerCase()},wmt=Ah.data={},Emt=Ah.NATIVE="N",Dmt=Ah.POLYFILL="P",Cmt=Ah,xmt=Qz.f,qm=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?It:l?It[u]||rx(u,{}):(It[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=xmt(n,r))&&a.value:n[r],!Cmt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;mmt(i,o)}(t.sham||o&&o.sham)&&lc(i,"sham",!0),Np(n,r,i,t)}},Ag=Object.keys||function(t){return t$(t,R1)},il=Object.assign,nP=Object.defineProperty,Smt=ee([].concat),rP=!il||fn(function(){if(Io&&il({b:1},il(nP({},"a",{enumerable:!0,get:function(){nP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),il({},t)[n]!=7||Ag(il({},e)).join("")!=r})?function(t,e){for(var n=ix(t),r=arguments.length,o=1,i=e$.f,a=Jz.f;r>o;)for(var u,s=hx(arguments[o++]),l=i?Smt(Ag(s),i(s)):Ag(s),c=l.length,f=0;c>f;)u=l[f++],Io&&!en(a,s,u)||(n[u]=s[u]);return n}:il;qm({target:"Object",stat:!0,forced:Object.assign!==rP},{assign:rP});var oP=nx(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(m){return m instanceof u?new u(m.type,v(m.content),m.alias):Array.isArray(m)?m.map(v):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(m,h){var b,w;switch(h=h||{},a.util.type(m)){case"Object":if(w=a.util.objId(m),h[w])return h[w];for(var E in b={},h[w]=b,m)m.hasOwnProperty(E)&&(b[E]=v(m[E],h));return b;case"Array":return w=a.util.objId(m),h[w]?h[w]:(b=[],h[w]=b,m.forEach(function(x,C){b[C]=v(x,h)}),b);default:return m}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(v){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==v)return m[h]}return null}},isActive:function(v,m,h){for(var b="no-"+m;v;){var w=v.classList;if(w.contains(m))return!0;if(w.contains(b))return!1;v=v.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,m){var h=a.util.clone(a.languages[v]);for(var b in m)h[b]=m[b];return h},insertBefore:function(v,m,h,b){var w=(b=b||a.languages)[v],E={};for(var x in w)if(w.hasOwnProperty(x)){if(x==m)for(var C in h)h.hasOwnProperty(C)&&(E[C]=h[C]);h.hasOwnProperty(x)||(E[x]=w[x])}var O=b[v];return b[v]=E,a.languages.DFS(a.languages,function(F,R){R===O&&F!=v&&(this[F]=E)}),E},DFS:function v(m,h,b,w){w=w||{};var E=a.util.objId;for(var x in m)if(m.hasOwnProperty(x)){h.call(m,x,m[x],b||x);var C=m[x],O=a.util.type(C);O!=="Object"||w[E(C)]?O!=="Array"||w[E(C)]||(w[E(C)]=!0,v(C,h,x,w)):(w[E(C)]=!0,v(C,h,null,w))}}},plugins:{},highlightAll:function(v,m){a.highlightAllUnder(document,v,m)},highlightAllUnder:function(v,m,h){var b={callback:h,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,E=0;w=b.elements[E++];)a.highlightElement(w,m===!0,b.callback)},highlightElement:function(v,m,h){var b=a.util.getLanguage(v),w=a.languages[b];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var E=v.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&(E.className=E.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var x={element:v,language:b,grammar:w,code:v.textContent};function C(F){x.highlightedCode=F,a.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,a.hooks.run("after-highlight",x),a.hooks.run("complete",x),h&&h.call(x.element)}if(a.hooks.run("before-sanity-check",x),(E=x.element.parentElement)&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!x.code)return a.hooks.run("complete",x),void(h&&h.call(x.element));if(a.hooks.run("before-highlight",x),x.grammar)if(m&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(F){C(F.data)},O.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else C(a.highlight(x.code,x.grammar,x.language));else C(a.util.encode(x.code))},highlight:function(v,m,h){var b={code:v,grammar:m,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(v,m){var h=m.rest;if(h){for(var b in h)m[b]=h[b];delete m.rest}var w=new c;return f(w,w.head,v),l(v,w,m,w.head,0),function(E){for(var x=[],C=E.head.next;C!==E.tail;)x.push(C.value),C=C.next;return x}(w)},hooks:{all:{},add:function(v,m){var h=a.hooks.all;h[v]=h[v]||[],h[v].push(m)},run:function(v,m){var h=a.hooks.all[v];if(h&&h.length)for(var b,w=0;b=h[w++];)b(m)}},Token:u};function u(v,m,h,b){this.type=v,this.content=m,this.alias=h,this.length=0|(b||"").length}function s(v,m,h,b){v.lastIndex=m;var w=v.exec(h);if(w&&b&&w[1]){var E=w[1].length;w.index+=E,w[0]=w[0].slice(E)}return w}function l(v,m,h,b,w,E){for(var x in h)if(h.hasOwnProperty(x)&&h[x]){var C=h[x];C=Array.isArray(C)?C:[C];for(var O=0;O<C.length;++O){if(E&&E.cause==x+","+O)return;var F=C[O],R=F.inside,H=!!F.lookbehind,M=!!F.greedy,K=F.alias;if(M&&!F.pattern.global){var U=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,U+"g")}for(var W=F.pattern||F,q=b.next,rt=w;q!==m.tail&&!(E&&rt>=E.reach);rt+=q.value.length,q=q.next){var ct=q.value;if(m.length>v.length)return;if(!(ct instanceof u)){var lt,ut=1;if(M){if(!(lt=s(W,rt,v,H)))break;var k=lt.index,S=lt.index+lt[0].length,P=rt;for(P+=q.value.length;k>=P;)P+=(q=q.next).value.length;if(rt=P-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==m.tail&&(P<S||typeof $.value=="string");$=$.next)ut++,P+=$.value.length;ut--,ct=v.slice(rt,P),lt.index-=rt}else if(!(lt=s(W,0,ct,H)))continue;k=lt.index;var Y=lt[0],V=ct.slice(0,k),at=ct.slice(k+Y.length),vt=rt+ct.length;E&&vt>E.reach&&(E.reach=vt);var mt=q.prev;if(V&&(mt=f(m,mt,V),rt+=V.length),p(m,mt,ut),q=f(m,mt,new u(x,R?a.tokenize(Y,R):Y,K,Y)),at&&f(m,q,at),ut>1){var Ct={cause:x+","+O,reach:vt};l(v,m,h,q.prev,rt,Ct),E&&Ct.reach>E.reach&&(E.reach=Ct.reach)}}}}}}function c(){var v={value:null,prev:null,next:null},m={value:null,prev:v,next:null};v.next=m,this.head=v,this.tail=m,this.length=0}function f(v,m,h){var b=m.next,w={value:h,prev:m,next:b};return m.next=w,b.prev=w,v.length++,w}function p(v,m,h){for(var b=m.next,w=0;w<h&&b!==v.tail;w++)b=b.next;m.next=b,b.prev=m,v.length-=w}if(n.Prism=a,u.stringify=function v(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var b="";return m.forEach(function(O){b+=v(O,h)}),b}var w={type:m.type,content:v(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},E=m.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(w.classes,E):w.classes.push(E)),a.hooks.run("wrap",w);var x="";for(var C in w.attributes)x+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+x+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(v){var m=JSON.parse(v.data),h=m.language,b=m.code,w=m.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var d=a.util.currentScript();function y(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return a}(typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{});/**
- * 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),N1!==void 0&&(N1.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(/&/,"&"))}),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:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document!="undefined"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading\u2026";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var y=e.plugins.autoloader;y&&y.loadLanguages(p);var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?(l.setAttribute(r,"loaded"),c.textContent=g.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),g.status>=400?c.textContent="\u2716 Error "+g.status+" while fetching file: "+g.statusText:c.textContent="\u2716 Error: File does not exist or is empty"))},g.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],p=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.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]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(S,P){return S.replace(/<<(\d+)>>/g,function($,Y){return"(?:"+P[+Y]+")"})}function n(S,P,$){return RegExp(e(S,P),$||"")}function r(S,P){for(var $=0;$<P;$++)S=S.replace(/<<self>>/g,function(){return"(?:"+S+")"});return S.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(S){return"\\b(?:"+S.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),y=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,y,h]),E=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,m,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[y]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,x,c.source,y,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,y]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var H=F+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,rt=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),ct=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[rt,q]),lt=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),ut=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[lt,q]);function k(S,P){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ct]),lookbehind:!0,greedy:!0,inside:k(ct,rt)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ut]),lookbehind:!0,greedy:!0,inside:k(ut,lt)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var y=f[p];if(y.type==="code"){var g=y.content[1],v=y.content[3];if(g&&v&&g.type==="code-language"&&v.type==="code-block"&&typeof g.content=="string"){var m=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,h]:v.alias.push(h):v.alias=[h]}}else c(y.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],y=/language-(.+)/.exec(d);if(y){c=y[1];break}}var g=t.languages[c];if(g)l.content=t.highlight(function(m){var h=m.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var E;return(w=w.toLowerCase())[0]==="#"?(E=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(E)):u[w]||b})}(l.content),g,c);else if(c&&c!=="none"&&t.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=v,t.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(v);m&&(m.innerHTML=t.highlight(m.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var Amt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function n$(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+n$(n)},0)}var q0,Omt=It.String,ui=function(t){if(px(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Omt(t)},r$=function(){var t=oo(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},yx=It.RegExp,n5=fn(function(){var t=yx("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),kmt=n5||fn(function(){return!yx("a","y").sticky}),o$={BROKEN_CARET:n5||fn(function(){var t=yx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:kmt,UNSUPPORTED_Y:n5},Bmt=Io?Object.defineProperties:function(t,e){oo(t);for(var n,r=Gm(e),o=Ag(e),i=o.length,a=0;i>a;)Wm.f(t,n=o[a++],r[n]);return t},Fmt=Sh("document","documentElement"),i$=Uz("IE_PROTO"),v4=function(){},a$=function(t){return"<script>"+t+"<\/script>"},iP=function(t){t.write(a$("")),t.close();var e=t.parentWindow.Object;return t=null,e},Og=function(){try{q0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Og=typeof document!="undefined"?document.domain&&q0?iP(q0):((e=sx("iframe")).style.display="none",Fmt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(a$("document.F=Object")),t.close(),t.F):iP(q0);for(var n=R1.length;n--;)delete Og.prototype[R1[n]];return Og()};dx[i$]=!0;var aP,m4,_mt=Object.create||function(t,e){var n;return t!==null?(v4.prototype=oo(t),n=new v4,v4.prototype=null,n[i$]=t):n=Og(),e===void 0?n:Bmt(n,e)},Tmt=It.RegExp,Pmt=fn(function(){var t=Tmt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),jmt=It.RegExp,Nmt=fn(function(){var t=jmt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Imt=t5.get,Lmt=ox("native-string-replace",String.prototype.replace),M1=RegExp.prototype.exec,r5=M1,Rmt=ee("".charAt),Mmt=ee("".indexOf),zmt=ee("".replace),y4=ee("".slice),b4=(m4=/b*/g,en(M1,aP=/a/,"a"),en(M1,m4,"a"),aP.lastIndex!==0||m4.lastIndex!==0),uP=o$.BROKEN_CARET,w4=/()??/.exec("")[1]!==void 0;(b4||w4||uP||Pmt||Nmt)&&(r5=function(t){var e,n,r,o,i,a,u,s=this,l=Imt(s),c=ui(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=en(r5,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=uP&&s.sticky,y=en(r$,s),g=s.source,v=0,m=c;if(d&&(y=zmt(y,"y",""),Mmt(y,"g")===-1&&(y+="g"),m=y4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Rmt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),w4&&(n=new RegExp("^"+g+"$(?!\\s)",y)),b4&&(r=s.lastIndex),o=en(M1,d?n:s,m),d?o?(o.input=y4(o.input,v),o[0]=y4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:b4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),w4&&o&&o.length>1&&en(Lmt,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=_mt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ip=r5;qm({target:"RegExp",proto:!0,forced:/./.exec!==Ip},{exec:Ip});var bx=Function.prototype,sP=bx.apply,$mt=bx.bind,lP=bx.call,Hmt=typeof Reflect=="object"&&Reflect.apply||($mt?lP.bind(sP):function(){return lP.apply(sP,arguments)}),Vmt=Wa("species"),E4=RegExp.prototype,Umt=Wa("match"),Wmt=It.TypeError,Gmt=Wa("species"),qmt=ee("".charAt),cP=ee("".charCodeAt),Kmt=ee("".slice),Ymt=function(t){return function(e,n){var r,o,i=ui(sc(e)),a=gx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=cP(i,a))<55296||r>56319||a+1===u||(o=cP(i,a+1))<56320||o>57343?t?qmt(i,a):r:t?Kmt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Xmt=Ymt(!0),Zmt=function(t,e,n){return e+(n?Xmt(t,e).length:1)},Jmt=It.Array,Qmt=Math.max,fP=function(t,e,n){for(var r,o,i,a,u=vx(t),s=e5(e,u),l=e5(n===void 0?u:n,u),c=Jmt(Qmt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=lx(o))in r?Wm.f(r,a,cx(0,i)):r[a]=i;return c.length=f,c},tyt=It.TypeError,dP=function(t,e){var n=t.exec;if(_n(n)){var r=en(n,t,e);return r!==null&&oo(r),r}if(Sa(t)==="RegExp")return en(Ip,t,e);throw tyt("RegExp#exec called on incompatible receiver")},al=o$.UNSUPPORTED_Y,eyt=Math.min,u$=[].push,nyt=ee(/./.exec),ul=ee(u$),td=ee("".slice);(function(t,e,n,r){var o=Wa(t),i=!fn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!fn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Vmt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ee(/./[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,y){var g,v,m=ui(sc(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!Yr(g=d)||!((v=g[Umt])!==void 0?v:Sa(g)=="RegExp"))return en(c,m,d,h);for(var b,w,E,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=en(Ip,F,m))&&!((w=F.lastIndex)>O&&(ul(x,td(m,O,b.index)),b.length>1&&b.index<m.length&&Hmt(u$,x,fP(b,1)),E=b[0].length,O=w,x.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===m.length?!E&&nyt(F,"")||ul(x,""):ul(x,td(m,O)),x.length>h?fP(x,0,h):x}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:en(c,this,d,y)}:c,[function(d,y){var g=sc(this),v=d==null?void 0:Vz(d,l);return v?en(v,d,g,y):en(p,ui(g),d,y)},function(d,y){var g=oo(this),v=ui(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=function(K,U){var W,q=oo(K).constructor;return q===void 0||(W=oo(q)[Gmt])==null?U:function(rt){if(Xz(rt))return rt;throw Wmt($z(rt)+" is not a constructor")}(W)}(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(al?"g":"y"),E=new h(al?"^(?:"+g.source+")":g,w),x=y===void 0?4294967295:y>>>0;if(x===0)return[];if(v.length===0)return dP(E,v)===null?[v]:[];for(var C=0,O=0,F=[];O<v.length;){E.lastIndex=al?0:O;var R,H=dP(E,al?td(v,O):v);if(H===null||(R=eyt(qz(E.lastIndex+(al?O:0)),v.length))===C)O=Zmt(v,O,b);else{if(ul(F,td(v,C,O)),F.length===x)return F;for(var M=1;M<=H.length-1;M++)if(ul(F,H[M]),F.length===x)return F;O=C=R}}return ul(F,td(v,C)),F}]}(o,""[t],function(l,c,f,p,d){var y=ee(l),g=c.exec;return g===Ip||g===E4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Np(String.prototype,t,s[0]),Np(E4,o,s[1])}r&&lc(E4[o],"sham",!0)})("split",0,!!fn(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"}),al),qm({global:!0},{globalThis:It}),jr&&(B.fn.attr=jr);var ryt=Gz.PROPER,o5=RegExp.prototype,s$=o5.toString,oyt=ee(r$),iyt=fn(function(){return s$.call({source:"a",flags:"b"})!="/a/b"}),ayt=ryt&&s$.name!="toString";(iyt||ayt)&&Np(RegExp.prototype,"toString",function(){var t=oo(this),e=ui(t.source),n=t.flags;return"/"+e+"/"+ui(n===void 0&&zz(o5,t)&&!("flags"in o5)?oyt(t):n)},{unsafe:!0});var uyt=function(){function t(){this.title=et("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!ft.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};N.setNodes(e,r,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return ft.isElement(r)?r.type!=="pre"?null:n:null},t}(),syt={renderStyle:function(t,e){var n=t,r=e,o="";return Amt.forEach(function(i){n[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new uyt},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},lyt=/"/g,cyt=ee("".replace);qm({target:"String",proto:!0,forced:fn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ui(sc(this)),r="<a",(r+=' name="'+cyt(ui(e),lyt,""")+'"')+">"+n+"</a>";var e,n,r}});var l$=function(t){var e,n,r,o=function(m,h){var b=typeof Symbol=="function"&&m[Symbol.iterator];if(!b)return m;var w,E,x=b.call(m),C=[];try{for(;(h===void 0||h-- >0)&&!(w=x.next()).done;)C.push(w.value)}catch(O){E={error:O}}finally{try{w&&!w.done&&(b=x.return)&&b.call(x)}finally{if(E)throw E.error}}return C}(t,2),i=o[0],a=o[1],u=[],s=function(m){if(!it.isText(m))return null;var h=A.getParentNode(null,m);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(m,h){if(!h)return[];var b=oP.languages[h];return b?oP.tokenize(m.text,b):[]}(i,c),p=0;try{for(var d=function(m){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&m[h],w=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&w>=m.length&&(m=void 0),{value:m&&m[w++],done:!m}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),y=d.next();!y.done;y=d.next()){var g=y.value,v=p+n$(g);typeof g!="string"&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:v},r)),p=v}}catch(m){e={error:m}}finally{try{y&&!y.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},Oe=function(){return Oe=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},Oe.apply(this,arguments)},un=function(){function t(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
- Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Oe(Oe({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Oe(Oe({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Oe(Oe({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Oe(Oe({},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=Sr(Sr({},u),o||{});if(op[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");op[i]=a,function(l,c){c!=null&&(jN[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;iI[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){JE.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;NN[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){WE.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){QN.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Cv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){_D.push(n)})(e)},t.registerModule=function(e){vu(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 vu(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 un.registerMenu(c)}),n&&n.forEach(function(c){return un.registerRenderElem(c)}),r&&un.registerRenderStyle(r),o&&o.forEach(function(c){return un.registerElemToHtml(c)}),i&&un.registerStyleToHtml(i),a&&a.forEach(function(c){return un.registerPreParseHtml(c)}),u&&u.forEach(function(c){return un.registerParseElemHtml(c)}),s&&un.registerParseStyleHtml(s),l&&un.registerPlugin(l)}vut.forEach(function(t){return vu(t)}),vu(qlt),vu(bdt),vu(k0t),vu(b1t),vu(syt);var c$='<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>',f$={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"]}},fyt={hoverbarKeys:Oe(Oe({},f$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};un.setEditorConfig(Oe(Oe({},fyt),{decorate:l$}));var dyt={hoverbarKeys:f$};un.setSimpleEditorConfig(Oe(Oe({},dyt),{decorate:l$}));var pyt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:et("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:et("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:et("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:et("editor.image"),iconSvg:c$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:et("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"]};un.setToolbarConfig(pyt);var hyt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:et("editor.image"),iconSvg:c$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function gyt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?un.simpleEditorConfig:un.editorConfig,c=Oe(Oe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return wtt({selector:n,config:Oe(Oe(Oe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:un.plugins})}function vyt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?un.simpleToolbarConfig:un.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if(function(v,m){return nI(v,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var y=Sr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),g=new Stt(f,y);return DD.set(g,l),lm.set(l,g),g}(n,{selector:e,config:Oe(Oe({},u),o)});return s}un.setSimpleToolbarConfig(hyt);var myt=Object.defineProperty,yyt=Object.defineProperties,byt=Object.getOwnPropertyDescriptors,pP=Object.getOwnPropertySymbols,wyt=Object.prototype.hasOwnProperty,Eyt=Object.prototype.propertyIsEnumerable,hP=(t,e,n)=>e in t?myt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Dyt=(t,e)=>{for(var n in e||(e={}))wyt.call(e,n)&&hP(t,n,e[n]);if(pP)for(var n of pP(e))Eyt.call(e,n)&&hP(t,n,e[n]);return t},Cyt=(t,e)=>yyt(t,byt(e));function Gi(t){let e=`\u8BF7\u4F7F\u7528 '@${t}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return e+=`
- Please use '@${t}' event instead of props`,e}var d$=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const xyt=i5({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=Rd(null),r=gP(null),o=Rd(""),i=()=>{if(!n.value)return;const u=w$(t.defaultContent);gyt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:Cyt(Dyt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Gi("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=Gi("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Gi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Gi("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Gi("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Gi("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Gi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Gi("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 y$(()=>{i()}),vP(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),Syt={ref:"box",style:{height:"100%"}};function Ayt(t,e,n,r,o,i){return a5(),mP("div",Syt,null,512)}var Oyt=d$(xyt,[["render",Ayt]]);const kyt=i5({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=Rd(null),n=r=>{if(!!e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||vyt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return b$(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),Byt={ref:"selector"};function Fyt(t,e,n,r,o,i){return a5(),mP("div",Byt,null,512)}var _yt=d$(kyt,[["render",Fyt]]);const Tyt={class:"wangEditor",style:{border:"1px solid #dcdfe6"}},Pyt=i5({name:"menuDialog"}),jyt=Object.assign(Pyt,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(t,{emit:e}){const{proxy:n}=A$(),r=D$.dictStore.uploadUrl,o=t,i=e,a=Rd(),u=Rd({}),s=(g,v,m)=>{var E,x,C;const h=(C=(x=(E=v==null?void 0:v.replace(/<[^<p>]+>/g,""))==null?void 0:E.replace(/<[</p>$]+>/g,""))==null?void 0:x.replace(/ /gi,""))==null?void 0:C.replace(/<[^<br/>]+>/g,""),b="^[ ]+$",w=new RegExp(b);!h||w.test(h)?m("\u8BF7\u586B\u5199\u516C\u544A\u5185\u5BB9"):m()},l={title:[{required:!0,message:"\u8BF7\u586B\u5199\u516C\u544A\u6807\u9898",trigger:"blur"}],content:[{required:!0,validator:s,trigger:"blur"}],type:[{required:!0,message:"\u8BF7\u9009\u62E9\u516C\u544A\u7C7B\u578B",trigger:"blur"}],enabled:[{required:!0,message:"\u8BF7\u9009\u62E9\u516C\u544A\u72B6\u6001",trigger:"blur"}]},c=gP(),f={},p={MENU_CONF:{uploadImage:{server:r,fieldName:"file",customInsert(g,v){g.code===200?(n.$message.success("\u56FE\u7247\u4E0A\u4F20\u6210\u529F"),S$([g.data.id]).then(m=>{v(m.data[g.data.id])})):n.$message.error(g.message||"\u56FE\u7247\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5")}}}},d=g=>{c.value=g},y=g=>Bs(this,null,function*(){console.log(u.value),g&&(yield g.validate(v=>Bs(this,null,function*(){v&&(yield O$(X({},u.value)),n.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),i("close",!0))})))});return vP(()=>o.visible,g=>Bs(this,null,function*(){var v;g?(v=o.data)!=null&&v.id&&(u.value=X({},o.data)):(a.value.resetFields(),u.value={})})),(g,v)=>{var O;const m=Xa("el-input"),h=Xa("el-form-item"),b=Xa("el-radio"),w=Xa("el-radio-group"),E=Xa("el-form"),x=Xa("el-button"),C=Xa("el-dialog");return a5(),C$(C,{"model-value":t.visible,title:`${(O=t.data)!=null&&O.id?"\u7F16\u8F91":"\u65B0\u589E"}\u516C\u544A`,width:"840px","destroy-on-close":"",onClose:v[6]||(v[6]=F=>i("close"))},{footer:An(()=>[gn(x,{type:"primary",onClick:v[4]||(v[4]=F=>y(a.value))},{default:An(()=>[Za(" \u63D0\u4EA4 ")]),_:1}),gn(x,{onClick:v[5]||(v[5]=F=>i("close"))},{default:An(()=>[Za(" \u5173\u95ED ")]),_:1})]),default:An(()=>[gn(E,{ref_key:"formRef",ref:a,model:u.value,rules:l,"label-width":"auto"},{default:An(()=>[gn(h,{label:"\u516C\u544A\u6807\u9898",prop:"title"},{default:An(()=>[gn(m,{modelValue:u.value.title,"onUpdate:modelValue":v[0]||(v[0]=F=>u.value.title=F),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1}),gn(h,{label:"\u516C\u544A\u5185\u5BB9",prop:"content"},{default:An(()=>[x$("div",Tyt,[gn(xx(_yt),{style:{"border-bottom":"1px solid #dcdfe6"},editor:c.value,"default-config":f,mode:"simple"},null,8,["editor"]),gn(xx(Oyt),{modelValue:u.value.content,"onUpdate:modelValue":v[1]||(v[1]=F=>u.value.content=F),style:{height:"300px","overflow-y":"hidden",width:"100%"},"default-config":p,mode:"simple",onOnCreated:d},null,8,["modelValue"])])]),_:1}),gn(h,{label:"\u516C\u544A\u7C7B\u578B",prop:"type"},{default:An(()=>[gn(w,{modelValue:u.value.type,"onUpdate:modelValue":v[2]||(v[2]=F=>u.value.type=F),class:"ml-4"},{default:An(()=>[gn(b,{label:1},{default:An(()=>[Za("\u901A\u77E5\u516C\u544A")]),_:1}),gn(b,{label:2},{default:An(()=>[Za("\u5E2E\u52A9\u6587\u6863")]),_:1}),gn(b,{label:3},{default:An(()=>[Za("\u653F\u7B56\u6587\u4EF6")]),_:1})]),_:1},8,["modelValue"])]),_:1}),gn(h,{label:"\u516C\u544A\u72B6\u6001",prop:"enabled"},{default:An(()=>[gn(w,{modelValue:u.value.enabled,"onUpdate:modelValue":v[3]||(v[3]=F=>u.value.enabled=F),class:"ml-4"},{default:An(()=>[gn(b,{label:!0},{default:An(()=>[Za("\u542F\u7528")]),_:1}),gn(b,{label:!1},{default:An(()=>[Za("\u7981\u7528")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value","title"])}}}),Ryt=E$(jyt,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/systemManage/noticeManage/noticeDialog.vue"]]);export{Ryt as default};
|