emailtemplate-B88DQgN9.js 801 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. import{d as s5,r as Pn,ae as vP,o as mP,U as yP,v as po,f as Sg,$ as h$,af as g$,u as v$,R as m$,a as y$,h as _s,i as Bt,w as Ht,j as Rh,F as SS,p as Jn,q as b$,m as Xa,y as Za,k as Fs,ad as w$,l as jc,x as E$,W as Km,E as Ic,L as D$,_ as C$}from"./index-htML_UHV.js";import{g as S$,a as x$,e as A$,b as O$,c as k$,d as B$}from"./templateManage-B5-rXpvV.js";var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ps(t){var e={exports:{}};return t(e,e.exports),e.exports}var Di,U0,Mh=function(t){return t&&t.Math==Math&&t},kt=Mh(typeof globalThis=="object"&&globalThis)||Mh(typeof window=="object"&&window)||Mh(typeof self=="object"&&self)||Mh(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),l5=Function.prototype,xS=l5.apply,F$=l5.bind,AS=l5.call,bP=typeof Reflect=="object"&&Reflect.apply||(F$?AS.bind(xS):function(){return AS.apply(xS,arguments)}),wP=Function.prototype,x4=wP.bind,A4=wP.call,T$=x4&&x4.bind(A4),ge=x4?function(t){return t&&T$(A4,t)}:function(t){return t&&function(){return A4.apply(t,arguments)}},gn=function(t){return typeof t=="function"},Kn=function(t){try{return!!t()}catch{return!0}},Un=!Kn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Nc=Function.prototype.call,or=Nc.bind?Nc.bind(Nc):function(){return Nc.apply(Nc,arguments)},OS={}.propertyIsEnumerable,kS=Object.getOwnPropertyDescriptor,P$=kS&&!OS.call({1:2},1)?function(t){var e=kS(this,t);return!!e&&e.enumerable}:OS,c5={f:P$},Xr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},j$=ge({}.toString),I$=ge("".slice),Ou=function(t){return I$(j$(t),8,-1)},Ym=kt.Object,N$=ge("".split),EP=Kn(function(){return!Ym("z").propertyIsEnumerable(0)})?function(t){return Ou(t)=="String"?N$(t,""):Ym(t)}:Ym,L$=kt.TypeError,f5=function(t){if(t==null)throw L$("Can't call method on "+t);return t},Lo=function(t){return EP(f5(t))},Sr=function(t){return typeof t=="object"?t!==null:gn(t)},nr={},BS=function(t){return gn(t)?t:void 0},cc=function(t,e){return arguments.length<2?BS(nr[t])||BS(kt[t]):nr[t]&&nr[t][e]||kt[t]&&kt[t][e]},zd=ge({}.isPrototypeOf),Xm=cc("navigator","userAgent")||"",_S=kt.process,FS=kt.Deno,TS=_S&&_S.versions||FS&&FS.version,PS=TS&&TS.v8;PS&&(U0=(Di=PS.split("."))[0]>0&&Di[0]<4?1:+(Di[0]+Di[1])),!U0&&Xm&&(!(Di=Xm.match(/Edge\/(\d+)/))||Di[1]>=74)&&(Di=Xm.match(/Chrome\/(\d+)/))&&(U0=+Di[1]);var zh,xg=U0,go=!!Object.getOwnPropertySymbols&&!Kn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&xg&&xg<41}),d5=go&&!Symbol.sham&&typeof Symbol.iterator=="symbol",R$=kt.Object,Dl=d5?function(t){return typeof t=="symbol"}:function(t){var e=cc("Symbol");return gn(e)&&zd(e.prototype,R$(t))},M$=kt.String,O4=function(t){try{return M$(t)}catch{return"Object"}},z$=kt.TypeError,p5=function(t){if(gn(t))return t;throw z$(O4(t)+" is not a function")},Ag=function(t,e){var n=t[e];return n==null?void 0:p5(n)},$$=kt.TypeError,H$=Object.defineProperty,ia=kt["__core-js_shared__"]||function(t,e){try{H$(kt,t,{value:e,configurable:!0,writable:!0})}catch{kt[t]=e}return e}("__core-js_shared__",{}),hs=ps(function(t){(t.exports=function(e,n){return ia[e]||(ia[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),V$=kt.Object,Rp=function(t){return V$(f5(t))},U$=ge({}.hasOwnProperty),Wt=Object.hasOwn||function(t,e){return U$(Rp(t),e)},W$=0,G$=Math.random(),q$=ge(1 .toString),Og=function(t){return"Symbol("+(t===void 0?"":t)+")_"+q$(++W$+G$,36)},Lc=hs("wks"),ku=kt.Symbol,jS=ku&&ku.for,K$=d5?ku:ku&&ku.withoutSetter||Og,_n=function(t){if(!Wt(Lc,t)||!go&&typeof Lc[t]!="string"){var e="Symbol."+t;go&&Wt(ku,t)?Lc[t]=ku[t]:Lc[t]=d5&&jS?jS(e):K$(e)}return Lc[t]},Y$=kt.TypeError,X$=_n("toPrimitive"),Z$=function(t,e){if(!Sr(t)||Dl(t))return t;var n,r=Ag(t,X$);if(r){if(n=or(r,t,e),!Sr(n)||Dl(n))return n;throw Y$("Can't convert object to primitive value")}return function(o,i){var a,u;if(gn(a=o.toString)&&!Sr(u=or(a,o))||gn(a=o.valueOf)&&!Sr(u=or(a,o)))return u;throw $$("Can't convert object to primitive value")}(t)},fc=function(t){var e=Z$(t,"string");return Dl(e)?e:e+""},k4=kt.document,J$=Sr(k4)&&Sr(k4.createElement),DP=function(t){return J$?k4.createElement(t):{}},CP=!Un&&!Kn(function(){return Object.defineProperty(DP("div"),"a",{get:function(){return 7}}).a!=7}),IS=Object.getOwnPropertyDescriptor,Q$=Un?IS:function(t,e){if(t=Lo(t),e=fc(e),CP)try{return IS(t,e)}catch{}if(Wt(t,e))return Xr(!or(c5.f,t,e),t[e])},M1={f:Q$},tH=/#|\.prototype\./,Mp=function(t,e){var n=nH[eH(t)];return n==oH||n!=rH&&(gn(e)?Kn(e):!!e)},eH=Mp.normalize=function(t){return String(t).replace(tH,".").toLowerCase()},nH=Mp.data={},rH=Mp.NATIVE="N",oH=Mp.POLYFILL="P",iH=Mp,NS=ge(ge.bind),h5=function(t,e){return p5(t),e===void 0?t:NS?NS(t,e):function(){return t.apply(e,arguments)}},aH=kt.String,uH=kt.TypeError,ur=function(t){if(Sr(t))return t;throw uH(aH(t)+" is not an object")},sH=kt.TypeError,LS=Object.defineProperty,lH=Un?LS:function(t,e,n){if(ur(t),e=fc(e),ur(n),CP)try{return LS(t,e,n)}catch{}if("get"in n||"set"in n)throw sH("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Ra={f:lH},jn=Un?function(t,e,n){return Ra.f(t,e,Xr(1,n))}:function(t,e,n){return t[e]=n,t},cH=M1.f,fH=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return bP(t,this,arguments)};return e.prototype=t.prototype,e},Zo=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?kt:d?kt[c]:(kt[c]||{}).prototype,m=f?nr:nr[c]||jn(nr,c,{})[c],g=m.prototype;for(o in e)n=!iH(f?o:c+(d?".":"#")+o,t.forced)&&v&&Wt(v,o),a=m[o],n&&(u=t.noTargetGet?(l=cH(v,o))&&l.value:v[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?h5(i,kt):t.wrap&&n?fH(i):p&&gn(i)?ge(i):i,(t.sham||i&&i.sham||a&&a.sham)&&jn(s,"sham",!0),jn(m,o,s),p&&(Wt(nr,r=c+"Prototype")||jn(nr,r,{}),jn(nr[r],o,i),t.real&&g&&!g[o]&&jn(g,o,i)))},RS=hs("keys"),z1=function(t){return RS[t]||(RS[t]=Og(t))},dH=!Kn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),MS=z1("IE_PROTO"),B4=kt.Object,pH=B4.prototype,kg=dH?B4.getPrototypeOf:function(t){var e=Rp(t);if(Wt(e,MS))return e[MS];var n=e.constructor;return gn(n)&&e instanceof n?n.prototype:e instanceof B4?pH:null},hH=kt.String,gH=kt.TypeError,Bg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return ur(r),function(i){if(typeof i=="object"||gn(i))return i;throw gH("Can't set "+hH(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),vH=Math.ceil,mH=Math.floor,g5=function(t){var e=+t;return e!=e||e===0?0:(e>0?mH:vH)(e)},yH=Math.max,bH=Math.min,_4=function(t,e){var n=g5(t);return n<0?yH(n+e,0):bH(n,e)},wH=Math.min,zp=function(t){return(e=t.length)>0?wH(g5(e),9007199254740991):0;var e},zS=function(t){return function(e,n,r){var o,i=Lo(e),a=zp(i),u=_4(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}},EH={includes:zS(!0),indexOf:zS(!1)},$p={},DH=EH.indexOf,$S=ge([].push),SP=function(t,e){var n,r=Lo(t),o=0,i=[];for(n in r)!Wt($p,n)&&Wt(r,n)&&$S(i,n);for(;e.length>o;)Wt(r,n=e[o++])&&(~DH(i,n)||$S(i,n));return i},_g=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],CH=_g.concat("length","prototype"),SH=Object.getOwnPropertyNames||function(t){return SP(t,CH)},v5={f:SH},W0={f:Object.getOwnPropertySymbols},xH=ge([].concat),AH=cc("Reflect","ownKeys")||function(t){var e=v5.f(ur(t)),n=W0.f;return n?xH(e,n(t)):e},m5=Object.keys||function(t){return SP(t,_g)},OH=Un?Object.defineProperties:function(t,e){ur(t);for(var n,r=Lo(e),o=m5(e),i=o.length,a=0;i>a;)Ra.f(t,n=o[a++],r[n]);return t},kH=cc("document","documentElement"),xP=z1("IE_PROTO"),Zm=function(){},AP=function(t){return"<script>"+t+"<\/script>"},HS=function(t){t.write(AP("")),t.close();var e=t.parentWindow.Object;return t=null,e},G0=function(){try{zh=new ActiveXObject("htmlfile")}catch{}var t,e;G0=typeof document<"u"?document.domain&&zh?HS(zh):((e=DP("iframe")).style.display="none",kH.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(AP("document.F=Object")),t.close(),t.F):HS(zh);for(var n=_g.length;n--;)delete G0.prototype[_g[n]];return G0()};$p[xP]=!0;var si=Object.create||function(t,e){var n;return t!==null?(Zm.prototype=ur(t),n=new Zm,Zm.prototype=null,n[xP]=t):n=G0(),e===void 0?n:OH(n,e)},F4=function(t,e,n){var r=fc(e);r in t?Ra.f(t,r,Xr(0,n)):t[r]=n},BH=kt.Array,_H=Math.max,OP=function(t,e,n){for(var r=zp(t),o=_4(e,r),i=_4(r,r),a=BH(_H(i-o,0)),u=0;o<i;o++,u++)F4(a,u,t[o]);return a.length=u,a},FH=ge("".replace),TH=ge("".split),PH=ge([].join),T4=String(Error("zxcasd").stack),kP=/\n\s*at [^:]*:[^\n]*/,jH=kP.test(T4),IH=/@[^\n]*\n/.test(T4)&&!/zxcasd/.test(T4),NH=function(t,e){if(typeof t!="string")return t;if(jH)for(;e--;)t=FH(t,kP,"");else if(IH)return PH(OP(TH(t,`
  2. `),e),`
  3. `);return t},LH=function(t,e){Sr(e)&&"cause"in e&&jn(t,"cause",e.cause)},oi={},RH=_n("iterator"),MH=Array.prototype,BP={};BP[_n("toStringTag")]="z";var y5=String(BP)==="[object z]",zH=_n("toStringTag"),$H=kt.Object,HH=Ou(function(){return arguments}())=="Arguments",Hp=y5?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{}}(e=$H(t),zH))=="string"?n:HH?Ou(e):(r=Ou(e))=="Object"&&gn(e.callee)?"Arguments":r},VH=_n("iterator"),VS=function(t){if(t!=null)return Ag(t,VH)||Ag(t,"@@iterator")||oi[Hp(t)]},UH=kt.TypeError,US=function(t,e,n){var r,o;ur(t);try{if(!(r=Ag(t,"return"))){if(e==="throw")throw n;return n}r=or(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return ur(r),n},WH=kt.TypeError,q0=function(t,e){this.stopped=t,this.result=e},WS=q0.prototype,GH=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=h5(e,c),m=function(y){return r&&US(r,"normal",y),new q0(!0,y)},g=function(y){return f?(ur(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=t;else{if(!(o=VS(t)))throw WH(O4(t)+" is not iterable");if(function(y){return y!==void 0&&(oi.Array===y||MH[RH]===y)}(o)){for(i=0,a=zp(t);a>i;i++)if((u=g(t[i]))&&zd(WS,u))return u;return new q0(!1)}r=function(y,h){var b=arguments.length<2?VS(y):h;if(p5(b))return ur(or(b,y));throw UH(O4(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=or(s,r)).done;){try{u=g(l.value)}catch(y){US(r,"throw",y)}if(typeof u=="object"&&u&&zd(WS,u))return u}return new q0(!1)},qH=kt.String,$d=function(t){if(Hp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qH(t)},KH=function(t,e){return t===void 0?arguments.length<2?"":e:$d(t)},YH=!Kn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Xr(1,7)),t.stack!==7)}),XH=_n("toStringTag"),Fg=kt.Error,ZH=[].push,Hd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=zd(Jm,this);Bg?n=Bg(new Fg(void 0),o?kg(this):Jm):(n=o?this:si(Jm),jn(n,XH,"Error")),jn(n,"message",KH(e,"")),YH&&jn(n,"stack",NH(n.stack,1)),LH(n,r);var i=[];return GH(t,ZH,{that:i}),jn(n,"errors",i),n};Bg?Bg(Hd,Fg):function(t,e){for(var n=AH(e),r=Ra.f,o=M1.f,i=0;i<n.length;i++){var a=n[i];Wt(t,a)||r(t,a,o(e,a))}}(Hd,Fg);var Jm=Hd.prototype=si(Fg.prototype,{constructor:Xr(1,Hd),message:Xr(1,""),name:Xr(1,"AggregateError")});Zo({global:!0},{AggregateError:Hd});var JH=ge(Function.toString);gn(ia.inspectSource)||(ia.inspectSource=function(t){return JH(t)});var Tg,pd,Pg,_P=ia.inspectSource,GS=kt.WeakMap,QH=gn(GS)&&/native code/.test(_P(GS)),P4=kt.TypeError,tV=kt.WeakMap;if(QH||ia.state){var Ja=ia.state||(ia.state=new tV),eV=ge(Ja.get),qS=ge(Ja.has),nV=ge(Ja.set);Tg=function(t,e){if(qS(Ja,t))throw new P4("Object already initialized");return e.facade=t,nV(Ja,t,e),e},pd=function(t){return eV(Ja,t)||{}},Pg=function(t){return qS(Ja,t)}}else{var Ts=z1("state");$p[Ts]=!0,Tg=function(t,e){if(Wt(t,Ts))throw new P4("Object already initialized");return e.facade=t,jn(t,Ts,e),e},pd=function(t){return Wt(t,Ts)?t[Ts]:{}},Pg=function(t){return Wt(t,Ts)}}var Qi,KS,YS,dc={set:Tg,get:pd,has:Pg,enforce:function(t){return Pg(t)?pd(t):Tg(t,{})},getterFor:function(t){return function(e){var n;if(!Sr(e)||(n=pd(e)).type!==t)throw P4("Incompatible receiver, "+t+" required");return n}}},FP=Function.prototype,rV=Un&&Object.getOwnPropertyDescriptor,Qm=Wt(FP,"name"),oV={EXISTS:Qm,PROPER:Qm&&(function(){}).name==="something",CONFIGURABLE:Qm&&(!Un||Un&&rV(FP,"name").configurable)},jg=function(t,e,n,r){jn(t,e,n)},j4=_n("iterator"),TP=!1;[].keys&&("next"in(YS=[].keys())?(KS=kg(kg(YS)))!==Object.prototype&&(Qi=KS):TP=!0);var iV=Qi==null||Kn(function(){var t={};return Qi[j4].call(t)!==t});Qi=iV?{}:si(Qi),gn(Qi[j4])||jg(Qi,j4,function(){return this});var PP={IteratorPrototype:Qi,BUGGY_SAFARI_ITERATORS:TP},aV=y5?{}.toString:function(){return"[object "+Hp(this)+"]"},uV=Ra.f,XS=_n("toStringTag"),Ig=function(t,e,n,r){if(t){var o=n?t:t.prototype;Wt(o,XS)||uV(o,XS,{configurable:!0,value:e}),r&&!y5&&jn(o,"toString",aV)}},sV=PP.IteratorPrototype,lV=function(){return this},cV=oV.PROPER,ty=PP.BUGGY_SAFARI_ITERATORS,fV=_n("iterator"),dV=function(){return this},jP=function(t,e,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=si(sV,{next:Xr(+!b,h)}),Ig(g,w,!1,!0),oi[w]=lV})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!ty&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[fV]||d["@@iterator"]||o&&d[o],v=!ty&&p||l(o),m=e=="Array"&&d.entries||p;return m&&(u=kg(m.call(new t)))!==Object.prototype&&u.next&&(Ig(u,c,!0,!0),oi[c]=dV),cV&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return or(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Zo({target:e,proto:!0,forced:ty||f},s)),oi[e]=v,s},pV=dc.set,hV=dc.getterFor("Array Iterator");jP(Array,"Array",function(t,e){pV(this,{type:"Array Iterator",target:Lo(t),index:0,kind:e})},function(){var t=hV(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 gV=ge("".charAt),ZS=ge("".charCodeAt),vV=ge("".slice),JS=function(t){return function(e,n){var r,o,i=$d(f5(e)),a=g5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=ZS(i,a))<55296||r>56319||a+1===u||(o=ZS(i,a+1))<56320||o>57343?t?gV(i,a):r:t?vV(i,a,a+2):o-56320+(r-55296<<10)+65536}},mV={codeAt:JS(!1),charAt:JS(!0)}.charAt,yV=dc.set,bV=dc.getterFor("String Iterator");jP(String,"String",function(t){yV(this,{type:"String Iterator",string:$d(t),index:0})},function(){var t,e=bV(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=mV(n,r),e.index+=t.length,{value:t,done:!1})});var wV=nr.AggregateError,QS=_n("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 tx=kt[ey],ny=tx&&tx.prototype;ny&&Hp(ny)!==QS&&jn(ny,QS,ey),oi[ey]=oi.Array}var Ci,K0,EV=wV,$h=function(t){return t&&t.Math==Math&&t},Dt=$h(typeof globalThis=="object"&&globalThis)||$h(typeof window=="object"&&window)||$h(typeof self=="object"&&self)||$h(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),cn=function(t){try{return!!t()}catch{return!0}},_o=!cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Rc=Function.prototype.call,hn=Rc.bind?Rc.bind(Rc):function(){return Rc.apply(Rc,arguments)},ex={}.propertyIsEnumerable,nx=Object.getOwnPropertyDescriptor,DV=nx&&!ex.call({1:2},1)?function(t){var e=nx(this,t);return!!e&&e.enumerable}:ex,CV={f:DV},aa=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},IP=Function.prototype,I4=IP.bind,N4=IP.call,SV=I4&&I4.bind(N4),oe=I4?function(t){return t&&SV(N4,t)}:function(t){return t&&function(){return N4.apply(t,arguments)}},xV=oe({}.toString),AV=oe("".slice),Bu=function(t){return AV(xV(t),8,-1)},ry=Dt.Object,OV=oe("".split),NP=cn(function(){return!ry("z").propertyIsEnumerable(0)})?function(t){return Bu(t)=="String"?OV(t,""):ry(t)}:ry,kV=Dt.TypeError,$1=function(t){if(t==null)throw kV("Can't call method on "+t);return t},pc=function(t){return NP($1(t))},nn=function(t){return typeof t=="function"},Eo=function(t){return typeof t=="object"?t!==null:nn(t)},BV=function(t){return nn(t)?t:void 0},Vp=function(t,e){return arguments.length<2?BV(Dt[t]):Dt[t]&&Dt[t][e]},Ng=oe({}.isPrototypeOf),oy=Vp("navigator","userAgent")||"",rx=Dt.process,ox=Dt.Deno,ix=rx&&rx.versions||ox&&ox.version,ax=ix&&ix.v8;ax&&(K0=(Ci=ax.split("."))[0]>0&&Ci[0]<4?1:+(Ci[0]+Ci[1])),!K0&&oy&&(!(Ci=oy.match(/Edge\/(\d+)/))||Ci[1]>=74)&&(Ci=oy.match(/Chrome\/(\d+)/))&&(K0=+Ci[1]);var ux=K0,L4=!!Object.getOwnPropertySymbols&&!cn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ux&&ux<41}),b5=L4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_V=Dt.Object,R4=b5?function(t){return typeof t=="symbol"}:function(t){var e=Vp("Symbol");return nn(e)&&Ng(e.prototype,_V(t))},FV=Dt.String,M4=function(t){try{return FV(t)}catch{return"Object"}},TV=Dt.TypeError,w5=function(t){if(nn(t))return t;throw TV(M4(t)+" is not a function")},Vd=function(t,e){var n=t[e];return n==null?void 0:w5(n)},PV=Dt.TypeError,jV=Object.defineProperty,E5=function(t,e){try{jV(Dt,t,{value:e,configurable:!0,writable:!0})}catch{Dt[t]=e}return e},ua=Dt["__core-js_shared__"]||E5("__core-js_shared__",{}),D5=ps(function(t){(t.exports=function(e,n){return ua[e]||(ua[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),IV=Dt.Object,C5=function(t){return IV($1(t))},NV=oe({}.hasOwnProperty),Wn=Object.hasOwn||function(t,e){return NV(C5(t),e)},LV=0,RV=Math.random(),MV=oe(1 .toString),LP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+MV(++LV+RV,36)},Mc=D5("wks"),_u=Dt.Symbol,sx=_u&&_u.for,zV=b5?_u:_u&&_u.withoutSetter||LP,Ln=function(t){if(!Wn(Mc,t)||!L4&&typeof Mc[t]!="string"){var e="Symbol."+t;L4&&Wn(_u,t)?Mc[t]=_u[t]:Mc[t]=b5&&sx?sx(e):zV(e)}return Mc[t]},$V=Dt.TypeError,HV=Ln("toPrimitive"),VV=function(t,e){if(!Eo(t)||R4(t))return t;var n,r=Vd(t,HV);if(r){if(n=hn(r,t,e),!Eo(n)||R4(n))return n;throw $V("Can't convert object to primitive value")}return function(o,i){var a,u;if(nn(a=o.toString)&&!Eo(u=hn(a,o))||nn(a=o.valueOf)&&!Eo(u=hn(a,o)))return u;throw PV("Can't convert object to primitive value")}(t)},S5=function(t){var e=VV(t,"string");return R4(e)?e:e+""},z4=Dt.document,UV=Eo(z4)&&Eo(z4.createElement),x5=function(t){return UV?z4.createElement(t):{}},RP=!_o&&!cn(function(){return Object.defineProperty(x5("div"),"a",{get:function(){return 7}}).a!=7}),lx=Object.getOwnPropertyDescriptor,WV=_o?lx:function(t,e){if(t=pc(t),e=S5(e),RP)try{return lx(t,e)}catch{}if(Wn(t,e))return aa(!hn(CV.f,t,e),t[e])},A5={f:WV},GV=Dt.String,qV=Dt.TypeError,sr=function(t){if(Eo(t))return t;throw qV(GV(t)+" is not an object")},KV=Dt.TypeError,cx=Object.defineProperty,YV=_o?cx:function(t,e,n){if(sr(t),e=S5(e),sr(n),RP)try{return cx(t,e,n)}catch{}if("get"in n||"set"in n)throw KV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},hc={f:YV},Hn=_o?function(t,e,n){return hc.f(t,e,aa(1,n))}:function(t,e,n){return t[e]=n,t},XV=oe(Function.toString);nn(ua.inspectSource)||(ua.inspectSource=function(t){return XV(t)});var Lg,hd,Rg,O5=ua.inspectSource,fx=Dt.WeakMap,ZV=nn(fx)&&/native code/.test(O5(fx)),dx=D5("keys"),k5=function(t){return dx[t]||(dx[t]=LP(t))},B5={},$4=Dt.TypeError,JV=Dt.WeakMap;if(ZV||ua.state){var Qa=ua.state||(ua.state=new JV),QV=oe(Qa.get),px=oe(Qa.has),tU=oe(Qa.set);Lg=function(t,e){if(px(Qa,t))throw new $4("Object already initialized");return e.facade=t,tU(Qa,t,e),e},hd=function(t){return QV(Qa,t)||{}},Rg=function(t){return px(Qa,t)}}else{var Ps=k5("state");B5[Ps]=!0,Lg=function(t,e){if(Wn(t,Ps))throw new $4("Object already initialized");return e.facade=t,Hn(t,Ps,e),e},hd=function(t){return Wn(t,Ps)?t[Ps]:{}},Rg=function(t){return Wn(t,Ps)}}var Zu={set:Lg,get:hd,has:Rg,enforce:function(t){return Rg(t)?hd(t):Lg(t,{})},getterFor:function(t){return function(e){var n;if(!Eo(e)||(n=hd(e)).type!==t)throw $4("Incompatible receiver, "+t+" required");return n}}},MP=Function.prototype,eU=_o&&Object.getOwnPropertyDescriptor,iy=Wn(MP,"name"),_5={EXISTS:iy,PROPER:iy&&(function(){}).name==="something",CONFIGURABLE:iy&&(!_o||_o&&eU(MP,"name").configurable)},Ju=ps(function(t){var e=_5.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,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;nn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Wn(u,"name")||e&&u.name!==p)&&Hn(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Dt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Hn(i,a,u)):f?i[a]=u:E5(a,u)})(Function.prototype,"toString",function(){return nn(this)&&n(this).source||O5(this)})}),nU=Math.ceil,rU=Math.floor,F5=function(t){var e=+t;return e!=e||e===0?0:(e>0?rU:nU)(e)},oU=Math.max,iU=Math.min,H4=function(t,e){var n=F5(t);return n<0?oU(n+e,0):iU(n,e)},aU=Math.min,zP=function(t){return t>0?aU(F5(t),9007199254740991):0},H1=function(t){return zP(t.length)},hx=function(t){return function(e,n,r){var o,i=pc(e),a=H1(i),u=H4(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}},uU={includes:hx(!0),indexOf:hx(!1)}.indexOf,gx=oe([].push),$P=function(t,e){var n,r=pc(t),o=0,i=[];for(n in r)!Wn(B5,n)&&Wn(r,n)&&gx(i,n);for(;e.length>o;)Wn(r,n=e[o++])&&(~uU(i,n)||gx(i,n));return i},Mg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sU=Mg.concat("length","prototype"),lU=Object.getOwnPropertyNames||function(t){return $P(t,sU)},cU={f:lU},fU={f:Object.getOwnPropertySymbols},dU=oe([].concat),pU=Vp("Reflect","ownKeys")||function(t){var e=cU.f(sr(t)),n=fU.f;return n?dU(e,n(t)):e},HP=function(t,e){for(var n=pU(e),r=hc.f,o=A5.f,i=0;i<n.length;i++){var a=n[i];Wn(t,a)||r(t,a,o(e,a))}},hU=/#|\.prototype\./,Up=function(t,e){var n=vU[gU(t)];return n==yU||n!=mU&&(nn(e)?cn(e):!!e)},gU=Up.normalize=function(t){return String(t).replace(hU,".").toLowerCase()},vU=Up.data={},mU=Up.NATIVE="N",yU=Up.POLYFILL="P",bU=Up,wU=A5.f,Wp=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]||E5(u,{}):(Dt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=wU(n,r))&&a.value:n[r],!bU(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;HP(i,o)}(t.sham||o&&o.sham)&&Hn(i,"sham",!0),Ju(n,r,i,t)}},VP={};VP[Ln("toStringTag")]="z";var Hh,T5=String(VP)==="[object z]",EU=Ln("toStringTag"),DU=Dt.Object,CU=Bu(function(){return arguments}())=="Arguments",V1=T5?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{}}(e=DU(t),EU))=="string"?n:CU?Bu(e):(r=Bu(e))=="Object"&&nn(e.callee)?"Arguments":r},SU=Dt.String,Fu=function(t){if(V1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return SU(t)},xU=function(){var t=sr(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},P5=Dt.RegExp,j5=cn(function(){var t=P5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),AU=j5||cn(function(){return!P5("a","y").sticky}),OU=j5||cn(function(){var t=P5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),kU={BROKEN_CARET:OU,MISSED_STICKY:AU,UNSUPPORTED_Y:j5},BU=Object.keys||function(t){return $P(t,Mg)},_U=_o?Object.defineProperties:function(t,e){sr(t);for(var n,r=pc(e),o=BU(e),i=o.length,a=0;i>a;)hc.f(t,n=o[a++],r[n]);return t},FU=Vp("document","documentElement"),UP=k5("IE_PROTO"),ay=function(){},WP=function(t){return"<script>"+t+"<\/script>"},vx=function(t){t.write(WP("")),t.close();var e=t.parentWindow.Object;return t=null,e},Y0=function(){try{Hh=new ActiveXObject("htmlfile")}catch{}var t,e;Y0=typeof document<"u"?document.domain&&Hh?vx(Hh):((e=x5("iframe")).style.display="none",FU.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(WP("document.F=Object")),t.close(),t.F):vx(Hh);for(var n=Mg.length;n--;)delete Y0.prototype[Mg[n]];return Y0()};B5[UP]=!0;var mx,uy,Gp=Object.create||function(t,e){var n;return t!==null?(ay.prototype=sr(t),n=new ay,ay.prototype=null,n[UP]=t):n=Y0(),e===void 0?n:_U(n,e)},TU=Dt.RegExp,PU=cn(function(){var t=TU(".","s");return!(t.dotAll&&t.exec(`
  4. `)&&t.flags==="s")}),jU=Dt.RegExp,IU=cn(function(){var t=jU("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),NU=Zu.get,LU=D5("native-string-replace",String.prototype.replace),zg=RegExp.prototype.exec,V4=zg,RU=oe("".charAt),MU=oe("".indexOf),zU=oe("".replace),sy=oe("".slice),ly=(uy=/b*/g,hn(zg,mx=/a/,"a"),hn(zg,uy,"a"),mx.lastIndex!==0||uy.lastIndex!==0),yx=kU.BROKEN_CARET,cy=/()??/.exec("")[1]!==void 0;(ly||cy||yx||PU||IU)&&(V4=function(t){var e,n,r,o,i,a,u,s=this,l=NU(s),c=Fu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=hn(V4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=yx&&s.sticky,v=hn(xU,s),m=s.source,g=0,y=c;if(p&&(v=zU(v,"y",""),MU(v,"g")===-1&&(v+="g"),y=sy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&RU(c,s.lastIndex-1)!==`
  5. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),cy&&(n=new RegExp("^"+m+"$(?!\\s)",v)),ly&&(r=s.lastIndex),o=hn(zg,p?n:s,y),p?o?(o.input=sy(o.input,g),o[0]=sy(o[0],g),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&&hn(LU,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Gp(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var $g=V4;Wp({target:"RegExp",proto:!0,forced:/./.exec!==$g},{exec:$g});var $U=Ln("species"),bx=RegExp.prototype,HU=oe("".charAt),wx=oe("".charCodeAt),VU=oe("".slice),Ex=function(t){return function(e,n){var r,o,i=Fu($1(e)),a=F5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=wx(i,a))<55296||r>56319||a+1===u||(o=wx(i,a+1))<56320||o>57343?t?HU(i,a):r:t?VU(i,a,a+2):o-56320+(r-55296<<10)+65536}},GP={codeAt:Ex(!1),charAt:Ex(!0)},UU=GP.charAt,WU=function(t,e,n){return e+(n?UU(t,e).length:1)},GU=Dt.TypeError,Dx=function(t,e){var n=t.exec;if(nn(n)){var r=hn(n,t,e);return r!==null&&sr(r),r}if(Bu(t)==="RegExp")return hn($g,t,e);throw GU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Ln(t),i=!cn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!cn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[$U]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=oe(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=oe(l),m=c.exec;return m===$g||m===bx.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ju(String.prototype,t,s[0]),Ju(bx,o,s[1])}})("match",function(t,e,n){return[function(r){var o=$1(this),i=r==null?void 0:Vd(r,t);return i?hn(i,r,o):new RegExp(r)[t](Fu(o))},function(r){var o=sr(this),i=Fu(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Dx(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Dx(o,i))!==null;){var f=Fu(s[0]);l[c]=f,f===""&&(o.lastIndex=WU(i,zP(o.lastIndex),u)),c++}return c===0?null:l}]}),Wp({global:!0},{globalThis:Dt});var qU=!cn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Cx=k5("IE_PROTO"),U4=Dt.Object,KU=U4.prototype,Ud=qU?U4.getPrototypeOf:function(t){var e=C5(t);if(Wn(e,Cx))return e[Cx];var n=e.constructor;return nn(n)&&e instanceof n?n.prototype:e instanceof U4?KU:null},YU=Dt.String,XU=Dt.TypeError,Il=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=oe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return sr(r),function(i){if(typeof i=="object"||nn(i))return i;throw XU("Can't set "+YU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),ZU=Dt.Array,JU=Math.max,QU=oe("".replace),tW=oe("".split),eW=oe([].join),W4=String(Error("zxcasd").stack),qP=/\n\s*at [^:]*:[^\n]*/,nW=qP.test(W4),rW=/@[^\n]*\n/.test(W4)&&!/zxcasd/.test(W4),oW=function(t,e){if(typeof t!="string")return t;if(nW)for(;e--;)t=QU(t,qP,"");else if(rW)return eW(function(n,r,o){for(var i,a,u,s,l=H1(n),c=H4(r,l),f=H4(l,l),d=ZU(JU(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=n[c],s=void 0,(s=S5(a))in i?hc.f(i,s,aa(0,u)):i[s]=u;return d.length=p,d}(tW(t,`
  6. `),e),`
  7. `);return t},iW=function(t,e){Eo(e)&&"cause"in e&&Hn(t,"cause",e.cause)},Sx=oe(oe.bind),KP=function(t,e){return w5(t),e===void 0?t:Sx?Sx(t,e):function(){return t.apply(e,arguments)}},Nl={},aW=Ln("iterator"),uW=Array.prototype,sW=Ln("iterator"),xx=function(t){if(t!=null)return Vd(t,sW)||Vd(t,"@@iterator")||Nl[V1(t)]},lW=Dt.TypeError,Ax=function(t,e,n){var r,o;sr(t);try{if(!(r=Vd(t,"return"))){if(e==="throw")throw n;return n}r=hn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return sr(r),n},cW=Dt.TypeError,X0=function(t,e){this.stopped=t,this.result=e},Ox=X0.prototype,fW=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=KP(e,c),m=function(y){return r&&Ax(r,"normal",y),new X0(!0,y)},g=function(y){return f?(sr(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=t;else{if(!(o=xx(t)))throw cW(M4(t)+" is not iterable");if(function(y){return y!==void 0&&(Nl.Array===y||uW[aW]===y)}(o)){for(i=0,a=H1(t);a>i;i++)if((u=g(t[i]))&&Ng(Ox,u))return u;return new X0(!1)}r=function(y,h){var b=arguments.length<2?xx(y):h;if(w5(b))return sr(hn(b,y));throw lW(M4(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=hn(s,r)).done;){try{u=g(l.value)}catch(y){Ax(r,"throw",y)}if(typeof u=="object"&&u&&Ng(Ox,u))return u}return new X0(!1)},dW=function(t,e){return t===void 0?arguments.length<2?"":e:Fu(t)},pW=!cn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",aa(1,7)),t.stack!==7)}),hW=Ln("toStringTag"),Hg=Dt.Error,gW=[].push,Wd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Ng(fy,this);Il?n=Il(new Hg(void 0),o?Ud(this):fy):(n=o?this:Gp(fy),Hn(n,hW,"Error")),Hn(n,"message",dW(e,"")),pW&&Hn(n,"stack",oW(n.stack,1)),iW(n,r);var i=[];return fW(t,gW,{that:i}),Hn(n,"errors",i),n};Il?Il(Wd,Hg):HP(Wd,Hg);var fy=Wd.prototype=Gp(Hg.prototype,{constructor:aa(1,Wd),message:aa(1,""),name:aa(1,"AggregateError")});Wp({global:!0},{AggregateError:Wd});var G4=Ln("unscopables"),q4=Array.prototype;q4[G4]==null&&hc.f(q4,G4,{configurable:!0,value:Gp(null)});var Tu,kx,Bx,dy=function(t){q4[G4][t]=!0},K4=Ln("iterator"),YP=!1;[].keys&&("next"in(Bx=[].keys())?(kx=Ud(Ud(Bx)))!==Object.prototype&&(Tu=kx):YP=!0);var vW=Tu==null||cn(function(){var t={};return Tu[K4].call(t)!==t});vW&&(Tu={}),nn(Tu[K4])||Ju(Tu,K4,function(){return this});var I5={IteratorPrototype:Tu,BUGGY_SAFARI_ITERATORS:YP},mW=hc.f,_x=Ln("toStringTag"),Fx=function(t,e,n){t&&!Wn(t=n?t:t.prototype,_x)&&mW(t,_x,{configurable:!0,value:e})},yW=I5.IteratorPrototype,bW=function(){return this},wW=_5.PROPER,EW=_5.CONFIGURABLE,Tx=I5.IteratorPrototype,py=I5.BUGGY_SAFARI_ITERATORS,zc=Ln("iterator"),DW=function(){return this},XP=function(t,e,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Gp(yW,{next:aa(+!b,h)}),Fx(g,w,!1),Nl[w]=bW})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!py&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[zc]||d["@@iterator"]||o&&d[o],v=!py&&p||l(o),m=e=="Array"&&d.entries||p;return m&&(u=Ud(m.call(new t)))!==Object.prototype&&u.next&&(Ud(u)!==Tx&&(Il?Il(u,Tx):nn(u[zc])||Ju(u,zc,DW)),Fx(u,c,!0)),wW&&o=="values"&&p&&p.name!=="values"&&(EW?Hn(d,"name","values"):(f=!0,v=function(){return hn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Wp({target:e,proto:!0,forced:py||f},s)),d[zc]!==v&&Ju(d,zc,v,{name:o}),Nl[e]=v,s},CW=Zu.set,SW=Zu.getterFor("Array Iterator"),rd=XP(Array,"Array",function(t,e){CW(this,{type:"Array Iterator",target:pc(t),index:0,kind:e})},function(){var t=SW(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,dy("keys"),dy("values"),dy("entries");var xW=GP.charAt,AW=Zu.set,OW=Zu.getterFor("String Iterator");XP(String,"String",function(t){AW(this,{type:"String Iterator",string:Fu(t),index:0})},function(){var t,e=OW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=xW(n,r),e.index+=t.length,{value:t,done:!1})});var hy,Vg={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=x5("span").classList,Px=gy&&gy.constructor&&gy.constructor.prototype,ZP=Px===Object.prototype?void 0:Px,vy=Ln("iterator"),jx=Ln("toStringTag"),my=rd.values,JP=function(t,e){if(t){if(t[vy]!==my)try{Hn(t,vy,my)}catch{t[vy]=my}if(t[jx]||Hn(t,jx,e),Vg[e]){for(var n in rd)if(t[n]!==rd[n])try{Hn(t,n,rd[n])}catch{t[n]=rd[n]}}}};for(var yy in Vg)JP(Dt[yy]&&Dt[yy].prototype,yy);JP(ZP,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
  8. Sorry, wangEditor V5+ versions do not support IE browser.`),Ix(),Nx()):global&&(!((hy=global.navigator)===null||hy===void 0)&&hy.userAgent.match("QQBrowser"))&&(Ix(),Nx());function Ix(){typeof globalThis>"u"&&(window.globalThis=window)}function Nx(){EV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var Lx,Ug=Array.isArray||function(t){return Ou(t)=="Array"},QP=function(){},kW=[],tj=cc("Reflect","construct"),N5=/^\s*(?:class|function)\b/,BW=ge(N5.exec),_W=!N5.exec(QP),$c=function(t){if(!gn(t))return!1;try{return tj(QP,kW,t),!0}catch{return!1}},FW=!tj||Kn(function(){var t;return $c($c.call)||!$c(Object)||!$c(function(){t=!0})||t})?function(t){if(!gn(t))return!1;switch(Hp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _W||!!BW(N5,_P(t))}:$c,TW=_n("species"),Rx=kt.Array,ej=function(t,e){return new(function(n){var r;return Ug(n)&&(r=n.constructor,(FW(r)&&(r===Rx||Ug(r.prototype))||Sr(r)&&(r=r[TW])===null)&&(r=void 0)),r===void 0?Rx:r}(t))(e===0?0:e)},PW=_n("species"),nj=_n("isConcatSpreadable"),Mx=kt.TypeError,jW=xg>=51||!Kn(function(){var t=[];return t[nj]=!1,t.concat()[0]!==t}),IW=(Lx="concat",xg>=51||!Kn(function(){var t=[];return(t.constructor={})[PW]=function(){return{foo:1}},t[Lx](Boolean).foo!==1})),NW=function(t){if(!Sr(t))return!1;var e=t[nj];return e!==void 0?!!e:Ug(t)};Zo({target:"Array",proto:!0,forced:!jW||!IW},{concat:function(t){var e,n,r,o,i,a=Rp(this),u=ej(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(NW(i=e===-1?a:arguments[e])){if(s+(o=zp(i))>9007199254740991)throw Mx("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&F4(u,s,i[n])}else{if(s>=9007199254740991)throw Mx("Maximum allowed index exceeded");F4(u,s++,i)}return u.length=s,u}});var zx=v5.f,$x=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rj={f:function(t){return $x&&Ou(t)=="Window"?function(e){try{return zx(e)}catch{return OP($x)}}(t):zx(Lo(t))}},LW=ge([].slice),L5={f:_n},RW=Ra.f,Ie=function(t){var e=nr.Symbol||(nr.Symbol={});Wt(e,t)||RW(e,t,{value:L5.f(t)})},Hx=ge([].push),Si=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 d,p,v=Rp(s),m=EP(v),g=h5(l,c),y=zp(m),h=0,b=f||ej,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:Hx(w,d)}else switch(t){case 4:return!1;case 7:Hx(w,d)}return i?-1:r||o?o:w}},U1={forEach:Si(0),map:Si(1),filter:Si(2),some:Si(3),every:Si(4),find:Si(5),findIndex:Si(6),filterReject:Si(7)}.forEach,zn=z1("hidden"),Vx=_n("toPrimitive"),MW=dc.set,Ux=dc.getterFor("Symbol"),Wr=Object.prototype,Yi=kt.Symbol,ta=Yi&&Yi.prototype,Wx=kt.TypeError,by=kt.QObject,Hc=cc("JSON","stringify"),oj=M1.f,Xi=Ra.f,ij=rj.f,zW=c5.f,aj=ge([].push),li=hs("symbols"),qp=hs("op-symbols"),wy=hs("string-to-symbol-registry"),Ey=hs("symbol-to-string-registry"),$W=hs("wks"),Dy=!by||!by.prototype||!by.prototype.findChild,Y4=Un&&Kn(function(){return si(Xi({},"a",{get:function(){return Xi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=oj(Wr,e);r&&delete Wr[e],Xi(t,e,n),r&&t!==Wr&&Xi(Wr,e,r)}:Xi,Cy=function(t,e){var n=li[t]=si(ta);return MW(n,{type:"Symbol",tag:t,description:e}),Un||(n.description=e),n},Wg=function(t,e,n){t===Wr&&Wg(qp,e,n),ur(t);var r=fc(e);return ur(n),Wt(li,r)?(n.enumerable?(Wt(t,zn)&&t[zn][r]&&(t[zn][r]=!1),n=si(n,{enumerable:Xr(0,!1)})):(Wt(t,zn)||Xi(t,zn,Xr(1,{})),t[zn][r]=!0),Y4(t,r,n)):Xi(t,r,n)},Gx=function(t,e){ur(t);var n=Lo(e),r=m5(n).concat(X4(n));return U1(r,function(o){Un&&!or(uj,n,o)||Wg(t,o,n[o])}),t},uj=function(t){var e=fc(t),n=or(zW,this,e);return!(this===Wr&&Wt(li,e)&&!Wt(qp,e))&&(!(n||!Wt(this,e)||!Wt(li,e)||Wt(this,zn)&&this[zn][e])||n)},qx=function(t,e){var n=Lo(t),r=fc(e);if(n!==Wr||!Wt(li,r)||Wt(qp,r)){var o=oj(n,r);return!o||!Wt(li,r)||Wt(n,zn)&&n[zn][r]||(o.enumerable=!0),o}},Kx=function(t){var e=ij(Lo(t)),n=[];return U1(e,function(r){Wt(li,r)||Wt($p,r)||aj(n,r)}),n},X4=function(t){var e=t===Wr,n=ij(e?qp:Lo(t)),r=[];return U1(n,function(o){!Wt(li,o)||e&&!Wt(Wr,o)||aj(r,li[o])}),r};if(go||(ta=(Yi=function(){if(zd(ta,this))throw Wx("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?$d(arguments[0]):void 0,e=Og(t),n=function(r){this===Wr&&or(n,qp,r),Wt(this,zn)&&Wt(this[zn],e)&&(this[zn][e]=!1),Y4(this,e,Xr(1,r))};return Un&&Dy&&Y4(Wr,e,{configurable:!0,set:n}),Cy(e,t)}).prototype,jg(ta,"toString",function(){return Ux(this).tag}),jg(Yi,"withoutSetter",function(t){return Cy(Og(t),t)}),c5.f=uj,Ra.f=Wg,M1.f=qx,v5.f=rj.f=Kx,W0.f=X4,L5.f=function(t){return Cy(_n(t),t)},Un&&Xi(ta,"description",{configurable:!0,get:function(){return Ux(this).description}})),Zo({global:!0,wrap:!0,forced:!go,sham:!go},{Symbol:Yi}),U1(m5($W),function(t){Ie(t)}),Zo({target:"Symbol",stat:!0,forced:!go},{for:function(t){var e=$d(t);if(Wt(wy,e))return wy[e];var n=Yi(e);return wy[e]=n,Ey[n]=e,n},keyFor:function(t){if(!Dl(t))throw Wx(t+" is not a symbol");if(Wt(Ey,t))return Ey[t]},useSetter:function(){Dy=!0},useSimple:function(){Dy=!1}}),Zo({target:"Object",stat:!0,forced:!go,sham:!Un},{create:function(t,e){return e===void 0?si(t):Gx(si(t),e)},defineProperty:Wg,defineProperties:Gx,getOwnPropertyDescriptor:qx}),Zo({target:"Object",stat:!0,forced:!go},{getOwnPropertyNames:Kx,getOwnPropertySymbols:X4}),Zo({target:"Object",stat:!0,forced:Kn(function(){W0.f(1)})},{getOwnPropertySymbols:function(t){return W0.f(Rp(t))}}),Hc){var HW=!go||Kn(function(){var t=Yi();return Hc([t])!="[null]"||Hc({a:t})!="{}"||Hc(Object(t))!="{}"});Zo({target:"JSON",stat:!0,forced:HW},{stringify:function(t,e,n){var r=LW(arguments),o=e;if((Sr(e)||t!==void 0)&&!Dl(t))return Ug(e)||(e=function(i,a){if(gn(o)&&(a=or(o,this,i,a)),!Dl(a))return a}),r[1]=e,bP(Hc,null,r)}})}if(!ta[Vx]){var VW=ta.valueOf;jg(ta,Vx,function(t){return or(VW,this)})}Ig(Yi,"Symbol"),$p[zn]=!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"),Ig(kt.JSON,"JSON",!0);var UW=nr.Symbol;Ie("asyncDispose"),Ie("dispose"),Ie("matcher"),Ie("metadata"),Ie("observable"),Ie("patternMatch"),Ie("replaceAll");var Vh=UW,WW=L5.f("iterator"),GW=ps(function(t){function e(n){return typeof Vh=="function"&&typeof WW=="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}),qW=_$(GW),sj=A5.f,KW=cn(function(){sj(1)});if(Wp({target:"Object",stat:!0,forced:!_o||KW,sham:!_o},{getOwnPropertyDescriptor:function(t,e){return sj(pc(t),e)}}),(typeof global>"u"?"undefined":qW(global))==="object"){var YW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!YW.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[]})}/*!
  9. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  10. *
  11. * Copyright (c) 2014-2017, Jon Schlinkert.
  12. * Released under the MIT License.
  13. */function Yx(t){return Object.prototype.toString.call(t)==="[object Object]"}function Sn(t){var e,n;return Yx(t)!==!1&&((e=t.constructor)===void 0||Yx(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Ur(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 Qu(t){return!!t&&!!t[lr]}function ts(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)===eG}(t)||Array.isArray(t)||!!t[rA]||!!t.constructor[rA]||R5(t)||M5(t))}function Gd(t,e,n){n===void 0&&(n=!1),Ll(t)===0?(n?Object.keys:U5)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function Ll(t){var e=t[lr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:R5(t)?2:M5(t)?3:0}function Z4(t,e){return Ll(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lj(t,e,n){var r=Ll(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function R5(t){return QW&&t instanceof Map}function M5(t){return tG&&t instanceof Set}function fu(t){return t.o||t.t}function z5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=nG(t);delete e[lr];for(var n=U5(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 $5(t,e){return e===void 0&&(e=!1),H5(t)||Qu(t)||!ts(t)||(Ll(t)>1&&(t.set=t.add=t.clear=t.delete=XW),Object.freeze(t),e&&Gd(t,function(n,r){return $5(r,!0)},!0)),t}function XW(){Ur(2)}function H5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ii(t){var e=rG[t];return e||Ur(18,t),e}function Xx(){return qd}function Sy(t,e){e&&(ii("Patches"),t.u=[],t.s=[],t.v=e)}function Gg(t){J4(t),t.p.forEach(ZW),t.p=null}function J4(t){t===qd&&(qd=t.l)}function Zx(t){return qd={p:[],l:qd,h:t,m:!0,_:0}}function ZW(t){var e=t[lr];e.i===0||e.i===1?e.j():e.O=!0}function xy(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[lr].P&&(Gg(e),Ur(4)),ts(t)&&(t=qg(e,t),e.l||Kg(e,t)),e.u&&ii("Patches").M(n[lr],t,e.u,e.s)):t=qg(e,n,[]),Gg(e),e.u&&e.v(e.u,e.s),t!==cj?t:void 0}function qg(t,e,n){if(H5(e))return e;var r=e[lr];if(!r)return Gd(e,function(i,a){return Jx(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Kg(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=z5(r.k):r.o;Gd(r.i===3?new Set(o):o,function(i,a){return Jx(t,r,o,i,a,n)}),Kg(t,o,!1),n&&t.u&&ii("Patches").R(r,n,t.u,t.s)}return r.o}function Jx(t,e,n,r,o,i){if(Qu(o)){var a=qg(t,o,i&&e&&e.i!==3&&!Z4(e.D,r)?i.concat(r):void 0);if(lj(n,r,a),!Qu(a))return;t.m=!1}if(ts(o)&&!H5(o)){if(!t.h.F&&t._<1)return;qg(t,o),e&&e.A.l||Kg(t,o)}}function Kg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&$5(e,n)}function Ay(t,e){var n=t[lr];return(n?fu(n):t)[e]}function Qx(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 Q4(t){t.P||(t.P=!0,t.l&&Q4(t.l))}function Oy(t){t.o||(t.o=z5(t.t))}function tE(t,e,n){var r=R5(e)?ii("MapSet").N(e,n):M5(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:Xx(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=Z0;a&&(s=[u],l=J0);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,n):ii("ES5").J(e,n);return(n?n.A:Xx()).p.push(r),r}function JW(t){return Qu(t)||Ur(22,t),function e(n){if(!ts(n))return n;var r,o=n[lr],i=Ll(n);if(o){if(!o.P&&(o.i<4||!ii("ES5").K(o)))return o.t;o.I=!0,r=tA(n,i),o.I=!1}else r=tA(n,i);return Gd(r,function(a,u){o&&function(s,l){return Ll(s)===2?s.get(l):s[l]}(o.t,a)===u||lj(r,a,e(u))}),i===3?new Set(r):r}(t)}function tA(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return z5(t)}var eA,qd,V5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",QW=typeof Map<"u",tG=typeof Set<"u",nA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cj=V5?Symbol.for("immer-nothing"):((eA={})["immer-nothing"]=!0,eA),rA=V5?Symbol.for("immer-draftable"):"__$immer_draftable",lr=V5?Symbol.for("immer-state"):"__$immer_state",eG=""+Object.prototype.constructor,U5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,nG=Object.getOwnPropertyDescriptors||function(t){var e={};return U5(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},rG={},Z0={get:function(t,e){if(e===lr)return t;var n=fu(t);if(!Z4(n,e))return function(o,i,a){var u,s=Qx(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||!ts(r)?r:r===Ay(t.t,e)?(Oy(t),t.o[e]=tE(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=Qx(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[lr];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||Z4(t.t,e)))return!0;Oy(t),Q4(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),Q4(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(){Ur(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ur(12)}},J0={};Gd(Z0,function(t,e){J0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),J0.deleteProperty=function(t,e){return Z0.deleteProperty.call(this,t[0],e)},J0.set=function(t,e,n){return Z0.set.call(this,t[0],e,n,t[0])};var oG=function(){function t(n){var r=this;this.g=nA,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(p){var v=this;p===void 0&&(p=u);for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return s.produce(p,function(h){var b;return(b=i).call.apply(b,[v,h].concat(g))})}}var l;if(typeof i!="function"&&Ur(6),a!==void 0&&typeof a!="function"&&Ur(7),ts(o)){var c=Zx(r),f=tE(r,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Gg(c):J4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Sy(c,a),xy(p,c)},function(p){throw Gg(c),p}):(Sy(c,a),xy(l,c))}if(!o||typeof o!="object")return(l=i(o))===cj?void 0:(l===void 0&&(l=o),r.F&&$5(l,!0),l);Ur(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(d){return o.apply(void 0,[d].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){ts(n)||Ur(8),Qu(n)&&(n=JW(n));var r=Zx(this),o=tE(this,n,void 0);return o[lr].C=!0,J4(r),o},e.finishDraft=function(n,r){var o=(n&&n[lr]).A;return Sy(o,r),xy(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!nA&&Ur(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 Qu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),tr=new oG,W1=tr.produce;tr.produceWithPatches.bind(tr),tr.setAutoFreeze.bind(tr),tr.setUseProxies.bind(tr),tr.applyPatches.bind(tr);var oA=tr.createDraft.bind(tr),iA=tr.finishDraft.bind(tr);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 Yg=new WeakMap,Vc=new WeakMap,aA=new WeakMap,uA=new WeakMap,sA=new WeakMap,lA=new WeakMap;function cA(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?cA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var iG=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))IG.transform(n,e);for(var r of E.pointRefs(t))NG.transform(r,e);for(var o of E.rangeRefs(t))RG.transform(o,e);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=Yg.get(t)||[],l=aG(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);Yg.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),Vc.get(t)||(Vc.set(t,!0),Promise.resolve().then(()=>{Vc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(M.isExpanded(r))N.setNodes(t,{[e]:n},{match:st.isText,split:!0});else{var o=Uh(Uh({},E.marks(t)||{}),{},{[e]:n});t.marks=o,Vc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&M.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&M.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&M.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.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(!st.isText(n))if(ft.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ft.isElement(n)&&(t.isInline(n)||n.children.length===0||st.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Q.get(t,r);if(!st.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(st.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&&st.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&&st.isText(l)&&(st.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(M.isExpanded(n))N.unsetNodes(t,e,{match:st.isText,split:!0});else{var r=Uh({},E.marks(t)||{});delete r[e],t.marks=r,Vc.get(t)||t.onChange()}}};return t},aG=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=st.isText(n)?[]:Array.from(Q.nodes(n),w=>{var[,D]=w;return r.concat(D)});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 d=j.transform(f,t);l.push(d)}for(var p of j.ancestors(s)){var v=j.transform(p,t);c.push(v)}var m=c[c.length-1],g=s[s.length-1],y=m.concat(g);return[...l,...c,y];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,eE=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?fG(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=CG(s,l);if([o,i]=n?[i,c]:[c,o],vl(o,St.ZWJ)&&vl(i,St.ExtPict)&&!OG(n?t.substring(0,a):t.substring(0,t.length-a))||vl(o,St.RI)&&vl(i,St.RI)&&!(u=u!==null?!u:!!n||BG(t.substring(0,t.length-a)))||o!==St.None&&i!==St.None&&xG(o,i))break;a+=s.length}return a||1},uG=/\s/,sG=/[\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]/,lG=/['\u2018\u2019]/,nE=(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)]},cG=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(uG.test(e))return!1;if(lG.test(e)){var o=eE(n,r),[i,a]=nE(n,o,r);if(t(i,a,r))return!0}return!sG.test(e)},fG=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(pG(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(dG(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},dG=t=>t>=55296&&t<=56319,pG=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 hG=/^(?:[\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])$/,gG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,vG=/^(?:[\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])$/,mG=/^[\u1100-\u115F\uA960-\uA97C]$/,yG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,bG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,wG=/^[\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]$/,EG=/^[\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]$/,DG=/^(?:[\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])$/,CG=(t,e)=>{var n=St.Any;return t.search(hG)!==-1&&(n|=St.Extend),e===8205&&(n|=St.ZWJ),e>=127462&&e<=127487&&(n|=St.RI),t.search(gG)!==-1&&(n|=St.Prepend),t.search(vG)!==-1&&(n|=St.SpacingMark),t.search(mG)!==-1&&(n|=St.L),t.search(yG)!==-1&&(n|=St.V),t.search(bG)!==-1&&(n|=St.T),t.search(wG)!==-1&&(n|=St.LV),t.search(EG)!==-1&&(n|=St.LVT),t.search(DG)!==-1&&(n|=St.ExtPict),n};function vl(t,e){return(t&e)!=0}var SG=[[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 xG(t,e){return SG.findIndex(n=>vl(t,n[0])&&vl(e,n[1]))===-1}var AG=/(?:[\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$/,OG=t=>t.search(AG)!==-1,kG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,BG=t=>{var e=t.match(kG);return e!==null&&e[0].length/2%2==1},fA=t=>Sn(t)&&Q.isNodeList(t.children)&&!E.isEditor(t),ft={isAncestor:t=>Sn(t)&&Q.isNodeList(t.children),isElement:fA,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 fA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},_G=["text"],FG=["text"];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 js(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 pA=new WeakMap,E={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=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!st.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:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,js(js({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,js(js({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>st.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>st.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(!Sn(t))return!1;var e=pA.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||Sn(t.marks))&&(t.selection===null||M.isRange(t.selection))&&Q.isNodeList(t.children)&&ea.isOperationList(t.operations);return pA.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return _t.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&st.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ft.isElement(e)&&t.isInline(e),isNormalizing(t){var e=aA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return _t.equals(e,r)},isVoid:(t,e)=>ft.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(M.isExpanded(n)){var[r]=E.nodes(t,{match:st.isText});if(r){var[o]=r;return ci(o,_G)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:st.isText}),l=E.above(t,{match:p=>E.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;j.isAncestor(d,f)&&(u=c)}}return ci(u,FG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(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]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.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(TG.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),v=[];for(var[m,g]of p){var y=d&&j.compare(g,d[1])===0;if(r!=="highest"||!y){if(u(m,g))if(r==="lowest"&&y)d=[m,g];else{var h=r==="lowest"?d:[m,g];h&&(o?v.push(h):yield h),d=[m,g]}else if(o&&!y&&st.isText(m))return}}r==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*v)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>Yg.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});Yg.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.has(t,i)){var a=E.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(`
  14. 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.
  15. `));var f=r(t).pop();if(Q.has(t,f)){var d=E.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=j.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return M.isRange(e)&&(e=o==="start"?M.start(e):o==="end"?M.end(e):j.common(e.anchor.path,e.focus.path)),_t.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=uA.get(t);return e||(e=new Set,uA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!st.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(M.isRange(e)){var[s,l]=M.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=sA.get(t);return e||(e=new Set,sA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=M.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[m,g]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ft.isElement(m)){if(!i&&t.isVoid(m)){yield E.start(t,g);continue}if(t.isInline(m))continue;if(E.hasInlines(t,m)){var y=j.isAncestor(g,s.path)?s:E.end(t,g),h=j.isAncestor(g,u.path)?u:E.start(t,g);f=E.string(t,{anchor:h,focus:y},{voids:i}),c=!0}}if(st.isText(m)){var b=j.equals(g,l.path);for(b?(p=o?l.offset:m.text.length-l.offset,v=l.offset):(p=m.text.length,v=o?p:0),(b||c||r==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,o),f=nE(f,d,o)[1]}if(v=o?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:v}}}}}function w(D,S,C){return S==="character"?eE(D,C):S==="word"?function(A){for(var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],z=0,U=!1;A.length>0;){var $=eE(A,_),[q,K]=nE(A,$,_);if(cG(q,K,_))U=!0,z+=$;else{if(U)break;z+=$}A=K}return z}(D,C):S==="line"||S==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>M.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=lA.get(t);return e||(e=new Set,lA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){aA.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(t,e),[i,a]=M.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:st.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]=M.edges(e);if(o.offset!==0||i.offset!==0||M.isCollapsed(e))return e;var a=E.above(t,{at:i,match:d=>E.isBlock(t,d)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:st.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 E.above(t,js(js({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},TG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},PG=["children"],jG=["text"],hA=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(st.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=[Q.ancestor(t,r),r];yield o}},child(t,e){if(st.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=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Q.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[Q.get(t,r),r]},descendant(t,e){var n=Q.get(t,e);if(E.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 Q.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 Q.nodes(t,e))ft.isElement(n)&&(yield[n,r])},extractProps:t=>ft.isAncestor(t)?ci(t,PG):ci(t,jG),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!st.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(st.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=W1({children:t.children},r=>{var[o,i]=M.edges(e),a=Q.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!M.includes(e,p)}});for(var[,u]of a){if(!M.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(st.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(st.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>st.isText(t)||ft.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=hA.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return hA.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!st.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=Q.get(t,e);if(!st.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=Q.get(t,r);yield[o,r]}},matches:(t,e)=>ft.isElement(t)&&ft.isElementProps(e)&&ft.matches(t,e)||st.isText(t)&&st.isTextProps(e)&&st.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)||st.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(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=Q.get(t,u)):(u=j.parent(u),s=Q.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=Q.get(t,u)}},parent(t,e){var n=j.parent(e),r=Q.get(t,n);if(st.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=>st.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))st.isText(n)&&(yield[n,r])}};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 He(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 ea={isNodeOperation:t=>ea.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Sn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&Q.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)&&Sn(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&Sn(t.properties)&&Sn(t.newProperties);case"set_selection":return t.properties===null&&M.isRange(t.newProperties)||t.newProperties===null&&M.isRange(t.properties)||Sn(t.properties)&&Sn(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&Sn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ea.isOperation(e)),isSelectionOperation:t=>ea.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ea.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 W1(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:d}=e;if(j.equals(f,d))return;if(j.isAncestor(f,r)||j.equals(f,r)){var p=d.slice();return j.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}j.isSibling(f,d)&&(j.isAncestor(d,r)||j.equals(d,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(d,r)||j.equals(d,r)||j.isAncestor(d,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):j.endsBefore(f,r)&&(j.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},IG={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 vA(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 mA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _t={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)=>_t.compare(t,e)===1,isBefore:(t,e)=>_t.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>Sn(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return W1(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,mA(mA({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},NG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=_t.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},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}var M={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return M.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=M.edges(t);return e},equals:(t,e)=>_t.equals(t.anchor,e.anchor)&&_t.equals(t.focus,e.focus),includes(t,e){if(M.isRange(e)){if(M.includes(t,e.anchor)||M.includes(t,e.focus))return!0;var[n,r]=M.edges(t),[o,i]=M.edges(e);return _t.isBefore(n,o)&&_t.isAfter(r,i)}var[a,u]=M.edges(t),s=!1,l=!1;return _t.isPoint(e)?(s=_t.compare(e,a)>=0,l=_t.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,LG),[r,o]=M.edges(t),[i,a]=M.edges(e),u=_t.isBefore(r,i)?i:r,s=_t.isBefore(o,a)?o:a;return _t.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?yA(Object(f),!0).forEach(function(d){Ro(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):yA(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return _t.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return _t.equals(e,n)},isExpanded:t=>!M.isCollapsed(t),isForward:t=>!M.isBackward(t),isRange:t=>Sn(t)&&_t.isPoint(t.anchor)&&_t.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=M.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return W1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=M.isCollapsed(r);M.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?M.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=_t.transform(r.anchor,e,{affinity:o}),l=_t.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},RG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=M.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},fj=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Sn(r)&&Sn(o)){if(!fj(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},MG=["text"],zG=["anchor","focus"];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 Go(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 st={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ci(i,MG)}return fj(r?o(t):t,r?o(e):e)},isText:t=>Sn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>st.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,zG),[i,a]=M.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,v=void 0;if(a.offset<s){var m=a.offset-f;v=Go(Go({},d),{},{text:d.text.slice(m)}),d=Go(Go({},d),{},{text:d.text.slice(0,m)})}if(i.offset>f){var g=i.offset-f;p=Go(Go({},d),{},{text:d.text.slice(0,g)}),d=Go(Go({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}n=u}return n}};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 Uc(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={transform(t,e){t.children=oA(t.children);var n=t.selection&&oA(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of M.points(o))o[f]=_t.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var m=Q.leaf(r,d),g=m.text.slice(0,p),y=m.text.slice(p);if(m.text=g+v+y,o)for(var[h,b]of M.points(o))o[b]=_t.transform(h,i);break;case"merge_node":var{path:w}=i,D=Q.get(r,w),S=j.previous(w),C=Q.get(r,S),A=Q.parent(r,w),_=w[w.length-1];if(st.isText(D)&&st.isText(C))C.text+=D.text;else{if(st.isText(D)||st.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(C));C.children.push(...D.children)}if(A.children.splice(_,1),o)for(var[z,U]of M.points(o))o[U]=_t.transform(z,i);break;case"move_node":var{path:$,newPath:q}=i;if(j.isAncestor($,q))throw new Error("Cannot move a path [".concat($,"] to new path [").concat(q,"] because the destination is inside itself."));var K=Q.get(r,$),I=Q.parent(r,$),L=$[$.length-1];I.children.splice(L,1);var X=j.transform($,i),lt=Q.get(r,j.parent(X)),it=X[X.length-1];if(lt.children.splice(it,0,K),o)for(var[at,k]of M.points(o))o[k]=_t.transform(at,i);break;case"remove_node":var{path:x}=i,T=x[x.length-1];if(Q.parent(r,x).children.splice(T,1),o)for(var[H,Y]of M.points(o)){var W=_t.transform(H,i);if(o!=null&&W!=null)o[Y]=W;else{var ut=void 0,gt=void 0;for(var[mt,ot]of Q.texts(r)){if(j.compare(ot,x)!==-1){gt=[mt,ot];break}ut=[mt,ot]}var G=!1;ut&&gt&&(G=j.equals(gt[1],x)?!j.hasPrevious(gt[1]):j.common(ut[1],x).length<j.common(gt[1],x).length),ut&&!G?(H.path=ut[1],H.offset=ut[0].text.length):gt?(H.path=gt[1],H.offset=0):o=null}}break;case"remove_text":var{path:Lt,offset:At,text:pt}=i;if(pt.length===0)break;var Ot=Q.leaf(r,Lt),Be=Ot.text.slice(0,At),Vt=Ot.text.slice(At+pt.length);if(Ot.text=Be+Vt,o)for(var[ee,me]of M.points(o))o[me]=_t.transform(ee,i);break;case"set_node":var{path:mn,properties:zt,newProperties:Rn}=i;if(mn.length===0)throw new Error("Cannot set properties on the root node!");var Lr=Q.get(r,mn);for(var io in Rn){if(io==="children"||io==="text")throw new Error('Cannot set the "'.concat(io,'" property of nodes!'));var xs=Rn[io];xs==null?delete Lr[io]:Lr[io]=xs}for(var Ga in zt)Rn.hasOwnProperty(Ga)||delete Lr[Ga];break;case"set_selection":var{newProperties:Rr}=i;if(Rr==null)o=Rr;else{if(o==null){if(!M.isRange(Rr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Rr)," when there is no current selection."));o=Uc({},Rr)}for(var ao in Rr){var zo=Rr[ao];if(zo==null){if(ao==="anchor"||ao==="focus")throw new Error('Cannot remove the "'.concat(ao,'" selection property'));delete o[ao]}else o[ao]=zo}}break;case"split_node":var{path:yn,position:bn,properties:wn}=i;if(yn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(yn,"] because the root node cannot be split."));var Fn,rn=Q.get(r,yn),gr=Q.parent(r,yn),_c=yn[yn.length-1];if(st.isText(rn)){var mi=rn.text.slice(0,bn),$o=rn.text.slice(bn);rn.text=mi,Fn=Uc(Uc({},wn),{},{text:$o})}else{var As=rn.children.slice(0,bn),qa=rn.children.slice(bn);rn.children=As,Fn=Uc(Uc({},wn),{},{children:qa})}if(gr.children.splice(_c+1,0,Fn),o)for(var[Os,Mr]of M.points(o))o[Mr]=_t.transform(Os,i)}return o})(t,n,e)}finally{t.children=iA(t.children),t.selection=n?Qu(n)?iA(n):n:null}}},HG=["text"],VG=["children"];function EA(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 DA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?EA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var UG={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),M.isRange(a))if(r||(a=E.unhangRange(t,a)),M.isCollapsed(a))a=a.anchor;else{var[,c]=M.edges(a),f=E.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(_t.isPoint(a)){u==null&&(u=st.isText(l)?S=>st.isText(S):t.isInline(l)?S=>st.isText(S)||E.isInline(t,S):S=>E.isBlock(t,S));var[d]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=E.pathRef(t,p),m=E.isEnd(t,a,p);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=m?j.next(g):g}var y=j.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:y})){for(var b of e){var w=y.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var D=E.end(t,a);D&&N.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?Is(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(t,j.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var m=j.next(d);N.moveNodes(t,{at:l,to:m,voids:o}),N.removeNodes(t,{at:d,voids:o})}else if(p===0)N.moveNodes(t,{at:l,to:d,voids:o});else if(p===v-1){var g=j.next(d);N.moveNodes(t,{at:l,to:g,voids:o})}else{var y=j.next(l),h=j.next(d);N.splitNodes(t,{at:y,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=E.parent(t,r);n=_=>u.children.includes(_)}else n=_=>E.isBlock(t,_);if(!o&&M.isRange(r)&&(r=E.unhangRange(t,r)),M.isRange(r))if(M.isCollapsed(r))r=r.anchor;else{var[,s]=M.edges(r),l=E.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,m]=f;if(p.length!==0&&m.length!==0){var g,y,h=j.next(m),b=j.common(p,m),w=j.isSibling(p,m),D=Array.from(E.levels(t,{at:p}),_=>{var[z]=_;return z}).slice(b.length).slice(0,-1),S=E.above(t,{at:p,mode:"highest",match:_=>D.includes(_)&&dj(t,_)}),C=S&&E.pathRef(t,S[1]);if(st.isText(d)&&st.isText(v)){var A=ci(d,HG);y=v.text.length,g=A}else{if(!ft.isElement(d)||!ft.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(v)));A=ci(d,VG),y=v.children.length,g=A}w||N.moveNodes(t,{at:p,to:h,voids:i}),C&&N.removeNodes(t,{at:C.current,voids:i}),ft.isElement(v)&&E.isEmpty(t,v)||st.isText(v)&&v.text===""&&m[m.length-1]!==0?N.removeNodes(t,{at:m,voids:i}):t.apply({type:"merge_node",path:h,position:y,properties:g}),C&&C.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?Is(t,r):p=>E.isBlock(t,p));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return E.pathRef(t,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&j.isSibling(d,f)&&j.isAfter(d,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Is(t,i):d=>E.isBlock(t,d)),!n&&M.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(t,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?Is(t,o):D=>E.isBlock(t,D)),!i&&M.isRange(o)&&(o=E.unhangRange(t,o)),u&&M.isRange(o)){if(M.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=M.edges(o),d=a==="lowest"?"lowest":"highest",p=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:d,voids:s,always:!p});var v=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:d,voids:s,always:!v}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[m,g]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var y={},h={};if(g.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==m[w]&&(b=!0,m.hasOwnProperty(w)&&(y[w]=m[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=K=>E.isBlock(t,K)),M.isRange(i)&&(i=WG(t,i)),j.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=K=>K===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[d]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(d){var p=E.void(t,{at:i,mode:"highest"});if(!r&&p){var[v,m]=p;if(ft.isElement(v)&&t.isInline(v)){var g=E.after(t,m);if(!g){var y=j.next(m);N.insertNodes(t,{text:""},{at:y,voids:r}),g=E.point(t,y)}i=g,u=!0}a=i.path.length-m.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=d,D=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[C,A]of E.levels(t,{at:D,reverse:!0,voids:r})){var _=!1;if(A.length<w.length||A.length===0||!r&&E.isVoid(t,C))break;var z=f.current,U=E.isEnd(t,z,A);if(u||!f||!E.isEdge(t,z,A)){_=!0;var $=Q.extractProps(C);t.apply({type:"split_node",path:A,position:S,properties:$})}S=A[A.length-1]+(_||U?1:0)}if(e.at==null){var q=h.current||E.end(t,[]);N.select(t,q)}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]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Is(t,i):d=>E.isBlock(t,d)),j.isPath(i)&&(i=E.range(t,i));var u=M.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(t,p)}).reverse(),c=function(d){var p=d.unref(),[v]=E.node(t,p),m=E.range(t,p);r&&u&&(m=M.intersection(u.current,m)),N.liftNodes(t,{at:m,match:g=>ft.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?Is(t,u):t.isInline(e)?g=>E.isInline(t,g)||st.isText(g):g=>E.isBlock(t,g)),o&&M.isRange(u)){var[s,l]=M.edges(u),c=E.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(E.nodes(t,{at:u,match:t.isInline(e)?g=>E.isBlock(t,g):g=>E.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=M.isRange(u)?M.intersection(u,E.range(t,d)):u;if(p){var v=Array.from(E.nodes(t,{at:p,match:a,mode:r,voids:i}));if(v.length>0){var m=function(){var[g]=v,y=v[v.length-1],[,h]=g,[,b]=y;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),D=E.range(t,h,b),S=E.node(t,w),[C]=S,A=w.length+1,_=j.next(b.slice(0,A)),z=DA(DA({},e),{},{children:[]});N.insertNodes(t,z,{at:_,voids:i}),N.moveNodes(t,{at:D,match:U=>ft.isAncestor(C)&&C.children.includes(U),to:_.concat(0),voids:i})}();if(m==="continue")continue}}}}})}},dj=(t,e)=>{if(ft.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&dj(t,n.children[0])}return!E.isEditor(e)},WG=(t,e)=>{if(M.isCollapsed(e))return e.anchor;var[,n]=M.edges(e),r=E.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},Is=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function CA(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 SA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CA(Object(n),!0).forEach(function(r){Ro(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var GG={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]=M.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=M.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=M.isBackward(n)?"focus":"anchor"),a==="end"&&(a=M.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?E.before(t,s,l):E.after(t,s,l);d&&(c.focus=d)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)N.setSelection(t,e);else{if(!M.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=M.isBackward(r)?"focus":"anchor"),o==="end"&&(o=M.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:SA(SA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!_t.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!_t.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})}}},qG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(M.isRange(a)&&M.isCollapsed(a)&&(a=a.anchor),_t.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!M.isCollapsed(a)){if(!u){var[,f]=M.edges(a),d=E.end(t,[]);_t.equals(f,d)||(a=E.unhangRange(t,a,{voids:i}))}var[p,v]=M.edges(a),m=E.above(t,{match:gt=>E.isBlock(t,gt),at:p,voids:i}),g=E.above(t,{match:gt=>E.isBlock(t,gt),at:v,voids:i}),y=m&&g&&!j.equals(m[1],g[1]),h=j.equals(p.path,v.path),b=i?null:E.void(t,{at:p,mode:"highest"}),w=i?null:E.void(t,{at:v,mode:"highest"});if(b){var D=E.before(t,p);D&&m&&j.isAncestor(m[1],D.path)&&(p=D)}if(w){var S=E.after(t,v);S&&g&&j.isAncestor(g[1],S.path)&&(v=S)}var C,A=[];for(var _ of E.nodes(t,{at:a,voids:i})){var[z,U]=_;C&&j.compare(U,C)===0||(!i&&E.isVoid(t,z)||!j.isCommon(U,p.path)&&!j.isCommon(U,v.path))&&(A.push(_),C=U)}var $=Array.from(A,gt=>{var[,mt]=gt;return E.pathRef(t,mt)}),q=E.pointRef(t,p),K=E.pointRef(t,v);if(!h&&!b){var I=q.current,[L]=E.leaf(t,I),{path:X}=I,{offset:lt}=p,it=L.text.slice(lt);it.length>0&&t.apply({type:"remove_text",path:X,offset:lt,text:it})}for(var at of $){var k=at.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var x=K.current,[T]=E.leaf(t,x),{path:H}=x,Y=h?p.offset:0,W=T.text.slice(Y,v.offset);W.length>0&&t.apply({type:"remove_text",path:H,offset:Y,text:W})}!h&&y&&K.current&&q.current&&N.mergeNodes(t,{at:K.current,hanging:!0,voids:i});var ut=n?q.unref()||K.unref():K.unref()||q.unref();e.at==null&&ut&&N.select(t,ut)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(M.isRange(i))if(r||(i=E.unhangRange(t,i)),M.isCollapsed(i))i=i.anchor;else{var[,a]=M.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:x=>E.isInline(t,x),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:x=>E.isBlock(t,x),at:i,voids:o}),[,f]=c,d=E.isStart(t,i,f),p=E.isEnd(t,i,f),v=d&&p,m=!d||d&&p,g=!p,[,y]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=x=>{var[T,H]=x;return H.length!==0&&(!!v||!(m&&j.isAncestor(H,y)&&ft.isElement(T)&&!t.isVoid(T)&&!t.isInline(T))&&!(g&&j.isAncestor(H,h)&&ft.isElement(T)&&!t.isVoid(T)&&!t.isInline(T)))};for(var D of Q.nodes({children:e},{pass:w}))w(D)&&b.push(D);var S=[],C=[],A=[],_=!0,z=!1;for(var[U]of b)ft.isElement(U)&&!t.isInline(U)?(_=!1,z=!0,C.push(U)):_?S.push(U):A.push(U);var[$]=E.nodes(t,{at:i,match:x=>st.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),[,q]=$,K=E.isStart(t,i,q),I=E.isEnd(t,i,q),L=E.pathRef(t,p?j.next(f):f),X=E.pathRef(t,I?j.next(q):q),lt=E.pathRef(t,f);N.splitNodes(t,{at:i,match:x=>z?E.isBlock(t,x):st.isText(x)||E.isInline(t,x),mode:z?"lowest":"highest",voids:o});var it=E.pathRef(t,!K||K&&I?j.next(q):q);if(N.insertNodes(t,S,{at:it.current,match:x=>st.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),v&&C.length&&N.delete(t,{at:lt.unref(),voids:o}),N.insertNodes(t,C,{at:L.current,match:x=>E.isBlock(t,x),mode:"lowest",voids:o}),N.insertNodes(t,A,{at:X.current,match:x=>st.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),!n.at){var at;at=A.length>0?j.previous(X.current):C.length>0?j.previous(L.current):j.previous(it.current);var k=E.end(t,at);N.select(t,k)}it.unref(),L.unref(),X.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=E.range(t,o)),M.isRange(o))if(M.isCollapsed(o))o=o.anchor;else{var i=M.end(o);if(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function 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({},$G),UG),GG),qG),rE="[object Map]",oE="[object Set]",KG=/^\[object .+?Constructor\]$/,YG=/^(?:0|[1-9]\d*)$/,XG="[\\ud800-\\udfff]",iE="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",aE="\\ud83c[\\udffb-\\udfff]",pj="[^\\ud800-\\udfff]",hj="(?:\\ud83c[\\udde6-\\uddff]){2}",gj="[\\ud800-\\udbff][\\udc00-\\udfff]",AA="(?:"+iE+"|"+aE+")?",ZG="[\\ufe0e\\ufe0f]?"+AA+("(?:\\u200d(?:"+[pj,hj,gj].join("|")+")[\\ufe0e\\ufe0f]?"+AA+")*"),JG="(?:"+[pj+iE+"?",iE,hj,gj,XG].join("|")+")",QG=RegExp(aE+"(?="+aE+")|"+JG+ZG,"g"),tq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),eq=typeof se=="object"&&se&&se.Object===Object&&se,nq=typeof self=="object"&&self&&self.Object===Object&&self,gs=eq||nq||Function("return this")();function rq(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 oq(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function iq(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function aq(t){return function(e){return tq.test(e)}(t)?function(e){return e.match(QG)||[]}(t):function(e){return e.split("")}(t)}var OA,kA,uq=Function.prototype,G1=Object.prototype,ky=gs["__core-js_shared__"],BA=function(){var t=/[^.]+$/.exec(ky&&ky.keys&&ky.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),vj=uq.toString,Xg=G1.hasOwnProperty,Kp=G1.toString,sq=RegExp("^"+vj.call(Xg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_A=gs.Symbol,By=_A?_A.iterator:void 0,lq=G1.propertyIsEnumerable,cq=(OA=Object.keys,kA=Object,function(t){return OA(kA(t))}),uE=Yp(gs,"DataView"),sE=Yp(gs,"Map"),lE=Yp(gs,"Promise"),cE=Yp(gs,"Set"),fE=Yp(gs,"WeakMap"),fq=vs(uE),dq=vs(sE),pq=vs(lE),hq=vs(cE),gq=vs(fE);function vq(t,e){var n=mj(t)||function(a){return function(u){return wj(u)&&W5(u)}(a)&&Xg.call(a,"callee")&&(!lq.call(a,"callee")||Kp.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)!Xg.call(t,i)||o&&(i=="length"||bq(i,r))||n.push(i);return n}function mq(t){if(!bj(t)||function(n){return!!BA&&BA in n}(t))return!1;var e=yj(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(t)?sq:KG;return e.test(vs(t))}function yq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||G1,e!==r)return cq(t);var e,n,r,o=[];for(var i in Object(t))Xg.call(t,i)&&i!="constructor"&&o.push(i);return o}function Yp(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return mq(n)?n:void 0}var du=function(t){return Kp.call(t)};function bq(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||YG.test(t))&&t>-1&&t%1==0&&t<e}function vs(t){if(t!=null){try{return vj.call(t)}catch{}try{return t+""}catch{}}return""}(uE&&du(new uE(new ArrayBuffer(1)))!="[object DataView]"||sE&&du(new sE)!=rE||lE&&du(lE.resolve())!="[object Promise]"||cE&&du(new cE)!=oE||fE&&du(new fE)!="[object WeakMap]")&&(du=function(t){var e=Kp.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?vs(n):void 0;if(r)switch(r){case fq:return"[object DataView]";case dq:return rE;case pq:return"[object Promise]";case hq:return oE;case gq:return"[object WeakMap]"}return e});var mj=Array.isArray;function W5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!yj(t)}function yj(t){var e=bj(t)?Kp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function bj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function wj(t){return!!t&&typeof t=="object"}function wq(t){return t?rq(t,function(e){return W5(e)?vq(e):yq(e)}(t)):[]}var FA=function(t){if(!t)return[];if(W5(t))return function(n){return typeof n=="string"||!mj(n)&&wj(n)&&Kp.call(n)=="[object String]"}(t)?aq(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==rE?oq:e==oE?iq:wq)(t)};function TA(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function G5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:TA(e[n])&&TA(t[n])&&Object.keys(e[n]).length>0&&G5(t[n],e[n])})}var Ej={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 Xp(){var t=typeof document<"u"?document:{};return G5(t,Ej),t}var Eq={document:Ej,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>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function ms(){var t=typeof window<"u"?window:{};return G5(t,Eq),t}function dE(t){return dE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dE(t)}function Zg(t,e){return Zg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Zg(t,e)}function Dq(){if(typeof Reflect>"u"||!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{return!1}}function pE(t,e,n){return pE=Dq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Zg(u,i.prototype),u},pE.apply(null,arguments)}function hE(t){var e=typeof Map=="function"?new Map:void 0;return hE=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 pE(n,arguments,dE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Zg(r,n)},hE(t)}var na=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}(hE(Array));function q1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,q1(n)):e.push(n)}),e}function Dj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=ms(),r=Xp(),o=[];if(!e&&t instanceof na)return t;if(!t)return new na(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=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);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 na)return t;o=t}return new na(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 Rl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=q1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.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=q1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function zl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=q1(e.map(function(o){return o.split(" ")}));return Dj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Br(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 Jg(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function $l(){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 Fo(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(m){var g=m.target;if(g){var y=m.target.dom7EventData||[];if(y.indexOf(m)<0&&y.unshift(m),B(g).is(o))i.apply(g,y);else for(var h=B(g).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],y)}}function s(m){var g=m&&m.target&&m.target.dom7EventData||[];g.indexOf(m)<0&&g.unshift(m),i.apply(this,g)}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 d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:s}),d.addEventListener(v,s,a)}}return this}function PA(){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],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function Qg(){var t=ms();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function tv(){var t=ms();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function jA(){if(this.length>0){var t=ms(),e=Xp(),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 Hl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function ev(){for(var t=ms(),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 nv(t,e){var n,r=ms();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 rv(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function IA(t){return B(Dj(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 ov(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=ms(),o=Xp(),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 na){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function _r(){for(var t,e=Xp(),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 na)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function LA(t){var e,n,r=Xp();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 na)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 Vl(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 iv(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 Ul(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 Wl(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 Gl(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function ql(){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=na.prototype;var Cq="resize scroll".split(" ");function Cj(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)Cq.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 RA=Cj("click"),Oa=Cj("focus"),Sq="[object GeneratorFunction]",xq=/^(?:0|[1-9]\d*)$/;function Aq(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var K1=Object.prototype,gE=K1.hasOwnProperty,Sj=K1.toString,Oq=K1.propertyIsEnumerable,kq=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function Bq(t,e){var n=xj(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&q5(u)}(a)&&gE.call(a,"callee")&&(!Oq.call(a,"callee")||Sj.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)!gE.call(t,i)||o&&(i=="length"||Pq(i,r))||n.push(i);return n}var MA,_q=(MA=function(t,e){return t&&Fq(t,e,jq)},function(t,e){if(t==null)return t;if(!q5(t))return MA(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),Fq=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[++o];if(n(i[s],s,i)===!1)break}return e}}();function Tq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||K1,e!==r)return kq(t);var e,n,r,o=[];for(var i in Object(t))gE.call(t,i)&&i!="constructor"&&o.push(i);return o}function Pq(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||xq.test(t))&&t>-1&&t%1==0&&t<e}var xj=Array.isArray;function q5(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)?Sj.call(e):"";return n=="[object Function]"||n==Sq}(t)}function jq(t){return q5(t)?Bq(t):Tq(t)}function Iq(t){return t}var K5=function(t,e){return(xj(t)?Aq:_q)(t,typeof e=="function"?e:Iq)};let Aj=(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 Nq=/^\s+|\s+$/g,Lq=/^[-+]0x[0-9a-f]+$/i,Rq=/^0b[01]+$/i,Mq=/^0o[0-7]+$/i,zq=parseInt,$q=typeof se=="object"&&se&&se.Object===Object&&se,Hq=typeof self=="object"&&self&&self.Object===Object&&self,Vq=$q||Hq||Function("return this")(),Uq=Object.prototype.toString,Wq=Math.max,Gq=Math.min,_y=function(){return Vq.Date.now()};function qq(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=_y();if(m(b))return y(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?Gq(D,i-(w-l)):D}(b))}function y(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=_y(),w=m(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=zA(e)||0,av(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Wq(zA(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(_y())},h}function av(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function zA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Uq.call(r)=="[object Symbol]"}(t))return NaN;if(av(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=av(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Nq,"");var n=Rq.test(t);return n||Mq.test(t)?zq(t.slice(2),n?2:8):Lq.test(t)?NaN:+t}var es=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return av(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),qq(t,e,{leading:r,maxWait:e,trailing:o})};const Kq={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 Kd(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 vE=Array.isArray;function Q0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Fy(t){return t===void 0}function Qn(t){return t!==void 0}const $A=Kd("",{},[],void 0,void 0);function Wc(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 Yq(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 Xq=["create","update","remove","destroy","pre","post"];function Zq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Kq;for(const f of Xq)for(const d of t){const p=d[f];p!==void 0&&n[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return Kd(r.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=r.parentNode(f);r.removeChild(p,f)}}}function a(f,d){var p,v;let m,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;Qn(b)&&(b(f),g=f.data)}const y=f.children,h=f.sel;if(h==="!")Fy(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,S=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(D,S)):h,A=f.elm=Qn(g)&&Qn(m=g.ns)?r.createElementNS(m,C,g):r.createElement(C,g);for(D<S&&A.setAttribute("id",h.slice(D+1,S)),w>0&&A.setAttribute("class",h.slice(S+1).replace(/\./g," ")),m=0;m<n.create.length;++m)n.create[m]($A,f);if(vE(y))for(m=0;m<y.length;++m){const z=y[m];z!=null&&r.appendChild(A,a(z,d))}else Q0(f.text)&&r.appendChild(A,r.createTextNode(f.text));const _=f.data.hook;Qn(_)&&((v=_.create)===null||v===void 0||v.call(_,$A,f),_.insert&&d.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,d,p,v,m,g){for(;v<=m;++v){const y=p[v];y!=null&&r.insertBefore(f,a(y,g),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let m=0;m<n.destroy.length;++m)n.destroy[m](f);if(f.children!==void 0)for(let m=0;m<f.children.length;++m){const g=f.children[m];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,v){for(var m,g;p<=v;++p){let y,h;const b=d[p];if(b!=null)if(Qn(b.sel)){s(b),y=n.remove.length+1,h=i(b.elm,y);for(let D=0;D<n.remove.length;++D)n.remove[D](b,h);const w=(g=(m=b==null?void 0:b.data)===null||m===void 0?void 0:m.hook)===null||g===void 0?void 0:g.remove;Qn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,d,p){var v,m,g,y,h;const b=(v=d.data)===null||v===void 0?void 0:v.hook;(m=b==null?void 0:b.prepatch)===null||m===void 0||m.call(b,f,d);const w=d.elm=f.elm,D=f.children,S=d.children;if(f!==d){if(d.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,d);(y=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,f,d)}Fy(d.text)?Qn(D)&&Qn(S)?D!==S&&function(C,A,_,z){let U,$,q,K,I=0,L=0,X=A.length-1,lt=A[0],it=A[X],at=_.length-1,k=_[0],x=_[at];for(;I<=X&&L<=at;)lt==null?lt=A[++I]:it==null?it=A[--X]:k==null?k=_[++L]:x==null?x=_[--at]:Wc(lt,k)?(c(lt,k,z),lt=A[++I],k=_[++L]):Wc(it,x)?(c(it,x,z),it=A[--X],x=_[--at]):Wc(lt,x)?(c(lt,x,z),r.insertBefore(C,lt.elm,r.nextSibling(it.elm)),lt=A[++I],x=_[--at]):Wc(it,k)?(c(it,k,z),r.insertBefore(C,it.elm,lt.elm),it=A[--X],k=_[++L]):(U===void 0&&(U=Yq(A,I,X)),$=U[k.key],Fy($)?r.insertBefore(C,a(k,z),lt.elm):(q=A[$],q.sel!==k.sel?r.insertBefore(C,a(k,z),lt.elm):(c(q,k,z),A[$]=void 0,r.insertBefore(C,q.elm,lt.elm))),k=_[++L]);(I<=X||L<=at)&&(I>X?(K=_[at+1]==null?null:_[at+1].elm,u(C,K,_,L,at,z)):l(C,A,I,X))}(w,D,S,p):Qn(S)?(Qn(f.text)&&r.setTextContent(w,""),u(w,null,S,0,S.length-1,p)):Qn(D)?l(w,D,0,D.length-1):Qn(f.text)&&r.setTextContent(w,""):f.text!==d.text&&(Qn(D)&&l(w,D,0,D.length-1),r.setTextContent(w,d.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,d)}}return function(f,d){let p,v,m;const g=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Wc(f,d)?c(f,d,g):(v=f.elm,m=r.parentNode(v),a(d,g),m!==null&&(r.insertBefore(m,d.elm,r.nextSibling(v)),l(m,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<n.post.length;++p)n.post[p]();return d}}function Oj(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&&Oj(o,e[r].children,e[r].sel)}}function Kl(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),vE(n)?r=n:Q0(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(vE(e)?r=e:Q0(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)Q0(r[i])&&(r[i]=Kd(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]!=="#"||Oj(a,r,t),Kd(t,a,r,o,void 0)}function HA(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 Jq={create:HA,update:HA};function VA(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 Qq={create:VA,update:VA},UA=/[A-Z]/g;function WA(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(UA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(UA,"-$&").toLowerCase(),i[r]))}const tK={create:WA,update:WA};function kj(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++)kj(t[r],e,n)}function eK(t,e){const n=t.type,r=e.data.on;r&&r[n]&&kj(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){eK(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 nK={create:Ty,update:Ty,destroy:Ty};function GA(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 rK={create:GA,update:GA},qA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Py=!1;function oK(t,e,n){(function(r){qA(function(){qA(r)})})(function(){t[e]=n})}function KA(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]||oK(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const iK={pre:function(){Py=!1},create:KA,update:KA,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 Bj(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?Bj(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(Kd(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function wt(t,e,...n){const r=Bj(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?Kl(t,e,r[0].text):Kl(t,e,r)}wt||(wt={});var aK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_j="\\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",sK="[\\ud800-\\udfff]",YA="["+_j+"]",uv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Fj="\\d+",lK="[\\u2700-\\u27bf]",Tj="[a-z\\xdf-\\xf6\\xf8-\\xff]",Pj="[^\\ud800-\\udfff"+_j+Fj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",mE="\\ud83c[\\udffb-\\udfff]",jj="[^\\ud800-\\udfff]",Y5="(?:\\ud83c[\\udde6-\\uddff]){2}",X5="[\\ud800-\\udbff][\\udc00-\\udfff]",cl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",XA="(?:"+Tj+"|"+Pj+")",cK="(?:"+cl+"|"+Pj+")",ZA="(?:"+uv+"|"+mE+")?",Ij="[\\ufe0e\\ufe0f]?"+ZA+("(?:\\u200d(?:"+[jj,Y5,X5].join("|")+")[\\ufe0e\\ufe0f]?"+ZA+")*"),fK="(?:"+[lK,Y5,X5].join("|")+")"+Ij,dK="(?:"+[jj+uv+"?",uv,Y5,X5,sK].join("|")+")",pK=RegExp("['’]","g"),hK=RegExp(uv,"g"),gK=RegExp(mE+"(?="+mE+")|"+dK+Ij,"g"),vK=RegExp([cl+"?"+Tj+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[YA,cl,"$"].join("|")+")",cK+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[YA,cl+XA,"$"].join("|")+")",cl+"?"+XA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",cl+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Fj,fK].join("|"),"g"),mK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),yK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bK=typeof se=="object"&&se&&se.Object===Object&&se,wK=typeof self=="object"&&self&&self.Object===Object&&self,EK=bK||wK||Function("return this")(),jy,DK=(jy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(t){return jy==null?void 0:jy[t]});function Nj(t){return mK.test(t)}function CK(t){return Nj(t)?function(e){return e.match(gK)||[]}(t):function(e){return e.split("")}(t)}var SK=Object.prototype.toString,JA=EK.Symbol,QA=JA?JA.prototype:void 0,t7=QA?QA.toString:void 0;function xK(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&SK.call(n)=="[object Symbol]"}(t))return t7?t7.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function AK(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 tg(t){return t==null?"":xK(t)}var e7,OK=(e7=function(t,e,n){return e=e.toLowerCase(),t+(n?kK(tg(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o;++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=tg(e),(n=n)===void 0?function(o){return yK.test(o)}(e)?function(o){return o.match(vK)||[]}(e):function(o){return o.match(aK)||[]}(e):e.match(n)||[]}(function(e){return(e=tg(e))&&e.replace(uK,DK).replace(hK,"")}(t).replace(pK,"")),e7,"")}),n7,kK=(n7="toUpperCase",function(t){var e=Nj(t=tg(t))?CK(t):void 0,n=e?e[0]:t.charAt(0),r=e?AK(e,1).join(""):t.slice(1);return n[n7]()+r});for(var BK=OK,_K=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Iy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Lj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_K?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Z5={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++)Z5["f"+Gh]=111+Gh;function Rj(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 d in Iy)l[Iy[d]]=!1;var p=!0,v=!1,m=void 0;try{for(var g,y=c[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=Mj(h),D=Iy[w];if(h.length>1&&!D&&!Lj[h]&&!Z5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=FK(h)),D&&(l[D]=!b||null)}}catch(S){v=!0,m=S}finally{try{!p&&y.return&&y.return()}finally{if(v)throw m}}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 FK(t){return t=Mj(t),Z5[t]||t.toUpperCase().charCodeAt(0)}function Mj(t){return t=t.toLowerCase(),t=Lj[t]||t}var TK=Rj,Ny=function(t,e){return Rj(t,{byKey:!0},e)},PK=/^\s+|\s+$/g,jK=/^[-+]0x[0-9a-f]+$/i,IK=/^0b[01]+$/i,NK=/^0o[0-7]+$/i,LK=parseInt,RK=typeof se=="object"&&se&&se.Object===Object&&se,MK=typeof self=="object"&&self&&self.Object===Object&&self,zK=RK||MK||Function("return this")(),$K=Object.prototype.toString,HK=Math.max,VK=Math.min,Ly=function(){return zK.Date.now()};function yE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function r7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&$K.call(r)=="[object Symbol]"}(t))return NaN;if(yE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=yE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(PK,"");var n=IK.test(t);return n||NK.test(t)?LK(t.slice(2),n?2:8):jK.test(t)?NaN:+t}var Ns,zj=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=Ly();if(m(b))return y(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?VK(D,i-(w-l)):D}(b))}function y(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=Ly(),w=m(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=r7(e)||0,yE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?HK(r7(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Ly())},h},$j=ps(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]",d="[object Promise]",p="[object RegExp]",v="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",A="[object Int32Array]",_="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",$="[object Uint32Array]",q=/\w*$/,K=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,L={};L[o]=L["[object Array]"]=L[h]=L[b]=L[i]=L[a]=L[w]=L[D]=L[S]=L[C]=L[A]=L[l]=L[c]=L[f]=L[p]=L[v]=L[m]=L[g]=L[_]=L[z]=L[U]=L[$]=!0,L["[object Error]"]=L[u]=L[y]=!1;var X=typeof se=="object"&&se&&se.Object===Object&&se,lt=typeof self=="object"&&self&&self.Object===Object&&self,it=X||lt||Function("return this")(),at=e&&!e.nodeType&&e,k=at&&t&&!t.nodeType&&t,x=k&&k.exports===at;function T(F,V){return F.set(V[0],V[1]),F}function H(F,V){return F.add(V),F}function Y(F,V,rt,ct){var $t=-1,ye=F?F.length:0;for(ct;++$t<ye;)rt=V(rt,F[$t],$t,F);return rt}function W(F){var V=!1;if(F!=null&&typeof F.toString!="function")try{V=!!(F+"")}catch{}return V}function ut(F){var V=-1,rt=Array(F.size);return F.forEach(function(ct,$t){rt[++V]=[$t,ct]}),rt}function gt(F,V){return function(rt){return F(V(rt))}}function mt(F){var V=-1,rt=Array(F.size);return F.forEach(function(ct){rt[++V]=ct}),rt}var ot=Array.prototype,G=Function.prototype,Lt=Object.prototype,At=it["__core-js_shared__"],pt=function(){var F=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""}(),Ot=G.toString,Be=Lt.hasOwnProperty,Vt=Lt.toString,ee=RegExp("^"+Ot.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=x?it.Buffer:void 0,mn=it.Symbol,zt=it.Uint8Array,Rn=gt(Object.getPrototypeOf,Object),Lr=Object.create,io=Lt.propertyIsEnumerable,xs=ot.splice,Ga=Object.getOwnPropertySymbols,Rr=me?me.isBuffer:void 0,ao=gt(Object.keys,Object),zo=uo(it,"DataView"),yn=uo(it,"Map"),bn=uo(it,"Promise"),wn=uo(it,"Set"),Fn=uo(it,"WeakMap"),rn=uo(Object,"create"),gr=lo(zo),_c=lo(yn),mi=lo(bn),$o=lo(wn),As=lo(Fn),qa=mn?mn.prototype:void 0,Os=qa?qa.valueOf:void 0;function Mr(F){var V=-1,rt=F?F.length:0;for(this.clear();++V<rt;){var ct=F[V];this.set(ct[0],ct[1])}}function vr(F){var V=-1,rt=F?F.length:0;for(this.clear();++V<rt;){var ct=F[V];this.set(ct[0],ct[1])}}function Ho(F){var V=-1,rt=F?F.length:0;for(this.clear();++V<rt;){var ct=F[V];this.set(ct[0],ct[1])}}function zr(F){this.__data__=new vr(F)}function yi(F,V){var rt=P(F)||function(ce){return function(Gt){return function(Ze){return!!Ze&&typeof Ze=="object"}(Gt)&&R(Gt)}(ce)&&Be.call(ce,"callee")&&(!io.call(ce,"callee")||Vt.call(ce)==o)}(F)?function(ce,Gt){for(var Ze=-1,En=Array(ce);++Ze<ce;)En[Ze]=Gt(Ze);return En}(F.length,String):[],ct=rt.length,$t=!!ct;for(var ye in F)!Be.call(F,ye)||$t&&(ye=="length"||_h(ye,ct))||rt.push(ye);return rt}function kh(F,V,rt){var ct=F[V];Be.call(F,V)&&Fh(ct,rt)&&(rt!==void 0||V in F)||(F[V]=rt)}function Zn(F,V){for(var rt=F.length;rt--;)if(Fh(F[rt][0],V))return rt;return-1}function Fc(F,V,rt,ct,$t,ye,ce){var Gt;if(ct&&(Gt=ye?ct(F,$t,ye,ce):ct(F)),Gt!==void 0)return Gt;if(!ne(F))return F;var Ze=P(F);if(Ze){if(Gt=function(bt){var Jt=bt.length,je=bt.constructor(Jt);return Jt&&typeof bt[0]=="string"&&Be.call(bt,"index")&&(je.index=bt.index,je.input=bt.input),je}(F),!V)return function(bt,Jt){var je=-1,Rt=bt.length;for(Jt||(Jt=Array(Rt));++je<Rt;)Jt[je]=bt[je];return Jt}(F,Gt)}else{var En=so(F),Ka=En==u||En==s;if(J(F))return function(bt,Jt){if(Jt)return bt.slice();var je=new bt.constructor(bt.length);return bt.copy(je),je}(F,V);if(En==f||En==o||Ka&&!ye){if(W(F))return ye?F:{};if(Gt=function(bt){return typeof bt.constructor!="function"||bi(bt)?{}:(Jt=Rn(bt),ne(Jt)?Lr(Jt):{});var Jt}(Ka?{}:F),!V)return function(bt,Jt){return Bh(bt,Tc(bt),Jt)}(F,function(bt,Jt){return bt&&Bh(Jt,jt(Jt),bt)}(Gt,F))}else{if(!L[En])return ye?F:{};Gt=function(bt,Jt,je,Rt){var qt=bt.constructor;switch(Jt){case h:return ks(bt);case i:case a:return new qt(+bt);case b:return function(Kt,_e){var Tn=_e?ks(Kt.buffer):Kt.buffer;return new Kt.constructor(Tn,Kt.byteOffset,Kt.byteLength)}(bt,Rt);case w:case D:case S:case C:case A:case _:case z:case U:case $:return function(Kt,_e){var Tn=_e?ks(Kt.buffer):Kt.buffer;return new Kt.constructor(Tn,Kt.byteOffset,Kt.length)}(bt,Rt);case l:return function(Kt,_e,Tn){return Y(_e?Tn(ut(Kt),!0):ut(Kt),T,new Kt.constructor)}(bt,Rt,je);case c:case m:return new qt(bt);case p:return function(Kt){var _e=new Kt.constructor(Kt.source,q.exec(Kt));return _e.lastIndex=Kt.lastIndex,_e}(bt);case v:return function(Kt,_e,Tn){return Y(_e?Tn(mt(Kt),!0):mt(Kt),H,new Kt.constructor)}(bt,Rt,je);case g:return function(Kt){return Os?Object(Os.call(Kt)):{}}(bt)}}(F,En,Fc,V)}}ce||(ce=new zr);var Wo=ce.get(F);if(Wo)return Wo;if(ce.set(F,Gt),!Ze)var wi=rt?function(bt){return function(Jt,je,Rt){var qt=je(Jt);return P(Jt)?qt:function(Kt,_e){for(var Tn=-1,Mn=_e.length,$r=Kt.length;++Tn<Mn;)Kt[$r+Tn]=_e[Tn];return Kt}(qt,Rt(Jt))}(bt,jt,Tc)}(F):jt(F);return function(bt,Jt){for(var je=-1,Rt=bt?bt.length:0;++je<Rt&&Jt(bt[je],je,bt)!==!1;);}(wi||F,function(bt,Jt){wi&&(bt=F[Jt=bt]),kh(Gt,Jt,Fc(bt,V,rt,ct,Jt,F,ce))}),Gt}function Vo(F){return!(!ne(F)||function(V){return!!pt&&pt in V}(F))&&(vt(F)||W(F)?ee:K).test(lo(F))}function ks(F){var V=new F.constructor(F.byteLength);return new zt(V).set(new zt(F)),V}function Bh(F,V,rt,ct){rt||(rt={});for(var $t=-1,ye=V.length;++$t<ye;){var ce=V[$t],Gt=void 0;kh(rt,ce,Gt===void 0?F[ce]:Gt)}return rt}function Uo(F,V){var rt,ct,$t=F.__data__;return((ct=typeof(rt=V))=="string"||ct=="number"||ct=="symbol"||ct=="boolean"?rt!=="__proto__":rt===null)?$t[typeof V=="string"?"string":"hash"]:$t.map}function uo(F,V){var rt=function(ct,$t){return ct==null?void 0:ct[$t]}(F,V);return Vo(rt)?rt:void 0}Mr.prototype.clear=function(){this.__data__=rn?rn(null):{}},Mr.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},Mr.prototype.get=function(F){var V=this.__data__;if(rn){var rt=V[F];return rt===n?void 0:rt}return Be.call(V,F)?V[F]:void 0},Mr.prototype.has=function(F){var V=this.__data__;return rn?V[F]!==void 0:Be.call(V,F)},Mr.prototype.set=function(F,V){return this.__data__[F]=rn&&V===void 0?n:V,this},vr.prototype.clear=function(){this.__data__=[]},vr.prototype.delete=function(F){var V=this.__data__,rt=Zn(V,F);return!(rt<0)&&(rt==V.length-1?V.pop():xs.call(V,rt,1),!0)},vr.prototype.get=function(F){var V=this.__data__,rt=Zn(V,F);return rt<0?void 0:V[rt][1]},vr.prototype.has=function(F){return Zn(this.__data__,F)>-1},vr.prototype.set=function(F,V){var rt=this.__data__,ct=Zn(rt,F);return ct<0?rt.push([F,V]):rt[ct][1]=V,this},Ho.prototype.clear=function(){this.__data__={hash:new Mr,map:new(yn||vr),string:new Mr}},Ho.prototype.delete=function(F){return Uo(this,F).delete(F)},Ho.prototype.get=function(F){return Uo(this,F).get(F)},Ho.prototype.has=function(F){return Uo(this,F).has(F)},Ho.prototype.set=function(F,V){return Uo(this,F).set(F,V),this},zr.prototype.clear=function(){this.__data__=new vr},zr.prototype.delete=function(F){return this.__data__.delete(F)},zr.prototype.get=function(F){return this.__data__.get(F)},zr.prototype.has=function(F){return this.__data__.has(F)},zr.prototype.set=function(F,V){var rt=this.__data__;if(rt instanceof vr){var ct=rt.__data__;if(!yn||ct.length<199)return ct.push([F,V]),this;rt=this.__data__=new Ho(ct)}return rt.set(F,V),this};var Tc=Ga?gt(Ga,Object):function(){return[]},so=function(F){return Vt.call(F)};function _h(F,V){return!!(V=V??r)&&(typeof F=="number"||I.test(F))&&F>-1&&F%1==0&&F<V}function bi(F){var V=F&&F.constructor;return F===(typeof V=="function"&&V.prototype||Lt)}function lo(F){if(F!=null){try{return Ot.call(F)}catch{}try{return F+""}catch{}}return""}function Fh(F,V){return F===V||F!=F&&V!=V}(zo&&so(new zo(new ArrayBuffer(1)))!=b||yn&&so(new yn)!=l||bn&&so(bn.resolve())!=d||wn&&so(new wn)!=v||Fn&&so(new Fn)!=y)&&(so=function(F){var V=Vt.call(F),rt=V==f?F.constructor:void 0,ct=rt?lo(rt):void 0;if(ct)switch(ct){case gr:return b;case _c:return l;case mi:return d;case $o:return v;case As:return y}return V});var P=Array.isArray;function R(F){return F!=null&&function(V){return typeof V=="number"&&V>-1&&V%1==0&&V<=r}(F.length)&&!vt(F)}var J=Rr||function(){return!1};function vt(F){var V=ne(F)?Vt.call(F):"";return V==u||V==s}function ne(F){var V=typeof F;return!!F&&(V=="object"||V=="function")}function jt(F){return R(F)?yi(F):function(V){if(!bi(V))return ao(V);var rt=[];for(var ct in Object(V))Be.call(V,ct)&&ct!="constructor"&&rt.push(ct);return rt}(F)}t.exports=function(F){return Fc(F,!0,!0)}});function o7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var UK=0;function WK(t){return"__private_"+UK+++"_"+t}function GK(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}/**
  16. * Takes a string with placeholder variables like `%{smart_count} file selected`
  17. * and replaces it with values from options `{smart_count: 5}`
  18. *
  19. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  20. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  21. *
  22. * @param {string} phrase that needs interpolation, with placeholders
  23. * @param {object} options with values that will be used to replace placeholders
  24. * @returns {any[]} interpolated
  25. */function i7(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=GK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var Hj=(Ns=WK("apply"),class{constructor(t){Object.defineProperty(this,Ns,{value:qK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(o7(this,Ns)[Ns],this):o7(this,Ns)[Ns](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 i7(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 i7(n,e)}});function qK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var Vj=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]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(e),m=0,g=v.length;m<g;m++){var y=v[m];if(y==="*"&&(f=f.concat(e[y])),p.length===2&&p[0]===y){f=f.concat(e[y]);break}}return f}(n);l.length&&function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(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},KK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:YK}=KK,a7=t=>crypto.getRandomValues(new Uint8Array(t)),u7=(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 XK={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)=>u7(t,e,a7),customRandom:u7,urlAlphabet:YK,random:a7},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 Uj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Uj.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 ZK=/[\/\+\.]/,JK=function(t,e){function n(r){var o=function(i,a,u){var s=new Uj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,ZK);return o&&o.length>=2}return e?n(e.split(";")[0]):n},QK=0;function tY(t){return"__private_"+QK+++"_"+t}var My=tY("publish");class Wj{constructor(){Object.defineProperty(this,My,{value:eY}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,My)[My](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function eY(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}Wj.VERSION="2.0.3";var s7=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)}},l7={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 c7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var nY=function(t){if(t==null&&(t=typeof navigator<"u"?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())}`},Gj={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)}}},rY={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}"}}},qj=XK;let Kj,Yj;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 oY=0;function Xe(t){return"__private_"+oY+++"_"+t}const{nanoid:iY}=qj,{justErrorsLogger:aY,debugLogger:uY}=Gj;class bo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class sY extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var pn=Xe("plugins"),Gc=Xe("storeUnsubscribe"),qo=Xe("emitter"),mu=Xe("preProcessors"),yu=Xe("uploaders"),Qo=Xe("postProcessors"),gd=Xe("checkRestrictions"),$y=Xe("checkMinNumberOfFiles"),Yd=Xe("checkRequiredMetaFieldsOnFile"),Hy=Xe("checkRequiredMetaFields"),Je=Xe("showOrLogErrorAndThrow"),qc=Xe("assertNewUploadAllowed"),Kc=Xe("checkAndCreateFileStateObject"),Yc=Xe("startIfAutoProceed"),Vy=Xe("addListeners"),Vr=Xe("updateOnlineStatus"),Ko=Xe("createUpload"),Uy=Xe("getUpload"),Du=Xe("removeUpload"),Yo=Xe("runUpload");Kj=Symbol.for("uppy test: getPlugins"),Yj=Symbol.for("uppy test: createUpload");class Xj{constructor(e){Object.defineProperty(this,Yo,{value:EY}),Object.defineProperty(this,Du,{value:wY}),Object.defineProperty(this,Uy,{value:bY}),Object.defineProperty(this,Ko,{value:yY}),Object.defineProperty(this,Vy,{value:mY}),Object.defineProperty(this,Yc,{value:vY}),Object.defineProperty(this,Kc,{value:gY}),Object.defineProperty(this,qc,{value:hY}),Object.defineProperty(this,Je,{value:pY}),Object.defineProperty(this,Hy,{value:dY}),Object.defineProperty(this,Yd,{value:fY}),Object.defineProperty(this,$y,{value:cY}),Object.defineProperty(this,gd,{value:lY}),Object.defineProperty(this,pn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Gc,{writable:!0,value:void 0}),Object.defineProperty(this,qo,{writable:!0,value:Vj()}),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,Vr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=rY;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 Wj,logger:aY,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...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=uY),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=es(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:nY(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),dt(this,Gc)[Gc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(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’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...n}}})}i18nInit(){const e=new Hj([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={...this.opts,...e,restrictions:{...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={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...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={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...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={...r[e].meta,...n};r[e]={...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(v=>{let{progress:m}=v;return!m.uploadComplete&&m.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&p.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(e,n){try{return dt(this,gd)[gd](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,qc)[qc](e);const{files:n}=this.getState();let r=dt(this,Kc)[Kc](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...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:{...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,Yc)[Yc](),r.id}addFiles(e){dt(this,qc)[qc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<e.length;i++)try{let a=dt(this,Kc)[Kc](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a={...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}
  26. id: ${r[i].id}
  27. type: ${r[i].type}`)}),r.length>0&&dt(this,Yc)[Yc](),o.length>0){let i=`Multiple errors occurred while adding files:
  28. `;if(o.forEach(a=>{i+=`
  29. * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=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:{...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,d)=>f+d.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}'.
  30. 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,pn)[pn]?dt(this,pn)[pn][r.type].push(r):dt(this,pn)[pn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(dt(this,pn)[pn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[Kj](e){return dt(this,pn)[pn][e]}iteratePlugins(e){Object.values(dt(this,pn)[pn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=dt(this,pn)[pn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),dt(this,Gc)[Gc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",dt(this,Vr)[Vr]),window.removeEventListener("offline",dt(this,Vr)[Vr]))}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")))}[Yj](){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={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=dt(this,pn)[pn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{dt(this,$y)[$y](n),dt(this,Hy)[Hy](n)}).catch(o=>{dt(this,Je)[Je](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=dt(this,Ko)[Ko](a);return dt(this,Yo)[Yo](u)}).catch(o=>{dt(this,Je)[Je](o,{showInformer:!1})}))}}function lY(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new bo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&JK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new bo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new bo(this.i18n("exceedsSize",{size:Ry(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new bo(this.i18n("exceedsSize",{size:Ry(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new bo(this.i18n("inferiorSize",{size:Ry(r)}))}function cY(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new bo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function fY(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new bo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),dt(this,Je)[Je](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function dY(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return dt(this,Yd)[Yd](r)});if(e.length)throw new sY(e,`${this.i18n("missingRequiredMetaField")}`)}function pY(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 hY(t){const{allowNewUpload:e}=this.getState();e===!1&&dt(this,Je)[Je](new bo(this.i18n("noMoreFilesAllowed")),{file:t})}function gY(t,e){const n=function(f){var d;if(f.type)return f.type;const p=f.name?(d=s7(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in l7?l7[p]:"application/octet-stream"}(e),r=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=s7(r).extension,i=!!e.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${c7(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${c7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new bo(this.i18n("noDuplicates",{fileName:r}));dt(this,Je)[Je](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:{...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,Je)[Je](new bo("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(d=>t[d]);dt(this,gd)[gd](l,f)}catch(f){dt(this,Je)[Je](f,{file:l})}return l}function vY(){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 mY(){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,Je)[Je](o,{throwErr:!1})}else dt(this,Je)[Je](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:{...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:{...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={...this.getState().files};n[e.id]={...n[e.id],progress:{...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:{...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={...this.getState().files};n[e.id]={...n[e.id],progress:{...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,Yd)[Yd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",dt(this,Vr)[Vr]),window.addEventListener("offline",dt(this,Vr)[Vr]),setTimeout(dt(this,Vr)[Vr],3e3))}function yY(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=iY();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function bY(t){const{currentUploads:e}=this.getState();return e[t]}function wY(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function EY(t){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={...n,step:a};this.setState({currentUploads:{...e,[t]:s}}),await 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);await 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}Xj.VERSION="2.1.3";var Zj=Xj,DY=ps(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(k,x){for(var T in x)k[T]=x[T];return k}function v(k){var x=k.parentNode;x&&x.removeChild(k)}function m(k,x,T){var H,Y,W,ut={};for(W in x)W=="key"?H=x[W]:W=="ref"?Y=x[W]:ut[W]=x[W];if(arguments.length>2&&(ut.children=arguments.length>3?n.call(arguments,2):T),typeof k=="function"&&k.defaultProps!=null)for(W in k.defaultProps)ut[W]===void 0&&(ut[W]=k.defaultProps[W]);return g(k,ut,H,Y,null)}function g(k,x,T,H,Y){var W={type:k,props:x,key:T,ref:H,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y??++o};return Y==null&&r.vnode!=null&&r.vnode(W),W}function y(k){return k.children}function h(k,x){this.props=k,this.context=x}function b(k,x){if(x==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var T;x<k.__k.length;x++)if((T=k.__k[x])!=null&&T.__e!=null)return T.__e;return typeof k.type=="function"?b(k):null}function w(k){var x,T;if((k=k.__)!=null&&k.__c!=null){for(k.__e=k.__c.base=null,x=0;x<k.__k.length;x++)if((T=k.__k[x])!=null&&T.__e!=null){k.__e=k.__c.base=T.__e;break}return w(k)}}function D(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var k;S.__r=a.length;)k=a.sort(function(x,T){return x.__v.__b-T.__v.__b}),a=[],k.some(function(x){var T,H,Y,W,ut,gt;x.__d&&(ut=(W=(T=x).__v).__e,(gt=T.__P)&&(H=[],(Y=p({},W)).__v=W.__v+1,K(gt,W,Y,T.__n,gt.ownerSVGElement!==void 0,W.__h!=null?[ut]:null,H,ut??b(W),W.__h),I(H,W),W.__e!=ut&&w(W)))})}function C(k,x,T,H,Y,W,ut,gt,mt,ot){var G,Lt,At,pt,Ot,Be,Vt,ee=H&&H.__k||f,me=ee.length;for(T.__k=[],G=0;G<x.length;G++)if((pt=T.__k[G]=(pt=x[G])==null||typeof pt=="boolean"?null:typeof pt=="string"||typeof pt=="number"||typeof pt=="bigint"?g(null,pt,null,null,pt):Array.isArray(pt)?g(y,{children:pt},null,null,null):pt.__b>0?g(pt.type,pt.props,pt.key,null,pt.__v):pt)!=null){if(pt.__=T,pt.__b=T.__b+1,(At=ee[G])===null||At&&pt.key==At.key&&pt.type===At.type)ee[G]=void 0;else for(Lt=0;Lt<me;Lt++){if((At=ee[Lt])&&pt.key==At.key&&pt.type===At.type){ee[Lt]=void 0;break}At=null}K(k,pt,At=At||c,Y,W,ut,gt,mt,ot),Ot=pt.__e,(Lt=pt.ref)&&At.ref!=Lt&&(Vt||(Vt=[]),At.ref&&Vt.push(At.ref,null,pt),Vt.push(Lt,pt.__c||Ot,pt)),Ot!=null?(Be==null&&(Be=Ot),typeof pt.type=="function"&&pt.__k===At.__k?pt.__d=mt=A(pt,mt,k):mt=_(k,pt,At,ee,Ot,mt),typeof T.type=="function"&&(T.__d=mt)):mt&&At.__e==mt&&mt.parentNode!=k&&(mt=b(At))}for(T.__e=Be,G=me;G--;)ee[G]!=null&&(typeof T.type=="function"&&ee[G].__e!=null&&ee[G].__e==T.__d&&(T.__d=b(H,G+1)),lt(ee[G],ee[G]));if(Vt)for(G=0;G<Vt.length;G++)X(Vt[G],Vt[++G],Vt[++G])}function A(k,x,T){for(var H,Y=k.__k,W=0;Y&&W<Y.length;W++)(H=Y[W])&&(H.__=k,x=typeof H.type=="function"?A(H,x,T):_(T,H,H,Y,H.__e,x));return x}function _(k,x,T,H,Y,W){var ut,gt,mt;if(x.__d!==void 0)ut=x.__d,x.__d=void 0;else if(T==null||Y!=W||Y.parentNode==null)t:if(W==null||W.parentNode!==k)k.appendChild(Y),ut=null;else{for(gt=W,mt=0;(gt=gt.nextSibling)&&mt<H.length;mt+=2)if(gt==Y)break t;k.insertBefore(Y,W),ut=W}return ut!==void 0?ut:Y.nextSibling}function z(k,x,T){x[0]==="-"?k.setProperty(x,T):k[x]=T==null?"":typeof T!="number"||d.test(x)?T:T+"px"}function U(k,x,T,H,Y){var W;t:if(x==="style")if(typeof T=="string")k.style.cssText=T;else{if(typeof H=="string"&&(k.style.cssText=H=""),H)for(x in H)T&&x in T||z(k.style,x,"");if(T)for(x in T)H&&T[x]===H[x]||z(k.style,x,T[x])}else if(x[0]==="o"&&x[1]==="n")W=x!==(x=x.replace(/Capture$/,"")),x=x.toLowerCase()in k?x.toLowerCase().slice(2):x.slice(2),k.l||(k.l={}),k.l[x+W]=T,T?H||k.addEventListener(x,W?q:$,W):k.removeEventListener(x,W?q:$,W);else if(x!=="dangerouslySetInnerHTML"){if(Y)x=x.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(x!=="href"&&x!=="list"&&x!=="form"&&x!=="tabIndex"&&x!=="download"&&x in k)try{k[x]=T??"";break t}catch{}typeof T=="function"||(T!=null&&(T!==!1||x[0]==="a"&&x[1]==="r")?k.setAttribute(x,T):k.removeAttribute(x))}}function $(k){this.l[k.type+!1](r.event?r.event(k):k)}function q(k){this.l[k.type+!0](r.event?r.event(k):k)}function K(k,x,T,H,Y,W,ut,gt,mt){var ot,G,Lt,At,pt,Ot,Be,Vt,ee,me,mn,zt=x.type;if(x.constructor!==void 0)return null;T.__h!=null&&(mt=T.__h,gt=x.__e=T.__e,x.__h=null,W=[gt]),(ot=r.__b)&&ot(x);try{t:if(typeof zt=="function"){if(Vt=x.props,ee=(ot=zt.contextType)&&H[ot.__c],me=ot?ee?ee.props.value:ot.__:H,T.__c?Be=(G=x.__c=T.__c).__=G.__E:("prototype"in zt&&zt.prototype.render?x.__c=G=new zt(Vt,me):(x.__c=G=new h(Vt,me),G.constructor=zt,G.render=it),ee&&ee.sub(G),G.props=Vt,G.state||(G.state={}),G.context=me,G.__n=H,Lt=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),zt.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=p({},G.__s)),p(G.__s,zt.getDerivedStateFromProps(Vt,G.__s))),At=G.props,pt=G.state,Lt)zt.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(zt.getDerivedStateFromProps==null&&Vt!==At&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps(Vt,me),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate(Vt,G.__s,me)===!1||x.__v===T.__v){G.props=Vt,G.state=G.__s,x.__v!==T.__v&&(G.__d=!1),G.__v=x,x.__e=T.__e,x.__k=T.__k,x.__k.forEach(function(Rn){Rn&&(Rn.__=x)}),G.__h.length&&ut.push(G);break t}G.componentWillUpdate!=null&&G.componentWillUpdate(Vt,G.__s,me),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(At,pt,Ot)})}G.context=me,G.props=Vt,G.state=G.__s,(ot=r.__r)&&ot(x),G.__d=!1,G.__v=x,G.__P=k,ot=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&(H=p(p({},H),G.getChildContext())),Lt||G.getSnapshotBeforeUpdate==null||(Ot=G.getSnapshotBeforeUpdate(At,pt)),mn=ot!=null&&ot.type===y&&ot.key==null?ot.props.children:ot,C(k,Array.isArray(mn)?mn:[mn],x,T,H,Y,W,ut,gt,mt),G.base=x.__e,x.__h=null,G.__h.length&&ut.push(G),Be&&(G.__E=G.__=null),G.__e=!1}else W==null&&x.__v===T.__v?(x.__k=T.__k,x.__e=T.__e):x.__e=L(T.__e,x,T,H,Y,W,ut,mt);(ot=r.diffed)&&ot(x)}catch(Rn){x.__v=null,(mt||W!=null)&&(x.__e=gt,x.__h=!!mt,W[W.indexOf(gt)]=null),r.__e(Rn,x,T)}}function I(k,x){r.__c&&r.__c(x,k),k.some(function(T){try{k=T.__h,T.__h=[],k.some(function(H){H.call(T)})}catch(H){r.__e(H,T.__v)}})}function L(k,x,T,H,Y,W,ut,gt){var mt,ot,G,Lt=T.props,At=x.props,pt=x.type,Ot=0;if(pt==="svg"&&(Y=!0),W!=null){for(;Ot<W.length;Ot++)if((mt=W[Ot])&&"setAttribute"in mt==!!pt&&(pt?mt.localName===pt:mt.nodeType===3)){k=mt,W[Ot]=null;break}}if(k==null){if(pt===null)return document.createTextNode(At);k=Y?document.createElementNS("http://www.w3.org/2000/svg",pt):document.createElement(pt,At.is&&At),W=null,gt=!1}if(pt===null)Lt===At||gt&&k.data===At||(k.data=At);else{if(W=W&&n.call(k.childNodes),ot=(Lt=T.props||c).dangerouslySetInnerHTML,G=At.dangerouslySetInnerHTML,!gt){if(W!=null)for(Lt={},Ot=0;Ot<k.attributes.length;Ot++)Lt[k.attributes[Ot].name]=k.attributes[Ot].value;(G||ot)&&(G&&(ot&&G.__html==ot.__html||G.__html===k.innerHTML)||(k.innerHTML=G&&G.__html||""))}if(function(Be,Vt,ee,me,mn){var zt;for(zt in ee)zt==="children"||zt==="key"||zt in Vt||U(Be,zt,null,ee[zt],me);for(zt in Vt)mn&&typeof Vt[zt]!="function"||zt==="children"||zt==="key"||zt==="value"||zt==="checked"||ee[zt]===Vt[zt]||U(Be,zt,Vt[zt],ee[zt],me)}(k,At,Lt,Y,gt),G)x.__k=[];else if(Ot=x.props.children,C(k,Array.isArray(Ot)?Ot:[Ot],x,T,H,Y&&pt!=="foreignObject",W,ut,W?W[0]:T.__k&&b(T,0),gt),W!=null)for(Ot=W.length;Ot--;)W[Ot]!=null&&v(W[Ot]);gt||("value"in At&&(Ot=At.value)!==void 0&&(Ot!==Lt.value||Ot!==k.value||pt==="progress"&&!Ot)&&U(k,"value",Ot,Lt.value,!1),"checked"in At&&(Ot=At.checked)!==void 0&&Ot!==k.checked&&U(k,"checked",Ot,Lt.checked,!1))}return k}function X(k,x,T){try{typeof k=="function"?k(x):k.current=x}catch(H){r.__e(H,T)}}function lt(k,x,T){var H,Y;if(r.unmount&&r.unmount(k),(H=k.ref)&&(H.current&&H.current!==k.__e||X(H,null,x)),(H=k.__c)!=null){if(H.componentWillUnmount)try{H.componentWillUnmount()}catch(W){r.__e(W,x)}H.base=H.__P=null}if(H=k.__k)for(Y=0;Y<H.length;Y++)H[Y]&&lt(H[Y],x,typeof k.type!="function");T||k.__e==null||v(k.__e),k.__e=k.__d=void 0}function it(k,x,T){return this.constructor(k,T)}function at(k,x,T){var H,Y,W;r.__&&r.__(k,x),Y=(H=typeof T=="function")?null:T&&T.__k||x.__k,W=[],K(x,k=(!H&&T||x).__k=m(y,null,[k]),Y||c,c,x.ownerSVGElement!==void 0,!H&&T?[T]:Y?null:x.firstChild?n.call(x.childNodes):null,W,!H&&T?T:Y?Y.__e:x.firstChild,H),I(W,k)}n=f.slice,r={__e:function(k,x){for(var T,H,Y;x=x.__;)if((T=x.__c)&&!T.__)try{if((H=T.constructor)&&H.getDerivedStateFromError!=null&&(T.setState(H.getDerivedStateFromError(k)),Y=T.__d),T.componentDidCatch!=null&&(T.componentDidCatch(k),Y=T.__d),Y)return T.__E=T}catch(W){k=W}throw k}},o=0,i=function(k){return k!=null&&k.constructor===void 0},h.prototype.setState=function(k,x){var T;T=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof k=="function"&&(k=k(p({},T),this.props)),k&&p(T,k),k!=null&&this.__v&&(x&&this.__h.push(x),D(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),D(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,e.Component=h,e.Fragment=y,e.cloneElement=function(k,x,T){var H,Y,W,ut=p({},k.props);for(W in x)W=="key"?H=x[W]:W=="ref"?Y=x[W]:ut[W]=x[W];return arguments.length>2&&(ut.children=arguments.length>3?n.call(arguments,2):T),g(k.type,ut,H||k.key,Y||k.ref,null)},e.createContext=function(k,x){var T={__c:x="__cC"+l++,__:k,Consumer:function(H,Y){return H.children(Y)},Provider:function(H){var Y,W;return this.getChildContext||(Y=[],(W={})[x]=this,this.getChildContext=function(){return W},this.shouldComponentUpdate=function(ut){this.props.value!==ut.value&&Y.some(D)},this.sub=function(ut){Y.push(ut);var gt=ut.componentWillUnmount;ut.componentWillUnmount=function(){Y.splice(Y.indexOf(ut),1),gt&&gt.call(ut)}}),H.children}};return T.Provider.__=T.Consumer.contextType=T},e.createElement=m,e.createRef=function(){return{current:null}},e.h=m,e.hydrate=function k(x,T){at(x,T,k)},e.isValidElement=i,e.options=r,e.render=at,e.toChildArray=function k(x,T){return T=T||[],x==null||typeof x=="boolean"||(Array.isArray(x)?x.some(function(H){k(H,T)}):T.push(x)),T}}),CY=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},J5=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:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new Hj([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 f7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var SY=0;function xY(t){return"__private_"+SY+++"_"+t}const{render:d7}=DY;var Xc=xY("updateUI");class Q5 extends J5{constructor(){super(...arguments),Object.defineProperty(this,Xc,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=CY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return f7(this,Xc)[Xc]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(d7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),d7(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 Q5)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=f7(this,Xc))[Xc])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var AY=Q5;const{debugLogger:OY}=Gj;var od=Zj,kY=Zj,BY=AY,_Y=J5,FY=OY;od.Uppy=kY,od.UIPlugin=BY,od.BasePlugin=_Y,od.debugLogger=FY;class TY 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 tD=TY,Wy=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new tD(t)})};class PY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Kh,xi,ho,Ai,p7,jY=PY;function fo(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 Gy(t){return"__private_"+IY+++"_"+t}async function qy(t){if(t.status===401)throw new jY;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await 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"),ho=Gy("getUrl"),Ai=Gy("errorHandler"),p7=Kh=class Jj{constructor(e,n){Object.defineProperty(this,Ai,{value:LY}),Object.defineProperty(this,ho,{value:NY}),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({...Jj.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:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(fo(this,ho)[ho](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(fo(this,ho)[ho](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(fo(this,xi)[xi](n)).then(qy).catch(fo(this,Ai)[Ai]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>Wy(fo(this,ho)[ho](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(fo(this,xi)[xi](r)).then(qy).catch(fo(this,Ai)[Ai](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(fo(this,xi)[xi](r)).then(qy).catch(fo(this,Ai)[Ai](o,e))}},Kh.VERSION="2.0.4",Kh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Kh.VERSION}`},p7);function NY(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function LY(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${fo(this,ho)[ho](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var RY={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()})},co,Oi,mr,Dn,Yh;let h7,g7;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 MY=0;function Zc(t){return"__private_"+MY+++"_"+t}var zY=(co=Zc("queued"),Oi=Zc("emitter"),mr=Zc("isOpen"),Dn=Zc("socket"),Yh=Zc("handleMessage"),h7=Symbol.for("uppy test: getSocket"),g7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,co,{writable:!0,value:[]}),Object.defineProperty(this,Oi,{writable:!0,value:Vj()}),Object.defineProperty(this,mr,{writable:!0,value:!1}),Object.defineProperty(this,Dn,{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,mr)[mr]}[h7](){return Ve(this,Dn)[Dn]}[g7](){return Ve(this,co)[co]}open(){Ve(this,Dn)[Dn]=new WebSocket(this.opts.target),Ve(this,Dn)[Dn].onopen=()=>{for(Ve(this,mr)[mr]=!0;Ve(this,co)[co].length>0&&Ve(this,mr)[mr];){const t=Ve(this,co)[co].shift();this.send(t.action,t.payload)}},Ve(this,Dn)[Dn].onclose=()=>{Ve(this,mr)[mr]=!1},Ve(this,Dn)[Dn].onmessage=Ve(this,Yh)[Yh]}close(){var t;(t=Ve(this,Dn)[Dn])==null||t.close()}send(t,e){Ve(this,mr)[mr]?Ve(this,Dn)[Dn].send(JSON.stringify({action:t,payload:e})):Ve(this,co)[co].push({action:t,payload:e})}on(t,e){Ve(this,Oi)[Oi].on(t,e)}emit(t,e){Ve(this,Oi)[Oi].emit(t,e)}once(t,e){Ve(this,Oi)[Oi].once(t,e)}}),$Y={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}))),{...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={...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||RY}},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:zY},ki,Ls,HY=es(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 Jc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var VY=0;function v7(t){return"__private_"+VY+++"_"+t}var m7=(ki=v7("emitter"),Ls=v7("events"),class{constructor(t){Object.defineProperty(this,ki,{writable:!0,value:void 0}),Object.defineProperty(this,Ls,{writable:!0,value:[]}),Jc(this,ki)[ki]=t}on(t,e){return Jc(this,Ls)[Ls].push([t,e]),Jc(this,ki)[ki].on(t,e)}remove(){for(const[t,e]of Jc(this,Ls)[Ls].splice(0))Jc(this,ki)[ki].off(t,e)}});function yr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var UY=0;function Y1(t){return"__private_"+UY+++"_"+t}var Xo=Y1("aliveTimer"),tu=Y1("isDone"),Qc=Y1("onTimedOut"),eu=Y1("timeout"),y7=class{constructor(t,e){Object.defineProperty(this,Xo,{writable:!0,value:void 0}),Object.defineProperty(this,tu,{writable:!0,value:!1}),Object.defineProperty(this,Qc,{writable:!0,value:void 0}),Object.defineProperty(this,eu,{writable:!0,value:void 0}),yr(this,eu)[eu]=t,yr(this,Qc)[Qc]=e}progress(){yr(this,tu)[tu]||yr(this,eu)[eu]>0&&(clearTimeout(yr(this,Xo)[Xo]),yr(this,Xo)[Xo]=setTimeout(yr(this,Qc)[Qc],yr(this,eu)[eu]))}done(){yr(this,tu)[tu]||(clearTimeout(yr(this,Xo)[Xo]),yr(this,Xo)[Xo]=null,yr(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 WY=0;function ys(t){return"__private_"+WY+++"_"+t}function GY(){return new Error("Cancelled")}var er=ys("activeRequests"),In=ys("queuedHandlers"),vd=ys("call"),id=ys("queueNext"),bE=ys("next"),Yy=ys("queue"),wE=ys("dequeue");function qY(t){Ge(this,er)[er]+=1;let e,n=!1;try{e=t()}catch(r){throw Ge(this,er)[er]-=1,r}return{abort:()=>{n||(n=!0,Ge(this,er)[er]-=1,e(),Ge(this,id)[id]())},done:()=>{n||(n=!0,Ge(this,er)[er]-=1,Ge(this,id)[id]())}}}function KY(){queueMicrotask(()=>Ge(this,bE)[bE]())}function YY(){if(Ge(this,er)[er]>=this.limit||Ge(this,In)[In].length===0)return;const t=Ge(this,In)[In].shift(),e=Ge(this,vd)[vd](t.fn);t.abort=e.abort,t.done=e.done}function XY(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Ge(this,wE)[wE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ge(this,In)[In].findIndex(o=>n.priority>o.priority);return r===-1?Ge(this,In)[In].push(n):Ge(this,In)[In].splice(r,0,n),n}function ZY(t){const e=Ge(this,In)[In].indexOf(t);e!==-1&&Ge(this,In)[In].splice(e,1)}var JY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,wE,{value:ZY}),Object.defineProperty(this,Yy,{value:XY}),Object.defineProperty(this,bE,{value:YY}),Object.defineProperty(this,id,{value:KY}),Object.defineProperty(this,vd,{value:qY}),Object.defineProperty(this,er,{writable:!0,value:0}),Object.defineProperty(this,In,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ge(this,er)[er]<this.limit?Ge(this,vd)[vd](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(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),s(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=GY()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},b7,w7,Qj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},QY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:tX}=qj,{Provider:eX,RequestClient:nX,Socket:rX}=$Y,{RateLimitedQueue:oX,internalRateLimitedQueue:Xy}=JY;function E7(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})),Qj(t)?(n=new tD(n,t),n):(n.request=t,n)}function D7(t){return t.data.slice(0,t.data.size,t.meta.type)}var iX=(w7=b7=class extends J5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=QY;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 Qj(o)&&(i=new tD(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Xy in this.opts?this.requests=this.opts[Xy]:this.requests=new oX(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={...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=D7(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=D7(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 m7(this.uppy);const s=new y7(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=tX();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 m=r.getResponseData(u.responseText,u),g=m[r.responseUrlFieldName],y={status:f.target.status,body:m,uploadURL:g};return this.uppy.emit("upload-success",t,y),g&&this.uppy.log(`Download ${t.name} from ${g}`),o(t)}const d=r.getResponseData(u.responseText,u),p=E7(u,r.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,v),i(p)}),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=E7(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(d=>{u.setRequestHeader(d,f.headers[d])}),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?eX:nX)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...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 rX({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new m7(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=>HY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),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,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(d)});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,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new y7(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 d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach(v=>{this.uppy.emit("upload-success",v,p)}),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’t 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:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},b7.VERSION="2.0.6",w7),C7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zp(t){var e={exports:{}};return t(e,e.exports),e.exports}var Bi,eg,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 C7=="object"&&C7)||function(){return this}()||Function("return this")(),aX=Object.defineProperty,eD=function(t,e){try{aX(Z,t,{value:e,configurable:!0,writable:!0})}catch{Z[t]=e}return e},sa=Z["__core-js_shared__"]||eD("__core-js_shared__",{}),nD=Zp(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),tI=Function.prototype,EE=tI.bind,DE=tI.call,uX=EE&&EE.bind(DE),ht=EE?function(t){return t&&uX(DE,t)}:function(t){return t&&function(){return DE.apply(t,arguments)}},sX=Z.TypeError,Fr=function(t){if(t==null)throw sX("Can't call method on "+t);return t},lX=Z.Object,Ma=function(t){return lX(Fr(t))},cX=ht({}.hasOwnProperty),Re=Object.hasOwn||function(t,e){return cX(Ma(t),e)},fX=0,dX=Math.random(),pX=ht(1 .toString),rD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+pX(++fX+dX,36)},ie=function(t){return typeof t=="function"},hX=function(t){return ie(t)?t:void 0},bs=function(t,e){return arguments.length<2?hX(Z[t]):Z[t]&&Z[t][e]},Cl=bs("navigator","userAgent")||"",S7=Z.process,x7=Z.Deno,A7=S7&&S7.versions||x7&&x7.version,O7=A7&&A7.v8;O7&&(eg=(Bi=O7.split("."))[0]>0&&Bi[0]<4?1:+(Bi[0]+Bi[1])),!eg&&Cl&&(!(Bi=Cl.match(/Edge\/(\d+)/))||Bi[1]>=74)&&(Bi=Cl.match(/Chrome\/(\d+)/))&&(eg=+Bi[1]);var Xd=eg,Qt=function(t){try{return!!t()}catch{return!0}},CE=!!Object.getOwnPropertySymbols&&!Qt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Xd&&Xd<41}),oD=CE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tf=nD("wks"),Pu=Z.Symbol,k7=Pu&&Pu.for,gX=oD?Pu:Pu&&Pu.withoutSetter||rD,Ae=function(t){if(!Re(tf,t)||!CE&&typeof tf[t]!="string"){var e="Symbol."+t;CE&&Re(Pu,t)?tf[t]=Pu[t]:tf[t]=oD&&k7?k7(e):gX(e)}return tf[t]},eI={};eI[Ae("toStringTag")]="z";var iD=String(eI)==="[object z]",an=!Qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pe=function(t){return typeof t=="object"?t!==null:ie(t)},SE=Z.document,vX=pe(SE)&&pe(SE.createElement),Zd=function(t){return vX?SE.createElement(t):{}},nI=!an&&!Qt(function(){return Object.defineProperty(Zd("div"),"a",{get:function(){return 7}}).a!=7}),mX=Z.String,yX=Z.TypeError,Me=function(t){if(pe(t))return t;throw yX(mX(t)+" is not an object")},ef=Function.prototype.call,Yt=ef.bind?ef.bind(ef):function(){return ef.apply(ef,arguments)},ns=ht({}.isPrototypeOf),bX=Z.Object,Zy=oD?function(t){return typeof t=="symbol"}:function(t){var e=bs("Symbol");return ie(e)&&ns(e.prototype,bX(t))},wX=Z.String,X1=function(t){try{return wX(t)}catch{return"Object"}},EX=Z.TypeError,ka=function(t){if(ie(t))return t;throw EX(X1(t)+" is not a function")},rs=function(t,e){var n=t[e];return n==null?void 0:ka(n)},DX=Z.TypeError,CX=Z.TypeError,SX=Ae("toPrimitive"),aD=function(t){var e=function(n,r){if(!pe(n)||Zy(n))return n;var o,i=rs(n,SX);if(i){if(o=Yt(i,n,r),!pe(o)||Zy(o))return o;throw CX("Can't convert object to primitive value")}return function(a,u){var s,l;if(ie(s=a.toString)&&!pe(l=Yt(s,a))||ie(s=a.valueOf)&&!pe(l=Yt(s,a)))return l;throw DX("Can't convert object to primitive value")}(n)}(t,"string");return Zy(e)?e:e+""},xX=Z.TypeError,B7=Object.defineProperty,oo={f:an?B7:function(t,e,n){if(Me(t),e=aD(e),Me(n),nI)try{return B7(t,e,n)}catch{}if("get"in n||"set"in n)throw xX("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Z1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Zr=an?function(t,e,n){return oo.f(t,e,Z1(1,n))}:function(t,e,n){return t[e]=n,t},AX=ht(Function.toString);ie(sa.inspectSource)||(sa.inspectSource=function(t){return AX(t)});var sv,md,lv,J1=sa.inspectSource,_7=Z.WeakMap,rI=ie(_7)&&/native code/.test(J1(_7)),F7=nD("keys"),uD=function(t){return F7[t]||(F7[t]=rD(t))},Q1={},xE=Z.TypeError,OX=Z.WeakMap;if(rI||sa.state){var nu=sa.state||(sa.state=new OX),kX=ht(nu.get),T7=ht(nu.has),BX=ht(nu.set);sv=function(t,e){if(T7(nu,t))throw new xE("Object already initialized");return e.facade=t,BX(nu,t,e),e},md=function(t){return kX(nu,t)||{}},lv=function(t){return T7(nu,t)}}else{var Rs=uD("state");Q1[Rs]=!0,sv=function(t,e){if(Re(t,Rs))throw new xE("Object already initialized");return e.facade=t,Zr(t,Rs,e),e},md=function(t){return Re(t,Rs)?t[Rs]:{}},lv=function(t){return Re(t,Rs)}}var An={set:sv,get:md,has:lv,enforce:function(t){return lv(t)?md(t):sv(t,{})},getterFor:function(t){return function(e){var n;if(!pe(e)||(n=md(e)).type!==t)throw xE("Incompatible receiver, "+t+" required");return n}}},oI=Function.prototype,_X=an&&Object.getOwnPropertyDescriptor,Jy=Re(oI,"name"),gc={EXISTS:Jy,PROPER:Jy&&(function(){}).name==="something",CONFIGURABLE:Jy&&(!an||an&&_X(oI,"name").configurable)},Gn=Zp(function(t){var e=gc.CONFIGURABLE,n=An.get,r=An.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ie(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Re(u,"name")||e&&u.name!==p)&&Zr(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Z?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Zr(i,a,u)):f?i[a]=u:eD(a,u)})(Function.prototype,"toString",function(){return ie(this)&&n(this).source||J1(this)})}),FX=ht({}.toString),TX=ht("".slice),Jr=function(t){return TX(FX(t),8,-1)},PX=Ae("toStringTag"),jX=Z.Object,IX=Jr(function(){return arguments}())=="Arguments",tm=iD?Jr:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=jX(t),PX))=="string"?n:IX?Jr(e):(r=Jr(e))=="Object"&&ie(e.callee)?"Arguments":r},NX=iD?{}.toString:function(){return"[object "+tm(this)+"]"};iD||Gn(Object.prototype,"toString",NX,{unsafe:!0});var cv={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=Zd("span").classList,P7=Qy&&Qy.constructor&&Qy.constructor.prototype,iI=P7===Object.prototype?void 0:P7,j7=ht(ht.bind),os=function(t,e){return ka(t),e===void 0?t:j7?j7(t,e):function(){return t.apply(e,arguments)}},tb=Z.Object,LX=ht("".split),em=Qt(function(){return!tb("z").propertyIsEnumerable(0)})?function(t){return Jr(t)=="String"?LX(t,""):tb(t)}:tb,RX=Math.ceil,MX=Math.floor,Jp=function(t){var e=+t;return e!=e||e===0?0:(e>0?MX:RX)(e)},zX=Math.min,vc=function(t){return t>0?zX(Jp(t),9007199254740991):0},ws=function(t){return vc(t.length)},fv=Array.isArray||function(t){return Jr(t)=="Array"},aI=function(){},$X=[],uI=bs("Reflect","construct"),sD=/^\s*(?:class|function)\b/,HX=ht(sD.exec),VX=!sD.exec(aI),nf=function(t){if(!ie(t))return!1;try{return uI(aI,$X,t),!0}catch{return!1}},nm=!uI||Qt(function(){var t;return nf(nf.call)||!nf(Object)||!nf(function(){t=!0})||t})?function(t){if(!ie(t))return!1;switch(tm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return VX||!!HX(sD,J1(t))}:nf,UX=Ae("species"),I7=Z.Array,sI=function(t,e){return new(function(n){var r;return fv(n)&&(r=n.constructor,(nm(r)&&(r===I7||fv(r.prototype))||pe(r)&&(r=r[UX])===null)&&(r=void 0)),r===void 0?I7:r}(t))(e===0?0:e)},N7=ht([].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 d,p,v=Ma(s),m=em(v),g=os(l,c),y=ws(m),h=0,b=f||sI,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:N7(w,d)}else switch(t){case 4:return!1;case 7:N7(w,d)}return i?-1:r||o?o:w}},mc={forEach:_i(0),map:_i(1),filter:_i(2),some:_i(3),every:_i(4),find:_i(5),findIndex:_i(6),filterReject:_i(7)},lI=function(t,e){var n=[][t];return!!n&&Qt(function(){n.call(null,e||function(){throw 1},1)})},WX=mc.forEach,eb=lI("forEach")?[].forEach:function(t){return WX(this,t,arguments.length>1?arguments[1]:void 0)},cI=function(t){if(t&&t.forEach!==eb)try{Zr(t,"forEach",eb)}catch{t.forEach=eb}};for(var nb in cv)cv[nb]&&cI(Z[nb]&&Z[nb].prototype);cI(iI);var L7={}.propertyIsEnumerable,R7=Object.getOwnPropertyDescriptor,GX=R7&&!L7.call({1:2},1)?function(t){var e=R7(this,t);return!!e&&e.enumerable}:L7,fI={f:GX},za=function(t){return em(Fr(t))},M7=Object.getOwnPropertyDescriptor,Qp={f:an?M7:function(t,e){if(t=za(t),e=aD(e),nI)try{return M7(t,e)}catch{}if(Re(t,e))return Z1(!Yt(fI.f,t,e),t[e])}},qX=Math.max,KX=Math.min,Yl=function(t,e){var n=Jp(t);return n<0?qX(n+e,0):KX(n,e)},z7=function(t){return function(e,n,r){var o,i=za(e),a=ws(i),u=Yl(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}},dI={includes:z7(!0),indexOf:z7(!1)},YX=dI.indexOf,$7=ht([].push),pI=function(t,e){var n,r=za(t),o=0,i=[];for(n in r)!Re(Q1,n)&&Re(r,n)&&$7(i,n);for(;e.length>o;)Re(r,n=e[o++])&&(~YX(i,n)||$7(i,n));return i},dv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XX=dv.concat("length","prototype"),Jd={f:Object.getOwnPropertyNames||function(t){return pI(t,XX)}},hI={f:Object.getOwnPropertySymbols},ZX=ht([].concat),JX=bs("Reflect","ownKeys")||function(t){var e=Jd.f(Me(t)),n=hI.f;return n?ZX(e,n(t)):e},QX=function(t,e){for(var n=JX(e),r=oo.f,o=Qp.f,i=0;i<n.length;i++){var a=n[i];Re(t,a)||r(t,a,o(e,a))}},tZ=/#|\.prototype\./,th=function(t,e){var n=nZ[eZ(t)];return n==oZ||n!=rZ&&(ie(e)?Qt(e):!!e)},eZ=th.normalize=function(t){return String(t).replace(tZ,".").toLowerCase()},nZ=th.data={},rZ=th.NATIVE="N",oZ=th.POLYFILL="P",Qd=th,iZ=Qp.f,Se=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]||eD(u,{}):(Z[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=iZ(n,r))&&a.value:n[r],!Qd(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;QX(i,o)}(t.sham||o&&o.sham)&&Zr(i,"sham",!0),Gn(n,r,i,t)}},Sl=Object.keys||function(t){return pI(t,dv)},aZ=Qt(function(){Sl(1)});/*!
  31. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  32. *
  33. * Copyright (c) 2014-2017, Jon Schlinkert.
  34. * Released under the MIT License.
  35. */function H7(t){return Object.prototype.toString.call(t)==="[object Object]"}Se({target:"Object",stat:!0,forced:aZ},{keys:function(t){return Sl(Ma(t))}});var uZ={isHistory(t){return H7(e=t)!==!1&&((n=e.constructor)===void 0||H7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||ea.isOperationList(t.redos[0]))&&(t.undos.length===0||ea.isOperationList(t.undos[0]));var e,n,r}},rb=new WeakMap,ob=new WeakMap,ml={isHistoryEditor:t=>uZ.isHistory(t.history)&&E.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=ml.isMerging(t);ob.set(t,!1),e(),ob.set(t,n)},withoutSaving(t,e){var n=ml.isSaving(t);rb.set(t,!1),e(),rb.set(t,n)}},sZ=Z.String,ue=function(t){if(tm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sZ(t)},lD=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},lZ=gc.PROPER,AE=RegExp.prototype,gI=AE.toString,cZ=ht(lD),fZ=Qt(function(){return gI.call({source:"a",flags:"b"})!="/a/b"}),dZ=lZ&&gI.name!="toString";(fZ||dZ)&&Gn(RegExp.prototype,"toString",function(){var t=Me(this),e=ue(t.source),n=t.flags;return"/"+e+"/"+ue(n===void 0&&ns(AE,t)&&!("flags"in AE)?cZ(t):n)},{unsafe:!0});var Zh,pZ=an?Object.defineProperties:function(t,e){Me(t);for(var n,r=za(e),o=Sl(e),i=o.length,a=0;i>a;)oo.f(t,n=o[a++],r[n]);return t},OE=bs("document","documentElement"),vI=uD("IE_PROTO"),ib=function(){},mI=function(t){return"<script>"+t+"<\/script>"},V7=function(t){t.write(mI("")),t.close();var e=t.parentWindow.Object;return t=null,e},ng=function(){try{Zh=new ActiveXObject("htmlfile")}catch{}var t,e;ng=typeof document<"u"?document.domain&&Zh?V7(Zh):((e=Zd("iframe")).style.display="none",OE.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(mI("document.F=Object")),t.close(),t.F):V7(Zh);for(var n=dv.length;n--;)delete ng.prototype[dv[n]];return ng()};Q1[vI]=!0;var rm=Object.create||function(t,e){var n;return t!==null?(ib.prototype=Me(t),n=new ib,ib.prototype=null,n[vI]=t):n=ng(),e===void 0?n:pZ(n,e)},kE=Ae("unscopables"),BE=Array.prototype;BE[kE]==null&&oo.f(BE,kE,{configurable:!0,value:rm(null)});var yd=function(t){BE[kE][t]=!0},hZ=dI.includes;Se({target:"Array",proto:!0},{includes:function(t){return hZ(this,t,arguments.length>1?arguments[1]:void 0)}}),yd("includes");var gZ=Ae("match"),cD=function(t){var e;return pe(t)&&((e=t[gZ])!==void 0?!!e:Jr(t)=="RegExp")},vZ=Z.TypeError,fD=function(t){if(cD(t))throw vZ("The method doesn't accept regular expressions");return t},mZ=Ae("match"),dD=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[mZ]=!1,"/./"[t](e)}catch{}}return!1},yZ=ht("".indexOf);Se({target:"String",proto:!0,forced:!dD("includes")},{includes:function(t){return!!~yZ(ue(Fr(this)),ue(fD(t)),arguments.length>1?arguments[1]:void 0)}});var bZ=/"/g,wZ=ht("".replace);Se({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=ue(Fr(this)),r="<a",(r+=' name="'+wZ(ue(e),bZ,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var _E=function(t,e,n){var r,o;Me(t);try{if(!(r=rs(t,"return"))){if(e==="throw")throw n;return n}r=Yt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Me(r),n},EZ=function(t,e,n,r){try{return r?e(Me(n)[0],n[1]):e(n)}catch(o){_E(t,"throw",o)}},Xl={},DZ=Ae("iterator"),CZ=Array.prototype,yI=function(t){return t!==void 0&&(Xl.Array===t||CZ[DZ]===t)},tp=function(t,e,n){var r=aD(e);r in t?oo.f(t,r,Z1(0,n)):t[r]=n},SZ=Ae("iterator"),pD=function(t){if(t!=null)return rs(t,SZ)||rs(t,"@@iterator")||Xl[tm(t)]},xZ=Z.TypeError,bI=function(t,e){var n=arguments.length<2?pD(t):e;if(ka(n))return Me(Yt(n,t));throw xZ(X1(t)+" is not iterable")},U7=Z.Array,wI=Ae("iterator"),EI=!1;try{var AZ=0,W7={next:function(){return{done:!!AZ++}},return:function(){EI=!0}};W7[wI]=function(){return this},Array.from(W7,function(){throw 2})}catch{}var hD=function(t,e){if(!EI)return!1;var n=!1;try{var r={};r[wI]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},OZ=!hD(function(t){Array.from(t)});Se({target:"Array",stat:!0,forced:OZ},{from:function(t){var e=Ma(t),n=nm(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=os(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=pD(e),p=0;if(!d||this==U7&&yI(d))for(a=ws(e),u=n?new this(a):U7(a);a>p;p++)f=i?o(e[p],p):e[p],tp(u,p,f);else for(c=(l=bI(e,d)).next,u=n?new this:[];!(s=Yt(c,l)).done;p++)f=i?EZ(l,o,[s.value,p],!0):s.value,tp(u,p,f);return u.length=p,u}});var ju,G7,q7,kZ=ht("".charAt),K7=ht("".charCodeAt),BZ=ht("".slice),Y7=function(t){return function(e,n){var r,o,i=ue(Fr(e)),a=Jp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=K7(i,a))<55296||r>56319||a+1===u||(o=K7(i,a+1))<56320||o>57343?t?kZ(i,a):r:t?BZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},DI={codeAt:Y7(!1),charAt:Y7(!0)},_Z=!Qt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),X7=uD("IE_PROTO"),FE=Z.Object,FZ=FE.prototype,pv=_Z?FE.getPrototypeOf:function(t){var e=Ma(t);if(Re(e,X7))return e[X7];var n=e.constructor;return ie(n)&&e instanceof n?n.prototype:e instanceof FE?FZ:null},TE=Ae("iterator"),CI=!1;[].keys&&("next"in(q7=[].keys())?(G7=pv(pv(q7)))!==Object.prototype&&(ju=G7):CI=!0);var TZ=ju==null||Qt(function(){var t={};return ju[TE].call(t)!==t});TZ&&(ju={}),ie(ju[TE])||Gn(ju,TE,function(){return this});var gD={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:CI},PZ=oo.f,Z7=Ae("toStringTag"),hv=function(t,e,n){t&&!Re(t=n?t:t.prototype,Z7)&&PZ(t,Z7,{configurable:!0,value:e})},jZ=gD.IteratorPrototype,IZ=function(){return this},NZ=Z.String,LZ=Z.TypeError,Zl=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{}return function(r,o){return Me(r),function(i){if(typeof i=="object"||ie(i))return i;throw LZ("Can't set "+NZ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),RZ=gc.PROPER,MZ=gc.CONFIGURABLE,J7=gD.IteratorPrototype,Jh=gD.BUGGY_SAFARI_ITERATORS,rf=Ae("iterator"),zZ=function(){return this},vD=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=rm(jZ,{next:Z1(1,b)}),hv(y,D,!1),Xl[D]=IZ})(n,e,r);var u,s,l,c=function(y){if(y===o&&m)return m;if(!Jh&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,v=p[rf]||p["@@iterator"]||o&&p[o],m=!Jh&&v||c(o),g=e=="Array"&&p.entries||v;if(g&&(u=pv(g.call(new t)))!==Object.prototype&&u.next&&(pv(u)!==J7&&(Zl?Zl(u,J7):ie(u[rf])||Gn(u,rf,zZ)),hv(u,f,!0)),RZ&&o=="values"&&v&&v.name!=="values"&&(MZ?Zr(p,"name","values"):(d=!0,m=function(){return Yt(v,this)})),o)if(s={values:c("values"),keys:i?m:c("keys"),entries:c("entries")},a)for(l in s)(Jh||d||!(l in p))&&Gn(p,l,s[l]);else Se({target:e,proto:!0,forced:Jh||d},s);return p[rf]!==m&&Gn(p,rf,m,{name:o}),Xl[e]=m,s},$Z=DI.charAt,HZ=An.set,VZ=An.getterFor("String Iterator");vD(String,"String",function(t){HZ(this,{type:"String Iterator",string:ue(t),index:0})},function(){var t,e=VZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=$Z(n,r),e.index+=t.length,{value:t,done:!1})});var ab,UZ=Qp.f,Q7=ht("".endsWith),WZ=ht("".slice),GZ=Math.min,SI=dD("endsWith"),qZ=!(SI||(ab=UZ(String.prototype,"endsWith"),!ab||ab.writable));Se({target:"String",proto:!0,forced:!qZ&&!SI},{endsWith:function(t){var e=ue(Fr(this));fD(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:GZ(vc(n),r),i=ue(t);return Q7?Q7(e,i,o):WZ(e,o-i.length,o)===i}});var KZ=ht([].join),YZ=em!=Object,XZ=lI("join",",");Se({target:"Array",proto:!0,forced:YZ||!XZ},{join:function(t){return KZ(za(this),t===void 0?",":t)}});var ZZ=Ae("species"),om=function(t){return Xd>=51||!Qt(function(){var e=[];return(e.constructor={})[ZZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},JZ=mc.map,QZ=om("map");Se({target:"Array",proto:!0,forced:!QZ},{map:function(t){return JZ(this,t,arguments.length>1?arguments[1]:void 0)}});var mD=Z.RegExp,PE=Qt(function(){var t=mD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),tJ=PE||Qt(function(){return!mD("a","y").sticky}),im={BROKEN_CARET:PE||Qt(function(){var t=mD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:tJ,UNSUPPORTED_Y:PE},eJ=Z.RegExp,yD=Qt(function(){var t=eJ(".","s");return!(t.dotAll&&t.exec(`
  36. `)&&t.flags==="s")}),nJ=Z.RegExp,bD=Qt(function(){var t=nJ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),rJ=An.get,oJ=nD("native-string-replace",String.prototype.replace),gv=RegExp.prototype.exec,jE=gv,iJ=ht("".charAt),aJ=ht("".indexOf),uJ=ht("".replace),ub=ht("".slice),sb=function(){var t=/a/,e=/b*/g;return Yt(gv,t,"a"),Yt(gv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),t9=im.BROKEN_CARET,lb=/()??/.exec("")[1]!==void 0;(sb||lb||t9||yD||bD)&&(jE=function(t){var e,n,r,o,i,a,u,s=this,l=rJ(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Yt(jE,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=t9&&s.sticky,v=Yt(lD,s),m=s.source,g=0,y=c;if(p&&(v=uJ(v,"y",""),aJ(v,"g")===-1&&(v+="g"),y=ub(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&iJ(c,s.lastIndex-1)!==`
  37. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),lb&&(n=new RegExp("^"+m+"$(?!\\s)",v)),sb&&(r=s.lastIndex),o=Yt(gv,p?n:s,y),p?o?(o.input=ub(o.input,g),o[0]=ub(o[0],g),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&&Yt(oJ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=rm(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ep=jE;Se({target:"RegExp",proto:!0,forced:/./.exec!==ep},{exec:ep});var wD=Function.prototype,e9=wD.apply,sJ=wD.bind,n9=wD.call,ED=typeof Reflect=="object"&&Reflect.apply||(sJ?n9.bind(e9):function(){return n9.apply(e9,arguments)}),lJ=Ae("species"),cb=RegExp.prototype,DD=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[lJ]=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,d,p){var v=ht(l),m=c.exec;return m===ep||m===cb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Gn(String.prototype,t,s[0]),Gn(cb,o,s[1])}r&&Zr(cb[o],"sham",!0)},cJ=DI.charAt,CD=function(t,e,n){return e+(n?cJ(t,e).length:1)},fJ=Math.floor,fb=ht("".charAt),dJ=ht("".replace),db=ht("".slice),pJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hJ=/\$([$&'`]|\d{1,2})/g,gJ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=hJ;return o!==void 0&&(o=Ma(o),s=pJ),dJ(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 d=+c;if(d===0)return l;if(d>u){var p=fJ(d/10);return p===0?l:p<=u?r[p-1]===void 0?fb(c,1):r[p-1]+fb(c,1):l}f=r[d-1]}return f===void 0?"":f})},vJ=Z.TypeError,np=function(t,e){var n=t.exec;if(ie(n)){var r=Yt(n,t,e);return r!==null&&Me(r),r}if(Jr(t)==="RegExp")return Yt(ep,t,e);throw vJ("RegExp#exec called on incompatible receiver")},IE=Ae("replace"),mJ=Math.max,yJ=Math.min,bJ=ht([].concat),pb=ht([].push),r9=ht("".indexOf),o9=ht("".slice),wJ="a".replace(/./,"$0")==="$0",i9=!!/./[IE]&&/./[IE]("a","$0")==="";DD("replace",function(t,e,n){var r=i9?"$":"$0";return[function(o,i){var a=Fr(this),u=o==null?void 0:rs(o,IE);return u?Yt(u,o,a,i):Yt(e,ue(a),o,i)},function(o,i){var a=Me(this),u=ue(o);if(typeof i=="string"&&r9(i,r)===-1&&r9(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=ie(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=np(a,u);if(p===null||(pb(d,p),!c))break;ue(p[0])===""&&(a.lastIndex=CD(u,vc(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=ue((p=d[y])[0]),b=mJ(yJ(Jp(p.index),u.length),0),w=[],D=1;D<p.length;D++)pb(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=bJ([h],w,b,u);S!==void 0&&pb(C,S);var A=ue(ED(i,void 0,C))}else A=gJ(h,u,b,w,S,i);b>=g&&(m+=o9(u,g,b)+A,g=b+h.length)}return m+o9(u,g)}]},!!Qt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!wJ||i9);/*! *****************************************************************************
  38. Copyright (c) Microsoft Corporation.
  39. Permission to use, copy, modify, and/or distribute this software for any
  40. purpose with or without fee is hereby granted.
  41. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  42. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  43. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  44. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  45. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  46. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  47. PERFORMANCE OF THIS SOFTWARE.
  48. ***************************************************************************** */var NE=function(t,e){return NE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},NE(t,e)};function 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}NE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Dr=function(){return Dr=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},Dr.apply(this,arguments)};function Cr(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 Ut(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 LE(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var EJ=0,a9=function(){this.id=""+EJ++},DJ=An.set,CJ=An.getterFor("Array Iterator"),ad=vD(Array,"Array",function(t,e){DJ(this,{type:"Array Iterator",target:za(t),index:0,kind:e})},function(){var t=CJ(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");Xl.Arguments=Xl.Array,yd("keys"),yd("values"),yd("entries");var Jl=function(t,e,n){for(var r in e)Gn(t,r,e[r],n);return t},SJ=Z.Array,xJ=Math.max,RE=function(t,e,n){for(var r=ws(t),o=Yl(e,r),i=Yl(n===void 0?r:n,r),a=SJ(xJ(i-o,0)),u=0;o<i;o++,u++)tp(a,u,t[o]);return a.length=u,a},u9=Jd.f,s9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AJ={f:function(t){return s9&&Jr(t)=="Window"?function(e){try{return u9(e)}catch{return RE(s9)}}(t):u9(za(t))}},l9=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)})||l9?function(t){return!!pe(t)&&(!l9||Jr(t)!="ArrayBuffer")&&(!Qh||Qh(t))}:Qh,OJ=!Qt(function(){return Object.isExtensible(Object.preventExtensions({}))}),am=Zp(function(t){var e=oo.f,n=!1,r=rD("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=Jd.f,s=ht([].splice),l={};l[r]=1,u(l).length&&(Jd.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Se({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:AJ.f}))},fastKey:function(u,s){if(!pe(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 OJ&&n&&Cu(u)&&!Re(u,r)&&i(u),u}};Q1[r]=!0}),kJ=Z.TypeError,rg=function(t,e){this.stopped=t,this.result=e},c9=rg.prototype,rp=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=os(e,c),m=function(y){return r&&_E(r,"normal",y),new rg(!0,y)},g=function(y){return f?(Me(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=t;else{if(!(o=pD(t)))throw kJ(X1(t)+" is not iterable");if(yI(o)){for(i=0,a=ws(t);a>i;i++)if((u=g(t[i]))&&ns(c9,u))return u;return new rg(!1)}r=bI(t,o)}for(s=r.next;!(l=Yt(s,r)).done;){try{u=g(l.value)}catch(y){_E(r,"throw",y)}if(typeof u=="object"&&u&&ns(c9,u))return u}return new rg(!1)},BJ=Z.TypeError,um=function(t,e){if(ns(e,t))return t;throw BJ("Incorrect invocation")},xI=function(t,e,n){var r,o;return Zl&&ie(r=e.constructor)&&r!==n&&pe(o=r.prototype)&&o!==n.prototype&&Zl(t,o),t},AI=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(g){var y=ht(u[g]);Gn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!pe(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!pe(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!pe(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Qd(t,!ie(a)||!(o||u.forEach&&!Qt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),am.enable();else if(Qd(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Qt(function(){f.has(1)}),v=hD(function(g){new a(g)}),m=!o&&Qt(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=e(function(g,y){um(g,u);var h=xI(new a,g,s);return y!=null&&rp(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Se({global:!0,forced:s!=a},l),hv(s,t),o||n.setStrong(s,t,r),s},t0=am.getWeakData,_J=An.set,FJ=An.getterFor,TJ=mc.find,PJ=mc.findIndex,jJ=ht([].splice),IJ=0,e0=function(t){return t.frozen||(t.frozen=new OI)},OI=function(){this.entries=[]},hb=function(t,e){return TJ(t.entries,function(n){return n[0]===e})};OI.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=PJ(this.entries,function(n){return n[0]===t});return~e&&jJ(this.entries,e,1),!!~e}};var of,kI={getConstructor:function(t,e,n,r){var o=t(function(s,l){um(s,i),_J(s,{type:e,id:IJ++,frozen:void 0}),l!=null&&rp(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=FJ(e),u=function(s,l,c){var f=a(s),d=t0(Me(l),!0);return d===!0?e0(f).set(l,c):d[f.id]=c,s};return Jl(i,{delete:function(s){var l=a(this);if(!pe(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(!pe(s))return!1;var c=t0(s);return c===!0?e0(l).has(s):c&&Re(c,l.id)}}),Jl(i,n?{get:function(s){var l=a(this);if(pe(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=An.enforce,NJ=!Z.ActiveXObject&&"ActiveXObject"in Z,BI=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},LJ=AI("WeakMap",BI,kI);if(rI&&NJ){of=kI.getConstructor(BI,"WeakMap",!0),am.enable();var af=LJ.prototype,f9=ht(af.delete),r0=ht(af.has),d9=ht(af.get),p9=ht(af.set);Jl(af,{delete:function(t){if(pe(t)&&!Cu(t)){var e=n0(this);return e.frozen||(e.frozen=new of),f9(this,t)||e.frozen.delete(t)}return f9(this,t)},has:function(t){if(pe(t)&&!Cu(t)){var e=n0(this);return e.frozen||(e.frozen=new of),r0(this,t)||e.frozen.has(t)}return r0(this,t)},get:function(t){if(pe(t)&&!Cu(t)){var e=n0(this);return e.frozen||(e.frozen=new of),r0(this,t)?d9(this,t):e.frozen.get(t)}return d9(this,t)},set:function(t,e){if(pe(t)&&!Cu(t)){var n=n0(this);n.frozen||(n.frozen=new of),r0(this,t)?p9(this,t,e):n.frozen.set(t,e)}else p9(this,t,e);return this}})}var gb=Ae("iterator"),h9=Ae("toStringTag"),vb=ad.values,_I=function(t,e){if(t){if(t[gb]!==vb)try{Zr(t,gb,vb)}catch{t[gb]=vb}if(t[h9]||Zr(t,h9,e),cv[e]){for(var n in ad)if(t[n]!==ad[n])try{Zr(t,n,ad[n])}catch{t[n]=ad[n]}}}};for(var mb in cv)_I(Z[mb]&&Z[mb].prototype,mb);_I(iI,"DOMTokenList");var ME=new WeakMap,zE=new WeakMap,SD=new WeakMap,sm=new WeakMap,$E=new WeakMap,vv=new WeakMap,xD=new WeakMap,HE=new WeakMap,og=new WeakMap,g9=new WeakMap,v9=new WeakMap,m9=new WeakMap,y9=new WeakMap,op=new WeakMap,Ql=new WeakMap,AD=new WeakMap,mv=new WeakMap,VE=new WeakMap,yv=new WeakMap,ig=new WeakMap,FI=new WeakMap,Iu=new WeakMap,yb=new WeakMap,b9=new WeakMap,bb=new WeakMap,RJ=mc.find,w9=!0;"find"in[]&&Array(1).find(function(){w9=!1}),Se({target:"Array",proto:!0,forced:w9},{find:function(t){return RJ(this,t,arguments.length>1?arguments[1]:void 0)}}),yd("find"),Se({global:!0},{globalThis:Z});const MJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];nv&&(B.fn.css=nv),_r&&(B.fn.append=_r),Rl&&(B.fn.addClass=Rl),Ml&&(B.fn.removeClass=Ml),zl&&(B.fn.hasClass=zl),To&&(B.fn.on=To),Oa&&(B.fn.focus=Oa),Br&&(B.fn.attr=Br),Jg&&(B.fn.removeAttr=Jg),Hl&&(B.fn.hide=Hl),ev&&(B.fn.show=ev),jA&&(B.fn.offset=jA),Qg&&(B.fn.width=Qg),tv&&(B.fn.height=tv),Vl&&(B.fn.parent=Vl),iv&&(B.fn.parents=iv),NA&&(B.fn.is=NA),$l&&(B.fn.dataset=$l),Fo&&(B.fn.val=Fo),ov&&(B.fn.text=ov),Aa&&(B.fn.html=Aa),Wl&&(B.fn.children=Wl),Gl&&(B.fn.remove=Gl),Ul&&(B.fn.find=Ul),rv&&(B.fn.each=rv),ql&&(B.fn.empty=ql);var wo,Cn,OD=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Hr=function(t){return is(t)&&t.nodeType===1},is=function(t){var e=OD(t);return!!e&&t instanceof e.Node},E9=function(t){var e=t&&t.anchorNode&&OD(t.anchorNode);return!!e&&t instanceof e.Selection},TI=function(t){return is(t)&&t.nodeType===3},UE=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},PI=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(is(r=i)&&r.nodeType===8||Hr(i)&&i.childNodes.length===0||Hr(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]},zJ=function(t,e,n){return Ut(PI(t,e,n),1)[0]},$J=function t(e){var n,r,o="";if(TI(e)&&e.nodeValue)return e.nodeValue;if(Hr(e)){try{for(var i=Cr(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+=`
  49. `)}return o};function jI(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||jI(o,e)}}function D9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==wo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Cn=wo||(wo={}))[Cn.ELEMENT_NODE=1]="ELEMENT_NODE",Cn[Cn.TEXT_NODE=3]="TEXT_NODE",Cn[Cn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Cn[Cn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Cn[Cn.COMMENT_NODE=8]="COMMENT_NODE",Cn[Cn.DOCUMENT_NODE=9]="DOCUMENT_NODE",Cn[Cn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Cn[Cn.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var WE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),bd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),uf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),HJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),VJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),GE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),sf=!VJ&&!HJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",O={getWindow:function(t){var e=FI.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=ig.get(e);return n||(n=new a9,ig.set(e,n)),n},setNewKey:function(t){var e=new a9;ig.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Ql.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=op.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=O.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return Ql.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=O.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[O.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=AD.get(t);else{var r=O.findKey(t,e);n=VE.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=O.toDOMNode(t,t);try{r=Hr(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=M.isBackward(e),i=O.toDOMPoint(t,n),a=M.isCollapsed(e)?i:O.toDOMPoint(t,r),u=O.getWindow(t).document.createRange(),s=Ut(o?a:i,2),l=s[0],c=s[1],f=Ut(o?i:a,2),d=f[0],p=f[1],v=!!(Hr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),m=!!(Hr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,m?1:p),u},toDOMPoint:function(t,e){var n,r,o,i=Ut(E.node(t,e.path),1)[0],a=O.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Cr(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),m=s+(v==null?p:parseInt(v,10));if(e.offset<=m){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=m}}}catch(g){n={error:g}}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=Hr(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?mv.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=O.toSlateNode(t,e.target),u=O.findPath(t,a);if(E.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=E.point(t,u,{edge:l?"start":"end"}),f=l?E.before(t,c):E.after(t,c);if(f)return E.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return O.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((E9(e)?e.anchorNode:e.startContainer)&&(E9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=GE&&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=O.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:O.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return M.isExpanded(d)&&M.isForward(d)&&Hr(i)&&E.void(t,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Ut(o?e:function(h){var b,w=Ut(h,2),D=w[0],S=w[1];if(Hr(D)&&D.childNodes.length){var C=S===D.childNodes.length,A=C?S-1:S;for(D=(b=Ut(PI(D,A,C?"backward":"forward"),2))[0],C=(A=b[1])<S;Hr(D)&&D.childNodes.length;){var _=C?D.childNodes.length-1:0;D=zJ(D,_,C?"backward":"forward")}S=C&&D.textContent!=null?D.textContent.length:0}return[D,S]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var m=O.getWindow(t).document.createRange();m.setStart(c,0),m.setEnd(u,s);var g=m.cloneContents();LE(LE([],Ut(FA(g.querySelectorAll("[data-slate-zero-width]")))),Ut(FA(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||bd&&(!((r=v.textContent)===null||r===void 0)&&r.endsWith(`
  50. `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=O.toSlateNode(t,c);return{path:O.findPath(t,y),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return E.hasPath(t,n.path)&&E.hasPath(t,r.path)},getNodeType:function(t){return ft.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=E.nodes(t,{universal:!0});try{for(var i=Cr(o),a=i.next();!a.done;a=i.next()){var u=Ut(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=Ut(E.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ut(E.nodes(t,{match:function(r){return st.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Ut(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Ut(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(E.isEnd(t,n.anchor,e)||E.isEnd(t,n.focus,e))},getTextarea:function(t){var e=ME.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return sm.get(t)||null},getHoverbar:function(t){return vv.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=O.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Cr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(m){e={error:m}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(m){return!(!ft.isElement(m)||t.isInline(m))},universal:!0});try{for(var f=Cr(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];jI(O.toDOMNode(t,v),function(m,g){var y=B(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(m)})}}}catch(m){r={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Cr(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||M.isExpanded(e))return!1;var n=O.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=Ut(n,1)[0].children;return r.length===1&&r[0].text===""}},UJ=1,II={},ip={},WJ=mc.filter,GJ=om("filter");Se({target:"Array",proto:!0,forced:!GJ},{filter:function(t){return WJ(this,t,arguments.length>1?arguments[1]:void 0)}});var qE=`
  51. \v\f\r                 \u2028\u2029\uFEFF`,C9=ht("".replace),bv="["+qE+"]",qJ=RegExp("^"+bv+bv+"*"),KJ=RegExp(bv+bv+"*$"),wb=function(t){return function(e){var n=ue(Fr(e));return 1&t&&(n=C9(n,qJ,"")),2&t&&(n=C9(n,KJ,"")),n}},YJ={start:wb(1),end:wb(2),trim:wb(3)},XJ=gc.PROPER,ZJ=YJ.trim;Se({target:"String",proto:!0,forced:function(t){return Qt(function(){return!!qE[t]()||"​…᠎"[t]()!=="​…᠎"||XJ&&qE[t].name!==t})}("trim")},{trim:function(){return ZJ(this)}});var KE=[],NI={};function JJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var ap,Ms,S9,Eb,wv=Z.Promise,x9=Ae("species"),kD=function(t){var e=bs(t),n=oo.f;an&&e&&!e[x9]&&n(e,x9,{configurable:!0,get:function(){return this}})},QJ=Z.TypeError,tQ=Ae("species"),LI=function(t,e){var n,r=Me(t).constructor;return r===void 0||(n=Me(r)[tQ])==null?e:function(o){if(nm(o))return o;throw QJ(X1(o)+" is not a constructor")}(n)},RI=ht([].slice),MI=/(?:ipad|iphone|ipod).*applewebkit/i.test(Cl),la=Jr(Z.process)=="process",YE=Z.setImmediate,XE=Z.clearImmediate,eQ=Z.process,Db=Z.Dispatch,nQ=Z.Function,A9=Z.MessageChannel,rQ=Z.String,Cb=0,wd={};try{ap=Z.location}catch{}var BD=function(t){if(Re(wd,t)){var e=wd[t];delete wd[t],e()}},Sb=function(t){return function(){BD(t)}},O9=function(t){BD(t.data)},k9=function(t){Z.postMessage(rQ(t),ap.protocol+"//"+ap.host)};YE&&XE||(YE=function(t){var e=RI(arguments,1);return wd[++Cb]=function(){ED(ie(t)?t:nQ(t),void 0,e)},Ms(Cb),Cb},XE=function(t){delete wd[t]},la?Ms=function(t){eQ.nextTick(Sb(t))}:Db&&Db.now?Ms=function(t){Db.now(Sb(t))}:A9&&!MI?(Eb=(S9=new A9).port2,S9.port1.onmessage=O9,Ms=os(Eb.postMessage,Eb)):Z.addEventListener&&ie(Z.postMessage)&&!Z.importScripts&&ap&&ap.protocol!=="file:"&&!Qt(k9)?(Ms=k9,Z.addEventListener("message",O9,!1)):Ms="onreadystatechange"in Zd("script")?function(t){OE.appendChild(Zd("script")).onreadystatechange=function(){OE.removeChild(this),BD(t)}}:function(t){setTimeout(Sb(t),0)});var lf,bu,Ed,fl,xb,Ab,Ob,B9,zI={set:YE,clear:XE},oQ=/ipad|iphone|ipod/i.test(Cl)&&Z.Pebble!==void 0,iQ=/web0s(?!.*chrome)/i.test(Cl),aQ=Qp.f,kb=zI.set,_9=Z.MutationObserver||Z.WebKitMutationObserver,F9=Z.document,T9=Z.process,o0=Z.Promise,P9=aQ(Z,"queueMicrotask"),$I=P9&&P9.value;$I||(lf=function(){var t,e;for(la&&(t=T9.domain)&&t.exit();bu;){e=bu.fn,bu=bu.next;try{e()}catch(n){throw bu?fl():Ed=void 0,n}}Ed=void 0,t&&t.enter()},MI||la||iQ||!_9||!F9?!oQ&&o0&&o0.resolve?((Ob=o0.resolve(void 0)).constructor=o0,B9=os(Ob.then,Ob),fl=function(){B9(lf)}):la?fl=function(){T9.nextTick(lf)}:(kb=os(kb,Z),fl=function(){kb(lf)}):(xb=!0,Ab=F9.createTextNode(""),new _9(lf).observe(Ab,{characterData:!0}),fl=function(){Ab.data=xb=!xb}));var Bb,j9,HI,I9,VI=$I||function(t){var e={fn:t,next:void 0};Ed&&(Ed.next=e),bu||(bu=e,fl()),Ed=e},uQ=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)},_D={f:function(t){return new uQ(t)}},ZE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},sQ=typeof window=="object",UI=zI.set,lQ=Ae("species"),mo="Promise",N9=An.getterFor(mo),cQ=An.set,fQ=An.getterFor(mo),pu=wv&&wv.prototype,Do=wv,cf=pu,WI=Z.TypeError,JE=Z.document,FD=Z.process,xl=_D.f,dQ=xl,pQ=!!(JE&&JE.createEvent&&Z.dispatchEvent),GI=ie(Z.PromiseRejectionEvent),qI=!1,Dd=Qd(mo,function(){var t=J1(Do),e=t!==String(Do);if(!e&&Xd===66)return!0;if(Xd>=51&&/native code/.test(t))return!1;var n=new Do(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[lQ]=r,!(qI=n.then(function(){})instanceof r)||!e&&sQ&&!GI}),hQ=Dd||!hD(function(t){Do.all(t).catch(function(){})}),KI=function(t){var e;return!(!pe(t)||!ie(e=t.then))&&e},TD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;VI(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,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&vQ(t),t.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(WI("Promise-chain cycle")):(u=KI(a))?Yt(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&gQ(t)})}},YI=function(t,e,n){var r,o;pQ?((r=JE.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Z.dispatchEvent(r)):r={promise:e,reason:n},!GI&&(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)},gQ=function(t){Yt(UI,Z,function(){var e,n=t.facade,r=t.value;if(L9(t)&&(e=ZE(function(){la?FD.emit("unhandledRejection",r,n):YI("unhandledrejection",n,r)}),t.rejection=la||L9(t)?2:1,e.error))throw e.value})},L9=function(t){return t.rejection!==1&&!t.parent},vQ=function(t){Yt(UI,Z,function(){var e=t.facade;la?FD.emit("rejectionHandled",e):YI("rejectionhandled",e,t.value)})},yl=function(t,e,n){return function(r){t(e,r,n)}},Al=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,TD(t,!0))},QE=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw WI("Promise can't be resolved itself");var r=KI(e);r?VI(function(){var o={done:!1};try{Yt(r,e,yl(QE,o,t),yl(Al,o,t))}catch(i){Al(o,i,t)}}):(t.value=e,t.state=1,TD(t,!1))}catch(o){Al({done:!1},o,t)}}};if(Dd&&(cf=(Do=function(t){um(this,cf),ka(t),Yt(Bb,this);var e=N9(this);try{t(yl(QE,e),yl(Al,e))}catch(n){Al(e,n)}}).prototype,(Bb=function(t){cQ(this,{type:mo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Jl(cf,{then:function(t,e){var n=fQ(this),r=n.reactions,o=xl(LI(this,Do));return o.ok=!ie(t)||t,o.fail=ie(e)&&e,o.domain=la?FD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&TD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),j9=function(){var t=new Bb,e=N9(t);this.promise=t,this.resolve=yl(QE,e),this.reject=yl(Al,e)},_D.f=xl=function(t){return t===Do||t===HI?new j9(t):dQ(t)},ie(wv)&&pu!==Object.prototype)){I9=pu.then,qI||(Gn(pu,"then",function(t,e){var n=this;return new Do(function(r,o){Yt(I9,n,r,o)}).then(t,e)},{unsafe:!0}),Gn(pu,"catch",cf.catch,{unsafe:!0}));try{delete pu.constructor}catch{}Zl&&Zl(pu,cf)}Se({global:!0,wrap:!0,forced:Dd},{Promise:Do}),hv(Do,mo,!1),kD(mo),HI=bs(mo),Se({target:mo,stat:!0,forced:Dd},{reject:function(t){var e=xl(this);return Yt(e.reject,void 0,t),e.promise}}),Se({target:mo,stat:!0,forced:Dd},{resolve:function(t){return function(e,n){if(Me(e),pe(n)&&n.constructor===e)return n;var r=_D.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Se({target:mo,stat:!0,forced:hQ},{all:function(t){var e=this,n=xl(e),r=n.resolve,o=n.reject,i=ZE(function(){var a=ka(e.resolve),u=[],s=0,l=1;rp(t,function(c){var f=s++,d=!1;l++,Yt(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=xl(e),r=n.reject,o=ZE(function(){var i=ka(e.resolve);rp(t,function(a){Yt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var zs=im.UNSUPPORTED_Y,mQ=Math.min,XI=[].push,yQ=ht(/./.exec),$s=ht(XI),ff=ht("".slice);function Tr(t){Promise.resolve().then(t)}function ZI(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=E.isVoid(r,n),l="";s||(l=u.map(function(y){return ZI(y,r)}).join(""));var c=function(y){return NI[y]||JJ}(i),f=c(n,l,r),d="";if(d=typeof f=="string"?f:f.html||"",s||KE.forEach(function(y){return d=y(n,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,m=f.suffix,g=m===void 0?"":m;return v&&(d=v+d),g&&(d+=g),d}(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," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(i);var a=O.getParentsNodes(r,n).some(function(s){return O.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=O.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return KE.forEach(function(s){return i=s(n,i)}),i}(t,e)}function JI(t){return"w-e-element-"+t}DD("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=ue(Fr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!cD(o))return Yt(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Yt(ep,v,a))&&!((l=v.lastIndex)>p&&($s(f,ff(a,p,s.index)),s.length>1&&s.index<a.length&&ED(XI,f,RE(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&yQ(v,"")||$s(f,""):$s(f,ff(a,p)),f.length>u?RE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Yt(e,this,o,i)}:e,[function(o,i){var a=Fr(this),u=o==null?void 0:rs(o,t);return u?Yt(u,o,a,i):Yt(r,ue(a),o,i)},function(o,i){var a=Me(this),u=ue(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=LI(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(zs?"g":"y"),d=new l(zs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return np(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=zs?0:m;var y,h=np(d,zs?ff(u,m):u);if(h===null||(y=mQ(vc(d.lastIndex+(zs?m:0)),u.length))===v)m=CD(u,m,c);else{if($s(g,ff(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if($s(g,h[b]),g.length===p)return g;m=v=y}}return $s(g,ff(u,v)),g}]},!!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"}),zs);var R9=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},M9=function(t,e,n){var r=O.toDOMRange(t,e).getBoundingClientRect(),o=O.toDOMRange(t,n).getBoundingClientRect();return R9(r,o)&&R9(o,r)},QI=["span","b","strong","i","em","s","strike","u","font","sub","sup"],tN=[],PD=[],Ev={},bQ=oo.f,wQ=Jd.f,EQ=An.enforce,DQ=Ae("match"),ni=Z.RegExp,dl=ni.prototype,CQ=Z.SyntaxError,SQ=ht(lD),xQ=ht(dl.exec),i0=ht("".charAt),z9=ht("".replace),$9=ht("".indexOf),AQ=ht("".slice),OQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Nu=/a/g,_b=/a/g,kQ=new ni(Nu)!==Nu,eN=im.MISSED_STICKY,BQ=im.UNSUPPORTED_Y,_Q=an&&(!kQ||eN||yD||bD||Qt(function(){return _b[DQ]=!1,ni(Nu)!=Nu||ni(_b)==_b||ni(Nu,"i")!="/a/i"}));if(Qd("RegExp",_Q)){for(var Fi=function(t,e){var n,r,o,i,a,u,s=ns(dl,this),l=cD(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===Fi)return t;if((l||ns(dl,t))&&(t=t.source,c&&(e="flags"in d?d.flags:SQ(d))),t=t===void 0?"":ue(t),e=e===void 0?"":ue(e),d=t,yD&&"dotAll"in Nu&&(r=!!e&&$9(e,"s")>-1)&&(e=z9(e,/s/g,"")),n=e,eN&&"sticky"in Nu&&(o=!!e&&$9(e,"y")>-1)&&BQ&&(e=z9(e,/y/g,"")),bD&&(i=function(p){for(var v,m=p.length,g=0,y="",h=[],b={},w=!1,D=!1,S=0,C="";g<=m;g++){if((v=i0(p,g))==="\\")v+=i0(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":xQ(OQ,AQ(p,g+1))&&(g+=2,D=!0),y+=v,S++;continue;case(v===">"&&D):if(C===""||Re(b,C))throw new CQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,S],D=!1,C="";continue}D?C+=v:y+=v}return[y,h]}(t),t=i[0],f=i[1]),a=xI(ni(t,e),s?this:dl,Fi),(r||o||f.length)&&(u=EQ(a),r&&(u.dotAll=!0,u.raw=Fi(function(p){for(var v,m=p.length,g=0,y="",h=!1;g<=m;g++)(v=i0(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+i0(p,++g);return y}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{Zr(a,"source",d===""?"(?:)":d)}catch{}return a},FQ=function(t){t in Fi||bQ(Fi,t,{configurable:!0,get:function(){return ni[t]},set:function(e){ni[t]=e}})},H9=wQ(ni),V9=0;H9.length>V9;)FQ(H9[V9++]);dl.constructor=Fi,Fi.prototype=dl,Gn(Z,"RegExp",Fi)}kD("RegExp");var TQ=new RegExp(" ","g");function nN(t){return t.replace(TQ," ")}function U9(t,e){var n=t.length;if(n){var r=t[n-1];if(st.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function PQ(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function Fb(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!==wo.ELEMENT_NODE){if(l.nodeType===wo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
  52. `)>=0)return;c&&(c=nN(c),U9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(U9(u,`
  53. `)||u.push({text:`
  54. `}));var f=jD(B(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in Ev)if(i[0].matches(a))return Ev[a];return PQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),PD.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,`
  55. `));var n=t[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=nN(n)};return PD.forEach(function(o){r=o(t[0],r,e)}),r}function jD(t,e){tN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=D9(t);return n==="span"?t.attr("data-w-e-type")?Fb(t,e):Tb(t,e):n==="code"?D9(t.parent())==="pre"?Fb(t,e):Tb(t,e):QI.includes(n)?Tb(t,e):Fb(t,e)}function rN(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function W9(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=jD(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var jQ=oo.f,G9=am.fastKey,q9=An.set,Pb=An.getterFor,IQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){um(l,i),q9(l,{type:e,index:rm(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&rp(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=Pb(e),u=function(l,c,f){var d,p,v=a(l),m=s(l,c);return m?m.value=f:(v.last=m={index:p=G9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=m),d&&(d.next=m),an?v.size++:l.size++,p!=="F"&&(v.index[p]=m)),l},s=function(l,c){var f,d=a(l),p=G9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Jl(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,an?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),an?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=os(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Jl(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),an&&jQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Pb(e),i=Pb(r);vD(t,e,function(a,u){q9(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),kD(e)}};AI("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},IQ);var K9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Y9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var NQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Ut(M.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!M.isCollapsed(o)||s){var c=O.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(d=D)}),l){var p=Ut(l,1)[0],v=c.cloneRange(),m=O.toDOMNode(e,p);v.setEndAfter(m),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var S=D.getAttribute("data-slate-zero-width")==="n";D.textContent=S?`
  56. `:""}),TI(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var y=e.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));d.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",$J(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/),d=!1;try{for(var p=Cr(f),v=p.next();!v.done;v=p.next()){var m=v.value;d&&N.splitNodes(e,{always:!0}),n(m),d=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},e},ud=function(t){return t!=null},LQ={object:!0,function:!0,undefined:!0},RQ=/^\s*class[\s{/}]/,MQ=Function.prototype.toString,X9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!ud(r)&&hasOwnProperty.call(LQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!RQ.test(MQ.call(t))},ID=function(t){return t!=null},zQ=Object.keys,$Q=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return zQ(ID(t)?Object(t):t)},HQ=function(t){if(!ID(t))throw new TypeError("Cannot use null or undefined");return t},VQ=Math.max,Z9=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=VQ(arguments.length,2);for(t=Object(HQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)$Q(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},UQ=Array.prototype.forEach,WQ=Object.create,GQ=function(t,e){var n;for(n in t)e[n]=t[n]},J9=function(t){var e=WQ(null);return UQ.call(arguments,function(n){ID(n)&&GQ(Object(n),e)}),e},jb="razdwatrzy",qQ=String.prototype.indexOf,df=typeof jb.contains=="function"&&jb.contains("dwa")===!0&&jb.contains("foo")===!1?String.prototype.contains:function(t){return qQ.call(this,t,arguments[1])>-1},a0=Zp(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],ud(n)?(o=df.call(n,"c"),i=df.call(n,"e"),a=df.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?Z9(J9(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],ud(r)?X9(r)?ud(o)?X9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,ud(n)?(i=df.call(n,"c"),a=df.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?Z9(J9(u),s):s}}),Ib=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},KQ=Zp(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var h;return Ib(y),v.call(this,"__ee__")?h=this.__ee__:(h=m.value=f(null),d(this,"__ee__",m),m.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},r=function(g,y){var h,b;return Ib(y),b=this,n.call(this,g,h=function(){o.call(b,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(g,y){var h,b,w,D;if(Ib(y),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(D=0;w=b[D];++D)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[g]=b[D?0:1]:b.splice(D,1));else b!==y&&b.__eeOnceListener__!==y||delete h[g];return this},i=function(g){var y,h,b,w,D;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),y=1;y<h;++y)D[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)l.call(b,this,D)}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,D=new Array(h-1),y=1;y<h;++y)D[y-1]=arguments[y];l.call(w,this,D)}},a={on:n,once:r,off:o,emit:i},u={on:a0(n),once:a0(r),off:a0(o),emit:a0(i)},s=p({},u),t.exports=e=function(g){return g==null?f(s):p(Object(g),u)},e.methods=a});function u0(t){var e=b9.get(t);return e==null&&(e=KQ(),b9.set(t,e)),e}var Dv=new WeakMap;function Q9(t,e){var n=Dv.get(t);n==null&&(n=new Set,Dv.set(t,n)),n.add(e)}function YQ(t){return Dv.get(t)||new Set}function XQ(t){Dv.set(t,new Set)}function ND(t){var e=O.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function LD(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=ND(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=O.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var m=f+l;m<0&&(m=0),c.top=m+5+"px"}return c}function RD(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=yv.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 d=function(C){var A=[];A.push(C);for(var _=0;A.length>0;){var z=A.pop();if(z==null||++_>1e4)break;var U=z.nodeName;if(z.nodeType===1){var $=U.toLowerCase();if(MJ.includes($)||$==="iframe"||$==="video")return z;var q=z.children||[],K=q.length;if(K)for(var I=K-1;I>=0;I--)A.push(q[I])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=ND(t);if(v==null)return r;var m,g=v.top,y=v.left,h=v.width,b=v.height,w={},D=s-g,S=l-y;if(n==="bar")return w.left=S+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?S>(h-f)/2?w.right=h-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((m=D)<0&&(m=0),w.top=m+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((m=D+c)<0&&(m=0),w.top=m+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function t6(t,e){Tr(function(){var n=ND(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(),d=e.height(),p=l-o,v=c-i,m=e.attr("style");if(m.indexOf("top")>=0&&(r=p+d-u)>0){var g=e.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),e.css("top",y+"px")}if(m.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(m.indexOf("left")>=0&&(r=v+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),e.css("left",D+"px")}if(m.indexOf("right")>=0&&c<0){var S=e.css("right"),C=parseInt(S.toString())-Math.abs(c);e.css("right",C+"px")}}})}var ZQ=om("slice"),JQ=Ae("species"),Nb=Z.Array,QQ=Math.max;Se({target:"Array",proto:!0,forced:!ZQ},{slice:function(t,e){var n,r,o,i=za(this),a=ws(i),u=Yl(t,a),s=Yl(e===void 0?a:e,a);if(fv(i)&&(n=i.constructor,(nm(n)&&(n===Nb||fv(n.prototype))||pe(n)&&(n=n[JQ])===null)&&(n=void 0),n===Nb||n===void 0))return RI(i,u,s);for(r=new(n===void 0?Nb:n)(QQ(s-u,0)),o=0;u<s;u++,o++)u in i&&tp(r,o,i[u]);return r.length=o,r}});var ttt=Qp.f,tO=ht("".startsWith),ett=ht("".slice),ntt=Math.min,oN=dD("startsWith"),rtt=!oN&&!!function(){var t=ttt(String.prototype,"startsWith");return t&&!t.writable}();Se({target:"String",proto:!0,forced:!rtt&&!oN},{startsWith:function(t){var e=ue(Fr(this));fD(t);var n=vc(ntt(arguments.length>1?arguments[1]:void 0,e.length)),r=ue(t);return tO?tO(e,r,n):ett(e,n,n+r.length)===r}});var Hs=Object.assign,eO=Object.defineProperty,ott=ht([].concat),nO=!Hs||Qt(function(){if(an&&Hs({b:1},Hs(eO({},"a",{enumerable:!0,get:function(){eO(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}),Hs({},t)[n]!=7||Sl(Hs({},e)).join("")!=r})?function(t,e){for(var n=Ma(t),r=arguments.length,o=1,i=hI.f,a=fI.f;r>o;)for(var u,s=em(arguments[o++]),l=i?ott(Sl(s),i(s)):Sl(s),c=l.length,f=0;c>f;)u=l[f++],an&&!Yt(a,s,u)||(n[u]=s[u]);return n}:Hs;Se({target:"Object",stat:!0,forced:Object.assign!==nO},{assign:nO});var itt=["props","attrs","style","dataset","on","hook"];function iN(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(!itt.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=BK(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.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"&&iN(i)})}var e6=[],aN={};function att(t,e,n){return wt(n.isInline(t)?"span":"div",null,e)}function rO(t,e){return e===void 0&&(e=!1),wt("span",{"data-slate-string":!0},e?t+`
  57. `: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 n6(t,e,n,r){return op.set(t,e),Ql.set(t,n),ft.isElement(t)?function(o,i){var a,u=O.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=JI(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,m=function(D){return aN[D]||att}(d);a=l?null:v.map(function(D,S){return n6(D,S,o,i)});var g=m(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=Ut(Q.texts(o),1),b=Ut(h[0],1)[0],w=wt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},n6(b,0,o,i));g=wt(y,{style:{position:"relative"}},g,w),op.set(b,0),Ql.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=function(D,S){var C=S;return e6.forEach(function(A){C=A(D,S)}),C}(o,g)),Tr(function(){var D=UE(c);D!=null&&(VE.set(u,D),yv.set(o,D),mv.set(D,o))}),g}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=O.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=O.findPath(a,o),c=s([o,l]),f=st.decorations(o,c),d=f.map(function(m,g){var y=function(h,b,w,D,S){b===void 0&&(b=!1);var C=h.text,A=O.findPath(S,w),_=j.parent(A);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(D)?Lb(Q.string(D).length):C!==""||D.children[D.children.length-1]!==w||S.isInline(D)||E.string(S,_)!==""?C===""?Lb():b&&C.slice(-1)===`
  58. `?rO(C,!0):rO(C):Lb(0,!0)}(m,g===f.length-1,o,i,a);return y=function(h,b){var w=b;return e6.forEach(function(D){w=D(h,w)}),w}(m,y),wt("span",{"data-slate-leaf":!0},y)}),p=function(m){return"w-e-text-"+m}(u.id),v=wt("span",{"data-slate-node":"text",id:p,key:u.id},d);return Tr(function(){var m=UE(p);m!=null&&(VE.set(u,m),yv.set(o,m),mv.set(m,o))}),v}(t,n,r)}function utt(t,e){var n,r=t.$scroll,o=function(m){return"w-e-textarea-"+m}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(m,g){return g===void 0&&(g=!1),Kl("div#"+m,{props:{contentEditable:!g}})}(o,a),l=e.children||[];s.children=l.map(function(m,g){var y=n6(m,g,e,e);return iN(y),y});var c=v9.get(t);if(c==null&&(c=!0),c){var f=function(m,g){return B(`<div
  59. id="`+m+`"
  60. data-slate-editor
  61. data-slate-node="value"
  62. suppressContentEditableWarning
  63. role="textarea"
  64. spellCheck="true"
  65. autoCorrect="true"
  66. autoCapitalize="true"
  67. ></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(p=Zq([Qq,rK,iK,tK,nK,Jq]))(n,s),v9.set(t,!1),m9.set(t,p)}else{var d=y9.get(t),p=m9.get(t);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=UE(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var v=OD(n);v&&FI.set(e,v)}AD.set(e,n),yv.set(e,n),mv.set(n,e),y9.set(t,s)}}function oO(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function iO(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 iO(n.overflowY,e)||iO(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function 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 aO(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(ot){return ot!==a};if(!oO(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;oO(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 d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=t.getBoundingClientRect(),y=g.height,h=g.width,b=g.top,w=g.right,D=g.bottom,S=g.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+y/2,A=i==="center"?S+h/2:i==="end"?w:S,_=[],z=0;z<c.length;z++){var U=c[z],$=U.getBoundingClientRect(),q=$.height,K=$.width,I=$.top,L=$.right,X=$.bottom,lt=$.left;if(r==="if-needed"&&b>=0&&S>=0&&D<=p&&w<=d&&b>=I&&D<=X&&S>=lt&&w<=L)return _;var it=getComputedStyle(U),at=parseInt(it.borderLeftWidth,10),k=parseInt(it.borderTopWidth,10),x=parseInt(it.borderRightWidth,10),T=parseInt(it.borderBottomWidth,10),H=0,Y=0,W="offsetWidth"in U?U.offsetWidth-U.clientWidth-at-x:0,ut="offsetHeight"in U?U.offsetHeight-U.clientHeight-k-T:0;if(l===U)H=o==="start"?C:o==="end"?C-p:o==="nearest"?s0(m,m+p,p,k,T,m+C,m+C+y,y):C-p/2,Y=i==="start"?A:i==="center"?A-d/2:i==="end"?A-d:s0(v,v+d,d,at,x,v+A,v+A+h,h),H=Math.max(0,H+m),Y=Math.max(0,Y+v);else{H=o==="start"?C-I-k:o==="end"?C-X+T+ut:o==="nearest"?s0(I,X,q,k,T+ut,C,C+y,y):C-(I+q/2)+ut/2,Y=i==="start"?A-lt-at:i==="center"?A-(lt+K/2)+W/2:i==="end"?A-L+x+W:s0(lt,L,K,at,x+W,A,A+h,h);var gt=U.scrollLeft,mt=U.scrollTop;C+=mt-(H=Math.max(0,Math.min(mt+H,U.scrollHeight-q+ut))),A+=gt-(Y=Math.max(0,Math.min(gt+Y,U.scrollWidth-K+W)))}_.push({el:U,top:H,left:Y})}return _}function uO(t){return t===Object(t)&&Object.keys(t).length!==0}function br(t,e){return is(e)&&O.hasDOMNode(t,e,{editable:!0})}function sO(t,e){if(t.getConfig().readOnly)return!1;var n=pl(t,e)&&O.toSlateNode(t,e);return E.isVoid(t,n)}function pl(t,e){return is(e)&&O.hasDOMNode(t,e)}function uN(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=O.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=AD.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=O.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&M.equals(l,r)){var c=!0;if(M.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!r||O.hasRange(e,r)){t.isUpdatingSelection=!0;var m=r&&O.toDOMRange(e,r);if(m){M.isBackward(r)?i.setBaseAndExtent(m.endContainer,m.endOffset,m.startContainer,m.startOffset):i.setBaseAndExtent(m.startContainer,m.startOffset,m.endContainer,m.endOffset);var g=m.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=m.getBoundingClientRect.bind(m);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(uO(b)&&typeof b.behavior=="function")return b.behavior(w?[]:aO(h,b));if(!w){var D=function(S){return S===!1?{block:"end",inline:"nearest"}:uO(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,C){C===void 0&&(C="auto");var A="scrollBehavior"in document.body.style;S.forEach(function(_){var z=_.el,U=_.top,$=_.left;z.scroll&&A?z.scroll({top:U,left:$,behavior:C}):(z.scrollTop=U,z.scrollLeft=$)})})(aO(h,D),D.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){m&&bd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=O.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Mb=new WeakMap,lO=new WeakMap,stt={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"},ltt={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"},ctt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},be=function(t){var e=stt[t],n=ltt[t],r=ctt[t],o=e&&Ny(e),i=n&&Ny(n),a=r&&Ny(r);return function(u){return!(!o||!o(u))||!!(WE&&i&&i(u))||!(WE||!a||!a(u))}},De={isBold:be("bold"),isCompose:be("compose"),isMoveBackward:be("moveBackward"),isMoveForward:be("moveForward"),isDeleteBackward:be("deleteBackward"),isDeleteForward:be("deleteForward"),isDeleteLineBackward:be("deleteLineBackward"),isDeleteLineForward:be("deleteLineForward"),isDeleteWordBackward:be("deleteWordBackward"),isDeleteWordForward:be("deleteWordForward"),isExtendBackward:be("extendBackward"),isExtendForward:be("extendForward"),isExtendLineBackward:be("extendLineBackward"),isExtendLineForward:be("extendLineForward"),isItalic:be("italic"),isMoveLineBackward:be("moveLineBackward"),isMoveLineForward:be("moveLineForward"),isMoveWordBackward:be("moveWordBackward"),isMoveWordForward:be("moveWordForward"),isRedo:be("redo"),isSplitBlock:be("splitBlock"),isTransposeCharacter:be("transposeCharacter"),isUndo:be("undo"),isTab:be("tab"),isSelectAll:be("selectAll")};function Ue(t){t.preventDefault()}var ftt={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(sf&&!o&&br(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=Ut(r.getTargetRanges(),1)[0];if(s){var l=O.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&M.equals(i,l)||N.select(n,l)}}if(i&&M.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!bb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&br(n,r.target)){var a=O.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===O.toDOMNode(n,n)||Hr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&is(u)&&O.hasDOMNode(n,u)){var s=O.toSlateNode(n,u);if(ft.isElement(s)&&!n.isVoid(s))return}if(uf){var l=a.getSelection();l==null||l.removeAllRanges()}Iu.delete(n)}}}},focus:function(t,e,n){var r=O.toDOMNode(n,n),o=O.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,bd&&t.target!==r?r.focus():Iu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&pl(n,t.target)&&is(t.target)){var r=O.toSlateNode(n,t.target),o=O.findPath(n,r);if(E.hasPath(n,o)&&Q.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=E.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(br(n,t.target)){var r=n.selection;if(r&&M.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){uN(e,n,!0)})),r&&M.isCollapsed(r)){var o=O.toDOMRange(n,r).startContainer,i=o.textContent||"";Mb.set(n,i),lO.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(br(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(GE||bd)&&O.cleanExposedTexNodeInSelectionBlock(n);for(var i=M.isBackward(o)?o.focus:o.anchor,a=Ut(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ut(E.node(n,i.path.slice(0,u+1)),1)[0];if(ft.isElement(s)&&((uf||bd)&&s.type==="link"||s.type==="code")){O.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=O.getLeftLengthOfMaxLength(n);c<l.length?(O.toDOMRange(n,o).startContainer.textContent=Mb.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);uf||setTimeout(function(){var f=n.selection;if(f!=null){var d=lO.get(n);d!=null&&O.toDOMRange(n,f).startContainer!==d&&(d.textContent=Mb.get(n)||"")}})}}}},compositionupdate:function(t,e,n){br(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&br(n,r.target)){if(function(a,u){var s=sm.get(a),l=s&&s.getMenus(),c=vv.get(a),f=c&&c.getMenus(),d=Dr(Dr({},l),f);for(var p in d){var v=d[p],m=v.hotkey;if(m&&TK(m,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}}(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&&M.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(De.isMoveForward(r))return Ue(r),void(o&&M.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(De.isMoveWordBackward(r))return Ue(r),o&&M.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(De.isMoveWordForward(r))return Ue(r),o&&M.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(De.isSelectAll(r))return Ue(r),void n.selectAll();if(sf){if((GE||uf)&&o&&(De.isDeleteBackward(r)||De.isDeleteForward(r))&&M.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(ft.isElement(i)&&E.isVoid(n,i)&&E.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 E.insertBreak(n);if(De.isDeleteBackward(r))return Ue(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(De.isDeleteForward(r))return Ue(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(De.isDeleteLineBackward(r))return Ue(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(De.isDeleteLineForward(r))return Ue(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(De.isDeleteWordBackward(r))return Ue(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(De.isDeleteWordForward(r))return Ue(r),void(o&&M.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!sf&&!n.getConfig().readOnly&&br(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(br(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&&br(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(M.isExpanded(o))E.deleteFragment(n);else{var a=Q.parent(n,o.anchor.path);E.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){bb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&br(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void bb.set(n,!1);if(!sf||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(pl(n,t.target)){var r=O.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(pl(n,r.target)&&!n.getConfig().readOnly){var o=O.toSlateNode(n,r.target),i=O.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.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&&pl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&pl(n,r.target)&&o!=null&&!(sf&&uf&&o.files.length>0)){r.preventDefault();var i=n.selection,a=O.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()}}},dtt=1,ptt=function(){function t(e){var n=this;this.id=dtt++,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=es(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 d=O.findDocumentOrShadowRoot(s),p=d.activeElement,v=O.toDOMNode(s,s),m=d.getSelection();if(p===v?(u.latestElement=p,Iu.set(s,!0)):Iu.delete(s),!m)return N.deselect(s);var g=m.anchorNode,y=m.focusNode,h=br(s,g)||sO(s,g),b=br(s,y)||sO(s,y);if(h&&b){var w=O.toSlateRange(s,m,{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,Tr(function(){var a=n.editorInstance,u=O.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=zE.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&&(K5(ftt,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",es(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-O.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;utt(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),Tr(function(){uN(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function MD(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&&MD(e)}function zD(){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 sN(){return B('<div class="w-e-bar-divider"></div>')}function lN(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=WE?"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+`
  68. `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}DD("match",function(t,e,n){return[function(r){var o=Fr(this),i=r==null?void 0:rs(r,t);return i?Yt(i,r,o):new RegExp(r)[t](ue(o))},function(r){var o=Me(this),i=ue(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return np(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=np(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=CD(i,vc(o.lastIndex),u)),c++}return c===0?null:l}]});var $D=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,d=this.$button;if(f){var p=B(f);MD(p),d.append(p)}else d.text(u);lN(d,f,u,l,r),r&&f&&d.append(B('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",e),this.$elem.append(d),Tr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),rr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=rr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=rr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=rr(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),htt=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}($D),HD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=HE.get(e);n==null&&(n=new Set,HE.set(e,n)),n.add(this),og.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=og.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=og.get(this);e&&e.emit("modalOrPanelHide")}},t}(),gtt=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}(HD),vtt=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=zD();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=rr(this);if(this.dropPanel==null){var o=new gtt(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}($D),mtt=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=og.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}(HD);function ir(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 ytt=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=rr(this),r=this.menu.getModalPositionNode(n);return ft.isElement(r)?RD(n,r,"modal"):LD(n)},e.prototype.handleModal=function(){var n=rr(this),r=this.menu;if(this.modal==null){var o=new mtt(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=rr(this),i=this.menu;if(i.getModalContentElem!=null){var a=O.getTextarea(o),u=O.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||t6(o,n.$elem),setTimeout(function(){o.blur()})}},e}($D),btt=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}(HD),wtt=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 d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),lN(d,l,a,f,r),this.$elem.append(d),this.menu=n,Tr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),rr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=rr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new btt(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=rr(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=rr(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=zD();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=rr(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}(),cO=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);MD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=zD();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}(),fO=new WeakMap;function rr(t){var e=xD.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function cN(t,e,n){n===void 0&&(n=!1);var r=fO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new vtt(t,e,n):a?new ytt(t,e,n):new htt(t,e,n)}if(o==="select"&&(r=new wtt(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return fO.set(e,r),r}function Ett(t,e){var n=t.selection;return n!=null&&!M.isCollapsed(n)&&!O.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!st.isText(e)}var Dtt=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=zj(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),Tr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),O.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;Tr(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=sN();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=ip[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=cN(e,o);this.hoverbarItems.push(a),xD.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=RD(n,e,"bar");return r.css(o),void t6(n,r)}if(st.isText(e))return o=LD(n),r.css(o),void t6(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,d=l||function(m,g){return O.checkNodeType(g,u)},p=Ut(E.nodes(e,{match:function(m){return d(e,m)},universal:!0}),1),v=p[0];if(v!=null)return r=v[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=$E.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=Ett),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=O.findPath(null,e),o=O.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 fN(t,e,n,r){if(op.set(t,e),Ql.set(t,n),ft.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return fN(u,s,t,r)}),E.isVoid(r,t)){var i=Ut(Q.texts(t),1),a=Ut(i[0],1)[0];op.set(a,0),Ql.set(a,t)}}}function Ctt(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=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var S=D[D.length-1];ml.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of S)h.apply(C)})}),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var S=D[D.length-1];ml.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=S.map(ea.inverse).reverse();for(var A of C)h.apply(A)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:D,history:S}=h,{undos:C}=S,A=C[C.length-1],_=A&&A[A.length-1],z=((K,I)=>!(!I||K.type!=="set_selection"||I.type!=="set_selection"))(w,_),U=ml.isSaving(h),$=ml.isMerging(h);if(U==null&&(U=((K,I)=>K.type!=="set_selection"||K.properties!=null&&K.newProperties!=null)(w)),U){if($==null&&($=A!=null&&(D.length!==0||((K,I)=>K.type==="set_selection"||!(!I||K.type!=="insert_text"||I.type!=="insert_text"||K.offset!==I.offset+I.text.length||!j.equals(K.path,I.path))||!(!I||K.type!=="remove_text"||I.type!=="remove_text"||K.offset+K.text.length!==I.offset||!j.equals(K.path,I.path)))(w,_)||z)),A&&$)z&&A.pop(),A.push(w);else{var q=[w];C.push(q)}for(;C.length>100;)C.shift();(K=>K.type!=="set_selection")(w)&&(S.redos=[])}b(w)},h})(function(y){var h=y,b=h.insertText,w=h.insertNode,D=h.insertFragment,S=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var A=O.getLeftLengthOfMaxLength(h);A<=0||(A<C.length?b(C.slice(0,A)):b(C))}else b(C)},h.insertNode=function(C){if(h.getConfig().maxLength){var A=O.getLeftLengthOfMaxLength(h);A<=0||A<Q.string(C).length||w(C)}else w(C)},h.insertFragment=function(C){if(h.getConfig().maxLength)if(C.length!==1)C.forEach(function(_){h.insertNode(_)});else{var A=C[0];if(O.getLeftLengthOfMaxLength(h)<Q.string(A).length)return;D(C)}else D(C)},h.dangerouslyInsertHtml=function(C,A){if(C===void 0&&(C=""),A===void 0&&(A=!1),C)if(h.getConfig().maxLength){var _=O.getLeftLengthOfMaxLength(h);if(!(_<=0)){var z=document.createElement("div");z.innerHTML=C;var U=Array.from(z.childNodes).reduce(function($,q){var K=q.nodeType,I=q.nodeName;return q?K===wo.TEXT_NODE?$+(q.textContent||""):K===wo.ELEMENT_NODE?K9.has(I.toLowerCase())?$:$+(q.textContent||""):$:$},"");_<U.length||S(C,A)}}else S(C,A)},h}(function(y){var h=y;return h.on=function(b,w){var D=u0(h);if(D.on(b,w),b==="destroyed"&&Q9(h,w),b!=="destroyed"){var S=function(){return D.off(b,w)};D.on("destroyed",S),Q9(h,S)}},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=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var S=u0(h);S.emit.apply(S,LE([b],Ut(w))),b==="destroyed"&&(YQ(h).forEach(function(C){return S.off("destroyed",C)}),XQ(h))},h}(function(y){var h=y;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=O.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(y,{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 LD(h)},h.getNodePosition=function(b){return RD(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ut(M.edges(b),2),D=w[0],S=w[1],C=Ut(E.edges(h,[]),2),A=C[0],_=C[1];return!(!_t.equals(D,A)||!_t.equals(S,_))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(y){var h=y,b=h.onChange,w=h.insertText,D=h.apply,S=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var A,_,z,U,$,q,K,I,L=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var X=Cr(E.levels(h,{at:C.path})),lt=X.next();!lt.done;lt=X.next()){var it=Ut(lt.value,2),at=it[0],k=it[1],x=O.findKey(h,at);L.push([k,x])}}catch(Lt){A={error:Lt}}finally{try{lt&&!lt.done&&(_=X.return)&&_.call(X)}finally{if(A)throw A.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var T=Cr(E.levels(h,{at:j.parent(C.path)})),H=T.next();!H.done;H=T.next()){var Y=Ut(H.value,2);at=Y[0],k=Y[1],x=O.findKey(h,at),L.push([k,x])}}catch(Lt){z={error:Lt}}finally{try{H&&!H.done&&(U=T.return)&&U.call(T)}finally{if(z)throw z.error}}break;case"move_node":try{for(var W=Cr(E.levels(h,{at:j.common(j.parent(C.path),j.parent(C.newPath))})),ut=W.next();!ut.done;ut=W.next()){var gt=Ut(ut.value,2);at=gt[0],k=gt[1],x=O.findKey(h,at),L.push([k,x])}}catch(Lt){$={error:Lt}}finally{try{ut&&!ut.done&&(q=W.return)&&q.call(W)}finally{if($)throw $.error}}}D(C);try{for(var mt=Cr(L),ot=mt.next();!ot.done;ot=mt.next()){var G=Ut(ot.value,2);k=G[0],x=G[1],at=Ut(E.node(h,k),1)[0],ig.set(at,x)}}catch(Lt){K={error:Lt}}finally{try{ot&&!ot.done&&(I=mt.return)&&I.call(mt)}finally{if(K)throw K.error}}},h.deleteBackward=function(C){if(C!=="line")return S(C);if(y.selection&&M.isCollapsed(y.selection)){var A=E.above(y,{match:function($){return E.isBlock(y,$)},at:y.selection});if(A){var _=Ut(A,2)[1],z=E.range(y,_,y.selection.anchor),U=function($,q){var K=E.range($,M.end(q)),I=Array.from(E.positions($,{at:q})),L=0,X=I.length,lt=Math.floor(X/2);if(M9($,E.range($,I[L]),K))return E.range($,I[L],K);if(I.length<2)return E.range($,I[I.length-1],K);for(;lt!==I.length&&lt!==L;)M9($,E.range($,I[lt]),K)?X=lt:L=lt,lt=Math.floor((L+X)/2);return E.range($,I[X],K)}(h,z);M.isCollapsed(U)||N.delete(y,{at:U})}}},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(A){return ZI(A,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(A){return Q.string(A)}).join(`
  69. `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(y,C)},h.getElemsByType=function(C,A){var _,z;A===void 0&&(A=!1);var U=[],$=E.nodes(h,{at:[],universal:!0});try{for(var q=Cr($),K=q.next();!K.done;K=q.next()){var I=Ut(K.value,1)[0];if(ft.isElement(I)&&(A?I.type.indexOf(C)>=0:I.type===C)){var L=JI(O.findKey(h,I).id);U.push(Dr(Dr({},I),{id:L}))}}}catch(X){_={error:X}}finally{try{K&&!K.done&&(z=q.return)&&z.call(q)}finally{if(_)throw _.error}}return U},h.getElemsByTypePrefix=function(C){return h.getElemsByType(C,!0)},h.isEmpty=function(){var C=h.children,A=C===void 0?[]:C;if(A.length>1)return!1;var _=A[0];if(_==null)return!0;if(ft.isElement(_)&&_.type==="paragraph"){var z=_.children,U=z===void 0?[]:z;if(U.length>1)return!1;var $=U[0];if($==null||st.isText($)&&$.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(C){return O.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,A){if(C===void 0&&(C=""),A===void 0&&(A=!1),C){var _=document.createElement("div");_.innerHTML=C;var z=Array.from(_.childNodes);if(z=z.filter(function(K){var I=K.nodeType,L=K.nodeName;return I===wo.TEXT_NODE||I===wo.ELEMENT_NODE&&!K9.has(L.toLowerCase())}),z.length!==0){var U=h.selection;if(U!=null){var $=null;O.isSelectedEmptyParagraph(h)&&!A&&($=[U.focus.path[0]]),_.setAttribute("hidden","true"),document.body.appendChild(_);var q=0;z.forEach(function(K){var I=K.nodeType,L=K.nodeName,X=K.textContent,lt=X===void 0?"":X;if(I!==wo.TEXT_NODE)if(L!=="BR"){var it=K,at=!1;if(QI.includes(L.toLowerCase()))at=!0;else for(var k in Ev)if(it.matches(k)){at=!0;break}if(at){var x=jD(B(it),h);return Array.isArray(x)?(x.forEach(function(H){return Y9(h,H)}),q++):(Y9(h,x),q++),void(O.isSelectedVoidNode(h)&&h.move(1))}var T=window.getComputedStyle(it).display;O.isSelectedEmptyParagraph(h)||T.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(it.innerHTML,!0)}else h.insertText(`
  70. `);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),q&&$&&O.isEmptyPath(h,$)&&N.removeNodes(h,{at:$}),_.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var A=h.isDisabled(),_=h.isFocused(),z=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var U=W9(h,C);if(N.insertFragment(h,U),_||(h.deselect(),h.blur()),A&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(z))}catch{h.select(E.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in ip)b.push(w);return b},h.getConfig=function(){var b=g9.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h}(function(y){var h=NQ(iG());return h.id="wangEditor-"+UJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(O.toDOMNode(h,h).focus({preventScroll:!0}),Iu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=yb.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Iu.get(h)},h.blur=function(){O.toDOMNode(h,h).blur(),N.deselect(h),Iu.set(h,!1)},h.updateView=function(){O.getTextarea(h).changeViewState();var b=O.getToolbar(h);b&&b.changeToolbarState();var w=O.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=O.getTextarea(h);b.destroy(),ME.delete(h),zE.delete(b);var w=O.getToolbar(h);w&&(w.destroy(),sm.delete(h),SD.delete(w));var D=O.getHoverbar(h);D&&(D.destroy(),vv.delete(h),$E.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
  71. You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=B("#"+b);if(D.length!==0){var S=D[0];if(!O.hasDOMNode(h,S))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
  72. 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var C=O.getTextarea(h),A=C.$textAreaContainer,_=C.$scroll,z=D.offset().top,U=A.offset().top;_[0].scrollBy({top:z-U,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||O.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=HE.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 O.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=O.getToolbar(h);w&&(b=w.$box);var D=O.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
  73. 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var S=D.css("z-index");D.attr("data-z-index",S.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=O.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return O.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(y,h){return rN(y,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var h=$j(II),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return K5(h,function(S,C){b[C]=Dr(Dr({},S),D[C]||{})}),delete y.MENU_CONF,Dr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`:
  74. `+S)}},y)}(o);g9.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=W9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),O.normalizeContent(l),n){var p=new ptt(n);ME.set(l,p),zE.set(p,l),p.changeViewState(),Tr(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
  75. Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var v=void 0;Object.keys(d).length>0&&(v=new Dtt,$E.set(v,l),vv.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return fN(y,h,l,l)});var m=c.onCreated,g=c.onDestroyed;return m&&l.on("created",function(){return m(l)}),g&&l.on("destroyed",function(){return g(l)}),Tr(function(){return l.emit("created")}),l}var Stt=om("splice"),xtt=Z.TypeError,Att=Math.max,Ott=Math.min;Se({target:"Array",proto:!0,forced:!Stt},{splice:function(t,e){var n,r,o,i,a,u,s=Ma(this),l=ws(s),c=Yl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=Ott(Att(Jp(e),0),l-c)),l+n-r>9007199254740991)throw xtt("Maximum allowed length exceeded");for(o=sI(s,r),i=0;i<r;i++)(a=c+i)in s&&tp(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 ktt=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=zj(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),Tr(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=$j(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,m){f.splice(s.index+m,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,m){if(v==="|"){if(m===0||m+1===p||n==="|")return;var g=sN();return r.append(g),void(n=v)}if(typeof v=="string")return e.registerSingleItem(v,e),void(n=v);e.registerGroup(v),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new cO(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 cO,i=this.menus,a=i[e];if(a==null){var u=ip[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+`'
  76. 重复注册了菜单栏 menu '`+e+"'");var s=cN(e,a,o);this.toolbarItems.push(s),xD.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=SD.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}(),Btt=gc.EXISTS,_tt=oo.f,dN=Function.prototype,Ftt=ht(dN.toString),pN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ttt=ht(pN.exec);function hN(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,d=f!==void 0&&f,p=t.headers,v=p===void 0?{}:p,m=t.withCredentials,g=m!==void 0&&m,y=t.timeout,h=y===void 0?1e4:y,b=t.onBeforeUpload,w=b===void 0?function(q){return q}:b,D=t.onSuccess,S=D===void 0?function(q,K){}:D,C=t.onError,A=C===void 0?function(q,K,I){console.error(q.name+" upload error",K,I)}:C,_=t.onProgress,z=_===void 0?function(q){}:_;if(!n)throw new Error(`Cannot get upload server address
  77. 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
  78. 没有配置 fieldName`);var U=n;d&&(U=function(q,K){var I=Ut(q.split("#"),2),L=I[0],X=I[1],lt=[];K5(K,function(at,k){lt.push(k+"="+at)});var it=lt.join("&");return L=L.indexOf("?")>0?L+"&"+it:L+"?"+it,X?L+"#"+X:L}(U,c));var $=new od({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(iX,{endpoint:U,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return $.on("upload-success",function(q,K){var I=K.body,L=I===void 0?{}:I;try{S(q,L)}catch(X){console.error("wangEditor upload file - onSuccess error",X)}$.removeFile(q.id)}),$.on("progress",function(q){q<1||z(q)}),$.on("upload-error",function(q,K,I){try{A(q,K,I)}catch(L){console.error("wangEditor upload file - onError error",L)}$.removeFile(q.id)}),$.on("restriction-failed",function(q,K){try{A(q,K)}catch(I){console.error("wangEditor upload file - onError error",I)}$.removeFile(q.id)}),$}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 Ptt(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){Ptt(t,o,n[o])})}return t}function pi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dO(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 hi(t,e,n){return e&&dO(t.prototype,e),n&&dO(t,n),t}function as(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function up(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 as(t)}function tc(t){return tc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(t)}function r6(t,e){return r6=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},r6(t,e)}function lm(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&&r6(t,e)}an&&!Btt&&_tt(dN,"name",{configurable:!0,get:function(){try{return Ttt(pN,Ftt(this))[1]}catch{return""}}});var jtt={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]:{};pi(this,t),this.init(e,n)}return hi(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||jtt,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(){pi(this,t),this.observers={}}return hi(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 pf(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function pO(t){return t==null?"":""+t}function Itt(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function VD(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 hO(t,e,n){var r=VD(t,e,Object);r.obj[r.k]=n}function Cv(t,e){var n=VD(t,e),r=n.obj,o=n.k;if(r)return r[o]}function gO(t,e,n){var r=Cv(t,n);return r!==void 0?r:Cv(e,n)}function gN(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]):gN(t[r],e[r],n):t[r]=e[r]);return t}function Vs(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ntt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Ltt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Ntt[e]}):t}var cm=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function vN(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?vN(s,l,n):void 0}o=o[r[i]]}return o}}var Rtt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return pi(this,e),r=up(this,tc(e).call(this)),cm&&Ba.call(as(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 lm(e,Ba),hi(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=Cv(this.data,s);return l||!u||typeof o!="string"?l:vN(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),hO(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=Cv(this.data,s)||{};i?gN(l,o,a):l=We({},l,o),hO(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}(),mN={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}},vO={},mO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return pi(this,e),r=up(this,tc(e).call(this)),cm&&Ba.call(as(r)),Itt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,as(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ri.create("translator"),r}return lm(e,Ba),hi(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,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=r.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(n,r),m=v&&v.res,g=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(D&&m&&S&&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(g,m,We({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",A=C?[]:{},_=C?y:g;for(var z in m)if(Object.prototype.hasOwnProperty.call(m,z)){var U="".concat(_).concat(a).concat(z);A[z]=this.translate(U,We({},r,{joinArrays:!1,ns:l})),A[z]===U&&(A[z]=m[z])}m=A}}else if(D&&typeof w=="string"&&h==="[object Array]")(m=m.join(w))&&(m=this.extendTranslation(m,n,r,o));else{var $=!1,q=!1,K=r.count!==void 0&&typeof r.count!="string",I=e.hasDefaultValue(r),L=K?this.pluralResolver.getSuffix(f,r.count):"",X=r["defaultValue".concat(L)]||r.defaultValue;!this.isValidLookup(m)&&I&&($=!0,m=X),this.isValidLookup(m)||(q=!0,m=s);var lt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,it=lt&&q?void 0:m,at=I&&X!==m&&this.options.updateMissing;if(q||$||at){if(this.logger.log(at?"updateKey":"missingKey",f,c,s,at?X:m),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 x=[],T=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&T&&T[0])for(var H=0;H<T.length;H++)x.push(T[H]);else this.options.saveMissingTo==="all"?x=this.languageUtils.toResolveHierarchy(r.lng||this.language):x.push(r.lng||this.language);var Y=function(W,ut,gt){i.options.missingKeyHandler?i.options.missingKeyHandler(W,c,ut,at?gt:it,at,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(W,c,ut,at?gt:it,at,r),i.emit("missingKey",W,c,ut,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&K?x.forEach(function(W){i.pluralResolver.getSuffixes(W).forEach(function(ut){Y([W],s+ut,r["defaultValue".concat(ut)]||X)})}):Y(x,s,X))}m=this.extendTranslation(m,n,r,v,o),q&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(s)),(q||$)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{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 d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var m=arguments.length,g=new Array(m),y=0;y<m;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):u.translate.apply(u,g.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return n!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(n=mN.handle(v,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),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",m=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(r)||(u=y,!vO["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(vO["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.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!!!")),g.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=d,S=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,h,y,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&m&&S.push(D+b),m&&S.push(D+="".concat(s.options.contextSeparator).concat(l.context)),v&&S.push(D+=b));w=S.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,y,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 Mtt=function(){function t(e){pi(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ri.create("languageUtils")}return hi(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}(),ztt=[{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}],$tt={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return 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 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 t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function Htt(){var t={};return ztt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:$tt[e.fc]}})}),t}var Vtt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pi(this,t),this.languageUtils=e,this.options=n,this.logger=ri.create("pluralResolver"),this.rules=Htt()}return hi(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}(),Utt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pi(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 hi(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:Ltt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Vs(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Vs(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?Vs(n.nestingPrefix):n.nestingPrefixEscaped||Vs("$t("),this.nestingSuffix=n.nestingSuffix?Vs(n.nestingSuffix):n.nestingSuffixEscaped||Vs(")"),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(m){return m.replace(/\$/g,"$$$$")}var f=function(m){if(m.indexOf(s.formatSeparator)<0){var g=gO(n,l,m);return s.alwaysFormat?s.format(g,void 0,r,We({},o,n,{interpolationkey:m})):g}var y=m.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(gO(n,l,h),b,r,We({},o,n,{interpolationkey:h}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(m){return c(m)}},{regex:this.regexp,safeValue:function(m){return s.escapeValue?c(s.escape(m)):c(m)}}];return v.forEach(function(m){for(u=0;i=m.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(e,i,o);a=typeof g=="string"?g:""}else{if(p){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=pO(a));var y=m.safeValue(a);if(e=e.replace(i[0],y),p?(m.regex.lastIndex+=y.length,m.regex.lastIndex-=i[0].length):m.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(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var m=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(m[1]);d=m[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=We({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(v).concat(g)}return delete u.defaultValue,d}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(d){return d.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=pO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,We({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Wtt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return pi(this,e),i=up(this,tc(e).call(this)),cm&&Ba.call(as(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 lm(e,Ba),hi(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var d=!0;r.forEach(function(p){var v="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(p)<0&&c.push(p)))}),d||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,d,p){var v=VD(c,f,Object),m=v.obj,g=v.k;m[g]=m[g]||[],m[g].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=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 Gtt(){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 yO(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 qtt=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(pi(this,e),n=up(this,tc(e).call(this)),cm&&Ba.call(as(n)),n.options=yO(r),n.services={},n.logger=ri,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),up(n,as(n));setTimeout(function(){n.init(r,o)},0)}return n}return lm(e,Ba),hi(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(p){return p?typeof p=="function"?new p:p: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({},Gtt(),this.options,yO(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 Mtt(this.options);this.store=new Rtt(this.options.resources,this.options);var u=this.services;u.logger=ri,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Vtt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Utt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Wtt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),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 mO(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),this.modules.external.forEach(function(p){p.init&&p.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(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments),n}});var f=pf(),d=function(){var p=function(v,m){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(m),o(v,m)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,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=pf();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"&&mN.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=pf();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,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=We({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",m=o?"".concat(o).concat(v).concat(s):s;return i.t(m,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 d=r.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===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=pf();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=pf();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 mO(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}(),Sv=new qtt;function Yn(t,e){Sv.addResourceBundle(t,"translation",e,!0,!0)}Sv.init({lng:"zh-CN",resources:{}});var tt=Sv.t.bind(Sv);Yn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Yn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Ktt=T5?{}.toString:function(){return"[object "+V1(this)+"]"};T5||Ju(Object.prototype,"toString",Ktt,{unsafe:!0});var bO=Array.isArray||function(t){return Bu(t)=="Array"},yN=function(){},Ytt=[],bN=Vp("Reflect","construct"),UD=/^\s*(?:class|function)\b/,Xtt=oe(UD.exec),Ztt=!UD.exec(yN),hf=function(t){if(!nn(t))return!1;try{return bN(yN,Ytt,t),!0}catch{return!1}},Jtt=!bN||cn(function(){var t;return hf(hf.call)||!hf(Object)||!hf(function(){t=!0})||t})?function(t){if(!nn(t))return!1;switch(V1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ztt||!!Xtt(UD,O5(t))}:hf,Qtt=Ln("species"),wO=Dt.Array,tet=function(t,e){return new(function(n){var r;return bO(n)&&(r=n.constructor,(Jtt(r)&&(r===wO||bO(r.prototype))||Eo(r)&&(r=r[Qtt])===null)&&(r=void 0)),r===void 0?wO:r}(t))(e===0?0:e)},EO=oe([].push),Ti=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 d,p,v=C5(s),m=NP(v),g=KP(l,c),y=H1(m),h=0,b=f||tet,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:EO(w,d)}else switch(t){case 4:return!1;case 7:EO(w,d)}return i?-1:r||o?o:w}},eet={forEach:Ti(0),map:Ti(1),filter:Ti(2),some:Ti(3),every:Ti(4),find:Ti(5),findIndex:Ti(6),filterReject:Ti(7)}.forEach,net=function(t,e){var n=[][t];return!!n&&cn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),$b=net?[].forEach:function(t){return eet(this,t,arguments.length>1?arguments[1]:void 0)},wN=function(t){if(t&&t.forEach!==$b)try{Hn(t,"forEach",$b)}catch{t.forEach=$b}};for(var Hb in Vg)Vg[Hb]&&wN(Dt[Hb]&&Dt[Hb].prototype);wN(ZP),Yn("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"}}),Yn("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var ret={type:"paragraph",renderElem:function(t,e,n){return wt("p",null,e)}},xv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fm(t){var e={exports:{}};return t(e,e.exports),e.exports}var Pi,ag,c0=function(t){return t&&t.Math==Math&&t},xt=c0(typeof globalThis=="object"&&globalThis)||c0(typeof window=="object"&&window)||c0(typeof self=="object"&&self)||c0(typeof xv=="object"&&xv)||function(){return this}()||Function("return this")(),xe=function(t){try{return!!t()}catch{return!0}},no=!xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),gf=Function.prototype.call,Le=gf.bind?gf.bind(gf):function(){return gf.apply(gf,arguments)},DO={}.propertyIsEnumerable,CO=Object.getOwnPropertyDescriptor,oet=CO&&!DO.call({1:2},1)?function(t){var e=CO(this,t);return!!e&&e.enumerable}:DO,EN={f:oet},WD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},DN=Function.prototype,o6=DN.bind,i6=DN.call,iet=o6&&o6.bind(i6),yt=o6?function(t){return t&&iet(i6,t)}:function(t){return t&&function(){return i6.apply(t,arguments)}},aet=yt({}.toString),uet=yt("".slice),fa=function(t){return uet(aet(t),8,-1)},Vb=xt.Object,set=yt("".split),dm=xe(function(){return!Vb("z").propertyIsEnumerable(0)})?function(t){return fa(t)=="String"?set(t,""):Vb(t)}:Vb,cet=xt.TypeError,Pr=function(t){if(t==null)throw cet("Can't call method on "+t);return t},wc=function(t){return dm(Pr(t))},On=function(t){return typeof t=="function"},Gr=function(t){return typeof t=="object"?t!==null:On(t)},fet=function(t){return On(t)?t:void 0},eh=function(t,e){return arguments.length<2?fet(xt[t]):xt[t]&&xt[t][e]},CN=yt({}.isPrototypeOf),Ub=eh("navigator","userAgent")||"",SO=xt.process,xO=xt.Deno,AO=SO&&SO.versions||xO&&xO.version,OO=AO&&AO.v8;OO&&(ag=(Pi=OO.split("."))[0]>0&&Pi[0]<4?1:+(Pi[0]+Pi[1])),!ag&&Ub&&(!(Pi=Ub.match(/Edge\/(\d+)/))||Pi[1]>=74)&&(Pi=Ub.match(/Chrome\/(\d+)/))&&(ag=+Pi[1]);var a6=ag,u6=!!Object.getOwnPropertySymbols&&!xe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&a6&&a6<41}),GD=u6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",det=xt.Object,Wb=GD?function(t){return typeof t=="symbol"}:function(t){var e=eh("Symbol");return On(e)&&CN(e.prototype,det(t))},pet=xt.String,SN=function(t){try{return pet(t)}catch{return"Object"}},het=xt.TypeError,xN=function(t){if(On(t))return t;throw het(SN(t)+" is not a function")},pm=function(t,e){var n=t[e];return n==null?void 0:xN(n)},get=xt.TypeError,vet=Object.defineProperty,qD=function(t,e){try{vet(xt,t,{value:e,configurable:!0,writable:!0})}catch{xt[t]=e}return e},da=xt["__core-js_shared__"]||qD("__core-js_shared__",{}),KD=fm(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),met=xt.Object,nh=function(t){return met(Pr(t))},yet=yt({}.hasOwnProperty),xr=Object.hasOwn||function(t,e){return yet(nh(t),e)},bet=0,wet=Math.random(),Eet=yt(1 .toString),AN=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Eet(++bet+wet,36)},vf=KD("wks"),Lu=xt.Symbol,kO=Lu&&Lu.for,Det=GD?Lu:Lu&&Lu.withoutSetter||AN,pr=function(t){if(!xr(vf,t)||!u6&&typeof vf[t]!="string"){var e="Symbol."+t;u6&&xr(Lu,t)?vf[t]=Lu[t]:vf[t]=GD&&kO?kO(e):Det(e)}return vf[t]},Cet=xt.TypeError,xet=pr("toPrimitive"),YD=function(t){var e=function(n,r){if(!Gr(n)||Wb(n))return n;var o,i=pm(n,xet);if(i){if(o=Le(i,n,r),!Gr(o)||Wb(o))return o;throw Cet("Can't convert object to primitive value")}return function(a,u){var s,l;if(On(s=a.toString)&&!Gr(l=Le(s,a))||On(s=a.valueOf)&&!Gr(l=Le(s,a)))return l;throw get("Can't convert object to primitive value")}(n)}(t,"string");return Wb(e)?e:e+""},s6=xt.document,Aet=Gr(s6)&&Gr(s6.createElement),XD=function(t){return Aet?s6.createElement(t):{}},ON=!no&&!xe(function(){return Object.defineProperty(XD("div"),"a",{get:function(){return 7}}).a!=7}),BO=Object.getOwnPropertyDescriptor,ZD={f:no?BO:function(t,e){if(t=wc(t),e=YD(e),ON)try{return BO(t,e)}catch{}if(xr(t,e))return WD(!Le(EN.f,t,e),t[e])}},Oet=xt.String,ket=xt.TypeError,ar=function(t){if(Gr(t))return t;throw ket(Oet(t)+" is not an object")},Bet=xt.TypeError,_O=Object.defineProperty,Ec={f:no?_O:function(t,e,n){if(ar(t),e=YD(e),ar(n),ON)try{return _O(t,e,n)}catch{}if("get"in n||"set"in n)throw Bet("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ec=no?function(t,e,n){return Ec.f(t,e,WD(1,n))}:function(t,e,n){return t[e]=n,t},_et=yt(Function.toString);On(da.inspectSource)||(da.inspectSource=function(t){return _et(t)});var Av,Cd,Ov,JD=da.inspectSource,FO=xt.WeakMap,Fet=On(FO)&&/native code/.test(JD(FO)),TO=KD("keys"),kN=function(t){return TO[t]||(TO[t]=AN(t))},QD={},l6=xt.TypeError,Tet=xt.WeakMap;if(Fet||da.state){var ru=da.state||(da.state=new Tet),Pet=yt(ru.get),PO=yt(ru.has),jet=yt(ru.set);Av=function(t,e){if(PO(ru,t))throw new l6("Object already initialized");return e.facade=t,jet(ru,t,e),e},Cd=function(t){return Pet(ru,t)||{}},Ov=function(t){return PO(ru,t)}}else{var Us=kN("state");QD[Us]=!0,Av=function(t,e){if(xr(t,Us))throw new l6("Object already initialized");return e.facade=t,ec(t,Us,e),e},Cd=function(t){return xr(t,Us)?t[Us]:{}},Ov=function(t){return xr(t,Us)}}var c6={set:Av,get:Cd,has:Ov,enforce:function(t){return Ov(t)?Cd(t):Av(t,{})},getterFor:function(t){return function(e){var n;if(!Gr(e)||(n=Cd(e)).type!==t)throw l6("Incompatible receiver, "+t+" required");return n}}},BN=Function.prototype,Iet=no&&Object.getOwnPropertyDescriptor,Gb=xr(BN,"name"),hm={EXISTS:Gb,PROPER:Gb&&(function(){}).name==="something",CONFIGURABLE:Gb&&(!no||no&&Iet(BN,"name").configurable)},sp=fm(function(t){var e=hm.CONFIGURABLE,n=c6.get,r=c6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;On(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xr(u,"name")||e&&u.name!==p)&&ec(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==xt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ec(i,a,u)):f?i[a]=u:qD(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||JD(this)})}),Net=Math.ceil,Let=Math.floor,Dc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Let:Net)(e)},Ret=Math.max,Met=Math.min,lp=function(t,e){var n=Dc(t);return n<0?Ret(n+e,0):Met(n,e)},zet=Math.min,rh=function(t){return t>0?zet(Dc(t),9007199254740991):0},gm=function(t){return rh(t.length)},jO=function(t){return function(e,n,r){var o,i=wc(e),a=gm(i),u=lp(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}},_N={includes:jO(!0),indexOf:jO(!1)},$et=_N.indexOf,IO=yt([].push),FN=function(t,e){var n,r=wc(t),o=0,i=[];for(n in r)!xr(QD,n)&&xr(r,n)&&IO(i,n);for(;e.length>o;)xr(r,n=e[o++])&&(~$et(i,n)||IO(i,n));return i},kv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Het=kv.concat("length","prototype"),Vet={f:Object.getOwnPropertyNames||function(t){return FN(t,Het)}},TN={f:Object.getOwnPropertySymbols},Uet=yt([].concat),Wet=eh("Reflect","ownKeys")||function(t){var e=Vet.f(ar(t)),n=TN.f;return n?Uet(e,n(t)):e},Get=function(t,e){for(var n=Wet(e),r=Ec.f,o=ZD.f,i=0;i<n.length;i++){var a=n[i];xr(t,a)||r(t,a,o(e,a))}},qet=/#|\.prototype\./,oh=function(t,e){var n=Yet[Ket(t)];return n==Zet||n!=Xet&&(On(e)?xe(e):!!e)},Ket=oh.normalize=function(t){return String(t).replace(qet,".").toLowerCase()},Yet=oh.data={},Xet=oh.NATIVE="N",Zet=oh.POLYFILL="P",Jet=oh,Qet=ZD.f,tn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?xt:l?xt[u]||qD(u,{}):(xt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Qet(n,r))&&a.value:n[r],!Jet(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Get(i,o)}(t.sham||o&&o.sham)&&ec(i,"sham",!0),sp(n,r,i,t)}},NO=yt(yt.bind),Bv=Array.isArray||function(t){return fa(t)=="Array"},PN={};PN[pr("toStringTag")]="z";var t8=String(PN)==="[object z]",tnt=pr("toStringTag"),ent=xt.Object,nnt=fa(function(){return arguments}())=="Arguments",e8=t8?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{}}(e=ent(t),tnt))=="string"?n:nnt?fa(e):(r=fa(e))=="Object"&&On(e.callee)?"Arguments":r},jN=function(){},rnt=[],IN=eh("Reflect","construct"),n8=/^\s*(?:class|function)\b/,ont=yt(n8.exec),int=!n8.exec(jN),mf=function(t){if(!On(t))return!1;try{return IN(jN,rnt,t),!0}catch{return!1}},r8=!IN||xe(function(){var t;return mf(mf.call)||!mf(Object)||!mf(function(){t=!0})||t})?function(t){if(!On(t))return!1;switch(e8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return int||!!ont(n8,JD(t))}:mf,ant=pr("species"),LO=xt.Array,unt=function(t,e){return new(function(n){var r;return Bv(n)&&(r=n.constructor,(r8(r)&&(r===LO||Bv(r.prototype))||Gr(r)&&(r=r[ant])===null)&&(r=void 0)),r===void 0?LO:r}(t))(e===0?0:e)},RO=yt([].push),ji=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 d,p,v=nh(s),m=dm(v),g=function(D,S){return xN(D),S===void 0?D:NO?NO(D,S):function(){return D.apply(S,arguments)}}(l,c),y=gm(m),h=0,b=f||unt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:RO(w,d)}else switch(t){case 4:return!1;case 7:RO(w,d)}return i?-1:r||o?o:w}},vm={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},snt=pr("species"),o8=function(t){return a6>=51||!xe(function(){var e=[];return(e.constructor={})[snt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},lnt=vm.filter;tn({target:"Array",proto:!0,forced:!o8("filter")},{filter:function(t){return lnt(this,t,arguments.length>1?arguments[1]:void 0)}});var cnt=t8?{}.toString:function(){return"[object "+e8(this)+"]"};t8||sp(Object.prototype,"toString",cnt,{unsafe:!0});var f0,fnt=xt.String,Ce=function(t){if(e8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fnt(t)},NN=function(){var t=ar(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},i8=xt.RegExp,f6=xe(function(){var t=i8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),dnt=f6||xe(function(){return!i8("a","y").sticky}),LN={BROKEN_CARET:f6||xe(function(){var t=i8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:dnt,UNSUPPORTED_Y:f6},Ol=Object.keys||function(t){return FN(t,kv)},pnt=no?Object.defineProperties:function(t,e){ar(t);for(var n,r=wc(e),o=Ol(e),i=o.length,a=0;i>a;)Ec.f(t,n=o[a++],r[n]);return t},hnt=eh("document","documentElement"),RN=kN("IE_PROTO"),qb=function(){},MN=function(t){return"<script>"+t+"<\/script>"},MO=function(t){t.write(MN("")),t.close();var e=t.parentWindow.Object;return t=null,e},ug=function(){try{f0=new ActiveXObject("htmlfile")}catch{}var t,e;ug=typeof document<"u"?document.domain&&f0?MO(f0):((e=XD("iframe")).style.display="none",hnt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(MN("document.F=Object")),t.close(),t.F):MO(f0);for(var n=kv.length;n--;)delete ug.prototype[kv[n]];return ug()};QD[RN]=!0;var zO,Kb,zN=Object.create||function(t,e){var n;return t!==null?(qb.prototype=ar(t),n=new qb,qb.prototype=null,n[RN]=t):n=ug(),e===void 0?n:pnt(n,e)},gnt=xt.RegExp,vnt=xe(function(){var t=gnt(".","s");return!(t.dotAll&&t.exec(`
  79. `)&&t.flags==="s")}),mnt=xt.RegExp,ynt=xe(function(){var t=mnt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),bnt=c6.get,wnt=KD("native-string-replace",String.prototype.replace),_v=RegExp.prototype.exec,d6=_v,Ent=yt("".charAt),Dnt=yt("".indexOf),Cnt=yt("".replace),Yb=yt("".slice),Xb=(Kb=/b*/g,Le(_v,zO=/a/,"a"),Le(_v,Kb,"a"),zO.lastIndex!==0||Kb.lastIndex!==0),$O=LN.BROKEN_CARET,Zb=/()??/.exec("")[1]!==void 0;(Xb||Zb||$O||vnt||ynt)&&(d6=function(t){var e,n,r,o,i,a,u,s=this,l=bnt(s),c=Ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Le(d6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=$O&&s.sticky,v=Le(NN,s),m=s.source,g=0,y=c;if(p&&(v=Cnt(v,"y",""),Dnt(v,"g")===-1&&(v+="g"),y=Yb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ent(c,s.lastIndex-1)!==`
  80. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Zb&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Xb&&(r=s.lastIndex),o=Le(_v,p?n:s,y),p?o?(o.input=Yb(o.input,g),o[0]=Yb(o[0],g),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&&Le(wnt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=zN(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var cp=d6;tn({target:"RegExp",proto:!0,forced:/./.exec!==cp},{exec:cp});var a8=Function.prototype,HO=a8.apply,Snt=a8.bind,VO=a8.call,$N=typeof Reflect=="object"&&Reflect.apply||(Snt?VO.bind(HO):function(){return VO.apply(HO,arguments)}),xnt=pr("species"),Jb=RegExp.prototype,u8=function(t,e,n,r){var o=pr(t),i=!xe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!xe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[xnt]=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,d,p){var v=yt(l),m=c.exec;return m===cp||m===Jb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});sp(String.prototype,t,s[0]),sp(Jb,o,s[1])}r&&ec(Jb[o],"sham",!0)},Ant=yt("".charAt),UO=yt("".charCodeAt),Ont=yt("".slice),knt=function(t){return function(e,n){var r,o,i=Ce(Pr(e)),a=Dc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=UO(i,a))<55296||r>56319||a+1===u||(o=UO(i,a+1))<56320||o>57343?t?Ant(i,a):r:t?Ont(i,a,a+2):o-56320+(r-55296<<10)+65536}},Bnt=knt(!0),s8=function(t,e,n){return e+(n?Bnt(t,e).length:1)},_nt=Math.floor,Qb=yt("".charAt),Fnt=yt("".replace),t2=yt("".slice),Tnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Pnt=/\$([$&'`]|\d{1,2})/g,jnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Pnt;return o!==void 0&&(o=nh(o),s=Tnt),Fnt(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 d=+c;if(d===0)return l;if(d>u){var p=_nt(d/10);return p===0?l:p<=u?r[p-1]===void 0?Qb(c,1):r[p-1]+Qb(c,1):l}f=r[d-1]}return f===void 0?"":f})},Int=xt.TypeError,fp=function(t,e){var n=t.exec;if(On(n)){var r=Le(n,t,e);return r!==null&&ar(r),r}if(fa(t)==="RegExp")return Le(cp,t,e);throw Int("RegExp#exec called on incompatible receiver")},p6=pr("replace"),Nnt=Math.max,Lnt=Math.min,Rnt=yt([].concat),e2=yt([].push),WO=yt("".indexOf),GO=yt("".slice),Mnt="a".replace(/./,"$0")==="$0",qO=!!/./[p6]&&/./[p6]("a","$0")==="";u8("replace",function(t,e,n){var r=qO?"$":"$0";return[function(o,i){var a=Pr(this),u=o==null?void 0:pm(o,p6);return u?Le(u,o,a,i):Le(e,Ce(a),o,i)},function(o,i){var a=ar(this),u=Ce(o);if(typeof i=="string"&&WO(i,r)===-1&&WO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=On(i);l||(i=Ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=fp(a,u);if(p===null||(e2(d,p),!c))break;Ce(p[0])===""&&(a.lastIndex=s8(u,rh(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Ce((p=d[y])[0]),b=Nnt(Lnt(Dc(p.index),u.length),0),w=[],D=1;D<p.length;D++)e2(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=Rnt([h],w,b,u);S!==void 0&&e2(C,S);var A=Ce($N(i,void 0,C))}else A=jnt(h,u,b,w,S,i);b>=g&&(m+=GO(u,g,b)+A,g=b+h.length)}return m+GO(u,g)}]},!!xe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Mnt||qO);var h6=pr("unscopables"),g6=Array.prototype;g6[h6]==null&&Ec.f(g6,h6,{configurable:!0,value:zN(null)});var HN=function(t){g6[h6][t]=!0},znt=vm.find,KO=!0;"find"in[]&&Array(1).find(function(){KO=!1}),tn({target:"Array",proto:!0,forced:KO},{find:function(t){return znt(this,t,arguments.length>1?arguments[1]:void 0)}}),HN("find");var $nt=pr("match"),VN=function(t){var e;return Gr(t)&&((e=t[$nt])!==void 0?!!e:fa(t)=="RegExp")},Hnt=xt.TypeError,Vnt=pr("species"),UN=function(t,e,n){var r=YD(e);r in t?Ec.f(t,r,WD(0,n)):t[r]=n},Unt=xt.Array,Wnt=Math.max,YO=function(t,e,n){for(var r=gm(t),o=lp(e,r),i=lp(n===void 0?r:n,r),a=Unt(Wnt(i-o,0)),u=0;o<i;o++,u++)UN(a,u,t[o]);return a.length=u,a},Ws=LN.UNSUPPORTED_Y,Gnt=Math.min,WN=[].push,qnt=yt(/./.exec),Gs=yt(WN),yf=yt("".slice);u8("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(Pr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!VN(o))return Le(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Le(cp,v,a))&&!((l=v.lastIndex)>p&&(Gs(f,yf(a,p,s.index)),s.length>1&&s.index<a.length&&$N(WN,f,YO(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&qnt(v,"")||Gs(f,""):Gs(f,yf(a,p)),f.length>u?YO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Le(e,this,o,i)}:e,[function(o,i){var a=Pr(this),u=o==null?void 0:pm(o,t);return u?Le(u,o,a,i):Le(r,Ce(a),o,i)},function(o,i){var a=ar(this),u=Ce(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,C=ar(w).constructor;return C===void 0||(S=ar(C)[Vnt])==null?D:function(A){if(r8(A))return A;throw Hnt(SN(A)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ws?"g":"y"),d=new l(Ws?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return fp(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Ws?0:m;var y,h=fp(d,Ws?yf(u,m):u);if(h===null||(y=Gnt(rh(d.lastIndex+(Ws?m:0)),u.length))===v)m=s8(u,m,c);else{if(Gs(g,yf(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Gs(g,h[b]),g.length===p)return g;m=v=y}}return Gs(g,yf(u,v)),g}]},!!xe(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"}),Ws);var v6=`
  81. \v\f\r                 \u2028\u2029\uFEFF`,XO=yt("".replace),Fv="["+v6+"]",Knt=RegExp("^"+Fv+Fv+"*"),Ynt=RegExp(Fv+Fv+"*$"),n2=function(t){return function(e){var n=Ce(Pr(e));return 1&t&&(n=XO(n,Knt,"")),2&t&&(n=XO(n,Ynt,"")),n}},Xnt={start:n2(1),end:n2(2),trim:n2(3)},Znt=hm.PROPER,Jnt=Xnt.trim;function l8(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 Sc(t){return t.length?t[0].tagName.toLowerCase():""}function Qr(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}tn({target:"String",proto:!0,forced:xe(function(){return!!v6.trim()||"​…᠎".trim()!=="​…᠎"||Znt&&v6.trim.name!=="trim"})},{trim:function(){return Jnt(this)}}),tn({global:!0},{globalThis:xt}),nv&&(B.fn.css=nv),_r&&(B.fn.append=_r),LA&&(B.fn.prepend=LA),Rl&&(B.fn.addClass=Rl),Ml&&(B.fn.removeClass=Ml),zl&&(B.fn.hasClass=zl),To&&(B.fn.on=To),PA&&(B.fn.off=PA),Oa&&(B.fn.focus=Oa),Br&&(B.fn.attr=Br),Jg&&(B.fn.removeAttr=Jg),Hl&&(B.fn.hide=Hl),ev&&(B.fn.show=ev),iv&&(B.fn.parents=iv),$l&&(B.fn.dataset=$l),Fo&&(B.fn.val=Fo),ov&&(B.fn.text=ov),Aa&&(B.fn.html=Aa),Wl&&(B.fn.children=Wl),Gl&&(B.fn.remove=Gl),Ul&&(B.fn.find=Ul),Qg&&(B.fn.width=Qg),tv&&(B.fn.height=tv),IA&&(B.fn.filter=IA),ql&&(B.fn.empty=ql);var Qnt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!st.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},m6=function(t,e){return m6=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])},m6(t,e);/*! *****************************************************************************
  82. Copyright (c) Microsoft Corporation.
  83. Permission to use, copy, modify, and/or distribute this software for any
  84. purpose with or without fee is hereby granted.
  85. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  86. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  87. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  88. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  89. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  90. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  91. PERFORMANCE OF THIS SOFTWARE.
  92. ***************************************************************************** */};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}m6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var _a=function(){return _a=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},_a.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,[])).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 GN(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 Zt(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 ZO(t){var e=Zt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ft.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!st.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var trt={renderElems:[ret],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Qnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){ZO(r)||e(o)},r.deleteForward=function(o){ZO(r)||n(o)},r}},ert=/"/g,nrt=yt("".replace),sd=function(t,e,n,r){var o=Ce(Pr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+nrt(Ce(r),ert,"&quot;")+'"'),i+">"+o+"</"+e+">"},ld=function(t){return xe(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)}tn({target:"String",proto:!0,forced:ld("bold")},{bold:function(){return sd(this,"b","","")}}),tn({target:"String",proto:!0,forced:ld("italics")},{italics:function(){return sd(this,"i","","")}}),tn({target:"String",proto:!0,forced:ld("sub")},{sub:function(){return sd(this,"sub","","")}}),tn({target:"String",proto:!0,forced:ld("sup")},{sup:function(){return sd(this,"sup","","")}});var JO={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=XD("span").classList,QO=o2&&o2.constructor&&o2.constructor.prototype,rrt=QO===Object.prototype?void 0:QO,qN=function(t,e){var n=[][t];return!!n&&xe(function(){n.call(null,e||function(){throw 1},1)})},ort=vm.forEach,i2=qN("forEach")?[].forEach:function(t){return ort(this,t,arguments.length>1?arguments[1]:void 0)},KN=function(t){if(t&&t.forEach!==i2)try{ec(t,"forEach",i2)}catch{t.forEach=i2}};for(var a2 in JO)JO[a2]&&KN(xt[a2]&&xt[a2].prototype);function YN(t,e){return t.selection==null||!!Zt(E.nodes(t,{match:function(n){return O.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function irt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}KN(rrt),tn({target:"Object",stat:!0,forced:xe(function(){Ol(1)})},{keys:function(t){return Ol(nh(t))}});var Es=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!Zt(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return YN(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}(),art='<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>',urt='<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>',srt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',lrt='<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>',crt='<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>',XN='<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>',ZN='<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>',frt='<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>',drt='<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>',prt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',hrt='<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>',grt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',vrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',mrt='<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>',yrt='<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>',brt='<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>',wrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Ert='<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>',Drt='<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>',Crt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=art,n.hotkey="mod+b",n}return Ee(e,t),e}(Es),Srt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=crt,n.hotkey="mod+e",n}return Ee(e,t),e}(Es),xrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=srt,n.hotkey="mod+i",n}return Ee(e,t),e}(Es),Art=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=lrt,n.hotkey="mod+shift+x",n}return Ee(e,t),e}(Es),Ort=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=urt,n.hotkey="mod+u",n}return Ee(e,t),e}(Es),krt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=Drt,n.hotkey="",n}return Ee(e,t),e}(Es),Brt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=Ert,n.hotkey="",n}return Ee(e,t),e}(Es),_rt=function(){function t(){this.title=tt("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 YN(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return st.isText(s)},universal:!0});try{for(var a=GN(i),u=a.next();!u.done;u=a.next())irt(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}(),Frt={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 Crt}},{key:"underline",factory:function(){return new Ort}},{key:"italic",factory:function(){return new xrt}},{key:"through",factory:function(){return new Art}},{key:"code",factory:function(){return new Srt}},{key:"sub",factory:function(){return new krt}},{key:"sup",factory:function(){return new Brt}},{key:"clearStyle",factory:function(){return new _rt}}],styleToHtml:function(t,e){if(!st.isText(t))return e;if(l8(e))return r2(t,e);var n=B(e);if(Sc(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(!st.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 ih(t){return function(e,n,r){return wt("h"+t,null,n)}}var Trt={type:"header1",renderElem:ih(1)},Prt={type:"header2",renderElem:ih(2)},jrt={type:"header3",renderElem:ih(3)},Irt={type:"header4",renderElem:ih(4)},Nrt={type:"header5",renderElem:ih(5)},Lrt=hm.PROPER,y6=RegExp.prototype,JN=y6.toString,Rrt=yt(NN),Mrt=xe(function(){return JN.call({source:"a",flags:"b"})!="/a/b"}),zrt=Lrt&&JN.name!="toString";(Mrt||zrt)&&sp(RegExp.prototype,"toString",function(){var t=ar(this),e=Ce(t.source),n=t.flags;return"/"+e+"/"+Ce(n===void 0&&CN(y6,t)&&!("flags"in y6)?Rrt(t):n)},{unsafe:!0});var u2,$rt=xt.TypeError,QN=function(t){if(VN(t))throw $rt("The method doesn't accept regular expressions");return t},Hrt=pr("match"),tL=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Hrt]=!1,"/./"[t](e)}catch{}}return!1},Vrt=ZD.f,tk=yt("".startsWith),Urt=yt("".slice),Wrt=Math.min,ek=tL("startsWith");function eL(t){var e=Zt(E.nodes(t,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Zt(n,1)[0];return O.getNodeType(r)}function nL(t){return t.selection==null||!Zt(E.nodes(t,{match:function(e){var n=O.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function rL(t,e){e&&N.setNodes(t,{type:e})}tn({target:"String",proto:!0,forced:!(!ek&&(u2=Vrt(String.prototype,"startsWith"),u2&&!u2.writable)||ek)},{startsWith:function(t){var e=Ce(Pr(this));QN(t);var n=rh(Wrt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ce(t);return tk?tk(e,r,n):Urt(e,n,n+r.length)===r}});var Grt=function(){function t(){this.title=tt("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:tt("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 eL(e)},t.prototype.isDisabled=function(e){return nL(e)},t.prototype.exec=function(e,n){rL(e,n.toString())},t}(),ah=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return eL(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return nL(e)},t.prototype.exec=function(e,n){var r=this.type;rL(e,n===r?"paragraph":r)},t}(),qrt=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}(ah),Krt=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}(ah),Yrt=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}(ah),Xrt=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}(ah),Zrt=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}(ah),Jrt={key:"headerSelect",factory:function(){return new Grt}},Qrt={key:"header1",factory:function(){return new qrt}},tot={key:"header2",factory:function(){return new Krt}},eot={key:"header3",factory:function(){return new Yrt}},not={key:"header4",factory:function(){return new Xrt}},rot={key:"header5",factory:function(){return new Zrt}};function bf(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function wf(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!st.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var oot={renderElems:[Trt,Prt,jrt,Irt,Nrt],elemsToHtml:[{type:"header1",elemToHtml:bf(1)},{type:"header2",elemToHtml:bf(2)},{type:"header3",elemToHtml:bf(3)},{type:"header4",elemToHtml:bf(4)},{type:"header5",elemToHtml:bf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:wf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:wf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:wf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:wf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:wf(5)}],menus:[Jrt,Qrt,tot,eot,not,rot],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Zt(E.nodes(n,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&O.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},qs=Object.assign,nk=Object.defineProperty,iot=yt([].concat),rk=!qs||xe(function(){if(no&&qs({b:1},qs(nk({},"a",{enumerable:!0,get:function(){nk(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}),qs({},t)[n]!=7||Ol(qs({},e)).join("")!=r})?function(t,e){for(var n=nh(t),r=arguments.length,o=1,i=TN.f,a=EN.f;r>o;)for(var u,s=dm(arguments[o++]),l=i?iot(Ol(s),i(s)):Ol(s),c=l.length,f=0;c>f;)u=l[f++],no&&!Le(a,s,u)||(n[u]=s[u]);return n}:qs;function us(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}tn({target:"Object",stat:!0,forced:Object.assign!==rk},{assign:rk});var aot={selector:"font",preParseHtml:function(t){var e=B(t);if(Sc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},oL=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Zt(E.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=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"?E.removeMark(e,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=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=tt("color.default")),n==="bgColor"&&(u=tt("color.clear"));var s=B(`
  93. <li data-value="0" class="clear">
  94. <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>
  95. `+u+`
  96. </li>
  97. `);return o.prepend(s),o[0]},t}(),uot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=frt,n.mark="color",n}return Ee(e,t),e}(oL),sot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=drt,n.mark="bgColor",n}return Ee(e,t),e}(oL),ok=["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)"],lot={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&us(i,{color:r}),o&&us(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!st.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((l8(e)||Sc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Cc(n)):e},preParseHtml:[aot],parseStyleHtml:function(t,e,n){var r=B(t);if(!st.isText(e))return e;var o=e,i=Qr(r,"color");i&&(o.color=i);var a=Qr(r,"background-color");return a||(a=Qr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new uot},config:{colors:ok}},{key:"bgColor",factory:function(){return new sot},config:{colors:ok}}]},cot=/^(?:\w+:)?\/\/(\S+)$/,fot=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,dot=/^[^\s\.]+\.\S{2,}$/,pot=_N.includes;function mm(t){return t===void 0&&(t="r"),t+"-"+Aj()}function c8(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function iL(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 aL(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 f8(t){return t.selection==null||!!O.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:c8(t),children:e?[{text:e}]:[]}}function uL(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(),f8(t)?[2]:[4,iL("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,aL("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(M.isCollapsed(o)?(t.insertText(" "),i=s2(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.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]}})})}tn({target:"Array",proto:!0},{includes:function(t){return pot(this,t,arguments.length>1?arguments[1]:void 0)}}),HN("includes");var hot={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)}},got={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!st.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 mm("w-e-insert-link")}var vot=function(){function t(){this.title=tt("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 f8(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=Zt(ir(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=Zt(ir(tt("link.url"),i),2),f=c[0],d=B(c[1]),p=Zt(bc(a,tt("common.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(y){y.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();uL(e,h,b),e.hidePanelOrModal()}),this.$content=v}var m=this.$content;if(m.empty(),m.append(s),m.append(f),m.append(p),n==null||M.isCollapsed(n))l.val("");else{var g=E.string(e,n);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),m[0]},t}();function ik(){return mm("w-e-update-link")}var mot=function(){function t(){this.title=tt("link.edit"),this.iconSvg=XN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ik(),this.buttonId=ik()}return t.prototype.getSelectedLinkElem=function(e){var n=O.getSelectedNodeByType(e,"link");return n??null},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 O.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Zt(ir(tt("link.url"),n),2),i=o[0],a=B(o[1]),u=Zt(bc(r,tt("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var d=O.getSelectedNodeByType(e,"link"),p=d?Q.string(d):"",v=s.find("#"+n).val();(function(m,g,y){$a(this,void 0,void 0,function(){var h,b;return Ha(this,function(w){switch(w.label){case 0:return y?[4,iL("editLink",m,g,y)]:[2];case 1:return w.sent()?[4,aL("editLink",m,y)]:[2];case 2:return h=w.sent(),b={url:c8(h)},N.setNodes(m,b,{match:function(D){return O.checkNodeType(D,"link")}}),[2]}})})})(e,p,v),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}(),yot=function(){function t(){this.title=tt("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||O.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return O.checkNodeType(r,"link")}})},t}(),bot=function(){function t(){this.title=tt("link.view"),this.iconSvg=ZN,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=O.getSelectedNodeByType(e,"link");return n??null},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}(),ak={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},wot={renderElems:[hot],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:[got],menus:[{key:"insertLink",factory:function(){return new vot},config:ak},{key:"editLink",factory:function(){return new mot},config:ak},{key:"unLink",factory:function(){return new yot}},{key:"viewLink",factory:function(){return new bot}}],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(cot);if(!c)return!1;var f=c[1];return!(!f||!fot.test(f)&&!dot.test(f))}(a)){if(!f8(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);uL(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Zt(i,2),u=a[0],s=a[1];return O.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},Eot=yt(1 .valueOf),Dot=xt.RangeError,Cot=xt.RangeError,sL=xt.String,lL=Math.floor,b6=yt(function(t){var e=Ce(Pr(this)),n="",r=Dc(t);if(r<0||r==1/0)throw Dot("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),uk=yt("".slice),Ef=yt(1 .toFixed),bl=function(t,e,n){return e===0?n:e%2==1?bl(t,e-1,n*t):bl(t*t,e/2,n)},Ks=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=lL(o/1e7)},c2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=lL(r/e),r=r%e*1e7},sk=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=sL(t[e]);n=n===""?r:n+b6("0",7-r.length)+r}return n};function lk(t,e){return"w-e-image-container-"+O.findKey(t,e).id}tn({target:"Number",proto:!0,forced:xe(function(){return Ef(8e-5,3)!=="0.000"||Ef(.9,0)!=="1"||Ef(1.255,2)!=="1.25"||Ef(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!xe(function(){Ef({})})},{toFixed:function(t){var e,n,r,o,i=Eot(this),a=Dc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Cot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return sL(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*bl(2,69,1))-69)<0?i*bl(2,-e,1):i/bl(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Ks(u,0,n),r=a;r>=7;)Ks(u,1e7,0),r-=7;for(Ks(u,bl(10,r,1),0),r=e-1;r>=23;)c2(u,1<<23),r-=23;c2(u,1<<r),Ks(u,1,1),c2(u,2),l=sk(u)}else Ks(u,0,n),Ks(u,1<<-e,0),l=sk(u)+b6("0",a);return a>0?s+((o=l.length)<=a?"0."+b6("0",a-o)+l:uk(l,0,o-a)+"."+uk(l,o-a)):s+l}});var Sot={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,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,m=O.isNodeSelected(n,t),g={};d&&(g.width="100%"),v&&(g.height="100%");var y=wt("img",{style:g,src:o,alt:a,"data-href":s}),h=n.isDisabled();return m&&!h?function(b,w,D,S){var C=B("body"),A=lk(b,w),_=S.width,z=S.height,U=0,$=0,q=0,K=!1,I=null;function L(at){I=function(){var T=B("#"+A);if(T.length===0)throw new Error("Cannot find image container elem");return T}(),U=at;var k=I.find("img");if(k.length===0)throw new Error("Cannot find image elem");$=k.width(),q=k.height(),C.on("mousemove",X),C.on("mouseup",lt);var x=O.getHoverbar(b);x&&x.hideAndClean()}var X=es(function(at){at.preventDefault();var k=at.clientX,x=$+(K?U-k:k-U),T=q*(x/$);I!=null&&(x<=15||T<=15||(I.css("width",x+"px"),I.css("height",T+"px")))},100);function lt(at){if(C.off("mousemove",X),I!=null){var k=I.width().toFixed(2),x=I.height().toFixed(2),T={style:_a(_a({},w.style),{width:k+"px",height:x+"px"})};N.setNodes(b,T,{at:O.findPath(b,w)}),C.off("mouseup",lt)}}var it={};return _&&(it.width=_),z&&(it.height=z),wt("div",{id:A,style:it,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(at){var k=B(at.target);k.hasClass("w-e-image-dragger")&&(at.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(K=!0),L(at.clientX))}}},D,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,y,{width:d,height:v}):function(b,w,D,S){var C=S.width,A=S.height,_={};return C&&(_.width=C),A&&(_.height=A),wt("div",{id:lk(b,w),style:_,className:"w-e-image-container"},D)}(n,t,y,{width:d,height:v})}},xot={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:Qr(r,"width"),height:Qr(r,"height")},children:[{text:""}]}}};function cL(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 fL(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,cL("insertImage",t,e,n,r)];case 1:return u.sent()?[4,fL("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:c8(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),O.getSelectedNodeByType(t,"image")&&t.move(1),ym(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function ym(t){var e=t.selection;return e==null||!M.isCollapsed(e)||!!Zt(E.nodes(t,{match:function(n){var r=O.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function d0(){return mm("w-e-insert-image")}var Aot=function(){function t(){this.title=tt("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 ym(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=Zt(ir(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=Zt(ir(tt("image.desc"),i),2),d=f[0],p=B(f[1]),v=Zt(ir(tt("image.link"),a),2),m=v[0],g=B(v[1]),y=Zt(bc(u,tt("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),S=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(e,D,S,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(m),b.append(y),c.val(""),p.val(""),g.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}(),Oot=function(){function t(){this.title=tt("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||O.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return O.checkNodeType(r,"image")}})},t}();function p0(){return mm("w-e-edit-image")}var kot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=XN,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 O.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.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=Zt(ir(tt("image.src"),o),2),c=l[0],f=B(l[1]),d=Zt(ir(tt("image.desc"),i),2),p=d[0],v=B(d[1]),m=Zt(ir(tt("image.link"),a),2),g=m[0],y=B(m[1]),h=Zt(bc(u,tt("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function(U){U.preventDefault();var $=b.find("#"+o).val(),q=b.find("#"+i).val(),K=b.find("#"+a).val();n.updateImage(e,$,q,K),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var D=s,S=D.src,C=D.alt,A=C===void 0?"":C,_=D.href,z=_===void 0?"":_;return f.val(S),v.val(A),y.val(z),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,d,p,v,m,g;return Ha(this,function(y){switch(y.label){case 0:return[4,cL("editImage",a,u,s,l)];case 1:return y.sent()?[4,fL("editImage",a,u)]:[2];case 2:return f=y.sent(),(d=O.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:_a(_a({},p===void 0?{}:p),c)},N.setNodes(a,v,{match:function(h){return O.checkNodeType(h,"image")}}),m=O.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(m)),[2]}})})}(e,n,r,o,i))},t}(),Bot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=ZN,this.tag="button"}return t.prototype.getValue=function(e){var n=O.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}(),d8=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 O.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=O.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:_a(_a({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return O.checkNodeType(u,"image")}})}}},t}(),_ot=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}(d8),Fot=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}(d8),Tot=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}(d8),ck={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Pot={renderElems:[Sot],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,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[xot],menus:[{key:"insertImage",factory:function(){return new Aot},config:ck},{key:"deleteImage",factory:function(){return new Oot}},{key:"editImage",factory:function(){return new kot},config:ck},{key:"viewImageLink",factory:function(){return new Bot}},{key:"imageWidth30",factory:function(){return new _ot}},{key:"imageWidth50",factory:function(){return new Fot}},{key:"imageWidth100",factory:function(){return new Tot}}],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}},jot={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=O.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),wt("span",null,e));return o}},Iot=function(){function t(){this.title=tt("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!!O.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),Not={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!st.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}}},Lot={renderElems:[jot],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:[Not],menus:[{key:"todo",factory:function(){return new Iot}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&M.isCollapsed(o)){var i=O.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Rot={type:"blockquote",renderElem:function(t,e,n){return wt("blockquote",null,e)}},Mot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!st.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},zot=function(){function t(){this.title=tt("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!!O.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Zt(E.nodes(e,{match:function(n){var r=O.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}(),$ot={key:"blockquote",factory:function(){return new zot}},Hot=yt([].slice),Vot=o8("slice"),Uot=pr("species"),f2=xt.Array,Wot=Math.max;tn({target:"Array",proto:!0,forced:!Vot},{slice:function(t,e){var n,r,o,i=wc(this),a=gm(i),u=lp(t,a),s=lp(e===void 0?a:e,a);if(Bv(i)&&(n=i.constructor,(r8(n)&&(n===f2||Bv(n.prototype))||Gr(n)&&(n=n[Uot])===null)&&(n=void 0),n===f2||n===void 0))return Hot(i,u,s);for(r=new(n===void 0?f2:n)(Wot(s-u,0)),o=0;u<s;u++,o++)u in i&&UN(r,o,i[u]);return r.length=o,r}});var Got={renderElems:[Rot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Mot],menus:[$ot],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=Zt(E.nodes(t,{match:function(c){return O.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=O.findPath(t,a),s=E.end(t,u);if(_t.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
  98. `)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
  99. `)},r}},qot=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Zt(E.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=B('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),Kot={menus:[{key:"emotion",factory:function(){return new qot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Yot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Xot={selector:"font",preParseHtml:function(t){var e=B(t);if(Sc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Yot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Zot=yt("".indexOf);tn({target:"String",proto:!0,forced:!tL("includes")},{includes:function(t){return!!~Zot(Ce(Pr(this)),Ce(QN(t)),arguments.length>1?arguments[1]:void 0)}});var Ii,sg,h0=function(t){return t&&t.Math==Math&&t},Ft=h0(typeof globalThis=="object"&&globalThis)||h0(typeof window=="object"&&window)||h0(typeof self=="object"&&self)||h0(typeof xv=="object"&&xv)||function(){return this}()||Function("return this")(),p8=Function.prototype,fk=p8.apply,Jot=p8.bind,dk=p8.call,dL=typeof Reflect=="object"&&Reflect.apply||(Jot?dk.bind(fk):function(){return dk.apply(fk,arguments)}),pL=Function.prototype,w6=pL.bind,E6=pL.call,Qot=w6&&w6.bind(E6),Te=w6?function(t){return t&&Qot(E6,t)}:function(t){return t&&function(){return E6.apply(t,arguments)}},kn=function(t){return typeof t=="function"},cr=function(t){try{return!!t()}catch{return!0}},qn=!cr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Df=Function.prototype.call,Oo=Df.bind?Df.bind(Df):function(){return Df.apply(Df,arguments)},pk={}.propertyIsEnumerable,hk=Object.getOwnPropertyDescriptor,tit=hk&&!pk.call({1:2},1)?function(t){var e=hk(this,t);return!!e&&e.enumerable}:pk,h8={f:tit},ss=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},eit=Te({}.toString),nit=Te("".slice),Mu=function(t){return nit(eit(t),8,-1)},d2=Ft.Object,rit=Te("".split),hL=cr(function(){return!d2("z").propertyIsEnumerable(0)})?function(t){return Mu(t)=="String"?rit(t,""):d2(t)}:d2,oit=Ft.TypeError,g8=function(t){if(t==null)throw oit("Can't call method on "+t);return t},Mo=function(t){return hL(g8(t))},qr=function(t){return typeof t=="object"?t!==null:kn(t)},wr={},gk=function(t){return kn(t)?t:void 0},uh=function(t,e){return arguments.length<2?gk(wr[t])||gk(Ft[t]):wr[t]&&wr[t][e]||Ft[t]&&Ft[t][e]},gL=Te({}.isPrototypeOf),p2=uh("navigator","userAgent")||"",vk=Ft.process,mk=Ft.Deno,yk=vk&&vk.versions||mk&&mk.version,bk=yk&&yk.v8;bk&&(sg=(Ii=bk.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!sg&&p2&&(!(Ii=p2.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=p2.match(/Chrome\/(\d+)/))&&(sg=+Ii[1]);var Tv=sg,vo=!!Object.getOwnPropertySymbols&&!cr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Tv&&Tv<41}),v8=vo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",iit=Ft.Object,kl=v8?function(t){return typeof t=="symbol"}:function(t){var e=uh("Symbol");return kn(e)&&gL(e.prototype,iit(t))},ait=Ft.String,uit=Ft.TypeError,vL=function(t){if(kn(t))return t;throw uit(function(e){try{return ait(e)}catch{return"Object"}}(t)+" is not a function")},sit=Ft.TypeError,lit=Object.defineProperty,pa=Ft["__core-js_shared__"]||function(t,e){try{lit(Ft,t,{value:e,configurable:!0,writable:!0})}catch{Ft[t]=e}return e}("__core-js_shared__",{}),Ds=fm(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),cit=Ft.Object,sh=function(t){return cit(g8(t))},fit=Te({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return fit(sh(t),e)},dit=0,pit=Math.random(),hit=Te(1 .toString),Pv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+hit(++dit+pit,36)},Cf=Ds("wks"),zu=Ft.Symbol,wk=zu&&zu.for,git=v8?zu:zu&&zu.withoutSetter||Pv,hr=function(t){if(!Xt(Cf,t)||!vo&&typeof Cf[t]!="string"){var e="Symbol."+t;vo&&Xt(zu,t)?Cf[t]=zu[t]:Cf[t]=v8&&wk?wk(e):git(e)}return Cf[t]},vit=Ft.TypeError,mit=hr("toPrimitive"),xc=function(t){var e=function(n,r){if(!qr(n)||kl(n))return n;var o,i,a=(o=n[mit])==null?void 0:vL(o);if(a){if(i=Oo(a,n,r),!qr(i)||kl(i))return i;throw vit("Can't convert object to primitive value")}return function(u,s){var l,c;if(kn(l=u.toString)&&!qr(c=Oo(l,u))||kn(l=u.valueOf)&&!qr(c=Oo(l,u)))return c;throw sit("Can't convert object to primitive value")}(n)}(t,"string");return kl(e)?e:e+""},D6=Ft.document,yit=qr(D6)&&qr(D6.createElement),mL=function(t){return yit?D6.createElement(t):{}},yL=!qn&&!cr(function(){return Object.defineProperty(mL("div"),"a",{get:function(){return 7}}).a!=7}),Ek=Object.getOwnPropertyDescriptor,m8={f:qn?Ek:function(t,e){if(t=Mo(t),e=xc(e),yL)try{return Ek(t,e)}catch{}if(Xt(t,e))return ss(!Oo(h8.f,t,e),t[e])}},bit=/#|\.prototype\./,lh=function(t,e){var n=Eit[wit(t)];return n==Cit||n!=Dit&&(kn(e)?cr(e):!!e)},wit=lh.normalize=function(t){return String(t).replace(bit,".").toLowerCase()},Eit=lh.data={},Dit=lh.NATIVE="N",Cit=lh.POLYFILL="P",Sit=lh,Dk=Te(Te.bind),bL=function(t,e){return vL(t),e===void 0?t:Dk?Dk(t,e):function(){return t.apply(e,arguments)}},xit=Ft.String,Ait=Ft.TypeError,ls=function(t){if(qr(t))return t;throw Ait(xit(t)+" is not an object")},Oit=Ft.TypeError,Ck=Object.defineProperty,Cs={f:qn?Ck:function(t,e,n){if(ls(t),e=xc(e),ls(n),yL)try{return Ck(t,e,n)}catch{}if("get"in n||"set"in n)throw Oit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},yo=qn?function(t,e,n){return Cs.f(t,e,ss(1,n))}:function(t,e,n){return t[e]=n,t},kit=m8.f,Bit=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 dL(t,this,arguments)};return e.prototype=t.prototype,e},Ki=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Ft:d?Ft[c]:(Ft[c]||{}).prototype,m=f?wr:wr[c]||yo(wr,c,{})[c],g=m.prototype;for(o in e)n=!Sit(f?o:c+(d?".":"#")+o,t.forced)&&v&&Xt(v,o),a=m[o],n&&(u=t.noTargetGet?(l=kit(v,o))&&l.value:v[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?bL(i,Ft):t.wrap&&n?Bit(i):p&&kn(i)?Te(i):i,(t.sham||i&&i.sham||a&&a.sham)&&yo(s,"sham",!0),yo(m,o,s),p&&(Xt(wr,r=c+"Prototype")||yo(wr,r,{}),yo(wr[r],o,i),t.real&&g&&!g[o]&&yo(g,o,i)))},jv=Array.isArray||function(t){return Mu(t)=="Array"},_it=Math.ceil,Fit=Math.floor,y8=function(t){var e=+t;return e!=e||e===0?0:(e>0?Fit:_it)(e)},Tit=Math.min,bm=function(t){return(e=t.length)>0?Tit(y8(e),9007199254740991):0;var e},C6=function(t,e,n){var r=xc(e);r in t?Cs.f(t,r,ss(0,n)):t[r]=n},wL={};wL[hr("toStringTag")]="z";var b8=String(wL)==="[object z]",Pit=hr("toStringTag"),jit=Ft.Object,Iit=Mu(function(){return arguments}())=="Arguments",wm=b8?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{}}(e=jit(t),Pit))=="string"?n:Iit?Mu(e):(r=Mu(e))=="Object"&&kn(e.callee)?"Arguments":r},Nit=Te(Function.toString);kn(pa.inspectSource)||(pa.inspectSource=function(t){return Nit(t)});var EL=pa.inspectSource,DL=function(){},Lit=[],CL=uh("Reflect","construct"),w8=/^\s*(?:class|function)\b/,Rit=Te(w8.exec),Mit=!w8.exec(DL),Sf=function(t){if(!kn(t))return!1;try{return CL(DL,Lit,t),!0}catch{return!1}},zit=!CL||cr(function(){var t;return Sf(Sf.call)||!Sf(Object)||!Sf(function(){t=!0})||t})?function(t){if(!kn(t))return!1;switch(wm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mit||!!Rit(w8,EL(t))}:Sf,$it=hr("species"),Sk=Ft.Array,SL=function(t,e){return new(function(n){var r;return jv(n)&&(r=n.constructor,(zit(r)&&(r===Sk||jv(r.prototype))||qr(r)&&(r=r[$it])===null)&&(r=void 0)),r===void 0?Sk:r}(t))(e===0?0:e)},Hit=hr("species"),xL=hr("isConcatSpreadable"),xk=Ft.TypeError,Vit=Tv>=51||!cr(function(){var t=[];return t[xL]=!1,t.concat()[0]!==t}),Uit=Tv>=51||!cr(function(){var t=[];return(t.constructor={})[Hit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Wit=function(t){if(!qr(t))return!1;var e=t[xL];return e!==void 0?!!e:jv(t)};Ki({target:"Array",proto:!0,forced:!Vit||!Uit},{concat:function(t){var e,n,r,o,i,a=sh(this),u=SL(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Wit(i=e===-1?a:arguments[e])){if(s+(o=bm(i))>9007199254740991)throw xk("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&C6(u,s,i[n])}else{if(s>=9007199254740991)throw xk("Maximum allowed index exceeded");C6(u,s++,i)}return u.length=s,u}});var g0,Git=Ft.String,Iv=function(t){if(wm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Git(t)},qit=Math.max,Kit=Math.min,S6=function(t,e){var n=y8(t);return n<0?qit(n+e,0):Kit(n,e)},Ak=function(t){return function(e,n,r){var o,i=Mo(e),a=bm(i),u=S6(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}},Yit={includes:Ak(!0),indexOf:Ak(!1)},ch={},Xit=Yit.indexOf,Ok=Te([].push),AL=function(t,e){var n,r=Mo(t),o=0,i=[];for(n in r)!Xt(ch,n)&&Xt(r,n)&&Ok(i,n);for(;e.length>o;)Xt(r,n=e[o++])&&(~Xit(i,n)||Ok(i,n));return i},Nv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],E8=Object.keys||function(t){return AL(t,Nv)},Zit=qn?Object.defineProperties:function(t,e){ls(t);for(var n,r=Mo(e),o=E8(e),i=o.length,a=0;i>a;)Cs.f(t,n=o[a++],r[n]);return t},Jit=uh("document","documentElement"),kk=Ds("keys"),Em=function(t){return kk[t]||(kk[t]=Pv(t))},OL=Em("IE_PROTO"),h2=function(){},kL=function(t){return"<script>"+t+"<\/script>"},Bk=function(t){t.write(kL("")),t.close();var e=t.parentWindow.Object;return t=null,e},lg=function(){try{g0=new ActiveXObject("htmlfile")}catch{}var t,e;lg=typeof document<"u"?document.domain&&g0?Bk(g0):((e=mL("iframe")).style.display="none",Jit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(kL("document.F=Object")),t.close(),t.F):Bk(g0);for(var n=Nv.length;n--;)delete lg.prototype[Nv[n]];return lg()};ch[OL]=!0;var Lv,Sd,Rv,cs=Object.create||function(t,e){var n;return t!==null?(h2.prototype=ls(t),n=new h2,h2.prototype=null,n[OL]=t):n=lg(),e===void 0?n:Zit(n,e)},Qit=Nv.concat("length","prototype"),BL={f:Object.getOwnPropertyNames||function(t){return AL(t,Qit)}},tat=Ft.Array,eat=Math.max,_k=BL.f,Fk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_L={f:function(t){return Fk&&Mu(t)=="Window"?function(e){try{return _k(e)}catch{return function(r,o,i){for(var a=bm(r),u=S6(void 0,a),s=S6(a,a),l=tat(eat(s-u,0)),c=0;u<s;u++,c++)C6(l,c,r[u]);return l.length=c,l}(Fk)}}(t):_k(Mo(t))}},g2={f:Object.getOwnPropertySymbols},nat=Te([].slice),Mv=function(t,e,n,r){yo(t,e,n)},D8={f:hr},rat=Cs.f,Ne=function(t){var e=wr.Symbol||(wr.Symbol={});Xt(e,t)||rat(e,t,{value:D8.f(t)})},oat=b8?{}.toString:function(){return"[object "+wm(this)+"]"},iat=Cs.f,Tk=hr("toStringTag"),zv=function(t,e,n,r){if(t){var o=n?t:t.prototype;Xt(o,Tk)||iat(o,Tk,{configurable:!0,value:e}),r&&!b8&&yo(o,"toString",oat)}},Pk=Ft.WeakMap,aat=kn(Pk)&&/native code/.test(EL(Pk)),x6=Ft.TypeError,uat=Ft.WeakMap;if(aat||pa.state){var iu=pa.state||(pa.state=new uat),sat=Te(iu.get),jk=Te(iu.has),lat=Te(iu.set);Lv=function(t,e){if(jk(iu,t))throw new x6("Object already initialized");return e.facade=t,lat(iu,t,e),e},Sd=function(t){return sat(iu,t)||{}},Rv=function(t){return jk(iu,t)}}else{var Ys=Em("state");ch[Ys]=!0,Lv=function(t,e){if(Xt(t,Ys))throw new x6("Object already initialized");return e.facade=t,yo(t,Ys,e),e},Sd=function(t){return Xt(t,Ys)?t[Ys]:{}},Rv=function(t){return Xt(t,Ys)}}var Ac={set:Lv,get:Sd,has:Rv,enforce:function(t){return Rv(t)?Sd(t):Lv(t,{})},getterFor:function(t){return function(e){var n;if(!qr(e)||(n=Sd(e)).type!==t)throw x6("Incompatible receiver, "+t+" required");return n}}},Ik=Te([].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 d,p,v=sh(s),m=hL(v),g=bL(l,c),y=bm(m),h=0,b=f||SL,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:Ik(w,d)}else switch(t){case 4:return!1;case 7:Ik(w,d)}return i?-1:r||o?o:w}},Dm=[Ni(0),Ni(1),Ni(2),Ni(3),Ni(4),Ni(5),Ni(6),Ni(7)][0],$n=Em("hidden"),Nk=hr("toPrimitive"),cat=Ac.set,Lk=Ac.getterFor("Symbol"),Kr=Object.prototype,Zi=Ft.Symbol,ra=Zi&&Zi.prototype,Rk=Ft.TypeError,v2=Ft.QObject,xf=uh("JSON","stringify"),FL=m8.f,Ji=Cs.f,TL=_L.f,fat=h8.f,PL=Te([].push),fi=Ds("symbols"),fh=Ds("op-symbols"),m2=Ds("string-to-symbol-registry"),y2=Ds("symbol-to-string-registry"),dat=Ds("wks"),b2=!v2||!v2.prototype||!v2.prototype.findChild,A6=qn&&cr(function(){return cs(Ji({},"a",{get:function(){return Ji(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=FL(Kr,e);r&&delete Kr[e],Ji(t,e,n),r&&t!==Kr&&Ji(Kr,e,r)}:Ji,w2=function(t,e){var n=fi[t]=cs(ra);return cat(n,{type:"Symbol",tag:t,description:e}),qn||(n.description=e),n},$v=function(t,e,n){t===Kr&&$v(fh,e,n),ls(t);var r=xc(e);return ls(n),Xt(fi,r)?(n.enumerable?(Xt(t,$n)&&t[$n][r]&&(t[$n][r]=!1),n=cs(n,{enumerable:ss(0,!1)})):(Xt(t,$n)||Ji(t,$n,ss(1,{})),t[$n][r]=!0),A6(t,r,n)):Ji(t,r,n)},Mk=function(t,e){ls(t);var n=Mo(e),r=E8(n).concat(O6(n));return Dm(r,function(o){qn&&!Oo(jL,n,o)||$v(t,o,n[o])}),t},jL=function(t){var e=xc(t),n=Oo(fat,this,e);return!(this===Kr&&Xt(fi,e)&&!Xt(fh,e))&&(!(n||!Xt(this,e)||!Xt(fi,e)||Xt(this,$n)&&this[$n][e])||n)},zk=function(t,e){var n=Mo(t),r=xc(e);if(n!==Kr||!Xt(fi,r)||Xt(fh,r)){var o=FL(n,r);return!o||!Xt(fi,r)||Xt(n,$n)&&n[$n][r]||(o.enumerable=!0),o}},$k=function(t){var e=TL(Mo(t)),n=[];return Dm(e,function(r){Xt(fi,r)||Xt(ch,r)||PL(n,r)}),n},O6=function(t){var e=t===Kr,n=TL(e?fh:Mo(t)),r=[];return Dm(n,function(o){!Xt(fi,o)||e&&!Xt(Kr,o)||PL(r,fi[o])}),r};if(vo||(ra=(Zi=function(){if(gL(ra,this))throw Rk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Iv(arguments[0]):void 0,e=Pv(t),n=function(r){this===Kr&&Oo(n,fh,r),Xt(this,$n)&&Xt(this[$n],e)&&(this[$n][e]=!1),A6(this,e,ss(1,r))};return qn&&b2&&A6(Kr,e,{configurable:!0,set:n}),w2(e,t)}).prototype,Mv(ra,"toString",function(){return Lk(this).tag}),Mv(Zi,"withoutSetter",function(t){return w2(Pv(t),t)}),h8.f=jL,Cs.f=$v,m8.f=zk,BL.f=_L.f=$k,g2.f=O6,D8.f=function(t){return w2(hr(t),t)},qn&&Ji(ra,"description",{configurable:!0,get:function(){return Lk(this).description}})),Ki({global:!0,wrap:!0,forced:!vo,sham:!vo},{Symbol:Zi}),Dm(E8(dat),function(t){Ne(t)}),Ki({target:"Symbol",stat:!0,forced:!vo},{for:function(t){var e=Iv(t);if(Xt(m2,e))return m2[e];var n=Zi(e);return m2[e]=n,y2[n]=e,n},keyFor:function(t){if(!kl(t))throw Rk(t+" is not a symbol");if(Xt(y2,t))return y2[t]},useSetter:function(){b2=!0},useSimple:function(){b2=!1}}),Ki({target:"Object",stat:!0,forced:!vo,sham:!qn},{create:function(t,e){return e===void 0?cs(t):Mk(cs(t),e)},defineProperty:$v,defineProperties:Mk,getOwnPropertyDescriptor:zk}),Ki({target:"Object",stat:!0,forced:!vo},{getOwnPropertyNames:$k,getOwnPropertySymbols:O6}),Ki({target:"Object",stat:!0,forced:cr(function(){g2.f(1)})},{getOwnPropertySymbols:function(t){return g2.f(sh(t))}}),xf){var pat=!vo||cr(function(){var t=Zi();return xf([t])!="[null]"||xf({a:t})!="{}"||xf(Object(t))!="{}"});Ki({target:"JSON",stat:!0,forced:pat},{stringify:function(t,e,n){var r=nat(arguments),o=e;if((qr(e)||t!==void 0)&&!kl(t))return jv(e)||(e=function(i,a){if(kn(o)&&(a=Oo(o,this,i,a)),!kl(a))return a}),r[1]=e,dL(xf,null,r)}})}if(!ra[Nk]){var hat=ra.valueOf;Mv(ra,Nk,function(t){return Oo(hat,this)})}zv(Zi,"Symbol"),ch[$n]=!0,Ne("asyncIterator"),Ne("hasInstance"),Ne("isConcatSpreadable"),Ne("iterator"),Ne("match"),Ne("matchAll"),Ne("replace"),Ne("search"),Ne("species"),Ne("split"),Ne("toPrimitive"),Ne("toStringTag"),Ne("unscopables"),zv(Ft.JSON,"JSON",!0);var oa,Hk,Vk,gat=wr.Symbol,$u={},IL=Function.prototype,vat=qn&&Object.getOwnPropertyDescriptor,E2=Xt(IL,"name"),mat={EXISTS:E2,PROPER:E2&&(function(){}).name==="something",CONFIGURABLE:E2&&(!qn||qn&&vat(IL,"name").configurable)},yat=!cr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Uk=Em("IE_PROTO"),k6=Ft.Object,bat=k6.prototype,B6=yat?k6.getPrototypeOf:function(t){var e=sh(t);if(Xt(e,Uk))return e[Uk];var n=e.constructor;return kn(n)&&e instanceof n?n.prototype:e instanceof k6?bat:null},_6=hr("iterator"),NL=!1;[].keys&&("next"in(Vk=[].keys())?(Hk=B6(B6(Vk)))!==Object.prototype&&(oa=Hk):NL=!0);var wat=oa==null||cr(function(){var t={};return oa[_6].call(t)!==t});oa=wat?{}:cs(oa),kn(oa[_6])||Mv(oa,_6,function(){return this});var LL={IteratorPrototype:oa,BUGGY_SAFARI_ITERATORS:NL},Eat=LL.IteratorPrototype,Dat=function(){return this};Ft.String,Ft.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var Cat=mat.PROPER,D2=LL.BUGGY_SAFARI_ITERATORS,Sat=hr("iterator"),xat=function(){return this},RL=function(t,e,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=cs(Eat,{next:ss(1,h)}),zv(g,w,!1,!0),$u[w]=Dat})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!D2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Sat]||d["@@iterator"]||o&&d[o],v=!D2&&p||l(o),m=e=="Array"&&d.entries||p;return m&&(u=B6(m.call(new t)))!==Object.prototype&&u.next&&(zv(u,c,!0,!0),$u[c]=xat),Cat&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Oo(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ki({target:e,proto:!0,forced:D2||f},s)),$u[e]=v,s},Aat=Ac.set,Oat=Ac.getterFor("Array Iterator");RL(Array,"Array",function(t,e){Aat(this,{type:"Array Iterator",target:Mo(t),index:0,kind:e})},function(){var t=Oat(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 Wk=hr("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 Gk=Ft[C2],S2=Gk&&Gk.prototype;S2&&wm(S2)!==Wk&&yo(S2,Wk,C2),$u[C2]=$u.Array}var kat=gat;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var v0=kat,Bat=Te("".charAt),qk=Te("".charCodeAt),_at=Te("".slice),Fat=function(t){return function(e,n){var r,o,i=Iv(g8(e)),a=y8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=qk(i,a))<55296||r>56319||a+1===u||(o=qk(i,a+1))<56320||o>57343?t?Bat(i,a):r:t?_at(i,a,a+2):o-56320+(r-55296<<10)+65536}},Tat=Fat(!0),Pat=Ac.set,jat=Ac.getterFor("String Iterator");RL(String,"String",function(t){Pat(this,{type:"String Iterator",string:Iv(t),index:0})},function(){var t,e=jat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Tat(n,r),e.index+=t.length,{value:t,done:!1})});var Iat=D8.f("iterator"),Nat=fm(function(t){function e(n){return typeof v0=="function"&&typeof Iat=="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 v0=="function"&&r.constructor===v0&&r!==v0.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}),ML=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Nat),Lat=hm.EXISTS,Rat=Ec.f,zL=Function.prototype,Mat=yt(zL.toString),$L=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zat=yt($L.exec);no&&!Lat&&Rat(zL,"name",{configurable:!0,get:function(){try{return zat($L,Mat(this))[1]}catch{return""}}});var HL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Zt(E.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),$at=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=prt,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:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(ML(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}(HL),Hat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=hrt,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:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(ML(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}(HL),Vat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&us(i,{fontSize:r}),o&&us(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!st.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((l8(e)||Sc(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:[Xot],parseStyleHtml:function(t,e,n){var r=B(t);if(!st.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Qr(r,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Qr(r,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new $at},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 Hat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Uat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=Qr(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]}},VL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Zt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Zt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Zt(E.nodes(e,{match:function(r){var o=O.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Wat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=grt,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}(VL),Gat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=vrt,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}(VL),qat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.indent,r=e;return n&&us(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:[Uat],parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e))return e;var o=e,i=Qr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Gat}},{key:"delIndent",factory:function(){return new Wat}}]},Cm=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=Zt(E.nodes(e,{match:function(r){var o=O.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||!!O.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),Kat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=mrt,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}(Cm),Yat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=yrt,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}(Cm),Xat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=brt,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}(Cm),Zat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=wrt,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}(Cm),Jat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.textAlign,r=e;return n&&us(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=Qr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Kat}},{key:"justifyRight",factory:function(){return new Yat}},{key:"justifyCenter",factory:function(){return new Xat}},{key:"justifyJustify",factory:function(){return new Zat}}]},Qat=function(){function t(){this.title=tt("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:tt("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=Zt(E.nodes(e,{match:function(r){var o=O.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}(),tut={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.lineHeight,r=e;return n&&us(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=Qr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Qat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},eut=function(){function t(){this.title=tt("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}(),nut=function(){function t(){this.title=tt("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}(),rut={menus:[{key:"redo",factory:function(){return new eut}},{key:"undo",factory:function(){return new nut}}]},out={type:"divider",renderElem:function(t,e,n){return Kl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:O.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Kl("hr")])}},iut=function(){function t(){this.title=tt("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||!!O.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=O.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}(),aut={renderElems:[out],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 iut}}],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=Zt(o,2),a=i[0],u=i[1];if(O.getNodeType(a)!=="divider")return n([a,u]);O.isLastNode(r,a)&&N.insertNodes(r,O.genEmptyParagraph(),{at:[u[0]+1]})},r}},uut=vm.map;tn({target:"Array",proto:!0,forced:!o8("map")},{map:function(t){return uut(this,t,arguments.length>1?arguments[1]:void 0)}});var sut=yt([].join),lut=dm!=Object,cut=qN("join",",");tn({target:"Array",proto:!0,forced:lut||!cut},{join:function(t){return sut(wc(this),t===void 0?",":t)}});var fut=function(){function t(){this.title=tt("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=O.getSelectedNodeByType(e,"code");if(n==null)return null;var r=O.getParentNode(e,n);return r==null||O.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=O.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=O.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=Q.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(`
  100. `).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=GN(a),s=u.next();!s.done;s=u.next()){var l=Zt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
  101. `)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),dut={key:"codeBlock",factory:function(){return new fut}};tn({target:"String",proto:!0,forced:ld("anchor")},{anchor:function(t){return sd(this,"a","name",t)}}),u8("match",function(t,e,n){return[function(r){var o=Pr(this),i=r==null?void 0:pm(r,t);return i?Le(i,r,o):new RegExp(r)[t](Ce(o))},function(r){var o=ar(this),i=Ce(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return fp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=fp(o,i))!==null;){var f=Ce(s[0]);l[c]=f,f===""&&(o.lastIndex=s8(i,rh(o.lastIndex),u)),c++}return c===0?null:l}]});var put={type:"pre",renderElem:function(t,e,n){return wt("pre",null,e)}},hut={type:"code",renderElem:function(t,e,n){return wt("code",null,e)}},gut={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return O.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return O.getNodeType(o)==="code"})}}},vut={menus:[dut],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=O.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=Q.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
  102. `),m=v.length;return m===0?"":v[m-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
  103. `+s)}}o.insertText(`
  104. `)}else e()},o.normalizeNode=function(i){var a=Zt(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(O.isLastNode(o,u)&&N.insertNodes(o,O.genEmptyParagraph(),{at:[s[0]+1]}),O.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(O.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[put,hut],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(Sc(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||""}]}}},gut]},mut=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),yut={menus:[{key:"fullScreen",factory:function(){return new mut}}]},but=function(){function t(){this.title=tt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!M.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),wut=[Frt,lot,Vat,qat,Jat,tut,Pot,aut,Kot,wot,vut,Got,oot,trt,Lot,rut,yut,{menus:[{key:"enter",factory:function(){return new but}}]}];Yn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Yn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Kk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Li,cg,m0=function(t){return t&&t.Math==Math&&t},Et=m0(typeof globalThis=="object"&&globalThis)||m0(typeof window=="object"&&window)||m0(typeof self=="object"&&self)||m0(typeof Kk=="object"&&Kk)||function(){return this}()||Function("return this")(),UL=Function.prototype,F6=UL.bind,T6=UL.call,Eut=F6&&F6.bind(T6),It=F6?function(t){return t&&Eut(T6,t)}:function(t){return t&&function(){return T6.apply(t,arguments)}},ke=function(t){try{return!!t()}catch{return!0}},Dut=It({}.toString),Cut=It("".slice),ai=function(t){return Cut(Dut(t),8,-1)},x2=Et.Object,Sut=It("".split),WL=ke(function(){return!x2("z").propertyIsEnumerable(0)})?function(t){return ai(t)=="String"?Sut(t,""):x2(t)}:x2,xut=Et.TypeError,Sm=function(t){if(t==null)throw xut("Can't call method on "+t);return t},Oc=function(t){return WL(Sm(t))},Aut=Object.defineProperty,S8=function(t,e){try{Aut(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},ha=Et["__core-js_shared__"]||S8("__core-js_shared__",{}),x8=C8(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Out=Et.Object,dh=function(t){return Out(Sm(t))},kut=It({}.hasOwnProperty),en=Object.hasOwn||function(t,e){return kut(dh(t),e)},But=0,_ut=Math.random(),Fut=It(1 .toString),A8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Fut(++But+_ut,36)},Pe=function(t){return typeof t=="function"},Tut=function(t){return Pe(t)?t:void 0},ph=function(t,e){return arguments.length<2?Tut(Et[t]):Et[t]&&Et[t][e]},A2=ph("navigator","userAgent")||"",Yk=Et.process,Xk=Et.Deno,Zk=Yk&&Yk.versions||Xk&&Xk.version,Jk=Zk&&Zk.v8;Jk&&(cg=(Li=Jk.split("."))[0]>0&&Li[0]<4?1:+(Li[0]+Li[1])),!cg&&A2&&(!(Li=A2.match(/Edge\/(\d+)/))||Li[1]>=74)&&(Li=A2.match(/Chrome\/(\d+)/))&&(cg=+Li[1]);var y0,P6=cg,j6=!!Object.getOwnPropertySymbols&&!ke(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&P6&&P6<41}),O8=j6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Af=x8("wks"),Hu=Et.Symbol,Qk=Hu&&Hu.for,Put=O8?Hu:Hu&&Hu.withoutSetter||A8,vn=function(t){if(!en(Af,t)||!j6&&typeof Af[t]!="string"){var e="Symbol."+t;j6&&en(Hu,t)?Af[t]=Hu[t]:Af[t]=O8&&Qk?Qk(e):Put(e)}return Af[t]},Fe=function(t){return typeof t=="object"?t!==null:Pe(t)},jut=Et.String,Iut=Et.TypeError,Xn=function(t){if(Fe(t))return t;throw Iut(jut(t)+" is not an object")},Fa=!ke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),I6=Et.document,Nut=Fe(I6)&&Fe(I6.createElement),k8=function(t){return Nut?I6.createElement(t):{}},GL=!Fa&&!ke(function(){return Object.defineProperty(k8("div"),"a",{get:function(){return 7}}).a!=7}),Of=Function.prototype.call,sn=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},Hv=It({}.isPrototypeOf),Lut=Et.Object,O2=O8?function(t){return typeof t=="symbol"}:function(t){var e=ph("Symbol");return Pe(e)&&Hv(e.prototype,Lut(t))},Rut=Et.String,N6=function(t){try{return Rut(t)}catch{return"Object"}},Mut=Et.TypeError,B8=function(t){if(Pe(t))return t;throw Mut(N6(t)+" is not a function")},dp=function(t,e){var n=t[e];return n==null?void 0:B8(n)},zut=Et.TypeError,$ut=Et.TypeError,Hut=vn("toPrimitive"),_8=function(t){var e=function(n,r){if(!Fe(n)||O2(n))return n;var o,i=dp(n,Hut);if(i){if(o=sn(i,n,r),!Fe(o)||O2(o))return o;throw $ut("Can't convert object to primitive value")}return function(a,u){var s,l;if(Pe(s=a.toString)&&!Fe(l=sn(s,a))||Pe(s=a.valueOf)&&!Fe(l=sn(s,a)))return l;throw zut("Can't convert object to primitive value")}(n)}(t,"string");return O2(e)?e:e+""},Vut=Et.TypeError,tB=Object.defineProperty,Ss={f:Fa?tB:function(t,e,n){if(Xn(t),e=_8(e),Xn(n),GL)try{return tB(t,e,n)}catch{}if("get"in n||"set"in n)throw Vut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Uut=Math.ceil,Wut=Math.floor,hh=function(t){var e=+t;return e!=e||e===0?0:(e>0?Wut:Uut)(e)},Gut=Math.max,qut=Math.min,L6=function(t,e){var n=hh(t);return n<0?Gut(n+e,0):qut(n,e)},Kut=Math.min,qL=function(t){return t>0?Kut(hh(t),9007199254740991):0},kc=function(t){return qL(t.length)},eB=function(t){return function(e,n,r){var o,i=Oc(e),a=kc(i),u=L6(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}},KL={includes:eB(!0),indexOf:eB(!1)},xm={},Yut=KL.indexOf,nB=It([].push),YL=function(t,e){var n,r=Oc(t),o=0,i=[];for(n in r)!en(xm,n)&&en(r,n)&&nB(i,n);for(;e.length>o;)en(r,n=e[o++])&&(~Yut(i,n)||nB(i,n));return i},Vv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xut=Object.keys||function(t){return YL(t,Vv)},Zut=Fa?Object.defineProperties:function(t,e){Xn(t);for(var n,r=Oc(e),o=Xut(e),i=o.length,a=0;i>a;)Ss.f(t,n=o[a++],r[n]);return t},Jut=ph("document","documentElement"),rB=x8("keys"),F8=function(t){return rB[t]||(rB[t]=A8(t))},XL=F8("IE_PROTO"),k2=function(){},ZL=function(t){return"<script>"+t+"<\/script>"},oB=function(t){t.write(ZL("")),t.close();var e=t.parentWindow.Object;return t=null,e},fg=function(){try{y0=new ActiveXObject("htmlfile")}catch{}var t,e;fg=typeof document<"u"?document.domain&&y0?oB(y0):((e=k8("iframe")).style.display="none",Jut.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(ZL("document.F=Object")),t.close(),t.F):oB(y0);for(var n=Vv.length;n--;)delete fg.prototype[Vv[n]];return fg()};xm[XL]=!0;var T8=Object.create||function(t,e){var n;return t!==null?(k2.prototype=Xn(t),n=new k2,k2.prototype=null,n[XL]=t):n=fg(),e===void 0?n:Zut(n,e)},R6=vn("unscopables"),M6=Array.prototype;M6[R6]==null&&Ss.f(M6,R6,{configurable:!0,value:T8(null)});var xd=function(t){M6[R6][t]=!0},nc={},Qut=It(Function.toString);Pe(ha.inspectSource)||(ha.inspectSource=function(t){return Qut(t)});var Uv,Ad,Wv,P8=ha.inspectSource,iB=Et.WeakMap,JL=Pe(iB)&&/native code/.test(P8(iB)),Am=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ga=Fa?function(t,e,n){return Ss.f(t,e,Am(1,n))}:function(t,e,n){return t[e]=n,t},z6=Et.TypeError,tst=Et.WeakMap;if(JL||ha.state){var au=ha.state||(ha.state=new tst),est=It(au.get),aB=It(au.has),nst=It(au.set);Uv=function(t,e){if(aB(au,t))throw new z6("Object already initialized");return e.facade=t,nst(au,t,e),e},Ad=function(t){return est(au,t)||{}},Wv=function(t){return aB(au,t)}}else{var Xs=F8("state");xm[Xs]=!0,Uv=function(t,e){if(en(t,Xs))throw new z6("Object already initialized");return e.facade=t,ga(t,Xs,e),e},Ad=function(t){return en(t,Xs)?t[Xs]:{}},Wv=function(t){return en(t,Xs)}}var Vu,uB,sB,Po={set:Uv,get:Ad,has:Wv,enforce:function(t){return Wv(t)?Ad(t):Uv(t,{})},getterFor:function(t){return function(e){var n;if(!Fe(e)||(n=Ad(e)).type!==t)throw z6("Incompatible receiver, "+t+" required");return n}}},lB={}.propertyIsEnumerable,cB=Object.getOwnPropertyDescriptor,rst={f:cB&&!lB.call({1:2},1)?function(t){var e=cB(this,t);return!!e&&e.enumerable}:lB},fB=Object.getOwnPropertyDescriptor,QL={f:Fa?fB:function(t,e){if(t=Oc(t),e=_8(e),GL)try{return fB(t,e)}catch{}if(en(t,e))return Am(!sn(rst.f,t,e),t[e])}},tR=Function.prototype,ost=Fa&&Object.getOwnPropertyDescriptor,B2=en(tR,"name"),j8={EXISTS:B2,PROPER:B2&&(function(){}).name==="something",CONFIGURABLE:B2&&(!Fa||Fa&&ost(tR,"name").configurable)},di=C8(function(t){var e=j8.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,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Pe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!en(u,"name")||e&&u.name!==p)&&ga(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ga(i,a,u)):f?i[a]=u:S8(a,u)})(Function.prototype,"toString",function(){return Pe(this)&&n(this).source||P8(this)})}),ist=Vv.concat("length","prototype"),Gv={f:Object.getOwnPropertyNames||function(t){return YL(t,ist)}},ast={f:Object.getOwnPropertySymbols},ust=It([].concat),sst=ph("Reflect","ownKeys")||function(t){var e=Gv.f(Xn(t)),n=ast.f;return n?ust(e,n(t)):e},lst=function(t,e){for(var n=sst(e),r=Ss.f,o=QL.f,i=0;i<n.length;i++){var a=n[i];en(t,a)||r(t,a,o(e,a))}},cst=/#|\.prototype\./,gh=function(t,e){var n=dst[fst(t)];return n==hst||n!=pst&&(Pe(e)?ke(e):!!e)},fst=gh.normalize=function(t){return String(t).replace(cst,".").toLowerCase()},dst=gh.data={},pst=gh.NATIVE="N",hst=gh.POLYFILL="P",$6=gh,gst=QL.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]||S8(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=gst(n,r))&&a.value:n[r],!$6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;lst(i,o)}(t.sham||o&&o.sham)&&ga(i,"sham",!0),di(n,r,i,t)}},vst=!ke(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),dB=F8("IE_PROTO"),H6=Et.Object,mst=H6.prototype,qv=vst?H6.getPrototypeOf:function(t){var e=dh(t);if(en(e,dB))return e[dB];var n=e.constructor;return Pe(n)&&e instanceof n?n.prototype:e instanceof H6?mst:null},V6=vn("iterator"),eR=!1;[].keys&&("next"in(sB=[].keys())?(uB=qv(qv(sB)))!==Object.prototype&&(Vu=uB):eR=!0);var yst=Vu==null||ke(function(){var t={};return Vu[V6].call(t)!==t});yst&&(Vu={}),Pe(Vu[V6])||di(Vu,V6,function(){return this});var I8={IteratorPrototype:Vu,BUGGY_SAFARI_ITERATORS:eR},bst=Ss.f,pB=vn("toStringTag"),U6=function(t,e,n){t&&!en(t=n?t:t.prototype,pB)&&bst(t,pB,{configurable:!0,value:e})},wst=I8.IteratorPrototype,Est=function(){return this},Dst=Et.String,Cst=Et.TypeError,Kv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=It(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Xn(r),function(i){if(typeof i=="object"||Pe(i))return i;throw Cst("Can't set "+Dst(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Sst=j8.PROPER,xst=j8.CONFIGURABLE,hB=I8.IteratorPrototype,_2=I8.BUGGY_SAFARI_ITERATORS,kf=vn("iterator"),Ast=function(){return this},nR=function(t,e,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=T8(wst,{next:Am(1,h)}),U6(g,w,!1),nc[w]=Est})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!_2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[kf]||d["@@iterator"]||o&&d[o],v=!_2&&p||l(o),m=e=="Array"&&d.entries||p;return m&&(u=qv(m.call(new t)))!==Object.prototype&&u.next&&(qv(u)!==hB&&(Kv?Kv(u,hB):Pe(u[kf])||di(u,kf,Ast)),U6(u,c,!0)),Sst&&o=="values"&&p&&p.name!=="values"&&(xst?ga(d,"name","values"):(f=!0,v=function(){return sn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ta({target:e,proto:!0,forced:_2||f},s)),d[kf]!==v&&di(d,kf,v,{name:o}),nc[e]=v,s},Ost=Po.set,kst=Po.getterFor("Array Iterator"),cd=nR(Array,"Array",function(t,e){Ost(this,{type:"Array Iterator",target:Oc(t),index:0,kind:e})},function(){var t=kst(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,xd("keys"),xd("values"),xd("entries");var rR={};rR[vn("toStringTag")]="z";var N8=String(rR)==="[object z]",Bst=vn("toStringTag"),_st=Et.Object,Fst=ai(function(){return arguments}())=="Arguments",Om=N8?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{}}(e=_st(t),Bst))=="string"?n:Fst?ai(e):(r=ai(e))=="Object"&&Pe(e.callee)?"Arguments":r},Tst=N8?{}.toString:function(){return"[object "+Om(this)+"]"};N8||di(Object.prototype,"toString",Tst,{unsafe:!0});var Pst=Et.String,Jo=function(t){if(Om(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pst(t)},jst=It("".charAt),gB=It("".charCodeAt),Ist=It("".slice),vB=function(t){return function(e,n){var r,o,i=Jo(Sm(e)),a=hh(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=gB(i,a))<55296||r>56319||a+1===u||(o=gB(i,a+1))<56320||o>57343?t?jst(i,a):r:t?Ist(i,a,a+2):o-56320+(r-55296<<10)+65536}},oR={codeAt:vB(!1),charAt:vB(!0)},Nst=oR.charAt,Lst=Po.set,Rst=Po.getterFor("String Iterator");nR(String,"String",function(t){Lst(this,{type:"String Iterator",string:Jo(t),index:0})},function(){var t,e=Rst(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Nst(n,r),e.index+=t.length,{value:t,done:!1})});var W6=function(t,e,n){for(var r in e)di(t,r,e[r],n);return t},Mst=Et.Array,zst=Math.max,mB=Gv.f,yB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$st={f:function(t){return yB&&ai(t)=="Window"?function(e){try{return mB(e)}catch{return function(r,o,i){for(var a,u,s,l,c=kc(r),f=L6(void 0,c),d=L6(c,c),p=Mst(zst(d-f,0)),v=0;f<d;f++,v++)a=p,u=v,s=r[f],(l=_8(u))in a?Ss.f(a,l,Am(0,s)):a[l]=s;return p.length=v,p}(yB)}}(t):mB(Oc(t))}},bB=ke(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),b0=Object.isExtensible,Su=ke(function(){b0(1)})||bB?function(t){return!!Fe(t)&&(!bB||ai(t)!="ArrayBuffer")&&(!b0||b0(t))}:b0,Hst=!ke(function(){return Object.isExtensible(Object.preventExtensions({}))}),L8=C8(function(t){var e=Ss.f,n=!1,r=A8("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=Gv.f,s=It([].splice),l={};l[r]=1,u(l).length&&(Gv.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Ta({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$st.f}))},fastKey:function(u,s){if(!Fe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!en(u,r)){if(!Su(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!en(u,r)){if(!Su(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Hst&&n&&Su(u)&&!en(u,r)&&i(u),u}};xm[r]=!0}),wB=It(It.bind),R8=function(t,e){return B8(t),e===void 0?t:wB?wB(t,e):function(){return t.apply(e,arguments)}},Vst=vn("iterator"),Ust=Array.prototype,Wst=vn("iterator"),EB=function(t){if(t!=null)return dp(t,Wst)||dp(t,"@@iterator")||nc[Om(t)]},Gst=Et.TypeError,DB=function(t,e,n){var r,o;Xn(t);try{if(!(r=dp(t,"return"))){if(e==="throw")throw n;return n}r=sn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Xn(r),n},qst=Et.TypeError,dg=function(t,e){this.stopped=t,this.result=e},CB=dg.prototype,iR=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=R8(e,f),g=function(h){return r&&DB(r,"normal",h),new dg(!0,h)},y=function(h){return d?(Xn(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=t;else{if(!(o=EB(t)))throw qst(N6(t)+" is not iterable");if((c=o)!==void 0&&(nc.Array===c||Ust[Vst]===c)){for(i=0,a=kc(t);a>i;i++)if((u=y(t[i]))&&Hv(CB,u))return u;return new dg(!1)}r=function(h,b){var w=arguments.length<2?EB(h):b;if(B8(w))return Xn(sn(w,h));throw Gst(N6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=sn(s,r)).done;){try{u=y(l.value)}catch(h){DB(r,"throw",h)}if(typeof u=="object"&&u&&Hv(CB,u))return u}return new dg(!1)},Kst=Et.TypeError,aR=function(t,e){if(Hv(e,t))return t;throw Kst("Incorrect invocation")},uR=vn("iterator"),sR=!1;try{var Yst=0,SB={next:function(){return{done:!!Yst++}},return:function(){sR=!0}};SB[uR]=function(){return this},Array.from(SB,function(){throw 2})}catch{}var G6=Array.isArray||function(t){return ai(t)=="Array"},lR=function(){},Xst=[],cR=ph("Reflect","construct"),M8=/^\s*(?:class|function)\b/,Zst=It(M8.exec),Jst=!M8.exec(lR),Bf=function(t){if(!Pe(t))return!1;try{return cR(lR,Xst,t),!0}catch{return!1}},Qst=!cR||ke(function(){var t;return Bf(Bf.call)||!Bf(Object)||!Bf(function(){t=!0})||t})?function(t){if(!Pe(t))return!1;switch(Om(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jst||!!Zst(M8,P8(t))}:Bf,tlt=vn("species"),xB=Et.Array,fR=function(t,e){return new(function(n){var r;return G6(n)&&(r=n.constructor,(Qst(r)&&(r===xB||G6(r.prototype))||Fe(r)&&(r=r[tlt])===null)&&(r=void 0)),r===void 0?xB:r}(t))(e===0?0:e)},AB=It([].push),Ri=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 d,p,v=dh(s),m=WL(v),g=R8(l,c),y=kc(m),h=0,b=f||fR,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:AB(w,d)}else switch(t){case 4:return!1;case 7:AB(w,d)}return i?-1:r||o?o:w}},z8={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},w0=L8.getWeakData,elt=Po.set,nlt=Po.getterFor,rlt=z8.find,olt=z8.findIndex,ilt=It([].splice),alt=0,E0=function(t){return t.frozen||(t.frozen=new dR)},dR=function(){this.entries=[]},F2=function(t,e){return rlt(t.entries,function(n){return n[0]===e})};dR.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=olt(this.entries,function(n){return n[0]===t});return~e&&ilt(this.entries,e,1),!!~e}};var _f,pR={getConstructor:function(t,e,n,r){var o=t(function(s,l){aR(s,i),elt(s,{type:e,id:alt++,frozen:void 0}),l!=null&&iR(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=nlt(e),u=function(s,l,c){var f=a(s),d=w0(Xn(l),!0);return d===!0?E0(f).set(l,c):d[f.id]=c,s};return W6(i,{delete:function(s){var l=a(this);if(!Fe(s))return!1;var c=w0(s);return c===!0?E0(l).delete(s):c&&en(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Fe(s))return!1;var c=w0(s);return c===!0?E0(l).has(s):c&&en(c,l.id)}}),W6(i,n?{get:function(s){var l=a(this);if(Fe(s)){var c=w0(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}},D0=Po.enforce,ult=!Et.ActiveXObject&&"ActiveXObject"in Et,hR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},slt=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(g){var y=It(u[g]);di(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Fe(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Fe(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Fe(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if($6(t,!Pe(a)||!(o||u.forEach&&!ke(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),L8.enable();else if($6(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ke(function(){f.has(1)}),v=function(g,y){if(!sR)return!1;var h=!1;try{var b={};b[uR]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),m=!o&&ke(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=e(function(g,y){aR(g,u);var h=function(b,w,D){var S,C;return Kv&&Pe(S=w.constructor)&&S!==D&&Fe(C=S.prototype)&&C!==D.prototype&&Kv(b,C),b}(new a,g,s);return y!=null&&iR(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ta({global:!0,forced:s!=a},l),U6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",hR,pR);if(JL&&ult){_f=pR.getConstructor(hR,"WeakMap",!0),L8.enable();var Ff=slt.prototype,OB=It(Ff.delete),C0=It(Ff.has),kB=It(Ff.get),BB=It(Ff.set);W6(Ff,{delete:function(t){if(Fe(t)&&!Su(t)){var e=D0(this);return e.frozen||(e.frozen=new _f),OB(this,t)||e.frozen.delete(t)}return OB(this,t)},has:function(t){if(Fe(t)&&!Su(t)){var e=D0(this);return e.frozen||(e.frozen=new _f),C0(this,t)||e.frozen.has(t)}return C0(this,t)},get:function(t){if(Fe(t)&&!Su(t)){var e=D0(this);return e.frozen||(e.frozen=new _f),C0(this,t)?kB(this,t):e.frozen.get(t)}return kB(this,t)},set:function(t,e){if(Fe(t)&&!Su(t)){var n=D0(this);n.frozen||(n.frozen=new _f),C0(this,t)?BB(this,t,e):n.frozen.set(t,e)}else BB(this,t,e);return this}})}var gR={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},T2=k8("span").classList,_B=T2&&T2.constructor&&T2.constructor.prototype,llt=_B===Object.prototype?void 0:_B,P2=vn("iterator"),FB=vn("toStringTag"),j2=cd.values,vR=function(t,e){if(t){if(t[P2]!==j2)try{ga(t,P2,j2)}catch{t[P2]=j2}if(t[FB]||ga(t,FB,e),gR[e]){for(var n in cd)if(t[n]!==cd[n])try{ga(t,n,cd[n])}catch{t[n]=cd[n]}}}};for(var I2 in gR)vR(Et[I2]&&Et[I2].prototype,I2);vR(llt,"DOMTokenList");var q6=new WeakMap,clt={type:"list-item",renderElem:function(t,e,n){q6.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,d){var p=d,v=p.type,m=p.level,g=m===void 0?0:m,y=p.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,w=d,D=O.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var S=j.previous(D),C=E.node(f,S);if(C==null)break;var A=C[0],_=A.level,z=_===void 0?0:_,U=A.type,$=A.ordered;if(U!==v||z<g)break;if(z===g){if($!==h)break;b++}w=A,D=S}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var m=0;m<v&&!d;m++){var g=p[m];st.isText(g)&&(d=g)}return d==null?"":d.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))}},K6=function(t,e){return K6=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])},K6(t,e);/*! *****************************************************************************
  105. Copyright (c) Microsoft Corporation.
  106. Permission to use, copy, modify, and/or distribute this software for any
  107. purpose with or without fee is hereby granted.
  108. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  109. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  110. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  111. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  112. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  113. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  114. PERFORMANCE OF THIS SOFTWARE.
  115. ***************************************************************************** */};function mR(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}K6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function TB(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 Od(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 PB(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return O.findPath(t,e).length===1}})}var flt=KL.includes;Ta({target:"Array",proto:!0},{includes:function(t){return flt(this,t,arguments.length>1?arguments[1]:void 0)}}),xd("includes");var jB,N2,dlt=function(){var t=Xn(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},$8=Et.RegExp,Y6=ke(function(){var t=$8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),plt=Y6||ke(function(){return!$8("a","y").sticky}),hlt={BROKEN_CARET:Y6||ke(function(){var t=$8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:plt,UNSUPPORTED_Y:Y6},glt=Et.RegExp,vlt=ke(function(){var t=glt(".","s");return!(t.dotAll&&t.exec(`
  116. `)&&t.flags==="s")}),mlt=Et.RegExp,ylt=ke(function(){var t=mlt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),blt=Po.get,wlt=x8("native-string-replace",String.prototype.replace),Yv=RegExp.prototype.exec,X6=Yv,Elt=It("".charAt),Dlt=It("".indexOf),Clt=It("".replace),L2=It("".slice),R2=(N2=/b*/g,sn(Yv,jB=/a/,"a"),sn(Yv,N2,"a"),jB.lastIndex!==0||N2.lastIndex!==0),IB=hlt.BROKEN_CARET,M2=/()??/.exec("")[1]!==void 0;(R2||M2||IB||vlt||ylt)&&(X6=function(t){var e,n,r,o,i,a,u,s=this,l=blt(s),c=Jo(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=sn(X6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=IB&&s.sticky,v=sn(dlt,s),m=s.source,g=0,y=c;if(p&&(v=Clt(v,"y",""),Dlt(v,"g")===-1&&(v+="g"),y=L2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Elt(c,s.lastIndex-1)!==`
  117. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),M2&&(n=new RegExp("^"+m+"$(?!\\s)",v)),R2&&(r=s.lastIndex),o=sn(Yv,p?n:s,y),p?o?(o.input=L2(o.input,g),o[0]=L2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:R2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),M2&&o&&o.length>1&&sn(wlt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=T8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Xv=X6;Ta({target:"RegExp",proto:!0,forced:/./.exec!==Xv},{exec:Xv});var yR=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return O.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||!!O.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?N.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),Slt='<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>',xlt='<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>',Alt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=tt("listModule.unOrderedList"),n.iconSvg=Slt,n}return mR(e,t),e}(yR),Olt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=tt("listModule.orderedList"),n.iconSvg=xlt,n}return mR(e,t),e}(yR),klt={key:"bulletedList",factory:function(){return new Alt}},Blt={key:"numberedList",factory:function(){return new Olt}},NB=[],_lt={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=q6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,m=f.level,g=m===void 0?0:m,y=O.findPath(c,l);if(y[0]===0)return g+1;var h=j.previous(y),b=E.node(c,h);if(!b)return 0;var w=Od(b,1)[0];if(O.getNodeType(w)!==d)return g+1;var D=w,S=D.ordered,C=S!==void 0&&S,A=D.level,_=A===void 0?0:A;return _<g?g-_:_>g?0:_===g?C===v?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=q6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,m=f.level,g=m===void 0?0:m,y=O.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=j.next(y),b=E.node(c,h);if(!b)return 0;var w=Od(b,1)[0];if(O.getNodeType(w)!==d)return g+1;var D=w,S=D.ordered,C=S!==void 0&&S,A=D.level,_=A===void 0?0:A;return _<g?g-_:_>g?0:_===g?C===v?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}}},Flt=vn("species"),Tlt=z8.filter,Plt=P6>=51||!ke(function(){var t=[];return(t.constructor={})[Flt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Ta({target:"Array",proto:!0,forced:!Plt},{filter:function(t){return Tlt(this,t,arguments.length>1?arguments[1]:void 0)}});var H8=Function.prototype,LB=H8.apply,jlt=H8.bind,RB=H8.call,Ilt=typeof Reflect=="object"&&Reflect.apply||(jlt?RB.bind(LB):function(){return RB.apply(LB,arguments)}),MB=(vn("species"),RegExp.prototype),Nlt=oR.charAt,Llt=function(t,e,n){return e+(n?Nlt(t,e).length:1)},Rlt=Math.floor,z2=It("".charAt),Mlt=It("".replace),$2=It("".slice),zlt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$lt=/\$([$&'`]|\d{1,2})/g,Hlt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=$lt;return o!==void 0&&(o=dh(o),s=zlt),Mlt(i,s,function(l,c){var f;switch(z2(c,0)){case"$":return"$";case"&":return t;case"`":return $2(e,0,n);case"'":return $2(e,a);case"<":f=o[$2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Rlt(d/10);return p===0?l:p<=u?r[p-1]===void 0?z2(c,1):r[p-1]+z2(c,1):l}f=r[d-1]}return f===void 0?"":f})},Vlt=Et.TypeError,Ult=function(t,e){var n=t.exec;if(Pe(n)){var r=sn(n,t,e);return r!==null&&Xn(r),r}if(ai(t)==="RegExp")return sn(Xv,t,e);throw Vlt("RegExp#exec called on incompatible receiver")},Z6=vn("replace"),Wlt=Math.max,Glt=Math.min,qlt=It([].concat),H2=It([].push),zB=It("".indexOf),$B=It("".slice),Klt="a".replace(/./,"$0")==="$0",HB=!!/./[Z6]&&/./[Z6]("a","$0")==="";(function(t,e,n,r){var o=vn(t),i=!ke(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ke(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=It(/./[o]),s=function(l,c,f){var d=HB?"$":"$0";return[function(p,v){var m=Sm(this),g=p==null?void 0:dp(p,Z6);return g?sn(g,p,m,v):sn(c,Jo(m),p,v)},function(p,v){var m=Xn(this),g=Jo(p);if(typeof v=="string"&&zB(v,d)===-1&&zB(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=Pe(v);h||(v=Jo(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var D=[];;){var S=Ult(m,g);if(S===null||(H2(D,S),!b))break;Jo(S[0])===""&&(m.lastIndex=Llt(g,qL(m.lastIndex),w))}for(var C,A="",_=0,z=0;z<D.length;z++){for(var U=Jo((S=D[z])[0]),$=Wlt(Glt(hh(S.index),g.length),0),q=[],K=1;K<S.length;K++)H2(q,(C=S[K])===void 0?C:String(C));var I=S.groups;if(h){var L=qlt([U],q,$,g);I!==void 0&&H2(L,I);var X=Jo(Ilt(v,void 0,L))}else X=Hlt(U,g,$,q,I,v);$>=_&&(A+=$B(g,_,$)+X,_=$+U.length)}return A+$B(g,_)}]}(0,""[t],function(l,c,f,d,p){var v=It(l),m=c.exec;return m===Xv||m===MB.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});di(String.prototype,t,s[0]),di(MB,o,s[1])}})("replace",0,!!ke(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Klt||HB);var Ylt=Et.TypeError,bR=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&R8(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,e):n[f],i>0&&G6(s))l=kc(s),c=bR(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Ylt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Xlt=bR;function V2(t){return t.length?t[0].tagName.toLowerCase():""}Ta({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=dh(this),n=kc(e),r=fR(e,0);return r.length=Xlt(r,e,e,n,0,t===void 0?1:hh(t)),r}}),xd("flat"),Ta({global:!0},{globalThis:Et}),_r&&(B.fn.append=_r),Br&&(B.fn.attr=Br),Vl&&(B.fn.parent=Vl);var Zlt={renderElems:[clt],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(M.isExpanded(a))e(i);else{var u=O.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(M.isCollapsed(l)){var c=O.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void N.setNodes(o,{level:d+1})}}if(M.isExpanded(l)){var p=0,v=!1;try{for(var m=TB(PB(o)),g=m.next();!g.done;g=m.next()){var y=Od(g.value,1)[0];O.getNodeType(y)==="list-item"?p++:v=!0}}catch(C){i={error:C}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}if(v||p<=1)return void n();try{for(var h=TB(PB(o)),b=h.next();!b.done;b=h.next()){var w=Od(b.value,2),D=(y=w[0],w[1]),S=y.level;d=S===void 0?0:S,N.setNodes(o,{level:d+1},{at:D})}}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=Od(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[klt,Blt],elemsToHtml:[_lt],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!!st.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return V2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=V2(s);l==="ul"||l==="ol";)l=V2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},wR=ps(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]",d="[object Object]",p="[object Promise]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,S=/^(?: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[d]=C[v]=C[m]=C[g]=C[h]=!1;var A=typeof se=="object"&&se&&se.Object===Object&&se,_=typeof self=="object"&&self&&self.Object===Object&&self,z=A||_||Function("return this")(),U=e&&!e.nodeType&&e,$=U&&t&&!t.nodeType&&t,q=$&&$.exports===U,K=q&&A.process,I=function(){try{return K&&K.binding&&K.binding("util")}catch{}}(),L=I&&I.isTypedArray;function X(P,R){for(var J=-1,vt=P==null?0:P.length;++J<vt;)if(R(P[J],J,P))return!0;return!1}function lt(P){var R=-1,J=Array(P.size);return P.forEach(function(vt,ne){J[++R]=[ne,vt]}),J}function it(P){var R=-1,J=Array(P.size);return P.forEach(function(vt){J[++R]=vt}),J}var at=Array.prototype,k=Function.prototype,x=Object.prototype,T=z["__core-js_shared__"],H=k.toString,Y=x.hasOwnProperty,W=function(){var P=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),ut=x.toString,gt=RegExp("^"+H.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=q?z.Buffer:void 0,ot=z.Symbol,G=z.Uint8Array,Lt=x.propertyIsEnumerable,At=at.splice,pt=ot?ot.toStringTag:void 0,Ot=Object.getOwnPropertySymbols,Be=mt?mt.isBuffer:void 0,Vt=function(P,R){return function(J){return P(R(J))}}(Object.keys,Object),ee=yi(z,"DataView"),me=yi(z,"Map"),mn=yi(z,"Promise"),zt=yi(z,"Set"),Rn=yi(z,"WeakMap"),Lr=yi(Object,"create"),io=Vo(ee),xs=Vo(me),Ga=Vo(mn),Rr=Vo(zt),ao=Vo(Rn),zo=ot?ot.prototype:void 0,yn=zo?zo.valueOf:void 0;function bn(P){var R=-1,J=P==null?0:P.length;for(this.clear();++R<J;){var vt=P[R];this.set(vt[0],vt[1])}}function wn(P){var R=-1,J=P==null?0:P.length;for(this.clear();++R<J;){var vt=P[R];this.set(vt[0],vt[1])}}function Fn(P){var R=-1,J=P==null?0:P.length;for(this.clear();++R<J;){var vt=P[R];this.set(vt[0],vt[1])}}function rn(P){var R=-1,J=P==null?0:P.length;for(this.__data__=new Fn;++R<J;)this.add(P[R])}function gr(P){var R=this.__data__=new wn(P);this.size=R.size}function _c(P,R){var J=Uo(P),vt=!J&&Bh(P),ne=!J&&!vt&&uo(P),jt=!J&&!vt&&!ne&&lo(P),F=J||vt||ne||jt,V=F?function($t,ye){for(var ce=-1,Gt=Array($t);++ce<$t;)Gt[ce]=ye(ce);return Gt}(P.length,String):[],rt=V.length;for(var ct in P)!Y.call(P,ct)||F&&(ct=="length"||ne&&(ct=="offset"||ct=="parent")||jt&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||Fc(ct,rt))||V.push(ct);return V}function mi(P,R){for(var J=P.length;J--;)if(ks(P[J][0],R))return J;return-1}function $o(P){return P==null?P===void 0?"[object Undefined]":"[object Null]":pt&&pt in Object(P)?function(R){var J=Y.call(R,pt),vt=R[pt];try{R[pt]=void 0;var ne=!0}catch{}var jt=ut.call(R);return ne&&(J?R[pt]=vt:delete R[pt]),jt}(P):function(R){return ut.call(R)}(P)}function As(P){return bi(P)&&$o(P)==o}function qa(P,R,J,vt,ne){return P===R||(P==null||R==null||!bi(P)&&!bi(R)?P!=P&&R!=R:function(jt,F,V,rt,ct,$t){var ye=Uo(jt),ce=Uo(F),Gt=ye?i:Zn(jt),Ze=ce?i:Zn(F),En=(Gt=Gt==o?d:Gt)==d,Ka=(Ze=Ze==o?d:Ze)==d,Wo=Gt==Ze;if(Wo&&uo(jt)){if(!uo(F))return!1;ye=!0,En=!1}if(Wo&&!En)return $t||($t=new gr),ye||lo(jt)?vr(jt,F,V,rt,ct,$t):function(Rt,qt,Kt,_e,Tn,Mn,$r){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||!Mn(new G(Rt),new G(qt)));case a:case u:case f:return ks(+Rt,+qt);case s:return Rt.name==qt.name&&Rt.message==qt.message;case v:case g:return Rt==qt+"";case c:var Ei=lt;case m:var Pc=1&_e;if(Ei||(Ei=it),Rt.size!=qt.size&&!Pc)return!1;var Th=$r.get(Rt);if(Th)return Th==qt;_e|=2,$r.set(Rt,qt);var Bs=vr(Ei(Rt),Ei(qt),_e,Tn,Mn,$r);return $r.delete(Rt),Bs;case y:if(yn)return yn.call(Rt)==yn.call(qt)}return!1}(jt,F,Gt,V,rt,ct,$t);if(!(1&V)){var wi=En&&Y.call(jt,"__wrapped__"),bt=Ka&&Y.call(F,"__wrapped__");if(wi||bt){var Jt=wi?jt.value():jt,je=bt?F.value():F;return $t||($t=new gr),ct(Jt,je,V,rt,$t)}}return Wo?($t||($t=new gr),function(Rt,qt,Kt,_e,Tn,Mn){var $r=1&Kt,Ei=Ho(Rt),Pc=Ei.length,Th=Ho(qt).length;if(Pc!=Th&&!$r)return!1;for(var Bs=Pc;Bs--;){var Ya=Ei[Bs];if(!($r?Ya in qt:Y.call(qt,Ya)))return!1}var DS=Mn.get(Rt);if(DS&&Mn.get(qt))return DS==qt;var Ph=!0;Mn.set(Rt,qt),Mn.set(qt,Rt);for(var qm=$r;++Bs<Pc;){var jh=Rt[Ya=Ei[Bs]],Ih=qt[Ya];if(_e)var CS=$r?_e(Ih,jh,Ya,qt,Rt,Mn):_e(jh,Ih,Ya,Rt,qt,Mn);if(!(CS===void 0?jh===Ih||Tn(jh,Ih,Kt,_e,Mn):CS)){Ph=!1;break}qm||(qm=Ya=="constructor")}if(Ph&&!qm){var Nh=Rt.constructor,Lh=qt.constructor;Nh==Lh||!("constructor"in Rt)||!("constructor"in qt)||typeof Nh=="function"&&Nh instanceof Nh&&typeof Lh=="function"&&Lh instanceof Lh||(Ph=!1)}return Mn.delete(Rt),Mn.delete(qt),Ph}(jt,F,V,rt,ct,$t)):!1}(P,R,J,vt,qa,ne))}function Os(P){return!(!_h(P)||function(R){return!!W&&W in R}(P))&&(Tc(P)?gt:D).test(Vo(P))}function Mr(P){if(J=(R=P)&&R.constructor,vt=typeof J=="function"&&J.prototype||x,R!==vt)return Vt(P);var R,J,vt,ne=[];for(var jt in Object(P))Y.call(P,jt)&&jt!="constructor"&&ne.push(jt);return ne}function vr(P,R,J,vt,ne,jt){var F=1&J,V=P.length,rt=R.length;if(V!=rt&&!(F&&rt>V))return!1;var ct=jt.get(P);if(ct&&jt.get(R))return ct==R;var $t=-1,ye=!0,ce=2&J?new rn:void 0;for(jt.set(P,R),jt.set(R,P);++$t<V;){var Gt=P[$t],Ze=R[$t];if(vt)var En=F?vt(Ze,Gt,$t,R,P,jt):vt(Gt,Ze,$t,P,R,jt);if(En!==void 0){if(En)continue;ye=!1;break}if(ce){if(!X(R,function(Ka,Wo){if(wi=Wo,!ce.has(wi)&&(Gt===Ka||ne(Gt,Ka,J,vt,jt)))return ce.push(Wo);var wi})){ye=!1;break}}else if(Gt!==Ze&&!ne(Gt,Ze,J,vt,jt)){ye=!1;break}}return jt.delete(P),jt.delete(R),ye}function Ho(P){return function(R,J,vt){var ne=J(R);return Uo(R)?ne:function(jt,F){for(var V=-1,rt=F.length,ct=jt.length;++V<rt;)jt[ct+V]=F[V];return jt}(ne,vt(R))}(P,Fh,kh)}function zr(P,R){var J,vt,ne=P.__data__;return((vt=typeof(J=R))=="string"||vt=="number"||vt=="symbol"||vt=="boolean"?J!=="__proto__":J===null)?ne[typeof R=="string"?"string":"hash"]:ne.map}function yi(P,R){var J=function(vt,ne){return vt==null?void 0:vt[ne]}(P,R);return Os(J)?J:void 0}bn.prototype.clear=function(){this.__data__=Lr?Lr(null):{},this.size=0},bn.prototype.delete=function(P){var R=this.has(P)&&delete this.__data__[P];return this.size-=R?1:0,R},bn.prototype.get=function(P){var R=this.__data__;if(Lr){var J=R[P];return J===n?void 0:J}return Y.call(R,P)?R[P]:void 0},bn.prototype.has=function(P){var R=this.__data__;return Lr?R[P]!==void 0:Y.call(R,P)},bn.prototype.set=function(P,R){var J=this.__data__;return this.size+=this.has(P)?0:1,J[P]=Lr&&R===void 0?n:R,this},wn.prototype.clear=function(){this.__data__=[],this.size=0},wn.prototype.delete=function(P){var R=this.__data__,J=mi(R,P);return!(J<0)&&(J==R.length-1?R.pop():At.call(R,J,1),--this.size,!0)},wn.prototype.get=function(P){var R=this.__data__,J=mi(R,P);return J<0?void 0:R[J][1]},wn.prototype.has=function(P){return mi(this.__data__,P)>-1},wn.prototype.set=function(P,R){var J=this.__data__,vt=mi(J,P);return vt<0?(++this.size,J.push([P,R])):J[vt][1]=R,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new bn,map:new(me||wn),string:new bn}},Fn.prototype.delete=function(P){var R=zr(this,P).delete(P);return this.size-=R?1:0,R},Fn.prototype.get=function(P){return zr(this,P).get(P)},Fn.prototype.has=function(P){return zr(this,P).has(P)},Fn.prototype.set=function(P,R){var J=zr(this,P),vt=J.size;return J.set(P,R),this.size+=J.size==vt?0:1,this},rn.prototype.add=rn.prototype.push=function(P){return this.__data__.set(P,n),this},rn.prototype.has=function(P){return this.__data__.has(P)},gr.prototype.clear=function(){this.__data__=new wn,this.size=0},gr.prototype.delete=function(P){var R=this.__data__,J=R.delete(P);return this.size=R.size,J},gr.prototype.get=function(P){return this.__data__.get(P)},gr.prototype.has=function(P){return this.__data__.has(P)},gr.prototype.set=function(P,R){var J=this.__data__;if(J instanceof wn){var vt=J.__data__;if(!me||vt.length<199)return vt.push([P,R]),this.size=++J.size,this;J=this.__data__=new Fn(vt)}return J.set(P,R),this.size=J.size,this};var kh=Ot?function(P){return P==null?[]:(P=Object(P),function(R,J){for(var vt=-1,ne=R==null?0:R.length,jt=0,F=[];++vt<ne;){var V=R[vt];J(V,vt,R)&&(F[jt++]=V)}return F}(Ot(P),function(R){return Lt.call(P,R)}))}:function(){return[]},Zn=$o;function Fc(P,R){return!!(R=R??r)&&(typeof P=="number"||S.test(P))&&P>-1&&P%1==0&&P<R}function Vo(P){if(P!=null){try{return H.call(P)}catch{}try{return P+""}catch{}}return""}function ks(P,R){return P===R||P!=P&&R!=R}(ee&&Zn(new ee(new ArrayBuffer(1)))!=w||me&&Zn(new me)!=c||mn&&Zn(mn.resolve())!=p||zt&&Zn(new zt)!=m||Rn&&Zn(new Rn)!=h)&&(Zn=function(P){var R=$o(P),J=R==d?P.constructor:void 0,vt=J?Vo(J):"";if(vt)switch(vt){case io:return w;case xs:return c;case Ga:return p;case Rr:return m;case ao:return h}return R});var Bh=As(function(){return arguments}())?As:function(P){return bi(P)&&Y.call(P,"callee")&&!Lt.call(P,"callee")},Uo=Array.isArray,uo=Be||function(){return!1};function Tc(P){if(!_h(P))return!1;var R=$o(P);return R==l||R=="[object GeneratorFunction]"||R=="[object AsyncFunction]"||R=="[object Proxy]"}function so(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=r}function _h(P){var R=typeof P;return P!=null&&(R=="object"||R=="function")}function bi(P){return P!=null&&typeof P=="object"}var lo=L?function(P){return function(R){return P(R)}}(L):function(P){return bi(P)&&so(P.length)&&!!C[$o(P)]};function Fh(P){return(R=P)!=null&&so(R.length)&&!Tc(R)?_c(P):Mr(P);var R}t.exports=function(P,R){return qa(P,R)}});Yn("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"}}),Yn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var VB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ER(t){var e={exports:{}};return t(e,e.exports),e.exports}var Mi,pg,S0=function(t){return t&&t.Math==Math&&t},Pt=S0(typeof globalThis=="object"&&globalThis)||S0(typeof window=="object"&&window)||S0(typeof self=="object"&&self)||S0(typeof VB=="object"&&VB)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch{return!0}},Pa=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Tf=Function.prototype.call,Qe=Tf.bind?Tf.bind(Tf):function(){return Tf.apply(Tf,arguments)},UB={}.propertyIsEnumerable,WB=Object.getOwnPropertyDescriptor,Jlt={f:WB&&!UB.call({1:2},1)?function(t){var e=WB(this,t);return!!e&&e.enumerable}:UB},V8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},DR=Function.prototype,J6=DR.bind,Q6=DR.call,Qlt=J6&&J6.bind(Q6),Mt=J6?function(t){return t&&Qlt(Q6,t)}:function(t){return t&&function(){return Q6.apply(t,arguments)}},tct=Mt({}.toString),ect=Mt("".slice),va=function(t){return ect(tct(t),8,-1)},U2=Pt.Object,nct=Mt("".split),CR=Ye(function(){return!U2("z").propertyIsEnumerable(0)})?function(t){return va(t)=="String"?nct(t,""):U2(t)}:U2,rct=Pt.TypeError,ja=function(t){if(t==null)throw rct("Can't call method on "+t);return t},vh=function(t){return CR(ja(t))},Bn=function(t){return typeof t=="function"},Yr=function(t){return typeof t=="object"?t!==null:Bn(t)},oct=function(t){return Bn(t)?t:void 0},mh=function(t,e){return arguments.length<2?oct(Pt[t]):Pt[t]&&Pt[t][e]},SR=Mt({}.isPrototypeOf),W2=mh("navigator","userAgent")||"",GB=Pt.process,qB=Pt.Deno,KB=GB&&GB.versions||qB&&qB.version,YB=KB&&KB.v8;YB&&(pg=(Mi=YB.split("."))[0]>0&&Mi[0]<4?1:+(Mi[0]+Mi[1])),!pg&&W2&&(!(Mi=W2.match(/Edge\/(\d+)/))||Mi[1]>=74)&&(Mi=W2.match(/Chrome\/(\d+)/))&&(pg=+Mi[1]);var t3=pg,e3=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&t3&&t3<41}),U8=e3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ict=Pt.Object,G2=U8?function(t){return typeof t=="symbol"}:function(t){var e=mh("Symbol");return Bn(e)&&SR(e.prototype,ict(t))},act=Pt.String,xR=function(t){try{return act(t)}catch{return"Object"}},uct=Pt.TypeError,AR=function(t){if(Bn(t))return t;throw uct(xR(t)+" is not a function")},W8=function(t,e){var n=t[e];return n==null?void 0:AR(n)},sct=Pt.TypeError,lct=Object.defineProperty,G8=function(t,e){try{lct(Pt,t,{value:e,configurable:!0,writable:!0})}catch{Pt[t]=e}return e},ma=Pt["__core-js_shared__"]||G8("__core-js_shared__",{}),q8=ER(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),cct=Pt.Object,K8=function(t){return cct(ja(t))},fct=Mt({}.hasOwnProperty),Ar=Object.hasOwn||function(t,e){return fct(K8(t),e)},dct=0,pct=Math.random(),hct=Mt(1 .toString),OR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+hct(++dct+pct,36)},Pf=q8("wks"),Uu=Pt.Symbol,XB=Uu&&Uu.for,gct=U8?Uu:Uu&&Uu.withoutSetter||OR,Nr=function(t){if(!Ar(Pf,t)||!e3&&typeof Pf[t]!="string"){var e="Symbol."+t;e3&&Ar(Uu,t)?Pf[t]=Uu[t]:Pf[t]=U8&&XB?XB(e):gct(e)}return Pf[t]},vct=Pt.TypeError,mct=Nr("toPrimitive"),Y8=function(t){var e=function(n,r){if(!Yr(n)||G2(n))return n;var o,i=W8(n,mct);if(i){if(o=Qe(i,n,r),!Yr(o)||G2(o))return o;throw vct("Can't convert object to primitive value")}return function(a,u){var s,l;if(Bn(s=a.toString)&&!Yr(l=Qe(s,a))||Bn(s=a.valueOf)&&!Yr(l=Qe(s,a)))return l;throw sct("Can't convert object to primitive value")}(n)}(t,"string");return G2(e)?e:e+""},n3=Pt.document,yct=Yr(n3)&&Yr(n3.createElement),X8=function(t){return yct?n3.createElement(t):{}},kR=!Pa&&!Ye(function(){return Object.defineProperty(X8("div"),"a",{get:function(){return 7}}).a!=7}),ZB=Object.getOwnPropertyDescriptor,BR={f:Pa?ZB:function(t,e){if(t=vh(t),e=Y8(e),kR)try{return ZB(t,e)}catch{}if(Ar(t,e))return V8(!Qe(Jlt.f,t,e),t[e])}},bct=Pt.String,wct=Pt.TypeError,Or=function(t){if(Yr(t))return t;throw wct(bct(t)+" is not an object")},Ect=Pt.TypeError,JB=Object.defineProperty,yh={f:Pa?JB:function(t,e,n){if(Or(t),e=Y8(e),Or(n),kR)try{return JB(t,e,n)}catch{}if("get"in n||"set"in n)throw Ect("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},rc=Pa?function(t,e,n){return yh.f(t,e,V8(1,n))}:function(t,e,n){return t[e]=n,t},Dct=Mt(Function.toString);Bn(ma.inspectSource)||(ma.inspectSource=function(t){return Dct(t)});var Zv,kd,Jv,Z8=ma.inspectSource,QB=Pt.WeakMap,Cct=Bn(QB)&&/native code/.test(Z8(QB)),t_=q8("keys"),_R=function(t){return t_[t]||(t_[t]=OR(t))},J8={},r3=Pt.TypeError,Sct=Pt.WeakMap;if(Cct||ma.state){var uu=ma.state||(ma.state=new Sct),xct=Mt(uu.get),e_=Mt(uu.has),Act=Mt(uu.set);Zv=function(t,e){if(e_(uu,t))throw new r3("Object already initialized");return e.facade=t,Act(uu,t,e),e},kd=function(t){return xct(uu,t)||{}},Jv=function(t){return e_(uu,t)}}else{var Zs=_R("state");J8[Zs]=!0,Zv=function(t,e){if(Ar(t,Zs))throw new r3("Object already initialized");return e.facade=t,rc(t,Zs,e),e},kd=function(t){return Ar(t,Zs)?t[Zs]:{}},Jv=function(t){return Ar(t,Zs)}}var o3={set:Zv,get:kd,has:Jv,enforce:function(t){return Jv(t)?kd(t):Zv(t,{})},getterFor:function(t){return function(e){var n;if(!Yr(e)||(n=kd(e)).type!==t)throw r3("Incompatible receiver, "+t+" required");return n}}},FR=Function.prototype,Oct=Pa&&Object.getOwnPropertyDescriptor,q2=Ar(FR,"name"),Q8={EXISTS:q2,PROPER:q2&&(function(){}).name==="something",CONFIGURABLE:q2&&(!Pa||Pa&&Oct(FR,"name").configurable)},pp=ER(function(t){var e=Q8.CONFIGURABLE,n=o3.get,r=o3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Bn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ar(u,"name")||e&&u.name!==p)&&rc(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Pt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:rc(i,a,u)):f?i[a]=u:G8(a,u)})(Function.prototype,"toString",function(){return Bn(this)&&n(this).source||Z8(this)})}),kct=Math.ceil,Bct=Math.floor,km=function(t){var e=+t;return e!=e||e===0?0:(e>0?Bct:kct)(e)},_ct=Math.max,Fct=Math.min,hp=function(t,e){var n=km(t);return n<0?_ct(n+e,0):Fct(n,e)},Tct=Math.min,tC=function(t){return t>0?Tct(km(t),9007199254740991):0},Bm=function(t){return tC(t.length)},Pct=function(t){return function(e,n,r){var o,i=vh(e),a=Bm(i),u=hp(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}},jct=Pct(!1),n_=Mt([].push),TR=function(t,e){var n,r=vh(t),o=0,i=[];for(n in r)!Ar(J8,n)&&Ar(r,n)&&n_(i,n);for(;e.length>o;)Ar(r,n=e[o++])&&(~jct(i,n)||n_(i,n));return i},Qv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ict=Qv.concat("length","prototype"),Nct={f:Object.getOwnPropertyNames||function(t){return TR(t,Ict)}},Lct={f:Object.getOwnPropertySymbols},Rct=Mt([].concat),Mct=mh("Reflect","ownKeys")||function(t){var e=Nct.f(Or(t)),n=Lct.f;return n?Rct(e,n(t)):e},zct=function(t,e){for(var n=Mct(e),r=yh.f,o=BR.f,i=0;i<n.length;i++){var a=n[i];Ar(t,a)||r(t,a,o(e,a))}},$ct=/#|\.prototype\./,bh=function(t,e){var n=Vct[Hct(t)];return n==Wct||n!=Uct&&(Bn(e)?Ye(e):!!e)},Hct=bh.normalize=function(t){return String(t).replace($ct,".").toLowerCase()},Vct=bh.data={},Uct=bh.NATIVE="N",Wct=bh.POLYFILL="P",Gct=bh,qct=BR.f,Ia=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]||G8(u,{}):(Pt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=qct(n,r))&&a.value:n[r],!Gct(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;zct(i,o)}(t.sham||o&&o.sham)&&rc(i,"sham",!0),pp(n,r,i,t)}},PR={};PR[Nr("toStringTag")]="z";var eC=String(PR)==="[object z]",Kct=Nr("toStringTag"),Yct=Pt.Object,Xct=va(function(){return arguments}())=="Arguments",nC=eC?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{}}(e=Yct(t),Kct))=="string"?n:Xct?va(e):(r=va(e))=="Object"&&Bn(e.callee)?"Arguments":r},Zct=Pt.String,xn=function(t){if(nC(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Zct(t)},Jct=/"/g,Qct=Mt("".replace);Ia({target:"String",proto:!0,forced:Ye(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=xn(ja(this)),r="<a",(r+=' name="'+Qct(xn(e),Jct,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var x0,jR=function(){var t=Or(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=Pt.RegExp,i3=Ye(function(){var t=rC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),tft=i3||Ye(function(){return!rC("a","y").sticky}),IR={BROKEN_CARET:i3||Ye(function(){var t=rC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:tft,UNSUPPORTED_Y:i3},eft=Object.keys||function(t){return TR(t,Qv)},nft=Pa?Object.defineProperties:function(t,e){Or(t);for(var n,r=vh(e),o=eft(e),i=o.length,a=0;i>a;)yh.f(t,n=o[a++],r[n]);return t},rft=mh("document","documentElement"),NR=_R("IE_PROTO"),K2=function(){},LR=function(t){return"<script>"+t+"<\/script>"},r_=function(t){t.write(LR("")),t.close();var e=t.parentWindow.Object;return t=null,e},hg=function(){try{x0=new ActiveXObject("htmlfile")}catch{}var t,e;hg=typeof document<"u"?document.domain&&x0?r_(x0):((e=X8("iframe")).style.display="none",rft.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(LR("document.F=Object")),t.close(),t.F):r_(x0);for(var n=Qv.length;n--;)delete hg.prototype[Qv[n]];return hg()};J8[NR]=!0;var o_,Y2,RR=Object.create||function(t,e){var n;return t!==null?(K2.prototype=Or(t),n=new K2,K2.prototype=null,n[NR]=t):n=hg(),e===void 0?n:nft(n,e)},oft=Pt.RegExp,ift=Ye(function(){var t=oft(".","s");return!(t.dotAll&&t.exec(`
  118. `)&&t.flags==="s")}),aft=Pt.RegExp,uft=Ye(function(){var t=aft("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),sft=o3.get,lft=q8("native-string-replace",String.prototype.replace),t1=RegExp.prototype.exec,a3=t1,cft=Mt("".charAt),fft=Mt("".indexOf),dft=Mt("".replace),X2=Mt("".slice),Z2=(Y2=/b*/g,Qe(t1,o_=/a/,"a"),Qe(t1,Y2,"a"),o_.lastIndex!==0||Y2.lastIndex!==0),i_=IR.BROKEN_CARET,J2=/()??/.exec("")[1]!==void 0;(Z2||J2||i_||ift||uft)&&(a3=function(t){var e,n,r,o,i,a,u,s=this,l=sft(s),c=xn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qe(a3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=i_&&s.sticky,v=Qe(jR,s),m=s.source,g=0,y=c;if(p&&(v=dft(v,"y",""),fft(v,"g")===-1&&(v+="g"),y=X2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&cft(c,s.lastIndex-1)!==`
  119. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),J2&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Z2&&(r=s.lastIndex),o=Qe(t1,p?n:s,y),p?o?(o.input=X2(o.input,g),o[0]=X2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Z2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),J2&&o&&o.length>1&&Qe(lft,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=RR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var gp=a3;Ia({target:"RegExp",proto:!0,forced:/./.exec!==gp},{exec:gp});var e1=Array.isArray||function(t){return va(t)=="Array"},MR=function(){},pft=[],zR=mh("Reflect","construct"),oC=/^\s*(?:class|function)\b/,hft=Mt(oC.exec),gft=!oC.exec(MR),jf=function(t){if(!Bn(t))return!1;try{return zR(MR,pft,t),!0}catch{return!1}},iC=!zR||Ye(function(){var t;return jf(jf.call)||!jf(Object)||!jf(function(){t=!0})||t})?function(t){if(!Bn(t))return!1;switch(nC(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return gft||!!hft(oC,Z8(t))}:jf,$R=function(t,e,n){var r=Y8(e);r in t?yh.f(t,r,V8(0,n)):t[r]=n},vft=Nr("species"),aC=function(t){return t3>=51||!Ye(function(){var e=[];return(e.constructor={})[vft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},mft=Mt([].slice),yft=aC("slice"),bft=Nr("species"),Q2=Pt.Array,wft=Math.max;function ro(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 a_(t){var e=t.selection;if(e==null)return!1;var n=ro(E.nodes(t,{match:function(i){return O.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=ro(n,2)[1],o=E.start(t,r);if(_t.equals(e.anchor,o))return!0}return!1}function u_(t,e){var n,r,o=E.nodes(t,{at:e,match:function(s){return O.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}Ia({target:"Array",proto:!0,forced:!yft},{slice:function(t,e){var n,r,o,i=vh(this),a=Bm(i),u=hp(t,a),s=hp(e===void 0?a:e,a);if(e1(i)&&(n=i.constructor,(iC(n)&&(n===Q2||e1(n.prototype))||Yr(n)&&(n=n[bft])===null)&&(n=void 0),n===Q2||n===void 0))return mft(i,u,s);for(r=new(n===void 0?Q2:n)(wft(s-u,0)),o=0;u<s;u++,o++)u in i&&$R(r,o,i[u]);return r.length=o,r}});var s_=Mt(Mt.bind),Eft=Nr("species"),l_=Pt.Array,Dft=function(t,e){return new(function(n){var r;return e1(n)&&(r=n.constructor,(iC(r)&&(r===l_||e1(r.prototype))||Yr(r)&&(r=r[Eft])===null)&&(r=void 0)),r===void 0?l_:r}(t))(e===0?0:e)},c_=Mt([].push),zi=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 d,p,v=K8(s),m=CR(v),g=function(D,S){return AR(D),S===void 0?D:s_?s_(D,S):function(){return D.apply(S,arguments)}}(l,c),y=Bm(m),h=0,b=f||Dft,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:c_(w,d)}else switch(t){case 4:return!1;case 7:c_(w,d)}return i?-1:r||o?o:w}},_m={forEach:zi(0),map:zi(1),filter:zi(2),some:zi(3),every:zi(4),find:zi(5),findIndex:zi(6),filterReject:zi(7)},Cft=_m.map;Ia({target:"Array",proto:!0,forced:!aC("map")},{map:function(t){return Cft(this,t,arguments.length>1?arguments[1]:void 0)}});var Sft=eC?{}.toString:function(){return"[object "+nC(this)+"]"};function Fm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function HR(t){return Fm(t).every(function(e){return!!e.isHeader})}eC||pp(Object.prototype,"toString",Sft,{unsafe:!0});var xft=Q8.PROPER,u3=RegExp.prototype,VR=u3.toString,Aft=Mt(jR),Oft=Ye(function(){return VR.call({source:"a",flags:"b"})!="/a/b"}),kft=xft&&VR.name!="toString";(Oft||kft)&&pp(RegExp.prototype,"toString",function(){var t=Or(this),e=xn(t.source),n=t.flags;return"/"+e+"/"+xn(n===void 0&&SR(u3,t)&&!("flags"in u3)?Aft(t):n)},{unsafe:!0});var s3=Nr("unscopables"),l3=Array.prototype;l3[s3]==null&&yh.f(l3,s3,{configurable:!0,value:RR(null)});var Bft=_m.find,f_=!0;"find"in[]&&Array(1).find(function(){f_=!1}),Ia({target:"Array",proto:!0,forced:f_},{find:function(t){return Bft(this,t,arguments.length>1?arguments[1]:void 0)}}),l3[s3].find=!0;var uC=Function.prototype,d_=uC.apply,_ft=uC.bind,p_=uC.call,UR=typeof Reflect=="object"&&Reflect.apply||(_ft?p_.bind(d_):function(){return p_.apply(d_,arguments)}),Fft=Nr("species"),tw=RegExp.prototype,WR=function(t,e,n,r){var o=Nr(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 t==="split"&&((c={}).constructor={},c.constructor[Fft]=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,d,p){var v=Mt(l),m=c.exec;return m===gp||m===tw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});pp(String.prototype,t,s[0]),pp(tw,o,s[1])}r&&rc(tw[o],"sham",!0)},Tft=Nr("match"),Pft=Pt.TypeError,jft=Nr("species"),Ift=Mt("".charAt),h_=Mt("".charCodeAt),Nft=Mt("".slice),Lft=function(t){return function(e,n){var r,o,i=xn(ja(e)),a=km(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=h_(i,a))<55296||r>56319||a+1===u||(o=h_(i,a+1))<56320||o>57343?t?Ift(i,a):r:t?Nft(i,a,a+2):o-56320+(r-55296<<10)+65536}},Rft=Lft(!0),GR=function(t,e,n){return e+(n?Rft(t,e).length:1)},Mft=Pt.Array,zft=Math.max,g_=function(t,e,n){for(var r=Bm(t),o=hp(e,r),i=hp(n===void 0?r:n,r),a=Mft(zft(i-o,0)),u=0;o<i;o++,u++)$R(a,u,t[o]);return a.length=u,a},$ft=Pt.TypeError,c3=function(t,e){var n=t.exec;if(Bn(n)){var r=Qe(n,t,e);return r!==null&&Or(r),r}if(va(t)==="RegExp")return Qe(gp,t,e);throw $ft("RegExp#exec called on incompatible receiver")},Js=IR.UNSUPPORTED_Y,Hft=Math.min,qR=[].push,Vft=Mt(/./.exec),Qs=Mt(qR),If=Mt("".slice);WR("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=xn(ja(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Yr(a=o)||!((u=a[Tft])!==void 0?u:va(a)=="RegExp"))return Qe(e,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),m=0,g=new RegExp(o.source,v+"g");(c=Qe(gp,g,s))&&!((f=g.lastIndex)>m&&(Qs(p,If(s,m,c.index)),c.length>1&&c.index<s.length&&UR(qR,p,g_(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&Vft(g,"")||Qs(p,""):Qs(p,If(s,m)),p.length>l?g_(p,0,l):p}:"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:W8(o,t);return u?Qe(u,o,a,i):Qe(r,xn(a),o,i)},function(o,i){var a=Or(this),u=xn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,C=Or(w).constructor;return C===void 0||(S=Or(C)[jft])==null?D:function(A){if(iC(A))return A;throw Pft(xR(A)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Js?"g":"y"),d=new l(Js?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return c3(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Js?0:m;var y,h=c3(d,Js?If(u,m):u);if(h===null||(y=Hft(tC(d.lastIndex+(Js?m:0)),u.length))===v)m=GR(u,m,c);else{if(Qs(g,If(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Qs(g,h[b]),g.length===p)return g;m=v=y}}return Qs(g,If(u,v)),g}]},!!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"}),Js);var f3=`
  120. \v\f\r                 \u2028\u2029\uFEFF`,v_=Mt("".replace),n1="["+f3+"]",Uft=RegExp("^"+n1+n1+"*"),Wft=RegExp(n1+n1+"*$"),ew=function(t){return function(e){var n=xn(ja(e));return 1&t&&(n=v_(n,Uft,"")),2&t&&(n=v_(n,Wft,"")),n}},Gft={start:ew(1),end:ew(2),trim:ew(3)},qft=Q8.PROPER,Kft=Gft.trim;function KR(t){return t.length?t[0].tagName.toLowerCase():""}Ia({target:"String",proto:!0,forced:function(t){return Ye(function(){return!!f3[t]()||"​…᠎"[t]()!=="​…᠎"||qft&&f3[t].name!==t})}("trim")},{trim:function(){return Kft(this)}}),Ia({global:!0},{globalThis:Pt}),_r&&(B.fn.append=_r),To&&(B.fn.on=To),Oa&&(B.fn.focus=Oa),Br&&(B.fn.attr=Br),Fo&&(B.fn.val=Fo),Aa&&(B.fn.html=Aa),$l&&(B.fn.dataset=$l),Rl&&(B.fn.addClass=Rl),Ml&&(B.fn.removeClass=Ml),Wl&&(B.fn.children=Wl),rv&&(B.fn.each=rv),Ul&&(B.fn.find=Ul);var vp=!1,YR=0,XR=0,mp=null,yp=null,Bd=B("body");function ZR(t){vp=!1,yp=null,mp=null,Bd.off("mousemove",JR),Bd.off("mouseup",ZR)}Bd.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(),vp=!0;var n=t.clientX;YR=n;var r=e.getBoundingClientRect().width;XR=r,Bd.on("mousemove",JR),Bd.on("mouseup",ZR)}});var JR=es(function(t){if(vp&&yp!=null&&mp!=null){t.preventDefault();var e=t.clientX,n=XR+(e-YR);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(yp,{width:n.toString()},{at:mp})}},100),Yft={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||M.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=O.findPath(u,s),p=E.start(u,d),v=E.end(u,d),m=_t.compare(c,v)<=0&&_t.compare(c,p)>=0,g=_t.compare(f,v)<=0&&_t.compare(f,p)>=0;return!!(m&&g&&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":O.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=O.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},wt("table",{width:i,contentEditable:r},wt("colgroup",null,Fm(t).map(function(u){var s=u.width;return wt("col",{width:s===void 0?"auto":s})})),wt("tbody",null,e)));return a}},Xft={type:"table-row",renderElem:function(t,e,n){return wt("tr",null,e)}},Zft={type:"table-cell",renderElem:function(t,e,n){var r=function(d,p){var v=O.getParentNode(d,p);if(v==null)return!1;var m=O.getParentNode(d,v);return m!=null&&Fm(m).some(function(g){return g===p})}(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:es(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),m=v.left,g=v.width,y=v.top,h=v.height,b=d.clientX,w=d.clientY;vp||(b>m+g-5&&b<m+g&&w>y&&w<y+h?(p.style.cursor="col-resize",yp=n,mp=O.findPath(n,t)):vp||(p.style.cursor="auto",yp=null,mp=null))}},100)}},e);return f}},Jft={selector:"table",preParseHtml:function(t){var e=B(t);if(KR(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]}},Qft=_m.filter;Ia({target:"Array",proto:!0,forced:!aC("filter")},{filter:function(t){return Qft(this,t,arguments.length>1?arguments[1]:void 0)}});var tdt=Math.floor,nw=Mt("".charAt),edt=Mt("".replace),rw=Mt("".slice),ndt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rdt=/\$([$&'`]|\d{1,2})/g,odt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=rdt;return o!==void 0&&(o=K8(o),s=ndt),edt(i,s,function(l,c){var f;switch(nw(c,0)){case"$":return"$";case"&":return t;case"`":return rw(e,0,n);case"'":return rw(e,a);case"<":f=o[rw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=tdt(d/10);return p===0?l:p<=u?r[p-1]===void 0?nw(c,1):r[p-1]+nw(c,1):l}f=r[d-1]}return f===void 0?"":f})},d3=Nr("replace"),idt=Math.max,adt=Math.min,udt=Mt([].concat),ow=Mt([].push),m_=Mt("".indexOf),y_=Mt("".slice),sdt="a".replace(/./,"$0")==="$0",b_=!!/./[d3]&&/./[d3]("a","$0")==="";WR("replace",function(t,e,n){var r=b_?"$":"$0";return[function(o,i){var a=ja(this),u=o==null?void 0:W8(o,d3);return u?Qe(u,o,a,i):Qe(e,xn(a),o,i)},function(o,i){var a=Or(this),u=xn(o);if(typeof i=="string"&&m_(i,r)===-1&&m_(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=Bn(i);l||(i=xn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=c3(a,u);if(p===null||(ow(d,p),!c))break;xn(p[0])===""&&(a.lastIndex=GR(u,tC(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=xn((p=d[y])[0]),b=idt(adt(km(p.index),u.length),0),w=[],D=1;D<p.length;D++)ow(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=udt([h],w,b,u);S!==void 0&&ow(C,S);var A=xn(UR(i,void 0,C))}else A=odt(h,u,b,w,S,i);b>=g&&(m+=y_(u,g,b)+A,g=b+h.length)}return m+y_(u,g)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!sdt||b_);var ldt={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!!st.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:KR(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},cdt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return O.getNodeType(r)==="table-cell"})}}},fdt={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 d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return O.getNodeType(i)==="table-row"})}}},ddt=function(){function t(){this.title=tt("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||!M.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.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 &times; 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 d=B(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" &times; "+(v+1),i.children().each(function(m){B(m).children().each(function(g){var y=B(g),h=y.dataset(),b=h.x,w=h.y;b<=p&&w<=v?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;n.insertTable(e,v+1,p+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)){O.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),pdt=function(){function t(){this.title=tt("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||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),hdt=function(){function t(){this.title=tt("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||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ro(E.nodes(e,{match:function(p){return O.checkNodeType(p,"table-cell")},universal:!0}),1),o=ro(r[0],2),i=o[0],a=o[1],u=O.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),d=j.next(f);N.insertNodes(e,l,{at:d})}}},t}(),gdt=function(){function t(){this.title=tt("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||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ro(E.nodes(e,{match:function(s){return O.checkNodeType(s,"table-row")},universal:!0}),1),o=ro(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),w_={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},iw=X8("span").classList,E_=iw&&iw.constructor&&iw.constructor.prototype,vdt=E_===Object.prototype?void 0:E_,mdt=_m.forEach,ydt=function(t,e){var n=[].forEach;return!!n&&Ye(function(){n.call(null,function(){throw 1},1)})}(),aw=ydt?[].forEach:function(t){return mdt(this,t,arguments.length>1?arguments[1]:void 0)},QR=function(t){if(t&&t.forEach!==aw)try{rc(t,"forEach",aw)}catch{t.forEach=aw}};for(var uw in w_)w_[uw]&&QR(Pt[uw]&&Pt[uw].prototype);QR(vdt);var bdt=function(){function t(){this.title=tt("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||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ro(E.nodes(e,{match:function(l){return O.checkNodeType(l,"table-cell")},universal:!0}),1),o=ro(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);if(u!=null){var s=O.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ft.isElement(l)&&(l.children||[]).forEach(function(f){var d=O.findPath(e,f);if(d.length===a.length&&wR(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&HR(s)&&(p.isHeader=!0),N.insertNodes(e,p,{at:d})}})})}}},t}(),wdt=function(){function t(){this.title=tt("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||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=ro(E.nodes(e,{match:function(c){return O.checkNodeType(c,"table-cell")},universal:!0}),1),o=ro(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=O.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ft.isElement(c)&&(c.children||[]).forEach(function(f){var d=O.findPath(e,f);d.length===a.length&&wR(d.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:d})})})}}},t}(),Edt=function(){function t(){this.title=tt("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=O.getSelectedNodeByType(e,"table");return n!=null&&HR(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=O.getSelectedNodeByType(e,"table");o!=null&&Fm(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:O.findPath(e,i)})})}},t}(),Ddt=function(){function t(){this.title=tt("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=O.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.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}(),Cdt={renderElems:[Yft,Xft,Zft],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:[Jft],parseElemsHtml:[ldt,cdt,fdt],menus:[{key:"insertTable",factory:function(){return new ddt}},{key:"deleteTable",factory:function(){return new pdt}},{key:"insertTableRow",factory:function(){return new hdt}},{key:"deleteTableRow",factory:function(){return new gdt}},{key:"insertTableCol",factory:function(){return new bdt}},{key:"deleteTableCol",factory:function(){return new wdt}},{key:"tableHeader",factory:function(){return new Edt}},{key:"tableFullWidth",factory:function(){return new Ddt}}],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(){O.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
  121. `)},s.deleteBackward=function(l){if(!a_(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=u_(s,f),p=u_(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(O.getSelectedNodeByType(s,"table")){var c=E.above(t);O.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var d=s.children||[],p=d.length;if(O.checkNodeType(d[p-1],"table")){var v=O.genEmptyParagraph();N.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){a_(s)||r(l)},s.normalizeNode=function(l){var c=ro(l,2),f=c[0],d=c[1];if(O.getNodeType(f)!=="table")return o([f,d]);if(O.isLastNode(s,f)){var p=O.genEmptyParagraph();N.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(O.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
  122. `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=O.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(j.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Q.string(c).length!==0){var p=O.findPath(s,c),v={anchor:E.start(s,p),focus:E.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};Yn("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"}}),Yn("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
  123. Copyright (c) Microsoft Corporation.
  124. Permission to use, copy, modify, and/or distribute this software for any
  125. purpose with or without fee is hereby granted.
  126. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  127. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  128. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  129. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  130. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  131. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  132. PERFORMANCE OF THIS SOFTWARE.
  133. ***************************************************************************** */var r1=function(){return r1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r1.apply(this,arguments)};function Tm(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,[])).next())})}function Pm(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 Sdt(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(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var D_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sC(t){var e={exports:{}};return t(e,e.exports),e.exports}var $i,gg,A0=function(t){return t&&t.Math==Math&&t},nt=A0(typeof globalThis=="object"&&globalThis)||A0(typeof window=="object"&&window)||A0(typeof self=="object"&&self)||A0(typeof D_=="object"&&D_)||function(){return this}()||Function("return this")(),de=function(t){try{return!!t()}catch{return!0}},jo=!de(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Nf=Function.prototype.call,fe=Nf.bind?Nf.bind(Nf):function(){return Nf.apply(Nf,arguments)},C_={}.propertyIsEnumerable,S_=Object.getOwnPropertyDescriptor,xdt={f:S_&&!C_.call({1:2},1)?function(t){var e=S_(this,t);return!!e&&e.enumerable}:C_},jm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},tM=Function.prototype,p3=tM.bind,h3=tM.call,Adt=p3&&p3.bind(h3),Ct=p3?function(t){return t&&Adt(h3,t)}:function(t){return t&&function(){return h3.apply(t,arguments)}},Odt=Ct({}.toString),kdt=Ct("".slice),ko=function(t){return kdt(Odt(t),8,-1)},sw=nt.Object,Bdt=Ct("".split),lC=de(function(){return!sw("z").propertyIsEnumerable(0)})?function(t){return ko(t)=="String"?Bdt(t,""):sw(t)}:sw,_dt=nt.TypeError,wh=function(t){if(t==null)throw _dt("Can't call method on "+t);return t},Va=function(t){return lC(wh(t))},ae=function(t){return typeof t=="function"},we=function(t){return typeof t=="object"?t!==null:ae(t)},Fdt=function(t){return ae(t)?t:void 0},fs=function(t,e){return arguments.length<2?Fdt(nt[t]):nt[t]&&nt[t][e]},bp=Ct({}.isPrototypeOf),Bl=fs("navigator","userAgent")||"",x_=nt.process,A_=nt.Deno,O_=x_&&x_.versions||A_&&A_.version,k_=O_&&O_.v8;k_&&(gg=($i=k_.split("."))[0]>0&&$i[0]<4?1:+($i[0]+$i[1])),!gg&&Bl&&(!($i=Bl.match(/Edge\/(\d+)/))||$i[1]>=74)&&($i=Bl.match(/Chrome\/(\d+)/))&&(gg=+$i[1]);var wp=gg,g3=!!Object.getOwnPropertySymbols&&!de(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wp&&wp<41}),cC=g3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Tdt=nt.Object,lw=cC?function(t){return typeof t=="symbol"}:function(t){var e=fs("Symbol");return ae(e)&&bp(e.prototype,Tdt(t))},Pdt=nt.String,o1=function(t){try{return Pdt(t)}catch{return"Object"}},jdt=nt.TypeError,Na=function(t){if(ae(t))return t;throw jdt(o1(t)+" is not a function")},Ep=function(t,e){var n=t[e];return n==null?void 0:Na(n)},Idt=nt.TypeError,Ndt=Object.defineProperty,fC=function(t,e){try{Ndt(nt,t,{value:e,configurable:!0,writable:!0})}catch{nt[t]=e}return e},ya=nt["__core-js_shared__"]||fC("__core-js_shared__",{}),dC=sC(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ldt=nt.Object,Im=function(t){return Ldt(wh(t))},Rdt=Ct({}.hasOwnProperty),qe=Object.hasOwn||function(t,e){return Rdt(Im(t),e)},Mdt=0,zdt=Math.random(),$dt=Ct(1 .toString),pC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+$dt(++Mdt+zdt,36)},Lf=dC("wks"),Gu=nt.Symbol,B_=Gu&&Gu.for,Hdt=cC?Gu:Gu&&Gu.withoutSetter||pC,ze=function(t){if(!qe(Lf,t)||!g3&&typeof Lf[t]!="string"){var e="Symbol."+t;g3&&qe(Gu,t)?Lf[t]=Gu[t]:Lf[t]=cC&&B_?B_(e):Hdt(e)}return Lf[t]},Vdt=nt.TypeError,Udt=ze("toPrimitive"),hC=function(t){var e=function(n,r){if(!we(n)||lw(n))return n;var o,i=Ep(n,Udt);if(i){if(o=fe(i,n,r),!we(o)||lw(o))return o;throw Vdt("Can't convert object to primitive value")}return function(a,u){var s,l;if(ae(s=a.toString)&&!we(l=fe(s,a))||ae(s=a.valueOf)&&!we(l=fe(s,a)))return l;throw Idt("Can't convert object to primitive value")}(n)}(t,"string");return lw(e)?e:e+""},v3=nt.document,Wdt=we(v3)&&we(v3.createElement),Dp=function(t){return Wdt?v3.createElement(t):{}},eM=!jo&&!de(function(){return Object.defineProperty(Dp("div"),"a",{get:function(){return 7}}).a!=7}),__=Object.getOwnPropertyDescriptor,gC={f:jo?__:function(t,e){if(t=Va(t),e=hC(e),eM)try{return __(t,e)}catch{}if(qe(t,e))return jm(!fe(xdt.f,t,e),t[e])}},Gdt=nt.String,qdt=nt.TypeError,fn=function(t){if(we(t))return t;throw qdt(Gdt(t)+" is not an object")},Kdt=nt.TypeError,F_=Object.defineProperty,gi={f:jo?F_:function(t,e,n){if(fn(t),e=hC(e),fn(n),eM)try{return F_(t,e,n)}catch{}if("get"in n||"set"in n)throw Kdt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ba=jo?function(t,e,n){return gi.f(t,e,jm(1,n))}:function(t,e,n){return t[e]=n,t},Ydt=Ct(Function.toString);ae(ya.inspectSource)||(ya.inspectSource=function(t){return Ydt(t)});var i1,_d,a1,Nm=ya.inspectSource,T_=nt.WeakMap,nM=ae(T_)&&/native code/.test(Nm(T_)),P_=dC("keys"),vC=function(t){return P_[t]||(P_[t]=pC(t))},Lm={},m3=nt.TypeError,Xdt=nt.WeakMap;if(nM||ya.state){var su=ya.state||(ya.state=new Xdt),Zdt=Ct(su.get),j_=Ct(su.has),Jdt=Ct(su.set);i1=function(t,e){if(j_(su,t))throw new m3("Object already initialized");return e.facade=t,Jdt(su,t,e),e},_d=function(t){return Zdt(su,t)||{}},a1=function(t){return j_(su,t)}}else{var tl=vC("state");Lm[tl]=!0,i1=function(t,e){if(qe(t,tl))throw new m3("Object already initialized");return e.facade=t,ba(t,tl,e),e},_d=function(t){return qe(t,tl)?t[tl]:{}},a1=function(t){return qe(t,tl)}}var fr={set:i1,get:_d,has:a1,enforce:function(t){return a1(t)?_d(t):i1(t,{})},getterFor:function(t){return function(e){var n;if(!we(e)||(n=_d(e)).type!==t)throw m3("Incompatible receiver, "+t+" required");return n}}},rM=Function.prototype,Qdt=jo&&Object.getOwnPropertyDescriptor,cw=qe(rM,"name"),Bc={EXISTS:cw,PROPER:cw&&(function(){}).name==="something",CONFIGURABLE:cw&&(!jo||jo&&Qdt(rM,"name").configurable)},jr=sC(function(t){var e=Bc.CONFIGURABLE,n=fr.get,r=fr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ae(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qe(u,"name")||e&&u.name!==p)&&ba(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==nt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ba(i,a,u)):f?i[a]=u:fC(a,u)})(Function.prototype,"toString",function(){return ae(this)&&n(this).source||Nm(this)})}),tpt=Math.ceil,ept=Math.floor,Rm=function(t){var e=+t;return e!=e||e===0?0:(e>0?ept:tpt)(e)},npt=Math.max,rpt=Math.min,Cp=function(t,e){var n=Rm(t);return n<0?npt(n+e,0):rpt(n,e)},opt=Math.min,oM=function(t){return t>0?opt(Rm(t),9007199254740991):0},Eh=function(t){return oM(t.length)},I_=function(t){return function(e,n,r){var o,i=Va(e),a=Eh(i),u=Cp(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}},iM={includes:I_(!0),indexOf:I_(!1)},ipt=iM.indexOf,N_=Ct([].push),aM=function(t,e){var n,r=Va(t),o=0,i=[];for(n in r)!qe(Lm,n)&&qe(r,n)&&N_(i,n);for(;e.length>o;)qe(r,n=e[o++])&&(~ipt(i,n)||N_(i,n));return i},u1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],apt=u1.concat("length","prototype"),s1={f:Object.getOwnPropertyNames||function(t){return aM(t,apt)}},upt={f:Object.getOwnPropertySymbols},spt=Ct([].concat),lpt=fs("Reflect","ownKeys")||function(t){var e=s1.f(fn(t)),n=upt.f;return n?spt(e,n(t)):e},cpt=function(t,e){for(var n=lpt(e),r=gi.f,o=gC.f,i=0;i<n.length;i++){var a=n[i];qe(t,a)||r(t,a,o(e,a))}},fpt=/#|\.prototype\./,Dh=function(t,e){var n=ppt[dpt(t)];return n==gpt||n!=hpt&&(ae(e)?de(e):!!e)},dpt=Dh.normalize=function(t){return String(t).replace(fpt,".").toLowerCase()},ppt=Dh.data={},hpt=Dh.NATIVE="N",gpt=Dh.POLYFILL="P",l1=Dh,vpt=gC.f,Vn=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]||fC(u,{}):(nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=vpt(n,r))&&a.value:n[r],!l1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;cpt(i,o)}(t.sham||o&&o.sham)&&ba(i,"sham",!0),jr(n,r,i,t)}},uM={};uM[ze("toStringTag")]="z";var mC=String(uM)==="[object z]",mpt=ze("toStringTag"),ypt=nt.Object,bpt=ko(function(){return arguments}())=="Arguments",Mm=mC?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{}}(e=ypt(t),mpt))=="string"?n:bpt?ko(e):(r=ko(e))=="Object"&&ae(e.callee)?"Arguments":r},wpt=nt.String,Er=function(t){if(Mm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return wpt(t)},y3=`
  134. \v\f\r                 \u2028\u2029\uFEFF`,L_=Ct("".replace),c1="["+y3+"]",Ept=RegExp("^"+c1+c1+"*"),Dpt=RegExp(c1+c1+"*$"),fw=function(t){return function(e){var n=Er(wh(e));return 1&t&&(n=L_(n,Ept,"")),2&t&&(n=L_(n,Dpt,"")),n}},Cpt={start:fw(1),end:fw(2),trim:fw(3)},Spt=Bc.PROPER,xpt=Cpt.trim;function R_(t){return t.length?t[0].tagName.toLowerCase():""}function sM(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}Vn({target:"String",proto:!0,forced:de(function(){return!!y3.trim()||"​…᠎".trim()!=="​…᠎"||Spt&&y3.trim.name!=="trim"})},{trim:function(){return xpt(this)}}),Vn({global:!0},{globalThis:nt}),_r&&(B.fn.append=_r),To&&(B.fn.on=To),Oa&&(B.fn.focus=Oa),Br&&(B.fn.attr=Br),Fo&&(B.fn.val=Fo),Aa&&(B.fn.html=Aa),Vl&&(B.fn.parent=Vl),zl&&(B.fn.hasClass=zl),ql&&(B.fn.empty=ql);var O0,Apt={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,d=f===void 0?"auto":f,p=O.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:sM(a,c,d)});else{var v=wt("video",{poster:s,controls:!0},wt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
  135. 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),r=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Kl("div",{props:{contentEditable:!1},on:{mousedown:function(m){return m.preventDefault()}}},r)}},Opt={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>
  136. `;return o.trim().indexOf("<iframe ")===0?f+=sM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
  137. </div>`}},kpt=Object.keys||function(t){return aM(t,u1)},Bpt=jo?Object.defineProperties:function(t,e){fn(t);for(var n,r=Va(e),o=kpt(e),i=o.length,a=0;i>a;)gi.f(t,n=o[a++],r[n]);return t},b3=fs("document","documentElement"),lM=vC("IE_PROTO"),dw=function(){},cM=function(t){return"<script>"+t+"<\/script>"},M_=function(t){t.write(cM("")),t.close();var e=t.parentWindow.Object;return t=null,e},vg=function(){try{O0=new ActiveXObject("htmlfile")}catch{}var t,e;vg=typeof document<"u"?document.domain&&O0?M_(O0):((e=Dp("iframe")).style.display="none",b3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(cM("document.F=Object")),t.close(),t.F):M_(O0);for(var n=u1.length;n--;)delete vg.prototype[u1[n]];return vg()};Lm[lM]=!0;var yC=Object.create||function(t,e){var n;return t!==null?(dw.prototype=fn(t),n=new dw,dw.prototype=null,n[lM]=t):n=vg(),e===void 0?n:Bpt(n,e)},w3=ze("unscopables"),E3=Array.prototype;E3[w3]==null&&gi.f(E3,w3,{configurable:!0,value:yC(null)});var Fd=function(t){E3[w3][t]=!0},_pt=iM.includes;Vn({target:"Array",proto:!0},{includes:function(t){return _pt(this,t,arguments.length>1?arguments[1]:void 0)}}),Fd("includes");var Fpt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(R_(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=R_(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]}},z_=Ct(Ct.bind),Sp=function(t,e){return Na(t),e===void 0?t:z_?z_(t,e):function(){return t.apply(e,arguments)}},f1=Array.isArray||function(t){return ko(t)=="Array"},fM=function(){},Tpt=[],dM=fs("Reflect","construct"),bC=/^\s*(?:class|function)\b/,Ppt=Ct(bC.exec),jpt=!bC.exec(fM),Rf=function(t){if(!ae(t))return!1;try{return dM(fM,Tpt,t),!0}catch{return!1}},wC=!dM||de(function(){var t;return Rf(Rf.call)||!Rf(Object)||!Rf(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch(Mm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jpt||!!Ppt(bC,Nm(t))}:Rf,Ipt=ze("species"),$_=nt.Array,Npt=function(t,e){return new(function(n){var r;return f1(n)&&(r=n.constructor,(wC(r)&&(r===$_||f1(r.prototype))||we(r)&&(r=r[Ipt])===null)&&(r=void 0)),r===void 0?$_:r}(t))(e===0?0:e)},H_=Ct([].push),Hi=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 d,p,v=Im(s),m=lC(v),g=Sp(l,c),y=Eh(m),h=0,b=f||Npt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:H_(w,d)}else switch(t){case 4:return!1;case 7:H_(w,d)}return i?-1:r||o?o:w}},EC={forEach:Hi(0),map:Hi(1),filter:Hi(2),some:Hi(3),every:Hi(4),find:Hi(5),findIndex:Hi(6),filterReject:Hi(7)},Lpt=EC.find,V_=!0;"find"in[]&&Array(1).find(function(){V_=!1}),Vn({target:"Array",proto:!0,forced:V_},{find:function(t){return Lpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Fd("find");var Rpt=mC?{}.toString:function(){return"[object "+Mm(this)+"]"};function U_(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:""}]}}mC||jr(Object.prototype,"toString",Rpt,{unsafe:!0});var W_,pw,Mpt={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",U_(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",U_(o,i=l.attr("poster")||"",a,u)}},pM=function(){var t=fn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},DC=nt.RegExp,D3=de(function(){var t=DC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),zpt=D3||de(function(){return!DC("a","y").sticky}),$pt={BROKEN_CARET:D3||de(function(){var t=DC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:zpt,UNSUPPORTED_Y:D3},Hpt=nt.RegExp,Vpt=de(function(){var t=Hpt(".","s");return!(t.dotAll&&t.exec(`
  138. `)&&t.flags==="s")}),Upt=nt.RegExp,Wpt=de(function(){var t=Upt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Gpt=fr.get,qpt=dC("native-string-replace",String.prototype.replace),d1=RegExp.prototype.exec,C3=d1,Kpt=Ct("".charAt),Ypt=Ct("".indexOf),Xpt=Ct("".replace),hw=Ct("".slice),gw=(pw=/b*/g,fe(d1,W_=/a/,"a"),fe(d1,pw,"a"),W_.lastIndex!==0||pw.lastIndex!==0),G_=$pt.BROKEN_CARET,vw=/()??/.exec("")[1]!==void 0;(gw||vw||G_||Vpt||Wpt)&&(C3=function(t){var e,n,r,o,i,a,u,s=this,l=Gpt(s),c=Er(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=fe(C3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=G_&&s.sticky,v=fe(pM,s),m=s.source,g=0,y=c;if(p&&(v=Xpt(v,"y",""),Ypt(v,"g")===-1&&(v+="g"),y=hw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Kpt(c,s.lastIndex-1)!==`
  139. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),vw&&(n=new RegExp("^"+m+"$(?!\\s)",v)),gw&&(r=s.lastIndex),o=fe(d1,p?n:s,y),p?o?(o.input=hw(o.input,g),o[0]=hw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),vw&&o&&o.length>1&&fe(qpt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=yC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var p1=C3;Vn({target:"RegExp",proto:!0,forced:/./.exec!==p1},{exec:p1});var CC=Function.prototype,q_=CC.apply,Zpt=CC.bind,K_=CC.call,hM=typeof Reflect=="object"&&Reflect.apply||(Zpt?K_.bind(q_):function(){return K_.apply(q_,arguments)}),Y_=(ze("species"),RegExp.prototype),Jpt=Ct("".charAt),X_=Ct("".charCodeAt),Qpt=Ct("".slice),Z_=function(t){return function(e,n){var r,o,i=Er(wh(e)),a=Rm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=X_(i,a))<55296||r>56319||a+1===u||(o=X_(i,a+1))<56320||o>57343?t?Jpt(i,a):r:t?Qpt(i,a,a+2):o-56320+(r-55296<<10)+65536}},gM={codeAt:Z_(!1),charAt:Z_(!0)},tht=gM.charAt,eht=function(t,e,n){return e+(n?tht(t,e).length:1)},nht=Math.floor,mw=Ct("".charAt),rht=Ct("".replace),yw=Ct("".slice),oht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iht=/\$([$&'`]|\d{1,2})/g,aht=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=iht;return o!==void 0&&(o=Im(o),s=oht),rht(i,s,function(l,c){var f;switch(mw(c,0)){case"$":return"$";case"&":return t;case"`":return yw(e,0,n);case"'":return yw(e,a);case"<":f=o[yw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=nht(d/10);return p===0?l:p<=u?r[p-1]===void 0?mw(c,1):r[p-1]+mw(c,1):l}f=r[d-1]}return f===void 0?"":f})},uht=nt.TypeError,sht=function(t,e){var n=t.exec;if(ae(n)){var r=fe(n,t,e);return r!==null&&fn(r),r}if(ko(t)==="RegExp")return fe(p1,t,e);throw uht("RegExp#exec called on incompatible receiver")},S3=ze("replace"),lht=Math.max,cht=Math.min,fht=Ct([].concat),bw=Ct([].push),J_=Ct("".indexOf),Q_=Ct("".slice),dht="a".replace(/./,"$0")==="$0",tF=!!/./[S3]&&/./[S3]("a","$0")==="";function vM(t){return t+"-"+Aj()}(function(t,e,n,r){var o=ze(t),i=!de(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!de(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ct(/./[o]),s=function(l,c,f){var d=tF?"$":"$0";return[function(p,v){var m=wh(this),g=p==null?void 0:Ep(p,S3);return g?fe(g,p,m,v):fe(c,Er(m),p,v)},function(p,v){var m=fn(this),g=Er(p);if(typeof v=="string"&&J_(v,d)===-1&&J_(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=ae(v);h||(v=Er(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var D=[];;){var S=sht(m,g);if(S===null||(bw(D,S),!b))break;Er(S[0])===""&&(m.lastIndex=eht(g,oM(m.lastIndex),w))}for(var C,A="",_=0,z=0;z<D.length;z++){for(var U=Er((S=D[z])[0]),$=lht(cht(Rm(S.index),g.length),0),q=[],K=1;K<S.length;K++)bw(q,(C=S[K])===void 0?C:String(C));var I=S.groups;if(h){var L=fht([U],q,$,g);I!==void 0&&bw(L,I);var X=Er(hM(v,void 0,L))}else X=aht(U,g,$,q,I,v);$>=_&&(A+=Q_(g,_,$)+X,_=$+U.length)}return A+Q_(g,_)}]}(0,""[t],function(l,c,f,d,p){var v=Ct(l),m=c.exec;return m===p1||m===Y_.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});jr(String.prototype,t,s[0]),jr(Y_,o,s[1])}})("replace",0,!!de(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!dht||tF);var h1=nt.Promise,g1=function(t,e,n){for(var r in e)jr(t,r,e[r],n);return t},pht=nt.String,hht=nt.TypeError,oc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ct(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return fn(r),function(i){if(typeof i=="object"||ae(i))return i;throw hht("Can't set "+pht(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),ght=gi.f,eF=ze("toStringTag"),v1=function(t,e,n){t&&!qe(t=n?t:t.prototype,eF)&&ght(t,eF,{configurable:!0,value:e})},nF=ze("species"),vht=nt.TypeError,SC=function(t,e){if(bp(e,t))return t;throw vht("Incorrect invocation")},ic={},mht=ze("iterator"),yht=Array.prototype,bht=ze("iterator"),rF=function(t){if(t!=null)return Ep(t,bht)||Ep(t,"@@iterator")||ic[Mm(t)]},wht=nt.TypeError,oF=function(t,e,n){var r,o;fn(t);try{if(!(r=Ep(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 fn(r),n},Eht=nt.TypeError,mg=function(t,e){this.stopped=t,this.result=e},iF=mg.prototype,m1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=Sp(e,f),g=function(h){return r&&oF(r,"normal",h),new mg(!0,h)},y=function(h){return d?(fn(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=t;else{if(!(o=rF(t)))throw Eht(o1(t)+" is not iterable");if((c=o)!==void 0&&(ic.Array===c||yht[mht]===c)){for(i=0,a=Eh(t);a>i;i++)if((u=y(t[i]))&&bp(iF,u))return u;return new mg(!1)}r=function(h,b){var w=arguments.length<2?rF(h):b;if(Na(w))return fn(fe(w,h));throw wht(o1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=fe(s,r)).done;){try{u=y(l.value)}catch(h){oF(r,"throw",h)}if(typeof u=="object"&&u&&bp(iF,u))return u}return new mg(!1)},mM=ze("iterator"),yM=!1;try{var Dht=0,aF={next:function(){return{done:!!Dht++}},return:function(){yM=!0}};aF[mM]=function(){return this},Array.from(aF,function(){throw 2})}catch{}var xp,el,uF,ww,bM=function(t,e){if(!yM)return!1;var n=!1;try{var r={};r[mM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Cht=nt.TypeError,Sht=ze("species"),wM=Ct([].slice),EM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Bl),wa=ko(nt.process)=="process",x3=nt.setImmediate,A3=nt.clearImmediate,xht=nt.process,Ew=nt.Dispatch,Aht=nt.Function,sF=nt.MessageChannel,Oht=nt.String,Dw=0,Td={};try{xp=nt.location}catch{}var xC=function(t){if(qe(Td,t)){var e=Td[t];delete Td[t],e()}},Cw=function(t){return function(){xC(t)}},lF=function(t){xC(t.data)},cF=function(t){nt.postMessage(Oht(t),xp.protocol+"//"+xp.host)};x3&&A3||(x3=function(t){var e=wM(arguments,1);return Td[++Dw]=function(){hM(ae(t)?t:Aht(t),void 0,e)},el(Dw),Dw},A3=function(t){delete Td[t]},wa?el=function(t){xht.nextTick(Cw(t))}:Ew&&Ew.now?el=function(t){Ew.now(Cw(t))}:sF&&!EM?(ww=(uF=new sF).port2,uF.port1.onmessage=lF,el=Sp(ww.postMessage,ww)):nt.addEventListener&&ae(nt.postMessage)&&!nt.importScripts&&xp&&xp.protocol!=="file:"&&!de(cF)?(el=cF,nt.addEventListener("message",lF,!1)):el="onreadystatechange"in Dp("script")?function(t){b3.appendChild(Dp("script")).onreadystatechange=function(){b3.removeChild(this),xC(t)}}:function(t){setTimeout(Cw(t),0)});var Mf,wu,Pd,hl,Sw,xw,Aw,fF,DM={set:x3,clear:A3},kht=/ipad|iphone|ipod/i.test(Bl)&&nt.Pebble!==void 0,Bht=/web0s(?!.*chrome)/i.test(Bl),_ht=gC.f,Ow=DM.set,dF=nt.MutationObserver||nt.WebKitMutationObserver,pF=nt.document,hF=nt.process,k0=nt.Promise,gF=_ht(nt,"queueMicrotask"),CM=gF&&gF.value;CM||(Mf=function(){var t,e;for(wa&&(t=hF.domain)&&t.exit();wu;){e=wu.fn,wu=wu.next;try{e()}catch(n){throw wu?hl():Pd=void 0,n}}Pd=void 0,t&&t.enter()},EM||wa||Bht||!dF||!pF?!kht&&k0&&k0.resolve?((Aw=k0.resolve(void 0)).constructor=k0,fF=Sp(Aw.then,Aw),hl=function(){fF(Mf)}):wa?hl=function(){hF.nextTick(Mf)}:(Ow=Sp(Ow,nt),hl=function(){Ow(Mf)}):(Sw=!0,xw=pF.createTextNode(""),new dF(Mf).observe(xw,{characterData:!0}),hl=function(){xw.data=Sw=!Sw}));var kw,vF,SM,mF,xM=CM||function(t){var e={fn:t,next:void 0};Pd&&(Pd.next=e),wu||(wu=e,hl()),Pd=e},Fht=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=Na(e),this.reject=Na(n)},AC={f:function(t){return new Fht(t)}},O3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Tht=typeof window=="object",AM=DM.set,Pht=ze("species"),ti="Promise",yF=fr.getterFor(ti),jht=fr.set,Iht=fr.getterFor(ti),hu=h1&&h1.prototype,Co=h1,zf=hu,OM=nt.TypeError,k3=nt.document,OC=nt.process,_l=AC.f,Nht=_l,Lht=!!(k3&&k3.createEvent&&nt.dispatchEvent),kM=ae(nt.PromiseRejectionEvent),BM=!1,jd=l1(ti,function(){var t=Nm(Co),e=t!==String(Co);if(!e&&wp===66)return!0;if(wp>=51&&/native code/.test(t))return!1;var n=new Co(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Pht]=r,!(BM=n.then(function(){})instanceof r)||!e&&Tht&&!kM}),Rht=jd||!bM(function(t){Co.all(t).catch(function(){})}),_M=function(t){var e;return!(!we(t)||!ae(e=t.then))&&e},kC=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,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&zht(t),t.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(OM("Promise-chain cycle")):(u=_M(a))?fe(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Mht(t)})}},FM=function(t,e,n){var r,o;Lht?((r=k3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),nt.dispatchEvent(r)):r={promise:e,reason:n},!kM&&(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)},Mht=function(t){fe(AM,nt,function(){var e,n=t.facade,r=t.value;if(bF(t)&&(e=O3(function(){wa?OC.emit("unhandledRejection",r,n):FM("unhandledrejection",n,r)}),t.rejection=wa||bF(t)?2:1,e.error))throw e.value})},bF=function(t){return t.rejection!==1&&!t.parent},zht=function(t){fe(AM,nt,function(){var e=t.facade;wa?OC.emit("rejectionHandled",e):FM("rejectionhandled",e,t.value)})},wl=function(t,e,n){return function(r){t(e,r,n)}},Fl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,kC(t,!0))},B3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw OM("Promise can't be resolved itself");var r=_M(e);r?xM(function(){var o={done:!1};try{fe(r,e,wl(B3,o,t),wl(Fl,o,t))}catch(i){Fl(o,i,t)}}):(t.value=e,t.state=1,kC(t,!1))}catch(o){Fl({done:!1},o,t)}}};if(jd&&(zf=(Co=function(t){SC(this,zf),Na(t),fe(kw,this);var e=yF(this);try{t(wl(B3,e),wl(Fl,e))}catch(n){Fl(e,n)}}).prototype,(kw=function(t){jht(this,{type:ti,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=g1(zf,{then:function(t,e){var n=Iht(this),r=n.reactions,o=_l(function(i,a){var u,s=fn(i).constructor;return s===void 0||(u=fn(s)[Sht])==null?a:function(l){if(wC(l))return l;throw Cht(o1(l)+" is not a constructor")}(u)}(this,Co));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=wa?OC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&kC(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),vF=function(){var t=new kw,e=yF(t);this.promise=t,this.resolve=wl(B3,e),this.reject=wl(Fl,e)},AC.f=_l=function(t){return t===Co||t===SM?new vF(t):Nht(t)},ae(h1)&&hu!==Object.prototype)){mF=hu.then,BM||(jr(hu,"then",function(t,e){var n=this;return new Co(function(r,o){fe(mF,n,r,o)}).then(t,e)},{unsafe:!0}),jr(hu,"catch",zf.catch,{unsafe:!0}));try{delete hu.constructor}catch{}oc&&oc(hu,zf)}function Ap(t,e,n){return n===void 0&&(n=""),Tm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return Pm(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,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function Bw(){return vM("w-e-insert-video")}Vn({global:!0,wrap:!0,forced:jd},{Promise:Co}),v1(Co,ti,!1),function(t){var e=fs("Promise"),n=gi.f;jo&&e&&!e[nF]&&n(e,nF,{configurable:!0,get:function(){return this}})}(),SM=fs(ti),Vn({target:ti,stat:!0,forced:jd},{reject:function(t){var e=_l(this);return fe(e.reject,void 0,t),e.promise}}),Vn({target:ti,stat:!0,forced:jd},{resolve:function(t){return function(e,n){if(fn(e),we(n)&&n.constructor===e)return n;var r=AC.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Vn({target:ti,stat:!0,forced:Rht},{all:function(t){var e=this,n=_l(e),r=n.resolve,o=n.reject,i=O3(function(){var a=Na(e.resolve),u=[],s=0,l=1;m1(t,function(c){var f=s++,d=!1;l++,fe(a,e,c).then(function(p){d||(d=!0,u[f]=p,--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=O3(function(){var i=Na(e.resolve);m1(t,function(a){fe(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var $ht=function(){function t(){this.title=tt("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=Bw(),this.posterInputId=Bw(),this.buttonId=Bw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.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(ir(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Wu(ir(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=B(l),v=B(d),m=Wu(bc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var g=B("<div></div>");g.on("click","#"+a,function(h){return Tm(n,void 0,void 0,function(){var b,w;return Pm(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,Ap(e,b,w)];case 1:return D.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(m),p.val(""),v.val(""),setTimeout(function(){p.focus()}),y[0]},t}(),Hht=Ct([].join),Vht=lC!=Object,Uht=function(t,e){var n=[].join;return!!n&&de(function(){n.call(null,",",1)})}();Vn({target:"Array",proto:!0,forced:Vht||!Uht},{join:function(t){return Hht(Va(this),t===void 0?",":t)}});var qu,wF,EF,Wht=!de(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),DF=vC("IE_PROTO"),_3=nt.Object,Ght=_3.prototype,y1=Wht?_3.getPrototypeOf:function(t){var e=Im(t);if(qe(e,DF))return e[DF];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof _3?Ght:null},F3=ze("iterator"),TM=!1;[].keys&&("next"in(EF=[].keys())?(wF=y1(y1(EF)))!==Object.prototype&&(qu=wF):TM=!0);var qht=qu==null||de(function(){var t={};return qu[F3].call(t)!==t});qht&&(qu={}),ae(qu[F3])||jr(qu,F3,function(){return this});var BC={IteratorPrototype:qu,BUGGY_SAFARI_ITERATORS:TM},Kht=BC.IteratorPrototype,Yht=function(){return this},Xht=Bc.PROPER,Zht=Bc.CONFIGURABLE,CF=BC.IteratorPrototype,_w=BC.BUGGY_SAFARI_ITERATORS,$f=ze("iterator"),Jht=function(){return this},PM=function(t,e,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=yC(Kht,{next:jm(1,h)}),v1(g,w,!1),ic[w]=Yht})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!_w&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[$f]||d["@@iterator"]||o&&d[o],v=!_w&&p||l(o),m=e=="Array"&&d.entries||p;return m&&(u=y1(m.call(new t)))!==Object.prototype&&u.next&&(y1(u)!==CF&&(oc?oc(u,CF):ae(u[$f])||jr(u,$f,Jht)),v1(u,c,!0)),Xht&&o=="values"&&p&&p.name!=="values"&&(Zht?ba(d,"name","values"):(f=!0,v=function(){return fe(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Vn({target:e,proto:!0,forced:_w||f},s)),d[$f]!==v&&jr(d,$f,v,{name:o}),ic[e]=v,s},Qht=fr.set,t0t=fr.getterFor("Array Iterator"),fd=PM(Array,"Array",function(t,e){Qht(this,{type:"Array Iterator",target:Va(t),index:0,kind:e})},function(){var t=t0t(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,Fd("keys"),Fd("values"),Fd("entries");var e0t=gM.charAt,n0t=fr.set,r0t=fr.getterFor("String Iterator");PM(String,"String",function(t){n0t(this,{type:"String Iterator",string:Er(t),index:0})},function(){var t,e=r0t(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=e0t(n,r),e.index+=t.length,{value:t,done:!1})});var jM=function(t,e,n){var r=hC(e);r in t?gi.f(t,r,jm(0,n)):t[r]=n},o0t=nt.Array,i0t=Math.max,SF=s1.f,xF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a0t={f:function(t){return xF&&ko(t)=="Window"?function(e){try{return SF(e)}catch{return function(r,o,i){for(var a=Eh(r),u=Cp(void 0,a),s=Cp(a,a),l=o0t(i0t(s-u,0)),c=0;u<s;u++,c++)jM(l,c,r[u]);return l.length=c,l}(xF)}}(t):SF(Va(t))}},AF=de(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),B0=Object.isExtensible,xu=de(function(){B0(1)})||AF?function(t){return!!we(t)&&(!AF||ko(t)!="ArrayBuffer")&&(!B0||B0(t))}:B0,u0t=!de(function(){return Object.isExtensible(Object.preventExtensions({}))}),_C=sC(function(t){var e=gi.f,n=!1,r=pC("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=s1.f,s=Ct([].splice),l={};l[r]=1,u(l).length&&(s1.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Vn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a0t.f}))},fastKey:function(u,s){if(!we(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!qe(u,r)){if(!xu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!qe(u,r)){if(!xu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return u0t&&n&&xu(u)&&!qe(u,r)&&i(u),u}};Lm[r]=!0}),_0=_C.getWeakData,s0t=fr.set,l0t=fr.getterFor,c0t=EC.find,f0t=EC.findIndex,d0t=Ct([].splice),p0t=0,F0=function(t){return t.frozen||(t.frozen=new IM)},IM=function(){this.entries=[]},Fw=function(t,e){return c0t(t.entries,function(n){return n[0]===e})};IM.prototype={get:function(t){var e=Fw(this,t);if(e)return e[1]},has:function(t){return!!Fw(this,t)},set:function(t,e){var n=Fw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=f0t(this.entries,function(n){return n[0]===t});return~e&&d0t(this.entries,e,1),!!~e}};var Hf,NM={getConstructor:function(t,e,n,r){var o=t(function(s,l){SC(s,i),s0t(s,{type:e,id:p0t++,frozen:void 0}),l!=null&&m1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=l0t(e),u=function(s,l,c){var f=a(s),d=_0(fn(l),!0);return d===!0?F0(f).set(l,c):d[f.id]=c,s};return g1(i,{delete:function(s){var l=a(this);if(!we(s))return!1;var c=_0(s);return c===!0?F0(l).delete(s):c&&qe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!we(s))return!1;var c=_0(s);return c===!0?F0(l).has(s):c&&qe(c,l.id)}}),g1(i,n?{get:function(s){var l=a(this);if(we(s)){var c=_0(s);return c===!0?F0(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}},T0=fr.enforce,h0t=!nt.ActiveXObject&&"ActiveXObject"in nt,LM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g0t=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(g){var y=Ct(u[g]);jr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!we(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!we(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!we(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(l1(t,!ae(a)||!(o||u.forEach&&!de(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),_C.enable();else if(l1(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=de(function(){f.has(1)}),v=bM(function(g){new a(g)}),m=!o&&de(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=e(function(g,y){SC(g,u);var h=function(b,w,D){var S,C;return oc&&ae(S=w.constructor)&&S!==D&&we(C=S.prototype)&&C!==D.prototype&&oc(b,C),b}(new a,g,s);return y!=null&&m1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Vn({global:!0,forced:s!=a},l),v1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",LM,NM);if(nM&&h0t){Hf=NM.getConstructor(LM,"WeakMap",!0),_C.enable();var Vf=g0t.prototype,OF=Ct(Vf.delete),P0=Ct(Vf.has),kF=Ct(Vf.get),BF=Ct(Vf.set);g1(Vf,{delete:function(t){if(we(t)&&!xu(t)){var e=T0(this);return e.frozen||(e.frozen=new Hf),OF(this,t)||e.frozen.delete(t)}return OF(this,t)},has:function(t){if(we(t)&&!xu(t)){var e=T0(this);return e.frozen||(e.frozen=new Hf),P0(this,t)||e.frozen.has(t)}return P0(this,t)},get:function(t){if(we(t)&&!xu(t)){var e=T0(this);return e.frozen||(e.frozen=new Hf),P0(this,t)?kF(this,t):e.frozen.get(t)}return kF(this,t)},set:function(t,e){if(we(t)&&!xu(t)){var n=T0(this);n.frozen||(n.frozen=new Hf),P0(this,t)?BF(this,t,e):n.frozen.set(t,e)}else BF(this,t,e);return this}})}var RM={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},Tw=Dp("span").classList,_F=Tw&&Tw.constructor&&Tw.constructor.prototype,v0t=_F===Object.prototype?void 0:_F,Pw=ze("iterator"),FF=ze("toStringTag"),jw=fd.values,MM=function(t,e){if(t){if(t[Pw]!==jw)try{ba(t,Pw,jw)}catch{t[Pw]=jw}if(t[FF]||ba(t,FF,e),RM[e]){for(var n in fd)if(t[n]!==fd[n])try{ba(t,n,fd[n])}catch{t[n]=fd[n]}}}};for(var Iw in RM)MM(nt[Iw]&&nt[Iw].prototype,Iw);MM(v0t,"DOMTokenList");var m0t=Bc.EXISTS,y0t=gi.f,zM=Function.prototype,b0t=Ct(zM.toString),$M=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,w0t=Ct($M.exec);jo&&!m0t&&y0t(zM,"name",{configurable:!0,get:function(){try{return w0t($M,b0t(this))[1]}catch{return""}}});var E0t=ze("species"),D0t=wp>=51||!de(function(){var t=[];return(t.constructor={})[E0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),C0t=ze("species"),Nw=nt.Array,S0t=Math.max;function HM(t){return t.getMenuConfig("uploadVideo")}Vn({target:"Array",proto:!0,forced:!D0t},{slice:function(t,e){var n,r,o,i=Va(this),a=Eh(i),u=Cp(t,a),s=Cp(e===void 0?a:e,a);if(f1(i)&&(n=i.constructor,(wC(n)&&(n===Nw||f1(n.prototype))||we(n)&&(n=n[C0t])===null)&&(n=void 0),n===Nw||n===void 0))return wM(i,u,s);for(r=new(n===void 0?Nw:n)(S0t(s-u,0)),o=0;u<s;u++,o++)u in i&&jM(r,o,i[u]);return r.length=o,r}});var TF=new WeakMap;function x0t(t,e){return Tm(this,void 0,void 0,function(){var n,r,o,i;return Pm(this,function(a){switch(a.label){case 0:return n=function(u){var s=TF.get(u);if(s!=null)return s;var l=HM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=hN(r1(r1({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,function(A,_){return Ap(u,A,_)}),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){var D=w.url,S=D===void 0?"":D,C=w.poster;Ap(u,S,C===void 0?"":C),c(m,g)}else d(m,g)},onError:function(m,g,y){v(m,g,y)}})),TF.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 A0t=function(){function t(){this.title=tt("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 Ap(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,d){var p,v;Tm(this,void 0,void 0,function(){var m,g,y,h,b,w;return Pm(this,function(D){switch(D.label){case 0:if(d==null)return[2];m=Array.prototype.slice.call(d),g=HM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),y=Sdt(m),D.label=2;case 2:return[4,y.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(S,C){return Ap(f,S,C)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,x0t(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),p={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(p)throw p.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||!M.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),O0t=Bc.PROPER,T3=RegExp.prototype,VM=T3.toString,k0t=Ct(pM),B0t=de(function(){return VM.call({source:"a",flags:"b"})!="/a/b"}),_0t=O0t&&VM.name!="toString";function Lw(){return vM("w-e-insert-video")}(B0t||_0t)&&jr(RegExp.prototype,"toString",function(){var t=fn(this),e=Er(t.source),n=t.flags;return"/"+e+"/"+Er(n===void 0&&bp(T3,t)&&!("flags"in T3)?k0t(t):n)},{unsafe:!0});var F0t=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Lw(),this.heightInputId=Lw(),this.buttonId=Lw()}return t.prototype.getSelectedVideoNode=function(e){return O.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(ir(tt("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=Wu(ir(tt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),d=Wu(bc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var p=B("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var D=p.find("#"+r).val().trim(),S=p.find("#"+o).val().trim(),C=parseInt(D),A=parseInt(S),_=C?C.toString():"auto",z=A?A.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:_,height:z},{match:function(U){return O.checkNodeType(U,"video")}}),e.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var m=this.getSelectedVideoNode(e);if(m==null)return v[0];var g=m.width,y=g===void 0?"auto":g,h=m.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),v[0]},t}(),T0t={renderElems:[Apt],elemsToHtml:[Opt],preParseHtml:[Fpt],parseElemsHtml:[Mpt],menus:[{key:"insertVideo",factory:function(){return new $ht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new A0t},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 F0t}}],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 O.getNodeType(a)==="video"&&O.isLastNode(r,a)&&N.insertNodes(r,O.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Yn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Yn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var PF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function FC(t){var e={exports:{}};return t(e,e.exports),e.exports}var Vi,yg,j0=function(t){return t&&t.Math==Math&&t},et=j0(typeof globalThis=="object"&&globalThis)||j0(typeof window=="object"&&window)||j0(typeof self=="object"&&self)||j0(typeof PF=="object"&&PF)||function(){return this}()||Function("return this")(),ve=function(t){try{return!!t()}catch{return!0}},Io=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Uf=Function.prototype.call,re=Uf.bind?Uf.bind(Uf):function(){return Uf.apply(Uf,arguments)},jF={}.propertyIsEnumerable,IF=Object.getOwnPropertyDescriptor,P0t={f:IF&&!jF.call({1:2},1)?function(t){var e=IF(this,t);return!!e&&e.enumerable}:jF},zm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},UM=Function.prototype,P3=UM.bind,j3=UM.call,j0t=P3&&P3.bind(j3),Tt=P3?function(t){return t&&j0t(j3,t)}:function(t){return t&&function(){return j3.apply(t,arguments)}},I0t=Tt({}.toString),N0t=Tt("".slice),to=function(t){return N0t(I0t(t),8,-1)},Rw=et.Object,L0t=Tt("".split),TC=ve(function(){return!Rw("z").propertyIsEnumerable(0)})?function(t){return to(t)=="String"?L0t(t,""):Rw(t)}:Rw,R0t=et.TypeError,Op=function(t){if(t==null)throw R0t("Can't call method on "+t);return t},Ua=function(t){return TC(Op(t))},le=function(t){return typeof t=="function"},he=function(t){return typeof t=="object"?t!==null:le(t)},M0t=function(t){return le(t)?t:void 0},ds=function(t,e){return arguments.length<2?M0t(et[t]):et[t]&&et[t][e]},kp=Tt({}.isPrototypeOf),Tl=ds("navigator","userAgent")||"",NF=et.process,LF=et.Deno,RF=NF&&NF.versions||LF&&LF.version,MF=RF&&RF.v8;MF&&(yg=(Vi=MF.split("."))[0]>0&&Vi[0]<4?1:+(Vi[0]+Vi[1])),!yg&&Tl&&(!(Vi=Tl.match(/Edge\/(\d+)/))||Vi[1]>=74)&&(Vi=Tl.match(/Chrome\/(\d+)/))&&(yg=+Vi[1]);var Bp=yg,I3=!!Object.getOwnPropertySymbols&&!ve(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Bp&&Bp<41}),PC=I3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",z0t=et.Object,Mw=PC?function(t){return typeof t=="symbol"}:function(t){var e=ds("Symbol");return le(e)&&kp(e.prototype,z0t(t))},$0t=et.String,b1=function(t){try{return $0t(t)}catch{return"Object"}},H0t=et.TypeError,La=function(t){if(le(t))return t;throw H0t(b1(t)+" is not a function")},_p=function(t,e){var n=t[e];return n==null?void 0:La(n)},V0t=et.TypeError,U0t=Object.defineProperty,jC=function(t,e){try{U0t(et,t,{value:e,configurable:!0,writable:!0})}catch{et[t]=e}return e},Ea=et["__core-js_shared__"]||jC("__core-js_shared__",{}),IC=FC(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),W0t=et.Object,NC=function(t){return W0t(Op(t))},G0t=Tt({}.hasOwnProperty),Ke=Object.hasOwn||function(t,e){return G0t(NC(t),e)},q0t=0,K0t=Math.random(),Y0t=Tt(1 .toString),LC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Y0t(++q0t+K0t,36)},Wf=IC("wks"),Ku=et.Symbol,zF=Ku&&Ku.for,X0t=PC?Ku:Ku&&Ku.withoutSetter||LC,$e=function(t){if(!Ke(Wf,t)||!I3&&typeof Wf[t]!="string"){var e="Symbol."+t;I3&&Ke(Ku,t)?Wf[t]=Ku[t]:Wf[t]=PC&&zF?zF(e):X0t(e)}return Wf[t]},Z0t=et.TypeError,J0t=$e("toPrimitive"),RC=function(t){var e=function(n,r){if(!he(n)||Mw(n))return n;var o,i=_p(n,J0t);if(i){if(o=re(i,n,r),!he(o)||Mw(o))return o;throw Z0t("Can't convert object to primitive value")}return function(a,u){var s,l;if(le(s=a.toString)&&!he(l=re(s,a))||le(s=a.valueOf)&&!he(l=re(s,a)))return l;throw V0t("Can't convert object to primitive value")}(n)}(t,"string");return Mw(e)?e:e+""},N3=et.document,Q0t=he(N3)&&he(N3.createElement),Fp=function(t){return Q0t?N3.createElement(t):{}},WM=!Io&&!ve(function(){return Object.defineProperty(Fp("div"),"a",{get:function(){return 7}}).a!=7}),$F=Object.getOwnPropertyDescriptor,MC={f:Io?$F:function(t,e){if(t=Ua(t),e=RC(e),WM)try{return $F(t,e)}catch{}if(Ke(t,e))return zm(!re(P0t.f,t,e),t[e])}},tgt=et.String,egt=et.TypeError,dn=function(t){if(he(t))return t;throw egt(tgt(t)+" is not an object")},ngt=et.TypeError,HF=Object.defineProperty,vi={f:Io?HF:function(t,e,n){if(dn(t),e=RC(e),dn(n),WM)try{return HF(t,e,n)}catch{}if("get"in n||"set"in n)throw ngt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Bo=Io?function(t,e,n){return vi.f(t,e,zm(1,n))}:function(t,e,n){return t[e]=n,t},rgt=Tt(Function.toString);le(Ea.inspectSource)||(Ea.inspectSource=function(t){return rgt(t)});var w1,Id,E1,$m=Ea.inspectSource,VF=et.WeakMap,GM=le(VF)&&/native code/.test($m(VF)),UF=IC("keys"),zC=function(t){return UF[t]||(UF[t]=LC(t))},Hm={},L3=et.TypeError,ogt=et.WeakMap;if(GM||Ea.state){var lu=Ea.state||(Ea.state=new ogt),igt=Tt(lu.get),WF=Tt(lu.has),agt=Tt(lu.set);w1=function(t,e){if(WF(lu,t))throw new L3("Object already initialized");return e.facade=t,agt(lu,t,e),e},Id=function(t){return igt(lu,t)||{}},E1=function(t){return WF(lu,t)}}else{var nl=zC("state");Hm[nl]=!0,w1=function(t,e){if(Ke(t,nl))throw new L3("Object already initialized");return e.facade=t,Bo(t,nl,e),e},Id=function(t){return Ke(t,nl)?t[nl]:{}},E1=function(t){return Ke(t,nl)}}var dr={set:w1,get:Id,has:E1,enforce:function(t){return E1(t)?Id(t):w1(t,{})},getterFor:function(t){return function(e){var n;if(!he(e)||(n=Id(e)).type!==t)throw L3("Incompatible receiver, "+t+" required");return n}}},qM=Function.prototype,ugt=Io&&Object.getOwnPropertyDescriptor,zw=Ke(qM,"name"),Ch={EXISTS:zw,PROPER:zw&&(function(){}).name==="something",CONFIGURABLE:zw&&(!Io||Io&&ugt(qM,"name").configurable)},Ir=FC(function(t){var e=Ch.CONFIGURABLE,n=dr.get,r=dr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;le(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ke(u,"name")||e&&u.name!==p)&&Bo(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Bo(i,a,u)):f?i[a]=u:jC(a,u)})(Function.prototype,"toString",function(){return le(this)&&n(this).source||$m(this)})}),sgt=Math.ceil,lgt=Math.floor,$C=function(t){var e=+t;return e!=e||e===0?0:(e>0?lgt:sgt)(e)},cgt=Math.max,fgt=Math.min,Tp=function(t,e){var n=$C(t);return n<0?cgt(n+e,0):fgt(n,e)},dgt=Math.min,KM=function(t){return t>0?dgt($C(t),9007199254740991):0},Sh=function(t){return KM(t.length)},pgt=function(t){return function(e,n,r){var o,i=Ua(e),a=Sh(i),u=Tp(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}},hgt=pgt(!1),GF=Tt([].push),YM=function(t,e){var n,r=Ua(t),o=0,i=[];for(n in r)!Ke(Hm,n)&&Ke(r,n)&&GF(i,n);for(;e.length>o;)Ke(r,n=e[o++])&&(~hgt(i,n)||GF(i,n));return i},D1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ggt=D1.concat("length","prototype"),C1={f:Object.getOwnPropertyNames||function(t){return YM(t,ggt)}},vgt={f:Object.getOwnPropertySymbols},mgt=Tt([].concat),ygt=ds("Reflect","ownKeys")||function(t){var e=C1.f(dn(t)),n=vgt.f;return n?mgt(e,n(t)):e},bgt=function(t,e){for(var n=ygt(e),r=vi.f,o=MC.f,i=0;i<n.length;i++){var a=n[i];Ke(t,a)||r(t,a,o(e,a))}},wgt=/#|\.prototype\./,xh=function(t,e){var n=Dgt[Egt(t)];return n==Sgt||n!=Cgt&&(le(e)?ve(e):!!e)},Egt=xh.normalize=function(t){return String(t).replace(wgt,".").toLowerCase()},Dgt=xh.data={},Cgt=xh.NATIVE="N",Sgt=xh.POLYFILL="P",S1=xh,xgt=MC.f,So=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]||jC(u,{}):(et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=xgt(n,r))&&a.value:n[r],!S1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;bgt(i,o)}(t.sham||o&&o.sham)&&Bo(i,"sham",!0),Ir(n,r,i,t)}},x1=Array.isArray||function(t){return to(t)=="Array"},XM={};XM[$e("toStringTag")]="z";var HC=String(XM)==="[object z]",Agt=$e("toStringTag"),Ogt=et.Object,kgt=to(function(){return arguments}())=="Arguments",Vm=HC?to:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Ogt(t),Agt))=="string"?n:kgt?to(e):(r=to(e))=="Object"&&le(e.callee)?"Arguments":r},ZM=function(){},Bgt=[],JM=ds("Reflect","construct"),VC=/^\s*(?:class|function)\b/,_gt=Tt(VC.exec),Fgt=!VC.exec(ZM),Gf=function(t){if(!le(t))return!1;try{return JM(ZM,Bgt,t),!0}catch{return!1}},UC=!JM||ve(function(){var t;return Gf(Gf.call)||!Gf(Object)||!Gf(function(){t=!0})||t})?function(t){if(!le(t))return!1;switch(Vm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fgt||!!_gt(VC,$m(t))}:Gf,QM=function(t,e,n){var r=RC(e);r in t?vi.f(t,r,zm(0,n)):t[r]=n},Tgt=$e("species"),tz=Tt([].slice),Pgt=Bp>=51||!ve(function(){var t=[];return(t.constructor={})[Tgt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),jgt=$e("species"),$w=et.Array,Igt=Math.max;So({target:"Array",proto:!0,forced:!Pgt},{slice:function(t,e){var n,r,o,i=Ua(this),a=Sh(i),u=Tp(t,a),s=Tp(e===void 0?a:e,a);if(x1(i)&&(n=i.constructor,(UC(n)&&(n===$w||x1(n.prototype))||he(n)&&(n=n[jgt])===null)&&(n=void 0),n===$w||n===void 0))return tz(i,u,s);for(r=new(n===void 0?$w:n)(Igt(s-u,0)),o=0;u<s;u++,o++)u in i&&QM(r,o,i[u]);return r.length=o,r}});var Ngt=HC?{}.toString:function(){return"[object "+Vm(this)+"]"};HC||Ir(Object.prototype,"toString",Ngt,{unsafe:!0});var I0,Lgt=et.String,Da=function(t){if(Vm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Lgt(t)},ez=function(){var t=dn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},WC=et.RegExp,R3=ve(function(){var t=WC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Rgt=R3||ve(function(){return!WC("a","y").sticky}),nz={BROKEN_CARET:R3||ve(function(){var t=WC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Rgt,UNSUPPORTED_Y:R3},Mgt=Object.keys||function(t){return YM(t,D1)},zgt=Io?Object.defineProperties:function(t,e){dn(t);for(var n,r=Ua(e),o=Mgt(e),i=o.length,a=0;i>a;)vi.f(t,n=o[a++],r[n]);return t},M3=ds("document","documentElement"),rz=zC("IE_PROTO"),Hw=function(){},oz=function(t){return"<script>"+t+"<\/script>"},qF=function(t){t.write(oz("")),t.close();var e=t.parentWindow.Object;return t=null,e},bg=function(){try{I0=new ActiveXObject("htmlfile")}catch{}var t,e;bg=typeof document<"u"?document.domain&&I0?qF(I0):((e=Fp("iframe")).style.display="none",M3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(oz("document.F=Object")),t.close(),t.F):qF(I0);for(var n=D1.length;n--;)delete bg.prototype[D1[n]];return bg()};Hm[rz]=!0;var KF,Vw,GC=Object.create||function(t,e){var n;return t!==null?(Hw.prototype=dn(t),n=new Hw,Hw.prototype=null,n[rz]=t):n=bg(),e===void 0?n:zgt(n,e)},$gt=et.RegExp,Hgt=ve(function(){var t=$gt(".","s");return!(t.dotAll&&t.exec(`
  140. `)&&t.flags==="s")}),Vgt=et.RegExp,Ugt=ve(function(){var t=Vgt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Wgt=dr.get,Ggt=IC("native-string-replace",String.prototype.replace),A1=RegExp.prototype.exec,z3=A1,qgt=Tt("".charAt),Kgt=Tt("".indexOf),Ygt=Tt("".replace),Uw=Tt("".slice),Ww=(Vw=/b*/g,re(A1,KF=/a/,"a"),re(A1,Vw,"a"),KF.lastIndex!==0||Vw.lastIndex!==0),YF=nz.BROKEN_CARET,Gw=/()??/.exec("")[1]!==void 0;(Ww||Gw||YF||Hgt||Ugt)&&(z3=function(t){var e,n,r,o,i,a,u,s=this,l=Wgt(s),c=Da(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=re(z3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=YF&&s.sticky,v=re(ez,s),m=s.source,g=0,y=c;if(p&&(v=Ygt(v,"y",""),Kgt(v,"g")===-1&&(v+="g"),y=Uw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&qgt(c,s.lastIndex-1)!==`
  141. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Gw&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Ww&&(r=s.lastIndex),o=re(A1,p?n:s,y),p?o?(o.input=Uw(o.input,g),o[0]=Uw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ww&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Gw&&o&&o.length>1&&re(Ggt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=GC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Pp=z3;So({target:"RegExp",proto:!0,forced:/./.exec!==Pp},{exec:Pp});var qC=Function.prototype,XF=qC.apply,Xgt=qC.bind,ZF=qC.call,iz=typeof Reflect=="object"&&Reflect.apply||(Xgt?ZF.bind(XF):function(){return ZF.apply(XF,arguments)}),Zgt=$e("species"),qw=RegExp.prototype,Jgt=$e("match"),Qgt=et.TypeError,tvt=$e("species"),az=function(t,e){var n,r=dn(t).constructor;return r===void 0||(n=dn(r)[tvt])==null?e:function(o){if(UC(o))return o;throw Qgt(b1(o)+" is not a constructor")}(n)},evt=Tt("".charAt),JF=Tt("".charCodeAt),nvt=Tt("".slice),QF=function(t){return function(e,n){var r,o,i=Da(Op(e)),a=$C(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=JF(i,a))<55296||r>56319||a+1===u||(o=JF(i,a+1))<56320||o>57343?t?evt(i,a):r:t?nvt(i,a,a+2):o-56320+(r-55296<<10)+65536}},uz={codeAt:QF(!1),charAt:QF(!0)},rvt=uz.charAt,ovt=function(t,e,n){return e+(n?rvt(t,e).length:1)},ivt=et.Array,avt=Math.max,$3=function(t,e,n){for(var r=Sh(t),o=Tp(e,r),i=Tp(n===void 0?r:n,r),a=ivt(avt(i-o,0)),u=0;o<i;o++,u++)QM(a,u,t[o]);return a.length=u,a},uvt=et.TypeError,tT=function(t,e){var n=t.exec;if(le(n)){var r=re(n,t,e);return r!==null&&dn(r),r}if(to(t)==="RegExp")return re(Pp,t,e);throw uvt("RegExp#exec called on incompatible receiver")},rl=nz.UNSUPPORTED_Y,svt=Math.min,sz=[].push,lvt=Tt(/./.exec),ol=Tt(sz),qf=Tt("".slice);(function(t,e,n,r){var o=$e(t),i=!ve(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ve(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Zgt]=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 d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var m,g,y=Da(Op(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!he(m=p)||!((g=m[Jgt])!==void 0?g:to(m)=="RegExp"))return re(c,y,p,h);for(var b,w,D,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),A=0,_=new RegExp(p.source,C+"g");(b=re(Pp,_,y))&&!((w=_.lastIndex)>A&&(ol(S,qf(y,A,b.index)),b.length>1&&b.index<y.length&&iz(sz,S,$3(b,1)),D=b[0].length,A=w,S.length>=h));)_.lastIndex===b.index&&_.lastIndex++;return A===y.length?!D&&lvt(_,"")||ol(S,""):ol(S,qf(y,A)),S.length>h?$3(S,0,h):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:re(c,this,p,v)}:c,[function(p,v){var m=Op(this),g=p==null?void 0:_p(p,l);return g?re(g,p,m,v):re(d,Da(m),p,v)},function(p,v){var m=dn(this),g=Da(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=az(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(rl?"g":"y"),D=new h(rl?"^(?:"+m.source+")":m,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return tT(D,g)===null?[g]:[];for(var C=0,A=0,_=[];A<g.length;){D.lastIndex=rl?0:A;var z,U=tT(D,rl?qf(g,A):g);if(U===null||(z=svt(KM(D.lastIndex+(rl?A:0)),g.length))===C)A=ovt(g,A,b);else{if(ol(_,qf(g,C,A)),_.length===S)return _;for(var $=1;$<=U.length-1;$++)if(ol(_,U[$]),_.length===S)return _;A=C=z}}return ol(_,qf(g,C)),_}]}(o,""[t],function(l,c,f,d,p){var v=Tt(l),m=c.exec;return m===Pp||m===qw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ir(String.prototype,t,s[0]),Ir(qw,o,s[1])}r&&Bo(qw[o],"sham",!0)})("split",0,!!ve(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),rl);/*! *****************************************************************************
  142. Copyright (c) Microsoft Corporation.
  143. Permission to use, copy, modify, and/or distribute this software for any
  144. purpose with or without fee is hereby granted.
  145. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  146. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  147. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  148. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  149. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  150. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  151. PERFORMANCE OF THIS SOFTWARE.
  152. ***************************************************************************** */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 KC(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,[])).next())})}function YC(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 cvt(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(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var H3=$e("unscopables"),V3=Array.prototype;V3[H3]==null&&vi.f(V3,H3,{configurable:!0,value:GC(null)});var Yu,eT,nT,Kw=function(t){V3[H3][t]=!0},ac={},fvt=!ve(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),rT=zC("IE_PROTO"),U3=et.Object,dvt=U3.prototype,k1=fvt?U3.getPrototypeOf:function(t){var e=NC(t);if(Ke(e,rT))return e[rT];var n=e.constructor;return le(n)&&e instanceof n?n.prototype:e instanceof U3?dvt:null},W3=$e("iterator"),lz=!1;[].keys&&("next"in(nT=[].keys())?(eT=k1(k1(nT)))!==Object.prototype&&(Yu=eT):lz=!0);var pvt=Yu==null||ve(function(){var t={};return Yu[W3].call(t)!==t});pvt&&(Yu={}),le(Yu[W3])||Ir(Yu,W3,function(){return this});var XC={IteratorPrototype:Yu,BUGGY_SAFARI_ITERATORS:lz},hvt=vi.f,oT=$e("toStringTag"),B1=function(t,e,n){t&&!Ke(t=n?t:t.prototype,oT)&&hvt(t,oT,{configurable:!0,value:e})},gvt=XC.IteratorPrototype,vvt=function(){return this},mvt=et.String,yvt=et.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{}return function(r,o){return dn(r),function(i){if(typeof i=="object"||le(i))return i;throw yvt("Can't set "+mvt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),bvt=Ch.PROPER,wvt=Ch.CONFIGURABLE,iT=XC.IteratorPrototype,Yw=XC.BUGGY_SAFARI_ITERATORS,Kf=$e("iterator"),Evt=function(){return this},cz=function(t,e,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=GC(gvt,{next:zm(1,h)}),B1(g,w,!1),ac[w]=vvt})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!Yw&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Kf]||d["@@iterator"]||o&&d[o],v=!Yw&&p||l(o),m=e=="Array"&&d.entries||p;return m&&(u=k1(m.call(new t)))!==Object.prototype&&u.next&&(k1(u)!==iT&&(uc?uc(u,iT):le(u[Kf])||Ir(u,Kf,Evt)),B1(u,c,!0)),bvt&&o=="values"&&p&&p.name!=="values"&&(wvt?Bo(d,"name","values"):(f=!0,v=function(){return re(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||So({target:e,proto:!0,forced:Yw||f},s)),d[Kf]!==v&&Ir(d,Kf,v,{name:o}),ac[e]=v,s},Dvt=dr.set,Cvt=dr.getterFor("Array Iterator"),dd=cz(Array,"Array",function(t,e){Dvt(this,{type:"Array Iterator",target:Ua(t),index:0,kind:e})},function(){var t=Cvt(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,Kw("keys"),Kw("values"),Kw("entries");var Svt=uz.charAt,xvt=dr.set,Avt=dr.getterFor("String Iterator");cz(String,"String",function(t){xvt(this,{type:"String Iterator",string:Da(t),index:0})},function(){var t,e=Avt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Svt(n,r),e.index+=t.length,{value:t,done:!1})});var _1=function(t,e,n){for(var r in e)Ir(t,r,e[r],n);return t},aT=C1.f,uT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ovt={f:function(t){return uT&&to(t)=="Window"?function(e){try{return aT(e)}catch{return $3(uT)}}(t):aT(Ua(t))}},sT=ve(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),N0=Object.isExtensible,Au=ve(function(){N0(1)})||sT?function(t){return!!he(t)&&(!sT||to(t)!="ArrayBuffer")&&(!N0||N0(t))}:N0,kvt=!ve(function(){return Object.isExtensible(Object.preventExtensions({}))}),ZC=FC(function(t){var e=vi.f,n=!1,r=LC("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=C1.f,s=Tt([].splice),l={};l[r]=1,u(l).length&&(C1.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},So({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ovt.f}))},fastKey:function(u,s){if(!he(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ke(u,r)){if(!Au(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ke(u,r)){if(!Au(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return kvt&&n&&Au(u)&&!Ke(u,r)&&i(u),u}};Hm[r]=!0}),lT=Tt(Tt.bind),jp=function(t,e){return La(t),e===void 0?t:lT?lT(t,e):function(){return t.apply(e,arguments)}},Bvt=$e("iterator"),_vt=Array.prototype,Fvt=$e("iterator"),cT=function(t){if(t!=null)return _p(t,Fvt)||_p(t,"@@iterator")||ac[Vm(t)]},Tvt=et.TypeError,fT=function(t,e,n){var r,o;dn(t);try{if(!(r=_p(t,"return"))){if(e==="throw")throw n;return n}r=re(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return dn(r),n},Pvt=et.TypeError,wg=function(t,e){this.stopped=t,this.result=e},dT=wg.prototype,F1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=jp(e,f),g=function(h){return r&&fT(r,"normal",h),new wg(!0,h)},y=function(h){return d?(dn(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=t;else{if(!(o=cT(t)))throw Pvt(b1(t)+" is not iterable");if((c=o)!==void 0&&(ac.Array===c||_vt[Bvt]===c)){for(i=0,a=Sh(t);a>i;i++)if((u=y(t[i]))&&kp(dT,u))return u;return new wg(!1)}r=function(h,b){var w=arguments.length<2?cT(h):b;if(La(w))return dn(re(w,h));throw Tvt(b1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=re(s,r)).done;){try{u=y(l.value)}catch(h){fT(r,"throw",h)}if(typeof u=="object"&&u&&kp(dT,u))return u}return new wg(!1)},jvt=et.TypeError,JC=function(t,e){if(kp(e,t))return t;throw jvt("Incorrect invocation")},fz=$e("iterator"),dz=!1;try{var Ivt=0,pT={next:function(){return{done:!!Ivt++}},return:function(){dz=!0}};pT[fz]=function(){return this},Array.from(pT,function(){throw 2})}catch{}var pz=function(t,e){if(!dz)return!1;var n=!1;try{var r={};r[fz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Nvt=$e("species"),hT=et.Array,Lvt=function(t,e){return new(function(n){var r;return x1(n)&&(r=n.constructor,(UC(r)&&(r===hT||x1(r.prototype))||he(r)&&(r=r[Nvt])===null)&&(r=void 0)),r===void 0?hT:r}(t))(e===0?0:e)},gT=Tt([].push),Ui=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 d,p,v=NC(s),m=TC(v),g=jp(l,c),y=Sh(m),h=0,b=f||Lvt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:gT(w,d)}else switch(t){case 4:return!1;case 7:gT(w,d)}return i?-1:r||o?o:w}},QC={forEach:Ui(0),map:Ui(1),filter:Ui(2),some:Ui(3),every:Ui(4),find:Ui(5),findIndex:Ui(6),filterReject:Ui(7)},L0=ZC.getWeakData,Rvt=dr.set,Mvt=dr.getterFor,zvt=QC.find,$vt=QC.findIndex,Hvt=Tt([].splice),Vvt=0,R0=function(t){return t.frozen||(t.frozen=new hz)},hz=function(){this.entries=[]},Xw=function(t,e){return zvt(t.entries,function(n){return n[0]===e})};hz.prototype={get:function(t){var e=Xw(this,t);if(e)return e[1]},has:function(t){return!!Xw(this,t)},set:function(t,e){var n=Xw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=$vt(this.entries,function(n){return n[0]===t});return~e&&Hvt(this.entries,e,1),!!~e}};var Yf,gz={getConstructor:function(t,e,n,r){var o=t(function(s,l){JC(s,i),Rvt(s,{type:e,id:Vvt++,frozen:void 0}),l!=null&&F1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Mvt(e),u=function(s,l,c){var f=a(s),d=L0(dn(l),!0);return d===!0?R0(f).set(l,c):d[f.id]=c,s};return _1(i,{delete:function(s){var l=a(this);if(!he(s))return!1;var c=L0(s);return c===!0?R0(l).delete(s):c&&Ke(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!he(s))return!1;var c=L0(s);return c===!0?R0(l).has(s):c&&Ke(c,l.id)}}),_1(i,n?{get:function(s){var l=a(this);if(he(s)){var c=L0(s);return c===!0?R0(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}},M0=dr.enforce,Uvt=!et.ActiveXObject&&"ActiveXObject"in et,vz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Wvt=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(g){var y=Tt(u[g]);Ir(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!he(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!he(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!he(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(S1(t,!le(a)||!(o||u.forEach&&!ve(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),ZC.enable();else if(S1(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ve(function(){f.has(1)}),v=pz(function(g){new a(g)}),m=!o&&ve(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=e(function(g,y){JC(g,u);var h=function(b,w,D){var S,C;return uc&&le(S=w.constructor)&&S!==D&&he(C=S.prototype)&&C!==D.prototype&&uc(b,C),b}(new a,g,s);return y!=null&&F1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,So({global:!0,forced:s!=a},l),B1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",vz,gz);if(GM&&Uvt){Yf=gz.getConstructor(vz,"WeakMap",!0),ZC.enable();var Xf=Wvt.prototype,vT=Tt(Xf.delete),z0=Tt(Xf.has),mT=Tt(Xf.get),yT=Tt(Xf.set);_1(Xf,{delete:function(t){if(he(t)&&!Au(t)){var e=M0(this);return e.frozen||(e.frozen=new Yf),vT(this,t)||e.frozen.delete(t)}return vT(this,t)},has:function(t){if(he(t)&&!Au(t)){var e=M0(this);return e.frozen||(e.frozen=new Yf),z0(this,t)||e.frozen.has(t)}return z0(this,t)},get:function(t){if(he(t)&&!Au(t)){var e=M0(this);return e.frozen||(e.frozen=new Yf),z0(this,t)?mT(this,t):e.frozen.get(t)}return mT(this,t)},set:function(t,e){if(he(t)&&!Au(t)){var n=M0(this);n.frozen||(n.frozen=new Yf),z0(this,t)?yT(this,t,e):n.frozen.set(t,e)}else yT(this,t,e);return this}})}var T1={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},Zw=Fp("span").classList,bT=Zw&&Zw.constructor&&Zw.constructor.prototype,mz=bT===Object.prototype?void 0:bT,Jw=$e("iterator"),wT=$e("toStringTag"),Qw=dd.values,yz=function(t,e){if(t){if(t[Jw]!==Qw)try{Bo(t,Jw,Qw)}catch{t[Jw]=Qw}if(t[wT]||Bo(t,wT,e),T1[e]){for(var n in dd)if(t[n]!==dd[n])try{Bo(t,n,dd[n])}catch{t[n]=dd[n]}}}};for(var t4 in T1)yz(et[t4]&&et[t4].prototype,t4);yz(mz,"DOMTokenList");var bz=function(t,e){var n=[][t];return!!n&&ve(function(){n.call(null,e||function(){throw 1},1)})},Gvt=QC.forEach,e4=bz("forEach")?[].forEach:function(t){return Gvt(this,t,arguments.length>1?arguments[1]:void 0)},wz=function(t){if(t&&t.forEach!==e4)try{Bo(t,"forEach",e4)}catch{t.forEach=e4}};for(var n4 in T1)T1[n4]&&wz(et[n4]&&et[n4].prototype);wz(mz);var Ip,il,ET,r4,P1=et.Promise,DT=$e("species"),Ez=/(?:ipad|iphone|ipod).*applewebkit/i.test(Tl),Ca=to(et.process)=="process",G3=et.setImmediate,q3=et.clearImmediate,qvt=et.process,o4=et.Dispatch,Kvt=et.Function,CT=et.MessageChannel,Yvt=et.String,i4=0,Nd={};try{Ip=et.location}catch{}var tS=function(t){if(Ke(Nd,t)){var e=Nd[t];delete Nd[t],e()}},a4=function(t){return function(){tS(t)}},ST=function(t){tS(t.data)},xT=function(t){et.postMessage(Yvt(t),Ip.protocol+"//"+Ip.host)};G3&&q3||(G3=function(t){var e=tz(arguments,1);return Nd[++i4]=function(){iz(le(t)?t:Kvt(t),void 0,e)},il(i4),i4},q3=function(t){delete Nd[t]},Ca?il=function(t){qvt.nextTick(a4(t))}:o4&&o4.now?il=function(t){o4.now(a4(t))}:CT&&!Ez?(r4=(ET=new CT).port2,ET.port1.onmessage=ST,il=jp(r4.postMessage,r4)):et.addEventListener&&le(et.postMessage)&&!et.importScripts&&Ip&&Ip.protocol!=="file:"&&!ve(xT)?(il=xT,et.addEventListener("message",ST,!1)):il="onreadystatechange"in Fp("script")?function(t){M3.appendChild(Fp("script")).onreadystatechange=function(){M3.removeChild(this),tS(t)}}:function(t){setTimeout(a4(t),0)});var Zf,Eu,Ld,gl,u4,s4,l4,AT,Dz={set:G3,clear:q3},Xvt=/ipad|iphone|ipod/i.test(Tl)&&et.Pebble!==void 0,Zvt=/web0s(?!.*chrome)/i.test(Tl),Jvt=MC.f,c4=Dz.set,OT=et.MutationObserver||et.WebKitMutationObserver,kT=et.document,BT=et.process,$0=et.Promise,_T=Jvt(et,"queueMicrotask"),Cz=_T&&_T.value;Cz||(Zf=function(){var t,e;for(Ca&&(t=BT.domain)&&t.exit();Eu;){e=Eu.fn,Eu=Eu.next;try{e()}catch(n){throw Eu?gl():Ld=void 0,n}}Ld=void 0,t&&t.enter()},Ez||Ca||Zvt||!OT||!kT?!Xvt&&$0&&$0.resolve?((l4=$0.resolve(void 0)).constructor=$0,AT=jp(l4.then,l4),gl=function(){AT(Zf)}):Ca?gl=function(){BT.nextTick(Zf)}:(c4=jp(c4,et),gl=function(){c4(Zf)}):(u4=!0,s4=kT.createTextNode(""),new OT(Zf).observe(s4,{characterData:!0}),gl=function(){s4.data=u4=!u4}));var f4,FT,Sz,TT,xz=Cz||function(t){var e={fn:t,next:void 0};Ld&&(Ld.next=e),Eu||(Eu=e,gl()),Ld=e},Qvt=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)},eS={f:function(t){return new Qvt(t)}},K3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},t1t=typeof window=="object",Az=Dz.set,e1t=$e("species"),ei="Promise",PT=dr.getterFor(ei),n1t=dr.set,r1t=dr.getterFor(ei),gu=P1&&P1.prototype,xo=P1,Jf=gu,Oz=et.TypeError,Y3=et.document,nS=et.process,Pl=eS.f,o1t=Pl,i1t=!!(Y3&&Y3.createEvent&&et.dispatchEvent),kz=le(et.PromiseRejectionEvent),Bz=!1,Rd=S1(ei,function(){var t=$m(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={})[e1t]=r,!(Bz=n.then(function(){})instanceof r)||!e&&t1t&&!kz}),a1t=Rd||!pz(function(t){xo.all(t).catch(function(){})}),_z=function(t){var e;return!(!he(t)||!le(e=t.then))&&e},rS=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,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&s1t(t),t.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Oz("Promise-chain cycle")):(u=_z(a))?re(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&u1t(t)})}},Fz=function(t,e,n){var r,o;i1t?((r=Y3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),et.dispatchEvent(r)):r={promise:e,reason:n},!kz&&(o=et["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},u1t=function(t){re(Az,et,function(){var e,n=t.facade,r=t.value;if(jT(t)&&(e=K3(function(){Ca?nS.emit("unhandledRejection",r,n):Fz("unhandledrejection",n,r)}),t.rejection=Ca||jT(t)?2:1,e.error))throw e.value})},jT=function(t){return t.rejection!==1&&!t.parent},s1t=function(t){re(Az,et,function(){var e=t.facade;Ca?nS.emit("rejectionHandled",e):Fz("rejectionhandled",e,t.value)})},El=function(t,e,n){return function(r){t(e,r,n)}},jl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,rS(t,!0))},X3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Oz("Promise can't be resolved itself");var r=_z(e);r?xz(function(){var o={done:!1};try{re(r,e,El(X3,o,t),El(jl,o,t))}catch(i){jl(o,i,t)}}):(t.value=e,t.state=1,rS(t,!1))}catch(o){jl({done:!1},o,t)}}};if(Rd&&(Jf=(xo=function(t){JC(this,Jf),La(t),re(f4,this);var e=PT(this);try{t(El(X3,e),El(jl,e))}catch(n){jl(e,n)}}).prototype,(f4=function(t){n1t(this,{type:ei,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=_1(Jf,{then:function(t,e){var n=r1t(this),r=n.reactions,o=Pl(az(this,xo));return o.ok=!le(t)||t,o.fail=le(e)&&e,o.domain=Ca?nS.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&rS(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),FT=function(){var t=new f4,e=PT(t);this.promise=t,this.resolve=El(X3,e),this.reject=El(jl,e)},eS.f=Pl=function(t){return t===xo||t===Sz?new FT(t):o1t(t)},le(P1)&&gu!==Object.prototype)){TT=gu.then,Bz||(Ir(gu,"then",function(t,e){var n=this;return new xo(function(r,o){re(TT,n,r,o)}).then(t,e)},{unsafe:!0}),Ir(gu,"catch",Jf.catch,{unsafe:!0}));try{delete gu.constructor}catch{}uc&&uc(gu,Jf)}So({global:!0,wrap:!0,forced:Rd},{Promise:xo}),B1(xo,ei,!1),function(t){var e=ds("Promise"),n=vi.f;Io&&e&&!e[DT]&&n(e,DT,{configurable:!0,get:function(){return this}})}(),Sz=ds(ei),So({target:ei,stat:!0,forced:Rd},{reject:function(t){var e=Pl(this);return re(e.reject,void 0,t),e.promise}}),So({target:ei,stat:!0,forced:Rd},{resolve:function(t){return function(e,n){if(dn(e),he(n)&&n.constructor===e)return n;var r=eS.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),So({target:ei,stat:!0,forced:a1t},{all:function(t){var e=this,n=Pl(e),r=n.resolve,o=n.reject,i=K3(function(){var a=La(e.resolve),u=[],s=0,l=1;F1(t,function(c){var f=s++,d=!1;l++,re(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Pl(e),r=n.reject,o=K3(function(){var i=La(e.resolve);F1(t,function(a){re(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var l1t=Ch.PROPER,Z3=RegExp.prototype,Tz=Z3.toString,c1t=Tt(ez),f1t=ve(function(){return Tz.call({source:"a",flags:"b"})!="/a/b"}),d1t=l1t&&Tz.name!="toString";(f1t||d1t)&&Ir(RegExp.prototype,"toString",function(){var t=dn(this),e=Da(t.source),n=t.flags;return"/"+e+"/"+Da(n===void 0&&kp(Z3,t)&&!("flags"in Z3)?c1t(t):n)},{unsafe:!0});var p1t=Ch.EXISTS,h1t=vi.f,Pz=Function.prototype,g1t=Tt(Pz.toString),jz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,v1t=Tt(jz.exec);Io&&!p1t&&h1t(Pz,"name",{configurable:!0,get:function(){try{return v1t(jz,g1t(this))[1]}catch{return""}}});var IT=new WeakMap;function Iz(t){return t.getMenuConfig("uploadImage")}function m1t(t,e){return KC(this,void 0,void 0,function(){return YC(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 y1t(t,e){return KC(this,void 0,void 0,function(){var n,r,o,i;return YC(this,function(a){switch(a.label){case 0:return n=function(u){var s=IT.get(u);if(s!=null)return s;var l=Iz(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=hN(O1(O1({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,function(z,U,$){return Ru(u,z,U,$)}),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(z){var U=z.url,$=U===void 0?"":U,q=z.alt,K=q===void 0?"":q,I=z.href;Ru(u,$,K,I===void 0?"":I)});else{var D=w.url,S=D===void 0?"":D,C=w.alt,A=C===void 0?"":C,_=w.href;Ru(u,S,A,_===void 0?"":_)}c(m,g)}else d(m,g)},onError:function(m,g,y){v(m,g,y)}})),IT.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 KC(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return YC(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=Iz(t),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=cvt(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,m1t(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,m,g){return Ru(t,v,m,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,y1t(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.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 b1t=Tt([].join),w1t=TC!=Object,E1t=bz("join",",");So({target:"Array",proto:!0,forced:w1t||!E1t},{join:function(t){return b1t(Ua(this),t===void 0?",":t)}}),_r&&(B.fn.append=_r),To&&(B.fn.on=To),Gl&&(B.fn.remove=Gl),Fo&&(B.fn.val=Fo),RA&&(B.fn.click=RA),Hl&&(B.fn.hide=Hl);var D1t=function(){function t(){this.title=tt("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 ym(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,d){return Ru(e,c,f,d)});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}(),C1t={menus:[{key:"uploadImage",factory:function(){return new D1t},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(ym(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),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?Nz(t,o):e(r)}},n}};Yn("en",{highLightModule:{selectLang:"Language"}}),Yn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var j1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oS(t){var e={exports:{}};return t(e,e.exports),e.exports}var Wi,Eg,H0=function(t){return t&&t.Math==Math&&t},Nt=H0(typeof globalThis=="object"&&globalThis)||H0(typeof window=="object"&&window)||H0(typeof self=="object"&&self)||H0(typeof j1=="object"&&j1)||function(){return this}()||Function("return this")(),S1t=Object.defineProperty,iS=function(t,e){try{S1t(Nt,t,{value:e,configurable:!0,writable:!0})}catch{Nt[t]=e}return e},Sa=Nt["__core-js_shared__"]||iS("__core-js_shared__",{}),aS=oS(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:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Lz=Function.prototype,J3=Lz.bind,Q3=Lz.call,x1t=J3&&J3.bind(Q3),te=J3?function(t){return t&&x1t(Q3,t)}:function(t){return t&&function(){return Q3.apply(t,arguments)}},A1t=Nt.TypeError,sc=function(t){if(t==null)throw A1t("Can't call method on "+t);return t},O1t=Nt.Object,uS=function(t){return O1t(sc(t))},k1t=te({}.hasOwnProperty),kr=Object.hasOwn||function(t,e){return k1t(uS(t),e)},B1t=0,_1t=Math.random(),F1t=te(1 .toString),Rz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+F1t(++B1t+_1t,36)},Nn=function(t){return typeof t=="function"},T1t=function(t){return Nn(t)?t:void 0},Ah=function(t,e){return arguments.length<2?T1t(Nt[t]):Nt[t]&&Nt[t][e]},d4=Ah("navigator","userAgent")||"",NT=Nt.process,LT=Nt.Deno,RT=NT&&NT.versions||LT&&LT.version,MT=RT&&RT.v8;MT&&(Eg=(Wi=MT.split("."))[0]>0&&Wi[0]<4?1:+(Wi[0]+Wi[1])),!Eg&&d4&&(!(Wi=d4.match(/Edge\/(\d+)/))||Wi[1]>=74)&&(Wi=d4.match(/Chrome\/(\d+)/))&&(Eg=+Wi[1]);var zT=Eg,ln=function(t){try{return!!t()}catch{return!0}},t5=!!Object.getOwnPropertySymbols&&!ln(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&zT&&zT<41}),sS=t5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qf=aS("wks"),Xu=Nt.Symbol,$T=Xu&&Xu.for,P1t=sS?Xu:Xu&&Xu.withoutSetter||Rz,Wa=function(t){if(!kr(Qf,t)||!t5&&typeof Qf[t]!="string"){var e="Symbol."+t;t5&&kr(Xu,t)?Qf[t]=Xu[t]:Qf[t]=sS&&$T?$T(e):P1t(e)}return Qf[t]},Mz={};Mz[Wa("toStringTag")]="z";var lS=String(Mz)==="[object z]",No=!ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ao=function(t){return typeof t=="object"?t!==null:Nn(t)},e5=Nt.document,j1t=Ao(e5)&&Ao(e5.createElement),cS=function(t){return j1t?e5.createElement(t):{}},zz=!No&&!ln(function(){return Object.defineProperty(cS("div"),"a",{get:function(){return 7}}).a!=7}),I1t=Nt.String,N1t=Nt.TypeError,eo=function(t){if(Ao(t))return t;throw N1t(I1t(t)+" is not an object")},td=Function.prototype.call,un=td.bind?td.bind(td):function(){return td.apply(td,arguments)},$z=te({}.isPrototypeOf),L1t=Nt.Object,p4=sS?function(t){return typeof t=="symbol"}:function(t){var e=Ah("Symbol");return Nn(e)&&$z(e.prototype,L1t(t))},R1t=Nt.String,Hz=function(t){try{return R1t(t)}catch{return"Object"}},M1t=Nt.TypeError,Vz=function(t){if(Nn(t))return t;throw M1t(Hz(t)+" is not a function")},Uz=function(t,e){var n=t[e];return n==null?void 0:Vz(n)},z1t=Nt.TypeError,$1t=Nt.TypeError,H1t=Wa("toPrimitive"),fS=function(t){var e=function(n,r){if(!Ao(n)||p4(n))return n;var o,i=Uz(n,H1t);if(i){if(o=un(i,n,r),!Ao(o)||p4(o))return o;throw $1t("Can't convert object to primitive value")}return function(a,u){var s,l;if(Nn(s=a.toString)&&!Ao(l=un(s,a))||Nn(s=a.valueOf)&&!Ao(l=un(s,a)))return l;throw z1t("Can't convert object to primitive value")}(n)}(t,"string");return p4(e)?e:e+""},V1t=Nt.TypeError,HT=Object.defineProperty,Um={f:No?HT:function(t,e,n){if(eo(t),e=fS(e),eo(n),zz)try{return HT(t,e,n)}catch{}if("get"in n||"set"in n)throw V1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},dS=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},lc=No?function(t,e,n){return Um.f(t,e,dS(1,n))}:function(t,e,n){return t[e]=n,t},U1t=te(Function.toString);Nn(Sa.inspectSource)||(Sa.inspectSource=function(t){return U1t(t)});var I1,Md,N1,pS=Sa.inspectSource,VT=Nt.WeakMap,W1t=Nn(VT)&&/native code/.test(pS(VT)),UT=aS("keys"),Wz=function(t){return UT[t]||(UT[t]=Rz(t))},hS={},n5=Nt.TypeError,G1t=Nt.WeakMap;if(W1t||Sa.state){var cu=Sa.state||(Sa.state=new G1t),q1t=te(cu.get),WT=te(cu.has),K1t=te(cu.set);I1=function(t,e){if(WT(cu,t))throw new n5("Object already initialized");return e.facade=t,K1t(cu,t,e),e},Md=function(t){return q1t(cu,t)||{}},N1=function(t){return WT(cu,t)}}else{var al=Wz("state");hS[al]=!0,I1=function(t,e){if(kr(t,al))throw new n5("Object already initialized");return e.facade=t,lc(t,al,e),e},Md=function(t){return kr(t,al)?t[al]:{}},N1=function(t){return kr(t,al)}}var r5={set:I1,get:Md,has:N1,enforce:function(t){return N1(t)?Md(t):I1(t,{})},getterFor:function(t){return function(e){var n;if(!Ao(e)||(n=Md(e)).type!==t)throw n5("Incompatible receiver, "+t+" required");return n}}},Gz=Function.prototype,Y1t=No&&Object.getOwnPropertyDescriptor,h4=kr(Gz,"name"),qz={EXISTS:h4,PROPER:h4&&(function(){}).name==="something",CONFIGURABLE:h4&&(!No||No&&Y1t(Gz,"name").configurable)},Np=oS(function(t){var e=qz.CONFIGURABLE,n=r5.get,r=r5.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Nn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kr(u,"name")||e&&u.name!==p)&&lc(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Nt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:lc(i,a,u)):f?i[a]=u:iS(a,u)})(Function.prototype,"toString",function(){return Nn(this)&&n(this).source||pS(this)})}),X1t=te({}.toString),Z1t=te("".slice),xa=function(t){return Z1t(X1t(t),8,-1)},J1t=Wa("toStringTag"),Q1t=Nt.Object,tmt=xa(function(){return arguments}())=="Arguments",gS=lS?xa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Q1t(t),J1t))=="string"?n:tmt?xa(e):(r=xa(e))=="Object"&&Nn(e.callee)?"Arguments":r},emt=lS?{}.toString:function(){return"[object "+gS(this)+"]"};lS||Np(Object.prototype,"toString",emt,{unsafe:!0});var GT,qT={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},g4=cS("span").classList,KT=g4&&g4.constructor&&g4.constructor.prototype,nmt=KT===Object.prototype?void 0:KT,YT=te(te.bind),v4=Nt.Object,rmt=te("".split),vS=ln(function(){return!v4("z").propertyIsEnumerable(0)})?function(t){return xa(t)=="String"?rmt(t,""):v4(t)}:v4,omt=Math.ceil,imt=Math.floor,mS=function(t){var e=+t;return e!=e||e===0?0:(e>0?imt:omt)(e)},amt=Math.min,Kz=function(t){return t>0?amt(mS(t),9007199254740991):0},yS=function(t){return Kz(t.length)},XT=Array.isArray||function(t){return xa(t)=="Array"},Yz=function(){},umt=[],Xz=Ah("Reflect","construct"),bS=/^\s*(?:class|function)\b/,smt=te(bS.exec),lmt=!bS.exec(Yz),ed=function(t){if(!Nn(t))return!1;try{return Xz(Yz,umt,t),!0}catch{return!1}},Zz=!Xz||ln(function(){var t;return ed(ed.call)||!ed(Object)||!ed(function(){t=!0})||t})?function(t){if(!Nn(t))return!1;switch(gS(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lmt||!!smt(bS,pS(t))}:ed,cmt=Wa("species"),ZT=Nt.Array,fmt=function(t,e){return new(function(n){var r;return XT(n)&&(r=n.constructor,(Zz(r)&&(r===ZT||XT(r.prototype))||Ao(r)&&(r=r[cmt])===null)&&(r=void 0)),r===void 0?ZT:r}(t))(e===0?0:e)},JT=te([].push),Gi=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 d,p,v=uS(s),m=vS(v),g=function(D,S){return Vz(D),S===void 0?D:YT?YT(D,S):function(){return D.apply(S,arguments)}}(l,c),y=yS(m),h=0,b=f||fmt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:JT(w,d)}else switch(t){case 4:return!1;case 7:JT(w,d)}return i?-1:r||o?o:w}},dmt=[Gi(0),Gi(1),Gi(2),Gi(3),Gi(4),Gi(5),Gi(6),Gi(7)][0],m4=(GT=[].forEach)&&ln(function(){GT.call(null,function(){throw 1},1)})?[].forEach:function(t){return dmt(this,t,arguments.length>1?arguments[1]:void 0)},Jz=function(t){if(t&&t.forEach!==m4)try{lc(t,"forEach",m4)}catch{t.forEach=m4}};for(var y4 in qT)qT[y4]&&Jz(Nt[y4]&&Nt[y4].prototype);Jz(nmt);var QT={}.propertyIsEnumerable,tP=Object.getOwnPropertyDescriptor,Qz={f:tP&&!QT.call({1:2},1)?function(t){var e=tP(this,t);return!!e&&e.enumerable}:QT},Wm=function(t){return vS(sc(t))},eP=Object.getOwnPropertyDescriptor,t$={f:No?eP:function(t,e){if(t=Wm(t),e=fS(e),zz)try{return eP(t,e)}catch{}if(kr(t,e))return dS(!un(Qz.f,t,e),t[e])}},pmt=Math.max,hmt=Math.min,o5=function(t,e){var n=mS(t);return n<0?pmt(n+e,0):hmt(n,e)},gmt=function(t){return function(e,n,r){var o,i=Wm(e),a=yS(i),u=o5(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}},vmt=gmt(!1),nP=te([].push),e$=function(t,e){var n,r=Wm(t),o=0,i=[];for(n in r)!kr(hS,n)&&kr(r,n)&&nP(i,n);for(;e.length>o;)kr(r,n=e[o++])&&(~vmt(i,n)||nP(i,n));return i},L1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mmt=L1.concat("length","prototype"),ymt={f:Object.getOwnPropertyNames||function(t){return e$(t,mmt)}},n$={f:Object.getOwnPropertySymbols},bmt=te([].concat),wmt=Ah("Reflect","ownKeys")||function(t){var e=ymt.f(eo(t)),n=n$.f;return n?bmt(e,n(t)):e},Emt=function(t,e){for(var n=wmt(e),r=Um.f,o=t$.f,i=0;i<n.length;i++){var a=n[i];kr(t,a)||r(t,a,o(e,a))}},Dmt=/#|\.prototype\./,Oh=function(t,e){var n=Smt[Cmt(t)];return n==Amt||n!=xmt&&(Nn(e)?ln(e):!!e)},Cmt=Oh.normalize=function(t){return String(t).replace(Dmt,".").toLowerCase()},Smt=Oh.data={},xmt=Oh.NATIVE="N",Amt=Oh.POLYFILL="P",Omt=Oh,kmt=t$.f,Gm=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]||iS(u,{}):(Nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=kmt(n,r))&&a.value:n[r],!Omt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Emt(i,o)}(t.sham||o&&o.sham)&&lc(i,"sham",!0),Np(n,r,i,t)}},Dg=Object.keys||function(t){return e$(t,L1)},ul=Object.assign,rP=Object.defineProperty,Bmt=te([].concat),oP=!ul||ln(function(){if(No&&ul({b:1},ul(rP({},"a",{enumerable:!0,get:function(){rP(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}),ul({},t)[n]!=7||Dg(ul({},e)).join("")!=r})?function(t,e){for(var n=uS(t),r=arguments.length,o=1,i=n$.f,a=Qz.f;r>o;)for(var u,s=vS(arguments[o++]),l=i?Bmt(Dg(s),i(s)):Dg(s),c=l.length,f=0;c>f;)u=l[f++],No&&!un(a,s,u)||(n[u]=s[u]);return n}:ul;Gm({target:"Object",stat:!0,forced:Object.assign!==oP},{assign:oP});var iP=oS(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 g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(y,h){var b,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var D in b={},h[w]=b,y)y.hasOwnProperty(D)&&(b[D]=g(y[D],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach(function(S,C){b[C]=g(S,h)}),b);default:return y}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var b="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var b in y)h[b]=y[b];return h},insertBefore:function(g,y,h,b){var w=(b=b||a.languages)[g],D={};for(var S in w)if(w.hasOwnProperty(S)){if(S==y)for(var C in h)h.hasOwnProperty(C)&&(D[C]=h[C]);h.hasOwnProperty(S)||(D[S]=w[S])}var A=b[g];return b[g]=D,a.languages.DFS(a.languages,function(_,z){z===A&&_!=g&&(this[_]=D)}),D},DFS:function g(y,h,b,w){w=w||{};var D=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){h.call(y,S,y[S],b||S);var C=y[S],A=a.util.type(C);A!=="Object"||w[D(C)]?A!=="Array"||w[D(C)]||(w[D(C)]=!0,g(C,h,S,w)):(w[D(C)]=!0,g(C,h,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var b={callback:h,container:g,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,D=0;w=b.elements[D++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(g,y,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var D=g.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var S={element:g,language:b,grammar:w,code:g.textContent};function C(_){S.highlightedCode=_,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),h&&h.call(S.element)}if(a.hooks.run("before-sanity-check",S),(D=S.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(h&&h.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var A=new Worker(a.filename);A.onmessage=function(_){C(_.data)},A.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else C(a.highlight(S.code,S.grammar,S.language));else C(a.util.encode(S.code))},highlight:function(g,y,h){var b={code:g,grammar:y,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(g,y){var h=y.rest;if(h){for(var b in h)y[b]=h[b];delete y.rest}var w=new c;return f(w,w.head,g),l(g,w,y,w.head,0),function(D){for(var S=[],C=D.head.next;C!==D.tail;)S.push(C.value),C=C.next;return S}(w)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(g,y,h,b){this.type=g,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(g,y,h,b){g.lastIndex=y;var w=g.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(g,y,h,b,w,D){for(var S in h)if(h.hasOwnProperty(S)&&h[S]){var C=h[S];C=Array.isArray(C)?C:[C];for(var A=0;A<C.length;++A){if(D&&D.cause==S+","+A)return;var _=C[A],z=_.inside,U=!!_.lookbehind,$=!!_.greedy,q=_.alias;if($&&!_.pattern.global){var K=_.pattern.toString().match(/[imsuy]*$/)[0];_.pattern=RegExp(_.pattern.source,K+"g")}for(var I=_.pattern||_,L=b.next,X=w;L!==y.tail&&!(D&&X>=D.reach);X+=L.value.length,L=L.next){var lt=L.value;if(y.length>g.length)return;if(!(lt instanceof u)){var it,at=1;if($){if(!(it=s(I,X,g,U)))break;var k=it.index,x=it.index+it[0].length,T=X;for(T+=L.value.length;k>=T;)T+=(L=L.next).value.length;if(X=T-=L.value.length,L.value instanceof u)continue;for(var H=L;H!==y.tail&&(T<x||typeof H.value=="string");H=H.next)at++,T+=H.value.length;at--,lt=g.slice(X,T),it.index-=X}else if(!(it=s(I,0,lt,U)))continue;k=it.index;var Y=it[0],W=lt.slice(0,k),ut=lt.slice(k+Y.length),gt=X+lt.length;D&&gt>D.reach&&(D.reach=gt);var mt=L.prev;if(W&&(mt=f(y,mt,W),X+=W.length),d(y,mt,at),L=f(y,mt,new u(S,z?a.tokenize(Y,z):Y,q,Y)),ut&&f(y,L,ut),at>1){var ot={cause:S+","+A,reach:gt};l(g,y,h,L.prev,X,ot),D&&ot.reach>D.reach&&(D.reach=ot.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,g.length++,w}function d(g,y,h){for(var b=y.next,w=0;w<h&&b!==g.tail;w++)b=b.next;y.next=b,b.prev=y,g.length-=w}if(n.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(A){b+=g(A,h)}),b}var w={type:y.type,content:g(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},D=y.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),a.hooks.run("wrap",w);var S="";for(var C in w.attributes)S+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(g){var y=JSON.parse(g.data),h=y.language,b=y.code,w=y.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var m=document.readyState;m==="loading"||m==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
  153. * Prism: Lightweight, robust, elegant syntax highlighting
  154. *
  155. * @license MIT <https://opensource.org/licenses/MIT>
  156. * @author Lea Verou <https://lea.verou.me>
  157. * @namespace
  158. * @public
  159. */t.exports&&(t.exports=e),j1!==void 0&&(j1.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,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<"u"){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…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=n[p]||p}u(c,d),u(l,d);var v=e.plugins.autoloader;v&&v.loadLanguages(d);var m=new XMLHttpRequest;m.open("GET",f,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?(l.setAttribute(r,"loaded"),c.textContent=m.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),m.status>=400?c.textContent="✖ Error "+m.status+" while fetching file: "+m.statusText:c.textContent="✖ Error: File does not exist or is empty"))},m.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],d=!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--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}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(/&amp;/,"&"))}),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(x,T){return x.replace(/<<(\d+)>>/g,function(H,Y){return"(?:"+T[+Y]+")"})}function n(x,T,H){return RegExp(e(x,T),"")}function r(x,T){for(var H=0;H<T;H++)x=x.replace(/<<self>>/g,function(){return"(?:"+x+")"});return x.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(x){return"\\b(?:"+x.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[m,p]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),D=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,y,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,z=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[z]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:RegExp(A),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),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,[S,d,m]),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,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,p]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(p),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,g,m,S,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),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 U=_+"|"+A,$=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[U]),q=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$]),2),K=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,I=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[K,I]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[K]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var L=/:[^}\r\n]+/.source,X=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[X,L]),it=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[U]),2),at=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[it,L]);function k(x,T){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[x]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[T,L]),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,[lt]),lookbehind:!0,greedy:!0,inside:k(lt,X)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[at]),lookbehind:!0,greedy:!0,inside:k(at,it)}]})}(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 d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var m=v.content[1],g=v.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var y=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var m=t.languages[c];if(m)l.content=t.highlight(function(y){var h=y.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var D;return(w=w.toLowerCase())[0]==="#"?(D=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(D)):u[w]||b})}(l.content),m,c);else if(c&&c!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,t.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(g);y&&(y.innerHTML=t.highlight(y.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(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var _mt=["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 r$(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+r$(n)},0)}var V0,Fmt=Nt.String,ui=function(t){if(gS(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Fmt(t)},o$=function(){var t=eo(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},wS=Nt.RegExp,i5=ln(function(){var t=wS("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Tmt=i5||ln(function(){return!wS("a","y").sticky}),i$={BROKEN_CARET:i5||ln(function(){var t=wS("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Tmt,UNSUPPORTED_Y:i5},Pmt=No?Object.defineProperties:function(t,e){eo(t);for(var n,r=Wm(e),o=Dg(e),i=o.length,a=0;i>a;)Um.f(t,n=o[a++],r[n]);return t},jmt=Ah("document","documentElement"),a$=Wz("IE_PROTO"),b4=function(){},u$=function(t){return"<script>"+t+"<\/script>"},aP=function(t){t.write(u$("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cg=function(){try{V0=new ActiveXObject("htmlfile")}catch{}var t,e;Cg=typeof document<"u"?document.domain&&V0?aP(V0):((e=cS("iframe")).style.display="none",jmt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(u$("document.F=Object")),t.close(),t.F):aP(V0);for(var n=L1.length;n--;)delete Cg.prototype[L1[n]];return Cg()};hS[a$]=!0;var uP,w4,Imt=Object.create||function(t,e){var n;return t!==null?(b4.prototype=eo(t),n=new b4,b4.prototype=null,n[a$]=t):n=Cg(),e===void 0?n:Pmt(n,e)},Nmt=Nt.RegExp,Lmt=ln(function(){var t=Nmt(".","s");return!(t.dotAll&&t.exec(`
  160. `)&&t.flags==="s")}),Rmt=Nt.RegExp,Mmt=ln(function(){var t=Rmt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),zmt=r5.get,$mt=aS("native-string-replace",String.prototype.replace),R1=RegExp.prototype.exec,a5=R1,Hmt=te("".charAt),Vmt=te("".indexOf),Umt=te("".replace),E4=te("".slice),D4=(w4=/b*/g,un(R1,uP=/a/,"a"),un(R1,w4,"a"),uP.lastIndex!==0||w4.lastIndex!==0),sP=i$.BROKEN_CARET,C4=/()??/.exec("")[1]!==void 0;(D4||C4||sP||Lmt||Mmt)&&(a5=function(t){var e,n,r,o,i,a,u,s=this,l=zmt(s),c=ui(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=un(a5,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=sP&&s.sticky,v=un(o$,s),m=s.source,g=0,y=c;if(p&&(v=Umt(v,"y",""),Vmt(v,"g")===-1&&(v+="g"),y=E4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Hmt(c,s.lastIndex-1)!==`
  161. `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),C4&&(n=new RegExp("^"+m+"$(?!\\s)",v)),D4&&(r=s.lastIndex),o=un(R1,p?n:s,y),p?o?(o.input=E4(o.input,g),o[0]=E4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:D4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),C4&&o&&o.length>1&&un($mt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Imt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Lp=a5;Gm({target:"RegExp",proto:!0,forced:/./.exec!==Lp},{exec:Lp});var ES=Function.prototype,lP=ES.apply,Wmt=ES.bind,cP=ES.call,Gmt=typeof Reflect=="object"&&Reflect.apply||(Wmt?cP.bind(lP):function(){return cP.apply(lP,arguments)}),qmt=Wa("species"),S4=RegExp.prototype,Kmt=Wa("match"),Ymt=Nt.TypeError,Xmt=Wa("species"),Zmt=te("".charAt),fP=te("".charCodeAt),Jmt=te("".slice),Qmt=function(t){return function(e,n){var r,o,i=ui(sc(e)),a=mS(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=fP(i,a))<55296||r>56319||a+1===u||(o=fP(i,a+1))<56320||o>57343?t?Zmt(i,a):r:t?Jmt(i,a,a+2):o-56320+(r-55296<<10)+65536}},tyt=Qmt(!0),eyt=function(t,e,n){return e+(n?tyt(t,e).length:1)},nyt=Nt.Array,ryt=Math.max,dP=function(t,e,n){for(var r,o,i,a,u=yS(t),s=o5(e,u),l=o5(n===void 0?u:n,u),c=nyt(ryt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=fS(o))in r?Um.f(r,a,dS(0,i)):r[a]=i;return c.length=f,c},oyt=Nt.TypeError,pP=function(t,e){var n=t.exec;if(Nn(n)){var r=un(n,t,e);return r!==null&&eo(r),r}if(xa(t)==="RegExp")return un(Lp,t,e);throw oyt("RegExp#exec called on incompatible receiver")},sl=i$.UNSUPPORTED_Y,iyt=Math.min,s$=[].push,ayt=te(/./.exec),ll=te(s$),nd=te("".slice);(function(t,e,n,r){var o=Wa(t),i=!ln(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ln(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[qmt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=te(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var m,g,y=ui(sc(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!Ao(m=p)||!((g=m[Kmt])!==void 0?g:xa(m)=="RegExp"))return un(c,y,p,h);for(var b,w,D,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),A=0,_=new RegExp(p.source,C+"g");(b=un(Lp,_,y))&&!((w=_.lastIndex)>A&&(ll(S,nd(y,A,b.index)),b.length>1&&b.index<y.length&&Gmt(s$,S,dP(b,1)),D=b[0].length,A=w,S.length>=h));)_.lastIndex===b.index&&_.lastIndex++;return A===y.length?!D&&ayt(_,"")||ll(S,""):ll(S,nd(y,A)),S.length>h?dP(S,0,h):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:un(c,this,p,v)}:c,[function(p,v){var m=sc(this),g=p==null?void 0:Uz(p,l);return g?un(g,p,m,v):un(d,ui(m),p,v)},function(p,v){var m=eo(this),g=ui(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=function(q,K){var I,L=eo(q).constructor;return L===void 0||(I=eo(L)[Xmt])==null?K:function(X){if(Zz(X))return X;throw Ymt(Hz(X)+" is not a constructor")}(I)}(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(sl?"g":"y"),D=new h(sl?"^(?:"+m.source+")":m,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return pP(D,g)===null?[g]:[];for(var C=0,A=0,_=[];A<g.length;){D.lastIndex=sl?0:A;var z,U=pP(D,sl?nd(g,A):g);if(U===null||(z=iyt(Kz(D.lastIndex+(sl?A:0)),g.length))===C)A=eyt(g,A,b);else{if(ll(_,nd(g,C,A)),_.length===S)return _;for(var $=1;$<=U.length-1;$++)if(ll(_,U[$]),_.length===S)return _;A=C=z}}return ll(_,nd(g,C)),_}]}(o,""[t],function(l,c,f,d,p){var v=te(l),m=c.exec;return m===Lp||m===S4.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Np(String.prototype,t,s[0]),Np(S4,o,s[1])}r&&lc(S4[o],"sham",!0)})("split",0,!!ln(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),sl),Gm({global:!0},{globalThis:Nt}),Br&&(B.fn.attr=Br);var uyt=qz.PROPER,u5=RegExp.prototype,l$=u5.toString,syt=te(o$),lyt=ln(function(){return l$.call({source:"a",flags:"b"})!="/a/b"}),cyt=uyt&&l$.name!="toString";(lyt||cyt)&&Np(RegExp.prototype,"toString",function(){var t=eo(this),e=ui(t.source),n=t.flags;return"/"+e+"/"+ui(n===void 0&&$z(u5,t)&&!("flags"in u5)?syt(t):n)},{unsafe:!0});var fyt=function(){function t(){this.title=tt("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 O.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=O.getSelectedNodeByType(e,"code");if(n==null)return null;var r=O.getParentNode(e,n);return ft.isElement(r)?r.type!=="pre"?null:n:null},t}(),dyt={renderStyle:function(t,e){var n=t,r=e,o="";return _mt.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)||O.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 fyt},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>"}}]},pyt=/"/g,hyt=te("".replace);Gm({target:"String",proto:!0,forced:ln(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="'+hyt(ui(e),pyt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var c$=function(t){var e,n,r,o=function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,D,S=b.call(y),C=[];try{for(;(h===void 0||h-- >0)&&!(w=S.next()).done;)C.push(w.value)}catch(A){D={error:A}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(D)throw D.error}}return C}(t,2),i=o[0],a=o[1],u=[],s=function(y){if(!st.isText(y))return null;var h=O.getParentNode(null,y);if(h&&O.getNodeType(h)==="code"){var b=O.getParentNode(null,h);if(b&&O.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(y,h){if(!h)return[];var b=iP.languages[h];return b?iP.tokenize(y.text,b):[]}(i,c),d=0;try{for(var p=function(y){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&y[h],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=p.next();!v.done;v=p.next()){var m=v.value,g=d+r$(m);typeof m!="string"&&u.push(((r={})[m.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(y){e={error:y}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}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)},on=function(){function t(){throw new Error(`不能实例化
  162. 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=Dr(Dr({},u),o||{});if(ip[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");ip[i]=a,function(l,c){c!=null&&(II[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;aN[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){e6.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;NI[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){KE.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){tN.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Ev[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){PD.push(n)})(e)},t.registerModule=function(e){vu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
  163. Copyright (c) Microsoft Corporation.
  164. Permission to use, copy, modify, and/or distribute this software for any
  165. purpose with or without fee is hereby granted.
  166. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  167. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  168. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  169. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  170. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  171. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  172. PERFORMANCE OF THIS SOFTWARE.
  173. ***************************************************************************** */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 on.registerMenu(c)}),n&&n.forEach(function(c){return on.registerRenderElem(c)}),r&&on.registerRenderStyle(r),o&&o.forEach(function(c){return on.registerElemToHtml(c)}),i&&on.registerStyleToHtml(i),a&&a.forEach(function(c){return on.registerPreParseHtml(c)}),u&&u.forEach(function(c){return on.registerParseElemHtml(c)}),s&&on.registerParseStyleHtml(s),l&&on.registerPlugin(l)}wut.forEach(function(t){return vu(t)}),vu(Zlt),vu(Cdt),vu(T0t),vu(C1t),vu(dyt);var f$='<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>',d$={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"]}},gyt={hoverbarKeys:Oe(Oe({},d$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};on.setEditorConfig(Oe(Oe({},gyt),{decorate:c$}));var vyt={hoverbarKeys:d$};on.setSimpleEditorConfig(Oe(Oe({},vyt),{decorate:c$}));var myt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:tt("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:tt("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:f$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};on.setToolbarConfig(myt);var yyt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:f$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function byt(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"?on.simpleEditorConfig:on.editorConfig,c=Oe(Oe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return Ctt({selector:n,config:Oe(Oe(Oe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:on.plugins})}function wyt(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"?on.simpleToolbarConfig:on.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(g,y){return rN(g,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=Dr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),m=new ktt(f,v);return SD.set(m,l),sm.set(l,m),m}(n,{selector:e,config:Oe(Oe({},u),o)});return s}on.setSimpleToolbarConfig(yyt);var Eyt=Object.defineProperty,Dyt=Object.defineProperties,Cyt=Object.getOwnPropertyDescriptors,hP=Object.getOwnPropertySymbols,Syt=Object.prototype.hasOwnProperty,xyt=Object.prototype.propertyIsEnumerable,gP=(t,e,n)=>e in t?Eyt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ayt=(t,e)=>{for(var n in e||(e={}))Syt.call(e,n)&&gP(t,n,e[n]);if(hP)for(var n of hP(e))xyt.call(e,n)&&gP(t,n,e[n]);return t},Oyt=(t,e)=>Dyt(t,Cyt(e));function qi(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
  174. Please use '@${t}' event instead of props`,e}var p$=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const kyt=s5({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=Pn(null),r=vP(null),o=Pn(""),i=()=>{if(!n.value)return;const u=g$(t.defaultContent);byt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:Oyt(Ayt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=qi("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=qi("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=qi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=qi("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=qi("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=qi("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=qi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=qi("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 mP(()=>{i()}),yP(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),Byt={ref:"box",style:{height:"100%"}};function _yt(t,e,n,r,o,i){return po(),Sg("div",Byt,null,512)}var Fyt=p$(kyt,[["render",_yt]]);const Tyt=s5({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=Pn(null),n=r=>{if(e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");O.getToolbar(r)||wyt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return h$(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),Pyt={ref:"selector"};function jyt(t,e,n,r,o,i){return po(),Sg("div",Pyt,null,512)}var Iyt=p$(Tyt,[["render",jyt]]);const Nyt={class:"search bg-white p-3"},Lyt={class:"flex justify-end"},Ryt={class:"inner-toolbar w-11/12 flex justify-between"},Myt={class:"toolbar-btns"},zyt={style:{border:"1px solid #ccc"}},$yt={class:"dialog-footer"},Hyt=s5({__name:"emailtemplate",setup(t){const{t:e}=v$(),n=Pn(!1),r=Pn(!1),o=vP(),i=Pn("default"),a={},u={placeholder:e("place")+"...",readOnly:n.value||r.value};m$(()=>{const I=o.value;I!=null&&I.destroy()});const s=I=>{o.value=I};b$();const l=Pn([]);let c=Pn("");const f=Pn(),d=Pn(!1),p=Pn({name:"",content:"",code:"",enable_status:!1,remark:"",type:"MAIL"}),v=Pn({pid:[{required:!0,message:e("change")+e("superior_template")+"!",trigger:"change"}],name:[{required:!0,message:e("place")+e("template_name")+"!",trigger:"blur"}],content:[{required:!0,message:e("place")+e("template_content")+"!",trigger:"blur"}],code:[{required:!0,message:e("place")+e("template_code")+"!",trigger:"blur"},{pattern:/^[a-zA-Z0-9_]+$/,message:e("template_tips")+"!",trigger:"blur"}]}),m=()=>{c.value=e("template_add"),r.value=!1,n.value=!1,p.value={},p.value.type="MAIL",p.value.enable_status=!1,d.value=!0,Km(()=>{o.value&&(o.value.setHtml(""),o.value.enable())})},g=()=>{f.value.validate(I=>{if(I){const{id:L}=p.value,X={...p.value};o.value&&(X.content=o.value.getHtml()),L?A$(L,X).then(()=>{d.value=!1,Ic.success(e("edit_success")+"!"),q()}):O$(X).then(()=>{d.value=!1,Ic.success(e("created_success")+"!"),q()})}else return Ic.error(e("form_erroe")),!1})},y=(I,L)=>{k$(L.id).then(X=>{Ic.success(e("template_type_success")+"!"),q()})},h=I=>{c.value=e("template_view"),p.value={...I},r.value=!0,n.value=!0,d.value=!0,Km(()=>{o.value&&(o.value.setHtml(p.value.content),o.value.disable())})},b=I=>{c.value=e("template_edit"),r.value=!1,n.value=!1,p.value={...I},p.value.type="MAIL",d.value=!0,Km(()=>{o.value&&(o.value.setHtml(p.value.content),o.value.enable())})},w=I=>{D$.confirm(e("del_info"),e("prompt"),{type:"warning"}).then(()=>{B$(I.id).then(()=>{Ic.success(e("del_success")),q()})}).catch(()=>{})},D=Pn(!1),S=Pn({page_no:1,page_size:10,type:"MAIL"}),C=Pn({}),A=y$({enable_status:"",name:"",code:"",type:"MAIL"}),_=I=>!0,z=I=>{S.value.page_size=I,q()},U=I=>{S.value.page_no=I,q()},$=I=>{Object.assign(S.value,A),S.value.page_no=1,q()},q=()=>{D.value=!0,S$(S.value).then(I=>{D.value=!1,C.value=I}).catch(()=>{D.value=!1})},K=()=>{x$("MAIL").then(I=>{l.value=I})};return yP(d,I=>{I||(n.value=!1,o.value&&o.value.enable())}),mP(()=>{q(),K()}),(I,L)=>{const X=Jn("el-option"),lt=Jn("el-select"),it=Jn("el-form-item"),at=Jn("el-col"),k=Jn("el-input"),x=Jn("el-row"),T=Jn("el-form"),H=Jn("el-button"),Y=Jn("el-table-column"),W=Jn("el-switch"),ut=Jn("el-pagination"),gt=Jn("en-table-layout"),mt=Jn("el-dialog");return po(),Sg(SS,null,[_s("div",Nyt,[Bt(T,{model:A,"label-width":"100px"},{default:Ht(()=>[Bt(x,null,{default:Ht(()=>[Bt(at,{span:5},{default:Ht(()=>[Bt(it,{label:I.$t("warehousing_state")},{default:Ht(()=>[Bt(lt,{modelValue:A.enable_status,"onUpdate:modelValue":L[0]||(L[0]=ot=>A.enable_status=ot),clearable:"",placeholder:I.$t("place")+I.$t("warehousing_state")},{default:Ht(()=>[Bt(X,{label:"启用",value:!0}),Bt(X,{label:"禁用",value:!1})]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),Bt(at,{span:5},{default:Ht(()=>[Bt(it,{label:I.$t("template_name")},{default:Ht(()=>[Bt(k,{modelValue:A.name,"onUpdate:modelValue":L[1]||(L[1]=ot=>A.name=ot),clearable:"",placeholder:I.$t("place")+I.$t("template_name")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),Bt(at,{span:5},{default:Ht(()=>[Bt(it,{label:I.$t("template_code")},{default:Ht(()=>[Bt(k,{modelValue:A.code,"onUpdate:modelValue":L[2]||(L[2]=ot=>A.code=ot),clearable:"",placeholder:I.$t("place")+I.$t("template_code")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model"]),_s("div",Lyt,[Bt(H,{class:"mr-3",onClick:$},{default:Ht(()=>[Xa(Za(I.$t("search")),1)]),_:1})])]),Bt(gt,{tableData:C.value.records,loading:D.value},{toolbar:Ht(()=>[_s("div",Ryt,[_s("div",Myt,[_([""])?(po(),Fs(H,{key:0,size:"small",type:"primary",icon:Rh(w$),onClick:m},{default:Ht(()=>[Xa(Za(I.$t("add")),1)]),_:1},8,["icon"])):jc("",!0)])])]),"table-columns":Ht(()=>[Bt(Y,{prop:"name",label:I.$t("template_name")},null,8,["label"]),Bt(Y,{prop:"remark",label:I.$t("template_remark")},null,8,["label"]),Bt(Y,{prop:"enable_status",label:I.$t("user_state")},{default:Ht(ot=>[Bt(W,{modelValue:ot.row.enable_status,"onUpdate:modelValue":G=>ot.row.enable_status=G,"inline-prompt":"","active-text":"启用","inactive-text":"禁用",onChange:G=>y(G,ot.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["label"]),Bt(Y,{label:I.$t("operate"),fixed:"right",width:"300"},{default:Ht(ot=>[_([""])?(po(),Fs(H,{key:0,size:"small",onClick:G=>h(ot.row)},{default:Ht(()=>[Xa(Za(I.$t("view")),1)]),_:2},1032,["onClick"])):jc("",!0),_([""])?(po(),Fs(H,{key:1,size:"small",type:"primary",onClick:G=>b(ot.row)},{default:Ht(()=>[Xa(Za(I.$t("edit")),1)]),_:2},1032,["onClick"])):jc("",!0),_([""])?(po(),Fs(H,{key:2,size:"small",type:"danger",onClick:G=>w(ot.row)},{default:Ht(()=>[Xa(Za(I.$t("delete")),1)]),_:2},1032,["onClick"])):jc("",!0)]),_:1},8,["label"])]),pagination:Ht(()=>[C.value?(po(),Fs(ut,{key:0,onSizeChange:z,onCurrentChange:U,"current-page":C.value.pages,"page-sizes":[10,20,50,100],"page-size":C.value.size,layout:"total, sizes, prev, pager, next, jumper",total:C.value.total},null,8,["current-page","page-size","total"])):jc("",!0)]),_:1},8,["tableData","loading"]),Bt(mt,{title:Rh(c),modelValue:d.value,"onUpdate:modelValue":L[10]||(L[10]=ot=>d.value=ot),"modal-append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,class:"!rounded-lg"},{footer:Ht(()=>[_s("div",$yt,[Bt(H,{onClick:L[9]||(L[9]=ot=>d.value=!1)},{default:Ht(()=>[Xa(Za(I.$t("cancel")),1)]),_:1}),Bt(H,{type:"primary",onClick:g,disabled:r.value},{default:Ht(()=>[Xa(Za(I.$t("submit")),1)]),_:1},8,["disabled"])])]),default:Ht(()=>[Bt(T,{model:p.value,rules:v.value,ref_key:"EmailFormRef",ref:f,"label-width":"120px"},{default:Ht(()=>[Bt(x,null,{default:Ht(()=>[Bt(at,{span:12},{default:Ht(()=>[Bt(it,{label:I.$t("superior_template")+":",prop:"pid"},{default:Ht(()=>[Bt(lt,{modelValue:p.value.pid,"onUpdate:modelValue":L[3]||(L[3]=ot=>p.value.pid=ot),clearable:"",placeholder:I.$t("place")+I.$t("superior_template"),disabled:r.value},{default:Ht(()=>[(po(!0),Sg(SS,null,E$(l.value,ot=>(po(),Fs(X,{key:ot.id,label:ot.name,value:ot.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1}),Bt(at,{span:12},{default:Ht(()=>[Bt(it,{label:I.$t("template_name")+":",prop:"name"},{default:Ht(()=>[Bt(k,{modelValue:p.value.name,"onUpdate:modelValue":L[4]||(L[4]=ot=>p.value.name=ot),disabled:r.value,clearable:"",placeholder:I.$t("place")+I.$t("template_name")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1}),Bt(at,{span:12},{default:Ht(()=>[Bt(it,{label:I.$t("template_code")+":",prop:"code"},{default:Ht(()=>[Bt(k,{modelValue:p.value.code,"onUpdate:modelValue":L[5]||(L[5]=ot=>p.value.code=ot),disabled:r.value,clearable:"",placeholder:I.$t("place")+I.$t("template_code")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1}),Bt(at,{span:12},{default:Ht(()=>[Bt(it,{label:I.$t("enable_status")+":",prop:"enable_status"},{default:Ht(()=>[Bt(W,{modelValue:p.value.enable_status,"onUpdate:modelValue":L[6]||(L[6]=ot=>p.value.enable_status=ot),"inline-prompt":"",disabled:r.value,"active-text":"启用","inactive-text":"禁用"},null,8,["modelValue","disabled"])]),_:1},8,["label"])]),_:1}),Bt(it,{label:I.$t("template_content")+":",prop:"content"},{default:Ht(()=>[_s("div",zyt,[Bt(Rh(Iyt),{style:{"border-bottom":"1px solid #ccc"},editor:o.value,defaultConfig:a,mode:i.value},null,8,["editor","mode"]),Bt(Rh(Fyt),{style:{height:"300px","overflow-y":"hidden"},modelValue:p.value.content,"onUpdate:modelValue":L[7]||(L[7]=ot=>p.value.content=ot),defaultConfig:u,readOnly:n.value||r.value,mode:n.value||r.value?"simple":"default",onOnCreated:s},null,8,["modelValue","readOnly","mode"])])]),_:1},8,["label"]),Bt(at,{span:24},{default:Ht(()=>[Bt(it,{label:I.$t("template_remark")+":",prop:"remark"},{default:Ht(()=>[Bt(k,{modelValue:p.value.remark,"onUpdate:modelValue":L[8]||(L[8]=ot=>p.value.remark=ot),type:"textarea",disabled:r.value,autosize:{minRows:3,maxRows:4},placeholder:I.$t("place")+I.$t("template_remark")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])],64)}}}),Wyt=C$(Hyt,[["__scopeId","data-v-2f394489"]]);export{Wyt as default};